From 4ef0342708910d02453fdcfae2148eadbf6d7004 Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期三, 05 六月 2024 11:34:21 +0800
Subject: [PATCH] 1、设备综合效率分析页面表格列属性ellipsis开启后内容若超出盒子宽度则出现与表头错位现象,而无法实现ellipsis开启后内容超出单元格则省略功能,现采取增加列宽度方式且关闭ellipsis属性功能方法解决问题 2、设备综合效率分析页面调整计算表格垂直滚动条方法以试图解决项目服务器上无法正常显示水平滚动条问题

---
 src/views/eam/EquipmentMaintenancePlanList.vue |   39 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 38 insertions(+), 1 deletions(-)

diff --git a/src/views/eam/EquipmentMaintenancePlanList.vue b/src/views/eam/EquipmentMaintenancePlanList.vue
index 5d10f17..0b94b4a 100644
--- a/src/views/eam/EquipmentMaintenancePlanList.vue
+++ b/src/views/eam/EquipmentMaintenancePlanList.vue
@@ -23,6 +23,23 @@
               ></j-input>
             </a-form-item>
           </a-col>
+           <!-- 鎸夊垱寤烘椂闂磋寖鍥存绱� -->
+          <a-col
+            :xl="6"
+            :lg="7"
+            :md="8"
+            :sm="24">
+            <a-form-item label="鍒涘缓鏃堕棿">
+              <a-range-picker
+                v-model="ranges"
+                style="width:100%"
+                format="YYYY-MM-DD HH:mm:ss"
+                showTime
+                placeholder="璇烽�夋嫨鍒涘缓鏃堕棿"
+                @change="changeDate"
+              />
+            </a-form-item>
+          </a-col>
           <a-col
             :xl="6"
             :lg="7"
@@ -37,6 +54,8 @@
               />
             </a-form-item>
           </a-col>
+         
+
           <a-col
             :xl="6"
             :lg="7"
@@ -267,6 +286,7 @@
   data() {
     return {
       description: '淇濆吇璁″垝绠$悊椤甸潰',
+      ranges:[],
       // 琛ㄥご
       columns: [
         {
@@ -383,6 +403,11 @@
       this.equipmentMaintenancePlanDetailMainId = selectionRows[0]['id']
       this.mainStatus = selectionRows[0]['status']
     },
+    searchReset() {
+      this.queryParam = {}
+      this.ranges = []
+      this.loadData()
+    },
     loadData(arg) {
       if (!this.url.list) {
         this.$message.error("璇疯缃畊rl.list灞炴��!")
@@ -466,7 +491,19 @@
       }).finally(res => {
         this.loadData();
       })
-    }
+    },
+    // 灏唕anges杞寲涓哄紑濮嬫椂闂村拰缁撴潫鏃堕棿
+    changeDate() {
+      if (this.ranges.length === 0) {
+        this.queryParam.beginTime = ''
+        this.queryParam.endTime = ''
+      } else {
+        //鍚庣鎶ヨ繖涓敊rejected value ["2024-03-14T06:26:38.692Z"]
+        this.queryParam.beginTime = this.ranges[0].format('YYYY-MM-DD')
+        this.queryParam.endTime = this.ranges[1].format('YYYY-MM-DD')
+      }
+    },
+
   }
 }
 </script>

--
Gitblit v1.9.3