| | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | let RGVTaskResendingBtn = this.buttons.find(x => x.value == 'RGVTaskResending'); |
| | | if (RGVTaskResendingBtn) { |
| | | RGVTaskResendingBtn.onClick = function () { |
| | | this.$confirm("是否确认重发RGV任务","手动任务重发警告",{ |
| | | 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/RGVTaskResending?taskNum="+param, "数据处理中...") |
| | | .then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('任务重发完成'); |
| | | this.refresh(); |
| | | } else { |
| | | return this.$error(x.message); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | | onInited() { |
| | | //框架初始化配置后 |