端到端功能 总图生成成功提示语调整&入口加入过滤框
This commit is contained in:
parent
b1ab6b7eb2
commit
7c69986b9e
@ -37,6 +37,11 @@
|
||||
<el-form-item label="子流程选择" required>
|
||||
<el-popover ref="subProcessPopover" placement="bottom" trigger="click" width="600">
|
||||
<div class="sub-process-tree-box" style="height: 300px; overflow: auto;">
|
||||
<el-input
|
||||
size="small"
|
||||
placeholder="输入关键字进行过滤"
|
||||
v-model="processTreeNodeFilterText">
|
||||
</el-input>
|
||||
<el-tree
|
||||
ref="subProcessModelTree"
|
||||
@node-collapse="closeSubProcessNode"
|
||||
@ -46,6 +51,7 @@
|
||||
:load="loadModelTreeNode"
|
||||
@check="modeTreeNodeCheck"
|
||||
:default-checked-keys="subProcessForm.defaultProcessCheckedKeys"
|
||||
:filter-node-method="filterProcessTreeNode"
|
||||
:props="treeProps">
|
||||
<span slot-scope="{node, data}">
|
||||
<i class="awsui-iconfont tree-content-icon tree-content-icon-padding" :style="{'color': node.data.icon.color}" v-html="node.data.icon.icon"></i>
|
||||
@ -152,6 +158,7 @@
|
||||
label: 'name',
|
||||
isLeaf: 'leaf'
|
||||
},
|
||||
processTreeNodeFilterText: '',
|
||||
generatePreHandleData: {
|
||||
independentDlgVisible: false,
|
||||
independentNodeVos: [],
|
||||
@ -160,6 +167,10 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
filterProcessTreeNode(value, data) {
|
||||
if (!value) return true;
|
||||
return data.name.indexOf(value) !== -1;
|
||||
},
|
||||
initData(){
|
||||
// 获取位置根目录
|
||||
const param = {
|
||||
@ -253,7 +264,7 @@
|
||||
},
|
||||
// 生成端到端总图
|
||||
generateSubProcessModel(independentNodeArr){
|
||||
console.log('执行参数',this.subProcessForm);
|
||||
// console.log('执行参数',this.subProcessForm);
|
||||
if (!this.subProcessForm.processList.length){
|
||||
this.$message({type: 'warning', message: '请选择子流程'});
|
||||
return;
|
||||
@ -275,13 +286,13 @@
|
||||
}
|
||||
awsuiAxios.post(param)
|
||||
.then(ro => {
|
||||
console.log(ro);
|
||||
// console.log(ro);
|
||||
if (ro.result == 'ok'){
|
||||
this.close();
|
||||
this.closeGeneratePreDlg();
|
||||
this.$message({type: 'success', message: '第一个阶段图形节点分布测试成功'});
|
||||
this.$message({type: 'success', message: '总图生成成功'});
|
||||
}else if (ro.result === 'error'){
|
||||
this.$message({type: 'error', message: '发生了什么'});
|
||||
this.$message({type: 'error', message: ro.msg});
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
@ -456,6 +467,9 @@
|
||||
}
|
||||
this.initData();
|
||||
}
|
||||
},
|
||||
processTreeNodeFilterText(val){
|
||||
this.$refs.subProcessModelTree.filter(val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user