workflow-editor 0.0.81-up-tmp11 → 0.0.81-up-tmp15
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 +3504 -0
- package/dist/style.css +526 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/index.mjs +17 -0
- package/es/plugins/formValidatorUtil.mjs +206 -0
- package/es/plugins/index.mjs +7 -0
- 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 +525 -0
- package/es/vite.svg +1 -0
- 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/_virtual/_plugin-vue_export-helper.cjs +7 -0
- package/lib/index.cjs +8 -0
- package/lib/plugins/formValidatorUtil.cjs +203 -0
- package/lib/plugins/index.cjs +5 -0
- 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 +525 -0
- package/lib/vite.svg +1 -0
- 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 +7 -1
- package/.prettierrc.json +0 -9
- package/index.html +0 -13
- package/packages/index.js +0 -50
- package/packages/plugins/formValidatorUtil.js +0 -723
- package/packages/plugins/index.js +0 -8
- package/packages/workflow-editor/index.js +0 -14
- package/packages/workflow-editor/src/api.js +0 -7
- 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 +0 -2
- package/packages/workflow-editor/src/constant.js +0 -8
- package/packages/workflow-editor/src/json-object-templates/auto-task.js +0 -70
- package/packages/workflow-editor/src/json-object-templates/copy-task.js +0 -72
- package/packages/workflow-editor/src/json-object-templates/decision.js +0 -11
- package/packages/workflow-editor/src/json-object-templates/end.js +0 -14
- package/packages/workflow-editor/src/json-object-templates/fork.js +0 -10
- package/packages/workflow-editor/src/json-object-templates/human-decision.js +0 -9
- package/packages/workflow-editor/src/json-object-templates/human-task.js +0 -208
- package/packages/workflow-editor/src/json-object-templates/join.js +0 -10
- package/packages/workflow-editor/src/json-object-templates/process.js +0 -99
- package/packages/workflow-editor/src/json-object-templates/start.js +0 -13
- package/packages/workflow-editor/src/json-object-templates/subprocess.js +0 -31
- package/packages/workflow-editor/src/json-object-templates/transition.js +0 -26
- package/packages/workflow-editor/src/main/admin-save-dialog.vue +0 -67
- package/packages/workflow-editor/src/main/canvas.vue +0 -493
- package/packages/workflow-editor/src/main/context-menu.vue +0 -147
- package/packages/workflow-editor/src/main/icon-svg.vue +0 -32
- package/packages/workflow-editor/src/main/selection-region.vue +0 -66
- package/packages/workflow-editor/src/main/tache-history-tooltip.vue +0 -38
- package/packages/workflow-editor/src/main/tache-name-input.vue +0 -19
- package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +0 -40
- package/packages/workflow-editor/src/main/toolbox.vue +0 -60
- package/packages/workflow-editor/src/main/wf-history-canvas.vue +0 -309
- package/packages/workflow-editor/src/process-json.js +0 -624
- package/packages/workflow-editor/src/process-service.js +0 -68
- package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +0 -81
- package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +0 -155
- package/packages/workflow-editor/src/properties-editors/auto-task.vue +0 -74
- package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +0 -568
- package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +0 -320
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +0 -34
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +0 -268
- package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +0 -81
- package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +0 -242
- package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +0 -23
- package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +0 -117
- package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +0 -88
- package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +0 -143
- package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +0 -149
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +0 -108
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +0 -272
- package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +0 -92
- package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +0 -66
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +0 -354
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +0 -68
- package/packages/workflow-editor/src/properties-editors/common/task-title.vue +0 -165
- package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +0 -275
- package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +0 -426
- package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +0 -272
- package/packages/workflow-editor/src/properties-editors/common/variables.vue +0 -139
- package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +0 -90
- package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +0 -155
- package/packages/workflow-editor/src/properties-editors/copy-task.vue +0 -95
- package/packages/workflow-editor/src/properties-editors/decision.vue +0 -95
- package/packages/workflow-editor/src/properties-editors/fork.vue +0 -77
- package/packages/workflow-editor/src/properties-editors/human-decision.vue +0 -49
- package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +0 -62
- package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +0 -184
- package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +0 -359
- package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +0 -256
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +0 -405
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +0 -257
- package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +0 -430
- package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +0 -206
- package/packages/workflow-editor/src/properties-editors/human-task/events.vue +0 -60
- package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +0 -224
- package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +0 -499
- package/packages/workflow-editor/src/properties-editors/human-task.vue +0 -107
- package/packages/workflow-editor/src/properties-editors/join.vue +0 -49
- package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +0 -336
- package/packages/workflow-editor/src/properties-editors/process/events.vue +0 -79
- package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +0 -68
- package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +0 -106
- package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +0 -28
- package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +0 -88
- package/packages/workflow-editor/src/properties-editors/process.vue +0 -115
- package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +0 -201
- package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +0 -26
- package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +0 -216
- package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +0 -66
- package/packages/workflow-editor/src/properties-editors/subprocess.vue +0 -80
- package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +0 -53
- package/packages/workflow-editor/src/properties-editors/transition.vue +0 -75
- package/packages/workflow-editor/src/properties-editors/user-condition.js +0 -183
- package/packages/workflow-editor/src/store/getters.js +0 -33
- package/packages/workflow-editor/src/store/workflow-editor.js +0 -153
- package/packages/workflow-editor/src/taches/auto-task.vue +0 -99
- package/packages/workflow-editor/src/taches/common-methods.js +0 -21
- package/packages/workflow-editor/src/taches/copy-task.vue +0 -99
- package/packages/workflow-editor/src/taches/custom-task.vue +0 -88
- package/packages/workflow-editor/src/taches/decision.vue +0 -102
- package/packages/workflow-editor/src/taches/end.vue +0 -76
- package/packages/workflow-editor/src/taches/fork.vue +0 -102
- package/packages/workflow-editor/src/taches/human-decision.vue +0 -102
- package/packages/workflow-editor/src/taches/human-task.vue +0 -113
- package/packages/workflow-editor/src/taches/join.vue +0 -91
- package/packages/workflow-editor/src/taches/joint.vue +0 -177
- package/packages/workflow-editor/src/taches/start.vue +0 -76
- package/packages/workflow-editor/src/taches/subprocess.vue +0 -99
- package/packages/workflow-editor/src/taches/tache-resizer.vue +0 -80
- package/packages/workflow-editor/src/transitions/broken-line.vue +0 -91
- package/packages/workflow-editor/src/transitions/curve-line.vue +0 -91
- package/packages/workflow-editor/src/transitions/straight-line.vue +0 -26
- package/packages/workflow-editor/src/transitions/transition.vue +0 -209
- package/packages/workflow-editor/src/transitions/virtual-transition.vue +0 -43
- package/packages/workflow-editor/src/util.js +0 -499
- package/packages/workflow-editor/src/workflow-editor.vue +0 -852
- package/packages/workflow-editor/src/workflow-history.vue +0 -153
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -521
- package/src/i18n/langs/en.js +0 -529
- package/vite.config.js +0 -103
- /package/{public → dist}/vite.svg +0 -0
|
@@ -0,0 +1,3504 @@
|
|
|
1
|
+
!function(e, t) {
|
|
2
|
+
"object" == typeof exports && "undefined" != typeof module ? t(exports, require("vuex"), require("agilebuilder-ui"), require("vue-i18n"), require("vue"), require("xml-js"), require("file-saver"), require("prismjs")) : "function" == typeof define && define.amd ? define(["exports", "vuex", "agilebuilder-ui", "vue-i18n", "vue", "xml-js", "file-saver", "prismjs"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).wfEditor = {}, e.vuex, e.agilebuilderUi, e.vueI18n, e.vue, e.convert, e.FileSaver, e.Prism);
|
|
3
|
+
}(this, function(e, t, o, l, r, n, i, a) {
|
|
4
|
+
"use strict";
|
|
5
|
+
!function(e2) {
|
|
6
|
+
var t2, o2 = '<svg><symbol id="icon-switch" viewBox="0 0 1024 1024"><path d="M701.74225 917.574059c-7.419408 0-14.960447-2.675852-20.9203-8.149187-12.649483-11.554816-13.500891-31.13719-2.067704-43.786673l119.318684-130.75187L679.119135 608.634755c-11.798076-12.527854-11.189928-32.110227 1.337926-43.786673 12.527854-11.798076 32.110227-11.189928 43.786673 1.337926l138.657798 147.171873c11.068298 11.798076 11.311557 30.164153 0.364889 42.205488l-138.657798 152.037059c-6.081482 6.568001-14.473928 9.973631-22.866373 9.973631z" fill="" ></path><path d="M806.343746 786.21404h-581.389713c-82.100012 0-148.996318-66.896306-148.996318-148.996318v-245.691888c0-17.14978 13.86578-31.01556 31.01556-31.01556s31.01556 13.86578 31.01556 31.01556v245.691888c0 47.922081 39.043117 86.965198 86.965198 86.965198h581.389713c17.14978 0 31.01556 13.86578 31.01556 31.01556s-13.86578 31.01556-31.01556 31.01556z" fill="" ></path><path d="M322.25775 468.76066c-8.270816 0-16.420002-3.284-22.623114-9.730371l-138.657798-147.171874c-11.068298-11.798076-11.311557-30.164153-0.364889-42.205487l138.657798-152.037059c11.554816-12.649483 31.13719-13.500891 43.786673-2.067704 12.649483 11.554816 13.500891 31.13719 2.067704 43.786673l-119.197054 130.8735 118.953795 126.251574c11.798076 12.527854 11.189928 32.110227-1.337926 43.786673-5.959853 5.716593-13.62252 8.514075-21.285189 8.514075z" fill="" ></path><path d="M917.026725 664.584392c-17.14978 0-31.01556-13.86578-31.01556-31.01556v-245.691887c0-47.922081-39.043117-86.965198-86.965198-86.965198h-581.389713c-17.14978 0-31.01556-13.86578-31.01556-31.01556s13.86578-31.01556 31.01556-31.01556h581.389713c82.100012 0 148.996318 66.896306 148.996318 148.996318v245.691887c0 17.14978-13.86578 31.01556-31.01556 31.01556z" fill="" ></path></symbol><symbol id="icon-properties" viewBox="0 0 1024 1024"><path d="M512.980327 64.636113c-246.706845 0-447.421192 200.714348-447.421192 447.421192 0 246.700705 200.714348 447.415053 447.421192 447.415053s447.421192-200.714348 447.421193-447.415053c0-246.706845-200.715371-447.421192-447.421193-447.421192z m0 833.54532c-212.913181 0-386.130268-173.21811-386.130267-386.125151 0-212.913181 173.21811-386.130268 386.130267-386.130268s386.130268 173.21811 386.130268 386.130268c0 212.908064-173.21811 386.125151-386.130268 386.125151z" ></path><path d="M606.931093 640.392182c-11.621688 0-55.209416 68.771293-79.423911 68.771293-6.780427 0-9.685593-5.813403-9.685593-11.624758 0-13.558807 8.715499-33.899064 13.558807-45.520753l57.147558-156.913773c28.088732-77.487815-8.717546-98.795097-42.617633-98.795097-46.491871 0-88.142479 23.245424-120.105449 54.240345-10.654664 10.654664-45.523823 44.554752-45.523823 59.083654 0 4.844332 4.843308 10.655687 10.655688 10.655687 14.528901 0 52.302203-69.739341 82.328053-69.739341 5.814426 0 13.561877 6.780427 7.751545 21.309329L426.773943 612.304474c-5.811356 13.558807-32.93204 79.423911-32.93204 118.167306 0 30.994921 19.373233 44.554752 48.432059 44.554752 80.391958 0 174.34477-99.765191 174.34477-123.009591-0.002047-6.780427-5.814426-11.624758-9.687639-11.624759zM590.464049 249.081938c-35.836183 0-65.86408 28.088732-65.86408 63.927985 0 32.93204 21.310352 55.210439 54.242392 54.239322 36.805254 0 66.832128-27.120684 66.832128-63.927985 0-32.92897-23.24747-54.239322-55.21044-54.239322z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M409.6 163.84h163.84v40.96h-163.84zM532.48 368.64h40.96v368.64h-40.96zM409.6 368.64h40.96v368.64h-40.96z" ></path><path d="M286.72 245.76v614.4h409.6V245.76H286.72z m450.56 0v655.36H245.76V245.76H204.8V204.8h573.44v40.96h-40.96z" ></path></symbol><symbol id="icon-custom-task" viewBox="0 0 1024 1024"><path d="M756.63132445 483.81952l220.74709333-209.7152a112.86755555 112.86755555 0 0 0 0-159.61656889l-55.08664889-55.08664889a112.86755555 112.86755555 0 0 0-157.54126222-2.00248889L549.13706667 262.12579555 339.71313778 38.39317333l-1.71121778-1.78403555a73.76440889 73.76440889 0 0 0-104.34787555-0.43690667L76.44046222 193.38581333a73.728 73.728 0 0 0-1.27431111 102.56384L281.49532445 516.36906667 86.41649778 701.69031111A112.94037333 112.94037333 0 0 0 54.26744889 757.76L21.28099555 898.55317333a74.67463111 74.67463111 0 0 0 93.7528889 88.65564445L250.76622222 947.23185778a113.48650667 113.48650667 0 0 0 45.8752-26.43285333l192.34816-182.73621334 231.66976 247.50762667 1.71121778 1.78403555a73.76440889 73.76440889 0 0 0 104.34787555 0.43690667L983.93201778 830.57777778a73.728 73.728 0 0 0 1.27431111-102.56384L756.63132445 483.81952zM292.89130667 823.95136l-102.52743112-102.52743111a35.82634667 35.82634667 0 0 0-11.14112-7.39100444l509.2511289-483.80131556 107.26058666 107.26058666c1.60199111 1.60199111 3.60448 2.36657778 5.42492444 3.60448l-508.26808888 482.85468445z m521.99424-713.83267555a40.04977778 40.04977778 0 0 1 55.88764444 0.72817777l55.08664889 55.08664889c15.65582222 15.65582222 15.65582222 40.99640889-0.72817778 57.344l-73.32750222 69.65020444c-1.45635555-2.36657778-2.54862222-4.87879111-4.62392889-6.95409777l-105.94986666-105.94986667 73.65518222-69.90506666z m-557.16522667 274.34097777c9.10222222-0.14563555 18.20444445-3.60448 25.15854222-10.55857777l54.61333333-54.61333334a36.37248 36.37248 0 1 0-51.48216888-51.48216889l-54.61333334 54.61333333a36.0448 36.0448 0 0 0-10.15808 23.04682667L128.35953778 246.21511111c-0.58254222-0.58254222-0.58254222-1.16508445-0.40049778-1.31072L285.17262222 87.6544c0.14563555-0.14563555 0.76458667-0.14563555 1.41994667 0.47331555l209.78801778 224.13312L334.32462222 466.23402667l-76.60430222-81.77436445zM94.46286222 917.37656889a1.82044445 1.82044445 0 0 1-2.29376-2.18453334L125.15555555 774.39886222c1.12867555-4.73315555 3.34961778-9.06581333 6.04387556-13.07079111a36.19043555 36.19043555 0 0 0 7.68227556 11.54161778l100.45212444 100.45212444a39.90414222 39.90414222 0 0 1-9.10222222 4.04138667l-135.76874667 40.01336889zM775.23626667 936.3456c-0.14563555 0.14563555-0.76458667 0.14563555-1.41994667-0.47331555l-142.90488889-152.66247112a35.53507555 35.53507555 0 0 0 16.01991111-8.77454222l54.61333333-54.61333333a36.37248 36.37248 0 1 0-51.48216888-51.48216889l-54.61333334 54.61333333a36.0448 36.0448 0 0 0-8.30122666 13.54410667l-45.40188445-48.53304889 162.05596445-153.97319111 228.21091555 243.83032889c0.54613333 0.58254222 0.54613333 1.16508445 0.40049778 1.31072L775.23626667 936.3456z" ></path></symbol><symbol id="icon-join" viewBox="0 0 1024 1024"><path d="M987.136 552.96c5.46133333-5.46133333 10.92266667-13.65333333 10.92266667-24.576 0-8.192-2.73066667-16.384-10.92266667-24.576L817.83466667 329.04533333c-5.46133333-2.73066667-13.65333333-8.192-24.576-8.192-8.192 0-19.11466667 2.73066667-24.576 10.92266667l-177.49333334 174.76266667C585.728 512 580.26666667 520.192 580.26666667 531.11466667s2.73066667 19.11466667 10.92266666 24.576l177.49333334 172.032c5.46133333 5.46133333 13.65333333 10.92266667 24.576 10.92266666 8.192 0 16.384-2.73066667 24.576-10.92266666L987.136 552.96zM25.94133333 970.752c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667h270.336c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576v-68.26666667h152.91733333c8.192 0 16.384-2.73066667 24.576-10.92266666 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576v-682.66666667c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H367.27466667V47.78666667c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H61.44c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v221.184c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266666h270.336c8.192 0 16.384-2.73066667 24.576-10.92266666 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V252.58666667h68.26666666c8.192 0 16.384 2.73066667 24.576 10.92266666 5.46133333 5.46133333 10.92266667 16.384 10.92266667 24.576V785.06666667c0 8.192-2.73066667 16.384-10.92266667 24.576-5.46133333 5.46133333-16.384 10.92266667-24.576 10.92266666h-68.26666666v-68.26666666c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H61.44c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v218.45333333z" ></path></symbol><symbol id="icon-fork" viewBox="0 0 1024 1024"><path d="M36.864 471.04c-5.46133333 5.46133333-10.92266667 13.65333333-10.92266667 24.576 0 8.192 2.73066667 16.384 10.92266667 24.576l169.30133333 174.76266667c5.46133333 2.73066667 13.65333333 8.192 24.576 8.192 8.192 0 19.11466667-2.73066667 24.576-10.92266667l177.49333334-174.76266667c5.46133333-5.46133333 10.92266667-13.65333333 10.92266666-24.576s-2.73066667-19.11466667-10.92266666-24.576l-177.49333334-172.032c-5.46133333-5.46133333-13.65333333-10.92266667-24.576-10.92266666-8.192 0-16.384 2.73066667-24.576 10.92266666L36.864 471.04zM998.05866667 53.248c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H692.224c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v68.26666667H503.808c-8.192 0-16.384 2.73066667-24.576 10.92266666-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v682.66666667c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667h152.91733333v101.03466666c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667H962.56c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V755.02933333c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266666H692.224c-8.192 0-16.384 2.73066667-24.576 10.92266666-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v16.384h-68.26666666c-8.192 0-16.384-2.73066667-24.576-10.92266666-5.46133333-5.46133333-10.92266667-16.384-10.92266667-24.576V238.93333333c0-8.192 2.73066667-16.384 10.92266667-24.576 5.46133333-5.46133333 16.384-10.92266667 24.576-10.92266666h68.26666666v68.26666666c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667H962.56c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V53.248z" ></path></symbol><symbol id="icon-copy-task" viewBox="0 0 1024 1024"><path d="M636.30222222 513.25155555c11.71911111-6.82666667 21.16266667-26.39644445 1.36533334-35.72622222-6.71288889-3.072-13.65333333-5.91644445-20.59377778-8.64711111C666.45333334 424.61866667 697.74222222 360.56177778 697.74222222 288.99555555c0-133.34755555-108.20266667-241.55022222-241.55022222-241.55022222S214.64177778 155.648 214.64177778 288.99555555c0 71.56622222 31.28888889 135.62311111 80.66844444 179.88266667-146.31822222 57.45777778-254.29333333 191.03288889-275.34222222 352.02844445-0.22755555 1.93422222-0.34133333 3.86844445-0.34133333 5.80266666 0 30.37866667 24.576 55.06844445 55.06844445 55.06844445H532.76444445c-21.04888889-38.912-33.10933333-83.51288889-33.10933333-130.84444445 0.11377778-101.48977778 55.06844445-190.00888889 136.6471111-237.68177778z m31.63022223 227.8968889l78.05155555 37.09155555 98.98666667-98.98666667z m133.91644444 133.91644444l56.88888889-171.23555556-94.09422222 94.09422222z" ></path><path d="M774.76977778 524.97066667c-124.47288889 0-225.84888889 101.26222222-225.84888889 225.84888888 0 124.47288889 101.26222222 225.84888889 225.84888889 225.8488889s225.84888889-101.26222222 225.84888889-225.8488889c0-124.47288889-101.26222222-225.84888889-225.84888889-225.84888888z m129.47911111 128l-87.15377777 262.25777778c-1.70666667 5.23377778-6.48533333 8.87466667-11.94666667 9.216h-0.91022223c-5.12 0-10.01244445-2.95822222-12.17422222-7.62311112l-54.49955555-112.64-110.93333333-52.90666666c-3.29955555-1.59288889-5.80266667-4.32355555-6.94044445-7.73688889-2.50311111-7.05422222 1.25155555-14.79111111 8.30577778-17.29422223l258.95822222-90.45333333c1.47911111-0.45511111 2.95822222-0.79644445 4.43733333-0.79644444 3.64088889 0 6.94044445 1.36533333 9.55733334 3.86844444 3.52711111 3.75466667 4.89244445 9.216 3.29955555 14.10844445z" ></path></symbol><symbol id="icon-subprocess" viewBox="0 0 1024 1024"><path d="M1023.78666667 129.49333333c-0.32-6.93333333-1.28-13.86666667-2.56-20.48s-3.2-13.12-5.54666667-19.41333333c-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.73333333-8.85333333-8.42666667-17.28-13.86666667-25.06666666-0.32-0.53333333-0.74666667-1.06666667-1.06666667-1.49333334-0.96-1.28-1.92-2.66666667-2.98666666-3.94666666-0.32-0.32-0.53333333-0.74666667-0.85333334-1.06666667-2.56-3.2-5.22666667-6.29333333-8-9.28l-0.21333333-0.21333333c-5.97333333-6.29333333-12.58666667-12.05333333-19.73333333-17.06666667-1.49333333-1.06666667-2.98666667-2.02666667-4.48-3.09333333-1.6-1.06666667-3.2-2.02666667-4.90666667-3.09333334-0.85333333-0.53333333-1.81333333-1.06666667-2.66666667-1.6-1.28-0.74666667-2.45333333-1.38666667-3.73333333-2.02666666-0.64-0.32-1.28-0.64-2.02666667-1.06666667-1.28-0.64-2.66666667-1.28-4.05333333-1.92-2.56-1.17333333-5.22666667-2.34666667-7.89333333-3.41333333-1.49333333-0.64-3.09333333-1.17333333-4.58666667-1.70666667-2.34666667-0.85333333-4.8-1.6-7.25333333-2.24-3.2-0.96-6.50666667-1.70666667-9.81333334-2.45333333-5.54666667-1.17333333-11.2-1.92-16.96-2.34666667-3.52-0.21333333-6.93333333-0.42666667-10.45333333-0.42666667s-7.04 0.10666667-10.45333333 0.42666667c-5.76 0.42666667-11.41333333 1.28-16.96 2.34666667-3.30666667 0.64-6.61333333 1.49333333-9.81333334 2.45333333-2.45333333 0.64-4.8 1.49333333-7.25333333 2.24-1.49333333 0.53333333-3.09333333 1.06666667-4.58666667 1.70666667-2.66666667 1.06666667-5.33333333 2.13333333-7.89333333 3.41333333-1.38666667 0.64-2.66666667 1.28-4.05333333 1.92-0.64 0.32-1.28 0.64-2.02666667 1.06666667-1.28 0.64-2.56 1.38666667-3.73333333 2.02666666-0.96 0.53333333-1.81333333 1.06666667-2.66666667 1.6-1.6 0.96-3.30666667 2.02666667-4.90666667 3.09333334-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333333-7.14666667 5.01333333-13.76 10.77333333-19.73333333 17.06666667l-0.21333333 0.21333333c-2.77333333 2.98666667-5.44 6.08-8 9.28-0.32 0.32-0.53333333 0.74666667-0.85333334 1.06666667-0.96 1.28-2.02666667 2.56-2.98666666 3.94666666-0.32 0.53333333-0.74666667 1.06666667-1.06666667 1.49333334-5.44 7.78666667-10.13333333 16.21333333-13.86666667 25.06666666-0.85333333 2.02666667-1.70666667 4.16-2.45333333 6.18666667-2.34666667 6.29333333-4.16 12.8-5.54666667 19.41333333s-2.24 13.54666667-2.56 20.48c-0.10666667 2.34666667-0.21333333 4.69333333-0.21333333 7.04 0 3.52 0.10666667 7.04 0.42666667 10.45333334 0.42666667 5.76 1.28 11.41333333 2.34666666 16.96 0.64 3.30666667 1.49333333 6.61333333 2.45333334 9.81333333 5.22666667 18.34666667 14.18666667 35.09333333 26.02666666 49.49333333 0.74666667 0.85333333 1.38666667 1.70666667 2.13333334 2.45333334 4.16 4.8 8.74666667 9.38666667 13.54666666 13.65333333l-105.81333333 306.98666667c-3.09333333-0.21333333-6.18666667-0.32-9.28-0.32-14.93333333 0-29.33333333 2.45333333-42.77333333 6.82666666-0.64 0.21333333-1.28 0.42666667-1.81333334 0.64-1.49333333 0.53333333-3.09333333 1.06666667-4.58666666 1.70666667-2.34666667 0.96-4.69333333 1.92-7.04 2.98666667L466.56 395.62666667c2.34666667-5.44 4.37333333-11.2 6.08-16.96 0.96-3.2 1.70666667-6.50666667 2.45333333-9.81333334 1.17333333-5.54666667 1.92-11.2 2.34666667-16.96 0.21333333-3.52 0.42666667-6.93333333 0.42666667-10.45333333 0-2.34666667-0.10666667-4.69333333-0.21333334-7.04-0.32-6.93333333-1.28-13.86666667-2.56-20.48-7.04-34.45333333-27.09333333-64.10666667-54.72-83.84-0.85333333-0.64-1.81333333-1.28-2.66666666-1.92-6.4-4.26666667-13.12-8.10666667-20.16-11.30666667-2.02666667-0.96-4.05333333-1.81333333-6.08-2.56s-4.16-1.6-6.29333334-2.34666666c-13.76-4.69333333-28.48-7.14666667-43.84-7.14666667-3.52 0-7.04 0.10666667-10.45333333 0.42666667-5.76 0.42666667-11.41333333 1.28-16.96 2.34666666-3.30666667 0.64-6.61333333 1.49333333-9.81333333 2.45333334-2.45333333 0.64-4.8 1.49333333-7.25333334 2.24-1.49333333 0.53333333-3.09333333 1.06666667-4.58666666 1.70666666-2.66666667 1.06666667-5.33333333 2.13333333-7.89333334 3.41333334-1.38666667 0.64-2.66666667 1.28-4.05333333 1.92-0.64 0.32-1.28 0.64-2.02666667 1.06666666-1.28 0.64-2.56 1.38666667-3.73333333 2.02666667-0.96 0.53333333-1.81333333 1.06666667-2.66666667 1.6-1.6 0.96-3.30666667 2.02666667-4.90666666 3.09333333-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333334-7.14666667 5.01333333-13.76 10.77333333-19.73333334 17.06666666l-0.21333333 0.21333334c-2.77333333 2.98666667-5.44 6.08-8 9.28-0.32 0.32-0.53333333 0.74666667-0.85333333 1.06666666-0.96 1.28-2.02666667 2.56-2.98666667 3.94666667-0.32 0.53333333-0.74666667 1.06666667-1.06666667 1.49333333-5.44 7.78666667-10.13333333 16.21333333-13.86666666 25.06666667-0.85333333 2.02666667-1.70666667 4.16-2.45333334 6.18666667-2.34666667 6.29333333-4.16 12.8-5.54666666 19.41333333s-2.24 13.54666667-2.56 20.48c-0.10666667 2.34666667-0.21333333 4.69333333-0.21333334 7.04 0 3.52 0.10666667 7.04 0.42666667 10.45333333 0.42666667 5.76 1.28 11.41333333 2.34666667 16.96 0.64 3.30666667 1.49333333 6.61333333 2.45333333 9.81333334 5.22666667 18.34666667 14.18666667 35.09333333 26.02666667 49.49333333 0.74666667 0.85333333 1.38666667 1.70666667 2.13333333 2.45333333 0.64 0.74666667 1.28 1.49333333 1.92 2.13333334L129.6 751.04c-12.48 0.64-24.53333333 2.88-35.84 6.61333333-0.64 0.21333333-1.28 0.42666667-1.81333333 0.64-1.49333333 0.53333333-3.09333333 1.06666667-4.58666667 1.70666667-2.66666667 1.06666667-5.33333333 2.13333333-7.89333333 3.41333333-3.30666667 1.49333333-6.61333333 3.2-9.81333334 5.01333334-0.96 0.53333333-1.81333333 1.06666667-2.66666666 1.6-1.6 0.96-3.30666667 2.02666667-4.90666667 3.09333333-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333333-1.81333333 1.28-3.52 2.56-5.22666667 3.94666667-0.85333333 0.64-1.70666667 1.38666667-2.56 2.02666667-2.56 2.13333333-5.01333333 4.26666667-7.36 6.50666666-0.74666667 0.74666667-1.6 1.49333333-2.34666666 2.24-1.49333333 1.49333333-3.09333333 3.09333333-4.48 4.69333334-1.49333333 1.6-2.88 3.30666667-4.26666667 4.90666666-2.77333333 3.41333333-5.44 6.82666667-7.89333333 10.56-4.90666667 7.25333333-9.17333333 15.04-12.58666667 23.14666667-0.85333333 2.02666667-1.70666667 4.16-2.45333333 6.18666667-0.74666667 2.13333333-1.49333333 4.16-2.13333334 6.29333333-1.28 4.26666667-2.45333333 8.64-3.41333333 13.12s-1.6 8.96-2.02666667 13.54666667c-0.42666667 4.58666667-0.74666667 9.28-0.74666666 13.97333333 0 75.41333333 61.12 136.53333333 136.53333333 136.53333333s136.53333333-61.12 136.53333333-136.53333333c0-4.69333333-0.21333333-9.38666667-0.74666666-13.97333333-0.42666667-4.58666667-1.17333333-9.06666667-2.02666667-13.54666667s-2.02666667-8.85333333-3.41333333-13.12c-0.64-2.13333333-1.38666667-4.26666667-2.13333334-6.29333333-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.41333333-8.21333333-7.68-15.89333333-12.58666667-23.14666667-2.45333333-3.62666667-5.12-7.14666667-7.89333333-10.56-1.38666667-1.70666667-2.77333333-3.30666667-4.26666667-4.90666666s-2.98666667-3.2-4.48-4.69333334c-0.74666667-0.74666667-1.6-1.49333333-2.34666666-2.24-1.38666667-1.38666667-2.88-2.66666667-4.37333334-3.94666666l106.45333334-307.2c2.77333333 0.21333333 5.65333333 0.32 8.42666666 0.32 16.53333333 0 32.32-2.88 46.93333334-8.32 1.81333333-0.64 3.52-1.38666667 5.33333333-2.13333334l162.13333333 164.8c-0.42666667 1.17333333-0.85333333 2.24-1.28 3.41333334-0.74666667 2.13333333-1.49333333 4.16-2.13333333 6.29333333-1.28 4.26666667-2.45333333 8.64-3.41333333 13.12s-1.6 8.96-2.02666667 13.54666667c-0.42666667 4.58666667-0.74666667 9.28-0.74666667 13.97333333 0 75.41333333 61.12 136.53333333 136.53333334 136.53333333s136.53333333-61.12 136.53333333-136.53333333c0-4.69333333-0.21333333-9.38666667-0.74666667-13.97333333-0.42666667-4.58666667-1.17333333-9.06666667-2.02666666-13.54666667s-2.02666667-8.85333333-3.41333334-13.12c-0.64-2.13333333-1.38666667-4.26666667-2.13333333-6.29333333-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.41333333-8.21333333-7.68-15.89333333-12.58666667-23.14666667-2.45333333-3.62666667-5.12-7.14666667-7.89333333-10.56-1.06666667-1.38666667-2.24-2.66666667-3.41333334-3.94666666l109.97333334-318.93333334c1.17333333-0.10666667 2.24-0.10666667 3.41333333-0.21333333 5.76-0.42666667 11.41333333-1.28 16.96-2.34666667 3.30666667-0.64 6.61333333-1.49333333 9.81333333-2.45333333 18.34666667-5.22666667 35.09333333-14.18666667 49.49333334-26.02666667 0.85333333-0.74666667 1.70666667-1.38666667 2.45333333-2.13333333 4.90666667-4.26666667 9.6-8.96 13.86666667-13.86666667 0.74666667-0.85333333 1.38666667-1.70666667 2.13333333-2.45333333 11.84-14.29333333 20.8-31.14666667 26.02666667-49.49333333 0.96-3.2 1.70666667-6.50666667 2.45333333-9.81333334 1.17333333-5.54666667 1.92-11.2 2.34666667-16.96 0.21333333-3.52 0.42666667-6.93333333 0.42666666-10.45333333 0.10666667-2.45333333 0-4.8-0.10666666-7.14666667z" ></path></symbol><symbol id="icon-human-decision" viewBox="0 0 1024 1024"><path d="M519.5 594.47733333c-4.1 10.399-6.1 21.398-6.1 32.197 0 23.198 8.899 46.395 26.497 64.294l29.897 29.997 1.7 1.4c17.398 16.798 39.996 24.997 62.494 24.997 22.998 0 46.396-8.7 63.794-26.397h0.2l176.883-176.983 1.6-1.5c16.698-17.598 24.797-40.196 24.797-62.794 0-23.197-8.8-46.195-26.397-63.794h0.1l0.1-0.4-29.898-29.797c-17.598-17.498-40.796-26.297-64.293-26.297-11 0-21.998 1.9-32.497 5.9L557.696 174.41733333c4.2-10.399 6.099-21.498 6.099-32.497 0-23.198-9-46.395-26.697-64.293L507.2 47.83033333C489.602 30.23333333 466.404 21.33333333 443.107 21.33333333c-23.198 0-46.696 8.9-64.294 26.497L201.93 224.81333333l-1.5 1.5c-16.398 17.698-24.797 40.296-24.797 62.494 0 23.398 8.799 46.595 26.397 64.394l29.897 29.897 1.7 1.4c17.598 16.898 40.096 25.097 62.494 25.097 10.999 0 21.898-2.2 32.497-6l18.898 18.999L31.546 738.86333333C10.55 759.86133333 0.05 787.45833333 0.05 814.95533333c0 27.798 10.499 55.495 31.497 76.393 21.198 21.098 48.795 31.597 76.392 31.597 27.698 0 55.195-10.499 76.293-31.597l315.97-316.07 19.297 19.199zM959.956 981.33933333H512c-35.197 0-63.994-28.797-63.994-63.994 0-35.196 28.797-63.993 63.994-63.993h447.956c35.197 0 63.994 28.797 63.994 63.993 0 35.197-28.797 63.994-63.994 63.994z" ></path></symbol><symbol id="icon-human-task" viewBox="0 0 1024 1024"><path d="M924.33066667 123.33511111H776.87466667v163.84h-546.13333334v-163.84H99.66933333c-19.11466667 0-32.768 19.11466667-32.768 38.22933334v813.73866666c0 21.84533333 16.384 38.22933333 35.49866667 38.22933334h816.46933333c19.11466667 0 35.49866667-16.384 35.49866667-38.22933334V161.56444445c0-21.84533333-16.384-38.22933333-35.49866667-38.22933334h5.46133334zM790.528 445.55377778L471.04 838.76977778c2.73066667 5.46133333-5.46133333 5.46133333-10.92266667 2.73066667l-232.10666666-191.14666667c-5.46133333-2.73066667-5.46133333-10.92266667-2.73066667-16.384l38.22933333-49.152c2.73066667-5.46133333 10.92266667-5.46133333 16.384-2.73066667l174.76266667 147.456 273.06666667-338.60266666c2.73066667-8.192 10.92266667-8.192 16.384-2.73066667l43.69066666 38.22933333c8.192 2.73066667 10.92266667 8.192 2.73066667 19.11466667zM643.072 74.18311111V41.41511111c0-30.03733333-27.30666667-49.152-57.344-49.152H419.15733333c-30.03733333 0-57.344 19.11466667-57.344 49.152v32.768h-65.536v163.84h412.33066667v-163.84h-65.536z m-139.264 98.304c-32.768 0-60.07466667-27.30666667-60.07466667-60.07466666s27.30666667-60.07466667 60.07466667-60.07466667 60.07466667 27.30666667 60.07466667 60.07466667c0 38.22933333-27.30666667 60.07466667-60.07466667 60.07466666z m0 0" ></path></symbol><symbol id="icon-decision" viewBox="0 0 1024 1024"><path d="M580.175027 28.57919l414.065896 414.065896a97.58526 97.58526 0 0 1 0 138.00065l-414.065896 414.065896a97.58526 97.58526 0 0 1-138.000649 0l-414.065897-414.065896a97.58526 97.58526 0 0 1 0-138.00065l414.065897-414.065896a97.58526 97.58526 0 0 1 138.000649 0z" ></path></symbol><symbol id="icon-end" viewBox="0 0 1024 1024"><path d="M512 25.6C243.2 25.6 25.6 243.2 25.6 512S243.2 998.4 512 998.4 998.4 780.8 998.4 512 780.8 25.6 512 25.6z m162.304 615.936c0 17.92-14.336 32.256-32.256 32.256H382.464c-17.92 0-32.256-14.336-32.256-32.256V381.952c0-17.92 14.336-32.256 32.256-32.256h259.584c17.92 0 32.256 14.336 32.256 32.256v259.584z m0 0" ></path></symbol><symbol id="icon-start" viewBox="0 0 1024 1024"><path d="M960.62577778 322.33244445c-24.46222222-57.91288889-59.61955555-110.02311111-104.33422223-154.73777778s-96.82488889-79.872-154.73777777-104.33422222C641.59288889 37.888 577.87733333 25.03111111 512.11377778 25.03111111c-65.64977778 0-129.47911111 12.85688889-189.44 38.22933334-57.91288889 24.46222222-110.02311111 59.61955555-154.73777778 104.33422222s-79.872 96.82488889-104.33422222 154.73777778C38.22933333 382.29333333 25.37244445 446.00888889 25.37244445 511.77244445c0 65.64977778 12.85688889 129.47911111 38.22933333 189.44 24.46222222 57.91288889 59.61955555 110.02311111 104.33422222 154.73777777s96.82488889 79.872 154.73777778 104.33422223c59.96088889 25.37244445 123.67644445 38.22933333 189.44 38.22933333 65.64977778 0 129.47911111-12.97066667 189.44-38.22933333 57.91288889-24.46222222 110.02311111-59.61955555 154.73777777-104.33422223s79.872-96.82488889 104.33422223-154.73777777c25.37244445-59.96088889 38.22933333-123.67644445 38.22933333-189.44 0-65.64977778-12.85688889-129.47911111-38.22933333-189.44z m-236.65777778 233.13066666L464.09955555 755.14311111C422.11555555 797.01333333 350.43555555 767.31733333 350.43555555 708.03911111V308.79288889c0-59.27822222 71.68-88.97422222 113.664-47.104l259.86844445 199.56622222c26.05511111 26.05511111 26.05511111 68.15288889 0 94.208z" ></path></symbol><symbol id="icon-virtual-human-task" viewBox="0 0 1496 1024"><path d="M864 1024H160C70.4 1024 0 953.6 0 864V160C0 70.4 70.4 0 160 0h704c89.6 0 160 70.4 160 160v704c0 89.6-70.4 160-160 160zM160 64c-51.2 0-96 44.8-96 96v704c0 51.2 44.8 96 96 96h704c51.2 0 96-44.8 96-96V160c0-51.2-44.8-96-96-96H160z" fill="#C9CED6" ></path></symbol><symbol id="icon-fuzhi" viewBox="0 0 1024 1024"><path d="M394.667 106.667h448a74.667 74.667 0 0 1 74.666 74.666v448A74.667 74.667 0 0 1 842.667 704h-448A74.667 74.667 0 0 1 320 629.333v-448a74.667 74.667 0 0 1 74.667-74.666z m0 64A10.667 10.667 0 0 0 384 181.333v448A10.667 10.667 0 0 0 394.667 640h448a10.667 10.667 0 0 0 10.666-10.667v-448a10.667 10.667 0 0 0-10.666-10.666h-448zM640 768a32 32 0 0 1 64 0v74.667a74.667 74.667 0 0 1-74.667 74.666h-448a74.667 74.667 0 0 1-74.666-74.666v-448A74.667 74.667 0 0 1 181.333 320H256a32 32 0 0 1 0 64h-74.667a10.667 10.667 0 0 0-10.666 10.667v448a10.667 10.667 0 0 0 10.666 10.666h448A10.667 10.667 0 0 0 640 842.667V768z" ></path></symbol></svg>';
|
|
7
|
+
if ((t2 = document.getElementsByTagName("script"))[t2.length - 1].getAttribute("data-injectcss") && !e2.__iconfont__svg__cssinject__) {
|
|
8
|
+
e2.__iconfont__svg__cssinject__ = true;
|
|
9
|
+
try {
|
|
10
|
+
document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
|
|
11
|
+
} catch (t3) {
|
|
12
|
+
console;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
!function(t3) {
|
|
16
|
+
if (document.addEventListener)
|
|
17
|
+
if (~["complete", "loaded", "interactive"].indexOf(document.readyState))
|
|
18
|
+
setTimeout(t3, 0);
|
|
19
|
+
else {
|
|
20
|
+
var o3 = function() {
|
|
21
|
+
document.removeEventListener("DOMContentLoaded", o3, false), t3();
|
|
22
|
+
};
|
|
23
|
+
document.addEventListener("DOMContentLoaded", o3, false);
|
|
24
|
+
}
|
|
25
|
+
else
|
|
26
|
+
document.attachEvent && (l2 = t3, r2 = e2.document, n2 = false, i2 = function() {
|
|
27
|
+
n2 || (n2 = true, l2());
|
|
28
|
+
}, (a2 = function() {
|
|
29
|
+
try {
|
|
30
|
+
r2.documentElement.doScroll("left");
|
|
31
|
+
} catch (e3) {
|
|
32
|
+
return void setTimeout(a2, 50);
|
|
33
|
+
}
|
|
34
|
+
i2();
|
|
35
|
+
})(), r2.onreadystatechange = function() {
|
|
36
|
+
"complete" == r2.readyState && (r2.onreadystatechange = null, i2());
|
|
37
|
+
});
|
|
38
|
+
var l2, r2, n2, i2, a2;
|
|
39
|
+
}(function() {
|
|
40
|
+
var e3, t3;
|
|
41
|
+
(e3 = document.createElement("div")).innerHTML = o2, o2 = null, (t3 = e3.getElementsByTagName("svg")[0]) && (t3.setAttribute("aria-hidden", "true"), t3.style.position = "absolute", t3.style.width = 0, t3.style.height = 0, t3.style.overflow = "hidden", function(e4, t4) {
|
|
42
|
+
t4.firstChild ? function(e5, t5) {
|
|
43
|
+
t5.parentNode.insertBefore(e5, t5);
|
|
44
|
+
}(e4, t4.firstChild) : t4.appendChild(e4);
|
|
45
|
+
}(t3, document.body));
|
|
46
|
+
});
|
|
47
|
+
}(window);
|
|
48
|
+
const s = { workflowEditorPublicModel: { add: "Add", insert: "Insert", delete: "Delete", viewConditions: "View Conditions", agree: "Agree", disagree: "Disagree", andOr: "And / Or", mail: "Mail", message: "Message", App: "App", dingding: "DingTalk", qiwei: "Weixin", feishu: "Lark", determine: "Determine", cancel: "Cancel", choice: "Choice", empty: "Empty", save: "Save", export: "Export", open: "Open", return: "Return", flowChart: "Flow Chart", close: "Close", selectPage: "Select Page", search: "Search", adminSave: "Admin Save", tipTitle: "Tip", i18nSet: "I18n Setting", i18nZh: "Chinese", i18nEn: "English", i18nKey: "I18n Key", subprocessTitle: "Subprocess History", custom: "Custom", enable: "Enable" }, workflowEditorMessage: { requiredAndMustBeADate: "Required And Must Be A Date", requiredAndMustBeAnInteger: "Required And Must Be An Integer", requiredAndMustBeDecimal: "Required And Must Be Decimal", mustFill: "Must Fill", recordLine: "Record Line {row}", pageRecordLine: "Record in row {row} of page {pageNum}", currentHandlingPersonnel: "Current Handling Personnel", pleaseSelect: "Please Select", pleaseSelectARow: "Please Select A Row", conditionsHaveNotBeenSet: "Conditions Have Not Been Set", viewConditions: "View Conditions", fieldSettings: "Field Settings", valueSetting: "Value Setting", pleaseEnterContent: "Please Enter Content", theFieldNameOrFieldValueInLineCannotBeEmpty: "The Field Name Or Field Value In Line {row} Cannot Be Empty", fieldNameCannotBeEmpty: "Field Name Cannot Be Empty", fieldValueCannotBeEmpty: "Field Value Cannot Be Empty", pleaseEnterASubject: "Please Enter A Subject", selectStandardFields: "Select Standard Fields", pleaseEnterTheRoleName: "Please Enter The Role Name", queryResultIsEmpty: "Query Result Is Empty", selectRole: "Select Role", enterText: "Enter Text", selectField: "Select Field", pleaseSelectPersonnel: "Please Select Personnel", pleaseSelectAValue: "Please Select A Value", pleaseSelectAValueInTheCurrentTab: "Please Select A Value In The Current Tab", variableNameCannotBeEmpty: "Variable Name Cannot Be Empty", variableValueCannotBeEmpty: "Variable Value Cannot Be Empty", variableNameOrValueOnLineCannotBeEmpty: "Variable Name Or Value On Line {row} Cannot Be Empty", whenThereAreMultipleManagers: "When There Are Multiple Managers", duplicateOperationTypeWithLinePleaseReselect: "Duplicate Operation Type With Line {row}, Please Reselect", theOperationTypeOrNameInLineIsEmpty: "The Operation Type Or Name In Line {row} Is Empty", readOnly: "Read Only", pleaseEnterFieldName: "Please Enter Field Name", dataInLineCannotBeEmpty: "{data1} Or {data2} In Line {row} Cannot Be Empty", dataCannotBeEmpty: "{data} Cannot Be Empty", theStartAndEndOfTheFlowDirectionCannotBeTheSame: "The Start And End Of The Flow Direction Cannot Be The Same", onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows: "Only Condition Judgment, Branch And Manual Judgment Can Have Multiple Outbound Flows", startAndEndNodesCannotBeConnectedDirectly: "Start And End Nodes Cannot Be Connected Directly", endNodeCannotHaveOutFlowDirection: "End Node Cannot Have Out Flow Direction", itIsTheSameAsTheExistingLink: "It Is The Same As The Existing Link: {name}", updateSuccessful: "Update Successful", savedSuccessfully: "Saved Successfully", exportSucceeded: "Export Succeeded", pleaseSelectRole: "Please select role", subTableMustInputDatas: "The [{subtable}] subtable must enter data", pleaseEnterTheNameOrCode: "Please Enter The Name Or Describe", updateVersionSuccessful: "Version updated successfully", addVersionSuccessful: "Version added successfully", adminSaveTip: "The version must be added in the following cases:", adminSaveTip1: "1.The process name or code has been modified", adminSaveTip2: "2.The node name or code has been modified", adminSaveTip3: "3.Added node or flow direction", adminSaveTip4: "4.Node or flow direction removed", adminSaveTip5: 'Please select "Add Version" or "Update Current Version"?', updateVersion: "Update Current Version", addVersion: "Add Version", pleaseInputCode: "Please input the code first, and then do the international configuration", blankFieldNameOrValue: "Blank Field Name Or Value", enabledSuccessfully: "Enabled Successfully", additionalParam: "Request parameter" }, workflowEditor: { main: { tacheType: "Tache Type", straightLine: "Straight Line", curveLine: "Curve Line", brokenLine: "Broken Line" }, common: { remove: "Remove", attribute: "Attribute", fieldName: "Field Name(*)", operator: "Operator", value: "Value(*)", name: "Name", fieldValue: "Field Value", separator: "Separator", fillInMethod: "Fill In Method", cover: "Cover", append: "Append", insertToFront: "Insert To Front", fillInTime: "Fill In Time", fillInBeforeHandling: "Fill In Before Handling", fillInAfterHandling: "Fill In After Handling", type: "Type(*)", user: "User", role: "Role", department: "Department", workgroup: "Workgroup", selectFormField: "Select Form Field", notificationMethod: "Notification Method", addressee: "Addressee", theme: "Theme", content: "Content", notifyPersonnel: "Notify Personnel", selectusers: "Select Users", selectDepartment: "Select Department", selectTeam: "Select Team", selectRole: "Select Role", organizationStructure: "Organization Structure", formField: "Form Field", variableName: "Variable Name", variableValue: "Variable Value", selectField: "Select Field", taskNotice: "Task Notice", reminderNotice: "Reminder Notice", customMsg: "Custom Notice Message", canNotBeEmpty: "can Not Be Empty", copy: "Copy" }, process: { processInitiator: "Process Initiator", processInitiatorRole: "Process Initiator Role", processInitiatorDepartment: "ProcessInitiator Department", processInitiatorSuperiorDepartment: "Process Initiator Superior Ddepartment", processInitiatorTopDepartment: "Process Initiator Top Department", processInitiatorWorkingGroup: "Process Initiator Working Group", nameOfTheDirectSuperiorOfTheProcessInitiator: "Name Of The Direct Superior Of The Process Initiator", processInitiatorsDirectSuperiorDepartment: "Process initiator`s Direct Superior Department", directSuperiorRoleOfProcessInitiator: "Direct Superior Role Of Process Initiator", ProcessInitiatorsImmediateSuperiorWorkingGroup: "Process Initiator`s Immediate Superior Working Group", nameOfCurrentHandler: "Name Of Current Handler", currentHandlerRole: "Current Handler Role", currentHandlerDepartment: "Current Handler Department", currentHandlerSuperiorDepartment: "Current Handler`s Superior Department", topDepartmentOfCurrentHandler: "Top Department Of current Handler", currentHandlerWorkingGroup: "Current Handler Working Group", nameOfTheImmediateSuperiorOfTheCurrentHandler: "Name Of The Immediate Superior Of The Current Handler", currentHandlerDirectSuperiorDepartment: "Current handler`s Direct Superior Department", currentManagerDirectSuperiorRole: "Current Manager`s Direct Superior Role", workingGroupDirectlyUnderTheCurrentHandler: "Working Group Directly Under The Current Handler", topDepartments: "Top Departments", approvalResults: "Approval Results", totalNnumberOfPersonsWhoDisagreeWithTheCountersignature: "Total Number O Persons Who Disagree With The Countersignature", totalNumberOfCountersignedAndAgreedPersonnel: "Total Number Of Countersigned And Agreed Personnel", percentageOfPersonsWhoDisagreeWithTheCountersignature: "Percntage Of Persons Who Disagree With The Countersignature", percentageOfCountersignedAndAgreedPersonnel: "Percentage Of Countersigned And Agreed Personnel", percentageOfAbstentions: "Percentage Of Abstentions", percentageOfVotesAgainst: "Percentage Of Votes Against", percentageOfAffirmativeVotes: "Percentage Of Affirmative Votes", totalNumberOfAbstentions: "Total Number Of Abstentions", totalVotesAgainst: "Total Votes Against", totalNumberOfAffirmativeVotes: "Total Number Of Affirmative Votes", standardFields: "Standard Fields", perhaps: "Perhaps", also: "Also", greaterThan: "Greater Than", lessThan: "Less Than", beEqualTo: "Be Equal To", notGreaterThan: "Not Greater Than", notLessThan: "Not Less Than", notEqualTo: "Not Equal To", contain: "Contain", notIncluded: "Not Included", laterThan: "Later Than", earlierThan: "Earlier Than", noLaterThan: "No Later Than", noEarlierThan: "No Earlier Than", handlingTimeOfThisLink: "Handling Time Of This Link", handlerIDOfThisLink: "Handler ID Of This Link", currentHandlerPrincipalDepartmentID: "Current Handler Principal Department ID", iDOfTheImmediateSuperiorOfTheCurrentHandler: "ID Of The Immediate Superior Of The Current Handler", iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler: "ID Of The Superior Department Directly Under The Current Handler", loginNameOfTheHandlerInThisLink: "Login Name Of The Handler In This Link", NameOfCurrentHandler: "Name Of Current Handler", CurrentHandlerDepartment: "Current Handler Department", CurrentHandlerDepartmentID: "Current Handler Department ID", CurrentManagersPrincipalDepartment: "Current Manager`s Principal Department", iDOfSsuperiorDepartmentOfCurrentHandler: "ID Of Superior Department Of Current Handler", CurrentHandlersSuperiorDepartment: "Current Handler`s Superior Department", TopDepartmentOfCurrentHandler: "Top Department Of Current Handler", TopDepartmentIDOfCurrentHandler: "Top Department ID Of Current Handler", CurrentHandlerRole: "Current Handler Role", CurrentHandlerRoleID: "Current Handler Role ID", CurrentHandlerWorkingGroupID: "Current Handler Working Group ID", LoginNameOfTheImmediateSuperiorOfTheCurrentHandler: "Login Name Of The Immediate Superior Of The Current Handler", currentHandlersDirectSuperiorDepartment: "Current handler`s Direct Superior Department", currentManagersDirectSuperiorDepartment: "Current Manager`s Direct Superior Department", currentManagersDirectSuperiorRole: "Current manager`s Direct Superior Role", currentHandlersDirectSuperiorRoleID: "Current Handler`s Direct Superior Role ID", currentManagersDirectSuperiorWork: "Current Manager`s Direct Superior Work", iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler: "ID Of The Working Group Directly Under The Current Handler", operationsPerformedInThisPhase: "Operations Performed In This Phase", handlerIDOfThePreviousLink: "Handler ID Of The Previous Link", lastLinkHandlerLogin: "Last Link Handler Login", nameOfHandlerInThePreviousLink: "Name Of Handler In The Previous Link", currentManagersIdDirectlyUnderTheSuperior: "Current Manager`s Id Directly Under The Ssuperior", appointmentOfHandlerInThePreviousLink: "Appointment Of Handler In The Previous Link", personSpecifiedInFormField: "Person Specified In Form Field", filterByCriteria: "Filter by Criteria", additionalConditions: "Additional Conditions", handlingYyThePersonnelOfTheDepartmentOfTheInitiator: "Handling By The Personnel Of The Department Of The Initiator", personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling: "Personnel Of The Department Where The Initiator Works Participate In The Handling", selectSpecificHandler: "Select Specific Handler", selectOneFromDept: "Only one person is required to handle the same department", generateOneInstanceFromDept: "Generate an instance from the same department", selectionMethod: "Selection Method", manualSelection: "Manual Selection", autoSelect: "Auto Select", callbackURL: "Callback URL", cannotBeEmpty: "Cannot Be Empty", selectURL: "Select URL", fieldName: "Field Name", processAdministrator: "Process Administrator", currentHandler: "Current Handler", allHandlingPersonnel: "All Handling Personnel", designatedPersonnel: "Designated Personnel", listOfDesignatedPersons: "List Of Designated Persons", processName: "Process Name", processCode: "Process Code", creater: "Creater", correspondingForm: "Corresponding Form", processType: "Process Type", system: "System", affiliatedBranch: "Affiliated Branch", customCategory: "Custom Category", initiationProcess: "Initiation Process", deleteProcess: "Delete Process", cancelProcess: "Cancel Process", endProcess: "End Process", pauseProcess: "Pause Process", continueTheProcess: "Continue The Process", jumpLink: "Jump Link", modificationHandler: "Modification Handler", addHandler: "Add Handler", decreaseOofHandler: "Decrease Of Handler", appointedTask: "Appointed Task", returnTask: "Return Task", retrieveTask: "Retrieve Task", processTaskParameterSettings: "Process Task Parameter Settings", uRLForProcessingTask: "URL For Processing Task", parametersForReceivingTaskID: "Parameters For Receiving Task ID", viewFormParameterSettings: "View Form Parameter Settings", viewTheURLOfTheForm: "View The URL Of The Form", parametersOfReceivingEntityID: "Parameters Of Receiving Entity ID", emergencyTreatmentParameterSetting: "Emergency Treatment Parameter Setting", uRLOfEmergencyHandling: "URL Of Emergency Handling", initiateProcessParameterSettings: "Initiate Process Parameter Settings", uRLOfTheInitiatingProcess: "URL Of The Initiating Process", parametersForReceivingProcessName: "Parameters For Receiving Process Name", customParameterValue: "Custom Parameter Value", ViewFlowHistoryPersonnel: "View Flow History Personnel", ViewCountersignatureResultPersonnel: "View Countersignature Result Personnel", ViewVotingResultsBy: "View Voting Results By", name: "Name", code: "Code", subprocess: "Subprocess", transferValueFromMainFormToSubForm: "Transfer Value From Main Form To Sub Form", fieldsOfTheMainForm: "Fields Of The Main Form", fieldsOfSubform: "Fields Of Subform", subformReturnsResultsToMainForm: "Subform Returns Results To Main Form", eventsTriggeredBeforeStartingASubprocess: "Events Triggered Before Starting A Subprocess", triggerSubprocessEndEvent: "Trigger Subprocess End Event", setTheHandlerOfTheFirstPhaseOfTheSubProcess: "Set The Handler Of The First Phase Of The Sub Process", keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly: "Keep The Handler Unchanged When The Target Link Is Handled Repeatedly", branchingCondition: "Branching Condition", processProperties: "Process Properties", basicProperties: "Basic Properties", permissionSettings: "Permission Settings", notificationSettings: "Notification Settings", sendNotificationAfterProcessEnds: "Send Notification After Process Ends", reminderSettings: "Notice And Reminder Settings", parameterSsetting: "Parameter Setting", event: "Event", processVariables: "Process Variables", propertiesOfSubprocesses: "Properties Of Subprocesses", settingOfHandler: "Setting Of Handler", eventProcessing: "Event Processing", sponsorsImmediateSuperior: "Sponsor`s Immediate Superior", sponsorsSuperiorDepartment: "Sponsor`s Superior Department", sponsorTopDepartment: "Sponsor Top Department", superiorDepartmentDirectlyUnderTheInitiator: "Superior Department Directly Under The Initiator", sponsorsImmediateSuperiorWorkingGroup: "Sponsor`s Immediate Superior Working Group", lastLinkHandlerDepartment: "Last Link Handler Department", previousLinkHandlerSuperiorDepartment: "Previous Link Handler Superior Department", topDepartmentOfHandlerInThePreviousLink: "Top Department Of Handler In The Previous Link", previousLinkHandlersDirectSuperiorDepartment: "Previous Link Handler`s Direct Superior Department", previousLinkHandlerWorkingGroup: "Previous Link Handler Working Group", workingGroupDirectlyUnderTheManagerInThePreviousLink: "Working Group Directly Under The Manager In The Previous Link", getSubprocessEntityBean: "Get subprocess entity bean", getSubprocessEntityBeanPlaceholder: "The format is:xxxServiceImpl,for example:exampleServiceImpl", getSubprocessEntityBeanInfo: 'The bean needs to implement the interface "tech.imatrix.wf.core.OnStartingSubProcess"', isNull: "Is Null", isNotNull: "Is Not Null", defaultMailTemplate: "Default Mail Template", defaultCommonTemplate: "Default Common Template", trustTask: "Trust Task", subprocessIsSharedForm: "Main process and subprocess shared form", generateForParttimeDept: "Generate tasks for part-time department personnel", deptSpecifiedInFormField: "Dept Specified In Form Field", activateOneVoteVeto: "Activate one vote veto", systemVersion: "System Version", tableCode: "DataTable Name", deptApprover: "Authorized approver of the drafting department", superiorDeptApprover: "Drafted by the authorized approver of the superior department", superiorDeptLeader: "Drafted by the superior department head" }, task: { newCc: "New Cc", judge: "Judge", end: "End", branch: "Branch", manualJudgment: "Manual Judgment", newTask: "New Task", converge: "Converge", newProcess: "New Process", start: "Start", subprocess: "Subprocess", needToBeUrged: "Need To Be Urged", urgingMethod: "Urging Method", timeLimitForHandling: "Time Limit For Handling", day: "Day", urgingInterval: "Urging Interval", hour: "Hour", alwaysUrging: "Always Urging", limitedUrging: "Limited Urging", timesOfUrging: "Times Of Urging", includingHandoverPersonnel: "Including Handover Personnel", handoverPersonnel: "Handover Personnel", includeNotifyPeople: "Include Notify People", name: "Name", code: "Code", taskTitle: "Task Title", emailNotification: "Email Notification", handlingPage: "Handling Page", remarks: "Remarks", allowViews: "Allow Views", allowToViewCountersignatureResults: "Allow To View Countersignature Results", allowToViewVotingResults: "Allow To View Voting Results", allowToViewFlowHistory: "Allow To View Flow History", allowFormsToPrint: "Allow Forms To Print", attachmentAuthority: "Attachment Authority", downloadAttachment: "Download Attachment", bodyPermission: "Body Permission(Temporarily Closed)", additionalConditions: "Additional Conditions", setConditions: "Set Conditions", HandlingMethod: "Handling Method", editorial: "Editorial", approvalType: "Approval Type", countersign: "Countersign", voting: "Voting", anyOneCanHandleIt: "Any One Can Handle It", forAll: "For All", passRate: "Pass Rate", modifyOperationName: "Modify Operation Name", operationType: "Operation Type", visibleOrNot: "Visible Or Not", save: "Save", submission: "Submission", agree: "Agree", disagree: "Disagree", favor: "Favor", opposition: "Opposition", waiver: "Waiver", receive: "Receive", giveUp: "Give Up", additionalSignature: "Additional Signature", reductionOfSignature: "Reduction Of Signature", assignTask: "Assign Task", copyTask: "Copy Task", retrieveTask: "Retrieve Task", exportReport: "Export Report", readTask: "Read", selectEditableField: "Select Editable Field", optionalField: "Optional Field", selectedFields: "Selected Fields", editingMethod: "Editing Method", propertyName: "Property Name", condition: "Condition", nothing: "Nothing", beforeSubmission: "Before Submission", executionURL: "Execution URL", errorMessage: "Error Message", afterSubmission: "After Submission", allowEditingForms: "Allow Editing Forms", commentsAllowed: "Comments Allowed", commentsAreRequired: "Comments Are Required", deletePermission: "Delete Permission", addAttachment: "Add Attachment", deleteAttachment: "Delete Attachment", propertiesOfCCTask: "Properties Of CC Task", basicProperties: "Basic Properties", settingOfHandler: "Setting Of Handler", permissionSettings: "Permission Settings", attributeOfConditionJudgment: "Attribute Of Condition Judgment", allBranchFlows: "All Branch Flows", targetLink: "Target Link", propertiesOfBranches: "Properties Of Branches", attributesOfManualJudgment: "Attributes of manual Judgment", linkAttribute: "Link Attribute", autoFillInFieldSettings: "Auto Fill In Field Settings", reminderSettings: "Notice And Reminder Settings", eventProcessing: "Event Processing", linkVariable: "Link Variable", convergedProperties: "Converged Properties", humanTask: "Human Task", conditionJudgment: "Condition Judgment", cCtask: "CC Task", canItBeRejected: "Can It Be Rejected", selectNoticeTemplate: "Select Notice Template", selectMailTemplate: "Select Email Template", selectTemplate: "Select Template", autoTask: "Auto Task", newAutoTask: "New Auto Task", propertiesOfAutoTask: "Properties Of Auto Task", custombeanName: "Custom Bean Name", baseField: "Base Field", reminderTipTemplateMsg: "Template Description:", reminderTipRemindMsg: "Reminder Description:", reminderTipTemplateNotice: 'Notification templates: DingTalk, Enterprise WeChat, Feishu, and Customization all use notification templates. When using email, if "email template" is not selected, use notification template', reminderTipTemplateEmail: "Email Template: Customized Email Template", reminderTipRemindImmediately: "The reminder method, notification template, email template, maximum number of reminders, notification method, notification personnel, and transfer personnel will take effect immediately after modification", reminderTipRemindHistory: "The processing time limit, processing time granularity (days/hours), reminder interval, reminder interval time granularity (days/hours) are only effective for newly initiated processes. If historical data also requires the latest configuration, please contact the operation and maintenance personnel to adjust" }, transition: { flowProperties: "Flow Properties", basicProperties: "Basic Properties", notificationSettings: "Notification Settings", sendNotificationAfterFlow: "Send Notification After Flow", autoFillInFieldSettings: "Auto Fill In Field Settings", eventProcessing: "Event Processing", triggerFlowThroughEvent: "Trigger Flow Through Event", beanName: "Bean Name" }, condition: { combinationCondition: "Combination Condition", currentUserId: "Current User ID", currentUserLogin: "Current User Login", currentUserName: "Current User Name", fillInManually: "Fill In Manually", environmentVariable: "Environment Variable", databaseFields: "Database fields", requestParameters: "Request Parameters", currentTime: "Current Time", currentDate: "Current Date", currentTransactor: "Current Transactor", currentTransactorName: "Current Transactor Name", currentTransactorId: "Current Transactor Id", currentTransactorMainDepartmentId: "Current Transactor Main Department Id", currentTransactorMainDepartment: "Current Transactor Main Department", currentTransactorRoleId: "Current Transactor Role Id", currentTransactorRole: "Current Transactor Role", currentTransactorWorkGroupId: "Current Transactor Work Group Id", currentTransactorWorkGroup: "Current Transactor Work Group", whenTheVariableIsEmpty: "When The Variable Is Empty", ignore11: "Ignore (1 = 1)", nonConformity: "Non Conformity (1 < > 1)", currentHandler: "Current Handler", currentTaskClient: "Current Task Client", currentAssignor: "Current Assignor", rowsCanBeAdded: "Rows Can Be Added", deleteLine: "Delete Line", modifiableHistoricalData: "Modifiable Historical Data", controlByField: "Control By Field", allReadOnly: "All Read Only", allRequired: "All Required", mainTableField: "Main Table Field", linkName: "Link Name", linkCode: "Link Code", taskFields: "Task Fields", systemParameter: "System Parameter", personnelScope: "Personnel Scope", mainTableConditions: "Main Table Conditions", subtableCondition: "Subtable Condition", accessControl: "Access Control", formBindingModel: "Form Binding Model", allFields: "All Fields", tableDataNotEmpty: "Table Data Not Empty" } } }, d = { workflowEditorPublicModel: { add: "添加", insert: "插入", delete: "删除", viewConditions: "查看条件", agree: "同意", disagree: "不同意", andOr: "并且/或者", mail: "邮件", message: "短信", App: "App", dingding: "钉钉", qiwei: "企业微信", feishu: "飞书", determine: "确定", cancel: "取消", choice: "选择", empty: "清空", save: "保存", export: "导出", open: "打开", return: "返回", flowChart: "流程图", close: "关闭", selectPage: "选择页面", search: "查询", adminSave: "管理员保存", tipTitle: "提示", i18nSet: "国际化设置", i18nZh: "中文", i18nEn: "英文", i18nKey: "国际化key", subprocessTitle: "子流程流转历史", custom: "自定义", enable: "启用" }, workflowEditorMessage: { requiredAndMustBeADate: "必填且必须为日期", requiredAndMustBeAnInteger: "必填且必须为整数", requiredAndMustBeDecimal: "必填且必须为小数", mustFill: "必填", recordLine: "第{row}行记录", pageRecordLine: "第{pageNum}页第{row}行记录", currentHandlingPersonnel: "当前办理人员", pleaseSelect: "请选择", pleaseSelectARow: "请选中一行", conditionsHaveNotBeenSet: "还未设置条件", viewConditions: "查看条件", fieldSettings: "字段设置", valueSetting: "值设置", pleaseEnterContent: "请输入内容", theFieldNameOrFieldValueInLineCannotBeEmpty: "第{row}行的字段名或者字段值不能为空", fieldNameCannotBeEmpty: "字段名不能为空", fieldValueCannotBeEmpty: "字段值不能为空", pleaseEnterASubject: "请输入主题", selectStandardFields: "选择标准字段", pleaseEnterTheRoleName: "请输入角色名称", queryResultIsEmpty: "查询结果为空", selectRole: "选择角色", enterText: "输入文字", selectField: "选择字段", pleaseSelectPersonnel: "请选择人员", pleaseSelectAValue: "请选择值", pleaseSelectAValueInTheCurrentTab: "请在当前页签中选中一个值", variableNameCannotBeEmpty: "变量名不能为空", variableValueCannotBeEmpty: "变量值不能为空", variableNameOrValueOnLineCannotBeEmpty: "第{row}行的变量名或者变量值不能为空", whenThereAreMultipleManagers: "多个办理人时", duplicateOperationTypeWithLinePleaseReselect: "与第{row}行的操作类型重复了,请重新选择", theOperationTypeOrNameInLineIsEmpty: "第{row}行的操作类型或者名称为空", readOnly: "只读", pleaseEnterFieldName: "请输入字段名", dataInLineCannotBeEmpty: "第{row}行的{data1}或{data2}不能为空", dataCannotBeEmpty: "{data}不能为空", theStartAndEndOfTheFlowDirectionCannotBeTheSame: "流向的起点和终点不能相同", onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows: "只有条件判断、分支以及人工判断才能有多条外出流向", startAndEndNodesCannotBeConnectedDirectly: "开始节点和结束节点不能直接相连", endNodeCannotHaveOutFlowDirection: "结束节点不能有外出流向", itIsTheSameAsTheExistingLink: "与已有环节:{name}的编码重复", updateSuccessful: "更新成功", savedSuccessfully: "保存成功", exportSucceeded: "导出成功", pleaseSelectRole: "请选择角色", subTableMustInputDatas: "[{subTable}] 子表必须录入数据", pleaseEnterTheNameOrCode: "请输入字段名或字段描述", updateVersionSuccessful: "成功更新版本", addVersionSuccessful: "成功增加版本", adminSaveTip: "有以下几种情况时必须增加版本:", adminSaveTip1: "1、修改了流程名称或编码", adminSaveTip2: "2、修改了节点名称或编码", adminSaveTip3: "3、增加了节点或流向", adminSaveTip4: "4、移除了节点或流向", adminSaveTip5: "请选择“增加版本”或“更新当前版本”?", updateVersion: "更新当前版本", addVersion: "增加版本", pleaseInputCode: "请先输入编码,再做国际化配置", blankFieldNameOrValue: "字段名或值有空白", enabledSuccessfully: "启用成功", additionalParam: "请求参数" }, workflowEditor: { main: { tacheType: "环节类型", straightLine: "直线", curveLine: "曲线", brokenLine: "折线" }, common: { remove: "移除", attribute: "属性", fieldName: "字段名(*)", operator: "操作符", value: "值(*)", name: "字段名", fieldValue: "字段值", separator: "分隔符", fillInMethod: "填写方式", cover: "覆盖", append: "追加", insertToFront: "插入到最前", fillInTime: "填写时间", fillInBeforeHandling: "办理前填写", fillInAfterHandling: "办理后填写", type: "类别(*)", user: "用户", role: "角色", department: "部门", workgroup: "工作组", selectFormField: "选择表单字段", notificationMethod: "通知方式", addressee: "收件人", theme: "主题", content: "内容", notifyPersonnel: "通知人员", selectusers: "选择用户", selectDepartment: "选择部门", selectTeam: "选择工作组", selectRole: "选择角色", organizationStructure: "组织结构", formField: "表单字段", variableName: "变量名", variableValue: "变量值", selectField: "选择字段", taskNotice: "待办通知", reminderNotice: "催办通知", customMsg: "自定义消息内容", canNotBeEmpty: "不能为空", copy: "复制" }, process: { processInitiator: "起草人", processInitiatorRole: "起草人角色", processInitiatorDepartment: "起草人部门", processInitiatorSuperiorDepartment: "起草人上级部门", processInitiatorTopDepartment: "起草人顶级部门", processInitiatorWorkingGroup: "起草人工作组", nameOfTheDirectSuperiorOfTheProcessInitiator: "起草人直属上级姓名", processInitiatorsDirectSuperiorDepartment: "起草人直属上级部门", directSuperiorRoleOfProcessInitiator: "起草人直属上级角色", ProcessInitiatorsImmediateSuperiorWorkingGroup: "起草人直属上级工作组", nameOfCurrentHandler: "当前办理人姓名", currentHandlerRole: "当前办理人角色", currentHandlerDepartment: "当前办理人部门", currentHandlerSuperiorDepartment: "当前办理人上级部门", topDepartmentOfCurrentHandler: "当前办理人顶级部门", currentHandlerWorkingGroup: "当前办理人工作组", nameOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级姓名", currentHandlerDirectSuperiorDepartment: "当前办理人直属上级部门", currentManagerDirectSuperiorRole: "当前办理人直属上级角色", workingGroupDirectlyUnderTheCurrentHandler: "当前办理人直属上级工作组", topDepartments: "顶级部门", approvalResults: "审批结果", totalNnumberOfPersonsWhoDisagreeWithTheCountersignature: "会签不同意人员总数", totalNumberOfCountersignedAndAgreedPersonnel: "会签同意人员总数", percentageOfPersonsWhoDisagreeWithTheCountersignature: "会签不同意人员百分比", percentageOfCountersignedAndAgreedPersonnel: "会签同意人员百分比", percentageOfAbstentions: "弃权票百分比", percentageOfVotesAgainst: "反对票百分比", percentageOfAffirmativeVotes: "赞成票百分比", totalNumberOfAbstentions: "弃权票总数", totalVotesAgainst: "反对票总数", totalNumberOfAffirmativeVotes: "赞成票总数", standardFields: "标准字段", perhaps: "或者", also: "并且", greaterThan: "大于", lessThan: "小于", beEqualTo: "等于", notGreaterThan: "不大于", notLessThan: "不小于", notEqualTo: "不等于", contain: "包含", notIncluded: "不包含", laterThan: "晚于", earlierThan: "早于", noLaterThan: "不晚于", noEarlierThan: "不早于", handlingTimeOfThisLink: "本环节办理时间", handlerIDOfThisLink: "本环节办理人id", currentHandlerPrincipalDepartmentID: "当前办理人正职部门id", iDOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级id", iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler: "当前办理人直属上级正职部门id", loginNameOfTheHandlerInThisLink: "本环节办理人登录名", NameOfCurrentHandler: "当前办理人姓名", CurrentHandlerDepartment: "当前办理人部门", CurrentHandlerDepartmentID: "当前办理人部门id", CurrentManagersPrincipalDepartment: "当前办理人正职部门", iDOfSsuperiorDepartmentOfCurrentHandler: "当前办理人上级部门id", CurrentHandlersSuperiorDepartment: "当前办理人上级部门", TopDepartmentOfCurrentHandler: "当前办理人顶级部门", TopDepartmentIDOfCurrentHandler: "当前办理人顶级部门id", CurrentHandlerRole: "当前办理人角色", CurrentHandlerRoleID: "当前办理人角色id", CurrentHandlerWorkingGroupID: "当前办理人工作组id", LoginNameOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级登录名", currentHandlersDirectSuperiorDepartment: "当前办理人直属上级部门", currentManagersDirectSuperiorDepartment: "当前办理人直属上级正职部门", currentManagersDirectSuperiorRole: "当前办理人直属上级角色", currentHandlersDirectSuperiorRoleID: "当前办理人直属上级角色id", currentManagersDirectSuperiorWork: "当前办理人直属上级工作", iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler: "当前办理人直属上级工作组id", operationsPerformedInThisPhase: "本环节执行的操作", handlerIDOfThePreviousLink: "上一环节办理人id", lastLinkHandlerLogin: "上一环节办理人登录名", nameOfHandlerInThePreviousLink: "上一环节办理人姓名", currentManagersIdDirectlyUnderTheSuperior: "当前办理人直属上级部门id", appointmentOfHandlerInThePreviousLink: "上一环节办理人指定", personSpecifiedInFormField: "表单字段中指定的人员", filterByCriteria: "按条件筛选", additionalConditions: "附加条件", handlingYyThePersonnelOfTheDepartmentOfTheInitiator: "起草人所在部门人员办理", personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling: "起草人所在部门人员参与办理", selectSpecificHandler: "选择具体办理人", selectOneFromDept: "同一部门仅需一人办理", generateOneInstanceFromDept: "同一部门生成一个实例", selectionMethod: "选择方式", manualSelection: "人工选择", autoSelect: "自动选择", callbackURL: "回调URL", cannotBeEmpty: "不能为空", selectURL: "选人URL", fieldName: "字段名称", processAdministrator: "流程管理员", currentHandler: "当前办理人", allHandlingPersonnel: "所有办理人员", designatedPersonnel: "指定人员", listOfDesignatedPersons: "指定人员列表", processName: "流程名称", processCode: "流程编码", creater: "创建人", correspondingForm: "对应表单", processType: "流程类型", system: "所属系统", affiliatedBranch: "所属分支机构", customCategory: "自定义类别", initiationProcess: "发起流程", deleteProcess: "删除流程", cancelProcess: "取消流程", endProcess: "结束流程", pauseProcess: "暂停流程", continueTheProcess: "继续流程", jumpLink: "跳转环节", modificationHandler: "修改办理人", addHandler: "增加办理人", decreaseOofHandler: "减少办理人", appointedTask: "指派任务", returnTask: "退回任务", retrieveTask: "取回任务", processTaskParameterSettings: "办理任务参数设置", uRLForProcessingTask: "办理任务的url", parametersForReceivingTaskID: "接收任务id的参数", viewFormParameterSettings: "查看表单参数设置", viewTheURLOfTheForm: "查看表单的url", parametersOfReceivingEntityID: "接收实体id的参数", emergencyTreatmentParameterSetting: "应急处理参数设置", uRLOfEmergencyHandling: "应急处理的url", initiateProcessParameterSettings: "发起流程参数设置", uRLOfTheInitiatingProcess: "发起流程的url", parametersForReceivingProcessName: "接收流程名称的参数", customParameterValue: "自定义参数值", ViewFlowHistoryPersonnel: "查看流转历史人员", ViewCountersignatureResultPersonnel: "查看会签结果人员", ViewVotingResultsBy: "查看投票结果人员", name: "名称", code: "编码", subprocess: "子流程", transferValueFromMainFormToSubForm: "主表单给子表单传值", fieldsOfTheMainForm: "主表单的字段", fieldsOfSubform: "子表单的字段", subformReturnsResultsToMainForm: "子表单返回结果给主表单", eventsTriggeredBeforeStartingASubprocess: "启动子流程前事件", triggerSubprocessEndEvent: "触发子流程结束事件", setTheHandlerOfTheFirstPhaseOfTheSubProcess: "设置子流程第一环节办理人", keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly: "目标环节重复办理时保持办理人不变", branchingCondition: "分支条件", processProperties: "流程属性", basicProperties: "基本属性", permissionSettings: "权限设置", notificationSettings: "通知设置", sendNotificationAfterProcessEnds: "流程结束后发送通知", reminderSettings: "通知与催办", parameterSsetting: "参数设置", event: "事件", processVariables: "流程变量", propertiesOfSubprocesses: "子流程的属性", settingOfHandler: "办理人设置", eventProcessing: "事件处理", sponsorsImmediateSuperior: "起草人直属上级", sponsorsSuperiorDepartment: "起草人上级部门", sponsorTopDepartment: "起草人顶级部门", superiorDepartmentDirectlyUnderTheInitiator: "起草人直属上级部门", sponsorsImmediateSuperiorWorkingGroup: "起草人直属上级工作组", lastLinkHandlerDepartment: "上一环节办理人部门", previousLinkHandlerSuperiorDepartment: "上一环节办理人上级部门", topDepartmentOfHandlerInThePreviousLink: "上一环节办理人顶级部门", previousLinkHandlersDirectSuperiorDepartment: "上一环节办理人直属上级部门", previousLinkHandlerWorkingGroup: "上一环节办理人工作组", workingGroupDirectlyUnderTheManagerInThePreviousLink: "上一环节办理人直属上级工作组", getSubprocessEntityBean: "获得子流程实体bean", getSubprocessEntityBeanPlaceholder: "格式为:xxxServiceImpl,例如:exampleServiceImpl", getSubprocessEntityBeanInfo: "该bean需要实现接口tech.imatrix.wf.core.OnStartingSubProcess", isNull: "等于Null", isNotNull: "不等于Null", defaultMailTemplate: "默认邮件模板", defaultCommonTemplate: "默认通知模板", trustTask: "委托任务", subprocessIsSharedForm: "主子流程共用表单", generateForParttimeDept: "为兼职部门人员生成任务", deptSpecifiedInFormField: "表单字段中指定的部门", activateOneVoteVeto: "一票否决", systemVersion: "系统版本", tableCode: "对应数据表", deptApprover: "起草人部门授权审批人", superiorDeptApprover: "起草人上级部门授权审批人", superiorDeptLeader: "起草人上级部门负责人" }, task: { newCc: "新抄送", judge: "判断", end: "结束", branch: "分支", manualJudgment: "人工判断", newTask: "新任务", converge: "汇聚", newProcess: "新流程", start: "开始", subprocess: "子流程", needToBeUrged: "需要催办", urgingMethod: "催办方式", timeLimitForHandling: "办理时限", day: "天", urgingInterval: "催办间隔", hour: "小时", alwaysUrging: "一直催办", limitedUrging: "限次催办", timesOfUrging: "催办次数", includingHandoverPersonnel: "包含移交人员", handoverPersonnel: "移交人员", includeNotifyPeople: "包含通知人员", name: "名称", code: "编码", taskTitle: "任务标题", emailNotification: "邮件通知", handlingPage: "办理页面", remarks: "备注", allowViews: "允许查看意见", allowToViewCountersignatureResults: "允许查看会签结果", allowToViewVotingResults: "允许查看投票结果", allowToViewFlowHistory: "允许查看流转历史", allowFormsToPrint: "允许打印表单", attachmentAuthority: "附件权限", downloadAttachment: "下载附件", bodyPermission: "正文权限(暂不开放)", additionalConditions: "附加条件", setConditions: "设置条件", HandlingMethod: "办理方式", editorial: "编辑式", approvalType: "审批式", countersign: "会签式", voting: "投票式", anyOneCanHandleIt: "任意一人办理即可", forAll: "所有人均需办理", passRate: "通过率", modifyOperationName: "修改操作名称", operationType: "操作类型", visibleOrNot: "是否可见", save: "保存", submission: "提交", agree: "同意", disagree: "不同意", favor: "赞成", opposition: "反对", waiver: "弃权", receive: "领取", giveUp: "放弃", additionalSignature: "加签", reductionOfSignature: "减签", assignTask: "指派", copyTask: "抄送", retrieveTask: "取回", exportReport: "导出报告", readTask: "阅", selectEditableField: "选择可编辑字段", optionalField: "可选字段", selectedFields: "已选字段", editingMethod: "编辑方式", propertyName: "属性名", condition: "条件", nothing: "无", beforeSubmission: "提交前", executionURL: "执行url", errorMessage: "出错信息", afterSubmission: "提交后", allowEditingForms: "允许编辑表单", commentsAllowed: "允许填写意见", commentsAreRequired: "必须填写意见", deletePermission: "删除权限", addAttachment: "添加附件", deleteAttachment: "删除附件", propertiesOfCCTask: "抄送任务的属性", basicProperties: "基本属性", settingOfHandler: "办理人设置", permissionSettings: "权限设置", attributeOfConditionJudgment: "条件判断的属性", allBranchFlows: "所有分支流向", targetLink: "目标环节", propertiesOfBranches: "分支的属性", attributesOfManualJudgment: "人工判断的属性", linkAttribute: "环节属性", autoFillInFieldSettings: "自动填写字段设置", reminderSettings: "通知与催办", eventProcessing: "事件处理", linkVariable: "环节变量", convergedProperties: "汇聚的属性", humanTask: "人工任务", conditionJudgment: "条件判断", cCtask: "抄送任务", canItBeRejected: "是否可驳回", selectNoticeTemplate: "选择通知模板", selectMailTemplate: "选择邮件模板", selectTemplate: "选择模板", autoTask: "自动任务", newAutoTask: "新自动任务", propertiesOfAutoTask: "自动任务的属性", custombeanName: "自定义bean", baseField: "基础字段", reminderTipTemplateMsg: "模板说明:", reminderTipRemindMsg: "催办说明:", reminderTipTemplateNotice: "通知模板:钉钉、企微、飞书、自定义都使用通知模板。邮件方式时,如果没有选“邮件模板”,则使用通知模板", reminderTipTemplateEmail: "邮件模板:邮件方式特制模板", reminderTipRemindImmediately: "催办方式、通知模板、邮件模板、催办次数、通知方式、通知人员、移交人员 修改后立即生效", reminderTipRemindHistory: "办理时限、办理时限的时间粒度(天/小时)、催办间隔、催办间隔的时间粒度(天/小时)仅对新发起的流程生效,如历史数据也需要应用最新配置,请联系运维人员调整" }, transition: { flowProperties: "流向属性", basicProperties: "基本属性", notificationSettings: "通知设置", sendNotificationAfterFlow: "流过后发送通知", autoFillInFieldSettings: "自动填写字段设置", eventProcessing: "事件处理", triggerFlowThroughEvent: "触发流过事件", beanName: "bean名称" }, condition: { combinationCondition: "组合条件", currentUserId: "当前用户ID", currentUserLogin: "当前用户登录名", currentUserName: "当前用户姓名", fillInManually: "手动填写", environmentVariable: "环境变量", databaseFields: "数据库字段", requestParameters: "请求参数", currentTime: "当前时间", currentDate: "当前日期", currentTransactor: "当前用户登录名", currentTransactorName: "当前用户姓名", currentTransactorId: "当前用户id", currentTransactorMainDepartmentId: "当前用户部门id", currentTransactorMainDepartment: "当前用户部门名称", currentTransactorRoleId: "当前用户角色id", currentTransactorRole: "当前用户角色名称", currentTransactorWorkGroupId: "当前用户工作组id", currentTransactorWorkGroup: "当前用户工作组名称", whenTheVariableIsEmpty: "变量为空时", ignore11: "忽略(1=1)", nonConformity: "不符合(1<>1)", currentHandler: "当前办理人", currentTaskClient: "当前任务委托人", currentAssignor: "当前指派人", rowsCanBeAdded: "可添加行", deleteLine: "可删除行", modifiableHistoricalData: "可修改历史数据", controlByField: "按字段控制", allReadOnly: "全部只读", allRequired: "全部必填", mainTableField: "主表字段", linkName: "环节名称", linkCode: "环节编码", taskFields: "任务字段", systemParameter: "系统参数", personnelScope: "人员范围", mainTableConditions: "主表条件", subtableCondition: "子表条件", accessControl: "进行权限控制", formBindingModel: "表单绑定model", allFields: "全部字段", tableDataNotEmpty: "表格数据不为空" } } }, c = { en: s, cn: d }, m = l.createI18n({ locale: "cn", messages: c, legacy: false });
|
|
49
|
+
function u() {
|
|
50
|
+
return { attr: { id: "newHumanTask", name: m.global.t("workflowEditor.task.newTask") }, g: {}, basicProperties: { processingMode: { type: "EDIT", passRate: 0, moreTransactor: false, actions: { action: [] } }, taskCode: "", taskTitle: "", remark: "", mailNotice: false, taskUrl: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, permissionSettings: { editForm: { permission: false, field: [], subTablePermission: [{ tableName: "sub_table1", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }, { tableName: "sub_table2", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } }, autoFilledFields: { field: [] }, reminder: null, events: { afterComplete: false }, variables: { variable: [] } };
|
|
51
|
+
}
|
|
52
|
+
function p() {
|
|
53
|
+
return window.$store;
|
|
54
|
+
}
|
|
55
|
+
function h() {
|
|
56
|
+
return window.$locale ? m.locale = window.$locale : m.locale = "cn", m.global;
|
|
57
|
+
}
|
|
58
|
+
function f() {
|
|
59
|
+
return [{ name: "Start", label: h().t("workflowEditor.task.start"), icon: "start", type: "primary", class: "", round: true, width: 48, height: 48, color: "#67C23A" }, { name: "HumanTask", label: h().t("workflowEditor.task.humanTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#000" }, { name: "Decision", label: h().t("workflowEditor.task.conditionJudgment"), icon: "decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Fork", label: h().t("workflowEditor.task.branch"), icon: "fork", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Join", label: h().t("workflowEditor.task.converge"), icon: "join", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Subprocess", label: h().t("workflowEditor.task.subprocess"), icon: "subprocess", type: "warning", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "HumanDecision", label: h().t("workflowEditor.task.manualJudgment"), icon: "human-decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "CopyTask", label: h().t("workflowEditor.task.cCtask"), icon: "copy-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "AutoTask", label: h().t("workflowEditor.task.autoTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "End", label: h().t("workflowEditor.task.end"), icon: "end", type: "danger", class: "workflow-end-button", round: true, width: 48, height: 48, color: "#F56C6C" }];
|
|
60
|
+
}
|
|
61
|
+
function w(e2, t2) {
|
|
62
|
+
switch ("string" == typeof e2 && (e2 = function(e3) {
|
|
63
|
+
return p().getters["wfEditor/taches"].filter((t3) => t3.id === e3)[0];
|
|
64
|
+
}(e2)), t2) {
|
|
65
|
+
case "up":
|
|
66
|
+
case "top":
|
|
67
|
+
return { position: "up", x: e2.x + e2.width / 2, y: e2.y };
|
|
68
|
+
case "right":
|
|
69
|
+
return { position: "right", x: e2.x + e2.width, y: e2.y + e2.height / 2 };
|
|
70
|
+
case "down":
|
|
71
|
+
case "bottom":
|
|
72
|
+
return { position: "down", x: e2.x + e2.width / 2, y: e2.y + e2.height };
|
|
73
|
+
case "left":
|
|
74
|
+
return { position: "left", x: e2.x, y: e2.y + e2.height / 2 };
|
|
75
|
+
default:
|
|
76
|
+
return { position: "", x: e2.x, y: e2.y };
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function g(e2) {
|
|
80
|
+
const t2 = document.getElementById("svg").getScreenCTM();
|
|
81
|
+
return { x: (e2.clientX - t2.e) / t2.a, y: (e2.clientY - t2.f) / t2.d };
|
|
82
|
+
}
|
|
83
|
+
function C() {
|
|
84
|
+
!function() {
|
|
85
|
+
for (const e2 of p().getters["wfEditor/selectedTaches"])
|
|
86
|
+
e2.isSelected = false;
|
|
87
|
+
p().commit("wfEditor/setSelectedTaches", []);
|
|
88
|
+
}(), p().getters["wfEditor/selectedTransition"] && (p().getters["wfEditor/selectedTransition"].isSelected = false), p().commit("wfEditor/setSelectedTransition", null);
|
|
89
|
+
}
|
|
90
|
+
function b(e2) {
|
|
91
|
+
Object.getOwnPropertyNames(e2).forEach(function(t2) {
|
|
92
|
+
if ("object" == typeof e2[t2]) {
|
|
93
|
+
if (void 0 !== e2[t2]._text)
|
|
94
|
+
return void (e2[t2] = e2[t2]._text);
|
|
95
|
+
if (Object.keys(e2[t2]).length > 0)
|
|
96
|
+
b(e2[t2]);
|
|
97
|
+
else {
|
|
98
|
+
["variables", "events", "autoFilledFields"].indexOf(t2) < 0 && (e2[t2] = "");
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function k(e2, t2) {
|
|
104
|
+
t2 || (t2 = []), Array.isArray(t2) || (t2 = [t2]);
|
|
105
|
+
const o2 = p().getters["wfEditor/taches"];
|
|
106
|
+
for (const l2 of t2) {
|
|
107
|
+
const t3 = { id: l2.attr.id, name: l2.attr.name, x: l2.g.x, y: l2.g.y, width: l2.g.width, height: l2.g.height, type: e2, isSelected: false, ref: l2 };
|
|
108
|
+
o2.push(t3);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function V(e2) {
|
|
112
|
+
e2 && (k("HumanTask", e2.humanTask), k("Decision", e2.decision), k("Fork", e2.fork), k("Join", e2.join), k("Subprocess", e2.subprocess), k("HumanDecision", e2.humanDecision), k("CopyTask", e2.copyTask), k("AutoTask", e2.autoTask), k("Start", e2.start), k("End", e2.end), function(e3, t2) {
|
|
113
|
+
t2 || (t2 = []), Array.isArray(t2) || (t2 = [t2]);
|
|
114
|
+
const o2 = p().getters["wfEditor/transitions"];
|
|
115
|
+
for (const e4 of t2) {
|
|
116
|
+
const t3 = e4.basicProperties.remark || "", l2 = { id: e4.attr.id, startJoint: { parent: v(e4.attr.from), position: e4.g.fromJoint }, endJoint: { parent: v(e4.attr.to), position: e4.g.toJoint }, isSelected: false, remark: t3, lineInfo: { type: e4.g.lineType, controlPoint: null }, ref: e4 };
|
|
117
|
+
if ("CurveLine" === e4.g.lineType && e4.g.coordinate) {
|
|
118
|
+
const t4 = e4.g.coordinate.split(",");
|
|
119
|
+
l2.lineInfo.controlPoint = { x: t4[0], y: t4[1] };
|
|
120
|
+
} else if ("BrokenLine" === e4.g.lineType && e4.g.coordinate) {
|
|
121
|
+
const t4 = e4.g.coordinate.split(";"), o3 = [];
|
|
122
|
+
t4.forEach((e5) => {
|
|
123
|
+
if ("" !== e5) {
|
|
124
|
+
const t5 = e5.split(",");
|
|
125
|
+
o3.push({ x: t5[0], y: t5[1] });
|
|
126
|
+
}
|
|
127
|
+
}), l2.lineInfo.controlPoint = o3;
|
|
128
|
+
}
|
|
129
|
+
o2.push(l2);
|
|
130
|
+
}
|
|
131
|
+
}(0, e2.transition));
|
|
132
|
+
}
|
|
133
|
+
function y(e2) {
|
|
134
|
+
return p().getters["wfEditor/transitions"].filter((t2) => t2.startJoint.parent.id === e2 || t2.ref.attr.from === e2);
|
|
135
|
+
}
|
|
136
|
+
function v(e2) {
|
|
137
|
+
const t2 = p().getters["wfEditor/taches"].filter((t3) => t3.ref.attr.id === e2);
|
|
138
|
+
return t2.length > 0 ? t2[0] : null;
|
|
139
|
+
}
|
|
140
|
+
function T(e2) {
|
|
141
|
+
return JSON.parse(JSON.stringify(e2));
|
|
142
|
+
}
|
|
143
|
+
function N(e2, t2) {
|
|
144
|
+
var o2;
|
|
145
|
+
(o2 = t2, p().getters["wfEditor/transitions"].filter((e3) => e3.endJoint.parent.id === o2 || e3.ref.attr.to === o2)).map((t3) => {
|
|
146
|
+
t3.ref.attr.to = e2, t3.ref.attr.id = "flow_" + t3.ref.attr.from + "_to_" + t3.ref.attr.to, t3.id = t3.ref.attr.id;
|
|
147
|
+
});
|
|
148
|
+
return y(t2).map((t3) => {
|
|
149
|
+
t3.ref.attr.from = e2, t3.ref.attr.id = "flow_" + t3.ref.attr.from + "_to_" + t3.ref.attr.to, t3.id = t3.ref.attr.id;
|
|
150
|
+
}), true;
|
|
151
|
+
}
|
|
152
|
+
function x(e2) {
|
|
153
|
+
const t2 = v(e2.formModel.id);
|
|
154
|
+
if (t2 && t2.id !== e2.id)
|
|
155
|
+
return e2.$alert(h().t("workflowEditorMessage.itIsTheSameAsTheExistingLink", { name: t2.name })), void (e2.formModel.id = e2.id);
|
|
156
|
+
N(e2.formModel.id, e2.id), e2.$emit("update:id", e2.formModel.id);
|
|
157
|
+
}
|
|
158
|
+
function E(e2, t2) {
|
|
159
|
+
let l2 = "";
|
|
160
|
+
if (e2.processI18n && e2.model.ref && e2.model.ref.basicProperties && e2.model.ref.basicProperties.i18nKey) {
|
|
161
|
+
const r2 = e2.model.ref.basicProperties.i18nKey, n2 = o.getLanguageWithLocale();
|
|
162
|
+
e2.processI18n[r2] && (l2 = e2.processI18n[r2][n2]), l2 || (l2 = t2);
|
|
163
|
+
} else
|
|
164
|
+
l2 = t2;
|
|
165
|
+
return l2;
|
|
166
|
+
}
|
|
167
|
+
const S = { newProcess: function() {
|
|
168
|
+
const e2 = u();
|
|
169
|
+
return e2.g = { x: 200, y: 150, width: 80, height: 40 }, { attr: { name: m.global.t("workflowEditor.task.newProcess"), code: "" }, properties: { basicProperties: { admin: "", formVersion: 1, formCode: "", processTypeCode: "", systemCode: "", creator: "", customType: "", branchCode: "" }, permissionSettings: { viewFlowHistory: "", viewSubscribeResult: "", viewVoteResult: "" }, reminder: null, parameterSettings: { doTask: { url: "", parameterName: "" }, viewForm: { url: "", parameterName: "" }, startProcess: { url: "", parameterName: "", parameterValue: "" }, handleEmergency: { url: "", parameterName: "" } }, events: { event: [] }, variables: { variable: [] } }, start: { attr: { id: "start" }, g: { x: 50, y: 50, width: 48, height: 48 } }, humanTask: e2, end: { attr: { id: "end" }, g: { x: 500, y: 300, width: 48, height: 48 } } };
|
|
170
|
+
}, newHumanTask: u, newDecision: function() {
|
|
171
|
+
return { attr: { id: "t3", name: m.global.t("workflowEditor.task.judge") }, g: {} };
|
|
172
|
+
}, newStart: function() {
|
|
173
|
+
return { attr: { id: "", name: m.global.t("workflowEditor.task.start") }, g: {} };
|
|
174
|
+
}, newEnd: function() {
|
|
175
|
+
return { attr: { id: "", name: m.global.t("workflowEditor.task.end") }, g: {} };
|
|
176
|
+
}, newTransition: function() {
|
|
177
|
+
return { attr: { id: "", from: "", to: "" }, g: {}, basicProperties: { remark: "", isOriginalUser: false, condition: "" }, inform: { informType: "mail", userCondition: "", subject: "", content: "" }, autoFilledFields: { field: [] }, onTransit: false };
|
|
178
|
+
}, newSubprocess: function() {
|
|
179
|
+
return { attr: { id: "", name: m.global.t("workflowEditor.task.subprocess"), taskTitle: "" }, g: {}, processCode: "", processVersion: "", events: { beforeStart: "", end: false }, transactorSettings: { userCondition: "", additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, parameters: { field: [] }, result: { field: [] } };
|
|
180
|
+
}, newFork: function() {
|
|
181
|
+
return { attr: { id: "", name: m.global.t("workflowEditor.task.branch") }, g: {} };
|
|
182
|
+
}, newJoin: function() {
|
|
183
|
+
return { attr: { id: "", name: m.global.t("workflowEditor.task.converge") }, g: {} };
|
|
184
|
+
}, newHumanDecision: function() {
|
|
185
|
+
return { attr: { name: m.global.t("workflowEditor.task.manualJudgment") }, g: {} };
|
|
186
|
+
}, newCopyTask: function() {
|
|
187
|
+
return { attr: { id: "", name: m.global.t("workflowEditor.task.newCc") }, g: {}, taskNotice: {}, basicProperties: { taskTitle: "", remark: "", taskUrl: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, events: {}, permissionSettings: { editForm: { permission: false, field: [] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } } };
|
|
188
|
+
}, newAutoTask: function() {
|
|
189
|
+
return { attr: { id: "", name: m.global.t("workflowEditor.task.newAutoTask") }, g: {}, taskNotice: {}, basicProperties: { beanName: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, events: {}, permissionSettings: { editForm: { permission: false, field: [] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } } };
|
|
190
|
+
} }, M = (e2, t2) => {
|
|
191
|
+
const o2 = e2.__vccOpts || e2;
|
|
192
|
+
for (const [e3, l2] of t2)
|
|
193
|
+
o2[e3] = l2;
|
|
194
|
+
return o2;
|
|
195
|
+
}, D = { class: "svg-icon", "aria-hidden": "true" }, F = ["xlink:href"];
|
|
196
|
+
const $ = M({ name: "IconSvg", props: { icon: { type: String, required: true } }, computed: { iconName() {
|
|
197
|
+
return `#icon-${this.icon}`;
|
|
198
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
199
|
+
return r.openBlock(), r.createElementBlock("svg", D, [r.createElementVNode("use", { "xlink:href": i2.iconName }, null, 8, F)]);
|
|
200
|
+
}]]), P = { name: "Toolbox", components: { IconSvg: $ }, data: () => ({ componentList: f() }), computed: { ...t.mapGetters("wfEditor", ["componentToDraw"]) }, methods: { ...t.mapMutations("wfEditor", ["setComponentToDraw"]), select(e2) {
|
|
201
|
+
this.setComponentToDraw(e2);
|
|
202
|
+
} } }, B = { style: { height: "calc(100vh - 98px)", "background-color": "#FFFFFF" } };
|
|
203
|
+
const O = M(P, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
204
|
+
const a2 = r.resolveComponent("icon-svg"), s2 = r.resolveComponent("el-button");
|
|
205
|
+
return r.openBlock(), r.createElementBlock("div", B, [r.createElementVNode("h3", null, r.toDisplayString(e2.$t("workflowEditor.main.tacheType")), 1), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.componentList, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3.name, type: e3.type, class: r.normalizeClass(e3.class), round: e3.round, onMousedown: (t3) => i2.select(e3.name) }, { default: r.withCtx(() => [r.createVNode(a2, { icon: e3.icon }, null, 8, ["icon"]), r.createTextVNode(" " + r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["type", "class", "round", "onMousedown"]))), 128))]);
|
|
206
|
+
}], ["__scopeId", "data-v-0d941719"]]), I = { name: "Joint", props: { parent: { type: Object, default: null }, position: { type: String, default: null } }, data: () => ({ isActivated: false }), computed: { ...t.mapGetters("wfEditor", ["transitions", "startJoint", "endJoint", "draggerToMove"]), joint() {
|
|
207
|
+
return w(this.parent, this.position);
|
|
208
|
+
}, jointContainer() {
|
|
209
|
+
return { x: this.joint.x - 10, y: this.joint.y - 10 };
|
|
210
|
+
} }, methods: { ...t.mapMutations("wfEditor", ["setStartJoint", "setEndJoint", "stopDrawingLine", "setDraggerToMove", "setContextMenuVisible"]), isValidTransition(e2, t2) {
|
|
211
|
+
if (!e2)
|
|
212
|
+
return false;
|
|
213
|
+
if (e2.parent === t2.parent)
|
|
214
|
+
return this.$alert(this.$t("workflowEditorMessage.theStartAndEndOfTheFlowDirectionCannotBeTheSame")), false;
|
|
215
|
+
if ("Decision" !== e2.parent.type && "Fork" !== e2.parent.type && "HumanDecision" !== e2.parent.type) {
|
|
216
|
+
let t3 = 0;
|
|
217
|
+
this.draggerToMove && (t3 = 1);
|
|
218
|
+
if (y(e2.parent.id).length > t3)
|
|
219
|
+
return this.$alert(this.$t("workflowEditorMessage.onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows")), false;
|
|
220
|
+
}
|
|
221
|
+
return "Start" === e2.parent.type && "End" === t2.parent.type ? (this.$alert(this.$t("workflowEditorMessage.startAndEndNodesCannotBeConnectedDirectly")), false) : "End" !== e2.parent.type || (this.$alert(this.$t("workflowEditorMessage.endNodeCannotHaveOutFlowDirection")), false);
|
|
222
|
+
}, mouseup() {
|
|
223
|
+
if (this.draggerToMove) {
|
|
224
|
+
const e2 = this.draggerToMove.position, t2 = { parent: this.parent, position: this.position };
|
|
225
|
+
if ("start" === e2 ? this.draggerToMove.owner.startJoint = t2 : this.draggerToMove.owner.endJoint = t2, this.isValidTransition(this.draggerToMove.owner.startJoint, this.draggerToMove.owner.endJoint)) {
|
|
226
|
+
const e3 = this.draggerToMove.owner;
|
|
227
|
+
e3.id = "flow_" + e3.startJoint.parent.id + "_to_" + e3.endJoint.parent.id, e3.ref.attr = { id: e3.id, from: e3.startJoint.parent.id, to: e3.endJoint.parent.id };
|
|
228
|
+
} else
|
|
229
|
+
this.draggerToMove.owner.startJoint = this.draggerToMove.originStartJoint, this.draggerToMove.owner.endJoint = this.draggerToMove.originEndJoint;
|
|
230
|
+
this.setDraggerToMove(null);
|
|
231
|
+
} else
|
|
232
|
+
this.addTransition();
|
|
233
|
+
}, addTransition() {
|
|
234
|
+
const e2 = { parent: this.parent, position: this.position };
|
|
235
|
+
if (this.isValidTransition(this.startJoint, e2)) {
|
|
236
|
+
this.setEndJoint(e2);
|
|
237
|
+
const t2 = { id: "flow_" + this.startJoint.parent.id + "_to_" + this.endJoint.parent.id, startJoint: this.startJoint, endJoint: this.endJoint, isSelected: false, lineInfo: { type: "StraightLine", controlPoint: null } };
|
|
238
|
+
t2.ref = S.newTransition(), t2.ref.attr = { id: t2.id, from: this.startJoint.parent.id, to: this.endJoint.parent.id }, this.transitions.push(t2);
|
|
239
|
+
}
|
|
240
|
+
this.stopDrawingLine();
|
|
241
|
+
}, enterJoint() {
|
|
242
|
+
this.isActivated = true, this.$emit("enter-joint");
|
|
243
|
+
}, leaveJoint() {
|
|
244
|
+
this.isActivated = false, this.$emit("leave-joint");
|
|
245
|
+
} } }, _ = ["x", "y"], R = ["cx", "cy"];
|
|
246
|
+
const A = M(I, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
247
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[4] || (t2[4] = r.withModifiers(() => {
|
|
248
|
+
}, ["stop"])) }, [r.createElementVNode("rect", { x: i2.jointContainer.x, y: i2.jointContainer.y, class: r.normalizeClass({ "joint-container": true, "joint-activated": n2.isActivated }), width: "20", height: "20", rx: "3", ry: "3", onMousemove: t2[0] || (t2[0] = r.withModifiers((...e3) => i2.enterJoint && i2.enterJoint(...e3), ["stop"])), onMouseout: t2[1] || (t2[1] = r.withModifiers((...e3) => i2.leaveJoint && i2.leaveJoint(...e3), ["stop"])), onMousedown: t2[2] || (t2[2] = r.withModifiers((t3) => {
|
|
249
|
+
e2.setContextMenuVisible(false), e2.setStartJoint({ parent: o2.parent, position: o2.position });
|
|
250
|
+
}, ["stop"])), onMouseup: t2[3] || (t2[3] = (...e3) => i2.mouseup && i2.mouseup(...e3)) }, null, 42, _), r.withDirectives(r.createElementVNode("circle", { cx: i2.joint.x, cy: i2.joint.y, r: "3", class: "joint" }, null, 8, R), [[r.vShow, !n2.isActivated]])], 32);
|
|
251
|
+
}]]), U = { startDrag(e2) {
|
|
252
|
+
this.model.name, this.setContextMenuVisible(false), function(e3, t2) {
|
|
253
|
+
C(), t2.$parent.region = null, t2.$parent.showHistory || (t2.model.isSelected = true), p().getters["wfEditor/selectedTaches"].push(t2.model);
|
|
254
|
+
const o2 = g(e3);
|
|
255
|
+
p().commit("wfEditor/setMouseDownPosition", o2), p().commit("wfEditor/setMovingTache", true);
|
|
256
|
+
}(e2, this);
|
|
257
|
+
}, endDrag() {
|
|
258
|
+
this.model.name, p().commit("wfEditor/setMovingTache", false), p().commit("wfEditor/setMouseDownPosition", null);
|
|
259
|
+
}, showJoints() {
|
|
260
|
+
this.$parent.showHistory || (this.jointPoints = ["up", "right", "down", "left"]);
|
|
261
|
+
}, hideJoints() {
|
|
262
|
+
this.jointPoints = [];
|
|
263
|
+
} }, L = { name: "Start", components: { Joint: A }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, H = ["width", "height", "x", "y"], j = ["x", "y", "width", "height"];
|
|
264
|
+
const z = M(L, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
265
|
+
const a2 = r.resolveComponent("joint");
|
|
266
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor(""), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, start: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, H), r.createElementVNode("use", { "xlink:href": "#icon-start", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#67C23A", class: "draggable" }, null, 8, j), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
267
|
+
}]]), W = { name: "End", components: { Joint: A }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, J = ["width", "height", "x", "y"], q = ["x", "y", "width", "height"];
|
|
268
|
+
const G = M(W, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
269
|
+
const a2 = r.resolveComponent("joint");
|
|
270
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor(""), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, end: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, J), r.createElementVNode("use", { "xlink:href": "#icon-end", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#F56C6C", class: "draggable" }, null, 8, q), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
271
|
+
}]]), K = { name: "TacheResizer", props: { owner: { type: Object, default: null }, position: { type: String, default: "" } }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), area() {
|
|
272
|
+
let e2, t2;
|
|
273
|
+
switch (this.position) {
|
|
274
|
+
case "NW":
|
|
275
|
+
e2 = this.owner.x, t2 = this.owner.y;
|
|
276
|
+
break;
|
|
277
|
+
case "NE":
|
|
278
|
+
e2 = this.owner.x + this.owner.width, t2 = this.owner.y;
|
|
279
|
+
break;
|
|
280
|
+
case "SW":
|
|
281
|
+
e2 = this.owner.x, t2 = this.owner.y + this.owner.height;
|
|
282
|
+
break;
|
|
283
|
+
case "SE":
|
|
284
|
+
e2 = this.owner.x + this.owner.width, t2 = this.owner.y + this.owner.height;
|
|
285
|
+
}
|
|
286
|
+
e2 -= 4, t2 -= 4;
|
|
287
|
+
return { x: e2, y: t2, width: 8, height: 8, cursor: this.position.toLowerCase() + "-resize" };
|
|
288
|
+
} }, methods: { ...t.mapMutations("wfEditor", ["setMovingResizer", "setResizerToMove", "setContextMenuVisible"]) } }, X = ["x", "y", "width", "height"];
|
|
289
|
+
const Y = M(K, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
290
|
+
return o2.owner.isSelected && 1 == e2.selectedTaches.length ? (r.openBlock(), r.createElementBlock("rect", { key: 0, x: i2.area.x, y: i2.area.y, width: i2.area.width, height: i2.area.height, style: r.normalizeStyle({ cursor: i2.area.cursor }), class: "resizer", onMousedown: t2[0] || (t2[0] = r.withModifiers((t3) => {
|
|
291
|
+
e2.setContextMenuVisible(false), e2.setResizerToMove({ owner: o2.owner, position: o2.position });
|
|
292
|
+
}, ["stop"])), onMouseup: t2[1] || (t2[1] = r.withModifiers((t3) => e2.setResizerToMove(null), ["stop"])) }, null, 44, X)) : r.createCommentVNode("", true);
|
|
293
|
+
}]]), Q = { name: "HumanTask", components: { Joint: A, TacheResizer: Y }, props: { model: { type: Object, default: null } }, data() {
|
|
294
|
+
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
295
|
+
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
296
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
297
|
+
} }, created() {
|
|
298
|
+
this.name = E(this, this.name);
|
|
299
|
+
}, mounted() {
|
|
300
|
+
this.$watch("model.name", function(e2) {
|
|
301
|
+
this.name = E(this, e2);
|
|
302
|
+
});
|
|
303
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, Z = ["width", "height", "x", "y"], ee = ["x", "y"];
|
|
304
|
+
const te = M(Q, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
305
|
+
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
306
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass(["draggable", "task-tache", { selected: o2.model.isSelected }]), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, Z), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(n2.name), 9, ee), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
307
|
+
}]]), oe = { name: "Decision", components: { Joint: A }, props: { model: { type: Object, default: null } }, data() {
|
|
308
|
+
return { jointPoints: [], name: this.model.name };
|
|
309
|
+
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
310
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
311
|
+
} }, created() {
|
|
312
|
+
this.name = E(this, this.name);
|
|
313
|
+
}, mounted() {
|
|
314
|
+
this.$watch("model.name", function(e2) {
|
|
315
|
+
this.name = E(this, e2);
|
|
316
|
+
});
|
|
317
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, le = ["width", "height", "x", "y"], re = ["x", "y", "width", "height"], ne = ["x", "y"];
|
|
318
|
+
const ie = M(oe, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
319
|
+
const a2 = r.resolveComponent("joint");
|
|
320
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Decision"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, le), r.createElementVNode("use", { "xlink:href": "#icon-decision", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, re), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(n2.name), 9, ne), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
321
|
+
}]]), ae = { name: "Subprocess", components: { Joint: A, TacheResizer: Y }, props: { model: { type: Object, default: null } }, data() {
|
|
322
|
+
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
323
|
+
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
324
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
325
|
+
} }, created() {
|
|
326
|
+
this.name = E(this, this.name);
|
|
327
|
+
}, mounted() {
|
|
328
|
+
this.$watch("model.name", function(e2) {
|
|
329
|
+
this.name = E(this, e2);
|
|
330
|
+
});
|
|
331
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, se = ["width", "height", "x", "y"], de = ["x", "y"];
|
|
332
|
+
const ce = M(ae, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
333
|
+
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
334
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Subprocess"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, se), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(n2.name), 9, de), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
335
|
+
}]]), me = { name: "CustomTask", components: { Joint: A, TacheResizer: Y }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [], resizers: ["NW", "NE", "SW", "SE"] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), text() {
|
|
336
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
337
|
+
} }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, ue = ["width", "height", "x", "y"], pe = ["x", "y"];
|
|
338
|
+
const he = M(me, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
339
|
+
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
340
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, ue), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(o2.model.name), 9, pe), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
341
|
+
}]]), fe = { name: "Fork", components: { Joint: A }, props: { model: { type: Object, default: null } }, data() {
|
|
342
|
+
return { jointPoints: [], name: this.model.name };
|
|
343
|
+
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
344
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
345
|
+
} }, created() {
|
|
346
|
+
this.name = E(this, this.name);
|
|
347
|
+
}, mounted() {
|
|
348
|
+
this.$watch("model.name", function(e2) {
|
|
349
|
+
this.name = E(this, e2);
|
|
350
|
+
});
|
|
351
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, we = ["width", "height", "x", "y"], ge = ["x", "y", "width", "height"], Ce = ["x", "y"];
|
|
352
|
+
const be = M(fe, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
353
|
+
const a2 = r.resolveComponent("joint");
|
|
354
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Fork"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, we), r.createElementVNode("use", { "xlink:href": "#icon-fork", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, ge), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(n2.name), 9, Ce), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
355
|
+
}]]), ke = { name: "Join", components: { Joint: A }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), text() {
|
|
356
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
357
|
+
} }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, Ve = ["width", "height", "x", "y"], ye = ["x", "y", "width", "height"], ve = ["x", "y"];
|
|
358
|
+
const Te = M(ke, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
359
|
+
const a2 = r.resolveComponent("joint");
|
|
360
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Join"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, Ve), r.createElementVNode("use", { "xlink:href": "#icon-join", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, ye), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(o2.model.name), 9, ve), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
361
|
+
}]]), Ne = { name: "HumanDecision", components: { Joint: A }, props: { model: { type: Object, default: null } }, data() {
|
|
362
|
+
return { jointPoints: [], name: this.model.name };
|
|
363
|
+
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
364
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
365
|
+
} }, created() {
|
|
366
|
+
this.name = E(this, this.name);
|
|
367
|
+
}, mounted() {
|
|
368
|
+
this.$watch("model.name", function(e2) {
|
|
369
|
+
this.name = E(this, e2);
|
|
370
|
+
});
|
|
371
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, xe = ["width", "height", "x", "y"], Ee = ["x", "y", "width", "height"], Se = ["x", "y"];
|
|
372
|
+
const Me = M(Ne, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
373
|
+
const a2 = r.resolveComponent("joint");
|
|
374
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanDecision"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "human-decision": !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, xe), r.createElementVNode("use", { "xlink:href": "#icon-human-decision", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, Ee), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(n2.name), 9, Se), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
375
|
+
}]]), De = { name: "CopyTask", components: { Joint: A, TacheResizer: Y }, props: { model: { type: Object, default: null } }, data() {
|
|
376
|
+
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
377
|
+
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
378
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
379
|
+
} }, created() {
|
|
380
|
+
this.name = E(this, this.name);
|
|
381
|
+
}, mounted() {
|
|
382
|
+
this.$watch("model.name", function(e2) {
|
|
383
|
+
this.name = E(this, e2);
|
|
384
|
+
});
|
|
385
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, Fe = ["width", "height", "x", "y"], $e = ["x", "y"];
|
|
386
|
+
const Pe = M(De, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
387
|
+
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
388
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("CopyTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, Fe), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(n2.name), 9, $e), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
389
|
+
}]]), Be = { name: "AutoTask", components: { Joint: A, TacheResizer: Y }, props: { model: { type: Object, default: null } }, data() {
|
|
390
|
+
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
391
|
+
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
392
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
393
|
+
} }, created() {
|
|
394
|
+
this.name = E(this, this.name);
|
|
395
|
+
}, mounted() {
|
|
396
|
+
this.$watch("model.name", function(e2) {
|
|
397
|
+
this.name = E(this, e2);
|
|
398
|
+
});
|
|
399
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...U } }, Oe = ["width", "height", "x", "y"], Ie = ["x", "y"];
|
|
400
|
+
const _e = M(Be, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
401
|
+
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
402
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("AutoTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, Oe), r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(n2.name), 9, Ie), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
403
|
+
}]]), Re = ["d"];
|
|
404
|
+
const Ae = M({ name: "StraightLine", props: { owner: { type: Object, default: null } }, computed: { path() {
|
|
405
|
+
const e2 = w(this.owner.startJoint.parent, this.owner.startJoint.position), t2 = w(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
406
|
+
return "M" + e2.x + " " + e2.y + " L" + t2.x + " " + t2.y;
|
|
407
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
408
|
+
return r.openBlock(), r.createElementBlock("path", { d: i2.path, "marker-end": "url(#arrow)" }, null, 8, Re);
|
|
409
|
+
}]]), Ue = { name: "CurveLine", props: { owner: { type: Object, default: null } }, computed: { startPoint() {
|
|
410
|
+
return w(this.owner.startJoint.parent, this.owner.startJoint.position);
|
|
411
|
+
}, endPoint() {
|
|
412
|
+
return w(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
413
|
+
}, controlPoint() {
|
|
414
|
+
return this.owner.lineInfo.controlPoint;
|
|
415
|
+
}, path() {
|
|
416
|
+
return "M " + this.startPoint.x + " " + this.startPoint.y + " Q " + this.controlPoint.x + " " + this.controlPoint.y + " " + this.endPoint.x + " " + this.endPoint.y;
|
|
417
|
+
}, pathToStartPoint() {
|
|
418
|
+
return "M " + this.controlPoint.x + " " + this.controlPoint.y + "L " + this.startPoint.x + " " + this.startPoint.y;
|
|
419
|
+
}, pathToEndPoint() {
|
|
420
|
+
return "M " + this.controlPoint.x + " " + this.controlPoint.y + "L " + this.endPoint.x + " " + this.endPoint.y;
|
|
421
|
+
} }, created: function() {
|
|
422
|
+
if (!this.owner.lineInfo.controlPoint) {
|
|
423
|
+
let e2 = this.startPoint.x + (this.endPoint.x - this.startPoint.x) / 2;
|
|
424
|
+
(e2 + 10 < this.startPoint.x || e2 < this.startPoint.x + 10) && (e2 = this.startPoint.x + 30), this.owner.lineInfo.controlPoint = { x: e2, y: this.endPoint.y };
|
|
425
|
+
}
|
|
426
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setControlPointToMove"]), startDrag(e2) {
|
|
427
|
+
this.setControlPointToMove({ owner: this.owner });
|
|
428
|
+
}, endDrag() {
|
|
429
|
+
this.setControlPointToMove(null);
|
|
430
|
+
} } }, Le = ["d"], He = ["d"], je = ["d"], ze = ["cx", "cy"];
|
|
431
|
+
const We = M(Ue, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
432
|
+
return r.openBlock(), r.createElementBlock("g", null, [r.createElementVNode("path", { d: i2.path, "marker-end": "url(#arrow)" }, null, 8, Le), o2.owner.isSelected ? (r.openBlock(), r.createElementBlock(r.Fragment, { key: 0 }, [r.createElementVNode("path", { d: i2.pathToStartPoint, class: "control-line" }, null, 8, He), r.createElementVNode("path", { d: i2.pathToEndPoint, class: "control-line" }, null, 8, je), r.createElementVNode("circle", { cx: i2.controlPoint.x, cy: i2.controlPoint.y, r: "3", class: "control-point", onMousedown: t2[0] || (t2[0] = r.withModifiers((...e3) => i2.startDrag && i2.startDrag(...e3), ["stop"])), onMouseup: t2[1] || (t2[1] = r.withModifiers((...e3) => i2.endDrag && i2.endDrag(...e3), ["stop"])) }, null, 40, ze)], 64)) : r.createCommentVNode("", true)]);
|
|
433
|
+
}], ["__scopeId", "data-v-0ff53a0a"]]), Je = { name: "BrokenLine", props: { owner: { type: Object, default: null } }, computed: { startPoint() {
|
|
434
|
+
return w(this.owner.startJoint.parent, this.owner.startJoint.position);
|
|
435
|
+
}, endPoint() {
|
|
436
|
+
return w(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
437
|
+
}, controlPoint() {
|
|
438
|
+
return this.owner.lineInfo.controlPoint;
|
|
439
|
+
}, path() {
|
|
440
|
+
let e2 = "M " + this.startPoint.x + " " + this.startPoint.y + " ";
|
|
441
|
+
return this.controlPoint && this.controlPoint.forEach((t2) => {
|
|
442
|
+
e2 += "L " + t2.x + " " + t2.y;
|
|
443
|
+
}), e2 += "L " + this.endPoint.x + " " + this.endPoint.y, e2;
|
|
444
|
+
} }, created: function() {
|
|
445
|
+
if (this.owner.lineInfo, !this.owner.lineInfo.controlPoint) {
|
|
446
|
+
const e2 = this.startPoint.x + (this.endPoint.x - this.startPoint.x) / 2, t2 = this.startPoint.y + (this.endPoint.y - this.startPoint.y) / 2;
|
|
447
|
+
this.owner.lineInfo.controlPoint = [{ x: e2, y: t2 }];
|
|
448
|
+
}
|
|
449
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setControlPointToMove"]), startDrag(e2, t2) {
|
|
450
|
+
this.setControlPointToMove({ owner: this.owner, pointIndex: e2 });
|
|
451
|
+
}, endDrag() {
|
|
452
|
+
this.setControlPointToMove(null);
|
|
453
|
+
} } }, qe = ["d"], Ge = ["cx", "cy", "onMousedown"];
|
|
454
|
+
const Ke = { name: "Transition", components: { StraightLine: Ae, CurveLine: We, BrokenLine: M(Je, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
455
|
+
return r.openBlock(), r.createElementBlock("g", null, [r.createElementVNode("path", { d: i2.path, "marker-end": "url(#arrow)" }, null, 8, qe), o2.owner.isSelected ? (r.openBlock(), r.createElementBlock(r.Fragment, { key: 0 }, [i2.controlPoint ? (r.openBlock(true), r.createElementBlock(r.Fragment, { key: 0 }, r.renderList(i2.controlPoint, (e3, o3) => (r.openBlock(), r.createElementBlock("circle", { key: e3.x + e3.y, cx: e3.x, cy: e3.y, r: "3", class: "control-point", onMousedown: r.withModifiers((e4) => i2.startDrag(o3, e4), ["stop"]), onMouseup: t2[0] || (t2[0] = r.withModifiers((...e4) => i2.endDrag && i2.endDrag(...e4), ["stop"])) }, null, 40, Ge))), 128)) : r.createCommentVNode("", true)], 64)) : r.createCommentVNode("", true)]);
|
|
456
|
+
}], ["__scopeId", "data-v-788fb0ae"]]) }, props: { model: { type: Object, default: null } }, data() {
|
|
457
|
+
const e2 = this.getTextPoint();
|
|
458
|
+
return { text: { x: e2.x, y: e2.y }, name: this.model.remark };
|
|
459
|
+
}, computed: { ...t.mapGetters("wfEditor", ["draggerToMove", "processI18n"]), draggers() {
|
|
460
|
+
const e2 = w(this.model.startJoint.parent, this.model.startJoint.position);
|
|
461
|
+
e2.position = "start";
|
|
462
|
+
const t2 = w(this.model.endJoint.parent, this.model.endJoint.position);
|
|
463
|
+
return t2.position = "end", [e2, t2];
|
|
464
|
+
}, path() {
|
|
465
|
+
return "M" + this.draggers[0].x + " " + this.draggers[0].y + " L" + this.draggers[1].x + " " + this.draggers[1].y;
|
|
466
|
+
} }, created() {
|
|
467
|
+
this.name = E(this, this.name);
|
|
468
|
+
}, mounted() {
|
|
469
|
+
this.$watch("model.remark", function(e2) {
|
|
470
|
+
if (this.name = E(this, e2), this.name && "" !== this.name) {
|
|
471
|
+
const e3 = this.getTextPoint();
|
|
472
|
+
this.text.x = e3.x, this.text.y = e3.y;
|
|
473
|
+
}
|
|
474
|
+
}), this.$watch("model.lineInfo.type", function(e2) {
|
|
475
|
+
const t2 = this.getTextPoint();
|
|
476
|
+
this.text.x = t2.x, this.text.y = t2.y;
|
|
477
|
+
}), this.$watch("model.lineInfo.controlPoint", function(e2) {
|
|
478
|
+
const t2 = this.getTextPoint();
|
|
479
|
+
this.text.x = t2.x, this.text.y = t2.y;
|
|
480
|
+
}), this.$watch("model.startJoint.parent.x", function(e2) {
|
|
481
|
+
const t2 = this.getTextPoint();
|
|
482
|
+
this.text.x = t2.x, this.text.y = t2.y;
|
|
483
|
+
}), this.$watch("model.startJoint.parent.y", function(e2) {
|
|
484
|
+
const t2 = this.getTextPoint();
|
|
485
|
+
this.text.x = t2.x, this.text.y = t2.y;
|
|
486
|
+
}), this.$watch("model.endJoint.parent.x", function(e2) {
|
|
487
|
+
const t2 = this.getTextPoint();
|
|
488
|
+
this.text.x = t2.x, this.text.y = t2.y;
|
|
489
|
+
}), this.$watch("model.endJoint.parent.y", function(e2) {
|
|
490
|
+
const t2 = this.getTextPoint();
|
|
491
|
+
this.text.x = t2.x, this.text.y = t2.y;
|
|
492
|
+
});
|
|
493
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setMouseDownPosition", "setDraggerToMove", "setSelectedTransition", "setPropertiesEditorFor"]), getTextPoint() {
|
|
494
|
+
const e2 = w(this.model.startJoint.parent, this.model.startJoint.position), t2 = w(this.model.endJoint.parent, this.model.endJoint.position);
|
|
495
|
+
let o2 = e2.x < t2.x ? e2.x : t2.x, l2 = e2.y < t2.y ? e2.y : t2.y, r2 = o2 + Math.abs(e2.x - t2.x) / 2, n2 = l2 + Math.abs(e2.y - t2.y) / 2;
|
|
496
|
+
if ("CurveLine" === this.model.lineInfo.type) {
|
|
497
|
+
const t3 = this.model.lineInfo.controlPoint;
|
|
498
|
+
t3 && (o2 = e2.x < t3.x ? e2.x : parseFloat(t3.x), l2 = e2.y < t3.y ? e2.y : parseFloat(t3.y), r2 = o2 + Math.abs(e2.x - t3.x) / 2 + 10, n2 = l2 + Math.abs(e2.y - t3.y) / 2 - 10);
|
|
499
|
+
} else if ("BrokenLine" === this.model.lineInfo.type && this.model.lineInfo.controlPoint && this.model.lineInfo.controlPoint.length > 0) {
|
|
500
|
+
const t3 = this.model.lineInfo.controlPoint[0];
|
|
501
|
+
t3 && (o2 = e2.x < t3.x ? e2.x : parseFloat(t3.x), l2 = e2.y < t3.y ? e2.y : parseFloat(t3.y), r2 = o2 + Math.abs(e2.x - t3.x) / 2, n2 = l2 + Math.abs(e2.y - t3.y) / 2 - 10);
|
|
502
|
+
}
|
|
503
|
+
return { x: r2, y: n2 };
|
|
504
|
+
}, select(e2) {
|
|
505
|
+
C(), this.model.isSelected = true, this.setSelectedTransition(this.model);
|
|
506
|
+
}, startDrag(e2, t2) {
|
|
507
|
+
this.setMouseDownPosition(g(e2)), this.setDraggerToMove({ owner: this.model, position: t2, originStartJoint: this.model.startJoint, originEndJoint: this.model.endJoint });
|
|
508
|
+
}, endDrag() {
|
|
509
|
+
}, showPropertiesEditor() {
|
|
510
|
+
"Decision" !== this.model.endJoint.parent.type && this.setPropertiesEditorFor("Transition");
|
|
511
|
+
} } }, Xe = ["x", "y"], Ye = { key: 0 }, Qe = ["cx", "cy", "onMousedown"];
|
|
512
|
+
const Ze = M(Ke, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
513
|
+
return r.openBlock(), r.createElementBlock("g", { class: r.normalizeClass({ "no-events": null != e2.draggerToMove }), onMousedown: t2[1] || (t2[1] = r.withModifiers((...e3) => i2.select && i2.select(...e3), ["stop"])), onDblclick: t2[2] || (t2[2] = r.withModifiers((...e3) => i2.showPropertiesEditor && i2.showPropertiesEditor(...e3), ["stop"])) }, [r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(n2.name), 9, Xe), (r.openBlock(), r.createBlock(r.resolveDynamicComponent(o2.model.lineInfo.type), { owner: o2.model, class: r.normalizeClass({ transition: true, selected: o2.model.isSelected || o2.model.startJoint.parent.isSelected && o2.model.endJoint.parent.isSelected }) }, null, 8, ["owner", "class"])), o2.model.isSelected ? (r.openBlock(), r.createElementBlock("g", Ye, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.draggers, (e3) => (r.openBlock(), r.createElementBlock("circle", { key: e3.position, cx: e3.x, cy: e3.y, class: "transition-dragger", r: "4", onMousedown: r.withModifiers((t3) => i2.startDrag(t3, e3.position), ["stop"]), onMouseup: t2[0] || (t2[0] = (...e4) => i2.endDrag && i2.endDrag(...e4)) }, null, 40, Qe))), 128))])) : r.createCommentVNode("", true)], 34);
|
|
514
|
+
}], ["__scopeId", "data-v-a1576cad"]]), et = { name: "VirtualTransition", props: { toPosition: { type: Object, default: null } }, computed: { ...t.mapGetters("wfEditor", ["startJoint"]), path() {
|
|
515
|
+
if (!this.startJoint)
|
|
516
|
+
return null;
|
|
517
|
+
const e2 = w(this.startJoint.parent, this.startJoint.position), t2 = this.toPosition;
|
|
518
|
+
return "M" + e2.x + " " + e2.y + " L" + t2.x + " " + t2.y;
|
|
519
|
+
} }, methods: {} }, tt = ["d"];
|
|
520
|
+
const ot = M(et, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
521
|
+
return r.openBlock(), r.createElementBlock("g", null, [r.withDirectives(r.createElementVNode("path", { d: i2.path, class: "virtual-transition", "marker-end": "url(#arrow)" }, null, 8, tt), [[r.vShow, i2.path]])]);
|
|
522
|
+
}]]), lt = { name: "SelectionRegion", props: { region: { type: Object, default: null } }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...t.mapMutations("wfEditor", ["setDrawingRegion", "setMovingRegion", "setMouseDownPosition"]), startDrag(e2) {
|
|
523
|
+
const t2 = g(e2);
|
|
524
|
+
this.setMouseDownPosition(t2), this.setMovingRegion(true);
|
|
525
|
+
}, endDrag(e2) {
|
|
526
|
+
this.setMovingRegion(false), this.setMouseDownPosition(null);
|
|
527
|
+
} } }, rt = ["x", "y", "width", "height"];
|
|
528
|
+
const nt = M(lt, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
529
|
+
return r.openBlock(), r.createElementBlock("g", null, [o2.region ? (r.openBlock(), r.createElementBlock("rect", { key: 0, x: o2.region.x, y: o2.region.y, width: o2.region.width, height: o2.region.height, class: r.normalizeClass({ draggable: true, "selection-region": true, dashed: e2.selectedTaches.length < 1 }), onMousedown: t2[0] || (t2[0] = r.withModifiers((...e3) => i2.startDrag && i2.startDrag(...e3), ["stop"])), onMouseup: t2[1] || (t2[1] = r.withModifiers((...e3) => i2.endDrag && i2.endDrag(...e3), ["stop"])) }, null, 42, rt)) : r.createCommentVNode("", true)]);
|
|
530
|
+
}]]), it = { name: "FormFields", props: { fields: { type: Array, default: null } }, data: () => ({ selectedField: null, copyShowFields: [], showFields: [], searchFormCode: "", dialogVisible: true }), computed: { ...t.mapGetters("wfEditor", ["formFields"]), allFields() {
|
|
531
|
+
return this.fields ? this.fields : this.formFields;
|
|
532
|
+
} }, mounted() {
|
|
533
|
+
this.copyAllFields = this.allFields, this.showFields = this.allFields;
|
|
534
|
+
}, methods: { setField() {
|
|
535
|
+
this.$emit("close", this.selectedField);
|
|
536
|
+
}, searchForm() {
|
|
537
|
+
this.searchFormCode && "" !== this.searchFormCode ? this.showFields = this.copyAllFields.filter((e2) => e2.name.indexOf(this.searchFormCode) > -1 || e2.label.indexOf(this.searchFormCode) > -1) : this.showFields = this.copyAllFields;
|
|
538
|
+
} } }, at = { style: { "padding-bottom": "10px" } }, st = { style: { float: "left", width: "70%" } }, dt = { class: "item-content" };
|
|
539
|
+
const ct = M(it, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
540
|
+
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-button"), d2 = r.resolveComponent("el-radio"), c2 = r.resolveComponent("el-radio-group"), m2 = r.resolveComponent("el-dialog");
|
|
541
|
+
return r.openBlock(), r.createBlock(m2, { width: "60%", title: e2.$t("workflowEditor.common.selectFormField"), modelValue: n2.dialogVisible, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.dialogVisible = e3), center: "", top: "5vh", "append-to-body": "", class: "properties-editor-noTab", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(s2, { type: "primary", size: "small", onClick: i2.setField }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(s2, { size: "small", onClick: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createElementVNode("div", at, [r.createElementVNode("span", st, [r.createVNode(a2, { modelValue: n2.searchFormCode, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.searchFormCode = e3), placeholder: e2.$t("workflowEditorMessage.pleaseEnterTheNameOrCode") }, null, 8, ["modelValue", "placeholder"])]), r.createElementVNode("span", null, [r.createVNode(s2, { style: { "margin-left": "10px" }, type: "primary", onClick: i2.searchForm }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.search")), 1)]), _: 1 }, 8, ["onClick"])])]), r.createElementVNode("div", dt, [r.createVNode(c2, { modelValue: n2.selectedField, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.selectedField = e3), class: "group" }, { default: r.withCtx(() => [r.createElementVNode("ul", null, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.showFields, (e3) => (r.openBlock(), r.createElementBlock("li", { key: e3.name, class: "item" }, [r.createVNode(d2, { label: e3.name }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]))), 128))])]), _: 1 }, 8, ["modelValue"])])]), _: 1 }, 8, ["title", "modelValue"]);
|
|
542
|
+
}], ["__scopeId", "data-v-98300543"]]);
|
|
543
|
+
function mt(e2) {
|
|
544
|
+
const t2 = ut(e2);
|
|
545
|
+
return t2 ? t2.label : e2;
|
|
546
|
+
}
|
|
547
|
+
function ut(e2) {
|
|
548
|
+
const t2 = window.$store.getters["wfEditor/formFields"];
|
|
549
|
+
e2 && (e2.indexOf("${field[") >= 0 || e2.indexOf("${deptField[") >= 0) && (e2 = e2.substring(e2.indexOf("[") + 1, e2.lastIndexOf("]")));
|
|
550
|
+
const o2 = t2.filter((t3) => t3.name === e2);
|
|
551
|
+
return o2.length > 0 ? o2[0] : null;
|
|
552
|
+
}
|
|
553
|
+
const pt = M({ name: "TaskTitle", components: { FormFields: ct }, props: { modelValue: { type: String, default: null } }, data() {
|
|
554
|
+
const e2 = [];
|
|
555
|
+
if (this.modelValue) {
|
|
556
|
+
const t2 = /\$\{(.+?)\}/g, o2 = this.modelValue.match(t2);
|
|
557
|
+
for (const t3 of o2)
|
|
558
|
+
e2.push(t3);
|
|
559
|
+
}
|
|
560
|
+
return { dynamicTags: e2, inputVisible: false, showFormFields: false, inputValue: "", showLabel: null, isShowAdditionalParam: false };
|
|
561
|
+
}, mounted() {
|
|
562
|
+
}, methods: { showText(e2) {
|
|
563
|
+
let t2 = e2;
|
|
564
|
+
if (e2.indexOf("${field[") >= 0) {
|
|
565
|
+
const e3 = t2.substring(t2.indexOf("[") + 1, t2.lastIndexOf("]"));
|
|
566
|
+
t2 = mt(e3), t2 = "[" + t2 + "]";
|
|
567
|
+
} else if (e2.indexOf("${writeTitle[") >= 0) {
|
|
568
|
+
const o2 = e2.indexOf("${writeTitle[");
|
|
569
|
+
t2 = t2.substring(o2 + 13), t2 = t2.substring(0, t2.indexOf("]"));
|
|
570
|
+
}
|
|
571
|
+
return t2;
|
|
572
|
+
}, handleClose(e2) {
|
|
573
|
+
this.dynamicTags.splice(this.dynamicTags.indexOf(e2), 1), this.$emit("update:modelValue", this.dynamicTags.join(""));
|
|
574
|
+
}, showInput() {
|
|
575
|
+
this.inputVisible = true, this.$nextTick((e2) => {
|
|
576
|
+
this.$refs.saveTagInput.focus();
|
|
577
|
+
});
|
|
578
|
+
}, showAdditionalParam() {
|
|
579
|
+
this.isShowAdditionalParam = true, this.$nextTick((e2) => {
|
|
580
|
+
this.$refs.saveTagInput.focus();
|
|
581
|
+
});
|
|
582
|
+
}, handleInputConfirm() {
|
|
583
|
+
let e2 = this.inputValue;
|
|
584
|
+
e2 && (this.inputVisible ? e2 = "${writeTitle[" + e2 + "]}" : this.isShowAdditionalParam && (e2 = "${request[" + e2 + "]}"), this.dynamicTags.push(e2), this.$emit("update:modelValue", this.dynamicTags.join(""))), this.inputVisible = false, this.isShowAdditionalParam = false, this.inputValue = "";
|
|
585
|
+
}, getType: (e2) => e2.indexOf("${field") >= 0 ? "success" : null, setField(e2) {
|
|
586
|
+
void 0 !== e2 && (this.dynamicTags.push("${field[" + e2 + "]}"), this.$emit("update:modelValue", this.dynamicTags.join(""))), this.showFormFields = false;
|
|
587
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
588
|
+
const a2 = r.resolveComponent("el-tag"), s2 = r.resolveComponent("el-input"), d2 = r.resolveComponent("el-button"), c2 = r.resolveComponent("el-button-group"), m2 = r.resolveComponent("form-fields");
|
|
589
|
+
return r.openBlock(), r.createElementBlock("div", null, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.dynamicTags, (e3, t3) => (r.openBlock(), r.createBlock(a2, { key: t3 + e3, type: i2.getType(e3), closable: "", "disable-transitions": false, onClose: (t4) => i2.handleClose(e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(i2.showText(e3)), 1)]), _: 2 }, 1032, ["type", "onClose"]))), 128)), n2.inputVisible || n2.isShowAdditionalParam ? (r.openBlock(), r.createBlock(s2, { key: 0, ref: "saveTagInput", modelValue: n2.inputValue, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.inputValue = e3), class: "input-new-tag", size: "small", onKeyup: r.withKeys(i2.handleInputConfirm, ["enter", "native"]), onBlur: i2.handleInputConfirm }, null, 8, ["modelValue", "onKeyup", "onBlur"])) : r.createCommentVNode("", true), n2.inputVisible ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(c2, { key: 1 }, { default: r.withCtx(() => [r.createVNode(d2, { class: "button-new-tag", size: "small", icon: "EditPen", onClick: i2.showInput }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.enterText")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(d2, { class: "button-new-tag", size: "small", icon: "Search", onClick: t2[1] || (t2[1] = (e3) => n2.showFormFields = true) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.selectField")), 1)]), _: 1 }), r.createVNode(d2, { class: "button-new-tag", size: "small", icon: "EditPen", onClick: i2.showAdditionalParam }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.additionalParam")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 })), n2.showFormFields ? (r.openBlock(), r.createBlock(m2, { key: 2, onClose: i2.setField }, null, 8, ["onClose"])) : r.createCommentVNode("", true)]);
|
|
590
|
+
}], ["__scopeId", "data-v-aaf48aff"]]);
|
|
591
|
+
var ht = (e2, t2) => {
|
|
592
|
+
let o2 = e2.__vccOpts || e2;
|
|
593
|
+
for (let [e3, l2] of t2)
|
|
594
|
+
o2[e3] = l2;
|
|
595
|
+
return o2;
|
|
596
|
+
}, ft = { name: "CirclePlus" }, wt = { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, gt = [r.createElementVNode("path", { fill: "currentColor", d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z" }, null, -1), r.createElementVNode("path", { fill: "currentColor", d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z" }, null, -1), r.createElementVNode("path", { fill: "currentColor", d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" }, null, -1)];
|
|
597
|
+
var Ct = ht(ft, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
598
|
+
return r.openBlock(), r.createElementBlock("svg", wt, gt);
|
|
599
|
+
}], ["__file", "circle-plus.vue"]]), bt = { name: "Delete" }, kt = { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, Vt = [r.createElementVNode("path", { fill: "currentColor", d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z" }, null, -1)];
|
|
600
|
+
var yt = ht(bt, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
601
|
+
return r.openBlock(), r.createElementBlock("svg", kt, Vt);
|
|
602
|
+
}], ["__file", "delete.vue"]]), vt = { name: "Search" }, Tt = { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, Nt = [r.createElementVNode("path", { fill: "currentColor", d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z" }, null, -1)];
|
|
603
|
+
var xt = ht(vt, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
604
|
+
return r.openBlock(), r.createElementBlock("svg", Tt, Nt);
|
|
605
|
+
}], ["__file", "search.vue"]]);
|
|
606
|
+
const Et = [{ name: "${approvalResult}", label: h().t("workflowEditor.process.approvalResults"), orgType: "other" }, { name: "${instanceCreatorName}", label: h().t("workflowEditor.process.processInitiator"), orgType: "user" }, { name: "${instanceCreatorRole}", label: h().t("workflowEditor.process.processInitiatorRole"), orgType: "role" }, { name: "${instanceCreatorDepartment}", label: h().t("workflowEditor.process.processInitiatorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${superiorDepartment}", label: h().t("workflowEditor.process.processInitiatorSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorUpstageDepartment}", label: h().t("workflowEditor.process.processInitiatorTopDepartment"), orgType: "department" }, { name: "${instanceCreatorWorkGroup}", label: h().t("workflowEditor.process.processInitiatorWorkingGroup"), orgType: "workgroup" }, { name: "${instanceCreatorDirectSuperiorName}", label: h().t("workflowEditor.process.sponsorsImmediateSuperior"), orgType: "user" }, { name: "${instanceCreatorDeptApprover}", label: h().t("workflowEditor.process.deptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptApprover}", label: h().t("workflowEditor.process.superiorDeptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptLeader}", label: h().t("workflowEditor.process.superiorDeptLeader"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDepartment}", label: h().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorDirectSuperiorRole}", label: h().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"), orgType: "role" }, { name: "${instanceCreatorDirectSuperiorWorkGroup}", label: h().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorName}", label: h().t("workflowEditor.process.nameOfCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorRole}", label: h().t("workflowEditor.process.currentHandlerRole"), orgType: "role" }, { name: "${currentTransactorDepartment}", label: h().t("workflowEditor.process.currentHandlerDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorSuperiorDepartment}", label: h().t("workflowEditor.process.currentHandlerSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorUpstageDepartment}", label: h().t("workflowEditor.process.topDepartmentOfCurrentHandler"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment"] }, { name: "${currentTransactorWorkGroup}", label: h().t("workflowEditor.process.currentHandlerWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorDirectSuperiorName}", label: h().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorDirectSuperiorDepartment}", label: h().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorDirectSuperiorRole}", label: h().t("workflowEditor.process.currentManagerDirectSuperiorRole"), orgType: "role" }, { name: "${currentTransactorDirectSuperiorWorkGroup}", label: h().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"), orgType: "workgroup" }, { name: "${upstageDepartment}", label: h().t("workflowEditor.process.topDepartments"), orgType: "department" }, { name: "${countersignatureDisagreeCount}", label: h().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreeCount}", label: h().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureDisagreePercentage}", label: h().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreePercentage}", label: h().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionPercentage}", label: h().t("workflowEditor.process.percentageOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstPercentage}", label: h().t("workflowEditor.process.percentageOfVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorPercentage}", label: h().t("workflowEditor.process.percentageOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionCount}", label: h().t("workflowEditor.process.totalNumberOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstCount}", label: h().t("workflowEditor.process.totalVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorCount}", label: h().t("workflowEditor.process.totalNumberOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }], St = { "condition.operator.or": h().t("workflowEditor.process.perhaps"), "condition.operator.and": h().t("workflowEditor.process.also") };
|
|
607
|
+
const Mt = [{ name: "operator.number.gt", label: h().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: h().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: h().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: h().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: h().t("workflowEditor.process.notEqualTo") }];
|
|
608
|
+
const Dt = [{ name: "operator.text.eq", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: h().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: h().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: h().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: h().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: h().t("workflowEditor.process.isNotNull") }];
|
|
609
|
+
const Ft = [{ name: "operator.date.gt", label: h().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: h().t("workflowEditor.process.earlierThan") }, { name: "operator.date.et", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: h().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: h().t("workflowEditor.process.noEarlierThan") }, { name: "operator.date.ne", label: h().t("workflowEditor.process.notEqualTo") }], $t = [{ name: "operator.text.eq", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: h().t("workflowEditor.process.notEqualTo") }];
|
|
610
|
+
const Pt = [{ name: "operator.text.eq", label: h().t("workflowEditor.process.beEqualTo") }], Bt = [...Mt, ...Ft, ...Dt, ...$t];
|
|
611
|
+
function Ot(e2, t2) {
|
|
612
|
+
if (t2 && 0 !== t2.length) {
|
|
613
|
+
let o2 = t2.replace(/ condition.operator.or /g, " condition.operator.or^_^");
|
|
614
|
+
o2 = o2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
|
|
615
|
+
const l2 = o2.split("^_^");
|
|
616
|
+
let r2 = 0;
|
|
617
|
+
for (let t3 of l2) {
|
|
618
|
+
if ("" === t3)
|
|
619
|
+
continue;
|
|
620
|
+
let o3 = "", l3 = "", n2 = "", i2 = "", a2 = "", s2 = "condition.operator.or", d2 = t3.indexOf("${");
|
|
621
|
+
if (d2 > 0 && (o3 = t3.substring(0, d2)), l3 = t3.substring(d2, t3.indexOf(" ")), t3 = t3.substring(t3.indexOf(" ") + 1), n2 = t3.substring(0, t3.indexOf(" ")), t3 = t3.substring(t3.indexOf(" ") + 1), d2 = t3.indexOf(")"), d2 >= 0) {
|
|
622
|
+
i2 = t3.substring(0, d2);
|
|
623
|
+
const e3 = t3.substring(d2);
|
|
624
|
+
d2 = e3.indexOf(")"), a2 = e3.indexOf(" ") >= 0 ? e3.substring(d2, e3.indexOf(" ")) : e3.substring(d2), d2 = t3.indexOf(" condition."), d2 >= 0 && (s2 = t3.substring(d2 + 1));
|
|
625
|
+
} else
|
|
626
|
+
d2 = t3.indexOf(" condition."), d2 > 0 ? (i2 = t3.substring(0, d2), s2 = t3.substring(d2 + 1)) : i2 = t3;
|
|
627
|
+
e2.push({ id: r2, leftBracket: o3, key: l3, operator: n2, value: i2, rightBracket: a2, logicOperator: s2 }), r2++;
|
|
628
|
+
}
|
|
629
|
+
return r2;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function It(e2) {
|
|
633
|
+
const t2 = Et.filter((t3) => t3.name === e2);
|
|
634
|
+
return t2.length > 0 ? t2[0] : null;
|
|
635
|
+
}
|
|
636
|
+
function _t(e2) {
|
|
637
|
+
return e2 ? e2.indexOf("${field[") >= 0 ? mt(e2) : e2.indexOf("${") >= 0 ? function(e3) {
|
|
638
|
+
const t2 = It(e3);
|
|
639
|
+
return t2 ? t2.label : e3;
|
|
640
|
+
}(e2) : e2.indexOf("[") >= 0 ? e2.substring(0, e2.indexOf("[")) : e2 : "";
|
|
641
|
+
}
|
|
642
|
+
function Rt(e2) {
|
|
643
|
+
const t2 = Bt.filter((t3) => t3.name === e2);
|
|
644
|
+
return t2.length > 0 ? t2[0].label : "";
|
|
645
|
+
}
|
|
646
|
+
function At(e2) {
|
|
647
|
+
let t2 = "";
|
|
648
|
+
for (const o3 of e2)
|
|
649
|
+
0 !== o3.key.length && void 0 !== o3.operator && "" !== o3.operator && null !== o3.operator && ("operator.text.is.null" === o3.operator || "operator.text.not.null" === o3.operator || "" !== o3.value && void 0 !== o3.value && null !== o3.value) && (t2 = t2 + o3.leftBracket + _t(o3.key) + " " + Rt(o3.operator) + " " + _t(o3.value) + o3.rightBracket + " " + St[o3.logicOperator] + " ");
|
|
650
|
+
const o2 = " 或者 ", l2 = " 并且 ";
|
|
651
|
+
return t2.lastIndexOf(o2) + 4 === t2.length ? t2 = t2.substring(0, t2.lastIndexOf(o2)) : t2.lastIndexOf(l2) + 4 === t2.length && (t2 = t2.substring(0, t2.lastIndexOf(l2))), t2;
|
|
652
|
+
}
|
|
653
|
+
const Ut = { name: "InlineSystemRoleTree", props: { multiple: { type: Boolean, default: false } }, data: () => ({ systemRoleTrees: null, filterText: "", defaultProps: { id: "id", label: "label", children: "children", isLeaf: "leaf" }, containBranch: false, tenantInfo: null, tenantNodeId: -1, allSearchNodeIds: [], allExpandNodeIds: [], isClickNode: false, searchValue: null, selectNodeInfo: null }), computed: {}, watch: { filterText(e2) {
|
|
654
|
+
e2 || (this.searchValue = e2, this.loadRole(this.tenantNodeId, this.tenantNodeId + ""));
|
|
655
|
+
} }, created() {
|
|
656
|
+
}, methods: { loadNode(e2, t2) {
|
|
657
|
+
var o2, l2 = 0;
|
|
658
|
+
0 === e2.level ? o2 = (l2 = 0) + "" : (l2 = e2.data.id, o2 = e2.data.nodeId);
|
|
659
|
+
var r2 = [];
|
|
660
|
+
this.$refs.roleTree && (r2 = this.$refs.roleTree.getCheckedKeys()), this.initLoadRole(l2, o2, e2, t2, r2);
|
|
661
|
+
}, initLoadRole(e2, t2, o2, l2, r2) {
|
|
662
|
+
this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((n2) => {
|
|
663
|
+
if (l2(n2), this.$refs.roleTree.updateKeyChildren(t2, n2), 0 === e2) {
|
|
664
|
+
const e3 = n2[0].data;
|
|
665
|
+
this.tenantInfo = JSON.parse(e3), this.containBranch = n2[0].containBranch, this.loadRole(this.tenantNodeId, this.tenantNodeId + "");
|
|
666
|
+
}
|
|
667
|
+
this.isClickNode ? (this.isClickNode = false, this.checkedNodeAndChildren(o2.data)) : r2 && r2.indexOf(t2) > -1 && this.checkedNodeAndChildren(o2.data);
|
|
668
|
+
});
|
|
669
|
+
}, loadRole(e2, t2, o2, l2) {
|
|
670
|
+
this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((e3) => {
|
|
671
|
+
this.$refs.roleTree.updateKeyChildren(t2, e3), this.$refs.roleTree.store.nodesMap[t2] && (this.$refs.roleTree.store.nodesMap[t2].expanded = true), o2 && (-1 === this.allExpandNodeIds.indexOf(t2) && this.allExpandNodeIds.push(t2), this.allExpandNodeIds.length === this.allSearchNodeIds.length && (this.$refs.roleTree.filter(l2), this.allExpandNodeIds = [], this.allSearchNodeIds = []));
|
|
672
|
+
});
|
|
673
|
+
}, clickSearch() {
|
|
674
|
+
this.searchValue = this.filterText, this.filterAppendNodes(this.filterText);
|
|
675
|
+
}, filterAppendNodes(e2) {
|
|
676
|
+
this.$http.get(this.baseAPI + "/acs/roles/search-system-role-trees?searchValue=" + e2).then((t2) => {
|
|
677
|
+
if (t2) {
|
|
678
|
+
if (0 === t2.length)
|
|
679
|
+
return void this.$message({ showClose: true, type: "error", message: this.$t("workflowEditorMessage.queryResultIsEmpty") });
|
|
680
|
+
t2.forEach((t3) => {
|
|
681
|
+
const o2 = "SYSTEM_" + t3;
|
|
682
|
+
-1 === this.allSearchNodeIds.indexOf(o2) && (this.allSearchNodeIds.push(o2), this.loadRole(t3, o2, true, e2));
|
|
683
|
+
});
|
|
684
|
+
} else
|
|
685
|
+
this.$message({ showClose: true, type: "error", message: this.$t("workflowEditorMessage.queryResultIsEmpty") });
|
|
686
|
+
});
|
|
687
|
+
}, handleCheckNode(e2, t2) {
|
|
688
|
+
t2.checkedKeys.indexOf(e2.nodeId) > -1 ? e2.children ? (this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.checkedNodeAndChildren(e2)) : e2.leaf || this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2.id).then((t3) => {
|
|
689
|
+
this.$refs.roleTree.updateKeyChildren(e2.nodeId, t3), this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.checkedNodeAndChildren(e2);
|
|
690
|
+
}) : this.cancelChildCheckedNodes(e2);
|
|
691
|
+
}, checkedNodeAndChildren(e2) {
|
|
692
|
+
this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.$refs.roleTree.setChecked(e2.nodeId, true);
|
|
693
|
+
const t2 = e2.children;
|
|
694
|
+
t2 && t2.forEach((e3) => {
|
|
695
|
+
this.checkedNodeAndChildren(e3);
|
|
696
|
+
});
|
|
697
|
+
}, cancelChildCheckedNodes(e2) {
|
|
698
|
+
e2.id !== this.tenantNodeId && this.$refs.roleTree.setChecked(this.tenantNodeId + "", false);
|
|
699
|
+
const t2 = e2.children;
|
|
700
|
+
t2 && t2.forEach((e3) => {
|
|
701
|
+
this.$refs.roleTree.setChecked(e3.nodeId, false), this.cancelChildCheckedNodes(e3);
|
|
702
|
+
});
|
|
703
|
+
}, selectRole() {
|
|
704
|
+
if (this.multiple) {
|
|
705
|
+
const e2 = { containBranch: this.containBranch, roles: [] }, t2 = [];
|
|
706
|
+
this.$refs.roleTree.getCheckedNodes().forEach((e3) => {
|
|
707
|
+
if ("ROLE" === e3.nodeType) {
|
|
708
|
+
const o2 = JSON.parse(e3.data);
|
|
709
|
+
o2.tenantCode = this.tenantInfo.code, o2.tenantName = this.tenantInfo.tenantName, t2.push(o2);
|
|
710
|
+
}
|
|
711
|
+
}), e2.roles = t2, e2.length > 0 ? this.$emit("result", e2) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
|
|
712
|
+
} else
|
|
713
|
+
this.selectNodeInfo ? this.$emit("result", this.selectNodeInfo) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
|
|
714
|
+
}, filterNode(e2, t2, o2) {
|
|
715
|
+
if (e2) {
|
|
716
|
+
var l2 = t2.label;
|
|
717
|
+
return "ROLE" === t2.nodeType && -1 !== l2.indexOf(e2);
|
|
718
|
+
}
|
|
719
|
+
return true;
|
|
720
|
+
}, handleNodeClick(e2, t2, o2) {
|
|
721
|
+
if (this.multiple && this.clickNodeWhenMultiple(e2), "ROLE" === e2.nodeType && !this.multiple) {
|
|
722
|
+
const t3 = JSON.parse(e2.data);
|
|
723
|
+
t3.tenantName = this.tenantInfo.tenantName, t3.tenantCode = this.tenantInfo.code;
|
|
724
|
+
var l2 = { id: e2.id, name: e2.name, containBranch: this.containBranch, role: t3 };
|
|
725
|
+
this.selectNodeInfo = l2;
|
|
726
|
+
}
|
|
727
|
+
}, clickNodeWhenMultiple(e2) {
|
|
728
|
+
var t2 = [];
|
|
729
|
+
if (this.$refs.roleTree && (t2 = this.$refs.roleTree.getCheckedKeys()), t2.indexOf(e2.nodeId) > -1)
|
|
730
|
+
this.$refs.roleTree.setChecked(e2.nodeId, false), this.cancelChildCheckedNodes(e2), this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true;
|
|
731
|
+
else {
|
|
732
|
+
this.$refs.roleTree.setChecked(e2.nodeId, true);
|
|
733
|
+
const t3 = e2.childDepartments;
|
|
734
|
+
t3 && t3.length > 0 ? this.checkedNodeAndChildren(e2) : this.isClickNode = true;
|
|
735
|
+
}
|
|
736
|
+
}, renderContent(e2, { node: t2, data: o2, store: l2 }) {
|
|
737
|
+
return o2.nodeType && "ROLE" === o2.nodeType && this.searchValue && o2.label.indexOf(this.searchValue) > -1 ? e2("span", {}, [e2("span", { class: "searchResult" }, t2.label)]) : e2("span", {}, [e2("span", {}, t2.label)]);
|
|
738
|
+
} } }, Lt = Object.assign(Ut, { setup: (e2) => (t2, o2) => {
|
|
739
|
+
const l2 = r.resolveComponent("el-button"), n2 = r.resolveComponent("el-input"), i2 = r.resolveComponent("el-tree");
|
|
740
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(n2, { modelValue: t2.filterText, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => t2.filterText = e3), placeholder: t2.$t("workflowEditorMessage.pleaseEnterTheRoleName"), onKeyup: r.withKeys(t2.clickSearch, ["enter"]) }, { append: r.withCtx(() => [r.createVNode(l2, { icon: r.unref(xt), onClick: t2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"]), r.createVNode(i2, { ref: "roleTree", props: t2.defaultProps, load: t2.loadNode, lazy: "", "highlight-current": true, "node-key": "nodeId", "show-checkbox": e2.multiple, "check-strictly": "", "render-content": t2.renderContent, "filter-node-method": t2.filterNode, onCheck: t2.handleCheckNode, onNodeClick: t2.handleNodeClick }, null, 8, ["props", "load", "show-checkbox", "render-content", "filter-node-method", "onCheck", "onNodeClick"])]);
|
|
741
|
+
} });
|
|
742
|
+
const Ht = M({ name: "ValueSelectionDialog", components: { InlineSystemRoleTree: Lt }, props: { standardFields: { type: [Object, Array], default: null }, title: { type: String, default: "" }, showOrganization: { type: Boolean, default: true }, showFormFields: { type: Boolean, default: true }, orgType: { type: String, default: "" } }, data() {
|
|
743
|
+
let e2 = this.title, t2 = "organization";
|
|
744
|
+
return this.showOrganization || (t2 = "standardFields"), this.title && "" !== this.title || (e2 = h().t("workflowEditorMessage.pleaseSelectAValue")), { selectedValue: "", activeTab: t2, titleName: e2, dialogVisible: true, activeNames: ["baseField"] };
|
|
745
|
+
}, computed: { ...t.mapGetters("wfEditor", ["formFields"]), customFormFields() {
|
|
746
|
+
return this.formFields.filter((e2) => !e2.baseField);
|
|
747
|
+
}, baseFormFields() {
|
|
748
|
+
return this.formFields.filter((e2) => e2.baseField);
|
|
749
|
+
}, options() {
|
|
750
|
+
if (Array.isArray(this.standardFields))
|
|
751
|
+
return this.standardFields;
|
|
752
|
+
{
|
|
753
|
+
const e2 = [];
|
|
754
|
+
for (const t2 of Object.keys(this.standardFields))
|
|
755
|
+
e2.push({ name: t2, label: this.standardFields[t2] });
|
|
756
|
+
return e2;
|
|
757
|
+
}
|
|
758
|
+
} }, watch: { activeTab(e2) {
|
|
759
|
+
this.selectedValue = "";
|
|
760
|
+
} }, methods: { setValue() {
|
|
761
|
+
this.organizationResultValue(), "" !== this.selectedValue ? this.$emit("close", this.selectedValue) : this.$alert(this.$t("workflowEditorMessage.pleaseSelectAValueInTheCurrentTab"));
|
|
762
|
+
}, orgSelect(e2) {
|
|
763
|
+
e2 && ("user" === this.orgType ? this.getSelectedUser(e2.user, e2.containBranch) : "department" === this.orgType ? this.getSelectedDepartmentOrWorkgroup(e2.department, e2.containBranch) : "workgroup" === this.orgType ? this.getSelectedDepartmentOrWorkgroup(e2.workgroup, e2.containBranch) : "role" === this.orgType && this.getSelectedRole(e2.role));
|
|
764
|
+
}, organizationResultValue() {
|
|
765
|
+
this.orgType && "organization" === this.activeTab && ("user" === this.orgType ? this.$refs.organizationTree.confirmSelectUser() : "department" === this.orgType ? this.$refs.organizationTree.selectDepartment() : "workgroup" === this.orgType ? this.$refs.organizationTree.selectWorkgroup() : "role" === this.orgType && this.$refs.organizationTree.selectRole());
|
|
766
|
+
}, getSelectedUser(e2, t2) {
|
|
767
|
+
let o2 = e2.loginName, l2 = e2.name;
|
|
768
|
+
if (t2) {
|
|
769
|
+
if (e2.subCompanyId && null !== e2.subCompanyId) {
|
|
770
|
+
o2 = o2 + "~~" + e2.subCompanyCode, l2 = l2 + "/" + e2.subCompanyName;
|
|
771
|
+
} else
|
|
772
|
+
o2 = o2 + "~~" + e2.tenantCode, l2 = l2 + "/" + e2.tenantName;
|
|
773
|
+
this.selectedValue = l2 + "[" + o2 + "]";
|
|
774
|
+
} else
|
|
775
|
+
this.selectedValue = e2.name + "[" + e2.loginName + "]";
|
|
776
|
+
}, getSelectedDepartmentOrWorkgroup(e2, t2) {
|
|
777
|
+
this.selectedValue = e2.name;
|
|
778
|
+
let o2 = e2.name;
|
|
779
|
+
if (t2) {
|
|
780
|
+
if (e2.subCompanyId && null !== e2.subCompanyId) {
|
|
781
|
+
o2 = o2 + "/" + e2.subCompanyName;
|
|
782
|
+
} else
|
|
783
|
+
o2 = o2 + "/" + e2.tenantName;
|
|
784
|
+
this.selectedValue = o2 + "[" + e2.code + "]";
|
|
785
|
+
} else
|
|
786
|
+
this.selectedValue = e2.name + "[" + e2.code + "]";
|
|
787
|
+
}, getSelectedRole(e2) {
|
|
788
|
+
this.selectedValue = e2.name + "[" + e2.code + "]";
|
|
789
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
790
|
+
const a2 = r.resolveComponent("el-radio"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-tab-pane"), c2 = r.resolveComponent("inline-department-user-tree"), m2 = r.resolveComponent("inline-department-tree"), u2 = r.resolveComponent("inline-workgroup-tree"), p2 = r.resolveComponent("inline-system-role-tree"), h2 = r.resolveComponent("el-col"), f2 = r.resolveComponent("el-collapse-item"), w2 = r.resolveComponent("el-collapse"), g2 = r.resolveComponent("el-radio-group"), C2 = r.resolveComponent("el-tabs"), b2 = r.resolveComponent("el-button"), k2 = r.resolveComponent("el-dialog");
|
|
791
|
+
return r.openBlock(), r.createBlock(k2, { title: n2.titleName, "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-valueSelect", center: "", onClose: t2[5] || (t2[5] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(b2, { type: "primary", size: "small", onClick: i2.setValue }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(b2, { size: "small", onClick: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createVNode(C2, { id: "custTabOne", modelValue: n2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.activeTab = e3), type: "border-card" }, { default: r.withCtx(() => [i2.options.length > 0 ? (r.openBlock(), r.createBlock(d2, { key: 0, label: e2.$t("workflowEditor.process.standardFields"), name: "standardFields" }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.options, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3.name }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.selectedValue, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => n2.selectedValue = e4), label: e3.name, border: "" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), o2.showOrganization ? (r.openBlock(), r.createBlock(d2, { key: 1, label: e2.$t("workflowEditor.common.organizationStructure"), name: "organization" }, { default: r.withCtx(() => ["user" === o2.orgType ? (r.openBlock(), r.createBlock(c2, { key: 0, ref: "organizationTree", multiple: false, onResult: i2.orgSelect }, null, 8, ["onResult"])) : r.createCommentVNode("", true), "department" === o2.orgType ? (r.openBlock(), r.createBlock(m2, { key: 1, ref: "organizationTree", multiple: false, onResult: i2.orgSelect }, null, 8, ["onResult"])) : r.createCommentVNode("", true), "workgroup" === o2.orgType ? (r.openBlock(), r.createBlock(u2, { key: 2, ref: "organizationTree", multiple: false, onResult: i2.orgSelect }, null, 8, ["onResult"])) : r.createCommentVNode("", true), "role" === o2.orgType ? (r.openBlock(), r.createBlock(p2, { key: 3, ref: "organizationTree", multiple: false, onResult: i2.orgSelect }, null, 8, ["onResult"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(d2, { label: e2.$t("workflowEditor.common.formField"), name: "formFields" }, { default: r.withCtx(() => [r.createVNode(g2, { modelValue: n2.selectedValue, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.selectedValue = e3), class: "group" }, { default: r.withCtx(() => [r.createVNode(s2, { style: { width: "100%" } }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.customFormFields, (e3) => (r.openBlock(), r.createBlock(h2, { key: e3.name, span: 8 }, { default: r.withCtx(() => [r.createVNode(a2, { label: "${field[" + e3.name + "]}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]), _: 2 }, 1024))), 128))]), _: 1 }), r.createVNode(w2, { modelValue: n2.activeNames, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.activeNames = e3), style: { width: "100%" } }, { default: r.withCtx(() => [r.createVNode(f2, { title: e2.$t("workflowEditor.task.baseField"), name: "baseField" }, { default: r.withCtx(() => [r.createVNode(s2, null, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.baseFormFields, (e3) => (r.openBlock(), r.createBlock(h2, { key: e3.name, span: 8 }, { default: r.withCtx(() => [r.createVNode(a2, { label: "${field[" + e3.name + "]}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 }, 8, ["title"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["title"]);
|
|
792
|
+
}], ["__scopeId", "data-v-7feaa2da"]]), jt = { name: "AdditionalCondition", components: { ValueSelectionDialog: Ht }, props: { modelValue: { type: String, default: null }, isTransition: { type: Boolean, default: false } }, data() {
|
|
793
|
+
const e2 = [], t2 = Ot(e2, this.modelValue);
|
|
794
|
+
return { standardFields: Et, tableData: e2, count: t2, currentRow: null, currentInput: null, options: [], valueDialogTitle: null, showOrganization: true, orgType: null };
|
|
795
|
+
}, computed: { ...t.mapGetters("wfEditor", ["formFields"]), availableStandardFields() {
|
|
796
|
+
return "key" === this.currentInput ? function(e2) {
|
|
797
|
+
if (e2)
|
|
798
|
+
return Et;
|
|
799
|
+
const t2 = [];
|
|
800
|
+
return Et.forEach((o2) => {
|
|
801
|
+
e2 || "other" === o2.orgType || t2.push(o2);
|
|
802
|
+
}), t2;
|
|
803
|
+
}(this.isTransition) : function(e2) {
|
|
804
|
+
const t2 = Et.filter((t3) => t3.name === e2);
|
|
805
|
+
let o2 = [];
|
|
806
|
+
t2.length > 0 && (o2 = t2[0].relatedFields || []);
|
|
807
|
+
const l2 = [];
|
|
808
|
+
return Et.forEach((e3) => {
|
|
809
|
+
o2.indexOf(e3.name.substring(2, e3.name.length - 1)) >= 0 && l2.push(e3);
|
|
810
|
+
}), l2;
|
|
811
|
+
}(this.currentRow.key);
|
|
812
|
+
} }, mounted() {
|
|
813
|
+
this.tableData.length > 0 && this.$refs.table.setCurrentRow(this.tableData[this.tableData.length - 1]), this.$watch("tableData", function(e2, t2) {
|
|
814
|
+
this.$emit("update:modelValue", function(e3) {
|
|
815
|
+
let t3 = "";
|
|
816
|
+
for (const o3 of e3)
|
|
817
|
+
0 === o3.key.length || "" === o3.operator || "" === o3.value && "operator.text.is.null" !== o3.operator && "operator.text.not.null" !== o3.operator || (t3 = t3 + o3.leftBracket + o3.key + " " + o3.operator + " " + o3.value + o3.rightBracket + " " + o3.logicOperator + " ");
|
|
818
|
+
const o2 = " condition.operator.or ", l2 = " condition.operator.and ";
|
|
819
|
+
return t3.lastIndexOf(o2) + 23 === t3.length ? t3 = t3.substring(0, t3.lastIndexOf(o2)) : t3.lastIndexOf(l2) + 24 === t3.length && (t3 = t3.substring(0, t3.lastIndexOf(l2))), t3;
|
|
820
|
+
}(this.tableData));
|
|
821
|
+
}, { deep: true });
|
|
822
|
+
}, methods: { format: (e2, t2) => "" === e2 || null == e2 ? "" : _t(e2), getOperatorOptions: (e2) => function(e3) {
|
|
823
|
+
const t2 = ut(e3) || It(e3);
|
|
824
|
+
if (t2)
|
|
825
|
+
return function(e4) {
|
|
826
|
+
return ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(e4) >= 0;
|
|
827
|
+
}(t2.dataType) ? Mt : function(e4) {
|
|
828
|
+
return ["DATE", "TIME"].indexOf(e4) >= 0;
|
|
829
|
+
}(t2.dataType) ? Ft : function(e4) {
|
|
830
|
+
return ["STRING", "TEXT"].indexOf(e4) >= 0;
|
|
831
|
+
}(t2.dataType) ? Dt : function(e4) {
|
|
832
|
+
return "${approvalResult}" === e4;
|
|
833
|
+
}(e3) ? Pt : $t;
|
|
834
|
+
}(e2), selectRow(e2) {
|
|
835
|
+
this.$refs.table.setCurrentRow(e2);
|
|
836
|
+
}, openValueDialog(e2) {
|
|
837
|
+
this.showValueDialog = true, this.selectRow(e2);
|
|
838
|
+
}, closeValueDialog(e2) {
|
|
839
|
+
void 0 !== e2 && "" !== e2 && ("key" === this.currentInput && this.currentRow.key !== e2 && (this.currentRow.operator = "", this.currentRow.value = ""), this.currentRow[this.currentInput] = e2), this.currentInput = "";
|
|
840
|
+
}, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
|
|
841
|
+
this.currentRow = e2;
|
|
842
|
+
}, getRowIndex(e2) {
|
|
843
|
+
for (let t2 = 0; t2 < this.tableData.length; t2++)
|
|
844
|
+
if (this.tableData[t2].id === e2.id)
|
|
845
|
+
return t2;
|
|
846
|
+
return -1;
|
|
847
|
+
}, add() {
|
|
848
|
+
(null === this.count || void 0 === this.count || this.count.isNaN || "NaN" === this.count) && (this.count = 0);
|
|
849
|
+
const e2 = { id: this.count, leftBracket: "", key: "", operator: "", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
850
|
+
this.tableData.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
851
|
+
}, insert() {
|
|
852
|
+
if (null === this.currentRow)
|
|
853
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
854
|
+
const e2 = { id: this.count, leftBracket: "", key: "", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
855
|
+
this.tableData.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
856
|
+
}, remove() {
|
|
857
|
+
if (null === this.currentRow)
|
|
858
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
859
|
+
let e2 = this.getRowIndex(this.currentRow);
|
|
860
|
+
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]));
|
|
861
|
+
}, view() {
|
|
862
|
+
let e2 = At(this.tableData);
|
|
863
|
+
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorMessage.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
864
|
+
} });
|
|
865
|
+
}, selectField(e2) {
|
|
866
|
+
this.selectRow(e2), this.currentInput = "key", this.valueDialogTitle = this.$t("workflowEditorMessage.fieldSettings"), this.showOrganization = false;
|
|
867
|
+
}, selectValue() {
|
|
868
|
+
this.currentInput = "value", this.valueDialogTitle = this.$t("workflowEditorMessage.valueSetting"), this.showOrganization = true, this.orgType = this.getStandardFieldOrgType();
|
|
869
|
+
}, getStandardFieldOrgType() {
|
|
870
|
+
const e2 = this.standardFields.filter((e3) => e3.name === this.currentRow.key);
|
|
871
|
+
return e2.length > 0 ? e2[0].orgType : "";
|
|
872
|
+
}, isTransitionOtherField: (e2) => function(e3) {
|
|
873
|
+
if ("${approvalResult}" === e3)
|
|
874
|
+
return false;
|
|
875
|
+
const t2 = Et.filter((t3) => t3.name === e3);
|
|
876
|
+
let o2 = false;
|
|
877
|
+
return t2.length > 0 && t2.forEach((t3) => {
|
|
878
|
+
e3 === t3.name && "other" === t3.orgType && (o2 = true);
|
|
879
|
+
}), o2;
|
|
880
|
+
}(e2) } }, zt = { style: { overflow: "auto", width: "100%" } };
|
|
881
|
+
const Wt = M(jt, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
882
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-option"), c2 = r.resolveComponent("el-select"), m2 = r.resolveComponent("el-table-column"), u2 = r.resolveComponent("el-input"), p2 = r.resolveComponent("el-table"), h2 = r.resolveComponent("value-selection-dialog");
|
|
883
|
+
return r.openBlock(), r.createElementBlock("div", zt, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: i2.insert }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "View", onClick: i2.view }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(p2, { ref: "table", data: n2.tableData, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(m2, { prop: "leftBracket", label: "(", width: "90" }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => i2.selectRow(e3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: "", value: "" }), r.createVNode(d2, { label: "(", value: "(" }), r.createVNode(d2, { label: "((", value: "((" }), r.createVNode(d2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), r.createVNode(m2, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: r.withCtx((e3) => [r.createVNode(u2, { value: i2.format(e3.row.key), onClick: (t3) => i2.selectField(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.operator"), width: "130" }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, placeholder: "", onFocus: (t3) => i2.selectRow(e3.row) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.getOperatorOptions(e3.row.key), (e4) => (r.openBlock(), r.createBlock(d2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.value") }, { default: r.withCtx((t3) => [t3.row.key.indexOf("${field[") >= 0 || i2.isTransitionOtherField(t3.row.key) ? (r.openBlock(), r.createBlock(u2, { 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 ? (r.openBlock(), r.createBlock(c2, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, { default: r.withCtx(() => [r.createVNode(d2, { value: "同意", label: e2.$t("workflowEditorPublicModel.agree") }, null, 8, ["label"]), r.createVNode(d2, { value: "不同意", label: e2.$t("workflowEditorPublicModel.disagree") }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (r.openBlock(), r.createBlock(u2, { key: 2, value: i2.format(t3.row.value, t3.row), readonly: "", onClick: i2.selectValue }, null, 8, ["value", "onClick"]))]), _: 1 }, 8, ["label"]), r.createVNode(m2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => i2.selectRow(e2.scope.row)) }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: r.withCtx(() => [r.createVNode(d2, { label: "", value: "" }), r.createVNode(d2, { label: ")", value: ")" }), r.createVNode(d2, { label: "))", value: "))" }), r.createVNode(d2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r.createVNode(m2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), r.createVNode(d2, { 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"]), n2.currentInput ? (r.openBlock(), r.createBlock(h2, { key: 0, title: n2.valueDialogTitle, "show-organization": n2.showOrganization, "standard-fields": i2.availableStandardFields, "org-type": n2.orgType, onClose: i2.closeValueDialog }, null, 8, ["title", "show-organization", "standard-fields", "org-type", "onClose"])) : r.createCommentVNode("", true)]);
|
|
884
|
+
}]]);
|
|
885
|
+
const Jt = M({ name: "AdditionalConditionDialog", components: { AdditionalCondition: Wt }, props: { modelValue: { type: String, default: "" } }, data() {
|
|
886
|
+
return { condition: this.modelValue, dialogVisible: true };
|
|
887
|
+
}, watch: { value(e2) {
|
|
888
|
+
this.condition = e2;
|
|
889
|
+
} }, methods: { setConditions() {
|
|
890
|
+
this.$emit("update:modelValue", this.condition), this.$emit("close");
|
|
891
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
892
|
+
const a2 = r.resolveComponent("additional-condition"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-button"), c2 = r.resolveComponent("el-dialog");
|
|
893
|
+
return r.openBlock(), r.createBlock(c2, { width: "50%", title: e2.$t("workflowEditor.task.setConditions"), "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", center: "", onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(d2, { type: "primary", size: "small", onClick: i2.setConditions }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(d2, { size: "small", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.condition, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.condition = e3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
894
|
+
}]]), qt = { name: "CustomActions", components: { AdditionalConditionDialog: Jt }, props: { model: { type: Object, default: null } }, data() {
|
|
895
|
+
const e2 = [];
|
|
896
|
+
let t2 = 1;
|
|
897
|
+
if (this.model.action)
|
|
898
|
+
if (Array.isArray(this.model.action))
|
|
899
|
+
for (const o2 of this.model.action)
|
|
900
|
+
e2.push({ ...o2, id: t2 }), t2++;
|
|
901
|
+
else
|
|
902
|
+
e2.push({ ...this.model.action, id: t2 }), t2++;
|
|
903
|
+
return { actions: e2, actionTypes: [{ type: "SAVE", label: h().t("workflowEditor.task.save") }, { type: "SUBMIT", label: h().t("workflowEditor.task.submission") }, { type: "APPROVE", label: h().t("workflowEditor.task.agree") }, { type: "REFUSE", label: h().t("workflowEditor.task.disagree") }, { type: "AGREEMENT", label: h().t("workflowEditor.task.favor") }, { type: "OPPOSE", label: h().t("workflowEditor.task.opposition") }, { type: "KIKEN", label: h().t("workflowEditor.task.waiver") }, { type: "DRAW", label: h().t("workflowEditor.task.receive") }, { type: "ABANDON_DRAW", label: h().t("workflowEditor.task.giveUp") }, { type: "ADD_SIGN", label: h().t("workflowEditor.task.additionalSignature") }, { type: "REMOVE_SIGN", label: h().t("workflowEditor.task.reductionOfSignature") }, { type: "ASSIGN_TASK", label: h().t("workflowEditor.task.assignTask") }, { type: "COPY", label: h().t("workflowEditor.task.copyTask") }, { type: "GET_BACK_BUTTON", label: h().t("workflowEditor.task.retrieveTask") }, { type: "READED", label: h().t("workflowEditor.task.readTask") }, { type: "EXPORT_REPORT", label: h().t("workflowEditor.task.exportReport") }], currentRow: null, count: t2, showAdditionalCondition: false };
|
|
904
|
+
}, mounted() {
|
|
905
|
+
this.actions.length > 0 && this.selectRow(this.actions[this.actions.length - 1]), this.$watch("actions", function(e2, t2) {
|
|
906
|
+
const o2 = [];
|
|
907
|
+
for (const e3 of this.actions) {
|
|
908
|
+
const t3 = { ...e3 };
|
|
909
|
+
delete t3.id, o2.push(t3);
|
|
910
|
+
}
|
|
911
|
+
this.$emit("updateAction", o2);
|
|
912
|
+
}, { deep: true });
|
|
913
|
+
}, methods: { selectRow(e2) {
|
|
914
|
+
this.$refs.table.setCurrentRow(e2);
|
|
915
|
+
}, getRowIndex(e2) {
|
|
916
|
+
for (let t2 = 0; t2 < this.actions.length; t2++)
|
|
917
|
+
if (this.actions[t2].id === e2.id)
|
|
918
|
+
return t2;
|
|
919
|
+
return -1;
|
|
920
|
+
}, handleCurrentChange(e2) {
|
|
921
|
+
this.currentRow = e2;
|
|
922
|
+
}, isDuplicated(e2) {
|
|
923
|
+
const t2 = this.getRowIndex(this.currentRow);
|
|
924
|
+
for (let o2 = 0; o2 < this.actions.length; o2++)
|
|
925
|
+
o2 !== t2 && this.actions[o2].type === e2 && (this.$alert(this.$t("workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect", { row: o2 + 1 })), this.currentRow.type = "");
|
|
926
|
+
}, add() {
|
|
927
|
+
for (let e3 = 0; e3 < this.actions.length; e3++) {
|
|
928
|
+
const t2 = this.actions[e3];
|
|
929
|
+
if ("" === t2.type || "" === t2.label)
|
|
930
|
+
return void this.$alert(this.$t("workflowEditorMessage.theOperationTypeOrNameInLineIsEmpty", { row: e3 + 1 }));
|
|
931
|
+
}
|
|
932
|
+
const e2 = { id: this.count, type: "", label: "", visible: true, condition: "" };
|
|
933
|
+
this.actions.push(e2), this.selectRow(e2), this.count++;
|
|
934
|
+
}, remove() {
|
|
935
|
+
let e2 = this.getRowIndex(this.currentRow);
|
|
936
|
+
this.actions.splice(e2, 1), this.actions.length > 0 && (e2 = e2 <= this.actions.length - 1 ? e2 : this.actions.length - 1, this.$refs.table.setCurrentRow(this.actions[e2]));
|
|
937
|
+
}, formatCondition(e2) {
|
|
938
|
+
if ("" === e2 || !e2)
|
|
939
|
+
return this.$t("workflowEditor.task.nothing");
|
|
940
|
+
const t2 = [];
|
|
941
|
+
return Ot(t2, e2), At(t2);
|
|
942
|
+
}, selectCondition(e2) {
|
|
943
|
+
this.selectRow(e2), this.currentRow || (this.currentRow.condition = ""), this.showAdditionalCondition = true;
|
|
944
|
+
} } }, Gt = Object.assign(qt, { setup: (e2) => (e3, t2) => {
|
|
945
|
+
const o2 = r.resolveComponent("el-button"), l2 = r.resolveComponent("el-table-column"), n2 = r.resolveComponent("el-option"), i2 = r.resolveComponent("el-select"), a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-checkbox"), d2 = r.resolveComponent("el-table"), c2 = r.resolveComponent("el-row");
|
|
946
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(c2, null, { default: r.withCtx(() => [r.createVNode(o2, { type: "primary", size: "small", plain: "", icon: r.unref(Ct), onClick: e3.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["icon", "onClick"]), r.createVNode(o2, { type: "primary", size: "small", plain: "", icon: r.unref(yt), onClick: e3.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["icon", "onClick"]), r.createVNode(d2, { ref: "table", data: e3.actions, "row-key": "type", border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: e3.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(l2, { type: "index" }), r.createVNode(l2, { label: e3.$t("workflowEditor.task.operationType"), width: "180" }, { default: r.withCtx((t3) => [r.createVNode(i2, { modelValue: t3.row.type, "onUpdate:modelValue": (e4) => t3.row.type = e4, onChange: e3.isDuplicated }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e3.actionTypes, (e4) => (r.openBlock(), r.createBlock(n2, { key: e4.id, value: e4.type, label: e4.label }, null, 8, ["value", "label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(l2, { prop: "label", label: e3.$t("workflowEditor.task.name"), width: "180" }, { default: r.withCtx((e4) => [r.createVNode(a2, { modelValue: e4.row.label, "onUpdate:modelValue": (t3) => e4.row.label = t3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(l2, { prop: "visible", label: e3.$t("workflowEditor.task.visibleOrNot") }, { default: r.withCtx((e4) => [r.createVNode(s2, { modelValue: e4.row.visible, "onUpdate:modelValue": (t3) => e4.row.visible = t3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(l2, { prop: "condition", label: e3.$t("workflowEditor.task.condition") }, { default: r.withCtx((t3) => [r.createVNode(a2, { value: e3.formatCondition(t3.row.condition), type: "textarea", autosize: "", onFocus: (o3) => e3.selectCondition(t3.row) }, null, 8, ["value", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), e3.showAdditionalCondition ? (r.openBlock(), r.createBlock(r.unref(Jt), { key: 0, modelValue: e3.currentRow.condition, "onUpdate:modelValue": t2[0] || (t2[0] = (t3) => e3.currentRow.condition = t3), onClose: t2[1] || (t2[1] = (t3) => e3.showAdditionalCondition = false) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]);
|
|
947
|
+
} }), Kt = { name: "I18nSet", props: { value: { type: Object, default: null } }, data() {
|
|
948
|
+
let e2 = {};
|
|
949
|
+
return this.value && (e2 = JSON.parse(JSON.stringify(this.value))), { requiredRule: { required: true, message: h().t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }, i18nModel: e2, bundleCode: null, isShow: false, i18nKey: null, languages: {}, dialogVisible: true, isNewI18n: false };
|
|
950
|
+
}, computed: { ...t.mapGetters("wfEditor", ["systemCode", "processCode", "isHandleCreate"]) }, created() {
|
|
951
|
+
this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n || (this.bundleCode = this.systemCode + ".workflow." + this.processCode), this.getI18nSet();
|
|
952
|
+
}, methods: { getI18nSet() {
|
|
953
|
+
this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/languages?isNewI18n=" + this.isNewI18n).then((e2) => {
|
|
954
|
+
const t2 = { bundleCode: this.bundleCode, i18nKey: this.i18nModel.key, isNewI18n: this.isNewI18n + "", systemCode: this.systemCode };
|
|
955
|
+
this.$http.post(this.baseAPI + "/wf-editor/i18n-settings/get-info", t2).then((t3) => {
|
|
956
|
+
this.languages = e2, Object.keys(this.languages).forEach((e3) => {
|
|
957
|
+
this.i18nModel, t3 && t3[e3] ? this.i18nModel.values[e3] = t3[e3] : this.i18nModel.values[e3] || (this.i18nModel.values[e3] = "");
|
|
958
|
+
}), this.isShow = true;
|
|
959
|
+
});
|
|
960
|
+
});
|
|
961
|
+
}, saveI18nSet(e2) {
|
|
962
|
+
this.$refs[e2].validate((e3) => {
|
|
963
|
+
if (!e3)
|
|
964
|
+
return false;
|
|
965
|
+
this.i18nModel.bundleCode = this.bundleCode, this.i18nModel.systemCode = this.systemCode, this.i18nModel.isNewI18n = this.isNewI18n + "", this.i18nModel, this.$http.post(this.baseAPI + "/wf-editor/i18n-settings", this.i18nModel).then(() => {
|
|
966
|
+
this.$emit("close", this.i18nModel.key);
|
|
967
|
+
});
|
|
968
|
+
});
|
|
969
|
+
}, goBack() {
|
|
970
|
+
this.$emit("close");
|
|
971
|
+
} } }, Xt = { class: "operation-area" };
|
|
972
|
+
const Yt = { name: "I18nInput", components: { I18nSet: M(Kt, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
973
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-input"), d2 = r.resolveComponent("el-form-item"), c2 = r.resolveComponent("el-col"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("el-form"), p2 = r.resolveComponent("el-dialog");
|
|
974
|
+
return n2.isShow ? (r.openBlock(), r.createBlock(p2, { key: 0, "close-on-click-modal": false, width: "30%", title: e2.$t("workflowEditorPublicModel.i18nSet"), "append-to-body": "", "model-value": "", top: "5vh", onOpen: t2[2] || (t2[2] = (t3) => e2.$emit("open")), onOpend: t2[3] || (t2[3] = (t3) => e2.$emit("opend")), onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")), onClosed: t2[5] || (t2[5] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createElementVNode("div", Xt, [r.createVNode(a2, { type: "primary", size: "small", onClick: t2[0] || (t2[0] = (e3) => i2.saveI18nSet("form")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }), r.createVNode(a2, { size: "small", onClick: i2.goBack }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }, 8, ["onClick"])]), r.createVNode(u2, { ref: "form", model: n2.i18nModel, "label-width": "100px" }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(c2, { span: 24 }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditorPublicModel.i18nKey"), prop: "key", rules: [n2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.i18nModel.key, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.i18nModel.key = e3), style: { width: "80%" } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })]), _: 1 }), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(Object.keys(n2.languages), (e3) => (r.openBlock(), r.createBlock(m2, { key: e3 }, { default: r.withCtx(() => [r.createVNode(c2, { span: 24 }, { default: r.withCtx(() => [r.createVNode(d2, { label: n2.languages[e3], prop: e3 }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.i18nModel.values[e3], "onUpdate:modelValue": (t3) => n2.i18nModel.values[e3] = t3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["label", "prop"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["title"])) : r.createCommentVNode("", true);
|
|
975
|
+
}]]) }, model: { prop: "value", event: "input" }, props: { modelValue: { type: String, default: "" }, i18nKey: { type: String, default: "" } }, data() {
|
|
976
|
+
const e2 = this.modelValue;
|
|
977
|
+
return { isShowI18n: false, myI18nKey: this.i18nKey, zh: e2, isNewI18n: false };
|
|
978
|
+
}, computed: { ...t.mapGetters("wfEditor", ["processCode", "isHandleCreate"]) }, mounted() {
|
|
979
|
+
this.$watch("zh", function(e2) {
|
|
980
|
+
this.$emit("update:modelValue", e2);
|
|
981
|
+
});
|
|
982
|
+
}, created() {
|
|
983
|
+
this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n && (this.myI18nKey = this.modelValue);
|
|
984
|
+
}, methods: { i18nSet() {
|
|
985
|
+
this.myI18nKey ? this.isShowI18n = true : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseInputCode") });
|
|
986
|
+
}, closeI18nSet(e2) {
|
|
987
|
+
e2 && this.$emit("setI18n", e2), this.isShowI18n = false;
|
|
988
|
+
} } }, Qt = { style: { float: "left", "padding-right": "5px" } };
|
|
989
|
+
const Zt = M(Yt, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
990
|
+
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("i18n-set");
|
|
991
|
+
return r.openBlock(), r.createElementBlock("span", null, [r.createElementVNode("div", Qt, [r.createVNode(a2, { modelValue: n2.zh, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.zh = e3) }, { append: r.withCtx(() => [r.createElementVNode("i", { class: "fa fa-cog", onClick: t2[0] || (t2[0] = (...e3) => i2.i18nSet && i2.i18nSet(...e3)) })]), _: 1 }, 8, ["modelValue"])]), n2.isShowI18n ? (r.openBlock(), r.createBlock(s2, { key: 0, value: { values: { zh_CN: n2.zh }, key: n2.myI18nKey }, onClose: i2.closeI18nSet }, null, 8, ["value", "onClose"])) : r.createCommentVNode("", true)]);
|
|
992
|
+
}]]), eo = { style: { width: "100%" } };
|
|
993
|
+
const to = M({ name: "SelectMailTemplates", model: { prop: "value", event: "input" }, props: { modelValue: { type: [String, Number], default: "" } }, data() {
|
|
994
|
+
return { baseURL: "", optionUrl: "", multiSelectData: [], showMailTemplateFlag: false, code: this.modelValue, options: { showColumns: "code,name" }, dialogVisible: true };
|
|
995
|
+
}, created() {
|
|
996
|
+
this.baseURL = window.$vueApp.config.globalProperties.baseAPI, this.optionUrl = "/mc/email-templates/list/0";
|
|
997
|
+
}, methods: { selectTemplate() {
|
|
998
|
+
this.multiSelectData && 1 === this.multiSelectData.length ? (this.code = this.multiSelectData[0].code, this.$emit("set-value", this.code), this.showMailTemplateFlag = false) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseSelectARow") });
|
|
999
|
+
}, selectData(e2, t2) {
|
|
1000
|
+
this.multiSelectData = e2;
|
|
1001
|
+
}, clearVal() {
|
|
1002
|
+
this.code = null, this.$emit("set-value", null);
|
|
1003
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1004
|
+
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("super-grid"), d2 = r.resolveComponent("el-button"), c2 = r.resolveComponent("el-dialog");
|
|
1005
|
+
return r.openBlock(), r.createElementBlock("span", eo, [r.createVNode(a2, { readonly: "", modelValue: n2.code, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.code = e3), onClick: t2[3] || (t2[3] = (e3) => n2.showMailTemplateFlag = true) }, { append: r.withCtx(() => [r.createElementVNode("i", { class: "fa fa-search", onClick: t2[0] || (t2[0] = (e3) => n2.showMailTemplateFlag = true) }), r.createElementVNode("i", { style: { "padding-left": "10px" }, class: "fa fa-trash", onClick: t2[1] || (t2[1] = (e3) => i2.clearVal()) })]), _: 1 }, 8, ["modelValue"]), r.createVNode(c2, { width: "40%", title: e2.$t("workflowEditor.task.selectTemplate"), modelValue: n2.showMailTemplateFlag, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.showMailTemplateFlag = e3), center: "", top: "5vh", "append-to-body": "", class: "properties-editor-noTab" }, { footer: r.withCtx(() => [r.createVNode(d2, { onClick: t2[4] || (t2[4] = (e3) => n2.showMailTemplateFlag = false) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 }), r.createVNode(d2, { type: "primary", onClick: i2.selectTemplate }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"])]), default: r.withCtx(() => [r.createVNode(s2, { ref: "reportGrid", url: n2.baseURL + n2.optionUrl, code: "BS_EMAIL_TEMPLATE", options: n2.options, onSelect: i2.selectData }, null, 8, ["url", "options", "onSelect"])]), _: 1 }, 8, ["title", "modelValue"])]);
|
|
1006
|
+
}]]), oo = { name: "BasicProperties", components: { TaskTitle: pt, CustomActions: Gt, i18nInput: Zt, SelectMailTemplates: to }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
1007
|
+
let e2 = false;
|
|
1008
|
+
const t2 = this.model.processingMode.actions.action;
|
|
1009
|
+
return t2 && (e2 = !Array.isArray(t2) || 0 !== t2.length), { showActions: e2, formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
1010
|
+
}, computed: { tache() {
|
|
1011
|
+
return this.model;
|
|
1012
|
+
} }, created() {
|
|
1013
|
+
this.tache.processingMode.actions || (this.tache.processingMode.actions = {});
|
|
1014
|
+
}, mounted() {
|
|
1015
|
+
this.$watch("formModel.name", function(e2, t2) {
|
|
1016
|
+
this.$emit("update:name", e2);
|
|
1017
|
+
});
|
|
1018
|
+
}, methods: { validateId() {
|
|
1019
|
+
x(this);
|
|
1020
|
+
}, setMailTemplateCode(e2) {
|
|
1021
|
+
this.tache.mailTemplateCode = e2;
|
|
1022
|
+
}, setMailPointTemplateCode(e2) {
|
|
1023
|
+
this.tache.mailPointTemplateCode = e2;
|
|
1024
|
+
}, setI18nValue(e2) {
|
|
1025
|
+
this.tache.i18nKey = e2;
|
|
1026
|
+
}, updateAction(e2) {
|
|
1027
|
+
this.tache.processingMode.actions.action = e2;
|
|
1028
|
+
} } }, lo = ((e2) => (r.pushScopeId("data-v-a219b06d"), e2 = e2(), r.popScopeId(), e2))(() => r.createElementVNode("span", { class: "percent" }, " % ", -1));
|
|
1029
|
+
const ro = M(oo, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1030
|
+
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("task-title"), p2 = r.resolveComponent("el-switch"), h2 = r.resolveComponent("select-mail-templates"), f2 = r.resolveComponent("el-radio"), w2 = r.resolveComponent("el-radio-group"), g2 = r.resolveComponent("el-input-number"), C2 = r.resolveComponent("custom-actions"), b2 = r.resolveComponent("el-form");
|
|
1031
|
+
return r.openBlock(), r.createBlock(b2, { model: n2.formModel, "label-width": "110px" }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.name = e3), "i18n-key": i2.tache.i18nKey ? i2.tache.i18nKey : "name." + n2.formModel.id, onSetI18n: i2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.code") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.id = e3), onBlur: i2.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.task.taskTitle") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.tache.taskTitle, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.tache.taskTitle = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.canItBeRejected") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: i2.tache.rebuttable, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.tache.rebuttable = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.emailNotification") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: i2.tache.mailNotice, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.tache.mailNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i2.tache.mailNotice ? (r.openBlock(), r.createBlock(s2, { key: 0, label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: i2.tache.mailTemplateCode, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.tache.mailTemplateCode = e3), onSetValue: i2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), i2.tache.mailNotice ? (r.openBlock(), r.createBlock(s2, { key: 1, label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: i2.tache.mailPointTemplateCode, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.tache.mailPointTemplateCode = e3), onSetValue: i2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.HandlingMethod") }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: i2.tache.processingMode.type, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.tache.processingMode.type = e3) }, { default: r.withCtx(() => [r.createVNode(f2, { label: "EDIT" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.editorial")), 1)]), _: 1 }), r.createVNode(f2, { label: "APPROVE" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.approvalType")), 1)]), _: 1 }), r.createVNode(f2, { label: "COUNTERSIGN" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.countersign")), 1)]), _: 1 }), r.createVNode(f2, { label: "VOTE" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.voting")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), "EDIT" === i2.tache.processingMode.type || "APPROVE" === i2.tache.processingMode.type ? (r.openBlock(), r.createBlock(s2, { key: 2, label: e2.$t("workflowEditorMessage.whenThereAreMultipleManagers") }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: i2.tache.processingMode.moreTransactor, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => i2.tache.processingMode.moreTransactor = e3) }, { default: r.withCtx(() => [r.createVNode(f2, { label: false }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.anyOneCanHandleIt")), 1)]), _: 1 }), r.createVNode(f2, { label: true }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.forAll")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), "COUNTERSIGN" === i2.tache.processingMode.type || "VOTE" === i2.tache.processingMode.type ? (r.openBlock(), r.createBlock(s2, { key: 3, label: e2.$t("workflowEditor.task.passRate") }, { default: r.withCtx(() => [r.createVNode(g2, { modelValue: i2.tache.processingMode.passRate, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => i2.tache.processingMode.passRate = e3), step: 10, size: "small", min: 0, max: 100 }, null, 8, ["modelValue"]), lo]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.modifyOperationName") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: n2.showActions, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => n2.showActions = e3) }, null, 8, ["modelValue"]), n2.showActions ? (r.openBlock(), r.createBlock(C2, { key: 0, model: i2.tache.processingMode.actions, onUpdateAction: i2.updateAction }, null, 8, ["model", "onUpdateAction"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.handlingPage") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.tache.taskUrl, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => i2.tache.taskUrl = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.remarks") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.tache.remark, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => i2.tache.remark = e3), type: "textarea", autosize: "" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1032
|
+
}], ["__scopeId", "data-v-a219b06d"]]), no = { name: "EditableFieldSelection", components: { AdditionalCondition: Wt }, props: { value: { type: Array, default: null }, disabledFields: { type: Array, default: null } }, data: () => ({ availableFields: [], formModel: { selectedFields: [], constraintRule: "REQUIRED", showCondition: false, condition: "" }, availableFieldsCount: null, orange: -1, pin: false, dialogVisible: true, activeNames: ["baseField"] }), computed: { ...t.mapGetters("wfEditor", ["formFieldsWithSub"]) }, created() {
|
|
1033
|
+
let e2 = 0;
|
|
1034
|
+
this.formFieldsWithSub.map((t3) => {
|
|
1035
|
+
this.disabledFields.indexOf(t3.name) < 0 && (t3.index = e2, this.availableFields.push(t3), e2++);
|
|
1036
|
+
});
|
|
1037
|
+
const t2 = this.availableFields.length;
|
|
1038
|
+
this.availableFieldsCount = Math.ceil(t2 / 3);
|
|
1039
|
+
}, mounted() {
|
|
1040
|
+
window.addEventListener("keydown", (e2) => {
|
|
1041
|
+
16 === e2.keyCode && e2.shiftKey && (this.pin = true);
|
|
1042
|
+
}), window.addEventListener("keyup", (e2) => {
|
|
1043
|
+
16 === e2.keyCode && (this.pin = false);
|
|
1044
|
+
});
|
|
1045
|
+
}, methods: { filterMethod: (e2, t2) => !!(t2.label && t2.label.indexOf(e2) > -1) || (t2.label, false), setSelectedFields() {
|
|
1046
|
+
const e2 = [];
|
|
1047
|
+
for (const t2 of this.formModel.selectedFields)
|
|
1048
|
+
e2.push({ name: t2, constraintRule: this.formModel.constraintRule, condition: this.formModel.showCondition ? this.formModel.condition : "" });
|
|
1049
|
+
this.$emit("input-value", e2), this.$emit("close");
|
|
1050
|
+
}, pinSelect(e2, t2) {
|
|
1051
|
+
const o2 = this.availableFields, l2 = this.origin, r2 = t2;
|
|
1052
|
+
if (this.pin && -1 !== this.formModel.selectedFields.indexOf(e2)) {
|
|
1053
|
+
this.formModel.selectedFields.indexOf(e2);
|
|
1054
|
+
const t3 = Math.abs(l2 - r2) + 1, n2 = Math.min(l2, r2);
|
|
1055
|
+
let i2 = 0;
|
|
1056
|
+
for (; i2 < t3; ) {
|
|
1057
|
+
const e3 = n2 + i2;
|
|
1058
|
+
-1 === this.formModel.selectedFields.indexOf(o2[e3].name) && this.formModel.selectedFields.push(o2[e3].name), i2++;
|
|
1059
|
+
}
|
|
1060
|
+
} else
|
|
1061
|
+
this.origin = t2;
|
|
1062
|
+
} } }, io = ["title"], ao = ["title"], so = ["title"], co = ["title"], mo = ["title"], uo = ["title"], po = ["title"], ho = ["title"], fo = ["title"], wo = ["title"], go = ["title"], Co = ["title"];
|
|
1063
|
+
const bo = { name: "EditableFields", components: { EditableFieldSelection: M(no, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1064
|
+
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-col"), d2 = r.resolveComponent("el-row"), c2 = r.resolveComponent("el-collapse-item"), m2 = r.resolveComponent("el-collapse"), u2 = r.resolveComponent("el-checkbox-group"), p2 = r.resolveComponent("el-radio"), h2 = r.resolveComponent("el-radio-group"), f2 = r.resolveComponent("el-form-item"), w2 = r.resolveComponent("el-switch"), g2 = r.resolveComponent("additional-condition"), C2 = r.resolveComponent("el-form"), b2 = r.resolveComponent("el-button"), k2 = r.resolveComponent("el-dialog");
|
|
1065
|
+
return r.openBlock(), r.createBlock(k2, { id: "appContainer", width: "60%", title: e2.$t("workflowEditor.task.selectEditableField"), "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", center: "", onClose: t2[6] || (t2[6] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(b2, { type: "primary", size: "small", onClick: i2.setSelectedFields }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(b2, { size: "small", onClick: t2[5] || (t2[5] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createVNode(C2, { model: n2.formModel }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.selectedFields, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.selectedFields = e3) }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.availableFieldsCount, (e3, t3) => (r.openBlock(), r.createElementBlock(r.Fragment, { key: e3.prop }, [n2.availableFields[3 * t3 + 0] && !n2.availableFields[3 * t3 + 0].baseField ? (r.openBlock(), r.createBlock(s2, { key: 0, span: 8 }, { default: r.withCtx(() => [-1 === n2.availableFields[3 * t3 + 0].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: n2.availableFields[3 * t3 + 0].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 0].name, n2.availableFields[3 * t3 + 0].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: n2.availableFields[3 * t3 + 0].label }, r.toDisplayString(n2.availableFields[3 * t3 + 0].label), 9, io)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: n2.availableFields[3 * t3 + 0].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 0].name, n2.availableFields[3 * t3 + 0].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: n2.availableFields[3 * t3 + 0].label }, r.toDisplayString(n2.availableFields[3 * t3 + 0].label), 9, ao)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true), n2.availableFields[3 * t3 + 1] && !n2.availableFields[3 * t3 + 1].baseField ? (r.openBlock(), r.createBlock(s2, { key: 1, span: 8 }, { default: r.withCtx(() => [-1 === n2.availableFields[3 * t3 + 1].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: n2.availableFields[3 * t3 + 1].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 1].name, n2.availableFields[3 * t3 + 1].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: n2.availableFields[3 * t3 + 1].label }, r.toDisplayString(n2.availableFields[3 * t3 + 1].label), 9, so)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: n2.availableFields[3 * t3 + 1].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 1].name, n2.availableFields[3 * t3 + 1].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: n2.availableFields[3 * t3 + 1].label }, r.toDisplayString(n2.availableFields[3 * t3 + 1].label), 9, co)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true), n2.availableFields[3 * t3 + 2] && !n2.availableFields[3 * t3 + 2].baseField ? (r.openBlock(), r.createBlock(s2, { key: 2, span: 8 }, { default: r.withCtx(() => [-1 === n2.availableFields[3 * t3 + 2].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: n2.availableFields[3 * t3 + 2].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 2].name, n2.availableFields[3 * t3 + 2].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: n2.availableFields[3 * t3 + 2].label }, r.toDisplayString(n2.availableFields[3 * t3 + 2].label), 9, mo)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: n2.availableFields[3 * t3 + 2].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 2].name, n2.availableFields[3 * t3 + 2].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: n2.availableFields[3 * t3 + 2].label }, r.toDisplayString(n2.availableFields[3 * t3 + 2].label), 9, uo)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true)], 64))), 128))]), _: 1 }), r.createVNode(m2, { modelValue: n2.activeNames, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.activeNames = e3) }, { default: r.withCtx(() => [r.createVNode(c2, { title: e2.$t("workflowEditor.task.baseField"), name: "baseField" }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.availableFieldsCount, (e3, t3) => (r.openBlock(), r.createElementBlock("span", { key: e3.prop }, [r.createVNode(d2, null, { default: r.withCtx(() => [n2.availableFields[3 * t3 + 0] && n2.availableFields[3 * t3 + 0].baseField ? (r.openBlock(), r.createBlock(s2, { key: 0, span: 8 }, { default: r.withCtx(() => [-1 === n2.availableFields[3 * t3 + 0].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: n2.availableFields[3 * t3 + 0].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 0].name, n2.availableFields[3 * t3 + 0].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: n2.availableFields[3 * t3 + 0].label }, r.toDisplayString(n2.availableFields[3 * t3 + 0].label), 9, po)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: n2.availableFields[3 * t3 + 0].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 0].name, n2.availableFields[3 * t3 + 0].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: n2.availableFields[3 * t3 + 0].label }, r.toDisplayString(n2.availableFields[3 * t3 + 0].label), 9, ho)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true), n2.availableFields[3 * t3 + 1] && n2.availableFields[3 * t3 + 1].baseField ? (r.openBlock(), r.createBlock(s2, { key: 1, span: 8 }, { default: r.withCtx(() => [-1 === n2.availableFields[3 * t3 + 1].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: n2.availableFields[3 * t3 + 1].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 1].name, n2.availableFields[3 * t3 + 1].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: n2.availableFields[3 * t3 + 1].label }, r.toDisplayString(n2.availableFields[3 * t3 + 1].label), 9, fo)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: n2.availableFields[3 * t3 + 1].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 1].name, n2.availableFields[3 * t3 + 1].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: n2.availableFields[3 * t3 + 1].label }, r.toDisplayString(n2.availableFields[3 * t3 + 1].label), 9, wo)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true), n2.availableFields[3 * t3 + 2] && n2.availableFields[3 * t3 + 2].baseField ? (r.openBlock(), r.createBlock(s2, { key: 2, span: 8 }, { default: r.withCtx(() => [-1 === n2.availableFields[3 * t3 + 2].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: n2.availableFields[3 * t3 + 2].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 2].name, n2.availableFields[3 * t3 + 2].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: n2.availableFields[3 * t3 + 2].label }, r.toDisplayString(n2.availableFields[3 * t3 + 2].label), 9, go)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: n2.availableFields[3 * t3 + 2].name, onChange: (e4) => i2.pinSelect(n2.availableFields[3 * t3 + 2].name, n2.availableFields[3 * t3 + 2].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: n2.availableFields[3 * t3 + 2].label }, r.toDisplayString(n2.availableFields[3 * t3 + 2].label), 9, Co)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true)]), _: 2 }, 1024)]))), 128))]), _: 1 }, 8, ["title"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"]), r.createVNode(f2, { label: e2.$t("workflowEditor.task.editingMethod") }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: n2.formModel.constraintRule, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.formModel.constraintRule = e3) }, { default: r.withCtx(() => [r.createVNode(p2, { label: "REQUIRED" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r.createVNode(p2, { label: "READ_ONLY" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(f2, { label: e2.$t("workflowEditor.task.additionalConditions") }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: n2.formModel.showCondition, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.formModel.showCondition = e3) }, null, 8, ["modelValue"]), n2.formModel.showCondition ? (r.openBlock(), r.createBlock(g2, { key: 0, modelValue: n2.formModel.condition, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.formModel.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["title"]);
|
|
1066
|
+
}], ["__scopeId", "data-v-9458f3bf"]]), AdditionalConditionDialog: Jt }, props: { modelValue: { type: [Array, Object], default: null } }, data() {
|
|
1067
|
+
let e2 = [];
|
|
1068
|
+
"" !== this.modelValue && null !== this.modelValue && void 0 !== this.modelValue && (Array.isArray(this.modelValue) ? e2 = this.modelValue : e2.push(this.modelValue));
|
|
1069
|
+
return { showFieldSelection: false, showAdditionalCondition: false, selectedFields: e2, currentRow: null, multipleSelection: [], disabledFields: this.getDisabledFields(this.modelValue) };
|
|
1070
|
+
}, computed: { ...t.mapGetters("wfEditor", ["formFieldsWithSub"]) }, watch: { selectedFields: { handler(e2, t2) {
|
|
1071
|
+
this.disabledFields = this.getDisabledFields(e2);
|
|
1072
|
+
}, deep: true } }, mounted() {
|
|
1073
|
+
this.selectedFields.length > 0 && this.selectRow(this.selectedFields[this.selectedFields.length - 1]);
|
|
1074
|
+
}, methods: { getDisabledFields(e2) {
|
|
1075
|
+
if (null == e2)
|
|
1076
|
+
return [];
|
|
1077
|
+
const t2 = [];
|
|
1078
|
+
return Array.isArray(e2) ? e2.map((e3) => {
|
|
1079
|
+
t2.push(e3.name);
|
|
1080
|
+
}) : t2.push(e2), t2;
|
|
1081
|
+
}, handleCurrentChange(e2) {
|
|
1082
|
+
this.currentRow = e2;
|
|
1083
|
+
}, handleSelectionChange(e2) {
|
|
1084
|
+
this.multipleSelection = e2;
|
|
1085
|
+
}, selectRow(e2) {
|
|
1086
|
+
this.$refs.table.setCurrentRow(e2);
|
|
1087
|
+
}, add() {
|
|
1088
|
+
this.showFieldSelection = true;
|
|
1089
|
+
}, getCurrentRowIndex() {
|
|
1090
|
+
let e2 = -1;
|
|
1091
|
+
for (let t2 = 0; t2 < this.selectedFields.length; t2++)
|
|
1092
|
+
if (this.selectedFields[t2].name === this.currentRow.name) {
|
|
1093
|
+
e2 = t2;
|
|
1094
|
+
break;
|
|
1095
|
+
}
|
|
1096
|
+
return e2;
|
|
1097
|
+
}, remove() {
|
|
1098
|
+
if (this.multipleSelection && this.multipleSelection.length > 0) {
|
|
1099
|
+
for (var e2 = 0; e2 < this.multipleSelection.length; e2++) {
|
|
1100
|
+
const t2 = this.multipleSelection[e2];
|
|
1101
|
+
this.selectRow(t2);
|
|
1102
|
+
const o2 = this.getCurrentRowIndex();
|
|
1103
|
+
this.selectedFields.splice(o2, 1);
|
|
1104
|
+
}
|
|
1105
|
+
this.$emit("update:modelValue", this.selectedFields);
|
|
1106
|
+
}
|
|
1107
|
+
}, setSelectedFields(e2) {
|
|
1108
|
+
null == e2 && (e2 = []), this.selectedFields = this.selectedFields.concat(e2), this.selectRow(this.selectedFields[this.selectedFields.length - 1]), this.$emit("update:modelValue", this.selectedFields);
|
|
1109
|
+
}, formatCondition(e2) {
|
|
1110
|
+
if ("" === e2 || !e2)
|
|
1111
|
+
return this.$t("workflowEditor.task.nothing");
|
|
1112
|
+
const t2 = [];
|
|
1113
|
+
return Ot(t2, e2), At(t2);
|
|
1114
|
+
}, getFieldLabel(e2) {
|
|
1115
|
+
const t2 = this.formFieldsWithSub.filter((t3) => t3.name === e2.name);
|
|
1116
|
+
return t2.length > 0 ? t2[0].label : "";
|
|
1117
|
+
}, selectCondition(e2) {
|
|
1118
|
+
this.selectRow(e2), this.showAdditionalCondition = true;
|
|
1119
|
+
} } }, ko = { style: { width: "100%" } };
|
|
1120
|
+
const Vo = M(bo, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1121
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-radio"), m2 = r.resolveComponent("el-radio-group"), u2 = r.resolveComponent("el-input"), p2 = r.resolveComponent("el-table"), h2 = r.resolveComponent("editable-field-selection"), f2 = r.resolveComponent("additional-condition-dialog");
|
|
1122
|
+
return r.openBlock(), r.createElementBlock("div", ko, [r.createVNode(s2, { style: { "padding-bottom": "10px" } }, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(p2, { ref: "table", data: n2.selectedFields, border: "", "highlight-current-row": "", onSelectionChange: i2.handleSelectionChange, onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(d2, { type: "selection", width: "55" }), r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { label: e2.$t("workflowEditor.common.name"), width: "180" }, { default: r.withCtx((e3) => [r.createElementVNode("span", { style: r.normalizeStyle({ color: e3.row.name && 0 === e3.row.name.indexOf("$") ? "#409EFF" : "" }) }, r.toDisplayString(i2.getFieldLabel(e3.row)), 5)]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "name", label: e2.$t("workflowEditor.task.propertyName"), width: "180" }, null, 8, ["label"]), r.createVNode(d2, { prop: "constraintRule", label: e2.$t("workflowEditor.task.editingMethod") }, { default: r.withCtx((t3) => [r.createVNode(m2, { modelValue: t3.row.constraintRule, "onUpdate:modelValue": (e3) => t3.row.constraintRule = e3 }, { default: r.withCtx(() => [r.createVNode(c2, { label: "REQUIRED" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r.createVNode(c2, { label: "READ_ONLY" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "condition", label: e2.$t("workflowEditor.task.condition") }, { default: r.withCtx((e3) => [r.createVNode(u2, { value: i2.formatCondition(e3.row.condition), type: "textarea", autosize: "", onClick: (t3) => i2.selectCondition(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), n2.showFieldSelection ? (r.openBlock(), r.createBlock(h2, { key: 0, "disabled-fields": n2.disabledFields, onInputValue: i2.setSelectedFields, onClose: t2[0] || (t2[0] = (e3) => n2.showFieldSelection = false) }, null, 8, ["disabled-fields", "onInputValue"])) : r.createCommentVNode("", true), n2.showAdditionalCondition ? (r.openBlock(), r.createBlock(f2, { key: 1, modelValue: n2.currentRow.condition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.currentRow.condition = e3), onClose: t2[2] || (t2[2] = (e3) => n2.showAdditionalCondition = false) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]);
|
|
1123
|
+
}]]), yo = { xmlToData(e2) {
|
|
1124
|
+
const t2 = [];
|
|
1125
|
+
if (e2) {
|
|
1126
|
+
const r2 = e2.split(" ");
|
|
1127
|
+
if (r2 && r2.length > 0) {
|
|
1128
|
+
let e3 = 1, n2 = "", i2 = "", a2 = "", s2 = "", d2 = "", c2 = "", m2 = null;
|
|
1129
|
+
for (var o2 = 0; o2 < r2.length; o2++) {
|
|
1130
|
+
var l2 = r2[o2];
|
|
1131
|
+
if (-1 !== l2.indexOf("(")) {
|
|
1132
|
+
this.operationArr && this.operationArr.push([]), n2 = "", i2 = "", a2 = "", s2 = "", d2 = "", c2 = "";
|
|
1133
|
+
const t3 = l2.split("${field[");
|
|
1134
|
+
if (n2 = t3[0], i2 = t3[1].replace("]}", ""), this.operationArr) {
|
|
1135
|
+
const t4 = this.getOperators(this.fieldMap[i2]);
|
|
1136
|
+
this.operationArr[e3 - 1] = t4;
|
|
1137
|
+
}
|
|
1138
|
+
continue;
|
|
1139
|
+
}
|
|
1140
|
+
if (-1 !== l2.indexOf("(") || -1 === l2.indexOf("${field["))
|
|
1141
|
+
-1 === l2.indexOf("operator.") || -1 !== l2.indexOf("condition.") ? "" === a2 || "" !== s2 ? -1 !== l2.indexOf("condition.") ? (c2 = l2, t2.push({ id: e3, leftBracket: n2, propName: i2, operator: a2, propValue: s2, rightBracket: d2, logicOperator: c2, propValueType: m2 }), e3 += 1) : s2 && "" !== s2 && (c2 && "" !== c2 || (c2 = "condition.operator.or", t2.push({ id: e3, leftBracket: n2, propName: i2, operator: a2, propValue: s2, rightBracket: d2, logicOperator: c2, propValueType: m2 }), e3 += 1)) : (-1 !== l2.indexOf(")") ? -1 !== l2.indexOf(")))") ? (s2 = l2.replace(")))", ""), d2 = ")))") : -1 !== l2.indexOf("))") ? (s2 = l2.replace("))", ""), d2 = "))") : -1 !== l2.indexOf(")") && (s2 = l2.replace(")", ""), d2 = ")") : s2 = l2, s2 && "" !== s2 && (-1 !== s2.indexOf("${task.") ? m2 = "task" : -1 !== s2.indexOf("${context.") ? m2 = "context" : -1 !== s2.indexOf("${obj.") ? m2 = "obj" : -1 !== s2.indexOf("${subObj.") ? m2 = "subObj" : -1 !== s2.indexOf("${request.") ? m2 = "request" : -1 !== s2.indexOf("${input.") ? m2 = "input" : -1 !== s2.indexOf("${custom.") && (m2 = "custom"))) : a2 = l2;
|
|
1142
|
+
else if (this.operationArr && this.operationArr.push([]), n2 = "", i2 = "", a2 = "", s2 = "", d2 = "", c2 = "", i2 = l2.replace("${field[", "").replace("]}", ""), this.operationArr) {
|
|
1143
|
+
const t3 = this.getOperators(this.fieldMap[i2]);
|
|
1144
|
+
this.operationArr[e3 - 1] = t3;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
return t2;
|
|
1150
|
+
}, getOperatorsArr(e2) {
|
|
1151
|
+
if (e2 && e2.length > 0)
|
|
1152
|
+
for (var t2 = 0; t2 < e2.length; t2++) {
|
|
1153
|
+
this.operationArr.push([]);
|
|
1154
|
+
const o2 = e2[t2], l2 = this.getOperators(this.fieldMap[o2.propName]);
|
|
1155
|
+
this.operationArr[t2] = l2;
|
|
1156
|
+
}
|
|
1157
|
+
}, getRetunrOperatorsArr(e2, t2) {
|
|
1158
|
+
const o2 = [];
|
|
1159
|
+
if (e2 && e2.length > 0)
|
|
1160
|
+
for (var l2 = 0; l2 < e2.length; l2++) {
|
|
1161
|
+
o2.push([]);
|
|
1162
|
+
const r2 = e2[l2], n2 = this.getOperators(t2[r2.propName]);
|
|
1163
|
+
o2[l2] = n2;
|
|
1164
|
+
}
|
|
1165
|
+
return o2;
|
|
1166
|
+
}, dataToXml(e2) {
|
|
1167
|
+
let t2 = "";
|
|
1168
|
+
if (e2 && e2.length > 0)
|
|
1169
|
+
for (var o2 = 0; o2 < e2.length; o2++) {
|
|
1170
|
+
var l2 = e2[o2];
|
|
1171
|
+
let r2 = l2.logicOperator;
|
|
1172
|
+
o2 === e2.length - 1 && (r2 = ""), t2 = t2 + l2.leftBracket + "${field[" + l2.propName + "]} " + l2.operator + " " + l2.propValue + l2.rightBracket + " " + r2 + " ";
|
|
1173
|
+
}
|
|
1174
|
+
return t2;
|
|
1175
|
+
}, formatConditionList(e2) {
|
|
1176
|
+
let t2 = "";
|
|
1177
|
+
if (e2)
|
|
1178
|
+
if ("string" == typeof e2) {
|
|
1179
|
+
const o2 = this.xmlToData(e2);
|
|
1180
|
+
t2 = this.formatConditionListTwo(o2);
|
|
1181
|
+
} else
|
|
1182
|
+
t2 = this.formatConditionListTwo(e2);
|
|
1183
|
+
if (t2 && "" !== t2) {
|
|
1184
|
+
const e3 = t2.substring(t2.length - 1);
|
|
1185
|
+
"者" !== e3 && "且" !== e3 || (t2 = t2.substring(0, t2.length - 2));
|
|
1186
|
+
}
|
|
1187
|
+
return t2;
|
|
1188
|
+
}, formatConditionListTwo(e2) {
|
|
1189
|
+
let t2 = "";
|
|
1190
|
+
if (e2 && e2.length > 0)
|
|
1191
|
+
for (var o2 = 0; o2 < e2.length; o2++) {
|
|
1192
|
+
const l2 = e2[o2];
|
|
1193
|
+
if (l2 && l2.propName) {
|
|
1194
|
+
const e3 = this.getOperators(this.fieldMap[l2.propName]);
|
|
1195
|
+
if (e3 && e3.length > 0) {
|
|
1196
|
+
const o3 = e3.filter((e4) => e4.name === l2.operator);
|
|
1197
|
+
t2 += l2.leftBracket, this.fieldMap[l2.propName] && this.fieldMap[l2.propName].label && (t2 += this.fieldMap[l2.propName].label + " "), o3 && o3.length > 0 && (t2 += o3[0].label + " "), t2 += l2.propValue + l2.rightBracket + " ", l2.logicOperator && ("or" === l2.logicOperator ? t2 += "或者" : t2 += "并且");
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
return t2;
|
|
1202
|
+
}, getOperators: (e2) => e2 ? "INTEGER" === e2.type || "LONG" === e2.type || "DOUBLE" === e2.type || "FLOAT" === e2.type ? [{ name: "operator.number.gt", label: h().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: h().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: h().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: h().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: h().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.is.null", label: h().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: h().t("workflowEditor.process.isNotNull") }] : "DATE" === e2.type || "TIME" === e2.type ? [{ name: "operator.date.gt", label: h().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: h().t("workflowEditor.process.earlierThan") }, { name: "operator.date.eq", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: h().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: h().t("workflowEditor.process.noEarlierThan") }, { name: "operator.text.is.null", label: h().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: h().t("workflowEditor.process.isNotNull") }] : "TEXT" === e2.type ? [{ name: "operator.text.eq", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: h().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: h().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: h().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: h().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: h().t("workflowEditor.process.isNotNull") }] : [{ name: "operator.text.eq", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: h().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.is.null", label: h().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: h().t("workflowEditor.process.isNotNull") }] : [{ name: "operator.text.eq", label: h().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: h().t("workflowEditor.process.notEqualTo") }] }, vo = { "${instanceCreatorName}": h().t("workflowEditor.process.processInitiator"), "${instanceCreatorDirectSuperiorName}": h().t("workflowEditor.process.sponsorsImmediateSuperior"), "${instanceCreatorDeptApprover}": h().t("workflowEditor.process.deptApprover"), "${instanceCreatorDirectSuperiorDeptApprover}": h().t("workflowEditor.process.superiorDeptApprover"), "${instanceCreatorDirectSuperiorDeptLeader}": h().t("workflowEditor.process.superiorDeptLeader"), "${currentTransactorName}": h().t("workflowEditor.process.nameOfCurrentHandler"), "${currentTransactorDirectSuperiorName}": h().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler") }, To = { "${instanceCreatorDepartment}": h().t("workflowEditor.process.processInitiatorDepartment"), "${instanceCreatorSuperiorDepartment}": h().t("workflowEditor.process.sponsorsSuperiorDepartment"), "${instanceCreatorUpstageDepartment}": h().t("workflowEditor.process.sponsorTopDepartment"), "${instanceCreatorDirectSuperiorDepartment}": h().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"), "${currentTransactorDepartment}": h().t("workflowEditor.process.currentHandlerDepartment"), "${currentTransactorSuperiorDepartment}": h().t("workflowEditor.process.currentHandlerSuperiorDepartment"), "${currentTransactorUpstageDepartment}": h().t("workflowEditor.process.topDepartmentOfCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": h().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment") }, No = { "${instanceCreatorrWorkGroup}": h().t("workflowEditor.process.processInitiatorWorkingGroup"), "${instanceCreatorDirectSuperiorWorkGroup}": h().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"), "${currentTransactorWorkGroup}": h().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorDirectSuperiorWorkGroup}": h().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler") }, xo = { "${user}": h().t("workflowEditor.common.user"), "${department}": h().t("workflowEditor.common.department"), "${role}": h().t("workflowEditor.common.role"), "${workgroup}": h().t("workflowEditor.common.workgroup") }, Eo = { "condition.operator.or": h().t("workflowEditor.process.perhaps"), "condition.operator.and": h().t("workflowEditor.process.also") }, So = { "operator.text.eq": h().t("workflowEditor.process.beEqualTo"), "operator.text.neq": h().t("workflowEditor.process.notEqualTo") }, Mo = { ...vo, ...To, ...No }, Do = { "${instanceCreatorName}": h().t("workflowEditor.process.processInitiator"), "${instanceCreatorDirectSuperiorName}": h().t("workflowEditor.process.sponsorsImmediateSuperior"), "${instanceCreatorDeptApprover}": h().t("workflowEditor.process.deptApprover"), "${instanceCreatorDirectSuperiorDeptApprover}": h().t("workflowEditor.process.superiorDeptApprover"), "${instanceCreatorDirectSuperiorDeptLeader}": h().t("workflowEditor.process.superiorDeptLeader") }, Fo = { "${upstageDepartment}": h().t("workflowEditor.process.topDepartments"), "${instanceCreatorDepartment}": h().t("workflowEditor.process.processInitiatorDepartment"), "${instanceCreatorSuperiorDepartment}": h().t("workflowEditor.process.sponsorsSuperiorDepartment"), "${instanceCreatorUpstageDepartment}": h().t("workflowEditor.process.sponsorTopDepartment"), "${instanceCreatorDirectSuperiorDepartment}": h().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"), "${previousTransactorDepartment}": h().t("workflowEditor.process.lastLinkHandlerDepartment"), "${previousTransactorSuperiorDepartment}": h().t("workflowEditor.process.previousLinkHandlerSuperiorDepartment"), "${previousTransactorUpstageDepartment}": h().t("workflowEditor.process.topDepartmentOfHandlerInThePreviousLink"), "${previousTransactorDirectSuperiorDepartment}": h().t("workflowEditor.process.previousLinkHandlersDirectSuperiorDepartment") }, $o = { "${instanceCreatorrWorkGroup}": h().t("workflowEditor.process.processInitiatorWorkingGroup"), "${instanceCreatorDirectSuperiorWorkGroup}": h().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"), "${previousTransactorWorkGroup}": h().t("workflowEditor.process.previousLinkHandlerWorkingGroup"), "${previousTransactorDirectSuperiorWorkGroup}": h().t("workflowEditor.process.workingGroupDirectlyUnderTheManagerInThePreviousLink") };
|
|
1203
|
+
function Po(e2) {
|
|
1204
|
+
return void 0 !== Mo[e2] ? Mo[e2] : "";
|
|
1205
|
+
}
|
|
1206
|
+
const Bo = { name: "CommonUserCondition", components: { ValueSelectionDialog: Ht }, props: { modelValue: { type: String, default: null }, usedIn: { type: String, default: "reminder" } }, data() {
|
|
1207
|
+
const e2 = [];
|
|
1208
|
+
let t2 = 0;
|
|
1209
|
+
return this.modelValue && "" !== this.modelValue && (t2 = function(e3, t3) {
|
|
1210
|
+
let o2 = t3.replace(/ condition.operator.or /g, " condition.operator.or^_^");
|
|
1211
|
+
o2 = o2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
|
|
1212
|
+
const l2 = o2.split("^_^");
|
|
1213
|
+
let r2 = 0;
|
|
1214
|
+
for (const t4 of l2) {
|
|
1215
|
+
if ("" === t4)
|
|
1216
|
+
continue;
|
|
1217
|
+
let o3 = "", l3 = "", n2 = "", i2 = "", a2 = "", s2 = "condition.operator.or";
|
|
1218
|
+
const d2 = t4.split(" ");
|
|
1219
|
+
let c2 = d2[0].indexOf("${");
|
|
1220
|
+
c2 > 0 ? (o3 = d2[0].substring(0, c2), l3 = d2[0].substring(c2)) : l3 = d2[0], n2 = d2[1], c2 = d2[2].indexOf(")"), c2 > 0 ? (i2 = d2[2].substring(0, c2), a2 = d2[2].substring(c2)) : i2 = d2[2], 4 === d2.length && (s2 = d2[3]), e3.push({ id: r2, leftBracket: o3, key: l3, operator: n2, value: i2, rightBracket: a2, logicOperator: s2 }), r2++;
|
|
1221
|
+
}
|
|
1222
|
+
return r2;
|
|
1223
|
+
}(e2, this.modelValue)), { users: e2, count: t2, currentRow: null, showValueDialog: false };
|
|
1224
|
+
}, computed: { standardFields() {
|
|
1225
|
+
let e2 = "reminder" === this.usedIn ? vo : Do;
|
|
1226
|
+
return "${department}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? To : Fo : "${workgroup}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? No : $o : "${role}" === this.currentRow.key && (e2 = {}), e2;
|
|
1227
|
+
} }, mounted() {
|
|
1228
|
+
this.users.length > 0 && this.$refs.table.setCurrentRow(this.users[this.users.length - 1]), this.$watch("users", function(e2, t2) {
|
|
1229
|
+
this.$emit("update:modelValue", function(e3) {
|
|
1230
|
+
let t3 = "";
|
|
1231
|
+
for (const o3 of e3)
|
|
1232
|
+
"" !== o3.value && (t3 = t3 + o3.leftBracket + o3.key + " " + o3.operator + " " + o3.value + o3.rightBracket + " " + o3.logicOperator + " ");
|
|
1233
|
+
const o2 = " condition.operator.or ", l2 = " condition.operator.and ";
|
|
1234
|
+
return t3.lastIndexOf(o2) + 23 === t3.length ? t3 = t3.substring(0, t3.lastIndexOf(o2)) : t3.lastIndexOf(l2) + 24 === t3.length && (t3 = t3.substring(0, t3.lastIndexOf(l2))), t3;
|
|
1235
|
+
}(this.users));
|
|
1236
|
+
}, { deep: true });
|
|
1237
|
+
}, methods: { format: (e2) => e2.indexOf("${field[") >= 0 ? mt(e2) : e2.indexOf("${") >= 0 ? Po(e2) : e2.substring(0, e2.indexOf("[")), selectRow(e2) {
|
|
1238
|
+
this.$refs.table.setCurrentRow(e2);
|
|
1239
|
+
}, openValueDialog(e2) {
|
|
1240
|
+
this.showValueDialog = true, this.selectRow(e2);
|
|
1241
|
+
}, closeValueDialog(e2) {
|
|
1242
|
+
void 0 !== e2 && "" !== e2 && (this.currentRow.value = e2), this.showValueDialog = false;
|
|
1243
|
+
}, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
|
|
1244
|
+
this.currentRow = e2;
|
|
1245
|
+
}, getRowIndex(e2) {
|
|
1246
|
+
for (let t2 = 0; t2 < this.users.length; t2++)
|
|
1247
|
+
if (this.users[t2].id === e2.id)
|
|
1248
|
+
return t2;
|
|
1249
|
+
return -1;
|
|
1250
|
+
}, add() {
|
|
1251
|
+
const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
1252
|
+
this.users.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
1253
|
+
}, insert() {
|
|
1254
|
+
if (null === this.currentRow)
|
|
1255
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
1256
|
+
const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
1257
|
+
this.users.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
1258
|
+
}, remove() {
|
|
1259
|
+
if (null === this.currentRow)
|
|
1260
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
1261
|
+
let e2 = this.getRowIndex(this.currentRow);
|
|
1262
|
+
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]));
|
|
1263
|
+
}, view() {
|
|
1264
|
+
let e2 = function(e3) {
|
|
1265
|
+
let t2 = "";
|
|
1266
|
+
for (const o3 of e3)
|
|
1267
|
+
"" !== o3.value && (t2 = t2 + o3.leftBracket + xo[o3.key] + " " + So[o3.operator] + " " + Po(o3.value) + o3.rightBracket + " " + Eo[o3.logicOperator] + " ");
|
|
1268
|
+
const o2 = " " + h().t("workflowEditor.process.perhaps") + " ", l2 = " " + h().t("workflowEditor.process.also") + " ";
|
|
1269
|
+
return t2.lastIndexOf(o2) + o2.length === t2.length ? t2 = t2.substring(0, t2.lastIndexOf(o2)) : t2.lastIndexOf(l2) + l2.length === t2.length && (t2 = t2.substring(0, t2.lastIndexOf(l2))), t2;
|
|
1270
|
+
}(this.users);
|
|
1271
|
+
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorPublicModel.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
1272
|
+
} });
|
|
1273
|
+
}, handleKeyChange(e2) {
|
|
1274
|
+
this.currentRow.value = "";
|
|
1275
|
+
} } };
|
|
1276
|
+
const Oo = M(Bo, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1277
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-option"), c2 = r.resolveComponent("el-select"), m2 = r.resolveComponent("el-table-column"), u2 = r.resolveComponent("el-input"), p2 = r.resolveComponent("el-table"), h2 = r.resolveComponent("value-selection-dialog");
|
|
1278
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: i2.insert }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "View", onClick: i2.view }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(p2, { ref: "table", data: n2.users, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(m2, { prop: "leftBracket", label: "(", width: "90" }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => i2.selectRow(e3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: "", value: "" }), r.createVNode(d2, { label: "(", value: "(" }), r.createVNode(d2, { label: "((", value: "((" }), r.createVNode(d2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), r.createVNode(m2, { label: e2.$t("workflowEditor.common.type"), width: "110" }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.key, "onUpdate:modelValue": (e3) => t3.row.key = e3, placeholder: "", onFocus: (e3) => i2.selectRow(t3.row), onChange: i2.handleKeyChange }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditor.common.user"), value: "${user}" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.common.role"), value: "${role}" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.common.department"), value: "${department}" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.common.workgroup"), value: "${workgroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.operator, "onUpdate:modelValue": (e3) => t3.row.operator = e3, placeholder: "", onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditor.process.beEqualTo"), value: "operator.text.eq" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.process.notEqualTo"), value: "operator.text.neq" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.value") }, { default: r.withCtx((e3) => [r.createVNode(u2, { value: i2.format(e3.row.value), readonly: "", onClick: (t3) => i2.openValueDialog(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => i2.selectRow(e2.scope.row)) }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: r.withCtx(() => [r.createVNode(d2, { label: "", value: "" }), r.createVNode(d2, { label: ")", value: ")" }), r.createVNode(d2, { label: "))", value: "))" }), r.createVNode(d2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r.createVNode(m2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), r.createVNode(d2, { 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"]), n2.showValueDialog ? (r.openBlock(), r.createBlock(h2, { key: 0, "standard-fields": i2.standardFields, "org-type": n2.currentRow.key.substring(n2.currentRow.key.indexOf("{") + 1, n2.currentRow.key.lastIndexOf("}")), onClose: i2.closeValueDialog }, null, 8, ["standard-fields", "org-type", "onClose"])) : r.createCommentVNode("", true)]);
|
|
1279
|
+
}]]), Io = { components: { AdditionalCondition: Wt, CommonUserCondition: Oo }, props: { conditionList: { type: [Array, String], default: null }, userCondition: { type: String, default: null }, parentCondition: { type: String, default: null }, attributeMap: { type: Object, default: null }, buttonType: { type: Object, default: null } }, data() {
|
|
1280
|
+
let e2, t2;
|
|
1281
|
+
return this.userCondition && "" !== this.userCondition && (e2 = this.userCondition), this.parentCondition && "" !== this.parentCondition && (t2 = this.parentCondition), { myUserCondition: e2, myParentCondition: t2, tableData: null, attributeArr: [], fieldMap: {}, fieldNameMap: {}, queryList: [], operationArr: [], parentAttributeArr: [], dialogVisible: true };
|
|
1282
|
+
}, created() {
|
|
1283
|
+
this.getAttributeArr();
|
|
1284
|
+
}, computed: { ...t.mapGetters("wfEditor", ["propSettingKeyList"]) }, mounted() {
|
|
1285
|
+
this.conditionList && ("object" == typeof this.conditionList ? this.tableData = this.conditionList : this.tableData = this.xmlToData(this.conditionList), this.getOperatorsArr(this.tableData));
|
|
1286
|
+
}, methods: { ...yo, add() {
|
|
1287
|
+
this.tableData || (this.tableData = []), this.tableData.push({ leftBracket: "", propName: "", operator: "", propValue: "", rightBracket: "", logicOperator: "condition.operator.or", dataType: "", propDbName: "" }), this.operationArr.push([]);
|
|
1288
|
+
}, remove() {
|
|
1289
|
+
if (null === this.currentRow)
|
|
1290
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
1291
|
+
let e2 = this.getRowIndex(this.currentRow);
|
|
1292
|
+
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]));
|
|
1293
|
+
}, changeFieldName(e2) {
|
|
1294
|
+
const t2 = this.currentRow.propName, o2 = this.fieldMap[t2];
|
|
1295
|
+
o2 && (this.tableData[e2].dataType = o2.type, this.tableData[e2].propDbName = o2.propDbName), this.operationArr[e2] = this.getOperators(o2);
|
|
1296
|
+
}, getAttributeArr() {
|
|
1297
|
+
this.attributeMap && this.attributeMap.attributeArr && (this.attributeArr = this.attributeMap.attributeArr, this.queryList = this.attributeMap.attributeArr, this.fieldMap = this.attributeMap.fieldMap, this.fieldNameMap = this.attributeMap.fieldNameMap, this.parentAttributeArr = this.attributeMap.parentAttributeArr);
|
|
1298
|
+
}, selectRow(e2) {
|
|
1299
|
+
this.attributeArr = this.queryList, this.$refs.table.setCurrentRow(e2);
|
|
1300
|
+
}, handleCurrentChange(e2) {
|
|
1301
|
+
this.currentRow = e2;
|
|
1302
|
+
}, searchField(e2) {
|
|
1303
|
+
e2 && (this.attributeArr = this.queryList.filter((t2) => t2.label.indexOf(e2) > -1 || t2.value.indexOf(e2) > -1));
|
|
1304
|
+
}, getRowIndex(e2) {
|
|
1305
|
+
for (let t2 = 0; t2 < this.tableData.length; t2++)
|
|
1306
|
+
if (this.tableData[t2].propName === e2.propName)
|
|
1307
|
+
return t2;
|
|
1308
|
+
return -1;
|
|
1309
|
+
}, savebuttonSetting() {
|
|
1310
|
+
if (this.tableData && this.tableData.length > 0)
|
|
1311
|
+
for (var e2 = 0; e2 < this.tableData.length; e2++) {
|
|
1312
|
+
if (!this.tableData[e2].propName)
|
|
1313
|
+
return void this.$alert(this.$t("workflowEditorMessage.blankFieldNameOrValue"));
|
|
1314
|
+
}
|
|
1315
|
+
const t2 = { userCondition: this.myUserCondition, parentCondition: this.myParentCondition, condition: this.tableData };
|
|
1316
|
+
this.$emit("close", t2);
|
|
1317
|
+
}, closeButtonSetting() {
|
|
1318
|
+
this.savebuttonSetting(), this.$emit("close", null);
|
|
1319
|
+
}, changePropValue(e2) {
|
|
1320
|
+
this.tableData[e2] && this.tableData[e2].propValue ? this.tableData[e2].propValueType && ("request" === this.tableData[e2].propValueType && (-1 === this.tableData[e2].propValue.indexOf("${request.") && (this.tableData[e2].propValue = "${request." + this.tableData[e2].propValue), -1 === this.tableData[e2].propValue.indexOf("}") && (this.tableData[e2].propValue = this.tableData[e2].propValue + "}")), "input" === this.tableData[e2].propValueType && (-1 === this.tableData[e2].propValue.indexOf("${input.") && (this.tableData[e2].propValue = "${input." + this.tableData[e2].propValue), -1 === this.tableData[e2].propValue.indexOf("}") && (this.tableData[e2].propValue = this.tableData[e2].propValue + "}"))) : this.tableData[e2].propValueType = null;
|
|
1321
|
+
} } }, _o = { style: { "overflow-y": "auto", "max-height": "500px" } }, Ro = { class: "operation-area" }, Ao = { class: "clearfix" }, Uo = { class: "clearfix" };
|
|
1322
|
+
const Lo = { name: "EditableChildFieldSetting", components: { selectionConditions: M(Io, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1323
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("common-user-condition"), d2 = r.resolveComponent("el-card"), c2 = r.resolveComponent("additional-condition"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("el-option"), p2 = r.resolveComponent("el-select"), h2 = r.resolveComponent("el-table-column"), f2 = r.resolveComponent("el-date-picker"), w2 = r.resolveComponent("el-input"), g2 = r.resolveComponent("el-table"), C2 = r.resolveComponent("el-dialog");
|
|
1324
|
+
return r.openBlock(), r.createBlock(C2, { "show-close": true, "append-to-body": true, style: { width: "100%" }, title: e2.$t("workflowEditor.condition.combinationCondition"), "model-value": "", onClose: i2.closeButtonSetting }, { default: r.withCtx(() => [r.createElementVNode("div", _o, [r.createElementVNode("div", Ro, [r.createVNode(a2, { size: "small", type: "primary", onClick: i2.savebuttonSetting }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])]), r.createElementVNode("div", null, [r.createVNode(d2, { class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", Ao, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.personnelScope")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(s2, { modelValue: n2.myUserCondition, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.myUserCondition = e3), "used-in": "transactor" }, null, 8, ["modelValue"])])]), _: 1 }), r.createVNode(d2, { class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", Uo, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.mainTableConditions")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(c2, { modelValue: n2.myParentCondition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.myParentCondition = e3) }, null, 8, ["modelValue"])])]), _: 1 }), "notEmpty" !== o2.buttonType && "add" !== o2.buttonType ? (r.openBlock(), r.createBlock(d2, { key: 0, class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", null, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.subtableCondition")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(m2, { style: { "padding-bottom": "8px" } }, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(g2, { id: "tableDataDialog", ref: "table", data: n2.tableData, border: "", style: { width: "100%" }, "highlight-current-row": "", onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(h2, { prop: "leftBracket", label: "(", width: "90" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, size: "small", clearable: "", onFocus: (t3) => i2.selectRow(e3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: "", value: "" }), r.createVNode(u2, { label: "(", value: "(" }), r.createVNode(u2, { label: "((", value: "((" }), r.createVNode(u2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), r.createVNode(h2, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.propName, "onUpdate:modelValue": (t3) => e3.row.propName = t3, "filter-method": i2.searchField, size: "small", clearable: "", filterable: "", onFocus: (t3) => i2.selectRow(e3.row), onChange: (t3) => i2.changeFieldName(e3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.attributeArr, (e4) => (r.openBlock(), r.createBlock(u2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "filter-method", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(h2, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, size: "small", clearable: "", onFocus: (t3) => i2.selectRow(e3.row) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.operationArr[e3.$index], (e4) => (r.openBlock(), r.createBlock(u2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), r.createVNode(h2, { label: e2.$t("workflowEditor.common.value") }, { default: r.withCtx((t3) => [t3.row.propValueType ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(p2, { key: 0, modelValue: t3.row.propValueType, "onUpdate:modelValue": (e3) => t3.row.propValueType = e3, size: "small", onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.fillInManually"), value: "input" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.environmentVariable"), value: "context" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.requestParameters"), value: "request" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.mainTableField"), value: "obj" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.databaseFields"), value: "subObj" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.taskFields"), value: "task" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.systemParameter"), value: "custom" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])), "context" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 1, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, clearable: "", size: "small", title: t3.row.propValue, filterable: "", "default-first-option": "", "allow-create": "", onChange: (e3) => i2.changePropValue(t3.$index), onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTime"), value: "${context.currentTime}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactor"), value: "${context.currentTransactor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorName"), value: "${context.currentTransactorName}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorId"), value: "${context.currentTransactorId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorMainDepartmentId"), value: "${context.currentTransactorMainDepartmentId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorMainDepartment"), value: "${context.currentTransactorMainDepartment}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorRoleId"), value: "${context.currentTransactorRoleId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorRole"), value: "${context.currentTransactorRole}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorWorkGroupId"), value: "${context.currentTransactorWorkGroupId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorWorkGroup"), value: "${context.currentTransactorWorkGroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : r.createCommentVNode("", true), "task" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 2, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, clearable: "", size: "small", title: t3.row.propValue, filterable: "", "default-first-option": "", "allow-create": "", onChange: (e3) => i2.changePropValue(t3.$index), onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentHandler"), value: "${task.transactor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTaskClient"), value: "${task.trustor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentAssignor"), value: "${task.assigner}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.linkName"), value: "${task.name}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.linkCode"), value: "${task.nodeId}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : r.createCommentVNode("", true), "DATE" === t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(f2, { key: 3, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, size: "small", clearable: "", "value-format": "YYYY-MM-DD", title: t3.row.propValue, type: "date", onChange: (e3) => i2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "TIME" === t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(f2, { key: 4, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, size: "small", title: t3.row.propValue, clearable: "", "value-format": "YYYY-MM-DD HH:mm:ss", type: "datetime", onChange: (e3) => i2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "TIME" !== t3.row.dataType && "DATE" !== t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(w2, { key: 5, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, modelModifiers: { trim: true }, title: t3.row.propValue, clearable: "", size: "small", onChange: (e3) => i2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "request" === t3.row.propValueType ? (r.openBlock(), r.createBlock(w2, { key: 6, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, modelModifiers: { trim: true }, title: t3.row.propValue, clearable: "", size: "small", onChange: (e3) => i2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "subObj" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 7, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, "filter-method": i2.searchField, size: "small", clearable: "", filterable: "", onChange: (e3) => i2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.attributeArr, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${subObj." + e3.value + "}", label: e3.label, value: "${subObj." + e3.value + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "filter-method", "onChange"])) : r.createCommentVNode("", true), "obj" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 8, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, size: "small", clearable: "", filterable: "", onChange: (e3) => i2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.parentAttributeArr, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${obj." + e3.value + "}", label: e3.label, value: "${obj." + e3.value + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "custom" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 9, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, size: "small", clearable: "", filterable: "", onChange: (e3) => i2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.propSettingKeyList, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${custom." + e3 + "}", label: e3, value: "${custom." + e3 + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(h2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[2] || (t2[2] = (t3) => i2.selectRow(e2.scope.row)) }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, size: "small", clearable: "" }, { default: r.withCtx(() => [r.createVNode(u2, { label: "", value: "" }), r.createVNode(u2, { label: ")", value: ")" }), r.createVNode(u2, { label: "))", value: "))" }), r.createVNode(u2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r.createVNode(h2, { label: e2.$t("workflowEditorPublicModel.andOr"), prop: "logicOperator", width: "110" }, { default: r.withCtx((t3) => [r.createVNode(p2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, size: "small", clearable: "", onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])])]), _: 1 })) : r.createCommentVNode("", true)])])]), _: 1 }, 8, ["title", "onClose"]);
|
|
1325
|
+
}]]) }, props: { setting: { type: Object, default: null }, tableName: { type: String, default: null } }, data() {
|
|
1326
|
+
let e2 = [];
|
|
1327
|
+
this.setting && this.setting.actionArr && (e2 = this.setting.actionArr);
|
|
1328
|
+
let t2, o2, l2, r2 = [];
|
|
1329
|
+
return this.setting && this.setting.fieldArr && (r2 = this.setting.fieldArr), this.setting && this.setting.visibleConditionArr && (t2 = this.setting.visibleConditionArr), this.setting && this.setting.modelName && (o2 = this.setting.modelName), this.setting && null !== this.setting.sumPermission && (l2 = this.setting.sumPermission), { sumPermission: l2, subtableConditionItem: null, attributeArr: null, showAdditionalCondition: false, currentRow: null, multipleSelection: null, actionArr: e2, fieldArr: r2, queryList: null, fieldMap: null, fieldNameMap: null, actionVisibleConditionArr: t2, buttonType: null, buttonVisibleCon: null, showButtonVisibleFlag: false, clickButton: false, operationArr: [], modelName: o2 };
|
|
1330
|
+
}, watch: { setting: { handler(e2, t2) {
|
|
1331
|
+
e2 && e2.actionArr && (this.actionArr = e2.actionArr), e2 && e2.fieldArr && (this.fieldArr = e2.fieldArr), e2 && e2.actionVisibleConditionArr && (this.actionVisibleConditionArr = e2.actionVisibleConditionArr), this.modelName = e2.modelName, this.sumPermission = e2.sumPermission, this.combinationParameters();
|
|
1332
|
+
}, deep: true } }, computed: { ...t.mapGetters("wfEditor", ["subtableConditionMap"]) }, created() {
|
|
1333
|
+
this.subtableConditionMap && this.tableName && (this.subtableConditionItem = this.subtableConditionMap[this.tableName], this.getAttributeArr());
|
|
1334
|
+
}, mounted() {
|
|
1335
|
+
this.subtableConditionMap && this.tableName && (this.subtableConditionItem = this.subtableConditionMap[this.tableName], this.subtableConditionMap[this.tableName] && (this.attributeArr = this.subtableConditionItem.attributeArr));
|
|
1336
|
+
}, methods: { ...yo, getAttributeArr() {
|
|
1337
|
+
this.subtableConditionItem && this.subtableConditionItem.attributeArr && (this.queryList = this.subtableConditionItem.attributeArr, this.fieldMap = this.subtableConditionItem.fieldMap, this.fieldNameMap = this.subtableConditionItem.fieldNameMap);
|
|
1338
|
+
}, savebuttonSetting(e2) {
|
|
1339
|
+
e2 && (this.currentRow.condition = e2.condition, this.currentRow.userCondition = e2.userCondition, this.currentRow.parentCondition = e2.parentCondition, this.combinationParameters()), this.showAdditionalCondition = false;
|
|
1340
|
+
}, handleCurrentChange(e2) {
|
|
1341
|
+
this.currentRow = e2;
|
|
1342
|
+
}, handleSelectionChange(e2) {
|
|
1343
|
+
this.multipleSelection = e2;
|
|
1344
|
+
}, selectRow(e2) {
|
|
1345
|
+
this.$refs.table.setCurrentRow(e2);
|
|
1346
|
+
}, add() {
|
|
1347
|
+
this.fieldArr || (this.fieldArr = []), this.fieldArr.push({ name: null, constraintRule: null, condition: null }), this.combinationParameters();
|
|
1348
|
+
}, getCurrentRowIndex() {
|
|
1349
|
+
let e2 = -1;
|
|
1350
|
+
for (let t2 = 0; t2 < this.fieldArr.length; t2++)
|
|
1351
|
+
if (this.fieldArr[t2].name === this.currentRow.name) {
|
|
1352
|
+
e2 = t2;
|
|
1353
|
+
break;
|
|
1354
|
+
}
|
|
1355
|
+
return e2;
|
|
1356
|
+
}, remove() {
|
|
1357
|
+
if (this.multipleSelection && this.multipleSelection.length > 0) {
|
|
1358
|
+
for (var e2 = 0; e2 < this.multipleSelection.length; e2++) {
|
|
1359
|
+
const t2 = this.multipleSelection[e2];
|
|
1360
|
+
this.selectRow(t2);
|
|
1361
|
+
const o2 = this.getCurrentRowIndex();
|
|
1362
|
+
this.fieldArr.splice(o2, 1);
|
|
1363
|
+
}
|
|
1364
|
+
this.combinationParameters();
|
|
1365
|
+
}
|
|
1366
|
+
}, selectCondition(e2) {
|
|
1367
|
+
this.selectRow(e2), this.showAdditionalCondition = true;
|
|
1368
|
+
}, showButtonVisible(e2) {
|
|
1369
|
+
this.clickButton = true, this.buttonType = e2, this.actionVisibleConditionArr && this.actionVisibleConditionArr[e2] ? this.buttonVisibleCon = this.actionVisibleConditionArr[e2] : this.buttonVisibleCon = {}, this.showButtonVisibleFlag = true;
|
|
1370
|
+
}, saveButtonVisible(e2) {
|
|
1371
|
+
e2 && (this.actionVisibleConditionArr || (this.actionVisibleConditionArr = {}), this.actionVisibleConditionArr[this.buttonType] = e2, this.combinationParameters()), this.showButtonVisibleFlag = false;
|
|
1372
|
+
}, changeActionArr() {
|
|
1373
|
+
this.clickButton ? (this.actionArr.push(this.buttonType), this.clickButton = false) : this.combinationParameters();
|
|
1374
|
+
}, combinationParameters() {
|
|
1375
|
+
const e2 = {};
|
|
1376
|
+
e2.modelName = this.modelName, e2.tableName = this.tableName, e2.permission = this.sumPermission;
|
|
1377
|
+
const t2 = [];
|
|
1378
|
+
if (this.actionArr && this.actionArr.length > 0 && (this.actionArr.forEach((e3) => {
|
|
1379
|
+
const o2 = {};
|
|
1380
|
+
if (o2.name = e3, this.actionVisibleConditionArr && this.actionVisibleConditionArr[e3]) {
|
|
1381
|
+
const t3 = this.actionVisibleConditionArr[e3];
|
|
1382
|
+
o2.condition = this.dataToXml(t3.condition), o2.parentCondition = t3.parentCondition, o2.userCondition = t3.userCondition;
|
|
1383
|
+
}
|
|
1384
|
+
t2.push(o2);
|
|
1385
|
+
}), e2.action = t2), this.fieldArr && this.fieldArr.length > 0) {
|
|
1386
|
+
const t3 = [];
|
|
1387
|
+
this.fieldArr.forEach((e3) => {
|
|
1388
|
+
const o2 = {};
|
|
1389
|
+
o2.name = e3.name, o2.constraintRule = e3.constraintRule, e3.condition && (o2.condition = this.dataToXml(e3.condition)), o2.userCondition = e3.userCondition, o2.parentCondition = e3.parentCondition, t3.push(o2);
|
|
1390
|
+
}), e2.field = t3;
|
|
1391
|
+
}
|
|
1392
|
+
this.$emit("combinationParameters", e2);
|
|
1393
|
+
} } };
|
|
1394
|
+
const Ho = { name: "EditableChildFields", components: { editableChildFieldSetting: M(Lo, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1395
|
+
const a2 = r.resolveComponent("Tools"), s2 = r.resolveComponent("el-icon"), d2 = r.resolveComponent("el-checkbox"), c2 = r.resolveComponent("el-col"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("el-checkbox-group"), p2 = r.resolveComponent("selection-conditions"), h2 = r.resolveComponent("el-button"), f2 = r.resolveComponent("el-table-column"), w2 = r.resolveComponent("el-option"), g2 = r.resolveComponent("el-select"), C2 = r.resolveComponent("el-radio"), b2 = r.resolveComponent("el-radio-group"), k2 = r.resolveComponent("el-table");
|
|
1396
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createElementVNode("div", null, [r.createVNode(u2, { modelValue: n2.actionArr, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.actionArr = e3), onChange: i2.changeActionArr }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "notEmpty" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.tableDataNotEmpty")) + " ", 1), n2.actionArr && -1 !== n2.actionArr.indexOf("notEmpty") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[0] || (t2[0] = (e3) => i2.showButtonVisible("notEmpty")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "add" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.rowsCanBeAdded")) + " ", 1), n2.actionArr && -1 !== n2.actionArr.indexOf("add") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[1] || (t2[1] = (e3) => i2.showButtonVisible("add")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "delete" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.deleteLine")) + " ", 1), n2.actionArr && -1 !== n2.actionArr.indexOf("delete") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[2] || (t2[2] = (e3) => i2.showButtonVisible("delete")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "update" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.modifiableHistoricalData")) + " ", 1), n2.actionArr && -1 !== n2.actionArr.indexOf("update") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[3] || (t2[3] = (e3) => i2.showButtonVisible("update")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), n2.showButtonVisibleFlag ? (r.openBlock(), r.createBlock(p2, { key: 0, "attribute-map": n2.subtableConditionItem, "condition-list": n2.buttonVisibleCon.condition, "parent-condition": n2.buttonVisibleCon.parentCondition, "user-condition": n2.buttonVisibleCon.userCondition, "button-type": n2.buttonType, onClose: i2.saveButtonVisible }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "button-type", "onClose"])) : r.createCommentVNode("", true)]), r.createElementVNode("div", null, [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(h2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(h2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(k2, { ref: "table", data: n2.fieldArr, border: "", "highlight-current-row": "", style: { width: "100%" }, onSelectionChange: i2.handleSelectionChange, onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(f2, { type: "selection", width: "55", align: "center" }), r.createVNode(f2, { type: "index", width: "50", align: "center" }), r.createVNode(f2, { prop: "name", label: e2.$t("workflowEditor.task.propertyName"), width: "280", align: "center" }, { default: r.withCtx((t3) => [r.createVNode(g2, { modelValue: t3.row.name, "onUpdate:modelValue": (e3) => t3.row.name = e3, size: "small", filterable: "", onChange: i2.combinationParameters }, { default: r.withCtx(() => [r.createVNode(w2, { label: e2.$t("workflowEditor.condition.allFields"), value: "all_fields" }, null, 8, ["label"]), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.attributeArr, (e3) => (r.openBlock(), r.createBlock(w2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(f2, { prop: "constraintRule", label: e2.$t("workflowEditor.task.editingMethod"), width: "380", align: "center" }, { default: r.withCtx((t3) => [r.createVNode(b2, { modelValue: t3.row.constraintRule, "onUpdate:modelValue": (e3) => t3.row.constraintRule = e3, onChange: i2.combinationParameters }, { default: r.withCtx(() => [r.createVNode(C2, { label: "REQUIRED" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r.createVNode(C2, { label: "READ_ONLY" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(f2, { prop: "condition", label: e2.$t("workflowEditor.task.condition"), align: "center" }, { default: r.withCtx((e3) => [r.createVNode(s2, { onClick: (t3) => i2.selectCondition(e3.row) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), n2.showAdditionalCondition ? (r.openBlock(), r.createBlock(p2, { key: 0, "attribute-map": n2.subtableConditionItem, "condition-list": n2.currentRow.condition, "parent-condition": n2.currentRow.parentCondition, "user-condition": n2.currentRow.userCondition, onClose: i2.savebuttonSetting }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "onClose"])) : r.createCommentVNode("", true)])]);
|
|
1397
|
+
}]]) }, props: { modelValue: { type: [Array, Object], default: null } }, data() {
|
|
1398
|
+
let e2 = [];
|
|
1399
|
+
return "" !== this.modelValue && null !== this.modelValue && void 0 !== this.modelValue && (Array.isArray(this.modelValue) ? e2 = this.modelValue : e2.push(this.modelValue)), { selectedFields: e2, selectedFieldMap: {} };
|
|
1400
|
+
}, computed: { ...t.mapGetters("wfEditor", ["subtableConditionMap"]) }, watch: {}, created() {
|
|
1401
|
+
if (this.selectedFields && this.selectedFields.length > 0 && this.selectedFields.forEach((e3) => {
|
|
1402
|
+
const t2 = {}, o2 = e3.tableName;
|
|
1403
|
+
if (e3.action)
|
|
1404
|
+
if (Array.isArray(e3.action)) {
|
|
1405
|
+
if (e3.action.length > 0) {
|
|
1406
|
+
const o3 = [], l2 = {};
|
|
1407
|
+
e3.action.forEach((e4) => {
|
|
1408
|
+
o3.push(e4.name);
|
|
1409
|
+
const t3 = {};
|
|
1410
|
+
e4.condition && (t3.condition = this.xmlToData(e4.condition)), t3.parentCondition = e4.parentCondition, t3.userCondition = e4.userCondition, l2[e4.name] = t3;
|
|
1411
|
+
}), t2.actionArr = o3, t2.visibleConditionArr = l2;
|
|
1412
|
+
}
|
|
1413
|
+
} else {
|
|
1414
|
+
const o3 = [], l2 = {};
|
|
1415
|
+
o3.push(e3.action.name);
|
|
1416
|
+
const r2 = {};
|
|
1417
|
+
e3.action.condition && (r2.condition = this.xmlToData(e3.action.condition)), r2.parentCondition = e3.action.parentCondition, r2.userCondition = e3.action.userCondition, l2[e3.action.name] = r2, t2.actionArr = o3, t2.visibleConditionArr = l2;
|
|
1418
|
+
}
|
|
1419
|
+
if (e3.field)
|
|
1420
|
+
if (Array.isArray(e3.field)) {
|
|
1421
|
+
if (e3.field.length > 0) {
|
|
1422
|
+
const o3 = [];
|
|
1423
|
+
e3.field.forEach((e4) => {
|
|
1424
|
+
const t3 = {};
|
|
1425
|
+
t3.name = e4.name, t3.constraintRule = e4.constraintRule, t3.condition = this.xmlToData(e4.condition), t3.userCondition = e4.userCondition, t3.parentCondition = e4.parentCondition, o3.push(t3);
|
|
1426
|
+
}), t2.fieldArr = o3;
|
|
1427
|
+
}
|
|
1428
|
+
} else {
|
|
1429
|
+
const o3 = [], l2 = {};
|
|
1430
|
+
l2.name = e3.field.name, l2.constraintRule = e3.field.constraintRule, l2.condition = this.xmlToData(e3.field.condition), l2.userCondition = e3.field.userCondition, l2.parentCondition = e3.field.parentCondition, o3.push(l2), t2.fieldArr = o3;
|
|
1431
|
+
}
|
|
1432
|
+
e3.modelName ? t2.modelName = e3.modelName : t2.modelName = null, e3.permission ? t2.sumPermission = e3.permission : t2.sumPermission = false, this.selectedFieldMap[o2] = t2;
|
|
1433
|
+
}), this.subtableConditionMap) {
|
|
1434
|
+
for (var e2 in this.subtableConditionMap)
|
|
1435
|
+
if (!this.selectedFieldMap[e2]) {
|
|
1436
|
+
const t2 = {};
|
|
1437
|
+
t2.tableName = e2, t2.modelName = this.subtableConditionMap[e2].modelName, t2.sumPermission = false, this.selectedFieldMap[e2] = t2;
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}, mounted() {
|
|
1441
|
+
}, methods: { ...yo, combinationParameters(e2) {
|
|
1442
|
+
if (e2 && e2.tableName) {
|
|
1443
|
+
if (this.selectedFields && this.selectedFields.length > 0) {
|
|
1444
|
+
const t2 = this.selectedFields.findIndex((t3) => t3.tableName === e2.tableName);
|
|
1445
|
+
-1 !== t2 ? this.selectedFields[t2] = e2 : this.selectedFields.push(e2);
|
|
1446
|
+
} else
|
|
1447
|
+
this.selectedFields = [], this.selectedFields.push(e2);
|
|
1448
|
+
this.$emit("update:modelValue", this.selectedFields);
|
|
1449
|
+
}
|
|
1450
|
+
}, refreshModelName(e2) {
|
|
1451
|
+
if (this.subtableConditionMap && this.subtableConditionMap[e2] && this.subtableConditionMap[e2].modelName) {
|
|
1452
|
+
if (this.selectedFieldMap[e2]) {
|
|
1453
|
+
this.selectedFieldMap[e2].modelName = this.subtableConditionMap[e2].modelName;
|
|
1454
|
+
} else {
|
|
1455
|
+
const t2 = {};
|
|
1456
|
+
t2.modelName = this.subtableConditionMap[e2].modelName, this.selectedFieldMap[e2] = t2;
|
|
1457
|
+
}
|
|
1458
|
+
this.$message({ showClose: true, type: "success", message: this.$t("workflowEditorMessage.updateSuccessful") });
|
|
1459
|
+
}
|
|
1460
|
+
}, changeSumPermission(e2) {
|
|
1461
|
+
if (e2 && this.selectedFieldMap[e2])
|
|
1462
|
+
if (this.selectedFields || (this.selectedFields = []), false === this.selectedFieldMap[e2].sumPermission) {
|
|
1463
|
+
const t2 = this.selectedFields.findIndex((t3) => t3.tableName === e2);
|
|
1464
|
+
null != t2 && -1 !== t2 ? this.selectedFields[t2].permission = false : this.selectedFields[this.selectedFields.length] = { permission: false, tableName: e2 };
|
|
1465
|
+
} else {
|
|
1466
|
+
const t2 = this.selectedFields.findIndex((t3) => t3.tableName === e2);
|
|
1467
|
+
null != t2 && -1 !== t2 ? this.selectedFields[t2].permission = true : this.selectedFields[this.selectedFields.length] = { permission: true, tableName: e2 };
|
|
1468
|
+
}
|
|
1469
|
+
this.$emit("update:modelValue", this.selectedFields);
|
|
1470
|
+
} } }, jo = { style: { width: "100%", "margin-top": "10px" } }, zo = { class: "clearfix" }, Wo = { key: 0 }, Jo = { style: { color: "cornflowerblue" } }, qo = { style: { "padding-left": "5px" } }, Go = { key: 0 };
|
|
1471
|
+
const Ko = M(Ho, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1472
|
+
const a2 = r.resolveComponent("el-col"), s2 = r.resolveComponent("el-switch"), d2 = r.resolveComponent("el-row"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-button"), u2 = r.resolveComponent("editable-child-field-setting"), p2 = r.resolveComponent("el-card");
|
|
1473
|
+
return r.openBlock(), r.createElementBlock("div", jo, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.subtableConditionMap, (t3, o3) => (r.openBlock(), r.createElementBlock("span", { key: o3 }, [r.createVNode(p2, { class: "box-card" }, { default: r.withCtx(() => [r.createElementVNode("div", zo, [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(a2, { span: 12 }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(o3), 1)]), _: 2 }, 1024), n2.selectedFieldMap[o3] ? (r.openBlock(), r.createBlock(a2, { key: 0, span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.selectedFieldMap[o3].sumPermission, "onUpdate:modelValue": (e3) => n2.selectedFieldMap[o3].sumPermission = e3, "inactive-text": e2.$t("workflowEditor.condition.accessControl"), onChange: (e3) => i2.changeSumPermission(o3) }, null, 8, ["modelValue", "onUpdate:modelValue", "inactive-text", "onChange"])]), _: 2 }, 1024)) : r.createCommentVNode("", true)]), _: 2 }, 1024), r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(a2, null, { default: r.withCtx(() => [n2.selectedFieldMap[o3] && n2.selectedFieldMap[o3].sumPermission ? (r.openBlock(), r.createElementBlock("span", Wo, [r.createElementVNode("span", Jo, r.toDisplayString(e2.$t("workflowEditor.condition.formBindingModel")) + ":", 1), r.createElementVNode("span", qo, [r.createVNode(c2, { modelValue: n2.selectedFieldMap[o3].modelName, "onUpdate:modelValue": (e3) => n2.selectedFieldMap[o3].modelName = e3, style: { width: "300px" } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), r.createVNode(m2, { icon: "el-icon-refresh", type: "text", onClick: (e3) => i2.refreshModelName(o3) }, null, 8, ["onClick"])])) : r.createCommentVNode("", true)]), _: 2 }, 1024)]), _: 2 }, 1024)]), n2.selectedFieldMap[o3] && n2.selectedFieldMap[o3].sumPermission ? (r.openBlock(), r.createElementBlock("div", Go, [r.createVNode(u2, { setting: n2.selectedFieldMap[o3], "table-name": o3, onCombinationParameters: i2.combinationParameters }, null, 8, ["setting", "table-name", "onCombinationParameters"])])) : r.createCommentVNode("", true)]), _: 2 }, 1024)]))), 128))]);
|
|
1474
|
+
}]]);
|
|
1475
|
+
const Xo = { name: "UserSelection", components: { SystemRoleTree: M({ name: "SystemRoleTree", components: { InlineSystemRoleTree: Lt }, props: { multiple: { type: Boolean, default: false } }, data: () => ({ dialogVisible: true }), computed: {}, watch: {}, created() {
|
|
1476
|
+
}, methods: { roleResult(e2) {
|
|
1477
|
+
e2 ? this.$emit("close", e2) : this.$emit("close");
|
|
1478
|
+
}, selectRoles() {
|
|
1479
|
+
this.$refs.systemRoleTree.selectRole();
|
|
1480
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1481
|
+
const a2 = r.resolveComponent("inline-system-role-tree"), s2 = r.resolveComponent("el-button"), d2 = r.resolveComponent("el-dialog");
|
|
1482
|
+
return r.openBlock(), r.createBlock(d2, { "model-value": "", title: e2.$t("workflowEditorMessage.selectRole"), width: "30%", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", "close-on-click-modal": false, onClose: t2[1] || (t2[1] = (t3) => e2.$emit("close")) }, r.createSlots({ default: r.withCtx(() => [r.createVNode(a2, { ref: "systemRoleTree", multiple: o2.multiple, onResult: i2.roleResult }, null, 8, ["multiple", "onResult"])]), _: 2 }, [o2.multiple ? { name: "footer", fn: r.withCtx(() => [r.createVNode(s2, { type: "primary", size: "small", onClick: i2.selectRoles }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(s2, { size: "small", onClick: t2[0] || (t2[0] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), key: "0" } : void 0]), 1032, ["title"]);
|
|
1483
|
+
}]]), FormFields: ct }, props: { label: { type: String, default: "" }, labelWidth: { type: String, default: null }, modelValue: { type: String, default: "" }, currentTransactor: { type: Boolean, default: false } }, data() {
|
|
1484
|
+
let e2 = false, t2 = "";
|
|
1485
|
+
const o2 = this.modelValue.split("; "), l2 = o2[0].split(" condition.operator.or ");
|
|
1486
|
+
return 2 === o2.length && (e2 = true, t2 = o2[1].split(" condition.operator.or "), l2.push("assignUser")), { checkList: l2, showUserList: e2, selectedUsers: t2, showSelectUser: false, selectedUsersShowValue: null, showSelectDepartment: false, showSelectWorkgroup: false, showSelectRole: false, showSelectField: false };
|
|
1487
|
+
}, watch: { checkList(e2) {
|
|
1488
|
+
this.$emit("update:modelValue", this.getValue());
|
|
1489
|
+
}, selectedUsers(e2) {
|
|
1490
|
+
this.$emit("update:modelValue", this.getValue());
|
|
1491
|
+
} }, created() {
|
|
1492
|
+
this.checkList, this.getSelectedUsersShowValue();
|
|
1493
|
+
}, methods: { formatLabel: (e2) => mt(e2), getValue() {
|
|
1494
|
+
let e2 = this.checkList.filter((e3) => "" !== e3 && "assignUser" !== e3).join(" condition.operator.or ");
|
|
1495
|
+
return this.showUserList && this.selectedUsers && 0 !== this.selectedUsers.length && (e2 = e2 + "; " + this.selectedUsers.join(" condition.operator.or ")), e2;
|
|
1496
|
+
}, toggleUserList() {
|
|
1497
|
+
this.showUserList = !this.showUserList;
|
|
1498
|
+
}, resetSelectedUsers() {
|
|
1499
|
+
this.selectedUsers = [], this.selectedUsersShowValue = "";
|
|
1500
|
+
}, handleCommand(e2) {
|
|
1501
|
+
"selectUser" === e2 ? this.selectPointUser() : "selectDepartment" === e2 ? this.selectPointDepartment() : "selectRole" === e2 ? this.selectPointRole() : "selectWorkgroup" === e2 ? this.selectPointWorkgroup() : "selectField" === e2 && this.selectPointField();
|
|
1502
|
+
}, selectPointUser() {
|
|
1503
|
+
this.showSelectUser = true;
|
|
1504
|
+
}, selectPointDepartment() {
|
|
1505
|
+
this.showSelectDepartment = true;
|
|
1506
|
+
}, selectPointRole() {
|
|
1507
|
+
this.showSelectRole = true;
|
|
1508
|
+
}, selectPointField() {
|
|
1509
|
+
this.showSelectField = true;
|
|
1510
|
+
}, selectPointWorkgroup() {
|
|
1511
|
+
this.showSelectWorkgroup = true;
|
|
1512
|
+
}, addPointUsers(e2) {
|
|
1513
|
+
if (e2) {
|
|
1514
|
+
e2.containBranch ? this.packageSelectedUserConditionsWithBranch(e2.users) : this.packageSelectedUserConditionsWithOutBranch(e2.users), this.getSelectedUsersShowValue();
|
|
1515
|
+
}
|
|
1516
|
+
this.showSelectUser = false;
|
|
1517
|
+
}, packageSelectedUserConditionsWithBranch(e2) {
|
|
1518
|
+
e2.forEach((e3) => {
|
|
1519
|
+
let t2 = e3.loginName, o2 = e3.name;
|
|
1520
|
+
if (e3.subCompanyId && null !== e3.subCompanyId) {
|
|
1521
|
+
t2 = t2 + "~~" + e3.subCompanyCode, o2 = o2 + "/" + e3.subCompanyName;
|
|
1522
|
+
} else
|
|
1523
|
+
t2 = t2 + "~~" + e3.tenantCode, o2 = o2 + "/" + e3.tenantName;
|
|
1524
|
+
const l2 = "${user} operator.text.eq " + o2 + "[" + t2 + "]";
|
|
1525
|
+
if (this.selectedUsers) {
|
|
1526
|
+
0 === this.selectedUsers.filter(this.filterCondition(l2)).length && this.selectedUsers.push(l2);
|
|
1527
|
+
} else
|
|
1528
|
+
this.selectedUsers = [], this.selectedUsers.push(l2);
|
|
1529
|
+
});
|
|
1530
|
+
}, packageSelectedUserConditionsWithOutBranch(e2) {
|
|
1531
|
+
e2.forEach((e3) => {
|
|
1532
|
+
this.selectedUsers || (this.selectedUsers = []);
|
|
1533
|
+
const t2 = "${user} operator.text.eq " + e3.name + "[" + e3.loginName + "]";
|
|
1534
|
+
0 === this.selectedUsers.filter(this.filterCondition(t2)).length && this.selectedUsers.push(t2);
|
|
1535
|
+
});
|
|
1536
|
+
}, getSelectedUsersShowValue() {
|
|
1537
|
+
if (this.selectedUsers) {
|
|
1538
|
+
const e2 = this.selectedUsers.join(" condition.operator.or ");
|
|
1539
|
+
this.selectedUsersShowValue = e2.replace(/\$\{user\}/g, "用户").replace(/\$\{department\}/g, "部门").replace(/\$\{workGroup\}/g, "工作组").replace(/\$\{role\}/g, "角色").replace(/operator\.text\.eq/g, "等于").replace(/condition\.operator\.or/g, "或者").replace(/\$\{field/g, "字段").replace(/]\}/g, "]");
|
|
1540
|
+
}
|
|
1541
|
+
}, filterCondition: (e2) => (t2) => t2 === e2, addPointDepartments(e2) {
|
|
1542
|
+
if (e2) {
|
|
1543
|
+
e2.containBranch ? this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2.departments, "${department}") : this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.departments, "${department}"), this.getSelectedUsersShowValue();
|
|
1544
|
+
}
|
|
1545
|
+
this.showSelectDepartment = false;
|
|
1546
|
+
}, packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2, t2) {
|
|
1547
|
+
const o2 = t2 + " operator.text.eq ";
|
|
1548
|
+
e2.forEach((e3) => {
|
|
1549
|
+
const t3 = e3.code;
|
|
1550
|
+
let l2 = e3.name;
|
|
1551
|
+
if (e3.subCompanyId && null !== e3.subCompanyId) {
|
|
1552
|
+
const t4 = e3.subCompanyName;
|
|
1553
|
+
t4 && "" !== t4 && (l2 = l2 + "/" + t4);
|
|
1554
|
+
} else
|
|
1555
|
+
l2 = l2 + "/" + e3.tenantName;
|
|
1556
|
+
const r2 = o2 + l2 + "[" + t3 + "]";
|
|
1557
|
+
if (this.selectedUsers) {
|
|
1558
|
+
0 === this.selectedUsers.filter(this.filterCondition(r2)).length && this.selectedUsers.push(r2);
|
|
1559
|
+
} else
|
|
1560
|
+
this.selectedUsers = [], this.selectedUsers.push(r2);
|
|
1561
|
+
});
|
|
1562
|
+
}, packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2, t2) {
|
|
1563
|
+
const o2 = t2 + " operator.text.eq ";
|
|
1564
|
+
e2.forEach((e3) => {
|
|
1565
|
+
const t3 = o2 + e3.name + "[" + e3.code + "]";
|
|
1566
|
+
if (this.selectedUsers) {
|
|
1567
|
+
0 === this.selectedUsers.filter(this.filterCondition(t3)).length && this.selectedUsers.push(t3);
|
|
1568
|
+
} else
|
|
1569
|
+
this.selectedUsers = [], this.selectedUsers.push(t3);
|
|
1570
|
+
});
|
|
1571
|
+
}, addPointWorkgroups(e2) {
|
|
1572
|
+
if (e2) {
|
|
1573
|
+
e2.containBranch ? this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2.workgroups, "${workGroup}") : this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.workgroups, "${workGroup}"), this.getSelectedUsersShowValue();
|
|
1574
|
+
}
|
|
1575
|
+
this.showSelectWorkgroup = false;
|
|
1576
|
+
}, addPointRoles(e2) {
|
|
1577
|
+
e2 && (this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.roles, "${role}"), this.getSelectedUsersShowValue()), this.showSelectRole = false;
|
|
1578
|
+
}, packageSelectedFieldConditions(e2, t2) {
|
|
1579
|
+
const o2 = t2 + " operator.text.eq ${field[" + e2 + "]}";
|
|
1580
|
+
if (this.selectedUsers) {
|
|
1581
|
+
0 === this.selectedUsers.filter(this.filterCondition(o2)).length && this.selectedUsers.push(o2);
|
|
1582
|
+
} else
|
|
1583
|
+
this.selectedUsers = [], this.selectedUsers.push(o2);
|
|
1584
|
+
}, setField(e2) {
|
|
1585
|
+
void 0 !== e2 && (this.packageSelectedFieldConditions(e2, "${user}"), this.getSelectedUsersShowValue()), this.showSelectField = false;
|
|
1586
|
+
} } }, Yo = { key: 0, style: { width: "100%", "vertical-align": "middle" } }, Qo = { class: "el-dropdown-link" }, Zo = r.createElementVNode("i", { class: "fa fa-search" }, null, -1);
|
|
1587
|
+
const el = M(Xo, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1588
|
+
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-checkbox-group"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-dropdown-item"), m2 = r.resolveComponent("el-dropdown-menu"), u2 = r.resolveComponent("el-dropdown"), p2 = r.resolveComponent("el-button"), h2 = r.resolveComponent("el-row"), f2 = r.resolveComponent("el-input"), w2 = r.resolveComponent("department-user-tree"), g2 = r.resolveComponent("department-tree"), C2 = r.resolveComponent("workgroup-tree"), b2 = r.resolveComponent("system-role-tree"), k2 = r.resolveComponent("form-fields"), V2 = r.resolveComponent("el-form-item");
|
|
1589
|
+
return r.openBlock(), r.createBlock(V2, { label: o2.label, "label-width": o2.labelWidth }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.checkList, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.checkList = e3) }, { default: r.withCtx(() => [r.createVNode(a2, { label: "${instanceCreator}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.processInitiator")), 1)]), _: 1 }), r.createVNode(a2, { label: "${processAdmin}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.processAdministrator")), 1)]), _: 1 }), o2.currentTransactor ? (r.openBlock(), r.createBlock(a2, { key: 0, label: "${currentTransactor}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.currentHandler")), 1)]), _: 1 })) : (r.openBlock(), r.createBlock(a2, { key: 1, label: "${allHandleTransactors}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.allHandlingPersonnel")), 1)]), _: 1 })), r.createVNode(a2, { label: "assignUser", onChange: i2.toggleUserList }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.designatedPersonnel")), 1)]), _: 1 }, 8, ["onChange"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n2.showUserList ? (r.openBlock(), r.createElementBlock("div", Yo, [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(h2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 4 }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.listOfDesignatedPersons")), 1)]), _: 1 }), r.createVNode(d2, { style: { display: "flex", "justify-content": "center", "align-items": "center" }, span: 5 }, { default: r.withCtx(() => [r.createVNode(u2, { size: "small", "split-button": "", type: "primary", plain: "", onCommand: i2.handleCommand }, { dropdown: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(c2, { command: "selectUser", onClick: t2[1] || (t2[1] = (e3) => i2.selectPointUser()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectusers")), 1)]), _: 1 }), r.createVNode(c2, { command: "selectDepartment", onClick: t2[2] || (t2[2] = (e3) => i2.selectPointDepartment()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectDepartment")), 1)]), _: 1 }), r.createVNode(c2, { command: "selectWorkgroup", onClick: t2[3] || (t2[3] = (e3) => i2.selectPointWorkgroup()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectTeam")), 1)]), _: 1 }), r.createVNode(c2, { command: "selectRole", onClick: t2[4] || (t2[4] = (e3) => i2.selectPointRole()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectRole")), 1)]), _: 1 }), r.createVNode(c2, { command: "selectField", onClick: t2[5] || (t2[5] = (e3) => i2.selectPointField()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectField")), 1)]), _: 1 })]), _: 1 })]), default: r.withCtx(() => [r.createElementVNode("span", Qo, [Zo, r.createTextVNode(" " + r.toDisplayString(e2.$t("workflowEditorPublicModel.choice")), 1)])]), _: 1 }, 8, ["onCommand"])]), _: 1 }), r.createVNode(d2, { span: 3 }, { default: r.withCtx(() => [r.createVNode(p2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.resetSelectedUsers }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.empty")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 })]), _: 1 }), r.createVNode(h2, null, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: n2.selectedUsersShowValue, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.selectedUsersShowValue = e3), type: "textarea", rows: 2, placeholder: e2.$t("workflowEditorMessage.pleaseSelectPersonnel") }, null, 8, ["modelValue", "placeholder"])]), _: 1 })]), _: 1 })]), _: 1 }), n2.showSelectUser ? (r.openBlock(), r.createBlock(w2, { key: 0, width: "60%", multiple: true, onClose: i2.addPointUsers }, null, 8, ["onClose"])) : r.createCommentVNode("", true), n2.showSelectDepartment ? (r.openBlock(), r.createBlock(g2, { key: 1, width: "30%", multiple: true, onClose: i2.addPointDepartments }, null, 8, ["onClose"])) : r.createCommentVNode("", true), n2.showSelectWorkgroup ? (r.openBlock(), r.createBlock(C2, { key: 2, width: "30%", multiple: true, onClose: i2.addPointWorkgroups }, null, 8, ["onClose"])) : r.createCommentVNode("", true), n2.showSelectRole ? (r.openBlock(), r.createBlock(b2, { key: 3, multiple: true, onClose: i2.addPointRoles }, null, 8, ["onClose"])) : r.createCommentVNode("", true), n2.showSelectField ? (r.openBlock(), r.createBlock(k2, { key: 4, onClose: i2.setField }, null, 8, ["onClose"])) : r.createCommentVNode("", true)])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label", "label-width"]);
|
|
1590
|
+
}]]);
|
|
1591
|
+
const tl = M({ name: "PermissionSettings", components: { EditableFields: Vo, UserSelection: el, AdditionalCondition: Wt, editableChildFields: Ko }, props: { modelValue: { type: Object, default: null } }, data() {
|
|
1592
|
+
const e2 = T(this.modelValue), t2 = ["viewOpinion", "editOpinion", "requireOpinion", "viewMeetingResult", "viewVoteResult", "viewFlowHistory", "printForm"];
|
|
1593
|
+
t2.forEach((t3) => {
|
|
1594
|
+
e2[t3 + "Checkbox"] = !!this.modelValue[t3].condition;
|
|
1595
|
+
});
|
|
1596
|
+
const o2 = ["add", "delete", "download"];
|
|
1597
|
+
return o2.forEach((t3) => {
|
|
1598
|
+
e2.attachment[t3 + "Checkbox"] = !!this.modelValue.attachment[t3] && !!this.modelValue.attachment[t3].condition, e2.attachment.permission || (e2.attachment[t3] = { permission: false, condition: "" });
|
|
1599
|
+
}), { formModel: e2, attrNames: t2, attachmentAttrNames: o2 };
|
|
1600
|
+
}, mounted() {
|
|
1601
|
+
this.$watch("formModel", function(e2) {
|
|
1602
|
+
const t2 = { editForm: {}, viewOpinion: {}, editOpinion: {}, requireOpinion: {}, viewMeetingResult: {}, viewVoteResult: {}, viewFlowHistory: {}, printForm: {}, officialText: {}, attachment: {}, deleteInstance: { userCondition: "" } };
|
|
1603
|
+
t2.editForm.permission = e2.editForm.permission, e2.editForm.permission && (t2.editForm.field = e2.editForm.field, t2.editForm.subTablePermission = e2.editForm.subTablePermission), this.attrNames.map((o2) => {
|
|
1604
|
+
t2[o2].permission = e2[o2].permission, e2[o2].permission && e2[o2 + "Checkbox"] ? t2[o2].condition = e2[o2].condition : t2[o2].condition = "";
|
|
1605
|
+
}), t2.attachment.permission = e2.attachment.permission, e2.attachment.permission && this.attachmentAttrNames.map((o2) => {
|
|
1606
|
+
t2.attachment[o2] || (t2.attachment[o2] = {}), t2.attachment[o2].permission = e2.attachment[o2].permission, e2.attachment[o2].permission && e2.attachment[o2 + "Checkbox"] ? t2.attachment[o2].condition = e2.attachment[o2].condition : t2.attachment[o2].condition = "";
|
|
1607
|
+
}), this.$emit("update:modelValue", t2);
|
|
1608
|
+
}, { deep: true });
|
|
1609
|
+
}, methods: {} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1610
|
+
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("editable-fields"), c2 = r.resolveComponent("editable-child-fields"), m2 = r.resolveComponent("el-checkbox"), u2 = r.resolveComponent("additional-condition"), p2 = r.resolveComponent("user-selection"), h2 = r.resolveComponent("el-card"), f2 = r.resolveComponent("el-form");
|
|
1611
|
+
return r.openBlock(), r.createBlock(f2, { model: n2.formModel }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowEditingForms") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.editForm.permission, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.editForm.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [n2.formModel.editForm.permission ? (r.openBlock(), r.createBlock(d2, { key: 0, modelValue: n2.formModel.editForm.field, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.editForm.field = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.editForm.permission ? (r.openBlock(), r.createBlock(c2, { key: 1, modelValue: n2.formModel.editForm.subTablePermission, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.formModel.editForm.subTablePermission = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 512), [[r.vShow, n2.formModel.editForm.permission]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowViews") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewOpinion.permission, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.formModel.viewOpinion.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.viewOpinionCheckbox, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.formModel.viewOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.viewOpinion.condition, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.formModel.viewOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.viewOpinion.permission && n2.formModel.viewOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.commentsAllowed") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.editOpinion.permission, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.formModel.editOpinion.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.editOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.editOpinionCheckbox, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => n2.formModel.editOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.editOpinion.condition, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => n2.formModel.editOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.editOpinion.permission && n2.formModel.editOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.commentsAreRequired") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.requireOpinion.permission, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => n2.formModel.requireOpinion.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.requireOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.requireOpinionCheckbox, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => n2.formModel.requireOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.requireOpinion.condition, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => n2.formModel.requireOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.requireOpinion.permission && n2.formModel.requireOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewCountersignatureResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewMeetingResult.permission, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => n2.formModel.viewMeetingResult.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewMeetingResult.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.viewMeetingResultCheckbox, "onUpdate:modelValue": t2[13] || (t2[13] = (e3) => n2.formModel.viewMeetingResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.viewMeetingResult.condition, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => n2.formModel.viewMeetingResult.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.viewMeetingResult.permission && n2.formModel.viewMeetingResultCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewVotingResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewVoteResult.permission, "onUpdate:modelValue": t2[15] || (t2[15] = (e3) => n2.formModel.viewVoteResult.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewVoteResult.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.viewVoteResultCheckbox, "onUpdate:modelValue": t2[16] || (t2[16] = (e3) => n2.formModel.viewVoteResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.viewVoteResult.condition, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => n2.formModel.viewVoteResult.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.viewVoteResult.permission && n2.formModel.viewVoteResultCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewFlowHistory") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewFlowHistory.permission, "onUpdate:modelValue": t2[18] || (t2[18] = (e3) => n2.formModel.viewFlowHistory.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewFlowHistory.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.viewFlowHistoryCheckbox, "onUpdate:modelValue": t2[19] || (t2[19] = (e3) => n2.formModel.viewFlowHistoryCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.viewFlowHistory.condition, "onUpdate:modelValue": t2[20] || (t2[20] = (e3) => n2.formModel.viewFlowHistory.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.viewFlowHistory.permission && n2.formModel.viewFlowHistoryCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowFormsToPrint") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.printForm.permission, "onUpdate:modelValue": t2[21] || (t2[21] = (e3) => n2.formModel.printForm.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.printForm.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.printFormCheckbox, "onUpdate:modelValue": t2[22] || (t2[22] = (e3) => n2.formModel.printFormCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.printForm.condition, "onUpdate:modelValue": t2[23] || (t2[23] = (e3) => n2.formModel.printForm.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.printForm.permission && n2.formModel.printFormCheckbox]]), r.createVNode(p2, { modelValue: n2.formModel.deleteInstance.userCondition, "onUpdate:modelValue": t2[24] || (t2[24] = (e3) => n2.formModel.deleteInstance.userCondition = e3), label: e2.$t("workflowEditor.task.deletePermission"), "label-width": "100px", "current-transactor": true }, null, 8, ["modelValue", "label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.attachmentAuthority") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.permission, "onUpdate:modelValue": t2[25] || (t2[25] = (e3) => n2.formModel.attachment.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n2.formModel.attachment.permission ? (r.openBlock(), r.createBlock(h2, { key: 0, class: "box-card" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.addAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.add.permission, "onUpdate:modelValue": t2[26] || (t2[26] = (e3) => n2.formModel.attachment.add.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.attachment.add.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.attachment.addCheckbox, "onUpdate:modelValue": t2[27] || (t2[27] = (e3) => n2.formModel.attachment.addCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.attachment.add.permission && n2.formModel.attachment.addCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: n2.formModel.attachment.add.condition, "onUpdate:modelValue": t2[28] || (t2[28] = (e3) => n2.formModel.attachment.add.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.deleteAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.delete.permission, "onUpdate:modelValue": t2[29] || (t2[29] = (e3) => n2.formModel.attachment.delete.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.attachment.delete.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.attachment.deleteCheckbox, "onUpdate:modelValue": t2[30] || (t2[30] = (e3) => n2.formModel.attachment.deleteCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.attachment.delete.permission && n2.formModel.attachment.deleteCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: n2.formModel.attachment.delete.condition, "onUpdate:modelValue": t2[31] || (t2[31] = (e3) => n2.formModel.attachment.delete.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.downloadAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.download.permission, "onUpdate:modelValue": t2[32] || (t2[32] = (e3) => n2.formModel.attachment.download.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.attachment.download.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.attachment.downloadCheckbox, "onUpdate:modelValue": t2[33] || (t2[33] = (e3) => n2.formModel.attachment.downloadCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.attachment.download.permission && n2.formModel.attachment.downloadCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: n2.formModel.attachment.download.condition, "onUpdate:modelValue": t2[34] || (t2[34] = (e3) => n2.formModel.attachment.download.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.bodyPermission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.officialText.permission, "onUpdate:modelValue": t2[35] || (t2[35] = (e3) => n2.formModel.officialText.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1612
|
+
}], ["__scopeId", "data-v-c019538f"]]), ol = { name: "TransactorSettings", components: { CommonUserCondition: Oo, FormFields: ct }, props: { model: { type: Object, default: null }, usedIn: { type: String, default: "HumanTask" }, isSubprocess: { type: Boolean, default: false }, basicProperties: { type: Object, default: null } }, data() {
|
|
1613
|
+
const e2 = { selectedField: "" };
|
|
1614
|
+
return this.initFormModel(e2), { showFormFields: false, formModel: e2, isCountersign: false };
|
|
1615
|
+
}, mounted() {
|
|
1616
|
+
this.$watch("formModel", function() {
|
|
1617
|
+
this.setTransactor(this.formModel.transactor);
|
|
1618
|
+
const e2 = { ...this.formModel.additionalCondition };
|
|
1619
|
+
e2.selectOneFromMultiple ? "customType" === e2.selectType && delete e2.selectUrl : (delete e2.selectType, delete e2.selectUrl), this.model.additionalCondition = e2;
|
|
1620
|
+
}, { deep: true }), this.$watch("basicProperties", function() {
|
|
1621
|
+
this.showActivateOneVoteVeto();
|
|
1622
|
+
}, { deep: true }), this.showActivateOneVoteVeto();
|
|
1623
|
+
}, methods: { formatLabel: (e2) => mt(e2), initFormModel(e2) {
|
|
1624
|
+
e2.userCondition = "";
|
|
1625
|
+
const t2 = this.model.userCondition;
|
|
1626
|
+
void 0 === t2 || "" === t2 || null === t2 ? (e2.transactor = "${instanceCreator}", this.model.userCondition = "${instanceCreator}") : "${instanceCreator}" === t2 || "${previousTransactorAssignment}" === t2 ? e2.transactor = t2 : t2.startsWith("${field[") && t2.indexOf("${field[") >= 0 && t2.indexOf('"selectedField": "${field[') < 2 ? (e2.transactor = "byField", e2.selectedField = t2) : t2.startsWith("${deptField[") ? (e2.transactor = "byDeptField", e2.selectedField = t2) : (e2.transactor = "byCondition", e2.userCondition = t2), this.initAdditionalCondition(e2), void 0 !== this.model.url ? e2.url = this.model.url : e2.url = "";
|
|
1627
|
+
}, initAdditionalCondition(e2) {
|
|
1628
|
+
void 0 === this.model.additionalCondition ? e2.additionalCondition = { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false, selectType: "customType", selectUrl: "" } : (e2.additionalCondition = { ...this.model.additionalCondition }, void 0 === e2.additionalCondition.selectType && (e2.additionalCondition.selectType = "customType"));
|
|
1629
|
+
}, changeA(e2) {
|
|
1630
|
+
this.setTransactor(e2);
|
|
1631
|
+
}, handleUrlChange(e2) {
|
|
1632
|
+
this.model.url = e2;
|
|
1633
|
+
}, setTransactor(e2) {
|
|
1634
|
+
"${instanceCreator}" !== e2 && "${previousTransactorAssignment}" !== e2 || (this.model.userCondition = e2), "byField" === e2 && (this.model.userCondition = this.formModel.selectedField), "byCondition" === e2 && (this.model.userCondition = this.formModel.userCondition), this.model.url = "${previousTransactorAssignment}" === e2 ? this.formModel.url : "", this.model.additionalCondition = "byCondition" === e2 ? { ...this.formModel.additionalCondition } : void 0;
|
|
1635
|
+
}, handleFieldSelection(e2) {
|
|
1636
|
+
}, setField(e2) {
|
|
1637
|
+
void 0 !== e2 && ("byDeptField" === this.formModel.transactor ? (this.formModel.selectedField = "${deptField[" + e2 + "]}", this.model.userCondition = this.formModel.selectedField) : (this.formModel.selectedField = "${field[" + e2 + "]}", this.model.userCondition = this.formModel.selectedField)), this.showFormFields = false;
|
|
1638
|
+
}, showActivateOneVoteVeto() {
|
|
1639
|
+
this.basicProperties && this.basicProperties.processingMode && ("COUNTERSIGN" === this.basicProperties.processingMode.type ? this.isCountersign = true : (this.isCountersign = false, this.formModel.additionalCondition.activateOneVoteVeto = false));
|
|
1640
|
+
}, transactorChange() {
|
|
1641
|
+
this.formModel.selectedField = null;
|
|
1642
|
+
} } }, ll = { key: 0, style: { width: "100%" } }, rl = { key: 1 }, nl = { key: 0 };
|
|
1643
|
+
const il = M(ol, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1644
|
+
const a2 = r.resolveComponent("el-radio"), s2 = r.resolveComponent("el-radio-group"), d2 = r.resolveComponent("common-user-condition"), c2 = r.resolveComponent("el-form-item"), m2 = r.resolveComponent("el-input"), u2 = r.resolveComponent("form-fields"), p2 = r.resolveComponent("el-checkbox"), h2 = r.resolveComponent("el-form");
|
|
1645
|
+
return r.openBlock(), r.createBlock(h2, { model: n2.formModel }, { default: r.withCtx(() => [r.createVNode(c2, { label: "" }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.formModel.transactor, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.transactor = e3), onChange: i2.transactorChange }, { default: r.withCtx(() => [r.createVNode(a2, { label: "${instanceCreator}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.processInitiator")), 1)]), _: 1 }), "HumanTask" === o2.usedIn ? (r.openBlock(), r.createBlock(a2, { key: 0, label: "${previousTransactorAssignment}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.appointmentOfHandlerInThePreviousLink")), 1)]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(a2, { label: "byField" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.personSpecifiedInFormField")), 1)]), _: 1 }), r.createVNode(a2, { label: "byDeptField" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.deptSpecifiedInFormField")), 1)]), _: 1 }), r.createVNode(a2, { label: "byCondition" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.filterByCriteria")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), "byCondition" === n2.formModel.transactor ? (r.openBlock(), r.createElementBlock("div", ll, [r.createVNode(d2, { modelValue: n2.formModel.userCondition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.userCondition = e3), "used-in": "transactor" }, null, 8, ["modelValue"])])) : r.createCommentVNode("", true)]), _: 1 }), "byField" === n2.formModel.transactor || "byDeptField" === n2.formModel.transactor ? (r.openBlock(), r.createBlock(c2, { key: 0, prop: "selectedField", rules: [{ required: true, message: e2.$t("workflowEditor.process.fieldName") + e2.$t("workflowEditor.common.canNotBeEmpty"), trigger: "focus" }], label: e2.$t("workflowEditor.process.fieldName"), "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(m2, { value: i2.formatLabel(n2.formModel.selectedField), onClick: t2[2] || (t2[2] = (e3) => n2.showFormFields = true) }, null, 8, ["value"]), n2.showFormFields ? (r.openBlock(), r.createBlock(u2, { key: 0, onClose: i2.setField }, null, 8, ["onClose"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["rules", "label"])) : r.createCommentVNode("", true), "byCondition" === n2.formModel.transactor || "byField" === n2.formModel.transactor || "byDeptField" === n2.formModel.transactor ? (r.openBlock(), r.createElementBlock("div", rl, [r.createVNode(c2, { label: e2.$t("workflowEditor.process.additionalConditions") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: n2.formModel.additionalCondition.onlyInCreatorDepartment, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.formModel.additionalCondition.onlyInCreatorDepartment = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.handlingYyThePersonnelOfTheDepartmentOfTheInitiator")), 1)]), _: 1 }, 8, ["modelValue"]), r.createVNode(p2, { modelValue: n2.formModel.additionalCondition.withCreatorDepartment, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.formModel.additionalCondition.withCreatorDepartment = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling")), 1)]), _: 1 }, 8, ["modelValue"]), r.createVNode(p2, { modelValue: n2.formModel.additionalCondition.selectOneFromMultiple, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.formModel.additionalCondition.selectOneFromMultiple = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.selectSpecificHandler")), 1)]), _: 1 }, 8, ["modelValue"]), r.createVNode(p2, { modelValue: n2.formModel.additionalCondition.selectOneFromDept, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.formModel.additionalCondition.selectOneFromDept = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.selectOneFromDept")), 1)]), _: 1 }, 8, ["modelValue"]), o2.isSubprocess ? (r.openBlock(), r.createBlock(p2, { key: 0, modelValue: n2.formModel.additionalCondition.generateOneInstanceFromDept, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => n2.formModel.additionalCondition.generateOneInstanceFromDept = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.generateOneInstanceFromDept")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.isCountersign ? (r.openBlock(), r.createBlock(p2, { key: 1, modelValue: n2.formModel.additionalCondition.activateOneVoteVeto, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => n2.formModel.additionalCondition.activateOneVoteVeto = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.activateOneVoteVeto")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), n2.formModel.additionalCondition.selectOneFromMultiple ? (r.openBlock(), r.createElementBlock("div", nl, [r.createVNode(c2, { label: e2.$t("workflowEditor.process.selectionMethod") }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.formModel.additionalCondition.selectType, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => n2.formModel.additionalCondition.selectType = e3) }, { default: r.withCtx(() => [r.createVNode(a2, { label: "customType" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.manualSelection")), 1)]), _: 1 }), r.createVNode(a2, { label: "autoType" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.autoSelect")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(c2, { prop: "additionalCondition.selectUrl", label: e2.$t("workflowEditor.process.callbackURL"), rules: [{ required: true, message: this.$t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }] }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: n2.formModel.additionalCondition.selectUrl, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => n2.formModel.additionalCondition.selectUrl = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"]), [[r.vShow, "autoType" === n2.formModel.additionalCondition.selectType]])])) : r.createCommentVNode("", true)])) : r.createCommentVNode("", true), "HumanTask" === o2.usedIn && "${previousTransactorAssignment}" === n2.formModel.transactor ? (r.openBlock(), r.createBlock(c2, { key: 2, prop: "url", rules: [{ required: true, message: this.$t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }], label: e2.$t("workflowEditor.process.selectURL"), "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: n2.formModel.url, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => n2.formModel.url = e3), modelModifiers: { trim: true }, onChange: i2.handleUrlChange }, null, 8, ["modelValue", "onChange"])]), _: 1 }, 8, ["rules", "label"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
1646
|
+
}]]), al = { "${currentTime}": h().t("workflowEditor.process.handlingTimeOfThisLink"), "${currentTransactorId}": h().t("workflowEditor.process.handlerIDOfThisLink"), "${currentTransactorMainDepartmentId}": h().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"), "${currentTransactorDirectSuperiorId}": h().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorMainDepartmentId}": h().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"), "${currentTransactor}": h().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"), "${currentTransactorName }": h().t("workflowEditor.process.NameOfCurrentHandler"), "${currentTransactorDepartment }": h().t("workflowEditor.process.CurrentHandlerDepartment"), "${currentTransactorDepartmentId}": h().t("workflowEditor.process.CurrentHandlerDepartmentID"), "${currentTransactorMainDepartment}": h().t("workflowEditor.process.CurrentManagersPrincipalDepartment"), "${currentTransactorSuperiorDepartmentId}": h().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"), "${currentTransactorSuperiorDepartment}": h().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"), "${currentTransactorUpstageDepartment}": h().t("workflowEditor.process.TopDepartmentOfCurrentHandler"), "${currentTransactorUpstageDepartmentId}": h().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"), "${currentTransactorRole}": h().t("workflowEditor.process.CurrentHandlerRole"), "${currentTransactorRoleId}": h().t("workflowEditor.process.CurrentHandlerRoleID"), "${currentTransactorWorkGroup}": h().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorWorkGroupId}": h().t("workflowEditor.process.CurrentHandlerWorkingGroupID"), "${currentTransactorDirectSuperior}": h().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorName}": h().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": h().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorDepartmentId}": h().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"), "${currentTransactorDirectSuperiorMainDepartment}": h().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorRole}": h().t("workflowEditor.process.currentManagersDirectSuperiorRole"), "${currentTransactorDirectSuperiorRoleId}": h().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"), "${currentTransactorDirectSuperiorWorkGroup}": h().t("workflowEditor.process.currentManagersDirectSuperiorWork"), "${currentTransactorDirectSuperiorWorkGroupId}": h().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"), "${currentOperation}": h().t("workflowEditor.process.operationsPerformedInThisPhase"), "${previousTransactorId}": h().t("workflowEditor.process.handlerIDOfThePreviousLink"), "${previousTransactor}": h().t("workflowEditor.process.lastLinkHandlerLogin"), "${previousTransactorName}": h().t("workflowEditor.process.nameOfHandlerInThePreviousLink") };
|
|
1647
|
+
const sl = M({ name: "AutoFilledFields", components: { FormFields: ct }, props: { modelValue: { type: Object, default: () => ({}) }, opinionSetting: { type: Object, default: () => ({}) } }, data() {
|
|
1648
|
+
const e2 = [];
|
|
1649
|
+
if (void 0 !== this.modelValue.field && null !== this.modelValue.field)
|
|
1650
|
+
if (Array.isArray(this.modelValue.field))
|
|
1651
|
+
this.modelValue.field.map((t3) => {
|
|
1652
|
+
const o2 = { ...t3 };
|
|
1653
|
+
"string" == typeof t3.value && -1 !== t3.value.indexOf("+") ? o2.value = t3.value.split("+") : (o2.value = [], o2.value.push(t3.value)), e2.push(o2);
|
|
1654
|
+
});
|
|
1655
|
+
else {
|
|
1656
|
+
const t3 = { ...this.modelValue.field };
|
|
1657
|
+
"string" == typeof this.modelValue.field.value && -1 !== this.modelValue.field.value.indexOf("+") ? t3.value = this.modelValue.field.value.split("+") : (t3.value = [], t3.value.push(this.modelValue.field.value)), e2.push(t3);
|
|
1658
|
+
}
|
|
1659
|
+
let t2 = {};
|
|
1660
|
+
return this.opinionSetting && this.opinionSetting.opinionSourceField && (t2 = { ...this.opinionSetting }), { tableData: e2, currentRow: null, standardValues: al, showFormFields: false, isSelectOpinionField: false, opinionAutoSetting: t2 };
|
|
1661
|
+
}, computed: { keys() {
|
|
1662
|
+
return Object.keys(this.standardValues);
|
|
1663
|
+
} }, watch: { opinionAutoSetting: { deep: true, handler(e2) {
|
|
1664
|
+
const t2 = { ...e2 };
|
|
1665
|
+
this.$emit("update:opinion-setting", t2);
|
|
1666
|
+
} } }, mounted() {
|
|
1667
|
+
this.tableData && this.tableData.length > 0 && this.setCurrentRow(this.tableData[0]), this.$watch("tableData", function() {
|
|
1668
|
+
const e2 = [];
|
|
1669
|
+
this.tableData.map((t2) => {
|
|
1670
|
+
if ("" !== t2.name && t2.value.length > 0) {
|
|
1671
|
+
const o2 = { ...t2 };
|
|
1672
|
+
o2.value = t2.value.join("+"), e2.push(o2);
|
|
1673
|
+
}
|
|
1674
|
+
}), this.$emit("update:modelValue", { field: e2 });
|
|
1675
|
+
}, { deep: true });
|
|
1676
|
+
}, created() {
|
|
1677
|
+
}, methods: { add() {
|
|
1678
|
+
for (let e3 = 0; e3 < this.tableData.length; e3++)
|
|
1679
|
+
if ("" === this.tableData[e3].name || "" === this.tableData[e3].value)
|
|
1680
|
+
return void this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty", { row: e3 + 1 }));
|
|
1681
|
+
const e2 = { name: "", value: [], separator: "", fillType: "cover", fillTime: "after" };
|
|
1682
|
+
this.tableData.push(e2), this.setCurrentRow(e2);
|
|
1683
|
+
}, remove() {
|
|
1684
|
+
if (null === this.currentRow)
|
|
1685
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
1686
|
+
let e2;
|
|
1687
|
+
for (let t2 = 0; t2 < this.tableData.length; t2++)
|
|
1688
|
+
if (this.tableData[t2].name === this.currentRow.name) {
|
|
1689
|
+
e2 = t2;
|
|
1690
|
+
break;
|
|
1691
|
+
}
|
|
1692
|
+
this.tableData.splice(e2, 1), e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.setCurrentRow(this.tableData[e2]);
|
|
1693
|
+
}, setCurrentRow(e2) {
|
|
1694
|
+
this.$refs.table.setCurrentRow(e2);
|
|
1695
|
+
}, handleCurrentChange(e2) {
|
|
1696
|
+
this.currentRow = e2;
|
|
1697
|
+
}, checkName(e2) {
|
|
1698
|
+
this.showFormFields || "" !== e2 || this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"));
|
|
1699
|
+
}, checkValue(e2) {
|
|
1700
|
+
0 === e2.length && this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"));
|
|
1701
|
+
}, setField(e2) {
|
|
1702
|
+
this.isSelectOpinionField ? this.opinionAutoSetting.opinionSourceField = e2 : void 0 !== e2 && (this.currentRow.name = e2), this.showFormFields = false, this.isSelectOpinionField = false;
|
|
1703
|
+
}, getFieldLabel: (e2) => mt(e2), selectOpinionField() {
|
|
1704
|
+
this.showFormFields = true, this.isSelectOpinionField = true;
|
|
1705
|
+
}, clearOpinionField() {
|
|
1706
|
+
delete this.opinionAutoSetting.opinionSourceField;
|
|
1707
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1708
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-option"), u2 = r.resolveComponent("el-select"), p2 = r.resolveComponent("el-table"), h2 = r.resolveComponent("el-card"), f2 = r.resolveComponent("el-form-item"), w2 = r.resolveComponent("form-fields");
|
|
1709
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(h2, { class: "box-card" }, { header: r.withCtx(() => [r.createTextVNode(" 表单自动填充字段设置 ")]), default: r.withCtx(() => [r.createVNode(s2, { style: { "margin-bottom": "5px" } }, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(p2, { ref: "table", data: n2.tableData, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "name", label: e2.$t("workflowEditor.common.name"), width: "150" }, { default: r.withCtx((o3) => [r.createVNode(c2, { value: i2.getFieldLabel(o3.row.name), placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), readonly: "", onClick: t2[0] || (t2[0] = (e3) => n2.showFormFields = true), onBlur: (e3) => i2.checkName(o3.row.name) }, null, 8, ["value", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "value", label: e2.$t("workflowEditor.common.fieldValue"), width: "200" }, { default: r.withCtx((t3) => [r.createVNode(u2, { modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, multiple: "", filterable: "", "allow-create": "", "default-first-option": "", placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onBlur: (e3) => i2.checkValue(t3.row.value) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.keys, (e3) => (r.openBlock(), r.createBlock(m2, { key: e3, label: n2.standardValues[e3], value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "separator", label: e2.$t("workflowEditor.common.separator") }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.separator, "onUpdate:modelValue": (t3) => e3.row.separator = t3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "fillType", label: e2.$t("workflowEditor.common.fillInMethod") }, { default: r.withCtx((t3) => [r.createVNode(u2, { modelValue: t3.row.fillType, "onUpdate:modelValue": (e3) => t3.row.fillType = e3 }, { default: r.withCtx(() => [r.createVNode(m2, { label: e2.$t("workflowEditor.common.cover"), value: "cover" }, null, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.append"), value: "append" }, null, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.insertToFront"), value: "prepend" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "fillTime", label: e2.$t("workflowEditor.common.fillInTime") }, { default: r.withCtx((t3) => [r.createVNode(u2, { modelValue: t3.row.fillTime, "onUpdate:modelValue": (e3) => t3.row.fillTime = e3 }, { default: r.withCtx(() => [r.createVNode(m2, { label: e2.$t("workflowEditor.common.fillInBeforeHandling"), value: "before" }, null, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.fillInAfterHandling"), value: "after" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), r.createVNode(h2, { class: "box-card", style: { "margin-top": "10px" } }, { header: r.withCtx(() => [r.createTextVNode(" 办理意见 ")]), default: r.withCtx(() => [r.createVNode(f2, { label: "意见来源字段", "label-width": "100" }, { default: r.withCtx(() => [r.createVNode(c2, { value: i2.getFieldLabel(n2.opinionAutoSetting.opinionSourceField), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), readonly: "", clearable: true, onClick: i2.selectOpinionField }, { append: r.withCtx(() => [r.createVNode(a2, { icon: "Delete", onClick: i2.clearOpinionField }, null, 8, ["onClick"])]), _: 1 }, 8, ["value", "placeholder", "onClick"])]), _: 1 })]), _: 1 }), n2.showFormFields ? (r.openBlock(), r.createBlock(w2, { key: 0, onClose: i2.setField }, null, 8, ["onClose"])) : r.createCommentVNode("", true)]);
|
|
1710
|
+
}]]);
|
|
1711
|
+
const dl = M({ name: "Variables", props: { modelValue: { type: Object, default: null } }, data() {
|
|
1712
|
+
let e2 = [];
|
|
1713
|
+
return this.modelValue && (Array.isArray(this.modelValue.variable) ? e2 = this.modelValue.variable : this.modelValue.variable && e2.push(this.modelValue.variable)), { variables: e2, currentRow: null };
|
|
1714
|
+
}, watch: {}, mounted() {
|
|
1715
|
+
this.variables.length > 0 && this.setCurrentRow(this.variables[0]), this.$watch("variables", function() {
|
|
1716
|
+
const e2 = this.variables.filter((e3) => "" !== e3.name && "" !== e3.value);
|
|
1717
|
+
this.$emit("update:modelValue", { variable: e2 });
|
|
1718
|
+
}, { deep: true });
|
|
1719
|
+
}, methods: { add() {
|
|
1720
|
+
for (let e3 = 0; e3 < this.variables.length; e3++)
|
|
1721
|
+
if ("" === this.variables[e3].name || "" === this.variables[e3].value)
|
|
1722
|
+
return void this.$alert(this.$t("workflowEditorMessage.variableNameOrValueOnLineCannotBeEmpty", { row: e3 + 1 }));
|
|
1723
|
+
const e2 = { name: "", value: "" };
|
|
1724
|
+
this.variables.push(e2), this.setCurrentRow(e2);
|
|
1725
|
+
}, remove() {
|
|
1726
|
+
if (null === this.currentRow)
|
|
1727
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
1728
|
+
let e2;
|
|
1729
|
+
for (let t2 = 0; t2 < this.variables.length; t2++)
|
|
1730
|
+
if (this.variables[t2].name === this.currentRow.name) {
|
|
1731
|
+
e2 = t2;
|
|
1732
|
+
break;
|
|
1733
|
+
}
|
|
1734
|
+
this.variables.splice(e2, 1), e2 = e2 <= this.variables.length - 1 ? e2 : this.variables.length - 1, this.setCurrentRow(this.variables[e2]);
|
|
1735
|
+
}, setCurrentRow(e2) {
|
|
1736
|
+
this.$refs.table.setCurrentRow(e2);
|
|
1737
|
+
}, handleCurrentChange(e2) {
|
|
1738
|
+
this.currentRow = e2;
|
|
1739
|
+
}, checkName(e2) {
|
|
1740
|
+
"" === e2 && this.$alert(this.$t("workflowEditorMessage.variableNameCannotBeEmpty"));
|
|
1741
|
+
}, checkValue(e2) {
|
|
1742
|
+
"" === e2 && this.$alert(this.$t("workflowEditorMessage.variableValueCannotBeEmpty"));
|
|
1743
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1744
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-table");
|
|
1745
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(m2, { ref: "table", data: n2.variables, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "name", label: e2.$t("workflowEditor.common.variableName") }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.name, "onUpdate:modelValue": (e3) => t3.row.name = e3, modelModifiers: { trim: true }, placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), onBlur: (e3) => i2.checkName(t3.row.name) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "value", label: e2.$t("workflowEditor.common.variableValue") }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true }, placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), onBlur: (e3) => i2.checkValue(t3.row.value) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]);
|
|
1746
|
+
}]]), cl = { key: 0 };
|
|
1747
|
+
const ml = M({ name: "Events", props: { modelValue: { type: Object, default: null } }, data() {
|
|
1748
|
+
const e2 = { beforeSubmitEnabled: false, beforeSubmit: {} };
|
|
1749
|
+
return this.modelValue.beforeSubmit && (e2.beforeSubmitEnabled = true, e2.beforeSubmit = { ...this.modelValue.beforeSubmit }), e2.afterComplete = this.modelValue.afterComplete, { formModel: e2 };
|
|
1750
|
+
}, mounted() {
|
|
1751
|
+
this.$watch("formModel", function(e2, t2) {
|
|
1752
|
+
const o2 = {};
|
|
1753
|
+
this.formModel.beforeSubmitEnabled && (o2.beforeSubmit = { ...this.formModel.beforeSubmit }), o2.afterComplete = this.formModel.afterComplete, this.$emit("update:modelValue", o2);
|
|
1754
|
+
}, { deep: true });
|
|
1755
|
+
} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1756
|
+
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-input"), c2 = r.resolveComponent("el-form");
|
|
1757
|
+
return r.openBlock(), r.createBlock(c2, { model: n2.formModel, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.beforeSubmission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.beforeSubmitEnabled, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.beforeSubmitEnabled = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n2.formModel.beforeSubmitEnabled ? (r.openBlock(), r.createElementBlock("div", cl, [r.createVNode(s2, { label: e2.$t("workflowEditor.task.executionURL") }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: n2.formModel.beforeSubmit.url, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.beforeSubmit.url = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.errorMessage") }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: n2.formModel.beforeSubmit.errorMessage, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.formModel.beforeSubmit.errorMessage = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])])) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.afterSubmission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.afterComplete, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.formModel.afterComplete = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1758
|
+
}]]);
|
|
1759
|
+
const ul = M({ name: "CommonNoticeTool", props: { label: { type: String, default: null }, modelValue: { type: String, default: null }, customMsg: { type: String, default: null } }, data() {
|
|
1760
|
+
let e2 = [];
|
|
1761
|
+
this.modelValue && "" !== this.modelValue && null !== this.modelValue && (e2 = this.modelValue.split(","));
|
|
1762
|
+
let t2 = "";
|
|
1763
|
+
return this.customMsg && "" !== this.customMsg && null !== this.customMsg && (t2 = this.customMsg), { tools: e2, myCustomMsg: t2 };
|
|
1764
|
+
}, watch: { tools(e2) {
|
|
1765
|
+
this.$emit("update:modelValue", this.tools.join(","));
|
|
1766
|
+
}, myCustomMsg(e2) {
|
|
1767
|
+
this.$emit("input-msg", this.myCustomMsg);
|
|
1768
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1769
|
+
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-checkbox-group"), d2 = r.resolveComponent("el-form-item"), c2 = r.resolveComponent("el-input");
|
|
1770
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(d2, { label: o2.label }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.tools, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.tools = e3) }, { default: r.withCtx(() => [r.createVNode(a2, { label: "mail" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.mail")), 1)]), _: 1 }), r.createVNode(a2, { label: "DINGDING" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.dingding")), 1)]), _: 1 }), r.createVNode(a2, { label: "QIWEI" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.qiwei")), 1)]), _: 1 }), r.createVNode(a2, { label: "FEISHU" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.feishu")), 1)]), _: 1 }), r.createVNode(a2, { label: "custom" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.custom")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n2.tools.indexOf("custom") >= 0 ? (r.openBlock(), r.createBlock(d2, { key: 0, "label-width": "110", label: e2.$t("workflowEditor.common.customMsg") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.myCustomMsg, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.myCustomMsg = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true)]);
|
|
1771
|
+
}]]), pl = { name: "Reminder", components: { CommonNoticeTool: ul, CommonUserCondition: Oo, SelectMailTemplates: to }, props: { modelValue: { type: [Object, String], default: null }, isProcess: { type: Boolean, default: false } }, data() {
|
|
1772
|
+
let e2 = false, t2 = false, o2 = { dueDate: 1, dueTimeUnit: "day", repeat: 1, containTransferUser: false, containNoticeUser: false, remindType: "mail", timeUnit: "day", remindTimes: 0, noticeType: "", noticeUserCondition: "", transferUserCondition: "" };
|
|
1773
|
+
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (o2 = this.modelValue, e2 = true, this.modelValue.remindTimes > 0 && (t2 = true), o2.dueTimeUnit || (o2.dueTimeUnit = "day")), { showReminder: e2, showNotice: t2, model: o2, showMailTemplateFlag: false, baseURL: "", optionUrl: "", multiSelectData: [], options: { showColumns: "code,name" } };
|
|
1774
|
+
}, watch: { showReminder(e2) {
|
|
1775
|
+
e2 ? this.$emit("update:modelValue", this.model) : this.$emit("update:modelValue", null);
|
|
1776
|
+
}, showNotice(e2) {
|
|
1777
|
+
e2 ? this.$emit("update:modelValue", this.model) : this.$emit("update:modelValue", { remindType: this.model.remindType, dueDate: this.model.dueDate, dueTimeUnit: this.model.dueTimeUnit, repeat: this.model.repeat, timeUnit: this.model.timeUnit, remindTimes: 0, noticeType: "", noticeUserCondition: "", containTransferUser: false, transferUserCondition: "", containNoticeUser: false });
|
|
1778
|
+
} }, created() {
|
|
1779
|
+
this.baseURL = window.$vueApp.config.globalProperties.baseURL, this.optionUrl = "/bs/email-templates/list/0", this.$watch("model", function(e2, t2) {
|
|
1780
|
+
let o2 = null;
|
|
1781
|
+
this.showReminder && (o2 = this.model, o2.dueTimeUnit || (o2.dueTimeUnit = "day")), this.$emit("update:modelValue", o2);
|
|
1782
|
+
}, { deep: true });
|
|
1783
|
+
}, methods: { setMailTemplateCode(e2) {
|
|
1784
|
+
this.model.mailTemplateCode = e2;
|
|
1785
|
+
}, setMailPointTemplateCode(e2) {
|
|
1786
|
+
this.model.mailPointTemplateCode = e2;
|
|
1787
|
+
}, selectData(e2, t2) {
|
|
1788
|
+
this.multiSelectData = e2;
|
|
1789
|
+
}, setReminderCustomMsg(e2) {
|
|
1790
|
+
this.model.reminderCustomMsg = e2;
|
|
1791
|
+
}, setNoticeCustomMsg(e2) {
|
|
1792
|
+
this.model.noticeCustomMsg = e2;
|
|
1793
|
+
} } }, hl = { key: 0 }, fl = { key: 2 };
|
|
1794
|
+
const wl = { name: "NoticeReminder", components: { Reminder: M(pl, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1795
|
+
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("common-notice-tool"), c2 = r.resolveComponent("select-mail-templates"), m2 = r.resolveComponent("el-input-number"), u2 = r.resolveComponent("el-option"), p2 = r.resolveComponent("el-select"), h2 = r.resolveComponent("el-radio"), f2 = r.resolveComponent("el-checkbox"), w2 = r.resolveComponent("common-user-condition"), g2 = r.resolveComponent("el-form");
|
|
1796
|
+
return r.openBlock(), r.createBlock(g2, { model: n2.model, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.needToBeUrged") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.showReminder, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.showReminder = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n2.showReminder ? (r.openBlock(), r.createElementBlock("div", hl, [r.createVNode(d2, { modelValue: n2.model.remindType, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.model.remindType = e3), label: e2.$t("workflowEditor.task.urgingMethod"), "custom-msg": n2.model.reminderCustomMsg, onInputMsg: i2.setReminderCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), n2.model.remindType && n2.model.remindType.length > 0 ? (r.openBlock(), r.createBlock(s2, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.model.mailTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.model.mailTemplateCode = e3), onSetValue: i2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), n2.model.remindType && n2.model.remindType.length > 0 && -1 !== n2.model.remindType.indexOf("mail") ? (r.openBlock(), r.createBlock(s2, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.model.mailPointTemplateCode, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.model.mailPointTemplateCode = e3), onSetValue: i2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.timeLimitForHandling"), size: "small" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: n2.model.dueDate, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.model.dueDate = e3), "controls-position": "right", min: 1, max: 30, style: { width: "90px" } }, null, 8, ["modelValue"]), r.createVNode(p2, { modelValue: n2.model.dueTimeUnit, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.model.dueTimeUnit = e3), style: { width: "70px" } }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.task.day"), value: "day" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.task.hour"), value: "hour" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue"]), r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.task.urgingInterval")), 1), r.createVNode(m2, { modelValue: n2.model.repeat, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.model.repeat = e3), "controls-position": "right", min: 1, max: 30, style: { width: "90px" } }, null, 8, ["modelValue"]), r.createVNode(p2, { modelValue: n2.model.timeUnit, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => n2.model.timeUnit = e3), style: { width: "70px" } }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.task.day"), value: "day" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.task.hour"), value: "hour" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: n2.showNotice, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => n2.showNotice = e3), label: false }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.alwaysUrging")), 1)]), _: 1 }, 8, ["modelValue"]), r.createVNode(h2, { modelValue: n2.showNotice, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => n2.showNotice = e3), label: true }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.limitedUrging")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n2.showNotice ? (r.openBlock(), r.createElementBlock("div", fl, [r.createVNode(s2, { label: e2.$t("workflowEditor.task.timesOfUrging"), size: "small" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: n2.model.remindTimes, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => n2.model.remindTimes = e3), "controls-position": "right", min: 1, max: 99, style: { width: "90px" } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { modelValue: n2.model.noticeType, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => n2.model.noticeType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": n2.model.noticeCustomMsg, onInputMsg: i2.setNoticeCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), o2.isProcess ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(s2, { key: 0, label: e2.$t("workflowEditor.common.notifyPersonnel"), style: { "margin-bottom": "5px" } }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: n2.model.containTransferUser, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => n2.model.containTransferUser = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.includingHandoverPersonnel")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])), r.createVNode(s2, { "label-width": "0" }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: n2.model.noticeUserCondition, "onUpdate:modelValue": t2[13] || (t2[13] = (e3) => n2.model.noticeUserCondition = e3) }, null, 8, ["modelValue"])]), _: 1 }), o2.isProcess ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(s2, { key: 1, label: e2.$t("workflowEditor.task.handoverPersonnel"), style: { "margin-bottom": "5px" } }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: n2.model.containNoticeUser, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => n2.model.containNoticeUser = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.includeNotifyPeople")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])), o2.isProcess ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(s2, { key: 2, "label-width": "0" }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: n2.model.transferUserCondition, "onUpdate:modelValue": t2[15] || (t2[15] = (e3) => n2.model.transferUserCondition = e3) }, null, 8, ["modelValue"])]), _: 1 }))])) : r.createCommentVNode("", true)])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
1797
|
+
}], ["__scopeId", "data-v-4e29ea06"]]), CommonNoticeTool: ul, SelectMailTemplates: to }, props: { reminderValue: { type: [Object, String], default: null }, taskNoticeValue: { type: Object, default: null }, isProcess: { type: Boolean, default: false } }, data() {
|
|
1798
|
+
let e2 = null;
|
|
1799
|
+
null !== this.reminderValue && void 0 !== this.reminderValue && "" !== this.reminderValue && (e2 = this.reminderValue);
|
|
1800
|
+
let t2 = {};
|
|
1801
|
+
return null !== this.taskNoticeValue && void 0 !== this.taskNoticeValue && "" !== this.taskNoticeValue && (t2 = this.taskNoticeValue), { reminderObj: e2, noticeObj: t2 };
|
|
1802
|
+
}, watch: { reminderObj(e2) {
|
|
1803
|
+
e2 ? this.$emit("update:reminder-value", e2) : this.$emit("update:reminder-value", null);
|
|
1804
|
+
} }, methods: { setMailTemplateCode(e2) {
|
|
1805
|
+
this.noticeObj.mailPointTemplateCode = e2;
|
|
1806
|
+
}, setNoticeCommonTemplateCode(e2) {
|
|
1807
|
+
this.noticeObj.mailTemplateCode = e2;
|
|
1808
|
+
}, setCustomMsg(e2) {
|
|
1809
|
+
this.noticeObj.customMsg = e2;
|
|
1810
|
+
} } }, gl = { class: "clearfix" }, Cl = { class: "sub-li" }, bl = { class: "sub-li" }, kl = { class: "clearfix" }, Vl = { class: "sub-li" }, yl = { class: "sub-li" }, vl = { class: "sub-li" }, Tl = { class: "sub-li" };
|
|
1811
|
+
const Nl = M(wl, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1812
|
+
const a2 = r.resolveComponent("Warning"), s2 = r.resolveComponent("el-icon"), d2 = r.resolveComponent("el-tooltip"), c2 = r.resolveComponent("common-notice-tool"), m2 = r.resolveComponent("select-mail-templates"), u2 = r.resolveComponent("el-form-item"), p2 = r.resolveComponent("el-form"), h2 = r.resolveComponent("el-card"), f2 = r.resolveComponent("reminder");
|
|
1813
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(h2, { class: "box-card" }, { header: r.withCtx(() => [r.createElementVNode("div", gl, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.common.taskNotice")), 1), r.createVNode(d2, null, { content: r.withCtx(() => [r.createElementVNode("ul", null, [r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), r.createElementVNode("li", Cl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r.createElementVNode("li", bl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1)])]), default: r.withCtx(() => [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })]), _: 1 })])]), default: r.withCtx(() => [r.createVNode(p2, { model: n2.noticeObj, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.noticeObj.informType, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.noticeObj.informType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": n2.noticeObj.customMsg, onInputMsg: i2.setCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), n2.noticeObj.informType && n2.noticeObj.informType.length > 0 ? (r.openBlock(), r.createBlock(u2, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: n2.noticeObj.mailTemplateCode, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.noticeObj.mailTemplateCode = e3), onSetValue: i2.setNoticeCommonTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), n2.noticeObj.informType && n2.noticeObj.informType.length > 0 && n2.noticeObj.informType.indexOf("mail") >= 0 ? (r.openBlock(), r.createBlock(u2, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: n2.noticeObj.mailPointTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.noticeObj.mailPointTemplateCode = e3), onSetValue: i2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"])]), _: 1 }), r.createVNode(h2, { class: "box-card", style: { "margin-top": "10px" } }, { header: r.withCtx(() => [r.createElementVNode("div", kl, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.common.reminderNotice")), 1), r.createVNode(d2, null, { content: r.withCtx(() => [r.createElementVNode("ul", null, [r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), r.createElementVNode("li", Vl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r.createElementVNode("li", yl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindMsg")), 1), r.createElementVNode("li", vl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindImmediately")), 1), r.createElementVNode("li", Tl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindHistory")), 1)])]), default: r.withCtx(() => [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })]), _: 1 })])]), default: r.withCtx(() => [r.createVNode(f2, { modelValue: n2.reminderObj, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.reminderObj = e3), isProcess: o2.isProcess }, null, 8, ["modelValue", "isProcess"])]), _: 1 })]);
|
|
1814
|
+
}], ["__scopeId", "data-v-39fac73c"]]);
|
|
1815
|
+
const xl = M({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: ro, TransactorSettings: il, PermissionSettings: tl, AutoFilledFields: sl, Events: ml, Variables: dl, NoticeReminder: Nl }, props: { model: { type: Object, default: null } }, data() {
|
|
1816
|
+
return this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
1817
|
+
}, computed: { formModel() {
|
|
1818
|
+
return this.model.ref;
|
|
1819
|
+
} }, mounted() {
|
|
1820
|
+
this.$watch("model.ref.attr.id", function(e2, t2) {
|
|
1821
|
+
this.model.id = e2;
|
|
1822
|
+
}), this.$watch("model.ref.attr.name", function(e2, t2) {
|
|
1823
|
+
this.model.name = e2;
|
|
1824
|
+
});
|
|
1825
|
+
}, methods: { handleClick(e2, t2) {
|
|
1826
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1827
|
+
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("transactor-settings"), c2 = r.resolveComponent("permission-settings"), m2 = r.resolveComponent("auto-filled-fields"), u2 = r.resolveComponent("notice-reminder"), p2 = r.resolveComponent("events"), h2 = r.resolveComponent("variables"), f2 = r.resolveComponent("el-tabs"), w2 = r.resolveComponent("el-dialog");
|
|
1828
|
+
return r.openBlock(), r.createBlock(w2, { "model-value": "", top: "10vh", title: e2.$t("workflowEditor.task.linkAttribute"), center: true, "append-to-body": "", class: "properties-editor", onOpen: t2[9] || (t2[9] = (t3) => e2.$emit("open")), onOpend: t2[10] || (t2[10] = (t3) => e2.$emit("opend")), onClose: t2[11] || (t2[11] = (t3) => e2.$emit("close")), onClosed: t2[12] || (t2[12] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: n2.activeTab, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => n2.activeTab = e3), type: "border-card", onTabClick: i2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, "onUpdate:id": t2[0] || (t2[0] = (e3) => o2.model.ref.attr.id = e3), name: o2.model.ref.attr.name, "onUpdate:name": t2[1] || (t2[1] = (e3) => o2.model.ref.attr.name = e3), model: o2.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.settingOfHandler"), name: "transactors" }, { default: r.withCtx(() => [r.createVNode(d2, { model: o2.model.ref.transactorSettings, "basic-properties": o2.model.ref.basicProperties }, null, 8, ["model", "basic-properties"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.permissionSettings"), name: "permissions" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.ref.permissionSettings, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.ref.permissionSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.autoFillInFieldSettings"), name: "autoFilledFields" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: o2.model.ref.autoFilledFields, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.ref.autoFilledFields = e3), "opinion-setting": o2.model.ref.opinionSetting, "onUpdate:opinionSetting": t2[4] || (t2[4] = (e3) => o2.model.ref.opinionSetting = e3) }, null, 8, ["modelValue", "opinion-setting"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.reminderSettings"), name: "reminders" }, { default: r.withCtx(() => [r.createVNode(u2, { "reminder-value": o2.model.ref.reminder, "onUpdate:reminderValue": t2[5] || (t2[5] = (e3) => o2.model.ref.reminder = e3), "task-notice-value": o2.model.ref.taskNotice }, null, 8, ["reminder-value", "task-notice-value"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.eventProcessing"), name: "events" }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.ref.events, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => o2.model.ref.events = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.linkVariable"), name: "variables" }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: o2.model.ref.variables, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => o2.model.ref.variables = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
1829
|
+
}], ["__scopeId", "data-v-1651d82a"]]);
|
|
1830
|
+
function El() {
|
|
1831
|
+
return window.$store;
|
|
1832
|
+
}
|
|
1833
|
+
function Sl() {
|
|
1834
|
+
return window.$http;
|
|
1835
|
+
}
|
|
1836
|
+
const Ml = { fetchFormFields: (e2, t2, o2, l2) => new Promise((r2, n2) => {
|
|
1837
|
+
let i2;
|
|
1838
|
+
e2 ? i2 = Sl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields?formCode=" + e2 + "&formVersion=" + t2 + "&publishVersion=" + l2) : o2 && (i2 = Sl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/table-fields?tableName=" + o2 + "&publishVersion=" + l2)), i2 ? i2.then((t3) => {
|
|
1839
|
+
const o3 = t3.formFields;
|
|
1840
|
+
t3.subFormFields, El().commit("wfEditor/setFormCode", e2), El().commit("wfEditor/setTableCode", t3.tableCode), El().commit("wfEditor/setFormFields", o3), El().commit("wfEditor/setFormFieldsWithSub", o3);
|
|
1841
|
+
const l3 = t3.subtableConditionMap;
|
|
1842
|
+
El().commit("wfEditor/setSubtableConditionMap", l3);
|
|
1843
|
+
const n3 = t3.systemPropSettingList;
|
|
1844
|
+
El().commit("wfEditor/setPropSettingKeyList", n3), r2(t3);
|
|
1845
|
+
}) : r2({});
|
|
1846
|
+
}), fetchSubprocessFormFields: (e2, t2) => Sl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields-with-processes?processCode=" + e2 + "&processVersion=" + t2) }, Dl = { name: "BasicProperties", components: { i18nInput: Zt }, props: { model: { type: Object, default: null }, name: { type: String, default: null }, code: { type: String, default: null } }, data() {
|
|
1847
|
+
return { formModel: { name: this.name, code: this.code, model: this.model }, allForms: [], allProcessTypes: [], allSystems: [], allBranches: [], nameError: null, codeError: null, systemError: null, adminError: null, formError: null, requiredRule: { required: true, message: h().t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }, isSelectAdmin: false, selectedForm: [], systemPublishVersion: null, sysCode: null, systems: [], isShowFormAndSystem: true, tableName: null };
|
|
1848
|
+
}, computed: { ...t.mapGetters("wfEditor", ["systemVersion", "systemCode", "tableCode", "isCreateDefinition", "isHandleCreate"]) }, created() {
|
|
1849
|
+
this.getAdminNameWhenUpdate(), this.listAllProcessTypes(), this.listAllSystems(), this.listAllBranches(), this.model.creator || (this.model.creator = o.getUsername()), this.setProcessCode(this.formModel.code), this.model.systemCode ? this.setSystemCode(this.model.systemCode) : this.model.systemCode = this.systemCode, this.systemPublishVersion = parseInt(o.authApi.getSessionCache("wf_editor_systemVersion")), this.changeSystem(this.systemCode, this.systemPublishVersion), this.listAllForms(this.systemCode, this.systemPublishVersion), this.tableName = this.tableCode, this.isCreateDefinition, this.isHandleCreate, this.isHandleCreate && "true" === this.isHandleCreate || this.isCreateDefinition && "true" === this.isCreateDefinition ? this.isShowFormAndSystem = true : this.isShowFormAndSystem = false;
|
|
1850
|
+
}, mounted() {
|
|
1851
|
+
this.$watch("formModel.name", function(e2, t2) {
|
|
1852
|
+
this.$emit("update:name", e2);
|
|
1853
|
+
}), this.$watch("formModel.code", function(e2, t2) {
|
|
1854
|
+
this.$emit("update:code", e2), this.setProcessCode(e2);
|
|
1855
|
+
}), this.$watch("model.systemCode", function(e2, t2) {
|
|
1856
|
+
this.setSystemCode(e2);
|
|
1857
|
+
}), this.$watch("systemPublishVersion", function(e2, t2) {
|
|
1858
|
+
this.setSystemVersion(e2);
|
|
1859
|
+
});
|
|
1860
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setFormFields", "setSystemCode", "setSystemVersion", "setProcessCode"]), handleChange(e2) {
|
|
1861
|
+
const t2 = e2[1];
|
|
1862
|
+
this.model.formCode = t2.substring(t2.indexOf("/") + 1, t2.lastIndexOf("/")), this.model.formVersion = t2.substring(t2.lastIndexOf("/") + 1), Ml.fetchFormFields(this.model.formCode, this.model.formVersion, null, this.systemPublishVersion).then((e3) => {
|
|
1863
|
+
this.tableName = e3.tableCode;
|
|
1864
|
+
});
|
|
1865
|
+
}, selectAdmin() {
|
|
1866
|
+
this.isSelectAdmin = true;
|
|
1867
|
+
}, addAdmin(e2) {
|
|
1868
|
+
if (e2) {
|
|
1869
|
+
e2.containBranch = true;
|
|
1870
|
+
let t2 = e2.loginName;
|
|
1871
|
+
const o2 = e2.user;
|
|
1872
|
+
e2.containBranch && (t2 = o2.subCompanyCode ? e2.loginName + "~~" + o2.subCompanyCode : e2.loginName + "~~" + o2.tenantCode), this.model.admin = t2, this.formModel.adminName = e2.name;
|
|
1873
|
+
}
|
|
1874
|
+
this.isSelectAdmin = false;
|
|
1875
|
+
}, listAllForms(e2, t2) {
|
|
1876
|
+
this.$http.get(this.baseAPI + `/wf-editor/workflow-editors/forms?systemCode=${e2}&publishVersion=${t2}`).then((e3) => {
|
|
1877
|
+
const t3 = this.model.formCode + "/" + this.model.formVersion;
|
|
1878
|
+
this.setDefaultSelectedFormWhenUpdate(e3, t3), this.allForms = e3;
|
|
1879
|
+
});
|
|
1880
|
+
}, setDefaultSelectedFormWhenUpdate(e2, t2) {
|
|
1881
|
+
let o2, l2;
|
|
1882
|
+
for (var r2 = 0; r2 < e2.length; r2++) {
|
|
1883
|
+
const n2 = e2[r2].value, i2 = e2[r2].children.filter(this.filterForm(t2));
|
|
1884
|
+
if (i2.length > 0) {
|
|
1885
|
+
l2 = n2, o2 = i2[0];
|
|
1886
|
+
break;
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
if (o2) {
|
|
1890
|
+
const e3 = [];
|
|
1891
|
+
e3.push(l2 + ""), e3.push(l2 + "/" + t2), this.selectedForm = e3;
|
|
1892
|
+
}
|
|
1893
|
+
}, filterForm: (e2) => (t2) => {
|
|
1894
|
+
const o2 = t2.value;
|
|
1895
|
+
return o2.substring(o2.indexOf("/") + 1) === e2;
|
|
1896
|
+
}, listAllProcessTypes() {
|
|
1897
|
+
this.$http.get(this.baseAPI + "/api/workflow-types/all").then((e2) => {
|
|
1898
|
+
this.allProcessTypes = e2;
|
|
1899
|
+
});
|
|
1900
|
+
}, listAllSystems() {
|
|
1901
|
+
this.$http.get(this.baseAPI + "/api/all-enabled-systems").then((e2) => {
|
|
1902
|
+
this.allSystems = e2;
|
|
1903
|
+
});
|
|
1904
|
+
}, listAllBranches() {
|
|
1905
|
+
this.$http.get(this.baseAPI + "/api/branches/all").then((e2) => {
|
|
1906
|
+
this.allBranches = e2;
|
|
1907
|
+
});
|
|
1908
|
+
}, getAdminNameWhenUpdate() {
|
|
1909
|
+
this.model.admin && "" !== this.model.admin && this.$http.get(this.baseAPI + "/wf-editor/workflow-editors/admin-name-info?loginNameInfo=" + this.model.admin).then((e2) => {
|
|
1910
|
+
this.formModel.adminName = e2;
|
|
1911
|
+
});
|
|
1912
|
+
}, setI18nValue(e2) {
|
|
1913
|
+
this.model.i18nKey = e2;
|
|
1914
|
+
}, changeSystem(e2, t2) {
|
|
1915
|
+
this.systemPublishVersion = t2, this.allForms = [], e2 && this.$http.get(this.baseAPI + "/wf-editor/systems/getPublishVersionsByCode/" + e2).then((e3) => {
|
|
1916
|
+
this.systems = e3 || [];
|
|
1917
|
+
});
|
|
1918
|
+
}, changeVersion() {
|
|
1919
|
+
this.listAllForms(this.model.systemCode, this.systemPublishVersion);
|
|
1920
|
+
} } };
|
|
1921
|
+
const Fl = M(Dl, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1922
|
+
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("department-user-tree"), u2 = r.resolveComponent("el-option"), p2 = r.resolveComponent("el-select"), h2 = r.resolveComponent("el-cascader"), f2 = r.resolveComponent("el-row"), w2 = r.resolveComponent("el-form");
|
|
1923
|
+
return r.openBlock(), r.createBlock(w2, { model: n2.formModel, "label-width": "100px" }, { default: r.withCtx(() => [r.createVNode(f2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.processName"), prop: "name", rules: [n2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.name = e3), modelModifiers: { trim: true }, "i18n-key": o2.model.i18nKey ? o2.model.i18nKey : "processName", onSetI18n: i2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.processCode"), prop: "code", rules: [n2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.formModel.code, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.code = e3), modelModifiers: { trim: true } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.processAdministrator"), rules: [n2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.formModel.adminName, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.formModel.adminName = e3), readonly: "", "suffix-icon": "el-icon-search", onClick: i2.selectAdmin }, null, 8, ["modelValue", "onClick"]), n2.isSelectAdmin ? (r.openBlock(), r.createBlock(m2, { key: 0, width: "30%", multiple: false, onClose: i2.addAdmin }, null, 8, ["onClose"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label", "rules"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.creater") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.creator, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.creator = e3), readonly: "" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), n2.isShowFormAndSystem ? (r.openBlock(), r.createBlock(d2, { key: 0, span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.system"), prop: "model.systemCode", rules: [n2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.systemCode, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => o2.model.systemCode = e3), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onChange: t2[5] || (t2[5] = (e3) => i2.changeSystem(o2.model.systemCode, null)) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.allSystems, (e3) => (r.openBlock(), r.createBlock(u2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })) : r.createCommentVNode("", true), n2.isShowFormAndSystem ? (r.openBlock(), r.createBlock(d2, { key: 1, span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.systemVersion"), rules: [n2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: n2.systemPublishVersion, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.systemPublishVersion = e3), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onChange: i2.changeVersion }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.systems, (e3) => (r.openBlock(), r.createBlock(u2, { key: e3.publishVersion, label: e3.publishVersion, value: e3.publishVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "placeholder", "onChange"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })) : r.createCommentVNode("", true), n2.isShowFormAndSystem ? (r.openBlock(), r.createBlock(d2, { key: 2, span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.correspondingForm"), rules: [n2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: n2.selectedForm, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => n2.selectedForm = e3), "show-all-levels": false, options: n2.allForms, onChange: i2.handleChange }, null, 8, ["modelValue", "options", "onChange"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.tableCode") }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(n2.tableName), 1)]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.processType") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.processTypeCode, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => o2.model.processTypeCode = e3), placeholder: e2.$t("workflowEditorMessage.pleaseSelect") }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.allProcessTypes, (e3) => (r.openBlock(), r.createBlock(u2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.affiliatedBranch") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.branchCode, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => o2.model.branchCode = e3), clearable: "", placeholder: e2.$t("workflowEditorMessage.pleaseSelect") }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.allBranches, (e3, t3) => (r.openBlock(), r.createBlock(u2, { key: e3.code + "-" + t3, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.process.customCategory") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.customType, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => o2.model.customType = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1924
|
+
}]]);
|
|
1925
|
+
const $l = M({ name: "PermissionSettings", components: { UserSelection: el }, props: { modelValue: { type: Object, default: null } }, data: () => ({ showNotice: false }) }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1926
|
+
const a2 = r.resolveComponent("user-selection"), s2 = r.resolveComponent("el-form");
|
|
1927
|
+
return r.openBlock(), r.createBlock(s2, { model: o2.modelValue, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.modelValue.viewFlowHistory, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.modelValue.viewFlowHistory = e3), label: e2.$t("workflowEditor.process.ViewFlowHistoryPersonnel"), "label-width": "130px" }, null, 8, ["modelValue", "label"]), r.createVNode(a2, { modelValue: o2.modelValue.viewSubscribeResult, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.modelValue.viewSubscribeResult = e3), label: e2.$t("workflowEditor.process.ViewCountersignatureResultPersonnel"), "label-width": "130px" }, null, 8, ["modelValue", "label"]), r.createVNode(a2, { modelValue: o2.modelValue.viewVoteResult, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.modelValue.viewVoteResult = e3), label: e2.$t("workflowEditor.process.ViewVotingResultsBy"), "label-width": "130px" }, null, 8, ["modelValue", "label"])]), _: 1 }, 8, ["model"]);
|
|
1928
|
+
}]]), Pl = { props: { pageFormCode: { type: String, default: null } }, data: () => ({ baseURL: "", listURL: "", selection: [], dialogVisible: true }), computed: { ...t.mapGetters("wfEditor", ["systemVersion"]) }, watch: { conditionList: { handler(e2, t2) {
|
|
1929
|
+
this.judgeHeavyData = e2;
|
|
1930
|
+
} } }, created() {
|
|
1931
|
+
this.baseURL = window.$vueApp.config.globalProperties.baseURL, this.pageFormCode && (this.listURL = "/wf-editor/workflow-editors/modulePages/" + this.pageFormCode + "/" + parseInt(o.authApi.getSessionCache("wf_editor_systemVersion")));
|
|
1932
|
+
}, methods: { savePage() {
|
|
1933
|
+
if (this.selection && this.selection.length > 0)
|
|
1934
|
+
if (1 !== this.selection.length)
|
|
1935
|
+
this.$message({ showClose: true, type: "error", message: this.$t("message.pleaseSelectARecord") });
|
|
1936
|
+
else {
|
|
1937
|
+
const e2 = "page:" + this.selection[0].code;
|
|
1938
|
+
this.$emit("setPage", e2);
|
|
1939
|
+
}
|
|
1940
|
+
else
|
|
1941
|
+
this.$emit("setPage", "");
|
|
1942
|
+
}, select(e2, t2) {
|
|
1943
|
+
this.selection = e2;
|
|
1944
|
+
} } }, Bl = { style: { "overflow-y": "auto", "max-height": "500px" } }, Ol = { class: "operation-area" };
|
|
1945
|
+
const Il = M({ name: "ParameterSettings", components: { selectPage: M(Pl, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1946
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("super-grid"), d2 = r.resolveComponent("el-dialog");
|
|
1947
|
+
return r.openBlock(), r.createBlock(d2, { "show-close": true, "append-to-body": true, title: e2.$t("workflowEditorPublicModel.selectPage"), width: "60%", "model-value": "", onClose: i2.savePage }, { default: r.withCtx(() => [r.createElementVNode("div", Bl, [r.createElementVNode("div", Ol, [r.createVNode(a2, { size: "small", onClick: i2.savePage }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditorPublicModel.close")), 1)]), _: 1 }, 8, ["onClick"])]), r.createElementVNode("div", null, [r.createVNode(s2, { ref: "grid", url: n2.baseURL + n2.listURL, code: "MMS_MODULE_PAGE", onSelect: i2.select }, null, 8, ["url", "onSelect"])])])]), _: 1 }, 8, ["title", "onClose"]);
|
|
1948
|
+
}]]) }, props: { model: { type: Object, default: null } }, data: () => ({ selectPageFlag: false, pageFormCode: null }), computed: { ...t.mapGetters("wfEditor", ["formCode", "pageCode"]) }, created() {
|
|
1949
|
+
this.pageCode && (this.model.doTask.url = "page:" + this.pageCode);
|
|
1950
|
+
}, methods: { openSelectPage() {
|
|
1951
|
+
this.formCode && (this.pageFormCode = this.formCode), this.selectPageFlag = true;
|
|
1952
|
+
}, setPage(e2) {
|
|
1953
|
+
this.model.doTask.url = e2, this.selectPageFlag = false;
|
|
1954
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1955
|
+
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-card"), c2 = r.resolveComponent("select-page"), m2 = r.resolveComponent("el-form");
|
|
1956
|
+
return r.openBlock(), r.createBlock(m2, { model: o2.model, "label-width": "150px" }, { default: r.withCtx(() => [r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.processTaskParameterSettings")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.uRLForProcessingTask") }, { default: r.withCtx(() => [e2.pageCode ? (r.openBlock(), r.createBlock(a2, { key: 0, disabled: "", modelValue: o2.model.doTask.url, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.model.doTask.url = e3) }, null, 8, ["modelValue"])) : (r.openBlock(), r.createBlock(a2, { key: 1, modelValue: o2.model.doTask.url, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.doTask.url = e3) }, { suffix: r.withCtx(() => [r.createElementVNode("i", { class: "fa fa-search", onClick: t2[1] || (t2[1] = (...e3) => i2.openSelectPage && i2.openSelectPage(...e3)) })]), _: 1 }, 8, ["modelValue"]))]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parametersForReceivingTaskID") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.doTask.parameterName, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.doTask.parameterName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.viewFormParameterSettings")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.viewTheURLOfTheForm") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.viewForm.url, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => o2.model.viewForm.url = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parametersOfReceivingEntityID") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.viewForm.parameterName, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => o2.model.viewForm.parameterName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.emergencyTreatmentParameterSetting")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.uRLOfEmergencyHandling") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.handleEmergency.url, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => o2.model.handleEmergency.url = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parametersOfReceivingEntityID") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.handleEmergency.parameterName, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => o2.model.handleEmergency.parameterName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.initiateProcessParameterSettings")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.uRLOfTheInitiatingProcess") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.startProcess.url, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => o2.model.startProcess.url = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parametersForReceivingProcessName") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.startProcess.parameterName, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => o2.model.startProcess.parameterName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.customParameterValue") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.startProcess.parameterValue, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => o2.model.startProcess.parameterValue = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), n2.selectPageFlag ? (r.openBlock(), r.createBlock(c2, { key: 0, "page-form-code": n2.pageFormCode, onSetPage: i2.setPage }, null, 8, ["page-form-code", "onSetPage"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
1957
|
+
}]]);
|
|
1958
|
+
const _l = M({ name: "Events", props: { modelValue: { type: Object, default: null } }, data() {
|
|
1959
|
+
const e2 = [], t2 = this.modelValue.event;
|
|
1960
|
+
if (void 0 !== t2 && t2.length && t2.length > 0) {
|
|
1961
|
+
let o2 = [];
|
|
1962
|
+
o2 = "string" == typeof t2 ? t2.split(",") : this.modelValue.event, o2.map(function(t3) {
|
|
1963
|
+
e2.push(t3);
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
return { events: [{ name: "START_INSTANCE", label: h().t("workflowEditor.process.initiationProcess") }, { name: "DELETE_INSTANCE", label: h().t("workflowEditor.process.deleteProcess") }, { name: "CANCEL_INSTANCE", label: h().t("workflowEditor.process.cancelProcess") }, { name: "END_INSTANCE", label: h().t("workflowEditor.process.endProcess") }, { name: "STOP_INSTANCE", label: h().t("workflowEditor.process.pauseProcess") }, { name: "RESUME_INSTANCE", label: h().t("workflowEditor.process.continueTheProcess") }, { name: "JUMP_TACHE", label: h().t("workflowEditor.process.jumpLink") }, { name: "CHANGE_TRANSACTOR", label: h().t("workflowEditor.process.modificationHandler") }, { name: "ADD_TRANSACTOR", label: h().t("workflowEditor.process.addHandler") }, { name: "REMOVE_TRANSACTOR", label: h().t("workflowEditor.process.decreaseOofHandler") }, { name: "ASSIGN_TASK", label: h().t("workflowEditor.process.appointedTask") }, { name: "RETURN_TASK", label: h().t("workflowEditor.process.returnTask") }, { name: "WITHDRAW_TASK", label: h().t("workflowEditor.process.retrieveTask") }, { name: "TRUST_TASK", label: h().t("workflowEditor.process.trustTask") }], selectedEvents: e2 };
|
|
1967
|
+
}, watch: { selectedEvents(e2) {
|
|
1968
|
+
this.$emit("update:modelValue", { event: this.selectedEvents });
|
|
1969
|
+
} }, methods: {} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1970
|
+
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-card"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-row"), m2 = r.resolveComponent("el-checkbox-group");
|
|
1971
|
+
return r.openBlock(), r.createBlock(m2, { modelValue: n2.selectedEvents, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.selectedEvents = e3) }, { default: r.withCtx(() => [r.createVNode(c2, { gutter: 12 }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.events, (e3) => (r.openBlock(), r.createBlock(d2, { key: e3.name, span: 8, style: { "margin-bottom": "12px" } }, { default: r.withCtx(() => [r.createVNode(s2, { shadow: "always" }, { default: r.withCtx(() => [r.createVNode(a2, { label: e3.name }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
|
|
1972
|
+
}]]), Rl = { key: 0 };
|
|
1973
|
+
const Al = M({ name: "Notice", components: { UserSelection: el, CommonNoticeTool: ul, SelectMailTemplates: to }, props: { modelValue: { type: [Object, String], default: null }, switchLabel: { type: String, default: "" } }, data() {
|
|
1974
|
+
let e2 = false, t2 = { informType: "", userCondition: "", subject: null, content: null };
|
|
1975
|
+
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (t2 = this.modelValue, t2.informType && "" !== t2.informType && (e2 = true)), { showNotice: e2, model: t2, options: { showColumns: "code,name" } };
|
|
1976
|
+
}, watch: { showNotice(e2) {
|
|
1977
|
+
this.getValue();
|
|
1978
|
+
} }, created() {
|
|
1979
|
+
this.$watch("model", function(e2, t2) {
|
|
1980
|
+
this.getValue();
|
|
1981
|
+
}, { deep: true });
|
|
1982
|
+
}, methods: { getValue() {
|
|
1983
|
+
const e2 = this.model;
|
|
1984
|
+
this.$emit("update:modelValue", e2);
|
|
1985
|
+
}, setMailTemplateCode(e2) {
|
|
1986
|
+
this.model.mailTemplateCode = e2;
|
|
1987
|
+
}, setMailPointTemplateCode(e2) {
|
|
1988
|
+
this.model.mailPointTemplateCode = e2;
|
|
1989
|
+
}, setCustomMsg(e2) {
|
|
1990
|
+
this.model.customMsg = e2;
|
|
1991
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1992
|
+
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("common-notice-tool"), c2 = r.resolveComponent("select-mail-templates"), m2 = r.resolveComponent("user-selection"), u2 = r.resolveComponent("el-input"), p2 = r.resolveComponent("el-form");
|
|
1993
|
+
return r.openBlock(), r.createBlock(p2, { model: n2.model, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(s2, { label: o2.switchLabel, "label-width": "150" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.showNotice, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.showNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n2.showNotice ? (r.openBlock(), r.createElementBlock("div", Rl, [r.createVNode(d2, { modelValue: n2.model.informType, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.model.informType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": n2.model.customMsg, onInputMsg: i2.setCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), n2.model.informType && n2.model.informType.length > 0 ? (r.openBlock(), r.createBlock(s2, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.model.mailTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.model.mailTemplateCode = e3), onSetValue: i2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), n2.model.informType && n2.model.informType.length > 0 && -1 !== n2.model.informType.indexOf("mail") ? (r.openBlock(), r.createBlock(s2, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.model.mailPointTemplateCode, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.model.mailPointTemplateCode = e3), onSetValue: i2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(m2, { modelValue: n2.model.userCondition, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.model.userCondition = e3), label: e2.$t("workflowEditor.common.addressee") }, null, 8, ["modelValue", "label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.common.theme") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.model.subject, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.model.subject = e3), placeholder: e2.$t("workflowEditorMessage.pleaseEnterASubject") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.common.content") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.model.content, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.model.content = e3), type: "textarea", autosize: { minRows: 4, maxRows: 10 }, placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"])])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
1994
|
+
}]]);
|
|
1995
|
+
const Ul = M({ name: "ProcessPropertiesEditor", components: { BasicProperties: Fl, PermissionSettings: $l, ParameterSettings: Il, Events: _l, Variables: dl, NoticeSettings: M({ name: "NoticeSettings", components: { Notice: Al, SelectMailTemplates: to }, props: { modelValue: { type: [Object, String], default: null } }, data() {
|
|
1996
|
+
let e2 = { informType: "", userCondition: "", subject: null, content: null, defaultMailTemplateCode: "" };
|
|
1997
|
+
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (e2 = this.modelValue), { showMailTemplateFlag: false, model: e2 };
|
|
1998
|
+
}, created() {
|
|
1999
|
+
this.$watch("model", function(e2, t2) {
|
|
2000
|
+
this.getValue();
|
|
2001
|
+
}, { deep: true });
|
|
2002
|
+
}, methods: { getValue() {
|
|
2003
|
+
const e2 = this.model;
|
|
2004
|
+
this.$emit("update:modelValue", e2);
|
|
2005
|
+
}, setMailTemplateCode(e2) {
|
|
2006
|
+
this.model.defaultMailTemplateCode = e2;
|
|
2007
|
+
}, setMailPointTemplateCode(e2) {
|
|
2008
|
+
this.model.defaultMailPointTemplateCode = e2;
|
|
2009
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2010
|
+
const a2 = r.resolveComponent("notice"), s2 = r.resolveComponent("select-mail-templates"), d2 = r.resolveComponent("el-form-item"), c2 = r.resolveComponent("el-form");
|
|
2011
|
+
return n2.model ? (r.openBlock(), r.createBlock(c2, { key: 0, model: n2.model, "label-width": "100px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.model, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.model = e3), "switch-label": e2.$t("workflowEditor.process.sendNotificationAfterProcessEnds") }, null, 8, ["modelValue", "switch-label"]), n2.model.informType && n2.model.informType.length > 0 ? (r.openBlock(), r.createBlock(d2, { key: 0, label: e2.$t("workflowEditor.process.defaultCommonTemplate") }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.model.defaultMailTemplateCode, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.model.defaultMailTemplateCode = e3), onSetValue: i2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), n2.model.informType && n2.model.informType.length > 0 && -1 !== n2.model.informType.indexOf("mail") ? (r.openBlock(), r.createBlock(d2, { key: 1, label: e2.$t("workflowEditor.process.defaultMailTemplate") }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: n2.model.defaultMailPointTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.model.defaultMailPointTemplateCode = e3), onSetValue: i2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"])) : r.createCommentVNode("", true);
|
|
2012
|
+
}]]), NoticeReminder: Nl }, props: { model: { type: Object, default: null } }, data() {
|
|
2013
|
+
return void 0 === this.model.properties.taskNotice && (this.model.properties.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
2014
|
+
}, computed: { basicProperties() {
|
|
2015
|
+
return this.model.properties.basicProperties;
|
|
2016
|
+
}, accessRight() {
|
|
2017
|
+
return this.model.properties.accessRight;
|
|
2018
|
+
}, reminder() {
|
|
2019
|
+
return this.model.properties.reminder;
|
|
2020
|
+
}, parameterSettings() {
|
|
2021
|
+
return this.model.properties.parameterSettings;
|
|
2022
|
+
}, events() {
|
|
2023
|
+
return this.model.properties.events;
|
|
2024
|
+
}, variables() {
|
|
2025
|
+
return this.model.properties.variables;
|
|
2026
|
+
} }, methods: { toXml() {
|
|
2027
|
+
n.js2xml({ basicProperties: this.basicProperties }, { compact: true, ignoreComment: true, spaces: 4 });
|
|
2028
|
+
}, handleClick(e2, t2) {
|
|
2029
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2030
|
+
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("permission-settings"), c2 = r.resolveComponent("notice-settings"), m2 = r.resolveComponent("notice-reminder"), u2 = r.resolveComponent("parameter-settings"), p2 = r.resolveComponent("events"), h2 = r.resolveComponent("variables"), f2 = r.resolveComponent("el-tabs"), w2 = r.resolveComponent("el-dialog");
|
|
2031
|
+
return r.openBlock(), r.createBlock(w2, { "model-value": "", title: e2.$t("workflowEditor.process.processProperties"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[7] || (t2[7] = (t3) => e2.$emit("open")), onOpend: t2[8] || (t2[8] = (t3) => e2.$emit("opend")), onClose: t2[9] || (t2[9] = (t3) => e2.$emit("close")), onClosed: t2[10] || (t2[10] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: n2.activeTab, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.activeTab = e3), type: "border-card", onTabClick: i2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { name: o2.model.attr.name, "onUpdate:name": t2[0] || (t2[0] = (e3) => o2.model.attr.name = e3), code: o2.model.attr.code, "onUpdate:code": t2[1] || (t2[1] = (e3) => o2.model.attr.code = e3), model: o2.model.properties.basicProperties }, null, 8, ["name", "code", "model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.permissionSettings"), name: "permissions" }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: o2.model.properties.permissionSettings, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.properties.permissionSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.notificationSettings"), name: "inform" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.properties.inform, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.properties.inform = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.reminderSettings"), name: "reminders" }, { default: r.withCtx(() => [r.createVNode(m2, { "reminder-value": o2.model.properties.reminder, "onUpdate:reminderValue": t2[4] || (t2[4] = (e3) => o2.model.properties.reminder = e3), "task-notice-value": o2.model.properties.taskNotice, isProcess: true }, null, 8, ["reminder-value", "task-notice-value"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parameterSsetting"), name: "parameterSettings" }, { default: r.withCtx(() => [r.createVNode(u2, { model: o2.model.properties.parameterSettings }, null, 8, ["model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.event"), name: "events" }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.properties.events, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => o2.model.properties.events = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.processVariables"), name: "variables" }, { default: r.withCtx(() => [r.createVNode(h2, { model: o2.model.properties.variables }, null, 8, ["model"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
2032
|
+
}]]);
|
|
2033
|
+
const Ll = M({ name: "DecisionPropertiesEditor", components: { i18nInput: Zt }, props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
|
|
2034
|
+
return this.model.ref;
|
|
2035
|
+
}, transitions() {
|
|
2036
|
+
const e2 = y(this.formModel.attr.id), t2 = [];
|
|
2037
|
+
return e2.map((e3) => {
|
|
2038
|
+
t2.push({ to: e3.ref.attr.to, condition: e3.ref.basicProperties.condition });
|
|
2039
|
+
}), t2;
|
|
2040
|
+
} }, mounted() {
|
|
2041
|
+
this.$watch("model.ref.attr.name", function(e2) {
|
|
2042
|
+
this.model.name = e2;
|
|
2043
|
+
});
|
|
2044
|
+
}, methods: { setI18nValue(e2) {
|
|
2045
|
+
this.formModel && (this.formModel.basicProperties = {}, this.formModel.basicProperties.i18nKey = e2);
|
|
2046
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2047
|
+
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-table"), m2 = r.resolveComponent("el-form"), u2 = r.resolveComponent("el-dialog");
|
|
2048
|
+
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.task.attributeOfConditionJudgment"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attr.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.attr.name = e3), modelModifiers: { trim: true }, "i18n-key": i2.formModel.basicProperties && i2.formModel.basicProperties.i18nKey ? i2.formModel.basicProperties.i18nKey : "name." + i2.formModel.attr.id, onSetI18n: i2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, null, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.task.allBranchFlows")), 1), r.createVNode(c2, { border: "", data: i2.transitions, style: { width: "100%" } }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "to", label: e2.$t("workflowEditor.task.targetLink") }, null, 8, ["label"]), r.createVNode(d2, { prop: "condition", label: e2.$t("workflowEditor.task.condition") }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
2049
|
+
}]]);
|
|
2050
|
+
const Hl = M({ name: "TransitionPropertiesEditor", components: { Notice: Al, AutoFilledFields: sl, BasicProperties: M({ name: "BasicProperties", components: { AdditionalCondition: Wt, i18nInput: Zt }, props: { model: { type: Object, default: null }, sourceTacheType: { type: String, default: null }, id: { type: String, default: null } }, created() {
|
|
2051
|
+
}, methods: { setI18nValue(e2) {
|
|
2052
|
+
this.model.i18nKey = e2;
|
|
2053
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2054
|
+
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("additional-condition"), c2 = r.resolveComponent("i18n-input"), m2 = r.resolveComponent("el-form");
|
|
2055
|
+
return r.openBlock(), r.createBlock(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly"), "label-width": "240px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.isOriginalUser, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.model.isOriginalUser = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), "Decision" === o2.sourceTacheType ? (r.openBlock(), r.createBlock(s2, { key: 0 }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.branchingCondition")), 1), r.createVNode(d2, { modelValue: o2.model.condition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.model.condition = e3), "is-transition": true }, null, 8, ["modelValue"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.remarks"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.remark, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.remark = e3), "i18n-key": o2.model.i18nKey ? o2.model.i18nKey : "name." + o2.id, onSetI18n: i2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 });
|
|
2056
|
+
}]]) }, props: { model: { type: Object, default: null } }, data: () => ({ activeTab: "basicProperties", dialogVisible: true }), mounted() {
|
|
2057
|
+
this.$watch("model.ref.basicProperties.remark", function(e2) {
|
|
2058
|
+
this.model.remark = e2;
|
|
2059
|
+
});
|
|
2060
|
+
} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2061
|
+
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("notice"), c2 = r.resolveComponent("auto-filled-fields"), m2 = r.resolveComponent("el-switch"), u2 = r.resolveComponent("el-form-item"), p2 = r.resolveComponent("el-input"), h2 = r.resolveComponent("el-form"), f2 = r.resolveComponent("el-tabs"), w2 = r.resolveComponent("el-dialog");
|
|
2062
|
+
return r.openBlock(), r.createBlock(w2, { "model-value": "", title: e2.$t("workflowEditor.transition.flowProperties"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: n2.activeTab, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.activeTab = e3), type: "border-card" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.transition.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, model: o2.model.ref.basicProperties, "source-tache-type": o2.model.startJoint.parent.type }, null, 8, ["id", "model", "source-tache-type"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.transition.notificationSettings"), name: "inform" }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: o2.model.ref.inform, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.model.ref.inform = e3), "switch-label": e2.$t("workflowEditor.transition.sendNotificationAfterFlow") }, null, 8, ["modelValue", "switch-label"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.transition.autoFillInFieldSettings"), name: "autoFilledFields" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.ref.autoFilledFields, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.model.ref.autoFilledFields = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.transition.eventProcessing"), name: "events" }, { default: r.withCtx(() => [r.createVNode(h2, null, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.transition.triggerFlowThroughEvent") }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: o2.model.ref.onTransit, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.ref.onTransit = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.transition.beanName") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.ref.beanName, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.ref.beanName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["title"]);
|
|
2063
|
+
}], ["__scopeId", "data-v-0e44fe8c"]]);
|
|
2064
|
+
const jl = M({ name: "ForkPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
|
|
2065
|
+
return this.model.ref;
|
|
2066
|
+
}, transitions() {
|
|
2067
|
+
const e2 = y(this.formModel.attr.id), t2 = [];
|
|
2068
|
+
return e2.map((e3) => {
|
|
2069
|
+
t2.push({ to: e3.endJoint.parent.name });
|
|
2070
|
+
}), t2;
|
|
2071
|
+
} }, mounted() {
|
|
2072
|
+
this.$watch("model.ref.attr.name", function(e2) {
|
|
2073
|
+
this.model.name = e2;
|
|
2074
|
+
});
|
|
2075
|
+
} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2076
|
+
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-table"), m2 = r.resolveComponent("el-form"), u2 = r.resolveComponent("el-dialog");
|
|
2077
|
+
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfBranches"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attr.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.attr.name = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, null, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.task.allBranchFlows")), 1), r.createVNode(c2, { border: "", data: i2.transitions, style: { width: "100%" } }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "to", label: e2.$t("workflowEditor.task.targetLink") }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
2078
|
+
}]]);
|
|
2079
|
+
const zl = M({ name: "ForkPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
|
|
2080
|
+
return this.model.ref;
|
|
2081
|
+
} }, mounted() {
|
|
2082
|
+
this.$watch("model.ref.attr.name", function(e2) {
|
|
2083
|
+
this.model.name = e2;
|
|
2084
|
+
});
|
|
2085
|
+
} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2086
|
+
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form"), c2 = r.resolveComponent("el-dialog");
|
|
2087
|
+
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.convergedProperties"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attr.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.attr.name = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
2088
|
+
}]]);
|
|
2089
|
+
const Wl = M({ name: "HumanDecisionPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
|
|
2090
|
+
return this.model.ref;
|
|
2091
|
+
} }, mounted() {
|
|
2092
|
+
this.$watch("model.ref.attr.name", function(e2) {
|
|
2093
|
+
this.model.name = e2;
|
|
2094
|
+
});
|
|
2095
|
+
} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2096
|
+
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form"), c2 = r.resolveComponent("el-dialog");
|
|
2097
|
+
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.attributesOfManualJudgment"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attr.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.attr.name = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
2098
|
+
}]]);
|
|
2099
|
+
const Jl = M({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: M({ name: "BasicProperties", components: { TaskTitle: pt, i18nInput: Zt }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
2100
|
+
return { formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
2101
|
+
}, computed: { tache() {
|
|
2102
|
+
return this.model;
|
|
2103
|
+
} }, mounted() {
|
|
2104
|
+
this.$watch("formModel.name", function(e2, t2) {
|
|
2105
|
+
this.$emit("update:name", e2);
|
|
2106
|
+
});
|
|
2107
|
+
}, methods: { validateId() {
|
|
2108
|
+
x(this);
|
|
2109
|
+
}, setI18nValue(e2) {
|
|
2110
|
+
this.tache.i18nKey = e2;
|
|
2111
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2112
|
+
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("task-title"), p2 = r.resolveComponent("el-switch"), h2 = r.resolveComponent("el-form");
|
|
2113
|
+
return r.openBlock(), r.createBlock(h2, { model: n2.formModel, "label-width": "110px" }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.name = e3), "i18n-key": i2.tache.i18nKey ? i2.tache.i18nKey : "name." + n2.formModel.id, onSetI18n: i2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.code") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.id = e3), onBlur: i2.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.task.taskTitle") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.tache.taskTitle, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.tache.taskTitle = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.emailNotification") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: i2.tache.mailNotice, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.tache.mailNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.handlingPage") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.tache.taskUrl, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.tache.taskUrl = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.remarks") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.tache.remark, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.tache.remark = e3), type: "textarea", autosize: "" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
2114
|
+
}], ["__scopeId", "data-v-c1c7385b"]]), TransactorSettings: il, PermissionSettings: M({ name: "PermissionSettings", components: { AdditionalCondition: Wt }, props: { modelValue: { type: Object, default: null } }, data() {
|
|
2115
|
+
const e2 = T(this.modelValue), t2 = ["viewOpinion", "viewMeetingResult", "viewVoteResult", "viewFlowHistory", "printForm"];
|
|
2116
|
+
t2.forEach((t3) => {
|
|
2117
|
+
e2[t3 + "Checkbox"] = !!this.modelValue[t3].condition;
|
|
2118
|
+
});
|
|
2119
|
+
const o2 = ["download"];
|
|
2120
|
+
return o2.forEach((t3) => {
|
|
2121
|
+
e2.attachment[name + "Checkbox"] = !!this.modelValue.attachment[name] && !!this.modelValue.attachment[name].condition, e2.attachment.permission || (e2.attachment[name] = { permission: false, condition: "" });
|
|
2122
|
+
}), { formModel: e2, attrNames: t2, attachmentAttrNames: o2 };
|
|
2123
|
+
}, mounted() {
|
|
2124
|
+
this.$watch("formModel", function(e2) {
|
|
2125
|
+
const t2 = { viewOpinion: {}, viewMeetingResult: {}, viewVoteResult: {}, viewFlowHistory: {}, printForm: {}, officialText: {}, attachment: {} };
|
|
2126
|
+
this.attrNames.map((o2) => {
|
|
2127
|
+
t2[o2].permission = e2[o2].permission, e2[o2].permission && e2[o2 + "Checkbox"] ? t2[o2].condition = e2[o2].condition : t2[o2].condition = "";
|
|
2128
|
+
}), t2.attachment.permission = e2.attachment.permission, e2.attachment.permission && this.attachmentAttrNames.map((o2) => {
|
|
2129
|
+
t2.attachment[o2] || (t2.attachment[o2] = {}), t2.attachment[o2].permission = e2.attachment[o2].permission, e2.attachment[o2].permission && e2.attachment[o2 + "Checkbox"] ? t2.attachment[o2].condition = e2.attachment[o2].condition : t2.attachment[o2].condition = "";
|
|
2130
|
+
}), this.$emit("update:modelValue", t2);
|
|
2131
|
+
}, { deep: true });
|
|
2132
|
+
}, methods: {} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2133
|
+
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-checkbox"), d2 = r.resolveComponent("additional-condition"), c2 = r.resolveComponent("el-form-item"), m2 = r.resolveComponent("el-card"), u2 = r.resolveComponent("el-form");
|
|
2134
|
+
return r.openBlock(), r.createBlock(u2, { model: n2.formModel }, { default: r.withCtx(() => [r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowViews") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewOpinion.permission, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.viewOpinion.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewOpinion.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: n2.formModel.viewOpinionCheckbox, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.viewOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.viewOpinion.permission && n2.formModel.viewOpinionCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: n2.formModel.viewOpinion.condition, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.formModel.viewOpinion.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowToViewCountersignatureResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewMeetingResult.permission, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.formModel.viewMeetingResult.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewMeetingResult.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: n2.formModel.viewMeetingResultCheckbox, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.formModel.viewMeetingResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.viewMeetingResult.permission && n2.formModel.viewMeetingResultCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: n2.formModel.viewMeetingResult.condition, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.formModel.viewMeetingResult.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowToViewVotingResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewVoteResult.permission, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.formModel.viewVoteResult.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewVoteResult.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: n2.formModel.viewVoteResultCheckbox, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => n2.formModel.viewVoteResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.viewVoteResult.permission && n2.formModel.viewVoteResultCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: n2.formModel.viewVoteResult.condition, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => n2.formModel.viewVoteResult.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowToViewFlowHistory") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewFlowHistory.permission, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => n2.formModel.viewFlowHistory.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewFlowHistory.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: n2.formModel.viewFlowHistoryCheckbox, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => n2.formModel.viewFlowHistoryCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.viewFlowHistory.permission && n2.formModel.viewFlowHistoryCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: n2.formModel.viewFlowHistory.condition, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => n2.formModel.viewFlowHistory.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowFormsToPrint") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.printForm.permission, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => n2.formModel.printForm.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.printForm.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: n2.formModel.printFormCheckbox, "onUpdate:modelValue": t2[13] || (t2[13] = (e3) => n2.formModel.printFormCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.printForm.permission && n2.formModel.printFormCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: n2.formModel.printForm.condition, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => n2.formModel.printForm.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.attachmentAuthority") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.permission, "onUpdate:modelValue": t2[15] || (t2[15] = (e3) => n2.formModel.attachment.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n2.formModel.attachment.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, class: "box-card" }, { default: r.withCtx(() => [r.createVNode(c2, { label: e2.$t("workflowEditor.task.downloadAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.download.permission, "onUpdate:modelValue": t2[16] || (t2[16] = (e3) => n2.formModel.attachment.download.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.attachment.download.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: n2.formModel.attachment.downloadCheckbox, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => n2.formModel.attachment.downloadCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.attachment.download.permission && n2.formModel.attachment.downloadCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: n2.formModel.attachment.download.condition, "onUpdate:modelValue": t2[18] || (t2[18] = (e3) => n2.formModel.attachment.download.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(c2, { label: e2.$t("workflowEditor.task.bodyPermission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.officialText.permission, "onUpdate:modelValue": t2[19] || (t2[19] = (e3) => n2.formModel.officialText.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
2135
|
+
}], ["__scopeId", "data-v-5fb29fef"]]), NoticeReminder: Nl, Events: ml }, props: { model: { type: Object, default: null } }, data() {
|
|
2136
|
+
return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
2137
|
+
}, computed: { formModel() {
|
|
2138
|
+
return this.model.ref;
|
|
2139
|
+
} }, mounted() {
|
|
2140
|
+
this.$watch("model.ref.attr.id", function(e2, t2) {
|
|
2141
|
+
this.model.id = e2;
|
|
2142
|
+
}), this.$watch("model.ref.attr.name", function(e2, t2) {
|
|
2143
|
+
this.model.name = e2;
|
|
2144
|
+
});
|
|
2145
|
+
}, methods: { handleClick(e2, t2) {
|
|
2146
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2147
|
+
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("transactor-settings"), c2 = r.resolveComponent("notice-reminder"), m2 = r.resolveComponent("events"), u2 = r.resolveComponent("permission-settings"), p2 = r.resolveComponent("el-tabs"), h2 = r.resolveComponent("el-dialog");
|
|
2148
|
+
return r.openBlock(), r.createBlock(h2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfCCTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: n2.activeTab, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.activeTab = e3), type: "border-card", onTabClick: i2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, "onUpdate:id": t2[0] || (t2[0] = (e3) => o2.model.ref.attr.id = e3), name: o2.model.ref.attr.name, "onUpdate:name": t2[1] || (t2[1] = (e3) => o2.model.ref.attr.name = e3), model: o2.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.settingOfHandler"), name: "transactors" }, { default: r.withCtx(() => [r.createVNode(d2, { model: o2.model.ref.transactorSettings, "used-in": "CopyTask" }, null, 8, ["model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.reminderSettings"), name: "reminders" }, { default: r.withCtx(() => [r.createVNode(c2, { "reminder-value": o2.model.ref.reminder, "task-notice-value": o2.model.ref.taskNotice }, null, 8, ["reminder-value", "task-notice-value"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.eventProcessing"), name: "events" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: o2.model.ref.events, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.ref.events = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.permissionSettings"), name: "permissions" }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: o2.model.ref.permissionSettings, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.ref.permissionSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
2149
|
+
}], ["__scopeId", "data-v-af76d417"]]);
|
|
2150
|
+
const ql = M({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: M({ name: "BasicProperties", components: { TaskTitle: pt, i18nInput: Zt }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
2151
|
+
return { formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
2152
|
+
}, computed: { tache() {
|
|
2153
|
+
return this.model;
|
|
2154
|
+
} }, mounted() {
|
|
2155
|
+
this.$watch("formModel.name", function(e2, t2) {
|
|
2156
|
+
this.$emit("update:name", e2);
|
|
2157
|
+
});
|
|
2158
|
+
}, methods: { validateId() {
|
|
2159
|
+
x(this);
|
|
2160
|
+
}, setI18nValue(e2) {
|
|
2161
|
+
this.tache.i18nKey = e2;
|
|
2162
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2163
|
+
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("el-form");
|
|
2164
|
+
return r.openBlock(), r.createBlock(u2, { model: n2.formModel, "label-width": "110px" }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.name = e3), "i18n-key": i2.tache.i18nKey ? i2.tache.i18nKey : "name." + n2.formModel.id, onSetI18n: i2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.code") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.id = e3), onBlur: i2.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.task.custombeanName") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.tache.beanName, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.tache.beanName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
2165
|
+
}], ["__scopeId", "data-v-6aef99ff"]]) }, props: { model: { type: Object, default: null } }, data() {
|
|
2166
|
+
return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
2167
|
+
}, computed: { formModel() {
|
|
2168
|
+
return this.model.ref;
|
|
2169
|
+
} }, mounted() {
|
|
2170
|
+
this.$watch("model.ref.attr.id", function(e2, t2) {
|
|
2171
|
+
this.model.id = e2;
|
|
2172
|
+
}), this.$watch("model.ref.attr.name", function(e2, t2) {
|
|
2173
|
+
this.model.name = e2;
|
|
2174
|
+
});
|
|
2175
|
+
}, methods: { handleClick(e2, t2) {
|
|
2176
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2177
|
+
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("el-tabs"), c2 = r.resolveComponent("el-dialog");
|
|
2178
|
+
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfAutoTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[3] || (t2[3] = (t3) => e2.$emit("open")), onOpend: t2[4] || (t2[4] = (t3) => e2.$emit("opend")), onClose: t2[5] || (t2[5] = (t3) => e2.$emit("close")), onClosed: t2[6] || (t2[6] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: n2.activeTab, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.activeTab = e3), type: "border-card", onTabClick: i2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, "onUpdate:id": t2[0] || (t2[0] = (e3) => o2.model.ref.attr.id = e3), name: o2.model.ref.attr.name, "onUpdate:name": t2[1] || (t2[1] = (e3) => o2.model.ref.attr.name = e3), model: o2.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
2179
|
+
}], ["__scopeId", "data-v-adb7c2ff"]]), Gl = { style: { width: "100%" } }, Kl = { key: 0, style: { "margin-right": "12px" } };
|
|
2180
|
+
const Xl = M({ name: "BasicProperties", components: { FieldMappings: M({ name: "FieldMappings", components: { FormFields: ct }, props: { modelValue: { type: Object, default: null }, srcLabel: { type: String, default: null }, targetLabel: { type: String, default: null }, srcFields: { type: Array, default: null }, targetFields: { type: Array, default: null }, labelTittle: { type: String, default: null } }, data() {
|
|
2181
|
+
let e2 = [];
|
|
2182
|
+
return void 0 !== this.modelValue.field && (Array.isArray(this.modelValue.field) ? e2 = this.modelValue.field : e2.push(this.modelValue.field)), { tableData: e2, currentRow: null, showSourceFields: false, showTargetFields: false };
|
|
2183
|
+
}, computed: { formFields() {
|
|
2184
|
+
return this.showSourceFields ? this.srcFields : this.showTargetFields ? this.targetFields : [];
|
|
2185
|
+
} }, watch: {}, mounted() {
|
|
2186
|
+
this.tableData.length > 0 && this.setCurrentRow(this.tableData[0]), this.$watch("tableData", function() {
|
|
2187
|
+
const e2 = this.tableData.filter((e3) => "" !== e3.source && "" !== e3.target);
|
|
2188
|
+
this.$emit("update:modelValue", { field: e2 });
|
|
2189
|
+
}, { deep: true });
|
|
2190
|
+
}, methods: { getSubFormFieldLabel(e2) {
|
|
2191
|
+
const t2 = (this.srcFields || this.targetFields).filter((t3) => t3.name === e2);
|
|
2192
|
+
return t2.length > 0 ? t2[0].label : e2;
|
|
2193
|
+
}, showSourceFieldLabel(e2) {
|
|
2194
|
+
return this.srcFields ? this.getSubFormFieldLabel(e2) : mt(e2);
|
|
2195
|
+
}, showTargetFieldLabel(e2) {
|
|
2196
|
+
return this.targetFields ? this.getSubFormFieldLabel(e2) : mt(e2);
|
|
2197
|
+
}, add() {
|
|
2198
|
+
for (let e3 = 0; e3 < this.tableData.length; e3++)
|
|
2199
|
+
if ("" === this.tableData[e3].source || "" === this.tableData[e3].target)
|
|
2200
|
+
return void this.$alert(this.$t("workflowEditorMessage.dataInLineCannotBeEmpty", { row: e3 + 1, data1: this.srcLabel, data2: this.targetLabel }));
|
|
2201
|
+
const e2 = { source: "", target: "" };
|
|
2202
|
+
this.tableData.push(e2), this.setCurrentRow(e2);
|
|
2203
|
+
}, remove() {
|
|
2204
|
+
if (null === this.currentRow)
|
|
2205
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
2206
|
+
let e2;
|
|
2207
|
+
for (let t2 = 0; t2 < this.tableData.length; t2++)
|
|
2208
|
+
if (this.tableData[t2].source === this.currentRow.source) {
|
|
2209
|
+
e2 = t2;
|
|
2210
|
+
break;
|
|
2211
|
+
}
|
|
2212
|
+
this.tableData.splice(e2, 1), e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.setCurrentRow(this.tableData[e2]);
|
|
2213
|
+
}, setCurrentRow(e2) {
|
|
2214
|
+
this.$refs.table.setCurrentRow(e2);
|
|
2215
|
+
}, handleCurrentChange(e2) {
|
|
2216
|
+
this.currentRow = e2;
|
|
2217
|
+
}, checkSource(e2) {
|
|
2218
|
+
"" === e2 && this.$alert(this.$t("workflowEditorMessage.dataCannotBeEmpty", { data: this.srcLabel }));
|
|
2219
|
+
}, checkTarget(e2) {
|
|
2220
|
+
"" === e2 && this.$alert(this.$t("workflowEditorMessage.dataCannotBeEmpty", { data: this.targetLabel }));
|
|
2221
|
+
}, selectField(e2) {
|
|
2222
|
+
this.showSourceFields && (this.currentRow.source = e2, this.showSourceFields = false), this.showTargetFields && (this.currentRow.target = e2, this.showTargetFields = false), this.tableData, this.srcFields, this.targetFields;
|
|
2223
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2224
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-table"), u2 = r.resolveComponent("form-fields");
|
|
2225
|
+
return r.openBlock(), r.createElementBlock("div", Gl, [r.createVNode(s2, { style: { "align-items": "center" } }, { default: r.withCtx(() => [o2.labelTittle ? (r.openBlock(), r.createElementBlock("span", Kl, r.toDisplayString(o2.labelTittle), 1)) : r.createCommentVNode("", true), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(m2, { ref: "table", data: n2.tableData, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "source", label: o2.srcLabel }, { default: r.withCtx((o3) => [r.createVNode(c2, { value: i2.showSourceFieldLabel(o3.row.source), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onClick: t2[0] || (t2[0] = (e3) => n2.showSourceFields = true) }, null, 8, ["value", "placeholder"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "target", label: o2.targetLabel }, { default: r.withCtx((o3) => [r.createVNode(c2, { value: i2.showTargetFieldLabel(o3.row.target), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onClick: t2[1] || (t2[1] = (e3) => n2.showTargetFields = true) }, null, 8, ["value", "placeholder"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), n2.showSourceFields || n2.showTargetFields ? (r.openBlock(), r.createBlock(u2, { key: 0, fields: i2.formFields, onClose: i2.selectField }, null, 8, ["fields", "onClose"])) : r.createCommentVNode("", true)]);
|
|
2226
|
+
}]]), i18nInput: Zt, TaskTitle: pt }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
2227
|
+
return { selectedProcess: [], processes: [], subprocessFormFields: [], formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
2228
|
+
}, computed: { tache() {
|
|
2229
|
+
return this.model;
|
|
2230
|
+
} }, created() {
|
|
2231
|
+
this.listAllProcesses().then(() => {
|
|
2232
|
+
this.fetchSubprocessFormFields();
|
|
2233
|
+
}), "" === this.formModel.tache.parameters && (this.formModel.tache.parameters = {}), "" === this.formModel.tache.result && (this.formModel.tache.result = {});
|
|
2234
|
+
}, mounted() {
|
|
2235
|
+
this.$watch("formModel.name", function(e2, t2) {
|
|
2236
|
+
this.$emit("update:name", e2);
|
|
2237
|
+
});
|
|
2238
|
+
}, methods: { fetchSubprocessFormFields() {
|
|
2239
|
+
this.model.processCode && Ml.fetchSubprocessFormFields(this.model.processCode, this.model.processVersion).then((e2) => {
|
|
2240
|
+
this.subprocessFormFields = e2;
|
|
2241
|
+
});
|
|
2242
|
+
}, handleChange(e2) {
|
|
2243
|
+
const t2 = e2[1];
|
|
2244
|
+
this.model.processCode = t2.substring(t2.indexOf("/") + 1, t2.lastIndexOf("/")), this.model.processVersion = t2.substring(t2.lastIndexOf("/") + 1), this.fetchSubprocessFormFields();
|
|
2245
|
+
}, listAllProcesses() {
|
|
2246
|
+
return new Promise((e2, t2) => {
|
|
2247
|
+
this.$http.get(this.baseAPI + "/wf-editor/workflow-editors/all-active-definitions").then((t3) => {
|
|
2248
|
+
if (t3.length > 0) {
|
|
2249
|
+
const o2 = this.model.processCode + "/" + this.model.processVersion;
|
|
2250
|
+
this.setDefaultSelectedProcessWhenUpdate(t3, o2), this.processes = t3, e2();
|
|
2251
|
+
}
|
|
2252
|
+
}).catch((e3) => {
|
|
2253
|
+
t2(e3);
|
|
2254
|
+
});
|
|
2255
|
+
});
|
|
2256
|
+
}, setDefaultSelectedProcessWhenUpdate(e2, t2) {
|
|
2257
|
+
let o2, l2;
|
|
2258
|
+
for (var r2 = 0; r2 < e2.length; r2++) {
|
|
2259
|
+
const n2 = e2[r2].value, i2 = e2[r2].children.filter(this.filterProcess(t2));
|
|
2260
|
+
if (i2.length > 0) {
|
|
2261
|
+
l2 = n2, o2 = i2[0];
|
|
2262
|
+
break;
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
if (o2) {
|
|
2266
|
+
const e3 = [];
|
|
2267
|
+
e3.push(l2), e3.push(o2.value), this.selectedProcess = e3;
|
|
2268
|
+
}
|
|
2269
|
+
}, filterProcess: (e2) => (t2) => {
|
|
2270
|
+
const o2 = t2.value, l2 = o2.substring(o2.indexOf("/") + 1);
|
|
2271
|
+
return e2 === l2;
|
|
2272
|
+
}, validateId() {
|
|
2273
|
+
x(this);
|
|
2274
|
+
}, setI18nValue(e2) {
|
|
2275
|
+
this.formModel.tache.i18nKey = e2;
|
|
2276
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2277
|
+
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("task-title"), p2 = r.resolveComponent("el-cascader"), h2 = r.resolveComponent("el-switch"), f2 = r.resolveComponent("el-radio"), w2 = r.resolveComponent("el-radio-group"), g2 = r.resolveComponent("field-mappings"), C2 = r.resolveComponent("el-form");
|
|
2278
|
+
return r.openBlock(), r.createBlock(C2, { model: n2.formModel }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.name"), "label-width": "50px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.name = e3), "i18n-key": n2.formModel.tache.i18nKey ? n2.formModel.tache.i18nKey : "name." + n2.formModel.id, onSetI18n: i2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.code"), "label-width": "50px" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.id = e3), onBlur: i2.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.task.taskTitle") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.tache.taskTitle, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.tache.taskTitle = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.subprocess"), "label-width": "60px" }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: n2.selectedProcess, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.selectedProcess = e3), "show-all-levels": false, options: n2.processes, onChange: i2.handleChange }, null, 8, ["modelValue", "options", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.subprocessIsSharedForm"), "label-width": "140px" }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: n2.formModel.tache.isSharedForm, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.formModel.tache.isSharedForm = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(w2, { modelValue: n2.formModel.tache.moreTransactor, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.formModel.tache.moreTransactor = e3) }, { default: r.withCtx(() => [r.createVNode(f2, { label: false }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.anyOneCanHandleIt")), 1)]), _: 1 }), r.createVNode(f2, { label: true }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.forAll")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"]), r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(g2, { "label-tittle": e2.$t("workflowEditor.process.transferValueFromMainFormToSubForm"), modelValue: n2.formModel.tache.parameters, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.formModel.tache.parameters = e3), "src-label": e2.$t("workflowEditor.process.fieldsOfTheMainForm"), "target-label": e2.$t("workflowEditor.process.fieldsOfSubform"), "target-fields": n2.subprocessFormFields }, null, 8, ["label-tittle", "modelValue", "src-label", "target-label", "target-fields"])]), _: 1 }), r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(g2, { "label-tittle": e2.$t("workflowEditor.process.subformReturnsResultsToMainForm"), modelValue: n2.formModel.tache.result, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => n2.formModel.tache.result = e3), "src-label": e2.$t("workflowEditor.process.fieldsOfSubform"), "target-label": e2.$t("workflowEditor.process.fieldsOfTheMainForm"), "src-fields": n2.subprocessFormFields }, null, 8, ["label-tittle", "modelValue", "src-label", "target-label", "src-fields"])]), _: 1 })]), _: 1 }, 8, ["model"]);
|
|
2279
|
+
}]]);
|
|
2280
|
+
const Yl = M({ name: "Events", props: { modelValue: { type: Object, default: null } } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2281
|
+
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form");
|
|
2282
|
+
return r.openBlock(), r.createBlock(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.eventsTriggeredBeforeStartingASubprocess"), "label-width": "150px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.modelValue.beforeStart, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.modelValue.beforeStart = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.triggerSubprocessEndEvent") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.modelValue.end, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.modelValue.end = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 });
|
|
2283
|
+
}]]);
|
|
2284
|
+
const Ql = M({ name: "SubprocessPropertiesEditor", components: { BasicProperties: Xl, SubprocessTransactorSettings: M({ name: "SubprocessTransactorSettings", components: { TransactorSettings: il }, props: { modelValue: { type: Object, default: null } }, data() {
|
|
2285
|
+
let e2 = false;
|
|
2286
|
+
this.modelValue.userCondition && (e2 = true);
|
|
2287
|
+
let t2 = T(this.modelValue);
|
|
2288
|
+
return t2.userCondition || (t2 = { userCondition: "${instanceCreator}", additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }), { model: { showTransactorSettings: e2, transactorSettings: t2 } };
|
|
2289
|
+
}, mounted() {
|
|
2290
|
+
this.$watch("model", function(e2) {
|
|
2291
|
+
e2.showTransactorSettings ? this.$emit("update:modelValue", e2.transactorSettings) : this.$emit("update:modelValue", {});
|
|
2292
|
+
}, { deep: true });
|
|
2293
|
+
} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2294
|
+
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("transactor-settings", true);
|
|
2295
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.setTheHandlerOfTheFirstPhaseOfTheSubProcess")), 1), r.createVNode(a2, { modelValue: n2.model.showTransactorSettings, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.model.showTransactorSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }), n2.model.showTransactorSettings ? (r.openBlock(), r.createBlock(d2, { key: 0, "is-subprocess": true, model: n2.model.transactorSettings }, null, 8, ["model"])) : r.createCommentVNode("", true)]);
|
|
2296
|
+
}]]), Events: Yl }, props: { model: { type: Object, default: null } }, data: () => ({ activeTab: "basicProperties", dialogVisible: true }), computed: { formModel() {
|
|
2297
|
+
return this.model.ref;
|
|
2298
|
+
} }, mounted() {
|
|
2299
|
+
this.$watch("model.ref.attr.id", function(e2, t2) {
|
|
2300
|
+
this.model.id = e2;
|
|
2301
|
+
}), this.$watch("model.ref.attr.name", function(e2, t2) {
|
|
2302
|
+
this.model.name = e2;
|
|
2303
|
+
});
|
|
2304
|
+
}, methods: { handleClick(e2, t2) {
|
|
2305
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2306
|
+
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("subprocess-transactor-settings"), c2 = r.resolveComponent("events"), m2 = r.resolveComponent("el-tabs"), u2 = r.resolveComponent("el-dialog");
|
|
2307
|
+
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.process.propertiesOfSubprocesses"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: n2.activeTab, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.activeTab = e3), type: "border-card", onTabClick: i2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, "onUpdate:id": t2[0] || (t2[0] = (e3) => o2.model.ref.attr.id = e3), name: o2.model.ref.attr.name, "onUpdate:name": t2[1] || (t2[1] = (e3) => o2.model.ref.attr.name = e3), model: o2.model.ref }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.settingOfHandler"), name: "transactors" }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: o2.model.ref.transactorSettings, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.ref.transactorSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.eventProcessing"), name: "events" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.ref.events, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.ref.events = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
2308
|
+
}], ["__scopeId", "data-v-bd66d235"]]), Zl = { class: "tooltip" }, er = ["innerHTML"];
|
|
2309
|
+
const tr = M({ name: "TacheHistoryTooltip", props: { content: { type: String, default: "" } }, methods: {} }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2310
|
+
return r.openBlock(), r.createElementBlock("div", Zl, [r.createElementVNode("div", { innerHTML: o2.content }, null, 8, er)]);
|
|
2311
|
+
}], ["__scopeId", "data-v-ac799913"]]), or = { name: "Canvas", components: { Start: z, End: G, HumanTask: te, Decision: ie, Subprocess: ce, CustomTask: he, Fork: be, Join: Te, HumanDecision: Me, CopyTask: Pe, Transition: Ze, VirtualTransition: ot, SelectionRegion: nt, HumanTaskPropertiesEditor: xl, ProcessPropertiesEditor: Ul, DecisionPropertiesEditor: Ll, TransitionPropertiesEditor: Hl, ForkPropertiesEditor: jl, JoinPropertiesEditor: zl, HumanDecisionPropertiesEditor: Wl, CopyTaskPropertiesEditor: Jl, SubprocessPropertiesEditor: Ql, TacheHistoryTooltip: tr, AutoTask: _e, AutoTaskPropertiesEditor: ql }, props: { process: { type: Object, default: null }, showHistory: { type: Boolean, default: false } }, data: function() {
|
|
2312
|
+
return { inputArea: null, currentPosition: null, originPosition: null, offset: null, startPoint: null, region: null, endPoint: null, transitionsInRegion: [], showTacheHistory: false, tooltipPosition: null };
|
|
2313
|
+
}, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "isMovingTache", "mouseDownPosition", "startJoint", "endJoint", "isDrawingRegion", "isMovingRegion", "selectedTransition", "selectedTaches", "resizerToMove", "draggerToMove", "controlPointToMove", "propertiesEditorFor", "contextMenuVisible"]) }, watch: { propertiesEditorFor(e2, t2) {
|
|
2314
|
+
} }, mounted: function() {
|
|
2315
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setTaches", "setTransitions", "resetState", "setMovingTache", "stopDrawingLine", "setSelectedTaches", "setDrawingRegion", "setResizerToMove", "setDraggerToMove", "setControlPointToMove", "setPropertiesEditorFor"]), forbidSelection: () => false, add: function() {
|
|
2316
|
+
}, mousedown(e2) {
|
|
2317
|
+
this.unselectAll(), this.setDrawingRegion(true), this.startPoint = g(e2);
|
|
2318
|
+
}, mousemove(e2) {
|
|
2319
|
+
this.showHistory || (!this.originPosition && this.mouseDownPosition && (this.originPosition = this.mouseDownPosition), this.currentPosition = g(e2), this.isMovingTache && this.moveTache(this.selectedTaches[0]), this.drawVirtualSelectionRegion(), this.moveSelectionRegion(), this.resizeSelectedTache(), this.moveTransition(), this.adjustCurveLine(), this.originPosition = this.currentPosition);
|
|
2320
|
+
}, mouseup(e2) {
|
|
2321
|
+
this.isMovingTache && this.setMovingTache(false), this.startJoint && this.stopDrawingLine(), this.drawRegionWhenNeeded(), this.resizerToMove && this.setResizerToMove(null), this.resetMovedTransition();
|
|
2322
|
+
}, mouseleave(e2) {
|
|
2323
|
+
this.drawRegionWhenNeeded(), this.resetMovedTransition(), this.resetState();
|
|
2324
|
+
}, drawRegionWhenNeeded() {
|
|
2325
|
+
this.isDrawingRegion && (this.selectComponents(), this.drawRealSelectionRegion(), this.setDrawingRegion(false));
|
|
2326
|
+
}, resetMovedTransition() {
|
|
2327
|
+
this.draggerToMove && (this.draggerToMove.owner.startJoint = this.draggerToMove.originStartJoint, this.draggerToMove.owner.endJoint = this.draggerToMove.originEndJoint, this.setDraggerToMove(null));
|
|
2328
|
+
}, unselectAll() {
|
|
2329
|
+
C(), this.transitionsInRegion = [], this.startPoint = null, this.region = null;
|
|
2330
|
+
}, selectComponents() {
|
|
2331
|
+
if (!this.startPoint || !this.region)
|
|
2332
|
+
return this.startPoint = null, void (this.region = null);
|
|
2333
|
+
for (const e2 of this.taches)
|
|
2334
|
+
this.isInsideSelectionRegion(e2) && (e2.isSelected = true, this.selectedTaches.push(e2));
|
|
2335
|
+
for (const e2 of this.transitions)
|
|
2336
|
+
e2.startJoint.parent.isSelected && e2.endJoint.parent.isSelected && this.transitionsInRegion.push(e2);
|
|
2337
|
+
}, isInsideSelectionRegion(e2) {
|
|
2338
|
+
const t2 = e2.x >= this.region.x && e2.y >= this.region.y, o2 = e2.x + e2.width <= this.region.x + this.region.width && e2.y + e2.height <= this.region.y + this.region.height;
|
|
2339
|
+
return t2 && o2;
|
|
2340
|
+
}, moveTache(e2) {
|
|
2341
|
+
const t2 = this.currentPosition.x - this.originPosition.x, o2 = this.currentPosition.y - this.originPosition.y;
|
|
2342
|
+
e2.x += t2, e2.y += o2, e2.x < 0 && (e2.x = 2), e2.y < 0 && (e2.y = 2);
|
|
2343
|
+
}, drawVirtualSelectionRegion() {
|
|
2344
|
+
this.isDrawingRegion && this.startPoint && (this.region = function(e2, t2) {
|
|
2345
|
+
if (!e2 || !t2)
|
|
2346
|
+
return {};
|
|
2347
|
+
const { x: o2, y: l2 } = e2, { x: r2, y: n2 } = t2;
|
|
2348
|
+
var i2 = { x: 0, y: 0, width: Math.abs(r2 - o2), height: Math.abs(n2 - l2) };
|
|
2349
|
+
return o2 <= r2 ? l2 <= n2 ? (i2.x = o2, i2.y = l2) : (i2.x = o2, i2.y = n2) : l2 >= n2 ? (i2.x = r2, i2.y = n2) : (i2.x = r2, i2.y = l2), i2;
|
|
2350
|
+
}(this.startPoint, this.currentPosition));
|
|
2351
|
+
}, drawRealSelectionRegion() {
|
|
2352
|
+
if (this.selectedTaches.length <= 1)
|
|
2353
|
+
return this.startPoint = null, void (this.region = null);
|
|
2354
|
+
this.region = function(e2) {
|
|
2355
|
+
let t2, o2, l2, r2;
|
|
2356
|
+
t2 = o2 = 1e4, l2 = r2 = 0;
|
|
2357
|
+
for (const n2 of e2)
|
|
2358
|
+
t2 > n2.x && (t2 = n2.x), o2 > n2.y && (o2 = n2.y), l2 < n2.x + n2.width && (l2 = n2.x + n2.width), r2 < n2.y + n2.height && (r2 = n2.y + n2.height);
|
|
2359
|
+
return { x: t2 - 10, y: o2 - 10, width: l2 - t2 + 20, height: r2 - o2 + 20 };
|
|
2360
|
+
}(this.selectedTaches);
|
|
2361
|
+
}, moveSelectionRegion() {
|
|
2362
|
+
if (!this.isMovingRegion)
|
|
2363
|
+
return;
|
|
2364
|
+
let e2 = this.currentPosition.x - this.originPosition.x, t2 = this.currentPosition.y - this.originPosition.y;
|
|
2365
|
+
this.region.x + e2 < 0 && (e2 = 2 - this.region.x), this.region.y + t2 < 0 && (t2 = 2 - this.region.y), this.region.x = this.region.x + e2, this.region.y = this.region.y + t2, this.moveTachesInRegion(e2, t2), this.moveTransitionControlPoints(e2, t2);
|
|
2366
|
+
}, moveTachesInRegion(e2, t2) {
|
|
2367
|
+
for (const o2 of this.selectedTaches)
|
|
2368
|
+
o2.x += e2, o2.y += t2;
|
|
2369
|
+
}, moveTransitionControlPoints(e2, t2) {
|
|
2370
|
+
for (const o2 of this.transitionsInRegion)
|
|
2371
|
+
"CurveLine" === o2.lineInfo.type ? (o2.lineInfo.controlPoint.x += e2, o2.lineInfo.controlPoint.y += t2) : "BrokenLine" === o2.lineInfo.type && o2.lineInfo.controlPoint.forEach((o3) => {
|
|
2372
|
+
o3.x += e2, o3.y += t2;
|
|
2373
|
+
});
|
|
2374
|
+
}, resizeSelectedTache() {
|
|
2375
|
+
if (!this.resizerToMove)
|
|
2376
|
+
return;
|
|
2377
|
+
let e2 = this.currentPosition.x - this.originPosition.x, t2 = this.currentPosition.y - this.originPosition.y;
|
|
2378
|
+
const o2 = this.resizerToMove.owner;
|
|
2379
|
+
switch (this.resizerToMove.position) {
|
|
2380
|
+
case "NW":
|
|
2381
|
+
o2.width - e2 < 80 && (e2 = o2.width - 80), o2.height - t2 < 40 && (t2 = o2.height - 40), o2.width -= e2, o2.height -= t2, o2.x += e2, o2.y += t2;
|
|
2382
|
+
break;
|
|
2383
|
+
case "NE":
|
|
2384
|
+
o2.width + e2 < 80 && (e2 = 80 - o2.width), o2.height - t2 < 40 && (t2 = o2.height - 40), o2.width += e2, o2.height -= t2, o2.y += t2;
|
|
2385
|
+
break;
|
|
2386
|
+
case "SW":
|
|
2387
|
+
o2.width - e2 < 80 && (e2 = o2.width - 80), o2.height + t2 < 40 && (t2 = 40 - o2.height), o2.width -= e2, o2.height += t2, o2.x += e2;
|
|
2388
|
+
break;
|
|
2389
|
+
case "SE":
|
|
2390
|
+
o2.width + e2 < 80 && (e2 = 80 - o2.width), o2.height + t2 < 40 && (t2 = 40 - o2.height), o2.width += e2, o2.height += t2;
|
|
2391
|
+
}
|
|
2392
|
+
}, moveTransition() {
|
|
2393
|
+
if (!this.draggerToMove)
|
|
2394
|
+
return;
|
|
2395
|
+
const e2 = this.draggerToMove.owner, t2 = this.draggerToMove.position, o2 = { parent: this.currentPosition, position: "" };
|
|
2396
|
+
"start" === t2 ? e2.startJoint = o2 : e2.endJoint = o2;
|
|
2397
|
+
}, adjustCurveLine() {
|
|
2398
|
+
if (!this.controlPointToMove)
|
|
2399
|
+
return;
|
|
2400
|
+
const e2 = this.controlPointToMove.owner;
|
|
2401
|
+
if (e2.lineInfo && "CurveLine" === e2.lineInfo.type)
|
|
2402
|
+
e2.lineInfo.controlPoint = this.currentPosition;
|
|
2403
|
+
else if (e2.lineInfo && "BrokenLine" === e2.lineInfo.type) {
|
|
2404
|
+
const t2 = this.controlPointToMove.pointIndex;
|
|
2405
|
+
e2.lineInfo.controlPoint[t2] = this.currentPosition;
|
|
2406
|
+
}
|
|
2407
|
+
}, endDrag(e2) {
|
|
2408
|
+
}, showTacheHistoryTooltip(e2) {
|
|
2409
|
+
this.showTacheHistory = true;
|
|
2410
|
+
}, hideTacheHistoryTooltip() {
|
|
2411
|
+
this.showTacheHistory = false;
|
|
2412
|
+
}, updateTacheHistoryTooltipPosition(e2) {
|
|
2413
|
+
const t2 = g(e2);
|
|
2414
|
+
this.tooltipPosition = { left: t2.x + "px", top: t2.y + "px" };
|
|
2415
|
+
} } }, lr = { ref: "svgContainer", style: { position: "relative" } }, rr = r.createElementVNode("defs", null, [r.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [r.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
|
|
2416
|
+
const nr = M(or, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2417
|
+
const a2 = r.resolveComponent("virtual-transition"), s2 = r.resolveComponent("selection-region"), d2 = r.resolveComponent("tache-history-tooltip");
|
|
2418
|
+
return r.openBlock(), r.createElementBlock("div", lr, [(r.openBlock(), r.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: t2[0] || (t2[0] = (...e3) => i2.mousedown && i2.mousedown(...e3)), onMousemove: t2[1] || (t2[1] = (...e3) => i2.mousemove && i2.mousemove(...e3)), onMouseup: t2[2] || (t2[2] = (...e3) => i2.mouseup && i2.mouseup(...e3)), onMouseleave: t2[3] || (t2[3] = (...e3) => i2.mouseleave && i2.mouseleave(...e3)), onDblclick: t2[4] || (t2[4] = (t3) => e2.setPropertiesEditorFor("Process")) }, [rr, (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.taches, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, onMouseenter: i2.showTacheHistoryTooltip, onMouseleave: i2.hideTacheHistoryTooltip, onMousemove: i2.updateTacheHistoryTooltipPosition }, null, 40, ["model", "onMouseenter", "onMouseleave", "onMousemove"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.transitions, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128)), r.createVNode(a2, { toPosition: e2.currentPosition }, null, 8, ["toPosition"]), r.createVNode(s2, { region: e2.region }, null, 8, ["region"])], 32)), !o2.showHistory && e2.propertiesEditorFor ? (r.openBlock(), r.createBlock(r.resolveDynamicComponent(e2.propertiesEditorFor + "PropertiesEditor"), { key: 0, model: e2.selectedTaches[0] || e2.selectedTransition || o2.process, onClose: t2[5] || (t2[5] = (t3) => e2.setPropertiesEditorFor("")) }, null, 40, ["model"])) : r.createCommentVNode("", true), o2.showHistory && e2.showTacheHistory ? (r.openBlock(), r.createBlock(d2, { key: 1, style: r.normalizeStyle(e2.tooltipPosition) }, null, 8, ["style"])) : r.createCommentVNode("", true)], 512);
|
|
2419
|
+
}]]), ir = { name: "ContextMenu", components: { IconSvg: $ }, data() {
|
|
2420
|
+
return { menusForTransition: [{ name: "switch-line-type-StraightLine", label: this.$t("workflowEditor.main.straightLine"), icon: "switch" }, { name: "switch-line-type-CurveLine", label: this.$t("workflowEditor.main.curveLine"), icon: "switch" }, { name: "switch-line-type-BrokenLine", label: this.$t("workflowEditor.main.brokenLine"), icon: "switch" }, { name: "remove", label: this.$t("workflowEditor.common.remove"), icon: "delete" }, { name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], menusForTache: [{ name: "remove", label: this.$t("workflowEditor.common.remove"), icon: "delete" }, { name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], menusForProcess: [{ name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], componentsWithoutPropertiesEditor: ["Start", "End"] };
|
|
2421
|
+
}, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "selectedTransition", "selectedTaches"]), menuType() {
|
|
2422
|
+
let e2 = "";
|
|
2423
|
+
return this.selectedTransition ? e2 = "Transition" : 1 === this.selectedTaches.length && (e2 = "Tache"), null === this.selectedTransition && 0 === this.selectedTaches.length && (e2 = "Process"), e2;
|
|
2424
|
+
}, menus() {
|
|
2425
|
+
return this.menuType ? this["menusFor" + this.menuType] : [];
|
|
2426
|
+
} }, created() {
|
|
2427
|
+
if (this.selectedTaches.length > 0) {
|
|
2428
|
+
const e2 = this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type;
|
|
2429
|
+
this.menuType && "Tache" === this.menuType && e2 && this.menusForTache.push({ name: "copy", label: this.$t("workflowEditor.common.copy"), icon: "fuzhi" });
|
|
2430
|
+
}
|
|
2431
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible", "setSourceComponentForCopy"]), switchLineType(e2) {
|
|
2432
|
+
this.selectedTransition.lineInfo.controlPoint = null, this.selectedTransition.lineInfo.type = e2;
|
|
2433
|
+
}, execute(e2) {
|
|
2434
|
+
if (e2.indexOf("switch-line-type-") >= 0) {
|
|
2435
|
+
const t2 = e2.substring(e2.lastIndexOf("-") + 1);
|
|
2436
|
+
this.switchLineType(t2);
|
|
2437
|
+
}
|
|
2438
|
+
"remove" === e2 && ("Tache" === this.menuType ? this.taches.splice(this.taches.indexOf(this.selectedTaches[0]), 1) : "Transition" === this.menuType && this.transitions.splice(this.transitions.indexOf(this.selectedTransition), 1)), "properties" === e2 && ("Tache" === this.menuType ? this.setPropertiesEditorFor(this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type) : "Transition" === this.menuType ? this.setPropertiesEditorFor("Transition") : this.setPropertiesEditorFor("Process")), "copy" === e2 && this.setSourceComponentForCopy(this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type), this.setContextMenuVisible(false);
|
|
2439
|
+
} } }, ar = { class: "context-menu" }, sr = ["onMousedown"];
|
|
2440
|
+
const dr = { name: "WorkflowEditor", components: { WorkflowCanvas: nr, Toolbox: O, IconSvg: $, ContextMenu: M(ir, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2441
|
+
const a2 = r.resolveComponent("icon-svg");
|
|
2442
|
+
return r.openBlock(), r.createElementBlock("ul", ar, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.menus, (e3) => (r.openBlock(), r.createElementBlock("li", { key: e3.name, onMousedown: r.withModifiers((t3) => i2.execute(e3.name), ["stop"]) }, [r.createVNode(a2, { icon: e3.icon }, null, 8, ["icon"]), r.createElementVNode("span", null, r.toDisplayString(e3.label), 1)], 40, sr))), 128))]);
|
|
2443
|
+
}], ["__scopeId", "data-v-7e8a1cf6"]]), AdminSaveDialog: M({ name: "AdminSaveDialog", data: () => ({ dialogVisible: true }), methods: { updateWfVersion() {
|
|
2444
|
+
this.$emit("update");
|
|
2445
|
+
}, addWfVersion() {
|
|
2446
|
+
this.$emit("add");
|
|
2447
|
+
} } }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2448
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-dialog");
|
|
2449
|
+
return r.openBlock(), r.createBlock(s2, { "model-value": "", title: e2.$t("workflowEditorPublicModel.tipTitle"), center: true, top: "10vh", "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { footer: r.withCtx(() => [r.createVNode(a2, { onClick: i2.updateWfVersion }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.updateVersion")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", onClick: i2.addWfVersion }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.addVersion")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { onClick: t2[0] || (t2[0] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createElementVNode("div", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip")), 1), r.createElementVNode("ul", null, [r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip1")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip2")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip3")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip4")), 1)]), r.createElementVNode("div", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip5")), 1)]), _: 1 }, 8, ["title"]);
|
|
2450
|
+
}]]) }, props: { code: { type: String, default: null }, version: { type: Number, default: null }, id: { type: Number, default: null }, readonly: { type: Boolean, default: false }, systemCode: { type: String, default: null }, systemPublishVersion: { type: Number, default: null }, pageCode: { type: String, default: null } }, data: function() {
|
|
2451
|
+
return { activeTab: "canvas", count: 1, currentPosition: { x: 0, y: 0 }, process: null, definitionId: null, xml: "", contextMenuPosition: null, isAdminSave: false, isShowEnable: false, defVersion: 0, workflowDefVersionList: [], isShowDefVersionList: false, canvasKey: 0 };
|
|
2452
|
+
}, computed: { ...t.mapGetters("wfEditor", ["componentToDraw", "taches", "selectedTaches", "transitions", "contextMenuVisible", "systemVersion", "tableCode", "pageCode", "sourceComponentType"]), ...t.mapGetters(["sidebar"]), componentInfo() {
|
|
2453
|
+
return function(e2) {
|
|
2454
|
+
const t2 = f().filter((t3) => t3.name === e2);
|
|
2455
|
+
return t2.length > 0 ? t2[0] : null;
|
|
2456
|
+
}(this.componentToDraw);
|
|
2457
|
+
} }, watch: { activeTab(e2) {
|
|
2458
|
+
"xml" === e2 && (this.xml = this.getProcessXml(), this.$nextTick(function() {
|
|
2459
|
+
a.highlightElement(this.$refs.xml);
|
|
2460
|
+
}));
|
|
2461
|
+
}, sourceComponentType(e2) {
|
|
2462
|
+
e2 && this.copyTache();
|
|
2463
|
+
} }, created: function() {
|
|
2464
|
+
o.authApi.setSessionCache("wf_editor_systemVersion", this.systemPublishVersion), this.setPageCode(this.pageCode), this.systemCode && this.setSystemCode(this.systemCode), this.systemCode && this.getWorkflowDefVersionList(), this.clearCanvas(), this.id && (this.definitionId = this.id), this.code, this.id, this.code || this.id ? this.initShowDefinitionWhenUpdate(this.id, this.code, this.version) : (this.isShowEnable = false, window.$store.commit("wfEditor/setIsCreateDefinition", "true"), this.process = S.newProcess(), V(this.process));
|
|
2465
|
+
}, mounted: function() {
|
|
2466
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setSystemCode", "setSystemVersion", "setProcessCode", "setPageCode", "setSourceComponentForCopy"]), initShowDefinitionWhenUpdate(e2, t2, o2) {
|
|
2467
|
+
window.$store.commit("wfEditor/setIsCreateDefinition", "false");
|
|
2468
|
+
let l2 = this.baseAPI + "/wf-editor/open-xmls/with-definitions";
|
|
2469
|
+
l2 = this.packageUrlParam(l2, e2, t2, o2), this.$http.get(l2).then((e3) => {
|
|
2470
|
+
const t3 = e3.definition;
|
|
2471
|
+
if (t3) {
|
|
2472
|
+
this.definitionId = t3.id, this.defVersion = t3.definitionVersion, window.$store.commit("wfEditor/setTableCode", t3.tableCode);
|
|
2473
|
+
const e4 = t3.enable;
|
|
2474
|
+
this.isShowEnable = !e4 || "ENABLE" !== e4, t3.formCode ? window.$store.commit("wfEditor/setIsHandleCreate", "true") : window.$store.commit("wfEditor/setIsHandleCreate", "false");
|
|
2475
|
+
}
|
|
2476
|
+
const o3 = e3.xml;
|
|
2477
|
+
this.initProcessByXml(o3, t3), this.canvasKey++;
|
|
2478
|
+
});
|
|
2479
|
+
}, getWorkflowDefVersionList() {
|
|
2480
|
+
this.isShowDefVersionList = false;
|
|
2481
|
+
let e2 = { wfDefinitionCode: this.code, publishVersion: this.systemPublishVersion };
|
|
2482
|
+
o.http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/workflow-definitions/version-list", e2).then((e3) => {
|
|
2483
|
+
this.workflowDefVersionList = e3, e3.length > 0 && !this.defVersion && (this.defVersion = e3[0].definitionVersion), this.isShowDefVersionList = true;
|
|
2484
|
+
});
|
|
2485
|
+
}, showContextMenu(e2) {
|
|
2486
|
+
this.setContextMenuVisible(true);
|
|
2487
|
+
const t2 = this.$refs.wfEditor.getBoundingClientRect();
|
|
2488
|
+
this.contextMenuPosition = { x: e2.clientX - t2.x, y: e2.clientY - t2.y };
|
|
2489
|
+
}, changeDefVersion(e2) {
|
|
2490
|
+
const t2 = this.workflowDefVersionList.filter((t3) => t3.definitionVersion === e2);
|
|
2491
|
+
if (t2 && t2.length > 0) {
|
|
2492
|
+
const e3 = t2[0];
|
|
2493
|
+
this.clearCanvas(), this.initShowDefinitionWhenUpdate(e3.id, e3.code, e3.definitionVersion), this.$emit("changeDefVersion", e3);
|
|
2494
|
+
}
|
|
2495
|
+
}, initProcessByXml(e2, t2) {
|
|
2496
|
+
if (e2) {
|
|
2497
|
+
const t3 = { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 }, o2 = n.xml2js(e2, t3);
|
|
2498
|
+
b(o2.process), this.process = o2.process;
|
|
2499
|
+
} else
|
|
2500
|
+
this.process = S.newProcess(), this.initProcessBaseInfo(t2);
|
|
2501
|
+
this.process && this.process.properties && this.process.properties.basicProperties ? this.setSystemCode(this.process.properties.basicProperties.systemCode) : this.setSystemCode(this.systemCode), this.process && this.process.attr && this.setProcessCode(this.process.attr.code), this.fetchFormFields(), this.clearCanvas(), V(this.process), this.count = this.getMaxCount() + 1;
|
|
2502
|
+
}, initProcessBaseInfo(e2) {
|
|
2503
|
+
this.process.attr.name = e2.name, this.process.attr.code = e2.code, this.process.properties.basicProperties.systemCode = e2.systemCode, this.pageCode && (this.process.properties.parameterSettings || (this.process.properties.parameterSettings = {}), this.process.properties.parameterSettings.doTask || (this.process.properties.parameterSettings.doTask = {}), this.process.properties.parameterSettings.doTask.url = "page:" + this.pageCode);
|
|
2504
|
+
}, fetchFormFields() {
|
|
2505
|
+
const e2 = this.process.properties.basicProperties, t2 = e2.formCode, o2 = e2.formVersion;
|
|
2506
|
+
this.tableCode, t2 && "" !== t2 && o2 ? Ml.fetchFormFields(e2.formCode, e2.formVersion, null, this.systemPublishVersion) : this.tableCode && Ml.fetchFormFields(null, null, this.tableCode, this.systemPublishVersion);
|
|
2507
|
+
}, packageUrlParam: (e2, t2, o2, l2) => (t2 ? e2 = e2 + "?id=" + t2 : o2 && (e2 = e2 + "?code=" + o2 + "&version=" + l2), e2), getProcessXml() {
|
|
2508
|
+
const e2 = { start: [], humanTask: [], decision: [], transition: [], fork: [], join: [], subprocess: [], humanDecision: [], copyTask: [], autoTask: [], end: [] };
|
|
2509
|
+
e2.attr = this.process.attr, e2.properties = this.process.properties, this.taches.map((t3) => {
|
|
2510
|
+
const o2 = t3.type;
|
|
2511
|
+
e2[o2.charAt(0).toLowerCase() + o2.substring(1)].push(t3.ref), t3.ref.g = { x: t3.x, y: t3.y, width: t3.width, height: t3.height };
|
|
2512
|
+
}), this.transitions.map((t3) => {
|
|
2513
|
+
if (e2.transition.push(t3.ref), t3.ref.g = { fromJoint: t3.startJoint.position, toJoint: t3.endJoint.position, coordinate: "", lineType: t3.lineInfo.type }, "CurveLine" === t3.lineInfo.type && t3.lineInfo.controlPoint)
|
|
2514
|
+
t3.ref.g.coordinate = t3.lineInfo.controlPoint.x + "," + t3.lineInfo.controlPoint.y;
|
|
2515
|
+
else if ("BrokenLine" === t3.lineInfo.type && t3.lineInfo.controlPoint) {
|
|
2516
|
+
let e3 = "";
|
|
2517
|
+
t3.lineInfo.controlPoint.forEach((t4) => {
|
|
2518
|
+
e3 += t4.x + "," + t4.y + ";";
|
|
2519
|
+
}), t3.ref.g.coordinate = e3;
|
|
2520
|
+
}
|
|
2521
|
+
});
|
|
2522
|
+
let t2 = n.json2xml({ process: e2 }, { attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
|
|
2523
|
+
return t2 = '<?xml version="1.0" encoding="utf-8"?>\n' + t2, t2;
|
|
2524
|
+
}, saveXml() {
|
|
2525
|
+
const e2 = this.getProcessXml();
|
|
2526
|
+
if (this.code || this.id || this.definitionId)
|
|
2527
|
+
this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
|
|
2528
|
+
this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.$alert(this.$t("workflowEditorMessage.updateSuccessful"));
|
|
2529
|
+
});
|
|
2530
|
+
else {
|
|
2531
|
+
const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
|
|
2532
|
+
this.$http.post(this.baseAPI + "/wf-editor/workflow-definitions", t2).then((e3) => {
|
|
2533
|
+
this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.definitionId = e3.id, this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"));
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
}, saveWf(e2, t2, o2) {
|
|
2537
|
+
return new Promise((o3, l2) => {
|
|
2538
|
+
const r2 = this.packageSaveXmlParam(e2);
|
|
2539
|
+
this.$http.post(t2, r2).then((e3) => {
|
|
2540
|
+
this.definitionId = e3.id, o3();
|
|
2541
|
+
});
|
|
2542
|
+
});
|
|
2543
|
+
}, packageSaveXmlParam(e2) {
|
|
2544
|
+
const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
|
|
2545
|
+
return this.definitionId ? t2.id = this.definitionId : this.id ? t2.id = this.id : this.code && (t2.code = this.code, t2.version = this.version), t2;
|
|
2546
|
+
}, adminSave() {
|
|
2547
|
+
const e2 = this.getProcessXml();
|
|
2548
|
+
if (this.code || this.id || this.definitionId) {
|
|
2549
|
+
const t2 = this.baseAPI + "/wf-editor/workflow-definitions/states", o2 = {};
|
|
2550
|
+
this.definitionId ? o2.id = this.definitionId : this.id ? o2.id = this.id : this.code && (o2.code = this.code, o2.version = this.version), this.$http.post(t2, o2).then((t3) => {
|
|
2551
|
+
"DRAFT" === t3 ? this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
|
|
2552
|
+
this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.$alert(this.$t("workflowEditorMessage.updateSuccessful"));
|
|
2553
|
+
}) : this.isAdminSave = true;
|
|
2554
|
+
});
|
|
2555
|
+
} else {
|
|
2556
|
+
const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
|
|
2557
|
+
this.$http.post(this.baseAPI + "/wf-editor/workflow-definitions", t2).then((e3) => {
|
|
2558
|
+
this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.definitionId = e3.id, this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"));
|
|
2559
|
+
});
|
|
2560
|
+
}
|
|
2561
|
+
}, updateWfVersion() {
|
|
2562
|
+
const e2 = this.getProcessXml();
|
|
2563
|
+
this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/update-version").then(() => {
|
|
2564
|
+
window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.isAdminSave = false, this.$alert(this.$t("workflowEditorMessage.updateVersionSuccessful"));
|
|
2565
|
+
});
|
|
2566
|
+
}, addWfVersion() {
|
|
2567
|
+
const e2 = this.getProcessXml();
|
|
2568
|
+
this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
|
|
2569
|
+
this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.isAdminSave = false, this.$alert(this.$t("workflowEditorMessage.addVersionSuccessful"));
|
|
2570
|
+
});
|
|
2571
|
+
}, exportProcessFromClient() {
|
|
2572
|
+
const e2 = new Blob([this.getProcessXml()], { type: "text/xml;charset=utf-8" });
|
|
2573
|
+
i.saveAs(e2, this.process.attr.name + ".xml");
|
|
2574
|
+
}, exportProcess() {
|
|
2575
|
+
const e2 = this.getProcessXml();
|
|
2576
|
+
this.$http({ method: "post", url: this.baseAPI + "/wf-editor/save-as-xmls", data: { xmlContent: e2 } }).then((e3) => {
|
|
2577
|
+
this.download(e3), this.$t("workflowEditorMessage.exportSucceeded");
|
|
2578
|
+
});
|
|
2579
|
+
}, download(e2) {
|
|
2580
|
+
if (!e2)
|
|
2581
|
+
return;
|
|
2582
|
+
const t2 = window.URL.createObjectURL(new Blob([e2])), o2 = document.createElement("a");
|
|
2583
|
+
o2.style.display = "none", o2.href = t2, o2.setAttribute("download", "myXml.xml"), document.body.appendChild(o2), o2.click();
|
|
2584
|
+
}, uploadSuccess(e2, t2, o2) {
|
|
2585
|
+
const l2 = e2;
|
|
2586
|
+
this.clearCanvas(), this.initProcessByXml(l2), this.$refs.upload.clearFiles();
|
|
2587
|
+
}, getCurrentPosition(e2) {
|
|
2588
|
+
if (this.componentToDraw) {
|
|
2589
|
+
const t2 = this.$refs.wfEditor.getBoundingClientRect();
|
|
2590
|
+
this.currentPosition = { x: e2.clientX - t2.x - 22, y: e2.clientY - t2.y - 22 };
|
|
2591
|
+
}
|
|
2592
|
+
}, startDrag(e2) {
|
|
2593
|
+
this.getCurrentPosition(e2);
|
|
2594
|
+
}, drag(e2) {
|
|
2595
|
+
this.getCurrentPosition(e2);
|
|
2596
|
+
}, endDrag() {
|
|
2597
|
+
this.componentToDraw && this.setComponentToDraw("");
|
|
2598
|
+
}, addTache(e2) {
|
|
2599
|
+
if (this.componentToDraw) {
|
|
2600
|
+
const t2 = g(e2), o2 = S["new" + this.componentToDraw]();
|
|
2601
|
+
o2.attr.id = this.componentToDraw.charAt(0).toLowerCase() + this.componentToDraw.substring(1) + "_" + this.count;
|
|
2602
|
+
const l2 = { id: o2.attr.id, name: o2.attr.name, x: t2.x - this.componentInfo.width / 2, y: t2.y - this.componentInfo.height / 2, width: this.componentInfo.width, height: this.componentInfo.height, type: this.componentToDraw, isSelected: false };
|
|
2603
|
+
l2.ref = o2, this.taches.push(l2), this.count++;
|
|
2604
|
+
}
|
|
2605
|
+
}, copyTache() {
|
|
2606
|
+
const e2 = this.selectedTaches && this.selectedTaches.length > 0 ? this.selectedTaches[0] : null;
|
|
2607
|
+
if (!e2)
|
|
2608
|
+
return;
|
|
2609
|
+
const t2 = JSON.parse(JSON.stringify(e2)), o2 = t2.type, l2 = t2.ref;
|
|
2610
|
+
l2.attr.id = o2.charAt(0).toLowerCase() + o2.substring(1) + "_" + this.count, l2.attr.name = e2.name + "_copy", t2.id = l2.attr.id, t2.name = l2.attr.name, t2.x = e2.x + 20, t2.y = e2.y + 20, t2.isSelected = false, t2.ref = l2, this.taches.push(t2), this.count++, this.setSourceComponentForCopy("");
|
|
2611
|
+
}, clearStatus() {
|
|
2612
|
+
this.componentToDraw && this.setComponentToDraw("");
|
|
2613
|
+
}, getMaxCount() {
|
|
2614
|
+
let e2 = 0;
|
|
2615
|
+
return this.taches.map((t2) => {
|
|
2616
|
+
let o2 = t2.id.substring(t2.id.lastIndexOf("_") + 1);
|
|
2617
|
+
o2 = +o2, e2 < o2 && (e2 = o2);
|
|
2618
|
+
}), e2;
|
|
2619
|
+
}, selectProcessFile() {
|
|
2620
|
+
this.$refs.processFile.click();
|
|
2621
|
+
}, openXmlFromClient() {
|
|
2622
|
+
if ("" === this.$refs.processFile.value)
|
|
2623
|
+
return;
|
|
2624
|
+
const e2 = this.$refs.processFile.files[0], t2 = new FileReader();
|
|
2625
|
+
t2.readAsText(e2);
|
|
2626
|
+
const o2 = this;
|
|
2627
|
+
t2.onload = function() {
|
|
2628
|
+
o2.clearCanvas(), o2.initProcessByXml(t2.result), o2.$refs.processFile.value = "";
|
|
2629
|
+
};
|
|
2630
|
+
}, enableWf() {
|
|
2631
|
+
this.definitionId && this.$http.put(this.baseAPI + "/wf-editor/workflow-editors/" + this.definitionId + "/states").then(() => {
|
|
2632
|
+
this.getWorkflowDefVersionList(), this.isShowEnable = false, this.$alert(this.$t("workflowEditorMessage.enabledSuccessfully"));
|
|
2633
|
+
});
|
|
2634
|
+
} } }, cr = { style: { width: "100%", height: "100%", background: "#fff" } }, mr = { key: 0, class: "xml line-numbers" };
|
|
2635
|
+
const ur = M(dr, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2636
|
+
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-option"), d2 = r.resolveComponent("el-select"), c2 = r.resolveComponent("el-row"), m2 = r.resolveComponent("toolbox"), u2 = r.resolveComponent("workflow-canvas"), p2 = r.resolveComponent("el-tab-pane"), h2 = r.resolveComponent("el-tabs"), f2 = r.resolveComponent("icon-svg"), w2 = r.resolveComponent("context-menu"), g2 = r.resolveComponent("admin-save-dialog"), C2 = r.resolveDirective("permission");
|
|
2637
|
+
return r.openBlock(), r.createElementBlock("div", { ref: "wfEditor", style: { position: "relative", height: "100%" }, onMousedown: t2[9] || (t2[9] = (t3) => e2.setContextMenuVisible(false)), onMousewheel: t2[10] || (t2[10] = (t3) => e2.setContextMenuVisible(false)) }, [r.createVNode(c2, { class: "button-area" }, { default: r.withCtx(() => [o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(a2, { key: 0, type: "primary", onClick: i2.saveXml }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])), o2.readonly ? r.createCommentVNode("", true) : r.withDirectives((r.openBlock(), r.createBlock(a2, { key: 1, class: "button--default", onClick: i2.adminSave }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.adminSave")), 1)]), _: 1 }, 8, ["onClick"])), [[C2, "wf.workflowDefinition.adminSave"]]), e2.isShowEnable ? (r.openBlock(), r.createBlock(a2, { key: 2, class: "button--default", onClick: i2.enableWf }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.enable")), 1)]), _: 1 }, 8, ["onClick"])) : r.createCommentVNode("", true), r.createVNode(a2, { class: "button--default", onClick: i2.exportProcessFromClient }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.export")), 1)]), _: 1 }, 8, ["onClick"]), o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(a2, { key: 3, class: "button--default", onClick: i2.selectProcessFile }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.open")) + " ", 1), r.createElementVNode("input", { ref: "processFile", type: "file", name: "processFile", accept: ".xml", style: { display: "none" }, onChange: t2[0] || (t2[0] = (...e3) => i2.openXmlFromClient && i2.openXmlFromClient(...e3)) }, null, 544)]), _: 1 }, 8, ["onClick"])), r.createVNode(a2, { type: "primary", class: "button--return", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("back")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }), e2.isShowDefVersionList ? (r.openBlock(), r.createBlock(d2, { key: 4, modelValue: e2.defVersion, "onUpdate:modelValue": t2[2] || (t2[2] = (t3) => e2.defVersion = t3), style: { "padding-left": "10px", width: "200px" }, onChange: i2.changeDefVersion }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.workflowDefVersionList, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3.definitionVersion, label: e3.definitionVersion, value: e3.definitionVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }), r.createElementVNode("div", { class: "main", onMousedown: t2[4] || (t2[4] = (...e3) => i2.startDrag && i2.startDrag(...e3)), onMousemove: t2[5] || (t2[5] = (...e3) => i2.drag && i2.drag(...e3)), onMouseup: t2[6] || (t2[6] = (...e3) => i2.endDrag && i2.endDrag(...e3)), onMouseleave: t2[7] || (t2[7] = (...e3) => i2.clearStatus && i2.clearStatus(...e3)) }, [o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(m2, { key: 0, class: "toolbox", onselectstart: "return false", oncontextmenu: "return false" })), (r.openBlock(), r.createElementBlock("section", { class: "tabBox", key: e2.canvasKey }, [r.createVNode(h2, { modelValue: e2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (t3) => e2.activeTab = t3), class: "tabs" }, { default: r.withCtx(() => [r.createVNode(p2, { label: e2.$t("workflowEditorPublicModel.flowChart"), name: "canvas", class: "tab-pane" }, { default: r.withCtx(() => [r.createVNode(u2, { onselectstart: "return false", process: e2.process, class: "canvas", onMouseup: i2.addTache, onContextmenu: r.withModifiers(i2.showContextMenu, ["prevent"]) }, null, 8, ["process", "onMouseup", "onContextmenu"])]), _: 1 }, 8, ["label"]), r.createVNode(p2, { label: "XML", name: "xml", class: "tab-pane" }, { default: r.withCtx(() => [r.createElementVNode("div", cr, ["xml" === e2.activeTab ? (r.openBlock(), r.createElementBlock("pre", mr, [r.createElementVNode("code", { ref: "xml", class: "language-xml" }, r.toDisplayString(e2.xml), 513)])) : r.createCommentVNode("", true)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]))], 32), e2.componentToDraw ? (r.openBlock(), r.createBlock(f2, { key: 0, style: r.normalizeStyle({ height: i2.componentInfo.height, width: i2.componentInfo.width, color: i2.componentInfo.color, left: e2.currentPosition.x + "px", top: e2.currentPosition.y + "px" }), icon: i2.componentInfo.icon, class: "component-icon" }, null, 8, ["style", "icon"])) : r.createCommentVNode("", true), e2.contextMenuVisible ? (r.openBlock(), r.createBlock(w2, { key: 1, style: r.normalizeStyle({ position: "absolute", left: e2.contextMenuPosition.x + "px", top: e2.contextMenuPosition.y + "px" }) }, null, 8, ["style"])) : r.createCommentVNode("", true), e2.isAdminSave ? (r.openBlock(), r.createBlock(g2, { key: 2, onClose: t2[8] || (t2[8] = (t3) => e2.isAdminSave = false), onUpdate: i2.updateWfVersion, onAdd: i2.addWfVersion }, null, 8, ["onUpdate", "onAdd"])) : r.createCommentVNode("", true)], 544);
|
|
2638
|
+
}], ["__scopeId", "data-v-865cb4ee"]]), pr = { namespaced: true, state: { taches: [], transitions: [], startJoint: null, endJoint: null, isMovingTache: false, mouseDownPosition: null, isDrawingRegion: false, isMovingRegion: false, selectedTaches: [], selectedTransition: null, resizerToMove: null, draggerToMove: null, propertiesEditorFor: "", componentToDraw: "", controlPointToMove: null, formFields: [], formFieldsWithSub: [], contextMenuVisible: false, formCode: null, systemCode: null, systemVersion: null, processCode: null, processI18n: null, subtableConditionMap: null, propSettingKeyList: null, tableCode: null, isCreateDefinition: "", isHandleCreate: "", pageCode: null, sourceComponentType: "" }, getters: { taches: (e2) => e2.taches, transitions: (e2) => e2.transitions, startJoint: (e2) => e2.startJoint, endJoint: (e2) => e2.endJoint, isMovingTache: (e2) => e2.isMovingTache, mouseDownPosition: (e2) => e2.mouseDownPosition, isDrawingRegion: (e2) => e2.isDrawingRegion, isMovingRegion: (e2) => e2.isMovingRegion, selectedTaches: (e2) => e2.selectedTaches, selectedTransition: (e2) => e2.selectedTransition, resizerToMove: (e2) => e2.resizerToMove, draggerToMove: (e2) => e2.draggerToMove, propertiesEditorFor: (e2) => e2.propertiesEditorFor, componentToDraw: (e2) => e2.componentToDraw, controlPointToMove: (e2) => e2.controlPointToMove, formFields: (e2) => e2.formFields, formCode: (e2) => e2.formCode, formFieldsWithSub: (e2) => e2.formFieldsWithSub, contextMenuVisible: (e2) => e2.contextMenuVisible, systemCode: (e2) => e2.systemCode, processCode: (e2) => e2.processCode, processI18n: (e2) => e2.processI18n, subtableConditionMap: (e2) => e2.subtableConditionMap, propSettingKeyList: (e2) => e2.propSettingKeyList, systemVersion: (e2) => e2.systemVersion, tableCode: (e2) => e2.tableCode, isHandleCreate: (e2) => e2.isHandleCreate, isCreateDefinition: (e2) => e2.isCreateDefinition, pageCode: (e2) => e2.pageCode, sourceComponentType: (e2) => e2.sourceComponentType }, mutations: { setTaches(e2, t2) {
|
|
2639
|
+
e2.taches = t2;
|
|
2640
|
+
}, setTransitions(e2, t2) {
|
|
2641
|
+
e2.transitions = t2;
|
|
2642
|
+
}, clearCanvas(e2) {
|
|
2643
|
+
e2.taches = [], e2.transitions = [];
|
|
2644
|
+
}, resetState(e2) {
|
|
2645
|
+
e2.isMovingTache = false, e2.startJoint = null, e2.endJoint = null, e2.isDrawingRegion = false, e2.isMovingRegion = false, e2.resizerToMove = null, e2.draggerToMove = null, e2.controlPointToMove = null;
|
|
2646
|
+
}, stopDrawingLine(e2) {
|
|
2647
|
+
e2.startJoint = null, e2.endJoint = null;
|
|
2648
|
+
}, setStartJoint(e2, t2) {
|
|
2649
|
+
e2.startJoint = t2;
|
|
2650
|
+
}, setEndJoint(e2, t2) {
|
|
2651
|
+
e2.endJoint = t2;
|
|
2652
|
+
}, setMovingTache(e2, t2) {
|
|
2653
|
+
e2.isMovingTache = t2;
|
|
2654
|
+
}, setMouseDownPosition(e2, t2) {
|
|
2655
|
+
e2.mouseDownPosition = t2;
|
|
2656
|
+
}, setDrawingRegion(e2, t2) {
|
|
2657
|
+
e2.isDrawingRegion = t2;
|
|
2658
|
+
}, setMovingRegion(e2, t2) {
|
|
2659
|
+
e2.isMovingRegion = t2;
|
|
2660
|
+
}, setSelectedTaches(e2, t2) {
|
|
2661
|
+
e2.selectedTaches = t2;
|
|
2662
|
+
}, setSelectedTransition(e2, t2) {
|
|
2663
|
+
e2.selectedTransition = t2;
|
|
2664
|
+
}, setResizerToMove(e2, t2) {
|
|
2665
|
+
e2.resizerToMove = t2;
|
|
2666
|
+
}, setDraggerToMove(e2, t2) {
|
|
2667
|
+
e2.draggerToMove = t2;
|
|
2668
|
+
}, setPropertiesEditorFor(e2, t2) {
|
|
2669
|
+
e2.propertiesEditorFor = t2;
|
|
2670
|
+
}, setComponentToDraw(e2, t2) {
|
|
2671
|
+
e2.componentToDraw = t2;
|
|
2672
|
+
}, setControlPointToMove(e2, t2) {
|
|
2673
|
+
e2.controlPointToMove = t2;
|
|
2674
|
+
}, setFormFields(e2, t2) {
|
|
2675
|
+
e2.formFields = t2;
|
|
2676
|
+
}, setFormCode(e2, t2) {
|
|
2677
|
+
e2.formCode = t2;
|
|
2678
|
+
}, setFormFieldsWithSub(e2, t2) {
|
|
2679
|
+
e2.formFieldsWithSub = t2;
|
|
2680
|
+
}, setContextMenuVisible(e2, t2) {
|
|
2681
|
+
e2.contextMenuVisible = t2;
|
|
2682
|
+
}, setSystemCode(e2, t2) {
|
|
2683
|
+
e2.systemCode = t2;
|
|
2684
|
+
}, setProcessCode(e2, t2) {
|
|
2685
|
+
e2.processCode = t2;
|
|
2686
|
+
}, setProcessI18n(e2, t2) {
|
|
2687
|
+
e2.processI18n = t2;
|
|
2688
|
+
}, setSubtableConditionMap(e2, t2) {
|
|
2689
|
+
e2.subtableConditionMap = t2;
|
|
2690
|
+
}, setPropSettingKeyList(e2, t2) {
|
|
2691
|
+
e2.propSettingKeyList = t2;
|
|
2692
|
+
}, setSystemVersion(e2, t2) {
|
|
2693
|
+
e2.systemVersion = t2;
|
|
2694
|
+
}, setTableCode(e2, t2) {
|
|
2695
|
+
e2.tableCode = t2;
|
|
2696
|
+
}, setTableCode(e2, t2) {
|
|
2697
|
+
e2.tableCode = t2;
|
|
2698
|
+
}, setIsCreateDefinition(e2, t2) {
|
|
2699
|
+
e2.isCreateDefinition = t2;
|
|
2700
|
+
}, setIsHandleCreate(e2, t2) {
|
|
2701
|
+
e2.isHandleCreate = t2;
|
|
2702
|
+
}, setPageCode(e2, t2) {
|
|
2703
|
+
e2.pageCode = t2;
|
|
2704
|
+
}, setSourceComponentForCopy(e2, t2) {
|
|
2705
|
+
e2.sourceComponentType = t2;
|
|
2706
|
+
} } }, hr = ["src"];
|
|
2707
|
+
const fr = { name: "WfHistoryCanvas", components: { Start: z, End: G, HumanTask: te, Decision: ie, Subprocess: ce, CustomTask: he, Fork: be, Join: Te, HumanDecision: Me, CopyTask: Pe, Transition: Ze, TacheHistoryTooltip: tr, TacheSubprocessHistoryDialog: M({ name: "TacheSubprocessHistoryDialog", props: { workflowId: { type: Number, default: null } }, data: () => ({ dialogVisible: true }) }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2708
|
+
const a2 = r.resolveComponent("el-dialog");
|
|
2709
|
+
return r.openBlock(), r.createBlock(a2, { "model-value": "", title: e2.$t("workflowEditorPublicModel.subprocessTitle"), "close-on-click-modal": false, "append-to-body": "", width: "90%", top: "5vh", onOpen: t2[0] || (t2[0] = (t3) => e2.$emit("open")), onOpend: t2[1] || (t2[1] = (t3) => e2.$emit("opend")), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")), onClosed: t2[3] || (t2[3] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createElementVNode("iframe", { id: "_subprocess-content", src: "#/show-sub-wf-history?workflowId=" + o2.workflowId, name: "_subprocess-content", title: "Subprocess Content", frameborder: "0" }, null, 8, hr)]), _: 1 }, 8, ["title"]);
|
|
2710
|
+
}], ["__scopeId", "data-v-2b195c05"]]), AutoTask: _e }, props: { process: { type: Object, default: null }, histories: { type: Array, default: null }, currentTasks: { type: Array, default: null }, allProcessI18n: { type: Object, default: null } }, data: function() {
|
|
2711
|
+
return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
|
|
2712
|
+
}, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
|
|
2713
|
+
}, methods: { getTacheClass(e2) {
|
|
2714
|
+
if (this.getCurrentTache(e2))
|
|
2715
|
+
return "current-tache";
|
|
2716
|
+
{
|
|
2717
|
+
const t2 = this.getPassedTache(e2);
|
|
2718
|
+
return t2 && t2.current ? "current-tache" : t2 ? "passed-tache" : "";
|
|
2719
|
+
}
|
|
2720
|
+
}, getPassedTache(e2) {
|
|
2721
|
+
let t2 = null;
|
|
2722
|
+
for (const o2 of this.histories)
|
|
2723
|
+
if ("PROCESS_START" === o2.historyType && e2.ref.attr.id && "start" === e2.ref.attr.id || "PROCESS_END" === o2.historyType && e2.ref.attr.id && "end" === e2.ref.attr.id || e2.ref.attr.name && o2.taskName && o2.taskName === e2.ref.attr.name) {
|
|
2724
|
+
t2 = o2;
|
|
2725
|
+
break;
|
|
2726
|
+
}
|
|
2727
|
+
return t2;
|
|
2728
|
+
}, getPassedTacheHistories(e2) {
|
|
2729
|
+
const t2 = [];
|
|
2730
|
+
for (const o2 of this.histories)
|
|
2731
|
+
("PROCESS_START" === o2.historyType && e2.ref.attr.id && "start" === e2.ref.attr.id || "PROCESS_END" === o2.historyType && e2.ref.attr.id && "end" === e2.ref.attr.id || e2.ref.attr.name && o2.taskName && o2.taskName === e2.ref.attr.name) && t2.push(this.i18nOperation(o2));
|
|
2732
|
+
return t2;
|
|
2733
|
+
}, i18nOperation(e2) {
|
|
2734
|
+
let t2, l2;
|
|
2735
|
+
const r2 = o.getLanguageWithLocale(), n2 = e2.bundleCode;
|
|
2736
|
+
return n2 && "" !== n2 && this.processI18n && (t2 = this.processI18n[n2]), t2 && t2.processName && (l2 = t2.processName[r2]), o.i18nOperation(e2, l2, t2, r2);
|
|
2737
|
+
}, getCurrentTache(e2) {
|
|
2738
|
+
let t2 = null;
|
|
2739
|
+
for (const o2 of this.currentTasks)
|
|
2740
|
+
if (o2.taskName === e2.ref.attr.name) {
|
|
2741
|
+
t2 = o2;
|
|
2742
|
+
break;
|
|
2743
|
+
}
|
|
2744
|
+
return t2;
|
|
2745
|
+
}, getTacheHistory(e2) {
|
|
2746
|
+
let t2, o2 = null;
|
|
2747
|
+
const l2 = this.getPassedTacheHistories(e2);
|
|
2748
|
+
l2 && l2.length > 0 && (t2 = l2.join("</br>"));
|
|
2749
|
+
const r2 = this.getCurrentTache(e2);
|
|
2750
|
+
return r2 ? (o2 = this.$t("workflowEditorMessage.currentHandlingPersonnel") + ": " + r2.transactionResult, t2 && (o2 += "</br>" + t2)) : o2 = t2, o2;
|
|
2751
|
+
}, forbidSelection: () => false, mousedown(e2) {
|
|
2752
|
+
}, mousemove(e2) {
|
|
2753
|
+
}, mouseup(e2) {
|
|
2754
|
+
}, mouseleave(e2) {
|
|
2755
|
+
}, endDrag(e2) {
|
|
2756
|
+
}, showTacheHistoryTooltip(e2, t2) {
|
|
2757
|
+
this.tacheHistoryInfo = this.getTacheHistory(e2), this.showHistory = true;
|
|
2758
|
+
}, hideTacheHistoryTooltip() {
|
|
2759
|
+
this.showHistory = false;
|
|
2760
|
+
}, updateTacheHistoryTooltipPosition(e2) {
|
|
2761
|
+
const t2 = g(e2);
|
|
2762
|
+
this.tooltipPosition = { left: t2.x + 5 + "px", top: t2.y + 5 + "px" };
|
|
2763
|
+
}, showSubprocessHistory(e2) {
|
|
2764
|
+
const t2 = this.getPassedTache(e2);
|
|
2765
|
+
t2 && void 0 !== t2.hasChildren && true === t2.hasChildren && (t2.children && t2.children.length > 0 && (this.subWorkflowId = t2.children[0].workflowId), this.showSubprocessDialog = true);
|
|
2766
|
+
}, closeSubprocessHistory() {
|
|
2767
|
+
this.showSubprocessDialog = false;
|
|
2768
|
+
} } }, wr = { ref: "svgContainer", style: { position: "relative" } }, gr = r.createElementVNode("defs", null, [r.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [r.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
|
|
2769
|
+
const Cr = M(fr, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2770
|
+
const a2 = r.resolveComponent("tache-history-tooltip"), s2 = r.resolveComponent("tache-subprocess-history-dialog");
|
|
2771
|
+
return r.openBlock(), r.createElementBlock("div", wr, [(r.openBlock(), r.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: t2[0] || (t2[0] = (...e3) => i2.mousedown && i2.mousedown(...e3)), onMousemove: t2[1] || (t2[1] = (...e3) => i2.mousemove && i2.mousemove(...e3)), onMouseup: t2[2] || (t2[2] = (...e3) => i2.mouseup && i2.mouseup(...e3)), onMouseleave: t2[3] || (t2[3] = (...e3) => i2.mouseleave && i2.mouseleave(...e3)) }, [gr, (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.taches, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, class: r.normalizeClass([i2.getTacheClass(e3)]), "display-mode": e3.displayMode, onMouseenter: (t3) => i2.showTacheHistoryTooltip(e3, t3), onMouseleave: (t3) => i2.hideTacheHistoryTooltip(e3), onMousemove: i2.updateTacheHistoryTooltipPosition, onClick: (t3) => i2.showSubprocessHistory(e3) }, null, 40, ["model", "class", "display-mode", "onMouseenter", "onMouseleave", "onMousemove", "onClick"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.transitions, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128))], 32)), e2.showHistory && e2.tacheHistoryInfo ? (r.openBlock(), r.createBlock(a2, { key: 0, style: r.normalizeStyle(e2.tooltipPosition), content: e2.tacheHistoryInfo }, null, 8, ["style", "content"])) : r.createCommentVNode("", true), e2.showSubprocessDialog ? (r.openBlock(), r.createBlock(s2, { key: 1, "workflow-id": e2.subWorkflowId, onClose: i2.closeSubprocessHistory }, null, 8, ["workflow-id", "onClose"])) : r.createCommentVNode("", true)], 512);
|
|
2772
|
+
}]]), br = { refresh() {
|
|
2773
|
+
this.showHistory();
|
|
2774
|
+
} }, kr = { name: "WorkflowHistory", components: { WfHistoryCanvas: Cr }, props: { id: { type: Number, default: null } }, data: function() {
|
|
2775
|
+
return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
|
|
2776
|
+
}, computed: { ...t.mapGetters("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...t.mapGetters(["sidebar"]) }, watch: {}, created: function() {
|
|
2777
|
+
this.showHistory();
|
|
2778
|
+
}, mounted: function() {
|
|
2779
|
+
}, methods: { ...br, ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
|
|
2780
|
+
this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((e2) => {
|
|
2781
|
+
this.allProcessI18n = e2;
|
|
2782
|
+
const t2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
|
|
2783
|
+
this.$http.get(t2).then((t3) => {
|
|
2784
|
+
let o2;
|
|
2785
|
+
this.initProcessByXml(t3.xml), t3.histories && t3.histories.length > 0 && (o2 = t3.histories[0].bundleCode), !o2 && t3.currentTasks && t3.currentTasks.length > 0 && (o2 = t3.currentTasks[0].bundleCode), o2 && this.setProcessI18n(e2[o2]), this.histories = t3.histories, this.currentTasks = t3.currentTasks;
|
|
2786
|
+
});
|
|
2787
|
+
}) : (this.process = S.newProcess(), V(this.process));
|
|
2788
|
+
}, showContextMenu(e2) {
|
|
2789
|
+
}, initProcessByXml(e2) {
|
|
2790
|
+
const t2 = n.xml2js(e2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
|
|
2791
|
+
b(t2.process), this.process = t2.process, V(this.process);
|
|
2792
|
+
} } }, Vr = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, yr = { class: "main" };
|
|
2793
|
+
const vr = M(kr, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2794
|
+
const a2 = r.resolveComponent("wf-history-canvas");
|
|
2795
|
+
return r.openBlock(), r.createElementBlock("div", Vr, [r.createElementVNode("div", yr, [r.createElementVNode("section", null, [r.createVNode(a2, { onselectstart: "return false", process: e2.process, histories: e2.histories, "current-tasks": e2.currentTasks, "all-process-i18n": e2.allProcessI18n, "show-history": true, class: "canvas", onContextmenu: r.withModifiers(i2.showContextMenu, ["prevent"]) }, null, 8, ["process", "histories", "current-tasks", "all-process-i18n", "onContextmenu"])])])], 512);
|
|
2796
|
+
}], ["__scopeId", "data-v-6658e14b"]]);
|
|
2797
|
+
ur.install = function(e2) {
|
|
2798
|
+
e2.component(ur.name, ur), e2.component(vr.name, vr);
|
|
2799
|
+
};
|
|
2800
|
+
const Tr = { WorkflowEditor: ur, WorkflowHistory: vr, wfEditorStore: pr };
|
|
2801
|
+
function Nr() {
|
|
2802
|
+
return Nr = Object.assign ? Object.assign.bind() : function(e2) {
|
|
2803
|
+
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
2804
|
+
var o2 = arguments[t2];
|
|
2805
|
+
for (var l2 in o2)
|
|
2806
|
+
Object.prototype.hasOwnProperty.call(o2, l2) && (e2[l2] = o2[l2]);
|
|
2807
|
+
}
|
|
2808
|
+
return e2;
|
|
2809
|
+
}, Nr.apply(this, arguments);
|
|
2810
|
+
}
|
|
2811
|
+
function xr(e2) {
|
|
2812
|
+
return xr = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e3) {
|
|
2813
|
+
return e3.__proto__ || Object.getPrototypeOf(e3);
|
|
2814
|
+
}, xr(e2);
|
|
2815
|
+
}
|
|
2816
|
+
function Er(e2, t2) {
|
|
2817
|
+
return Er = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e3, t3) {
|
|
2818
|
+
return e3.__proto__ = t3, e3;
|
|
2819
|
+
}, Er(e2, t2);
|
|
2820
|
+
}
|
|
2821
|
+
function Sr(e2, t2, o2) {
|
|
2822
|
+
return Sr = function() {
|
|
2823
|
+
if ("undefined" == typeof Reflect || !Reflect.construct)
|
|
2824
|
+
return false;
|
|
2825
|
+
if (Reflect.construct.sham)
|
|
2826
|
+
return false;
|
|
2827
|
+
if ("function" == typeof Proxy)
|
|
2828
|
+
return true;
|
|
2829
|
+
try {
|
|
2830
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2831
|
+
})), true;
|
|
2832
|
+
} catch (e3) {
|
|
2833
|
+
return false;
|
|
2834
|
+
}
|
|
2835
|
+
}() ? Reflect.construct.bind() : function(e3, t3, o3) {
|
|
2836
|
+
var l2 = [null];
|
|
2837
|
+
l2.push.apply(l2, t3);
|
|
2838
|
+
var r2 = new (Function.bind.apply(e3, l2))();
|
|
2839
|
+
return o3 && Er(r2, o3.prototype), r2;
|
|
2840
|
+
}, Sr.apply(null, arguments);
|
|
2841
|
+
}
|
|
2842
|
+
function Mr(e2) {
|
|
2843
|
+
var t2 = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
|
|
2844
|
+
return Mr = function(e3) {
|
|
2845
|
+
if (null === e3 || (o2 = e3, -1 === Function.toString.call(o2).indexOf("[native code]")))
|
|
2846
|
+
return e3;
|
|
2847
|
+
var o2;
|
|
2848
|
+
if ("function" != typeof e3)
|
|
2849
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
2850
|
+
if (void 0 !== t2) {
|
|
2851
|
+
if (t2.has(e3))
|
|
2852
|
+
return t2.get(e3);
|
|
2853
|
+
t2.set(e3, l2);
|
|
2854
|
+
}
|
|
2855
|
+
function l2() {
|
|
2856
|
+
return Sr(e3, arguments, xr(this).constructor);
|
|
2857
|
+
}
|
|
2858
|
+
return l2.prototype = Object.create(e3.prototype, { constructor: { value: l2, enumerable: false, writable: true, configurable: true } }), Er(l2, e3);
|
|
2859
|
+
}, Mr(e2);
|
|
2860
|
+
}
|
|
2861
|
+
var Dr = /%[sdj%]/g, Fr = function() {
|
|
2862
|
+
};
|
|
2863
|
+
function $r(e2) {
|
|
2864
|
+
if (!e2 || !e2.length)
|
|
2865
|
+
return null;
|
|
2866
|
+
var t2 = {};
|
|
2867
|
+
return e2.forEach(function(e3) {
|
|
2868
|
+
var o2 = e3.field;
|
|
2869
|
+
t2[o2] = t2[o2] || [], t2[o2].push(e3);
|
|
2870
|
+
}), t2;
|
|
2871
|
+
}
|
|
2872
|
+
function Pr(e2) {
|
|
2873
|
+
for (var t2 = arguments.length, o2 = new Array(t2 > 1 ? t2 - 1 : 0), l2 = 1; l2 < t2; l2++)
|
|
2874
|
+
o2[l2 - 1] = arguments[l2];
|
|
2875
|
+
var r2 = 0, n2 = o2.length;
|
|
2876
|
+
return "function" == typeof e2 ? e2.apply(null, o2) : "string" == typeof e2 ? e2.replace(Dr, function(e3) {
|
|
2877
|
+
if ("%%" === e3)
|
|
2878
|
+
return "%";
|
|
2879
|
+
if (r2 >= n2)
|
|
2880
|
+
return e3;
|
|
2881
|
+
switch (e3) {
|
|
2882
|
+
case "%s":
|
|
2883
|
+
return String(o2[r2++]);
|
|
2884
|
+
case "%d":
|
|
2885
|
+
return Number(o2[r2++]);
|
|
2886
|
+
case "%j":
|
|
2887
|
+
try {
|
|
2888
|
+
return JSON.stringify(o2[r2++]);
|
|
2889
|
+
} catch (e4) {
|
|
2890
|
+
return "[Circular]";
|
|
2891
|
+
}
|
|
2892
|
+
break;
|
|
2893
|
+
default:
|
|
2894
|
+
return e3;
|
|
2895
|
+
}
|
|
2896
|
+
}) : e2;
|
|
2897
|
+
}
|
|
2898
|
+
function Br(e2, t2) {
|
|
2899
|
+
return null == e2 || (!("array" !== t2 || !Array.isArray(e2) || e2.length) || !(!function(e3) {
|
|
2900
|
+
return "string" === e3 || "url" === e3 || "hex" === e3 || "email" === e3 || "date" === e3 || "pattern" === e3;
|
|
2901
|
+
}(t2) || "string" != typeof e2 || e2));
|
|
2902
|
+
}
|
|
2903
|
+
function Or(e2, t2, o2) {
|
|
2904
|
+
var l2 = 0, r2 = e2.length;
|
|
2905
|
+
!function n2(i2) {
|
|
2906
|
+
if (i2 && i2.length)
|
|
2907
|
+
o2(i2);
|
|
2908
|
+
else {
|
|
2909
|
+
var a2 = l2;
|
|
2910
|
+
l2 += 1, a2 < r2 ? t2(e2[a2], n2) : o2([]);
|
|
2911
|
+
}
|
|
2912
|
+
}([]);
|
|
2913
|
+
}
|
|
2914
|
+
"undefined" != typeof process && process.env && "production" !== process.env.NODE_ENV && "undefined" != typeof window && "undefined" != typeof document && (Fr = function(e2, t2) {
|
|
2915
|
+
"undefined" != typeof console && console.warn && "undefined" == typeof ASYNC_VALIDATOR_NO_WARNING && t2.every(function(e3) {
|
|
2916
|
+
return "string" == typeof e3;
|
|
2917
|
+
});
|
|
2918
|
+
});
|
|
2919
|
+
var Ir = function(e2) {
|
|
2920
|
+
var t2, o2;
|
|
2921
|
+
function l2(t3, o3) {
|
|
2922
|
+
var l3;
|
|
2923
|
+
return (l3 = e2.call(this, "Async Validation Error") || this).errors = t3, l3.fields = o3, l3;
|
|
2924
|
+
}
|
|
2925
|
+
return o2 = e2, (t2 = l2).prototype = Object.create(o2.prototype), t2.prototype.constructor = t2, Er(t2, o2), l2;
|
|
2926
|
+
}(Mr(Error));
|
|
2927
|
+
function _r(e2, t2, o2, l2, r2) {
|
|
2928
|
+
if (t2.first) {
|
|
2929
|
+
var n2 = new Promise(function(t3, n3) {
|
|
2930
|
+
var i3 = function(e3) {
|
|
2931
|
+
var t4 = [];
|
|
2932
|
+
return Object.keys(e3).forEach(function(o3) {
|
|
2933
|
+
t4.push.apply(t4, e3[o3] || []);
|
|
2934
|
+
}), t4;
|
|
2935
|
+
}(e2);
|
|
2936
|
+
Or(i3, o2, function(e3) {
|
|
2937
|
+
return l2(e3), e3.length ? n3(new Ir(e3, $r(e3))) : t3(r2);
|
|
2938
|
+
});
|
|
2939
|
+
});
|
|
2940
|
+
return n2.catch(function(e3) {
|
|
2941
|
+
return e3;
|
|
2942
|
+
}), n2;
|
|
2943
|
+
}
|
|
2944
|
+
var i2 = true === t2.firstFields ? Object.keys(e2) : t2.firstFields || [], a2 = Object.keys(e2), s2 = a2.length, d2 = 0, c2 = [], m2 = new Promise(function(t3, n3) {
|
|
2945
|
+
var m3 = function(e3) {
|
|
2946
|
+
if (c2.push.apply(c2, e3), ++d2 === s2)
|
|
2947
|
+
return l2(c2), c2.length ? n3(new Ir(c2, $r(c2))) : t3(r2);
|
|
2948
|
+
};
|
|
2949
|
+
a2.length || (l2(c2), t3(r2)), a2.forEach(function(t4) {
|
|
2950
|
+
var l3 = e2[t4];
|
|
2951
|
+
-1 !== i2.indexOf(t4) ? Or(l3, o2, m3) : function(e3, t5, o3) {
|
|
2952
|
+
var l4 = [], r3 = 0, n4 = e3.length;
|
|
2953
|
+
function i3(e4) {
|
|
2954
|
+
l4.push.apply(l4, e4 || []), ++r3 === n4 && o3(l4);
|
|
2955
|
+
}
|
|
2956
|
+
e3.forEach(function(e4) {
|
|
2957
|
+
t5(e4, i3);
|
|
2958
|
+
});
|
|
2959
|
+
}(l3, o2, m3);
|
|
2960
|
+
});
|
|
2961
|
+
});
|
|
2962
|
+
return m2.catch(function(e3) {
|
|
2963
|
+
return e3;
|
|
2964
|
+
}), m2;
|
|
2965
|
+
}
|
|
2966
|
+
function Rr(e2, t2) {
|
|
2967
|
+
return function(o2) {
|
|
2968
|
+
var l2, r2;
|
|
2969
|
+
return l2 = e2.fullFields ? function(e3, t3) {
|
|
2970
|
+
for (var o3 = e3, l3 = 0; l3 < t3.length; l3++) {
|
|
2971
|
+
if (null == o3)
|
|
2972
|
+
return o3;
|
|
2973
|
+
o3 = o3[t3[l3]];
|
|
2974
|
+
}
|
|
2975
|
+
return o3;
|
|
2976
|
+
}(t2, e2.fullFields) : t2[o2.field || e2.fullField], (r2 = o2) && void 0 !== r2.message ? (o2.field = o2.field || e2.fullField, o2.fieldValue = l2, o2) : { message: "function" == typeof o2 ? o2() : o2, fieldValue: l2, field: o2.field || e2.fullField };
|
|
2977
|
+
};
|
|
2978
|
+
}
|
|
2979
|
+
function Ar(e2, t2) {
|
|
2980
|
+
if (t2) {
|
|
2981
|
+
for (var o2 in t2)
|
|
2982
|
+
if (t2.hasOwnProperty(o2)) {
|
|
2983
|
+
var l2 = t2[o2];
|
|
2984
|
+
"object" == typeof l2 && "object" == typeof e2[o2] ? e2[o2] = Nr({}, e2[o2], l2) : e2[o2] = l2;
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
return e2;
|
|
2988
|
+
}
|
|
2989
|
+
var Ur, Lr = function(e2, t2, o2, l2, r2, n2) {
|
|
2990
|
+
!e2.required || o2.hasOwnProperty(e2.field) && !Br(t2, n2 || e2.type) || l2.push(Pr(r2.messages.required, e2.fullField));
|
|
2991
|
+
}, Hr = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/, jr = /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i, zr = { integer: function(e2) {
|
|
2992
|
+
return zr.number(e2) && parseInt(e2, 10) === e2;
|
|
2993
|
+
}, float: function(e2) {
|
|
2994
|
+
return zr.number(e2) && !zr.integer(e2);
|
|
2995
|
+
}, array: function(e2) {
|
|
2996
|
+
return Array.isArray(e2);
|
|
2997
|
+
}, regexp: function(e2) {
|
|
2998
|
+
if (e2 instanceof RegExp)
|
|
2999
|
+
return true;
|
|
3000
|
+
try {
|
|
3001
|
+
return !!new RegExp(e2);
|
|
3002
|
+
} catch (e3) {
|
|
3003
|
+
return false;
|
|
3004
|
+
}
|
|
3005
|
+
}, date: function(e2) {
|
|
3006
|
+
return "function" == typeof e2.getTime && "function" == typeof e2.getMonth && "function" == typeof e2.getYear && !isNaN(e2.getTime());
|
|
3007
|
+
}, number: function(e2) {
|
|
3008
|
+
return !isNaN(e2) && "number" == typeof e2;
|
|
3009
|
+
}, object: function(e2) {
|
|
3010
|
+
return "object" == typeof e2 && !zr.array(e2);
|
|
3011
|
+
}, method: function(e2) {
|
|
3012
|
+
return "function" == typeof e2;
|
|
3013
|
+
}, email: function(e2) {
|
|
3014
|
+
return "string" == typeof e2 && e2.length <= 320 && !!e2.match(Hr);
|
|
3015
|
+
}, url: function(e2) {
|
|
3016
|
+
return "string" == typeof e2 && e2.length <= 2048 && !!e2.match(function() {
|
|
3017
|
+
if (Ur)
|
|
3018
|
+
return Ur;
|
|
3019
|
+
var e3 = "[a-fA-F\\d:]", t2 = function(t3) {
|
|
3020
|
+
return t3 && t3.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e3 + ")|(?<=" + e3 + ")(?=\\s|$))" : "";
|
|
3021
|
+
}, o2 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", l2 = "[a-fA-F\\d]{1,4}", r2 = ("\n(?:\n(?:" + l2 + ":){7}(?:" + l2 + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + l2 + ":){6}(?:" + o2 + "|:" + l2 + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + l2 + ":){5}(?::" + o2 + "|(?::" + l2 + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + l2 + ":){4}(?:(?::" + l2 + "){0,1}:" + o2 + "|(?::" + l2 + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + l2 + ":){3}(?:(?::" + l2 + "){0,2}:" + o2 + "|(?::" + l2 + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + l2 + ":){2}(?:(?::" + l2 + "){0,3}:" + o2 + "|(?::" + l2 + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + l2 + ":){1}(?:(?::" + l2 + "){0,4}:" + o2 + "|(?::" + l2 + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + l2 + "){0,5}:" + o2 + "|(?::" + l2 + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), n2 = new RegExp("(?:^" + o2 + "$)|(?:^" + r2 + "$)"), i2 = new RegExp("^" + o2 + "$"), a2 = new RegExp("^" + r2 + "$"), s2 = function(e4) {
|
|
3022
|
+
return e4 && e4.exact ? n2 : new RegExp("(?:" + t2(e4) + o2 + t2(e4) + ")|(?:" + t2(e4) + r2 + t2(e4) + ")", "g");
|
|
3023
|
+
};
|
|
3024
|
+
s2.v4 = function(e4) {
|
|
3025
|
+
return e4 && e4.exact ? i2 : new RegExp("" + t2(e4) + o2 + t2(e4), "g");
|
|
3026
|
+
}, s2.v6 = function(e4) {
|
|
3027
|
+
return e4 && e4.exact ? a2 : new RegExp("" + t2(e4) + r2 + t2(e4), "g");
|
|
3028
|
+
};
|
|
3029
|
+
var d2 = s2.v4().source, c2 = s2.v6().source;
|
|
3030
|
+
return Ur = new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|" + d2 + "|" + c2 + '|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)', "i");
|
|
3031
|
+
}());
|
|
3032
|
+
}, hex: function(e2) {
|
|
3033
|
+
return "string" == typeof e2 && !!e2.match(jr);
|
|
3034
|
+
} }, Wr = "enum", Jr = { required: Lr, whitespace: function(e2, t2, o2, l2, r2) {
|
|
3035
|
+
(/^\s+$/.test(t2) || "" === t2) && l2.push(Pr(r2.messages.whitespace, e2.fullField));
|
|
3036
|
+
}, type: function(e2, t2, o2, l2, r2) {
|
|
3037
|
+
if (e2.required && void 0 === t2)
|
|
3038
|
+
Lr(e2, t2, o2, l2, r2);
|
|
3039
|
+
else {
|
|
3040
|
+
var n2 = e2.type;
|
|
3041
|
+
["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"].indexOf(n2) > -1 ? zr[n2](t2) || l2.push(Pr(r2.messages.types[n2], e2.fullField, e2.type)) : n2 && typeof t2 !== e2.type && l2.push(Pr(r2.messages.types[n2], e2.fullField, e2.type));
|
|
3042
|
+
}
|
|
3043
|
+
}, range: function(e2, t2, o2, l2, r2) {
|
|
3044
|
+
var n2 = "number" == typeof e2.len, i2 = "number" == typeof e2.min, a2 = "number" == typeof e2.max, s2 = t2, d2 = null, c2 = "number" == typeof t2, m2 = "string" == typeof t2, u2 = Array.isArray(t2);
|
|
3045
|
+
if (c2 ? d2 = "number" : m2 ? d2 = "string" : u2 && (d2 = "array"), !d2)
|
|
3046
|
+
return false;
|
|
3047
|
+
u2 && (s2 = t2.length), m2 && (s2 = t2.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length), n2 ? s2 !== e2.len && l2.push(Pr(r2.messages[d2].len, e2.fullField, e2.len)) : i2 && !a2 && s2 < e2.min ? l2.push(Pr(r2.messages[d2].min, e2.fullField, e2.min)) : a2 && !i2 && s2 > e2.max ? l2.push(Pr(r2.messages[d2].max, e2.fullField, e2.max)) : i2 && a2 && (s2 < e2.min || s2 > e2.max) && l2.push(Pr(r2.messages[d2].range, e2.fullField, e2.min, e2.max));
|
|
3048
|
+
}, enum: function(e2, t2, o2, l2, r2) {
|
|
3049
|
+
e2[Wr] = Array.isArray(e2[Wr]) ? e2[Wr] : [], -1 === e2[Wr].indexOf(t2) && l2.push(Pr(r2.messages[Wr], e2.fullField, e2[Wr].join(", ")));
|
|
3050
|
+
}, pattern: function(e2, t2, o2, l2, r2) {
|
|
3051
|
+
if (e2.pattern) {
|
|
3052
|
+
if (e2.pattern instanceof RegExp)
|
|
3053
|
+
e2.pattern.lastIndex = 0, e2.pattern.test(t2) || l2.push(Pr(r2.messages.pattern.mismatch, e2.fullField, t2, e2.pattern));
|
|
3054
|
+
else if ("string" == typeof e2.pattern) {
|
|
3055
|
+
new RegExp(e2.pattern).test(t2) || l2.push(Pr(r2.messages.pattern.mismatch, e2.fullField, t2, e2.pattern));
|
|
3056
|
+
}
|
|
3057
|
+
}
|
|
3058
|
+
} }, qr = function(e2, t2, o2, l2, r2) {
|
|
3059
|
+
var n2 = e2.type, i2 = [];
|
|
3060
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3061
|
+
if (Br(t2, n2) && !e2.required)
|
|
3062
|
+
return o2();
|
|
3063
|
+
Jr.required(e2, t2, l2, i2, r2, n2), Br(t2, n2) || Jr.type(e2, t2, l2, i2, r2);
|
|
3064
|
+
}
|
|
3065
|
+
o2(i2);
|
|
3066
|
+
}, Gr = { string: function(e2, t2, o2, l2, r2) {
|
|
3067
|
+
var n2 = [];
|
|
3068
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3069
|
+
if (Br(t2, "string") && !e2.required)
|
|
3070
|
+
return o2();
|
|
3071
|
+
Jr.required(e2, t2, l2, n2, r2, "string"), Br(t2, "string") || (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2), Jr.pattern(e2, t2, l2, n2, r2), true === e2.whitespace && Jr.whitespace(e2, t2, l2, n2, r2));
|
|
3072
|
+
}
|
|
3073
|
+
o2(n2);
|
|
3074
|
+
}, method: function(e2, t2, o2, l2, r2) {
|
|
3075
|
+
var n2 = [];
|
|
3076
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3077
|
+
if (Br(t2) && !e2.required)
|
|
3078
|
+
return o2();
|
|
3079
|
+
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && Jr.type(e2, t2, l2, n2, r2);
|
|
3080
|
+
}
|
|
3081
|
+
o2(n2);
|
|
3082
|
+
}, number: function(e2, t2, o2, l2, r2) {
|
|
3083
|
+
var n2 = [];
|
|
3084
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3085
|
+
if ("" === t2 && (t2 = void 0), Br(t2) && !e2.required)
|
|
3086
|
+
return o2();
|
|
3087
|
+
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2));
|
|
3088
|
+
}
|
|
3089
|
+
o2(n2);
|
|
3090
|
+
}, boolean: function(e2, t2, o2, l2, r2) {
|
|
3091
|
+
var n2 = [];
|
|
3092
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3093
|
+
if (Br(t2) && !e2.required)
|
|
3094
|
+
return o2();
|
|
3095
|
+
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && Jr.type(e2, t2, l2, n2, r2);
|
|
3096
|
+
}
|
|
3097
|
+
o2(n2);
|
|
3098
|
+
}, regexp: function(e2, t2, o2, l2, r2) {
|
|
3099
|
+
var n2 = [];
|
|
3100
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3101
|
+
if (Br(t2) && !e2.required)
|
|
3102
|
+
return o2();
|
|
3103
|
+
Jr.required(e2, t2, l2, n2, r2), Br(t2) || Jr.type(e2, t2, l2, n2, r2);
|
|
3104
|
+
}
|
|
3105
|
+
o2(n2);
|
|
3106
|
+
}, integer: function(e2, t2, o2, l2, r2) {
|
|
3107
|
+
var n2 = [];
|
|
3108
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3109
|
+
if (Br(t2) && !e2.required)
|
|
3110
|
+
return o2();
|
|
3111
|
+
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2));
|
|
3112
|
+
}
|
|
3113
|
+
o2(n2);
|
|
3114
|
+
}, float: function(e2, t2, o2, l2, r2) {
|
|
3115
|
+
var n2 = [];
|
|
3116
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3117
|
+
if (Br(t2) && !e2.required)
|
|
3118
|
+
return o2();
|
|
3119
|
+
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2));
|
|
3120
|
+
}
|
|
3121
|
+
o2(n2);
|
|
3122
|
+
}, array: function(e2, t2, o2, l2, r2) {
|
|
3123
|
+
var n2 = [];
|
|
3124
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3125
|
+
if (null == t2 && !e2.required)
|
|
3126
|
+
return o2();
|
|
3127
|
+
Jr.required(e2, t2, l2, n2, r2, "array"), null != t2 && (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2));
|
|
3128
|
+
}
|
|
3129
|
+
o2(n2);
|
|
3130
|
+
}, object: function(e2, t2, o2, l2, r2) {
|
|
3131
|
+
var n2 = [];
|
|
3132
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3133
|
+
if (Br(t2) && !e2.required)
|
|
3134
|
+
return o2();
|
|
3135
|
+
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && Jr.type(e2, t2, l2, n2, r2);
|
|
3136
|
+
}
|
|
3137
|
+
o2(n2);
|
|
3138
|
+
}, enum: function(e2, t2, o2, l2, r2) {
|
|
3139
|
+
var n2 = [];
|
|
3140
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3141
|
+
if (Br(t2) && !e2.required)
|
|
3142
|
+
return o2();
|
|
3143
|
+
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && Jr.enum(e2, t2, l2, n2, r2);
|
|
3144
|
+
}
|
|
3145
|
+
o2(n2);
|
|
3146
|
+
}, pattern: function(e2, t2, o2, l2, r2) {
|
|
3147
|
+
var n2 = [];
|
|
3148
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3149
|
+
if (Br(t2, "string") && !e2.required)
|
|
3150
|
+
return o2();
|
|
3151
|
+
Jr.required(e2, t2, l2, n2, r2), Br(t2, "string") || Jr.pattern(e2, t2, l2, n2, r2);
|
|
3152
|
+
}
|
|
3153
|
+
o2(n2);
|
|
3154
|
+
}, date: function(e2, t2, o2, l2, r2) {
|
|
3155
|
+
var n2 = [];
|
|
3156
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3157
|
+
if (Br(t2, "date") && !e2.required)
|
|
3158
|
+
return o2();
|
|
3159
|
+
var i2;
|
|
3160
|
+
if (Jr.required(e2, t2, l2, n2, r2), !Br(t2, "date"))
|
|
3161
|
+
i2 = t2 instanceof Date ? t2 : new Date(t2), Jr.type(e2, i2, l2, n2, r2), i2 && Jr.range(e2, i2.getTime(), l2, n2, r2);
|
|
3162
|
+
}
|
|
3163
|
+
o2(n2);
|
|
3164
|
+
}, url: qr, hex: qr, email: qr, required: function(e2, t2, o2, l2, r2) {
|
|
3165
|
+
var n2 = [], i2 = Array.isArray(t2) ? "array" : typeof t2;
|
|
3166
|
+
Jr.required(e2, t2, l2, n2, r2, i2), o2(n2);
|
|
3167
|
+
}, any: function(e2, t2, o2, l2, r2) {
|
|
3168
|
+
var n2 = [];
|
|
3169
|
+
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3170
|
+
if (Br(t2) && !e2.required)
|
|
3171
|
+
return o2();
|
|
3172
|
+
Jr.required(e2, t2, l2, n2, r2);
|
|
3173
|
+
}
|
|
3174
|
+
o2(n2);
|
|
3175
|
+
} };
|
|
3176
|
+
function Kr() {
|
|
3177
|
+
return { default: "Validation error on field %s", required: "%s is required", enum: "%s must be one of %s", whitespace: "%s cannot be empty", date: { format: "%s date %s is invalid for format %s", parse: "%s date could not be parsed, %s is invalid ", invalid: "%s date %s is invalid" }, types: { string: "%s is not a %s", method: "%s is not a %s (function)", array: "%s is not an %s", object: "%s is not an %s", number: "%s is not a %s", date: "%s is not a %s", boolean: "%s is not a %s", integer: "%s is not an %s", float: "%s is not a %s", regexp: "%s is not a valid %s", email: "%s is not a valid %s", url: "%s is not a valid %s", hex: "%s is not a valid %s" }, string: { len: "%s must be exactly %s characters", min: "%s must be at least %s characters", max: "%s cannot be longer than %s characters", range: "%s must be between %s and %s characters" }, number: { len: "%s must equal %s", min: "%s cannot be less than %s", max: "%s cannot be greater than %s", range: "%s must be between %s and %s" }, array: { len: "%s must be exactly %s in length", min: "%s cannot be less than %s in length", max: "%s cannot be greater than %s in length", range: "%s must be between %s and %s in length" }, pattern: { mismatch: "%s value %s does not match pattern %s" }, clone: function() {
|
|
3178
|
+
var e2 = JSON.parse(JSON.stringify(this));
|
|
3179
|
+
return e2.clone = this.clone, e2;
|
|
3180
|
+
} };
|
|
3181
|
+
}
|
|
3182
|
+
var Xr = Kr(), Yr = function() {
|
|
3183
|
+
function e2(e3) {
|
|
3184
|
+
this.rules = null, this._messages = Xr, this.define(e3);
|
|
3185
|
+
}
|
|
3186
|
+
var t2 = e2.prototype;
|
|
3187
|
+
return t2.define = function(e3) {
|
|
3188
|
+
var t3 = this;
|
|
3189
|
+
if (!e3)
|
|
3190
|
+
throw new Error("Cannot configure a schema with no rules");
|
|
3191
|
+
if ("object" != typeof e3 || Array.isArray(e3))
|
|
3192
|
+
throw new Error("Rules must be an object");
|
|
3193
|
+
this.rules = {}, Object.keys(e3).forEach(function(o2) {
|
|
3194
|
+
var l2 = e3[o2];
|
|
3195
|
+
t3.rules[o2] = Array.isArray(l2) ? l2 : [l2];
|
|
3196
|
+
});
|
|
3197
|
+
}, t2.messages = function(e3) {
|
|
3198
|
+
return e3 && (this._messages = Ar(Kr(), e3)), this._messages;
|
|
3199
|
+
}, t2.validate = function(t3, o2, l2) {
|
|
3200
|
+
var r2 = this;
|
|
3201
|
+
void 0 === o2 && (o2 = {}), void 0 === l2 && (l2 = function() {
|
|
3202
|
+
});
|
|
3203
|
+
var n2 = t3, i2 = o2, a2 = l2;
|
|
3204
|
+
if ("function" == typeof i2 && (a2 = i2, i2 = {}), !this.rules || 0 === Object.keys(this.rules).length)
|
|
3205
|
+
return a2 && a2(null, n2), Promise.resolve(n2);
|
|
3206
|
+
if (i2.messages) {
|
|
3207
|
+
var s2 = this.messages();
|
|
3208
|
+
s2 === Xr && (s2 = Kr()), Ar(s2, i2.messages), i2.messages = s2;
|
|
3209
|
+
} else
|
|
3210
|
+
i2.messages = this.messages();
|
|
3211
|
+
var d2 = {};
|
|
3212
|
+
(i2.keys || Object.keys(this.rules)).forEach(function(e3) {
|
|
3213
|
+
var o3 = r2.rules[e3], l3 = n2[e3];
|
|
3214
|
+
o3.forEach(function(o4) {
|
|
3215
|
+
var i3 = o4;
|
|
3216
|
+
"function" == typeof i3.transform && (n2 === t3 && (n2 = Nr({}, n2)), l3 = n2[e3] = i3.transform(l3)), (i3 = "function" == typeof i3 ? { validator: i3 } : Nr({}, i3)).validator = r2.getValidationMethod(i3), i3.validator && (i3.field = e3, i3.fullField = i3.fullField || e3, i3.type = r2.getType(i3), d2[e3] = d2[e3] || [], d2[e3].push({ rule: i3, value: l3, source: n2, field: e3 }));
|
|
3217
|
+
});
|
|
3218
|
+
});
|
|
3219
|
+
var c2 = {};
|
|
3220
|
+
return _r(d2, i2, function(t4, o3) {
|
|
3221
|
+
var l3, r3 = t4.rule, a3 = !("object" !== r3.type && "array" !== r3.type || "object" != typeof r3.fields && "object" != typeof r3.defaultField);
|
|
3222
|
+
function s3(e3, t5) {
|
|
3223
|
+
return Nr({}, t5, { fullField: r3.fullField + "." + e3, fullFields: r3.fullFields ? [].concat(r3.fullFields, [e3]) : [e3] });
|
|
3224
|
+
}
|
|
3225
|
+
function d3(l4) {
|
|
3226
|
+
void 0 === l4 && (l4 = []);
|
|
3227
|
+
var d4 = Array.isArray(l4) ? l4 : [l4];
|
|
3228
|
+
!i2.suppressWarning && d4.length && e2.warning("async-validator:", d4), d4.length && void 0 !== r3.message && (d4 = [].concat(r3.message));
|
|
3229
|
+
var m2 = d4.map(Rr(r3, n2));
|
|
3230
|
+
if (i2.first && m2.length)
|
|
3231
|
+
return c2[r3.field] = 1, o3(m2);
|
|
3232
|
+
if (a3) {
|
|
3233
|
+
if (r3.required && !t4.value)
|
|
3234
|
+
return void 0 !== r3.message ? m2 = [].concat(r3.message).map(Rr(r3, n2)) : i2.error && (m2 = [i2.error(r3, Pr(i2.messages.required, r3.field))]), o3(m2);
|
|
3235
|
+
var u2 = {};
|
|
3236
|
+
r3.defaultField && Object.keys(t4.value).map(function(e3) {
|
|
3237
|
+
u2[e3] = r3.defaultField;
|
|
3238
|
+
}), u2 = Nr({}, u2, t4.rule.fields);
|
|
3239
|
+
var p2 = {};
|
|
3240
|
+
Object.keys(u2).forEach(function(e3) {
|
|
3241
|
+
var t5 = u2[e3], o4 = Array.isArray(t5) ? t5 : [t5];
|
|
3242
|
+
p2[e3] = o4.map(s3.bind(null, e3));
|
|
3243
|
+
});
|
|
3244
|
+
var h2 = new e2(p2);
|
|
3245
|
+
h2.messages(i2.messages), t4.rule.options && (t4.rule.options.messages = i2.messages, t4.rule.options.error = i2.error), h2.validate(t4.value, t4.rule.options || i2, function(e3) {
|
|
3246
|
+
var t5 = [];
|
|
3247
|
+
m2 && m2.length && t5.push.apply(t5, m2), e3 && e3.length && t5.push.apply(t5, e3), o3(t5.length ? t5 : null);
|
|
3248
|
+
});
|
|
3249
|
+
} else
|
|
3250
|
+
o3(m2);
|
|
3251
|
+
}
|
|
3252
|
+
if (a3 = a3 && (r3.required || !r3.required && t4.value), r3.field = t4.field, r3.asyncValidator)
|
|
3253
|
+
l3 = r3.asyncValidator(r3, t4.value, d3, t4.source, i2);
|
|
3254
|
+
else if (r3.validator) {
|
|
3255
|
+
try {
|
|
3256
|
+
l3 = r3.validator(r3, t4.value, d3, t4.source, i2);
|
|
3257
|
+
} catch (e3) {
|
|
3258
|
+
null == console.error || console.error(e3), i2.suppressValidatorError || setTimeout(function() {
|
|
3259
|
+
throw e3;
|
|
3260
|
+
}, 0), d3(e3.message);
|
|
3261
|
+
}
|
|
3262
|
+
true === l3 ? d3() : false === l3 ? d3("function" == typeof r3.message ? r3.message(r3.fullField || r3.field) : r3.message || (r3.fullField || r3.field) + " fails") : l3 instanceof Array ? d3(l3) : l3 instanceof Error && d3(l3.message);
|
|
3263
|
+
}
|
|
3264
|
+
l3 && l3.then && l3.then(function() {
|
|
3265
|
+
return d3();
|
|
3266
|
+
}, function(e3) {
|
|
3267
|
+
return d3(e3);
|
|
3268
|
+
});
|
|
3269
|
+
}, function(e3) {
|
|
3270
|
+
!function(e4) {
|
|
3271
|
+
var t4 = [], o3 = {};
|
|
3272
|
+
function l3(e5) {
|
|
3273
|
+
var o4;
|
|
3274
|
+
Array.isArray(e5) ? t4 = (o4 = t4).concat.apply(o4, e5) : t4.push(e5);
|
|
3275
|
+
}
|
|
3276
|
+
for (var r3 = 0; r3 < e4.length; r3++)
|
|
3277
|
+
l3(e4[r3]);
|
|
3278
|
+
t4.length ? (o3 = $r(t4), a2(t4, o3)) : a2(null, n2);
|
|
3279
|
+
}(e3);
|
|
3280
|
+
}, n2);
|
|
3281
|
+
}, t2.getType = function(e3) {
|
|
3282
|
+
if (void 0 === e3.type && e3.pattern instanceof RegExp && (e3.type = "pattern"), "function" != typeof e3.validator && e3.type && !Gr.hasOwnProperty(e3.type))
|
|
3283
|
+
throw new Error(Pr("Unknown rule type %s", e3.type));
|
|
3284
|
+
return e3.type || "string";
|
|
3285
|
+
}, t2.getValidationMethod = function(e3) {
|
|
3286
|
+
if ("function" == typeof e3.validator)
|
|
3287
|
+
return e3.validator;
|
|
3288
|
+
var t3 = Object.keys(e3), o2 = t3.indexOf("message");
|
|
3289
|
+
return -1 !== o2 && t3.splice(o2, 1), 1 === t3.length && "required" === t3[0] ? Gr.required : Gr[this.getType(e3)] || void 0;
|
|
3290
|
+
}, e2;
|
|
3291
|
+
}();
|
|
3292
|
+
function Qr(e2, t2) {
|
|
3293
|
+
const o2 = {}, l2 = e2.dataType;
|
|
3294
|
+
return "DATE" === l2 || "TIME" === l2 ? (o2.type = "date", Zr(o2), o2.message = e2.label + " " + h().t("workflowEditorMessage.requiredAndMustBeADate")) : "INTEGER" === l2 || "LONG" === l2 ? (o2.pattern = /^-?\d+$/, o2.message = e2.label + " " + h().t("workflowEditorMessage.requiredAndMustBeAnInteger")) : "FLOAT" === l2 || "DOUBLE" === l2 ? (o2.pattern = new RegExp("^(-?\\d+)(\\.\\d+)?$"), o2.message = e2.label + " " + h().t("workflowEditorMessage.requiredAndMustBeDecimal")) : "BOOLEAN" === l2 ? (o2.type = "boolean", o2.message = e2.label + " " + h().t("workflowEditorMessage.mustFill"), Zr(o2)) : o2.message = e2.label + " " + h().t("workflowEditorMessage.mustFill"), e2.canEdit && (o2.required = true, o2.trigger = "blur"), e2.rowIndexes && (o2.rowIndexes = e2.rowIndexes), e2.condition && (o2.condition = e2.condition), t2[e2.name] = e2.dataType, o2;
|
|
3295
|
+
}
|
|
3296
|
+
function Zr(e2) {
|
|
3297
|
+
e2 && e2.type && "boolean" === e2.type ? e2.validator = function(e3, t2, o2) {
|
|
3298
|
+
return null == t2 ? !e3.required : "number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2);
|
|
3299
|
+
} : e2 && e2.type && "date" === e2.type && (e2.validator = function(e3, t2, o2) {
|
|
3300
|
+
if (null == t2)
|
|
3301
|
+
return !e3.required;
|
|
3302
|
+
{
|
|
3303
|
+
const e4 = new Date(t2);
|
|
3304
|
+
return !isNaN(e4.getTime());
|
|
3305
|
+
}
|
|
3306
|
+
});
|
|
3307
|
+
}
|
|
3308
|
+
function en(e2, t2, o2) {
|
|
3309
|
+
let l2;
|
|
3310
|
+
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
3311
|
+
const n2 = t2[r2];
|
|
3312
|
+
if (l2 = 0 === r2 ? e2[n2] : l2.fields[t2[r2]], n2 === o2)
|
|
3313
|
+
break;
|
|
3314
|
+
}
|
|
3315
|
+
return l2;
|
|
3316
|
+
}
|
|
3317
|
+
function tn(e2, t2, o2) {
|
|
3318
|
+
let l2;
|
|
3319
|
+
for (let r2 = 0; r2 < t2.length; r2++)
|
|
3320
|
+
if (l2 = 0 === r2 ? e2[t2[r2]] : l2.fields[t2[r2]], r2 !== t2.length - 1) {
|
|
3321
|
+
if (t2[r2 + 1] === o2)
|
|
3322
|
+
break;
|
|
3323
|
+
}
|
|
3324
|
+
return l2;
|
|
3325
|
+
}
|
|
3326
|
+
function on(e2, t2, o2, l2, r2) {
|
|
3327
|
+
let n2 = e2.name;
|
|
3328
|
+
const i2 = n2.substring(0, n2.indexOf("."));
|
|
3329
|
+
if (o2) {
|
|
3330
|
+
o2[i2] || (o2[i2] = {});
|
|
3331
|
+
const l3 = o2[i2];
|
|
3332
|
+
(function(e3, t3) {
|
|
3333
|
+
if (e3.indexOf(".") > 0) {
|
|
3334
|
+
let o3 = t3;
|
|
3335
|
+
const l4 = e3.split(".");
|
|
3336
|
+
for (let e4 = 0; e4 < l4.length - 1; e4++) {
|
|
3337
|
+
const t4 = l4[e4];
|
|
3338
|
+
if (!o3 || !o3[t4])
|
|
3339
|
+
return false;
|
|
3340
|
+
o3 = o3[t4];
|
|
3341
|
+
}
|
|
3342
|
+
return true;
|
|
3343
|
+
}
|
|
3344
|
+
return true;
|
|
3345
|
+
})(n2.substring(n2.indexOf(".") + 1), l3) && function(e3, t3, o3, l4) {
|
|
3346
|
+
const r3 = {};
|
|
3347
|
+
let n3 = e3.name;
|
|
3348
|
+
t3 || (t3 = {});
|
|
3349
|
+
const i3 = n3.split(".");
|
|
3350
|
+
for (let o4 = 0; o4 < i3.length; o4++) {
|
|
3351
|
+
const n4 = i3[o4];
|
|
3352
|
+
let a2;
|
|
3353
|
+
if (o4 === i3.length - 1)
|
|
3354
|
+
a2 = tn(r3, i3, n4), a2.fields[n4] = Qr(e3, l4);
|
|
3355
|
+
else {
|
|
3356
|
+
let e4;
|
|
3357
|
+
0 === o4 ? a2 = t3 : (e4 = en(r3, i3, i3[o4 - 1]), a2 = e4.fields), a2[n4] || (a2[n4] = { type: "object", required: true, fields: {} }), 0 === o4 ? r3[n4] = a2[n4] : e4.fields[n4] = a2[n4];
|
|
3358
|
+
}
|
|
3359
|
+
}
|
|
3360
|
+
}(e2, t2, 0, r2);
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
function ln(e2, t2, o2, l2, r2, n2, i2) {
|
|
3364
|
+
return rn(e2, t2, o2, true, l2, r2, n2, i2);
|
|
3365
|
+
}
|
|
3366
|
+
function rn(e2, t2, o2, l2, r2, n2, i2, a2) {
|
|
3367
|
+
let s2 = false;
|
|
3368
|
+
let d2;
|
|
3369
|
+
if (new Yr(t2).validate(e2, { first: true }, (a3, c2) => {
|
|
3370
|
+
if (a3) {
|
|
3371
|
+
const e3 = a3[0].message;
|
|
3372
|
+
d2 = a3[0].field, s2 = null != o2 ? void 0 !== n2 && void 0 !== i2 ? h().t("workflowEditorMessage.pageRecordLine", { pageNum: n2, row: i2 }) + "," + e3 : h().t("workflowEditorMessage.recordLine", { row: o2 + 1 }) + "," + e3 : e3;
|
|
3373
|
+
} else
|
|
3374
|
+
s2 = true;
|
|
3375
|
+
if (d2 && true === l2) {
|
|
3376
|
+
if (void 0 !== r2 && true === r2 && /[A-Z]+/.test(d2) && void 0 !== e2[d2.toLowerCase()]) {
|
|
3377
|
+
const l3 = JSON.parse(JSON.stringify(e2));
|
|
3378
|
+
l3[d2.toUpperCase()] = e2[d2.toLowerCase()], delete l3[d2.toLowerCase()], s2 = rn(l3, t2, o2, false, r2, n2, i2);
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3381
|
+
}), a2) {
|
|
3382
|
+
let e3 = { msg: s2, field: d2 };
|
|
3383
|
+
return void 0 !== n2 && void 0 !== i2 ? (e3.pageNum = n2, e3.rowIndex = i2) : e3.rowIndex = o2, e3;
|
|
3384
|
+
}
|
|
3385
|
+
return s2;
|
|
3386
|
+
}
|
|
3387
|
+
function nn(e2, t2, l2, r2, n2, i2, a2, s2, d2) {
|
|
3388
|
+
const c2 = function(e3) {
|
|
3389
|
+
return e3 && e3.id ? e3.id : e3 && e3.ID ? e3.ID : void 0;
|
|
3390
|
+
}(l2), m2 = {};
|
|
3391
|
+
for (let u2 = 0; u2 < e2.length; u2++) {
|
|
3392
|
+
const p2 = e2[u2];
|
|
3393
|
+
if (d2.indexOf(p2) < 0)
|
|
3394
|
+
continue;
|
|
3395
|
+
const h2 = t2[p2], f2 = h2.condition, w2 = o.parseSubTablePermissionCondition(f2, r2, n2, l2, i2, a2, s2);
|
|
3396
|
+
if (null != w2 && true === w2)
|
|
3397
|
+
if (void 0 === c2)
|
|
3398
|
+
m2[p2] = h2;
|
|
3399
|
+
else {
|
|
3400
|
+
const e3 = h2.rowIndexes;
|
|
3401
|
+
(!e3 || e3.indexOf(c2) >= 0) && (m2[p2] = h2);
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
return m2;
|
|
3405
|
+
}
|
|
3406
|
+
function an(e2, t2, o2) {
|
|
3407
|
+
let l2 = t2[o2];
|
|
3408
|
+
return l2 || (l2 = []), 0 !== l2.length || !e2 || !e2[o2] || void 0 === e2[o2].required || true !== e2[o2].required || e2[o2].message;
|
|
3409
|
+
}
|
|
3410
|
+
Yr.register = function(e2, t2) {
|
|
3411
|
+
if ("function" != typeof t2)
|
|
3412
|
+
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
3413
|
+
Gr[e2] = t2;
|
|
3414
|
+
}, Yr.warning = Fr, Yr.messages = Xr, Yr.validators = Gr;
|
|
3415
|
+
const sn = function(e2, t2, o2, l2, r2, n2, i2, a2) {
|
|
3416
|
+
const s2 = Object.keys(t2);
|
|
3417
|
+
if (s2.indexOf("rules") >= 0 && s2.indexOf("subRules") >= 0 && s2.indexOf("totalSubRules") >= 0) {
|
|
3418
|
+
const s3 = t2.rules, d2 = t2.subRules, c2 = t2.totalSubRules, m2 = t2.dataTypeMap;
|
|
3419
|
+
let u2 = ln(e2, s3, null, o2, null, null, a2);
|
|
3420
|
+
return (!a2 && true === u2 || a2 && true === u2.msg) && (d2 || c2) && (u2 = function(e3, t3, o3, l3, r3, n3, i3, a3, s4, d3) {
|
|
3421
|
+
let c3 = {};
|
|
3422
|
+
if (o3 && (c3 = JSON.parse(JSON.stringify(o3))), t3) {
|
|
3423
|
+
const o4 = Object.keys(t3);
|
|
3424
|
+
for (let m3 = 0; m3 < o4.length; m3++) {
|
|
3425
|
+
const u3 = o4[m3], p2 = t3[u3], h2 = Object.keys(p2);
|
|
3426
|
+
let f2 = e3[u3];
|
|
3427
|
+
f2 || (f2 = []);
|
|
3428
|
+
const w2 = an(c3, e3, u3);
|
|
3429
|
+
if (true !== w2)
|
|
3430
|
+
return delete c3[u3], d3 ? { msg: w2, listCode: u3 } : w2;
|
|
3431
|
+
let g2, C2 = [];
|
|
3432
|
+
s4 && s4[u3] && (g2 = s4[u3].pageSize, C2 = s4[u3].fields || []);
|
|
3433
|
+
for (let t4 = 0; t4 < f2.length; t4++) {
|
|
3434
|
+
const o5 = f2[t4], s5 = nn(h2, p2, f2[t4], r3, e3, n3, i3, a3, C2);
|
|
3435
|
+
let c4, m4;
|
|
3436
|
+
void 0 !== g2 && g2 > 0 && (c4 = Math.ceil((t4 + 1) / g2), m4 = t4 + 1 - (c4 - 1) * g2), Object.keys(s5).forEach((l4) => {
|
|
3437
|
+
const r4 = s5[l4];
|
|
3438
|
+
if (r4 && r4.rules && (s5[l4] = r4.rules), r4 && r4.beforeValidate) {
|
|
3439
|
+
const n4 = r4.beforeValidate;
|
|
3440
|
+
"function" == typeof n4 && false === n4({ row: o5, parent: e3, rowIndex: t4 }) && (s5[l4] = []);
|
|
3441
|
+
}
|
|
3442
|
+
});
|
|
3443
|
+
const w3 = ln(o5, s5, t4, l3, c4, m4, d3);
|
|
3444
|
+
if (!d3 && true !== w3 || d3 && true !== w3.msg)
|
|
3445
|
+
return d3 && (w3.listCode = u3), w3;
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
for (const t4 in c3) {
|
|
3450
|
+
const o4 = an(c3, e3, t4);
|
|
3451
|
+
if (true !== o4)
|
|
3452
|
+
return d3 ? { msg: o4, listCode: t4 } : o4;
|
|
3453
|
+
}
|
|
3454
|
+
return !d3 || { msg: true };
|
|
3455
|
+
}(e2, d2, c2, o2, m2, l2, r2, n2, i2, a2)), u2;
|
|
3456
|
+
}
|
|
3457
|
+
return ln(e2, t2, null, o2, null, null, a2);
|
|
3458
|
+
}, dn = function(e2, t2, l2, r2, n2, i2) {
|
|
3459
|
+
void 0 === l2 && (l2 = false);
|
|
3460
|
+
const a2 = {}, s2 = {}, d2 = {}, c2 = {};
|
|
3461
|
+
return e2 && e2.forEach((e3) => {
|
|
3462
|
+
const m2 = e3.canEdit;
|
|
3463
|
+
if (void 0 !== m2 && true === m2) {
|
|
3464
|
+
let m3 = e3.name;
|
|
3465
|
+
if (m3) {
|
|
3466
|
+
const u2 = e3.condition, p2 = null;
|
|
3467
|
+
let f2 = null;
|
|
3468
|
+
if (f2 = m3.indexOf(".") > 0 && 0 === m3.indexOf("$") || o.parseSubTablePermissionCondition(u2, s2, p2, t2, r2, n2, i2), null != f2 && true === f2) {
|
|
3469
|
+
let o2 = {};
|
|
3470
|
+
if (m3.indexOf(".") > 0)
|
|
3471
|
+
0 === m3.indexOf("$") ? function(e4, t3, o3, l3, r3) {
|
|
3472
|
+
let n3 = e4.name;
|
|
3473
|
+
const i3 = n3.substring(n3.indexOf("$") + 1, n3.indexOf("."));
|
|
3474
|
+
if (!o3)
|
|
3475
|
+
return;
|
|
3476
|
+
const a3 = o3[i3], s3 = n3.substring(n3.indexOf(".") + 1);
|
|
3477
|
+
t3[i3] || (t3[i3] = {});
|
|
3478
|
+
const d3 = JSON.parse(JSON.stringify(e4));
|
|
3479
|
+
if (d3.name = s3, s3.indexOf(".") > 0) {
|
|
3480
|
+
if (void 0 !== a3 && null === a3 && 0 === a3.length) {
|
|
3481
|
+
const e5 = a3[0];
|
|
3482
|
+
on(d3, t3[i3], e5, l3, r3);
|
|
3483
|
+
}
|
|
3484
|
+
} else
|
|
3485
|
+
t3[i3][s3] = Qr(d3, r3);
|
|
3486
|
+
}(e3, c2, t2, l2, s2) : on(e3, a2, t2, l2, s2);
|
|
3487
|
+
else if (0 === m3.indexOf("$")) {
|
|
3488
|
+
const t3 = m3.substring(m3.indexOf("$") + 1);
|
|
3489
|
+
d2[t3] = { required: true, message: h().t("workflowEditorMessage.subTableMustInputDatas", { subTable: e3.label }) };
|
|
3490
|
+
} else
|
|
3491
|
+
o2 = Qr(e3, s2), a2[m3] = o2;
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3495
|
+
}), Object.keys(c2).length > 0 || Object.keys(d2).length > 0 ? { rules: a2, subRules: c2, totalSubRules: d2, dataTypeMap: s2 } : a2;
|
|
3496
|
+
}, cn = { install: function(e2, t2) {
|
|
3497
|
+
e2.config.globalProperties.$formValidator = sn, e2.config.globalProperties.$getValidator = dn;
|
|
3498
|
+
} }, mn = Tr.WorkflowEditor, un = Tr.WorkflowHistory, pn = Tr.wfEditorStore, hn = [mn, un], fn = function(e2) {
|
|
3499
|
+
fn.installed || (hn.forEach((t2) => {
|
|
3500
|
+
e2.component(t2.name, t2);
|
|
3501
|
+
}), e2.use(cn));
|
|
3502
|
+
};
|
|
3503
|
+
e.WorkflowEditor = mn, e.WorkflowHistory = un, e.wfEditorCn = d, e.wfEditorEn = s, e.wfEditorInstall = fn, e.wfEditorStore = pn, Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
|
|
3504
|
+
});
|