bug
This commit is contained in:
parent
60b52b53b3
commit
7bf9f0274f
@ -546,14 +546,14 @@
|
||||
:data="dutyList">
|
||||
<el-table-column label="序号" align="center" type="index" width="50"></el-table-column>
|
||||
<el-table-column label="角色名称" align="center" prop="dutyName" />
|
||||
<el-table-column label="角色类型" align="center" prop="dutyType" >
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.dutyType=='1'">超级管理员</span>
|
||||
<span v-if="scope.row.dutyType=='2'">普通管理员</span>
|
||||
<span v-if="scope.row.dutyType=='3'">油站角色</span>
|
||||
<span v-if="scope.row.dutyType=='4'">公司角色</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="角色类型" align="center" prop="dutyType" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-if="scope.row.dutyType=='1'">超级管理员</span>-->
|
||||
<!-- <span v-if="scope.row.dutyType=='2'">普通管理员</span>-->
|
||||
<!-- <span v-if="scope.row.dutyType=='3'">油站角色</span>-->
|
||||
<!-- <span v-if="scope.row.dutyType=='4'">公司角色</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="所属机构" align="center" prop="deptName" />
|
||||
<el-table-column label="角色状态" align="center" prop="status" >
|
||||
<template slot-scope="scope">
|
||||
@ -720,6 +720,7 @@
|
||||
ref="menu"
|
||||
node-key="id"
|
||||
:check-strictly="!form1.menuCheckStrictly"
|
||||
:default-checked-keys="form1.checkedKeys"
|
||||
empty-text="加载中,请稍候"
|
||||
:props="defaultProps1"
|
||||
></el-tree>
|
||||
@ -1203,6 +1204,7 @@ export default {
|
||||
// if (data.dutyType == '4') val = 2;
|
||||
// const roleMenu = this.getMenuTreeselect(val);
|
||||
const roleId = data.dutyId
|
||||
this.form1.menuCheckStrictly = false
|
||||
getRole(roleId).then(response => {
|
||||
this.form1.roleName = response.data.roleInfo.name;
|
||||
this.form1.roleType = response.data.roleInfo.type;
|
||||
@ -1212,7 +1214,8 @@ export default {
|
||||
this.openDuty = true;
|
||||
this.title = "修改角色";
|
||||
let checkedKeys = response.data.checkedKeys
|
||||
|
||||
this.form1.checkedKeys = checkedKeys
|
||||
this.getMenuTreeselect(response.data.roleInfo.type)
|
||||
// this.$nextTick(() => {
|
||||
// roleMenu.then(res => {
|
||||
// checkedKeys.forEach((v) => {
|
||||
|
Loading…
Reference in New Issue
Block a user