From fd307873b67f5a71817fe54226b2a104b6081d48 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 16 八月 2025 23:20:06 +0800
Subject: [PATCH] 修改文字

---
 src/views/flowmgr/programexport.vue |   86 +++++++++++++++++++++++++++++++++++++++---
 1 files changed, 79 insertions(+), 7 deletions(-)

diff --git a/src/views/flowmgr/programexport.vue b/src/views/flowmgr/programexport.vue
index 14dccd9..9447499 100644
--- a/src/views/flowmgr/programexport.vue
+++ b/src/views/flowmgr/programexport.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2025-06-20 20:48:17
  * @LastEditors: 鏉庡枂(寮�鍙戠粍) lzhe@yxqiche.com
- * @LastEditTime: 2025-08-11 15:59:15
+ * @LastEditTime: 2025-08-11 16:34:15
  * @FilePath: /mdmweb/src/views/flowmgr/programexport.vue
 -->
 <template>
@@ -23,7 +23,7 @@
                 </avue-crud>
             </el-tab-pane>
             <el-tab-pane label="宸插姙" name="completed">
-                <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange"
+                <avue-crud :option="optionCompleted" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange"
                     @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange">
                     <template #menu-left>
                         <!-- <el-button type="primary" plain @click="exportWebSite">瀵煎嚭鍥炰紶娑夊瘑缃�</el-button> -->
@@ -88,7 +88,7 @@
                         prop: 'title',
                     },
                     {
-                        label: '鍥惧彿',
+                        label: '闆剁粍浠跺彿',
                         prop: 'drawingNo',
                     },
                     {
@@ -120,12 +120,74 @@
                         searchSpan: 8,
                     },
                 ],
+            },
+            optionCompleted: {
+                addBtn: false,
+                editBtn: false,
+                delBtn: false,
+                viewBtn: true,
+                columnBtn: false,
+                tip: false,
+                // simplePage: true,
+                searchShow: true,
+                searchMenuSpan: 6,
+                dialogWidth: '60%',
+                // tree: true,
+                border: true,
+                index: true,
+                selection: true,
+                // viewBtn: true,
+                menuWidth: 200,
+                menu: false,
+                dialogClickModal: false,
+                column: [
+					{
+                        label: '娴佺▼鏍囬',
+                        prop: 'title',
+                    },
+                    {
+                        label: '闆剁粍浠跺彿',
+                        prop: 'drawingNo',
+                    },
+                    {
+                        label: '鍥惧彿鐗堟',
+                        prop: 'drawingNoEdition',
+                    },
+                    {
+                        label: '宸ュ簭鍚嶇О',
+                        prop: 'processName',
+                    },
+                    {
+                        label: '绋嬪簭鍚嶇О',
+                        prop: 'name',
+                        search: true,
+                    },
+                    {
+                        label: '閫氳繃鏃堕棿',
+                        prop: 'createTime',
+                    },
+                    {
+                        label: '宸插姙鏃堕棿',
+                        prop: 'updateTime',
+                    },
+                    {
+                        label: '閫氳繃鏃堕棿',
+                        prop: 'passTime',
+                        search: true,
+                        hide: true,
+                        type: 'datetime',
+                        format: 'YYYY-MM-DD HH:mm:ss',
+                        valueFormat: 'YYYY-MM-DD HH:mm:ss',
+                        searchRange: true,
+                        searchSpan: 8,
+                    },
+                ],
             }
         };
     },
     methods: {
         tabsClick(tab,event) {
-            //this.onLoad(this.page, this.query);
+            this.onLoad(this.page, this.query);
         },
         selectionChange(list) {
             this.selection = list;
@@ -209,10 +271,20 @@
                     {},
                     {ids: this.selection.map(item => item.id)},
                 ).then(res => {
-                    let name = res.headers['content-disposition'].split('filename=')[1]
-                    console.log(res.headers['content-disposition'].split('filename=')[1]);
-                    downloadFile(res.data, `${name}`);
+				    console.log('status='+res.status)
+					if(res.status == 200){
+					   //console.log(res.data);
+						
+						let name = res.headers['content-disposition'].split('filename=')[1]
+						//console.log(res.headers['content-disposition'].split('filename=')[1]);
+						downloadFile(res.data, `${name}`);
+						
+					}else{
+						this.$message.error('瀵煎嚭閿欒');
+						console.log(res);
+					}
                     NProgress.done();
+                    this.onLoad(this.page, this.query);
                 });
             });
         },

--
Gitblit v1.9.3