修复列表显示异常

This commit is contained in:
dragon
2024-06-06 11:02:24 +08:00
parent 8823ec2ec3
commit 9c996955f2

View File

@@ -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
? ["房主", "管理员"]
: [];
},
// 确认编辑按钮