27245
This commit is contained in:
@@ -108,6 +108,16 @@
|
|||||||
width="40"
|
width="40"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</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
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
slot="options"
|
slot="options"
|
||||||
@@ -291,6 +301,7 @@ export default {
|
|||||||
{
|
{
|
||||||
prop: "girdMemberNames",
|
prop: "girdMemberNames",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
slot: 'user',
|
||||||
width: 200,
|
width: 200,
|
||||||
label: "网格员",
|
label: "网格员",
|
||||||
},
|
},
|
||||||
@@ -383,7 +394,12 @@ export default {
|
|||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.data) {
|
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;
|
this.page.total = res.data.total;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user