From 553dfb0714e78ca05a62fcf352cc1da2c0be5b70 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 27 十一月 2024 09:49:21 +0800 Subject: [PATCH] 更新 --- 代码管理/WCS/WIDESEAWCS_Client/src/extension/taskinfo/task.js | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 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 8a02afb..95a0325 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" @@ -19,6 +19,21 @@ onInit() { // this.$Notice.success({ title: this.detailOptions.cnName + ',鏌ヨ缁撴灉', desc: '杩斿洖鐨勫璞★細' + JSON.stringify(data) }); + var forceCompleteTaskButton = this.buttons.find((x) => x.value == "TaskCompleted"); + if (forceCompleteTaskButton) { + forceCompleteTaskButton.onClick = () => { + let rows = this.$refs.table.getSelected(); + if (rows.length == 0 || rows.length > 1) return this.$error("璇烽�夋嫨涓�琛屾暟鎹�"); + this.http + .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 previousButton = this.buttons.find((x) => x.value == "Previous"); if (previousButton) previousButton.hidden = true; var nextButton = this.buttons.find((x) => x.value == "Next"); -- Gitblit v1.9.3