hutongqing
2024-11-27 553dfb0714e78ca05a62fcf352cc1da2c0be5b70
´úÂë¹ÜÀí/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");