From 4184bf7ba174caed030a44efe99af4b2f41a91b3 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 24 二月 2025 23:58:48 +0800
Subject: [PATCH] 增加:2023年增发国债资金 字段
---
src/components/Process/designer.vue | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/components/Process/designer.vue b/src/components/Process/designer.vue
index 715784f..5687849 100644
--- a/src/components/Process/designer.vue
+++ b/src/components/Process/designer.vue
@@ -66,7 +66,7 @@
import TaskListener from './panel/taskListener'
import MultiInstance from './panel/multiInstance'
import CommonPanel from './panel/commonPanel'
-import UserTaskPanel from './panel/taskPanel'
+import UserTaskPanel from './panel/TaskConfPanel'
import ConditionPanel from './panel/conditionPanel'
import FormPanel from './panel/formPanel'
import OtherPanel from './panel/otherPanel'
@@ -133,16 +133,15 @@
getActiveElement() {
// 鍒濆绗竴涓�変腑鍏冪礌 bpmn:Process
this.initFormOnChanged(null);
+ // see https://bpmn.io/toolkit/bpmn-js/walkthrough/
this.modelerStore.modeler.on("import.done", e => {
this.initFormOnChanged(null);
});
// 鐩戝惉閫夋嫨浜嬩欢锛屼慨鏀瑰綋鍓嶆縺娲荤殑鍏冪礌浠ュ強琛ㄥ崟
this.modelerStore.modeler.on("selection.changed", ({newSelection}) => {
- console.log("鏁版嵁鏀瑰彉1")
this.initFormOnChanged(newSelection[0] || null);
});
this.modelerStore.modeler.on("element.changed", ({element}) => {
- console.log("鏁版嵁鏀瑰彉2")
// 淇濊瘉 淇敼 "榛樿娴佽浆璺緞" 绫讳技闇�瑕佷慨鏀瑰涓厓绱犵殑浜嬩欢鍙戠敓鐨勬椂鍊欙紝鏇存柊琛ㄥ崟鐨勫厓绱犱笌鍘熼�変腑鍏冪礌涓嶄竴鑷淬��
if (element && element.id === this.elementId) {
this.initFormOnChanged(element);
@@ -152,24 +151,19 @@
// 鍒濆鍖栨暟鎹�
initFormOnChanged(element) {
- console.log(element, "鑺傜偣鏁版嵁")
let activatedElement = element;
if (!activatedElement) {
- console.log(1)
activatedElement =
this.modelerStore.elRegistry.find(el => el.type === "bpmn:Process") ??
this.modelerStore.elRegistry.find(el => el.type === "bpmn:Collaboration");
}
if (!activatedElement) return;
- console.log(2, activatedElement)
this.modelerStore.element = activatedElement;
this.elementId = activatedElement.id;
// 纭繚elementId鍊兼病鍙樹篃瑕佹洿鏂癴orm缁勪欢閫変腑鐨勫��
if (this.formVisible) {
- console.log(this.modelerStore.element.businessObject.formKey, "鏂扮殑鍊�")
this.$refs.formSelect.init()
}
- console.log(3, this.elementId)
this.elementType = activatedElement.type.split(":")[1] || "";
this.conditionVisible = !!(
this.elementType === "SequenceFlow" &&
--
Gitblit v1.8.0