Explorar el Código

Merge remote-tracking branch 'origin/master'

yuhan hace 9 meses
padre
commit
6c296827ed

+ 14 - 3
src/components/module_interLock/UEquipmentTree/UEquipmentTree.vue

@@ -1,9 +1,12 @@
 <template>
   <div class="equipment-tree-container">
-    <div>
-      <a-button type="primary" icon="plus"  style="width:13%;" @click="handleAdd"/>
+    <div v-if="treeData.type != 'history'">
+      <a-button  type="primary" icon="plus"  style="width:13%;" @click="handleAdd"/>
       <a-input-search style="width:85%;margin-left:2%" placeholder="请输入" @change="onChange" />
     </div>
+    <div v-if="treeData.type == 'history'">
+      <a-input-search style="width:100%;margin-left:2%" placeholder="请输入" @change="onChange" />
+    </div>
 
     <div class="tree-container">
       <a-tree
@@ -18,7 +21,7 @@
         <template v-slot:title="nodeData">
           <div style="display: flex; justify-content: space-between; width: 100%;">
             <div>{{nodeData.interlockName}}</div>
-            <div>
+            <div v-if="treeData.type != 'history'">
               <a-dropdown>
                 <a-icon type="more" />
                 <a-menu slot="overlay">
@@ -52,6 +55,14 @@
     components: {
       BaseInterLockModal
     },
+    props: {
+      treeData: {
+        type: Object,
+        default: function(){
+            return {} // 使用工厂函数返回默认值
+        }
+      },
+    },
     data () {
       return {
         expandedKeys: [],

+ 1 - 1
src/views/module_interLock/interlockHistoryData/InterlockHistory/InterlockHistoryList.vue

@@ -257,7 +257,7 @@
           list: "/history/interlockDetailHistory/list1",
           delete: "/summary/interlockSummary/delete",
           deleteBatch: "/summary/interlockSummary/deleteBatch",
-          exportXlsUrl: "/summary/interlockSummary/exportXls",
+          exportXlsUrl: "/history/interlockDetailHistory/sdexportLS",
           importExcelUrl: "summary/interlockSummary/importExcel",
 
         },

+ 4 - 1
src/views/module_interLock/interlockHistoryData/InterlockHistoryIndex.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="all">
         <div class="left">
-            <u-equipment-tree @select="selectEquipment"></u-equipment-tree>
+            <u-equipment-tree @select="selectEquipment" :treeData="treeData"></u-equipment-tree>
         </div>
         <div class="right">
           <interlock-history-list ref="summaryList" :selectData="selectData"></interlock-history-list>
@@ -21,6 +21,9 @@ import InterlockHistoryList from './InterlockHistory/InterlockHistoryList.vue'
         },
         data () {
             return {
+                treeData: {
+                    type: 'history',
+                },
                 selectData: {}
             }
         },