From 94865b4fe4de5b55e2675e9a61c77e0ae5680c18 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Tue, 23 Jun 2020 10:24:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/user_info.vue | 42 ++++++++++++------------------------ src/request/api/user.js | 2 +- 2 files changed, 15 insertions(+), 29 deletions(-) diff --git a/src/pages/user/user_info.vue b/src/pages/user/user_info.vue index 395db05..197e260 100644 --- a/src/pages/user/user_info.vue +++ b/src/pages/user/user_info.vue @@ -73,9 +73,9 @@

IP(白名单):

-
- {{ item.ip }} - +
+ {{ item }} +

IP(黑名单):

-
- {{ item.ip }} - +
+ {{ item }} +

密钥:

- + 复制 重置
@@ -198,22 +198,8 @@ export default { formBusiness: { businessSystemName: "", domainName: "", - ip_white: [ - { ip: "255.255.255.255", id: "123789244" }, - { ip: "255.255.255.255", id: "123576744" }, - { ip: "255.255.255.255", id: "123467866874" }, - { ip: "255.255.255.255", id: "1226783544" } - ], - ip_black: [ - { ip: "255.255.255.255", id: "12773844" }, - { ip: "255.255.255.255", id: "12561344" }, - { ip: "255.255.255.255", id: "1235672344" }, - { ip: "255.255.255.255", id: "12342314" }, - { ip: "255.255.255.255", id: "12386444" }, - { ip: "255.255.255.255", id: "12783544" }, - { ip: "255.255.255.255", id: "121678344" }, - { ip: "255.255.255.255", id: "127678344" } - ], + ip_white: [], + ip_black: [], key: "", description: "" }, @@ -328,7 +314,7 @@ export default { origin_password: this.form.passwordOld, new_password: this.form.passwordNew } - } + }; this.$api.user.editUserPassword(query).then(response => { if (response.data.success == 1) { this.$message({ @@ -365,12 +351,12 @@ export default { this.$api.authority.updateLevel().then(response => { if (response.data.success == 1) { this.$message({ - message: "重置密钥成功", + message: "申请升级开发者成功", type: "success" }); } else { this.$message({ - message: "重置密钥失败", + message: "申请升级开发者失败", type: "error" }); } @@ -407,7 +393,7 @@ export default { watchKeyboardWhite() { let self = this; if (self.newIpWhite != "") { - self.formBusiness.ip_white.push({ ip: self.newIpWhite, id: 0 }); + self.formBusiness.ip_white.push(self.newIpWhite); self.whiteAddShow = false; self.newIpWhite = ""; } @@ -415,7 +401,7 @@ export default { watchKeyboardBlack() { let self = this; if (self.newIpBlack != "") { - self.formBusiness.ip_black.push({ ip: self.newIpBlack, id: 0 }); + self.formBusiness.ip_black.push(self.newIpBlack); self.blackAddShow = false; self.newIpBlack = ""; } diff --git a/src/request/api/user.js b/src/request/api/user.js index 6ab284d..2252292 100644 --- a/src/request/api/user.js +++ b/src/request/api/user.js @@ -44,7 +44,7 @@ const user = { return axios.get(`/apaas/backmgt/user/detail/${params.id}`); }, editUserPassword(params) { - return axios.post(`/apaas/backmgt/user/password/${params.id}`, params.form); + return axios.post(`/apaas/backmgt/user/password/${params.id}`, qs.stringify(params.form)); }, } -- 2.26.0