Commit fac63235 authored by 徐一鸣's avatar 徐一鸣

流程管理调试

parent 15a49db9
......@@ -24,8 +24,8 @@
<el-tooltip v-else effect="dark" placement="right-start">
<div class="node-detail" slot="content">
<p>当前实例数:{{ meta.running_nodes || 0 }}</p>
<p>当前超时比率:{{ (meta.cur_timeout_rate || 0) / 100 }}%</p>
<p>总超时比率:{{ (meta.total_timeout_rate || 0) / 100 }}%</p>
<p>当前超时比率:{{ (meta.cur_timeout_rate || 0) * 100 }}%</p>
<p>总超时比率:{{ (meta.total_timeout_rate || 0) * 100 }}%</p>
<p>节点平均耗时:{{ meta.avg_elapsed_time || 0 }}分钟</p>
<p>节点最大耗时:{{ meta.max_elapsed_time || 0 }}分钟</p>
<p>节点插件:</p>
......
......@@ -280,9 +280,9 @@ export default {
},
];
},
refresh() {
refreshPage() {
this.init(this.tempFilter);
}, // 刷新当前页列表
},
showDialog() {
this.$refs.dialog.show();
},
......@@ -295,13 +295,13 @@ export default {
},
addNewProcess() {
this.$router.push("/progress/designer/design");
}, // FIXME: 新建流程
},
editItem(item) {
this.$router.push("/progress/designer/design");
}, // FIXME: 编辑流程
this.$router.push(`/progress/designer/design_edit/${item.workflows_id}`);
},
detailItem(item) {
this.$router.push(`/progress/designer/detail/${item.workflows_id}`);
}, // TODO: 查看详情
},
publishItem(item) {
this.dialogInfo.title = "提示";
this.dialogInfo.msg = `发布后流程后,流程将部署到工作区域并上架到服务超市,是否发布该流程?`;
......@@ -348,7 +348,7 @@ export default {
newName: "",
};
this.copyProcessShow();
}, // TODO: 复制流程
}, // 复制流程
cancelCopyProcess() {
this.copyProcessHide();
}, // 复制流程-取消
......@@ -368,10 +368,27 @@ export default {
this.dialogInfo.cancelText = "取消";
this.dialogInfo.sunbmitText = "确定";
this.dialogInfo.submit = () => {
console.log(`删除${item.name}`);
this.$http
.delete("/apaas/serviceapp/v3/workflows/del", {
params: {
id: item.workflows_id,
},
})
.then(({ data }) => {
if (data.success === 1) {
this.$message.success(data.errMsg || "删除成功");
this.refreshPage();
} else {
this.$message.error(data.errMsg || "删除失败");
}
})
.catch((error) => {
console.log(error);
this.$message.error("删除失败");
});
};
this.showDialog();
}, // TODO: 删除流程
},
},
created() {
this.initFilter();
......
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