From 7f76d4b5d52d9f6ae65c429fe26faf3a7f730dba Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 27 二月 2025 10:56:02 +0800
Subject: [PATCH] 1、新增车间看板页面、大屏车间入口及大屏车间管理页面 2、新增vue-drag-resize和dataV插件

---
 src/views/mdc/base/modules/DeviceLog/LogInfo.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/views/mdc/base/modules/DeviceLog/LogInfo.vue b/src/views/mdc/base/modules/DeviceLog/LogInfo.vue
index da70e00..6031da0 100644
--- a/src/views/mdc/base/modules/DeviceLog/LogInfo.vue
+++ b/src/views/mdc/base/modules/DeviceLog/LogInfo.vue
@@ -24,6 +24,7 @@
             <a-space>
               <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
               <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button>
+              <a-button type="primary" icon="download" @click="handleExport">瀵煎嚭</a-button>
             </a-space>
           </a-col>
         </a-row>
@@ -165,7 +166,7 @@
   import AlarmLogList from './AlarmLogList'
   import WorkChartModel from './WorkChartModel'
   import WorkHistoryModel from './WorkHistoryModel'
-  import { getAction } from '@/api/manage'
+  import { downFile, getAction } from '@/api/manage'
 
   export default {
      components: {
@@ -175,7 +176,7 @@
       WorkChartModel,
       WorkHistoryModel
     },
-    props: { equipment: {} },
+    props: { selectEquipment: {} },
     data() {
       return {
         readOnly: true,
@@ -199,7 +200,8 @@
         url: {
           getBaseTree: '/mdc/mdcequipment/loadTree',
           getEquipmentByPid: '/mdc/mdcEquipment/getEquipmentByPid',
-          list: '/mdc/mdcEquipmentRunningSection/logList'
+          list: '/mdc/mdcEquipmentRunningSection/logList',
+          exportXlsUrl: '/mdc/mdcEquipmentRunningSection/exportLogXls'
         },
         ProStartId: ''
       }
@@ -342,6 +344,11 @@
 
           }
         })
+      },
+
+      handleExport(){
+        this.$refs.logList.queryParam=Object.assign({},this.queryParams,this.$refs.logList.queryParam)
+        this.$refs.logList.handleExportXls('璁惧鏃ュ織')
       }
     },
     created() {
@@ -350,7 +357,7 @@
       this.initEquipment()
     },
     watch: {
-      equipment(val) {
+      selectEquipment(val) {
         if (val && val.equipmentId) {
           this.$set(this.queryParams, 'equipmentName', val.equipmentName)
           this.$set(this.queryParams, 'equipmentId', val.equipmentId)

--
Gitblit v1.9.3