席位管理

This commit is contained in:
liuye
2023-08-14 17:52:23 +08:00
parent ed4b58e215
commit 378f4eba0b
2 changed files with 11 additions and 4 deletions

View File

@@ -37,7 +37,7 @@
:destroyOnClose="true" :destroyOnClose="true"
width="720px" width="720px"
@closed="dialog=false" :customFooter="false"> @closed="dialog=false" :customFooter="false">
<ai-table :tableData="tableDataGroup" :total="totalGroup" :current.sync="searchGroup.current" :size.sync="searchGroup.size" <ai-table :tableData="tableDataGroup" :isShowPagination="false"
@getList="getTableDataGroup()" :col-configs="colConfigsGroup"> @getList="getTableDataGroup()" :col-configs="colConfigsGroup">
<el-table-column slot="avatar" label="群聊头像" align="left"> <el-table-column slot="avatar" label="群聊头像" align="left">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
@@ -157,17 +157,17 @@ export default {
getTableDataGroup() { getTableDataGroup() {
this.instance.post(`/app/xbotCallback/groupList`,null,{ this.instance.post(`/app/xbotCallback/groupList`,null,{
params: { params: {
...this.searchGroup, // ...this.searchGroup,
current: 1,
managerWxid: this.groupInfo.loginUserId managerWxid: this.groupInfo.loginUserId
} }
}).then(res => { }).then(res => {
if(res?.data) { if(res?.data) {
console.log(JSON.parse(res.data))
this.tableDataGroup = JSON.parse(res.data) this.tableDataGroup = JSON.parse(res.data)
this.tableDataGroup.map((item) => { this.tableDataGroup.map((item) => {
item.num = item.member_list.length item.num = item.member_list.length
}) })
this.totalGroup = res.data.total // this.totalGroup = res.data.total
} }
}) })
@@ -210,5 +210,11 @@ export default {
height: 50px; height: 50px;
border-radius: 50%; border-radius: 50%;
} }
:deep .ai-dialog__content {
.ai-table {
max-height: 1000px;
overflow-y: scroll;
}
}
} }
</style> </style>

View File

@@ -63,6 +63,7 @@ export default {
current: 1, current: 1,
size: 10, size: 10,
}, },
total: 0,
tableData: [], tableData: [],
current: 1, current: 1,
form: { form: {