|
|
@ -154,6 +154,9 @@ |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
@click="saveSettings">保存范围</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
@click="toAllClient">同步到所有客户</el-button> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-row :gutter="12"> |
|
|
@ -308,6 +311,21 @@ export default { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
//同步权限到所有客户 |
|
|
|
async toAllClient () { |
|
|
|
|
|
|
|
const url = "/gov/access/config/add-ope-and-scopes-4role/by-default-conf" |
|
|
|
const params = { |
|
|
|
roleKey: this.roleKey, |
|
|
|
operationKey: this.operationKey, |
|
|
|
} |
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
if (code === 0) { |
|
|
|
this.$message.success('同步成功') |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
//关闭功能配置弹出框 |
|
|
|
handleDialogClosed () { |
|
|
|
this.roleName = '' |
|
|
|