From c362218b8ef0af6402d3715fbed040ac1cbe0433 Mon Sep 17 00:00:00 2001
From: duyongjia <adu_555@163.com>
Date: 星期五, 29 十一月 2024 14:32:18 +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