From ce70bd97c7f2577f0978b39b9da1ccdd8d5b768f Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 19 九月 2025 22:50:14 +0800
Subject: [PATCH] 机床增加设备编号

---
 src/views/flowmgr/timeoutQuery.vue |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/src/views/flowmgr/timeoutQuery.vue b/src/views/flowmgr/timeoutQuery.vue
index 4ecd7cf..a71fb8b 100644
--- a/src/views/flowmgr/timeoutQuery.vue
+++ b/src/views/flowmgr/timeoutQuery.vue
@@ -17,13 +17,18 @@
       @on-load="onLoad"
     >
       <template #menu-left>
-        <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleEdit">瀵煎嚭</el-button>
+        <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleExport">瀵煎嚭</el-button>
       </template>
     </avue-crud>
   </basic-container>
 </template>
 
 <script>
+import { exportBlob } from '@/api/common';
+import { getToken } from '@/utils/auth';
+import NProgress from 'nprogress';
+import { downloadXls } from '@/utils/util';
+import 'nprogress/nprogress.css';
 export default {
   data() {
     return {
@@ -44,6 +49,7 @@
             endPlaceholder: '鏃ユ湡缁撴潫鑼冨洿鑷畾涔�',
             span: 6
           },
+		  
           {
             label: '鎵ц浜哄憳',
             prop: 'assigneeName',
@@ -110,8 +116,20 @@
       this.onLoad(params);
       done();
     },
-    handleEdit(row,index) {
-      
+    handleExport() {
+      this.$confirm('鏄惁瀵煎嚭?', '鎻愮ず', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning',
+      }).then(() => {
+        NProgress.start();
+        exportBlob(
+          `/blade-mdm/flow/mgr/overtime-export?${this.website.tokenHeader}=${getToken()}`
+        ).then(res => {
+          downloadXls(res.data, `瓒呮椂瀵煎嚭${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
+          NProgress.done();
+        });
+      });
     },
     searchReset() {
       //this.onLoad(this.mypage);
@@ -140,7 +158,6 @@
         this.searchForm.createTimeBegin = this.searchForm.daterange[0];
         this.searchForm.createTimeEnd = this.searchForm.daterange[1];
       }
-      console.log(this.searchForm,111)
       this.loading = true;
       axios({
         url: '/blade-mdm/flow/mgr/overtime-list',

--
Gitblit v1.9.3