diff --git a/src/views/modules/shequzhili/Delivery/index.vue b/src/views/modules/shequzhili/Delivery/index.vue index 46166ef8b..ccc5c510c 100644 --- a/src/views/modules/shequzhili/Delivery/index.vue +++ b/src/views/modules/shequzhili/Delivery/index.vue @@ -5,8 +5,8 @@
已办结事件数
110
@@ -269,24 +268,13 @@ import nextTick from "dai-js/tools/nextTick"; import { mapGetters } from "vuex"; import axios from "axios"; import * as echarts from "echarts"; - -// import formList from "./formList"; -// import areaSameList from "./areaSameList"; -// import areaNoSameList from "./areaNoSameList"; -// import addComplainList from "./addComplainList"; -// import mobileList from "./mobileList"; import util from "@js/util.js"; -// import followDetail from "./followDetail"; -// import eventInfo from "../shequzhili/event/cpts/event-info"; -// import awoList from "@/views/modules/shequzhili/event/cpts/awoList.vue" export default { components: {}, - data() { return { searchH: 20, - formData: { queryDateStart: "", queryDateEnd: "", @@ -298,6 +286,7 @@ export default { id: "", level: "agency", }, + analysisList:{}, // 内容字段 report:{ @@ -622,6 +611,7 @@ export default { await this.initEcharts(); }, methods: { + initEcharts() { if(this.categoryCountShow){ @@ -709,6 +699,7 @@ export default { this.showFormDetail = true; } }, + // 查看 async handleLook(row) { @@ -768,8 +759,27 @@ export default { this.cleanReportData(); await this.getTableData(); await this.initEcharts(); + await this.EventCategoryAnalysis() }, + // 对总数做出统计 + async EventCategoryAnalysis(){ + const url = "/governance/icEvent/EventCategoryAnalysis"; + let params = { + startDate:this.formData.queryDateStart, + endDate:this.formData.queryDateEnd, + usableFlag:false + }; + const { data, code, msg } = await requestPost(url, params); + + if (code === 0) { + console.log(data); + this.analysisList = data; + console.log(this.analysisList); + } else { + this.$message.error(msg); + } + }, cleanReportData(){ console.log("刷新数据"); this.report={} @@ -801,7 +811,6 @@ export default { // 获取分类 async getTableData() { - const url = '/governance/dwdEvent/report'; const {formData } = this; const { data, code, internalMsg } = await requestPost(url, { diff --git a/src/views/modules/shequzhili/eventHandling/index.vue b/src/views/modules/shequzhili/eventHandling/index.vue index 34c9f08b9..b5611dffa 100644 --- a/src/views/modules/shequzhili/eventHandling/index.vue +++ b/src/views/modules/shequzhili/eventHandling/index.vue @@ -4,8 +4,8 @@