Commit b700b316cda80690f4f04a63c69075eecd9c1692
1 parent
1e8a379e
bug
Showing
4 changed files
with
15 additions
and
11 deletions
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue
| ... | ... | @@ -316,7 +316,9 @@ const openListenerForm = (listener, index) => { |
| 316 | 316 | // 打开侧边栏并清楚验证状态 |
| 317 | 317 | listenerFormModelVisible.value = true |
| 318 | 318 | nextTick(() => { |
| 319 | - if (listenerFormRef.value) listenerFormRef.value.clearValidate() | |
| 319 | + if (listenerFormRef.value) { | |
| 320 | + listenerFormRef.value.clearValidate() | |
| 321 | + } | |
| 320 | 322 | }) |
| 321 | 323 | } |
| 322 | 324 | // 打开监听器字段编辑弹窗 |
| ... | ... | @@ -325,7 +327,9 @@ const openListenerFieldForm = (field, index) => { |
| 325 | 327 | editingListenerFieldIndex.value = field ? index : -1 |
| 326 | 328 | listenerFieldFormModelVisible.value = true |
| 327 | 329 | nextTick(() => { |
| 328 | - if (listenerFieldFormRef.value) listenerFieldFormRef.value.clearValidate() | |
| 330 | + if (listenerFieldFormRef.value) { | |
| 331 | + listenerFieldFormRef.value.clearValidate() | |
| 332 | + } | |
| 329 | 333 | }) |
| 330 | 334 | } |
| 331 | 335 | // 保存监听器注入字段 |
| ... | ... | @@ -345,7 +349,7 @@ const saveListenerFiled = async () => { |
| 345 | 349 | }) |
| 346 | 350 | } |
| 347 | 351 | // 移除监听器字段 |
| 348 | -const removeListenerField = (field, index) => { | |
| 352 | +const removeListenerField = (index) => { | |
| 349 | 353 | ElMessageBox.confirm('确认移除该字段吗?', '提示', { |
| 350 | 354 | confirmButtonText: '确 认', |
| 351 | 355 | cancelButtonText: '取 消' |
| ... | ... | @@ -357,7 +361,7 @@ const removeListenerField = (field, index) => { |
| 357 | 361 | .catch(() => console.info('操作取消')) |
| 358 | 362 | } |
| 359 | 363 | // 移除监听器 |
| 360 | -const removeListener = (listener, index) => { | |
| 364 | +const removeListener = (index) => { | |
| 361 | 365 | ElMessageBox.confirm('确认移除该监听器吗?', '提示', { |
| 362 | 366 | confirmButtonText: '确 认', |
| 363 | 367 | cancelButtonText: '取 消' | ... | ... |
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue
| ... | ... | @@ -87,8 +87,8 @@ const defaultLoopInstanceForm = ref({ |
| 87 | 87 | exclusive: false |
| 88 | 88 | }) |
| 89 | 89 | const loopInstanceForm = ref({}) |
| 90 | -const bpmnElement = ref() | |
| 91 | -const multiLoopInstance = ref() | |
| 90 | +const bpmnElement = ref(null) | |
| 91 | +const multiLoopInstance = ref(null) | |
| 92 | 92 | |
| 93 | 93 | const getElementLoop = (businessObject) => { |
| 94 | 94 | if (!businessObject.loopCharacteristics) { |
| ... | ... | @@ -158,7 +158,7 @@ const changeLoopCharacteristicsType = (type) => { |
| 158 | 158 | ) |
| 159 | 159 | } |
| 160 | 160 | window.bpmnInstances.modeling.updateProperties(toRaw(bpmnElement.value), { |
| 161 | - loopCharacteristics: multiLoopInstance.value | |
| 161 | + loopCharacteristics: toRaw(multiLoopInstance.value) | |
| 162 | 162 | }) |
| 163 | 163 | } |
| 164 | 164 | // 循环基数 |
| ... | ... | @@ -245,7 +245,7 @@ onBeforeUnmount(() => { |
| 245 | 245 | }) |
| 246 | 246 | |
| 247 | 247 | watch( |
| 248 | - () => props.type, | |
| 248 | + () => props.businessObject, | |
| 249 | 249 | (val) => { |
| 250 | 250 | bpmnElement.value = window.bpmnInstances.bpmnElement |
| 251 | 251 | getElementLoop(val) | ... | ... |
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/task/ElementTask.vue
| ... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 | </template> |
| 22 | 22 | |
| 23 | 23 | <script setup lang="ts" name="ElementTaskConfig"> |
| 24 | -import { ref, watch, shallowRef } from 'vue' | |
| 24 | +import { ref, watch } from 'vue' | |
| 25 | 25 | import { ElForm, ElFormItem, ElCheckbox } from 'element-plus' |
| 26 | 26 | import UserTask from './task-components/UserTask.vue' |
| 27 | 27 | import ScriptTask from './task-components/ScriptTask.vue' |
| ... | ... | @@ -36,7 +36,7 @@ const taskConfigForm = ref({ |
| 36 | 36 | asyncBefore: false, |
| 37 | 37 | exclusive: false |
| 38 | 38 | }) |
| 39 | -const witchTaskComponent = shallowRef() | |
| 39 | +const witchTaskComponent = ref() | |
| 40 | 40 | const installedComponent = ref({ |
| 41 | 41 | // 手工任务与普通任务一致,不需要其他配置 |
| 42 | 42 | // 接收消息任务,需要在全局下插入新的消息实例,并在该节点下的 messageRef 属性绑定该实例 | ... | ... |
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/task/task-components/ReceiveTask.vue