workflow-editor 0.0.81-up-tmp8 → 0.0.81-up-tmp10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.min.js +142 -138
- package/es/index.mjs +13 -15
- package/es/src/i18n/i18n.mjs +7 -0
- package/es/src/i18n/langs/cn.mjs +4 -0
- package/es/src/i18n/langs/en.mjs +4 -0
- package/es/style.css +153 -153
- package/es/workflow-editor/index.mjs +10 -0
- package/es/workflow-editor/src/api.mjs +6 -0
- package/es/workflow-editor/src/assets/wf-editor-icons.mjs +43 -0
- package/es/workflow-editor/src/json-object-templates/auto-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/copy-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/decision.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/end.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/fork.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/human-decision.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/human-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/join.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/process.mjs +9 -0
- package/es/workflow-editor/src/json-object-templates/start.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/subprocess.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/transition.mjs +6 -0
- package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +13 -0
- package/es/workflow-editor/src/main/canvas.vue.mjs +130 -0
- package/es/workflow-editor/src/main/canvas.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/context-menu.vue.mjs +33 -0
- package/es/workflow-editor/src/main/context-menu.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/icon-svg.vue.mjs +12 -0
- package/es/workflow-editor/src/main/icon-svg.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/selection-region.vue.mjs +17 -0
- package/es/workflow-editor/src/main/selection-region.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +10 -0
- package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +11 -0
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/toolbox.vue.mjs +16 -0
- package/es/workflow-editor/src/main/toolbox.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +86 -0
- package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +4 -0
- package/es/workflow-editor/src/process-service.mjs +21 -0
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +22 -0
- package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +125 -0
- package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +60 -0
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +5 -0
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +72 -0
- package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +18 -0
- package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +55 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +14 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +36 -0
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +27 -0
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +31 -0
- package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +36 -0
- package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +95 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +16 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +46 -0
- package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +43 -0
- package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +116 -0
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +60 -0
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +41 -0
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +30 -0
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +26 -0
- package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/decision.vue.mjs +24 -0
- package/es/workflow-editor/src/properties-editors/fork.vue.mjs +21 -0
- package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +15 -0
- package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +16 -0
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +38 -0
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +84 -0
- package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +62 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +80 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +86 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +43 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +67 -0
- package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +18 -0
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +33 -0
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +56 -0
- package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +28 -0
- package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/join.vue.mjs +15 -0
- package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +88 -0
- package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +21 -0
- package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +17 -0
- package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +10 -0
- package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +28 -0
- package/es/workflow-editor/src/properties-editors/process.vue.mjs +34 -0
- package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +64 -0
- package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +9 -0
- package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +55 -0
- package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +22 -0
- package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +14 -0
- package/es/workflow-editor/src/properties-editors/transition.vue.mjs +17 -0
- package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/user-condition.mjs +49 -0
- package/es/workflow-editor/src/store/getters.mjs +4 -0
- package/es/workflow-editor/src/store/workflow-editor.mjs +73 -0
- package/es/workflow-editor/src/taches/auto-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/common-methods.mjs +13 -0
- package/es/workflow-editor/src/taches/copy-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/custom-task.vue.mjs +16 -0
- package/es/workflow-editor/src/taches/decision.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/decision.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/end.vue.mjs +14 -0
- package/es/workflow-editor/src/taches/end.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/fork.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/fork.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/human-decision.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/human-decision.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/human-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/join.vue.mjs +16 -0
- package/es/workflow-editor/src/taches/join.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/joint.vue.mjs +54 -0
- package/es/workflow-editor/src/taches/joint.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/start.vue.mjs +14 -0
- package/es/workflow-editor/src/taches/start.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/subprocess.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +30 -0
- package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/broken-line.vue.mjs +32 -0
- package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/curve-line.vue.mjs +33 -0
- package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/straight-line.vue.mjs +13 -0
- package/es/workflow-editor/src/transitions/transition.vue.mjs +70 -0
- package/es/workflow-editor/src/transitions/transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +17 -0
- package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/util.mjs +180 -0
- package/es/workflow-editor/src/workflow-editor.vue.mjs +205 -0
- package/es/workflow-editor/src/workflow-editor.vue2.mjs +4 -0
- package/es/workflow-editor/src/workflow-history.vue.mjs +35 -0
- package/es/workflow-editor/src/workflow-history.vue2.mjs +4 -0
- package/lib/index.cjs +4 -4
- package/lib/src/i18n/i18n.cjs +3 -0
- package/lib/src/i18n/langs/cn.cjs +2 -0
- package/lib/src/i18n/langs/en.cjs +2 -0
- package/lib/style.css +110 -110
- package/lib/workflow-editor/index.cjs +7 -0
- package/lib/workflow-editor/src/api.cjs +5 -0
- package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +44 -0
- package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/decision.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/end.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/fork.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/human-task.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/join.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/process.cjs +6 -0
- package/lib/workflow-editor/src/json-object-templates/start.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +5 -0
- package/lib/workflow-editor/src/json-object-templates/transition.cjs +4 -0
- package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +11 -0
- package/lib/workflow-editor/src/main/canvas.vue.cjs +101 -0
- package/lib/workflow-editor/src/main/canvas.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/context-menu.vue.cjs +29 -0
- package/lib/workflow-editor/src/main/context-menu.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/icon-svg.vue.cjs +10 -0
- package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/selection-region.vue.cjs +13 -0
- package/lib/workflow-editor/src/main/selection-region.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +8 -0
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +9 -0
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/toolbox.vue.cjs +11 -0
- package/lib/workflow-editor/src/main/toolbox.vue2.cjs +2 -0
- package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +67 -0
- package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +2 -0
- package/lib/workflow-editor/src/process-service.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +19 -0
- package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +94 -0
- package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +54 -0
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +4 -0
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +67 -0
- package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +16 -0
- package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +50 -0
- package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +11 -0
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +17 -0
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +31 -0
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +22 -0
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +25 -0
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +31 -0
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +17 -0
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +93 -0
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +42 -0
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +37 -0
- package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +110 -0
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +55 -0
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +39 -0
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +26 -0
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +19 -0
- package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +20 -0
- package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +18 -0
- package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +31 -0
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +82 -0
- package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +56 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +75 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +80 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +39 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +60 -0
- package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +15 -0
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +26 -0
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +49 -0
- package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +19 -0
- package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/join.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +81 -0
- package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +18 -0
- package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +21 -0
- package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +13 -0
- package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +7 -0
- package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +23 -0
- package/lib/workflow-editor/src/properties-editors/process.vue.cjs +24 -0
- package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +57 -0
- package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +7 -0
- package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +50 -0
- package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +16 -0
- package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +17 -0
- package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +10 -0
- package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +12 -0
- package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +2 -0
- package/lib/workflow-editor/src/properties-editors/user-condition.cjs +33 -0
- package/lib/workflow-editor/src/store/getters.cjs +2 -0
- package/lib/workflow-editor/src/store/workflow-editor.cjs +71 -0
- package/lib/workflow-editor/src/taches/auto-task.vue.cjs +17 -0
- package/lib/workflow-editor/src/taches/common-methods.cjs +11 -0
- package/lib/workflow-editor/src/taches/copy-task.vue.cjs +17 -0
- package/lib/workflow-editor/src/taches/custom-task.vue.cjs +9 -0
- package/lib/workflow-editor/src/taches/decision.vue.cjs +19 -0
- package/lib/workflow-editor/src/taches/decision.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/end.vue.cjs +9 -0
- package/lib/workflow-editor/src/taches/end.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/fork.vue.cjs +19 -0
- package/lib/workflow-editor/src/taches/fork.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/human-decision.vue.cjs +19 -0
- package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/human-task.vue.cjs +17 -0
- package/lib/workflow-editor/src/taches/join.vue.cjs +11 -0
- package/lib/workflow-editor/src/taches/join.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/joint.vue.cjs +50 -0
- package/lib/workflow-editor/src/taches/joint.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/start.vue.cjs +9 -0
- package/lib/workflow-editor/src/taches/start.vue2.cjs +2 -0
- package/lib/workflow-editor/src/taches/subprocess.vue.cjs +17 -0
- package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +27 -0
- package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +2 -0
- package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +28 -0
- package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +2 -0
- package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +29 -0
- package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +2 -0
- package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +9 -0
- package/lib/workflow-editor/src/transitions/transition.vue.cjs +63 -0
- package/lib/workflow-editor/src/transitions/transition.vue2.cjs +2 -0
- package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +13 -0
- package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +2 -0
- package/lib/workflow-editor/src/util.cjs +139 -0
- package/lib/workflow-editor/src/workflow-editor.vue.cjs +191 -0
- package/lib/workflow-editor/src/workflow-editor.vue2.cjs +2 -0
- package/lib/workflow-editor/src/workflow-history.vue.cjs +28 -0
- package/lib/workflow-editor/src/workflow-history.vue2.cjs +2 -0
- package/package.json +1 -1
- package/packages/index.js +50 -0
- package/packages/plugins/formValidatorUtil.js +723 -0
- package/packages/plugins/index.js +8 -0
- package/packages/workflow-editor/index.js +14 -0
- package/packages/workflow-editor/src/api.js +7 -0
- package/packages/workflow-editor/src/assets/tab-select.png +0 -0
- package/packages/workflow-editor/src/assets/tab-selectWhite.png +0 -0
- package/packages/workflow-editor/src/assets/wf-editor-icons.js +2 -0
- package/packages/workflow-editor/src/constant.js +8 -0
- package/packages/workflow-editor/src/json-object-templates/auto-task.js +70 -0
- package/packages/workflow-editor/src/json-object-templates/copy-task.js +72 -0
- package/packages/workflow-editor/src/json-object-templates/decision.js +11 -0
- package/packages/workflow-editor/src/json-object-templates/end.js +14 -0
- package/packages/workflow-editor/src/json-object-templates/fork.js +10 -0
- package/packages/workflow-editor/src/json-object-templates/human-decision.js +9 -0
- package/packages/workflow-editor/src/json-object-templates/human-task.js +208 -0
- package/packages/workflow-editor/src/json-object-templates/join.js +10 -0
- package/packages/workflow-editor/src/json-object-templates/process.js +99 -0
- package/packages/workflow-editor/src/json-object-templates/start.js +13 -0
- package/packages/workflow-editor/src/json-object-templates/subprocess.js +31 -0
- package/packages/workflow-editor/src/json-object-templates/transition.js +26 -0
- package/packages/workflow-editor/src/main/admin-save-dialog.vue +67 -0
- package/packages/workflow-editor/src/main/canvas.vue +493 -0
- package/packages/workflow-editor/src/main/context-menu.vue +147 -0
- package/packages/workflow-editor/src/main/icon-svg.vue +32 -0
- package/packages/workflow-editor/src/main/selection-region.vue +66 -0
- package/packages/workflow-editor/src/main/tache-history-tooltip.vue +38 -0
- package/packages/workflow-editor/src/main/tache-name-input.vue +19 -0
- package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +40 -0
- package/packages/workflow-editor/src/main/toolbox.vue +60 -0
- package/packages/workflow-editor/src/main/wf-history-canvas.vue +309 -0
- package/packages/workflow-editor/src/process-json.js +624 -0
- package/packages/workflow-editor/src/process-service.js +68 -0
- package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +81 -0
- package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +155 -0
- package/packages/workflow-editor/src/properties-editors/auto-task.vue +74 -0
- package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +568 -0
- package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +320 -0
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +34 -0
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +268 -0
- package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +81 -0
- package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +242 -0
- package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +23 -0
- package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +117 -0
- package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +88 -0
- package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +143 -0
- package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +149 -0
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +108 -0
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +272 -0
- package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +92 -0
- package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +66 -0
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +354 -0
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +68 -0
- package/packages/workflow-editor/src/properties-editors/common/task-title.vue +165 -0
- package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +275 -0
- package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +426 -0
- package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +272 -0
- package/packages/workflow-editor/src/properties-editors/common/variables.vue +139 -0
- package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +90 -0
- package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +155 -0
- package/packages/workflow-editor/src/properties-editors/copy-task.vue +95 -0
- package/packages/workflow-editor/src/properties-editors/decision.vue +95 -0
- package/packages/workflow-editor/src/properties-editors/fork.vue +77 -0
- package/packages/workflow-editor/src/properties-editors/human-decision.vue +49 -0
- package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +62 -0
- package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +184 -0
- package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +359 -0
- package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +256 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +405 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +257 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +430 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +206 -0
- package/packages/workflow-editor/src/properties-editors/human-task/events.vue +60 -0
- package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +224 -0
- package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +499 -0
- package/packages/workflow-editor/src/properties-editors/human-task.vue +107 -0
- package/packages/workflow-editor/src/properties-editors/join.vue +49 -0
- package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +336 -0
- package/packages/workflow-editor/src/properties-editors/process/events.vue +79 -0
- package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +68 -0
- package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +106 -0
- package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +28 -0
- package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +88 -0
- package/packages/workflow-editor/src/properties-editors/process.vue +115 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +201 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +26 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +216 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +66 -0
- package/packages/workflow-editor/src/properties-editors/subprocess.vue +80 -0
- package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +53 -0
- package/packages/workflow-editor/src/properties-editors/transition.vue +75 -0
- package/packages/workflow-editor/src/properties-editors/user-condition.js +183 -0
- package/packages/workflow-editor/src/store/getters.js +33 -0
- package/packages/workflow-editor/src/store/workflow-editor.js +153 -0
- package/packages/workflow-editor/src/taches/auto-task.vue +99 -0
- package/packages/workflow-editor/src/taches/common-methods.js +21 -0
- package/packages/workflow-editor/src/taches/copy-task.vue +99 -0
- package/packages/workflow-editor/src/taches/custom-task.vue +88 -0
- package/packages/workflow-editor/src/taches/decision.vue +102 -0
- package/packages/workflow-editor/src/taches/end.vue +76 -0
- package/packages/workflow-editor/src/taches/fork.vue +102 -0
- package/packages/workflow-editor/src/taches/human-decision.vue +102 -0
- package/packages/workflow-editor/src/taches/human-task.vue +113 -0
- package/packages/workflow-editor/src/taches/join.vue +91 -0
- package/packages/workflow-editor/src/taches/joint.vue +177 -0
- package/packages/workflow-editor/src/taches/start.vue +76 -0
- package/packages/workflow-editor/src/taches/subprocess.vue +99 -0
- package/packages/workflow-editor/src/taches/tache-resizer.vue +80 -0
- package/packages/workflow-editor/src/transitions/broken-line.vue +91 -0
- package/packages/workflow-editor/src/transitions/curve-line.vue +91 -0
- package/packages/workflow-editor/src/transitions/straight-line.vue +26 -0
- package/packages/workflow-editor/src/transitions/transition.vue +209 -0
- package/packages/workflow-editor/src/transitions/virtual-transition.vue +43 -0
- package/packages/workflow-editor/src/util.js +499 -0
- package/packages/workflow-editor/src/workflow-editor.vue +852 -0
- package/packages/workflow-editor/src/workflow-history.vue +153 -0
- package/src/i18n/i18n.js +16 -0
- package/src/i18n/langs/cn.js +521 -0
- package/src/i18n/langs/en.js +529 -0
- package/.vscode/extensions.json +0 -3
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { resolveComponent as t, openBlock as e, createElementBlock as o, createVNode as l, withCtx as i, unref as a, createTextVNode as n, toDisplayString as s, Fragment as r, renderList as d, createBlock as c, createCommentVNode as u } from "vue";
|
|
2
|
+
import { CirclePlus as w, Delete as p } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
3
|
+
import { getI18n as h } from "../../util.mjs";
|
|
4
|
+
import f from "./additional-condition-dialog.vue.mjs";
|
|
5
|
+
import { parseCondition as k, displayCondition as m } from "../common/additional-condition-utils.mjs";
|
|
6
|
+
const b = { name: "CustomActions", components: { AdditionalConditionDialog: f }, props: { model: { type: Object, default: null } }, data() {
|
|
7
|
+
const t2 = [];
|
|
8
|
+
let e2 = 1;
|
|
9
|
+
if (this.model.action)
|
|
10
|
+
if (Array.isArray(this.model.action))
|
|
11
|
+
for (const o2 of this.model.action)
|
|
12
|
+
t2.push({ ...o2, id: e2 }), e2++;
|
|
13
|
+
else
|
|
14
|
+
t2.push({ ...this.model.action, id: e2 }), e2++;
|
|
15
|
+
return { actions: t2, 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: e2, showAdditionalCondition: false };
|
|
16
|
+
}, mounted() {
|
|
17
|
+
this.actions.length > 0 && this.selectRow(this.actions[this.actions.length - 1]), this.$watch("actions", function(t2, e2) {
|
|
18
|
+
const o2 = [];
|
|
19
|
+
for (const t3 of this.actions) {
|
|
20
|
+
const e3 = { ...t3 };
|
|
21
|
+
delete e3.id, o2.push(e3);
|
|
22
|
+
}
|
|
23
|
+
this.$emit("updateAction", o2);
|
|
24
|
+
}, { deep: true });
|
|
25
|
+
}, methods: { selectRow(t2) {
|
|
26
|
+
this.$refs.table.setCurrentRow(t2);
|
|
27
|
+
}, getRowIndex(t2) {
|
|
28
|
+
for (let e2 = 0; e2 < this.actions.length; e2++)
|
|
29
|
+
if (this.actions[e2].id === t2.id)
|
|
30
|
+
return e2;
|
|
31
|
+
return -1;
|
|
32
|
+
}, handleCurrentChange(t2) {
|
|
33
|
+
this.currentRow = t2;
|
|
34
|
+
}, isDuplicated(t2) {
|
|
35
|
+
const e2 = this.getRowIndex(this.currentRow);
|
|
36
|
+
for (let o2 = 0; o2 < this.actions.length; o2++)
|
|
37
|
+
o2 !== e2 && this.actions[o2].type === t2 && (this.$alert(this.$t("workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect", { row: o2 + 1 })), this.currentRow.type = "");
|
|
38
|
+
}, add() {
|
|
39
|
+
for (let t3 = 0; t3 < this.actions.length; t3++) {
|
|
40
|
+
const e2 = this.actions[t3];
|
|
41
|
+
if ("" === e2.type || "" === e2.label)
|
|
42
|
+
return void this.$alert(this.$t("workflowEditorMessage.theOperationTypeOrNameInLineIsEmpty", { row: t3 + 1 }));
|
|
43
|
+
}
|
|
44
|
+
const t2 = { id: this.count, type: "", label: "", visible: true, condition: "" };
|
|
45
|
+
this.actions.push(t2), this.selectRow(t2), this.count++;
|
|
46
|
+
}, remove() {
|
|
47
|
+
let t2 = this.getRowIndex(this.currentRow);
|
|
48
|
+
this.actions.splice(t2, 1), this.actions.length > 0 && (t2 = t2 <= this.actions.length - 1 ? t2 : this.actions.length - 1, this.$refs.table.setCurrentRow(this.actions[t2]));
|
|
49
|
+
}, formatCondition(t2) {
|
|
50
|
+
if ("" === t2 || !t2)
|
|
51
|
+
return this.$t("workflowEditor.task.nothing");
|
|
52
|
+
const e2 = [];
|
|
53
|
+
return k(e2, t2), m(e2);
|
|
54
|
+
}, selectCondition(t2) {
|
|
55
|
+
this.selectRow(t2), this.currentRow || (this.currentRow.condition = ""), this.showAdditionalCondition = true;
|
|
56
|
+
} } }, y = Object.assign(b, { setup: (h2) => (h3, k2) => {
|
|
57
|
+
const m2 = t("el-button"), b2 = t("el-table-column"), y2 = t("el-option"), E = t("el-select"), g = t("el-input"), C = t("el-checkbox"), R = t("el-table"), v = t("el-row");
|
|
58
|
+
return e(), o("div", null, [l(v, null, { default: i(() => [l(m2, { type: "primary", size: "small", plain: "", icon: a(w), onClick: h3.add }, { default: i(() => [n(s(h3.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["icon", "onClick"]), l(m2, { type: "primary", size: "small", plain: "", icon: a(p), onClick: h3.remove }, { default: i(() => [n(s(h3.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["icon", "onClick"]), l(R, { ref: "table", data: h3.actions, "row-key": "type", border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: h3.handleCurrentChange }, { default: i(() => [l(b2, { type: "index" }), l(b2, { label: h3.$t("workflowEditor.task.operationType"), width: "180" }, { default: i((t2) => [l(E, { modelValue: t2.row.type, "onUpdate:modelValue": (e2) => t2.row.type = e2, onChange: h3.isDuplicated }, { default: i(() => [(e(true), o(r, null, d(h3.actionTypes, (t3) => (e(), c(y2, { key: t3.id, value: t3.type, label: t3.label }, null, 8, ["value", "label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "label", label: h3.$t("workflowEditor.task.name"), width: "180" }, { default: i((t2) => [l(g, { modelValue: t2.row.label, "onUpdate:modelValue": (e2) => t2.row.label = e2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "visible", label: h3.$t("workflowEditor.task.visibleOrNot") }, { default: i((t2) => [l(C, { modelValue: t2.row.visible, "onUpdate:modelValue": (e2) => t2.row.visible = e2 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), l(b2, { prop: "condition", label: h3.$t("workflowEditor.task.condition") }, { default: i((t2) => [l(g, { value: h3.formatCondition(t2.row.condition), type: "textarea", autosize: "", onFocus: (e2) => h3.selectCondition(t2.row) }, null, 8, ["value", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), h3.showAdditionalCondition ? (e(), c(a(f), { key: 0, modelValue: h3.currentRow.condition, "onUpdate:modelValue": k2[0] || (k2[0] = (t2) => h3.currentRow.condition = t2), onClose: k2[1] || (k2[1] = (t2) => h3.showAdditionalCondition = false) }, null, 8, ["modelValue"])) : u("", true)]);
|
|
59
|
+
} });
|
|
60
|
+
export {
|
|
61
|
+
y as default
|
|
62
|
+
};
|
package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { mapGetters as t } from "vuex";
|
|
2
|
+
import i from "./selection-conditions.vue.mjs";
|
|
3
|
+
import e from "./componentsConfigUtil.mjs";
|
|
4
|
+
import { resolveComponent as n, openBlock as o, createElementBlock as l, createElementVNode as a, createVNode as r, withCtx as s, createTextVNode as d, toDisplayString as u, createBlock as c, createCommentVNode as h, Fragment as b, renderList as m } from "vue";
|
|
5
|
+
import p from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const C = p({ name: "EditableChildFieldSetting", components: { selectionConditions: i }, props: { setting: { type: Object, default: null }, tableName: { type: String, default: null } }, data() {
|
|
7
|
+
let t2 = [];
|
|
8
|
+
this.setting && this.setting.actionArr && (t2 = this.setting.actionArr);
|
|
9
|
+
let i2, e2, n2, o2 = [];
|
|
10
|
+
return this.setting && this.setting.fieldArr && (o2 = this.setting.fieldArr), this.setting && this.setting.visibleConditionArr && (i2 = this.setting.visibleConditionArr), this.setting && this.setting.modelName && (e2 = this.setting.modelName), this.setting && null !== this.setting.sumPermission && (n2 = this.setting.sumPermission), { sumPermission: n2, subtableConditionItem: null, attributeArr: null, showAdditionalCondition: false, currentRow: null, multipleSelection: null, actionArr: t2, fieldArr: o2, queryList: null, fieldMap: null, fieldNameMap: null, actionVisibleConditionArr: i2, buttonType: null, buttonVisibleCon: null, showButtonVisibleFlag: false, clickButton: false, operationArr: [], modelName: e2 };
|
|
11
|
+
}, watch: { setting: { handler(t2, i2) {
|
|
12
|
+
t2 && t2.actionArr && (this.actionArr = t2.actionArr), t2 && t2.fieldArr && (this.fieldArr = t2.fieldArr), t2 && t2.actionVisibleConditionArr && (this.actionVisibleConditionArr = t2.actionVisibleConditionArr), this.modelName = t2.modelName, this.sumPermission = t2.sumPermission, this.combinationParameters();
|
|
13
|
+
}, deep: true } }, computed: { ...t("wfEditor", ["subtableConditionMap"]) }, created() {
|
|
14
|
+
this.subtableConditionMap && this.tableName && (this.subtableConditionItem = this.subtableConditionMap[this.tableName], this.getAttributeArr());
|
|
15
|
+
}, mounted() {
|
|
16
|
+
this.subtableConditionMap && this.tableName && (this.subtableConditionItem = this.subtableConditionMap[this.tableName], this.subtableConditionMap[this.tableName] && (this.attributeArr = this.subtableConditionItem.attributeArr));
|
|
17
|
+
}, methods: { ...e, getAttributeArr() {
|
|
18
|
+
this.subtableConditionItem && this.subtableConditionItem.attributeArr && (this.queryList = this.subtableConditionItem.attributeArr, this.fieldMap = this.subtableConditionItem.fieldMap, this.fieldNameMap = this.subtableConditionItem.fieldNameMap);
|
|
19
|
+
}, savebuttonSetting(t2) {
|
|
20
|
+
t2 && (this.currentRow.condition = t2.condition, this.currentRow.userCondition = t2.userCondition, this.currentRow.parentCondition = t2.parentCondition, this.combinationParameters()), this.showAdditionalCondition = false;
|
|
21
|
+
}, handleCurrentChange(t2) {
|
|
22
|
+
this.currentRow = t2;
|
|
23
|
+
}, handleSelectionChange(t2) {
|
|
24
|
+
this.multipleSelection = t2;
|
|
25
|
+
}, selectRow(t2) {
|
|
26
|
+
this.$refs.table.setCurrentRow(t2);
|
|
27
|
+
}, add() {
|
|
28
|
+
this.fieldArr || (this.fieldArr = []), this.fieldArr.push({ name: null, constraintRule: null, condition: null }), this.combinationParameters();
|
|
29
|
+
}, getCurrentRowIndex() {
|
|
30
|
+
let t2 = -1;
|
|
31
|
+
for (let i2 = 0; i2 < this.fieldArr.length; i2++)
|
|
32
|
+
if (this.fieldArr[i2].name === this.currentRow.name) {
|
|
33
|
+
t2 = i2;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
return t2;
|
|
37
|
+
}, remove() {
|
|
38
|
+
if (this.multipleSelection && this.multipleSelection.length > 0) {
|
|
39
|
+
for (var t2 = 0; t2 < this.multipleSelection.length; t2++) {
|
|
40
|
+
const i2 = this.multipleSelection[t2];
|
|
41
|
+
this.selectRow(i2);
|
|
42
|
+
const e2 = this.getCurrentRowIndex();
|
|
43
|
+
this.fieldArr.splice(e2, 1);
|
|
44
|
+
}
|
|
45
|
+
this.combinationParameters();
|
|
46
|
+
}
|
|
47
|
+
}, selectCondition(t2) {
|
|
48
|
+
this.selectRow(t2), this.showAdditionalCondition = true;
|
|
49
|
+
}, showButtonVisible(t2) {
|
|
50
|
+
this.clickButton = true, this.buttonType = t2, this.actionVisibleConditionArr && this.actionVisibleConditionArr[t2] ? this.buttonVisibleCon = this.actionVisibleConditionArr[t2] : this.buttonVisibleCon = {}, this.showButtonVisibleFlag = true;
|
|
51
|
+
}, saveButtonVisible(t2) {
|
|
52
|
+
t2 && (this.actionVisibleConditionArr || (this.actionVisibleConditionArr = {}), this.actionVisibleConditionArr[this.buttonType] = t2, this.combinationParameters()), this.showButtonVisibleFlag = false;
|
|
53
|
+
}, changeActionArr() {
|
|
54
|
+
this.clickButton ? (this.actionArr.push(this.buttonType), this.clickButton = false) : this.combinationParameters();
|
|
55
|
+
}, combinationParameters() {
|
|
56
|
+
const t2 = {};
|
|
57
|
+
t2.modelName = this.modelName, t2.tableName = this.tableName, t2.permission = this.sumPermission;
|
|
58
|
+
const i2 = [];
|
|
59
|
+
if (this.actionArr && this.actionArr.length > 0 && (this.actionArr.forEach((t3) => {
|
|
60
|
+
const e2 = {};
|
|
61
|
+
if (e2.name = t3, this.actionVisibleConditionArr && this.actionVisibleConditionArr[t3]) {
|
|
62
|
+
const i3 = this.actionVisibleConditionArr[t3];
|
|
63
|
+
e2.condition = this.dataToXml(i3.condition), e2.parentCondition = i3.parentCondition, e2.userCondition = i3.userCondition;
|
|
64
|
+
}
|
|
65
|
+
i2.push(e2);
|
|
66
|
+
}), t2.action = i2), this.fieldArr && this.fieldArr.length > 0) {
|
|
67
|
+
const i3 = [];
|
|
68
|
+
this.fieldArr.forEach((t3) => {
|
|
69
|
+
const e2 = {};
|
|
70
|
+
e2.name = t3.name, e2.constraintRule = t3.constraintRule, t3.condition && (e2.condition = this.dataToXml(t3.condition)), e2.userCondition = t3.userCondition, e2.parentCondition = t3.parentCondition, i3.push(e2);
|
|
71
|
+
}), t2.field = i3;
|
|
72
|
+
}
|
|
73
|
+
this.$emit("combinationParameters", t2);
|
|
74
|
+
} } }, [["render", function(t2, i2, e2, p2, C2, f) {
|
|
75
|
+
const A = n("Tools"), w = n("el-icon"), g = n("el-checkbox"), V = n("el-col"), k = n("el-row"), y = n("el-checkbox-group"), _ = n("selection-conditions"), R = n("el-button"), E = n("el-table-column"), v = n("el-option"), N = n("el-select"), P = n("el-radio"), M = n("el-radio-group"), B = n("el-table");
|
|
76
|
+
return o(), l("div", null, [a("div", null, [r(y, { modelValue: C2.actionArr, "onUpdate:modelValue": i2[4] || (i2[4] = (t3) => C2.actionArr = t3), onChange: f.changeActionArr }, { default: s(() => [r(k, null, { default: s(() => [r(V, { span: 6 }, { default: s(() => [r(g, { label: "notEmpty" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.tableDataNotEmpty")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("notEmpty") ? (o(), c(w, { key: 0, onClick: i2[0] || (i2[0] = (t3) => f.showButtonVisible("notEmpty")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "add" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.rowsCanBeAdded")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("add") ? (o(), c(w, { key: 0, onClick: i2[1] || (i2[1] = (t3) => f.showButtonVisible("add")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "delete" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.deleteLine")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("delete") ? (o(), c(w, { key: 0, onClick: i2[2] || (i2[2] = (t3) => f.showButtonVisible("delete")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 }), r(V, { span: 6 }, { default: s(() => [r(g, { label: "update" }, { default: s(() => [d(u(t2.$t("workflowEditor.condition.modifiableHistoricalData")) + " ", 1), C2.actionArr && -1 !== C2.actionArr.indexOf("update") ? (o(), c(w, { key: 0, onClick: i2[3] || (i2[3] = (t3) => f.showButtonVisible("update")) }, { default: s(() => [r(A)]), _: 1 })) : h("", true)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), C2.showButtonVisibleFlag ? (o(), c(_, { key: 0, "attribute-map": C2.subtableConditionItem, "condition-list": C2.buttonVisibleCon.condition, "parent-condition": C2.buttonVisibleCon.parentCondition, "user-condition": C2.buttonVisibleCon.userCondition, "button-type": C2.buttonType, onClose: f.saveButtonVisible }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "button-type", "onClose"])) : h("", true)]), a("div", null, [r(k, null, { default: s(() => [r(R, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: f.add }, { default: s(() => [d(u(t2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r(R, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: f.remove }, { default: s(() => [d(u(t2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r(B, { ref: "table", data: C2.fieldArr, border: "", "highlight-current-row": "", style: { width: "100%" }, onSelectionChange: f.handleSelectionChange, onCurrentChange: f.handleCurrentChange }, { default: s(() => [r(E, { type: "selection", width: "55", align: "center" }), r(E, { type: "index", width: "50", align: "center" }), r(E, { prop: "name", label: t2.$t("workflowEditor.task.propertyName"), width: "280", align: "center" }, { default: s((i3) => [r(N, { modelValue: i3.row.name, "onUpdate:modelValue": (t3) => i3.row.name = t3, size: "small", filterable: "", onChange: f.combinationParameters }, { default: s(() => [r(v, { label: t2.$t("workflowEditor.condition.allFields"), value: "all_fields" }, null, 8, ["label"]), (o(true), l(b, null, m(C2.attributeArr, (t3) => (o(), c(v, { key: t3.value, label: t3.label, value: t3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r(E, { prop: "constraintRule", label: t2.$t("workflowEditor.task.editingMethod"), width: "380", align: "center" }, { default: s((i3) => [r(M, { modelValue: i3.row.constraintRule, "onUpdate:modelValue": (t3) => i3.row.constraintRule = t3, onChange: f.combinationParameters }, { default: s(() => [r(P, { label: "REQUIRED" }, { default: s(() => [d(u(t2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r(P, { label: "READ_ONLY" }, { default: s(() => [d(u(t2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r(E, { prop: "condition", label: t2.$t("workflowEditor.task.condition"), align: "center" }, { default: s((t3) => [r(w, { onClick: (i3) => f.selectCondition(t3.row) }, { default: s(() => [r(A)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), C2.showAdditionalCondition ? (o(), c(_, { key: 0, "attribute-map": C2.subtableConditionItem, "condition-list": C2.currentRow.condition, "parent-condition": C2.currentRow.parentCondition, "user-condition": C2.currentRow.userCondition, onClose: f.savebuttonSetting }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "onClose"])) : h("", true)])]);
|
|
77
|
+
}]]);
|
|
78
|
+
export {
|
|
79
|
+
C as default
|
|
80
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import e from "./editable-child-field-setting.vue.mjs";
|
|
2
|
+
import i from "./componentsConfigUtil.mjs";
|
|
3
|
+
import { mapGetters as t } from "vuex";
|
|
4
|
+
import { resolveComponent as l, openBlock as s, createElementBlock as n, Fragment as o, renderList as d, createVNode as a, withCtx as m, createElementVNode as c, toDisplayString as r, createBlock as u, createCommentVNode as p } from "vue";
|
|
5
|
+
import h from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const f = { name: "EditableChildFields", components: { editableChildFieldSetting: e }, props: { modelValue: { type: [Array, Object], default: null } }, data() {
|
|
7
|
+
let e2 = [];
|
|
8
|
+
return "" !== this.modelValue && null !== this.modelValue && void 0 !== this.modelValue && (Array.isArray(this.modelValue) ? e2 = this.modelValue : e2.push(this.modelValue)), { selectedFields: e2, selectedFieldMap: {} };
|
|
9
|
+
}, computed: { ...t("wfEditor", ["subtableConditionMap"]) }, watch: {}, created() {
|
|
10
|
+
if (this.selectedFields && this.selectedFields.length > 0 && this.selectedFields.forEach((e3) => {
|
|
11
|
+
const i2 = {}, t2 = e3.tableName;
|
|
12
|
+
if (e3.action)
|
|
13
|
+
if (Array.isArray(e3.action)) {
|
|
14
|
+
if (e3.action.length > 0) {
|
|
15
|
+
const t3 = [], l2 = {};
|
|
16
|
+
e3.action.forEach((e4) => {
|
|
17
|
+
t3.push(e4.name);
|
|
18
|
+
const i3 = {};
|
|
19
|
+
e4.condition && (i3.condition = this.xmlToData(e4.condition)), i3.parentCondition = e4.parentCondition, i3.userCondition = e4.userCondition, l2[e4.name] = i3;
|
|
20
|
+
}), i2.actionArr = t3, i2.visibleConditionArr = l2;
|
|
21
|
+
}
|
|
22
|
+
} else {
|
|
23
|
+
const t3 = [], l2 = {};
|
|
24
|
+
t3.push(e3.action.name);
|
|
25
|
+
const s2 = {};
|
|
26
|
+
e3.action.condition && (s2.condition = this.xmlToData(e3.action.condition)), s2.parentCondition = e3.action.parentCondition, s2.userCondition = e3.action.userCondition, l2[e3.action.name] = s2, i2.actionArr = t3, i2.visibleConditionArr = l2;
|
|
27
|
+
}
|
|
28
|
+
if (e3.field)
|
|
29
|
+
if (Array.isArray(e3.field)) {
|
|
30
|
+
if (e3.field.length > 0) {
|
|
31
|
+
const t3 = [];
|
|
32
|
+
e3.field.forEach((e4) => {
|
|
33
|
+
const i3 = {};
|
|
34
|
+
i3.name = e4.name, i3.constraintRule = e4.constraintRule, i3.condition = this.xmlToData(e4.condition), i3.userCondition = e4.userCondition, i3.parentCondition = e4.parentCondition, t3.push(i3);
|
|
35
|
+
}), i2.fieldArr = t3;
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
const t3 = [], l2 = {};
|
|
39
|
+
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, t3.push(l2), i2.fieldArr = t3;
|
|
40
|
+
}
|
|
41
|
+
e3.modelName ? i2.modelName = e3.modelName : i2.modelName = null, e3.permission ? i2.sumPermission = e3.permission : i2.sumPermission = false, this.selectedFieldMap[t2] = i2;
|
|
42
|
+
}), this.subtableConditionMap) {
|
|
43
|
+
for (var e2 in this.subtableConditionMap)
|
|
44
|
+
if (!this.selectedFieldMap[e2]) {
|
|
45
|
+
const i2 = {};
|
|
46
|
+
i2.tableName = e2, i2.modelName = this.subtableConditionMap[e2].modelName, i2.sumPermission = false, this.selectedFieldMap[e2] = i2;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, mounted() {
|
|
50
|
+
}, methods: { ...i, combinationParameters(e2) {
|
|
51
|
+
if (e2 && e2.tableName) {
|
|
52
|
+
if (this.selectedFields && this.selectedFields.length > 0) {
|
|
53
|
+
const i2 = this.selectedFields.findIndex((i3) => i3.tableName === e2.tableName);
|
|
54
|
+
-1 !== i2 ? this.selectedFields[i2] = e2 : this.selectedFields.push(e2);
|
|
55
|
+
} else
|
|
56
|
+
this.selectedFields = [], this.selectedFields.push(e2);
|
|
57
|
+
this.$emit("update:modelValue", this.selectedFields);
|
|
58
|
+
}
|
|
59
|
+
}, refreshModelName(e2) {
|
|
60
|
+
if (this.subtableConditionMap && this.subtableConditionMap[e2] && this.subtableConditionMap[e2].modelName) {
|
|
61
|
+
if (this.selectedFieldMap[e2]) {
|
|
62
|
+
this.selectedFieldMap[e2].modelName = this.subtableConditionMap[e2].modelName;
|
|
63
|
+
} else {
|
|
64
|
+
const i2 = {};
|
|
65
|
+
i2.modelName = this.subtableConditionMap[e2].modelName, this.selectedFieldMap[e2] = i2;
|
|
66
|
+
}
|
|
67
|
+
this.$message({ showClose: true, type: "success", message: this.$t("workflowEditorMessage.updateSuccessful") });
|
|
68
|
+
}
|
|
69
|
+
}, changeSumPermission(e2) {
|
|
70
|
+
if (e2 && this.selectedFieldMap[e2])
|
|
71
|
+
if (this.selectedFields || (this.selectedFields = []), false === this.selectedFieldMap[e2].sumPermission) {
|
|
72
|
+
const i2 = this.selectedFields.findIndex((i3) => i3.tableName === e2);
|
|
73
|
+
null != i2 && -1 !== i2 ? this.selectedFields[i2].permission = false : this.selectedFields[this.selectedFields.length] = { permission: false, tableName: e2 };
|
|
74
|
+
} else {
|
|
75
|
+
const i2 = this.selectedFields.findIndex((i3) => i3.tableName === e2);
|
|
76
|
+
null != i2 && -1 !== i2 ? this.selectedFields[i2].permission = true : this.selectedFields[this.selectedFields.length] = { permission: true, tableName: e2 };
|
|
77
|
+
}
|
|
78
|
+
this.$emit("update:modelValue", this.selectedFields);
|
|
79
|
+
} } }, b = { style: { width: "100%", "margin-top": "10px" } }, F = { class: "clearfix" }, C = { key: 0 }, M = { style: { color: "cornflowerblue" } }, N = { style: { "padding-left": "5px" } }, g = { key: 0 };
|
|
80
|
+
const x = h(f, [["render", function(e2, i2, t2, h2, f2, x2) {
|
|
81
|
+
const y = l("el-col"), V = l("el-switch"), v = l("el-row"), w = l("el-input"), P = l("el-button"), A = l("editable-child-field-setting"), k = l("el-card");
|
|
82
|
+
return s(), n("div", b, [(s(true), n(o, null, d(e2.subtableConditionMap, (i3, t3) => (s(), n("span", { key: t3 }, [a(k, { class: "box-card" }, { default: m(() => [c("div", F, [a(v, null, { default: m(() => [a(y, { span: 12 }, { default: m(() => [c("span", null, r(t3), 1)]), _: 2 }, 1024), f2.selectedFieldMap[t3] ? (s(), u(y, { key: 0, span: 12 }, { default: m(() => [a(V, { modelValue: f2.selectedFieldMap[t3].sumPermission, "onUpdate:modelValue": (e3) => f2.selectedFieldMap[t3].sumPermission = e3, "inactive-text": e2.$t("workflowEditor.condition.accessControl"), onChange: (e3) => x2.changeSumPermission(t3) }, null, 8, ["modelValue", "onUpdate:modelValue", "inactive-text", "onChange"])]), _: 2 }, 1024)) : p("", true)]), _: 2 }, 1024), a(v, null, { default: m(() => [a(y, null, { default: m(() => [f2.selectedFieldMap[t3] && f2.selectedFieldMap[t3].sumPermission ? (s(), n("span", C, [c("span", M, r(e2.$t("workflowEditor.condition.formBindingModel")) + ":", 1), c("span", N, [a(w, { modelValue: f2.selectedFieldMap[t3].modelName, "onUpdate:modelValue": (e3) => f2.selectedFieldMap[t3].modelName = e3, style: { width: "300px" } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), a(P, { icon: "el-icon-refresh", type: "text", onClick: (e3) => x2.refreshModelName(t3) }, null, 8, ["onClick"])])) : p("", true)]), _: 2 }, 1024)]), _: 2 }, 1024)]), f2.selectedFieldMap[t3] && f2.selectedFieldMap[t3].sumPermission ? (s(), n("div", g, [a(A, { setting: f2.selectedFieldMap[t3], "table-name": t3, onCombinationParameters: x2.combinationParameters }, null, 8, ["setting", "table-name", "onCombinationParameters"])])) : p("", true)]), _: 2 }, 1024)]))), 128))]);
|
|
83
|
+
}]]);
|
|
84
|
+
export {
|
|
85
|
+
x as default
|
|
86
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import e from "../common/additional-condition.vue.mjs";
|
|
2
|
+
import { mapGetters as l } from "vuex";
|
|
3
|
+
import { resolveComponent as a, openBlock as i, createBlock as d, withCtx as t, createVNode as s, createTextVNode as n, toDisplayString as o, createElementBlock as b, Fragment as F, renderList as m, createElementVNode as f, createCommentVNode as v } from "vue";
|
|
4
|
+
import "./editable-field-selection.vue2.mjs";
|
|
5
|
+
import r from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const u = { name: "EditableFieldSelection", components: { AdditionalCondition: e }, 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: { ...l("wfEditor", ["formFieldsWithSub"]) }, created() {
|
|
7
|
+
let e2 = 0;
|
|
8
|
+
this.formFieldsWithSub.map((l3) => {
|
|
9
|
+
this.disabledFields.indexOf(l3.name) < 0 && (l3.index = e2, this.availableFields.push(l3), e2++);
|
|
10
|
+
});
|
|
11
|
+
const l2 = this.availableFields.length;
|
|
12
|
+
this.availableFieldsCount = Math.ceil(l2 / 3);
|
|
13
|
+
}, mounted() {
|
|
14
|
+
window.addEventListener("keydown", (e2) => {
|
|
15
|
+
16 === e2.keyCode && e2.shiftKey && (this.pin = true);
|
|
16
|
+
}), window.addEventListener("keyup", (e2) => {
|
|
17
|
+
16 === e2.keyCode && (this.pin = false);
|
|
18
|
+
});
|
|
19
|
+
}, methods: { filterMethod: (e2, l2) => !!(l2.label && l2.label.indexOf(e2) > -1) || (l2.label, false), setSelectedFields() {
|
|
20
|
+
const e2 = [];
|
|
21
|
+
for (const l2 of this.formModel.selectedFields)
|
|
22
|
+
e2.push({ name: l2, constraintRule: this.formModel.constraintRule, condition: this.formModel.showCondition ? this.formModel.condition : "" });
|
|
23
|
+
this.$emit("input-value", e2), this.$emit("close");
|
|
24
|
+
}, pinSelect(e2, l2) {
|
|
25
|
+
const a2 = this.availableFields, i2 = this.origin, d2 = l2;
|
|
26
|
+
if (this.pin && -1 !== this.formModel.selectedFields.indexOf(e2)) {
|
|
27
|
+
this.formModel.selectedFields.indexOf(e2);
|
|
28
|
+
const l3 = Math.abs(i2 - d2) + 1, t2 = Math.min(i2, d2);
|
|
29
|
+
let s2 = 0;
|
|
30
|
+
for (; s2 < l3; ) {
|
|
31
|
+
const e3 = t2 + s2;
|
|
32
|
+
-1 === this.formModel.selectedFields.indexOf(a2[e3].name) && this.formModel.selectedFields.push(a2[e3].name), s2++;
|
|
33
|
+
}
|
|
34
|
+
} else
|
|
35
|
+
this.origin = l2;
|
|
36
|
+
} } }, c = ["title"], p = ["title"], h = ["title"], k = ["title"], C = ["title"], y = ["title"], _ = ["title"], g = ["title"], w = ["title"], x = ["title"], M = ["title"], E = ["title"];
|
|
37
|
+
const S = r(u, [["render", function(e2, l2, r2, u2, S2, $) {
|
|
38
|
+
const V = a("el-checkbox"), O = a("el-col"), R = a("el-row"), U = a("el-collapse-item"), A = a("el-collapse"), N = a("el-checkbox-group"), j = a("el-radio"), D = a("el-radio-group"), I = a("el-form-item"), L = a("el-switch"), z = a("additional-condition"), P = a("el-form"), Q = a("el-button"), W = a("el-dialog");
|
|
39
|
+
return i(), d(W, { id: "appContainer", width: "60%", title: e2.$t("workflowEditor.task.selectEditableField"), "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", center: "", onClose: l2[6] || (l2[6] = (l3) => e2.$emit("close")) }, { footer: t(() => [s(Q, { type: "primary", size: "small", onClick: $.setSelectedFields }, { default: t(() => [n(o(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), s(Q, { size: "small", onClick: l2[5] || (l2[5] = (l3) => e2.$emit("close")) }, { default: t(() => [n(o(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: t(() => [s(P, { model: S2.formModel }, { default: t(() => [s(N, { modelValue: S2.formModel.selectedFields, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => S2.formModel.selectedFields = e3) }, { default: t(() => [s(R, null, { default: t(() => [(i(true), b(F, null, m(S2.availableFieldsCount, (e3, l3) => (i(), b(F, { key: e3.prop }, [S2.availableFields[3 * l3 + 0] && !S2.availableFields[3 * l3 + 0].baseField ? (i(), d(O, { key: 0, span: 8 }, { default: t(() => [-1 === S2.availableFields[3 * l3 + 0].name.indexOf("$") ? (i(), d(V, { key: 0, label: S2.availableFields[3 * l3 + 0].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 0].name, S2.availableFields[3 * l3 + 0].index) }, { default: t(() => [f("span", { title: S2.availableFields[3 * l3 + 0].label }, o(S2.availableFields[3 * l3 + 0].label), 9, c)]), _: 2 }, 1032, ["label", "onChange"])) : (i(), d(V, { key: 1, label: S2.availableFields[3 * l3 + 0].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 0].name, S2.availableFields[3 * l3 + 0].index) }, { default: t(() => [f("span", { style: { color: "#409eff" }, class: "ellipsis", title: S2.availableFields[3 * l3 + 0].label }, o(S2.availableFields[3 * l3 + 0].label), 9, p)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : v("", true), S2.availableFields[3 * l3 + 1] && !S2.availableFields[3 * l3 + 1].baseField ? (i(), d(O, { key: 1, span: 8 }, { default: t(() => [-1 === S2.availableFields[3 * l3 + 1].name.indexOf("$") ? (i(), d(V, { key: 0, label: S2.availableFields[3 * l3 + 1].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 1].name, S2.availableFields[3 * l3 + 1].index) }, { default: t(() => [f("span", { title: S2.availableFields[3 * l3 + 1].label }, o(S2.availableFields[3 * l3 + 1].label), 9, h)]), _: 2 }, 1032, ["label", "onChange"])) : (i(), d(V, { key: 1, label: S2.availableFields[3 * l3 + 1].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 1].name, S2.availableFields[3 * l3 + 1].index) }, { default: t(() => [f("span", { style: { color: "#409eff" }, class: "ellipsis", title: S2.availableFields[3 * l3 + 1].label }, o(S2.availableFields[3 * l3 + 1].label), 9, k)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : v("", true), S2.availableFields[3 * l3 + 2] && !S2.availableFields[3 * l3 + 2].baseField ? (i(), d(O, { key: 2, span: 8 }, { default: t(() => [-1 === S2.availableFields[3 * l3 + 2].name.indexOf("$") ? (i(), d(V, { key: 0, label: S2.availableFields[3 * l3 + 2].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 2].name, S2.availableFields[3 * l3 + 2].index) }, { default: t(() => [f("span", { title: S2.availableFields[3 * l3 + 2].label }, o(S2.availableFields[3 * l3 + 2].label), 9, C)]), _: 2 }, 1032, ["label", "onChange"])) : (i(), d(V, { key: 1, label: S2.availableFields[3 * l3 + 2].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 2].name, S2.availableFields[3 * l3 + 2].index) }, { default: t(() => [f("span", { style: { color: "#409eff" }, class: "ellipsis", title: S2.availableFields[3 * l3 + 2].label }, o(S2.availableFields[3 * l3 + 2].label), 9, y)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : v("", true)], 64))), 128))]), _: 1 }), s(A, { modelValue: S2.activeNames, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => S2.activeNames = e3) }, { default: t(() => [s(U, { title: e2.$t("workflowEditor.task.baseField"), name: "baseField" }, { default: t(() => [(i(true), b(F, null, m(S2.availableFieldsCount, (e3, l3) => (i(), b("span", { key: e3.prop }, [s(R, null, { default: t(() => [S2.availableFields[3 * l3 + 0] && S2.availableFields[3 * l3 + 0].baseField ? (i(), d(O, { key: 0, span: 8 }, { default: t(() => [-1 === S2.availableFields[3 * l3 + 0].name.indexOf("$") ? (i(), d(V, { key: 0, label: S2.availableFields[3 * l3 + 0].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 0].name, S2.availableFields[3 * l3 + 0].index) }, { default: t(() => [f("span", { title: S2.availableFields[3 * l3 + 0].label }, o(S2.availableFields[3 * l3 + 0].label), 9, _)]), _: 2 }, 1032, ["label", "onChange"])) : (i(), d(V, { key: 1, label: S2.availableFields[3 * l3 + 0].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 0].name, S2.availableFields[3 * l3 + 0].index) }, { default: t(() => [f("span", { style: { color: "#409eff" }, class: "ellipsis", title: S2.availableFields[3 * l3 + 0].label }, o(S2.availableFields[3 * l3 + 0].label), 9, g)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : v("", true), S2.availableFields[3 * l3 + 1] && S2.availableFields[3 * l3 + 1].baseField ? (i(), d(O, { key: 1, span: 8 }, { default: t(() => [-1 === S2.availableFields[3 * l3 + 1].name.indexOf("$") ? (i(), d(V, { key: 0, label: S2.availableFields[3 * l3 + 1].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 1].name, S2.availableFields[3 * l3 + 1].index) }, { default: t(() => [f("span", { title: S2.availableFields[3 * l3 + 1].label }, o(S2.availableFields[3 * l3 + 1].label), 9, w)]), _: 2 }, 1032, ["label", "onChange"])) : (i(), d(V, { key: 1, label: S2.availableFields[3 * l3 + 1].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 1].name, S2.availableFields[3 * l3 + 1].index) }, { default: t(() => [f("span", { style: { color: "#409eff" }, class: "ellipsis", title: S2.availableFields[3 * l3 + 1].label }, o(S2.availableFields[3 * l3 + 1].label), 9, x)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : v("", true), S2.availableFields[3 * l3 + 2] && S2.availableFields[3 * l3 + 2].baseField ? (i(), d(O, { key: 2, span: 8 }, { default: t(() => [-1 === S2.availableFields[3 * l3 + 2].name.indexOf("$") ? (i(), d(V, { key: 0, label: S2.availableFields[3 * l3 + 2].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 2].name, S2.availableFields[3 * l3 + 2].index) }, { default: t(() => [f("span", { title: S2.availableFields[3 * l3 + 2].label }, o(S2.availableFields[3 * l3 + 2].label), 9, M)]), _: 2 }, 1032, ["label", "onChange"])) : (i(), d(V, { key: 1, label: S2.availableFields[3 * l3 + 2].name, onChange: (e4) => $.pinSelect(S2.availableFields[3 * l3 + 2].name, S2.availableFields[3 * l3 + 2].index) }, { default: t(() => [f("span", { style: { color: "#409eff" }, class: "ellipsis", title: S2.availableFields[3 * l3 + 2].label }, o(S2.availableFields[3 * l3 + 2].label), 9, E)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : v("", true)]), _: 2 }, 1024)]))), 128))]), _: 1 }, 8, ["title"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"]), s(I, { label: e2.$t("workflowEditor.task.editingMethod") }, { default: t(() => [s(D, { modelValue: S2.formModel.constraintRule, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => S2.formModel.constraintRule = e3) }, { default: t(() => [s(j, { label: "REQUIRED" }, { default: t(() => [n(o(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), s(j, { label: "READ_ONLY" }, { default: t(() => [n(o(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), s(I, { label: e2.$t("workflowEditor.task.additionalConditions") }, { default: t(() => [s(L, { modelValue: S2.formModel.showCondition, "onUpdate:modelValue": l2[3] || (l2[3] = (e3) => S2.formModel.showCondition = e3) }, null, 8, ["modelValue"]), S2.formModel.showCondition ? (i(), d(z, { key: 0, modelValue: S2.formModel.condition, "onUpdate:modelValue": l2[4] || (l2[4] = (e3) => S2.formModel.condition = e3) }, null, 8, ["modelValue"])) : v("", true)]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["title"]);
|
|
40
|
+
}], ["__scopeId", "data-v-9458f3bf"]]);
|
|
41
|
+
export {
|
|
42
|
+
S as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import e from "./editable-field-selection.vue.mjs";
|
|
2
|
+
import l from "./additional-condition-dialog.vue.mjs";
|
|
3
|
+
import { mapGetters as t } from "vuex";
|
|
4
|
+
import { parseCondition as i, displayCondition as o } from "../common/additional-condition-utils.mjs";
|
|
5
|
+
import { resolveComponent as d, openBlock as n, createElementBlock as s, createVNode as a, withCtx as r, createTextVNode as u, toDisplayString as c, createElementVNode as h, normalizeStyle as m, createBlock as p, createCommentVNode as w } from "vue";
|
|
6
|
+
import f from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const b = { name: "EditableFields", components: { EditableFieldSelection: e, AdditionalConditionDialog: l }, props: { modelValue: { type: [Array, Object], default: null } }, data() {
|
|
8
|
+
let e2 = [];
|
|
9
|
+
"" !== this.modelValue && null !== this.modelValue && void 0 !== this.modelValue && (Array.isArray(this.modelValue) ? e2 = this.modelValue : e2.push(this.modelValue));
|
|
10
|
+
return { showFieldSelection: false, showAdditionalCondition: false, selectedFields: e2, currentRow: null, multipleSelection: [], disabledFields: this.getDisabledFields(this.modelValue) };
|
|
11
|
+
}, computed: { ...t("wfEditor", ["formFieldsWithSub"]) }, watch: { selectedFields: { handler(e2, l2) {
|
|
12
|
+
this.disabledFields = this.getDisabledFields(e2);
|
|
13
|
+
}, deep: true } }, mounted() {
|
|
14
|
+
this.selectedFields.length > 0 && this.selectRow(this.selectedFields[this.selectedFields.length - 1]);
|
|
15
|
+
}, methods: { getDisabledFields(e2) {
|
|
16
|
+
if (null == e2)
|
|
17
|
+
return [];
|
|
18
|
+
const l2 = [];
|
|
19
|
+
return Array.isArray(e2) ? e2.map((e3) => {
|
|
20
|
+
l2.push(e3.name);
|
|
21
|
+
}) : l2.push(e2), l2;
|
|
22
|
+
}, handleCurrentChange(e2) {
|
|
23
|
+
this.currentRow = e2;
|
|
24
|
+
}, handleSelectionChange(e2) {
|
|
25
|
+
this.multipleSelection = e2;
|
|
26
|
+
}, selectRow(e2) {
|
|
27
|
+
this.$refs.table.setCurrentRow(e2);
|
|
28
|
+
}, add() {
|
|
29
|
+
this.showFieldSelection = true;
|
|
30
|
+
}, getCurrentRowIndex() {
|
|
31
|
+
let e2 = -1;
|
|
32
|
+
for (let l2 = 0; l2 < this.selectedFields.length; l2++)
|
|
33
|
+
if (this.selectedFields[l2].name === this.currentRow.name) {
|
|
34
|
+
e2 = l2;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
return e2;
|
|
38
|
+
}, remove() {
|
|
39
|
+
if (this.multipleSelection && this.multipleSelection.length > 0) {
|
|
40
|
+
for (var e2 = 0; e2 < this.multipleSelection.length; e2++) {
|
|
41
|
+
const l2 = this.multipleSelection[e2];
|
|
42
|
+
this.selectRow(l2);
|
|
43
|
+
const t2 = this.getCurrentRowIndex();
|
|
44
|
+
this.selectedFields.splice(t2, 1);
|
|
45
|
+
}
|
|
46
|
+
this.$emit("update:modelValue", this.selectedFields);
|
|
47
|
+
}
|
|
48
|
+
}, setSelectedFields(e2) {
|
|
49
|
+
null == e2 && (e2 = []), this.selectedFields = this.selectedFields.concat(e2), this.selectRow(this.selectedFields[this.selectedFields.length - 1]), this.$emit("update:modelValue", this.selectedFields);
|
|
50
|
+
}, formatCondition(e2) {
|
|
51
|
+
if ("" === e2 || !e2)
|
|
52
|
+
return this.$t("workflowEditor.task.nothing");
|
|
53
|
+
const l2 = [];
|
|
54
|
+
return i(l2, e2), o(l2);
|
|
55
|
+
}, getFieldLabel(e2) {
|
|
56
|
+
const l2 = this.formFieldsWithSub.filter((l3) => l3.name === e2.name);
|
|
57
|
+
return l2.length > 0 ? l2[0].label : "";
|
|
58
|
+
}, selectCondition(e2) {
|
|
59
|
+
this.selectRow(e2), this.showAdditionalCondition = true;
|
|
60
|
+
} } }, F = { style: { width: "100%" } };
|
|
61
|
+
const g = f(b, [["render", function(e2, l2, t2, i2, o2, f2) {
|
|
62
|
+
const b2 = d("el-button"), g2 = d("el-row"), C = d("el-table-column"), k = d("el-radio"), y = d("el-radio-group"), R = d("el-input"), S = d("el-table"), V = d("editable-field-selection"), E = d("additional-condition-dialog");
|
|
63
|
+
return n(), s("div", F, [a(g2, { style: { "padding-bottom": "10px" } }, { default: r(() => [a(b2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: f2.add }, { default: r(() => [u(c(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), a(b2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: f2.remove }, { default: r(() => [u(c(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), a(S, { ref: "table", data: o2.selectedFields, border: "", "highlight-current-row": "", onSelectionChange: f2.handleSelectionChange, onCurrentChange: f2.handleCurrentChange }, { default: r(() => [a(C, { type: "selection", width: "55" }), a(C, { type: "index", width: "50" }), a(C, { label: e2.$t("workflowEditor.common.name"), width: "180" }, { default: r((e3) => [h("span", { style: m({ color: e3.row.name && 0 === e3.row.name.indexOf("$") ? "#409EFF" : "" }) }, c(f2.getFieldLabel(e3.row)), 5)]), _: 1 }, 8, ["label"]), a(C, { prop: "name", label: e2.$t("workflowEditor.task.propertyName"), width: "180" }, null, 8, ["label"]), a(C, { prop: "constraintRule", label: e2.$t("workflowEditor.task.editingMethod") }, { default: r((l3) => [a(y, { modelValue: l3.row.constraintRule, "onUpdate:modelValue": (e3) => l3.row.constraintRule = e3 }, { default: r(() => [a(k, { label: "REQUIRED" }, { default: r(() => [u(c(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), a(k, { label: "READ_ONLY" }, { default: r(() => [u(c(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), a(C, { prop: "condition", label: e2.$t("workflowEditor.task.condition") }, { default: r((e3) => [a(R, { value: f2.formatCondition(e3.row.condition), type: "textarea", autosize: "", onClick: (l3) => f2.selectCondition(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), o2.showFieldSelection ? (n(), p(V, { key: 0, "disabled-fields": o2.disabledFields, onInputValue: f2.setSelectedFields, onClose: l2[0] || (l2[0] = (e3) => o2.showFieldSelection = false) }, null, 8, ["disabled-fields", "onInputValue"])) : w("", true), o2.showAdditionalCondition ? (n(), p(E, { key: 1, modelValue: o2.currentRow.condition, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => o2.currentRow.condition = e3), onClose: l2[2] || (l2[2] = (e3) => o2.showAdditionalCondition = false) }, null, 8, ["modelValue"])) : w("", true)]);
|
|
64
|
+
}]]);
|
|
65
|
+
export {
|
|
66
|
+
g as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { resolveComponent as e, openBlock as l, createBlock as o, withCtx as t, createVNode as r, createElementBlock as m, createCommentVNode as a } from "vue";
|
|
2
|
+
import d from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
+
const u = { key: 0 };
|
|
4
|
+
const f = d({ name: "Events", props: { modelValue: { type: Object, default: null } }, data() {
|
|
5
|
+
const e2 = { beforeSubmitEnabled: false, beforeSubmit: {} };
|
|
6
|
+
return this.modelValue.beforeSubmit && (e2.beforeSubmitEnabled = true, e2.beforeSubmit = { ...this.modelValue.beforeSubmit }), e2.afterComplete = this.modelValue.afterComplete, { formModel: e2 };
|
|
7
|
+
}, mounted() {
|
|
8
|
+
this.$watch("formModel", function(e2, l2) {
|
|
9
|
+
const o2 = {};
|
|
10
|
+
this.formModel.beforeSubmitEnabled && (o2.beforeSubmit = { ...this.formModel.beforeSubmit }), o2.afterComplete = this.formModel.afterComplete, this.$emit("update:modelValue", o2);
|
|
11
|
+
}, { deep: true });
|
|
12
|
+
} }, [["render", function(d2, f2, b, i, n, s) {
|
|
13
|
+
const p = e("el-switch"), M = e("el-form-item"), S = e("el-input"), V = e("el-form");
|
|
14
|
+
return l(), o(V, { model: n.formModel, "label-width": "80px" }, { default: t(() => [r(M, { label: d2.$t("workflowEditor.task.beforeSubmission") }, { default: t(() => [r(p, { modelValue: n.formModel.beforeSubmitEnabled, "onUpdate:modelValue": f2[0] || (f2[0] = (e2) => n.formModel.beforeSubmitEnabled = e2) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n.formModel.beforeSubmitEnabled ? (l(), m("div", u, [r(M, { label: d2.$t("workflowEditor.task.executionURL") }, { default: t(() => [r(S, { modelValue: n.formModel.beforeSubmit.url, "onUpdate:modelValue": f2[1] || (f2[1] = (e2) => n.formModel.beforeSubmit.url = e2) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r(M, { label: d2.$t("workflowEditor.task.errorMessage") }, { default: t(() => [r(S, { modelValue: n.formModel.beforeSubmit.errorMessage, "onUpdate:modelValue": f2[2] || (f2[2] = (e2) => n.formModel.beforeSubmit.errorMessage = e2) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])])) : a("", true), r(M, { label: d2.$t("workflowEditor.task.afterSubmission") }, { default: t(() => [r(p, { modelValue: n.formModel.afterComplete, "onUpdate:modelValue": f2[3] || (f2[3] = (e2) => n.formModel.afterComplete = e2) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
15
|
+
}]]);
|
|
16
|
+
export {
|
|
17
|
+
f as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import e from "./editable-fields.vue.mjs";
|
|
2
|
+
import o from "./editable-child-fields.vue.mjs";
|
|
3
|
+
import l from "../common/additional-condition.vue.mjs";
|
|
4
|
+
import t from "../common/user-selection.vue.mjs";
|
|
5
|
+
import { deepCopy as i } from "../../util.mjs";
|
|
6
|
+
import { resolveComponent as d, openBlock as n, createBlock as a, withCtx as m, createVNode as r, withDirectives as s, createCommentVNode as u, vShow as f, createTextVNode as p, toDisplayString as c } from "vue";
|
|
7
|
+
import "./permission-settings.vue2.mjs";
|
|
8
|
+
import V from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
9
|
+
const w = V({ name: "PermissionSettings", components: { EditableFields: e, UserSelection: t, AdditionalCondition: l, editableChildFields: o }, props: { modelValue: { type: Object, default: null } }, data() {
|
|
10
|
+
const e2 = i(this.modelValue), o2 = ["viewOpinion", "editOpinion", "requireOpinion", "viewMeetingResult", "viewVoteResult", "viewFlowHistory", "printForm"];
|
|
11
|
+
o2.forEach((o3) => {
|
|
12
|
+
e2[o3 + "Checkbox"] = !!this.modelValue[o3].condition;
|
|
13
|
+
});
|
|
14
|
+
const l2 = ["add", "delete", "download"];
|
|
15
|
+
return l2.forEach((o3) => {
|
|
16
|
+
e2.attachment[o3 + "Checkbox"] = !!this.modelValue.attachment[o3] && !!this.modelValue.attachment[o3].condition, e2.attachment.permission || (e2.attachment[o3] = { permission: false, condition: "" });
|
|
17
|
+
}), { formModel: e2, attrNames: o2, attachmentAttrNames: l2 };
|
|
18
|
+
}, mounted() {
|
|
19
|
+
this.$watch("formModel", function(e2) {
|
|
20
|
+
const o2 = { editForm: {}, viewOpinion: {}, editOpinion: {}, requireOpinion: {}, viewMeetingResult: {}, viewVoteResult: {}, viewFlowHistory: {}, printForm: {}, officialText: {}, attachment: {}, deleteInstance: { userCondition: "" } };
|
|
21
|
+
o2.editForm.permission = e2.editForm.permission, e2.editForm.permission && (o2.editForm.field = e2.editForm.field, o2.editForm.subTablePermission = e2.editForm.subTablePermission), this.attrNames.map((l2) => {
|
|
22
|
+
o2[l2].permission = e2[l2].permission, e2[l2].permission && e2[l2 + "Checkbox"] ? o2[l2].condition = e2[l2].condition : o2[l2].condition = "";
|
|
23
|
+
}), o2.attachment.permission = e2.attachment.permission, e2.attachment.permission && this.attachmentAttrNames.map((l2) => {
|
|
24
|
+
o2.attachment[l2] || (o2.attachment[l2] = {}), o2.attachment[l2].permission = e2.attachment[l2].permission, e2.attachment[l2].permission && e2.attachment[l2 + "Checkbox"] ? o2.attachment[l2].condition = e2.attachment[l2].condition : o2.attachment[l2].condition = "";
|
|
25
|
+
}), this.$emit("update:modelValue", o2);
|
|
26
|
+
}, { deep: true });
|
|
27
|
+
}, methods: {} }, [["render", function(e2, o2, l2, t2, i2, V2) {
|
|
28
|
+
const w2 = d("el-switch"), M = d("el-form-item"), h = d("editable-fields"), k = d("editable-child-fields"), b = d("el-checkbox"), v = d("additional-condition"), C = d("user-selection"), F = d("el-card"), x = d("el-form");
|
|
29
|
+
return n(), a(x, { model: i2.formModel }, { default: m(() => [r(M, { label: e2.$t("workflowEditor.task.allowEditingForms") }, { default: m(() => [r(w2, { modelValue: i2.formModel.editForm.permission, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => i2.formModel.editForm.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), s(r(M, null, { default: m(() => [i2.formModel.editForm.permission ? (n(), a(h, { key: 0, modelValue: i2.formModel.editForm.field, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => i2.formModel.editForm.field = e3) }, null, 8, ["modelValue"])) : u("", true), i2.formModel.editForm.permission ? (n(), a(k, { key: 1, modelValue: i2.formModel.editForm.subTablePermission, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => i2.formModel.editForm.subTablePermission = e3) }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 512), [[f, i2.formModel.editForm.permission]]), r(M, { label: e2.$t("workflowEditor.task.allowViews") }, { default: m(() => [r(w2, { modelValue: i2.formModel.viewOpinion.permission, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => i2.formModel.viewOpinion.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewOpinion.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.viewOpinionCheckbox, "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => i2.formModel.viewOpinionCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), s(r(M, null, { default: m(() => [r(v, { modelValue: i2.formModel.viewOpinion.condition, "onUpdate:modelValue": o2[5] || (o2[5] = (e3) => i2.formModel.viewOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, i2.formModel.viewOpinion.permission && i2.formModel.viewOpinionCheckbox]]), r(M, { label: e2.$t("workflowEditor.task.commentsAllowed") }, { default: m(() => [r(w2, { modelValue: i2.formModel.editOpinion.permission, "onUpdate:modelValue": o2[6] || (o2[6] = (e3) => i2.formModel.editOpinion.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.editOpinion.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.editOpinionCheckbox, "onUpdate:modelValue": o2[7] || (o2[7] = (e3) => i2.formModel.editOpinionCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), s(r(M, null, { default: m(() => [r(v, { modelValue: i2.formModel.editOpinion.condition, "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => i2.formModel.editOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, i2.formModel.editOpinion.permission && i2.formModel.editOpinionCheckbox]]), r(M, { label: e2.$t("workflowEditor.task.commentsAreRequired") }, { default: m(() => [r(w2, { modelValue: i2.formModel.requireOpinion.permission, "onUpdate:modelValue": o2[9] || (o2[9] = (e3) => i2.formModel.requireOpinion.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.requireOpinion.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.requireOpinionCheckbox, "onUpdate:modelValue": o2[10] || (o2[10] = (e3) => i2.formModel.requireOpinionCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), s(r(M, null, { default: m(() => [r(v, { modelValue: i2.formModel.requireOpinion.condition, "onUpdate:modelValue": o2[11] || (o2[11] = (e3) => i2.formModel.requireOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, i2.formModel.requireOpinion.permission && i2.formModel.requireOpinionCheckbox]]), r(M, { label: e2.$t("workflowEditor.task.allowToViewCountersignatureResults") }, { default: m(() => [r(w2, { modelValue: i2.formModel.viewMeetingResult.permission, "onUpdate:modelValue": o2[12] || (o2[12] = (e3) => i2.formModel.viewMeetingResult.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewMeetingResult.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.viewMeetingResultCheckbox, "onUpdate:modelValue": o2[13] || (o2[13] = (e3) => i2.formModel.viewMeetingResultCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), s(r(M, null, { default: m(() => [r(v, { modelValue: i2.formModel.viewMeetingResult.condition, "onUpdate:modelValue": o2[14] || (o2[14] = (e3) => i2.formModel.viewMeetingResult.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, i2.formModel.viewMeetingResult.permission && i2.formModel.viewMeetingResultCheckbox]]), r(M, { label: e2.$t("workflowEditor.task.allowToViewVotingResults") }, { default: m(() => [r(w2, { modelValue: i2.formModel.viewVoteResult.permission, "onUpdate:modelValue": o2[15] || (o2[15] = (e3) => i2.formModel.viewVoteResult.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewVoteResult.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.viewVoteResultCheckbox, "onUpdate:modelValue": o2[16] || (o2[16] = (e3) => i2.formModel.viewVoteResultCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), s(r(M, null, { default: m(() => [r(v, { modelValue: i2.formModel.viewVoteResult.condition, "onUpdate:modelValue": o2[17] || (o2[17] = (e3) => i2.formModel.viewVoteResult.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, i2.formModel.viewVoteResult.permission && i2.formModel.viewVoteResultCheckbox]]), r(M, { label: e2.$t("workflowEditor.task.allowToViewFlowHistory") }, { default: m(() => [r(w2, { modelValue: i2.formModel.viewFlowHistory.permission, "onUpdate:modelValue": o2[18] || (o2[18] = (e3) => i2.formModel.viewFlowHistory.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewFlowHistory.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.viewFlowHistoryCheckbox, "onUpdate:modelValue": o2[19] || (o2[19] = (e3) => i2.formModel.viewFlowHistoryCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), s(r(M, null, { default: m(() => [r(v, { modelValue: i2.formModel.viewFlowHistory.condition, "onUpdate:modelValue": o2[20] || (o2[20] = (e3) => i2.formModel.viewFlowHistory.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, i2.formModel.viewFlowHistory.permission && i2.formModel.viewFlowHistoryCheckbox]]), r(M, { label: e2.$t("workflowEditor.task.allowFormsToPrint") }, { default: m(() => [r(w2, { modelValue: i2.formModel.printForm.permission, "onUpdate:modelValue": o2[21] || (o2[21] = (e3) => i2.formModel.printForm.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.printForm.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.printFormCheckbox, "onUpdate:modelValue": o2[22] || (o2[22] = (e3) => i2.formModel.printFormCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), s(r(M, null, { default: m(() => [r(v, { modelValue: i2.formModel.printForm.condition, "onUpdate:modelValue": o2[23] || (o2[23] = (e3) => i2.formModel.printForm.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, i2.formModel.printForm.permission && i2.formModel.printFormCheckbox]]), r(C, { modelValue: i2.formModel.deleteInstance.userCondition, "onUpdate:modelValue": o2[24] || (o2[24] = (e3) => i2.formModel.deleteInstance.userCondition = e3), label: e2.$t("workflowEditor.task.deletePermission"), "label-width": "100px", "current-transactor": true }, null, 8, ["modelValue", "label"]), r(M, { label: e2.$t("workflowEditor.task.attachmentAuthority") }, { default: m(() => [r(w2, { modelValue: i2.formModel.attachment.permission, "onUpdate:modelValue": o2[25] || (o2[25] = (e3) => i2.formModel.attachment.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i2.formModel.attachment.permission ? (n(), a(F, { key: 0, class: "box-card" }, { default: m(() => [r(M, { label: e2.$t("workflowEditor.task.addAttachment") }, { default: m(() => [r(w2, { modelValue: i2.formModel.attachment.add.permission, "onUpdate:modelValue": o2[26] || (o2[26] = (e3) => i2.formModel.attachment.add.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.attachment.add.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.attachment.addCheckbox, "onUpdate:modelValue": o2[27] || (o2[27] = (e3) => i2.formModel.attachment.addCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true), i2.formModel.attachment.add.permission && i2.formModel.attachment.addCheckbox ? (n(), a(v, { key: 1, modelValue: i2.formModel.attachment.add.condition, "onUpdate:modelValue": o2[28] || (o2[28] = (e3) => i2.formModel.attachment.add.condition = e3) }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), r(M, { label: e2.$t("workflowEditor.task.deleteAttachment") }, { default: m(() => [r(w2, { modelValue: i2.formModel.attachment.delete.permission, "onUpdate:modelValue": o2[29] || (o2[29] = (e3) => i2.formModel.attachment.delete.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.attachment.delete.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.attachment.deleteCheckbox, "onUpdate:modelValue": o2[30] || (o2[30] = (e3) => i2.formModel.attachment.deleteCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true), i2.formModel.attachment.delete.permission && i2.formModel.attachment.deleteCheckbox ? (n(), a(v, { key: 1, modelValue: i2.formModel.attachment.delete.condition, "onUpdate:modelValue": o2[31] || (o2[31] = (e3) => i2.formModel.attachment.delete.condition = e3) }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"]), r(M, { label: e2.$t("workflowEditor.task.downloadAttachment") }, { default: m(() => [r(w2, { modelValue: i2.formModel.attachment.download.permission, "onUpdate:modelValue": o2[32] || (o2[32] = (e3) => i2.formModel.attachment.download.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.attachment.download.permission ? (n(), a(b, { key: 0, modelValue: i2.formModel.attachment.downloadCheckbox, "onUpdate:modelValue": o2[33] || (o2[33] = (e3) => i2.formModel.attachment.downloadCheckbox = e3) }, { default: m(() => [p(c(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : u("", true), i2.formModel.attachment.download.permission && i2.formModel.attachment.downloadCheckbox ? (n(), a(v, { key: 1, modelValue: i2.formModel.attachment.download.condition, "onUpdate:modelValue": o2[34] || (o2[34] = (e3) => i2.formModel.attachment.download.condition = e3) }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["label"])]), _: 1 })) : u("", true), r(M, { label: e2.$t("workflowEditor.task.bodyPermission") }, { default: m(() => [r(w2, { modelValue: i2.formModel.officialText.permission, "onUpdate:modelValue": o2[35] || (o2[35] = (e3) => i2.formModel.officialText.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
30
|
+
}], ["__scopeId", "data-v-c019538f"]]);
|
|
31
|
+
export {
|
|
32
|
+
w as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import e from "./componentsConfigUtil.mjs";
|
|
2
|
+
import l from "../common/additional-condition.vue.mjs";
|
|
3
|
+
import t from "../common/common-user-condition.vue.mjs";
|
|
4
|
+
import { mapGetters as a } from "vuex";
|
|
5
|
+
import { resolveComponent as o, openBlock as r, createBlock as n, withCtx as i, createElementVNode as u, createVNode as d, toDisplayString as p, createTextVNode as s, createElementBlock as c, Fragment as b, renderList as m, createCommentVNode as w } from "vue";
|
|
6
|
+
import h from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const V = { components: { AdditionalCondition: l, CommonUserCondition: t }, 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() {
|
|
8
|
+
let e2, l2;
|
|
9
|
+
return this.userCondition && "" !== this.userCondition && (e2 = this.userCondition), this.parentCondition && "" !== this.parentCondition && (l2 = this.parentCondition), { myUserCondition: e2, myParentCondition: l2, tableData: null, attributeArr: [], fieldMap: {}, fieldNameMap: {}, queryList: [], operationArr: [], parentAttributeArr: [], dialogVisible: true };
|
|
10
|
+
}, created() {
|
|
11
|
+
this.getAttributeArr();
|
|
12
|
+
}, computed: { ...a("wfEditor", ["propSettingKeyList"]) }, mounted() {
|
|
13
|
+
this.conditionList && ("object" == typeof this.conditionList ? this.tableData = this.conditionList : this.tableData = this.xmlToData(this.conditionList), this.getOperatorsArr(this.tableData));
|
|
14
|
+
}, methods: { ...e, add() {
|
|
15
|
+
this.tableData || (this.tableData = []), this.tableData.push({ leftBracket: "", propName: "", operator: "", propValue: "", rightBracket: "", logicOperator: "condition.operator.or", dataType: "", propDbName: "" }), this.operationArr.push([]);
|
|
16
|
+
}, remove() {
|
|
17
|
+
if (null === this.currentRow)
|
|
18
|
+
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
19
|
+
let e2 = this.getRowIndex(this.currentRow);
|
|
20
|
+
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]));
|
|
21
|
+
}, changeFieldName(e2) {
|
|
22
|
+
const l2 = this.currentRow.propName, t2 = this.fieldMap[l2];
|
|
23
|
+
t2 && (this.tableData[e2].dataType = t2.type, this.tableData[e2].propDbName = t2.propDbName), this.operationArr[e2] = this.getOperators(t2);
|
|
24
|
+
}, getAttributeArr() {
|
|
25
|
+
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);
|
|
26
|
+
}, selectRow(e2) {
|
|
27
|
+
this.attributeArr = this.queryList, this.$refs.table.setCurrentRow(e2);
|
|
28
|
+
}, handleCurrentChange(e2) {
|
|
29
|
+
this.currentRow = e2;
|
|
30
|
+
}, searchField(e2) {
|
|
31
|
+
e2 && (this.attributeArr = this.queryList.filter((l2) => l2.label.indexOf(e2) > -1 || l2.value.indexOf(e2) > -1));
|
|
32
|
+
}, getRowIndex(e2) {
|
|
33
|
+
for (let l2 = 0; l2 < this.tableData.length; l2++)
|
|
34
|
+
if (this.tableData[l2].propName === e2.propName)
|
|
35
|
+
return l2;
|
|
36
|
+
return -1;
|
|
37
|
+
}, savebuttonSetting() {
|
|
38
|
+
if (this.tableData && this.tableData.length > 0)
|
|
39
|
+
for (var e2 = 0; e2 < this.tableData.length; e2++) {
|
|
40
|
+
if (!this.tableData[e2].propName)
|
|
41
|
+
return void this.$alert(this.$t("workflowEditorMessage.blankFieldNameOrValue"));
|
|
42
|
+
}
|
|
43
|
+
const l2 = { userCondition: this.myUserCondition, parentCondition: this.myParentCondition, condition: this.tableData };
|
|
44
|
+
this.$emit("close", l2);
|
|
45
|
+
}, closeButtonSetting() {
|
|
46
|
+
this.savebuttonSetting(), this.$emit("close", null);
|
|
47
|
+
}, changePropValue(e2) {
|
|
48
|
+
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;
|
|
49
|
+
} } }, f = { style: { "overflow-y": "auto", "max-height": "500px" } }, k = { class: "operation-area" }, v = { class: "clearfix" }, y = { class: "clearfix" };
|
|
50
|
+
const g = h(V, [["render", function(e2, l2, t2, a2, h2, V2) {
|
|
51
|
+
const g2 = o("el-button"), $ = o("common-user-condition"), C = o("el-card"), D = o("additional-condition"), T = o("el-row"), x = o("el-option"), E = o("el-select"), U = o("el-table-column"), M = o("el-date-picker"), A = o("el-input"), _ = o("el-table"), F = o("el-dialog");
|
|
52
|
+
return r(), n(F, { "show-close": true, "append-to-body": true, style: { width: "100%" }, title: e2.$t("workflowEditor.condition.combinationCondition"), "model-value": "", onClose: V2.closeButtonSetting }, { default: i(() => [u("div", f, [u("div", k, [d(g2, { size: "small", type: "primary", onClick: V2.savebuttonSetting }, { default: i(() => [u("span", null, p(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])]), u("div", null, [d(C, { class: "box-card", shadow: "never" }, { header: i(() => [u("div", v, [u("span", null, p(e2.$t("workflowEditor.condition.personnelScope")), 1)])]), default: i(() => [u("div", null, [d($, { modelValue: h2.myUserCondition, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => h2.myUserCondition = e3), "used-in": "transactor" }, null, 8, ["modelValue"])])]), _: 1 }), d(C, { class: "box-card", shadow: "never" }, { header: i(() => [u("div", y, [u("span", null, p(e2.$t("workflowEditor.condition.mainTableConditions")), 1)])]), default: i(() => [u("div", null, [d(D, { modelValue: h2.myParentCondition, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => h2.myParentCondition = e3) }, null, 8, ["modelValue"])])]), _: 1 }), "notEmpty" !== t2.buttonType && "add" !== t2.buttonType ? (r(), n(C, { key: 0, class: "box-card", shadow: "never" }, { header: i(() => [u("div", null, [u("span", null, p(e2.$t("workflowEditor.condition.subtableCondition")), 1)])]), default: i(() => [u("div", null, [d(T, { style: { "padding-bottom": "8px" } }, { default: i(() => [d(g2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: V2.add }, { default: i(() => [s(p(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), d(g2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: V2.remove }, { default: i(() => [s(p(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), d(_, { id: "tableDataDialog", ref: "table", data: h2.tableData, border: "", style: { width: "100%" }, "highlight-current-row": "", onCurrentChange: V2.handleCurrentChange }, { default: i(() => [d(U, { prop: "leftBracket", label: "(", width: "90" }, { default: i((e3) => [d(E, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, size: "small", clearable: "", onFocus: (l3) => V2.selectRow(e3.row) }, { default: i(() => [d(x, { label: "", value: "" }), d(x, { label: "(", value: "(" }), d(x, { label: "((", value: "((" }), d(x, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), d(U, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: i((e3) => [d(E, { modelValue: e3.row.propName, "onUpdate:modelValue": (l3) => e3.row.propName = l3, "filter-method": V2.searchField, size: "small", clearable: "", filterable: "", onFocus: (l3) => V2.selectRow(e3.row), onChange: (l3) => V2.changeFieldName(e3.$index) }, { default: i(() => [(r(true), c(b, null, m(h2.attributeArr, (e4) => (r(), n(x, { 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"]), d(U, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: i((e3) => [d(E, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, size: "small", clearable: "", onFocus: (l3) => V2.selectRow(e3.row) }, { default: i(() => [(r(true), c(b, null, m(h2.operationArr[e3.$index], (e4) => (r(), n(x, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), d(U, { label: e2.$t("workflowEditor.common.value") }, { default: i((l3) => [l3.row.propValueType ? w("", true) : (r(), n(E, { key: 0, modelValue: l3.row.propValueType, "onUpdate:modelValue": (e3) => l3.row.propValueType = e3, size: "small", onFocus: (e3) => V2.selectRow(l3.row) }, { default: i(() => [d(x, { label: e2.$t("workflowEditor.condition.fillInManually"), value: "input" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.environmentVariable"), value: "context" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.requestParameters"), value: "request" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.mainTableField"), value: "obj" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.databaseFields"), value: "subObj" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.taskFields"), value: "task" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.systemParameter"), value: "custom" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])), "context" === l3.row.propValueType ? (r(), n(E, { key: 1, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, clearable: "", size: "small", title: l3.row.propValue, filterable: "", "default-first-option": "", "allow-create": "", onChange: (e3) => V2.changePropValue(l3.$index), onFocus: (e3) => V2.selectRow(l3.row) }, { default: i(() => [d(x, { label: e2.$t("workflowEditor.condition.currentTime"), value: "${context.currentTime}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactor"), value: "${context.currentTransactor}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactorName"), value: "${context.currentTransactorName}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactorId"), value: "${context.currentTransactorId}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactorMainDepartmentId"), value: "${context.currentTransactorMainDepartmentId}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactorMainDepartment"), value: "${context.currentTransactorMainDepartment}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactorRoleId"), value: "${context.currentTransactorRoleId}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactorRole"), value: "${context.currentTransactorRole}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactorWorkGroupId"), value: "${context.currentTransactorWorkGroupId}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTransactorWorkGroup"), value: "${context.currentTransactorWorkGroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : w("", true), "task" === l3.row.propValueType ? (r(), n(E, { key: 2, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, clearable: "", size: "small", title: l3.row.propValue, filterable: "", "default-first-option": "", "allow-create": "", onChange: (e3) => V2.changePropValue(l3.$index), onFocus: (e3) => V2.selectRow(l3.row) }, { default: i(() => [d(x, { label: e2.$t("workflowEditor.condition.currentHandler"), value: "${task.transactor}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentTaskClient"), value: "${task.trustor}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.currentAssignor"), value: "${task.assigner}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.linkName"), value: "${task.name}" }, null, 8, ["label"]), d(x, { label: e2.$t("workflowEditor.condition.linkCode"), value: "${task.nodeId}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : w("", true), "DATE" === l3.row.dataType && "input" === l3.row.propValueType ? (r(), n(M, { key: 3, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, size: "small", clearable: "", "value-format": "YYYY-MM-DD", title: l3.row.propValue, type: "date", onChange: (e3) => V2.changePropValue(l3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : w("", true), "TIME" === l3.row.dataType && "input" === l3.row.propValueType ? (r(), n(M, { key: 4, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, size: "small", title: l3.row.propValue, clearable: "", "value-format": "YYYY-MM-DD HH:mm:ss", type: "datetime", onChange: (e3) => V2.changePropValue(l3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : w("", true), "TIME" !== l3.row.dataType && "DATE" !== l3.row.dataType && "input" === l3.row.propValueType ? (r(), n(A, { key: 5, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, modelModifiers: { trim: true }, title: l3.row.propValue, clearable: "", size: "small", onChange: (e3) => V2.changePropValue(l3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : w("", true), "request" === l3.row.propValueType ? (r(), n(A, { key: 6, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, modelModifiers: { trim: true }, title: l3.row.propValue, clearable: "", size: "small", onChange: (e3) => V2.changePropValue(l3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : w("", true), "subObj" === l3.row.propValueType ? (r(), n(E, { key: 7, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, title: l3.row.propValue, "filter-method": V2.searchField, size: "small", clearable: "", filterable: "", onChange: (e3) => V2.changePropValue(l3.$index) }, { default: i(() => [(r(true), c(b, null, m(h2.attributeArr, (e3) => (r(), n(x, { 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"])) : w("", true), "obj" === l3.row.propValueType ? (r(), n(E, { key: 8, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, title: l3.row.propValue, size: "small", clearable: "", filterable: "", onChange: (e3) => V2.changePropValue(l3.$index) }, { default: i(() => [(r(true), c(b, null, m(h2.parentAttributeArr, (e3) => (r(), n(x, { key: "${obj." + e3.value + "}", label: e3.label, value: "${obj." + e3.value + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : w("", true), "custom" === l3.row.propValueType ? (r(), n(E, { key: 9, modelValue: l3.row.propValue, "onUpdate:modelValue": (e3) => l3.row.propValue = e3, title: l3.row.propValue, size: "small", clearable: "", filterable: "", onChange: (e3) => V2.changePropValue(l3.$index) }, { default: i(() => [(r(true), c(b, null, m(e2.propSettingKeyList, (e3) => (r(), n(x, { key: "${custom." + e3 + "}", label: e3, value: "${custom." + e3 + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : w("", true)]), _: 1 }, 8, ["label"]), d(U, { prop: "rightBracket", label: ")", width: "90", onFocus: l2[2] || (l2[2] = (l3) => V2.selectRow(e2.scope.row)) }, { default: i((e3) => [d(E, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, size: "small", clearable: "" }, { default: i(() => [d(x, { label: "", value: "" }), d(x, { label: ")", value: ")" }), d(x, { label: "))", value: "))" }), d(x, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(U, { label: e2.$t("workflowEditorPublicModel.andOr"), prop: "logicOperator", width: "110" }, { default: i((l3) => [d(E, { modelValue: l3.row.logicOperator, "onUpdate:modelValue": (e3) => l3.row.logicOperator = e3, size: "small", clearable: "", onFocus: (e3) => V2.selectRow(l3.row) }, { default: i(() => [d(x, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), d(x, { 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 })) : w("", true)])])]), _: 1 }, 8, ["title", "onClose"]);
|
|
53
|
+
}]]);
|
|
54
|
+
export {
|
|
55
|
+
g as default
|
|
56
|
+
};
|