From 208a9afadac81484fa150c0a236618facab93c52 Mon Sep 17 00:00:00 2001
From: duyongjia <adu_555@163.com>
Date: 星期一, 02 十二月 2024 11:17:39 +0800
Subject: [PATCH] 最新修改上传

---
 代码管理/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
index 95a0325..e330c74 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
@@ -23,9 +23,26 @@
             if (forceCompleteTaskButton) {
                 forceCompleteTaskButton.onClick = () => {
                     let rows = this.$refs.table.getSelected();
+                    console.log("rows"+rows);
                     if (rows.length == 0 || rows.length > 1) return this.$error("璇烽�夋嫨涓�琛屾暟鎹�");
                     this.http
-                        .post("/api/Task/ForceCompleteTask?taskNum=" + rows[0].TaskNum, {}, true)
+                        .post("/api/Task/ForceCompleteTask?taskNum=" + rows[0].taskNum, {}, true)
+                        .then((x) => {
+                            if (!x.status) return this.$message.error(x.message);
+                            this.options = x.data;
+                            console.log(this.options);
+                        });
+                }
+            }
+
+            var cancelTaskButton = this.buttons.find((x) => x.value == "TaskCancel");
+            if (cancelTaskButton) {
+                cancelTaskButton.onClick = () => {
+                    let rows = this.$refs.table.getSelected();
+                    console.log("rows"+rows);
+                    if (rows.length == 0 || rows.length > 1) return this.$error("璇烽�夋嫨涓�琛屾暟鎹�");
+                    this.http
+                        .post("/api/Task/CancelTask?taskNum=" + rows[0].taskNum, {}, true)
                         .then((x) => {
                             if (!x.status) return this.$message.error(x.message);
                             this.options = x.data;

--
Gitblit v1.9.3