给角色页面的分配弹窗增加角色名称的提示
This commit is contained in:
parent
805ef5f248
commit
2daea4a7d1
@ -50,7 +50,7 @@
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="handleSetFunction(record)">分配功能</a>
|
||||
<a-divider type="vertical" />
|
||||
<a @click="handleSetPushBtn(record.id)">分配按钮</a>
|
||||
<a @click="handleSetPushBtn(record.id, record.name)">分配按钮</a>
|
||||
<a-divider type="vertical" />
|
||||
<a @click="handleEdit(record)">编辑</a>
|
||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||
@ -181,12 +181,12 @@
|
||||
methods: {
|
||||
handleSetFunction(record) {
|
||||
this.$refs.roleFunctionModal.edit(record);
|
||||
this.$refs.roleFunctionModal.title = "分配功能【分配之后请继续分配按钮】";
|
||||
this.$refs.roleFunctionModal.title = record.name + "-分配功能【分配之后请继续分配按钮】";
|
||||
this.$refs.roleFunctionModal.disableSubmit = false;
|
||||
},
|
||||
handleSetPushBtn(roleId) {
|
||||
handleSetPushBtn(roleId, roleName) {
|
||||
this.$refs.rolePushBtnModal.edit(roleId);
|
||||
this.$refs.rolePushBtnModal.title = "分配按钮";
|
||||
this.$refs.rolePushBtnModal.title = roleName + "-分配按钮";
|
||||
this.$refs.rolePushBtnModal.disableSubmit = false;
|
||||
},
|
||||
roleModalFormOk() {
|
||||
@ -209,7 +209,13 @@
|
||||
handleRoleFunctionTip() {
|
||||
if(this.currentRoleId) {
|
||||
this.roleFunctionModalVisible = false
|
||||
this.handleSetPushBtn(this.currentRoleId)
|
||||
let roleName = ''
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
if(this.dataSource[i].id == this.currentRoleId) {
|
||||
roleName = this.dataSource[i].name
|
||||
}
|
||||
}
|
||||
this.handleSetPushBtn(this.currentRoleId, roleName)
|
||||
}
|
||||
},
|
||||
handleAdd: function () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user