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,309 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="svgContainer" style="position:relative">
|
|
3
|
+
<svg
|
|
4
|
+
id="svg"
|
|
5
|
+
width="2000"
|
|
6
|
+
height="2000"
|
|
7
|
+
@mousedown="mousedown"
|
|
8
|
+
@mousemove="mousemove"
|
|
9
|
+
@mouseup="mouseup"
|
|
10
|
+
@mouseleave="mouseleave"
|
|
11
|
+
>
|
|
12
|
+
<defs>
|
|
13
|
+
<marker id="arrow" markerWidth="10" markerHeight="10" refX="6" refY="2" orient="auto" markerUnits="strokeWidth">
|
|
14
|
+
<path d="M0,0 L0,4 L6,2 z" fill="#666" />
|
|
15
|
+
</marker>
|
|
16
|
+
</defs>
|
|
17
|
+
<component
|
|
18
|
+
:is="tache.type"
|
|
19
|
+
v-for="tache in taches"
|
|
20
|
+
:key="tache.id"
|
|
21
|
+
:model="tache"
|
|
22
|
+
:class="[getTacheClass(tache)]"
|
|
23
|
+
:display-mode="tache.displayMode"
|
|
24
|
+
@mouseenter.native="showTacheHistoryTooltip(tache,$event)"
|
|
25
|
+
@mouseleave.native="hideTacheHistoryTooltip(tache)"
|
|
26
|
+
@mousemove.native="updateTacheHistoryTooltipPosition"
|
|
27
|
+
@click.native="showSubprocessHistory(tache)"
|
|
28
|
+
/>
|
|
29
|
+
<!-- <transition
|
|
30
|
+
v-for="transition in transitions"
|
|
31
|
+
:key="transition.id"
|
|
32
|
+
:model="transition"
|
|
33
|
+
/> -->
|
|
34
|
+
<!--必须这样写,否则线条不显示-->
|
|
35
|
+
<component :is="'transition'"
|
|
36
|
+
v-for="transition in transitions"
|
|
37
|
+
:key="transition.id"
|
|
38
|
+
:model="transition"/>
|
|
39
|
+
</svg>
|
|
40
|
+
<tache-history-tooltip v-if="showHistory&&tacheHistoryInfo" :style="tooltipPosition" :content="tacheHistoryInfo" />
|
|
41
|
+
<tache-subprocess-history-dialog v-if="showSubprocessDialog" :workflow-id="subWorkflowId" @close="closeSubprocessHistory" />
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
import Start from '../taches/start'
|
|
47
|
+
import End from '../taches/end'
|
|
48
|
+
import HumanTask from '../taches/human-task'
|
|
49
|
+
import Decision from '../taches/decision'
|
|
50
|
+
import Subprocess from '../taches/subprocess'
|
|
51
|
+
import CustomTask from '../taches/custom-task'
|
|
52
|
+
import Fork from '../taches/fork'
|
|
53
|
+
import Join from '../taches/join'
|
|
54
|
+
import HumanDecision from '../taches/human-decision'
|
|
55
|
+
import CopyTask from '../taches/copy-task'
|
|
56
|
+
import AutoTask from '../taches/auto-task'
|
|
57
|
+
import Transition from '../transitions/transition'
|
|
58
|
+
import TacheHistoryTooltip from './tache-history-tooltip'
|
|
59
|
+
import { mapGetters } from 'vuex'
|
|
60
|
+
import { getMousePosition } from '../util'
|
|
61
|
+
import { i18nOperation } from 'agilebuilder-ui'
|
|
62
|
+
import { getLanguageWithLocale } from 'agilebuilder-ui'
|
|
63
|
+
import TacheSubprocessHistoryDialog from './tache-subprocess-history-dialog'
|
|
64
|
+
|
|
65
|
+
export default {
|
|
66
|
+
name: 'WfHistoryCanvas',
|
|
67
|
+
components: {
|
|
68
|
+
Start,
|
|
69
|
+
End,
|
|
70
|
+
HumanTask,
|
|
71
|
+
Decision,
|
|
72
|
+
Subprocess,
|
|
73
|
+
CustomTask,
|
|
74
|
+
Fork,
|
|
75
|
+
Join,
|
|
76
|
+
HumanDecision,
|
|
77
|
+
CopyTask,
|
|
78
|
+
Transition,
|
|
79
|
+
TacheHistoryTooltip,
|
|
80
|
+
TacheSubprocessHistoryDialog,
|
|
81
|
+
AutoTask
|
|
82
|
+
},
|
|
83
|
+
props: {
|
|
84
|
+
process: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: null
|
|
87
|
+
},
|
|
88
|
+
histories: {
|
|
89
|
+
type: Array,
|
|
90
|
+
default: null
|
|
91
|
+
},
|
|
92
|
+
currentTasks: {
|
|
93
|
+
type: Array,
|
|
94
|
+
default: null
|
|
95
|
+
},
|
|
96
|
+
// 主子流程的国际化配置
|
|
97
|
+
allProcessI18n: {
|
|
98
|
+
type: Object,
|
|
99
|
+
default: null
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
data: function() {
|
|
103
|
+
return {
|
|
104
|
+
showHistory: false,
|
|
105
|
+
tooltipPosition: null,
|
|
106
|
+
tacheHistoryInfo: null,
|
|
107
|
+
showSubprocessDialog: false,
|
|
108
|
+
subWorkflowId: null // 子流程最新实例
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
computed: {
|
|
112
|
+
...mapGetters('wfEditor', [
|
|
113
|
+
'taches',
|
|
114
|
+
'transitions',
|
|
115
|
+
'processI18n'
|
|
116
|
+
])
|
|
117
|
+
// classifiedTaches() {
|
|
118
|
+
// this.taches.map(tache => {
|
|
119
|
+
// this.tagPassedTache(tache)
|
|
120
|
+
// this.tagCurrentTache(tache)
|
|
121
|
+
// })
|
|
122
|
+
// return this.taches
|
|
123
|
+
// }
|
|
124
|
+
|
|
125
|
+
},
|
|
126
|
+
mounted: function() {
|
|
127
|
+
|
|
128
|
+
},
|
|
129
|
+
methods: {
|
|
130
|
+
getTacheClass(tache) {
|
|
131
|
+
// 先判断是否为当前节点 (流程中一个节点可能走多次,这个节点会同时出现在当前和历史节点中)
|
|
132
|
+
if (this.getCurrentTache(tache)) {
|
|
133
|
+
return 'current-tache'
|
|
134
|
+
} else {
|
|
135
|
+
const passTache = this.getPassedTache(tache)
|
|
136
|
+
if (passTache && passTache.current) {
|
|
137
|
+
// 子流程时会进入该判断
|
|
138
|
+
return 'current-tache'
|
|
139
|
+
} else if (passTache) {
|
|
140
|
+
return 'passed-tache'
|
|
141
|
+
} else {
|
|
142
|
+
return ''
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
getPassedTache(tache) {
|
|
147
|
+
let result = null
|
|
148
|
+
for (const item of this.histories) {
|
|
149
|
+
if ((item.historyType === 'PROCESS_START' && tache.ref.attr.id && tache.ref.attr.id === 'start') ||
|
|
150
|
+
(item.historyType === 'PROCESS_END' && tache.ref.attr.id && tache.ref.attr.id === 'end') ||
|
|
151
|
+
(tache.ref.attr.name && item.taskName && item.taskName === tache.ref.attr.name)) {
|
|
152
|
+
result = item
|
|
153
|
+
break
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return result
|
|
157
|
+
},
|
|
158
|
+
// 获得当前环节的流转历史信息,多条件流转历史记录之间换行显示。因为一个环节可能会走多次
|
|
159
|
+
getPassedTacheHistories(tache) {
|
|
160
|
+
const result = []
|
|
161
|
+
for (const item of this.histories) {
|
|
162
|
+
if ((item.historyType === 'PROCESS_START' && tache.ref.attr.id && tache.ref.attr.id === 'start') ||
|
|
163
|
+
(item.historyType === 'PROCESS_END' && tache.ref.attr.id && tache.ref.attr.id === 'end') ||
|
|
164
|
+
(tache.ref.attr.name && item.taskName && item.taskName === tache.ref.attr.name)) {
|
|
165
|
+
result.push(this.i18nOperation(item))
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return result
|
|
169
|
+
},
|
|
170
|
+
i18nOperation(item) {
|
|
171
|
+
let oneProcessI18n
|
|
172
|
+
let processNameI18n
|
|
173
|
+
const language = getLanguageWithLocale()
|
|
174
|
+
const bundleCode = item.bundleCode
|
|
175
|
+
if (bundleCode && bundleCode !== '' && this.processI18n) {
|
|
176
|
+
oneProcessI18n = this.processI18n[bundleCode]
|
|
177
|
+
}
|
|
178
|
+
if (oneProcessI18n && oneProcessI18n['processName']) {
|
|
179
|
+
processNameI18n = oneProcessI18n['processName'][language]
|
|
180
|
+
}
|
|
181
|
+
return i18nOperation(item, processNameI18n, oneProcessI18n, language)
|
|
182
|
+
},
|
|
183
|
+
getCurrentTache(tache) {
|
|
184
|
+
let result = null
|
|
185
|
+
for (const item of this.currentTasks) {
|
|
186
|
+
if (item.taskName === tache.ref.attr.name) {
|
|
187
|
+
result = item
|
|
188
|
+
break
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return result
|
|
192
|
+
},
|
|
193
|
+
getTacheHistory(tache) {
|
|
194
|
+
let content = null
|
|
195
|
+
let historyText
|
|
196
|
+
const histories = this.getPassedTacheHistories(tache)
|
|
197
|
+
if (histories && histories.length > 0) {
|
|
198
|
+
historyText = histories.join('</br>')
|
|
199
|
+
}
|
|
200
|
+
const current = this.getCurrentTache(tache)
|
|
201
|
+
if (current) {
|
|
202
|
+
content = this.$t('workflowEditorMessage.currentHandlingPersonnel') + ': ' + current.transactionResult
|
|
203
|
+
if (historyText) {
|
|
204
|
+
content += '</br>' + historyText
|
|
205
|
+
}
|
|
206
|
+
} else {
|
|
207
|
+
content = historyText
|
|
208
|
+
}
|
|
209
|
+
return content
|
|
210
|
+
},
|
|
211
|
+
forbidSelection() {
|
|
212
|
+
return false
|
|
213
|
+
},
|
|
214
|
+
mousedown(event) {
|
|
215
|
+
console.log('mousedown')
|
|
216
|
+
},
|
|
217
|
+
mousemove(event) {
|
|
218
|
+
},
|
|
219
|
+
// 有些组件上的mouseup,会传播到canvas上来
|
|
220
|
+
mouseup(event) {
|
|
221
|
+
|
|
222
|
+
},
|
|
223
|
+
mouseleave(event) {
|
|
224
|
+
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
endDrag(event) {
|
|
228
|
+
|
|
229
|
+
},
|
|
230
|
+
showTacheHistoryTooltip(tache, event) {
|
|
231
|
+
this.tacheHistoryInfo = this.getTacheHistory(tache)
|
|
232
|
+
this.showHistory = true
|
|
233
|
+
},
|
|
234
|
+
hideTacheHistoryTooltip() {
|
|
235
|
+
// this.tacheHistoryInfo = null
|
|
236
|
+
this.showHistory = false
|
|
237
|
+
},
|
|
238
|
+
updateTacheHistoryTooltipPosition(event) {
|
|
239
|
+
const position = getMousePosition(event)
|
|
240
|
+
this.tooltipPosition = {
|
|
241
|
+
// 提示框的位置要偏离鼠标指针5px,防止提示框不停闪烁
|
|
242
|
+
left: position.x + 5 + 'px',
|
|
243
|
+
top: position.y + 5 + 'px'
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
// 查看子流程流转历史
|
|
247
|
+
showSubprocessHistory(tache) {
|
|
248
|
+
const history = this.getPassedTache(tache)
|
|
249
|
+
if (history && history.hasChildren !== undefined && history.hasChildren === true) {
|
|
250
|
+
if (history.children && history.children.length > 0) {
|
|
251
|
+
this.subWorkflowId = history.children[0].workflowId
|
|
252
|
+
}
|
|
253
|
+
this.showSubprocessDialog = true
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
closeSubprocessHistory() {
|
|
257
|
+
this.showSubprocessDialog = false
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
</script>
|
|
262
|
+
<style >
|
|
263
|
+
#svg{
|
|
264
|
+
/* border:1px solid red; */
|
|
265
|
+
background: white;
|
|
266
|
+
background-image:
|
|
267
|
+
linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
|
|
268
|
+
linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
|
|
269
|
+
linear-gradient(#e5e5e5 1px, transparent 0),
|
|
270
|
+
linear-gradient(90deg,#e5e5e5 1px, transparent 0);
|
|
271
|
+
background-size:
|
|
272
|
+
15px 15px,
|
|
273
|
+
15px 15px,
|
|
274
|
+
75px 75px,
|
|
275
|
+
75px 75px;
|
|
276
|
+
}
|
|
277
|
+
g{
|
|
278
|
+
font-size: 16px;
|
|
279
|
+
}
|
|
280
|
+
g text{
|
|
281
|
+
dominant-baseline: middle;
|
|
282
|
+
}
|
|
283
|
+
.selected{
|
|
284
|
+
fill: #fff;
|
|
285
|
+
stroke: #f00;
|
|
286
|
+
stroke-width: 2;
|
|
287
|
+
}
|
|
288
|
+
.task-tache{
|
|
289
|
+
fill: #fff;
|
|
290
|
+
stroke: #666;
|
|
291
|
+
stroke-width: 2;
|
|
292
|
+
}
|
|
293
|
+
.passed-tache .task-tache{
|
|
294
|
+
fill: green;
|
|
295
|
+
stroke: green;
|
|
296
|
+
stroke-width: 2;
|
|
297
|
+
}
|
|
298
|
+
.current-tache .task-tache{
|
|
299
|
+
fill: red;
|
|
300
|
+
stroke: red;
|
|
301
|
+
stroke-width: 2;
|
|
302
|
+
}
|
|
303
|
+
.passed-tache text{
|
|
304
|
+
fill:white;
|
|
305
|
+
}
|
|
306
|
+
.current-tache text{
|
|
307
|
+
fill: white
|
|
308
|
+
}
|
|
309
|
+
</style>
|