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