workflow-editor 0.0.81-up-tmp10 → 0.0.81-up-tmp11
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/.vscode/extensions.json +3 -0
- package/package.json +1 -1
- package/vite.config.js +3 -3
- package/dist/index.full.min.js +0 -3504
- package/dist/style.css +0 -526
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/index.mjs +0 -17
- package/es/plugins/formValidatorUtil.mjs +0 -206
- package/es/plugins/index.mjs +0 -7
- package/es/src/i18n/i18n.mjs +0 -7
- package/es/src/i18n/langs/cn.mjs +0 -4
- package/es/src/i18n/langs/en.mjs +0 -4
- package/es/style.css +0 -525
- package/es/vite.svg +0 -1
- package/es/workflow-editor/index.mjs +0 -10
- package/es/workflow-editor/src/api.mjs +0 -6
- package/es/workflow-editor/src/assets/wf-editor-icons.mjs +0 -43
- package/es/workflow-editor/src/json-object-templates/auto-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/copy-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/decision.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/end.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/fork.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/human-decision.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/human-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/join.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/process.mjs +0 -9
- package/es/workflow-editor/src/json-object-templates/start.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/subprocess.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/transition.mjs +0 -6
- package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +0 -13
- package/es/workflow-editor/src/main/canvas.vue.mjs +0 -130
- package/es/workflow-editor/src/main/canvas.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/context-menu.vue.mjs +0 -33
- package/es/workflow-editor/src/main/context-menu.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/icon-svg.vue.mjs +0 -12
- package/es/workflow-editor/src/main/icon-svg.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/selection-region.vue.mjs +0 -17
- package/es/workflow-editor/src/main/selection-region.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +0 -10
- package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +0 -11
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/toolbox.vue.mjs +0 -16
- package/es/workflow-editor/src/main/toolbox.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +0 -86
- package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +0 -4
- package/es/workflow-editor/src/process-service.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +0 -22
- package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +0 -125
- package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +0 -60
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +0 -5
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +0 -72
- package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +0 -18
- package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +0 -55
- package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +0 -14
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +0 -36
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +0 -27
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +0 -31
- package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +0 -36
- package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +0 -95
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +0 -16
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +0 -46
- package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +0 -43
- package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +0 -116
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +0 -60
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +0 -41
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +0 -30
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +0 -26
- package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/decision.vue.mjs +0 -24
- package/es/workflow-editor/src/properties-editors/fork.vue.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +0 -15
- package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +0 -16
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +0 -38
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +0 -84
- package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +0 -62
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +0 -80
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +0 -86
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +0 -43
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +0 -67
- package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +0 -18
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +0 -33
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +0 -56
- package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +0 -28
- package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/join.vue.mjs +0 -15
- package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +0 -88
- package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +0 -17
- package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +0 -10
- package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +0 -28
- package/es/workflow-editor/src/properties-editors/process.vue.mjs +0 -34
- package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +0 -64
- package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +0 -9
- package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +0 -55
- package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +0 -22
- package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +0 -14
- package/es/workflow-editor/src/properties-editors/transition.vue.mjs +0 -17
- package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/user-condition.mjs +0 -49
- package/es/workflow-editor/src/store/getters.mjs +0 -4
- package/es/workflow-editor/src/store/workflow-editor.mjs +0 -73
- package/es/workflow-editor/src/taches/auto-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/common-methods.mjs +0 -13
- package/es/workflow-editor/src/taches/copy-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/custom-task.vue.mjs +0 -16
- package/es/workflow-editor/src/taches/decision.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/decision.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/end.vue.mjs +0 -14
- package/es/workflow-editor/src/taches/end.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/fork.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/fork.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/human-decision.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/human-decision.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/human-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/join.vue.mjs +0 -16
- package/es/workflow-editor/src/taches/join.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/joint.vue.mjs +0 -54
- package/es/workflow-editor/src/taches/joint.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/start.vue.mjs +0 -14
- package/es/workflow-editor/src/taches/start.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/subprocess.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +0 -30
- package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/broken-line.vue.mjs +0 -32
- package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/curve-line.vue.mjs +0 -33
- package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/straight-line.vue.mjs +0 -13
- package/es/workflow-editor/src/transitions/transition.vue.mjs +0 -70
- package/es/workflow-editor/src/transitions/transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +0 -17
- package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/util.mjs +0 -180
- package/es/workflow-editor/src/workflow-editor.vue.mjs +0 -205
- package/es/workflow-editor/src/workflow-editor.vue2.mjs +0 -4
- package/es/workflow-editor/src/workflow-history.vue.mjs +0 -35
- package/es/workflow-editor/src/workflow-history.vue2.mjs +0 -4
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/index.cjs +0 -8
- package/lib/plugins/formValidatorUtil.cjs +0 -203
- package/lib/plugins/index.cjs +0 -5
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/style.css +0 -525
- package/lib/vite.svg +0 -1
- package/lib/workflow-editor/index.cjs +0 -7
- package/lib/workflow-editor/src/api.cjs +0 -5
- package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +0 -44
- package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/decision.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/end.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/fork.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/human-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/join.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/process.cjs +0 -6
- package/lib/workflow-editor/src/json-object-templates/start.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/transition.cjs +0 -4
- package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +0 -11
- package/lib/workflow-editor/src/main/canvas.vue.cjs +0 -101
- package/lib/workflow-editor/src/main/canvas.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/context-menu.vue.cjs +0 -29
- package/lib/workflow-editor/src/main/context-menu.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/icon-svg.vue.cjs +0 -10
- package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/selection-region.vue.cjs +0 -13
- package/lib/workflow-editor/src/main/selection-region.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +0 -8
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +0 -9
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/toolbox.vue.cjs +0 -11
- package/lib/workflow-editor/src/main/toolbox.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +0 -67
- package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +0 -2
- package/lib/workflow-editor/src/process-service.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +0 -94
- package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +0 -54
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +0 -4
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +0 -67
- package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +0 -16
- package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +0 -50
- package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +0 -11
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +0 -22
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +0 -25
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +0 -93
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +0 -42
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +0 -37
- package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +0 -110
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +0 -55
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +0 -39
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +0 -26
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +0 -18
- package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +0 -82
- package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +0 -56
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +0 -75
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +0 -80
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +0 -39
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +0 -60
- package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +0 -15
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +0 -26
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +0 -49
- package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/join.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +0 -81
- package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +0 -18
- package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +0 -21
- package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +0 -7
- package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +0 -23
- package/lib/workflow-editor/src/properties-editors/process.vue.cjs +0 -24
- package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +0 -57
- package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +0 -7
- package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +0 -50
- package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +0 -16
- package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +0 -10
- package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +0 -12
- package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/user-condition.cjs +0 -33
- package/lib/workflow-editor/src/store/getters.cjs +0 -2
- package/lib/workflow-editor/src/store/workflow-editor.cjs +0 -71
- package/lib/workflow-editor/src/taches/auto-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/common-methods.cjs +0 -11
- package/lib/workflow-editor/src/taches/copy-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/custom-task.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/decision.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/decision.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/end.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/end.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/fork.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/fork.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/human-decision.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/human-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/join.vue.cjs +0 -11
- package/lib/workflow-editor/src/taches/join.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/joint.vue.cjs +0 -50
- package/lib/workflow-editor/src/taches/joint.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/start.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/start.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/subprocess.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +0 -27
- package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +0 -28
- package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +0 -29
- package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +0 -9
- package/lib/workflow-editor/src/transitions/transition.vue.cjs +0 -63
- package/lib/workflow-editor/src/transitions/transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +0 -13
- package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/util.cjs +0 -139
- package/lib/workflow-editor/src/workflow-editor.vue.cjs +0 -191
- package/lib/workflow-editor/src/workflow-editor.vue2.cjs +0 -2
- package/lib/workflow-editor/src/workflow-history.vue.cjs +0 -28
- package/lib/workflow-editor/src/workflow-history.vue2.cjs +0 -2
- /package/{dist → public}/vite.svg +0 -0
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { getFormFieldLabel as e, getFormField as r } from "./form-fields-utils.mjs";
|
|
2
|
-
import { getI18n as t } from "../../util.mjs";
|
|
3
|
-
const o = [{ name: "${approvalResult}", label: t().t("workflowEditor.process.approvalResults"), orgType: "other" }, { name: "${instanceCreatorName}", label: t().t("workflowEditor.process.processInitiator"), orgType: "user" }, { name: "${instanceCreatorRole}", label: t().t("workflowEditor.process.processInitiatorRole"), orgType: "role" }, { name: "${instanceCreatorDepartment}", label: t().t("workflowEditor.process.processInitiatorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${superiorDepartment}", label: t().t("workflowEditor.process.processInitiatorSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorUpstageDepartment}", label: t().t("workflowEditor.process.processInitiatorTopDepartment"), orgType: "department" }, { name: "${instanceCreatorWorkGroup}", label: t().t("workflowEditor.process.processInitiatorWorkingGroup"), orgType: "workgroup" }, { name: "${instanceCreatorDirectSuperiorName}", label: t().t("workflowEditor.process.sponsorsImmediateSuperior"), orgType: "user" }, { name: "${instanceCreatorDeptApprover}", label: t().t("workflowEditor.process.deptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptApprover}", label: t().t("workflowEditor.process.superiorDeptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptLeader}", label: t().t("workflowEditor.process.superiorDeptLeader"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDepartment}", label: t().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorDirectSuperiorRole}", label: t().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"), orgType: "role" }, { name: "${instanceCreatorDirectSuperiorWorkGroup}", label: t().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorName}", label: t().t("workflowEditor.process.nameOfCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorRole}", label: t().t("workflowEditor.process.currentHandlerRole"), orgType: "role" }, { name: "${currentTransactorDepartment}", label: t().t("workflowEditor.process.currentHandlerDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorSuperiorDepartment}", label: t().t("workflowEditor.process.currentHandlerSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorUpstageDepartment}", label: t().t("workflowEditor.process.topDepartmentOfCurrentHandler"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment"] }, { name: "${currentTransactorWorkGroup}", label: t().t("workflowEditor.process.currentHandlerWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorDirectSuperiorName}", label: t().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorDirectSuperiorDepartment}", label: t().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorDirectSuperiorRole}", label: t().t("workflowEditor.process.currentManagerDirectSuperiorRole"), orgType: "role" }, { name: "${currentTransactorDirectSuperiorWorkGroup}", label: t().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"), orgType: "workgroup" }, { name: "${upstageDepartment}", label: t().t("workflowEditor.process.topDepartments"), orgType: "department" }, { name: "${countersignatureDisagreeCount}", label: t().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreeCount}", label: t().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureDisagreePercentage}", label: t().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreePercentage}", label: t().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionPercentage}", label: t().t("workflowEditor.process.percentageOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstPercentage}", label: t().t("workflowEditor.process.percentageOfVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorPercentage}", label: t().t("workflowEditor.process.percentageOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionCount}", label: t().t("workflowEditor.process.totalNumberOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstCount}", label: t().t("workflowEditor.process.totalVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorCount}", label: t().t("workflowEditor.process.totalNumberOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }], a = { "condition.operator.or": t().t("workflowEditor.process.perhaps"), "condition.operator.and": t().t("workflowEditor.process.also") };
|
|
4
|
-
function n(e2) {
|
|
5
|
-
return ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(e2) >= 0;
|
|
6
|
-
}
|
|
7
|
-
const s = [{ name: "operator.number.gt", label: t().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: t().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: t().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: t().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: t().t("workflowEditor.process.notEqualTo") }];
|
|
8
|
-
function l(e2) {
|
|
9
|
-
return ["STRING", "TEXT"].indexOf(e2) >= 0;
|
|
10
|
-
}
|
|
11
|
-
const i = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: t().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: t().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: t().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: t().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: t().t("workflowEditor.process.isNotNull") }];
|
|
12
|
-
function p(e2) {
|
|
13
|
-
return ["DATE", "TIME"].indexOf(e2) >= 0;
|
|
14
|
-
}
|
|
15
|
-
const c = [{ name: "operator.date.gt", label: t().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: t().t("workflowEditor.process.earlierThan") }, { name: "operator.date.et", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: t().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: t().t("workflowEditor.process.noEarlierThan") }, { name: "operator.date.ne", label: t().t("workflowEditor.process.notEqualTo") }], u = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: t().t("workflowEditor.process.notEqualTo") }];
|
|
16
|
-
function d(e2) {
|
|
17
|
-
return "${approvalResult}" === e2;
|
|
18
|
-
}
|
|
19
|
-
const f = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }], m = [...s, ...c, ...i, ...u];
|
|
20
|
-
function g(e2, r2) {
|
|
21
|
-
if (r2 && 0 !== r2.length) {
|
|
22
|
-
let t2 = r2.replace(/ condition.operator.or /g, " condition.operator.or^_^");
|
|
23
|
-
t2 = t2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
|
|
24
|
-
const o2 = t2.split("^_^");
|
|
25
|
-
let a2 = 0;
|
|
26
|
-
for (let r3 of o2) {
|
|
27
|
-
if ("" === r3)
|
|
28
|
-
continue;
|
|
29
|
-
let t3 = "", o3 = "", n2 = "", s2 = "", l2 = "", i2 = "condition.operator.or", p2 = r3.indexOf("${");
|
|
30
|
-
if (p2 > 0 && (t3 = r3.substring(0, p2)), o3 = r3.substring(p2, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), n2 = r3.substring(0, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), p2 = r3.indexOf(")"), p2 >= 0) {
|
|
31
|
-
s2 = r3.substring(0, p2);
|
|
32
|
-
const e3 = r3.substring(p2);
|
|
33
|
-
p2 = e3.indexOf(")"), l2 = e3.indexOf(" ") >= 0 ? e3.substring(p2, e3.indexOf(" ")) : e3.substring(p2), p2 = r3.indexOf(" condition."), p2 >= 0 && (i2 = r3.substring(p2 + 1));
|
|
34
|
-
} else
|
|
35
|
-
p2 = r3.indexOf(" condition."), p2 > 0 ? (s2 = r3.substring(0, p2), i2 = r3.substring(p2 + 1)) : s2 = r3;
|
|
36
|
-
e2.push({ id: a2, leftBracket: t3, key: o3, operator: n2, value: s2, rightBracket: l2, logicOperator: i2 }), a2++;
|
|
37
|
-
}
|
|
38
|
-
return a2;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function w(e2) {
|
|
42
|
-
let r2 = "";
|
|
43
|
-
for (const t3 of e2)
|
|
44
|
-
0 === t3.key.length || "" === t3.operator || "" === t3.value && "operator.text.is.null" !== t3.operator && "operator.text.not.null" !== t3.operator || (r2 = r2 + t3.leftBracket + t3.key + " " + t3.operator + " " + t3.value + t3.rightBracket + " " + t3.logicOperator + " ");
|
|
45
|
-
const t2 = " condition.operator.or ", o2 = " condition.operator.and ";
|
|
46
|
-
return r2.lastIndexOf(t2) + 23 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(o2) + 24 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(o2))), r2;
|
|
47
|
-
}
|
|
48
|
-
function T(e2) {
|
|
49
|
-
const r2 = o.filter((r3) => r3.name === e2);
|
|
50
|
-
return r2.length > 0 ? r2[0] : null;
|
|
51
|
-
}
|
|
52
|
-
function E(e2) {
|
|
53
|
-
const r2 = T(e2);
|
|
54
|
-
return r2 ? r2.label : e2;
|
|
55
|
-
}
|
|
56
|
-
function b(r2) {
|
|
57
|
-
return r2 ? r2.indexOf("${field[") >= 0 ? e(r2) : r2.indexOf("${") >= 0 ? E(r2) : r2.indexOf("[") >= 0 ? r2.substring(0, r2.indexOf("[")) : r2 : "";
|
|
58
|
-
}
|
|
59
|
-
function k(e2) {
|
|
60
|
-
const r2 = m.filter((r3) => r3.name === e2);
|
|
61
|
-
return r2.length > 0 ? r2[0].label : "";
|
|
62
|
-
}
|
|
63
|
-
function D(e2) {
|
|
64
|
-
let r2 = "";
|
|
65
|
-
for (const t3 of e2)
|
|
66
|
-
0 !== t3.key.length && void 0 !== t3.operator && "" !== t3.operator && null !== t3.operator && ("operator.text.is.null" === t3.operator || "operator.text.not.null" === t3.operator || "" !== t3.value && void 0 !== t3.value && null !== t3.value) && (r2 = r2 + t3.leftBracket + b(t3.key) + " " + k(t3.operator) + " " + b(t3.value) + t3.rightBracket + " " + a[t3.logicOperator] + " ");
|
|
67
|
-
const t2 = " 或者 ", o2 = " 并且 ";
|
|
68
|
-
return r2.lastIndexOf(t2) + 4 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(o2) + 4 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(o2))), r2;
|
|
69
|
-
}
|
|
70
|
-
function y(e2) {
|
|
71
|
-
const r2 = o.filter((r3) => r3.name === e2);
|
|
72
|
-
let t2 = [];
|
|
73
|
-
r2.length > 0 && (t2 = r2[0].relatedFields || []);
|
|
74
|
-
const a2 = [];
|
|
75
|
-
return o.forEach((e3) => {
|
|
76
|
-
t2.indexOf(e3.name.substring(2, e3.name.length - 1)) >= 0 && a2.push(e3);
|
|
77
|
-
}), a2;
|
|
78
|
-
}
|
|
79
|
-
function h(e2) {
|
|
80
|
-
if (e2)
|
|
81
|
-
return o;
|
|
82
|
-
const r2 = [];
|
|
83
|
-
return o.forEach((t2) => {
|
|
84
|
-
e2 || "other" === t2.orgType || r2.push(t2);
|
|
85
|
-
}), r2;
|
|
86
|
-
}
|
|
87
|
-
function O(e2) {
|
|
88
|
-
if ("${approvalResult}" === e2)
|
|
89
|
-
return false;
|
|
90
|
-
const r2 = o.filter((r3) => r3.name === e2);
|
|
91
|
-
let t2 = false;
|
|
92
|
-
return r2.length > 0 && r2.forEach((r3) => {
|
|
93
|
-
e2 === r3.name && "other" === r3.orgType && (t2 = true);
|
|
94
|
-
}), t2;
|
|
95
|
-
}
|
|
96
|
-
function x(e2) {
|
|
97
|
-
const t2 = r(e2) || T(e2);
|
|
98
|
-
if (t2)
|
|
99
|
-
return n(t2.dataType) ? s : p(t2.dataType) ? c : l(t2.dataType) ? i : d(e2) ? f : u;
|
|
100
|
-
}
|
|
101
|
-
export {
|
|
102
|
-
m as allOperators,
|
|
103
|
-
D as displayCondition,
|
|
104
|
-
w as generateCondition,
|
|
105
|
-
b as getFieldLabel,
|
|
106
|
-
k as getOperatorLabel,
|
|
107
|
-
x as getOperators,
|
|
108
|
-
y as getRelatedStandardFields,
|
|
109
|
-
T as getStandardField,
|
|
110
|
-
E as getStandardFieldLabel,
|
|
111
|
-
h as getStandardFieldsByTacheType,
|
|
112
|
-
d as isApproveResult,
|
|
113
|
-
p as isDate,
|
|
114
|
-
n as isNumber,
|
|
115
|
-
l as isString,
|
|
116
|
-
O as isTransitionOtherField,
|
|
117
|
-
a as logicOperators,
|
|
118
|
-
f as operatorsForApproveResult,
|
|
119
|
-
c as operatorsForDate,
|
|
120
|
-
s as operatorsForNumber,
|
|
121
|
-
i as operatorsForString,
|
|
122
|
-
u as operatorsForText,
|
|
123
|
-
g as parseCondition,
|
|
124
|
-
o as standardFields
|
|
125
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { parseCondition as e, standardFields as t, getStandardFieldsByTacheType as l, getRelatedStandardFields as o, generateCondition as a, getFieldLabel as r, getOperators as i, displayCondition as n, isTransitionOtherField as u } from "./additional-condition-utils.mjs";
|
|
2
|
-
import s from "./value-selection-dialog.vue.mjs";
|
|
3
|
-
import { mapGetters as d } from "vuex";
|
|
4
|
-
import { resolveComponent as c, openBlock as h, createElementBlock as w, createVNode as p, withCtx as f, createTextVNode as m, toDisplayString as g, Fragment as b, renderList as k, createBlock as v, createCommentVNode as y } from "vue";
|
|
5
|
-
import V from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
-
const C = { name: "AdditionalCondition", components: { ValueSelectionDialog: s }, props: { modelValue: { type: String, default: null }, isTransition: { type: Boolean, default: false } }, data() {
|
|
7
|
-
const l2 = [], o2 = e(l2, this.modelValue);
|
|
8
|
-
return { standardFields: t, tableData: l2, count: o2, currentRow: null, currentInput: null, options: [], valueDialogTitle: null, showOrganization: true, orgType: null };
|
|
9
|
-
}, computed: { ...d("wfEditor", ["formFields"]), availableStandardFields() {
|
|
10
|
-
return "key" === this.currentInput ? l(this.isTransition) : o(this.currentRow.key);
|
|
11
|
-
} }, mounted() {
|
|
12
|
-
this.tableData.length > 0 && this.$refs.table.setCurrentRow(this.tableData[this.tableData.length - 1]), this.$watch("tableData", function(e2, t2) {
|
|
13
|
-
this.$emit("update:modelValue", a(this.tableData));
|
|
14
|
-
}, { deep: true });
|
|
15
|
-
}, methods: { format: (e2, t2) => "" === e2 || null == e2 ? "" : r(e2), getOperatorOptions: (e2) => i(e2), selectRow(e2) {
|
|
16
|
-
this.$refs.table.setCurrentRow(e2);
|
|
17
|
-
}, openValueDialog(e2) {
|
|
18
|
-
this.showValueDialog = true, this.selectRow(e2);
|
|
19
|
-
}, closeValueDialog(e2) {
|
|
20
|
-
void 0 !== e2 && "" !== e2 && ("key" === this.currentInput && this.currentRow.key !== e2 && (this.currentRow.operator = "", this.currentRow.value = ""), this.currentRow[this.currentInput] = e2), this.currentInput = "";
|
|
21
|
-
}, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
|
|
22
|
-
this.currentRow = e2;
|
|
23
|
-
}, getRowIndex(e2) {
|
|
24
|
-
for (let t2 = 0; t2 < this.tableData.length; t2++)
|
|
25
|
-
if (this.tableData[t2].id === e2.id)
|
|
26
|
-
return t2;
|
|
27
|
-
return -1;
|
|
28
|
-
}, add() {
|
|
29
|
-
(null === this.count || void 0 === this.count || this.count.isNaN || "NaN" === this.count) && (this.count = 0);
|
|
30
|
-
const e2 = { id: this.count, leftBracket: "", key: "", operator: "", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
31
|
-
this.tableData.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
32
|
-
}, insert() {
|
|
33
|
-
if (null === this.currentRow)
|
|
34
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
35
|
-
const e2 = { id: this.count, leftBracket: "", key: "", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
36
|
-
this.tableData.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
37
|
-
}, remove() {
|
|
38
|
-
if (null === this.currentRow)
|
|
39
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
40
|
-
let e2 = this.getRowIndex(this.currentRow);
|
|
41
|
-
this.tableData.splice(e2, 1), this.tableData.length > 0 && (e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.$refs.table.setCurrentRow(this.tableData[e2]));
|
|
42
|
-
}, view() {
|
|
43
|
-
let e2 = n(this.tableData);
|
|
44
|
-
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorMessage.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
45
|
-
} });
|
|
46
|
-
}, selectField(e2) {
|
|
47
|
-
this.selectRow(e2), this.currentInput = "key", this.valueDialogTitle = this.$t("workflowEditorMessage.fieldSettings"), this.showOrganization = false;
|
|
48
|
-
}, selectValue() {
|
|
49
|
-
this.currentInput = "value", this.valueDialogTitle = this.$t("workflowEditorMessage.valueSetting"), this.showOrganization = true, this.orgType = this.getStandardFieldOrgType();
|
|
50
|
-
}, getStandardFieldOrgType() {
|
|
51
|
-
const e2 = this.standardFields.filter((e3) => e3.name === this.currentRow.key);
|
|
52
|
-
return e2.length > 0 ? e2[0].orgType : "";
|
|
53
|
-
}, isTransitionOtherField: (e2) => u(e2) } }, R = { style: { overflow: "auto", width: "100%" } };
|
|
54
|
-
const $ = V(C, [["render", function(e2, t2, l2, o2, a2, r2) {
|
|
55
|
-
const i2 = c("el-button"), n2 = c("el-row"), u2 = c("el-option"), s2 = c("el-select"), d2 = c("el-table-column"), V2 = c("el-input"), C2 = c("el-table"), $2 = c("value-selection-dialog");
|
|
56
|
-
return h(), w("div", R, [p(n2, null, { default: f(() => [p(i2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: r2.add }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: r2.insert }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: r2.remove }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "View", onClick: r2.view }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), p(C2, { ref: "table", data: a2.tableData, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: r2.handleCurrentChange }, { default: f(() => [p(d2, { prop: "leftBracket", label: "(", width: "90" }, { default: f((e3) => [p(s2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => r2.selectRow(e3.row) }, { default: f(() => [p(u2, { label: "", value: "" }), p(u2, { label: "(", value: "(" }), p(u2, { label: "((", value: "((" }), p(u2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), p(d2, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: f((e3) => [p(V2, { value: r2.format(e3.row.key), onClick: (t3) => r2.selectField(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), p(d2, { label: e2.$t("workflowEditor.common.operator"), width: "130" }, { default: f((e3) => [p(s2, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, placeholder: "", onFocus: (t3) => r2.selectRow(e3.row) }, { default: f(() => [(h(true), w(b, null, k(r2.getOperatorOptions(e3.row.key), (e4) => (h(), v(u2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), p(d2, { label: e2.$t("workflowEditor.common.value") }, { default: f((t3) => [t3.row.key.indexOf("${field[") >= 0 || r2.isTransitionOtherField(t3.row.key) ? (h(), v(V2, { key: 0, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "${approvalResult}" === t3.row.key ? (h(), v(s2, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, { default: f(() => [p(u2, { value: "同意", label: e2.$t("workflowEditorPublicModel.agree") }, null, 8, ["label"]), p(u2, { value: "不同意", label: e2.$t("workflowEditorPublicModel.disagree") }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v(V2, { key: 2, value: r2.format(t3.row.value, t3.row), readonly: "", onClick: r2.selectValue }, null, 8, ["value", "onClick"]))]), _: 1 }, 8, ["label"]), p(d2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => r2.selectRow(e2.scope.row)) }, { default: f((e3) => [p(s2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: f(() => [p(u2, { label: "", value: "" }), p(u2, { label: ")", value: ")" }), p(u2, { label: "))", value: "))" }), p(u2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(d2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: f((t3) => [p(s2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => r2.selectRow(t3.row) }, { default: f(() => [p(u2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), p(u2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), a2.currentInput ? (h(), v($2, { key: 0, title: a2.valueDialogTitle, "show-organization": a2.showOrganization, "standard-fields": r2.availableStandardFields, "org-type": a2.orgType, onClose: r2.closeValueDialog }, null, 8, ["title", "show-organization", "standard-fields", "org-type", "onClose"])) : y("", true)]);
|
|
57
|
-
}]]);
|
|
58
|
-
export {
|
|
59
|
-
$ as default
|
|
60
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { getI18n as r } from "../../util.mjs";
|
|
2
|
-
const e = { "${currentTime}": r().t("workflowEditor.process.handlingTimeOfThisLink"), "${currentTransactorId}": r().t("workflowEditor.process.handlerIDOfThisLink"), "${currentTransactorMainDepartmentId}": r().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"), "${currentTransactorDirectSuperiorId}": r().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorMainDepartmentId}": r().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"), "${currentTransactor}": r().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"), "${currentTransactorName }": r().t("workflowEditor.process.NameOfCurrentHandler"), "${currentTransactorDepartment }": r().t("workflowEditor.process.CurrentHandlerDepartment"), "${currentTransactorDepartmentId}": r().t("workflowEditor.process.CurrentHandlerDepartmentID"), "${currentTransactorMainDepartment}": r().t("workflowEditor.process.CurrentManagersPrincipalDepartment"), "${currentTransactorSuperiorDepartmentId}": r().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"), "${currentTransactorSuperiorDepartment}": r().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"), "${currentTransactorUpstageDepartment}": r().t("workflowEditor.process.TopDepartmentOfCurrentHandler"), "${currentTransactorUpstageDepartmentId}": r().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"), "${currentTransactorRole}": r().t("workflowEditor.process.CurrentHandlerRole"), "${currentTransactorRoleId}": r().t("workflowEditor.process.CurrentHandlerRoleID"), "${currentTransactorWorkGroup}": r().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorWorkGroupId}": r().t("workflowEditor.process.CurrentHandlerWorkingGroupID"), "${currentTransactorDirectSuperior}": r().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorName}": r().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": r().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorDepartmentId}": r().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"), "${currentTransactorDirectSuperiorMainDepartment}": r().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorRole}": r().t("workflowEditor.process.currentManagersDirectSuperiorRole"), "${currentTransactorDirectSuperiorRoleId}": r().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"), "${currentTransactorDirectSuperiorWorkGroup}": r().t("workflowEditor.process.currentManagersDirectSuperiorWork"), "${currentTransactorDirectSuperiorWorkGroupId}": r().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"), "${currentOperation}": r().t("workflowEditor.process.operationsPerformedInThisPhase"), "${previousTransactorId}": r().t("workflowEditor.process.handlerIDOfThePreviousLink"), "${previousTransactor}": r().t("workflowEditor.process.lastLinkHandlerLogin"), "${previousTransactorName}": r().t("workflowEditor.process.nameOfHandlerInThePreviousLink") };
|
|
3
|
-
export {
|
|
4
|
-
e as standardValues
|
|
5
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { standardValues as e } from "./auto-filled-fields-utils.mjs";
|
|
2
|
-
import l from "./form-fields.vue.mjs";
|
|
3
|
-
import { getFormFieldLabel as t } from "./form-fields-utils.mjs";
|
|
4
|
-
import { resolveComponent as o, openBlock as a, createElementBlock as i, createVNode as n, withCtx as r, createTextVNode as d, toDisplayString as s, Fragment as u, renderList as m, createBlock as p, createCommentVNode as h } from "vue";
|
|
5
|
-
import f from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
-
const c = f({ name: "AutoFilledFields", components: { FormFields: l }, props: { modelValue: { type: Object, default: () => ({}) }, opinionSetting: { type: Object, default: () => ({}) } }, data() {
|
|
7
|
-
const l2 = [];
|
|
8
|
-
if (void 0 !== this.modelValue.field && null !== this.modelValue.field)
|
|
9
|
-
if (Array.isArray(this.modelValue.field))
|
|
10
|
-
this.modelValue.field.map((e2) => {
|
|
11
|
-
const t3 = { ...e2 };
|
|
12
|
-
"string" == typeof e2.value && -1 !== e2.value.indexOf("+") ? t3.value = e2.value.split("+") : (t3.value = [], t3.value.push(e2.value)), l2.push(t3);
|
|
13
|
-
});
|
|
14
|
-
else {
|
|
15
|
-
const e2 = { ...this.modelValue.field };
|
|
16
|
-
"string" == typeof this.modelValue.field.value && -1 !== this.modelValue.field.value.indexOf("+") ? e2.value = this.modelValue.field.value.split("+") : (e2.value = [], e2.value.push(this.modelValue.field.value)), l2.push(e2);
|
|
17
|
-
}
|
|
18
|
-
let t2 = {};
|
|
19
|
-
return this.opinionSetting && this.opinionSetting.opinionSourceField && (t2 = { ...this.opinionSetting }), { tableData: l2, currentRow: null, standardValues: e, showFormFields: false, isSelectOpinionField: false, opinionAutoSetting: t2 };
|
|
20
|
-
}, computed: { keys() {
|
|
21
|
-
return Object.keys(this.standardValues);
|
|
22
|
-
} }, watch: { opinionAutoSetting: { deep: true, handler(e2) {
|
|
23
|
-
const l2 = { ...e2 };
|
|
24
|
-
this.$emit("update:opinion-setting", l2);
|
|
25
|
-
} } }, mounted() {
|
|
26
|
-
this.tableData && this.tableData.length > 0 && this.setCurrentRow(this.tableData[0]), this.$watch("tableData", function() {
|
|
27
|
-
const e2 = [];
|
|
28
|
-
this.tableData.map((l2) => {
|
|
29
|
-
if ("" !== l2.name && l2.value.length > 0) {
|
|
30
|
-
const t2 = { ...l2 };
|
|
31
|
-
t2.value = l2.value.join("+"), e2.push(t2);
|
|
32
|
-
}
|
|
33
|
-
}), this.$emit("update:modelValue", { field: e2 });
|
|
34
|
-
}, { deep: true });
|
|
35
|
-
}, created() {
|
|
36
|
-
}, methods: { add() {
|
|
37
|
-
for (let e3 = 0; e3 < this.tableData.length; e3++)
|
|
38
|
-
if ("" === this.tableData[e3].name || "" === this.tableData[e3].value)
|
|
39
|
-
return void this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty", { row: e3 + 1 }));
|
|
40
|
-
const e2 = { name: "", value: [], separator: "", fillType: "cover", fillTime: "after" };
|
|
41
|
-
this.tableData.push(e2), this.setCurrentRow(e2);
|
|
42
|
-
}, remove() {
|
|
43
|
-
if (null === this.currentRow)
|
|
44
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
45
|
-
let e2;
|
|
46
|
-
for (let l2 = 0; l2 < this.tableData.length; l2++)
|
|
47
|
-
if (this.tableData[l2].name === this.currentRow.name) {
|
|
48
|
-
e2 = l2;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
this.tableData.splice(e2, 1), e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.setCurrentRow(this.tableData[e2]);
|
|
52
|
-
}, setCurrentRow(e2) {
|
|
53
|
-
this.$refs.table.setCurrentRow(e2);
|
|
54
|
-
}, handleCurrentChange(e2) {
|
|
55
|
-
this.currentRow = e2;
|
|
56
|
-
}, checkName(e2) {
|
|
57
|
-
this.showFormFields || "" !== e2 || this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"));
|
|
58
|
-
}, checkValue(e2) {
|
|
59
|
-
0 === e2.length && this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"));
|
|
60
|
-
}, setField(e2) {
|
|
61
|
-
this.isSelectOpinionField ? this.opinionAutoSetting.opinionSourceField = e2 : void 0 !== e2 && (this.currentRow.name = e2), this.showFormFields = false, this.isSelectOpinionField = false;
|
|
62
|
-
}, getFieldLabel: (e2) => t(e2), selectOpinionField() {
|
|
63
|
-
this.showFormFields = true, this.isSelectOpinionField = true;
|
|
64
|
-
}, clearOpinionField() {
|
|
65
|
-
delete this.opinionAutoSetting.opinionSourceField;
|
|
66
|
-
} } }, [["render", function(e2, l2, t2, f2, c2, w) {
|
|
67
|
-
const b = o("el-button"), v = o("el-row"), g = o("el-table-column"), k = o("el-input"), F = o("el-option"), V = o("el-select"), C = o("el-table"), y = o("el-card"), $ = o("el-form-item"), E = o("form-fields");
|
|
68
|
-
return a(), i("div", null, [n(y, { class: "box-card" }, { header: r(() => [d(" 表单自动填充字段设置 ")]), default: r(() => [n(v, { style: { "margin-bottom": "5px" } }, { default: r(() => [n(b, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: w.add }, { default: r(() => [d(s(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), n(b, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: w.remove }, { default: r(() => [d(s(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), n(C, { ref: "table", data: c2.tableData, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: w.handleCurrentChange }, { default: r(() => [n(g, { type: "index", width: "50" }), n(g, { prop: "name", label: e2.$t("workflowEditor.common.name"), width: "150" }, { default: r((t3) => [n(k, { value: w.getFieldLabel(t3.row.name), placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), readonly: "", onClick: l2[0] || (l2[0] = (e3) => c2.showFormFields = true), onBlur: (e3) => w.checkName(t3.row.name) }, null, 8, ["value", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), n(g, { prop: "value", label: e2.$t("workflowEditor.common.fieldValue"), width: "200" }, { default: r((l3) => [n(V, { modelValue: l3.row.value, "onUpdate:modelValue": (e3) => l3.row.value = e3, multiple: "", filterable: "", "allow-create": "", "default-first-option": "", placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onBlur: (e3) => w.checkValue(l3.row.value) }, { default: r(() => [(a(true), i(u, null, m(w.keys, (e3) => (a(), p(F, { key: e3, label: c2.standardValues[e3], value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), n(g, { prop: "separator", label: e2.$t("workflowEditor.common.separator") }, { default: r((e3) => [n(k, { modelValue: e3.row.separator, "onUpdate:modelValue": (l3) => e3.row.separator = l3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), n(g, { prop: "fillType", label: e2.$t("workflowEditor.common.fillInMethod") }, { default: r((l3) => [n(V, { modelValue: l3.row.fillType, "onUpdate:modelValue": (e3) => l3.row.fillType = e3 }, { default: r(() => [n(F, { label: e2.$t("workflowEditor.common.cover"), value: "cover" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.append"), value: "append" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.insertToFront"), value: "prepend" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), n(g, { prop: "fillTime", label: e2.$t("workflowEditor.common.fillInTime") }, { default: r((l3) => [n(V, { modelValue: l3.row.fillTime, "onUpdate:modelValue": (e3) => l3.row.fillTime = e3 }, { default: r(() => [n(F, { label: e2.$t("workflowEditor.common.fillInBeforeHandling"), value: "before" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.fillInAfterHandling"), value: "after" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), n(y, { class: "box-card", style: { "margin-top": "10px" } }, { header: r(() => [d(" 办理意见 ")]), default: r(() => [n($, { label: "意见来源字段", "label-width": "100" }, { default: r(() => [n(k, { value: w.getFieldLabel(c2.opinionAutoSetting.opinionSourceField), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), readonly: "", clearable: true, onClick: w.selectOpinionField }, { append: r(() => [n(b, { icon: "Delete", onClick: w.clearOpinionField }, null, 8, ["onClick"])]), _: 1 }, 8, ["value", "placeholder", "onClick"])]), _: 1 })]), _: 1 }), c2.showFormFields ? (a(), p(E, { key: 0, onClose: w.setField }, null, 8, ["onClose"])) : h("", true)]);
|
|
69
|
-
}]]);
|
|
70
|
-
export {
|
|
71
|
-
c as default
|
|
72
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as l, openBlock as t, createElementBlock as e, createVNode as o, withCtx as u, createTextVNode as s, toDisplayString as i, createBlock as m, createCommentVNode as a } from "vue";
|
|
2
|
-
import d from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
-
const r = d({ name: "CommonNoticeTool", props: { label: { type: String, default: null }, modelValue: { type: String, default: null }, customMsg: { type: String, default: null } }, data() {
|
|
4
|
-
let l2 = [];
|
|
5
|
-
this.modelValue && "" !== this.modelValue && null !== this.modelValue && (l2 = this.modelValue.split(","));
|
|
6
|
-
let t2 = "";
|
|
7
|
-
return this.customMsg && "" !== this.customMsg && null !== this.customMsg && (t2 = this.customMsg), { tools: l2, myCustomMsg: t2 };
|
|
8
|
-
}, watch: { tools(l2) {
|
|
9
|
-
this.$emit("update:modelValue", this.tools.join(","));
|
|
10
|
-
}, myCustomMsg(l2) {
|
|
11
|
-
this.$emit("input-msg", this.myCustomMsg);
|
|
12
|
-
} } }, [["render", function(d2, r2, n, c, f, b) {
|
|
13
|
-
const g = l("el-checkbox"), h = l("el-checkbox-group"), p = l("el-form-item"), M = l("el-input");
|
|
14
|
-
return t(), e("div", null, [o(p, { label: n.label }, { default: u(() => [o(h, { modelValue: f.tools, "onUpdate:modelValue": r2[0] || (r2[0] = (l2) => f.tools = l2) }, { default: u(() => [o(g, { label: "mail" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.mail")), 1)]), _: 1 }), o(g, { label: "DINGDING" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.dingding")), 1)]), _: 1 }), o(g, { label: "QIWEI" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.qiwei")), 1)]), _: 1 }), o(g, { label: "FEISHU" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.feishu")), 1)]), _: 1 }), o(g, { label: "custom" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.custom")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), f.tools.indexOf("custom") >= 0 ? (t(), m(p, { key: 0, "label-width": "110", label: d2.$t("workflowEditor.common.customMsg") }, { default: u(() => [o(M, { modelValue: f.myCustomMsg, "onUpdate:modelValue": r2[1] || (r2[1] = (l2) => f.myCustomMsg = l2) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])) : a("", true)]);
|
|
15
|
-
}]]);
|
|
16
|
-
export {
|
|
17
|
-
r as default
|
|
18
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import e from "./value-selection-dialog.vue.mjs";
|
|
2
|
-
import { parseCondition as o, userStandardFieldsForReminder as l, userStandardFieldsForTransactor as t, departmentStandardFieldsForReminder as r, departmentStandardFieldsForTransactor as a, workgroupStandardFieldsForReminder as i, workgroupStandardFieldsForTransactor as n, generateUserCondition as s, formatStandardValue as u, displayUserCondition as d } from "../user-condition.mjs";
|
|
3
|
-
import { getFormFieldLabel as c } from "./form-fields-utils.mjs";
|
|
4
|
-
import { resolveComponent as w, openBlock as h, createElementBlock as p, createVNode as m, withCtx as f, createTextVNode as k, toDisplayString as g, createBlock as b, createCommentVNode as v } from "vue";
|
|
5
|
-
import $ from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
-
const C = $({ name: "CommonUserCondition", components: { ValueSelectionDialog: e }, props: { modelValue: { type: String, default: null }, usedIn: { type: String, default: "reminder" } }, data() {
|
|
7
|
-
const e2 = [];
|
|
8
|
-
let l2 = 0;
|
|
9
|
-
return this.modelValue && "" !== this.modelValue && (l2 = o(e2, this.modelValue)), { users: e2, count: l2, currentRow: null, showValueDialog: false };
|
|
10
|
-
}, computed: { standardFields() {
|
|
11
|
-
let e2 = "reminder" === this.usedIn ? l : t;
|
|
12
|
-
return "${department}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? r : a : "${workgroup}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? i : n : "${role}" === this.currentRow.key && (e2 = {}), e2;
|
|
13
|
-
} }, mounted() {
|
|
14
|
-
this.users.length > 0 && this.$refs.table.setCurrentRow(this.users[this.users.length - 1]), this.$watch("users", function(e2, o2) {
|
|
15
|
-
this.$emit("update:modelValue", s(this.users));
|
|
16
|
-
}, { deep: true });
|
|
17
|
-
}, methods: { format: (e2) => e2.indexOf("${field[") >= 0 ? c(e2) : e2.indexOf("${") >= 0 ? u(e2) : e2.substring(0, e2.indexOf("[")), selectRow(e2) {
|
|
18
|
-
this.$refs.table.setCurrentRow(e2);
|
|
19
|
-
}, openValueDialog(e2) {
|
|
20
|
-
this.showValueDialog = true, this.selectRow(e2);
|
|
21
|
-
}, closeValueDialog(e2) {
|
|
22
|
-
void 0 !== e2 && "" !== e2 && (this.currentRow.value = e2), this.showValueDialog = false;
|
|
23
|
-
}, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
|
|
24
|
-
this.currentRow = e2;
|
|
25
|
-
}, getRowIndex(e2) {
|
|
26
|
-
for (let o2 = 0; o2 < this.users.length; o2++)
|
|
27
|
-
if (this.users[o2].id === e2.id)
|
|
28
|
-
return o2;
|
|
29
|
-
return -1;
|
|
30
|
-
}, add() {
|
|
31
|
-
const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
32
|
-
this.users.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
33
|
-
}, insert() {
|
|
34
|
-
if (null === this.currentRow)
|
|
35
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
36
|
-
const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
37
|
-
this.users.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
38
|
-
}, remove() {
|
|
39
|
-
if (null === this.currentRow)
|
|
40
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
41
|
-
let e2 = this.getRowIndex(this.currentRow);
|
|
42
|
-
this.users.splice(e2, 1), this.users.length > 0 && (e2 = e2 <= this.users.length - 1 ? e2 : this.users.length - 1, this.$refs.table.setCurrentRow(this.users[e2]));
|
|
43
|
-
}, view() {
|
|
44
|
-
let e2 = d(this.users);
|
|
45
|
-
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorPublicModel.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
46
|
-
} });
|
|
47
|
-
}, handleKeyChange(e2) {
|
|
48
|
-
this.currentRow.value = "";
|
|
49
|
-
} } }, [["render", function(e2, o2, l2, t2, r2, a2) {
|
|
50
|
-
const i2 = w("el-button"), n2 = w("el-row"), s2 = w("el-option"), u2 = w("el-select"), d2 = w("el-table-column"), c2 = w("el-input"), $2 = w("el-table"), C2 = w("value-selection-dialog");
|
|
51
|
-
return h(), p("div", null, [m(n2, null, { default: f(() => [m(i2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: a2.add }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: a2.insert }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: a2.remove }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "View", onClick: a2.view }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), m($2, { ref: "table", data: r2.users, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: a2.handleCurrentChange }, { default: f(() => [m(d2, { prop: "leftBracket", label: "(", width: "90" }, { default: f((e3) => [m(u2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (o3) => e3.row.leftBracket = o3, placeholder: "", onFocus: (o3) => a2.selectRow(e3.row) }, { default: f(() => [m(s2, { label: "", value: "" }), m(s2, { label: "(", value: "(" }), m(s2, { label: "((", value: "((" }), m(s2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), m(d2, { label: e2.$t("workflowEditor.common.type"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.key, "onUpdate:modelValue": (e3) => o3.row.key = e3, placeholder: "", onFocus: (e3) => a2.selectRow(o3.row), onChange: a2.handleKeyChange }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.common.user"), value: "${user}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.role"), value: "${role}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.department"), value: "${department}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.workgroup"), value: "${workgroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), m(d2, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.operator, "onUpdate:modelValue": (e3) => o3.row.operator = e3, placeholder: "", onFocus: (e3) => a2.selectRow(o3.row) }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.process.beEqualTo"), value: "operator.text.eq" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.process.notEqualTo"), value: "operator.text.neq" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), m(d2, { label: e2.$t("workflowEditor.common.value") }, { default: f((e3) => [m(c2, { value: a2.format(e3.row.value), readonly: "", onClick: (o3) => a2.openValueDialog(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), m(d2, { prop: "rightBracket", label: ")", width: "90", onFocus: o2[0] || (o2[0] = (o3) => a2.selectRow(e2.scope.row)) }, { default: f((e3) => [m(u2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (o3) => e3.row.rightBracket = o3, placeholder: "" }, { default: f(() => [m(s2, { label: "", value: "" }), m(s2, { label: ")", value: ")" }), m(s2, { label: "))", value: "))" }), m(s2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), m(d2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.logicOperator, "onUpdate:modelValue": (e3) => o3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => a2.selectRow(o3.row) }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), r2.showValueDialog ? (h(), b(C2, { key: 0, "standard-fields": a2.standardFields, "org-type": r2.currentRow.key.substring(r2.currentRow.key.indexOf("{") + 1, r2.currentRow.key.lastIndexOf("}")), onClose: a2.closeValueDialog }, null, 8, ["standard-fields", "org-type", "onClose"])) : v("", true)]);
|
|
52
|
-
}]]);
|
|
53
|
-
export {
|
|
54
|
-
C as default
|
|
55
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
function e(e2) {
|
|
2
|
-
const t = n(e2);
|
|
3
|
-
return t ? t.label : e2;
|
|
4
|
-
}
|
|
5
|
-
function n(e2) {
|
|
6
|
-
const n2 = window.$store.getters["wfEditor/formFields"];
|
|
7
|
-
e2 && (e2.indexOf("${field[") >= 0 || e2.indexOf("${deptField[") >= 0) && (e2 = e2.substring(e2.indexOf("[") + 1, e2.lastIndexOf("]")));
|
|
8
|
-
const t = n2.filter((n3) => n3.name === e2);
|
|
9
|
-
return t.length > 0 ? t[0] : null;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
n as getFormField,
|
|
13
|
-
e as getFormFieldLabel
|
|
14
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { mapGetters as e } from "vuex";
|
|
2
|
-
import { resolveComponent as l, openBlock as o, createBlock as i, withCtx as t, createVNode as s, createTextVNode as d, toDisplayString as a, createElementVNode as r, createElementBlock as m, Fragment as c, renderList as n } from "vue";
|
|
3
|
-
import "./form-fields.vue2.mjs";
|
|
4
|
-
import u from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const h = { name: "FormFields", props: { fields: { type: Array, default: null } }, data: () => ({ selectedField: null, copyShowFields: [], showFields: [], searchFormCode: "", dialogVisible: true }), computed: { ...e("wfEditor", ["formFields"]), allFields() {
|
|
6
|
-
return this.fields ? this.fields : this.formFields;
|
|
7
|
-
} }, mounted() {
|
|
8
|
-
this.copyAllFields = this.allFields, this.showFields = this.allFields;
|
|
9
|
-
}, methods: { setField() {
|
|
10
|
-
this.$emit("close", this.selectedField);
|
|
11
|
-
}, searchForm() {
|
|
12
|
-
this.searchFormCode && "" !== this.searchFormCode ? this.showFields = this.copyAllFields.filter((e2) => e2.name.indexOf(this.searchFormCode) > -1 || e2.label.indexOf(this.searchFormCode) > -1) : this.showFields = this.copyAllFields;
|
|
13
|
-
} } }, p = { style: { "padding-bottom": "10px" } }, F = { style: { float: "left", width: "70%" } }, f = { class: "item-content" };
|
|
14
|
-
const w = u(h, [["render", function(e2, u2, h2, w2, y, b) {
|
|
15
|
-
const C = l("el-input"), V = l("el-button"), k = l("el-radio"), _ = l("el-radio-group"), g = l("el-dialog");
|
|
16
|
-
return o(), i(g, { width: "60%", title: e2.$t("workflowEditor.common.selectFormField"), modelValue: y.dialogVisible, "onUpdate:modelValue": u2[3] || (u2[3] = (e3) => y.dialogVisible = e3), center: "", top: "5vh", "append-to-body": "", class: "properties-editor-noTab", onClose: u2[4] || (u2[4] = (l2) => e2.$emit("close")) }, { footer: t(() => [s(V, { type: "primary", size: "small", onClick: b.setField }, { default: t(() => [d(a(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), s(V, { size: "small", onClick: u2[2] || (u2[2] = (l2) => e2.$emit("close")) }, { default: t(() => [d(a(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: t(() => [r("div", p, [r("span", F, [s(C, { modelValue: y.searchFormCode, "onUpdate:modelValue": u2[0] || (u2[0] = (e3) => y.searchFormCode = e3), placeholder: e2.$t("workflowEditorMessage.pleaseEnterTheNameOrCode") }, null, 8, ["modelValue", "placeholder"])]), r("span", null, [s(V, { style: { "margin-left": "10px" }, type: "primary", onClick: b.searchForm }, { default: t(() => [d(a(e2.$t("workflowEditorPublicModel.search")), 1)]), _: 1 }, 8, ["onClick"])])]), r("div", f, [s(_, { modelValue: y.selectedField, "onUpdate:modelValue": u2[1] || (u2[1] = (e3) => y.selectedField = e3), class: "group" }, { default: t(() => [r("ul", null, [(o(true), m(c, null, n(y.showFields, (e3) => (o(), m("li", { key: e3.name, class: "item" }, [s(k, { label: e3.name }, { default: t(() => [d(a(e3.label), 1)]), _: 2 }, 1032, ["label"])]))), 128))])]), _: 1 }, 8, ["modelValue"])])]), _: 1 }, 8, ["title", "modelValue"]);
|
|
17
|
-
}], ["__scopeId", "data-v-98300543"]]);
|
|
18
|
-
export {
|
|
19
|
-
w as default
|
|
20
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import e from "./i18n-set-dialog.vue.mjs";
|
|
2
|
-
import { mapGetters as t } from "vuex";
|
|
3
|
-
import { resolveComponent as n, openBlock as s, createElementBlock as i, createElementVNode as o, createVNode as l, withCtx as a, createBlock as u, createCommentVNode as r } from "vue";
|
|
4
|
-
import h from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const d = { name: "I18nInput", components: { I18nSet: e }, model: { prop: "value", event: "input" }, props: { modelValue: { type: String, default: "" }, i18nKey: { type: String, default: "" } }, data() {
|
|
6
|
-
const e2 = this.modelValue;
|
|
7
|
-
return { isShowI18n: false, myI18nKey: this.i18nKey, zh: e2, isNewI18n: false };
|
|
8
|
-
}, computed: { ...t("wfEditor", ["processCode", "isHandleCreate"]) }, mounted() {
|
|
9
|
-
this.$watch("zh", function(e2) {
|
|
10
|
-
this.$emit("update:modelValue", e2);
|
|
11
|
-
});
|
|
12
|
-
}, created() {
|
|
13
|
-
this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n && (this.myI18nKey = this.modelValue);
|
|
14
|
-
}, methods: { i18nSet() {
|
|
15
|
-
this.myI18nKey ? this.isShowI18n = true : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseInputCode") });
|
|
16
|
-
}, closeI18nSet(e2) {
|
|
17
|
-
e2 && this.$emit("setI18n", e2), this.isShowI18n = false;
|
|
18
|
-
} } }, m = { style: { float: "left", "padding-right": "5px" } };
|
|
19
|
-
const p = h(d, [["render", function(e2, t2, h2, d2, p2, I) {
|
|
20
|
-
const c = n("el-input"), y = n("i18n-set");
|
|
21
|
-
return s(), i("span", null, [o("div", m, [l(c, { modelValue: p2.zh, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => p2.zh = e3) }, { append: a(() => [o("i", { class: "fa fa-cog", onClick: t2[0] || (t2[0] = (...e3) => I.i18nSet && I.i18nSet(...e3)) })]), _: 1 }, 8, ["modelValue"])]), p2.isShowI18n ? (s(), u(y, { key: 0, value: { values: { zh_CN: p2.zh }, key: p2.myI18nKey }, onClose: I.closeI18nSet }, null, 8, ["value", "onClose"])) : r("", true)]);
|
|
22
|
-
}]]);
|
|
23
|
-
export {
|
|
24
|
-
p as default
|
|
25
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { getI18n as e } from "../../util.mjs";
|
|
2
|
-
import { mapGetters as t } from "vuex";
|
|
3
|
-
import { resolveComponent as l, openBlock as i, createBlock as o, withCtx as s, createElementVNode as n, createVNode as d, createTextVNode as a, toDisplayString as r, createElementBlock as u, Fragment as h, renderList as m, createCommentVNode as p } from "vue";
|
|
4
|
-
import f from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const c = { name: "I18nSet", props: { value: { type: Object, default: null } }, data() {
|
|
6
|
-
let t2 = {};
|
|
7
|
-
return this.value && (t2 = JSON.parse(JSON.stringify(this.value))), { requiredRule: { required: true, message: e().t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }, i18nModel: t2, bundleCode: null, isShow: false, i18nKey: null, languages: {}, dialogVisible: true, isNewI18n: false };
|
|
8
|
-
}, computed: { ...t("wfEditor", ["systemCode", "processCode", "isHandleCreate"]) }, created() {
|
|
9
|
-
this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n || (this.bundleCode = this.systemCode + ".workflow." + this.processCode), this.getI18nSet();
|
|
10
|
-
}, methods: { getI18nSet() {
|
|
11
|
-
this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/languages?isNewI18n=" + this.isNewI18n).then((e2) => {
|
|
12
|
-
const t2 = { bundleCode: this.bundleCode, i18nKey: this.i18nModel.key, isNewI18n: this.isNewI18n + "", systemCode: this.systemCode };
|
|
13
|
-
this.$http.post(this.baseAPI + "/wf-editor/i18n-settings/get-info", t2).then((t3) => {
|
|
14
|
-
this.languages = e2, Object.keys(this.languages).forEach((e3) => {
|
|
15
|
-
this.i18nModel, t3 && t3[e3] ? this.i18nModel.values[e3] = t3[e3] : this.i18nModel.values[e3] || (this.i18nModel.values[e3] = "");
|
|
16
|
-
}), this.isShow = true;
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
}, saveI18nSet(e2) {
|
|
20
|
-
this.$refs[e2].validate((e3) => {
|
|
21
|
-
if (!e3)
|
|
22
|
-
return false;
|
|
23
|
-
this.i18nModel.bundleCode = this.bundleCode, this.i18nModel.systemCode = this.systemCode, this.i18nModel.isNewI18n = this.isNewI18n + "", this.i18nModel, this.$http.post(this.baseAPI + "/wf-editor/i18n-settings", this.i18nModel).then(() => {
|
|
24
|
-
this.$emit("close", this.i18nModel.key);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}, goBack() {
|
|
28
|
-
this.$emit("close");
|
|
29
|
-
} } }, w = { class: "operation-area" };
|
|
30
|
-
const g = f(c, [["render", function(e2, t2, f2, c2, g2, b) {
|
|
31
|
-
const y = l("el-button"), C = l("el-input"), k = l("el-form-item"), M = l("el-col"), v = l("el-row"), I = l("el-form"), $ = l("el-dialog");
|
|
32
|
-
return g2.isShow ? (i(), o($, { key: 0, "close-on-click-modal": false, width: "30%", title: e2.$t("workflowEditorPublicModel.i18nSet"), "append-to-body": "", "model-value": "", top: "5vh", onOpen: t2[2] || (t2[2] = (t3) => e2.$emit("open")), onOpend: t2[3] || (t2[3] = (t3) => e2.$emit("opend")), onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")), onClosed: t2[5] || (t2[5] = (t3) => e2.$emit("closed")) }, { default: s(() => [n("div", w, [d(y, { type: "primary", size: "small", onClick: t2[0] || (t2[0] = (e3) => b.saveI18nSet("form")) }, { default: s(() => [a(r(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }), d(y, { size: "small", onClick: b.goBack }, { default: s(() => [a(r(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }, 8, ["onClick"])]), d(I, { ref: "form", model: g2.i18nModel, "label-width": "100px" }, { default: s(() => [d(v, null, { default: s(() => [d(M, { span: 24 }, { default: s(() => [d(k, { label: e2.$t("workflowEditorPublicModel.i18nKey"), prop: "key", rules: [g2.requiredRule] }, { default: s(() => [d(C, { modelValue: g2.i18nModel.key, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => g2.i18nModel.key = e3), style: { width: "80%" } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })]), _: 1 }), (i(true), u(h, null, m(Object.keys(g2.languages), (e3) => (i(), o(v, { key: e3 }, { default: s(() => [d(M, { span: 24 }, { default: s(() => [d(k, { label: g2.languages[e3], prop: e3 }, { default: s(() => [d(C, { modelValue: g2.i18nModel.values[e3], "onUpdate:modelValue": (t3) => g2.i18nModel.values[e3] = t3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["label", "prop"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["title"])) : p("", true);
|
|
33
|
-
}]]);
|
|
34
|
-
export {
|
|
35
|
-
g as default
|
|
36
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import e from "./reminder.vue.mjs";
|
|
2
|
-
import l from "./common-notice-tool.vue.mjs";
|
|
3
|
-
import t from "./select-mail-template.vue.mjs";
|
|
4
|
-
import { resolveComponent as o, openBlock as i, createElementBlock as a, createVNode as m, withCtx as n, createElementVNode as r, toDisplayString as s, createBlock as d, createCommentVNode as u } from "vue";
|
|
5
|
-
import "./notice-reminder.vue2.mjs";
|
|
6
|
-
import c from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
-
const p = { name: "NoticeReminder", components: { Reminder: e, CommonNoticeTool: l, SelectMailTemplates: t }, props: { reminderValue: { type: [Object, String], default: null }, taskNoticeValue: { type: Object, default: null }, isProcess: { type: Boolean, default: false } }, data() {
|
|
8
|
-
let e2 = null;
|
|
9
|
-
null !== this.reminderValue && void 0 !== this.reminderValue && "" !== this.reminderValue && (e2 = this.reminderValue);
|
|
10
|
-
let l2 = {};
|
|
11
|
-
return null !== this.taskNoticeValue && void 0 !== this.taskNoticeValue && "" !== this.taskNoticeValue && (l2 = this.taskNoticeValue), { reminderObj: e2, noticeObj: l2 };
|
|
12
|
-
}, watch: { reminderObj(e2) {
|
|
13
|
-
e2 ? this.$emit("update:reminder-value", e2) : this.$emit("update:reminder-value", null);
|
|
14
|
-
} }, methods: { setMailTemplateCode(e2) {
|
|
15
|
-
this.noticeObj.mailPointTemplateCode = e2;
|
|
16
|
-
}, setNoticeCommonTemplateCode(e2) {
|
|
17
|
-
this.noticeObj.mailTemplateCode = e2;
|
|
18
|
-
}, setCustomMsg(e2) {
|
|
19
|
-
this.noticeObj.customMsg = e2;
|
|
20
|
-
} } }, f = { class: "clearfix" }, b = { class: "sub-li" }, T = { class: "sub-li" }, k = { class: "clearfix" }, w = { class: "sub-li" }, j = { class: "sub-li" }, V = { class: "sub-li" }, h = { class: "sub-li" };
|
|
21
|
-
const O = c(p, [["render", function(e2, l2, t2, c2, p2, O2) {
|
|
22
|
-
const g = o("Warning"), E = o("el-icon"), $ = o("el-tooltip"), v = o("common-notice-tool"), y = o("select-mail-templates"), C = o("el-form-item"), M = o("el-form"), N = o("el-card"), _ = o("reminder");
|
|
23
|
-
return i(), a("div", null, [m(N, { class: "box-card" }, { header: n(() => [r("div", f, [r("span", null, s(e2.$t("workflowEditor.common.taskNotice")), 1), m($, null, { content: n(() => [r("ul", null, [r("li", null, s(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), r("li", b, s(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r("li", T, s(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1)])]), default: n(() => [m(E, null, { default: n(() => [m(g)]), _: 1 })]), _: 1 })])]), default: n(() => [m(M, { model: p2.noticeObj, "label-width": "80px" }, { default: n(() => [m(v, { modelValue: p2.noticeObj.informType, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => p2.noticeObj.informType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": p2.noticeObj.customMsg, onInputMsg: O2.setCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), p2.noticeObj.informType && p2.noticeObj.informType.length > 0 ? (i(), d(C, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: n(() => [m(y, { modelValue: p2.noticeObj.mailTemplateCode, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => p2.noticeObj.mailTemplateCode = e3), onSetValue: O2.setNoticeCommonTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : u("", true), p2.noticeObj.informType && p2.noticeObj.informType.length > 0 && p2.noticeObj.informType.indexOf("mail") >= 0 ? (i(), d(C, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: n(() => [m(y, { modelValue: p2.noticeObj.mailPointTemplateCode, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => p2.noticeObj.mailPointTemplateCode = e3), onSetValue: O2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : u("", true)]), _: 1 }, 8, ["model"])]), _: 1 }), m(N, { class: "box-card", style: { "margin-top": "10px" } }, { header: n(() => [r("div", k, [r("span", null, s(e2.$t("workflowEditor.common.reminderNotice")), 1), m($, null, { content: n(() => [r("ul", null, [r("li", null, s(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), r("li", w, s(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r("li", j, s(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1), r("li", null, s(e2.$t("workflowEditor.task.reminderTipRemindMsg")), 1), r("li", V, s(e2.$t("workflowEditor.task.reminderTipRemindImmediately")), 1), r("li", h, s(e2.$t("workflowEditor.task.reminderTipRemindHistory")), 1)])]), default: n(() => [m(E, null, { default: n(() => [m(g)]), _: 1 })]), _: 1 })])]), default: n(() => [m(_, { modelValue: p2.reminderObj, "onUpdate:modelValue": l2[3] || (l2[3] = (e3) => p2.reminderObj = e3), isProcess: t2.isProcess }, null, 8, ["modelValue", "isProcess"])]), _: 1 })]);
|
|
24
|
-
}], ["__scopeId", "data-v-39fac73c"]]);
|
|
25
|
-
export {
|
|
26
|
-
O as default
|
|
27
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import e from "./user-selection.vue.mjs";
|
|
2
|
-
import l from "./common-notice-tool.vue.mjs";
|
|
3
|
-
import o from "./select-mail-template.vue.mjs";
|
|
4
|
-
import { resolveComponent as t, openBlock as m, createBlock as a, withCtx as d, createVNode as i, createElementBlock as n, createCommentVNode as u } from "vue";
|
|
5
|
-
import s from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
-
const r = { key: 0 };
|
|
7
|
-
const p = s({ name: "Notice", components: { UserSelection: e, CommonNoticeTool: l, SelectMailTemplates: o }, props: { modelValue: { type: [Object, String], default: null }, switchLabel: { type: String, default: "" } }, data() {
|
|
8
|
-
let e2 = false, l2 = { informType: "", userCondition: "", subject: null, content: null };
|
|
9
|
-
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (l2 = this.modelValue, l2.informType && "" !== l2.informType && (e2 = true)), { showNotice: e2, model: l2, options: { showColumns: "code,name" } };
|
|
10
|
-
}, watch: { showNotice(e2) {
|
|
11
|
-
this.getValue();
|
|
12
|
-
} }, created() {
|
|
13
|
-
this.$watch("model", function(e2, l2) {
|
|
14
|
-
this.getValue();
|
|
15
|
-
}, { deep: true });
|
|
16
|
-
}, methods: { getValue() {
|
|
17
|
-
const e2 = this.model;
|
|
18
|
-
this.$emit("update:modelValue", e2);
|
|
19
|
-
}, setMailTemplateCode(e2) {
|
|
20
|
-
this.model.mailTemplateCode = e2;
|
|
21
|
-
}, setMailPointTemplateCode(e2) {
|
|
22
|
-
this.model.mailPointTemplateCode = e2;
|
|
23
|
-
}, setCustomMsg(e2) {
|
|
24
|
-
this.model.customMsg = e2;
|
|
25
|
-
} } }, [["render", function(e2, l2, o2, s2, p2, c) {
|
|
26
|
-
const f = t("el-switch"), h = t("el-form-item"), V = t("common-notice-tool"), w = t("select-mail-templates"), b = t("user-selection"), T = t("el-input"), g = t("el-form");
|
|
27
|
-
return m(), a(g, { model: p2.model, "label-width": "80px" }, { default: d(() => [i(h, { label: o2.switchLabel, "label-width": "150" }, { default: d(() => [i(f, { modelValue: p2.showNotice, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => p2.showNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), p2.showNotice ? (m(), n("div", r, [i(V, { modelValue: p2.model.informType, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => p2.model.informType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": p2.model.customMsg, onInputMsg: c.setCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), p2.model.informType && p2.model.informType.length > 0 ? (m(), a(h, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: d(() => [i(w, { modelValue: p2.model.mailTemplateCode, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => p2.model.mailTemplateCode = e3), onSetValue: c.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : u("", true), p2.model.informType && p2.model.informType.length > 0 && -1 !== p2.model.informType.indexOf("mail") ? (m(), a(h, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: d(() => [i(w, { modelValue: p2.model.mailPointTemplateCode, "onUpdate:modelValue": l2[3] || (l2[3] = (e3) => p2.model.mailPointTemplateCode = e3), onSetValue: c.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : u("", true), i(b, { modelValue: p2.model.userCondition, "onUpdate:modelValue": l2[4] || (l2[4] = (e3) => p2.model.userCondition = e3), label: e2.$t("workflowEditor.common.addressee") }, null, 8, ["modelValue", "label"]), i(h, { label: e2.$t("workflowEditor.common.theme") }, { default: d(() => [i(T, { modelValue: p2.model.subject, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => p2.model.subject = e3), placeholder: e2.$t("workflowEditorMessage.pleaseEnterASubject") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"]), i(h, { label: e2.$t("workflowEditor.common.content") }, { default: d(() => [i(T, { modelValue: p2.model.content, "onUpdate:modelValue": l2[6] || (l2[6] = (e3) => p2.model.content = e3), type: "textarea", autosize: { minRows: 4, maxRows: 10 }, placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"])])) : u("", true)]), _: 1 }, 8, ["model"]);
|
|
28
|
-
}]]);
|
|
29
|
-
export {
|
|
30
|
-
p as default
|
|
31
|
-
};
|