From bfad30ff204912faf58c9f45afe207950221780a Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Tue, 25 Aug 2020 15:11:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E5=88=86?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/customer/customize/roleList.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 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 59fa256..3855232 100644 --- a/epmet-oper-web/src/views/modules/customer/customize/roleList.vue +++ b/epmet-oper-web/src/views/modules/customer/customize/roleList.vue @@ -47,7 +47,6 @@ v-for="scope in scopeOptions" :label="scope.scopeKey" :key="scope.scopeKey" - :checked="scope.assigned" >{{scope.scopeName}} @@ -112,7 +111,6 @@ export default { if (typeof _data[n] === 'boolean') _data[n] = false if (typeof _data[n] === 'string') _data[n] = '' if (typeof _data[n] === 'object') _data[n] = [] - console.log(n, _data[n]) } }, methods: { @@ -148,12 +146,17 @@ export default { roleId: this.roleId, operationKey: operationKey } + console.log('checkedScopes', this.checkedScopes) this.loading3 = true this.$http .post('/gov/access/config/configoptions', params) .then(resp => { console.log('scopeOptions', resp.data) this.scopeOptions = resp.data.data.scopeOptions + resp.data.data.scopeOptions.forEach(item => { + if (item.assigned) this.checkedScopes.push(item.scopeKey) + }) + console.log('checkedScopes222', this.checkedScopes) this.settingOptions = resp.data.data.settingOptions setTimeout(() => { this.loading3 = false