From d7a8405c0f57f8947f971b798d3e4713a8d1800f Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期四, 15 五月 2025 16:49:39 +0800
Subject: [PATCH] 1、利用率分段分析页面增加导出功能,默认进入页面的计算时间段修改为00:00至23:59 2、设备管理页面增加设备属性的维护(普通、重点)同时TEEP页面新增对应筛选条件 3、看板增加MES产量数据展示(饼图里面改为设备产量对比,饼图下方增加两行展示计划量和完成量数目,点击饼图出现弹窗展示对应车间或车间工段下产量列表)2h 4、设备管理页面新增字段展示权限(弹窗中设备状态字段增加菜单按钮权限控制显隐) 5、OEE计算弹窗新增loading提示与计算成功后刷新列表功能 6、删除用户管理冗余字段展示

---
 src/views/mdc/base/modules/DeviceLog/LogList.vue |   44 +++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 41 insertions(+), 3 deletions(-)

diff --git a/src/views/mdc/base/modules/DeviceLog/LogList.vue b/src/views/mdc/base/modules/DeviceLog/LogList.vue
index 4888611..7fbc7be 100644
--- a/src/views/mdc/base/modules/DeviceLog/LogList.vue
+++ b/src/views/mdc/base/modules/DeviceLog/LogList.vue
@@ -20,7 +20,7 @@
   import JDictSelectTag from '@/components/dict/JDictSelectTag'
   import {
     requestPut,
-    deleteAction
+    deleteAction, downFile
   } from '@/api/manage'
 
   import JInput from '@/components/jeecg/JInput'
@@ -141,7 +141,10 @@
             align: 'center',
             dataIndex: 'sequenceNumber'
           }
-        ]
+        ],
+        url: {
+          exportXlsUrl: '/mdc/mdcEquipmentRunningSection/exportLogXls'
+        },
       }
     },
     methods: {
@@ -174,7 +177,42 @@
             }
           }
         }
-      }
+      },
+
+      handleExportXls(fileName){
+        if(!fileName || typeof fileName != "string"){
+          fileName = "瀵煎嚭鏂囦欢"
+        }
+        let param = this.getQueryParams();
+        if(this.selectedRowKeys && this.selectedRowKeys.length>0){
+          param['selections'] = this.selectedRowKeys.join(",")
+        }
+        console.log("瀵煎嚭鍙傛暟",param)
+        downFile(this.url.exportXlsUrl,param).then((data)=>{
+          if (!data) {
+            // this.$message.warning("鏂囦欢涓嬭浇澶辫触")
+            this.$notification.warning({
+              message:'娑堟伅',
+              description:"鏂囦欢涓嬭浇澶辫触"
+            });
+            return
+          }
+          if (typeof window.navigator.msSaveBlob !== 'undefined') {
+            window.navigator.msSaveBlob(new Blob([data],{type: 'application/vnd.ms-excel'}), fileName+'.xls')
+          }else{
+            let url = window.URL.createObjectURL(new Blob([data],{type: 'application/vnd.ms-excel'}))
+            let link = document.createElement('a')
+            link.style.display = 'none'
+            link.href = url
+            link.setAttribute('download', fileName+'.xls')
+            document.body.appendChild(link)
+            link.click()
+            document.body.removeChild(link); //涓嬭浇瀹屾垚绉婚櫎鍏冪礌
+            window.URL.revokeObjectURL(url); //閲婃斁鎺塨lob瀵硅薄
+          }
+        })
+      },
+
     },
     created() {
     }

--
Gitblit v1.9.3