|
|
@@ -475,17 +475,11 @@ export default class Process {
|
|
|
})
|
|
|
// endregion
|
|
|
|
|
|
+
|
|
|
// region 双击工序进入编辑模式
|
|
|
this.graph.on('node:dblclick', ({ node, e }) => {
|
|
|
- //如果是工序组 进入编辑模式
|
|
|
- if (node.data?.parent) {
|
|
|
- node.addTools({
|
|
|
- name: 'node-editor',
|
|
|
- args: {
|
|
|
- event: e,
|
|
|
- },
|
|
|
- })
|
|
|
- } else {
|
|
|
+ //如果双击的不是工序组,显示弹窗
|
|
|
+ if (!node.data?.parent) {
|
|
|
//设置值
|
|
|
store.commit('setCurrentNodeId', node.id)
|
|
|
//显示弹窗
|