修复列表显示异常
This commit is contained in:
@@ -72,10 +72,12 @@
|
||||
|
||||
<el-table-column prop="roleFlag" align="center" label="可开启角色">
|
||||
<template v-slot="scope">{{
|
||||
(scope.row.roleFlag & 1) != 0
|
||||
scope.row.roleFlag == 1
|
||||
? "房主"
|
||||
: (scope.row.roleFlag & 2) != 0
|
||||
: scope.row.roleFlag == 2
|
||||
? "管理员"
|
||||
: scope.row.roleFlag == 3
|
||||
? "房主、管理员"
|
||||
: "/"
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
@@ -332,10 +334,12 @@ export default {
|
||||
this.ediObj.value1 = obj.isShow == false ? 0 : 1;
|
||||
this.ediObj.value2 = obj.isAuthority;
|
||||
this.ediObj.checkList2 =
|
||||
(obj.roleFlag & 1) != 0
|
||||
obj.roleFlag == 1
|
||||
? ["房主"]
|
||||
: (obj.roleFlag & 2) != 0
|
||||
: obj.roleFlag == 2
|
||||
? ["管理员"]
|
||||
: obj.roleFlag == 3
|
||||
? ["房主", "管理员"]
|
||||
: [];
|
||||
},
|
||||
// 确认编辑按钮
|
||||
|
Reference in New Issue
Block a user