From ca1cf859009d0ec613117aca85c1ad42fbb4dfe8 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期六, 02 八月 2025 14:06:19 +0800
Subject: [PATCH] 报错可修改

---
 src/views/flow/todolist.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/views/flow/todolist.vue b/src/views/flow/todolist.vue
index f03eda2..c4f833a 100644
--- a/src/views/flow/todolist.vue
+++ b/src/views/flow/todolist.vue
@@ -189,7 +189,7 @@
                     {
                         label: '鏂囦欢',
                         width: 200,
-                        prop: '',
+                        prop: 'file',
                     },
                     {
                         label: '鍒拌揪鏃堕棿',
@@ -339,22 +339,23 @@
         },
         handleSubmit(form, done) {
             if(this.row.taskDefinitionKey === 'programmingTask') {
-                if(this.applist.length !== 1) {
-                    done();
-                    return this.$message.success('璇烽�夋嫨1涓▼搴�');
-                }
+                // if(this.applist.length !== 1) {
+                //     done();
+                //     return this.$message.success('璇烽�夋嫨1涓▼搴�');
+                // }
             }
             approve({
                 ...this.formApprove,
                 taskId: this.row.taskId,
                 processInstanceId: this.row.processInstanceId,
-                programIds: this.row.taskDefinitionKey === 'programmingTask' ? this.applist.map(v => v.id).join(',') : '',
+                // programIds: this.row.taskDefinitionKey === 'programmingTask' ? this.applist.map(v => v.id).join(',') : '',
             }).then(res => {
                 this.$message.success('瀹℃壒鎴愬姛');
                 this.approveBox = false;
                 this.onLoad(this.page, this.query);
                 done();
             }).catch(err => {
+                done();
                 console.error(err);
             });
         },

--
Gitblit v1.9.3