|
|
@ -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 |
|
|
|