From 2009d3a86f43de6674df68793616be3ddd9125c8 Mon Sep 17 00:00:00 2001 From: lll Date: Sat, 11 Nov 2023 18:55:10 +0800 Subject: [PATCH] 11 --- src/components/GatewayConfiguration.vue | 9 ++------- src/components/GatewayMaintenance.vue | 9 +-------- src/components/IpConfiguration.vue | 15 +-------------- src/components/NetworkConfiguration.vue | 11 +++-------- src/components/NetworkManagement.vue | 22 +++++++++------------- src/components/ObjectManagement.vue | 21 +++++++++------------ src/components/PolicyManagement.vue | 19 ++++++++----------- src/components/PortConfiguration.vue | 5 ++--- src/components/Wireles.vue | 9 ++------- src/components/netConfiguration.vue | 11 +---------- src/views/Cockpit.vue | 14 +++++--------- 11 files changed, 43 insertions(+), 102 deletions(-) diff --git a/src/components/GatewayConfiguration.vue b/src/components/GatewayConfiguration.vue index 0c1b5ad..578ba30 100644 --- a/src/components/GatewayConfiguration.vue +++ b/src/components/GatewayConfiguration.vue @@ -193,16 +193,11 @@ export default { }; }, created() { - let that = this; - window.getParameter = that.getParameter; + this.user_id = window.location.href.split("?")[1]; this.GetUserAnswer(); // this.wgpz = JSON.parse(localStorage.getItem("wgpz")) || []; }, methods: { - getParameter(data) { - console.log(data); - this.user_id = data; - }, handleSelectionChange() {}, //新建网关保存 saveinfo() { @@ -281,7 +276,7 @@ export default { }); this.flag = true; } else { - this.$message.error(data.message); + this.$message.error("保存失败"); return; } }, diff --git a/src/components/GatewayMaintenance.vue b/src/components/GatewayMaintenance.vue index 8a44a3a..347f204 100644 --- a/src/components/GatewayMaintenance.vue +++ b/src/components/GatewayMaintenance.vue @@ -253,17 +253,10 @@ export default { }; }, created() { - // let that = this; - // window.getParameter = that.getParameter; - this.user_id = this.$route.fullPath.split("?")[1]; + this.user_id = window.location.href.split("?")[1]; this.GetUserAnswer(); - // this.tableData = JSON.parse(localStorage.getItem("wgwh")) || []; }, methods: { - // getParameter(data) { - // console.log(data); - // this.user_id = data; - // }, //读缓存 async GetUserAnswer() { let { data } = await GetUserAnswer({ diff --git a/src/components/IpConfiguration.vue b/src/components/IpConfiguration.vue index 21981a3..f75884e 100644 --- a/src/components/IpConfiguration.vue +++ b/src/components/IpConfiguration.vue @@ -167,7 +167,6 @@