diff --git a/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue b/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue
index 60ee56ed..5e77c948 100644
--- a/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue
+++ b/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue
@@ -139,25 +139,17 @@ const updateBaseInfo = (key) => {
}
}
-onMounted(() => {
- // 针对上传的 bpmn 流程图时,需要延迟 1 毫秒的时间,保证 key 和 name 的更新
- setTimeout(() => {
- handleKeyUpdate(props.model.key)
- handleNameUpdate(props.model.name)
- }, 1)
-})
-
-// watch(
-// () => props.businessObject,
-// (val) => {
-// // console.log(val, 'val11111111111111111111')
-// if (val) {
-// // nextTick(() => {
-// resetBaseInfo()
-// // })
-// }
-// }
-// )
+watch(
+ () => props.businessObject,
+ (val) => {
+ // console.log(val, 'val11111111111111111111')
+ if (val) {
+ // nextTick(() => {
+ resetBaseInfo()
+ // })
+ }
+ }
+)
watch(
() => props.model?.key,
diff --git a/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue b/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue
index 45ee8f93..410274b6 100644
--- a/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue
+++ b/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue
@@ -26,8 +26,16 @@
type="primary"
preIcon="ep:plus"
title="添加监听器"
+ size="small"
@click="openListenerForm(null)"
/>
+
@@ -240,11 +248,21 @@
+
+
+
diff --git a/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue b/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue
index 9464883c..7a50032e 100644
--- a/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue
+++ b/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue
@@ -39,6 +39,13 @@
title="添加监听器"
@click="openListenerForm(null)"
/>
+
@@ -286,11 +293,22 @@
+
+
+