6 changed files with 228 additions and 16 deletions
@ -0,0 +1,106 @@ |
|||||
|
<template> |
||||
|
<el-card shadow="never" class="aui-card--fill"> |
||||
|
<div class="mod-news__housinginformation}"> |
||||
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
||||
|
<el-button type="primary" @click="backToUserRelationList">{{"返回"}}</el-button> |
||||
|
</el-form> |
||||
|
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;"> |
||||
|
<el-table-column label="序号" width="70px" header-align="center" align="center"><template slot-scope="scope">{{scope.$index+1}}</template></el-table-column> |
||||
|
<el-table-column prop="state" label="状态" header-align="center" align="center" :formatter="showStateFlag"></el-table-column> |
||||
|
<el-table-column prop="advice" label="意见" header-align="center" align="center"></el-table-column> |
||||
|
<el-table-column prop="handlerDept" label="操作人部门" header-align="center" align="center" width="200px"></el-table-column> |
||||
|
<el-table-column prop="mobile" label="操作人联系方式" header-align="center" align="center"></el-table-column> |
||||
|
<el-table-column prop="createdTime" label="创建时间" header-align="center" align="center"></el-table-column> |
||||
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
||||
|
<template slot-scope="scope"> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
<el-pagination |
||||
|
:current-page="page" |
||||
|
:page-sizes="[10, 20, 50, 100]" |
||||
|
:page-size="limit" |
||||
|
:total="total" |
||||
|
layout="total, sizes, prev, pager, next, jumper" |
||||
|
@size-change="pageSizeChangeHandle" |
||||
|
@current-change="pageCurrentChangeHandle"> |
||||
|
</el-pagination> |
||||
|
</div> |
||||
|
</el-card> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import mixinViewModule from '@/mixins/view-module' |
||||
|
|
||||
|
export default { |
||||
|
mixins: [mixinViewModule], |
||||
|
data () { |
||||
|
return { |
||||
|
mixinViewModuleOptions: { |
||||
|
getDataListURL: '/events/maintainissue/pageIssuesHandle', |
||||
|
getDataListIsPage: true, |
||||
|
deleteURL: '/events/maintainissue/deleteIssues', |
||||
|
deleteIsBatch: true |
||||
|
}, |
||||
|
dataForm: { |
||||
|
id: '', |
||||
|
issueId: '' |
||||
|
}, |
||||
|
eventId: '' |
||||
|
} |
||||
|
}, |
||||
|
mounted () { |
||||
|
if (this.$route.query.issueId !== '' && this.$route.query.issueId != null) { |
||||
|
this.dataForm.issueId = this.$route.query.issueId |
||||
|
this.getDataList() |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
showStateFlag (row, column) { |
||||
|
let state = row.state |
||||
|
if (state === 0) { |
||||
|
return '审核通过' |
||||
|
} else if (state === 1) { |
||||
|
return '回应' |
||||
|
} else if (state === 2) { |
||||
|
return '关闭' |
||||
|
} else if (state === 3) { |
||||
|
return '话题转议题' |
||||
|
} |
||||
|
}, |
||||
|
backToUserRelationList () { |
||||
|
this.$emit('refreshDataList') |
||||
|
this.$parent.selectComponent = 'IssuessummaryList' |
||||
|
this.$router.push({ path: '/events-eventssummaryroute', query: { eventId: this.eventId } }) |
||||
|
}, |
||||
|
getDataList () { |
||||
|
this.dataListLoading = true |
||||
|
this.$http.get( |
||||
|
this.mixinViewModuleOptions.getDataListURL, |
||||
|
{ |
||||
|
params: { |
||||
|
order: this.order, |
||||
|
orderField: this.orderField, |
||||
|
page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, |
||||
|
limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, |
||||
|
...this.dataForm |
||||
|
} |
||||
|
} |
||||
|
).then(({ data: res }) => { |
||||
|
this.dataListLoading = false |
||||
|
this.radio = 0 |
||||
|
if (res.code !== 0) { |
||||
|
this.dataList = [] |
||||
|
this.total = 0 |
||||
|
return this.$message.error(res.msg) |
||||
|
} |
||||
|
this.dataList = res.data.list |
||||
|
this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0 |
||||
|
this.eventId = res.data.list[0].eventId |
||||
|
}).catch(() => { |
||||
|
this.dataListLoading = false |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
@ -0,0 +1,103 @@ |
|||||
|
<template> |
||||
|
<el-card shadow="never" class="aui-card--fill"> |
||||
|
<div class="mod-news__housinginformation}"> |
||||
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
||||
|
<el-button type="primary" @click="backToUserRelationList">{{"返回"}}</el-button> |
||||
|
</el-form> |
||||
|
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;"> |
||||
|
<el-table-column label="序号" width="70px" header-align="center" align="center"><template slot-scope="scope">{{scope.$index+1}}</template></el-table-column> |
||||
|
<el-table-column prop="state" label="状态" header-align="center" align="center" :formatter="showStateFlag"></el-table-column> |
||||
|
<el-table-column prop="advice" label="外部意见" header-align="center" align="center"></el-table-column> |
||||
|
<el-table-column prop="handlerDept" label="操作人部门" header-align="center" align="center" width="200px"></el-table-column> |
||||
|
<el-table-column prop="createdTime" label="创建时间" header-align="center" align="center"></el-table-column> |
||||
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
||||
|
<template slot-scope="scope"> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
<el-pagination |
||||
|
:current-page="page" |
||||
|
:page-sizes="[10, 20, 50, 100]" |
||||
|
:page-size="limit" |
||||
|
:total="total" |
||||
|
layout="total, sizes, prev, pager, next, jumper" |
||||
|
@size-change="pageSizeChangeHandle" |
||||
|
@current-change="pageCurrentChangeHandle"> |
||||
|
</el-pagination> |
||||
|
</div> |
||||
|
</el-card> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import mixinViewModule from '@/mixins/view-module' |
||||
|
|
||||
|
export default { |
||||
|
mixins: [mixinViewModule], |
||||
|
data () { |
||||
|
return { |
||||
|
mixinViewModuleOptions: { |
||||
|
getDataListURL: '/events/maintainitem/pageItemsHandle', |
||||
|
getDataListIsPage: true, |
||||
|
deleteURL: '/events/maintainitem/deleteIssues', |
||||
|
deleteIsBatch: true |
||||
|
}, |
||||
|
dataForm: { |
||||
|
id: '', |
||||
|
issueId: '' |
||||
|
}, |
||||
|
issueId: '' |
||||
|
} |
||||
|
}, |
||||
|
mounted () { |
||||
|
if (this.$route.query.itemId !== '' && this.$route.query.itemId != null) { |
||||
|
this.dataForm.itemId = this.$route.query.itemId |
||||
|
this.getDataList() |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
showStateFlag (row, column) { |
||||
|
let state = row.state |
||||
|
if (state === 0) { |
||||
|
return '处理中' |
||||
|
} else if (state === 5) { |
||||
|
return '已关闭' |
||||
|
} else if (state === 10) { |
||||
|
return '已结案' |
||||
|
} |
||||
|
}, |
||||
|
backToUserRelationList () { |
||||
|
this.$emit('refreshDataList') |
||||
|
this.$parent.selectComponent = 'ItemssummaryList' |
||||
|
this.$router.push({ path: '/events-eventssummaryroute', query: { issueId: this.issueId } }) |
||||
|
}, |
||||
|
getDataList () { |
||||
|
this.dataListLoading = true |
||||
|
this.$http.get( |
||||
|
this.mixinViewModuleOptions.getDataListURL, |
||||
|
{ |
||||
|
params: { |
||||
|
order: this.order, |
||||
|
orderField: this.orderField, |
||||
|
page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, |
||||
|
limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, |
||||
|
...this.dataForm |
||||
|
} |
||||
|
} |
||||
|
).then(({ data: res }) => { |
||||
|
this.dataListLoading = false |
||||
|
this.radio = 0 |
||||
|
if (res.code !== 0) { |
||||
|
this.dataList = [] |
||||
|
this.total = 0 |
||||
|
return this.$message.error(res.msg) |
||||
|
} |
||||
|
this.dataList = res.data.list |
||||
|
this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0 |
||||
|
this.issueId = res.data.list[0].issueId |
||||
|
}).catch(() => { |
||||
|
this.dataListLoading = false |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
Loading…
Reference in new issue