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,86 @@
|
|
|
1
|
+
import o from "../taches/start.vue.mjs";
|
|
2
|
+
import e from "../taches/end.vue.mjs";
|
|
3
|
+
import t from "../taches/human-task.vue.mjs";
|
|
4
|
+
import s from "../taches/decision.vue.mjs";
|
|
5
|
+
import r from "../taches/subprocess.vue.mjs";
|
|
6
|
+
import i from "../taches/custom-task.vue.mjs";
|
|
7
|
+
import a from "../taches/fork.vue.mjs";
|
|
8
|
+
import n from "../taches/join.vue.mjs";
|
|
9
|
+
import u from "../taches/human-decision.vue.mjs";
|
|
10
|
+
import l from "../taches/copy-task.vue.mjs";
|
|
11
|
+
import h from "../taches/auto-task.vue.mjs";
|
|
12
|
+
import c from "../transitions/transition.vue.mjs";
|
|
13
|
+
import m from "./tache-history-tooltip.vue.mjs";
|
|
14
|
+
import { mapGetters as p } from "vuex";
|
|
15
|
+
import { getMousePosition as d } from "../util.mjs";
|
|
16
|
+
import { getLanguageWithLocale as f, i18nOperation as y } from "agilebuilder-ui";
|
|
17
|
+
import T from "./tache-subprocess-history-dialog.vue.mjs";
|
|
18
|
+
import { resolveComponent as v, openBlock as k, createElementBlock as g, Fragment as w, renderList as H, createBlock as b, resolveDynamicComponent as S, normalizeClass as j, normalizeStyle as C, createCommentVNode as P, createElementVNode as M } from "vue";
|
|
19
|
+
import "./wf-history-canvas.vue2.mjs";
|
|
20
|
+
import I from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
21
|
+
const D = { name: "WfHistoryCanvas", components: { Start: o, End: e, HumanTask: t, Decision: s, Subprocess: r, CustomTask: i, Fork: a, Join: n, HumanDecision: u, CopyTask: l, Transition: c, TacheHistoryTooltip: m, TacheSubprocessHistoryDialog: T, AutoTask: h }, props: { process: { type: Object, default: null }, histories: { type: Array, default: null }, currentTasks: { type: Array, default: null }, allProcessI18n: { type: Object, default: null } }, data: function() {
|
|
22
|
+
return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
|
|
23
|
+
}, computed: { ...p("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
|
|
24
|
+
}, methods: { getTacheClass(o2) {
|
|
25
|
+
if (this.getCurrentTache(o2))
|
|
26
|
+
return "current-tache";
|
|
27
|
+
{
|
|
28
|
+
const e2 = this.getPassedTache(o2);
|
|
29
|
+
return e2 && e2.current ? "current-tache" : e2 ? "passed-tache" : "";
|
|
30
|
+
}
|
|
31
|
+
}, getPassedTache(o2) {
|
|
32
|
+
let e2 = null;
|
|
33
|
+
for (const t2 of this.histories)
|
|
34
|
+
if ("PROCESS_START" === t2.historyType && o2.ref.attr.id && "start" === o2.ref.attr.id || "PROCESS_END" === t2.historyType && o2.ref.attr.id && "end" === o2.ref.attr.id || o2.ref.attr.name && t2.taskName && t2.taskName === o2.ref.attr.name) {
|
|
35
|
+
e2 = t2;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
return e2;
|
|
39
|
+
}, getPassedTacheHistories(o2) {
|
|
40
|
+
const e2 = [];
|
|
41
|
+
for (const t2 of this.histories)
|
|
42
|
+
("PROCESS_START" === t2.historyType && o2.ref.attr.id && "start" === o2.ref.attr.id || "PROCESS_END" === t2.historyType && o2.ref.attr.id && "end" === o2.ref.attr.id || o2.ref.attr.name && t2.taskName && t2.taskName === o2.ref.attr.name) && e2.push(this.i18nOperation(t2));
|
|
43
|
+
return e2;
|
|
44
|
+
}, i18nOperation(o2) {
|
|
45
|
+
let e2, t2;
|
|
46
|
+
const s2 = f(), r2 = o2.bundleCode;
|
|
47
|
+
return r2 && "" !== r2 && this.processI18n && (e2 = this.processI18n[r2]), e2 && e2.processName && (t2 = e2.processName[s2]), y(o2, t2, e2, s2);
|
|
48
|
+
}, getCurrentTache(o2) {
|
|
49
|
+
let e2 = null;
|
|
50
|
+
for (const t2 of this.currentTasks)
|
|
51
|
+
if (t2.taskName === o2.ref.attr.name) {
|
|
52
|
+
e2 = t2;
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
return e2;
|
|
56
|
+
}, getTacheHistory(o2) {
|
|
57
|
+
let e2, t2 = null;
|
|
58
|
+
const s2 = this.getPassedTacheHistories(o2);
|
|
59
|
+
s2 && s2.length > 0 && (e2 = s2.join("</br>"));
|
|
60
|
+
const r2 = this.getCurrentTache(o2);
|
|
61
|
+
return r2 ? (t2 = this.$t("workflowEditorMessage.currentHandlingPersonnel") + ": " + r2.transactionResult, e2 && (t2 += "</br>" + e2)) : t2 = e2, t2;
|
|
62
|
+
}, forbidSelection: () => false, mousedown(o2) {
|
|
63
|
+
}, mousemove(o2) {
|
|
64
|
+
}, mouseup(o2) {
|
|
65
|
+
}, mouseleave(o2) {
|
|
66
|
+
}, endDrag(o2) {
|
|
67
|
+
}, showTacheHistoryTooltip(o2, e2) {
|
|
68
|
+
this.tacheHistoryInfo = this.getTacheHistory(o2), this.showHistory = true;
|
|
69
|
+
}, hideTacheHistoryTooltip() {
|
|
70
|
+
this.showHistory = false;
|
|
71
|
+
}, updateTacheHistoryTooltipPosition(o2) {
|
|
72
|
+
const e2 = d(o2);
|
|
73
|
+
this.tooltipPosition = { left: e2.x + 5 + "px", top: e2.y + 5 + "px" };
|
|
74
|
+
}, showSubprocessHistory(o2) {
|
|
75
|
+
const e2 = this.getPassedTache(o2);
|
|
76
|
+
e2 && void 0 !== e2.hasChildren && true === e2.hasChildren && (e2.children && e2.children.length > 0 && (this.subWorkflowId = e2.children[0].workflowId), this.showSubprocessDialog = true);
|
|
77
|
+
}, closeSubprocessHistory() {
|
|
78
|
+
this.showSubprocessDialog = false;
|
|
79
|
+
} } }, E = { ref: "svgContainer", style: { position: "relative" } }, N = M("defs", null, [M("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [M("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
|
|
80
|
+
const O = I(D, [["render", function(o2, e2, t2, s2, r2, i2) {
|
|
81
|
+
const a2 = v("tache-history-tooltip"), n2 = v("tache-subprocess-history-dialog");
|
|
82
|
+
return k(), g("div", E, [(k(), g("svg", { id: "svg", width: "2000", height: "2000", onMousedown: e2[0] || (e2[0] = (...o3) => i2.mousedown && i2.mousedown(...o3)), onMousemove: e2[1] || (e2[1] = (...o3) => i2.mousemove && i2.mousemove(...o3)), onMouseup: e2[2] || (e2[2] = (...o3) => i2.mouseup && i2.mouseup(...o3)), onMouseleave: e2[3] || (e2[3] = (...o3) => i2.mouseleave && i2.mouseleave(...o3)) }, [N, (k(true), g(w, null, H(o2.taches, (o3) => (k(), b(S(o3.type), { key: o3.id, model: o3, class: j([i2.getTacheClass(o3)]), "display-mode": o3.displayMode, onMouseenter: (e3) => i2.showTacheHistoryTooltip(o3, e3), onMouseleave: (e3) => i2.hideTacheHistoryTooltip(o3), onMousemove: i2.updateTacheHistoryTooltipPosition, onClick: (e3) => i2.showSubprocessHistory(o3) }, null, 40, ["model", "class", "display-mode", "onMouseenter", "onMouseleave", "onMousemove", "onClick"]))), 128)), (k(true), g(w, null, H(o2.transitions, (o3) => (k(), b(S("transition"), { key: o3.id, model: o3 }, null, 8, ["model"]))), 128))], 32)), o2.showHistory && o2.tacheHistoryInfo ? (k(), b(a2, { key: 0, style: C(o2.tooltipPosition), content: o2.tacheHistoryInfo }, null, 8, ["style", "content"])) : P("", true), o2.showSubprocessDialog ? (k(), b(n2, { key: 1, "workflow-id": o2.subWorkflowId, onClose: i2.closeSubprocessHistory }, null, 8, ["workflow-id", "onClose"])) : P("", true)], 512);
|
|
83
|
+
}]]);
|
|
84
|
+
export {
|
|
85
|
+
O as default
|
|
86
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
function o() {
|
|
3
|
+
return window.$store;
|
|
4
|
+
}
|
|
5
|
+
function e() {
|
|
6
|
+
return window.$http;
|
|
7
|
+
}
|
|
8
|
+
const t = { fetchFormFields: (t2, i, s, r) => new Promise((d, n) => {
|
|
9
|
+
let f;
|
|
10
|
+
t2 ? f = e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields?formCode=" + t2 + "&formVersion=" + i + "&publishVersion=" + r) : s && (f = e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/table-fields?tableName=" + s + "&publishVersion=" + r)), f ? f.then((e2) => {
|
|
11
|
+
const i2 = e2.formFields;
|
|
12
|
+
e2.subFormFields, o().commit("wfEditor/setFormCode", t2), o().commit("wfEditor/setTableCode", e2.tableCode), o().commit("wfEditor/setFormFields", i2), o().commit("wfEditor/setFormFieldsWithSub", i2);
|
|
13
|
+
const s2 = e2.subtableConditionMap;
|
|
14
|
+
o().commit("wfEditor/setSubtableConditionMap", s2);
|
|
15
|
+
const r2 = e2.systemPropSettingList;
|
|
16
|
+
o().commit("wfEditor/setPropSettingKeyList", r2), d(e2);
|
|
17
|
+
}) : d({});
|
|
18
|
+
}), fetchSubprocessFormFields: (o2, t2) => e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields-with-processes?processCode=" + o2 + "&processVersion=" + t2) };
|
|
19
|
+
export {
|
|
20
|
+
t as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import e from "../common/task-title.vue.mjs";
|
|
2
|
+
import { validateTacheCode as l } from "../../util.mjs";
|
|
3
|
+
import t from "../common/i18n-input.vue.mjs";
|
|
4
|
+
import { resolveComponent as o, openBlock as a, createBlock as m, withCtx as n, createVNode as d } from "vue";
|
|
5
|
+
import "./basic-properties.vue2.mjs";
|
|
6
|
+
import i from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const u = i({ name: "BasicProperties", components: { TaskTitle: e, i18nInput: t }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
8
|
+
return { formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
9
|
+
}, computed: { tache() {
|
|
10
|
+
return this.model;
|
|
11
|
+
} }, mounted() {
|
|
12
|
+
this.$watch("formModel.name", function(e2, l2) {
|
|
13
|
+
this.$emit("update:name", e2);
|
|
14
|
+
});
|
|
15
|
+
}, methods: { validateId() {
|
|
16
|
+
l(this);
|
|
17
|
+
}, setI18nValue(e2) {
|
|
18
|
+
this.tache.i18nKey = e2;
|
|
19
|
+
} } }, [["render", function(e2, l2, t2, i2, u2, r) {
|
|
20
|
+
const f = o("i18n-input"), s = o("el-form-item"), p = o("el-col"), c = o("el-input"), h = o("el-row"), b = o("el-form");
|
|
21
|
+
return a(), m(b, { model: u2.formModel, "label-width": "110px" }, { default: n(() => [d(h, null, { default: n(() => [d(p, { span: 12 }, { default: n(() => [d(s, { label: e2.$t("workflowEditor.task.name") }, { default: n(() => [d(f, { modelValue: u2.formModel.name, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => u2.formModel.name = e3), "i18n-key": r.tache.i18nKey ? r.tache.i18nKey : "name." + u2.formModel.id, onSetI18n: r.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), d(p, { span: 12 }, { default: n(() => [d(s, { label: e2.$t("workflowEditor.task.code") }, { default: n(() => [d(c, { modelValue: u2.formModel.id, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => u2.formModel.id = e3), onBlur: r.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), d(s, { label: e2.$t("workflowEditor.task.custombeanName") }, { default: n(() => [d(c, { modelValue: r.tache.beanName, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => r.tache.beanName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
22
|
+
}], ["__scopeId", "data-v-6aef99ff"]]);
|
|
23
|
+
export {
|
|
24
|
+
u as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "./auto-task/basic-properties.vue.mjs";
|
|
2
|
+
import { resolveComponent as t, openBlock as o, createBlock as a, withCtx as r, createVNode as i } from "vue";
|
|
3
|
+
import "./auto-task.vue2.mjs";
|
|
4
|
+
import l from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const d = l({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: e }, props: { model: { type: Object, default: null } }, data() {
|
|
6
|
+
return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
7
|
+
}, computed: { formModel() {
|
|
8
|
+
return this.model.ref;
|
|
9
|
+
} }, mounted() {
|
|
10
|
+
this.$watch("model.ref.attr.id", function(e2, t2) {
|
|
11
|
+
this.model.id = e2;
|
|
12
|
+
}), this.$watch("model.ref.attr.name", function(e2, t2) {
|
|
13
|
+
this.model.name = e2;
|
|
14
|
+
});
|
|
15
|
+
}, methods: { handleClick(e2, t2) {
|
|
16
|
+
} } }, [["render", function(e2, l2, d2, s, m, n) {
|
|
17
|
+
const p = t("basic-properties"), c = t("el-tab-pane"), u = t("el-tabs"), f = t("el-dialog");
|
|
18
|
+
return o(), a(f, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfAutoTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: l2[3] || (l2[3] = (t2) => e2.$emit("open")), onOpend: l2[4] || (l2[4] = (t2) => e2.$emit("opend")), onClose: l2[5] || (l2[5] = (t2) => e2.$emit("close")), onClosed: l2[6] || (l2[6] = (t2) => e2.$emit("closed")) }, { default: r(() => [i(u, { modelValue: m.activeTab, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => m.activeTab = e3), type: "border-card", onTabClick: n.handleClick }, { default: r(() => [i(c, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: r(() => [i(p, { id: d2.model.ref.attr.id, "onUpdate:id": l2[0] || (l2[0] = (e3) => d2.model.ref.attr.id = e3), name: d2.model.ref.attr.name, "onUpdate:name": l2[1] || (l2[1] = (e3) => d2.model.ref.attr.name = e3), model: d2.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
19
|
+
}], ["__scopeId", "data-v-adb7c2ff"]]);
|
|
20
|
+
export {
|
|
21
|
+
d as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { getFormFieldLabel as e, getFormField as r } from "./form-fields-utils.mjs";
|
|
2
|
+
import { getI18n as t } from "../../util.mjs";
|
|
3
|
+
const o = [{ name: "${approvalResult}", label: t().t("workflowEditor.process.approvalResults"), orgType: "other" }, { name: "${instanceCreatorName}", label: t().t("workflowEditor.process.processInitiator"), orgType: "user" }, { name: "${instanceCreatorRole}", label: t().t("workflowEditor.process.processInitiatorRole"), orgType: "role" }, { name: "${instanceCreatorDepartment}", label: t().t("workflowEditor.process.processInitiatorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${superiorDepartment}", label: t().t("workflowEditor.process.processInitiatorSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorUpstageDepartment}", label: t().t("workflowEditor.process.processInitiatorTopDepartment"), orgType: "department" }, { name: "${instanceCreatorWorkGroup}", label: t().t("workflowEditor.process.processInitiatorWorkingGroup"), orgType: "workgroup" }, { name: "${instanceCreatorDirectSuperiorName}", label: t().t("workflowEditor.process.sponsorsImmediateSuperior"), orgType: "user" }, { name: "${instanceCreatorDeptApprover}", label: t().t("workflowEditor.process.deptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptApprover}", label: t().t("workflowEditor.process.superiorDeptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptLeader}", label: t().t("workflowEditor.process.superiorDeptLeader"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDepartment}", label: t().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorDirectSuperiorRole}", label: t().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"), orgType: "role" }, { name: "${instanceCreatorDirectSuperiorWorkGroup}", label: t().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorName}", label: t().t("workflowEditor.process.nameOfCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorRole}", label: t().t("workflowEditor.process.currentHandlerRole"), orgType: "role" }, { name: "${currentTransactorDepartment}", label: t().t("workflowEditor.process.currentHandlerDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorSuperiorDepartment}", label: t().t("workflowEditor.process.currentHandlerSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorUpstageDepartment}", label: t().t("workflowEditor.process.topDepartmentOfCurrentHandler"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment"] }, { name: "${currentTransactorWorkGroup}", label: t().t("workflowEditor.process.currentHandlerWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorDirectSuperiorName}", label: t().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorDirectSuperiorDepartment}", label: t().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorDirectSuperiorRole}", label: t().t("workflowEditor.process.currentManagerDirectSuperiorRole"), orgType: "role" }, { name: "${currentTransactorDirectSuperiorWorkGroup}", label: t().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"), orgType: "workgroup" }, { name: "${upstageDepartment}", label: t().t("workflowEditor.process.topDepartments"), orgType: "department" }, { name: "${countersignatureDisagreeCount}", label: t().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreeCount}", label: t().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureDisagreePercentage}", label: t().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreePercentage}", label: t().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionPercentage}", label: t().t("workflowEditor.process.percentageOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstPercentage}", label: t().t("workflowEditor.process.percentageOfVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorPercentage}", label: t().t("workflowEditor.process.percentageOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionCount}", label: t().t("workflowEditor.process.totalNumberOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstCount}", label: t().t("workflowEditor.process.totalVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorCount}", label: t().t("workflowEditor.process.totalNumberOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }], a = { "condition.operator.or": t().t("workflowEditor.process.perhaps"), "condition.operator.and": t().t("workflowEditor.process.also") };
|
|
4
|
+
function n(e2) {
|
|
5
|
+
return ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(e2) >= 0;
|
|
6
|
+
}
|
|
7
|
+
const s = [{ name: "operator.number.gt", label: t().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: t().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: t().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: t().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: t().t("workflowEditor.process.notEqualTo") }];
|
|
8
|
+
function l(e2) {
|
|
9
|
+
return ["STRING", "TEXT"].indexOf(e2) >= 0;
|
|
10
|
+
}
|
|
11
|
+
const i = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: t().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: t().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: t().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: t().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: t().t("workflowEditor.process.isNotNull") }];
|
|
12
|
+
function p(e2) {
|
|
13
|
+
return ["DATE", "TIME"].indexOf(e2) >= 0;
|
|
14
|
+
}
|
|
15
|
+
const c = [{ name: "operator.date.gt", label: t().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: t().t("workflowEditor.process.earlierThan") }, { name: "operator.date.et", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: t().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: t().t("workflowEditor.process.noEarlierThan") }, { name: "operator.date.ne", label: t().t("workflowEditor.process.notEqualTo") }], u = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: t().t("workflowEditor.process.notEqualTo") }];
|
|
16
|
+
function d(e2) {
|
|
17
|
+
return "${approvalResult}" === e2;
|
|
18
|
+
}
|
|
19
|
+
const f = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }], m = [...s, ...c, ...i, ...u];
|
|
20
|
+
function g(e2, r2) {
|
|
21
|
+
if (r2 && 0 !== r2.length) {
|
|
22
|
+
let t2 = r2.replace(/ condition.operator.or /g, " condition.operator.or^_^");
|
|
23
|
+
t2 = t2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
|
|
24
|
+
const o2 = t2.split("^_^");
|
|
25
|
+
let a2 = 0;
|
|
26
|
+
for (let r3 of o2) {
|
|
27
|
+
if ("" === r3)
|
|
28
|
+
continue;
|
|
29
|
+
let t3 = "", o3 = "", n2 = "", s2 = "", l2 = "", i2 = "condition.operator.or", p2 = r3.indexOf("${");
|
|
30
|
+
if (p2 > 0 && (t3 = r3.substring(0, p2)), o3 = r3.substring(p2, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), n2 = r3.substring(0, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), p2 = r3.indexOf(")"), p2 >= 0) {
|
|
31
|
+
s2 = r3.substring(0, p2);
|
|
32
|
+
const e3 = r3.substring(p2);
|
|
33
|
+
p2 = e3.indexOf(")"), l2 = e3.indexOf(" ") >= 0 ? e3.substring(p2, e3.indexOf(" ")) : e3.substring(p2), p2 = r3.indexOf(" condition."), p2 >= 0 && (i2 = r3.substring(p2 + 1));
|
|
34
|
+
} else
|
|
35
|
+
p2 = r3.indexOf(" condition."), p2 > 0 ? (s2 = r3.substring(0, p2), i2 = r3.substring(p2 + 1)) : s2 = r3;
|
|
36
|
+
e2.push({ id: a2, leftBracket: t3, key: o3, operator: n2, value: s2, rightBracket: l2, logicOperator: i2 }), a2++;
|
|
37
|
+
}
|
|
38
|
+
return a2;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function w(e2) {
|
|
42
|
+
let r2 = "";
|
|
43
|
+
for (const t3 of e2)
|
|
44
|
+
0 === t3.key.length || "" === t3.operator || "" === t3.value && "operator.text.is.null" !== t3.operator && "operator.text.not.null" !== t3.operator || (r2 = r2 + t3.leftBracket + t3.key + " " + t3.operator + " " + t3.value + t3.rightBracket + " " + t3.logicOperator + " ");
|
|
45
|
+
const t2 = " condition.operator.or ", o2 = " condition.operator.and ";
|
|
46
|
+
return r2.lastIndexOf(t2) + 23 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(o2) + 24 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(o2))), r2;
|
|
47
|
+
}
|
|
48
|
+
function T(e2) {
|
|
49
|
+
const r2 = o.filter((r3) => r3.name === e2);
|
|
50
|
+
return r2.length > 0 ? r2[0] : null;
|
|
51
|
+
}
|
|
52
|
+
function E(e2) {
|
|
53
|
+
const r2 = T(e2);
|
|
54
|
+
return r2 ? r2.label : e2;
|
|
55
|
+
}
|
|
56
|
+
function b(r2) {
|
|
57
|
+
return r2 ? r2.indexOf("${field[") >= 0 ? e(r2) : r2.indexOf("${") >= 0 ? E(r2) : r2.indexOf("[") >= 0 ? r2.substring(0, r2.indexOf("[")) : r2 : "";
|
|
58
|
+
}
|
|
59
|
+
function k(e2) {
|
|
60
|
+
const r2 = m.filter((r3) => r3.name === e2);
|
|
61
|
+
return r2.length > 0 ? r2[0].label : "";
|
|
62
|
+
}
|
|
63
|
+
function D(e2) {
|
|
64
|
+
let r2 = "";
|
|
65
|
+
for (const t3 of e2)
|
|
66
|
+
0 !== t3.key.length && void 0 !== t3.operator && "" !== t3.operator && null !== t3.operator && ("operator.text.is.null" === t3.operator || "operator.text.not.null" === t3.operator || "" !== t3.value && void 0 !== t3.value && null !== t3.value) && (r2 = r2 + t3.leftBracket + b(t3.key) + " " + k(t3.operator) + " " + b(t3.value) + t3.rightBracket + " " + a[t3.logicOperator] + " ");
|
|
67
|
+
const t2 = " 或者 ", o2 = " 并且 ";
|
|
68
|
+
return r2.lastIndexOf(t2) + 4 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(o2) + 4 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(o2))), r2;
|
|
69
|
+
}
|
|
70
|
+
function y(e2) {
|
|
71
|
+
const r2 = o.filter((r3) => r3.name === e2);
|
|
72
|
+
let t2 = [];
|
|
73
|
+
r2.length > 0 && (t2 = r2[0].relatedFields || []);
|
|
74
|
+
const a2 = [];
|
|
75
|
+
return o.forEach((e3) => {
|
|
76
|
+
t2.indexOf(e3.name.substring(2, e3.name.length - 1)) >= 0 && a2.push(e3);
|
|
77
|
+
}), a2;
|
|
78
|
+
}
|
|
79
|
+
function h(e2) {
|
|
80
|
+
if (e2)
|
|
81
|
+
return o;
|
|
82
|
+
const r2 = [];
|
|
83
|
+
return o.forEach((t2) => {
|
|
84
|
+
e2 || "other" === t2.orgType || r2.push(t2);
|
|
85
|
+
}), r2;
|
|
86
|
+
}
|
|
87
|
+
function O(e2) {
|
|
88
|
+
if ("${approvalResult}" === e2)
|
|
89
|
+
return false;
|
|
90
|
+
const r2 = o.filter((r3) => r3.name === e2);
|
|
91
|
+
let t2 = false;
|
|
92
|
+
return r2.length > 0 && r2.forEach((r3) => {
|
|
93
|
+
e2 === r3.name && "other" === r3.orgType && (t2 = true);
|
|
94
|
+
}), t2;
|
|
95
|
+
}
|
|
96
|
+
function x(e2) {
|
|
97
|
+
const t2 = r(e2) || T(e2);
|
|
98
|
+
if (t2)
|
|
99
|
+
return n(t2.dataType) ? s : p(t2.dataType) ? c : l(t2.dataType) ? i : d(e2) ? f : u;
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
m as allOperators,
|
|
103
|
+
D as displayCondition,
|
|
104
|
+
w as generateCondition,
|
|
105
|
+
b as getFieldLabel,
|
|
106
|
+
k as getOperatorLabel,
|
|
107
|
+
x as getOperators,
|
|
108
|
+
y as getRelatedStandardFields,
|
|
109
|
+
T as getStandardField,
|
|
110
|
+
E as getStandardFieldLabel,
|
|
111
|
+
h as getStandardFieldsByTacheType,
|
|
112
|
+
d as isApproveResult,
|
|
113
|
+
p as isDate,
|
|
114
|
+
n as isNumber,
|
|
115
|
+
l as isString,
|
|
116
|
+
O as isTransitionOtherField,
|
|
117
|
+
a as logicOperators,
|
|
118
|
+
f as operatorsForApproveResult,
|
|
119
|
+
c as operatorsForDate,
|
|
120
|
+
s as operatorsForNumber,
|
|
121
|
+
i as operatorsForString,
|
|
122
|
+
u as operatorsForText,
|
|
123
|
+
g as parseCondition,
|
|
124
|
+
o as standardFields
|
|
125
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { parseCondition as e, standardFields as t, getStandardFieldsByTacheType as l, getRelatedStandardFields as o, generateCondition as a, getFieldLabel as r, getOperators as i, displayCondition as n, isTransitionOtherField as u } from "./additional-condition-utils.mjs";
|
|
2
|
+
import s from "./value-selection-dialog.vue.mjs";
|
|
3
|
+
import { mapGetters as d } from "vuex";
|
|
4
|
+
import { resolveComponent as c, openBlock as h, createElementBlock as w, createVNode as p, withCtx as f, createTextVNode as m, toDisplayString as g, Fragment as b, renderList as k, createBlock as v, createCommentVNode as y } from "vue";
|
|
5
|
+
import V from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const C = { name: "AdditionalCondition", components: { ValueSelectionDialog: s }, props: { modelValue: { type: String, default: null }, isTransition: { type: Boolean, default: false } }, data() {
|
|
7
|
+
const l2 = [], o2 = e(l2, this.modelValue);
|
|
8
|
+
return { standardFields: t, tableData: l2, count: o2, currentRow: null, currentInput: null, options: [], valueDialogTitle: null, showOrganization: true, orgType: null };
|
|
9
|
+
}, computed: { ...d("wfEditor", ["formFields"]), availableStandardFields() {
|
|
10
|
+
return "key" === this.currentInput ? l(this.isTransition) : o(this.currentRow.key);
|
|
11
|
+
} }, mounted() {
|
|
12
|
+
this.tableData.length > 0 && this.$refs.table.setCurrentRow(this.tableData[this.tableData.length - 1]), this.$watch("tableData", function(e2, t2) {
|
|
13
|
+
this.$emit("update:modelValue", a(this.tableData));
|
|
14
|
+
}, { deep: true });
|
|
15
|
+
}, methods: { format: (e2, t2) => "" === e2 || null == e2 ? "" : r(e2), getOperatorOptions: (e2) => i(e2), selectRow(e2) {
|
|
16
|
+
this.$refs.table.setCurrentRow(e2);
|
|
17
|
+
}, openValueDialog(e2) {
|
|
18
|
+
this.showValueDialog = true, this.selectRow(e2);
|
|
19
|
+
}, closeValueDialog(e2) {
|
|
20
|
+
void 0 !== e2 && "" !== e2 && ("key" === this.currentInput && this.currentRow.key !== e2 && (this.currentRow.operator = "", this.currentRow.value = ""), this.currentRow[this.currentInput] = e2), this.currentInput = "";
|
|
21
|
+
}, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
|
|
22
|
+
this.currentRow = e2;
|
|
23
|
+
}, getRowIndex(e2) {
|
|
24
|
+
for (let t2 = 0; t2 < this.tableData.length; t2++)
|
|
25
|
+
if (this.tableData[t2].id === e2.id)
|
|
26
|
+
return t2;
|
|
27
|
+
return -1;
|
|
28
|
+
}, add() {
|
|
29
|
+
(null === this.count || void 0 === this.count || this.count.isNaN || "NaN" === this.count) && (this.count = 0);
|
|
30
|
+
const e2 = { id: this.count, leftBracket: "", key: "", operator: "", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
31
|
+
this.tableData.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
32
|
+
}, insert() {
|
|
33
|
+
if (null === this.currentRow)
|
|
34
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
35
|
+
const e2 = { id: this.count, leftBracket: "", key: "", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
36
|
+
this.tableData.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
37
|
+
}, remove() {
|
|
38
|
+
if (null === this.currentRow)
|
|
39
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
40
|
+
let e2 = this.getRowIndex(this.currentRow);
|
|
41
|
+
this.tableData.splice(e2, 1), this.tableData.length > 0 && (e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.$refs.table.setCurrentRow(this.tableData[e2]));
|
|
42
|
+
}, view() {
|
|
43
|
+
let e2 = n(this.tableData);
|
|
44
|
+
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorMessage.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
45
|
+
} });
|
|
46
|
+
}, selectField(e2) {
|
|
47
|
+
this.selectRow(e2), this.currentInput = "key", this.valueDialogTitle = this.$t("workflowEditorMessage.fieldSettings"), this.showOrganization = false;
|
|
48
|
+
}, selectValue() {
|
|
49
|
+
this.currentInput = "value", this.valueDialogTitle = this.$t("workflowEditorMessage.valueSetting"), this.showOrganization = true, this.orgType = this.getStandardFieldOrgType();
|
|
50
|
+
}, getStandardFieldOrgType() {
|
|
51
|
+
const e2 = this.standardFields.filter((e3) => e3.name === this.currentRow.key);
|
|
52
|
+
return e2.length > 0 ? e2[0].orgType : "";
|
|
53
|
+
}, isTransitionOtherField: (e2) => u(e2) } }, R = { style: { overflow: "auto", width: "100%" } };
|
|
54
|
+
const $ = V(C, [["render", function(e2, t2, l2, o2, a2, r2) {
|
|
55
|
+
const i2 = c("el-button"), n2 = c("el-row"), u2 = c("el-option"), s2 = c("el-select"), d2 = c("el-table-column"), V2 = c("el-input"), C2 = c("el-table"), $2 = c("value-selection-dialog");
|
|
56
|
+
return h(), w("div", R, [p(n2, null, { default: f(() => [p(i2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: r2.add }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: r2.insert }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: r2.remove }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "View", onClick: r2.view }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), p(C2, { ref: "table", data: a2.tableData, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: r2.handleCurrentChange }, { default: f(() => [p(d2, { prop: "leftBracket", label: "(", width: "90" }, { default: f((e3) => [p(s2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => r2.selectRow(e3.row) }, { default: f(() => [p(u2, { label: "", value: "" }), p(u2, { label: "(", value: "(" }), p(u2, { label: "((", value: "((" }), p(u2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), p(d2, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: f((e3) => [p(V2, { value: r2.format(e3.row.key), onClick: (t3) => r2.selectField(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), p(d2, { label: e2.$t("workflowEditor.common.operator"), width: "130" }, { default: f((e3) => [p(s2, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, placeholder: "", onFocus: (t3) => r2.selectRow(e3.row) }, { default: f(() => [(h(true), w(b, null, k(r2.getOperatorOptions(e3.row.key), (e4) => (h(), v(u2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), p(d2, { label: e2.$t("workflowEditor.common.value") }, { default: f((t3) => [t3.row.key.indexOf("${field[") >= 0 || r2.isTransitionOtherField(t3.row.key) ? (h(), v(V2, { key: 0, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "${approvalResult}" === t3.row.key ? (h(), v(s2, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, { default: f(() => [p(u2, { value: "同意", label: e2.$t("workflowEditorPublicModel.agree") }, null, 8, ["label"]), p(u2, { value: "不同意", label: e2.$t("workflowEditorPublicModel.disagree") }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v(V2, { key: 2, value: r2.format(t3.row.value, t3.row), readonly: "", onClick: r2.selectValue }, null, 8, ["value", "onClick"]))]), _: 1 }, 8, ["label"]), p(d2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => r2.selectRow(e2.scope.row)) }, { default: f((e3) => [p(s2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: f(() => [p(u2, { label: "", value: "" }), p(u2, { label: ")", value: ")" }), p(u2, { label: "))", value: "))" }), p(u2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(d2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: f((t3) => [p(s2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => r2.selectRow(t3.row) }, { default: f(() => [p(u2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), p(u2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), a2.currentInput ? (h(), v($2, { key: 0, title: a2.valueDialogTitle, "show-organization": a2.showOrganization, "standard-fields": r2.availableStandardFields, "org-type": a2.orgType, onClose: r2.closeValueDialog }, null, 8, ["title", "show-organization", "standard-fields", "org-type", "onClose"])) : y("", true)]);
|
|
57
|
+
}]]);
|
|
58
|
+
export {
|
|
59
|
+
$ as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { getI18n as r } from "../../util.mjs";
|
|
2
|
+
const e = { "${currentTime}": r().t("workflowEditor.process.handlingTimeOfThisLink"), "${currentTransactorId}": r().t("workflowEditor.process.handlerIDOfThisLink"), "${currentTransactorMainDepartmentId}": r().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"), "${currentTransactorDirectSuperiorId}": r().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorMainDepartmentId}": r().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"), "${currentTransactor}": r().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"), "${currentTransactorName }": r().t("workflowEditor.process.NameOfCurrentHandler"), "${currentTransactorDepartment }": r().t("workflowEditor.process.CurrentHandlerDepartment"), "${currentTransactorDepartmentId}": r().t("workflowEditor.process.CurrentHandlerDepartmentID"), "${currentTransactorMainDepartment}": r().t("workflowEditor.process.CurrentManagersPrincipalDepartment"), "${currentTransactorSuperiorDepartmentId}": r().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"), "${currentTransactorSuperiorDepartment}": r().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"), "${currentTransactorUpstageDepartment}": r().t("workflowEditor.process.TopDepartmentOfCurrentHandler"), "${currentTransactorUpstageDepartmentId}": r().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"), "${currentTransactorRole}": r().t("workflowEditor.process.CurrentHandlerRole"), "${currentTransactorRoleId}": r().t("workflowEditor.process.CurrentHandlerRoleID"), "${currentTransactorWorkGroup}": r().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorWorkGroupId}": r().t("workflowEditor.process.CurrentHandlerWorkingGroupID"), "${currentTransactorDirectSuperior}": r().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorName}": r().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": r().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorDepartmentId}": r().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"), "${currentTransactorDirectSuperiorMainDepartment}": r().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorRole}": r().t("workflowEditor.process.currentManagersDirectSuperiorRole"), "${currentTransactorDirectSuperiorRoleId}": r().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"), "${currentTransactorDirectSuperiorWorkGroup}": r().t("workflowEditor.process.currentManagersDirectSuperiorWork"), "${currentTransactorDirectSuperiorWorkGroupId}": r().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"), "${currentOperation}": r().t("workflowEditor.process.operationsPerformedInThisPhase"), "${previousTransactorId}": r().t("workflowEditor.process.handlerIDOfThePreviousLink"), "${previousTransactor}": r().t("workflowEditor.process.lastLinkHandlerLogin"), "${previousTransactorName}": r().t("workflowEditor.process.nameOfHandlerInThePreviousLink") };
|
|
3
|
+
export {
|
|
4
|
+
e as standardValues
|
|
5
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { standardValues as e } from "./auto-filled-fields-utils.mjs";
|
|
2
|
+
import l from "./form-fields.vue.mjs";
|
|
3
|
+
import { getFormFieldLabel as t } from "./form-fields-utils.mjs";
|
|
4
|
+
import { resolveComponent as o, openBlock as a, createElementBlock as i, createVNode as n, withCtx as r, createTextVNode as d, toDisplayString as s, Fragment as u, renderList as m, createBlock as p, createCommentVNode as h } from "vue";
|
|
5
|
+
import f from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const c = f({ name: "AutoFilledFields", components: { FormFields: l }, props: { modelValue: { type: Object, default: () => ({}) }, opinionSetting: { type: Object, default: () => ({}) } }, data() {
|
|
7
|
+
const l2 = [];
|
|
8
|
+
if (void 0 !== this.modelValue.field && null !== this.modelValue.field)
|
|
9
|
+
if (Array.isArray(this.modelValue.field))
|
|
10
|
+
this.modelValue.field.map((e2) => {
|
|
11
|
+
const t3 = { ...e2 };
|
|
12
|
+
"string" == typeof e2.value && -1 !== e2.value.indexOf("+") ? t3.value = e2.value.split("+") : (t3.value = [], t3.value.push(e2.value)), l2.push(t3);
|
|
13
|
+
});
|
|
14
|
+
else {
|
|
15
|
+
const e2 = { ...this.modelValue.field };
|
|
16
|
+
"string" == typeof this.modelValue.field.value && -1 !== this.modelValue.field.value.indexOf("+") ? e2.value = this.modelValue.field.value.split("+") : (e2.value = [], e2.value.push(this.modelValue.field.value)), l2.push(e2);
|
|
17
|
+
}
|
|
18
|
+
let t2 = {};
|
|
19
|
+
return this.opinionSetting && this.opinionSetting.opinionSourceField && (t2 = { ...this.opinionSetting }), { tableData: l2, currentRow: null, standardValues: e, showFormFields: false, isSelectOpinionField: false, opinionAutoSetting: t2 };
|
|
20
|
+
}, computed: { keys() {
|
|
21
|
+
return Object.keys(this.standardValues);
|
|
22
|
+
} }, watch: { opinionAutoSetting: { deep: true, handler(e2) {
|
|
23
|
+
const l2 = { ...e2 };
|
|
24
|
+
this.$emit("update:opinion-setting", l2);
|
|
25
|
+
} } }, mounted() {
|
|
26
|
+
this.tableData && this.tableData.length > 0 && this.setCurrentRow(this.tableData[0]), this.$watch("tableData", function() {
|
|
27
|
+
const e2 = [];
|
|
28
|
+
this.tableData.map((l2) => {
|
|
29
|
+
if ("" !== l2.name && l2.value.length > 0) {
|
|
30
|
+
const t2 = { ...l2 };
|
|
31
|
+
t2.value = l2.value.join("+"), e2.push(t2);
|
|
32
|
+
}
|
|
33
|
+
}), this.$emit("update:modelValue", { field: e2 });
|
|
34
|
+
}, { deep: true });
|
|
35
|
+
}, created() {
|
|
36
|
+
}, methods: { add() {
|
|
37
|
+
for (let e3 = 0; e3 < this.tableData.length; e3++)
|
|
38
|
+
if ("" === this.tableData[e3].name || "" === this.tableData[e3].value)
|
|
39
|
+
return void this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty", { row: e3 + 1 }));
|
|
40
|
+
const e2 = { name: "", value: [], separator: "", fillType: "cover", fillTime: "after" };
|
|
41
|
+
this.tableData.push(e2), this.setCurrentRow(e2);
|
|
42
|
+
}, remove() {
|
|
43
|
+
if (null === this.currentRow)
|
|
44
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
45
|
+
let e2;
|
|
46
|
+
for (let l2 = 0; l2 < this.tableData.length; l2++)
|
|
47
|
+
if (this.tableData[l2].name === this.currentRow.name) {
|
|
48
|
+
e2 = l2;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
this.tableData.splice(e2, 1), e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.setCurrentRow(this.tableData[e2]);
|
|
52
|
+
}, setCurrentRow(e2) {
|
|
53
|
+
this.$refs.table.setCurrentRow(e2);
|
|
54
|
+
}, handleCurrentChange(e2) {
|
|
55
|
+
this.currentRow = e2;
|
|
56
|
+
}, checkName(e2) {
|
|
57
|
+
this.showFormFields || "" !== e2 || this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"));
|
|
58
|
+
}, checkValue(e2) {
|
|
59
|
+
0 === e2.length && this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"));
|
|
60
|
+
}, setField(e2) {
|
|
61
|
+
this.isSelectOpinionField ? this.opinionAutoSetting.opinionSourceField = e2 : void 0 !== e2 && (this.currentRow.name = e2), this.showFormFields = false, this.isSelectOpinionField = false;
|
|
62
|
+
}, getFieldLabel: (e2) => t(e2), selectOpinionField() {
|
|
63
|
+
this.showFormFields = true, this.isSelectOpinionField = true;
|
|
64
|
+
}, clearOpinionField() {
|
|
65
|
+
delete this.opinionAutoSetting.opinionSourceField;
|
|
66
|
+
} } }, [["render", function(e2, l2, t2, f2, c2, w) {
|
|
67
|
+
const b = o("el-button"), v = o("el-row"), g = o("el-table-column"), k = o("el-input"), F = o("el-option"), V = o("el-select"), C = o("el-table"), y = o("el-card"), $ = o("el-form-item"), E = o("form-fields");
|
|
68
|
+
return a(), i("div", null, [n(y, { class: "box-card" }, { header: r(() => [d(" 表单自动填充字段设置 ")]), default: r(() => [n(v, { style: { "margin-bottom": "5px" } }, { default: r(() => [n(b, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: w.add }, { default: r(() => [d(s(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), n(b, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: w.remove }, { default: r(() => [d(s(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), n(C, { ref: "table", data: c2.tableData, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: w.handleCurrentChange }, { default: r(() => [n(g, { type: "index", width: "50" }), n(g, { prop: "name", label: e2.$t("workflowEditor.common.name"), width: "150" }, { default: r((t3) => [n(k, { value: w.getFieldLabel(t3.row.name), placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), readonly: "", onClick: l2[0] || (l2[0] = (e3) => c2.showFormFields = true), onBlur: (e3) => w.checkName(t3.row.name) }, null, 8, ["value", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), n(g, { prop: "value", label: e2.$t("workflowEditor.common.fieldValue"), width: "200" }, { default: r((l3) => [n(V, { modelValue: l3.row.value, "onUpdate:modelValue": (e3) => l3.row.value = e3, multiple: "", filterable: "", "allow-create": "", "default-first-option": "", placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onBlur: (e3) => w.checkValue(l3.row.value) }, { default: r(() => [(a(true), i(u, null, m(w.keys, (e3) => (a(), p(F, { key: e3, label: c2.standardValues[e3], value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), n(g, { prop: "separator", label: e2.$t("workflowEditor.common.separator") }, { default: r((e3) => [n(k, { modelValue: e3.row.separator, "onUpdate:modelValue": (l3) => e3.row.separator = l3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), n(g, { prop: "fillType", label: e2.$t("workflowEditor.common.fillInMethod") }, { default: r((l3) => [n(V, { modelValue: l3.row.fillType, "onUpdate:modelValue": (e3) => l3.row.fillType = e3 }, { default: r(() => [n(F, { label: e2.$t("workflowEditor.common.cover"), value: "cover" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.append"), value: "append" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.insertToFront"), value: "prepend" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), n(g, { prop: "fillTime", label: e2.$t("workflowEditor.common.fillInTime") }, { default: r((l3) => [n(V, { modelValue: l3.row.fillTime, "onUpdate:modelValue": (e3) => l3.row.fillTime = e3 }, { default: r(() => [n(F, { label: e2.$t("workflowEditor.common.fillInBeforeHandling"), value: "before" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.fillInAfterHandling"), value: "after" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), n(y, { class: "box-card", style: { "margin-top": "10px" } }, { header: r(() => [d(" 办理意见 ")]), default: r(() => [n($, { label: "意见来源字段", "label-width": "100" }, { default: r(() => [n(k, { value: w.getFieldLabel(c2.opinionAutoSetting.opinionSourceField), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), readonly: "", clearable: true, onClick: w.selectOpinionField }, { append: r(() => [n(b, { icon: "Delete", onClick: w.clearOpinionField }, null, 8, ["onClick"])]), _: 1 }, 8, ["value", "placeholder", "onClick"])]), _: 1 })]), _: 1 }), c2.showFormFields ? (a(), p(E, { key: 0, onClose: w.setField }, null, 8, ["onClose"])) : h("", true)]);
|
|
69
|
+
}]]);
|
|
70
|
+
export {
|
|
71
|
+
c as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { resolveComponent as l, openBlock as t, createElementBlock as e, createVNode as o, withCtx as u, createTextVNode as s, toDisplayString as i, createBlock as m, createCommentVNode as a } from "vue";
|
|
2
|
+
import d from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
+
const r = d({ name: "CommonNoticeTool", props: { label: { type: String, default: null }, modelValue: { type: String, default: null }, customMsg: { type: String, default: null } }, data() {
|
|
4
|
+
let l2 = [];
|
|
5
|
+
this.modelValue && "" !== this.modelValue && null !== this.modelValue && (l2 = this.modelValue.split(","));
|
|
6
|
+
let t2 = "";
|
|
7
|
+
return this.customMsg && "" !== this.customMsg && null !== this.customMsg && (t2 = this.customMsg), { tools: l2, myCustomMsg: t2 };
|
|
8
|
+
}, watch: { tools(l2) {
|
|
9
|
+
this.$emit("update:modelValue", this.tools.join(","));
|
|
10
|
+
}, myCustomMsg(l2) {
|
|
11
|
+
this.$emit("input-msg", this.myCustomMsg);
|
|
12
|
+
} } }, [["render", function(d2, r2, n, c, f, b) {
|
|
13
|
+
const g = l("el-checkbox"), h = l("el-checkbox-group"), p = l("el-form-item"), M = l("el-input");
|
|
14
|
+
return t(), e("div", null, [o(p, { label: n.label }, { default: u(() => [o(h, { modelValue: f.tools, "onUpdate:modelValue": r2[0] || (r2[0] = (l2) => f.tools = l2) }, { default: u(() => [o(g, { label: "mail" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.mail")), 1)]), _: 1 }), o(g, { label: "DINGDING" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.dingding")), 1)]), _: 1 }), o(g, { label: "QIWEI" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.qiwei")), 1)]), _: 1 }), o(g, { label: "FEISHU" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.feishu")), 1)]), _: 1 }), o(g, { label: "custom" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.custom")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), f.tools.indexOf("custom") >= 0 ? (t(), m(p, { key: 0, "label-width": "110", label: d2.$t("workflowEditor.common.customMsg") }, { default: u(() => [o(M, { modelValue: f.myCustomMsg, "onUpdate:modelValue": r2[1] || (r2[1] = (l2) => f.myCustomMsg = l2) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])) : a("", true)]);
|
|
15
|
+
}]]);
|
|
16
|
+
export {
|
|
17
|
+
r as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import e from "./value-selection-dialog.vue.mjs";
|
|
2
|
+
import { parseCondition as o, userStandardFieldsForReminder as l, userStandardFieldsForTransactor as t, departmentStandardFieldsForReminder as r, departmentStandardFieldsForTransactor as a, workgroupStandardFieldsForReminder as i, workgroupStandardFieldsForTransactor as n, generateUserCondition as s, formatStandardValue as u, displayUserCondition as d } from "../user-condition.mjs";
|
|
3
|
+
import { getFormFieldLabel as c } from "./form-fields-utils.mjs";
|
|
4
|
+
import { resolveComponent as w, openBlock as h, createElementBlock as p, createVNode as m, withCtx as f, createTextVNode as k, toDisplayString as g, createBlock as b, createCommentVNode as v } from "vue";
|
|
5
|
+
import $ from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const C = $({ name: "CommonUserCondition", components: { ValueSelectionDialog: e }, props: { modelValue: { type: String, default: null }, usedIn: { type: String, default: "reminder" } }, data() {
|
|
7
|
+
const e2 = [];
|
|
8
|
+
let l2 = 0;
|
|
9
|
+
return this.modelValue && "" !== this.modelValue && (l2 = o(e2, this.modelValue)), { users: e2, count: l2, currentRow: null, showValueDialog: false };
|
|
10
|
+
}, computed: { standardFields() {
|
|
11
|
+
let e2 = "reminder" === this.usedIn ? l : t;
|
|
12
|
+
return "${department}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? r : a : "${workgroup}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? i : n : "${role}" === this.currentRow.key && (e2 = {}), e2;
|
|
13
|
+
} }, mounted() {
|
|
14
|
+
this.users.length > 0 && this.$refs.table.setCurrentRow(this.users[this.users.length - 1]), this.$watch("users", function(e2, o2) {
|
|
15
|
+
this.$emit("update:modelValue", s(this.users));
|
|
16
|
+
}, { deep: true });
|
|
17
|
+
}, methods: { format: (e2) => e2.indexOf("${field[") >= 0 ? c(e2) : e2.indexOf("${") >= 0 ? u(e2) : e2.substring(0, e2.indexOf("[")), selectRow(e2) {
|
|
18
|
+
this.$refs.table.setCurrentRow(e2);
|
|
19
|
+
}, openValueDialog(e2) {
|
|
20
|
+
this.showValueDialog = true, this.selectRow(e2);
|
|
21
|
+
}, closeValueDialog(e2) {
|
|
22
|
+
void 0 !== e2 && "" !== e2 && (this.currentRow.value = e2), this.showValueDialog = false;
|
|
23
|
+
}, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
|
|
24
|
+
this.currentRow = e2;
|
|
25
|
+
}, getRowIndex(e2) {
|
|
26
|
+
for (let o2 = 0; o2 < this.users.length; o2++)
|
|
27
|
+
if (this.users[o2].id === e2.id)
|
|
28
|
+
return o2;
|
|
29
|
+
return -1;
|
|
30
|
+
}, add() {
|
|
31
|
+
const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
32
|
+
this.users.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
33
|
+
}, insert() {
|
|
34
|
+
if (null === this.currentRow)
|
|
35
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
36
|
+
const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
37
|
+
this.users.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
38
|
+
}, remove() {
|
|
39
|
+
if (null === this.currentRow)
|
|
40
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
41
|
+
let e2 = this.getRowIndex(this.currentRow);
|
|
42
|
+
this.users.splice(e2, 1), this.users.length > 0 && (e2 = e2 <= this.users.length - 1 ? e2 : this.users.length - 1, this.$refs.table.setCurrentRow(this.users[e2]));
|
|
43
|
+
}, view() {
|
|
44
|
+
let e2 = d(this.users);
|
|
45
|
+
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorPublicModel.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
46
|
+
} });
|
|
47
|
+
}, handleKeyChange(e2) {
|
|
48
|
+
this.currentRow.value = "";
|
|
49
|
+
} } }, [["render", function(e2, o2, l2, t2, r2, a2) {
|
|
50
|
+
const i2 = w("el-button"), n2 = w("el-row"), s2 = w("el-option"), u2 = w("el-select"), d2 = w("el-table-column"), c2 = w("el-input"), $2 = w("el-table"), C2 = w("value-selection-dialog");
|
|
51
|
+
return h(), p("div", null, [m(n2, null, { default: f(() => [m(i2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: a2.add }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: a2.insert }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: a2.remove }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "View", onClick: a2.view }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), m($2, { ref: "table", data: r2.users, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: a2.handleCurrentChange }, { default: f(() => [m(d2, { prop: "leftBracket", label: "(", width: "90" }, { default: f((e3) => [m(u2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (o3) => e3.row.leftBracket = o3, placeholder: "", onFocus: (o3) => a2.selectRow(e3.row) }, { default: f(() => [m(s2, { label: "", value: "" }), m(s2, { label: "(", value: "(" }), m(s2, { label: "((", value: "((" }), m(s2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), m(d2, { label: e2.$t("workflowEditor.common.type"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.key, "onUpdate:modelValue": (e3) => o3.row.key = e3, placeholder: "", onFocus: (e3) => a2.selectRow(o3.row), onChange: a2.handleKeyChange }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.common.user"), value: "${user}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.role"), value: "${role}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.department"), value: "${department}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.workgroup"), value: "${workgroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), m(d2, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.operator, "onUpdate:modelValue": (e3) => o3.row.operator = e3, placeholder: "", onFocus: (e3) => a2.selectRow(o3.row) }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.process.beEqualTo"), value: "operator.text.eq" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.process.notEqualTo"), value: "operator.text.neq" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), m(d2, { label: e2.$t("workflowEditor.common.value") }, { default: f((e3) => [m(c2, { value: a2.format(e3.row.value), readonly: "", onClick: (o3) => a2.openValueDialog(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), m(d2, { prop: "rightBracket", label: ")", width: "90", onFocus: o2[0] || (o2[0] = (o3) => a2.selectRow(e2.scope.row)) }, { default: f((e3) => [m(u2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (o3) => e3.row.rightBracket = o3, placeholder: "" }, { default: f(() => [m(s2, { label: "", value: "" }), m(s2, { label: ")", value: ")" }), m(s2, { label: "))", value: "))" }), m(s2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), m(d2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.logicOperator, "onUpdate:modelValue": (e3) => o3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => a2.selectRow(o3.row) }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), r2.showValueDialog ? (h(), b(C2, { key: 0, "standard-fields": a2.standardFields, "org-type": r2.currentRow.key.substring(r2.currentRow.key.indexOf("{") + 1, r2.currentRow.key.lastIndexOf("}")), onClose: a2.closeValueDialog }, null, 8, ["standard-fields", "org-type", "onClose"])) : v("", true)]);
|
|
52
|
+
}]]);
|
|
53
|
+
export {
|
|
54
|
+
C as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function e(e2) {
|
|
2
|
+
const t = n(e2);
|
|
3
|
+
return t ? t.label : e2;
|
|
4
|
+
}
|
|
5
|
+
function n(e2) {
|
|
6
|
+
const n2 = window.$store.getters["wfEditor/formFields"];
|
|
7
|
+
e2 && (e2.indexOf("${field[") >= 0 || e2.indexOf("${deptField[") >= 0) && (e2 = e2.substring(e2.indexOf("[") + 1, e2.lastIndexOf("]")));
|
|
8
|
+
const t = n2.filter((n3) => n3.name === e2);
|
|
9
|
+
return t.length > 0 ? t[0] : null;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
n as getFormField,
|
|
13
|
+
e as getFormFieldLabel
|
|
14
|
+
};
|