From ca8cf61b9b31099ea843c36bf9da4740650cfbc9 Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期三, 18 十月 2023 16:53:33 +0800
Subject: [PATCH] 操作证模块调整

---
 src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue |   29 ++++++++++++++++++++---------
 1 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue b/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
index f8cf1a8..e679650 100644
--- a/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
+++ b/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
@@ -142,7 +142,7 @@
       dataList: [],
       url: {
         list: '/mdc/efficiencyReport/efficiencyList',
-        listByType: '/mdc/MdcUtilizationRate/getByType'
+        listByType: '/mdc/MdcUtilizationRate/getByType',
       },
       tableHeads: [],
 
@@ -319,7 +319,7 @@
       $("#Efficiency").table2excel({
         exclude: ".noExl",
         name: "Excel Document Name",
-        filename: "鍒╃敤鐜�",
+        filename: "璁惧鍒╃敤鐜�",
         exclude_img: true,
         fileext: ".xls",
         exclude_links: true,
@@ -336,6 +336,8 @@
     dateParamChange(v1, v2) {
       this.queryParam.startTime = v2[0]
       this.queryParam.endTime = v2[1]
+      // 鐐瑰嚮鏃堕棿閫夋嫨鍣ㄧ殑娓呯┖鎸夐挳鏃朵細瑙﹀彂姝ゅ垽鏂�(鐐瑰嚮閲嶇疆鎸夐挳涓嶄細瑙﹀彂)锛屽疄鐜伴噸缃垪琛ㄥ姛鑳斤紝鍒囧疄鏀瑰彉鍒楄〃鏄剧ず鏁堟灉
+      if(!this.queryParam.startTime&&!this.queryParam.endTime)this.searchReset()
     },
     efficiencyOptionsOnChange(checkedList) {
       let index = checkedList.indexOf('lyl')
@@ -374,14 +376,21 @@
     //   // this.onClearSelected()
     // },
     searchQuery() {
-      if(this.queryParam.typeTree == "1"){
-        this.queryParam.parentId =  this.queryParamEquip.parentId
-        this.queryParam.equipmentId = this.queryParamEquip.equipmentId
+      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.loadData()
       }else{
-        this.queryParam.parentId = this.queryParamPeople.parentId
-        this.queryParam.equipmentId = ""
+        this.$notification.warning({
+          message:'娑堟伅',
+          description:"璇烽�夋嫨鏃堕棿"
+        });
       }
-      this.loadData()
       // this.onClearSelected()
     },
     searchReset() {
@@ -432,8 +441,10 @@
   z-index: 1;
 }
 .table tbody tr .wenzi{
+  /*writing-mode: vertical-lr;*/
+  /*text-orientation: upright;*/
+  transform: rotate(360deg);
   writing-mode: vertical-lr;
-  text-orientation: upright;
   letter-spacing: 2px;
 }
 .table tbody tr .kaitou{

--
Gitblit v1.9.3