From 3ded1213a0b156fb04f2ffff47e2dc32104e8bb9 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 05 九月 2025 01:13:01 +0800
Subject: [PATCH] 任务提醒,增加导出提醒;

---
 src/views/flowmgr/exceptiontask.vue |   97 ++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 88 insertions(+), 9 deletions(-)

diff --git a/src/views/flowmgr/exceptiontask.vue b/src/views/flowmgr/exceptiontask.vue
index cf335f8..4232f08 100644
--- a/src/views/flowmgr/exceptiontask.vue
+++ b/src/views/flowmgr/exceptiontask.vue
@@ -10,9 +10,9 @@
             @search-change="searchChange" @search-reset="searchReset" @current-change="currentChange"
             @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" @selection-change="selectionChange">
             <template #menu-left>
-               <!-- 
-                <el-button type="primary" plain @click="exportExcel">瀵煎嚭鍒癊XCEL</el-button>
-                -->
+               
+                <el-button type="primary" :disabled="this.selection.length==0" plain @click="handleDelBatch">鎵归噺鍒犻櫎</el-button>
+            
             </template>
             <template #menu="scope">
                 <el-button type="primary" text size="default"
@@ -20,8 +20,12 @@
                 </el-button>
                 <el-button type="primary" text size="default" icon="el-icon-delete" @click.stop="handleDel(scope.row, scope.index)">鍒犻櫎</el-button>
             </template>
-
-           
+            
+            <template slot="errMsg" slot-scope="scope">
+               <avue-text-ellipsis :text="scope.row.errMsg" :height="100">
+                    <small slot=""more>...</small>
+               </avue-text-ellipsis>
+            </template>
         </avue-crud>
     </basic-container>
 </template>
@@ -73,6 +77,7 @@
                     },
                     {
                         label: '宸ュ簭鍙�',
+                        width: 70,
                         prop: 'processNo'
                     },
                     {
@@ -92,17 +97,51 @@
                         prop: 'processName',
                     },
                     {
-                        label: '宸ヨ壓鐝',
+                        label: '鎵规鍙�',
+                        width:85,
                         prop: 'craftEdition'
                     },
                     {
                         label: '鍋忕鍗曞彿',
                         prop: 'deviation'
                     },
+                     {
+                        label: '寮傚父绫诲瀷',
+                        prop: 'status',
+                        width:85,
+                        render: ({ row }) => {
+                            let txt = '';
+                            switch(row.status){
+                                case 3:
+                                     txt = '閲嶅娲惧伐'
+                                    break;
+                                case 4:
+                                     txt = '楠岃瘉澶辫触'
+                                    break;
+                                case 5:
+                                     txt = '鍚姩寮傚父'
+                                    break;
+                                default:
+                                    txt = '';
+                            }
+                           
+                            return txt;
+                            
+                        },
+                    },
+                    {
+                        label: '閿欒淇℃伅',
+                        prop: 'errMsg',
+                        slot: true,
+                        showOverflowTooltip:true,
+                        width:100,
+                    },
 					{
                         label: '鍒涘缓鏃堕棿',
                         prop: 'createTime',
                         type: 'datetime',
+                        showOverflowTooltip:true,
+                        width: 155,
                         format: 'YYYY-MM-DD HH:mm:ss',
                         valueFormat: 'YYYY-MM-DD HH:mm:ss',
                         search: true,
@@ -111,13 +150,15 @@
                         hide: false,
                     }
                 ],
-                selectedList: [],
-            }
+                selection: [],
+            },
+
+            selection: [],
         }
     },
     methods: {
         selectionChange (list) {
-            this.selectedList = list;
+            this.selection = list;
         },
         
         handleStart(row,index) {
@@ -189,6 +230,44 @@
                     // this.$message.info('宸插彇娑堟搷浣�');
                 });
         },
+        handleDelBatch() {
+            //console.log(this.selection);
+            var ids = this.selection.map(row => row.id).join();
+            //console.log("ids",ids)
+            
+            this.$confirm('纭畾瑕佸垹闄ゅ悧锛�', '', {
+                    confirmButtonText: this.$t('submitText'),
+                    cancelButtonText: this.$t('cancelText'),
+                    type: 'warning',
+                }).then(() => {
+                    this.loading = true;
+                    axios({
+                        url: '/blade-mdm/flow/task/remove',
+                        method: 'post',
+                        params: {ids: ids},
+                    }).then(
+                        res => {
+                            this.loading = false;
+                            if(res.data.code == 200){
+                                this.$message({
+                                    type: 'success',
+                                    message: '鎿嶄綔鎴愬姛!',
+                                });
+                            }else{
+                                this.$message.error('鎿嶄綔澶辫触!');
+                            }
+                            this.onLoad(this.page,this.query);
+                           
+                        },
+                        error => {
+                            this.loading = false;
+                        }
+                    );
+                }).catch(() => {
+                    // this.$message.info('宸插彇娑堟搷浣�');
+                });
+                
+        },
         searchChange(params, done) {
             let data = {}
             this.query = params;

--
Gitblit v1.9.3