26364
This commit is contained in:
		| @@ -16,7 +16,7 @@ | |||||||
|             <ai-info-item label="议事类型" :value="dict.getLabel('discussType', info.type)" isLine></ai-info-item> |             <ai-info-item label="议事类型" :value="dict.getLabel('discussType', info.type)" isLine></ai-info-item> | ||||||
|             <ai-info-item label="是否匿名投票" v-if="info.type === '1'" :value="info.anonymous === '1' ? '是' : '否'"></ai-info-item> |             <ai-info-item label="是否匿名投票" v-if="info.type === '1'" :value="info.anonymous === '1' ? '是' : '否'"></ai-info-item> | ||||||
|             <ai-info-item label="投票方式" v-if="info.type === '1'" :value="info.voteType === '0' ? '单选' : '多选'"></ai-info-item> |             <ai-info-item label="投票方式" v-if="info.type === '1'" :value="info.voteType === '0' ? '单选' : '多选'"></ai-info-item> | ||||||
|             <ai-info-item label="图片"> |             <ai-info-item label="图片" isLine> | ||||||
|               <ai-uploader |               <ai-uploader | ||||||
|                 :instance="instance" |                 :instance="instance" | ||||||
|                 disabled |                 disabled | ||||||
|   | |||||||
| @@ -26,31 +26,19 @@ | |||||||
|               @change="page.current = 1, getTableData()"> |               @change="page.current = 1, getTableData()"> | ||||||
|               <el-option v-for="(op,i) in reportTypeOps" :key="i" v-bind="op"/> |               <el-option v-for="(op,i) in reportTypeOps" :key="i" v-bind="op"/> | ||||||
|             </el-select> |             </el-select> | ||||||
|             <el-date-picker |  | ||||||
|               type="daterange" |  | ||||||
|               v-model="search.dateRange" |  | ||||||
|               size="small" |  | ||||||
|               start-placeholder="上报开始时间" |  | ||||||
|               end-placeholder="上报结束时间" |  | ||||||
|               clearable |  | ||||||
|               value-format="yyyy-MM-dd" |  | ||||||
|               @change="page.current = 1, getTableData()"/> |  | ||||||
|           </template> |           </template> | ||||||
|           <template #right> |           <template #right> | ||||||
|             <el-input |             <el-input | ||||||
|               size="small" |               size="small" | ||||||
|               v-model="search.address" |               v-model="search.address" | ||||||
|               clearable suffix-icon="iconfont iconSearch" |               clearable suffix-icon="iconfont iconSearch" | ||||||
|               placeholder="上报人/区域/事件描述" |               placeholder="内容描述/上报居民/联系方式" | ||||||
|               @keyup.enter.native="page.current = 1, getTableData()" |               @keyup.enter.native="page.current = 1, getTableData()" | ||||||
|               @clear="page.current = 1, getTableData(), search.address = ''" /> |               @clear="page.current = 1, getTableData(), search.address = ''" /> | ||||||
|           </template> |           </template> | ||||||
|         </ai-search-bar> |         </ai-search-bar> | ||||||
|          |          | ||||||
|         <ai-table :tableData="tableData" :colConfigs="colConfigs" :total="page.total" :current.sync="page.current" :size.sync="page.size" @getList="getTableData"> |         <ai-table :tableData="tableData" :colConfigs="colConfigs" :total="page.total" :current.sync="page.current" :size.sync="page.size" @getList="getTableData"> | ||||||
|           <el-table-column slot="integral" label="信用积分" width="100" align="center"> |  | ||||||
|             <div class="table-options" slot-scope="{row}">{{ row.integral > 0 ? '+' + row.integral : row.integral }}</div> |  | ||||||
|           </el-table-column> |  | ||||||
|           <el-table-column slot="options" label="操作" fixed="right" width="140" align="center"> |           <el-table-column slot="options" label="操作" fixed="right" width="140" align="center"> | ||||||
|             <div class="table-options" slot-scope="{row}"> |             <div class="table-options" slot-scope="{row}"> | ||||||
|               <el-button |               <el-button | ||||||
| @@ -118,37 +106,15 @@ | |||||||
|     computed: { |     computed: { | ||||||
|       ...mapState(['user']), |       ...mapState(['user']), | ||||||
|       colConfigs() { |       colConfigs() { | ||||||
|         let _ = this |  | ||||||
|         return [ |         return [ | ||||||
|           {prop: 'areaName', label: '区域'}, |           {prop: 'areaName', label: '上报时间'}, | ||||||
|           { |           {prop: 'reportType', label: '内容描述' }, | ||||||
|             prop: 'reportType', label: '类型', render(h, {row}) { |           {prop: 'nickName', label: '事件类型'}, | ||||||
|               return h('span', null, _.dict.getLabel("atWillReportType", row.reportType)) |           {prop: 'explain', label: '所属网格'}, | ||||||
|             } |           {prop: 'phone', label: '上报居民'}, | ||||||
|           }, |           {prop: 'createTime', label: '联系方式'}, | ||||||
|           {prop: 'nickName', label: '上报人'}, |           {prop: 'handleUserName', label: '处理时长'}, | ||||||
|           {prop: 'explain', label: '事件描述'}, |  | ||||||
|           {prop: 'phone', label: '联系方式'}, |  | ||||||
|           {prop: 'createTime', label: '上报时间'}, |  | ||||||
|           {prop: 'handleUserName', label: '处理人'}, |  | ||||||
|           { |  | ||||||
|             prop: 'status', label: '处理状态', render(h, {row}) { |  | ||||||
|               return h('span', null, _.dict.getLabel("reportAtWillHandleStatus", row.status)) |  | ||||||
|             } |  | ||||||
|           }, |  | ||||||
|           {prop: 'handleTime', label: '处理时间'}, |           {prop: 'handleTime', label: '处理时间'}, | ||||||
|           { |  | ||||||
|             prop: 'publicityStatus', |  | ||||||
|             label: '公示状态', |  | ||||||
|             fixed: 'right', |  | ||||||
|             align: 'center', |  | ||||||
|             render: (h, { row }) => h('span', |  | ||||||
|               { |  | ||||||
|                 style: {color: this.dict.getColor("reportAtWillPublicityStatus", row.publicityStatus) |  | ||||||
|               } |  | ||||||
|             }, this.dict.getLabel("reportAtWillPublicityStatus", row.publicityStatus)) |  | ||||||
|           }, |  | ||||||
|           {slot: 'integral'}, |  | ||||||
|           {slot: 'options'} |           {slot: 'options'} | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
| @@ -167,7 +133,6 @@ | |||||||
|       this.areaId = this.user.info.areaId |       this.areaId = this.user.info.areaId | ||||||
|       this.dict.load("reportAtWillPublicityStatus", "reportAtWillHandleStatus", "atWillReportType") |       this.dict.load("reportAtWillPublicityStatus", "reportAtWillHandleStatus", "atWillReportType") | ||||||
|       this.getTableData() |       this.getTableData() | ||||||
|       // this.$route.query.id && this.showDetail(this.$route.query) |  | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     methods: { |     methods: { | ||||||
|   | |||||||
| @@ -1,14 +1,12 @@ | |||||||
| <template> | <template> | ||||||
|   <section class="reportAtWillDetail"> |   <section class="reportAtWillDetail"> | ||||||
|     <ai-detail> |     <ai-detail> | ||||||
|  |  | ||||||
|       <template #title> |       <template #title> | ||||||
|         <ai-title |         <ai-title | ||||||
|           title="事件详情" |           title="事件详情" | ||||||
|           isShowBack |           isShowBack | ||||||
|           isShowBottomBorder |           isShowBottomBorder | ||||||
|           @onBackClick="$emit('back')" |           @onBackClick="$emit('back')"> | ||||||
|         > |  | ||||||
|           <template #rightBtn> |           <template #rightBtn> | ||||||
|             <template v-if="hasHandled"> |             <template v-if="hasHandled"> | ||||||
|               <el-button |               <el-button | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user