workflow-editor 0.0.81-up-tmp10 → 0.0.81-up-tmp11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/extensions.json +3 -0
- package/package.json +1 -1
- package/vite.config.js +3 -3
- package/dist/index.full.min.js +0 -3504
- package/dist/style.css +0 -526
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/index.mjs +0 -17
- package/es/plugins/formValidatorUtil.mjs +0 -206
- package/es/plugins/index.mjs +0 -7
- package/es/src/i18n/i18n.mjs +0 -7
- package/es/src/i18n/langs/cn.mjs +0 -4
- package/es/src/i18n/langs/en.mjs +0 -4
- package/es/style.css +0 -525
- package/es/vite.svg +0 -1
- package/es/workflow-editor/index.mjs +0 -10
- package/es/workflow-editor/src/api.mjs +0 -6
- package/es/workflow-editor/src/assets/wf-editor-icons.mjs +0 -43
- package/es/workflow-editor/src/json-object-templates/auto-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/copy-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/decision.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/end.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/fork.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/human-decision.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/human-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/join.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/process.mjs +0 -9
- package/es/workflow-editor/src/json-object-templates/start.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/subprocess.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/transition.mjs +0 -6
- package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +0 -13
- package/es/workflow-editor/src/main/canvas.vue.mjs +0 -130
- package/es/workflow-editor/src/main/canvas.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/context-menu.vue.mjs +0 -33
- package/es/workflow-editor/src/main/context-menu.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/icon-svg.vue.mjs +0 -12
- package/es/workflow-editor/src/main/icon-svg.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/selection-region.vue.mjs +0 -17
- package/es/workflow-editor/src/main/selection-region.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +0 -10
- package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +0 -11
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/toolbox.vue.mjs +0 -16
- package/es/workflow-editor/src/main/toolbox.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +0 -86
- package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +0 -4
- package/es/workflow-editor/src/process-service.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +0 -22
- package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +0 -125
- package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +0 -60
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +0 -5
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +0 -72
- package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +0 -18
- package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +0 -55
- package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +0 -14
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +0 -36
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +0 -27
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +0 -31
- package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +0 -36
- package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +0 -95
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +0 -16
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +0 -46
- package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +0 -43
- package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +0 -116
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +0 -60
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +0 -41
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +0 -30
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +0 -26
- package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/decision.vue.mjs +0 -24
- package/es/workflow-editor/src/properties-editors/fork.vue.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +0 -15
- package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +0 -16
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +0 -38
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +0 -84
- package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +0 -62
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +0 -80
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +0 -86
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +0 -43
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +0 -67
- package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +0 -18
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +0 -33
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +0 -56
- package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +0 -28
- package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/join.vue.mjs +0 -15
- package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +0 -88
- package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +0 -17
- package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +0 -10
- package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +0 -28
- package/es/workflow-editor/src/properties-editors/process.vue.mjs +0 -34
- package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +0 -64
- package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +0 -9
- package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +0 -55
- package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +0 -22
- package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +0 -14
- package/es/workflow-editor/src/properties-editors/transition.vue.mjs +0 -17
- package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/user-condition.mjs +0 -49
- package/es/workflow-editor/src/store/getters.mjs +0 -4
- package/es/workflow-editor/src/store/workflow-editor.mjs +0 -73
- package/es/workflow-editor/src/taches/auto-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/common-methods.mjs +0 -13
- package/es/workflow-editor/src/taches/copy-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/custom-task.vue.mjs +0 -16
- package/es/workflow-editor/src/taches/decision.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/decision.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/end.vue.mjs +0 -14
- package/es/workflow-editor/src/taches/end.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/fork.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/fork.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/human-decision.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/human-decision.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/human-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/join.vue.mjs +0 -16
- package/es/workflow-editor/src/taches/join.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/joint.vue.mjs +0 -54
- package/es/workflow-editor/src/taches/joint.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/start.vue.mjs +0 -14
- package/es/workflow-editor/src/taches/start.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/subprocess.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +0 -30
- package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/broken-line.vue.mjs +0 -32
- package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/curve-line.vue.mjs +0 -33
- package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/straight-line.vue.mjs +0 -13
- package/es/workflow-editor/src/transitions/transition.vue.mjs +0 -70
- package/es/workflow-editor/src/transitions/transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +0 -17
- package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/util.mjs +0 -180
- package/es/workflow-editor/src/workflow-editor.vue.mjs +0 -205
- package/es/workflow-editor/src/workflow-editor.vue2.mjs +0 -4
- package/es/workflow-editor/src/workflow-history.vue.mjs +0 -35
- package/es/workflow-editor/src/workflow-history.vue2.mjs +0 -4
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/index.cjs +0 -8
- package/lib/plugins/formValidatorUtil.cjs +0 -203
- package/lib/plugins/index.cjs +0 -5
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/style.css +0 -525
- package/lib/vite.svg +0 -1
- package/lib/workflow-editor/index.cjs +0 -7
- package/lib/workflow-editor/src/api.cjs +0 -5
- package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +0 -44
- package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/decision.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/end.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/fork.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/human-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/join.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/process.cjs +0 -6
- package/lib/workflow-editor/src/json-object-templates/start.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/transition.cjs +0 -4
- package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +0 -11
- package/lib/workflow-editor/src/main/canvas.vue.cjs +0 -101
- package/lib/workflow-editor/src/main/canvas.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/context-menu.vue.cjs +0 -29
- package/lib/workflow-editor/src/main/context-menu.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/icon-svg.vue.cjs +0 -10
- package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/selection-region.vue.cjs +0 -13
- package/lib/workflow-editor/src/main/selection-region.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +0 -8
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +0 -9
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/toolbox.vue.cjs +0 -11
- package/lib/workflow-editor/src/main/toolbox.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +0 -67
- package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +0 -2
- package/lib/workflow-editor/src/process-service.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +0 -94
- package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +0 -54
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +0 -4
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +0 -67
- package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +0 -16
- package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +0 -50
- package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +0 -11
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +0 -22
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +0 -25
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +0 -93
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +0 -42
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +0 -37
- package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +0 -110
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +0 -55
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +0 -39
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +0 -26
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +0 -18
- package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +0 -82
- package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +0 -56
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +0 -75
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +0 -80
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +0 -39
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +0 -60
- package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +0 -15
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +0 -26
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +0 -49
- package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/join.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +0 -81
- package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +0 -18
- package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +0 -21
- package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +0 -7
- package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +0 -23
- package/lib/workflow-editor/src/properties-editors/process.vue.cjs +0 -24
- package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +0 -57
- package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +0 -7
- package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +0 -50
- package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +0 -16
- package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +0 -10
- package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +0 -12
- package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/user-condition.cjs +0 -33
- package/lib/workflow-editor/src/store/getters.cjs +0 -2
- package/lib/workflow-editor/src/store/workflow-editor.cjs +0 -71
- package/lib/workflow-editor/src/taches/auto-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/common-methods.cjs +0 -11
- package/lib/workflow-editor/src/taches/copy-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/custom-task.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/decision.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/decision.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/end.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/end.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/fork.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/fork.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/human-decision.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/human-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/join.vue.cjs +0 -11
- package/lib/workflow-editor/src/taches/join.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/joint.vue.cjs +0 -50
- package/lib/workflow-editor/src/taches/joint.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/start.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/start.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/subprocess.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +0 -27
- package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +0 -28
- package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +0 -29
- package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +0 -9
- package/lib/workflow-editor/src/transitions/transition.vue.cjs +0 -63
- package/lib/workflow-editor/src/transitions/transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +0 -13
- package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/util.cjs +0 -139
- package/lib/workflow-editor/src/workflow-editor.vue.cjs +0 -191
- package/lib/workflow-editor/src/workflow-editor.vue2.cjs +0 -2
- package/lib/workflow-editor/src/workflow-history.vue.cjs +0 -28
- package/lib/workflow-editor/src/workflow-history.vue2.cjs +0 -2
- /package/{dist → public}/vite.svg +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import e from "./common-notice-tool.vue.mjs";
|
|
2
|
-
import l from "./common-user-condition.vue.mjs";
|
|
3
|
-
import o from "./select-mail-template.vue.mjs";
|
|
4
|
-
import { resolveComponent as t, openBlock as d, createBlock as i, withCtx as a, createVNode as m, createElementBlock as n, createCommentVNode as s, createElementVNode as u, toDisplayString as r, createTextVNode as p } from "vue";
|
|
5
|
-
import "./reminder.vue2.mjs";
|
|
6
|
-
import c from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
-
const h = { name: "Reminder", components: { CommonNoticeTool: e, CommonUserCondition: l, SelectMailTemplates: o }, props: { modelValue: { type: [Object, String], default: null }, isProcess: { type: Boolean, default: false } }, data() {
|
|
8
|
-
let e2 = false, l2 = false, o2 = { dueDate: 1, dueTimeUnit: "day", repeat: 1, containTransferUser: false, containNoticeUser: false, remindType: "mail", timeUnit: "day", remindTimes: 0, noticeType: "", noticeUserCondition: "", transferUserCondition: "" };
|
|
9
|
-
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (o2 = this.modelValue, e2 = true, this.modelValue.remindTimes > 0 && (l2 = true), o2.dueTimeUnit || (o2.dueTimeUnit = "day")), { showReminder: e2, showNotice: l2, model: o2, showMailTemplateFlag: false, baseURL: "", optionUrl: "", multiSelectData: [], options: { showColumns: "code,name" } };
|
|
10
|
-
}, watch: { showReminder(e2) {
|
|
11
|
-
e2 ? this.$emit("update:modelValue", this.model) : this.$emit("update:modelValue", null);
|
|
12
|
-
}, showNotice(e2) {
|
|
13
|
-
e2 ? this.$emit("update:modelValue", this.model) : this.$emit("update:modelValue", { remindType: this.model.remindType, dueDate: this.model.dueDate, dueTimeUnit: this.model.dueTimeUnit, repeat: this.model.repeat, timeUnit: this.model.timeUnit, remindTimes: 0, noticeType: "", noticeUserCondition: "", containTransferUser: false, transferUserCondition: "", containNoticeUser: false });
|
|
14
|
-
} }, created() {
|
|
15
|
-
this.baseURL = window.$vueApp.config.globalProperties.baseURL, this.optionUrl = "/bs/email-templates/list/0", this.$watch("model", function(e2, l2) {
|
|
16
|
-
let o2 = null;
|
|
17
|
-
this.showReminder && (o2 = this.model, o2.dueTimeUnit || (o2.dueTimeUnit = "day")), this.$emit("update:modelValue", o2);
|
|
18
|
-
}, { deep: true });
|
|
19
|
-
}, methods: { setMailTemplateCode(e2) {
|
|
20
|
-
this.model.mailTemplateCode = e2;
|
|
21
|
-
}, setMailPointTemplateCode(e2) {
|
|
22
|
-
this.model.mailPointTemplateCode = e2;
|
|
23
|
-
}, selectData(e2, l2) {
|
|
24
|
-
this.multiSelectData = e2;
|
|
25
|
-
}, setReminderCustomMsg(e2) {
|
|
26
|
-
this.model.reminderCustomMsg = e2;
|
|
27
|
-
}, setNoticeCustomMsg(e2) {
|
|
28
|
-
this.model.noticeCustomMsg = e2;
|
|
29
|
-
} } }, w = { key: 0 }, V = { key: 2 };
|
|
30
|
-
const f = c(h, [["render", function(e2, l2, o2, c2, h2, f2) {
|
|
31
|
-
const U = t("el-switch"), T = t("el-form-item"), b = t("common-notice-tool"), k = t("select-mail-templates"), g = t("el-input-number"), y = t("el-option"), C = t("el-select"), $ = t("el-radio"), _ = t("el-checkbox"), M = t("common-user-condition"), v = t("el-form");
|
|
32
|
-
return d(), i(v, { model: h2.model, "label-width": "80px" }, { default: a(() => [m(T, { label: e2.$t("workflowEditor.task.needToBeUrged") }, { default: a(() => [m(U, { modelValue: h2.showReminder, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => h2.showReminder = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), h2.showReminder ? (d(), n("div", w, [m(b, { modelValue: h2.model.remindType, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => h2.model.remindType = e3), label: e2.$t("workflowEditor.task.urgingMethod"), "custom-msg": h2.model.reminderCustomMsg, onInputMsg: f2.setReminderCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), h2.model.remindType && h2.model.remindType.length > 0 ? (d(), i(T, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: a(() => [m(k, { modelValue: h2.model.mailTemplateCode, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => h2.model.mailTemplateCode = e3), onSetValue: f2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : s("", true), h2.model.remindType && h2.model.remindType.length > 0 && -1 !== h2.model.remindType.indexOf("mail") ? (d(), i(T, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: a(() => [m(k, { modelValue: h2.model.mailPointTemplateCode, "onUpdate:modelValue": l2[3] || (l2[3] = (e3) => h2.model.mailPointTemplateCode = e3), onSetValue: f2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : s("", true), m(T, { label: e2.$t("workflowEditor.task.timeLimitForHandling"), size: "small" }, { default: a(() => [m(g, { modelValue: h2.model.dueDate, "onUpdate:modelValue": l2[4] || (l2[4] = (e3) => h2.model.dueDate = e3), "controls-position": "right", min: 1, max: 30, style: { width: "90px" } }, null, 8, ["modelValue"]), m(C, { modelValue: h2.model.dueTimeUnit, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => h2.model.dueTimeUnit = e3), style: { width: "70px" } }, { default: a(() => [m(y, { label: e2.$t("workflowEditor.task.day"), value: "day" }, null, 8, ["label"]), m(y, { label: e2.$t("workflowEditor.task.hour"), value: "hour" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue"]), u("span", null, r(e2.$t("workflowEditor.task.urgingInterval")), 1), m(g, { modelValue: h2.model.repeat, "onUpdate:modelValue": l2[6] || (l2[6] = (e3) => h2.model.repeat = e3), "controls-position": "right", min: 1, max: 30, style: { width: "90px" } }, null, 8, ["modelValue"]), m(C, { modelValue: h2.model.timeUnit, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => h2.model.timeUnit = e3), style: { width: "70px" } }, { default: a(() => [m(y, { label: e2.$t("workflowEditor.task.day"), value: "day" }, null, 8, ["label"]), m(y, { label: e2.$t("workflowEditor.task.hour"), value: "hour" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), m(T, null, { default: a(() => [m($, { modelValue: h2.showNotice, "onUpdate:modelValue": l2[8] || (l2[8] = (e3) => h2.showNotice = e3), label: false }, { default: a(() => [p(r(e2.$t("workflowEditor.task.alwaysUrging")), 1)]), _: 1 }, 8, ["modelValue"]), m($, { modelValue: h2.showNotice, "onUpdate:modelValue": l2[9] || (l2[9] = (e3) => h2.showNotice = e3), label: true }, { default: a(() => [p(r(e2.$t("workflowEditor.task.limitedUrging")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }), h2.showNotice ? (d(), n("div", V, [m(T, { label: e2.$t("workflowEditor.task.timesOfUrging"), size: "small" }, { default: a(() => [m(g, { modelValue: h2.model.remindTimes, "onUpdate:modelValue": l2[10] || (l2[10] = (e3) => h2.model.remindTimes = e3), "controls-position": "right", min: 1, max: 99, style: { width: "90px" } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), m(b, { modelValue: h2.model.noticeType, "onUpdate:modelValue": l2[11] || (l2[11] = (e3) => h2.model.noticeType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": h2.model.noticeCustomMsg, onInputMsg: f2.setNoticeCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), o2.isProcess ? s("", true) : (d(), i(T, { key: 0, label: e2.$t("workflowEditor.common.notifyPersonnel"), style: { "margin-bottom": "5px" } }, { default: a(() => [m(_, { modelValue: h2.model.containTransferUser, "onUpdate:modelValue": l2[12] || (l2[12] = (e3) => h2.model.containTransferUser = e3) }, { default: a(() => [p(r(e2.$t("workflowEditor.task.includingHandoverPersonnel")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])), m(T, { "label-width": "0" }, { default: a(() => [m(M, { modelValue: h2.model.noticeUserCondition, "onUpdate:modelValue": l2[13] || (l2[13] = (e3) => h2.model.noticeUserCondition = e3) }, null, 8, ["modelValue"])]), _: 1 }), o2.isProcess ? s("", true) : (d(), i(T, { key: 1, label: e2.$t("workflowEditor.task.handoverPersonnel"), style: { "margin-bottom": "5px" } }, { default: a(() => [m(_, { modelValue: h2.model.containNoticeUser, "onUpdate:modelValue": l2[14] || (l2[14] = (e3) => h2.model.containNoticeUser = e3) }, { default: a(() => [p(r(e2.$t("workflowEditor.task.includeNotifyPeople")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])), o2.isProcess ? s("", true) : (d(), i(T, { key: 2, "label-width": "0" }, { default: a(() => [m(M, { modelValue: h2.model.transferUserCondition, "onUpdate:modelValue": l2[15] || (l2[15] = (e3) => h2.model.transferUserCondition = e3) }, null, 8, ["modelValue"])]), _: 1 }))])) : s("", true)])) : s("", true)]), _: 1 }, 8, ["model"]);
|
|
33
|
-
}], ["__scopeId", "data-v-4e29ea06"]]);
|
|
34
|
-
export {
|
|
35
|
-
f as default
|
|
36
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as e, openBlock as l, createElementBlock as t, createVNode as a, withCtx as o, createElementVNode as i, createTextVNode as s, toDisplayString as r } from "vue";
|
|
2
|
-
import p from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
-
const n = { style: { width: "100%" } };
|
|
4
|
-
const d = p({ name: "SelectMailTemplates", model: { prop: "value", event: "input" }, props: { modelValue: { type: [String, Number], default: "" } }, data() {
|
|
5
|
-
return { baseURL: "", optionUrl: "", multiSelectData: [], showMailTemplateFlag: false, code: this.modelValue, options: { showColumns: "code,name" }, dialogVisible: true };
|
|
6
|
-
}, created() {
|
|
7
|
-
this.baseURL = window.$vueApp.config.globalProperties.baseAPI, this.optionUrl = "/mc/email-templates/list/0";
|
|
8
|
-
}, methods: { selectTemplate() {
|
|
9
|
-
this.multiSelectData && 1 === this.multiSelectData.length ? (this.code = this.multiSelectData[0].code, this.$emit("set-value", this.code), this.showMailTemplateFlag = false) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseSelectARow") });
|
|
10
|
-
}, selectData(e2, l2) {
|
|
11
|
-
this.multiSelectData = e2;
|
|
12
|
-
}, clearVal() {
|
|
13
|
-
this.code = null, this.$emit("set-value", null);
|
|
14
|
-
} } }, [["render", function(p2, d2, c, m, u, h) {
|
|
15
|
-
const w = e("el-input"), f = e("super-grid"), g = e("el-button"), T = e("el-dialog");
|
|
16
|
-
return l(), t("span", n, [a(w, { readonly: "", modelValue: u.code, "onUpdate:modelValue": d2[2] || (d2[2] = (e2) => u.code = e2), onClick: d2[3] || (d2[3] = (e2) => u.showMailTemplateFlag = true) }, { append: o(() => [i("i", { class: "fa fa-search", onClick: d2[0] || (d2[0] = (e2) => u.showMailTemplateFlag = true) }), i("i", { style: { "padding-left": "10px" }, class: "fa fa-trash", onClick: d2[1] || (d2[1] = (e2) => h.clearVal()) })]), _: 1 }, 8, ["modelValue"]), a(T, { width: "40%", title: p2.$t("workflowEditor.task.selectTemplate"), modelValue: u.showMailTemplateFlag, "onUpdate:modelValue": d2[5] || (d2[5] = (e2) => u.showMailTemplateFlag = e2), center: "", top: "5vh", "append-to-body": "", class: "properties-editor-noTab" }, { footer: o(() => [a(g, { onClick: d2[4] || (d2[4] = (e2) => u.showMailTemplateFlag = false) }, { default: o(() => [s(r(p2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 }), a(g, { type: "primary", onClick: h.selectTemplate }, { default: o(() => [s(r(p2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"])]), default: o(() => [a(f, { ref: "reportGrid", url: u.baseURL + u.optionUrl, code: "BS_EMAIL_TEMPLATE", options: u.options, onSelect: h.selectData }, null, 8, ["url", "options", "onSelect"])]), _: 1 }, 8, ["title", "modelValue"])]);
|
|
17
|
-
}]]);
|
|
18
|
-
export {
|
|
19
|
-
d as default
|
|
20
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as e, openBlock as t, createElementBlock as s, createVNode as d, withKeys as o, withCtx as l, unref as n } from "vue";
|
|
2
|
-
import { Search as r } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
3
|
-
import "./system-role-tree-inline.vue2.mjs";
|
|
4
|
-
const i = { name: "InlineSystemRoleTree", props: { multiple: { type: Boolean, default: false } }, data: () => ({ systemRoleTrees: null, filterText: "", defaultProps: { id: "id", label: "label", children: "children", isLeaf: "leaf" }, containBranch: false, tenantInfo: null, tenantNodeId: -1, allSearchNodeIds: [], allExpandNodeIds: [], isClickNode: false, searchValue: null, selectNodeInfo: null }), computed: {}, watch: { filterText(e2) {
|
|
5
|
-
e2 || (this.searchValue = e2, this.loadRole(this.tenantNodeId, this.tenantNodeId + ""));
|
|
6
|
-
} }, created() {
|
|
7
|
-
}, methods: { loadNode(e2, t2) {
|
|
8
|
-
var s2, d2 = 0;
|
|
9
|
-
0 === e2.level ? s2 = (d2 = 0) + "" : (d2 = e2.data.id, s2 = e2.data.nodeId);
|
|
10
|
-
var o2 = [];
|
|
11
|
-
this.$refs.roleTree && (o2 = this.$refs.roleTree.getCheckedKeys()), this.initLoadRole(d2, s2, e2, t2, o2);
|
|
12
|
-
}, initLoadRole(e2, t2, s2, d2, o2) {
|
|
13
|
-
this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((l2) => {
|
|
14
|
-
if (d2(l2), this.$refs.roleTree.updateKeyChildren(t2, l2), 0 === e2) {
|
|
15
|
-
const e3 = l2[0].data;
|
|
16
|
-
this.tenantInfo = JSON.parse(e3), this.containBranch = l2[0].containBranch, this.loadRole(this.tenantNodeId, this.tenantNodeId + "");
|
|
17
|
-
}
|
|
18
|
-
this.isClickNode ? (this.isClickNode = false, this.checkedNodeAndChildren(s2.data)) : o2 && o2.indexOf(t2) > -1 && this.checkedNodeAndChildren(s2.data);
|
|
19
|
-
});
|
|
20
|
-
}, loadRole(e2, t2, s2, d2) {
|
|
21
|
-
this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((e3) => {
|
|
22
|
-
this.$refs.roleTree.updateKeyChildren(t2, e3), this.$refs.roleTree.store.nodesMap[t2] && (this.$refs.roleTree.store.nodesMap[t2].expanded = true), s2 && (-1 === this.allExpandNodeIds.indexOf(t2) && this.allExpandNodeIds.push(t2), this.allExpandNodeIds.length === this.allSearchNodeIds.length && (this.$refs.roleTree.filter(d2), this.allExpandNodeIds = [], this.allSearchNodeIds = []));
|
|
23
|
-
});
|
|
24
|
-
}, clickSearch() {
|
|
25
|
-
this.searchValue = this.filterText, this.filterAppendNodes(this.filterText);
|
|
26
|
-
}, filterAppendNodes(e2) {
|
|
27
|
-
this.$http.get(this.baseAPI + "/acs/roles/search-system-role-trees?searchValue=" + e2).then((t2) => {
|
|
28
|
-
if (t2) {
|
|
29
|
-
if (0 === t2.length)
|
|
30
|
-
return void this.$message({ showClose: true, type: "error", message: this.$t("workflowEditorMessage.queryResultIsEmpty") });
|
|
31
|
-
t2.forEach((t3) => {
|
|
32
|
-
const s2 = "SYSTEM_" + t3;
|
|
33
|
-
-1 === this.allSearchNodeIds.indexOf(s2) && (this.allSearchNodeIds.push(s2), this.loadRole(t3, s2, true, e2));
|
|
34
|
-
});
|
|
35
|
-
} else
|
|
36
|
-
this.$message({ showClose: true, type: "error", message: this.$t("workflowEditorMessage.queryResultIsEmpty") });
|
|
37
|
-
});
|
|
38
|
-
}, handleCheckNode(e2, t2) {
|
|
39
|
-
t2.checkedKeys.indexOf(e2.nodeId) > -1 ? e2.children ? (this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.checkedNodeAndChildren(e2)) : e2.leaf || this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2.id).then((t3) => {
|
|
40
|
-
this.$refs.roleTree.updateKeyChildren(e2.nodeId, t3), this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.checkedNodeAndChildren(e2);
|
|
41
|
-
}) : this.cancelChildCheckedNodes(e2);
|
|
42
|
-
}, checkedNodeAndChildren(e2) {
|
|
43
|
-
this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.$refs.roleTree.setChecked(e2.nodeId, true);
|
|
44
|
-
const t2 = e2.children;
|
|
45
|
-
t2 && t2.forEach((e3) => {
|
|
46
|
-
this.checkedNodeAndChildren(e3);
|
|
47
|
-
});
|
|
48
|
-
}, cancelChildCheckedNodes(e2) {
|
|
49
|
-
e2.id !== this.tenantNodeId && this.$refs.roleTree.setChecked(this.tenantNodeId + "", false);
|
|
50
|
-
const t2 = e2.children;
|
|
51
|
-
t2 && t2.forEach((e3) => {
|
|
52
|
-
this.$refs.roleTree.setChecked(e3.nodeId, false), this.cancelChildCheckedNodes(e3);
|
|
53
|
-
});
|
|
54
|
-
}, selectRole() {
|
|
55
|
-
if (this.multiple) {
|
|
56
|
-
const e2 = { containBranch: this.containBranch, roles: [] }, t2 = [];
|
|
57
|
-
this.$refs.roleTree.getCheckedNodes().forEach((e3) => {
|
|
58
|
-
if ("ROLE" === e3.nodeType) {
|
|
59
|
-
const s2 = JSON.parse(e3.data);
|
|
60
|
-
s2.tenantCode = this.tenantInfo.code, s2.tenantName = this.tenantInfo.tenantName, t2.push(s2);
|
|
61
|
-
}
|
|
62
|
-
}), e2.roles = t2, e2.length > 0 ? this.$emit("result", e2) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
|
|
63
|
-
} else
|
|
64
|
-
this.selectNodeInfo ? this.$emit("result", this.selectNodeInfo) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
|
|
65
|
-
}, filterNode(e2, t2, s2) {
|
|
66
|
-
if (e2) {
|
|
67
|
-
var d2 = t2.label;
|
|
68
|
-
return "ROLE" === t2.nodeType && -1 !== d2.indexOf(e2);
|
|
69
|
-
}
|
|
70
|
-
return true;
|
|
71
|
-
}, handleNodeClick(e2, t2, s2) {
|
|
72
|
-
if (this.multiple && this.clickNodeWhenMultiple(e2), "ROLE" === e2.nodeType && !this.multiple) {
|
|
73
|
-
const t3 = JSON.parse(e2.data);
|
|
74
|
-
t3.tenantName = this.tenantInfo.tenantName, t3.tenantCode = this.tenantInfo.code;
|
|
75
|
-
var d2 = { id: e2.id, name: e2.name, containBranch: this.containBranch, role: t3 };
|
|
76
|
-
this.selectNodeInfo = d2;
|
|
77
|
-
}
|
|
78
|
-
}, clickNodeWhenMultiple(e2) {
|
|
79
|
-
var t2 = [];
|
|
80
|
-
if (this.$refs.roleTree && (t2 = this.$refs.roleTree.getCheckedKeys()), t2.indexOf(e2.nodeId) > -1)
|
|
81
|
-
this.$refs.roleTree.setChecked(e2.nodeId, false), this.cancelChildCheckedNodes(e2), this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true;
|
|
82
|
-
else {
|
|
83
|
-
this.$refs.roleTree.setChecked(e2.nodeId, true);
|
|
84
|
-
const t3 = e2.childDepartments;
|
|
85
|
-
t3 && t3.length > 0 ? this.checkedNodeAndChildren(e2) : this.isClickNode = true;
|
|
86
|
-
}
|
|
87
|
-
}, renderContent(e2, { node: t2, data: s2, store: d2 }) {
|
|
88
|
-
return s2.nodeType && "ROLE" === s2.nodeType && this.searchValue && s2.label.indexOf(this.searchValue) > -1 ? e2("span", {}, [e2("span", { class: "searchResult" }, t2.label)]) : e2("span", {}, [e2("span", {}, t2.label)]);
|
|
89
|
-
} } }, h = Object.assign(i, { setup: (i2) => (h2, a) => {
|
|
90
|
-
const c = e("el-button"), p = e("el-input"), f = e("el-tree");
|
|
91
|
-
return t(), s("div", null, [d(p, { modelValue: h2.filterText, "onUpdate:modelValue": a[0] || (a[0] = (e2) => h2.filterText = e2), placeholder: h2.$t("workflowEditorMessage.pleaseEnterTheRoleName"), onKeyup: o(h2.clickSearch, ["enter"]) }, { append: l(() => [d(c, { icon: n(r), onClick: h2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"]), d(f, { ref: "roleTree", props: h2.defaultProps, load: h2.loadNode, lazy: "", "highlight-current": true, "node-key": "nodeId", "show-checkbox": i2.multiple, "check-strictly": "", "render-content": h2.renderContent, "filter-node-method": h2.filterNode, onCheck: h2.handleCheckNode, onNodeClick: h2.handleNodeClick }, null, 8, ["props", "load", "show-checkbox", "render-content", "filter-node-method", "onCheck", "onNodeClick"])]);
|
|
92
|
-
} });
|
|
93
|
-
export {
|
|
94
|
-
h as default
|
|
95
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import e from "./system-role-tree-inline.vue.mjs";
|
|
2
|
-
import { resolveComponent as l, openBlock as t, createBlock as o, createSlots as s, withCtx as i, createVNode as r, createTextVNode as m, toDisplayString as n } from "vue";
|
|
3
|
-
import "./system-role-tree.vue2.mjs";
|
|
4
|
-
import u from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const a = u({ name: "SystemRoleTree", components: { InlineSystemRoleTree: e }, props: { multiple: { type: Boolean, default: false } }, data: () => ({ dialogVisible: true }), computed: {}, watch: {}, created() {
|
|
6
|
-
}, methods: { roleResult(e2) {
|
|
7
|
-
e2 ? this.$emit("close", e2) : this.$emit("close");
|
|
8
|
-
}, selectRoles() {
|
|
9
|
-
this.$refs.systemRoleTree.selectRole();
|
|
10
|
-
} } }, [["render", function(e2, u2, a2, c, d, p) {
|
|
11
|
-
const f = l("inline-system-role-tree"), y = l("el-button"), R = l("el-dialog");
|
|
12
|
-
return t(), o(R, { "model-value": "", title: e2.$t("workflowEditorMessage.selectRole"), width: "30%", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", "close-on-click-modal": false, onClose: u2[1] || (u2[1] = (l2) => e2.$emit("close")) }, s({ default: i(() => [r(f, { ref: "systemRoleTree", multiple: a2.multiple, onResult: p.roleResult }, null, 8, ["multiple", "onResult"])]), _: 2 }, [a2.multiple ? { name: "footer", fn: i(() => [r(y, { type: "primary", size: "small", onClick: p.selectRoles }, { default: i(() => [m(n(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r(y, { size: "small", onClick: u2[0] || (u2[0] = (l2) => e2.$emit("close")) }, { default: i(() => [m(n(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), key: "0" } : void 0]), 1032, ["title"]);
|
|
13
|
-
}]]);
|
|
14
|
-
export {
|
|
15
|
-
a as default
|
|
16
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import e from "./form-fields.vue.mjs";
|
|
2
|
-
import { getFormFieldLabel as i } from "./form-fields-utils.mjs";
|
|
3
|
-
import { resolveComponent as t, openBlock as s, createElementBlock as l, Fragment as n, renderList as o, createBlock as a, withCtx as d, createTextVNode as u, toDisplayString as r, withKeys as m, createCommentVNode as h, createVNode as p } from "vue";
|
|
4
|
-
import "./task-title.vue2.mjs";
|
|
5
|
-
import f from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
-
const c = f({ name: "TaskTitle", components: { FormFields: e }, props: { modelValue: { type: String, default: null } }, data() {
|
|
7
|
-
const e2 = [];
|
|
8
|
-
if (this.modelValue) {
|
|
9
|
-
const i2 = /\$\{(.+?)\}/g, t2 = this.modelValue.match(i2);
|
|
10
|
-
for (const i3 of t2)
|
|
11
|
-
e2.push(i3);
|
|
12
|
-
}
|
|
13
|
-
return { dynamicTags: e2, inputVisible: false, showFormFields: false, inputValue: "", showLabel: null, isShowAdditionalParam: false };
|
|
14
|
-
}, mounted() {
|
|
15
|
-
}, methods: { showText(e2) {
|
|
16
|
-
let t2 = e2;
|
|
17
|
-
if (e2.indexOf("${field[") >= 0) {
|
|
18
|
-
const e3 = t2.substring(t2.indexOf("[") + 1, t2.lastIndexOf("]"));
|
|
19
|
-
t2 = i(e3), t2 = "[" + t2 + "]";
|
|
20
|
-
} else if (e2.indexOf("${writeTitle[") >= 0) {
|
|
21
|
-
const i2 = e2.indexOf("${writeTitle[");
|
|
22
|
-
t2 = t2.substring(i2 + 13), t2 = t2.substring(0, t2.indexOf("]"));
|
|
23
|
-
}
|
|
24
|
-
return t2;
|
|
25
|
-
}, handleClose(e2) {
|
|
26
|
-
this.dynamicTags.splice(this.dynamicTags.indexOf(e2), 1), this.$emit("update:modelValue", this.dynamicTags.join(""));
|
|
27
|
-
}, showInput() {
|
|
28
|
-
this.inputVisible = true, this.$nextTick((e2) => {
|
|
29
|
-
this.$refs.saveTagInput.focus();
|
|
30
|
-
});
|
|
31
|
-
}, showAdditionalParam() {
|
|
32
|
-
this.isShowAdditionalParam = true, this.$nextTick((e2) => {
|
|
33
|
-
this.$refs.saveTagInput.focus();
|
|
34
|
-
});
|
|
35
|
-
}, handleInputConfirm() {
|
|
36
|
-
let e2 = this.inputValue;
|
|
37
|
-
e2 && (this.inputVisible ? e2 = "${writeTitle[" + e2 + "]}" : this.isShowAdditionalParam && (e2 = "${request[" + e2 + "]}"), this.dynamicTags.push(e2), this.$emit("update:modelValue", this.dynamicTags.join(""))), this.inputVisible = false, this.isShowAdditionalParam = false, this.inputValue = "";
|
|
38
|
-
}, getType: (e2) => e2.indexOf("${field") >= 0 ? "success" : null, setField(e2) {
|
|
39
|
-
void 0 !== e2 && (this.dynamicTags.push("${field[" + e2 + "]}"), this.$emit("update:modelValue", this.dynamicTags.join(""))), this.showFormFields = false;
|
|
40
|
-
} } }, [["render", function(e2, i2, f2, c2, g, w) {
|
|
41
|
-
const T = t("el-tag"), y = t("el-input"), V = t("el-button"), $ = t("el-button-group"), b = t("form-fields");
|
|
42
|
-
return s(), l("div", null, [(s(true), l(n, null, o(g.dynamicTags, (e3, i3) => (s(), a(T, { key: i3 + e3, type: w.getType(e3), closable: "", "disable-transitions": false, onClose: (i4) => w.handleClose(e3) }, { default: d(() => [u(r(w.showText(e3)), 1)]), _: 2 }, 1032, ["type", "onClose"]))), 128)), g.inputVisible || g.isShowAdditionalParam ? (s(), a(y, { key: 0, ref: "saveTagInput", modelValue: g.inputValue, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => g.inputValue = e3), class: "input-new-tag", size: "small", onKeyup: m(w.handleInputConfirm, ["enter", "native"]), onBlur: w.handleInputConfirm }, null, 8, ["modelValue", "onKeyup", "onBlur"])) : h("", true), g.inputVisible ? h("", true) : (s(), a($, { key: 1 }, { default: d(() => [p(V, { class: "button-new-tag", size: "small", icon: "EditPen", onClick: w.showInput }, { default: d(() => [u(r(e2.$t("workflowEditorMessage.enterText")), 1)]), _: 1 }, 8, ["onClick"]), p(V, { class: "button-new-tag", size: "small", icon: "Search", onClick: i2[1] || (i2[1] = (e3) => g.showFormFields = true) }, { default: d(() => [u(r(e2.$t("workflowEditorMessage.selectField")), 1)]), _: 1 }), p(V, { class: "button-new-tag", size: "small", icon: "EditPen", onClick: w.showAdditionalParam }, { default: d(() => [u(r(e2.$t("workflowEditorMessage.additionalParam")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 })), g.showFormFields ? (s(), a(b, { key: 2, onClose: w.setField }, null, 8, ["onClose"])) : h("", true)]);
|
|
43
|
-
}], ["__scopeId", "data-v-aaf48aff"]]);
|
|
44
|
-
export {
|
|
45
|
-
c as default
|
|
46
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import e from "./common-user-condition.vue.mjs";
|
|
2
|
-
import o from "./form-fields.vue.mjs";
|
|
3
|
-
import { getFormFieldLabel as t } from "./form-fields-utils.mjs";
|
|
4
|
-
import { resolveComponent as l, openBlock as i, createBlock as d, withCtx as r, createVNode as n, createTextVNode as a, toDisplayString as s, createCommentVNode as m, createElementBlock as u, withDirectives as c, vShow as f } from "vue";
|
|
5
|
-
import p from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
-
const h = { name: "TransactorSettings", components: { CommonUserCondition: e, FormFields: o }, props: { model: { type: Object, default: null }, usedIn: { type: String, default: "HumanTask" }, isSubprocess: { type: Boolean, default: false }, basicProperties: { type: Object, default: null } }, data() {
|
|
7
|
-
const e2 = { selectedField: "" };
|
|
8
|
-
return this.initFormModel(e2), { showFormFields: false, formModel: e2, isCountersign: false };
|
|
9
|
-
}, mounted() {
|
|
10
|
-
this.$watch("formModel", function() {
|
|
11
|
-
this.setTransactor(this.formModel.transactor);
|
|
12
|
-
const e2 = { ...this.formModel.additionalCondition };
|
|
13
|
-
e2.selectOneFromMultiple ? "customType" === e2.selectType && delete e2.selectUrl : (delete e2.selectType, delete e2.selectUrl), this.model.additionalCondition = e2;
|
|
14
|
-
}, { deep: true }), this.$watch("basicProperties", function() {
|
|
15
|
-
this.showActivateOneVoteVeto();
|
|
16
|
-
}, { deep: true }), this.showActivateOneVoteVeto();
|
|
17
|
-
}, methods: { formatLabel: (e2) => t(e2), initFormModel(e2) {
|
|
18
|
-
e2.userCondition = "";
|
|
19
|
-
const o2 = this.model.userCondition;
|
|
20
|
-
void 0 === o2 || "" === o2 || null === o2 ? (e2.transactor = "${instanceCreator}", this.model.userCondition = "${instanceCreator}") : "${instanceCreator}" === o2 || "${previousTransactorAssignment}" === o2 ? e2.transactor = o2 : o2.startsWith("${field[") && o2.indexOf("${field[") >= 0 && o2.indexOf('"selectedField": "${field[') < 2 ? (e2.transactor = "byField", e2.selectedField = o2) : o2.startsWith("${deptField[") ? (e2.transactor = "byDeptField", e2.selectedField = o2) : (e2.transactor = "byCondition", e2.userCondition = o2), this.initAdditionalCondition(e2), void 0 !== this.model.url ? e2.url = this.model.url : e2.url = "";
|
|
21
|
-
}, initAdditionalCondition(e2) {
|
|
22
|
-
void 0 === this.model.additionalCondition ? e2.additionalCondition = { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false, selectType: "customType", selectUrl: "" } : (e2.additionalCondition = { ...this.model.additionalCondition }, void 0 === e2.additionalCondition.selectType && (e2.additionalCondition.selectType = "customType"));
|
|
23
|
-
}, changeA(e2) {
|
|
24
|
-
this.setTransactor(e2);
|
|
25
|
-
}, handleUrlChange(e2) {
|
|
26
|
-
this.model.url = e2;
|
|
27
|
-
}, setTransactor(e2) {
|
|
28
|
-
"${instanceCreator}" !== e2 && "${previousTransactorAssignment}" !== e2 || (this.model.userCondition = e2), "byField" === e2 && (this.model.userCondition = this.formModel.selectedField), "byCondition" === e2 && (this.model.userCondition = this.formModel.userCondition), this.model.url = "${previousTransactorAssignment}" === e2 ? this.formModel.url : "", this.model.additionalCondition = "byCondition" === e2 ? { ...this.formModel.additionalCondition } : void 0;
|
|
29
|
-
}, handleFieldSelection(e2) {
|
|
30
|
-
}, setField(e2) {
|
|
31
|
-
void 0 !== e2 && ("byDeptField" === this.formModel.transactor ? (this.formModel.selectedField = "${deptField[" + e2 + "]}", this.model.userCondition = this.formModel.selectedField) : (this.formModel.selectedField = "${field[" + e2 + "]}", this.model.userCondition = this.formModel.selectedField)), this.showFormFields = false;
|
|
32
|
-
}, showActivateOneVoteVeto() {
|
|
33
|
-
this.basicProperties && this.basicProperties.processingMode && ("COUNTERSIGN" === this.basicProperties.processingMode.type ? this.isCountersign = true : (this.isCountersign = false, this.formModel.additionalCondition.activateOneVoteVeto = false));
|
|
34
|
-
}, transactorChange() {
|
|
35
|
-
this.formModel.selectedField = null;
|
|
36
|
-
} } }, C = { key: 0, style: { width: "100%" } }, w = { key: 1 }, M = { key: 0 };
|
|
37
|
-
const F = p(h, [["render", function(e2, o2, t2, p2, h2, F2) {
|
|
38
|
-
const y = l("el-radio"), b = l("el-radio-group"), V = l("common-user-condition"), $ = l("el-form-item"), k = l("el-input"), g = l("form-fields"), T = l("el-checkbox"), v = l("el-form");
|
|
39
|
-
return i(), d(v, { model: h2.formModel }, { default: r(() => [n($, { label: "" }, { default: r(() => [n(b, { modelValue: h2.formModel.transactor, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => h2.formModel.transactor = e3), onChange: F2.transactorChange }, { default: r(() => [n(y, { label: "${instanceCreator}" }, { default: r(() => [a(s(e2.$t("workflowEditor.process.processInitiator")), 1)]), _: 1 }), "HumanTask" === t2.usedIn ? (i(), d(y, { key: 0, label: "${previousTransactorAssignment}" }, { default: r(() => [a(s(e2.$t("workflowEditor.process.appointmentOfHandlerInThePreviousLink")), 1)]), _: 1 })) : m("", true), n(y, { label: "byField" }, { default: r(() => [a(s(e2.$t("workflowEditor.process.personSpecifiedInFormField")), 1)]), _: 1 }), n(y, { label: "byDeptField" }, { default: r(() => [a(s(e2.$t("workflowEditor.process.deptSpecifiedInFormField")), 1)]), _: 1 }), n(y, { label: "byCondition" }, { default: r(() => [a(s(e2.$t("workflowEditor.process.filterByCriteria")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), "byCondition" === h2.formModel.transactor ? (i(), u("div", C, [n(V, { modelValue: h2.formModel.userCondition, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => h2.formModel.userCondition = e3), "used-in": "transactor" }, null, 8, ["modelValue"])])) : m("", true)]), _: 1 }), "byField" === h2.formModel.transactor || "byDeptField" === h2.formModel.transactor ? (i(), d($, { key: 0, prop: "selectedField", rules: [{ required: true, message: e2.$t("workflowEditor.process.fieldName") + e2.$t("workflowEditor.common.canNotBeEmpty"), trigger: "focus" }], label: e2.$t("workflowEditor.process.fieldName"), "label-width": "80px" }, { default: r(() => [n(k, { value: F2.formatLabel(h2.formModel.selectedField), onClick: o2[2] || (o2[2] = (e3) => h2.showFormFields = true) }, null, 8, ["value"]), h2.showFormFields ? (i(), d(g, { key: 0, onClose: F2.setField }, null, 8, ["onClose"])) : m("", true)]), _: 1 }, 8, ["rules", "label"])) : m("", true), "byCondition" === h2.formModel.transactor || "byField" === h2.formModel.transactor || "byDeptField" === h2.formModel.transactor ? (i(), u("div", w, [n($, { label: e2.$t("workflowEditor.process.additionalConditions") }, { default: r(() => [n(T, { modelValue: h2.formModel.additionalCondition.onlyInCreatorDepartment, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => h2.formModel.additionalCondition.onlyInCreatorDepartment = e3) }, { default: r(() => [a(s(e2.$t("workflowEditor.process.handlingYyThePersonnelOfTheDepartmentOfTheInitiator")), 1)]), _: 1 }, 8, ["modelValue"]), n(T, { modelValue: h2.formModel.additionalCondition.withCreatorDepartment, "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => h2.formModel.additionalCondition.withCreatorDepartment = e3) }, { default: r(() => [a(s(e2.$t("workflowEditor.process.personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling")), 1)]), _: 1 }, 8, ["modelValue"]), n(T, { modelValue: h2.formModel.additionalCondition.selectOneFromMultiple, "onUpdate:modelValue": o2[5] || (o2[5] = (e3) => h2.formModel.additionalCondition.selectOneFromMultiple = e3) }, { default: r(() => [a(s(e2.$t("workflowEditor.process.selectSpecificHandler")), 1)]), _: 1 }, 8, ["modelValue"]), n(T, { modelValue: h2.formModel.additionalCondition.selectOneFromDept, "onUpdate:modelValue": o2[6] || (o2[6] = (e3) => h2.formModel.additionalCondition.selectOneFromDept = e3) }, { default: r(() => [a(s(e2.$t("workflowEditor.process.selectOneFromDept")), 1)]), _: 1 }, 8, ["modelValue"]), t2.isSubprocess ? (i(), d(T, { key: 0, modelValue: h2.formModel.additionalCondition.generateOneInstanceFromDept, "onUpdate:modelValue": o2[7] || (o2[7] = (e3) => h2.formModel.additionalCondition.generateOneInstanceFromDept = e3) }, { default: r(() => [a(s(e2.$t("workflowEditor.process.generateOneInstanceFromDept")), 1)]), _: 1 }, 8, ["modelValue"])) : m("", true), h2.isCountersign ? (i(), d(T, { key: 1, modelValue: h2.formModel.additionalCondition.activateOneVoteVeto, "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => h2.formModel.additionalCondition.activateOneVoteVeto = e3) }, { default: r(() => [a(s(e2.$t("workflowEditor.process.activateOneVoteVeto")), 1)]), _: 1 }, 8, ["modelValue"])) : m("", true)]), _: 1 }, 8, ["label"]), h2.formModel.additionalCondition.selectOneFromMultiple ? (i(), u("div", M, [n($, { label: e2.$t("workflowEditor.process.selectionMethod") }, { default: r(() => [n(b, { modelValue: h2.formModel.additionalCondition.selectType, "onUpdate:modelValue": o2[9] || (o2[9] = (e3) => h2.formModel.additionalCondition.selectType = e3) }, { default: r(() => [n(y, { label: "customType" }, { default: r(() => [a(s(e2.$t("workflowEditor.process.manualSelection")), 1)]), _: 1 }), n(y, { label: "autoType" }, { default: r(() => [a(s(e2.$t("workflowEditor.process.autoSelect")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), c(n($, { prop: "additionalCondition.selectUrl", label: e2.$t("workflowEditor.process.callbackURL"), rules: [{ required: true, message: this.$t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }] }, { default: r(() => [n(k, { modelValue: h2.formModel.additionalCondition.selectUrl, "onUpdate:modelValue": o2[10] || (o2[10] = (e3) => h2.formModel.additionalCondition.selectUrl = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"]), [[f, "autoType" === h2.formModel.additionalCondition.selectType]])])) : m("", true)])) : m("", true), "HumanTask" === t2.usedIn && "${previousTransactorAssignment}" === h2.formModel.transactor ? (i(), d($, { key: 2, prop: "url", rules: [{ required: true, message: this.$t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }], label: e2.$t("workflowEditor.process.selectURL"), "label-width": "80px" }, { default: r(() => [n(k, { modelValue: h2.formModel.url, "onUpdate:modelValue": o2[11] || (o2[11] = (e3) => h2.formModel.url = e3), modelModifiers: { trim: true }, onChange: F2.handleUrlChange }, null, 8, ["modelValue", "onChange"])]), _: 1 }, 8, ["rules", "label"])) : m("", true)]), _: 1 }, 8, ["model"]);
|
|
40
|
-
}]]);
|
|
41
|
-
export {
|
|
42
|
-
F as default
|
|
43
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import e from "./form-fields.vue.mjs";
|
|
2
|
-
import t from "./system-role-tree.vue.mjs";
|
|
3
|
-
import { getFormFieldLabel as s } from "./form-fields-utils.mjs";
|
|
4
|
-
import { resolveComponent as o, openBlock as l, createBlock as r, withCtx as i, createVNode as n, createTextVNode as a, toDisplayString as c, createElementBlock as d, createElementVNode as h, createCommentVNode as p } from "vue";
|
|
5
|
-
import u from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
-
const m = { name: "UserSelection", components: { SystemRoleTree: t, FormFields: e }, props: { label: { type: String, default: "" }, labelWidth: { type: String, default: null }, modelValue: { type: String, default: "" }, currentTransactor: { type: Boolean, default: false } }, data() {
|
|
7
|
-
let e2 = false, t2 = "";
|
|
8
|
-
const s2 = this.modelValue.split("; "), o2 = s2[0].split(" condition.operator.or ");
|
|
9
|
-
return 2 === s2.length && (e2 = true, t2 = s2[1].split(" condition.operator.or "), o2.push("assignUser")), { checkList: o2, showUserList: e2, selectedUsers: t2, showSelectUser: false, selectedUsersShowValue: null, showSelectDepartment: false, showSelectWorkgroup: false, showSelectRole: false, showSelectField: false };
|
|
10
|
-
}, watch: { checkList(e2) {
|
|
11
|
-
this.$emit("update:modelValue", this.getValue());
|
|
12
|
-
}, selectedUsers(e2) {
|
|
13
|
-
this.$emit("update:modelValue", this.getValue());
|
|
14
|
-
} }, created() {
|
|
15
|
-
this.checkList, this.getSelectedUsersShowValue();
|
|
16
|
-
}, methods: { formatLabel: (e2) => s(e2), getValue() {
|
|
17
|
-
let e2 = this.checkList.filter((e3) => "" !== e3 && "assignUser" !== e3).join(" condition.operator.or ");
|
|
18
|
-
return this.showUserList && this.selectedUsers && 0 !== this.selectedUsers.length && (e2 = e2 + "; " + this.selectedUsers.join(" condition.operator.or ")), e2;
|
|
19
|
-
}, toggleUserList() {
|
|
20
|
-
this.showUserList = !this.showUserList;
|
|
21
|
-
}, resetSelectedUsers() {
|
|
22
|
-
this.selectedUsers = [], this.selectedUsersShowValue = "";
|
|
23
|
-
}, handleCommand(e2) {
|
|
24
|
-
"selectUser" === e2 ? this.selectPointUser() : "selectDepartment" === e2 ? this.selectPointDepartment() : "selectRole" === e2 ? this.selectPointRole() : "selectWorkgroup" === e2 ? this.selectPointWorkgroup() : "selectField" === e2 && this.selectPointField();
|
|
25
|
-
}, selectPointUser() {
|
|
26
|
-
this.showSelectUser = true;
|
|
27
|
-
}, selectPointDepartment() {
|
|
28
|
-
this.showSelectDepartment = true;
|
|
29
|
-
}, selectPointRole() {
|
|
30
|
-
this.showSelectRole = true;
|
|
31
|
-
}, selectPointField() {
|
|
32
|
-
this.showSelectField = true;
|
|
33
|
-
}, selectPointWorkgroup() {
|
|
34
|
-
this.showSelectWorkgroup = true;
|
|
35
|
-
}, addPointUsers(e2) {
|
|
36
|
-
if (e2) {
|
|
37
|
-
e2.containBranch ? this.packageSelectedUserConditionsWithBranch(e2.users) : this.packageSelectedUserConditionsWithOutBranch(e2.users), this.getSelectedUsersShowValue();
|
|
38
|
-
}
|
|
39
|
-
this.showSelectUser = false;
|
|
40
|
-
}, packageSelectedUserConditionsWithBranch(e2) {
|
|
41
|
-
e2.forEach((e3) => {
|
|
42
|
-
let t2 = e3.loginName, s2 = e3.name;
|
|
43
|
-
if (e3.subCompanyId && null !== e3.subCompanyId) {
|
|
44
|
-
t2 = t2 + "~~" + e3.subCompanyCode, s2 = s2 + "/" + e3.subCompanyName;
|
|
45
|
-
} else
|
|
46
|
-
t2 = t2 + "~~" + e3.tenantCode, s2 = s2 + "/" + e3.tenantName;
|
|
47
|
-
const o2 = "${user} operator.text.eq " + s2 + "[" + t2 + "]";
|
|
48
|
-
if (this.selectedUsers) {
|
|
49
|
-
0 === this.selectedUsers.filter(this.filterCondition(o2)).length && this.selectedUsers.push(o2);
|
|
50
|
-
} else
|
|
51
|
-
this.selectedUsers = [], this.selectedUsers.push(o2);
|
|
52
|
-
});
|
|
53
|
-
}, packageSelectedUserConditionsWithOutBranch(e2) {
|
|
54
|
-
e2.forEach((e3) => {
|
|
55
|
-
this.selectedUsers || (this.selectedUsers = []);
|
|
56
|
-
const t2 = "${user} operator.text.eq " + e3.name + "[" + e3.loginName + "]";
|
|
57
|
-
0 === this.selectedUsers.filter(this.filterCondition(t2)).length && this.selectedUsers.push(t2);
|
|
58
|
-
});
|
|
59
|
-
}, getSelectedUsersShowValue() {
|
|
60
|
-
if (this.selectedUsers) {
|
|
61
|
-
const e2 = this.selectedUsers.join(" condition.operator.or ");
|
|
62
|
-
this.selectedUsersShowValue = e2.replace(/\$\{user\}/g, "用户").replace(/\$\{department\}/g, "部门").replace(/\$\{workGroup\}/g, "工作组").replace(/\$\{role\}/g, "角色").replace(/operator\.text\.eq/g, "等于").replace(/condition\.operator\.or/g, "或者").replace(/\$\{field/g, "字段").replace(/]\}/g, "]");
|
|
63
|
-
}
|
|
64
|
-
}, filterCondition: (e2) => (t2) => t2 === e2, addPointDepartments(e2) {
|
|
65
|
-
if (e2) {
|
|
66
|
-
e2.containBranch ? this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2.departments, "${department}") : this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.departments, "${department}"), this.getSelectedUsersShowValue();
|
|
67
|
-
}
|
|
68
|
-
this.showSelectDepartment = false;
|
|
69
|
-
}, packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2, t2) {
|
|
70
|
-
const s2 = t2 + " operator.text.eq ";
|
|
71
|
-
e2.forEach((e3) => {
|
|
72
|
-
const t3 = e3.code;
|
|
73
|
-
let o2 = e3.name;
|
|
74
|
-
if (e3.subCompanyId && null !== e3.subCompanyId) {
|
|
75
|
-
const t4 = e3.subCompanyName;
|
|
76
|
-
t4 && "" !== t4 && (o2 = o2 + "/" + t4);
|
|
77
|
-
} else
|
|
78
|
-
o2 = o2 + "/" + e3.tenantName;
|
|
79
|
-
const l2 = s2 + o2 + "[" + t3 + "]";
|
|
80
|
-
if (this.selectedUsers) {
|
|
81
|
-
0 === this.selectedUsers.filter(this.filterCondition(l2)).length && this.selectedUsers.push(l2);
|
|
82
|
-
} else
|
|
83
|
-
this.selectedUsers = [], this.selectedUsers.push(l2);
|
|
84
|
-
});
|
|
85
|
-
}, packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2, t2) {
|
|
86
|
-
const s2 = t2 + " operator.text.eq ";
|
|
87
|
-
e2.forEach((e3) => {
|
|
88
|
-
const t3 = s2 + e3.name + "[" + e3.code + "]";
|
|
89
|
-
if (this.selectedUsers) {
|
|
90
|
-
0 === this.selectedUsers.filter(this.filterCondition(t3)).length && this.selectedUsers.push(t3);
|
|
91
|
-
} else
|
|
92
|
-
this.selectedUsers = [], this.selectedUsers.push(t3);
|
|
93
|
-
});
|
|
94
|
-
}, addPointWorkgroups(e2) {
|
|
95
|
-
if (e2) {
|
|
96
|
-
e2.containBranch ? this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2.workgroups, "${workGroup}") : this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.workgroups, "${workGroup}"), this.getSelectedUsersShowValue();
|
|
97
|
-
}
|
|
98
|
-
this.showSelectWorkgroup = false;
|
|
99
|
-
}, addPointRoles(e2) {
|
|
100
|
-
e2 && (this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.roles, "${role}"), this.getSelectedUsersShowValue()), this.showSelectRole = false;
|
|
101
|
-
}, packageSelectedFieldConditions(e2, t2) {
|
|
102
|
-
const s2 = t2 + " operator.text.eq ${field[" + e2 + "]}";
|
|
103
|
-
if (this.selectedUsers) {
|
|
104
|
-
0 === this.selectedUsers.filter(this.filterCondition(s2)).length && this.selectedUsers.push(s2);
|
|
105
|
-
} else
|
|
106
|
-
this.selectedUsers = [], this.selectedUsers.push(s2);
|
|
107
|
-
}, setField(e2) {
|
|
108
|
-
void 0 !== e2 && (this.packageSelectedFieldConditions(e2, "${user}"), this.getSelectedUsersShowValue()), this.showSelectField = false;
|
|
109
|
-
} } }, f = { key: 0, style: { width: "100%", "vertical-align": "middle" } }, w = { class: "el-dropdown-link" }, g = h("i", { class: "fa fa-search" }, null, -1);
|
|
110
|
-
const k = u(m, [["render", function(e2, t2, s2, u2, m2, k2) {
|
|
111
|
-
const U = o("el-checkbox"), S = o("el-checkbox-group"), C = o("el-col"), $ = o("el-dropdown-item"), y = o("el-dropdown-menu"), W = o("el-dropdown"), P = o("el-button"), b = o("el-row"), _ = o("el-input"), V = o("department-user-tree"), D = o("department-tree"), E = o("workgroup-tree"), F = o("system-role-tree"), B = o("form-fields"), L = o("el-form-item");
|
|
112
|
-
return l(), r(L, { label: s2.label, "label-width": s2.labelWidth }, { default: i(() => [n(C, null, { default: i(() => [n(S, { modelValue: m2.checkList, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => m2.checkList = e3) }, { default: i(() => [n(U, { label: "${instanceCreator}" }, { default: i(() => [a(c(e2.$t("workflowEditor.process.processInitiator")), 1)]), _: 1 }), n(U, { label: "${processAdmin}" }, { default: i(() => [a(c(e2.$t("workflowEditor.process.processAdministrator")), 1)]), _: 1 }), s2.currentTransactor ? (l(), r(U, { key: 0, label: "${currentTransactor}" }, { default: i(() => [a(c(e2.$t("workflowEditor.process.currentHandler")), 1)]), _: 1 })) : (l(), r(U, { key: 1, label: "${allHandleTransactors}" }, { default: i(() => [a(c(e2.$t("workflowEditor.process.allHandlingPersonnel")), 1)]), _: 1 })), n(U, { label: "assignUser", onChange: k2.toggleUserList }, { default: i(() => [a(c(e2.$t("workflowEditor.process.designatedPersonnel")), 1)]), _: 1 }, 8, ["onChange"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }), m2.showUserList ? (l(), d("div", f, [n(C, null, { default: i(() => [n(b, null, { default: i(() => [n(C, { span: 4 }, { default: i(() => [a(c(e2.$t("workflowEditor.process.listOfDesignatedPersons")), 1)]), _: 1 }), n(C, { style: { display: "flex", "justify-content": "center", "align-items": "center" }, span: 5 }, { default: i(() => [n(W, { size: "small", "split-button": "", type: "primary", plain: "", onCommand: k2.handleCommand }, { dropdown: i(() => [n(y, null, { default: i(() => [n($, { command: "selectUser", onClick: t2[1] || (t2[1] = (e3) => k2.selectPointUser()) }, { default: i(() => [a(c(e2.$t("workflowEditor.common.selectusers")), 1)]), _: 1 }), n($, { command: "selectDepartment", onClick: t2[2] || (t2[2] = (e3) => k2.selectPointDepartment()) }, { default: i(() => [a(c(e2.$t("workflowEditor.common.selectDepartment")), 1)]), _: 1 }), n($, { command: "selectWorkgroup", onClick: t2[3] || (t2[3] = (e3) => k2.selectPointWorkgroup()) }, { default: i(() => [a(c(e2.$t("workflowEditor.common.selectTeam")), 1)]), _: 1 }), n($, { command: "selectRole", onClick: t2[4] || (t2[4] = (e3) => k2.selectPointRole()) }, { default: i(() => [a(c(e2.$t("workflowEditor.common.selectRole")), 1)]), _: 1 }), n($, { command: "selectField", onClick: t2[5] || (t2[5] = (e3) => k2.selectPointField()) }, { default: i(() => [a(c(e2.$t("workflowEditor.common.selectField")), 1)]), _: 1 })]), _: 1 })]), default: i(() => [h("span", w, [g, a(" " + c(e2.$t("workflowEditorPublicModel.choice")), 1)])]), _: 1 }, 8, ["onCommand"])]), _: 1 }), n(C, { span: 3 }, { default: i(() => [n(P, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: k2.resetSelectedUsers }, { default: i(() => [a(c(e2.$t("workflowEditorPublicModel.empty")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 })]), _: 1 }), n(b, null, { default: i(() => [n(C, null, { default: i(() => [n(_, { modelValue: m2.selectedUsersShowValue, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => m2.selectedUsersShowValue = e3), type: "textarea", rows: 2, placeholder: e2.$t("workflowEditorMessage.pleaseSelectPersonnel") }, null, 8, ["modelValue", "placeholder"])]), _: 1 })]), _: 1 })]), _: 1 }), m2.showSelectUser ? (l(), r(V, { key: 0, width: "60%", multiple: true, onClose: k2.addPointUsers }, null, 8, ["onClose"])) : p("", true), m2.showSelectDepartment ? (l(), r(D, { key: 1, width: "30%", multiple: true, onClose: k2.addPointDepartments }, null, 8, ["onClose"])) : p("", true), m2.showSelectWorkgroup ? (l(), r(E, { key: 2, width: "30%", multiple: true, onClose: k2.addPointWorkgroups }, null, 8, ["onClose"])) : p("", true), m2.showSelectRole ? (l(), r(F, { key: 3, multiple: true, onClose: k2.addPointRoles }, null, 8, ["onClose"])) : p("", true), m2.showSelectField ? (l(), r(B, { key: 4, onClose: k2.setField }, null, 8, ["onClose"])) : p("", true)])) : p("", true)]), _: 1 }, 8, ["label", "label-width"]);
|
|
113
|
-
}]]);
|
|
114
|
-
export {
|
|
115
|
-
k as default
|
|
116
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import e from "./system-role-tree-inline.vue.mjs";
|
|
2
|
-
import { mapGetters as t } from "vuex";
|
|
3
|
-
import { getI18n as l } from "../../util.mjs";
|
|
4
|
-
import { resolveComponent as a, openBlock as o, createBlock as r, withCtx as i, createVNode as s, createTextVNode as n, toDisplayString as d, createElementBlock as u, Fragment as m, renderList as p, createCommentVNode as c } from "vue";
|
|
5
|
-
import "./value-selection-dialog.vue2.mjs";
|
|
6
|
-
import f from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
-
const g = f({ name: "ValueSelectionDialog", components: { InlineSystemRoleTree: e }, props: { standardFields: { type: [Object, Array], default: null }, title: { type: String, default: "" }, showOrganization: { type: Boolean, default: true }, showFormFields: { type: Boolean, default: true }, orgType: { type: String, default: "" } }, data() {
|
|
8
|
-
let e2 = this.title, t2 = "organization";
|
|
9
|
-
return this.showOrganization || (t2 = "standardFields"), this.title && "" !== this.title || (e2 = l().t("workflowEditorMessage.pleaseSelectAValue")), { selectedValue: "", activeTab: t2, titleName: e2, dialogVisible: true, activeNames: ["baseField"] };
|
|
10
|
-
}, computed: { ...t("wfEditor", ["formFields"]), customFormFields() {
|
|
11
|
-
return this.formFields.filter((e2) => !e2.baseField);
|
|
12
|
-
}, baseFormFields() {
|
|
13
|
-
return this.formFields.filter((e2) => e2.baseField);
|
|
14
|
-
}, options() {
|
|
15
|
-
if (Array.isArray(this.standardFields))
|
|
16
|
-
return this.standardFields;
|
|
17
|
-
{
|
|
18
|
-
const e2 = [];
|
|
19
|
-
for (const t2 of Object.keys(this.standardFields))
|
|
20
|
-
e2.push({ name: t2, label: this.standardFields[t2] });
|
|
21
|
-
return e2;
|
|
22
|
-
}
|
|
23
|
-
} }, watch: { activeTab(e2) {
|
|
24
|
-
this.selectedValue = "";
|
|
25
|
-
} }, methods: { setValue() {
|
|
26
|
-
this.organizationResultValue(), "" !== this.selectedValue ? this.$emit("close", this.selectedValue) : this.$alert(this.$t("workflowEditorMessage.pleaseSelectAValueInTheCurrentTab"));
|
|
27
|
-
}, orgSelect(e2) {
|
|
28
|
-
e2 && ("user" === this.orgType ? this.getSelectedUser(e2.user, e2.containBranch) : "department" === this.orgType ? this.getSelectedDepartmentOrWorkgroup(e2.department, e2.containBranch) : "workgroup" === this.orgType ? this.getSelectedDepartmentOrWorkgroup(e2.workgroup, e2.containBranch) : "role" === this.orgType && this.getSelectedRole(e2.role));
|
|
29
|
-
}, organizationResultValue() {
|
|
30
|
-
this.orgType && "organization" === this.activeTab && ("user" === this.orgType ? this.$refs.organizationTree.confirmSelectUser() : "department" === this.orgType ? this.$refs.organizationTree.selectDepartment() : "workgroup" === this.orgType ? this.$refs.organizationTree.selectWorkgroup() : "role" === this.orgType && this.$refs.organizationTree.selectRole());
|
|
31
|
-
}, getSelectedUser(e2, t2) {
|
|
32
|
-
let l2 = e2.loginName, a2 = e2.name;
|
|
33
|
-
if (t2) {
|
|
34
|
-
if (e2.subCompanyId && null !== e2.subCompanyId) {
|
|
35
|
-
l2 = l2 + "~~" + e2.subCompanyCode, a2 = a2 + "/" + e2.subCompanyName;
|
|
36
|
-
} else
|
|
37
|
-
l2 = l2 + "~~" + e2.tenantCode, a2 = a2 + "/" + e2.tenantName;
|
|
38
|
-
this.selectedValue = a2 + "[" + l2 + "]";
|
|
39
|
-
} else
|
|
40
|
-
this.selectedValue = e2.name + "[" + e2.loginName + "]";
|
|
41
|
-
}, getSelectedDepartmentOrWorkgroup(e2, t2) {
|
|
42
|
-
this.selectedValue = e2.name;
|
|
43
|
-
let l2 = e2.name;
|
|
44
|
-
if (t2) {
|
|
45
|
-
if (e2.subCompanyId && null !== e2.subCompanyId) {
|
|
46
|
-
l2 = l2 + "/" + e2.subCompanyName;
|
|
47
|
-
} else
|
|
48
|
-
l2 = l2 + "/" + e2.tenantName;
|
|
49
|
-
this.selectedValue = l2 + "[" + e2.code + "]";
|
|
50
|
-
} else
|
|
51
|
-
this.selectedValue = e2.name + "[" + e2.code + "]";
|
|
52
|
-
}, getSelectedRole(e2) {
|
|
53
|
-
this.selectedValue = e2.name + "[" + e2.code + "]";
|
|
54
|
-
} } }, [["render", function(e2, t2, l2, f2, g2, h) {
|
|
55
|
-
const b = a("el-radio"), y = a("el-row"), V = a("el-tab-pane"), k = a("inline-department-user-tree"), T = a("inline-department-tree"), w = a("inline-workgroup-tree"), F = a("inline-system-role-tree"), _ = a("el-col"), S = a("el-collapse-item"), v = a("el-collapse"), z = a("el-radio-group"), $ = a("el-tabs"), C = a("el-button"), R = a("el-dialog");
|
|
56
|
-
return o(), r(R, { title: g2.titleName, "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-valueSelect", center: "", onClose: t2[5] || (t2[5] = (t3) => e2.$emit("close")) }, { footer: i(() => [s(C, { type: "primary", size: "small", onClick: h.setValue }, { default: i(() => [n(d(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), s(C, { size: "small", onClick: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { default: i(() => [n(d(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: i(() => [s($, { id: "custTabOne", modelValue: g2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => g2.activeTab = e3), type: "border-card" }, { default: i(() => [h.options.length > 0 ? (o(), r(V, { key: 0, label: e2.$t("workflowEditor.process.standardFields"), name: "standardFields" }, { default: i(() => [(o(true), u(m, null, p(h.options, (e3) => (o(), r(y, { key: e3.name }, { default: i(() => [s(b, { modelValue: g2.selectedValue, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => g2.selectedValue = e4), label: e3.name, border: "" }, { default: i(() => [n(d(e3.label), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["label"])) : c("", true), l2.showOrganization ? (o(), r(V, { key: 1, label: e2.$t("workflowEditor.common.organizationStructure"), name: "organization" }, { default: i(() => ["user" === l2.orgType ? (o(), r(k, { key: 0, ref: "organizationTree", multiple: false, onResult: h.orgSelect }, null, 8, ["onResult"])) : c("", true), "department" === l2.orgType ? (o(), r(T, { key: 1, ref: "organizationTree", multiple: false, onResult: h.orgSelect }, null, 8, ["onResult"])) : c("", true), "workgroup" === l2.orgType ? (o(), r(w, { key: 2, ref: "organizationTree", multiple: false, onResult: h.orgSelect }, null, 8, ["onResult"])) : c("", true), "role" === l2.orgType ? (o(), r(F, { key: 3, ref: "organizationTree", multiple: false, onResult: h.orgSelect }, null, 8, ["onResult"])) : c("", true)]), _: 1 }, 8, ["label"])) : c("", true), s(V, { label: e2.$t("workflowEditor.common.formField"), name: "formFields" }, { default: i(() => [s(z, { modelValue: g2.selectedValue, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => g2.selectedValue = e3), class: "group" }, { default: i(() => [s(y, { style: { width: "100%" } }, { default: i(() => [(o(true), u(m, null, p(h.customFormFields, (e3) => (o(), r(_, { key: e3.name, span: 8 }, { default: i(() => [s(b, { label: "${field[" + e3.name + "]}" }, { default: i(() => [n(d(e3.label), 1)]), _: 2 }, 1032, ["label"])]), _: 2 }, 1024))), 128))]), _: 1 }), s(v, { modelValue: g2.activeNames, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => g2.activeNames = e3), style: { width: "100%" } }, { default: i(() => [s(S, { title: e2.$t("workflowEditor.task.baseField"), name: "baseField" }, { default: i(() => [s(y, null, { default: i(() => [(o(true), u(m, null, p(h.baseFormFields, (e3) => (o(), r(_, { key: e3.name, span: 8 }, { default: i(() => [s(b, { label: "${field[" + e3.name + "]}" }, { default: i(() => [n(d(e3.label), 1)]), _: 2 }, 1032, ["label"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 }, 8, ["title"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["title"]);
|
|
57
|
-
}], ["__scopeId", "data-v-7feaa2da"]]);
|
|
58
|
-
export {
|
|
59
|
-
g as default
|
|
60
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as e, openBlock as l, createElementBlock as a, createVNode as t, withCtx as r, createTextVNode as o, toDisplayString as i } from "vue";
|
|
2
|
-
import n from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
-
const s = n({ name: "Variables", props: { modelValue: { type: Object, default: null } }, data() {
|
|
4
|
-
let e2 = [];
|
|
5
|
-
return this.modelValue && (Array.isArray(this.modelValue.variable) ? e2 = this.modelValue.variable : this.modelValue.variable && e2.push(this.modelValue.variable)), { variables: e2, currentRow: null };
|
|
6
|
-
}, watch: {}, mounted() {
|
|
7
|
-
this.variables.length > 0 && this.setCurrentRow(this.variables[0]), this.$watch("variables", function() {
|
|
8
|
-
const e2 = this.variables.filter((e3) => "" !== e3.name && "" !== e3.value);
|
|
9
|
-
this.$emit("update:modelValue", { variable: e2 });
|
|
10
|
-
}, { deep: true });
|
|
11
|
-
}, methods: { add() {
|
|
12
|
-
for (let e3 = 0; e3 < this.variables.length; e3++)
|
|
13
|
-
if ("" === this.variables[e3].name || "" === this.variables[e3].value)
|
|
14
|
-
return void this.$alert(this.$t("workflowEditorMessage.variableNameOrValueOnLineCannotBeEmpty", { row: e3 + 1 }));
|
|
15
|
-
const e2 = { name: "", value: "" };
|
|
16
|
-
this.variables.push(e2), this.setCurrentRow(e2);
|
|
17
|
-
}, remove() {
|
|
18
|
-
if (null === this.currentRow)
|
|
19
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
20
|
-
let e2;
|
|
21
|
-
for (let l2 = 0; l2 < this.variables.length; l2++)
|
|
22
|
-
if (this.variables[l2].name === this.currentRow.name) {
|
|
23
|
-
e2 = l2;
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
this.variables.splice(e2, 1), e2 = e2 <= this.variables.length - 1 ? e2 : this.variables.length - 1, this.setCurrentRow(this.variables[e2]);
|
|
27
|
-
}, setCurrentRow(e2) {
|
|
28
|
-
this.$refs.table.setCurrentRow(e2);
|
|
29
|
-
}, handleCurrentChange(e2) {
|
|
30
|
-
this.currentRow = e2;
|
|
31
|
-
}, checkName(e2) {
|
|
32
|
-
"" === e2 && this.$alert(this.$t("workflowEditorMessage.variableNameCannotBeEmpty"));
|
|
33
|
-
}, checkValue(e2) {
|
|
34
|
-
"" === e2 && this.$alert(this.$t("workflowEditorMessage.variableValueCannotBeEmpty"));
|
|
35
|
-
} } }, [["render", function(n2, s2, u, d, h, m) {
|
|
36
|
-
const w = e("el-button"), b = e("el-row"), v = e("el-table-column"), c = e("el-input"), p = e("el-table");
|
|
37
|
-
return l(), a("div", null, [t(b, null, { default: r(() => [t(w, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: m.add }, { default: r(() => [o(i(n2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), t(w, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: m.remove }, { default: r(() => [o(i(n2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), t(p, { ref: "table", data: h.variables, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: m.handleCurrentChange }, { default: r(() => [t(v, { type: "index", width: "50" }), t(v, { prop: "name", label: n2.$t("workflowEditor.common.variableName") }, { default: r((e2) => [t(c, { modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, modelModifiers: { trim: true }, placeholder: n2.$t("workflowEditorMessage.pleaseEnterContent"), onBlur: (l2) => m.checkName(e2.row.name) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), t(v, { prop: "value", label: n2.$t("workflowEditor.common.variableValue") }, { default: r((e2) => [t(c, { modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2, modelModifiers: { trim: true }, placeholder: n2.$t("workflowEditorMessage.pleaseEnterContent"), onBlur: (l2) => m.checkValue(e2.row.value) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]);
|
|
38
|
-
}]]);
|
|
39
|
-
export {
|
|
40
|
-
s as default
|
|
41
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import e from "../common/task-title.vue.mjs";
|
|
2
|
-
import { validateTacheCode as l } from "../../util.mjs";
|
|
3
|
-
import t from "../common/i18n-input.vue.mjs";
|
|
4
|
-
import { resolveComponent as a, openBlock as o, createBlock as d, withCtx as m, createVNode as i } from "vue";
|
|
5
|
-
import "./basic-properties.vue2.mjs";
|
|
6
|
-
import n from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
-
const u = n({ name: "BasicProperties", components: { TaskTitle: e, i18nInput: t }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
8
|
-
return { formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
9
|
-
}, computed: { tache() {
|
|
10
|
-
return this.model;
|
|
11
|
-
} }, mounted() {
|
|
12
|
-
this.$watch("formModel.name", function(e2, l2) {
|
|
13
|
-
this.$emit("update:name", e2);
|
|
14
|
-
});
|
|
15
|
-
}, methods: { validateId() {
|
|
16
|
-
l(this);
|
|
17
|
-
}, setI18nValue(e2) {
|
|
18
|
-
this.tache.i18nKey = e2;
|
|
19
|
-
} } }, [["render", function(e2, l2, t2, n2, u2, r) {
|
|
20
|
-
const s = a("i18n-input"), f = a("el-form-item"), p = a("el-col"), c = a("el-input"), h = a("el-row"), k = a("task-title"), V = a("el-switch"), b = a("el-form");
|
|
21
|
-
return o(), d(b, { model: u2.formModel, "label-width": "110px" }, { default: m(() => [i(h, null, { default: m(() => [i(p, { span: 12 }, { default: m(() => [i(f, { label: e2.$t("workflowEditor.task.name") }, { default: m(() => [i(s, { modelValue: u2.formModel.name, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => u2.formModel.name = e3), "i18n-key": r.tache.i18nKey ? r.tache.i18nKey : "name." + u2.formModel.id, onSetI18n: r.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), i(p, { span: 12 }, { default: m(() => [i(f, { label: e2.$t("workflowEditor.task.code") }, { default: m(() => [i(c, { modelValue: u2.formModel.id, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => u2.formModel.id = e3), onBlur: r.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), i(f, { label: e2.$t("workflowEditor.task.taskTitle") }, { default: m(() => [i(k, { modelValue: r.tache.taskTitle, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => r.tache.taskTitle = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i(f, { label: e2.$t("workflowEditor.task.emailNotification") }, { default: m(() => [i(V, { modelValue: r.tache.mailNotice, "onUpdate:modelValue": l2[3] || (l2[3] = (e3) => r.tache.mailNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i(f, { label: e2.$t("workflowEditor.task.handlingPage") }, { default: m(() => [i(c, { modelValue: r.tache.taskUrl, "onUpdate:modelValue": l2[4] || (l2[4] = (e3) => r.tache.taskUrl = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i(f, { label: e2.$t("workflowEditor.task.remarks") }, { default: m(() => [i(c, { modelValue: r.tache.remark, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => r.tache.remark = e3), type: "textarea", autosize: "" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
22
|
-
}], ["__scopeId", "data-v-c1c7385b"]]);
|
|
23
|
-
export {
|
|
24
|
-
u as default
|
|
25
|
-
};
|