wangxinhui
9 天以前 e0e8c8f0b0abc141b116779afbcee970e091caaf
ÏîÄ¿´úÂë/WCS/WCSClient/src/extension/taskinfo/task.js
@@ -42,7 +42,33 @@
                    this.$refs.gridBody.open(row);
                }
            },);
            let ResendTaskBtn = this.buttons.find(x => x.value == 'ResendTask');
            if (ResendTaskBtn) {
                ResendTaskBtn.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/ResendTask?taskNum=" + param, "")
                            .then((x) => {
                                if (x.status) {
                                    this.$Message.success('任务重新下发');
                                    this.refresh();
                                } else {
                                    return this.$error(x.message);
                                }
                            });
                    });
                }
            }
        },
        onInited() {
            //框架初始化配置后