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,147 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ul class="context-menu">
|
|
3
|
+
<li v-for="menu in menus" :key="menu.name" @mousedown.stop="execute(menu.name)">
|
|
4
|
+
<icon-svg :icon="menu.icon" /><span>{{ menu.label }}</span>
|
|
5
|
+
</li>
|
|
6
|
+
</ul>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import { mapGetters, mapMutations } from 'vuex'
|
|
11
|
+
import IconSvg from './icon-svg'
|
|
12
|
+
export default {
|
|
13
|
+
name: 'ContextMenu',
|
|
14
|
+
components: {
|
|
15
|
+
IconSvg
|
|
16
|
+
},
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
menusForTransition: [
|
|
20
|
+
{ name: 'switch-line-type-StraightLine', label: this.$t('workflowEditor.main.straightLine'), icon: 'switch' },
|
|
21
|
+
{ name: 'switch-line-type-CurveLine', label: this.$t('workflowEditor.main.curveLine'), icon: 'switch' },
|
|
22
|
+
{ name: 'switch-line-type-BrokenLine', label: this.$t('workflowEditor.main.brokenLine'), icon: 'switch' },
|
|
23
|
+
{ name: 'remove', label: this.$t('workflowEditor.common.remove'), icon: 'delete' },
|
|
24
|
+
{ name: 'properties', label: this.$t('workflowEditor.common.attribute'), icon: 'properties' }
|
|
25
|
+
],
|
|
26
|
+
menusForTache: [
|
|
27
|
+
{ name: 'remove', label: this.$t('workflowEditor.common.remove'), icon: 'delete' },
|
|
28
|
+
{ name: 'properties', label: this.$t('workflowEditor.common.attribute'), icon: 'properties' }
|
|
29
|
+
],
|
|
30
|
+
menusForProcess: [
|
|
31
|
+
{ name: 'properties', label: this.$t('workflowEditor.common.attribute'), icon: 'properties' }
|
|
32
|
+
],
|
|
33
|
+
componentsWithoutPropertiesEditor: ['Start', 'End']
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
computed: {
|
|
37
|
+
...mapGetters('wfEditor', [
|
|
38
|
+
'taches',
|
|
39
|
+
'transitions',
|
|
40
|
+
'selectedTransition',
|
|
41
|
+
'selectedTaches'
|
|
42
|
+
]),
|
|
43
|
+
menuType() {
|
|
44
|
+
let type = ''
|
|
45
|
+
if (this.selectedTransition) {
|
|
46
|
+
type = 'Transition'
|
|
47
|
+
} else if (this.selectedTaches.length === 1) {
|
|
48
|
+
type = 'Tache'
|
|
49
|
+
}
|
|
50
|
+
if (this.selectedTransition === null && this.selectedTaches.length === 0) {
|
|
51
|
+
type = 'Process'
|
|
52
|
+
}
|
|
53
|
+
return type
|
|
54
|
+
},
|
|
55
|
+
menus() {
|
|
56
|
+
if (this.menuType) {
|
|
57
|
+
return this['menusFor' + this.menuType]
|
|
58
|
+
} else {
|
|
59
|
+
return []
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
created() {
|
|
64
|
+
if(this.selectedTaches.length > 0) {
|
|
65
|
+
const tacheType = this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? '' : this.selectedTaches[0].type
|
|
66
|
+
if(this.menuType && this.menuType === 'Tache' && tacheType) {
|
|
67
|
+
// 只有环节才需要”拷贝“菜单
|
|
68
|
+
this.menusForTache.push({ name: 'copy', label: this.$t('workflowEditor.common.copy'), icon: 'fuzhi' })
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
...mapMutations('wfEditor', [
|
|
74
|
+
'setPropertiesEditorFor',
|
|
75
|
+
'setContextMenuVisible',
|
|
76
|
+
'setSourceComponentForCopy'
|
|
77
|
+
]),
|
|
78
|
+
switchLineType(lineType) {
|
|
79
|
+
this.selectedTransition.lineInfo.controlPoint = null
|
|
80
|
+
this.selectedTransition.lineInfo.type = lineType
|
|
81
|
+
},
|
|
82
|
+
execute(menu) {
|
|
83
|
+
console.log('menu:' + menu)
|
|
84
|
+
if (menu.indexOf('switch-line-type-') >= 0) {
|
|
85
|
+
const lineType = menu.substring(menu.lastIndexOf('-') + 1)
|
|
86
|
+
this.switchLineType(lineType)
|
|
87
|
+
}
|
|
88
|
+
if (menu === 'remove') {
|
|
89
|
+
if (this.menuType === 'Tache') {
|
|
90
|
+
this.taches.splice(this.taches.indexOf(this.selectedTaches[0]), 1)
|
|
91
|
+
} else if (this.menuType === 'Transition') {
|
|
92
|
+
this.transitions.splice(this.transitions.indexOf(this.selectedTransition), 1)
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (menu === 'properties') {
|
|
97
|
+
if (this.menuType === 'Tache') {
|
|
98
|
+
this.setPropertiesEditorFor(
|
|
99
|
+
this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? '' : this.selectedTaches[0].type
|
|
100
|
+
)
|
|
101
|
+
} else if (this.menuType === 'Transition') {
|
|
102
|
+
this.setPropertiesEditorFor('Transition')
|
|
103
|
+
} else {
|
|
104
|
+
this.setPropertiesEditorFor('Process')
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (menu === 'copy') {
|
|
108
|
+
this.setSourceComponentForCopy(
|
|
109
|
+
this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? '' : this.selectedTaches[0].type
|
|
110
|
+
)
|
|
111
|
+
}
|
|
112
|
+
this.setContextMenuVisible(false)
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
</script>
|
|
117
|
+
<style lang="scss" scoped>
|
|
118
|
+
li {
|
|
119
|
+
color: #333;
|
|
120
|
+
}
|
|
121
|
+
.context-menu {
|
|
122
|
+
position: fixed;
|
|
123
|
+
background: #fff;
|
|
124
|
+
z-index: 999;
|
|
125
|
+
padding:5px;
|
|
126
|
+
margin:0
|
|
127
|
+
}
|
|
128
|
+
.context-menu li {
|
|
129
|
+
min-width: 75px;
|
|
130
|
+
height: 28px;
|
|
131
|
+
line-height: 28px;
|
|
132
|
+
text-align: left;
|
|
133
|
+
color: #1a1a1a;
|
|
134
|
+
}
|
|
135
|
+
.context-menu li:hover {
|
|
136
|
+
background: #42b983;
|
|
137
|
+
color: #fff;
|
|
138
|
+
}
|
|
139
|
+
.context-menu {
|
|
140
|
+
border: 1px solid #eee;
|
|
141
|
+
box-shadow: 0 0.5em 1em 0 rgba(0,0,0,.1);
|
|
142
|
+
border-radius: 5px;
|
|
143
|
+
}
|
|
144
|
+
li {
|
|
145
|
+
list-style-type:none;
|
|
146
|
+
}
|
|
147
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg class="svg-icon" aria-hidden="true">
|
|
3
|
+
<use :xlink:href="iconName" />
|
|
4
|
+
</svg>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'IconSvg',
|
|
10
|
+
props: {
|
|
11
|
+
icon: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
computed: {
|
|
17
|
+
iconName() {
|
|
18
|
+
return `#icon-${this.icon}`
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style>
|
|
25
|
+
.svg-icon {
|
|
26
|
+
width: 1em;
|
|
27
|
+
height: 1em;
|
|
28
|
+
vertical-align: -0.15em;
|
|
29
|
+
fill: currentColor;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<g>
|
|
3
|
+
<rect
|
|
4
|
+
v-if="region"
|
|
5
|
+
:x="region.x"
|
|
6
|
+
:y="region.y"
|
|
7
|
+
:width="region.width"
|
|
8
|
+
:height="region.height"
|
|
9
|
+
:class="{'draggable':true,'selection-region':true,'dashed':selectedTaches.length<1}"
|
|
10
|
+
@mousedown.stop="startDrag"
|
|
11
|
+
@mouseup.stop="endDrag"
|
|
12
|
+
/>
|
|
13
|
+
</g>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
import { mapGetters, mapMutations } from 'vuex'
|
|
17
|
+
import { getMousePosition } from '../util'
|
|
18
|
+
export default {
|
|
19
|
+
name: 'SelectionRegion',
|
|
20
|
+
props: {
|
|
21
|
+
region: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: null
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
computed: {
|
|
27
|
+
...mapGetters('wfEditor', [
|
|
28
|
+
'selectedTaches'
|
|
29
|
+
])
|
|
30
|
+
},
|
|
31
|
+
methods: {
|
|
32
|
+
...mapMutations('wfEditor', [
|
|
33
|
+
'setDrawingRegion',
|
|
34
|
+
'setMovingRegion',
|
|
35
|
+
'setMouseDownPosition'
|
|
36
|
+
]),
|
|
37
|
+
startDrag(event) {
|
|
38
|
+
console.log('region mousedown')
|
|
39
|
+
const mouseDownPosition = getMousePosition(event)
|
|
40
|
+
this.setMouseDownPosition(mouseDownPosition)
|
|
41
|
+
this.setMovingRegion(true)
|
|
42
|
+
},
|
|
43
|
+
endDrag(event) {
|
|
44
|
+
console.log('region mouseup')
|
|
45
|
+
|
|
46
|
+
this.setMovingRegion(false)
|
|
47
|
+
this.setMouseDownPosition(null)
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
52
|
+
<style>
|
|
53
|
+
.selection-region{
|
|
54
|
+
stroke: blue;
|
|
55
|
+
stroke-width: 1;
|
|
56
|
+
fill: white;
|
|
57
|
+
fill-opacity: 0;
|
|
58
|
+
opacity: 1;
|
|
59
|
+
cursor: move;
|
|
60
|
+
}
|
|
61
|
+
.dashed{
|
|
62
|
+
stroke-dasharray: 10 2;
|
|
63
|
+
/* 控制region在画的过程中不响应任何事件,只有画完后才能响应 */
|
|
64
|
+
pointer-events:none;
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tooltip">
|
|
3
|
+
<!--使用v-html是为了实现</br>换行-->
|
|
4
|
+
<div v-html="content" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
export default {
|
|
10
|
+
name: 'TacheHistoryTooltip',
|
|
11
|
+
props: {
|
|
12
|
+
content: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ''
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
methods: {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<style lang="scss" scoped>
|
|
23
|
+
.tooltip{
|
|
24
|
+
position: absolute;
|
|
25
|
+
background: #fff;
|
|
26
|
+
min-width: 150px;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
border: 1px solid #ebeef5;
|
|
29
|
+
padding: 12px;
|
|
30
|
+
z-index: 2000;
|
|
31
|
+
color: #606266;
|
|
32
|
+
line-height: 1.4;
|
|
33
|
+
text-align: justify;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
|
|
36
|
+
word-break: break-all;
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="area" :style="'position:absolute;x:{{area.x}};y:{{area.y}};width:{{area.width}};height:{{area.height}}'">
|
|
3
|
+
<textarea />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
<script>
|
|
7
|
+
export default {
|
|
8
|
+
name: 'TacheNameInput',
|
|
9
|
+
props: {
|
|
10
|
+
area: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: null
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
data() {
|
|
16
|
+
return {}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
model-value
|
|
4
|
+
:title="$t('workflowEditorPublicModel.subprocessTitle')"
|
|
5
|
+
:close-on-click-modal="false"
|
|
6
|
+
append-to-body
|
|
7
|
+
width="90%"
|
|
8
|
+
top="5vh"
|
|
9
|
+
@open="$emit('open')"
|
|
10
|
+
@opend="$emit('opend')"
|
|
11
|
+
@close="$emit('close')"
|
|
12
|
+
@closed="$emit('closed')"
|
|
13
|
+
>
|
|
14
|
+
<iframe id="_subprocess-content" :src="'#/show-sub-wf-history?workflowId='+workflowId" name="_subprocess-content" title="Subprocess Content" frameborder="0" />
|
|
15
|
+
</el-dialog>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
export default {
|
|
20
|
+
name: 'TacheSubprocessHistoryDialog',
|
|
21
|
+
props: {
|
|
22
|
+
// 当前子流程最新流程实例id
|
|
23
|
+
workflowId: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: null
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
data(){
|
|
29
|
+
return {
|
|
30
|
+
dialogVisible: true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
35
|
+
<style lang="scss" scoped>
|
|
36
|
+
#_subprocess-content{
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: calc(100vh - 200px);
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="height: calc(100vh - 98px);background-color: #FFFFFF">
|
|
3
|
+
<h3>{{ $t('workflowEditor.main.tacheType') }}</h3>
|
|
4
|
+
<el-button
|
|
5
|
+
v-for="component in componentList"
|
|
6
|
+
:key="component.name"
|
|
7
|
+
:type="component.type"
|
|
8
|
+
:class="component.class"
|
|
9
|
+
:round="component.round"
|
|
10
|
+
@mousedown.native="select(component.name)"
|
|
11
|
+
>
|
|
12
|
+
<icon-svg :icon="component.icon" />
|
|
13
|
+
{{ component.label }}
|
|
14
|
+
</el-button>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<script>
|
|
18
|
+
import { mapGetters, mapMutations } from 'vuex'
|
|
19
|
+
import IconSvg from './icon-svg'
|
|
20
|
+
import { getComponentList } from '../util.js'
|
|
21
|
+
export default {
|
|
22
|
+
name: 'Toolbox',
|
|
23
|
+
components: {
|
|
24
|
+
IconSvg
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
componentList: getComponentList()
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
computed: {
|
|
32
|
+
...mapGetters('wfEditor', ['componentToDraw'])
|
|
33
|
+
},
|
|
34
|
+
methods: {
|
|
35
|
+
...mapMutations('wfEditor', [
|
|
36
|
+
'setComponentToDraw'
|
|
37
|
+
]),
|
|
38
|
+
select(name) {
|
|
39
|
+
this.setComponentToDraw(name)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
44
|
+
<style lang="scss" scoped>
|
|
45
|
+
h3{
|
|
46
|
+
color: #999999;
|
|
47
|
+
margin:0;
|
|
48
|
+
padding:0;
|
|
49
|
+
font-weight:bold;
|
|
50
|
+
font-size:18px
|
|
51
|
+
}
|
|
52
|
+
.el-button{
|
|
53
|
+
margin: 6px 0;
|
|
54
|
+
min-width: 110px;
|
|
55
|
+
padding:9px 15px;
|
|
56
|
+
i{
|
|
57
|
+
padding-right: 4px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</style>
|