dai_siki 5 years ago
parent
commit
2cd3f973ef
  1. 7
      epmet-oper-web/src/views/modules/customer/customize/roleList.vue

7
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}}</el-checkbox>
</el-checkbox-group>
</el-card>
@ -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

Loading…
Cancel
Save