席位
This commit is contained in:
		| @@ -126,7 +126,7 @@ export default { | ||||
|     } | ||||
|   }, | ||||
|   created() { | ||||
|     this.dict.load('yesOrNo', 'deviceStatus').then(() => { | ||||
|     this.dict.load('yesOrNo', 'deviceStatus', 'xbotType').then(() => { | ||||
|       this.getConfigList() | ||||
|     }) | ||||
|   }, | ||||
| @@ -134,6 +134,7 @@ export default { | ||||
|     ...mapState(['user']), | ||||
|     colConfigs() { | ||||
|       return [ | ||||
|         { prop: "type", label: '类型', dict: 'xbotType'}, | ||||
|         { slot: "avatar"}, | ||||
|         { prop: "xbotName", label: '机位'}, | ||||
|         { slot: "loginUserId", label: '用户id'}, | ||||
| @@ -152,7 +153,7 @@ export default { | ||||
|         { slot: "avatar", label: '群聊头像'}, | ||||
|         { prop: "nickname", label: '群聊名称', align: 'center'}, | ||||
|         { prop: "is_manager", label: '是否管理员', dict: 'yesOrNo', align: 'center'}, | ||||
|         { prop: "num", label: '群聊成员(人数)', align: 'center'}, | ||||
|         { prop: "total", label: '群聊成员(人数)', align: 'center'}, | ||||
|         // { prop: "phone", label: '群主'}, | ||||
|       ] | ||||
|     }, | ||||
| @@ -248,9 +249,13 @@ export default { | ||||
|       }).then(res => { | ||||
|         if(res?.data) { | ||||
|           var tableDataGroup = JSON.parse(res.data) | ||||
|           tableDataGroup.map((item) => { | ||||
|             item.num = item.member_list.length | ||||
|             if(item.total_member > 2) { | ||||
|           console.log(tableDataGroup) | ||||
|           tableDataGroup.map((item) => {  // 0企微 1个微 | ||||
|             if(this.groupInfo.type == 1 && item.total_member > 2) { | ||||
|               this.tableDataGroup.push(item) | ||||
|             } | ||||
|             if(this.groupInfo.type == 0) { | ||||
|               item.is_manager = item.is_admin | ||||
|               this.tableDataGroup.push(item) | ||||
|             } | ||||
|           }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user