|
|
@ -10,20 +10,20 @@ |
|
|
|
> |
|
|
|
<el-table-column label="序号" type="index" width="80"/> |
|
|
|
|
|
|
|
<el-table-column label="月度" prop="month"/> |
|
|
|
<el-table-column label="所属社区" prop="organizationName"/> |
|
|
|
<el-table-column label="月度" prop="periodStart" :formatter="formatMonth"/> |
|
|
|
<el-table-column label="所属社区" prop="communityName"/> |
|
|
|
<el-table-column label="事项来源" prop="satisfactionSource"> |
|
|
|
<template slot-scope="{ row }"> |
|
|
|
<span |
|
|
|
:style="{ |
|
|
|
color: satisfactionSourceFormat(row.satisfactionSource).color, |
|
|
|
}"> |
|
|
|
{{ satisfactionSourceFormat(row.satisfactionSource).label }} |
|
|
|
满意度调查 |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="问题" prop="reason"/> |
|
|
|
<el-table-column label="提交时间" prop="createdTime"/> |
|
|
|
<el-table-column label="问题" prop="problemDesc"/> |
|
|
|
<el-table-column label="提交时间" prop="periodStart"/> |
|
|
|
<el-table-column label="姓名" prop="name"/> |
|
|
|
<el-table-column label="电话" prop="mobile"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -47,6 +47,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { requestPost } from "@/js/dai/request"; |
|
|
|
import Breadcrumb from "@/views/dataBoard/satisfactionEval/components/Breadcrumb"; |
|
|
|
import Pagination from "@/views/dataBoard/satisfactionEval/components/Pagination"; |
|
|
|
import Title from "@/views/dataBoard/satisfactionEval/components/Title"; |
|
|
@ -113,13 +114,35 @@ export default { |
|
|
|
this.queryParams.pageNo = 1; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
getList() { |
|
|
|
formatMonth(row, column) { |
|
|
|
// 自定义格式化函数,提取年份和月份 |
|
|
|
const date = new Date(row.periodStart); |
|
|
|
const year = date.getFullYear(); |
|
|
|
const month = (date.getMonth() + 1).toString().padStart(2, '0'); // 补零 |
|
|
|
return `${year}-${month}`; |
|
|
|
}, |
|
|
|
async getList() { |
|
|
|
this.loading = true |
|
|
|
this.$http.get("/governance/satisfactionDetailList/getUnsatisfiedMattersList?" + this.$paramsFormat(this.queryParams)).then(({data: {data}}) => { |
|
|
|
this.list = data.list; |
|
|
|
this.total = data.total; |
|
|
|
this.loading = false |
|
|
|
|
|
|
|
const url = "/governance/provinceEvaluationRecord/pageInfo"; |
|
|
|
|
|
|
|
const formData={ |
|
|
|
agencyId:this.queryParams.agencyId, |
|
|
|
// orgCategoryCode:"province" |
|
|
|
}; |
|
|
|
const pageSize = this.queryParams.pageSize; |
|
|
|
const pageNo = this.queryParams.pageNo; |
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
|
pageSize, |
|
|
|
pageNo, |
|
|
|
...formData, |
|
|
|
}); |
|
|
|
if (code === 0) { |
|
|
|
this.list = data.list; |
|
|
|
this.total = data.total; |
|
|
|
this.loading = false |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
satisfactionSourceFormat(val) { |
|
|
|
let satisfactionSource = this.satisfactionSourceOptions.filter((item) => item.value === val)[0]; |
|
|
|