增加用户分配功能和用户分配按钮功能

This commit is contained in:
季圣华
2021-04-27 23:34:57 +08:00
parent 62ed476d09
commit d13186e759
6 changed files with 541 additions and 327 deletions

View File

@@ -47,8 +47,8 @@
<span slot="action" slot-scope="text, record">
<a @click="handleSetFunction(record)">分配功能</a>
<a-divider type="vertical" />
<!-- <a @click="handleSetPushBtn(record.id)">分配按钮</a>-->
<!-- <a-divider type="vertical" />-->
<a @click="handleSetPushBtn(record)">分配按钮</a>
<a-divider type="vertical" />
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
@@ -136,13 +136,10 @@
this.$refs.roleFunctionModal.title = "分配功能";
this.$refs.roleFunctionModal.disableSubmit = false;
},
handleSetPushBtn(id) {
this.$refs.rolePushBtnModal.add();
handleSetPushBtn(record) {
this.$refs.rolePushBtnModal.edit(record);
this.$refs.rolePushBtnModal.title = "分配按钮";
this.$refs.rolePushBtnModal.disableSubmit = false;
},
onChangeDate(date, dateString) {
console.log(date, dateString);
}
}
}