居民议事
This commit is contained in:
@@ -76,7 +76,7 @@
|
|||||||
areaList: [],
|
areaList: [],
|
||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{ prop: 'title', label: '议事主题', align: 'left', width: '200px' },
|
{ prop: 'content', label: '议事主题', align: 'left', width: '200px' },
|
||||||
{ prop: 'type', label: '议事类型', align: 'center', formart: v => this.dict.getLabel('discussType', v) },
|
{ prop: 'type', label: '议事类型', align: 'center', formart: v => this.dict.getLabel('discussType', v) },
|
||||||
{ prop: 'createUserName', label: '话事人', align: 'center' },
|
{ prop: 'createUserName', label: '话事人', align: 'center' },
|
||||||
{ prop: 'msgCount', label: '观点数量', align: 'center', formart: v => v === 0 ? '-' : v },
|
{ prop: 'msgCount', label: '观点数量', align: 'center', formart: v => v === 0 ? '-' : v },
|
||||||
@@ -111,7 +111,12 @@
|
|||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records.map(v => {
|
||||||
|
return {
|
||||||
|
...v,
|
||||||
|
content: v.content || v.title
|
||||||
|
}
|
||||||
|
})
|
||||||
this.total = res.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user