Browse Source

修改省满意度数量的对接接口

feature
duanliangtao 2 years ago
parent
commit
a9f0fcf4f0
  1. 39
      src/views/dataBoard/overview/dissatisfiedProblemNumber/provinceSatisfaction.vue

39
src/views/dataBoard/overview/dissatisfiedProblemNumber/provinceSatisfaction.vue

@ -10,20 +10,20 @@
> >
<el-table-column label="序号" type="index" width="80"/> <el-table-column label="序号" type="index" width="80"/>
<el-table-column label="月度" prop="month"/> <el-table-column label="月度" prop="periodStart" :formatter="formatMonth"/>
<el-table-column label="所属社区" prop="organizationName"/> <el-table-column label="所属社区" prop="communityName"/>
<el-table-column label="事项来源" prop="satisfactionSource"> <el-table-column label="事项来源" prop="satisfactionSource">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span <span
:style="{ :style="{
color: satisfactionSourceFormat(row.satisfactionSource).color, color: satisfactionSourceFormat(row.satisfactionSource).color,
}"> }">
{{ satisfactionSourceFormat(row.satisfactionSource).label }} 满意度调查
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="问题" prop="reason"/> <el-table-column label="问题" prop="problemDesc"/>
<el-table-column label="提交时间" prop="createdTime"/> <el-table-column label="提交时间" prop="periodStart"/>
<el-table-column label="姓名" prop="name"/> <el-table-column label="姓名" prop="name"/>
<el-table-column label="电话" prop="mobile"> <el-table-column label="电话" prop="mobile">
<template slot-scope="scope"> <template slot-scope="scope">
@ -47,6 +47,7 @@
</template> </template>
<script> <script>
import { requestPost } from "@/js/dai/request";
import Breadcrumb from "@/views/dataBoard/satisfactionEval/components/Breadcrumb"; import Breadcrumb from "@/views/dataBoard/satisfactionEval/components/Breadcrumb";
import Pagination from "@/views/dataBoard/satisfactionEval/components/Pagination"; import Pagination from "@/views/dataBoard/satisfactionEval/components/Pagination";
import Title from "@/views/dataBoard/satisfactionEval/components/Title"; import Title from "@/views/dataBoard/satisfactionEval/components/Title";
@ -113,13 +114,35 @@ export default {
this.queryParams.pageNo = 1; this.queryParams.pageNo = 1;
this.getList(); 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.loading = true
this.$http.get("/governance/satisfactionDetailList/getUnsatisfiedMattersList?" + this.$paramsFormat(this.queryParams)).then(({data: {data}}) => {
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.list = data.list;
this.total = data.total; this.total = data.total;
this.loading = false this.loading = false
}); }
}, },
satisfactionSourceFormat(val) { satisfactionSourceFormat(val) {
let satisfactionSource = this.satisfactionSourceOptions.filter((item) => item.value === val)[0]; let satisfactionSource = this.satisfactionSourceOptions.filter((item) => item.value === val)[0];

Loading…
Cancel
Save