diff --git a/config/index.js b/config/index.js index 68765b2..89d87e6 100644 --- a/config/index.js +++ b/config/index.js @@ -87,7 +87,7 @@ }, // Various Dev Server settings - host: "192.168.30.113", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/config/index.js b/config/index.js index 68765b2..89d87e6 100644 --- a/config/index.js +++ b/config/index.js @@ -87,7 +87,7 @@ }, // Various Dev Server settings - host: "192.168.30.113", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/sys/user.vue b/src/components/sys/user.vue index 291c8e4..2cbac8b 100644 --- a/src/components/sys/user.vue +++ b/src/components/sys/user.vue @@ -9,7 +9,7 @@ 搜索 @@ -277,6 +277,11 @@ const formInfo = this.formInfo; const dialogInfo = this.dialogInfo; switch (event) { + //搜索用户 + case "search": + this.ALPage = 1; + this.loadGridData(); + break; //添加用户 case "AddUser": dialogInfo.type = event; @@ -328,6 +333,7 @@ .post(this.nozzle.deleteSysuser, [data.id]) .then(res => { if (res.data.code === 1 || res.data.code === 200) { + this.ALPage = 1; this.loadGridData(); } this.$message({ @@ -367,6 +373,7 @@ .then(res => { if (res.data.code === 1 || res.data.code === 200) { dialogInfo.visible = false; + this.ALPage = 1; this.loadGridData(); } this.$message({ diff --git a/config/index.js b/config/index.js index 68765b2..89d87e6 100644 --- a/config/index.js +++ b/config/index.js @@ -87,7 +87,7 @@ }, // Various Dev Server settings - host: "192.168.30.113", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/sys/user.vue b/src/components/sys/user.vue index 291c8e4..2cbac8b 100644 --- a/src/components/sys/user.vue +++ b/src/components/sys/user.vue @@ -9,7 +9,7 @@ 搜索 @@ -277,6 +277,11 @@ const formInfo = this.formInfo; const dialogInfo = this.dialogInfo; switch (event) { + //搜索用户 + case "search": + this.ALPage = 1; + this.loadGridData(); + break; //添加用户 case "AddUser": dialogInfo.type = event; @@ -328,6 +333,7 @@ .post(this.nozzle.deleteSysuser, [data.id]) .then(res => { if (res.data.code === 1 || res.data.code === 200) { + this.ALPage = 1; this.loadGridData(); } this.$message({ @@ -367,6 +373,7 @@ .then(res => { if (res.data.code === 1 || res.data.code === 200) { dialogInfo.visible = false; + this.ALPage = 1; this.loadGridData(); } this.$message({ diff --git a/src/util/nfQuery.js b/src/util/nfQuery.js index 2288122..062cae3 100644 --- a/src/util/nfQuery.js +++ b/src/util/nfQuery.js @@ -6,10 +6,6 @@ let host = "/nfQuery"; let nozzle = { - statement: "/statistical/statement", //数据分析//数据总览 - service: "/statistical/service", //数据分析//数据总览 - Conn: "/statistical/Conn", //数据分析/统计报表 - userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 dataSelectSitePropertyList: "/site/selectSitePropertyList", //新烽查询系统 获取站点分配的因子 diff --git a/config/index.js b/config/index.js index 68765b2..89d87e6 100644 --- a/config/index.js +++ b/config/index.js @@ -87,7 +87,7 @@ }, // Various Dev Server settings - host: "192.168.30.113", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/sys/user.vue b/src/components/sys/user.vue index 291c8e4..2cbac8b 100644 --- a/src/components/sys/user.vue +++ b/src/components/sys/user.vue @@ -9,7 +9,7 @@ 搜索 @@ -277,6 +277,11 @@ const formInfo = this.formInfo; const dialogInfo = this.dialogInfo; switch (event) { + //搜索用户 + case "search": + this.ALPage = 1; + this.loadGridData(); + break; //添加用户 case "AddUser": dialogInfo.type = event; @@ -328,6 +333,7 @@ .post(this.nozzle.deleteSysuser, [data.id]) .then(res => { if (res.data.code === 1 || res.data.code === 200) { + this.ALPage = 1; this.loadGridData(); } this.$message({ @@ -367,6 +373,7 @@ .then(res => { if (res.data.code === 1 || res.data.code === 200) { dialogInfo.visible = false; + this.ALPage = 1; this.loadGridData(); } this.$message({ diff --git a/src/util/nfQuery.js b/src/util/nfQuery.js index 2288122..062cae3 100644 --- a/src/util/nfQuery.js +++ b/src/util/nfQuery.js @@ -6,10 +6,6 @@ let host = "/nfQuery"; let nozzle = { - statement: "/statistical/statement", //数据分析//数据总览 - service: "/statistical/service", //数据分析//数据总览 - Conn: "/statistical/Conn", //数据分析/统计报表 - userGroupRelaGetGroups: "/userGroupRela/getGroups", //新烽查询系统分组信息查询 siteGetHeads: "/site/getHeads", //新烽查询系统 根据站点编号查询表头 dataSelectSitePropertyList: "/site/selectSitePropertyList", //新烽查询系统 获取站点分配的因子 diff --git a/src/util/projectSet.js b/src/util/projectSet.js index ba4eb94..c804e22 100644 --- a/src/util/projectSet.js +++ b/src/util/projectSet.js @@ -6,6 +6,10 @@ let host = "/projectApi"; let nozzle = { + statement: "/statistical/statement", //数据分析//数据总览 + service: "/statistical/service", //数据分析//数据总览 + Conn: "/statistical/Conn", //数据分析/统计报表 + getSiteNum: "/userGroupRela/getSiteNum", //站点状况预览图//站点统计右边三个 saveOrupdate: "/sys/stationbase/saveOrupdate", //添加和保存站点弹框的信息