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