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