26362
This commit is contained in:
		| @@ -113,19 +113,7 @@ | ||||
|           {prop: 'content', label: '发言内容', align: 'center'}, | ||||
|           {prop: 'suport', label: '获赞次数', align: 'center'}, | ||||
|           {prop: 'createTime', label: '发言时间', align: 'center'}, | ||||
|           {prop: 'createUserId', label: '发言身份', align: 'center', formart: v => v === this.info.createUserId ? '话事人' : '村民'} | ||||
|         ], | ||||
|         voteColConfigs: [ | ||||
|           {prop: 'createTime', label: '投票时间', align: 'center'}, | ||||
|           { | ||||
|             prop: 'userName', | ||||
|             label: '发言人', | ||||
|             align: 'center', | ||||
|             render(h, { row }) { | ||||
|               return h('span', {}, `${row.userName}${row.phone ? '-' + row.phone : ''}`) | ||||
|             } | ||||
|           }, | ||||
|           {prop: 'item', label: '投票选项', align: 'center'} | ||||
|           {prop: 'createUserId', label: '发言身份', align: 'center', formart: v => v === this.info.createUserId ? '话事人' : '居民'} | ||||
|         ], | ||||
|         type: '', | ||||
|         statistic: {}, | ||||
| @@ -134,7 +122,22 @@ | ||||
|     }, | ||||
|  | ||||
|     computed: { | ||||
|       ...mapState(['user']) | ||||
|       ...mapState(['user']), | ||||
|  | ||||
|       voteColConfigs () { | ||||
|         return [ | ||||
|           {prop: 'createTime', label: '投票时间', align: 'center'}, | ||||
|           { | ||||
|             prop: 'userName', | ||||
|             label: '发言人', | ||||
|             align: 'center', | ||||
|             render: (h, { row }) => { | ||||
|               return h('span', {}, this.info.anonymous === '1' ? '居民' : `${row.userName}${row.phone ? '-' + row.phone : ''}`) | ||||
|             } | ||||
|           }, | ||||
|           {prop: 'item', label: '投票选项', align: 'center'} | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|  | ||||
|     created () { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user