端到端功能 生成总图请求页面交互优化
This commit is contained in:
parent
7f2a4e1cd4
commit
99a0f041df
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
v-loading="loading"
|
||||||
title="生成端到端流程图"
|
title="生成端到端流程图"
|
||||||
height="350px"
|
height="350px"
|
||||||
width="800px"
|
width="800px"
|
||||||
@ -87,6 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 关于选择的子流程是否是独立的校验提示 -->
|
<!-- 关于选择的子流程是否是独立的校验提示 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
v-loading="loadingPre"
|
||||||
:visible.sync="generatePreHandleData.independentDlgVisible" width="700px"
|
:visible.sync="generatePreHandleData.independentDlgVisible" width="700px"
|
||||||
:show-close="false"
|
:show-close="false"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
@ -170,7 +172,9 @@
|
|||||||
independentDlgVisible: false,
|
independentDlgVisible: false,
|
||||||
independentNodeVos: [],
|
independentNodeVos: [],
|
||||||
leadAndRearNotInRange: []
|
leadAndRearNotInRange: []
|
||||||
}
|
},
|
||||||
|
loading: false,
|
||||||
|
loadingPre: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -244,6 +248,7 @@
|
|||||||
},
|
},
|
||||||
// 预处理 检验是否有独立的子流程
|
// 预处理 检验是否有独立的子流程
|
||||||
generatePreHandle(){
|
generatePreHandle(){
|
||||||
|
this.loadingPre = true;
|
||||||
const param = {
|
const param = {
|
||||||
url: 'jd',
|
url: 'jd',
|
||||||
data: {
|
data: {
|
||||||
@ -254,6 +259,7 @@
|
|||||||
awsuiAxios.post(param)
|
awsuiAxios.post(param)
|
||||||
.then(ro => {
|
.then(ro => {
|
||||||
if (ro.result == 'ok'){
|
if (ro.result == 'ok'){
|
||||||
|
this.loadingPre = false;
|
||||||
if (ro.data.independentNodeVos.length || ro.data.leadAndRearNotInRange.length){
|
if (ro.data.independentNodeVos.length || ro.data.leadAndRearNotInRange.length){
|
||||||
this.generatePreHandleData.independentDlgVisible = true;
|
this.generatePreHandleData.independentDlgVisible = true;
|
||||||
this.generatePreHandleData.independentNodeVos = ro.data.independentNodeVos;
|
this.generatePreHandleData.independentNodeVos = ro.data.independentNodeVos;
|
||||||
@ -280,6 +286,8 @@
|
|||||||
this.$message({type: 'warning', message: '请填写模型名称'});
|
this.$message({type: 'warning', message: '请填写模型名称'});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.loading = true;
|
||||||
|
this.generatePreHandleData.independentDlgVisible = false;
|
||||||
const param = {
|
const param = {
|
||||||
url: 'jd',
|
url: 'jd',
|
||||||
data: {
|
data: {
|
||||||
@ -298,6 +306,7 @@
|
|||||||
if (ro.result == 'ok'){
|
if (ro.result == 'ok'){
|
||||||
this.close();
|
this.close();
|
||||||
this.closeGeneratePreDlg();
|
this.closeGeneratePreDlg();
|
||||||
|
this.loading = false;
|
||||||
this.$message({type: 'success', message: '总图生成成功'});
|
this.$message({type: 'success', message: '总图生成成功'});
|
||||||
}else if (ro.result === 'error'){
|
}else if (ro.result === 'error'){
|
||||||
this.$message({type: 'error', message: ro.msg});
|
this.$message({type: 'error', message: ro.msg});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user