zhangchengsong
7 天以前 f590d457f629d4a7cf6a5e2f77f5454d807e90db
ÏîÄ¿´úÂë/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 () {