|
@@ -37,7 +37,7 @@
|
|
<el-button @click="release" type="primary">发布</el-button>
|
|
<el-button @click="release" type="primary">发布</el-button>
|
|
</div> -->
|
|
</div> -->
|
|
<!-- 节点内容弹窗 -->
|
|
<!-- 节点内容弹窗 -->
|
|
- <PropertySetting ref="propertySettingRef" v-model="formData" @change="handlePropertyChange" @changeOther="handlePropertyChangeOther"/>
|
|
|
|
|
|
+ <PropertySetting ref="propertySettingRef" v-model="formData" @change="handlePropertyChange" @changeOther="handlePropertyChangeOther" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -334,7 +334,7 @@ const initEvent = () => {
|
|
name: args.data.text?.value,
|
|
name: args.data.text?.value,
|
|
type: args.data.type,
|
|
type: args.data.type,
|
|
nodes,
|
|
nodes,
|
|
- summarynodes
|
|
|
|
|
|
+ summarynodes,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -377,21 +377,23 @@ const saveOnly = () => {
|
|
workflowUpdate(submitData).then(() => {
|
|
workflowUpdate(submitData).then(() => {
|
|
// 更新
|
|
// 更新
|
|
ElMessage.success('操作成功');
|
|
ElMessage.success('操作成功');
|
|
|
|
+ // 关闭当前 tagsView
|
|
|
|
+ mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
|
|
+ mittBus.emit('clearCache', 'systemWorkflow');
|
|
router.push({
|
|
router.push({
|
|
path: '/system/config/workflow',
|
|
path: '/system/config/workflow',
|
|
});
|
|
});
|
|
- // 关闭当前 tagsView
|
|
|
|
- mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
workflowAdd(submitData).then(() => {
|
|
workflowAdd(submitData).then(() => {
|
|
//保存
|
|
//保存
|
|
ElMessage.success('操作成功');
|
|
ElMessage.success('操作成功');
|
|
|
|
+ // 关闭当前 tagsView
|
|
|
|
+ mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
|
|
+ mittBus.emit('clearCache', 'systemWorkflow');
|
|
router.push({
|
|
router.push({
|
|
path: '/system/config/workflow',
|
|
path: '/system/config/workflow',
|
|
});
|
|
});
|
|
- // 关闭当前 tagsView
|
|
|
|
- mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
emits('on-save', getGraphData());
|
|
emits('on-save', getGraphData());
|
|
@@ -434,6 +436,7 @@ const release = async () => {
|
|
ElMessage.success('操作成功');
|
|
ElMessage.success('操作成功');
|
|
// 关闭当前 tagsView
|
|
// 关闭当前 tagsView
|
|
mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
|
|
+ mittBus.emit('clearCache', 'systemWorkflow');
|
|
router.push({
|
|
router.push({
|
|
path: '/system/config/workflow',
|
|
path: '/system/config/workflow',
|
|
});
|
|
});
|
|
@@ -456,6 +459,7 @@ const release = async () => {
|
|
ElMessage.success('操作成功');
|
|
ElMessage.success('操作成功');
|
|
// 关闭当前 tagsView
|
|
// 关闭当前 tagsView
|
|
mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
|
|
|
|
+ mittBus.emit('clearCache', 'systemWorkflow');
|
|
router.push({
|
|
router.push({
|
|
path: '/system/config/workflow',
|
|
path: '/system/config/workflow',
|
|
});
|
|
});
|
|
@@ -515,7 +519,6 @@ const handlePropertyChange = (e: any) => {
|
|
lf.setProperties(nodeId, {
|
|
lf.setProperties(nodeId, {
|
|
[e.propertyName]: e.propertyValue,
|
|
[e.propertyName]: e.propertyValue,
|
|
});
|
|
});
|
|
-
|
|
|
|
}
|
|
}
|
|
emits('update:modelValue', getGraphData());
|
|
emits('update:modelValue', getGraphData());
|
|
}
|
|
}
|
|
@@ -542,7 +545,6 @@ const handlePropertyChangeOther = (e: any) => {
|
|
lf.setProperties(nodeId, {
|
|
lf.setProperties(nodeId, {
|
|
[e.propertyName]: e.propertyValue,
|
|
[e.propertyName]: e.propertyValue,
|
|
});
|
|
});
|
|
-
|
|
|
|
}
|
|
}
|
|
emits('update:modelValue', getGraphData());
|
|
emits('update:modelValue', getGraphData());
|
|
}
|
|
}
|