优化角色选菜单的功能

This commit is contained in:
季圣华
2021-04-14 23:50:56 +08:00
parent 93ed56a275
commit 24e40a360b
2 changed files with 7 additions and 7 deletions

View File

@@ -45,7 +45,7 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="handleSetFunction(record.id)">分配功能</a>
<a @click="handleSetFunction(record)">分配功能</a>
<a-divider type="vertical" />
<!-- <a @click="handleSetPushBtn(record.id)">分配按钮</a>-->
<!-- <a-divider type="vertical" />-->
@@ -131,8 +131,8 @@
}
},
methods: {
handleSetFunction(id) {
this.$refs.roleFunctionModal.edit(id);
handleSetFunction(record) {
this.$refs.roleFunctionModal.edit(record);
this.$refs.roleFunctionModal.title = "分配功能";
this.$refs.roleFunctionModal.disableSubmit = false;
},