Commit 870e9a6f by liuchenxi

update: 增加任务中心入口

parent ddf54233
......@@ -498,13 +498,12 @@ export default {
this.remark = "";
this.middleList.length = 0;
this.loading = true;
setTimeout(async () => {
setTimeout(() => {
this.loading = false;
this.$message({
message: "冻结成功",
type: "success"
});
await this.handleToTaskCenter(res.data.result);
this.$router.push({ path: "/frozenList" });
}, 5000);
} else {
......@@ -575,16 +574,6 @@ export default {
// 上一次勾选的数据 对比具体是哪一项不匹配
this.midSelect = val;
},
async handleToTaskCenter(id) {
await this.$confirm(`请去【企业管理】-【任务中心】查看处理结果和执行进度`, `任务发起成功`, {
type: 'success',
confirmButtonText: '去任务中心',
cancelButtonText: '取消',
showClose: false
})
window.open(`/gic-web/#/taskDetail/${id}`);
return true;
},
}
};
</script>
......
......@@ -476,6 +476,16 @@ export default {
this.frozenMethod();
});
},
async handleToTaskCenter(id) {
await this.$confirm(`请去【企业管理】-【任务中心】查看处理结果和执行进度`, `任务发起成功`, {
type: 'success',
confirmButtonText: '去任务中心',
cancelButtonText: '取消',
showClose: false
})
window.open(`/gic-web/#/taskDetail/${id}`);
return true;
},
changeReason(val) {
if (val) {
this.reasonbtn = false;
......@@ -501,12 +511,13 @@ export default {
this.remark = "";
this.middleList.length = 0;
this.loading = true;
setTimeout(() => {
setTimeout(async () => {
this.loading = false;
this.$message({
message: "冻结成功",
type: "success"
});
await this.handleToTaskCenter(res.data.result);
this.$router.push({ path: "/frozenList" });
}, 5000);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment