From e693a7a14a23d5e71d49a64b5189e1a8709b3195 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 15 Mar 2021 16:10:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E7=AE=A1=E7=90=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/customer/customize/roleList.vue | 113 +++++++++++------- 1 file changed, 71 insertions(+), 42 deletions(-) diff --git a/epmet-oper-web/src/views/modules/customer/customize/roleList.vue b/epmet-oper-web/src/views/modules/customer/customize/roleList.vue index dcfc2c8..5080deb 100644 --- a/epmet-oper-web/src/views/modules/customer/customize/roleList.vue +++ b/epmet-oper-web/src/views/modules/customer/customize/roleList.vue @@ -3,69 +3,96 @@
当前客户: {{customerName}} - 保存顺序 + 保存顺序
- - + + - + - +
- +
当前角色: {{roleName}}
- - + + - +
- +
当前功能: {{funcName}}
- - - - {{scope.scopeName}} - - - - - +
@@ -157,7 +184,7 @@ export default { this.loading2 = true this.$http.post('/gov/access/config/roleopes/' + roleId).then((resp) => { this.opeList = resp.data.data - this.$nextTick(function () { + this.$nextTick(function() { this.defaultCheck() // 每次更新了数据,触发这个函数即可。 }) setTimeout(() => { @@ -211,7 +238,8 @@ export default { saveOperations4Role (val) { let param = { roleId: this.roleId, - opes: val + opes: val, + customerId: this.customerId } this.$http.post('/gov/access/config/saveroleopes', param).then( resp => { @@ -228,7 +256,8 @@ export default { roleId: this.roleId, operationKey: this.operationKey, scopeKeys: val, - settingKeys: this.checkedSettings + settingKeys: this.checkedSettings, + customerId: this.customerId } this.$http.post('/gov/access/config/saveconfig', param).then(