From e055d2d93b516985fbc2df0f6f5a135f3230cccf Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 14 三月 2024 11:13:47 +0800
Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/vue_mdc_430 into develop

---
 src/views/mdc/base/modules/DeviceProcessReport/DeviceProcessReportList.vue |   34 +++++++++++++++-------------------
 1 files changed, 15 insertions(+), 19 deletions(-)

diff --git a/src/views/mdc/base/modules/DeviceProcessReport/DeviceProcessReportList.vue b/src/views/mdc/base/modules/DeviceProcessReport/DeviceProcessReportList.vue
index f301ebf..f6ae0f2 100644
--- a/src/views/mdc/base/modules/DeviceProcessReport/DeviceProcessReportList.vue
+++ b/src/views/mdc/base/modules/DeviceProcessReport/DeviceProcessReportList.vue
@@ -12,6 +12,7 @@
                     :data-source="driveTypeList"
                     placeholder="璇烽�夋嫨椹卞姩绫诲瀷"
                     :filter-option="filterOption"
+                    allowClear
                   />
                 </a-form-item>
               </a-col>
@@ -209,9 +210,13 @@
     methods: {
       dateParamChange(value) {
         this.dates = value
-        console.log('value', value)
-        this.queryParam.startTime = moment(this.dates[0]).format('YYYYMMDD')
-        this.queryParam.endTime = moment(this.dates[1]).format('YYYYMMDD')
+        if(!value.length) {
+          delete this.queryParam.startTime
+          delete this.queryParam.endTime
+        }else{
+          this.queryParam.startTime = moment(this.dates[0]).format('YYYYMMDD')
+          this.queryParam.endTime = moment(this.dates[1]).format('YYYYMMDD')
+        }
       },
 
       exportExcel() {
@@ -227,24 +232,15 @@
       },
 
       searchQuery() {
-        if (this.dates != '') {
-          if (this.queryParam.typeTree == '1') {
-            this.queryParam.parentId = this.queryParamEquip.parentId
-            this.queryParam.equipmentId = this.queryParamEquip.equipmentId
-          } else {
-            this.queryParam.parentId = this.queryParamPeople.parentId
-            this.queryParam.equipmentId = ''
-          }
-          this.queryParam.pageNo = 1
-          this.loadData()
+        if (this.queryParam.typeTree == '1') {
+          this.queryParam.parentId = this.queryParamEquip.parentId
+          this.queryParam.equipmentId = this.queryParamEquip.equipmentId
         } else {
-          // this.$message.warning("璇烽�夋嫨鏃堕棿")
-          this.$notification.warning({
-            message: '娑堟伅',
-            description: '璇烽�夋嫨鏃堕棿'
-          })
+          this.queryParam.parentId = this.queryParamPeople.parentId
+          this.queryParam.equipmentId = ''
         }
-        // this.onClearSelected()
+        this.queryParam.pageNo = 1
+        this.loadData()
       },
 
       searchReset() {

--
Gitblit v1.9.3