From 48280bcd3a6d1d3125dfec1912afa92ae2ff6eee Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期二, 02 九月 2025 16:59:40 +0800
Subject: [PATCH] mdc设备台账修改,设备管理设备台账修改

---
 src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue |   77 +++++++++++++++++---------------------
 1 files changed, 34 insertions(+), 43 deletions(-)

diff --git a/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue b/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
index a5ab8df..5b433d1 100644
--- a/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
+++ b/src/views/mdc/base/modules/efficiencyReport/EfficiencyList.vue
@@ -45,27 +45,11 @@
                 </a-form-item>
               </a-col>
               <a-col :md="5" :sm="5" :xs="5">
-                <a-form-item label="璁惧绾у埆">
-                  <a-select
-                    :value="queryParams.deviceLevel"
-                    mode="multiple"
-                    placeholder="璇烽�夋嫨璁惧绾у埆"
-                    allow-clear
-                    :maxTagCount="1"
-                    @change="selectChange($event,'deviceLevel')"
-                  >
-                    <a-select-option v-for="(item,index) in device_level_list" :value="item.value" :key="index">
-                      {{item.label}}
-                    </a-select-option>
-                  </a-select>
-                </a-form-item>
-              </a-col>
-              <a-col :md="5" :sm="5" :xs="5">
-                <a-form-item label="璁惧绉嶇被">
+                <a-form-item label="鍗曞厓">
                   <a-select
                     :value="queryParams.deviceCategory"
                     mode="multiple"
-                    placeholder="璇烽�夋嫨璁惧绉嶇被"
+                    placeholder="璇烽�夋嫨鍗曞厓"
                     allow-clear
                     :maxTagCount="1"
                     @change="selectChange($event,'deviceCategory')"
@@ -82,7 +66,7 @@
               <a-col :md="24" :sm="24" :xs="24"
                      style="display: flex;justify-content: space-between;align-items: flex-start">
                 <div>
-                  <a-space style="margin-right: 20px">
+                  <a-space style="margin-right: 20px;margin-bottom: 20px">
                     <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
                     <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button>
                     <a-button type="primary" @click="exportExcel" icon="download">瀵煎嚭</a-button>
@@ -137,12 +121,14 @@
                 <template v-for="(tableHead, index) in tableHeads">
                   <th v-if="checkedList.indexOf('lyl') > -1">鍒╃敤鐜�(%)</th>
                   <th v-if="checkedList.indexOf('kjl') > -1">寮�鏈虹巼(%)</th>
+                  <th v-if="checkedList.indexOf('gzl') > -1">鏁呴殰鐜�(%)</th>
                   <th v-if="checkedList.indexOf('kjsj') > -1">寮�鏈烘椂闂�(灏忔椂)</th>
                   <th v-if="checkedList.indexOf('jgsj') > -1">鍔犲伐鏃堕棿(灏忔椂)</th>
+                  <th v-if="checkedList.indexOf('qcgz') > -1">鍔犲伐鏃堕棿(灏忔椂)锛堝幓闄ゆ晠闅滄椂闂达級</th>
                   <th v-if="checkedList.indexOf('djsj') > -1">寰呮満鏃堕棿(灏忔椂)</th>
                   <th v-if="checkedList.indexOf('gjsj') > -1">鍏虫満鏃堕棿(灏忔椂)</th>
+                  <th v-if="checkedList.indexOf('gzsj') > -1">鏁呴殰鏃堕棿(灏忔椂)</th>
                 </template>
-
               </tr>
               </thead>
               <tbody>
@@ -180,23 +166,41 @@
                 </template>
 
                 <template v-for="(tableHead, index) in item.dataList">
-                  <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('lyl') > -1">
+                  <td :style="{background:tableHead.color,minWidth:'100px',width:'100px'}"
+                      v-if="checkedList.indexOf('lyl') > -1">
                     {{tableHead.utilizationRate | numFilter}}
                   </td>
-                  <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('kjl') > -1">
+                  <td :style="{background:tableHead.color,minWidth:'100px',width:'100px' }"
+                      v-if="checkedList.indexOf('kjl') > -1">
                     {{tableHead.openRate | numFilter}}
                   </td>
-                  <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('kjsj') > -1">
+                  <td :style="{background:tableHead.color ,minWidth:'100px',width:'100px'}"
+                      v-if="checkedList.indexOf('gzl') > -1">
+                    {{tableHead.faultRate }}
+                  </td>
+                  <td :style="{background:tableHead.color,minWidth:'110px',width:'110px' }"
+                      v-if="checkedList.indexOf('kjsj') > -1">
                     {{tableHead.openLong | getFormattedTime}}
                   </td>
-                  <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('jgsj') > -1">
+                  <td :style="{background:tableHead.color,minWidth:'110px',width:'110px' }"
+                      v-if="checkedList.indexOf('jgsj') > -1">
                     {{tableHead.processLong | getFormattedTime}}
                   </td>
-                  <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('djsj') > -1">
+                  <td :style="{background:tableHead.color,minWidth:'220px',width:'220px' }"
+                      v-if="checkedList.indexOf('qcgz') > -1">
+                    {{tableHead.removeFaultRunLong | getFormattedTime}}
+                  </td>
+                  <td :style="{background:tableHead.color,minWidth:'110px',width:'110px' }"
+                      v-if="checkedList.indexOf('djsj') > -1">
                     {{tableHead.waitLong | getFormattedTime}}
                   </td>
-                  <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('gjsj') > -1">
+                  <td :style="{background:tableHead.color,minWidth:'110px',width:'110px' }"
+                      v-if="checkedList.indexOf('gjsj') > -1">
                     {{tableHead.closeLong | getFormattedTime}}
+                  </td>
+                  <td :style="{background:tableHead.color,minWidth:'110px' ,width:'110px'}"
+                      v-if="checkedList.indexOf('gzsj') > -1">
+                    {{tableHead.faultLong | getFormattedTime}}
                   </td>
                 </template>
 
@@ -204,7 +208,6 @@
 
               </tbody>
             </table>
-
           </div>
         </div>
       </a-spin>
@@ -228,8 +231,6 @@
         typeTree: '',
         typeParent: 1,
         typeEquipment: 1,
-        TreeIDOne: 1,
-        TreeIDTwo: 2,
         deviceTypeDict: '',
         dates: [],
         equipmentTypeList: [],
@@ -249,10 +250,13 @@
         efficiencyOptions: [
           { label: '鍒╃敤鐜�', value: 'lyl' },
           { label: '寮�鏈虹巼', value: 'kjl' },
+          { label: '鏁呴殰鐜�', value: 'gzl' },
           { label: '寮�鏈烘椂闂�', value: 'kjsj' },
           { label: '鍔犲伐鏃堕棿', value: 'jgsj' },
+          { label: '鍔犲伐鏃堕棿锛堝幓闄ゆ晠闅滄椂闂达級', value: 'qcgz' },
           { label: '寰呮満鏃堕棿', value: 'djsj' },
-          { label: '鍏虫満鏃堕棿', value: 'gjsj' }
+          { label: '鍏虫満鏃堕棿', value: 'gjsj' },
+          { label: '鏁呴殰鏃堕棿', value: 'gzsj' }
         ],
         checkedList: ['lyl'],
         dataList: [],
@@ -263,12 +267,6 @@
         },
         tableHeads: [],
         distinguishColorList: [],
-        utilizationRateRowAverage: '',
-        openRateRowAverage: '',
-        openLongRowAverage: '',
-        processLongRowAverage: '',
-        waitLongRowAverage: '',
-        closeLongRowAverage: '',
         spinning: false
       }
     },
@@ -728,17 +726,10 @@
 
   .dataContent {
     white-space: nowrap;
-    /*margin: 0;*/
-    /*border: none;*/
     border-collapse: separate;
     border-spacing: 0;
-    /*table-layout: fixed;*/
     border: 1px solid #ccc;
-    /*border: 1px solid #ccc;*/
     width: 100%;
-    /*height: 100%;*/
-    /*overflow: hidden;*/
-    /*overflow-y: auto;*/
     text-align: center;
   }
 

--
Gitblit v1.9.3