From f590d457f629d4a7cf6a5e2f77f5454d807e90db Mon Sep 17 00:00:00 2001
From: zhangchengsong <zhangchengsong@hnkhzn.com>
Date: 星期三, 08 四月 2026 14:09:15 +0800
Subject: [PATCH] 添加手动删除任务按钮功能
---
项目代码/WIDESEAWCS_Client/src/extension/taskinfo/task.js | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Client/src/extension/taskinfo/task.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
index 6dedef5..67d508b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Client/src/extension/taskinfo/task.js"
@@ -78,6 +78,32 @@
});
}
}
+ let CreateDelete = this.buttons.find(x => x.value == 'CreateDelete');
+ if (CreateDelete) {
+ CreateDelete.onClick = function () {
+ this.$confirm("鏄惁纭鍒犻櫎璇ヤ换鍔�","鎵嬪姩鍒犻櫎浠诲姟璀﹀憡",{
+ confirmButtonText: "纭畾",
+ cancelButtonText: "鍙栨秷",
+ type: "warning",
+ center: true,
+ }).then(() => {
+ let rows = this.$refs.table.getSelected();
+ if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+ if (rows.length > 1) return this.$error("璇烽�夋嫨涓�鏉℃暟鎹�!");
+ var param = rows[0].taskNum;
+ this.http
+ .post("api/Task/CreateDelete?taskNum="+param, "")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('浠诲姟鎵嬪姩鍒犻櫎鎴愬姛!');
+ this.refresh();
+ } else {
+ return this.$error(x.message);
+ }
+ });
+ });
+ }
+ }
let CreateManualTask = this.buttons.find(x => x.value == 'CreateManualTask');
if (CreateManualTask) {
CreateManualTask.onClick = function () {
--
Gitblit v1.9.3