From 01f62968de39cacddaed903bb936cc5163573fc4 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期五, 23 十二月 2022 14:51:37 +0800
Subject: [PATCH] 更改列表显示

---
 src/views/doublePreventAction/hiddenDanger/inspectionStatistics/index.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/index.vue
index 9d6ceea..13c4558 100644
--- a/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/index.vue
+++ b/src/views/doublePreventAction/hiddenDanger/inspectionStatistics/index.vue
@@ -157,16 +157,16 @@
                     startTime:'',
                     endTime:'',
                 },
-                taskListQuery:{
-                    depId:41,
-                    startTime:'',
-                    endTime:'',
-                },
                 completeListQuery:{
                     depId:41,
                     startTime:'',
                     endTime:'',
                     status:1,
+                },
+                taskListQuery:{
+                    depId:41,
+                    startTime:'',
+                    endTime:'',
                 },
                 stateList:[
                     {id:1,name:'正常'},
@@ -195,8 +195,8 @@
                 this.personListQuery.endTime = this.value1[1]
                 this.$refs.inspectionPerson.updateData(this.personListQuery)
                 this.value2 = [(newTime.getFullYear()+ '-' + ((newTime.getMonth() + 1) < 10 ? '0' + (newTime.getMonth() + 1) : (newTime.getMonth() + 1)) + '-' +  '01').toString() + ' '  + '00:00:00',(newTime.getFullYear()+ '-' + ((newTime.getMonth() + 1) < 10 ? '0' + (newTime.getMonth() + 1) : (newTime.getMonth() + 1)) + '-' + newTime.getDate()).toString() + ' ' + '23:59:59']
-                this.completeListQuery.startTime = this.value1[0]
-                this.completeListQuery.endTime = this.value1[1]
+                this.completeListQuery.startTime = this.value2[0]
+                this.completeListQuery.endTime = this.value2[1]
                 this.$refs.inspectionComplete.updateData(this.completeListQuery)
                 this.value3 = [(newTime.getFullYear()+ '-' + ((newTime.getMonth() + 1) < 10 ? '0' + (newTime.getMonth() + 1) : (newTime.getMonth() + 1)) + '-' +  '01').toString() + ' '  + '00:00:00',(newTime.getFullYear()+ '-' + ((newTime.getMonth() + 1) < 10 ? '0' + (newTime.getMonth() + 1) : (newTime.getMonth() + 1)) + '-' + newTime.getDate()).toString() + ' ' + '23:59:59']
                 this.taskListQuery.startTime = this.value3[0]
@@ -212,10 +212,10 @@
             },
             changeTimeTask(){
                 if(this.value3 !== null){
-                    this.taskListQuery.startTime = this.value1[0]
-                    this.taskListQuery.endTime = this.value1[1]
+                    this.taskListQuery.startTime = this.value3[0]
+                    this.taskListQuery.endTime = this.value3[1]
                 }
-                this.$refs.todayUnusual.updateData(this.personListQuery)
+                this.$refs.todayUnusual.updateData(this.taskListQuery)
             },
             changeCompleteTimeInspectionPerson() {
                 if(this.value2 !== null){
@@ -225,7 +225,7 @@
                 this.$refs.inspectionComplete.updateData(this.completeListQuery)
             },
             changeInspectionTask() {
-                this.$refs.todayUnusual.updateData(this.personListQuery)
+                this.$refs.todayUnusual.updateData(this.taskListQuery)
             },
             changeInspectionPerson() {
                 this.$refs.inspectionPerson.updateData(this.personListQuery)

--
Gitblit v1.9.2