From e92b0a4ff4001698ebefd1732e7036bc9738942b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Mon, 31 Mar 2025 10:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86-=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E9=85=8D=E7=BD=AE=E3=80=91=E5=A6=82=E5=9B=BE=E6=89=80?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E9=80=89=E6=8B=A9=E7=BB=9F=E8=AE=A1=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=AE=B5=E6=9C=AA=E5=9B=9E=E6=98=BE,=E5=88=86?= =?UTF-8?q?=E6=9E=90=E6=8A=A5=E5=91=8A=E9=A1=B5=E9=9D=A2=E5=8A=A0=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +- .../modules/shequzhili/Delivery/index.vue | 1 - .../shequzhili/analysis/cpts/event-list.vue | 247 ++++++++++++++++++ .../modules/shequzhili/analysis/index.vue | 135 +++++++--- .../shequzhili/event/cpts/event-info.vue | 8 +- .../modules/workSys/sysConfigure/index.vue | 9 +- 6 files changed, 350 insertions(+), 55 deletions(-) create mode 100644 src/views/modules/shequzhili/analysis/cpts/event-list.vue diff --git a/package.json b/package.json index cd56f997b..8ebf1acca 100644 --- a/package.json +++ b/package.json @@ -67,10 +67,7 @@ "vue-quill-editor": "^3.0.6", "vue-router": "^3.0.7", "vuex": "^3.1.1", - "xlsx": "^0.17.1", - "exceljs": "^4.2.0", - "FileSaver": "^0.10.0", - "file-saver": "^2.0.5" + "xlsx": "^0.17.1" }, "devDependencies": { "@antv/f2": "^3.8.10-beta.1", diff --git a/src/views/modules/shequzhili/Delivery/index.vue b/src/views/modules/shequzhili/Delivery/index.vue index 35b8ef321..fa87b02f4 100644 --- a/src/views/modules/shequzhili/Delivery/index.vue +++ b/src/views/modules/shequzhili/Delivery/index.vue @@ -88,7 +88,6 @@
-
导出 diff --git a/src/views/modules/shequzhili/analysis/cpts/event-list.vue b/src/views/modules/shequzhili/analysis/cpts/event-list.vue new file mode 100644 index 000000000..e7a40251f --- /dev/null +++ b/src/views/modules/shequzhili/analysis/cpts/event-list.vue @@ -0,0 +1,247 @@ + + + diff --git a/src/views/modules/shequzhili/analysis/index.vue b/src/views/modules/shequzhili/analysis/index.vue index 2ddffc632..abcb5144c 100644 --- a/src/views/modules/shequzhili/analysis/index.vue +++ b/src/views/modules/shequzhili/analysis/index.vue @@ -73,13 +73,14 @@
-
+
收件/派件
-
+
{{ analysisList.total }}
-
+
收件数 描述图标 @@ -95,7 +96,7 @@
-
办理
+
办理
@@ -114,7 +115,7 @@
-
办结
+
办结
@@ -128,12 +129,14 @@ content="在统计时段内所有“未办结”状态的事件数" placement="top"> 描述图标
--> -
{{ analysisList.onTimeCompleteTotal?analysisList.onTimeCompleteTotal:"0"}}
+
{{ + analysisList.onTimeCompleteTotal?analysisList.onTimeCompleteTotal:"0"}}
按时办结数 描述图标
-
{{ analysisList.overTimeCompleteTotal?analysisList.overTimeCompleteTotal:"0"}}
+
{{ + analysisList.overTimeCompleteTotal?analysisList.overTimeCompleteTotal:"0"}}
超期办结数 描述图标 @@ -142,7 +145,7 @@
-
退件/不合规申请件
+
退件/不合规申请件
@@ -172,7 +175,7 @@
-
退件/不合规申请件
+
退件/不合规申请件
@@ -197,7 +200,7 @@
- + @@ -213,7 +216,7 @@
-
+
{{ item.label }}
@@ -257,15 +260,16 @@ :show-overflow-tooltip="true"> - + + :show-overflow-tooltip="true"> + + @@ -509,10 +526,13 @@ import areaNoSameList from "./areaNoSameList"; import addComplainList from "./addComplainList"; import echartsAffairs from "./cpts/echarts-affairs.vue"; import markDown from "./markDown.vue"; +import eventList from "./cpts/event-list.vue" +import moment from 'moment'; export default { - components: { TableRow, formList, eventInfo, areaSameList, mobileList, areaNoSameList, addComplainList, echartsAffairs ,markDown}, + components: {eventList,TableRow, formList, eventInfo, areaSameList, mobileList, areaNoSameList, addComplainList, echartsAffairs ,markDown}, data() { return { + showEventList:false, selectedIndex: 0, titleList: [ { @@ -848,6 +868,7 @@ export default { }, watch: {}, async mounted() { + this.user = this.$store.state.user; this.agencyId = this.user.agencyId; this.getLastMonthRange() @@ -857,10 +878,43 @@ export default { // this.initEcharts(); await this.EventCategoryAnalysis(); await this.EventCate(); - this.getCategoryTree() + this.getCategoryTree(); + this.sysAdvancedPage() }, methods: { + async sysAdvancedPage(row) { + const url = '/governance/icEventConfig/getStreetConfigDetail'; + const param = { + orgId: this.agencyId, + }; + const { data, code, msg } = await requestGet(url, param); + if (code === 0) { + console.log(data,"高级配置"); + if (data.reportPeriod==='week') { + const start = moment().startOf('week').startOf('day').format('YYYY-MM-DD HH:mm:ss'); + const end = moment().endOf('week').endOf('day').format('YYYY-MM-DD HH:mm:ss'); + this.formData.queryDateStart=start; + this.formData.queryDateEnd=end + + }else if(data.reportPeriod==="month"){ + const start = moment().startOf('month').startOf('day').format('YYYY-MM-DD HH:mm:ss'); + const end = moment().endOf('month').endOf('day').format('YYYY-MM-DD HH:mm:ss'); + this.formData.queryDateStart=start; + this.formData.queryDateEnd=end + }else{ + const start = moment().startOf('year').startOf('day').format('YYYY-MM-DD HH:mm:ss'); + const end = moment().endOf('year').endOf('day').format('YYYY-MM-DD HH:mm:ss'); + this.formData.queryDateStart=start; + this.formData.queryDateEnd=end + } + } else { + this.$message.error(msg); + } + }, + handleEventClose(){ + this.showEventList=false + }, regexChat(str) { const regex = /"content":"(.*?)"/g; const matches = []; @@ -957,20 +1011,23 @@ export default { } }, onEventNum(data) { - if (data == "resolve") { - this.$router.push({ name: 'eventHandling', params: { params: data } }); - } else if (data == "unResolve") { - this.$router.push({ name: 'eventHandling', params: { params: data } }); - } else if (data == "1") { - this.$router.push({ name: 'timeOut', params: { params: data } }); - } else if (data == "2") { - this.$router.push({ name: 'timeOut', params: { params: data } }); - } else if (data == "3") { - this.$router.push({ name: 'workpiece', params: { params: data } }); - } - else { - this.$router.push({ name: 'eventHandling' }); - } + this.showEventList=true + console.log(this.showEventList,"sdkjfdslkjsd"); + + // if (data == "resolve") { + // this.$router.push({ name: 'eventHandling', params: { params: data } }); + // } else if (data == "unResolve") { + // this.$router.push({ name: 'eventHandling', params: { params: data } }); + // } else if (data == "1") { + // this.$router.push({ name: 'timeOut', params: { params: data } }); + // } else if (data == "2") { + // this.$router.push({ name: 'timeOut', params: { params: data } }); + // } else if (data == "3") { + // this.$router.push({ name: 'workpiece', params: { params: data } }); + // } + // else { + // this.$router.push({ name: 'eventHandling' }); + // } }, calculateRowspan(item) { diff --git a/src/views/modules/shequzhili/event/cpts/event-info.vue b/src/views/modules/shequzhili/event/cpts/event-info.vue index 1a90dc3b3..40d14a5bf 100644 --- a/src/views/modules/shequzhili/event/cpts/event-info.vue +++ b/src/views/modules/shequzhili/event/cpts/event-info.vue @@ -1,12 +1,8 @@