提交 9f7f370b authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 bd424e21
......@@ -92,10 +92,14 @@ export default {
},
// 确定
onPrimary() {
// 选中的权限
const checkedKeys = this.$refs.tree.getCheckedKeys()
// 半选中的权限
const halfCheckedKeys = this.$refs.tree.getHalfCheckedKeys()
const params = {
app_id: this.appid,
role_id: this.data.id,
permission_ids: JSON.stringify(this.$refs.tree.getCheckedKeys())
permission_ids: JSON.stringify([...checkedKeys, ...halfCheckedKeys])
}
this.submitLoading = true
updateRolePermissions(params)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论