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,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./additional-condition-utils.cjs"), t = require("./value-selection-dialog.vue.cjs"), o = require("vuex"), l = require("vue"), a = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), r = { name: "AdditionalCondition", components: { ValueSelectionDialog: t }, props: { modelValue: { type: String, default: null }, isTransition: { type: Boolean, default: false } }, data() {
|
|
3
|
-
const t2 = [], o2 = e.parseCondition(t2, this.modelValue);
|
|
4
|
-
return { standardFields: e.standardFields, tableData: t2, count: o2, currentRow: null, currentInput: null, options: [], valueDialogTitle: null, showOrganization: true, orgType: null };
|
|
5
|
-
}, computed: { ...o.mapGetters("wfEditor", ["formFields"]), availableStandardFields() {
|
|
6
|
-
return "key" === this.currentInput ? e.getStandardFieldsByTacheType(this.isTransition) : e.getRelatedStandardFields(this.currentRow.key);
|
|
7
|
-
} }, mounted() {
|
|
8
|
-
this.tableData.length > 0 && this.$refs.table.setCurrentRow(this.tableData[this.tableData.length - 1]), this.$watch("tableData", function(t2, o2) {
|
|
9
|
-
this.$emit("update:modelValue", e.generateCondition(this.tableData));
|
|
10
|
-
}, { deep: true });
|
|
11
|
-
}, methods: { format: (t2, o2) => "" === t2 || null == t2 ? "" : e.getFieldLabel(t2), getOperatorOptions: (t2) => e.getOperators(t2), selectRow(e2) {
|
|
12
|
-
this.$refs.table.setCurrentRow(e2);
|
|
13
|
-
}, openValueDialog(e2) {
|
|
14
|
-
this.showValueDialog = true, this.selectRow(e2);
|
|
15
|
-
}, closeValueDialog(e2) {
|
|
16
|
-
void 0 !== e2 && "" !== e2 && ("key" === this.currentInput && this.currentRow.key !== e2 && (this.currentRow.operator = "", this.currentRow.value = ""), this.currentRow[this.currentInput] = e2), this.currentInput = "";
|
|
17
|
-
}, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
|
|
18
|
-
this.currentRow = e2;
|
|
19
|
-
}, getRowIndex(e2) {
|
|
20
|
-
for (let t2 = 0; t2 < this.tableData.length; t2++)
|
|
21
|
-
if (this.tableData[t2].id === e2.id)
|
|
22
|
-
return t2;
|
|
23
|
-
return -1;
|
|
24
|
-
}, add() {
|
|
25
|
-
(null === this.count || void 0 === this.count || this.count.isNaN || "NaN" === this.count) && (this.count = 0);
|
|
26
|
-
const e2 = { id: this.count, leftBracket: "", key: "", operator: "", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
27
|
-
this.tableData.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
28
|
-
}, insert() {
|
|
29
|
-
if (null === this.currentRow)
|
|
30
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
31
|
-
const e2 = { id: this.count, leftBracket: "", key: "", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
32
|
-
this.tableData.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
33
|
-
}, remove() {
|
|
34
|
-
if (null === this.currentRow)
|
|
35
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
36
|
-
let e2 = this.getRowIndex(this.currentRow);
|
|
37
|
-
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]));
|
|
38
|
-
}, view() {
|
|
39
|
-
let t2 = e.displayCondition(this.tableData);
|
|
40
|
-
"" === t2 && (t2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(t2, this.$t("workflowEditorMessage.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
41
|
-
} });
|
|
42
|
-
}, selectField(e2) {
|
|
43
|
-
this.selectRow(e2), this.currentInput = "key", this.valueDialogTitle = this.$t("workflowEditorMessage.fieldSettings"), this.showOrganization = false;
|
|
44
|
-
}, selectValue() {
|
|
45
|
-
this.currentInput = "value", this.valueDialogTitle = this.$t("workflowEditorMessage.valueSetting"), this.showOrganization = true, this.orgType = this.getStandardFieldOrgType();
|
|
46
|
-
}, getStandardFieldOrgType() {
|
|
47
|
-
const e2 = this.standardFields.filter((e3) => e3.name === this.currentRow.key);
|
|
48
|
-
return e2.length > 0 ? e2[0].orgType : "";
|
|
49
|
-
}, isTransitionOtherField: (t2) => e.isTransitionOtherField(t2) } }, i = { style: { overflow: "auto", width: "100%" } };
|
|
50
|
-
const n = a(r, [["render", function(e2, t2, o2, a2, r2, n2) {
|
|
51
|
-
const d = l.resolveComponent("el-button"), s = l.resolveComponent("el-row"), u = l.resolveComponent("el-option"), c = l.resolveComponent("el-select"), h = l.resolveComponent("el-table-column"), w = l.resolveComponent("el-input"), p = l.resolveComponent("el-table"), g = l.resolveComponent("value-selection-dialog");
|
|
52
|
-
return l.openBlock(), l.createElementBlock("div", i, [l.createVNode(s, null, { default: l.withCtx(() => [l.createVNode(d, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(d, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: n2.insert }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(d, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(d, { type: "primary", size: "small", plain: "", icon: "View", onClick: n2.view }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), l.createVNode(p, { ref: "table", data: r2.tableData, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: n2.handleCurrentChange }, { default: l.withCtx(() => [l.createVNode(h, { prop: "leftBracket", label: "(", width: "90" }, { default: l.withCtx((e3) => [l.createVNode(c, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: l.withCtx(() => [l.createVNode(u, { label: "", value: "" }), l.createVNode(u, { label: "(", value: "(" }), l.createVNode(u, { label: "((", value: "((" }), l.createVNode(u, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), l.createVNode(h, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: l.withCtx((e3) => [l.createVNode(w, { value: n2.format(e3.row.key), onClick: (t3) => n2.selectField(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), l.createVNode(h, { label: e2.$t("workflowEditor.common.operator"), width: "130" }, { default: l.withCtx((e3) => [l.createVNode(c, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, placeholder: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: l.withCtx(() => [(l.openBlock(true), l.createElementBlock(l.Fragment, null, l.renderList(n2.getOperatorOptions(e3.row.key), (e4) => (l.openBlock(), l.createBlock(u, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), l.createVNode(h, { label: e2.$t("workflowEditor.common.value") }, { default: l.withCtx((t3) => [t3.row.key.indexOf("${field[") >= 0 || n2.isTransitionOtherField(t3.row.key) ? (l.openBlock(), l.createBlock(w, { 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 ? (l.openBlock(), l.createBlock(c, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, { default: l.withCtx(() => [l.createVNode(u, { value: "同意", label: e2.$t("workflowEditorPublicModel.agree") }, null, 8, ["label"]), l.createVNode(u, { value: "不同意", label: e2.$t("workflowEditorPublicModel.disagree") }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (l.openBlock(), l.createBlock(w, { key: 2, value: n2.format(t3.row.value, t3.row), readonly: "", onClick: n2.selectValue }, null, 8, ["value", "onClick"]))]), _: 1 }, 8, ["label"]), l.createVNode(h, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => n2.selectRow(e2.scope.row)) }, { default: l.withCtx((e3) => [l.createVNode(c, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: l.withCtx(() => [l.createVNode(u, { label: "", value: "" }), l.createVNode(u, { label: ")", value: ")" }), l.createVNode(u, { label: "))", value: "))" }), l.createVNode(u, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), l.createVNode(h, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: l.withCtx((t3) => [l.createVNode(c, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => n2.selectRow(t3.row) }, { default: l.withCtx(() => [l.createVNode(u, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), l.createVNode(u, { 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.currentInput ? (l.openBlock(), l.createBlock(g, { key: 0, title: r2.valueDialogTitle, "show-organization": r2.showOrganization, "standard-fields": n2.availableStandardFields, "org-type": r2.orgType, onClose: n2.closeValueDialog }, null, 8, ["title", "show-organization", "standard-fields", "org-type", "onClose"])) : l.createCommentVNode("", true)]);
|
|
53
|
-
}]]);
|
|
54
|
-
module.exports = n;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const r = require("../../util.cjs"), e = { "${currentTime}": r.getI18n().t("workflowEditor.process.handlingTimeOfThisLink"), "${currentTransactorId}": r.getI18n().t("workflowEditor.process.handlerIDOfThisLink"), "${currentTransactorMainDepartmentId}": r.getI18n().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"), "${currentTransactorDirectSuperiorId}": r.getI18n().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorMainDepartmentId}": r.getI18n().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"), "${currentTransactor}": r.getI18n().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"), "${currentTransactorName }": r.getI18n().t("workflowEditor.process.NameOfCurrentHandler"), "${currentTransactorDepartment }": r.getI18n().t("workflowEditor.process.CurrentHandlerDepartment"), "${currentTransactorDepartmentId}": r.getI18n().t("workflowEditor.process.CurrentHandlerDepartmentID"), "${currentTransactorMainDepartment}": r.getI18n().t("workflowEditor.process.CurrentManagersPrincipalDepartment"), "${currentTransactorSuperiorDepartmentId}": r.getI18n().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"), "${currentTransactorSuperiorDepartment}": r.getI18n().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"), "${currentTransactorUpstageDepartment}": r.getI18n().t("workflowEditor.process.TopDepartmentOfCurrentHandler"), "${currentTransactorUpstageDepartmentId}": r.getI18n().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"), "${currentTransactorRole}": r.getI18n().t("workflowEditor.process.CurrentHandlerRole"), "${currentTransactorRoleId}": r.getI18n().t("workflowEditor.process.CurrentHandlerRoleID"), "${currentTransactorWorkGroup}": r.getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorWorkGroupId}": r.getI18n().t("workflowEditor.process.CurrentHandlerWorkingGroupID"), "${currentTransactorDirectSuperior}": r.getI18n().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorName}": r.getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": r.getI18n().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorDepartmentId}": r.getI18n().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"), "${currentTransactorDirectSuperiorMainDepartment}": r.getI18n().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorRole}": r.getI18n().t("workflowEditor.process.currentManagersDirectSuperiorRole"), "${currentTransactorDirectSuperiorRoleId}": r.getI18n().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"), "${currentTransactorDirectSuperiorWorkGroup}": r.getI18n().t("workflowEditor.process.currentManagersDirectSuperiorWork"), "${currentTransactorDirectSuperiorWorkGroupId}": r.getI18n().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"), "${currentOperation}": r.getI18n().t("workflowEditor.process.operationsPerformedInThisPhase"), "${previousTransactorId}": r.getI18n().t("workflowEditor.process.handlerIDOfThePreviousLink"), "${previousTransactor}": r.getI18n().t("workflowEditor.process.lastLinkHandlerLogin"), "${previousTransactorName}": r.getI18n().t("workflowEditor.process.nameOfHandlerInThePreviousLink") };
|
|
4
|
-
exports.standardValues = e;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./auto-filled-fields-utils.cjs"), l = require("./form-fields.vue.cjs"), t = require("./form-fields-utils.cjs"), o = require("vue");
|
|
3
|
-
const a = require("../../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "AutoFilledFields", components: { FormFields: l }, props: { modelValue: { type: Object, default: () => ({}) }, opinionSetting: { type: Object, default: () => ({}) } }, data() {
|
|
4
|
-
const l2 = [];
|
|
5
|
-
if (void 0 !== this.modelValue.field && null !== this.modelValue.field)
|
|
6
|
-
if (Array.isArray(this.modelValue.field))
|
|
7
|
-
this.modelValue.field.map((e2) => {
|
|
8
|
-
const t3 = { ...e2 };
|
|
9
|
-
"string" == typeof e2.value && -1 !== e2.value.indexOf("+") ? t3.value = e2.value.split("+") : (t3.value = [], t3.value.push(e2.value)), l2.push(t3);
|
|
10
|
-
});
|
|
11
|
-
else {
|
|
12
|
-
const e2 = { ...this.modelValue.field };
|
|
13
|
-
"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);
|
|
14
|
-
}
|
|
15
|
-
let t2 = {};
|
|
16
|
-
return this.opinionSetting && this.opinionSetting.opinionSourceField && (t2 = { ...this.opinionSetting }), { tableData: l2, currentRow: null, standardValues: e.standardValues, showFormFields: false, isSelectOpinionField: false, opinionAutoSetting: t2 };
|
|
17
|
-
}, computed: { keys() {
|
|
18
|
-
return Object.keys(this.standardValues);
|
|
19
|
-
} }, watch: { opinionAutoSetting: { deep: true, handler(e2) {
|
|
20
|
-
const l2 = { ...e2 };
|
|
21
|
-
this.$emit("update:opinion-setting", l2);
|
|
22
|
-
} } }, mounted() {
|
|
23
|
-
this.tableData && this.tableData.length > 0 && this.setCurrentRow(this.tableData[0]), this.$watch("tableData", function() {
|
|
24
|
-
const e2 = [];
|
|
25
|
-
this.tableData.map((l2) => {
|
|
26
|
-
if ("" !== l2.name && l2.value.length > 0) {
|
|
27
|
-
const t2 = { ...l2 };
|
|
28
|
-
t2.value = l2.value.join("+"), e2.push(t2);
|
|
29
|
-
}
|
|
30
|
-
}), this.$emit("update:modelValue", { field: e2 });
|
|
31
|
-
}, { deep: true });
|
|
32
|
-
}, created() {
|
|
33
|
-
}, methods: { add() {
|
|
34
|
-
for (let e3 = 0; e3 < this.tableData.length; e3++)
|
|
35
|
-
if ("" === this.tableData[e3].name || "" === this.tableData[e3].value)
|
|
36
|
-
return void this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty", { row: e3 + 1 }));
|
|
37
|
-
const e2 = { name: "", value: [], separator: "", fillType: "cover", fillTime: "after" };
|
|
38
|
-
this.tableData.push(e2), this.setCurrentRow(e2);
|
|
39
|
-
}, remove() {
|
|
40
|
-
if (null === this.currentRow)
|
|
41
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
42
|
-
let e2;
|
|
43
|
-
for (let l2 = 0; l2 < this.tableData.length; l2++)
|
|
44
|
-
if (this.tableData[l2].name === this.currentRow.name) {
|
|
45
|
-
e2 = l2;
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
this.tableData.splice(e2, 1), e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.setCurrentRow(this.tableData[e2]);
|
|
49
|
-
}, setCurrentRow(e2) {
|
|
50
|
-
this.$refs.table.setCurrentRow(e2);
|
|
51
|
-
}, handleCurrentChange(e2) {
|
|
52
|
-
this.currentRow = e2;
|
|
53
|
-
}, checkName(e2) {
|
|
54
|
-
this.showFormFields || "" !== e2 || this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"));
|
|
55
|
-
}, checkValue(e2) {
|
|
56
|
-
0 === e2.length && this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"));
|
|
57
|
-
}, setField(e2) {
|
|
58
|
-
this.isSelectOpinionField ? this.opinionAutoSetting.opinionSourceField = e2 : void 0 !== e2 && (this.currentRow.name = e2), this.showFormFields = false, this.isSelectOpinionField = false;
|
|
59
|
-
}, getFieldLabel: (e2) => t.getFormFieldLabel(e2), selectOpinionField() {
|
|
60
|
-
this.showFormFields = true, this.isSelectOpinionField = true;
|
|
61
|
-
}, clearOpinionField() {
|
|
62
|
-
delete this.opinionAutoSetting.opinionSourceField;
|
|
63
|
-
} } }, [["render", function(e2, l2, t2, a2, i, r) {
|
|
64
|
-
const n = o.resolveComponent("el-button"), d = o.resolveComponent("el-row"), s = o.resolveComponent("el-table-column"), u = o.resolveComponent("el-input"), c = o.resolveComponent("el-option"), p = o.resolveComponent("el-select"), h = o.resolveComponent("el-table"), m = o.resolveComponent("el-card"), f = o.resolveComponent("el-form-item"), w = o.resolveComponent("form-fields");
|
|
65
|
-
return o.openBlock(), o.createElementBlock("div", null, [o.createVNode(m, { class: "box-card" }, { header: o.withCtx(() => [o.createTextVNode(" 表单自动填充字段设置 ")]), default: o.withCtx(() => [o.createVNode(d, { style: { "margin-bottom": "5px" } }, { default: o.withCtx(() => [o.createVNode(n, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: r.add }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), o.createVNode(n, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: r.remove }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), o.createVNode(h, { ref: "table", data: i.tableData, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: r.handleCurrentChange }, { default: o.withCtx(() => [o.createVNode(s, { type: "index", width: "50" }), o.createVNode(s, { prop: "name", label: e2.$t("workflowEditor.common.name"), width: "150" }, { default: o.withCtx((t3) => [o.createVNode(u, { value: r.getFieldLabel(t3.row.name), placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), readonly: "", onClick: l2[0] || (l2[0] = (e3) => i.showFormFields = true), onBlur: (e3) => r.checkName(t3.row.name) }, null, 8, ["value", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), o.createVNode(s, { prop: "value", label: e2.$t("workflowEditor.common.fieldValue"), width: "200" }, { default: o.withCtx((l3) => [o.createVNode(p, { 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) => r.checkValue(l3.row.value) }, { default: o.withCtx(() => [(o.openBlock(true), o.createElementBlock(o.Fragment, null, o.renderList(r.keys, (e3) => (o.openBlock(), o.createBlock(c, { key: e3, label: i.standardValues[e3], value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), o.createVNode(s, { prop: "separator", label: e2.$t("workflowEditor.common.separator") }, { default: o.withCtx((e3) => [o.createVNode(u, { modelValue: e3.row.separator, "onUpdate:modelValue": (l3) => e3.row.separator = l3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), o.createVNode(s, { prop: "fillType", label: e2.$t("workflowEditor.common.fillInMethod") }, { default: o.withCtx((l3) => [o.createVNode(p, { modelValue: l3.row.fillType, "onUpdate:modelValue": (e3) => l3.row.fillType = e3 }, { default: o.withCtx(() => [o.createVNode(c, { label: e2.$t("workflowEditor.common.cover"), value: "cover" }, null, 8, ["label"]), o.createVNode(c, { label: e2.$t("workflowEditor.common.append"), value: "append" }, null, 8, ["label"]), o.createVNode(c, { label: e2.$t("workflowEditor.common.insertToFront"), value: "prepend" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), o.createVNode(s, { prop: "fillTime", label: e2.$t("workflowEditor.common.fillInTime") }, { default: o.withCtx((l3) => [o.createVNode(p, { modelValue: l3.row.fillTime, "onUpdate:modelValue": (e3) => l3.row.fillTime = e3 }, { default: o.withCtx(() => [o.createVNode(c, { label: e2.$t("workflowEditor.common.fillInBeforeHandling"), value: "before" }, null, 8, ["label"]), o.createVNode(c, { label: e2.$t("workflowEditor.common.fillInAfterHandling"), value: "after" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), o.createVNode(m, { class: "box-card", style: { "margin-top": "10px" } }, { header: o.withCtx(() => [o.createTextVNode(" 办理意见 ")]), default: o.withCtx(() => [o.createVNode(f, { label: "意见来源字段", "label-width": "100" }, { default: o.withCtx(() => [o.createVNode(u, { value: r.getFieldLabel(i.opinionAutoSetting.opinionSourceField), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), readonly: "", clearable: true, onClick: r.selectOpinionField }, { append: o.withCtx(() => [o.createVNode(n, { icon: "Delete", onClick: r.clearOpinionField }, null, 8, ["onClick"])]), _: 1 }, 8, ["value", "placeholder", "onClick"])]), _: 1 })]), _: 1 }), i.showFormFields ? (o.openBlock(), o.createBlock(w, { key: 0, onClose: r.setField }, null, 8, ["onClose"])) : o.createCommentVNode("", true)]);
|
|
66
|
-
}]]);
|
|
67
|
-
module.exports = a;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue");
|
|
3
|
-
const t = require("../../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "CommonNoticeTool", props: { label: { type: String, default: null }, modelValue: { type: String, default: null }, customMsg: { type: String, default: null } }, data() {
|
|
4
|
-
let e2 = [];
|
|
5
|
-
this.modelValue && "" !== this.modelValue && null !== this.modelValue && (e2 = this.modelValue.split(","));
|
|
6
|
-
let t2 = "";
|
|
7
|
-
return this.customMsg && "" !== this.customMsg && null !== this.customMsg && (t2 = this.customMsg), { tools: e2, myCustomMsg: t2 };
|
|
8
|
-
}, watch: { tools(e2) {
|
|
9
|
-
this.$emit("update:modelValue", this.tools.join(","));
|
|
10
|
-
}, myCustomMsg(e2) {
|
|
11
|
-
this.$emit("input-msg", this.myCustomMsg);
|
|
12
|
-
} } }, [["render", function(t2, l, o, i, a, u) {
|
|
13
|
-
const s = e.resolveComponent("el-checkbox"), d = e.resolveComponent("el-checkbox-group"), r = e.resolveComponent("el-form-item"), m = e.resolveComponent("el-input");
|
|
14
|
-
return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(r, { label: o.label }, { default: e.withCtx(() => [e.createVNode(d, { modelValue: a.tools, "onUpdate:modelValue": l[0] || (l[0] = (e2) => a.tools = e2) }, { default: e.withCtx(() => [e.createVNode(s, { label: "mail" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.mail")), 1)]), _: 1 }), e.createVNode(s, { label: "DINGDING" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.dingding")), 1)]), _: 1 }), e.createVNode(s, { label: "QIWEI" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.qiwei")), 1)]), _: 1 }), e.createVNode(s, { label: "FEISHU" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.feishu")), 1)]), _: 1 }), e.createVNode(s, { label: "custom" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.custom")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), a.tools.indexOf("custom") >= 0 ? (e.openBlock(), e.createBlock(r, { key: 0, "label-width": "110", label: t2.$t("workflowEditor.common.customMsg") }, { default: e.withCtx(() => [e.createVNode(m, { modelValue: a.myCustomMsg, "onUpdate:modelValue": l[1] || (l[1] = (e2) => a.myCustomMsg = e2) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])) : e.createCommentVNode("", true)]);
|
|
15
|
-
}]]);
|
|
16
|
-
module.exports = t;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./value-selection-dialog.vue.cjs"), o = require("../user-condition.cjs"), t = require("./form-fields-utils.cjs"), l = require("vue");
|
|
3
|
-
const r = require("../../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "CommonUserCondition", components: { ValueSelectionDialog: e }, props: { modelValue: { type: String, default: null }, usedIn: { type: String, default: "reminder" } }, data() {
|
|
4
|
-
const e2 = [];
|
|
5
|
-
let t2 = 0;
|
|
6
|
-
return this.modelValue && "" !== this.modelValue && (t2 = o.parseCondition(e2, this.modelValue)), { users: e2, count: t2, currentRow: null, showValueDialog: false };
|
|
7
|
-
}, computed: { standardFields() {
|
|
8
|
-
let e2 = "reminder" === this.usedIn ? o.userStandardFieldsForReminder : o.userStandardFieldsForTransactor;
|
|
9
|
-
return "${department}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? o.departmentStandardFieldsForReminder : o.departmentStandardFieldsForTransactor : "${workgroup}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? o.workgroupStandardFieldsForReminder : o.workgroupStandardFieldsForTransactor : "${role}" === this.currentRow.key && (e2 = {}), e2;
|
|
10
|
-
} }, mounted() {
|
|
11
|
-
this.users.length > 0 && this.$refs.table.setCurrentRow(this.users[this.users.length - 1]), this.$watch("users", function(e2, t2) {
|
|
12
|
-
this.$emit("update:modelValue", o.generateUserCondition(this.users));
|
|
13
|
-
}, { deep: true });
|
|
14
|
-
}, methods: { format: (e2) => e2.indexOf("${field[") >= 0 ? t.getFormFieldLabel(e2) : e2.indexOf("${") >= 0 ? o.formatStandardValue(e2) : e2.substring(0, e2.indexOf("[")), selectRow(e2) {
|
|
15
|
-
this.$refs.table.setCurrentRow(e2);
|
|
16
|
-
}, openValueDialog(e2) {
|
|
17
|
-
this.showValueDialog = true, this.selectRow(e2);
|
|
18
|
-
}, closeValueDialog(e2) {
|
|
19
|
-
void 0 !== e2 && "" !== e2 && (this.currentRow.value = e2), this.showValueDialog = false;
|
|
20
|
-
}, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
|
|
21
|
-
this.currentRow = e2;
|
|
22
|
-
}, getRowIndex(e2) {
|
|
23
|
-
for (let o2 = 0; o2 < this.users.length; o2++)
|
|
24
|
-
if (this.users[o2].id === e2.id)
|
|
25
|
-
return o2;
|
|
26
|
-
return -1;
|
|
27
|
-
}, add() {
|
|
28
|
-
const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
29
|
-
this.users.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
30
|
-
}, insert() {
|
|
31
|
-
if (null === this.currentRow)
|
|
32
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
33
|
-
const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
|
|
34
|
-
this.users.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
|
|
35
|
-
}, remove() {
|
|
36
|
-
if (null === this.currentRow)
|
|
37
|
-
return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
|
|
38
|
-
let e2 = this.getRowIndex(this.currentRow);
|
|
39
|
-
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]));
|
|
40
|
-
}, view() {
|
|
41
|
-
let e2 = o.displayUserCondition(this.users);
|
|
42
|
-
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorPublicModel.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
43
|
-
} });
|
|
44
|
-
}, handleKeyChange(e2) {
|
|
45
|
-
this.currentRow.value = "";
|
|
46
|
-
} } }, [["render", function(e2, o2, t2, r2, a, i) {
|
|
47
|
-
const n = l.resolveComponent("el-button"), d = l.resolveComponent("el-row"), s = l.resolveComponent("el-option"), u = l.resolveComponent("el-select"), c = l.resolveComponent("el-table-column"), w = l.resolveComponent("el-input"), h = l.resolveComponent("el-table"), p = l.resolveComponent("value-selection-dialog");
|
|
48
|
-
return l.openBlock(), l.createElementBlock("div", null, [l.createVNode(d, null, { default: l.withCtx(() => [l.createVNode(n, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i.add }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(n, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: i.insert }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(n, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i.remove }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(n, { type: "primary", size: "small", plain: "", icon: "View", onClick: i.view }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), l.createVNode(h, { ref: "table", data: a.users, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: i.handleCurrentChange }, { default: l.withCtx(() => [l.createVNode(c, { prop: "leftBracket", label: "(", width: "90" }, { default: l.withCtx((e3) => [l.createVNode(u, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (o3) => e3.row.leftBracket = o3, placeholder: "", onFocus: (o3) => i.selectRow(e3.row) }, { default: l.withCtx(() => [l.createVNode(s, { label: "", value: "" }), l.createVNode(s, { label: "(", value: "(" }), l.createVNode(s, { label: "((", value: "((" }), l.createVNode(s, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), l.createVNode(c, { label: e2.$t("workflowEditor.common.type"), width: "110" }, { default: l.withCtx((o3) => [l.createVNode(u, { modelValue: o3.row.key, "onUpdate:modelValue": (e3) => o3.row.key = e3, placeholder: "", onFocus: (e3) => i.selectRow(o3.row), onChange: i.handleKeyChange }, { default: l.withCtx(() => [l.createVNode(s, { label: e2.$t("workflowEditor.common.user"), value: "${user}" }, null, 8, ["label"]), l.createVNode(s, { label: e2.$t("workflowEditor.common.role"), value: "${role}" }, null, 8, ["label"]), l.createVNode(s, { label: e2.$t("workflowEditor.common.department"), value: "${department}" }, null, 8, ["label"]), l.createVNode(s, { label: e2.$t("workflowEditor.common.workgroup"), value: "${workgroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), l.createVNode(c, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: l.withCtx((o3) => [l.createVNode(u, { modelValue: o3.row.operator, "onUpdate:modelValue": (e3) => o3.row.operator = e3, placeholder: "", onFocus: (e3) => i.selectRow(o3.row) }, { default: l.withCtx(() => [l.createVNode(s, { label: e2.$t("workflowEditor.process.beEqualTo"), value: "operator.text.eq" }, null, 8, ["label"]), l.createVNode(s, { label: e2.$t("workflowEditor.process.notEqualTo"), value: "operator.text.neq" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), l.createVNode(c, { label: e2.$t("workflowEditor.common.value") }, { default: l.withCtx((e3) => [l.createVNode(w, { value: i.format(e3.row.value), readonly: "", onClick: (o3) => i.openValueDialog(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), l.createVNode(c, { prop: "rightBracket", label: ")", width: "90", onFocus: o2[0] || (o2[0] = (o3) => i.selectRow(e2.scope.row)) }, { default: l.withCtx((e3) => [l.createVNode(u, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (o3) => e3.row.rightBracket = o3, placeholder: "" }, { default: l.withCtx(() => [l.createVNode(s, { label: "", value: "" }), l.createVNode(s, { label: ")", value: ")" }), l.createVNode(s, { label: "))", value: "))" }), l.createVNode(s, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), l.createVNode(c, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: l.withCtx((o3) => [l.createVNode(u, { modelValue: o3.row.logicOperator, "onUpdate:modelValue": (e3) => o3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => i.selectRow(o3.row) }, { default: l.withCtx(() => [l.createVNode(s, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), l.createVNode(s, { 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"]), a.showValueDialog ? (l.openBlock(), l.createBlock(p, { key: 0, "standard-fields": i.standardFields, "org-type": a.currentRow.key.substring(a.currentRow.key.indexOf("{") + 1, a.currentRow.key.lastIndexOf("}")), onClose: i.closeValueDialog }, null, 8, ["standard-fields", "org-type", "onClose"])) : l.createCommentVNode("", true)]);
|
|
49
|
-
}]]);
|
|
50
|
-
module.exports = r;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function e(e2) {
|
|
3
|
-
const t = window.$store.getters["wfEditor/formFields"];
|
|
4
|
-
e2 && (e2.indexOf("${field[") >= 0 || e2.indexOf("${deptField[") >= 0) && (e2 = e2.substring(e2.indexOf("[") + 1, e2.lastIndexOf("]")));
|
|
5
|
-
const n = t.filter((t2) => t2.name === e2);
|
|
6
|
-
return n.length > 0 ? n[0] : null;
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports.getFormField = e, exports.getFormFieldLabel = function(t) {
|
|
9
|
-
const n = e(t);
|
|
10
|
-
return n ? n.label : t;
|
|
11
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vuex"), l = require("vue");
|
|
3
|
-
require("./form-fields.vue2.cjs");
|
|
4
|
-
const t = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), o = { name: "FormFields", props: { fields: { type: Array, default: null } }, data: () => ({ selectedField: null, copyShowFields: [], showFields: [], searchFormCode: "", dialogVisible: true }), computed: { ...e.mapGetters("wfEditor", ["formFields"]), allFields() {
|
|
5
|
-
return this.fields ? this.fields : this.formFields;
|
|
6
|
-
} }, mounted() {
|
|
7
|
-
this.copyAllFields = this.allFields, this.showFields = this.allFields;
|
|
8
|
-
}, methods: { setField() {
|
|
9
|
-
this.$emit("close", this.selectedField);
|
|
10
|
-
}, searchForm() {
|
|
11
|
-
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;
|
|
12
|
-
} } }, i = { style: { "padding-bottom": "10px" } }, d = { style: { float: "left", width: "70%" } }, s = { class: "item-content" };
|
|
13
|
-
const r = t(o, [["render", function(e2, t2, o2, r2, a, c) {
|
|
14
|
-
const n = l.resolveComponent("el-input"), m = l.resolveComponent("el-button"), p = l.resolveComponent("el-radio"), h = l.resolveComponent("el-radio-group"), u = l.resolveComponent("el-dialog");
|
|
15
|
-
return l.openBlock(), l.createBlock(u, { width: "60%", title: e2.$t("workflowEditor.common.selectFormField"), modelValue: a.dialogVisible, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a.dialogVisible = e3), center: "", top: "5vh", "append-to-body": "", class: "properties-editor-noTab", onClose: t2[4] || (t2[4] = (l2) => e2.$emit("close")) }, { footer: l.withCtx(() => [l.createVNode(m, { type: "primary", size: "small", onClick: c.setField }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(m, { size: "small", onClick: t2[2] || (t2[2] = (l2) => e2.$emit("close")) }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: l.withCtx(() => [l.createElementVNode("div", i, [l.createElementVNode("span", d, [l.createVNode(n, { modelValue: a.searchFormCode, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a.searchFormCode = e3), placeholder: e2.$t("workflowEditorMessage.pleaseEnterTheNameOrCode") }, null, 8, ["modelValue", "placeholder"])]), l.createElementVNode("span", null, [l.createVNode(m, { style: { "margin-left": "10px" }, type: "primary", onClick: c.searchForm }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.search")), 1)]), _: 1 }, 8, ["onClick"])])]), l.createElementVNode("div", s, [l.createVNode(h, { modelValue: a.selectedField, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a.selectedField = e3), class: "group" }, { default: l.withCtx(() => [l.createElementVNode("ul", null, [(l.openBlock(true), l.createElementBlock(l.Fragment, null, l.renderList(a.showFields, (e3) => (l.openBlock(), l.createElementBlock("li", { key: e3.name, class: "item" }, [l.createVNode(p, { label: e3.name }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]))), 128))])]), _: 1 }, 8, ["modelValue"])])]), _: 1 }, 8, ["title", "modelValue"]);
|
|
16
|
-
}], ["__scopeId", "data-v-98300543"]]);
|
|
17
|
-
module.exports = r;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./i18n-set-dialog.vue.cjs"), t = require("vuex"), n = require("vue"), s = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), o = { name: "I18nInput", components: { I18nSet: e }, model: { prop: "value", event: "input" }, props: { modelValue: { type: String, default: "" }, i18nKey: { type: String, default: "" } }, data() {
|
|
3
|
-
const e2 = this.modelValue;
|
|
4
|
-
return { isShowI18n: false, myI18nKey: this.i18nKey, zh: e2, isNewI18n: false };
|
|
5
|
-
}, computed: { ...t.mapGetters("wfEditor", ["processCode", "isHandleCreate"]) }, mounted() {
|
|
6
|
-
this.$watch("zh", function(e2) {
|
|
7
|
-
this.$emit("update:modelValue", e2);
|
|
8
|
-
});
|
|
9
|
-
}, created() {
|
|
10
|
-
this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n && (this.myI18nKey = this.modelValue);
|
|
11
|
-
}, methods: { i18nSet() {
|
|
12
|
-
this.myI18nKey ? this.isShowI18n = true : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseInputCode") });
|
|
13
|
-
}, closeI18nSet(e2) {
|
|
14
|
-
e2 && this.$emit("setI18n", e2), this.isShowI18n = false;
|
|
15
|
-
} } }, i = { style: { float: "left", "padding-right": "5px" } };
|
|
16
|
-
const l = s(o, [["render", function(e2, t2, s2, o2, l2, a) {
|
|
17
|
-
const r = n.resolveComponent("el-input"), u = n.resolveComponent("i18n-set");
|
|
18
|
-
return n.openBlock(), n.createElementBlock("span", null, [n.createElementVNode("div", i, [n.createVNode(r, { modelValue: l2.zh, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => l2.zh = e3) }, { append: n.withCtx(() => [n.createElementVNode("i", { class: "fa fa-cog", onClick: t2[0] || (t2[0] = (...e3) => a.i18nSet && a.i18nSet(...e3)) })]), _: 1 }, 8, ["modelValue"])]), l2.isShowI18n ? (n.openBlock(), n.createBlock(u, { key: 0, value: { values: { zh_CN: l2.zh }, key: l2.myI18nKey }, onClose: a.closeI18nSet }, null, 8, ["value", "onClose"])) : n.createCommentVNode("", true)]);
|
|
19
|
-
}]]);
|
|
20
|
-
module.exports = l;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../util.cjs"), t = require("vuex"), o = require("vue"), l = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), i = { name: "I18nSet", props: { value: { type: Object, default: null } }, data() {
|
|
3
|
-
let t2 = {};
|
|
4
|
-
return this.value && (t2 = JSON.parse(JSON.stringify(this.value))), { requiredRule: { required: true, message: e.getI18n().t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }, i18nModel: t2, bundleCode: null, isShow: false, i18nKey: null, languages: {}, dialogVisible: true, isNewI18n: false };
|
|
5
|
-
}, computed: { ...t.mapGetters("wfEditor", ["systemCode", "processCode", "isHandleCreate"]) }, created() {
|
|
6
|
-
this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n || (this.bundleCode = this.systemCode + ".workflow." + this.processCode), this.getI18nSet();
|
|
7
|
-
}, methods: { getI18nSet() {
|
|
8
|
-
this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/languages?isNewI18n=" + this.isNewI18n).then((e2) => {
|
|
9
|
-
const t2 = { bundleCode: this.bundleCode, i18nKey: this.i18nModel.key, isNewI18n: this.isNewI18n + "", systemCode: this.systemCode };
|
|
10
|
-
this.$http.post(this.baseAPI + "/wf-editor/i18n-settings/get-info", t2).then((t3) => {
|
|
11
|
-
this.languages = e2, Object.keys(this.languages).forEach((e3) => {
|
|
12
|
-
this.i18nModel, t3 && t3[e3] ? this.i18nModel.values[e3] = t3[e3] : this.i18nModel.values[e3] || (this.i18nModel.values[e3] = "");
|
|
13
|
-
}), this.isShow = true;
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
}, saveI18nSet(e2) {
|
|
17
|
-
this.$refs[e2].validate((e3) => {
|
|
18
|
-
if (!e3)
|
|
19
|
-
return false;
|
|
20
|
-
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(() => {
|
|
21
|
-
this.$emit("close", this.i18nModel.key);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
}, goBack() {
|
|
25
|
-
this.$emit("close");
|
|
26
|
-
} } }, s = { class: "operation-area" };
|
|
27
|
-
const n = l(i, [["render", function(e2, t2, l2, i2, n2, d) {
|
|
28
|
-
const r = o.resolveComponent("el-button"), a = o.resolveComponent("el-input"), u = o.resolveComponent("el-form-item"), h = o.resolveComponent("el-col"), c = o.resolveComponent("el-row"), p = o.resolveComponent("el-form"), m = o.resolveComponent("el-dialog");
|
|
29
|
-
return n2.isShow ? (o.openBlock(), o.createBlock(m, { 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: o.withCtx(() => [o.createElementVNode("div", s, [o.createVNode(r, { type: "primary", size: "small", onClick: t2[0] || (t2[0] = (e3) => d.saveI18nSet("form")) }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }), o.createVNode(r, { size: "small", onClick: d.goBack }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }, 8, ["onClick"])]), o.createVNode(p, { ref: "form", model: n2.i18nModel, "label-width": "100px" }, { default: o.withCtx(() => [o.createVNode(c, null, { default: o.withCtx(() => [o.createVNode(h, { span: 24 }, { default: o.withCtx(() => [o.createVNode(u, { label: e2.$t("workflowEditorPublicModel.i18nKey"), prop: "key", rules: [n2.requiredRule] }, { default: o.withCtx(() => [o.createVNode(a, { modelValue: n2.i18nModel.key, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.i18nModel.key = e3), style: { width: "80%" } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })]), _: 1 }), (o.openBlock(true), o.createElementBlock(o.Fragment, null, o.renderList(Object.keys(n2.languages), (e3) => (o.openBlock(), o.createBlock(c, { key: e3 }, { default: o.withCtx(() => [o.createVNode(h, { span: 24 }, { default: o.withCtx(() => [o.createVNode(u, { label: n2.languages[e3], prop: e3 }, { default: o.withCtx(() => [o.createVNode(a, { modelValue: n2.i18nModel.values[e3], "onUpdate:modelValue": (t3) => n2.i18nModel.values[e3] = t3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["label", "prop"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["title"])) : o.createCommentVNode("", true);
|
|
30
|
-
}]]);
|
|
31
|
-
module.exports = n;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./reminder.vue.cjs"), t = require("./common-notice-tool.vue.cjs"), l = require("./select-mail-template.vue.cjs"), o = require("vue");
|
|
3
|
-
require("./notice-reminder.vue2.cjs");
|
|
4
|
-
const i = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), a = { name: "NoticeReminder", components: { Reminder: e, CommonNoticeTool: t, SelectMailTemplates: l }, props: { reminderValue: { type: [Object, String], default: null }, taskNoticeValue: { type: Object, default: null }, isProcess: { type: Boolean, default: false } }, data() {
|
|
5
|
-
let e2 = null;
|
|
6
|
-
null !== this.reminderValue && void 0 !== this.reminderValue && "" !== this.reminderValue && (e2 = this.reminderValue);
|
|
7
|
-
let t2 = {};
|
|
8
|
-
return null !== this.taskNoticeValue && void 0 !== this.taskNoticeValue && "" !== this.taskNoticeValue && (t2 = this.taskNoticeValue), { reminderObj: e2, noticeObj: t2 };
|
|
9
|
-
}, watch: { reminderObj(e2) {
|
|
10
|
-
e2 ? this.$emit("update:reminder-value", e2) : this.$emit("update:reminder-value", null);
|
|
11
|
-
} }, methods: { setMailTemplateCode(e2) {
|
|
12
|
-
this.noticeObj.mailPointTemplateCode = e2;
|
|
13
|
-
}, setNoticeCommonTemplateCode(e2) {
|
|
14
|
-
this.noticeObj.mailTemplateCode = e2;
|
|
15
|
-
}, setCustomMsg(e2) {
|
|
16
|
-
this.noticeObj.customMsg = e2;
|
|
17
|
-
} } }, n = { class: "clearfix" }, r = { class: "sub-li" }, m = { class: "sub-li" }, d = { class: "clearfix" }, s = { class: "sub-li" }, c = { class: "sub-li" }, u = { class: "sub-li" }, p = { class: "sub-li" };
|
|
18
|
-
const V = i(a, [["render", function(e2, t2, l2, i2, a2, V2) {
|
|
19
|
-
const w = o.resolveComponent("Warning"), N = o.resolveComponent("el-icon"), f = o.resolveComponent("el-tooltip"), b = o.resolveComponent("common-notice-tool"), k = o.resolveComponent("select-mail-templates"), C = o.resolveComponent("el-form-item"), h = o.resolveComponent("el-form"), T = o.resolveComponent("el-card"), E = o.resolveComponent("reminder");
|
|
20
|
-
return o.openBlock(), o.createElementBlock("div", null, [o.createVNode(T, { class: "box-card" }, { header: o.withCtx(() => [o.createElementVNode("div", n, [o.createElementVNode("span", null, o.toDisplayString(e2.$t("workflowEditor.common.taskNotice")), 1), o.createVNode(f, null, { content: o.withCtx(() => [o.createElementVNode("ul", null, [o.createElementVNode("li", null, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), o.createElementVNode("li", r, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), o.createElementVNode("li", m, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1)])]), default: o.withCtx(() => [o.createVNode(N, null, { default: o.withCtx(() => [o.createVNode(w)]), _: 1 })]), _: 1 })])]), default: o.withCtx(() => [o.createVNode(h, { model: a2.noticeObj, "label-width": "80px" }, { default: o.withCtx(() => [o.createVNode(b, { modelValue: a2.noticeObj.informType, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.noticeObj.informType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": a2.noticeObj.customMsg, onInputMsg: V2.setCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), a2.noticeObj.informType && a2.noticeObj.informType.length > 0 ? (o.openBlock(), o.createBlock(C, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: o.withCtx(() => [o.createVNode(k, { modelValue: a2.noticeObj.mailTemplateCode, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a2.noticeObj.mailTemplateCode = e3), onSetValue: V2.setNoticeCommonTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : o.createCommentVNode("", true), a2.noticeObj.informType && a2.noticeObj.informType.length > 0 && a2.noticeObj.informType.indexOf("mail") >= 0 ? (o.openBlock(), o.createBlock(C, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: o.withCtx(() => [o.createVNode(k, { modelValue: a2.noticeObj.mailPointTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => a2.noticeObj.mailPointTemplateCode = e3), onSetValue: V2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : o.createCommentVNode("", true)]), _: 1 }, 8, ["model"])]), _: 1 }), o.createVNode(T, { class: "box-card", style: { "margin-top": "10px" } }, { header: o.withCtx(() => [o.createElementVNode("div", d, [o.createElementVNode("span", null, o.toDisplayString(e2.$t("workflowEditor.common.reminderNotice")), 1), o.createVNode(f, null, { content: o.withCtx(() => [o.createElementVNode("ul", null, [o.createElementVNode("li", null, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), o.createElementVNode("li", s, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), o.createElementVNode("li", c, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1), o.createElementVNode("li", null, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindMsg")), 1), o.createElementVNode("li", u, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindImmediately")), 1), o.createElementVNode("li", p, o.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindHistory")), 1)])]), default: o.withCtx(() => [o.createVNode(N, null, { default: o.withCtx(() => [o.createVNode(w)]), _: 1 })]), _: 1 })])]), default: o.withCtx(() => [o.createVNode(E, { modelValue: a2.reminderObj, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a2.reminderObj = e3), isProcess: l2.isProcess }, null, 8, ["modelValue", "isProcess"])]), _: 1 })]);
|
|
21
|
-
}], ["__scopeId", "data-v-39fac73c"]]);
|
|
22
|
-
module.exports = V;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./user-selection.vue.cjs"), o = require("./common-notice-tool.vue.cjs"), l = require("./select-mail-template.vue.cjs"), t = require("vue"), a = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), m = { key: 0 };
|
|
3
|
-
const d = a({ name: "Notice", components: { UserSelection: e, CommonNoticeTool: o, SelectMailTemplates: l }, props: { modelValue: { type: [Object, String], default: null }, switchLabel: { type: String, default: "" } }, data() {
|
|
4
|
-
let e2 = false, o2 = { informType: "", userCondition: "", subject: null, content: null };
|
|
5
|
-
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (o2 = this.modelValue, o2.informType && "" !== o2.informType && (e2 = true)), { showNotice: e2, model: o2, options: { showColumns: "code,name" } };
|
|
6
|
-
}, watch: { showNotice(e2) {
|
|
7
|
-
this.getValue();
|
|
8
|
-
} }, created() {
|
|
9
|
-
this.$watch("model", function(e2, o2) {
|
|
10
|
-
this.getValue();
|
|
11
|
-
}, { deep: true });
|
|
12
|
-
}, methods: { getValue() {
|
|
13
|
-
const e2 = this.model;
|
|
14
|
-
this.$emit("update:modelValue", e2);
|
|
15
|
-
}, setMailTemplateCode(e2) {
|
|
16
|
-
this.model.mailTemplateCode = e2;
|
|
17
|
-
}, setMailPointTemplateCode(e2) {
|
|
18
|
-
this.model.mailPointTemplateCode = e2;
|
|
19
|
-
}, setCustomMsg(e2) {
|
|
20
|
-
this.model.customMsg = e2;
|
|
21
|
-
} } }, [["render", function(e2, o2, l2, a2, d2, n) {
|
|
22
|
-
const i = t.resolveComponent("el-switch"), s = t.resolveComponent("el-form-item"), u = t.resolveComponent("common-notice-tool"), r = t.resolveComponent("select-mail-templates"), c = t.resolveComponent("user-selection"), p = t.resolveComponent("el-input"), V = t.resolveComponent("el-form");
|
|
23
|
-
return t.openBlock(), t.createBlock(V, { model: d2.model, "label-width": "80px" }, { default: t.withCtx(() => [t.createVNode(s, { label: l2.switchLabel, "label-width": "150" }, { default: t.withCtx(() => [t.createVNode(i, { modelValue: d2.showNotice, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => d2.showNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), d2.showNotice ? (t.openBlock(), t.createElementBlock("div", m, [t.createVNode(u, { modelValue: d2.model.informType, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => d2.model.informType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": d2.model.customMsg, onInputMsg: n.setCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), d2.model.informType && d2.model.informType.length > 0 ? (t.openBlock(), t.createBlock(s, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: t.withCtx(() => [t.createVNode(r, { modelValue: d2.model.mailTemplateCode, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => d2.model.mailTemplateCode = e3), onSetValue: n.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : t.createCommentVNode("", true), d2.model.informType && d2.model.informType.length > 0 && -1 !== d2.model.informType.indexOf("mail") ? (t.openBlock(), t.createBlock(s, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: t.withCtx(() => [t.createVNode(r, { modelValue: d2.model.mailPointTemplateCode, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => d2.model.mailPointTemplateCode = e3), onSetValue: n.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : t.createCommentVNode("", true), t.createVNode(c, { modelValue: d2.model.userCondition, "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => d2.model.userCondition = e3), label: e2.$t("workflowEditor.common.addressee") }, null, 8, ["modelValue", "label"]), t.createVNode(s, { label: e2.$t("workflowEditor.common.theme") }, { default: t.withCtx(() => [t.createVNode(p, { modelValue: d2.model.subject, "onUpdate:modelValue": o2[5] || (o2[5] = (e3) => d2.model.subject = e3), placeholder: e2.$t("workflowEditorMessage.pleaseEnterASubject") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"]), t.createVNode(s, { label: e2.$t("workflowEditor.common.content") }, { default: t.withCtx(() => [t.createVNode(p, { modelValue: d2.model.content, "onUpdate:modelValue": o2[6] || (o2[6] = (e3) => d2.model.content = e3), type: "textarea", autosize: { minRows: 4, maxRows: 10 }, placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"])])) : t.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
24
|
-
}]]);
|
|
25
|
-
module.exports = d;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./common-notice-tool.vue.cjs"), o = require("./common-user-condition.vue.cjs"), t = require("./select-mail-template.vue.cjs"), l = require("vue");
|
|
3
|
-
require("./reminder.vue2.cjs");
|
|
4
|
-
const a = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), d = { name: "Reminder", components: { CommonNoticeTool: e, CommonUserCondition: o, SelectMailTemplates: t }, props: { modelValue: { type: [Object, String], default: null }, isProcess: { type: Boolean, default: false } }, data() {
|
|
5
|
-
let e2 = false, o2 = false, t2 = { dueDate: 1, dueTimeUnit: "day", repeat: 1, containTransferUser: false, containNoticeUser: false, remindType: "mail", timeUnit: "day", remindTimes: 0, noticeType: "", noticeUserCondition: "", transferUserCondition: "" };
|
|
6
|
-
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (t2 = this.modelValue, e2 = true, this.modelValue.remindTimes > 0 && (o2 = true), t2.dueTimeUnit || (t2.dueTimeUnit = "day")), { showReminder: e2, showNotice: o2, model: t2, showMailTemplateFlag: false, baseURL: "", optionUrl: "", multiSelectData: [], options: { showColumns: "code,name" } };
|
|
7
|
-
}, watch: { showReminder(e2) {
|
|
8
|
-
e2 ? this.$emit("update:modelValue", this.model) : this.$emit("update:modelValue", null);
|
|
9
|
-
}, showNotice(e2) {
|
|
10
|
-
e2 ? this.$emit("update:modelValue", this.model) : this.$emit("update:modelValue", { remindType: this.model.remindType, dueDate: this.model.dueDate, dueTimeUnit: this.model.dueTimeUnit, repeat: this.model.repeat, timeUnit: this.model.timeUnit, remindTimes: 0, noticeType: "", noticeUserCondition: "", containTransferUser: false, transferUserCondition: "", containNoticeUser: false });
|
|
11
|
-
} }, created() {
|
|
12
|
-
this.baseURL = window.$vueApp.config.globalProperties.baseURL, this.optionUrl = "/bs/email-templates/list/0", this.$watch("model", function(e2, o2) {
|
|
13
|
-
let t2 = null;
|
|
14
|
-
this.showReminder && (t2 = this.model, t2.dueTimeUnit || (t2.dueTimeUnit = "day")), this.$emit("update:modelValue", t2);
|
|
15
|
-
}, { deep: true });
|
|
16
|
-
}, methods: { setMailTemplateCode(e2) {
|
|
17
|
-
this.model.mailTemplateCode = e2;
|
|
18
|
-
}, setMailPointTemplateCode(e2) {
|
|
19
|
-
this.model.mailPointTemplateCode = e2;
|
|
20
|
-
}, selectData(e2, o2) {
|
|
21
|
-
this.multiSelectData = e2;
|
|
22
|
-
}, setReminderCustomMsg(e2) {
|
|
23
|
-
this.model.reminderCustomMsg = e2;
|
|
24
|
-
}, setNoticeCustomMsg(e2) {
|
|
25
|
-
this.model.noticeCustomMsg = e2;
|
|
26
|
-
} } }, i = { key: 0 }, m = { key: 2 };
|
|
27
|
-
const n = a(d, [["render", function(e2, o2, t2, a2, d2, n2) {
|
|
28
|
-
const r = l.resolveComponent("el-switch"), s = l.resolveComponent("el-form-item"), u = l.resolveComponent("common-notice-tool"), c = l.resolveComponent("select-mail-templates"), p = l.resolveComponent("el-input-number"), V = l.resolveComponent("el-option"), h = l.resolveComponent("el-select"), w = l.resolveComponent("el-radio"), C = l.resolveComponent("el-checkbox"), k = l.resolveComponent("common-user-condition"), U = l.resolveComponent("el-form");
|
|
29
|
-
return l.openBlock(), l.createBlock(U, { model: d2.model, "label-width": "80px" }, { default: l.withCtx(() => [l.createVNode(s, { label: e2.$t("workflowEditor.task.needToBeUrged") }, { default: l.withCtx(() => [l.createVNode(r, { modelValue: d2.showReminder, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => d2.showReminder = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), d2.showReminder ? (l.openBlock(), l.createElementBlock("div", i, [l.createVNode(u, { modelValue: d2.model.remindType, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => d2.model.remindType = e3), label: e2.$t("workflowEditor.task.urgingMethod"), "custom-msg": d2.model.reminderCustomMsg, onInputMsg: n2.setReminderCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), d2.model.remindType && d2.model.remindType.length > 0 ? (l.openBlock(), l.createBlock(s, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: l.withCtx(() => [l.createVNode(c, { modelValue: d2.model.mailTemplateCode, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => d2.model.mailTemplateCode = e3), onSetValue: n2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : l.createCommentVNode("", true), d2.model.remindType && d2.model.remindType.length > 0 && -1 !== d2.model.remindType.indexOf("mail") ? (l.openBlock(), l.createBlock(s, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: l.withCtx(() => [l.createVNode(c, { modelValue: d2.model.mailPointTemplateCode, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => d2.model.mailPointTemplateCode = e3), onSetValue: n2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : l.createCommentVNode("", true), l.createVNode(s, { label: e2.$t("workflowEditor.task.timeLimitForHandling"), size: "small" }, { default: l.withCtx(() => [l.createVNode(p, { modelValue: d2.model.dueDate, "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => d2.model.dueDate = e3), "controls-position": "right", min: 1, max: 30, style: { width: "90px" } }, null, 8, ["modelValue"]), l.createVNode(h, { modelValue: d2.model.dueTimeUnit, "onUpdate:modelValue": o2[5] || (o2[5] = (e3) => d2.model.dueTimeUnit = e3), style: { width: "70px" } }, { default: l.withCtx(() => [l.createVNode(V, { label: e2.$t("workflowEditor.task.day"), value: "day" }, null, 8, ["label"]), l.createVNode(V, { label: e2.$t("workflowEditor.task.hour"), value: "hour" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue"]), l.createElementVNode("span", null, l.toDisplayString(e2.$t("workflowEditor.task.urgingInterval")), 1), l.createVNode(p, { modelValue: d2.model.repeat, "onUpdate:modelValue": o2[6] || (o2[6] = (e3) => d2.model.repeat = e3), "controls-position": "right", min: 1, max: 30, style: { width: "90px" } }, null, 8, ["modelValue"]), l.createVNode(h, { modelValue: d2.model.timeUnit, "onUpdate:modelValue": o2[7] || (o2[7] = (e3) => d2.model.timeUnit = e3), style: { width: "70px" } }, { default: l.withCtx(() => [l.createVNode(V, { label: e2.$t("workflowEditor.task.day"), value: "day" }, null, 8, ["label"]), l.createVNode(V, { label: e2.$t("workflowEditor.task.hour"), value: "hour" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), l.createVNode(s, null, { default: l.withCtx(() => [l.createVNode(w, { modelValue: d2.showNotice, "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => d2.showNotice = e3), label: false }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditor.task.alwaysUrging")), 1)]), _: 1 }, 8, ["modelValue"]), l.createVNode(w, { modelValue: d2.showNotice, "onUpdate:modelValue": o2[9] || (o2[9] = (e3) => d2.showNotice = e3), label: true }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditor.task.limitedUrging")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d2.showNotice ? (l.openBlock(), l.createElementBlock("div", m, [l.createVNode(s, { label: e2.$t("workflowEditor.task.timesOfUrging"), size: "small" }, { default: l.withCtx(() => [l.createVNode(p, { modelValue: d2.model.remindTimes, "onUpdate:modelValue": o2[10] || (o2[10] = (e3) => d2.model.remindTimes = e3), "controls-position": "right", min: 1, max: 99, style: { width: "90px" } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), l.createVNode(u, { modelValue: d2.model.noticeType, "onUpdate:modelValue": o2[11] || (o2[11] = (e3) => d2.model.noticeType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": d2.model.noticeCustomMsg, onInputMsg: n2.setNoticeCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), t2.isProcess ? l.createCommentVNode("", true) : (l.openBlock(), l.createBlock(s, { key: 0, label: e2.$t("workflowEditor.common.notifyPersonnel"), style: { "margin-bottom": "5px" } }, { default: l.withCtx(() => [l.createVNode(C, { modelValue: d2.model.containTransferUser, "onUpdate:modelValue": o2[12] || (o2[12] = (e3) => d2.model.containTransferUser = e3) }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditor.task.includingHandoverPersonnel")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])), l.createVNode(s, { "label-width": "0" }, { default: l.withCtx(() => [l.createVNode(k, { modelValue: d2.model.noticeUserCondition, "onUpdate:modelValue": o2[13] || (o2[13] = (e3) => d2.model.noticeUserCondition = e3) }, null, 8, ["modelValue"])]), _: 1 }), t2.isProcess ? l.createCommentVNode("", true) : (l.openBlock(), l.createBlock(s, { key: 1, label: e2.$t("workflowEditor.task.handoverPersonnel"), style: { "margin-bottom": "5px" } }, { default: l.withCtx(() => [l.createVNode(C, { modelValue: d2.model.containNoticeUser, "onUpdate:modelValue": o2[14] || (o2[14] = (e3) => d2.model.containNoticeUser = e3) }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditor.task.includeNotifyPeople")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])), t2.isProcess ? l.createCommentVNode("", true) : (l.openBlock(), l.createBlock(s, { key: 2, "label-width": "0" }, { default: l.withCtx(() => [l.createVNode(k, { modelValue: d2.model.transferUserCondition, "onUpdate:modelValue": o2[15] || (o2[15] = (e3) => d2.model.transferUserCondition = e3) }, null, 8, ["modelValue"])]), _: 1 }))])) : l.createCommentVNode("", true)])) : l.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
30
|
-
}], ["__scopeId", "data-v-4e29ea06"]]);
|
|
31
|
-
module.exports = n;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), l = { style: { width: "100%" } };
|
|
3
|
-
const o = t({ name: "SelectMailTemplates", model: { prop: "value", event: "input" }, props: { modelValue: { type: [String, Number], default: "" } }, data() {
|
|
4
|
-
return { baseURL: "", optionUrl: "", multiSelectData: [], showMailTemplateFlag: false, code: this.modelValue, options: { showColumns: "code,name" }, dialogVisible: true };
|
|
5
|
-
}, created() {
|
|
6
|
-
this.baseURL = window.$vueApp.config.globalProperties.baseAPI, this.optionUrl = "/mc/email-templates/list/0";
|
|
7
|
-
}, methods: { selectTemplate() {
|
|
8
|
-
this.multiSelectData && 1 === this.multiSelectData.length ? (this.code = this.multiSelectData[0].code, this.$emit("set-value", this.code), this.showMailTemplateFlag = false) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseSelectARow") });
|
|
9
|
-
}, selectData(e2, t2) {
|
|
10
|
-
this.multiSelectData = e2;
|
|
11
|
-
}, clearVal() {
|
|
12
|
-
this.code = null, this.$emit("set-value", null);
|
|
13
|
-
} } }, [["render", function(t2, o2, a, i, s, r) {
|
|
14
|
-
const n = e.resolveComponent("el-input"), c = e.resolveComponent("super-grid"), d = e.resolveComponent("el-button"), p = e.resolveComponent("el-dialog");
|
|
15
|
-
return e.openBlock(), e.createElementBlock("span", l, [e.createVNode(n, { readonly: "", modelValue: s.code, "onUpdate:modelValue": o2[2] || (o2[2] = (e2) => s.code = e2), onClick: o2[3] || (o2[3] = (e2) => s.showMailTemplateFlag = true) }, { append: e.withCtx(() => [e.createElementVNode("i", { class: "fa fa-search", onClick: o2[0] || (o2[0] = (e2) => s.showMailTemplateFlag = true) }), e.createElementVNode("i", { style: { "padding-left": "10px" }, class: "fa fa-trash", onClick: o2[1] || (o2[1] = (e2) => r.clearVal()) })]), _: 1 }, 8, ["modelValue"]), e.createVNode(p, { width: "40%", title: t2.$t("workflowEditor.task.selectTemplate"), modelValue: s.showMailTemplateFlag, "onUpdate:modelValue": o2[5] || (o2[5] = (e2) => s.showMailTemplateFlag = e2), center: "", top: "5vh", "append-to-body": "", class: "properties-editor-noTab" }, { footer: e.withCtx(() => [e.createVNode(d, { onClick: o2[4] || (o2[4] = (e2) => s.showMailTemplateFlag = false) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 }), e.createVNode(d, { type: "primary", onClick: r.selectTemplate }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"])]), default: e.withCtx(() => [e.createVNode(c, { ref: "reportGrid", url: s.baseURL + s.optionUrl, code: "BS_EMAIL_TEMPLATE", options: s.options, onSelect: r.selectData }, null, 8, ["url", "options", "onSelect"])]), _: 1 }, 8, ["title", "modelValue"])]);
|
|
16
|
-
}]]);
|
|
17
|
-
module.exports = o;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../../../node_modules/@element-plus/icons-vue/dist/index.cjs");
|
|
3
|
-
require("./system-role-tree-inline.vue2.cjs");
|
|
4
|
-
const s = { name: "InlineSystemRoleTree", props: { multiple: { type: Boolean, default: false } }, data: () => ({ systemRoleTrees: null, filterText: "", defaultProps: { id: "id", label: "label", children: "children", isLeaf: "leaf" }, containBranch: false, tenantInfo: null, tenantNodeId: -1, allSearchNodeIds: [], allExpandNodeIds: [], isClickNode: false, searchValue: null, selectNodeInfo: null }), computed: {}, watch: { filterText(e2) {
|
|
5
|
-
e2 || (this.searchValue = e2, this.loadRole(this.tenantNodeId, this.tenantNodeId + ""));
|
|
6
|
-
} }, created() {
|
|
7
|
-
}, methods: { loadNode(e2, t2) {
|
|
8
|
-
var s2, o2 = 0;
|
|
9
|
-
0 === e2.level ? s2 = (o2 = 0) + "" : (o2 = e2.data.id, s2 = e2.data.nodeId);
|
|
10
|
-
var d = [];
|
|
11
|
-
this.$refs.roleTree && (d = this.$refs.roleTree.getCheckedKeys()), this.initLoadRole(o2, s2, e2, t2, d);
|
|
12
|
-
}, initLoadRole(e2, t2, s2, o2, d) {
|
|
13
|
-
this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((l) => {
|
|
14
|
-
if (o2(l), this.$refs.roleTree.updateKeyChildren(t2, l), 0 === e2) {
|
|
15
|
-
const e3 = l[0].data;
|
|
16
|
-
this.tenantInfo = JSON.parse(e3), this.containBranch = l[0].containBranch, this.loadRole(this.tenantNodeId, this.tenantNodeId + "");
|
|
17
|
-
}
|
|
18
|
-
this.isClickNode ? (this.isClickNode = false, this.checkedNodeAndChildren(s2.data)) : d && d.indexOf(t2) > -1 && this.checkedNodeAndChildren(s2.data);
|
|
19
|
-
});
|
|
20
|
-
}, loadRole(e2, t2, s2, o2) {
|
|
21
|
-
this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((e3) => {
|
|
22
|
-
this.$refs.roleTree.updateKeyChildren(t2, e3), this.$refs.roleTree.store.nodesMap[t2] && (this.$refs.roleTree.store.nodesMap[t2].expanded = true), s2 && (-1 === this.allExpandNodeIds.indexOf(t2) && this.allExpandNodeIds.push(t2), this.allExpandNodeIds.length === this.allSearchNodeIds.length && (this.$refs.roleTree.filter(o2), this.allExpandNodeIds = [], this.allSearchNodeIds = []));
|
|
23
|
-
});
|
|
24
|
-
}, clickSearch() {
|
|
25
|
-
this.searchValue = this.filterText, this.filterAppendNodes(this.filterText);
|
|
26
|
-
}, filterAppendNodes(e2) {
|
|
27
|
-
this.$http.get(this.baseAPI + "/acs/roles/search-system-role-trees?searchValue=" + e2).then((t2) => {
|
|
28
|
-
if (t2) {
|
|
29
|
-
if (0 === t2.length)
|
|
30
|
-
return void this.$message({ showClose: true, type: "error", message: this.$t("workflowEditorMessage.queryResultIsEmpty") });
|
|
31
|
-
t2.forEach((t3) => {
|
|
32
|
-
const s2 = "SYSTEM_" + t3;
|
|
33
|
-
-1 === this.allSearchNodeIds.indexOf(s2) && (this.allSearchNodeIds.push(s2), this.loadRole(t3, s2, true, e2));
|
|
34
|
-
});
|
|
35
|
-
} else
|
|
36
|
-
this.$message({ showClose: true, type: "error", message: this.$t("workflowEditorMessage.queryResultIsEmpty") });
|
|
37
|
-
});
|
|
38
|
-
}, handleCheckNode(e2, t2) {
|
|
39
|
-
t2.checkedKeys.indexOf(e2.nodeId) > -1 ? e2.children ? (this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.checkedNodeAndChildren(e2)) : e2.leaf || this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2.id).then((t3) => {
|
|
40
|
-
this.$refs.roleTree.updateKeyChildren(e2.nodeId, t3), this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.checkedNodeAndChildren(e2);
|
|
41
|
-
}) : this.cancelChildCheckedNodes(e2);
|
|
42
|
-
}, checkedNodeAndChildren(e2) {
|
|
43
|
-
this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.$refs.roleTree.setChecked(e2.nodeId, true);
|
|
44
|
-
const t2 = e2.children;
|
|
45
|
-
t2 && t2.forEach((e3) => {
|
|
46
|
-
this.checkedNodeAndChildren(e3);
|
|
47
|
-
});
|
|
48
|
-
}, cancelChildCheckedNodes(e2) {
|
|
49
|
-
e2.id !== this.tenantNodeId && this.$refs.roleTree.setChecked(this.tenantNodeId + "", false);
|
|
50
|
-
const t2 = e2.children;
|
|
51
|
-
t2 && t2.forEach((e3) => {
|
|
52
|
-
this.$refs.roleTree.setChecked(e3.nodeId, false), this.cancelChildCheckedNodes(e3);
|
|
53
|
-
});
|
|
54
|
-
}, selectRole() {
|
|
55
|
-
if (this.multiple) {
|
|
56
|
-
const e2 = { containBranch: this.containBranch, roles: [] }, t2 = [];
|
|
57
|
-
this.$refs.roleTree.getCheckedNodes().forEach((e3) => {
|
|
58
|
-
if ("ROLE" === e3.nodeType) {
|
|
59
|
-
const s2 = JSON.parse(e3.data);
|
|
60
|
-
s2.tenantCode = this.tenantInfo.code, s2.tenantName = this.tenantInfo.tenantName, t2.push(s2);
|
|
61
|
-
}
|
|
62
|
-
}), e2.roles = t2, e2.length > 0 ? this.$emit("result", e2) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
|
|
63
|
-
} else
|
|
64
|
-
this.selectNodeInfo ? this.$emit("result", this.selectNodeInfo) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
|
|
65
|
-
}, filterNode(e2, t2, s2) {
|
|
66
|
-
if (e2) {
|
|
67
|
-
var o2 = t2.label;
|
|
68
|
-
return "ROLE" === t2.nodeType && -1 !== o2.indexOf(e2);
|
|
69
|
-
}
|
|
70
|
-
return true;
|
|
71
|
-
}, handleNodeClick(e2, t2, s2) {
|
|
72
|
-
if (this.multiple && this.clickNodeWhenMultiple(e2), "ROLE" === e2.nodeType && !this.multiple) {
|
|
73
|
-
const t3 = JSON.parse(e2.data);
|
|
74
|
-
t3.tenantName = this.tenantInfo.tenantName, t3.tenantCode = this.tenantInfo.code;
|
|
75
|
-
var o2 = { id: e2.id, name: e2.name, containBranch: this.containBranch, role: t3 };
|
|
76
|
-
this.selectNodeInfo = o2;
|
|
77
|
-
}
|
|
78
|
-
}, clickNodeWhenMultiple(e2) {
|
|
79
|
-
var t2 = [];
|
|
80
|
-
if (this.$refs.roleTree && (t2 = this.$refs.roleTree.getCheckedKeys()), t2.indexOf(e2.nodeId) > -1)
|
|
81
|
-
this.$refs.roleTree.setChecked(e2.nodeId, false), this.cancelChildCheckedNodes(e2), this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true;
|
|
82
|
-
else {
|
|
83
|
-
this.$refs.roleTree.setChecked(e2.nodeId, true);
|
|
84
|
-
const t3 = e2.childDepartments;
|
|
85
|
-
t3 && t3.length > 0 ? this.checkedNodeAndChildren(e2) : this.isClickNode = true;
|
|
86
|
-
}
|
|
87
|
-
}, renderContent(e2, { node: t2, data: s2, store: o2 }) {
|
|
88
|
-
return s2.nodeType && "ROLE" === s2.nodeType && this.searchValue && s2.label.indexOf(this.searchValue) > -1 ? e2("span", {}, [e2("span", { class: "searchResult" }, t2.label)]) : e2("span", {}, [e2("span", {}, t2.label)]);
|
|
89
|
-
} } }, o = Object.assign(s, { setup: (s2) => (o2, d) => {
|
|
90
|
-
const l = e.resolveComponent("el-button"), n = e.resolveComponent("el-input"), r = e.resolveComponent("el-tree");
|
|
91
|
-
return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(n, { modelValue: o2.filterText, "onUpdate:modelValue": d[0] || (d[0] = (e2) => o2.filterText = e2), placeholder: o2.$t("workflowEditorMessage.pleaseEnterTheRoleName"), onKeyup: e.withKeys(o2.clickSearch, ["enter"]) }, { append: e.withCtx(() => [e.createVNode(l, { icon: e.unref(t.Search), onClick: o2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"]), e.createVNode(r, { ref: "roleTree", props: o2.defaultProps, load: o2.loadNode, lazy: "", "highlight-current": true, "node-key": "nodeId", "show-checkbox": s2.multiple, "check-strictly": "", "render-content": o2.renderContent, "filter-node-method": o2.filterNode, onCheck: o2.handleCheckNode, onNodeClick: o2.handleNodeClick }, null, 8, ["props", "load", "show-checkbox", "render-content", "filter-node-method", "onCheck", "onNodeClick"])]);
|
|
92
|
-
} });
|
|
93
|
-
module.exports = o;
|