This commit is contained in:
yanran200730
2022-02-11 14:19:22 +08:00
parent 40b6043eed
commit 5acedc6aac

View File

@@ -108,6 +108,16 @@
width="40"
>
</el-table-column>
<el-table-column
label="网格员"
slot="user"
align="center"
fixed="right"
width="160">
<template slot-scope="{ row }">
<AiOpenData type="userName" v-for="(item, index) in row.girdMemberNames" :openid="item" :key="index"></AiOpenData>
</template>
</el-table-column>
<el-table-column
label="操作"
slot="options"
@@ -291,6 +301,7 @@ export default {
{
prop: "girdMemberNames",
align: "center",
slot: 'user',
width: 200,
label: "网格员",
},
@@ -383,7 +394,12 @@ export default {
})
.then((res) => {
if (res?.data) {
this.tableData = res.data.records;
this.tableData = res.data.records.map(v => {
return {
...v,
girdMemberNames: v.girdMemberNames ? v.girdMemberNames.split(',') : []
}
});
this.page.total = res.data.total;
}
});