workflow-editor 0.0.81-up-tmp8 → 0.0.81-up-tmp10
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/dist/index.full.min.js +142 -138
- package/es/index.mjs +13 -15
- package/es/src/i18n/i18n.mjs +7 -0
- package/es/src/i18n/langs/cn.mjs +4 -0
- package/es/src/i18n/langs/en.mjs +4 -0
- package/es/style.css +153 -153
- package/es/workflow-editor/index.mjs +10 -0
- package/es/workflow-editor/src/api.mjs +6 -0
- package/es/workflow-editor/src/assets/wf-editor-icons.mjs +43 -0
- package/es/workflow-editor/src/json-object-templates/auto-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/copy-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/decision.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/end.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/fork.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/human-decision.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/human-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/join.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/process.mjs +9 -0
- package/es/workflow-editor/src/json-object-templates/start.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/subprocess.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/transition.mjs +6 -0
- package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +13 -0
- package/es/workflow-editor/src/main/canvas.vue.mjs +130 -0
- package/es/workflow-editor/src/main/canvas.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/context-menu.vue.mjs +33 -0
- package/es/workflow-editor/src/main/context-menu.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/icon-svg.vue.mjs +12 -0
- package/es/workflow-editor/src/main/icon-svg.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/selection-region.vue.mjs +17 -0
- package/es/workflow-editor/src/main/selection-region.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +10 -0
- package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +11 -0
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/toolbox.vue.mjs +16 -0
- package/es/workflow-editor/src/main/toolbox.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +86 -0
- package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +4 -0
- package/es/workflow-editor/src/process-service.mjs +21 -0
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +22 -0
- package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +125 -0
- package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +60 -0
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +5 -0
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +72 -0
- package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +18 -0
- package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +55 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +14 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +36 -0
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +27 -0
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +31 -0
- package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +36 -0
- package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +95 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +16 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +46 -0
- package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +43 -0
- package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +116 -0
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +60 -0
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +41 -0
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +30 -0
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +26 -0
- package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/decision.vue.mjs +24 -0
- package/es/workflow-editor/src/properties-editors/fork.vue.mjs +21 -0
- package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +15 -0
- package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +16 -0
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +38 -0
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +84 -0
- package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +62 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +80 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +86 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +43 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +67 -0
- package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +18 -0
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +33 -0
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +56 -0
- package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +28 -0
- package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/join.vue.mjs +15 -0
- package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +88 -0
- package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +21 -0
- package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +17 -0
- package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +10 -0
- package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +28 -0
- package/es/workflow-editor/src/properties-editors/process.vue.mjs +34 -0
- package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +64 -0
- package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +9 -0
- package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +55 -0
- package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +22 -0
- package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +14 -0
- package/es/workflow-editor/src/properties-editors/transition.vue.mjs +17 -0
- package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/user-condition.mjs +49 -0
- package/es/workflow-editor/src/store/getters.mjs +4 -0
- package/es/workflow-editor/src/store/workflow-editor.mjs +73 -0
- package/es/workflow-editor/src/taches/auto-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/common-methods.mjs +13 -0
- package/es/workflow-editor/src/taches/copy-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/custom-task.vue.mjs +16 -0
- package/es/workflow-editor/src/taches/decision.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/decision.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/end.vue.mjs +14 -0
- package/es/workflow-editor/src/taches/end.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/fork.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/fork.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/human-decision.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/human-decision.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/human-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/join.vue.mjs +16 -0
- package/es/workflow-editor/src/taches/join.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/joint.vue.mjs +54 -0
- package/es/workflow-editor/src/taches/joint.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/start.vue.mjs +14 -0
- package/es/workflow-editor/src/taches/start.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/subprocess.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +30 -0
- package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/broken-line.vue.mjs +32 -0
- package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/curve-line.vue.mjs +33 -0
- package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/straight-line.vue.mjs +13 -0
- package/es/workflow-editor/src/transitions/transition.vue.mjs +70 -0
- package/es/workflow-editor/src/transitions/transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +17 -0
- package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/util.mjs +180 -0
- package/es/workflow-editor/src/workflow-editor.vue.mjs +205 -0
- package/es/workflow-editor/src/workflow-editor.vue2.mjs +4 -0
- package/es/workflow-editor/src/workflow-history.vue.mjs +35 -0
- package/es/workflow-editor/src/workflow-history.vue2.mjs +4 -0
- package/lib/index.cjs +4 -4
- package/lib/src/i18n/i18n.cjs +3 -0
- package/lib/src/i18n/langs/cn.cjs +2 -0
- package/lib/src/i18n/langs/en.cjs +2 -0
- package/lib/style.css +110 -110
- package/lib/workflow-editor/index.cjs +7 -0
- package/lib/workflow-editor/src/api.cjs +5 -0
- package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +44 -0
- package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/decision.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/end.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/fork.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/human-task.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/join.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/process.cjs +6 -0
- package/lib/workflow-editor/src/json-object-templates/start.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/transition.cjs +4 -0
- package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +11 -0
- package/lib/workflow-editor/src/main/canvas.vue.cjs +101 -0
- package/lib/workflow-editor/src/main/canvas.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/context-menu.vue.cjs +29 -0
- package/lib/workflow-editor/src/main/context-menu.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/icon-svg.vue.cjs +10 -0
- package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/selection-region.vue.cjs +13 -0
- package/lib/workflow-editor/src/main/selection-region.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +8 -0
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +9 -0
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/toolbox.vue.cjs +11 -0
- package/lib/workflow-editor/src/main/toolbox.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +67 -0
- package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +2 -0
- package/lib/workflow-editor/src/process-service.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +19 -0
- package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +94 -0
- package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +54 -0
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +4 -0
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +67 -0
- package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +16 -0
- package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +50 -0
- package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +11 -0
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +17 -0
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +31 -0
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +22 -0
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +25 -0
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +31 -0
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +17 -0
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +93 -0
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +42 -0
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +37 -0
- package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +110 -0
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +55 -0
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +39 -0
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +26 -0
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +19 -0
- package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +18 -0
- package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +31 -0
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +82 -0
- package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +56 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +75 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +80 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +39 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +60 -0
- package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +15 -0
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +26 -0
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +49 -0
- package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +19 -0
- package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/join.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +81 -0
- package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +18 -0
- package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +21 -0
- package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +7 -0
- package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +23 -0
- package/lib/workflow-editor/src/properties-editors/process.vue.cjs +24 -0
- package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +57 -0
- package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +7 -0
- package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +50 -0
- package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +16 -0
- package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +17 -0
- package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +10 -0
- package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +12 -0
- package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/user-condition.cjs +33 -0
- package/lib/workflow-editor/src/store/getters.cjs +2 -0
- package/lib/workflow-editor/src/store/workflow-editor.cjs +71 -0
- package/lib/workflow-editor/src/taches/auto-task.vue.cjs +17 -0
- package/lib/workflow-editor/src/taches/common-methods.cjs +11 -0
- package/lib/workflow-editor/src/taches/copy-task.vue.cjs +17 -0
- package/lib/workflow-editor/src/taches/custom-task.vue.cjs +9 -0
- package/lib/workflow-editor/src/taches/decision.vue.cjs +19 -0
- package/lib/workflow-editor/src/taches/decision.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/end.vue.cjs +9 -0
- package/lib/workflow-editor/src/taches/end.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/fork.vue.cjs +19 -0
- package/lib/workflow-editor/src/taches/fork.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/human-decision.vue.cjs +19 -0
- package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/human-task.vue.cjs +17 -0
- package/lib/workflow-editor/src/taches/join.vue.cjs +11 -0
- package/lib/workflow-editor/src/taches/join.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/joint.vue.cjs +50 -0
- package/lib/workflow-editor/src/taches/joint.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/start.vue.cjs +9 -0
- package/lib/workflow-editor/src/taches/start.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/subprocess.vue.cjs +17 -0
- package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +27 -0
- package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +2 -0
- package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +28 -0
- package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +2 -0
- package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +29 -0
- package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +2 -0
- package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +9 -0
- package/lib/workflow-editor/src/transitions/transition.vue.cjs +63 -0
- package/lib/workflow-editor/src/transitions/transition.vue2.cjs +2 -0
- package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +13 -0
- package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +2 -0
- package/lib/workflow-editor/src/util.cjs +139 -0
- package/lib/workflow-editor/src/workflow-editor.vue.cjs +191 -0
- package/lib/workflow-editor/src/workflow-editor.vue2.cjs +2 -0
- package/lib/workflow-editor/src/workflow-history.vue.cjs +28 -0
- package/lib/workflow-editor/src/workflow-history.vue2.cjs +2 -0
- package/package.json +1 -1
- package/packages/index.js +50 -0
- package/packages/plugins/formValidatorUtil.js +723 -0
- package/packages/plugins/index.js +8 -0
- package/packages/workflow-editor/index.js +14 -0
- package/packages/workflow-editor/src/api.js +7 -0
- package/packages/workflow-editor/src/assets/tab-select.png +0 -0
- package/packages/workflow-editor/src/assets/tab-selectWhite.png +0 -0
- package/packages/workflow-editor/src/assets/wf-editor-icons.js +2 -0
- package/packages/workflow-editor/src/constant.js +8 -0
- package/packages/workflow-editor/src/json-object-templates/auto-task.js +70 -0
- package/packages/workflow-editor/src/json-object-templates/copy-task.js +72 -0
- package/packages/workflow-editor/src/json-object-templates/decision.js +11 -0
- package/packages/workflow-editor/src/json-object-templates/end.js +14 -0
- package/packages/workflow-editor/src/json-object-templates/fork.js +10 -0
- package/packages/workflow-editor/src/json-object-templates/human-decision.js +9 -0
- package/packages/workflow-editor/src/json-object-templates/human-task.js +208 -0
- package/packages/workflow-editor/src/json-object-templates/join.js +10 -0
- package/packages/workflow-editor/src/json-object-templates/process.js +99 -0
- package/packages/workflow-editor/src/json-object-templates/start.js +13 -0
- package/packages/workflow-editor/src/json-object-templates/subprocess.js +31 -0
- package/packages/workflow-editor/src/json-object-templates/transition.js +26 -0
- package/packages/workflow-editor/src/main/admin-save-dialog.vue +67 -0
- package/packages/workflow-editor/src/main/canvas.vue +493 -0
- package/packages/workflow-editor/src/main/context-menu.vue +147 -0
- package/packages/workflow-editor/src/main/icon-svg.vue +32 -0
- package/packages/workflow-editor/src/main/selection-region.vue +66 -0
- package/packages/workflow-editor/src/main/tache-history-tooltip.vue +38 -0
- package/packages/workflow-editor/src/main/tache-name-input.vue +19 -0
- package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +40 -0
- package/packages/workflow-editor/src/main/toolbox.vue +60 -0
- package/packages/workflow-editor/src/main/wf-history-canvas.vue +309 -0
- package/packages/workflow-editor/src/process-json.js +624 -0
- package/packages/workflow-editor/src/process-service.js +68 -0
- package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +81 -0
- package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +155 -0
- package/packages/workflow-editor/src/properties-editors/auto-task.vue +74 -0
- package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +568 -0
- package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +320 -0
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +34 -0
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +268 -0
- package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +81 -0
- package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +242 -0
- package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +23 -0
- package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +117 -0
- package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +88 -0
- package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +143 -0
- package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +149 -0
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +108 -0
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +272 -0
- package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +92 -0
- package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +66 -0
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +354 -0
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +68 -0
- package/packages/workflow-editor/src/properties-editors/common/task-title.vue +165 -0
- package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +275 -0
- package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +426 -0
- package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +272 -0
- package/packages/workflow-editor/src/properties-editors/common/variables.vue +139 -0
- package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +90 -0
- package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +155 -0
- package/packages/workflow-editor/src/properties-editors/copy-task.vue +95 -0
- package/packages/workflow-editor/src/properties-editors/decision.vue +95 -0
- package/packages/workflow-editor/src/properties-editors/fork.vue +77 -0
- package/packages/workflow-editor/src/properties-editors/human-decision.vue +49 -0
- package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +62 -0
- package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +184 -0
- package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +359 -0
- package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +256 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +405 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +257 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +430 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +206 -0
- package/packages/workflow-editor/src/properties-editors/human-task/events.vue +60 -0
- package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +224 -0
- package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +499 -0
- package/packages/workflow-editor/src/properties-editors/human-task.vue +107 -0
- package/packages/workflow-editor/src/properties-editors/join.vue +49 -0
- package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +336 -0
- package/packages/workflow-editor/src/properties-editors/process/events.vue +79 -0
- package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +68 -0
- package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +106 -0
- package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +28 -0
- package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +88 -0
- package/packages/workflow-editor/src/properties-editors/process.vue +115 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +201 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +26 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +216 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +66 -0
- package/packages/workflow-editor/src/properties-editors/subprocess.vue +80 -0
- package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +53 -0
- package/packages/workflow-editor/src/properties-editors/transition.vue +75 -0
- package/packages/workflow-editor/src/properties-editors/user-condition.js +183 -0
- package/packages/workflow-editor/src/store/getters.js +33 -0
- package/packages/workflow-editor/src/store/workflow-editor.js +153 -0
- package/packages/workflow-editor/src/taches/auto-task.vue +99 -0
- package/packages/workflow-editor/src/taches/common-methods.js +21 -0
- package/packages/workflow-editor/src/taches/copy-task.vue +99 -0
- package/packages/workflow-editor/src/taches/custom-task.vue +88 -0
- package/packages/workflow-editor/src/taches/decision.vue +102 -0
- package/packages/workflow-editor/src/taches/end.vue +76 -0
- package/packages/workflow-editor/src/taches/fork.vue +102 -0
- package/packages/workflow-editor/src/taches/human-decision.vue +102 -0
- package/packages/workflow-editor/src/taches/human-task.vue +113 -0
- package/packages/workflow-editor/src/taches/join.vue +91 -0
- package/packages/workflow-editor/src/taches/joint.vue +177 -0
- package/packages/workflow-editor/src/taches/start.vue +76 -0
- package/packages/workflow-editor/src/taches/subprocess.vue +99 -0
- package/packages/workflow-editor/src/taches/tache-resizer.vue +80 -0
- package/packages/workflow-editor/src/transitions/broken-line.vue +91 -0
- package/packages/workflow-editor/src/transitions/curve-line.vue +91 -0
- package/packages/workflow-editor/src/transitions/straight-line.vue +26 -0
- package/packages/workflow-editor/src/transitions/transition.vue +209 -0
- package/packages/workflow-editor/src/transitions/virtual-transition.vue +43 -0
- package/packages/workflow-editor/src/util.js +499 -0
- package/packages/workflow-editor/src/workflow-editor.vue +852 -0
- package/packages/workflow-editor/src/workflow-history.vue +153 -0
- package/src/i18n/i18n.js +16 -0
- package/src/i18n/langs/cn.js +521 -0
- package/src/i18n/langs/en.js +529 -0
- package/.vscode/extensions.json +0 -3
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:show-close="true"
|
|
4
|
+
:append-to-body="true"
|
|
5
|
+
style="width: 100%"
|
|
6
|
+
:title="$t('workflowEditor.condition.combinationCondition')"
|
|
7
|
+
model-value
|
|
8
|
+
@close="closeButtonSetting"
|
|
9
|
+
>
|
|
10
|
+
<div style="overflow-y: auto; max-height: 500px">
|
|
11
|
+
<div class="operation-area">
|
|
12
|
+
<el-button size="small" type="primary" @click="savebuttonSetting">
|
|
13
|
+
<span> {{ $t('workflowEditorPublicModel.save') }}</span>
|
|
14
|
+
</el-button>
|
|
15
|
+
</div>
|
|
16
|
+
<div>
|
|
17
|
+
<el-card class="box-card" shadow="never">
|
|
18
|
+
<template #header>
|
|
19
|
+
<div class="clearfix">
|
|
20
|
+
<span>{{ $t('workflowEditor.condition.personnelScope') }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
<div>
|
|
24
|
+
<common-user-condition v-model="myUserCondition" used-in="transactor" />
|
|
25
|
+
</div>
|
|
26
|
+
</el-card>
|
|
27
|
+
<el-card class="box-card" shadow="never">
|
|
28
|
+
<template #header>
|
|
29
|
+
<div class="clearfix">
|
|
30
|
+
<span>{{ $t('workflowEditor.condition.mainTableConditions') }}</span>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
<div>
|
|
34
|
+
<additional-condition v-model="myParentCondition" />
|
|
35
|
+
</div>
|
|
36
|
+
</el-card>
|
|
37
|
+
<el-card v-if="buttonType !== 'notEmpty' && buttonType !== 'add'" class="box-card" shadow="never">
|
|
38
|
+
<template #header>
|
|
39
|
+
<div>
|
|
40
|
+
<span>{{ $t('workflowEditor.condition.subtableCondition') }}</span>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
<div>
|
|
44
|
+
<el-row style="padding-bottom: 8px">
|
|
45
|
+
<el-button type="primary" size="small" plain icon="CirclePlus" @click="add">
|
|
46
|
+
{{ $t('workflowEditorPublicModel.add') }}
|
|
47
|
+
</el-button>
|
|
48
|
+
<el-button type="primary" size="small" plain icon="Delete" @click="remove">
|
|
49
|
+
{{ $t('workflowEditorPublicModel.delete') }}
|
|
50
|
+
</el-button>
|
|
51
|
+
</el-row>
|
|
52
|
+
<el-table
|
|
53
|
+
id="tableDataDialog"
|
|
54
|
+
ref="table"
|
|
55
|
+
:data="tableData"
|
|
56
|
+
border
|
|
57
|
+
style="width: 100%"
|
|
58
|
+
highlight-current-row
|
|
59
|
+
@current-change="handleCurrentChange"
|
|
60
|
+
>
|
|
61
|
+
<el-table-column prop="leftBracket" label="(" width="90">
|
|
62
|
+
<template v-slot="scope">
|
|
63
|
+
<el-select v-model="scope.row.leftBracket" size="small" clearable @focus="selectRow(scope.row)">
|
|
64
|
+
<el-option label="" value="" />
|
|
65
|
+
<el-option label="(" value="(" />
|
|
66
|
+
<el-option label="((" value="((" />
|
|
67
|
+
<el-option label="(((" value="(((" />
|
|
68
|
+
</el-select>
|
|
69
|
+
</template>
|
|
70
|
+
</el-table-column>
|
|
71
|
+
<el-table-column :label="$t('workflowEditor.common.fieldName')" width="200">
|
|
72
|
+
<template v-slot="scope">
|
|
73
|
+
<el-select
|
|
74
|
+
v-model="scope.row.propName"
|
|
75
|
+
:filter-method="searchField"
|
|
76
|
+
size="small"
|
|
77
|
+
clearable
|
|
78
|
+
filterable
|
|
79
|
+
@focus="selectRow(scope.row)"
|
|
80
|
+
@change="changeFieldName(scope.$index)"
|
|
81
|
+
>
|
|
82
|
+
<el-option v-for="item in attributeArr" :key="item.value" :label="item.label" :value="item.value" />
|
|
83
|
+
</el-select>
|
|
84
|
+
</template>
|
|
85
|
+
</el-table-column>
|
|
86
|
+
<el-table-column :label="$t('workflowEditor.common.operator')" width="110">
|
|
87
|
+
<template v-slot="scope">
|
|
88
|
+
<el-select v-model="scope.row.operator" size="small" clearable @focus="selectRow(scope.row)">
|
|
89
|
+
<el-option
|
|
90
|
+
v-for="option in operationArr[scope.$index]"
|
|
91
|
+
:key="option.name"
|
|
92
|
+
:label="option.label"
|
|
93
|
+
:value="option.name"
|
|
94
|
+
/>
|
|
95
|
+
</el-select>
|
|
96
|
+
</template>
|
|
97
|
+
</el-table-column>
|
|
98
|
+
<el-table-column :label="$t('workflowEditor.common.value')">
|
|
99
|
+
<template v-slot="scope">
|
|
100
|
+
<el-select
|
|
101
|
+
v-if="!scope.row.propValueType"
|
|
102
|
+
v-model="scope.row.propValueType"
|
|
103
|
+
size="small"
|
|
104
|
+
@focus="selectRow(scope.row)"
|
|
105
|
+
>
|
|
106
|
+
<el-option :label="$t('workflowEditor.condition.fillInManually')" value="input" />
|
|
107
|
+
<el-option :label="$t('workflowEditor.condition.environmentVariable')" value="context" />
|
|
108
|
+
<el-option :label="$t('workflowEditor.condition.requestParameters')" value="request" />
|
|
109
|
+
<el-option :label="$t('workflowEditor.condition.mainTableField')" value="obj" />
|
|
110
|
+
<el-option :label="$t('workflowEditor.condition.databaseFields')" value="subObj" />
|
|
111
|
+
<el-option :label="$t('workflowEditor.condition.taskFields')" value="task" />
|
|
112
|
+
<el-option :label="$t('workflowEditor.condition.systemParameter')" value="custom" />
|
|
113
|
+
</el-select>
|
|
114
|
+
<el-select
|
|
115
|
+
v-if="scope.row.propValueType === 'context'"
|
|
116
|
+
v-model="scope.row.propValue"
|
|
117
|
+
clearable
|
|
118
|
+
size="small"
|
|
119
|
+
:title="scope.row.propValue"
|
|
120
|
+
filterable
|
|
121
|
+
default-first-option
|
|
122
|
+
allow-create
|
|
123
|
+
@change="changePropValue(scope.$index)"
|
|
124
|
+
@focus="selectRow(scope.row)"
|
|
125
|
+
>
|
|
126
|
+
<el-option :label="$t('workflowEditor.condition.currentTime')" value="${context.currentTime}" />
|
|
127
|
+
<el-option
|
|
128
|
+
:label="$t('workflowEditor.condition.currentTransactor')"
|
|
129
|
+
value="${context.currentTransactor}"
|
|
130
|
+
/>
|
|
131
|
+
<el-option
|
|
132
|
+
:label="$t('workflowEditor.condition.currentTransactorName')"
|
|
133
|
+
value="${context.currentTransactorName}"
|
|
134
|
+
/>
|
|
135
|
+
<el-option
|
|
136
|
+
:label="$t('workflowEditor.condition.currentTransactorId')"
|
|
137
|
+
value="${context.currentTransactorId}"
|
|
138
|
+
/>
|
|
139
|
+
<el-option
|
|
140
|
+
:label="$t('workflowEditor.condition.currentTransactorMainDepartmentId')"
|
|
141
|
+
value="${context.currentTransactorMainDepartmentId}"
|
|
142
|
+
/>
|
|
143
|
+
<el-option
|
|
144
|
+
:label="$t('workflowEditor.condition.currentTransactorMainDepartment')"
|
|
145
|
+
value="${context.currentTransactorMainDepartment}"
|
|
146
|
+
/>
|
|
147
|
+
<el-option
|
|
148
|
+
:label="$t('workflowEditor.condition.currentTransactorRoleId')"
|
|
149
|
+
value="${context.currentTransactorRoleId}"
|
|
150
|
+
/>
|
|
151
|
+
<el-option
|
|
152
|
+
:label="$t('workflowEditor.condition.currentTransactorRole')"
|
|
153
|
+
value="${context.currentTransactorRole}"
|
|
154
|
+
/>
|
|
155
|
+
<el-option
|
|
156
|
+
:label="$t('workflowEditor.condition.currentTransactorWorkGroupId')"
|
|
157
|
+
value="${context.currentTransactorWorkGroupId}"
|
|
158
|
+
/>
|
|
159
|
+
<el-option
|
|
160
|
+
:label="$t('workflowEditor.condition.currentTransactorWorkGroup')"
|
|
161
|
+
value="${context.currentTransactorWorkGroup}"
|
|
162
|
+
/>
|
|
163
|
+
</el-select>
|
|
164
|
+
<el-select
|
|
165
|
+
v-if="scope.row.propValueType === 'task'"
|
|
166
|
+
v-model="scope.row.propValue"
|
|
167
|
+
clearable
|
|
168
|
+
size="small"
|
|
169
|
+
:title="scope.row.propValue"
|
|
170
|
+
filterable
|
|
171
|
+
default-first-option
|
|
172
|
+
allow-create
|
|
173
|
+
@change="changePropValue(scope.$index)"
|
|
174
|
+
@focus="selectRow(scope.row)"
|
|
175
|
+
>
|
|
176
|
+
<el-option :label="$t('workflowEditor.condition.currentHandler')" value="${task.transactor}" />
|
|
177
|
+
<el-option :label="$t('workflowEditor.condition.currentTaskClient')" value="${task.trustor}" />
|
|
178
|
+
<el-option :label="$t('workflowEditor.condition.currentAssignor')" value="${task.assigner}" />
|
|
179
|
+
<el-option :label="$t('workflowEditor.condition.linkName')" value="${task.name}" />
|
|
180
|
+
<el-option :label="$t('workflowEditor.condition.linkCode')" value="${task.nodeId}" />
|
|
181
|
+
</el-select>
|
|
182
|
+
<el-date-picker
|
|
183
|
+
v-if="scope.row.dataType === 'DATE' && scope.row.propValueType === 'input'"
|
|
184
|
+
v-model="scope.row.propValue"
|
|
185
|
+
size="small"
|
|
186
|
+
clearable
|
|
187
|
+
value-format="YYYY-MM-DD"
|
|
188
|
+
:title="scope.row.propValue"
|
|
189
|
+
type="date"
|
|
190
|
+
@change="changePropValue(scope.$index)"
|
|
191
|
+
/>
|
|
192
|
+
<el-date-picker
|
|
193
|
+
v-if="scope.row.dataType === 'TIME' && scope.row.propValueType === 'input'"
|
|
194
|
+
v-model="scope.row.propValue"
|
|
195
|
+
size="small"
|
|
196
|
+
:title="scope.row.propValue"
|
|
197
|
+
clearable
|
|
198
|
+
value-format="YYYY-MM-DD HH:mm:ss"
|
|
199
|
+
type="datetime"
|
|
200
|
+
@change="changePropValue(scope.$index)"
|
|
201
|
+
/>
|
|
202
|
+
<el-input
|
|
203
|
+
v-if="
|
|
204
|
+
scope.row.dataType !== 'TIME' &&
|
|
205
|
+
scope.row.dataType !== 'DATE' &&
|
|
206
|
+
scope.row.propValueType === 'input'
|
|
207
|
+
"
|
|
208
|
+
v-model.trim="scope.row.propValue"
|
|
209
|
+
:title="scope.row.propValue"
|
|
210
|
+
clearable
|
|
211
|
+
size="small"
|
|
212
|
+
@change="changePropValue(scope.$index)"
|
|
213
|
+
/>
|
|
214
|
+
<el-input
|
|
215
|
+
v-if="scope.row.propValueType === 'request'"
|
|
216
|
+
v-model.trim="scope.row.propValue"
|
|
217
|
+
:title="scope.row.propValue"
|
|
218
|
+
clearable
|
|
219
|
+
size="small"
|
|
220
|
+
@change="changePropValue(scope.$index)"
|
|
221
|
+
/>
|
|
222
|
+
<el-select
|
|
223
|
+
v-if="scope.row.propValueType === 'subObj'"
|
|
224
|
+
v-model="scope.row.propValue"
|
|
225
|
+
:title="scope.row.propValue"
|
|
226
|
+
:filter-method="searchField"
|
|
227
|
+
size="small"
|
|
228
|
+
clearable
|
|
229
|
+
filterable
|
|
230
|
+
@change="changePropValue(scope.$index)"
|
|
231
|
+
>
|
|
232
|
+
<el-option
|
|
233
|
+
v-for="item in attributeArr"
|
|
234
|
+
:key="'${subObj.' + item.value + '}'"
|
|
235
|
+
:label="item.label"
|
|
236
|
+
:value="'${subObj.' + item.value + '}'"
|
|
237
|
+
/>
|
|
238
|
+
</el-select>
|
|
239
|
+
<el-select
|
|
240
|
+
v-if="scope.row.propValueType === 'obj'"
|
|
241
|
+
v-model="scope.row.propValue"
|
|
242
|
+
:title="scope.row.propValue"
|
|
243
|
+
size="small"
|
|
244
|
+
clearable
|
|
245
|
+
filterable
|
|
246
|
+
@change="changePropValue(scope.$index)"
|
|
247
|
+
>
|
|
248
|
+
<el-option
|
|
249
|
+
v-for="item in parentAttributeArr"
|
|
250
|
+
:key="'${obj.' + item.value + '}'"
|
|
251
|
+
:label="item.label"
|
|
252
|
+
:value="'${obj.' + item.value + '}'"
|
|
253
|
+
/>
|
|
254
|
+
</el-select>
|
|
255
|
+
<el-select
|
|
256
|
+
v-if="scope.row.propValueType === 'custom'"
|
|
257
|
+
v-model="scope.row.propValue"
|
|
258
|
+
:title="scope.row.propValue"
|
|
259
|
+
size="small"
|
|
260
|
+
clearable
|
|
261
|
+
filterable
|
|
262
|
+
@change="changePropValue(scope.$index)"
|
|
263
|
+
>
|
|
264
|
+
<el-option
|
|
265
|
+
v-for="key in propSettingKeyList"
|
|
266
|
+
:key="'${custom.' + key + '}'"
|
|
267
|
+
:label="key"
|
|
268
|
+
:value="'${custom.' + key + '}'"
|
|
269
|
+
/>
|
|
270
|
+
</el-select>
|
|
271
|
+
</template>
|
|
272
|
+
</el-table-column>
|
|
273
|
+
<el-table-column prop="rightBracket" label=")" width="90" @focus="selectRow(scope.row)">
|
|
274
|
+
<template v-slot="scope">
|
|
275
|
+
<el-select v-model="scope.row.rightBracket" size="small" clearable>
|
|
276
|
+
<el-option label="" value="" />
|
|
277
|
+
<el-option label=")" value=")" />
|
|
278
|
+
<el-option label="))" value="))" />
|
|
279
|
+
<el-option label=")))" value=")))" />
|
|
280
|
+
</el-select>
|
|
281
|
+
</template>
|
|
282
|
+
</el-table-column>
|
|
283
|
+
<el-table-column :label="$t('workflowEditorPublicModel.andOr')" prop="logicOperator" width="110">
|
|
284
|
+
<template v-slot="scope">
|
|
285
|
+
<el-select v-model="scope.row.logicOperator" size="small" clearable @focus="selectRow(scope.row)">
|
|
286
|
+
<el-option :label="$t('workflowEditor.process.perhaps')" value="condition.operator.or" />
|
|
287
|
+
<el-option :label="$t('workflowEditor.process.also')" value="condition.operator.and" />
|
|
288
|
+
</el-select>
|
|
289
|
+
</template>
|
|
290
|
+
</el-table-column>
|
|
291
|
+
</el-table>
|
|
292
|
+
</div>
|
|
293
|
+
</el-card>
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
</el-dialog>
|
|
297
|
+
</template>
|
|
298
|
+
<script>
|
|
299
|
+
// import modulePageService from '@/subsystems/mms/api/module-page'
|
|
300
|
+
import componentsConfigUtil from './componentsConfigUtil'
|
|
301
|
+
import AdditionalCondition from '../common/additional-condition'
|
|
302
|
+
import CommonUserCondition from '../common/common-user-condition'
|
|
303
|
+
import { mapGetters } from 'vuex'
|
|
304
|
+
|
|
305
|
+
export default {
|
|
306
|
+
components: {
|
|
307
|
+
AdditionalCondition,
|
|
308
|
+
CommonUserCondition
|
|
309
|
+
},
|
|
310
|
+
props: {
|
|
311
|
+
conditionList: {
|
|
312
|
+
type: [Array, String],
|
|
313
|
+
default: null
|
|
314
|
+
},
|
|
315
|
+
userCondition: {
|
|
316
|
+
type: String,
|
|
317
|
+
default: null
|
|
318
|
+
},
|
|
319
|
+
parentCondition: {
|
|
320
|
+
type: String,
|
|
321
|
+
default: null
|
|
322
|
+
},
|
|
323
|
+
attributeMap: {
|
|
324
|
+
type: Object,
|
|
325
|
+
default: null
|
|
326
|
+
},
|
|
327
|
+
buttonType: {
|
|
328
|
+
type: Object,
|
|
329
|
+
default: null
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
data() {
|
|
333
|
+
let myUserCondition
|
|
334
|
+
if (this.userCondition && this.userCondition !== '') {
|
|
335
|
+
myUserCondition = this.userCondition
|
|
336
|
+
}
|
|
337
|
+
let myParentCondition
|
|
338
|
+
if (this.parentCondition && this.parentCondition !== '') {
|
|
339
|
+
myParentCondition = this.parentCondition
|
|
340
|
+
}
|
|
341
|
+
return {
|
|
342
|
+
myUserCondition,
|
|
343
|
+
myParentCondition,
|
|
344
|
+
tableData: null,
|
|
345
|
+
attributeArr: [],
|
|
346
|
+
fieldMap: {},
|
|
347
|
+
fieldNameMap: {},
|
|
348
|
+
queryList: [],
|
|
349
|
+
operationArr: [],
|
|
350
|
+
parentAttributeArr: [],
|
|
351
|
+
dialogVisible: true
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
created() {
|
|
355
|
+
this.getAttributeArr()
|
|
356
|
+
// if (this.tableData === null || this.tableData === undefined) {
|
|
357
|
+
// this.add()
|
|
358
|
+
// }
|
|
359
|
+
},
|
|
360
|
+
computed: {
|
|
361
|
+
...mapGetters('wfEditor', ['propSettingKeyList'])
|
|
362
|
+
},
|
|
363
|
+
mounted() {
|
|
364
|
+
if (this.conditionList) {
|
|
365
|
+
if (typeof this.conditionList === 'object') {
|
|
366
|
+
this.tableData = this.conditionList
|
|
367
|
+
} else {
|
|
368
|
+
this.tableData = this.xmlToData(this.conditionList)
|
|
369
|
+
}
|
|
370
|
+
this.getOperatorsArr(this.tableData)
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
methods: {
|
|
374
|
+
...componentsConfigUtil,
|
|
375
|
+
// 添加
|
|
376
|
+
add() {
|
|
377
|
+
if (!this.tableData) {
|
|
378
|
+
this.tableData = []
|
|
379
|
+
}
|
|
380
|
+
this.tableData.push({
|
|
381
|
+
leftBracket: '',
|
|
382
|
+
propName: '',
|
|
383
|
+
operator: '',
|
|
384
|
+
propValue: '',
|
|
385
|
+
rightBracket: '',
|
|
386
|
+
logicOperator: 'condition.operator.or',
|
|
387
|
+
dataType: '',
|
|
388
|
+
propDbName: ''
|
|
389
|
+
})
|
|
390
|
+
this.operationArr.push([])
|
|
391
|
+
},
|
|
392
|
+
// 删除
|
|
393
|
+
remove() {
|
|
394
|
+
if (this.currentRow === null) {
|
|
395
|
+
this.$alert(this.$t('workflowEditorMessage.pleaseSelectARow'))
|
|
396
|
+
return
|
|
397
|
+
}
|
|
398
|
+
let index = this.getRowIndex(this.currentRow)
|
|
399
|
+
this.tableData.splice(index, 1)
|
|
400
|
+
if (this.tableData.length > 0) {
|
|
401
|
+
index = index <= this.tableData.length - 1 ? index : this.tableData.length - 1
|
|
402
|
+
this.$refs.table.setCurrentRow(this.tableData[index])
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
// 改变选择的属性
|
|
406
|
+
changeFieldName(index) {
|
|
407
|
+
// const selectData = this.$refs.table.store.states.data
|
|
408
|
+
const propName = this.currentRow.propName
|
|
409
|
+
const item = this.fieldMap[propName]
|
|
410
|
+
if (item) {
|
|
411
|
+
this.tableData[index].dataType = item.type
|
|
412
|
+
this.tableData[index].propDbName = item.propDbName
|
|
413
|
+
}
|
|
414
|
+
this.operationArr[index] = this.getOperators(item)
|
|
415
|
+
},
|
|
416
|
+
// 根据code获取属性
|
|
417
|
+
getAttributeArr() {
|
|
418
|
+
if (this.attributeMap && this.attributeMap.attributeArr) {
|
|
419
|
+
this.attributeArr = this.attributeMap.attributeArr
|
|
420
|
+
this.queryList = this.attributeMap.attributeArr
|
|
421
|
+
this.fieldMap = this.attributeMap.fieldMap
|
|
422
|
+
this.fieldNameMap = this.attributeMap.fieldNameMap
|
|
423
|
+
this.parentAttributeArr = this.attributeMap.parentAttributeArr
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
// 选择行
|
|
427
|
+
selectRow(row) {
|
|
428
|
+
this.attributeArr = this.queryList
|
|
429
|
+
this.$refs.table.setCurrentRow(row)
|
|
430
|
+
},
|
|
431
|
+
handleCurrentChange(val) {
|
|
432
|
+
this.currentRow = val
|
|
433
|
+
},
|
|
434
|
+
// 属性搜索方法
|
|
435
|
+
searchField(query) {
|
|
436
|
+
if (query) {
|
|
437
|
+
this.attributeArr = this.queryList.filter((item) => {
|
|
438
|
+
return item.label.indexOf(query) > -1 || item.value.indexOf(query) > -1
|
|
439
|
+
})
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
getRowIndex(row) {
|
|
443
|
+
for (let i = 0; i < this.tableData.length; i++) {
|
|
444
|
+
if (this.tableData[i].propName === row.propName) {
|
|
445
|
+
return i
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return -1
|
|
449
|
+
},
|
|
450
|
+
// 保存关闭方法
|
|
451
|
+
savebuttonSetting() {
|
|
452
|
+
if (this.tableData && this.tableData.length > 0) {
|
|
453
|
+
for (var i = 0; i < this.tableData.length; i++) {
|
|
454
|
+
const item = this.tableData[i]
|
|
455
|
+
if (!item.propName) {
|
|
456
|
+
this.$alert(this.$t('workflowEditorMessage.blankFieldNameOrValue'))
|
|
457
|
+
return
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
const param = {
|
|
462
|
+
userCondition: this.myUserCondition,
|
|
463
|
+
parentCondition: this.myParentCondition,
|
|
464
|
+
condition: this.tableData
|
|
465
|
+
}
|
|
466
|
+
this.$emit('close', param)
|
|
467
|
+
},
|
|
468
|
+
closeButtonSetting() {
|
|
469
|
+
this.savebuttonSetting()
|
|
470
|
+
this.$emit('close', null)
|
|
471
|
+
},
|
|
472
|
+
changePropValue(index) {
|
|
473
|
+
if (this.tableData[index] && this.tableData[index].propValue) {
|
|
474
|
+
if (this.tableData[index].propValueType) {
|
|
475
|
+
if (this.tableData[index].propValueType === 'request') {
|
|
476
|
+
if (this.tableData[index].propValue.indexOf('${request.') === -1) {
|
|
477
|
+
this.tableData[index].propValue = '${request.' + this.tableData[index].propValue
|
|
478
|
+
}
|
|
479
|
+
if (this.tableData[index].propValue.indexOf('}') === -1) {
|
|
480
|
+
this.tableData[index].propValue = this.tableData[index].propValue + '}'
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
if (this.tableData[index].propValueType === 'input') {
|
|
484
|
+
if (this.tableData[index].propValue.indexOf('${input.') === -1) {
|
|
485
|
+
this.tableData[index].propValue = '${input.' + this.tableData[index].propValue
|
|
486
|
+
}
|
|
487
|
+
if (this.tableData[index].propValue.indexOf('}') === -1) {
|
|
488
|
+
this.tableData[index].propValue = this.tableData[index].propValue + '}'
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
} else {
|
|
493
|
+
this.tableData[index]['propValueType'] = null
|
|
494
|
+
// this.$set(this.tableData[index], 'propValueType', null)
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
</script>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
model-value
|
|
4
|
+
top="10vh"
|
|
5
|
+
:title="$t('workflowEditor.task.linkAttribute')"
|
|
6
|
+
:center="true"
|
|
7
|
+
append-to-body
|
|
8
|
+
class="properties-editor"
|
|
9
|
+
@open="$emit('open')"
|
|
10
|
+
@opend="$emit('opend')"
|
|
11
|
+
@close="$emit('close')"
|
|
12
|
+
@closed="$emit('closed')"
|
|
13
|
+
>
|
|
14
|
+
<el-tabs v-model="activeTab" type="border-card" @tab-click="handleClick">
|
|
15
|
+
<el-tab-pane :label="$t('workflowEditor.task.basicProperties')" name="basicProperties">
|
|
16
|
+
<basic-properties
|
|
17
|
+
v-model:id="model.ref.attr.id"
|
|
18
|
+
v-model:name="model.ref.attr.name"
|
|
19
|
+
:model="model.ref.basicProperties"
|
|
20
|
+
/>
|
|
21
|
+
</el-tab-pane>
|
|
22
|
+
<el-tab-pane :label="$t('workflowEditor.task.settingOfHandler')" name="transactors">
|
|
23
|
+
<transactor-settings :model="model.ref.transactorSettings" :basic-properties="model.ref.basicProperties" />
|
|
24
|
+
</el-tab-pane>
|
|
25
|
+
<el-tab-pane :label="$t('workflowEditor.task.permissionSettings')" name="permissions">
|
|
26
|
+
<permission-settings v-model="model.ref.permissionSettings" />
|
|
27
|
+
</el-tab-pane>
|
|
28
|
+
<el-tab-pane :label="$t('workflowEditor.task.autoFillInFieldSettings')" name="autoFilledFields">
|
|
29
|
+
<auto-filled-fields v-model="model.ref.autoFilledFields" v-model:opinion-setting="model.ref.opinionSetting" />
|
|
30
|
+
</el-tab-pane>
|
|
31
|
+
<el-tab-pane :label="$t('workflowEditor.task.reminderSettings')" name="reminders">
|
|
32
|
+
<!-- <reminder v-model="model.ref.reminder" /> -->
|
|
33
|
+
<notice-reminder v-model:reminder-value="model.ref.reminder" :task-notice-value="model.ref.taskNotice" />
|
|
34
|
+
</el-tab-pane>
|
|
35
|
+
<el-tab-pane :label="$t('workflowEditor.task.eventProcessing')" name="events">
|
|
36
|
+
<events v-model="model.ref.events" />
|
|
37
|
+
</el-tab-pane>
|
|
38
|
+
<el-tab-pane :label="$t('workflowEditor.task.linkVariable')" name="variables">
|
|
39
|
+
<variables v-model="model.ref.variables" />
|
|
40
|
+
</el-tab-pane>
|
|
41
|
+
</el-tabs>
|
|
42
|
+
</el-dialog>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
import BasicProperties from './human-task/basic-properties'
|
|
47
|
+
import PermissionSettings from './human-task/permission-settings'
|
|
48
|
+
import TransactorSettings from './common/transactor-settings'
|
|
49
|
+
import AutoFilledFields from './common/auto-filled-fields.vue'
|
|
50
|
+
// import Reminder from './common/reminder'
|
|
51
|
+
import Variables from './common/variables'
|
|
52
|
+
import Events from './human-task/events'
|
|
53
|
+
import NoticeReminder from './common/notice-reminder.vue'
|
|
54
|
+
export default {
|
|
55
|
+
name: 'HumanTaskPropertiesEditor',
|
|
56
|
+
components: {
|
|
57
|
+
BasicProperties,
|
|
58
|
+
TransactorSettings,
|
|
59
|
+
PermissionSettings,
|
|
60
|
+
AutoFilledFields,
|
|
61
|
+
// Reminder,
|
|
62
|
+
Events,
|
|
63
|
+
Variables,
|
|
64
|
+
NoticeReminder
|
|
65
|
+
},
|
|
66
|
+
props: {
|
|
67
|
+
model: {
|
|
68
|
+
type: Object,
|
|
69
|
+
default: null
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
data() {
|
|
73
|
+
if (!this.model.ref.taskNotice) {
|
|
74
|
+
this.model.ref.taskNotice = {}
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
activeTab: 'basicProperties',
|
|
78
|
+
dialogVisible: true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
computed: {
|
|
82
|
+
formModel() {
|
|
83
|
+
return this.model.ref
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
mounted() {
|
|
87
|
+
this.$watch('model.ref.attr.id', function (newVal, oldVal) {
|
|
88
|
+
this.model.id = newVal
|
|
89
|
+
})
|
|
90
|
+
this.$watch('model.ref.attr.name', function (newVal, oldVal) {
|
|
91
|
+
this.model.name = newVal
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
methods: {
|
|
95
|
+
handleClick(tab, event) {
|
|
96
|
+
// console.log(tab, event)
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
</script>
|
|
101
|
+
|
|
102
|
+
<style scoped>
|
|
103
|
+
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
104
|
+
.properties-editor :deep(.el-dialog__body) {
|
|
105
|
+
padding-top: 0;
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
model-value
|
|
4
|
+
:title="$t('workflowEditor.task.convergedProperties')"
|
|
5
|
+
:center="true"
|
|
6
|
+
append-to-body
|
|
7
|
+
@open="$emit('open')"
|
|
8
|
+
@opend="$emit('opend')"
|
|
9
|
+
@close="$emit('close')"
|
|
10
|
+
@closed="$emit('closed')"
|
|
11
|
+
>
|
|
12
|
+
<el-form>
|
|
13
|
+
<el-form-item :label="$t('workflowEditor.task.name')" label-width="40px">
|
|
14
|
+
<el-input v-model="formModel.attr.name" />
|
|
15
|
+
</el-form-item>
|
|
16
|
+
</el-form>
|
|
17
|
+
</el-dialog>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
name: 'ForkPropertiesEditor',
|
|
23
|
+
props: {
|
|
24
|
+
model: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: null
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
data(){
|
|
30
|
+
return {
|
|
31
|
+
dialogVisible: true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
computed: {
|
|
35
|
+
formModel() {
|
|
36
|
+
return this.model.ref
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
mounted() {
|
|
40
|
+
this.$watch('model.ref.attr.name', function(newVal) {
|
|
41
|
+
this.model.name = newVal
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<style lang="scss" scoped>
|
|
48
|
+
|
|
49
|
+
</style>
|