workflow-editor 0.0.81-up-tmp17 → 0.0.81-up-tmp18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.min.js +655 -1149
- package/dist/style.css +5 -5
- package/es/index.mjs +19 -0
- package/es/plugins/{formValidatorUtil.js → formValidatorUtil.mjs} +61 -61
- package/es/plugins/{index.js → index.mjs} +1 -1
- package/es/src/i18n/i18n.mjs +7 -0
- package/es/style.css +105 -105
- package/es/workflow-editor/index.mjs +8 -0
- package/es/workflow-editor/src/json-object-templates/{auto-task.js → auto-task.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{copy-task.js → copy-task.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{decision.js → decision.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{end.js → end.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{fork.js → fork.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{human-decision.js → human-decision.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{human-task.js → human-task.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{join.js → join.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{process.js → process.mjs} +2 -2
- package/es/workflow-editor/src/json-object-templates/{start.js → start.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{subprocess.js → subprocess.mjs} +1 -1
- package/es/workflow-editor/src/main/{admin-save-dialog.vue.js → admin-save-dialog.vue.mjs} +1 -1
- package/es/workflow-editor/src/main/{canvas.vue.js → canvas.vue.mjs} +29 -29
- package/es/workflow-editor/src/main/{context-menu.vue.js → context-menu.vue.mjs} +3 -3
- package/es/workflow-editor/src/main/{icon-svg.vue.js → icon-svg.vue.mjs} +4 -4
- package/es/workflow-editor/src/main/{selection-region.vue.js → selection-region.vue.mjs} +3 -3
- package/es/workflow-editor/src/main/{tache-history-tooltip.vue.js → tache-history-tooltip.vue.mjs} +2 -2
- package/es/workflow-editor/src/main/{tache-subprocess-history-dialog.vue.js → tache-subprocess-history-dialog.vue.mjs} +2 -2
- package/es/workflow-editor/src/main/{toolbox.vue.js → toolbox.vue.mjs} +6 -6
- package/es/workflow-editor/src/main/{wf-history-canvas.vue.js → wf-history-canvas.vue.mjs} +17 -17
- package/es/workflow-editor/src/properties-editors/auto-task/{basic-properties.vue.js → basic-properties.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/{auto-task.vue.js → auto-task.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/common/{additional-condition-utils.js → additional-condition-utils.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/common/{additional-condition.vue.js → additional-condition.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/common/{auto-filled-fields-utils.js → auto-filled-fields-utils.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/common/{auto-filled-fields.vue.js → auto-filled-fields.vue.mjs} +6 -6
- package/es/workflow-editor/src/properties-editors/common/{common-notice-tool.vue.js → common-notice-tool.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/common/{common-user-condition.vue.js → common-user-condition.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{form-fields.vue.js → form-fields.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/common/{i18n-input.vue.js → i18n-input.vue.mjs} +6 -6
- package/es/workflow-editor/src/properties-editors/common/{i18n-set-dialog.vue.js → i18n-set-dialog.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/common/{notice-reminder.vue.js → notice-reminder.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/common/{notice.vue.js → notice.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{reminder.vue.js → reminder.vue.mjs} +5 -5
- package/es/workflow-editor/src/properties-editors/common/{select-mail-template.vue.js → select-mail-template.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/common/{system-role-tree-inline.vue.js → system-role-tree-inline.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/common/{system-role-tree.vue.js → system-role-tree.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/common/{task-title.vue.js → task-title.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{transactor-settings.vue.js → transactor-settings.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{user-selection.vue.js → user-selection.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{value-selection-dialog.vue.js → value-selection-dialog.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{variables.vue.js → variables.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/copy-task/{basic-properties.vue.js → basic-properties.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/copy-task/{permission-settings.vue.js → permission-settings.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/{copy-task.vue.js → copy-task.vue.mjs} +11 -11
- package/es/workflow-editor/src/properties-editors/{decision.vue.js → decision.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/{fork.vue.js → fork.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/{human-decision.vue.js → human-decision.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/human-task/{additional-condition-dialog.vue.js → additional-condition-dialog.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/human-task/{basic-properties.vue.js → basic-properties.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/human-task/{componentsConfigUtil.js → componentsConfigUtil.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/human-task/{custom-actions.vue.js → custom-actions.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/human-task/{editable-child-field-setting.vue.js → editable-child-field-setting.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/human-task/{editable-child-fields.vue.js → editable-child-fields.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/human-task/{editable-field-selection.vue.js → editable-field-selection.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/human-task/{editable-fields.vue.js → editable-fields.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/human-task/{events.vue.js → events.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/human-task/{permission-settings.vue.js → permission-settings.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/human-task/{selection-conditions.vue.js → selection-conditions.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/{human-task.vue.js → human-task.vue.mjs} +9 -9
- package/es/workflow-editor/src/properties-editors/{join.vue.js → join.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/process/{basic-properties.vue.js → basic-properties.vue.mjs} +6 -6
- package/es/workflow-editor/src/properties-editors/process/{events.vue.js → events.vue.mjs} +6 -6
- package/es/workflow-editor/src/properties-editors/process/{notice-settings.vue.js → notice-settings.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/process/{parameter-settings.vue.js → parameter-settings.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/process/{permission-settings.vue.js → permission-settings.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/process/{selectPage.vue.js → selectPage.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/{process.vue.js → process.vue.mjs} +8 -8
- package/es/workflow-editor/src/properties-editors/subprocess/{basic-properties.vue.js → basic-properties.vue.mjs} +8 -8
- package/es/workflow-editor/src/properties-editors/subprocess/{events.vue.js → events.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/subprocess/{field-mappings.vue.js → field-mappings.vue.mjs} +5 -5
- package/es/workflow-editor/src/properties-editors/subprocess/{transactor-settings.vue.js → transactor-settings.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/{subprocess.vue.js → subprocess.vue.mjs} +5 -5
- package/es/workflow-editor/src/properties-editors/transition/{basic-properties.vue.js → basic-properties.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/{transition.vue.js → transition.vue.mjs} +9 -9
- package/es/workflow-editor/src/properties-editors/{user-condition.js → user-condition.mjs} +1 -1
- package/es/workflow-editor/src/store/{workflow-editor.js → workflow-editor.mjs} +1 -1
- package/es/workflow-editor/src/taches/{auto-task.vue.js → auto-task.vue.mjs} +7 -7
- package/es/workflow-editor/src/taches/{common-methods.js → common-methods.mjs} +1 -1
- package/es/workflow-editor/src/taches/{copy-task.vue.js → copy-task.vue.mjs} +7 -7
- package/es/workflow-editor/src/taches/{custom-task.vue.js → custom-task.vue.mjs} +4 -4
- package/es/workflow-editor/src/taches/{decision.vue.js → decision.vue.mjs} +5 -5
- package/es/workflow-editor/src/taches/{end.vue.js → end.vue.mjs} +4 -4
- package/es/workflow-editor/src/taches/{fork.vue.js → fork.vue.mjs} +5 -5
- package/es/workflow-editor/src/taches/{human-decision.vue.js → human-decision.vue.mjs} +7 -7
- package/es/workflow-editor/src/taches/{human-task.vue.js → human-task.vue.mjs} +5 -5
- package/es/workflow-editor/src/taches/{join.vue.js → join.vue.mjs} +4 -4
- package/es/workflow-editor/src/taches/{joint.vue.js → joint.vue.mjs} +3 -3
- package/es/workflow-editor/src/taches/{start.vue.js → start.vue.mjs} +4 -4
- package/es/workflow-editor/src/taches/{subprocess.vue.js → subprocess.vue.mjs} +7 -7
- package/es/workflow-editor/src/taches/{tache-resizer.vue.js → tache-resizer.vue.mjs} +2 -2
- package/es/workflow-editor/src/transitions/{broken-line.vue.js → broken-line.vue.mjs} +3 -3
- package/es/workflow-editor/src/transitions/{curve-line.vue.js → curve-line.vue.mjs} +3 -3
- package/es/workflow-editor/src/transitions/{straight-line.vue.js → straight-line.vue.mjs} +2 -2
- package/es/workflow-editor/src/transitions/{transition.vue.js → transition.vue.mjs} +8 -8
- package/es/workflow-editor/src/transitions/{virtual-transition.vue.js → virtual-transition.vue.mjs} +3 -3
- package/es/workflow-editor/src/{util.js → util.mjs} +13 -13
- package/es/workflow-editor/src/{workflow-editor.vue.js → workflow-editor.vue.mjs} +16 -16
- package/es/workflow-history/index.mjs +8 -0
- package/es/{workflow-editor/src/workflow-history.vue.js → workflow-history/src/workflow-history.vue.mjs} +13 -13
- package/lib/index.cjs +4 -4
- package/lib/plugins/formValidatorUtil.cjs +8 -8
- package/lib/style.css +110 -110
- package/lib/workflow-editor/index.cjs +4 -4
- package/lib/workflow-history/index.cjs +7 -0
- package/lib/{workflow-editor → workflow-history}/src/workflow-history.vue.cjs +3 -3
- package/package.json +3 -2
- package/es/index.js +0 -17
- package/es/src/i18n/i18n.js +0 -7
- package/es/workflow-editor/index.js +0 -10
- /package/es/_virtual/{_plugin-vue_export-helper.js → _plugin-vue_export-helper.mjs} +0 -0
- /package/es/src/i18n/langs/{cn.js → cn.mjs} +0 -0
- /package/es/src/i18n/langs/{en.js → en.mjs} +0 -0
- /package/es/workflow-editor/src/{api.js → api.mjs} +0 -0
- /package/es/workflow-editor/src/assets/{wf-editor-icons.js → wf-editor-icons.mjs} +0 -0
- /package/es/workflow-editor/src/json-object-templates/{transition.js → transition.mjs} +0 -0
- /package/es/workflow-editor/src/main/{canvas.vue2.js → canvas.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{context-menu.vue2.js → context-menu.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{icon-svg.vue2.js → icon-svg.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{selection-region.vue2.js → selection-region.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{tache-history-tooltip.vue2.js → tache-history-tooltip.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{tache-subprocess-history-dialog.vue2.js → tache-subprocess-history-dialog.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{toolbox.vue2.js → toolbox.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{wf-history-canvas.vue2.js → wf-history-canvas.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/{process-service.js → process-service.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/auto-task/{basic-properties.vue2.js → basic-properties.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{auto-task.vue2.js → auto-task.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{form-fields-utils.js → form-fields-utils.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{form-fields.vue2.js → form-fields.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{notice-reminder.vue2.js → notice-reminder.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{reminder.vue2.js → reminder.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{system-role-tree-inline.vue2.js → system-role-tree-inline.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{system-role-tree.vue2.js → system-role-tree.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{task-title.vue2.js → task-title.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{value-selection-dialog.vue2.js → value-selection-dialog.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/copy-task/{basic-properties.vue2.js → basic-properties.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/copy-task/{permission-settings.vue2.js → permission-settings.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{copy-task.vue2.js → copy-task.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/human-task/{basic-properties.vue2.js → basic-properties.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/human-task/{editable-field-selection.vue2.js → editable-field-selection.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/human-task/{permission-settings.vue2.js → permission-settings.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{human-task.vue2.js → human-task.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{subprocess.vue2.js → subprocess.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{transition.vue2.js → transition.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/store/{getters.js → getters.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{decision.vue2.js → decision.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{end.vue2.js → end.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{fork.vue2.js → fork.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{human-decision.vue2.js → human-decision.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{join.vue2.js → join.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{joint.vue2.js → joint.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{start.vue2.js → start.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{tache-resizer.vue2.js → tache-resizer.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/transitions/{broken-line.vue2.js → broken-line.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/transitions/{curve-line.vue2.js → curve-line.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/transitions/{transition.vue2.js → transition.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/transitions/{virtual-transition.vue2.js → virtual-transition.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/{workflow-editor.vue2.js → workflow-editor.vue2.mjs} +0 -0
- /package/es/{workflow-editor/src/workflow-history.vue2.js → workflow-history/src/workflow-history.vue2.mjs} +0 -0
- /package/lib/{workflow-editor → workflow-history}/src/workflow-history.vue2.cjs +0 -0
package/dist/index.full.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
!function(e, t) {
|
|
2
|
-
"object" == typeof exports && "undefined" != typeof module ? t(exports, require("vuex"), require("agilebuilder-ui"), require("vue-i18n"), require("vue"), require("xml-js"), require("file-saver"), require("prismjs")) : "function" == typeof define && define.amd ? define(["exports", "vuex", "agilebuilder-ui", "vue-i18n", "vue", "xml-js", "file-saver", "prismjs"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).wfEditor = {}, e.vuex, e.agilebuilderUi, e.vueI18n, e.vue, e.convert, e.FileSaver, e.Prism);
|
|
3
|
-
}(this, function(e, t, o, l, r, n,
|
|
2
|
+
"object" == typeof exports && "undefined" != typeof module ? t(exports, require("vuex"), require("agilebuilder-ui"), require("vue-i18n"), require("vue"), require("xml-js"), require("file-saver"), require("prismjs"), require("async-validator")) : "function" == typeof define && define.amd ? define(["exports", "vuex", "agilebuilder-ui", "vue-i18n", "vue", "xml-js", "file-saver", "prismjs", "async-validator"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).wfEditor = {}, e.vuex, e.agilebuilderUi, e.vueI18n, e.vue, e.convert, e.FileSaver, e.Prism, e.Validator);
|
|
3
|
+
}(this, function(e, t, o, l, r, i, n, a, s) {
|
|
4
4
|
"use strict";
|
|
5
5
|
!function(e2) {
|
|
6
6
|
var t2, o2 = '<svg><symbol id="icon-switch" viewBox="0 0 1024 1024"><path d="M701.74225 917.574059c-7.419408 0-14.960447-2.675852-20.9203-8.149187-12.649483-11.554816-13.500891-31.13719-2.067704-43.786673l119.318684-130.75187L679.119135 608.634755c-11.798076-12.527854-11.189928-32.110227 1.337926-43.786673 12.527854-11.798076 32.110227-11.189928 43.786673 1.337926l138.657798 147.171873c11.068298 11.798076 11.311557 30.164153 0.364889 42.205488l-138.657798 152.037059c-6.081482 6.568001-14.473928 9.973631-22.866373 9.973631z" fill="" ></path><path d="M806.343746 786.21404h-581.389713c-82.100012 0-148.996318-66.896306-148.996318-148.996318v-245.691888c0-17.14978 13.86578-31.01556 31.01556-31.01556s31.01556 13.86578 31.01556 31.01556v245.691888c0 47.922081 39.043117 86.965198 86.965198 86.965198h581.389713c17.14978 0 31.01556 13.86578 31.01556 31.01556s-13.86578 31.01556-31.01556 31.01556z" fill="" ></path><path d="M322.25775 468.76066c-8.270816 0-16.420002-3.284-22.623114-9.730371l-138.657798-147.171874c-11.068298-11.798076-11.311557-30.164153-0.364889-42.205487l138.657798-152.037059c11.554816-12.649483 31.13719-13.500891 43.786673-2.067704 12.649483 11.554816 13.500891 31.13719 2.067704 43.786673l-119.197054 130.8735 118.953795 126.251574c11.798076 12.527854 11.189928 32.110227-1.337926 43.786673-5.959853 5.716593-13.62252 8.514075-21.285189 8.514075z" fill="" ></path><path d="M917.026725 664.584392c-17.14978 0-31.01556-13.86578-31.01556-31.01556v-245.691887c0-47.922081-39.043117-86.965198-86.965198-86.965198h-581.389713c-17.14978 0-31.01556-13.86578-31.01556-31.01556s13.86578-31.01556 31.01556-31.01556h581.389713c82.100012 0 148.996318 66.896306 148.996318 148.996318v245.691887c0 17.14978-13.86578 31.01556-31.01556 31.01556z" fill="" ></path></symbol><symbol id="icon-properties" viewBox="0 0 1024 1024"><path d="M512.980327 64.636113c-246.706845 0-447.421192 200.714348-447.421192 447.421192 0 246.700705 200.714348 447.415053 447.421192 447.415053s447.421192-200.714348 447.421193-447.415053c0-246.706845-200.715371-447.421192-447.421193-447.421192z m0 833.54532c-212.913181 0-386.130268-173.21811-386.130267-386.125151 0-212.913181 173.21811-386.130268 386.130267-386.130268s386.130268 173.21811 386.130268 386.130268c0 212.908064-173.21811 386.125151-386.130268 386.125151z" ></path><path d="M606.931093 640.392182c-11.621688 0-55.209416 68.771293-79.423911 68.771293-6.780427 0-9.685593-5.813403-9.685593-11.624758 0-13.558807 8.715499-33.899064 13.558807-45.520753l57.147558-156.913773c28.088732-77.487815-8.717546-98.795097-42.617633-98.795097-46.491871 0-88.142479 23.245424-120.105449 54.240345-10.654664 10.654664-45.523823 44.554752-45.523823 59.083654 0 4.844332 4.843308 10.655687 10.655688 10.655687 14.528901 0 52.302203-69.739341 82.328053-69.739341 5.814426 0 13.561877 6.780427 7.751545 21.309329L426.773943 612.304474c-5.811356 13.558807-32.93204 79.423911-32.93204 118.167306 0 30.994921 19.373233 44.554752 48.432059 44.554752 80.391958 0 174.34477-99.765191 174.34477-123.009591-0.002047-6.780427-5.814426-11.624758-9.687639-11.624759zM590.464049 249.081938c-35.836183 0-65.86408 28.088732-65.86408 63.927985 0 32.93204 21.310352 55.210439 54.242392 54.239322 36.805254 0 66.832128-27.120684 66.832128-63.927985 0-32.92897-23.24747-54.239322-55.21044-54.239322z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M409.6 163.84h163.84v40.96h-163.84zM532.48 368.64h40.96v368.64h-40.96zM409.6 368.64h40.96v368.64h-40.96z" ></path><path d="M286.72 245.76v614.4h409.6V245.76H286.72z m450.56 0v655.36H245.76V245.76H204.8V204.8h573.44v40.96h-40.96z" ></path></symbol><symbol id="icon-custom-task" viewBox="0 0 1024 1024"><path d="M756.63132445 483.81952l220.74709333-209.7152a112.86755555 112.86755555 0 0 0 0-159.61656889l-55.08664889-55.08664889a112.86755555 112.86755555 0 0 0-157.54126222-2.00248889L549.13706667 262.12579555 339.71313778 38.39317333l-1.71121778-1.78403555a73.76440889 73.76440889 0 0 0-104.34787555-0.43690667L76.44046222 193.38581333a73.728 73.728 0 0 0-1.27431111 102.56384L281.49532445 516.36906667 86.41649778 701.69031111A112.94037333 112.94037333 0 0 0 54.26744889 757.76L21.28099555 898.55317333a74.67463111 74.67463111 0 0 0 93.7528889 88.65564445L250.76622222 947.23185778a113.48650667 113.48650667 0 0 0 45.8752-26.43285333l192.34816-182.73621334 231.66976 247.50762667 1.71121778 1.78403555a73.76440889 73.76440889 0 0 0 104.34787555 0.43690667L983.93201778 830.57777778a73.728 73.728 0 0 0 1.27431111-102.56384L756.63132445 483.81952zM292.89130667 823.95136l-102.52743112-102.52743111a35.82634667 35.82634667 0 0 0-11.14112-7.39100444l509.2511289-483.80131556 107.26058666 107.26058666c1.60199111 1.60199111 3.60448 2.36657778 5.42492444 3.60448l-508.26808888 482.85468445z m521.99424-713.83267555a40.04977778 40.04977778 0 0 1 55.88764444 0.72817777l55.08664889 55.08664889c15.65582222 15.65582222 15.65582222 40.99640889-0.72817778 57.344l-73.32750222 69.65020444c-1.45635555-2.36657778-2.54862222-4.87879111-4.62392889-6.95409777l-105.94986666-105.94986667 73.65518222-69.90506666z m-557.16522667 274.34097777c9.10222222-0.14563555 18.20444445-3.60448 25.15854222-10.55857777l54.61333333-54.61333334a36.37248 36.37248 0 1 0-51.48216888-51.48216889l-54.61333334 54.61333333a36.0448 36.0448 0 0 0-10.15808 23.04682667L128.35953778 246.21511111c-0.58254222-0.58254222-0.58254222-1.16508445-0.40049778-1.31072L285.17262222 87.6544c0.14563555-0.14563555 0.76458667-0.14563555 1.41994667 0.47331555l209.78801778 224.13312L334.32462222 466.23402667l-76.60430222-81.77436445zM94.46286222 917.37656889a1.82044445 1.82044445 0 0 1-2.29376-2.18453334L125.15555555 774.39886222c1.12867555-4.73315555 3.34961778-9.06581333 6.04387556-13.07079111a36.19043555 36.19043555 0 0 0 7.68227556 11.54161778l100.45212444 100.45212444a39.90414222 39.90414222 0 0 1-9.10222222 4.04138667l-135.76874667 40.01336889zM775.23626667 936.3456c-0.14563555 0.14563555-0.76458667 0.14563555-1.41994667-0.47331555l-142.90488889-152.66247112a35.53507555 35.53507555 0 0 0 16.01991111-8.77454222l54.61333333-54.61333333a36.37248 36.37248 0 1 0-51.48216888-51.48216889l-54.61333334 54.61333333a36.0448 36.0448 0 0 0-8.30122666 13.54410667l-45.40188445-48.53304889 162.05596445-153.97319111 228.21091555 243.83032889c0.54613333 0.58254222 0.54613333 1.16508445 0.40049778 1.31072L775.23626667 936.3456z" ></path></symbol><symbol id="icon-join" viewBox="0 0 1024 1024"><path d="M987.136 552.96c5.46133333-5.46133333 10.92266667-13.65333333 10.92266667-24.576 0-8.192-2.73066667-16.384-10.92266667-24.576L817.83466667 329.04533333c-5.46133333-2.73066667-13.65333333-8.192-24.576-8.192-8.192 0-19.11466667 2.73066667-24.576 10.92266667l-177.49333334 174.76266667C585.728 512 580.26666667 520.192 580.26666667 531.11466667s2.73066667 19.11466667 10.92266666 24.576l177.49333334 172.032c5.46133333 5.46133333 13.65333333 10.92266667 24.576 10.92266666 8.192 0 16.384-2.73066667 24.576-10.92266666L987.136 552.96zM25.94133333 970.752c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667h270.336c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576v-68.26666667h152.91733333c8.192 0 16.384-2.73066667 24.576-10.92266666 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576v-682.66666667c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H367.27466667V47.78666667c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H61.44c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v221.184c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266666h270.336c8.192 0 16.384-2.73066667 24.576-10.92266666 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V252.58666667h68.26666666c8.192 0 16.384 2.73066667 24.576 10.92266666 5.46133333 5.46133333 10.92266667 16.384 10.92266667 24.576V785.06666667c0 8.192-2.73066667 16.384-10.92266667 24.576-5.46133333 5.46133333-16.384 10.92266667-24.576 10.92266666h-68.26666666v-68.26666666c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H61.44c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v218.45333333z" ></path></symbol><symbol id="icon-fork" viewBox="0 0 1024 1024"><path d="M36.864 471.04c-5.46133333 5.46133333-10.92266667 13.65333333-10.92266667 24.576 0 8.192 2.73066667 16.384 10.92266667 24.576l169.30133333 174.76266667c5.46133333 2.73066667 13.65333333 8.192 24.576 8.192 8.192 0 19.11466667-2.73066667 24.576-10.92266667l177.49333334-174.76266667c5.46133333-5.46133333 10.92266667-13.65333333 10.92266666-24.576s-2.73066667-19.11466667-10.92266666-24.576l-177.49333334-172.032c-5.46133333-5.46133333-13.65333333-10.92266667-24.576-10.92266666-8.192 0-16.384 2.73066667-24.576 10.92266666L36.864 471.04zM998.05866667 53.248c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H692.224c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v68.26666667H503.808c-8.192 0-16.384 2.73066667-24.576 10.92266666-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v682.66666667c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667h152.91733333v101.03466666c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667H962.56c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V755.02933333c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266666H692.224c-8.192 0-16.384 2.73066667-24.576 10.92266666-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v16.384h-68.26666666c-8.192 0-16.384-2.73066667-24.576-10.92266666-5.46133333-5.46133333-10.92266667-16.384-10.92266667-24.576V238.93333333c0-8.192 2.73066667-16.384 10.92266667-24.576 5.46133333-5.46133333 16.384-10.92266667 24.576-10.92266666h68.26666666v68.26666666c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667H962.56c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V53.248z" ></path></symbol><symbol id="icon-copy-task" viewBox="0 0 1024 1024"><path d="M636.30222222 513.25155555c11.71911111-6.82666667 21.16266667-26.39644445 1.36533334-35.72622222-6.71288889-3.072-13.65333333-5.91644445-20.59377778-8.64711111C666.45333334 424.61866667 697.74222222 360.56177778 697.74222222 288.99555555c0-133.34755555-108.20266667-241.55022222-241.55022222-241.55022222S214.64177778 155.648 214.64177778 288.99555555c0 71.56622222 31.28888889 135.62311111 80.66844444 179.88266667-146.31822222 57.45777778-254.29333333 191.03288889-275.34222222 352.02844445-0.22755555 1.93422222-0.34133333 3.86844445-0.34133333 5.80266666 0 30.37866667 24.576 55.06844445 55.06844445 55.06844445H532.76444445c-21.04888889-38.912-33.10933333-83.51288889-33.10933333-130.84444445 0.11377778-101.48977778 55.06844445-190.00888889 136.6471111-237.68177778z m31.63022223 227.8968889l78.05155555 37.09155555 98.98666667-98.98666667z m133.91644444 133.91644444l56.88888889-171.23555556-94.09422222 94.09422222z" ></path><path d="M774.76977778 524.97066667c-124.47288889 0-225.84888889 101.26222222-225.84888889 225.84888888 0 124.47288889 101.26222222 225.84888889 225.84888889 225.8488889s225.84888889-101.26222222 225.84888889-225.8488889c0-124.47288889-101.26222222-225.84888889-225.84888889-225.84888888z m129.47911111 128l-87.15377777 262.25777778c-1.70666667 5.23377778-6.48533333 8.87466667-11.94666667 9.216h-0.91022223c-5.12 0-10.01244445-2.95822222-12.17422222-7.62311112l-54.49955555-112.64-110.93333333-52.90666666c-3.29955555-1.59288889-5.80266667-4.32355555-6.94044445-7.73688889-2.50311111-7.05422222 1.25155555-14.79111111 8.30577778-17.29422223l258.95822222-90.45333333c1.47911111-0.45511111 2.95822222-0.79644445 4.43733333-0.79644444 3.64088889 0 6.94044445 1.36533333 9.55733334 3.86844444 3.52711111 3.75466667 4.89244445 9.216 3.29955555 14.10844445z" ></path></symbol><symbol id="icon-subprocess" viewBox="0 0 1024 1024"><path d="M1023.78666667 129.49333333c-0.32-6.93333333-1.28-13.86666667-2.56-20.48s-3.2-13.12-5.54666667-19.41333333c-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.73333333-8.85333333-8.42666667-17.28-13.86666667-25.06666666-0.32-0.53333333-0.74666667-1.06666667-1.06666667-1.49333334-0.96-1.28-1.92-2.66666667-2.98666666-3.94666666-0.32-0.32-0.53333333-0.74666667-0.85333334-1.06666667-2.56-3.2-5.22666667-6.29333333-8-9.28l-0.21333333-0.21333333c-5.97333333-6.29333333-12.58666667-12.05333333-19.73333333-17.06666667-1.49333333-1.06666667-2.98666667-2.02666667-4.48-3.09333333-1.6-1.06666667-3.2-2.02666667-4.90666667-3.09333334-0.85333333-0.53333333-1.81333333-1.06666667-2.66666667-1.6-1.28-0.74666667-2.45333333-1.38666667-3.73333333-2.02666666-0.64-0.32-1.28-0.64-2.02666667-1.06666667-1.28-0.64-2.66666667-1.28-4.05333333-1.92-2.56-1.17333333-5.22666667-2.34666667-7.89333333-3.41333333-1.49333333-0.64-3.09333333-1.17333333-4.58666667-1.70666667-2.34666667-0.85333333-4.8-1.6-7.25333333-2.24-3.2-0.96-6.50666667-1.70666667-9.81333334-2.45333333-5.54666667-1.17333333-11.2-1.92-16.96-2.34666667-3.52-0.21333333-6.93333333-0.42666667-10.45333333-0.42666667s-7.04 0.10666667-10.45333333 0.42666667c-5.76 0.42666667-11.41333333 1.28-16.96 2.34666667-3.30666667 0.64-6.61333333 1.49333333-9.81333334 2.45333333-2.45333333 0.64-4.8 1.49333333-7.25333333 2.24-1.49333333 0.53333333-3.09333333 1.06666667-4.58666667 1.70666667-2.66666667 1.06666667-5.33333333 2.13333333-7.89333333 3.41333333-1.38666667 0.64-2.66666667 1.28-4.05333333 1.92-0.64 0.32-1.28 0.64-2.02666667 1.06666667-1.28 0.64-2.56 1.38666667-3.73333333 2.02666666-0.96 0.53333333-1.81333333 1.06666667-2.66666667 1.6-1.6 0.96-3.30666667 2.02666667-4.90666667 3.09333334-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333333-7.14666667 5.01333333-13.76 10.77333333-19.73333333 17.06666667l-0.21333333 0.21333333c-2.77333333 2.98666667-5.44 6.08-8 9.28-0.32 0.32-0.53333333 0.74666667-0.85333334 1.06666667-0.96 1.28-2.02666667 2.56-2.98666666 3.94666666-0.32 0.53333333-0.74666667 1.06666667-1.06666667 1.49333334-5.44 7.78666667-10.13333333 16.21333333-13.86666667 25.06666666-0.85333333 2.02666667-1.70666667 4.16-2.45333333 6.18666667-2.34666667 6.29333333-4.16 12.8-5.54666667 19.41333333s-2.24 13.54666667-2.56 20.48c-0.10666667 2.34666667-0.21333333 4.69333333-0.21333333 7.04 0 3.52 0.10666667 7.04 0.42666667 10.45333334 0.42666667 5.76 1.28 11.41333333 2.34666666 16.96 0.64 3.30666667 1.49333333 6.61333333 2.45333334 9.81333333 5.22666667 18.34666667 14.18666667 35.09333333 26.02666666 49.49333333 0.74666667 0.85333333 1.38666667 1.70666667 2.13333334 2.45333334 4.16 4.8 8.74666667 9.38666667 13.54666666 13.65333333l-105.81333333 306.98666667c-3.09333333-0.21333333-6.18666667-0.32-9.28-0.32-14.93333333 0-29.33333333 2.45333333-42.77333333 6.82666666-0.64 0.21333333-1.28 0.42666667-1.81333334 0.64-1.49333333 0.53333333-3.09333333 1.06666667-4.58666666 1.70666667-2.34666667 0.96-4.69333333 1.92-7.04 2.98666667L466.56 395.62666667c2.34666667-5.44 4.37333333-11.2 6.08-16.96 0.96-3.2 1.70666667-6.50666667 2.45333333-9.81333334 1.17333333-5.54666667 1.92-11.2 2.34666667-16.96 0.21333333-3.52 0.42666667-6.93333333 0.42666667-10.45333333 0-2.34666667-0.10666667-4.69333333-0.21333334-7.04-0.32-6.93333333-1.28-13.86666667-2.56-20.48-7.04-34.45333333-27.09333333-64.10666667-54.72-83.84-0.85333333-0.64-1.81333333-1.28-2.66666666-1.92-6.4-4.26666667-13.12-8.10666667-20.16-11.30666667-2.02666667-0.96-4.05333333-1.81333333-6.08-2.56s-4.16-1.6-6.29333334-2.34666666c-13.76-4.69333333-28.48-7.14666667-43.84-7.14666667-3.52 0-7.04 0.10666667-10.45333333 0.42666667-5.76 0.42666667-11.41333333 1.28-16.96 2.34666666-3.30666667 0.64-6.61333333 1.49333333-9.81333333 2.45333334-2.45333333 0.64-4.8 1.49333333-7.25333334 2.24-1.49333333 0.53333333-3.09333333 1.06666667-4.58666666 1.70666666-2.66666667 1.06666667-5.33333333 2.13333333-7.89333334 3.41333334-1.38666667 0.64-2.66666667 1.28-4.05333333 1.92-0.64 0.32-1.28 0.64-2.02666667 1.06666666-1.28 0.64-2.56 1.38666667-3.73333333 2.02666667-0.96 0.53333333-1.81333333 1.06666667-2.66666667 1.6-1.6 0.96-3.30666667 2.02666667-4.90666666 3.09333333-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333334-7.14666667 5.01333333-13.76 10.77333333-19.73333334 17.06666666l-0.21333333 0.21333334c-2.77333333 2.98666667-5.44 6.08-8 9.28-0.32 0.32-0.53333333 0.74666667-0.85333333 1.06666666-0.96 1.28-2.02666667 2.56-2.98666667 3.94666667-0.32 0.53333333-0.74666667 1.06666667-1.06666667 1.49333333-5.44 7.78666667-10.13333333 16.21333333-13.86666666 25.06666667-0.85333333 2.02666667-1.70666667 4.16-2.45333334 6.18666667-2.34666667 6.29333333-4.16 12.8-5.54666666 19.41333333s-2.24 13.54666667-2.56 20.48c-0.10666667 2.34666667-0.21333333 4.69333333-0.21333334 7.04 0 3.52 0.10666667 7.04 0.42666667 10.45333333 0.42666667 5.76 1.28 11.41333333 2.34666667 16.96 0.64 3.30666667 1.49333333 6.61333333 2.45333333 9.81333334 5.22666667 18.34666667 14.18666667 35.09333333 26.02666667 49.49333333 0.74666667 0.85333333 1.38666667 1.70666667 2.13333333 2.45333333 0.64 0.74666667 1.28 1.49333333 1.92 2.13333334L129.6 751.04c-12.48 0.64-24.53333333 2.88-35.84 6.61333333-0.64 0.21333333-1.28 0.42666667-1.81333333 0.64-1.49333333 0.53333333-3.09333333 1.06666667-4.58666667 1.70666667-2.66666667 1.06666667-5.33333333 2.13333333-7.89333333 3.41333333-3.30666667 1.49333333-6.61333333 3.2-9.81333334 5.01333334-0.96 0.53333333-1.81333333 1.06666667-2.66666666 1.6-1.6 0.96-3.30666667 2.02666667-4.90666667 3.09333333-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333333-1.81333333 1.28-3.52 2.56-5.22666667 3.94666667-0.85333333 0.64-1.70666667 1.38666667-2.56 2.02666667-2.56 2.13333333-5.01333333 4.26666667-7.36 6.50666666-0.74666667 0.74666667-1.6 1.49333333-2.34666666 2.24-1.49333333 1.49333333-3.09333333 3.09333333-4.48 4.69333334-1.49333333 1.6-2.88 3.30666667-4.26666667 4.90666666-2.77333333 3.41333333-5.44 6.82666667-7.89333333 10.56-4.90666667 7.25333333-9.17333333 15.04-12.58666667 23.14666667-0.85333333 2.02666667-1.70666667 4.16-2.45333333 6.18666667-0.74666667 2.13333333-1.49333333 4.16-2.13333334 6.29333333-1.28 4.26666667-2.45333333 8.64-3.41333333 13.12s-1.6 8.96-2.02666667 13.54666667c-0.42666667 4.58666667-0.74666667 9.28-0.74666666 13.97333333 0 75.41333333 61.12 136.53333333 136.53333333 136.53333333s136.53333333-61.12 136.53333333-136.53333333c0-4.69333333-0.21333333-9.38666667-0.74666666-13.97333333-0.42666667-4.58666667-1.17333333-9.06666667-2.02666667-13.54666667s-2.02666667-8.85333333-3.41333333-13.12c-0.64-2.13333333-1.38666667-4.26666667-2.13333334-6.29333333-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.41333333-8.21333333-7.68-15.89333333-12.58666667-23.14666667-2.45333333-3.62666667-5.12-7.14666667-7.89333333-10.56-1.38666667-1.70666667-2.77333333-3.30666667-4.26666667-4.90666666s-2.98666667-3.2-4.48-4.69333334c-0.74666667-0.74666667-1.6-1.49333333-2.34666666-2.24-1.38666667-1.38666667-2.88-2.66666667-4.37333334-3.94666666l106.45333334-307.2c2.77333333 0.21333333 5.65333333 0.32 8.42666666 0.32 16.53333333 0 32.32-2.88 46.93333334-8.32 1.81333333-0.64 3.52-1.38666667 5.33333333-2.13333334l162.13333333 164.8c-0.42666667 1.17333333-0.85333333 2.24-1.28 3.41333334-0.74666667 2.13333333-1.49333333 4.16-2.13333333 6.29333333-1.28 4.26666667-2.45333333 8.64-3.41333333 13.12s-1.6 8.96-2.02666667 13.54666667c-0.42666667 4.58666667-0.74666667 9.28-0.74666667 13.97333333 0 75.41333333 61.12 136.53333333 136.53333334 136.53333333s136.53333333-61.12 136.53333333-136.53333333c0-4.69333333-0.21333333-9.38666667-0.74666667-13.97333333-0.42666667-4.58666667-1.17333333-9.06666667-2.02666666-13.54666667s-2.02666667-8.85333333-3.41333334-13.12c-0.64-2.13333333-1.38666667-4.26666667-2.13333333-6.29333333-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.41333333-8.21333333-7.68-15.89333333-12.58666667-23.14666667-2.45333333-3.62666667-5.12-7.14666667-7.89333333-10.56-1.06666667-1.38666667-2.24-2.66666667-3.41333334-3.94666666l109.97333334-318.93333334c1.17333333-0.10666667 2.24-0.10666667 3.41333333-0.21333333 5.76-0.42666667 11.41333333-1.28 16.96-2.34666667 3.30666667-0.64 6.61333333-1.49333333 9.81333333-2.45333333 18.34666667-5.22666667 35.09333333-14.18666667 49.49333334-26.02666667 0.85333333-0.74666667 1.70666667-1.38666667 2.45333333-2.13333333 4.90666667-4.26666667 9.6-8.96 13.86666667-13.86666667 0.74666667-0.85333333 1.38666667-1.70666667 2.13333333-2.45333333 11.84-14.29333333 20.8-31.14666667 26.02666667-49.49333333 0.96-3.2 1.70666667-6.50666667 2.45333333-9.81333334 1.17333333-5.54666667 1.92-11.2 2.34666667-16.96 0.21333333-3.52 0.42666667-6.93333333 0.42666666-10.45333333 0.10666667-2.45333333 0-4.8-0.10666666-7.14666667z" ></path></symbol><symbol id="icon-human-decision" viewBox="0 0 1024 1024"><path d="M519.5 594.47733333c-4.1 10.399-6.1 21.398-6.1 32.197 0 23.198 8.899 46.395 26.497 64.294l29.897 29.997 1.7 1.4c17.398 16.798 39.996 24.997 62.494 24.997 22.998 0 46.396-8.7 63.794-26.397h0.2l176.883-176.983 1.6-1.5c16.698-17.598 24.797-40.196 24.797-62.794 0-23.197-8.8-46.195-26.397-63.794h0.1l0.1-0.4-29.898-29.797c-17.598-17.498-40.796-26.297-64.293-26.297-11 0-21.998 1.9-32.497 5.9L557.696 174.41733333c4.2-10.399 6.099-21.498 6.099-32.497 0-23.198-9-46.395-26.697-64.293L507.2 47.83033333C489.602 30.23333333 466.404 21.33333333 443.107 21.33333333c-23.198 0-46.696 8.9-64.294 26.497L201.93 224.81333333l-1.5 1.5c-16.398 17.698-24.797 40.296-24.797 62.494 0 23.398 8.799 46.595 26.397 64.394l29.897 29.897 1.7 1.4c17.598 16.898 40.096 25.097 62.494 25.097 10.999 0 21.898-2.2 32.497-6l18.898 18.999L31.546 738.86333333C10.55 759.86133333 0.05 787.45833333 0.05 814.95533333c0 27.798 10.499 55.495 31.497 76.393 21.198 21.098 48.795 31.597 76.392 31.597 27.698 0 55.195-10.499 76.293-31.597l315.97-316.07 19.297 19.199zM959.956 981.33933333H512c-35.197 0-63.994-28.797-63.994-63.994 0-35.196 28.797-63.993 63.994-63.993h447.956c35.197 0 63.994 28.797 63.994 63.993 0 35.197-28.797 63.994-63.994 63.994z" ></path></symbol><symbol id="icon-human-task" viewBox="0 0 1024 1024"><path d="M924.33066667 123.33511111H776.87466667v163.84h-546.13333334v-163.84H99.66933333c-19.11466667 0-32.768 19.11466667-32.768 38.22933334v813.73866666c0 21.84533333 16.384 38.22933333 35.49866667 38.22933334h816.46933333c19.11466667 0 35.49866667-16.384 35.49866667-38.22933334V161.56444445c0-21.84533333-16.384-38.22933333-35.49866667-38.22933334h5.46133334zM790.528 445.55377778L471.04 838.76977778c2.73066667 5.46133333-5.46133333 5.46133333-10.92266667 2.73066667l-232.10666666-191.14666667c-5.46133333-2.73066667-5.46133333-10.92266667-2.73066667-16.384l38.22933333-49.152c2.73066667-5.46133333 10.92266667-5.46133333 16.384-2.73066667l174.76266667 147.456 273.06666667-338.60266666c2.73066667-8.192 10.92266667-8.192 16.384-2.73066667l43.69066666 38.22933333c8.192 2.73066667 10.92266667 8.192 2.73066667 19.11466667zM643.072 74.18311111V41.41511111c0-30.03733333-27.30666667-49.152-57.344-49.152H419.15733333c-30.03733333 0-57.344 19.11466667-57.344 49.152v32.768h-65.536v163.84h412.33066667v-163.84h-65.536z m-139.264 98.304c-32.768 0-60.07466667-27.30666667-60.07466667-60.07466666s27.30666667-60.07466667 60.07466667-60.07466667 60.07466667 27.30666667 60.07466667 60.07466667c0 38.22933333-27.30666667 60.07466667-60.07466667 60.07466666z m0 0" ></path></symbol><symbol id="icon-decision" viewBox="0 0 1024 1024"><path d="M580.175027 28.57919l414.065896 414.065896a97.58526 97.58526 0 0 1 0 138.00065l-414.065896 414.065896a97.58526 97.58526 0 0 1-138.000649 0l-414.065897-414.065896a97.58526 97.58526 0 0 1 0-138.00065l414.065897-414.065896a97.58526 97.58526 0 0 1 138.000649 0z" ></path></symbol><symbol id="icon-end" viewBox="0 0 1024 1024"><path d="M512 25.6C243.2 25.6 25.6 243.2 25.6 512S243.2 998.4 512 998.4 998.4 780.8 998.4 512 780.8 25.6 512 25.6z m162.304 615.936c0 17.92-14.336 32.256-32.256 32.256H382.464c-17.92 0-32.256-14.336-32.256-32.256V381.952c0-17.92 14.336-32.256 32.256-32.256h259.584c17.92 0 32.256 14.336 32.256 32.256v259.584z m0 0" ></path></symbol><symbol id="icon-start" viewBox="0 0 1024 1024"><path d="M960.62577778 322.33244445c-24.46222222-57.91288889-59.61955555-110.02311111-104.33422223-154.73777778s-96.82488889-79.872-154.73777777-104.33422222C641.59288889 37.888 577.87733333 25.03111111 512.11377778 25.03111111c-65.64977778 0-129.47911111 12.85688889-189.44 38.22933334-57.91288889 24.46222222-110.02311111 59.61955555-154.73777778 104.33422222s-79.872 96.82488889-104.33422222 154.73777778C38.22933333 382.29333333 25.37244445 446.00888889 25.37244445 511.77244445c0 65.64977778 12.85688889 129.47911111 38.22933333 189.44 24.46222222 57.91288889 59.61955555 110.02311111 104.33422222 154.73777777s96.82488889 79.872 154.73777778 104.33422223c59.96088889 25.37244445 123.67644445 38.22933333 189.44 38.22933333 65.64977778 0 129.47911111-12.97066667 189.44-38.22933333 57.91288889-24.46222222 110.02311111-59.61955555 154.73777777-104.33422223s79.872-96.82488889 104.33422223-154.73777777c25.37244445-59.96088889 38.22933333-123.67644445 38.22933333-189.44 0-65.64977778-12.85688889-129.47911111-38.22933333-189.44z m-236.65777778 233.13066666L464.09955555 755.14311111C422.11555555 797.01333333 350.43555555 767.31733333 350.43555555 708.03911111V308.79288889c0-59.27822222 71.68-88.97422222 113.664-47.104l259.86844445 199.56622222c26.05511111 26.05511111 26.05511111 68.15288889 0 94.208z" ></path></symbol><symbol id="icon-virtual-human-task" viewBox="0 0 1496 1024"><path d="M864 1024H160C70.4 1024 0 953.6 0 864V160C0 70.4 70.4 0 160 0h704c89.6 0 160 70.4 160 160v704c0 89.6-70.4 160-160 160zM160 64c-51.2 0-96 44.8-96 96v704c0 51.2 44.8 96 96 96h704c51.2 0 96-44.8 96-96V160c0-51.2-44.8-96-96-96H160z" fill="#C9CED6" ></path></symbol><symbol id="icon-fuzhi" viewBox="0 0 1024 1024"><path d="M394.667 106.667h448a74.667 74.667 0 0 1 74.666 74.666v448A74.667 74.667 0 0 1 842.667 704h-448A74.667 74.667 0 0 1 320 629.333v-448a74.667 74.667 0 0 1 74.667-74.666z m0 64A10.667 10.667 0 0 0 384 181.333v448A10.667 10.667 0 0 0 394.667 640h448a10.667 10.667 0 0 0 10.666-10.667v-448a10.667 10.667 0 0 0-10.666-10.666h-448zM640 768a32 32 0 0 1 64 0v74.667a74.667 74.667 0 0 1-74.667 74.666h-448a74.667 74.667 0 0 1-74.666-74.666v-448A74.667 74.667 0 0 1 181.333 320H256a32 32 0 0 1 0 64h-74.667a10.667 10.667 0 0 0-10.666 10.667v448a10.667 10.667 0 0 0 10.666 10.666h448A10.667 10.667 0 0 0 640 842.667V768z" ></path></symbol></svg>';
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
document.addEventListener("DOMContentLoaded", o3, false);
|
|
24
24
|
}
|
|
25
25
|
else
|
|
26
|
-
document.attachEvent && (l2 = t3, r2 = e2.document,
|
|
27
|
-
|
|
26
|
+
document.attachEvent && (l2 = t3, r2 = e2.document, i2 = false, n2 = function() {
|
|
27
|
+
i2 || (i2 = true, l2());
|
|
28
28
|
}, (a2 = function() {
|
|
29
29
|
try {
|
|
30
30
|
r2.documentElement.doScroll("left");
|
|
31
31
|
} catch (e3) {
|
|
32
32
|
return void setTimeout(a2, 50);
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
n2();
|
|
35
35
|
})(), r2.onreadystatechange = function() {
|
|
36
|
-
"complete" == r2.readyState && (r2.onreadystatechange = null,
|
|
36
|
+
"complete" == r2.readyState && (r2.onreadystatechange = null, n2());
|
|
37
37
|
});
|
|
38
|
-
var l2, r2,
|
|
38
|
+
var l2, r2, i2, n2, a2;
|
|
39
39
|
}(function() {
|
|
40
40
|
var e3, t3;
|
|
41
41
|
(e3 = document.createElement("div")).innerHTML = o2, o2 = null, (t3 = e3.getElementsByTagName("svg")[0]) && (t3.setAttribute("aria-hidden", "true"), t3.style.position = "absolute", t3.style.width = 0, t3.style.height = 0, t3.style.overflow = "hidden", function(e4, t4) {
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
}(t3, document.body));
|
|
46
46
|
});
|
|
47
47
|
}(window);
|
|
48
|
-
const s = { workflowEditorPublicModel: { add: "Add", insert: "Insert", delete: "Delete", viewConditions: "View Conditions", agree: "Agree", disagree: "Disagree", andOr: "And / Or", mail: "Mail", message: "Message", App: "App", dingding: "DingTalk", qiwei: "Weixin", feishu: "Lark", determine: "Determine", cancel: "Cancel", choice: "Choice", empty: "Empty", save: "Save", export: "Export", open: "Open", return: "Return", flowChart: "Flow Chart", close: "Close", selectPage: "Select Page", search: "Search", adminSave: "Admin Save", tipTitle: "Tip", i18nSet: "I18n Setting", i18nZh: "Chinese", i18nEn: "English", i18nKey: "I18n Key", subprocessTitle: "Subprocess History", custom: "Custom", enable: "Enable" }, workflowEditorMessage: { requiredAndMustBeADate: "Required And Must Be A Date", requiredAndMustBeAnInteger: "Required And Must Be An Integer", requiredAndMustBeDecimal: "Required And Must Be Decimal", mustFill: "Must Fill", recordLine: "Record Line {row}", pageRecordLine: "Record in row {row} of page {pageNum}", currentHandlingPersonnel: "Current Handling Personnel", pleaseSelect: "Please Select", pleaseSelectARow: "Please Select A Row", conditionsHaveNotBeenSet: "Conditions Have Not Been Set", viewConditions: "View Conditions", fieldSettings: "Field Settings", valueSetting: "Value Setting", pleaseEnterContent: "Please Enter Content", theFieldNameOrFieldValueInLineCannotBeEmpty: "The Field Name Or Field Value In Line {row} Cannot Be Empty", fieldNameCannotBeEmpty: "Field Name Cannot Be Empty", fieldValueCannotBeEmpty: "Field Value Cannot Be Empty", pleaseEnterASubject: "Please Enter A Subject", selectStandardFields: "Select Standard Fields", pleaseEnterTheRoleName: "Please Enter The Role Name", queryResultIsEmpty: "Query Result Is Empty", selectRole: "Select Role", enterText: "Enter Text", selectField: "Select Field", pleaseSelectPersonnel: "Please Select Personnel", pleaseSelectAValue: "Please Select A Value", pleaseSelectAValueInTheCurrentTab: "Please Select A Value In The Current Tab", variableNameCannotBeEmpty: "Variable Name Cannot Be Empty", variableValueCannotBeEmpty: "Variable Value Cannot Be Empty", variableNameOrValueOnLineCannotBeEmpty: "Variable Name Or Value On Line {row} Cannot Be Empty", whenThereAreMultipleManagers: "When There Are Multiple Managers", duplicateOperationTypeWithLinePleaseReselect: "Duplicate Operation Type With Line {row}, Please Reselect", theOperationTypeOrNameInLineIsEmpty: "The Operation Type Or Name In Line {row} Is Empty", readOnly: "Read Only", pleaseEnterFieldName: "Please Enter Field Name", dataInLineCannotBeEmpty: "{data1} Or {data2} In Line {row} Cannot Be Empty", dataCannotBeEmpty: "{data} Cannot Be Empty", theStartAndEndOfTheFlowDirectionCannotBeTheSame: "The Start And End Of The Flow Direction Cannot Be The Same", onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows: "Only Condition Judgment, Branch And Manual Judgment Can Have Multiple Outbound Flows", startAndEndNodesCannotBeConnectedDirectly: "Start And End Nodes Cannot Be Connected Directly", endNodeCannotHaveOutFlowDirection: "End Node Cannot Have Out Flow Direction", itIsTheSameAsTheExistingLink: "It Is The Same As The Existing Link: {name}", updateSuccessful: "Update Successful", savedSuccessfully: "Saved Successfully", exportSucceeded: "Export Succeeded", pleaseSelectRole: "Please select role", subTableMustInputDatas: "The [{subtable}] subtable must enter data", pleaseEnterTheNameOrCode: "Please Enter The Name Or Describe", updateVersionSuccessful: "Version updated successfully", addVersionSuccessful: "Version added successfully", adminSaveTip: "The version must be added in the following cases:", adminSaveTip1: "1.The process name or code has been modified", adminSaveTip2: "2.The node name or code has been modified", adminSaveTip3: "3.Added node or flow direction", adminSaveTip4: "4.Node or flow direction removed", adminSaveTip5: 'Please select "Add Version" or "Update Current Version"?', updateVersion: "Update Current Version", addVersion: "Add Version", pleaseInputCode: "Please input the code first, and then do the international configuration", blankFieldNameOrValue: "Blank Field Name Or Value", enabledSuccessfully: "Enabled Successfully", additionalParam: "Request parameter" }, workflowEditor: { main: { tacheType: "Tache Type", straightLine: "Straight Line", curveLine: "Curve Line", brokenLine: "Broken Line" }, common: { remove: "Remove", attribute: "Attribute", fieldName: "Field Name(*)", operator: "Operator", value: "Value(*)", name: "Name", fieldValue: "Field Value", separator: "Separator", fillInMethod: "Fill In Method", cover: "Cover", append: "Append", insertToFront: "Insert To Front", fillInTime: "Fill In Time", fillInBeforeHandling: "Fill In Before Handling", fillInAfterHandling: "Fill In After Handling", type: "Type(*)", user: "User", role: "Role", department: "Department", workgroup: "Workgroup", selectFormField: "Select Form Field", notificationMethod: "Notification Method", addressee: "Addressee", theme: "Theme", content: "Content", notifyPersonnel: "Notify Personnel", selectusers: "Select Users", selectDepartment: "Select Department", selectTeam: "Select Team", selectRole: "Select Role", organizationStructure: "Organization Structure", formField: "Form Field", variableName: "Variable Name", variableValue: "Variable Value", selectField: "Select Field", taskNotice: "Task Notice", reminderNotice: "Reminder Notice", customMsg: "Custom Notice Message", canNotBeEmpty: "can Not Be Empty", copy: "Copy" }, process: { processInitiator: "Process Initiator", processInitiatorRole: "Process Initiator Role", processInitiatorDepartment: "ProcessInitiator Department", processInitiatorSuperiorDepartment: "Process Initiator Superior Ddepartment", processInitiatorTopDepartment: "Process Initiator Top Department", processInitiatorWorkingGroup: "Process Initiator Working Group", nameOfTheDirectSuperiorOfTheProcessInitiator: "Name Of The Direct Superior Of The Process Initiator", processInitiatorsDirectSuperiorDepartment: "Process initiator`s Direct Superior Department", directSuperiorRoleOfProcessInitiator: "Direct Superior Role Of Process Initiator", ProcessInitiatorsImmediateSuperiorWorkingGroup: "Process Initiator`s Immediate Superior Working Group", nameOfCurrentHandler: "Name Of Current Handler", currentHandlerRole: "Current Handler Role", currentHandlerDepartment: "Current Handler Department", currentHandlerSuperiorDepartment: "Current Handler`s Superior Department", topDepartmentOfCurrentHandler: "Top Department Of current Handler", currentHandlerWorkingGroup: "Current Handler Working Group", nameOfTheImmediateSuperiorOfTheCurrentHandler: "Name Of The Immediate Superior Of The Current Handler", currentHandlerDirectSuperiorDepartment: "Current handler`s Direct Superior Department", currentManagerDirectSuperiorRole: "Current Manager`s Direct Superior Role", workingGroupDirectlyUnderTheCurrentHandler: "Working Group Directly Under The Current Handler", topDepartments: "Top Departments", approvalResults: "Approval Results", totalNnumberOfPersonsWhoDisagreeWithTheCountersignature: "Total Number O Persons Who Disagree With The Countersignature", totalNumberOfCountersignedAndAgreedPersonnel: "Total Number Of Countersigned And Agreed Personnel", percentageOfPersonsWhoDisagreeWithTheCountersignature: "Percntage Of Persons Who Disagree With The Countersignature", percentageOfCountersignedAndAgreedPersonnel: "Percentage Of Countersigned And Agreed Personnel", percentageOfAbstentions: "Percentage Of Abstentions", percentageOfVotesAgainst: "Percentage Of Votes Against", percentageOfAffirmativeVotes: "Percentage Of Affirmative Votes", totalNumberOfAbstentions: "Total Number Of Abstentions", totalVotesAgainst: "Total Votes Against", totalNumberOfAffirmativeVotes: "Total Number Of Affirmative Votes", standardFields: "Standard Fields", perhaps: "Perhaps", also: "Also", greaterThan: "Greater Than", lessThan: "Less Than", beEqualTo: "Be Equal To", notGreaterThan: "Not Greater Than", notLessThan: "Not Less Than", notEqualTo: "Not Equal To", contain: "Contain", notIncluded: "Not Included", laterThan: "Later Than", earlierThan: "Earlier Than", noLaterThan: "No Later Than", noEarlierThan: "No Earlier Than", handlingTimeOfThisLink: "Handling Time Of This Link", handlerIDOfThisLink: "Handler ID Of This Link", currentHandlerPrincipalDepartmentID: "Current Handler Principal Department ID", iDOfTheImmediateSuperiorOfTheCurrentHandler: "ID Of The Immediate Superior Of The Current Handler", iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler: "ID Of The Superior Department Directly Under The Current Handler", loginNameOfTheHandlerInThisLink: "Login Name Of The Handler In This Link", NameOfCurrentHandler: "Name Of Current Handler", CurrentHandlerDepartment: "Current Handler Department", CurrentHandlerDepartmentID: "Current Handler Department ID", CurrentManagersPrincipalDepartment: "Current Manager`s Principal Department", iDOfSsuperiorDepartmentOfCurrentHandler: "ID Of Superior Department Of Current Handler", CurrentHandlersSuperiorDepartment: "Current Handler`s Superior Department", TopDepartmentOfCurrentHandler: "Top Department Of Current Handler", TopDepartmentIDOfCurrentHandler: "Top Department ID Of Current Handler", CurrentHandlerRole: "Current Handler Role", CurrentHandlerRoleID: "Current Handler Role ID", CurrentHandlerWorkingGroupID: "Current Handler Working Group ID", LoginNameOfTheImmediateSuperiorOfTheCurrentHandler: "Login Name Of The Immediate Superior Of The Current Handler", currentHandlersDirectSuperiorDepartment: "Current handler`s Direct Superior Department", currentManagersDirectSuperiorDepartment: "Current Manager`s Direct Superior Department", currentManagersDirectSuperiorRole: "Current manager`s Direct Superior Role", currentHandlersDirectSuperiorRoleID: "Current Handler`s Direct Superior Role ID", currentManagersDirectSuperiorWork: "Current Manager`s Direct Superior Work", iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler: "ID Of The Working Group Directly Under The Current Handler", operationsPerformedInThisPhase: "Operations Performed In This Phase", handlerIDOfThePreviousLink: "Handler ID Of The Previous Link", lastLinkHandlerLogin: "Last Link Handler Login", nameOfHandlerInThePreviousLink: "Name Of Handler In The Previous Link", currentManagersIdDirectlyUnderTheSuperior: "Current Manager`s Id Directly Under The Ssuperior", appointmentOfHandlerInThePreviousLink: "Appointment Of Handler In The Previous Link", personSpecifiedInFormField: "Person Specified In Form Field", filterByCriteria: "Filter by Criteria", additionalConditions: "Additional Conditions", handlingYyThePersonnelOfTheDepartmentOfTheInitiator: "Handling By The Personnel Of The Department Of The Initiator", personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling: "Personnel Of The Department Where The Initiator Works Participate In The Handling", selectSpecificHandler: "Select Specific Handler", selectOneFromDept: "Only one person is required to handle the same department", generateOneInstanceFromDept: "Generate an instance from the same department", selectionMethod: "Selection Method", manualSelection: "Manual Selection", autoSelect: "Auto Select", callbackURL: "Callback URL", cannotBeEmpty: "Cannot Be Empty", selectURL: "Select URL", fieldName: "Field Name", processAdministrator: "Process Administrator", currentHandler: "Current Handler", allHandlingPersonnel: "All Handling Personnel", designatedPersonnel: "Designated Personnel", listOfDesignatedPersons: "List Of Designated Persons", processName: "Process Name", processCode: "Process Code", creater: "Creater", correspondingForm: "Corresponding Form", processType: "Process Type", system: "System", affiliatedBranch: "Affiliated Branch", customCategory: "Custom Category", initiationProcess: "Initiation Process", deleteProcess: "Delete Process", cancelProcess: "Cancel Process", endProcess: "End Process", pauseProcess: "Pause Process", continueTheProcess: "Continue The Process", jumpLink: "Jump Link", modificationHandler: "Modification Handler", addHandler: "Add Handler", decreaseOofHandler: "Decrease Of Handler", appointedTask: "Appointed Task", returnTask: "Return Task", retrieveTask: "Retrieve Task", processTaskParameterSettings: "Process Task Parameter Settings", uRLForProcessingTask: "URL For Processing Task", parametersForReceivingTaskID: "Parameters For Receiving Task ID", viewFormParameterSettings: "View Form Parameter Settings", viewTheURLOfTheForm: "View The URL Of The Form", parametersOfReceivingEntityID: "Parameters Of Receiving Entity ID", emergencyTreatmentParameterSetting: "Emergency Treatment Parameter Setting", uRLOfEmergencyHandling: "URL Of Emergency Handling", initiateProcessParameterSettings: "Initiate Process Parameter Settings", uRLOfTheInitiatingProcess: "URL Of The Initiating Process", parametersForReceivingProcessName: "Parameters For Receiving Process Name", customParameterValue: "Custom Parameter Value", ViewFlowHistoryPersonnel: "View Flow History Personnel", ViewCountersignatureResultPersonnel: "View Countersignature Result Personnel", ViewVotingResultsBy: "View Voting Results By", name: "Name", code: "Code", subprocess: "Subprocess", transferValueFromMainFormToSubForm: "Transfer Value From Main Form To Sub Form", fieldsOfTheMainForm: "Fields Of The Main Form", fieldsOfSubform: "Fields Of Subform", subformReturnsResultsToMainForm: "Subform Returns Results To Main Form", eventsTriggeredBeforeStartingASubprocess: "Events Triggered Before Starting A Subprocess", triggerSubprocessEndEvent: "Trigger Subprocess End Event", setTheHandlerOfTheFirstPhaseOfTheSubProcess: "Set The Handler Of The First Phase Of The Sub Process", keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly: "Keep The Handler Unchanged When The Target Link Is Handled Repeatedly", branchingCondition: "Branching Condition", processProperties: "Process Properties", basicProperties: "Basic Properties", permissionSettings: "Permission Settings", notificationSettings: "Notification Settings", sendNotificationAfterProcessEnds: "Send Notification After Process Ends", reminderSettings: "Notice And Reminder Settings", parameterSsetting: "Parameter Setting", event: "Event", processVariables: "Process Variables", propertiesOfSubprocesses: "Properties Of Subprocesses", settingOfHandler: "Setting Of Handler", eventProcessing: "Event Processing", sponsorsImmediateSuperior: "Sponsor`s Immediate Superior", sponsorsSuperiorDepartment: "Sponsor`s Superior Department", sponsorTopDepartment: "Sponsor Top Department", superiorDepartmentDirectlyUnderTheInitiator: "Superior Department Directly Under The Initiator", sponsorsImmediateSuperiorWorkingGroup: "Sponsor`s Immediate Superior Working Group", lastLinkHandlerDepartment: "Last Link Handler Department", previousLinkHandlerSuperiorDepartment: "Previous Link Handler Superior Department", topDepartmentOfHandlerInThePreviousLink: "Top Department Of Handler In The Previous Link", previousLinkHandlersDirectSuperiorDepartment: "Previous Link Handler`s Direct Superior Department", previousLinkHandlerWorkingGroup: "Previous Link Handler Working Group", workingGroupDirectlyUnderTheManagerInThePreviousLink: "Working Group Directly Under The Manager In The Previous Link", getSubprocessEntityBean: "Get subprocess entity bean", getSubprocessEntityBeanPlaceholder: "The format is:xxxServiceImpl,for example:exampleServiceImpl", getSubprocessEntityBeanInfo: 'The bean needs to implement the interface "tech.imatrix.wf.core.OnStartingSubProcess"', isNull: "Is Null", isNotNull: "Is Not Null", defaultMailTemplate: "Default Mail Template", defaultCommonTemplate: "Default Common Template", trustTask: "Trust Task", subprocessIsSharedForm: "Main process and subprocess shared form", generateForParttimeDept: "Generate tasks for part-time department personnel", deptSpecifiedInFormField: "Dept Specified In Form Field", activateOneVoteVeto: "Activate one vote veto", systemVersion: "System Version", tableCode: "DataTable Name", deptApprover: "Authorized approver of the drafting department", superiorDeptApprover: "Drafted by the authorized approver of the superior department", superiorDeptLeader: "Drafted by the superior department head" }, task: { newCc: "New Cc", judge: "Judge", end: "End", branch: "Branch", manualJudgment: "Manual Judgment", newTask: "New Task", converge: "Converge", newProcess: "New Process", start: "Start", subprocess: "Subprocess", needToBeUrged: "Need To Be Urged", urgingMethod: "Urging Method", timeLimitForHandling: "Time Limit For Handling", day: "Day", urgingInterval: "Urging Interval", hour: "Hour", alwaysUrging: "Always Urging", limitedUrging: "Limited Urging", timesOfUrging: "Times Of Urging", includingHandoverPersonnel: "Including Handover Personnel", handoverPersonnel: "Handover Personnel", includeNotifyPeople: "Include Notify People", name: "Name", code: "Code", taskTitle: "Task Title", emailNotification: "Email Notification", handlingPage: "Handling Page", remarks: "Remarks", allowViews: "Allow Views", allowToViewCountersignatureResults: "Allow To View Countersignature Results", allowToViewVotingResults: "Allow To View Voting Results", allowToViewFlowHistory: "Allow To View Flow History", allowFormsToPrint: "Allow Forms To Print", attachmentAuthority: "Attachment Authority", downloadAttachment: "Download Attachment", bodyPermission: "Body Permission(Temporarily Closed)", additionalConditions: "Additional Conditions", setConditions: "Set Conditions", HandlingMethod: "Handling Method", editorial: "Editorial", approvalType: "Approval Type", countersign: "Countersign", voting: "Voting", anyOneCanHandleIt: "Any One Can Handle It", forAll: "For All", passRate: "Pass Rate", modifyOperationName: "Modify Operation Name", operationType: "Operation Type", visibleOrNot: "Visible Or Not", save: "Save", submission: "Submission", agree: "Agree", disagree: "Disagree", favor: "Favor", opposition: "Opposition", waiver: "Waiver", receive: "Receive", giveUp: "Give Up", additionalSignature: "Additional Signature", reductionOfSignature: "Reduction Of Signature", assignTask: "Assign Task", copyTask: "Copy Task", retrieveTask: "Retrieve Task", exportReport: "Export Report", readTask: "Read", selectEditableField: "Select Editable Field", optionalField: "Optional Field", selectedFields: "Selected Fields", editingMethod: "Editing Method", propertyName: "Property Name", condition: "Condition", nothing: "Nothing", beforeSubmission: "Before Submission", executionURL: "Execution URL", errorMessage: "Error Message", afterSubmission: "After Submission", allowEditingForms: "Allow Editing Forms", commentsAllowed: "Comments Allowed", commentsAreRequired: "Comments Are Required", deletePermission: "Delete Permission", addAttachment: "Add Attachment", deleteAttachment: "Delete Attachment", propertiesOfCCTask: "Properties Of CC Task", basicProperties: "Basic Properties", settingOfHandler: "Setting Of Handler", permissionSettings: "Permission Settings", attributeOfConditionJudgment: "Attribute Of Condition Judgment", allBranchFlows: "All Branch Flows", targetLink: "Target Link", propertiesOfBranches: "Properties Of Branches", attributesOfManualJudgment: "Attributes of manual Judgment", linkAttribute: "Link Attribute", autoFillInFieldSettings: "Auto Fill In Field Settings", reminderSettings: "Notice And Reminder Settings", eventProcessing: "Event Processing", linkVariable: "Link Variable", convergedProperties: "Converged Properties", humanTask: "Human Task", conditionJudgment: "Condition Judgment", cCtask: "CC Task", canItBeRejected: "Can It Be Rejected", selectNoticeTemplate: "Select Notice Template", selectMailTemplate: "Select Email Template", selectTemplate: "Select Template", autoTask: "Auto Task", newAutoTask: "New Auto Task", propertiesOfAutoTask: "Properties Of Auto Task", custombeanName: "Custom Bean Name", baseField: "Base Field", reminderTipTemplateMsg: "Template Description:", reminderTipRemindMsg: "Reminder Description:", reminderTipTemplateNotice: 'Notification templates: DingTalk, Enterprise WeChat, Feishu, and Customization all use notification templates. When using email, if "email template" is not selected, use notification template', reminderTipTemplateEmail: "Email Template: Customized Email Template", reminderTipRemindImmediately: "The reminder method, notification template, email template, maximum number of reminders, notification method, notification personnel, and transfer personnel will take effect immediately after modification", reminderTipRemindHistory: "The processing time limit, processing time granularity (days/hours), reminder interval, reminder interval time granularity (days/hours) are only effective for newly initiated processes. If historical data also requires the latest configuration, please contact the operation and maintenance personnel to adjust" }, transition: { flowProperties: "Flow Properties", basicProperties: "Basic Properties", notificationSettings: "Notification Settings", sendNotificationAfterFlow: "Send Notification After Flow", autoFillInFieldSettings: "Auto Fill In Field Settings", eventProcessing: "Event Processing", triggerFlowThroughEvent: "Trigger Flow Through Event", beanName: "Bean Name" }, condition: { combinationCondition: "Combination Condition", currentUserId: "Current User ID", currentUserLogin: "Current User Login", currentUserName: "Current User Name", fillInManually: "Fill In Manually", environmentVariable: "Environment Variable", databaseFields: "Database fields", requestParameters: "Request Parameters", currentTime: "Current Time", currentDate: "Current Date", currentTransactor: "Current Transactor", currentTransactorName: "Current Transactor Name", currentTransactorId: "Current Transactor Id", currentTransactorMainDepartmentId: "Current Transactor Main Department Id", currentTransactorMainDepartment: "Current Transactor Main Department", currentTransactorRoleId: "Current Transactor Role Id", currentTransactorRole: "Current Transactor Role", currentTransactorWorkGroupId: "Current Transactor Work Group Id", currentTransactorWorkGroup: "Current Transactor Work Group", whenTheVariableIsEmpty: "When The Variable Is Empty", ignore11: "Ignore (1 = 1)", nonConformity: "Non Conformity (1 < > 1)", currentHandler: "Current Handler", currentTaskClient: "Current Task Client", currentAssignor: "Current Assignor", rowsCanBeAdded: "Rows Can Be Added", deleteLine: "Delete Line", modifiableHistoricalData: "Modifiable Historical Data", controlByField: "Control By Field", allReadOnly: "All Read Only", allRequired: "All Required", mainTableField: "Main Table Field", linkName: "Link Name", linkCode: "Link Code", taskFields: "Task Fields", systemParameter: "System Parameter", personnelScope: "Personnel Scope", mainTableConditions: "Main Table Conditions", subtableCondition: "Subtable Condition", accessControl: "Access Control", formBindingModel: "Form Binding Model", allFields: "All Fields", tableDataNotEmpty: "Table Data Not Empty" } } }, d = { workflowEditorPublicModel: { add: "添加", insert: "插入", delete: "删除", viewConditions: "查看条件", agree: "同意", disagree: "不同意", andOr: "并且/或者", mail: "邮件", message: "短信", App: "App", dingding: "钉钉", qiwei: "企业微信", feishu: "飞书", determine: "确定", cancel: "取消", choice: "选择", empty: "清空", save: "保存", export: "导出", open: "打开", return: "返回", flowChart: "流程图", close: "关闭", selectPage: "选择页面", search: "查询", adminSave: "管理员保存", tipTitle: "提示", i18nSet: "国际化设置", i18nZh: "中文", i18nEn: "英文", i18nKey: "国际化key", subprocessTitle: "子流程流转历史", custom: "自定义", enable: "启用" }, workflowEditorMessage: { requiredAndMustBeADate: "必填且必须为日期", requiredAndMustBeAnInteger: "必填且必须为整数", requiredAndMustBeDecimal: "必填且必须为小数", mustFill: "必填", recordLine: "第{row}行记录", pageRecordLine: "第{pageNum}页第{row}行记录", currentHandlingPersonnel: "当前办理人员", pleaseSelect: "请选择", pleaseSelectARow: "请选中一行", conditionsHaveNotBeenSet: "还未设置条件", viewConditions: "查看条件", fieldSettings: "字段设置", valueSetting: "值设置", pleaseEnterContent: "请输入内容", theFieldNameOrFieldValueInLineCannotBeEmpty: "第{row}行的字段名或者字段值不能为空", fieldNameCannotBeEmpty: "字段名不能为空", fieldValueCannotBeEmpty: "字段值不能为空", pleaseEnterASubject: "请输入主题", selectStandardFields: "选择标准字段", pleaseEnterTheRoleName: "请输入角色名称", queryResultIsEmpty: "查询结果为空", selectRole: "选择角色", enterText: "输入文字", selectField: "选择字段", pleaseSelectPersonnel: "请选择人员", pleaseSelectAValue: "请选择值", pleaseSelectAValueInTheCurrentTab: "请在当前页签中选中一个值", variableNameCannotBeEmpty: "变量名不能为空", variableValueCannotBeEmpty: "变量值不能为空", variableNameOrValueOnLineCannotBeEmpty: "第{row}行的变量名或者变量值不能为空", whenThereAreMultipleManagers: "多个办理人时", duplicateOperationTypeWithLinePleaseReselect: "与第{row}行的操作类型重复了,请重新选择", theOperationTypeOrNameInLineIsEmpty: "第{row}行的操作类型或者名称为空", readOnly: "只读", pleaseEnterFieldName: "请输入字段名", dataInLineCannotBeEmpty: "第{row}行的{data1}或{data2}不能为空", dataCannotBeEmpty: "{data}不能为空", theStartAndEndOfTheFlowDirectionCannotBeTheSame: "流向的起点和终点不能相同", onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows: "只有条件判断、分支以及人工判断才能有多条外出流向", startAndEndNodesCannotBeConnectedDirectly: "开始节点和结束节点不能直接相连", endNodeCannotHaveOutFlowDirection: "结束节点不能有外出流向", itIsTheSameAsTheExistingLink: "与已有环节:{name}的编码重复", updateSuccessful: "更新成功", savedSuccessfully: "保存成功", exportSucceeded: "导出成功", pleaseSelectRole: "请选择角色", subTableMustInputDatas: "[{subTable}] 子表必须录入数据", pleaseEnterTheNameOrCode: "请输入字段名或字段描述", updateVersionSuccessful: "成功更新版本", addVersionSuccessful: "成功增加版本", adminSaveTip: "有以下几种情况时必须增加版本:", adminSaveTip1: "1、修改了流程名称或编码", adminSaveTip2: "2、修改了节点名称或编码", adminSaveTip3: "3、增加了节点或流向", adminSaveTip4: "4、移除了节点或流向", adminSaveTip5: "请选择“增加版本”或“更新当前版本”?", updateVersion: "更新当前版本", addVersion: "增加版本", pleaseInputCode: "请先输入编码,再做国际化配置", blankFieldNameOrValue: "字段名或值有空白", enabledSuccessfully: "启用成功", additionalParam: "请求参数" }, workflowEditor: { main: { tacheType: "环节类型", straightLine: "直线", curveLine: "曲线", brokenLine: "折线" }, common: { remove: "移除", attribute: "属性", fieldName: "字段名(*)", operator: "操作符", value: "值(*)", name: "字段名", fieldValue: "字段值", separator: "分隔符", fillInMethod: "填写方式", cover: "覆盖", append: "追加", insertToFront: "插入到最前", fillInTime: "填写时间", fillInBeforeHandling: "办理前填写", fillInAfterHandling: "办理后填写", type: "类别(*)", user: "用户", role: "角色", department: "部门", workgroup: "工作组", selectFormField: "选择表单字段", notificationMethod: "通知方式", addressee: "收件人", theme: "主题", content: "内容", notifyPersonnel: "通知人员", selectusers: "选择用户", selectDepartment: "选择部门", selectTeam: "选择工作组", selectRole: "选择角色", organizationStructure: "组织结构", formField: "表单字段", variableName: "变量名", variableValue: "变量值", selectField: "选择字段", taskNotice: "待办通知", reminderNotice: "催办通知", customMsg: "自定义消息内容", canNotBeEmpty: "不能为空", copy: "复制" }, process: { processInitiator: "起草人", processInitiatorRole: "起草人角色", processInitiatorDepartment: "起草人部门", processInitiatorSuperiorDepartment: "起草人上级部门", processInitiatorTopDepartment: "起草人顶级部门", processInitiatorWorkingGroup: "起草人工作组", nameOfTheDirectSuperiorOfTheProcessInitiator: "起草人直属上级姓名", processInitiatorsDirectSuperiorDepartment: "起草人直属上级部门", directSuperiorRoleOfProcessInitiator: "起草人直属上级角色", ProcessInitiatorsImmediateSuperiorWorkingGroup: "起草人直属上级工作组", nameOfCurrentHandler: "当前办理人姓名", currentHandlerRole: "当前办理人角色", currentHandlerDepartment: "当前办理人部门", currentHandlerSuperiorDepartment: "当前办理人上级部门", topDepartmentOfCurrentHandler: "当前办理人顶级部门", currentHandlerWorkingGroup: "当前办理人工作组", nameOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级姓名", currentHandlerDirectSuperiorDepartment: "当前办理人直属上级部门", currentManagerDirectSuperiorRole: "当前办理人直属上级角色", workingGroupDirectlyUnderTheCurrentHandler: "当前办理人直属上级工作组", topDepartments: "顶级部门", approvalResults: "审批结果", totalNnumberOfPersonsWhoDisagreeWithTheCountersignature: "会签不同意人员总数", totalNumberOfCountersignedAndAgreedPersonnel: "会签同意人员总数", percentageOfPersonsWhoDisagreeWithTheCountersignature: "会签不同意人员百分比", percentageOfCountersignedAndAgreedPersonnel: "会签同意人员百分比", percentageOfAbstentions: "弃权票百分比", percentageOfVotesAgainst: "反对票百分比", percentageOfAffirmativeVotes: "赞成票百分比", totalNumberOfAbstentions: "弃权票总数", totalVotesAgainst: "反对票总数", totalNumberOfAffirmativeVotes: "赞成票总数", standardFields: "标准字段", perhaps: "或者", also: "并且", greaterThan: "大于", lessThan: "小于", beEqualTo: "等于", notGreaterThan: "不大于", notLessThan: "不小于", notEqualTo: "不等于", contain: "包含", notIncluded: "不包含", laterThan: "晚于", earlierThan: "早于", noLaterThan: "不晚于", noEarlierThan: "不早于", handlingTimeOfThisLink: "本环节办理时间", handlerIDOfThisLink: "本环节办理人id", currentHandlerPrincipalDepartmentID: "当前办理人正职部门id", iDOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级id", iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler: "当前办理人直属上级正职部门id", loginNameOfTheHandlerInThisLink: "本环节办理人登录名", NameOfCurrentHandler: "当前办理人姓名", CurrentHandlerDepartment: "当前办理人部门", CurrentHandlerDepartmentID: "当前办理人部门id", CurrentManagersPrincipalDepartment: "当前办理人正职部门", iDOfSsuperiorDepartmentOfCurrentHandler: "当前办理人上级部门id", CurrentHandlersSuperiorDepartment: "当前办理人上级部门", TopDepartmentOfCurrentHandler: "当前办理人顶级部门", TopDepartmentIDOfCurrentHandler: "当前办理人顶级部门id", CurrentHandlerRole: "当前办理人角色", CurrentHandlerRoleID: "当前办理人角色id", CurrentHandlerWorkingGroupID: "当前办理人工作组id", LoginNameOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级登录名", currentHandlersDirectSuperiorDepartment: "当前办理人直属上级部门", currentManagersDirectSuperiorDepartment: "当前办理人直属上级正职部门", currentManagersDirectSuperiorRole: "当前办理人直属上级角色", currentHandlersDirectSuperiorRoleID: "当前办理人直属上级角色id", currentManagersDirectSuperiorWork: "当前办理人直属上级工作", iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler: "当前办理人直属上级工作组id", operationsPerformedInThisPhase: "本环节执行的操作", handlerIDOfThePreviousLink: "上一环节办理人id", lastLinkHandlerLogin: "上一环节办理人登录名", nameOfHandlerInThePreviousLink: "上一环节办理人姓名", currentManagersIdDirectlyUnderTheSuperior: "当前办理人直属上级部门id", appointmentOfHandlerInThePreviousLink: "上一环节办理人指定", personSpecifiedInFormField: "表单字段中指定的人员", filterByCriteria: "按条件筛选", additionalConditions: "附加条件", handlingYyThePersonnelOfTheDepartmentOfTheInitiator: "起草人所在部门人员办理", personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling: "起草人所在部门人员参与办理", selectSpecificHandler: "选择具体办理人", selectOneFromDept: "同一部门仅需一人办理", generateOneInstanceFromDept: "同一部门生成一个实例", selectionMethod: "选择方式", manualSelection: "人工选择", autoSelect: "自动选择", callbackURL: "回调URL", cannotBeEmpty: "不能为空", selectURL: "选人URL", fieldName: "字段名称", processAdministrator: "流程管理员", currentHandler: "当前办理人", allHandlingPersonnel: "所有办理人员", designatedPersonnel: "指定人员", listOfDesignatedPersons: "指定人员列表", processName: "流程名称", processCode: "流程编码", creater: "创建人", correspondingForm: "对应表单", processType: "流程类型", system: "所属系统", affiliatedBranch: "所属分支机构", customCategory: "自定义类别", initiationProcess: "发起流程", deleteProcess: "删除流程", cancelProcess: "取消流程", endProcess: "结束流程", pauseProcess: "暂停流程", continueTheProcess: "继续流程", jumpLink: "跳转环节", modificationHandler: "修改办理人", addHandler: "增加办理人", decreaseOofHandler: "减少办理人", appointedTask: "指派任务", returnTask: "退回任务", retrieveTask: "取回任务", processTaskParameterSettings: "办理任务参数设置", uRLForProcessingTask: "办理任务的url", parametersForReceivingTaskID: "接收任务id的参数", viewFormParameterSettings: "查看表单参数设置", viewTheURLOfTheForm: "查看表单的url", parametersOfReceivingEntityID: "接收实体id的参数", emergencyTreatmentParameterSetting: "应急处理参数设置", uRLOfEmergencyHandling: "应急处理的url", initiateProcessParameterSettings: "发起流程参数设置", uRLOfTheInitiatingProcess: "发起流程的url", parametersForReceivingProcessName: "接收流程名称的参数", customParameterValue: "自定义参数值", ViewFlowHistoryPersonnel: "查看流转历史人员", ViewCountersignatureResultPersonnel: "查看会签结果人员", ViewVotingResultsBy: "查看投票结果人员", name: "名称", code: "编码", subprocess: "子流程", transferValueFromMainFormToSubForm: "主表单给子表单传值", fieldsOfTheMainForm: "主表单的字段", fieldsOfSubform: "子表单的字段", subformReturnsResultsToMainForm: "子表单返回结果给主表单", eventsTriggeredBeforeStartingASubprocess: "启动子流程前事件", triggerSubprocessEndEvent: "触发子流程结束事件", setTheHandlerOfTheFirstPhaseOfTheSubProcess: "设置子流程第一环节办理人", keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly: "目标环节重复办理时保持办理人不变", branchingCondition: "分支条件", processProperties: "流程属性", basicProperties: "基本属性", permissionSettings: "权限设置", notificationSettings: "通知设置", sendNotificationAfterProcessEnds: "流程结束后发送通知", reminderSettings: "通知与催办", parameterSsetting: "参数设置", event: "事件", processVariables: "流程变量", propertiesOfSubprocesses: "子流程的属性", settingOfHandler: "办理人设置", eventProcessing: "事件处理", sponsorsImmediateSuperior: "起草人直属上级", sponsorsSuperiorDepartment: "起草人上级部门", sponsorTopDepartment: "起草人顶级部门", superiorDepartmentDirectlyUnderTheInitiator: "起草人直属上级部门", sponsorsImmediateSuperiorWorkingGroup: "起草人直属上级工作组", lastLinkHandlerDepartment: "上一环节办理人部门", previousLinkHandlerSuperiorDepartment: "上一环节办理人上级部门", topDepartmentOfHandlerInThePreviousLink: "上一环节办理人顶级部门", previousLinkHandlersDirectSuperiorDepartment: "上一环节办理人直属上级部门", previousLinkHandlerWorkingGroup: "上一环节办理人工作组", workingGroupDirectlyUnderTheManagerInThePreviousLink: "上一环节办理人直属上级工作组", getSubprocessEntityBean: "获得子流程实体bean", getSubprocessEntityBeanPlaceholder: "格式为:xxxServiceImpl,例如:exampleServiceImpl", getSubprocessEntityBeanInfo: "该bean需要实现接口tech.imatrix.wf.core.OnStartingSubProcess", isNull: "等于Null", isNotNull: "不等于Null", defaultMailTemplate: "默认邮件模板", defaultCommonTemplate: "默认通知模板", trustTask: "委托任务", subprocessIsSharedForm: "主子流程共用表单", generateForParttimeDept: "为兼职部门人员生成任务", deptSpecifiedInFormField: "表单字段中指定的部门", activateOneVoteVeto: "一票否决", systemVersion: "系统版本", tableCode: "对应数据表", deptApprover: "起草人部门授权审批人", superiorDeptApprover: "起草人上级部门授权审批人", superiorDeptLeader: "起草人上级部门负责人" }, task: { newCc: "新抄送", judge: "判断", end: "结束", branch: "分支", manualJudgment: "人工判断", newTask: "新任务", converge: "汇聚", newProcess: "新流程", start: "开始", subprocess: "子流程", needToBeUrged: "需要催办", urgingMethod: "催办方式", timeLimitForHandling: "办理时限", day: "天", urgingInterval: "催办间隔", hour: "小时", alwaysUrging: "一直催办", limitedUrging: "限次催办", timesOfUrging: "催办次数", includingHandoverPersonnel: "包含移交人员", handoverPersonnel: "移交人员", includeNotifyPeople: "包含通知人员", name: "名称", code: "编码", taskTitle: "任务标题", emailNotification: "邮件通知", handlingPage: "办理页面", remarks: "备注", allowViews: "允许查看意见", allowToViewCountersignatureResults: "允许查看会签结果", allowToViewVotingResults: "允许查看投票结果", allowToViewFlowHistory: "允许查看流转历史", allowFormsToPrint: "允许打印表单", attachmentAuthority: "附件权限", downloadAttachment: "下载附件", bodyPermission: "正文权限(暂不开放)", additionalConditions: "附加条件", setConditions: "设置条件", HandlingMethod: "办理方式", editorial: "编辑式", approvalType: "审批式", countersign: "会签式", voting: "投票式", anyOneCanHandleIt: "任意一人办理即可", forAll: "所有人均需办理", passRate: "通过率", modifyOperationName: "修改操作名称", operationType: "操作类型", visibleOrNot: "是否可见", save: "保存", submission: "提交", agree: "同意", disagree: "不同意", favor: "赞成", opposition: "反对", waiver: "弃权", receive: "领取", giveUp: "放弃", additionalSignature: "加签", reductionOfSignature: "减签", assignTask: "指派", copyTask: "抄送", retrieveTask: "取回", exportReport: "导出报告", readTask: "阅", selectEditableField: "选择可编辑字段", optionalField: "可选字段", selectedFields: "已选字段", editingMethod: "编辑方式", propertyName: "属性名", condition: "条件", nothing: "无", beforeSubmission: "提交前", executionURL: "执行url", errorMessage: "出错信息", afterSubmission: "提交后", allowEditingForms: "允许编辑表单", commentsAllowed: "允许填写意见", commentsAreRequired: "必须填写意见", deletePermission: "删除权限", addAttachment: "添加附件", deleteAttachment: "删除附件", propertiesOfCCTask: "抄送任务的属性", basicProperties: "基本属性", settingOfHandler: "办理人设置", permissionSettings: "权限设置", attributeOfConditionJudgment: "条件判断的属性", allBranchFlows: "所有分支流向", targetLink: "目标环节", propertiesOfBranches: "分支的属性", attributesOfManualJudgment: "人工判断的属性", linkAttribute: "环节属性", autoFillInFieldSettings: "自动填写字段设置", reminderSettings: "通知与催办", eventProcessing: "事件处理", linkVariable: "环节变量", convergedProperties: "汇聚的属性", humanTask: "人工任务", conditionJudgment: "条件判断", cCtask: "抄送任务", canItBeRejected: "是否可驳回", selectNoticeTemplate: "选择通知模板", selectMailTemplate: "选择邮件模板", selectTemplate: "选择模板", autoTask: "自动任务", newAutoTask: "新自动任务", propertiesOfAutoTask: "自动任务的属性", custombeanName: "自定义bean", baseField: "基础字段", reminderTipTemplateMsg: "模板说明:", reminderTipRemindMsg: "催办说明:", reminderTipTemplateNotice: "通知模板:钉钉、企微、飞书、自定义都使用通知模板。邮件方式时,如果没有选“邮件模板”,则使用通知模板", reminderTipTemplateEmail: "邮件模板:邮件方式特制模板", reminderTipRemindImmediately: "催办方式、通知模板、邮件模板、催办次数、通知方式、通知人员、移交人员 修改后立即生效", reminderTipRemindHistory: "办理时限、办理时限的时间粒度(天/小时)、催办间隔、催办间隔的时间粒度(天/小时)仅对新发起的流程生效,如历史数据也需要应用最新配置,请联系运维人员调整" }, transition: { flowProperties: "流向属性", basicProperties: "基本属性", notificationSettings: "通知设置", sendNotificationAfterFlow: "流过后发送通知", autoFillInFieldSettings: "自动填写字段设置", eventProcessing: "事件处理", triggerFlowThroughEvent: "触发流过事件", beanName: "bean名称" }, condition: { combinationCondition: "组合条件", currentUserId: "当前用户ID", currentUserLogin: "当前用户登录名", currentUserName: "当前用户姓名", fillInManually: "手动填写", environmentVariable: "环境变量", databaseFields: "数据库字段", requestParameters: "请求参数", currentTime: "当前时间", currentDate: "当前日期", currentTransactor: "当前用户登录名", currentTransactorName: "当前用户姓名", currentTransactorId: "当前用户id", currentTransactorMainDepartmentId: "当前用户部门id", currentTransactorMainDepartment: "当前用户部门名称", currentTransactorRoleId: "当前用户角色id", currentTransactorRole: "当前用户角色名称", currentTransactorWorkGroupId: "当前用户工作组id", currentTransactorWorkGroup: "当前用户工作组名称", whenTheVariableIsEmpty: "变量为空时", ignore11: "忽略(1=1)", nonConformity: "不符合(1<>1)", currentHandler: "当前办理人", currentTaskClient: "当前任务委托人", currentAssignor: "当前指派人", rowsCanBeAdded: "可添加行", deleteLine: "可删除行", modifiableHistoricalData: "可修改历史数据", controlByField: "按字段控制", allReadOnly: "全部只读", allRequired: "全部必填", mainTableField: "主表字段", linkName: "环节名称", linkCode: "环节编码", taskFields: "任务字段", systemParameter: "系统参数", personnelScope: "人员范围", mainTableConditions: "主表条件", subtableCondition: "子表条件", accessControl: "进行权限控制", formBindingModel: "表单绑定model", allFields: "全部字段", tableDataNotEmpty: "表格数据不为空" } } }, c = { en: s, cn: d }, m = l.createI18n({ locale: "cn", messages: c, legacy: false });
|
|
49
|
-
function u() {
|
|
50
|
-
return { attr: { id: "newHumanTask", name: m.global.t("workflowEditor.task.newTask") }, g: {}, basicProperties: { processingMode: { type: "EDIT", passRate: 0, moreTransactor: false, actions: { action: [] } }, taskCode: "", taskTitle: "", remark: "", mailNotice: false, taskUrl: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, permissionSettings: { editForm: { permission: false, field: [], subTablePermission: [{ tableName: "sub_table1", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }, { tableName: "sub_table2", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } }, autoFilledFields: { field: [] }, reminder: null, events: { afterComplete: false }, variables: { variable: [] } };
|
|
51
|
-
}
|
|
48
|
+
const d = { workflowEditorPublicModel: { add: "Add", insert: "Insert", delete: "Delete", viewConditions: "View Conditions", agree: "Agree", disagree: "Disagree", andOr: "And / Or", mail: "Mail", message: "Message", App: "App", dingding: "DingTalk", qiwei: "Weixin", feishu: "Lark", determine: "Determine", cancel: "Cancel", choice: "Choice", empty: "Empty", save: "Save", export: "Export", open: "Open", return: "Return", flowChart: "Flow Chart", close: "Close", selectPage: "Select Page", search: "Search", adminSave: "Admin Save", tipTitle: "Tip", i18nSet: "I18n Setting", i18nZh: "Chinese", i18nEn: "English", i18nKey: "I18n Key", subprocessTitle: "Subprocess History", custom: "Custom", enable: "Enable" }, workflowEditorMessage: { requiredAndMustBeADate: "Required And Must Be A Date", requiredAndMustBeAnInteger: "Required And Must Be An Integer", requiredAndMustBeDecimal: "Required And Must Be Decimal", mustFill: "Must Fill", recordLine: "Record Line {row}", pageRecordLine: "Record in row {row} of page {pageNum}", currentHandlingPersonnel: "Current Handling Personnel", pleaseSelect: "Please Select", pleaseSelectARow: "Please Select A Row", conditionsHaveNotBeenSet: "Conditions Have Not Been Set", viewConditions: "View Conditions", fieldSettings: "Field Settings", valueSetting: "Value Setting", pleaseEnterContent: "Please Enter Content", theFieldNameOrFieldValueInLineCannotBeEmpty: "The Field Name Or Field Value In Line {row} Cannot Be Empty", fieldNameCannotBeEmpty: "Field Name Cannot Be Empty", fieldValueCannotBeEmpty: "Field Value Cannot Be Empty", pleaseEnterASubject: "Please Enter A Subject", selectStandardFields: "Select Standard Fields", pleaseEnterTheRoleName: "Please Enter The Role Name", queryResultIsEmpty: "Query Result Is Empty", selectRole: "Select Role", enterText: "Enter Text", selectField: "Select Field", pleaseSelectPersonnel: "Please Select Personnel", pleaseSelectAValue: "Please Select A Value", pleaseSelectAValueInTheCurrentTab: "Please Select A Value In The Current Tab", variableNameCannotBeEmpty: "Variable Name Cannot Be Empty", variableValueCannotBeEmpty: "Variable Value Cannot Be Empty", variableNameOrValueOnLineCannotBeEmpty: "Variable Name Or Value On Line {row} Cannot Be Empty", whenThereAreMultipleManagers: "When There Are Multiple Managers", duplicateOperationTypeWithLinePleaseReselect: "Duplicate Operation Type With Line {row}, Please Reselect", theOperationTypeOrNameInLineIsEmpty: "The Operation Type Or Name In Line {row} Is Empty", readOnly: "Read Only", pleaseEnterFieldName: "Please Enter Field Name", dataInLineCannotBeEmpty: "{data1} Or {data2} In Line {row} Cannot Be Empty", dataCannotBeEmpty: "{data} Cannot Be Empty", theStartAndEndOfTheFlowDirectionCannotBeTheSame: "The Start And End Of The Flow Direction Cannot Be The Same", onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows: "Only Condition Judgment, Branch And Manual Judgment Can Have Multiple Outbound Flows", startAndEndNodesCannotBeConnectedDirectly: "Start And End Nodes Cannot Be Connected Directly", endNodeCannotHaveOutFlowDirection: "End Node Cannot Have Out Flow Direction", itIsTheSameAsTheExistingLink: "It Is The Same As The Existing Link: {name}", updateSuccessful: "Update Successful", savedSuccessfully: "Saved Successfully", exportSucceeded: "Export Succeeded", pleaseSelectRole: "Please select role", subTableMustInputDatas: "The [{subtable}] subtable must enter data", pleaseEnterTheNameOrCode: "Please Enter The Name Or Describe", updateVersionSuccessful: "Version updated successfully", addVersionSuccessful: "Version added successfully", adminSaveTip: "The version must be added in the following cases:", adminSaveTip1: "1.The process name or code has been modified", adminSaveTip2: "2.The node name or code has been modified", adminSaveTip3: "3.Added node or flow direction", adminSaveTip4: "4.Node or flow direction removed", adminSaveTip5: 'Please select "Add Version" or "Update Current Version"?', updateVersion: "Update Current Version", addVersion: "Add Version", pleaseInputCode: "Please input the code first, and then do the international configuration", blankFieldNameOrValue: "Blank Field Name Or Value", enabledSuccessfully: "Enabled Successfully", additionalParam: "Request parameter" }, workflowEditor: { main: { tacheType: "Tache Type", straightLine: "Straight Line", curveLine: "Curve Line", brokenLine: "Broken Line" }, common: { remove: "Remove", attribute: "Attribute", fieldName: "Field Name(*)", operator: "Operator", value: "Value(*)", name: "Name", fieldValue: "Field Value", separator: "Separator", fillInMethod: "Fill In Method", cover: "Cover", append: "Append", insertToFront: "Insert To Front", fillInTime: "Fill In Time", fillInBeforeHandling: "Fill In Before Handling", fillInAfterHandling: "Fill In After Handling", type: "Type(*)", user: "User", role: "Role", department: "Department", workgroup: "Workgroup", selectFormField: "Select Form Field", notificationMethod: "Notification Method", addressee: "Addressee", theme: "Theme", content: "Content", notifyPersonnel: "Notify Personnel", selectusers: "Select Users", selectDepartment: "Select Department", selectTeam: "Select Team", selectRole: "Select Role", organizationStructure: "Organization Structure", formField: "Form Field", variableName: "Variable Name", variableValue: "Variable Value", selectField: "Select Field", taskNotice: "Task Notice", reminderNotice: "Reminder Notice", customMsg: "Custom Notice Message", canNotBeEmpty: "can Not Be Empty", copy: "Copy" }, process: { processInitiator: "Process Initiator", processInitiatorRole: "Process Initiator Role", processInitiatorDepartment: "ProcessInitiator Department", processInitiatorSuperiorDepartment: "Process Initiator Superior Ddepartment", processInitiatorTopDepartment: "Process Initiator Top Department", processInitiatorWorkingGroup: "Process Initiator Working Group", nameOfTheDirectSuperiorOfTheProcessInitiator: "Name Of The Direct Superior Of The Process Initiator", processInitiatorsDirectSuperiorDepartment: "Process initiator`s Direct Superior Department", directSuperiorRoleOfProcessInitiator: "Direct Superior Role Of Process Initiator", ProcessInitiatorsImmediateSuperiorWorkingGroup: "Process Initiator`s Immediate Superior Working Group", nameOfCurrentHandler: "Name Of Current Handler", currentHandlerRole: "Current Handler Role", currentHandlerDepartment: "Current Handler Department", currentHandlerSuperiorDepartment: "Current Handler`s Superior Department", topDepartmentOfCurrentHandler: "Top Department Of current Handler", currentHandlerWorkingGroup: "Current Handler Working Group", nameOfTheImmediateSuperiorOfTheCurrentHandler: "Name Of The Immediate Superior Of The Current Handler", currentHandlerDirectSuperiorDepartment: "Current handler`s Direct Superior Department", currentManagerDirectSuperiorRole: "Current Manager`s Direct Superior Role", workingGroupDirectlyUnderTheCurrentHandler: "Working Group Directly Under The Current Handler", topDepartments: "Top Departments", approvalResults: "Approval Results", totalNnumberOfPersonsWhoDisagreeWithTheCountersignature: "Total Number O Persons Who Disagree With The Countersignature", totalNumberOfCountersignedAndAgreedPersonnel: "Total Number Of Countersigned And Agreed Personnel", percentageOfPersonsWhoDisagreeWithTheCountersignature: "Percntage Of Persons Who Disagree With The Countersignature", percentageOfCountersignedAndAgreedPersonnel: "Percentage Of Countersigned And Agreed Personnel", percentageOfAbstentions: "Percentage Of Abstentions", percentageOfVotesAgainst: "Percentage Of Votes Against", percentageOfAffirmativeVotes: "Percentage Of Affirmative Votes", totalNumberOfAbstentions: "Total Number Of Abstentions", totalVotesAgainst: "Total Votes Against", totalNumberOfAffirmativeVotes: "Total Number Of Affirmative Votes", standardFields: "Standard Fields", perhaps: "Perhaps", also: "Also", greaterThan: "Greater Than", lessThan: "Less Than", beEqualTo: "Be Equal To", notGreaterThan: "Not Greater Than", notLessThan: "Not Less Than", notEqualTo: "Not Equal To", contain: "Contain", notIncluded: "Not Included", laterThan: "Later Than", earlierThan: "Earlier Than", noLaterThan: "No Later Than", noEarlierThan: "No Earlier Than", handlingTimeOfThisLink: "Handling Time Of This Link", handlerIDOfThisLink: "Handler ID Of This Link", currentHandlerPrincipalDepartmentID: "Current Handler Principal Department ID", iDOfTheImmediateSuperiorOfTheCurrentHandler: "ID Of The Immediate Superior Of The Current Handler", iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler: "ID Of The Superior Department Directly Under The Current Handler", loginNameOfTheHandlerInThisLink: "Login Name Of The Handler In This Link", NameOfCurrentHandler: "Name Of Current Handler", CurrentHandlerDepartment: "Current Handler Department", CurrentHandlerDepartmentID: "Current Handler Department ID", CurrentManagersPrincipalDepartment: "Current Manager`s Principal Department", iDOfSsuperiorDepartmentOfCurrentHandler: "ID Of Superior Department Of Current Handler", CurrentHandlersSuperiorDepartment: "Current Handler`s Superior Department", TopDepartmentOfCurrentHandler: "Top Department Of Current Handler", TopDepartmentIDOfCurrentHandler: "Top Department ID Of Current Handler", CurrentHandlerRole: "Current Handler Role", CurrentHandlerRoleID: "Current Handler Role ID", CurrentHandlerWorkingGroupID: "Current Handler Working Group ID", LoginNameOfTheImmediateSuperiorOfTheCurrentHandler: "Login Name Of The Immediate Superior Of The Current Handler", currentHandlersDirectSuperiorDepartment: "Current handler`s Direct Superior Department", currentManagersDirectSuperiorDepartment: "Current Manager`s Direct Superior Department", currentManagersDirectSuperiorRole: "Current manager`s Direct Superior Role", currentHandlersDirectSuperiorRoleID: "Current Handler`s Direct Superior Role ID", currentManagersDirectSuperiorWork: "Current Manager`s Direct Superior Work", iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler: "ID Of The Working Group Directly Under The Current Handler", operationsPerformedInThisPhase: "Operations Performed In This Phase", handlerIDOfThePreviousLink: "Handler ID Of The Previous Link", lastLinkHandlerLogin: "Last Link Handler Login", nameOfHandlerInThePreviousLink: "Name Of Handler In The Previous Link", currentManagersIdDirectlyUnderTheSuperior: "Current Manager`s Id Directly Under The Ssuperior", appointmentOfHandlerInThePreviousLink: "Appointment Of Handler In The Previous Link", personSpecifiedInFormField: "Person Specified In Form Field", filterByCriteria: "Filter by Criteria", additionalConditions: "Additional Conditions", handlingYyThePersonnelOfTheDepartmentOfTheInitiator: "Handling By The Personnel Of The Department Of The Initiator", personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling: "Personnel Of The Department Where The Initiator Works Participate In The Handling", selectSpecificHandler: "Select Specific Handler", selectOneFromDept: "Only one person is required to handle the same department", generateOneInstanceFromDept: "Generate an instance from the same department", selectionMethod: "Selection Method", manualSelection: "Manual Selection", autoSelect: "Auto Select", callbackURL: "Callback URL", cannotBeEmpty: "Cannot Be Empty", selectURL: "Select URL", fieldName: "Field Name", processAdministrator: "Process Administrator", currentHandler: "Current Handler", allHandlingPersonnel: "All Handling Personnel", designatedPersonnel: "Designated Personnel", listOfDesignatedPersons: "List Of Designated Persons", processName: "Process Name", processCode: "Process Code", creater: "Creater", correspondingForm: "Corresponding Form", processType: "Process Type", system: "System", affiliatedBranch: "Affiliated Branch", customCategory: "Custom Category", initiationProcess: "Initiation Process", deleteProcess: "Delete Process", cancelProcess: "Cancel Process", endProcess: "End Process", pauseProcess: "Pause Process", continueTheProcess: "Continue The Process", jumpLink: "Jump Link", modificationHandler: "Modification Handler", addHandler: "Add Handler", decreaseOofHandler: "Decrease Of Handler", appointedTask: "Appointed Task", returnTask: "Return Task", retrieveTask: "Retrieve Task", processTaskParameterSettings: "Process Task Parameter Settings", uRLForProcessingTask: "URL For Processing Task", parametersForReceivingTaskID: "Parameters For Receiving Task ID", viewFormParameterSettings: "View Form Parameter Settings", viewTheURLOfTheForm: "View The URL Of The Form", parametersOfReceivingEntityID: "Parameters Of Receiving Entity ID", emergencyTreatmentParameterSetting: "Emergency Treatment Parameter Setting", uRLOfEmergencyHandling: "URL Of Emergency Handling", initiateProcessParameterSettings: "Initiate Process Parameter Settings", uRLOfTheInitiatingProcess: "URL Of The Initiating Process", parametersForReceivingProcessName: "Parameters For Receiving Process Name", customParameterValue: "Custom Parameter Value", ViewFlowHistoryPersonnel: "View Flow History Personnel", ViewCountersignatureResultPersonnel: "View Countersignature Result Personnel", ViewVotingResultsBy: "View Voting Results By", name: "Name", code: "Code", subprocess: "Subprocess", transferValueFromMainFormToSubForm: "Transfer Value From Main Form To Sub Form", fieldsOfTheMainForm: "Fields Of The Main Form", fieldsOfSubform: "Fields Of Subform", subformReturnsResultsToMainForm: "Subform Returns Results To Main Form", eventsTriggeredBeforeStartingASubprocess: "Events Triggered Before Starting A Subprocess", triggerSubprocessEndEvent: "Trigger Subprocess End Event", setTheHandlerOfTheFirstPhaseOfTheSubProcess: "Set The Handler Of The First Phase Of The Sub Process", keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly: "Keep The Handler Unchanged When The Target Link Is Handled Repeatedly", branchingCondition: "Branching Condition", processProperties: "Process Properties", basicProperties: "Basic Properties", permissionSettings: "Permission Settings", notificationSettings: "Notification Settings", sendNotificationAfterProcessEnds: "Send Notification After Process Ends", reminderSettings: "Notice And Reminder Settings", parameterSsetting: "Parameter Setting", event: "Event", processVariables: "Process Variables", propertiesOfSubprocesses: "Properties Of Subprocesses", settingOfHandler: "Setting Of Handler", eventProcessing: "Event Processing", sponsorsImmediateSuperior: "Sponsor`s Immediate Superior", sponsorsSuperiorDepartment: "Sponsor`s Superior Department", sponsorTopDepartment: "Sponsor Top Department", superiorDepartmentDirectlyUnderTheInitiator: "Superior Department Directly Under The Initiator", sponsorsImmediateSuperiorWorkingGroup: "Sponsor`s Immediate Superior Working Group", lastLinkHandlerDepartment: "Last Link Handler Department", previousLinkHandlerSuperiorDepartment: "Previous Link Handler Superior Department", topDepartmentOfHandlerInThePreviousLink: "Top Department Of Handler In The Previous Link", previousLinkHandlersDirectSuperiorDepartment: "Previous Link Handler`s Direct Superior Department", previousLinkHandlerWorkingGroup: "Previous Link Handler Working Group", workingGroupDirectlyUnderTheManagerInThePreviousLink: "Working Group Directly Under The Manager In The Previous Link", getSubprocessEntityBean: "Get subprocess entity bean", getSubprocessEntityBeanPlaceholder: "The format is:xxxServiceImpl,for example:exampleServiceImpl", getSubprocessEntityBeanInfo: 'The bean needs to implement the interface "tech.imatrix.wf.core.OnStartingSubProcess"', isNull: "Is Null", isNotNull: "Is Not Null", defaultMailTemplate: "Default Mail Template", defaultCommonTemplate: "Default Common Template", trustTask: "Trust Task", subprocessIsSharedForm: "Main process and subprocess shared form", generateForParttimeDept: "Generate tasks for part-time department personnel", deptSpecifiedInFormField: "Dept Specified In Form Field", activateOneVoteVeto: "Activate one vote veto", systemVersion: "System Version", tableCode: "DataTable Name", deptApprover: "Authorized approver of the drafting department", superiorDeptApprover: "Drafted by the authorized approver of the superior department", superiorDeptLeader: "Drafted by the superior department head" }, task: { newCc: "New Cc", judge: "Judge", end: "End", branch: "Branch", manualJudgment: "Manual Judgment", newTask: "New Task", converge: "Converge", newProcess: "New Process", start: "Start", subprocess: "Subprocess", needToBeUrged: "Need To Be Urged", urgingMethod: "Urging Method", timeLimitForHandling: "Time Limit For Handling", day: "Day", urgingInterval: "Urging Interval", hour: "Hour", alwaysUrging: "Always Urging", limitedUrging: "Limited Urging", timesOfUrging: "Times Of Urging", includingHandoverPersonnel: "Including Handover Personnel", handoverPersonnel: "Handover Personnel", includeNotifyPeople: "Include Notify People", name: "Name", code: "Code", taskTitle: "Task Title", emailNotification: "Email Notification", handlingPage: "Handling Page", remarks: "Remarks", allowViews: "Allow Views", allowToViewCountersignatureResults: "Allow To View Countersignature Results", allowToViewVotingResults: "Allow To View Voting Results", allowToViewFlowHistory: "Allow To View Flow History", allowFormsToPrint: "Allow Forms To Print", attachmentAuthority: "Attachment Authority", downloadAttachment: "Download Attachment", bodyPermission: "Body Permission(Temporarily Closed)", additionalConditions: "Additional Conditions", setConditions: "Set Conditions", HandlingMethod: "Handling Method", editorial: "Editorial", approvalType: "Approval Type", countersign: "Countersign", voting: "Voting", anyOneCanHandleIt: "Any One Can Handle It", forAll: "For All", passRate: "Pass Rate", modifyOperationName: "Modify Operation Name", operationType: "Operation Type", visibleOrNot: "Visible Or Not", save: "Save", submission: "Submission", agree: "Agree", disagree: "Disagree", favor: "Favor", opposition: "Opposition", waiver: "Waiver", receive: "Receive", giveUp: "Give Up", additionalSignature: "Additional Signature", reductionOfSignature: "Reduction Of Signature", assignTask: "Assign Task", copyTask: "Copy Task", retrieveTask: "Retrieve Task", exportReport: "Export Report", readTask: "Read", selectEditableField: "Select Editable Field", optionalField: "Optional Field", selectedFields: "Selected Fields", editingMethod: "Editing Method", propertyName: "Property Name", condition: "Condition", nothing: "Nothing", beforeSubmission: "Before Submission", executionURL: "Execution URL", errorMessage: "Error Message", afterSubmission: "After Submission", allowEditingForms: "Allow Editing Forms", commentsAllowed: "Comments Allowed", commentsAreRequired: "Comments Are Required", deletePermission: "Delete Permission", addAttachment: "Add Attachment", deleteAttachment: "Delete Attachment", propertiesOfCCTask: "Properties Of CC Task", basicProperties: "Basic Properties", settingOfHandler: "Setting Of Handler", permissionSettings: "Permission Settings", attributeOfConditionJudgment: "Attribute Of Condition Judgment", allBranchFlows: "All Branch Flows", targetLink: "Target Link", propertiesOfBranches: "Properties Of Branches", attributesOfManualJudgment: "Attributes of manual Judgment", linkAttribute: "Link Attribute", autoFillInFieldSettings: "Auto Fill In Field Settings", reminderSettings: "Notice And Reminder Settings", eventProcessing: "Event Processing", linkVariable: "Link Variable", convergedProperties: "Converged Properties", humanTask: "Human Task", conditionJudgment: "Condition Judgment", cCtask: "CC Task", canItBeRejected: "Can It Be Rejected", selectNoticeTemplate: "Select Notice Template", selectMailTemplate: "Select Email Template", selectTemplate: "Select Template", autoTask: "Auto Task", newAutoTask: "New Auto Task", propertiesOfAutoTask: "Properties Of Auto Task", custombeanName: "Custom Bean Name", baseField: "Base Field", reminderTipTemplateMsg: "Template Description:", reminderTipRemindMsg: "Reminder Description:", reminderTipTemplateNotice: 'Notification templates: DingTalk, Enterprise WeChat, Feishu, and Customization all use notification templates. When using email, if "email template" is not selected, use notification template', reminderTipTemplateEmail: "Email Template: Customized Email Template", reminderTipRemindImmediately: "The reminder method, notification template, email template, maximum number of reminders, notification method, notification personnel, and transfer personnel will take effect immediately after modification", reminderTipRemindHistory: "The processing time limit, processing time granularity (days/hours), reminder interval, reminder interval time granularity (days/hours) are only effective for newly initiated processes. If historical data also requires the latest configuration, please contact the operation and maintenance personnel to adjust" }, transition: { flowProperties: "Flow Properties", basicProperties: "Basic Properties", notificationSettings: "Notification Settings", sendNotificationAfterFlow: "Send Notification After Flow", autoFillInFieldSettings: "Auto Fill In Field Settings", eventProcessing: "Event Processing", triggerFlowThroughEvent: "Trigger Flow Through Event", beanName: "Bean Name" }, condition: { combinationCondition: "Combination Condition", currentUserId: "Current User ID", currentUserLogin: "Current User Login", currentUserName: "Current User Name", fillInManually: "Fill In Manually", environmentVariable: "Environment Variable", databaseFields: "Database fields", requestParameters: "Request Parameters", currentTime: "Current Time", currentDate: "Current Date", currentTransactor: "Current Transactor", currentTransactorName: "Current Transactor Name", currentTransactorId: "Current Transactor Id", currentTransactorMainDepartmentId: "Current Transactor Main Department Id", currentTransactorMainDepartment: "Current Transactor Main Department", currentTransactorRoleId: "Current Transactor Role Id", currentTransactorRole: "Current Transactor Role", currentTransactorWorkGroupId: "Current Transactor Work Group Id", currentTransactorWorkGroup: "Current Transactor Work Group", whenTheVariableIsEmpty: "When The Variable Is Empty", ignore11: "Ignore (1 = 1)", nonConformity: "Non Conformity (1 < > 1)", currentHandler: "Current Handler", currentTaskClient: "Current Task Client", currentAssignor: "Current Assignor", rowsCanBeAdded: "Rows Can Be Added", deleteLine: "Delete Line", modifiableHistoricalData: "Modifiable Historical Data", controlByField: "Control By Field", allReadOnly: "All Read Only", allRequired: "All Required", mainTableField: "Main Table Field", linkName: "Link Name", linkCode: "Link Code", taskFields: "Task Fields", systemParameter: "System Parameter", personnelScope: "Personnel Scope", mainTableConditions: "Main Table Conditions", subtableCondition: "Subtable Condition", accessControl: "Access Control", formBindingModel: "Form Binding Model", allFields: "All Fields", tableDataNotEmpty: "Table Data Not Empty" } } }, c = { workflowEditorPublicModel: { add: "添加", insert: "插入", delete: "删除", viewConditions: "查看条件", agree: "同意", disagree: "不同意", andOr: "并且/或者", mail: "邮件", message: "短信", App: "App", dingding: "钉钉", qiwei: "企业微信", feishu: "飞书", determine: "确定", cancel: "取消", choice: "选择", empty: "清空", save: "保存", export: "导出", open: "打开", return: "返回", flowChart: "流程图", close: "关闭", selectPage: "选择页面", search: "查询", adminSave: "管理员保存", tipTitle: "提示", i18nSet: "国际化设置", i18nZh: "中文", i18nEn: "英文", i18nKey: "国际化key", subprocessTitle: "子流程流转历史", custom: "自定义", enable: "启用" }, workflowEditorMessage: { requiredAndMustBeADate: "必填且必须为日期", requiredAndMustBeAnInteger: "必填且必须为整数", requiredAndMustBeDecimal: "必填且必须为小数", mustFill: "必填", recordLine: "第{row}行记录", pageRecordLine: "第{pageNum}页第{row}行记录", currentHandlingPersonnel: "当前办理人员", pleaseSelect: "请选择", pleaseSelectARow: "请选中一行", conditionsHaveNotBeenSet: "还未设置条件", viewConditions: "查看条件", fieldSettings: "字段设置", valueSetting: "值设置", pleaseEnterContent: "请输入内容", theFieldNameOrFieldValueInLineCannotBeEmpty: "第{row}行的字段名或者字段值不能为空", fieldNameCannotBeEmpty: "字段名不能为空", fieldValueCannotBeEmpty: "字段值不能为空", pleaseEnterASubject: "请输入主题", selectStandardFields: "选择标准字段", pleaseEnterTheRoleName: "请输入角色名称", queryResultIsEmpty: "查询结果为空", selectRole: "选择角色", enterText: "输入文字", selectField: "选择字段", pleaseSelectPersonnel: "请选择人员", pleaseSelectAValue: "请选择值", pleaseSelectAValueInTheCurrentTab: "请在当前页签中选中一个值", variableNameCannotBeEmpty: "变量名不能为空", variableValueCannotBeEmpty: "变量值不能为空", variableNameOrValueOnLineCannotBeEmpty: "第{row}行的变量名或者变量值不能为空", whenThereAreMultipleManagers: "多个办理人时", duplicateOperationTypeWithLinePleaseReselect: "与第{row}行的操作类型重复了,请重新选择", theOperationTypeOrNameInLineIsEmpty: "第{row}行的操作类型或者名称为空", readOnly: "只读", pleaseEnterFieldName: "请输入字段名", dataInLineCannotBeEmpty: "第{row}行的{data1}或{data2}不能为空", dataCannotBeEmpty: "{data}不能为空", theStartAndEndOfTheFlowDirectionCannotBeTheSame: "流向的起点和终点不能相同", onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows: "只有条件判断、分支以及人工判断才能有多条外出流向", startAndEndNodesCannotBeConnectedDirectly: "开始节点和结束节点不能直接相连", endNodeCannotHaveOutFlowDirection: "结束节点不能有外出流向", itIsTheSameAsTheExistingLink: "与已有环节:{name}的编码重复", updateSuccessful: "更新成功", savedSuccessfully: "保存成功", exportSucceeded: "导出成功", pleaseSelectRole: "请选择角色", subTableMustInputDatas: "[{subTable}] 子表必须录入数据", pleaseEnterTheNameOrCode: "请输入字段名或字段描述", updateVersionSuccessful: "成功更新版本", addVersionSuccessful: "成功增加版本", adminSaveTip: "有以下几种情况时必须增加版本:", adminSaveTip1: "1、修改了流程名称或编码", adminSaveTip2: "2、修改了节点名称或编码", adminSaveTip3: "3、增加了节点或流向", adminSaveTip4: "4、移除了节点或流向", adminSaveTip5: "请选择“增加版本”或“更新当前版本”?", updateVersion: "更新当前版本", addVersion: "增加版本", pleaseInputCode: "请先输入编码,再做国际化配置", blankFieldNameOrValue: "字段名或值有空白", enabledSuccessfully: "启用成功", additionalParam: "请求参数" }, workflowEditor: { main: { tacheType: "环节类型", straightLine: "直线", curveLine: "曲线", brokenLine: "折线" }, common: { remove: "移除", attribute: "属性", fieldName: "字段名(*)", operator: "操作符", value: "值(*)", name: "字段名", fieldValue: "字段值", separator: "分隔符", fillInMethod: "填写方式", cover: "覆盖", append: "追加", insertToFront: "插入到最前", fillInTime: "填写时间", fillInBeforeHandling: "办理前填写", fillInAfterHandling: "办理后填写", type: "类别(*)", user: "用户", role: "角色", department: "部门", workgroup: "工作组", selectFormField: "选择表单字段", notificationMethod: "通知方式", addressee: "收件人", theme: "主题", content: "内容", notifyPersonnel: "通知人员", selectusers: "选择用户", selectDepartment: "选择部门", selectTeam: "选择工作组", selectRole: "选择角色", organizationStructure: "组织结构", formField: "表单字段", variableName: "变量名", variableValue: "变量值", selectField: "选择字段", taskNotice: "待办通知", reminderNotice: "催办通知", customMsg: "自定义消息内容", canNotBeEmpty: "不能为空", copy: "复制" }, process: { processInitiator: "起草人", processInitiatorRole: "起草人角色", processInitiatorDepartment: "起草人部门", processInitiatorSuperiorDepartment: "起草人上级部门", processInitiatorTopDepartment: "起草人顶级部门", processInitiatorWorkingGroup: "起草人工作组", nameOfTheDirectSuperiorOfTheProcessInitiator: "起草人直属上级姓名", processInitiatorsDirectSuperiorDepartment: "起草人直属上级部门", directSuperiorRoleOfProcessInitiator: "起草人直属上级角色", ProcessInitiatorsImmediateSuperiorWorkingGroup: "起草人直属上级工作组", nameOfCurrentHandler: "当前办理人姓名", currentHandlerRole: "当前办理人角色", currentHandlerDepartment: "当前办理人部门", currentHandlerSuperiorDepartment: "当前办理人上级部门", topDepartmentOfCurrentHandler: "当前办理人顶级部门", currentHandlerWorkingGroup: "当前办理人工作组", nameOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级姓名", currentHandlerDirectSuperiorDepartment: "当前办理人直属上级部门", currentManagerDirectSuperiorRole: "当前办理人直属上级角色", workingGroupDirectlyUnderTheCurrentHandler: "当前办理人直属上级工作组", topDepartments: "顶级部门", approvalResults: "审批结果", totalNnumberOfPersonsWhoDisagreeWithTheCountersignature: "会签不同意人员总数", totalNumberOfCountersignedAndAgreedPersonnel: "会签同意人员总数", percentageOfPersonsWhoDisagreeWithTheCountersignature: "会签不同意人员百分比", percentageOfCountersignedAndAgreedPersonnel: "会签同意人员百分比", percentageOfAbstentions: "弃权票百分比", percentageOfVotesAgainst: "反对票百分比", percentageOfAffirmativeVotes: "赞成票百分比", totalNumberOfAbstentions: "弃权票总数", totalVotesAgainst: "反对票总数", totalNumberOfAffirmativeVotes: "赞成票总数", standardFields: "标准字段", perhaps: "或者", also: "并且", greaterThan: "大于", lessThan: "小于", beEqualTo: "等于", notGreaterThan: "不大于", notLessThan: "不小于", notEqualTo: "不等于", contain: "包含", notIncluded: "不包含", laterThan: "晚于", earlierThan: "早于", noLaterThan: "不晚于", noEarlierThan: "不早于", handlingTimeOfThisLink: "本环节办理时间", handlerIDOfThisLink: "本环节办理人id", currentHandlerPrincipalDepartmentID: "当前办理人正职部门id", iDOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级id", iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler: "当前办理人直属上级正职部门id", loginNameOfTheHandlerInThisLink: "本环节办理人登录名", NameOfCurrentHandler: "当前办理人姓名", CurrentHandlerDepartment: "当前办理人部门", CurrentHandlerDepartmentID: "当前办理人部门id", CurrentManagersPrincipalDepartment: "当前办理人正职部门", iDOfSsuperiorDepartmentOfCurrentHandler: "当前办理人上级部门id", CurrentHandlersSuperiorDepartment: "当前办理人上级部门", TopDepartmentOfCurrentHandler: "当前办理人顶级部门", TopDepartmentIDOfCurrentHandler: "当前办理人顶级部门id", CurrentHandlerRole: "当前办理人角色", CurrentHandlerRoleID: "当前办理人角色id", CurrentHandlerWorkingGroupID: "当前办理人工作组id", LoginNameOfTheImmediateSuperiorOfTheCurrentHandler: "当前办理人直属上级登录名", currentHandlersDirectSuperiorDepartment: "当前办理人直属上级部门", currentManagersDirectSuperiorDepartment: "当前办理人直属上级正职部门", currentManagersDirectSuperiorRole: "当前办理人直属上级角色", currentHandlersDirectSuperiorRoleID: "当前办理人直属上级角色id", currentManagersDirectSuperiorWork: "当前办理人直属上级工作", iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler: "当前办理人直属上级工作组id", operationsPerformedInThisPhase: "本环节执行的操作", handlerIDOfThePreviousLink: "上一环节办理人id", lastLinkHandlerLogin: "上一环节办理人登录名", nameOfHandlerInThePreviousLink: "上一环节办理人姓名", currentManagersIdDirectlyUnderTheSuperior: "当前办理人直属上级部门id", appointmentOfHandlerInThePreviousLink: "上一环节办理人指定", personSpecifiedInFormField: "表单字段中指定的人员", filterByCriteria: "按条件筛选", additionalConditions: "附加条件", handlingYyThePersonnelOfTheDepartmentOfTheInitiator: "起草人所在部门人员办理", personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling: "起草人所在部门人员参与办理", selectSpecificHandler: "选择具体办理人", selectOneFromDept: "同一部门仅需一人办理", generateOneInstanceFromDept: "同一部门生成一个实例", selectionMethod: "选择方式", manualSelection: "人工选择", autoSelect: "自动选择", callbackURL: "回调URL", cannotBeEmpty: "不能为空", selectURL: "选人URL", fieldName: "字段名称", processAdministrator: "流程管理员", currentHandler: "当前办理人", allHandlingPersonnel: "所有办理人员", designatedPersonnel: "指定人员", listOfDesignatedPersons: "指定人员列表", processName: "流程名称", processCode: "流程编码", creater: "创建人", correspondingForm: "对应表单", processType: "流程类型", system: "所属系统", affiliatedBranch: "所属分支机构", customCategory: "自定义类别", initiationProcess: "发起流程", deleteProcess: "删除流程", cancelProcess: "取消流程", endProcess: "结束流程", pauseProcess: "暂停流程", continueTheProcess: "继续流程", jumpLink: "跳转环节", modificationHandler: "修改办理人", addHandler: "增加办理人", decreaseOofHandler: "减少办理人", appointedTask: "指派任务", returnTask: "退回任务", retrieveTask: "取回任务", processTaskParameterSettings: "办理任务参数设置", uRLForProcessingTask: "办理任务的url", parametersForReceivingTaskID: "接收任务id的参数", viewFormParameterSettings: "查看表单参数设置", viewTheURLOfTheForm: "查看表单的url", parametersOfReceivingEntityID: "接收实体id的参数", emergencyTreatmentParameterSetting: "应急处理参数设置", uRLOfEmergencyHandling: "应急处理的url", initiateProcessParameterSettings: "发起流程参数设置", uRLOfTheInitiatingProcess: "发起流程的url", parametersForReceivingProcessName: "接收流程名称的参数", customParameterValue: "自定义参数值", ViewFlowHistoryPersonnel: "查看流转历史人员", ViewCountersignatureResultPersonnel: "查看会签结果人员", ViewVotingResultsBy: "查看投票结果人员", name: "名称", code: "编码", subprocess: "子流程", transferValueFromMainFormToSubForm: "主表单给子表单传值", fieldsOfTheMainForm: "主表单的字段", fieldsOfSubform: "子表单的字段", subformReturnsResultsToMainForm: "子表单返回结果给主表单", eventsTriggeredBeforeStartingASubprocess: "启动子流程前事件", triggerSubprocessEndEvent: "触发子流程结束事件", setTheHandlerOfTheFirstPhaseOfTheSubProcess: "设置子流程第一环节办理人", keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly: "目标环节重复办理时保持办理人不变", branchingCondition: "分支条件", processProperties: "流程属性", basicProperties: "基本属性", permissionSettings: "权限设置", notificationSettings: "通知设置", sendNotificationAfterProcessEnds: "流程结束后发送通知", reminderSettings: "通知与催办", parameterSsetting: "参数设置", event: "事件", processVariables: "流程变量", propertiesOfSubprocesses: "子流程的属性", settingOfHandler: "办理人设置", eventProcessing: "事件处理", sponsorsImmediateSuperior: "起草人直属上级", sponsorsSuperiorDepartment: "起草人上级部门", sponsorTopDepartment: "起草人顶级部门", superiorDepartmentDirectlyUnderTheInitiator: "起草人直属上级部门", sponsorsImmediateSuperiorWorkingGroup: "起草人直属上级工作组", lastLinkHandlerDepartment: "上一环节办理人部门", previousLinkHandlerSuperiorDepartment: "上一环节办理人上级部门", topDepartmentOfHandlerInThePreviousLink: "上一环节办理人顶级部门", previousLinkHandlersDirectSuperiorDepartment: "上一环节办理人直属上级部门", previousLinkHandlerWorkingGroup: "上一环节办理人工作组", workingGroupDirectlyUnderTheManagerInThePreviousLink: "上一环节办理人直属上级工作组", getSubprocessEntityBean: "获得子流程实体bean", getSubprocessEntityBeanPlaceholder: "格式为:xxxServiceImpl,例如:exampleServiceImpl", getSubprocessEntityBeanInfo: "该bean需要实现接口tech.imatrix.wf.core.OnStartingSubProcess", isNull: "等于Null", isNotNull: "不等于Null", defaultMailTemplate: "默认邮件模板", defaultCommonTemplate: "默认通知模板", trustTask: "委托任务", subprocessIsSharedForm: "主子流程共用表单", generateForParttimeDept: "为兼职部门人员生成任务", deptSpecifiedInFormField: "表单字段中指定的部门", activateOneVoteVeto: "一票否决", systemVersion: "系统版本", tableCode: "对应数据表", deptApprover: "起草人部门授权审批人", superiorDeptApprover: "起草人上级部门授权审批人", superiorDeptLeader: "起草人上级部门负责人" }, task: { newCc: "新抄送", judge: "判断", end: "结束", branch: "分支", manualJudgment: "人工判断", newTask: "新任务", converge: "汇聚", newProcess: "新流程", start: "开始", subprocess: "子流程", needToBeUrged: "需要催办", urgingMethod: "催办方式", timeLimitForHandling: "办理时限", day: "天", urgingInterval: "催办间隔", hour: "小时", alwaysUrging: "一直催办", limitedUrging: "限次催办", timesOfUrging: "催办次数", includingHandoverPersonnel: "包含移交人员", handoverPersonnel: "移交人员", includeNotifyPeople: "包含通知人员", name: "名称", code: "编码", taskTitle: "任务标题", emailNotification: "邮件通知", handlingPage: "办理页面", remarks: "备注", allowViews: "允许查看意见", allowToViewCountersignatureResults: "允许查看会签结果", allowToViewVotingResults: "允许查看投票结果", allowToViewFlowHistory: "允许查看流转历史", allowFormsToPrint: "允许打印表单", attachmentAuthority: "附件权限", downloadAttachment: "下载附件", bodyPermission: "正文权限(暂不开放)", additionalConditions: "附加条件", setConditions: "设置条件", HandlingMethod: "办理方式", editorial: "编辑式", approvalType: "审批式", countersign: "会签式", voting: "投票式", anyOneCanHandleIt: "任意一人办理即可", forAll: "所有人均需办理", passRate: "通过率", modifyOperationName: "修改操作名称", operationType: "操作类型", visibleOrNot: "是否可见", save: "保存", submission: "提交", agree: "同意", disagree: "不同意", favor: "赞成", opposition: "反对", waiver: "弃权", receive: "领取", giveUp: "放弃", additionalSignature: "加签", reductionOfSignature: "减签", assignTask: "指派", copyTask: "抄送", retrieveTask: "取回", exportReport: "导出报告", readTask: "阅", selectEditableField: "选择可编辑字段", optionalField: "可选字段", selectedFields: "已选字段", editingMethod: "编辑方式", propertyName: "属性名", condition: "条件", nothing: "无", beforeSubmission: "提交前", executionURL: "执行url", errorMessage: "出错信息", afterSubmission: "提交后", allowEditingForms: "允许编辑表单", commentsAllowed: "允许填写意见", commentsAreRequired: "必须填写意见", deletePermission: "删除权限", addAttachment: "添加附件", deleteAttachment: "删除附件", propertiesOfCCTask: "抄送任务的属性", basicProperties: "基本属性", settingOfHandler: "办理人设置", permissionSettings: "权限设置", attributeOfConditionJudgment: "条件判断的属性", allBranchFlows: "所有分支流向", targetLink: "目标环节", propertiesOfBranches: "分支的属性", attributesOfManualJudgment: "人工判断的属性", linkAttribute: "环节属性", autoFillInFieldSettings: "自动填写字段设置", reminderSettings: "通知与催办", eventProcessing: "事件处理", linkVariable: "环节变量", convergedProperties: "汇聚的属性", humanTask: "人工任务", conditionJudgment: "条件判断", cCtask: "抄送任务", canItBeRejected: "是否可驳回", selectNoticeTemplate: "选择通知模板", selectMailTemplate: "选择邮件模板", selectTemplate: "选择模板", autoTask: "自动任务", newAutoTask: "新自动任务", propertiesOfAutoTask: "自动任务的属性", custombeanName: "自定义bean", baseField: "基础字段", reminderTipTemplateMsg: "模板说明:", reminderTipRemindMsg: "催办说明:", reminderTipTemplateNotice: "通知模板:钉钉、企微、飞书、自定义都使用通知模板。邮件方式时,如果没有选“邮件模板”,则使用通知模板", reminderTipTemplateEmail: "邮件模板:邮件方式特制模板", reminderTipRemindImmediately: "催办方式、通知模板、邮件模板、催办次数、通知方式、通知人员、移交人员 修改后立即生效", reminderTipRemindHistory: "办理时限、办理时限的时间粒度(天/小时)、催办间隔、催办间隔的时间粒度(天/小时)仅对新发起的流程生效,如历史数据也需要应用最新配置,请联系运维人员调整" }, transition: { flowProperties: "流向属性", basicProperties: "基本属性", notificationSettings: "通知设置", sendNotificationAfterFlow: "流过后发送通知", autoFillInFieldSettings: "自动填写字段设置", eventProcessing: "事件处理", triggerFlowThroughEvent: "触发流过事件", beanName: "bean名称" }, condition: { combinationCondition: "组合条件", currentUserId: "当前用户ID", currentUserLogin: "当前用户登录名", currentUserName: "当前用户姓名", fillInManually: "手动填写", environmentVariable: "环境变量", databaseFields: "数据库字段", requestParameters: "请求参数", currentTime: "当前时间", currentDate: "当前日期", currentTransactor: "当前用户登录名", currentTransactorName: "当前用户姓名", currentTransactorId: "当前用户id", currentTransactorMainDepartmentId: "当前用户部门id", currentTransactorMainDepartment: "当前用户部门名称", currentTransactorRoleId: "当前用户角色id", currentTransactorRole: "当前用户角色名称", currentTransactorWorkGroupId: "当前用户工作组id", currentTransactorWorkGroup: "当前用户工作组名称", whenTheVariableIsEmpty: "变量为空时", ignore11: "忽略(1=1)", nonConformity: "不符合(1<>1)", currentHandler: "当前办理人", currentTaskClient: "当前任务委托人", currentAssignor: "当前指派人", rowsCanBeAdded: "可添加行", deleteLine: "可删除行", modifiableHistoricalData: "可修改历史数据", controlByField: "按字段控制", allReadOnly: "全部只读", allRequired: "全部必填", mainTableField: "主表字段", linkName: "环节名称", linkCode: "环节编码", taskFields: "任务字段", systemParameter: "系统参数", personnelScope: "人员范围", mainTableConditions: "主表条件", subtableCondition: "子表条件", accessControl: "进行权限控制", formBindingModel: "表单绑定model", allFields: "全部字段", tableDataNotEmpty: "表格数据不为空" } } }, m = { en: d, cn: c }, u = l.createI18n({ locale: "cn", messages: m, legacy: false });
|
|
52
49
|
function p() {
|
|
53
|
-
return
|
|
50
|
+
return { attr: { id: "newHumanTask", name: u.global.t("workflowEditor.task.newTask") }, g: {}, basicProperties: { processingMode: { type: "EDIT", passRate: 0, moreTransactor: false, actions: { action: [] } }, taskCode: "", taskTitle: "", remark: "", mailNotice: false, taskUrl: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, permissionSettings: { editForm: { permission: false, field: [], subTablePermission: [{ tableName: "sub_table1", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }, { tableName: "sub_table2", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } }, autoFilledFields: { field: [] }, reminder: null, events: { afterComplete: false }, variables: { variable: [] } };
|
|
54
51
|
}
|
|
55
52
|
function h() {
|
|
56
|
-
return window.$
|
|
53
|
+
return window.$store;
|
|
57
54
|
}
|
|
58
55
|
function f() {
|
|
59
|
-
return
|
|
56
|
+
return window.$locale ? u.locale = window.$locale : u.locale = "cn", u.global;
|
|
57
|
+
}
|
|
58
|
+
function w() {
|
|
59
|
+
return [{ name: "Start", label: f().t("workflowEditor.task.start"), icon: "start", type: "primary", class: "", round: true, width: 48, height: 48, color: "#67C23A" }, { name: "HumanTask", label: f().t("workflowEditor.task.humanTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#000" }, { name: "Decision", label: f().t("workflowEditor.task.conditionJudgment"), icon: "decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Fork", label: f().t("workflowEditor.task.branch"), icon: "fork", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Join", label: f().t("workflowEditor.task.converge"), icon: "join", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Subprocess", label: f().t("workflowEditor.task.subprocess"), icon: "subprocess", type: "warning", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "HumanDecision", label: f().t("workflowEditor.task.manualJudgment"), icon: "human-decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "CopyTask", label: f().t("workflowEditor.task.cCtask"), icon: "copy-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "AutoTask", label: f().t("workflowEditor.task.autoTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "End", label: f().t("workflowEditor.task.end"), icon: "end", type: "danger", class: "workflow-end-button", round: true, width: 48, height: 48, color: "#F56C6C" }];
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function g(e2, t2) {
|
|
62
62
|
switch ("string" == typeof e2 && (e2 = function(e3) {
|
|
63
|
-
return
|
|
63
|
+
return h().getters["wfEditor/taches"].filter((t3) => t3.id === e3)[0];
|
|
64
64
|
}(e2)), t2) {
|
|
65
65
|
case "up":
|
|
66
66
|
case "top":
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
return { position: "", x: e2.x, y: e2.y };
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function C(e2) {
|
|
80
80
|
const t2 = document.getElementById("svg").getScreenCTM();
|
|
81
81
|
return { x: (e2.clientX - t2.e) / t2.a, y: (e2.clientY - t2.f) / t2.d };
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function k() {
|
|
84
84
|
!function() {
|
|
85
|
-
for (const e2 of
|
|
85
|
+
for (const e2 of h().getters["wfEditor/selectedTaches"])
|
|
86
86
|
e2.isSelected = false;
|
|
87
|
-
|
|
88
|
-
}(),
|
|
87
|
+
h().commit("wfEditor/setSelectedTaches", []);
|
|
88
|
+
}(), h().getters["wfEditor/selectedTransition"] && (h().getters["wfEditor/selectedTransition"].isSelected = false), h().commit("wfEditor/setSelectedTransition", null);
|
|
89
89
|
}
|
|
90
90
|
function b(e2) {
|
|
91
91
|
Object.getOwnPropertyNames(e2).forEach(function(t2) {
|
|
@@ -100,20 +100,20 @@
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function V(e2, t2) {
|
|
104
104
|
t2 || (t2 = []), Array.isArray(t2) || (t2 = [t2]);
|
|
105
|
-
const o2 =
|
|
105
|
+
const o2 = h().getters["wfEditor/taches"];
|
|
106
106
|
for (const l2 of t2) {
|
|
107
107
|
const t3 = { id: l2.attr.id, name: l2.attr.name, x: l2.g.x, y: l2.g.y, width: l2.g.width, height: l2.g.height, type: e2, isSelected: false, ref: l2 };
|
|
108
108
|
o2.push(t3);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
e2 && (
|
|
111
|
+
function y(e2) {
|
|
112
|
+
e2 && (V("HumanTask", e2.humanTask), V("Decision", e2.decision), V("Fork", e2.fork), V("Join", e2.join), V("Subprocess", e2.subprocess), V("HumanDecision", e2.humanDecision), V("CopyTask", e2.copyTask), V("AutoTask", e2.autoTask), V("Start", e2.start), V("End", e2.end), function(e3, t2) {
|
|
113
113
|
t2 || (t2 = []), Array.isArray(t2) || (t2 = [t2]);
|
|
114
|
-
const o2 =
|
|
114
|
+
const o2 = h().getters["wfEditor/transitions"];
|
|
115
115
|
for (const e4 of t2) {
|
|
116
|
-
const t3 = e4.basicProperties.remark || "", l2 = { id: e4.attr.id, startJoint: { parent:
|
|
116
|
+
const t3 = e4.basicProperties.remark || "", l2 = { id: e4.attr.id, startJoint: { parent: T(e4.attr.from), position: e4.g.fromJoint }, endJoint: { parent: T(e4.attr.to), position: e4.g.toJoint }, isSelected: false, remark: t3, lineInfo: { type: e4.g.lineType, controlPoint: null }, ref: e4 };
|
|
117
117
|
if ("CurveLine" === e4.g.lineType && e4.g.coordinate) {
|
|
118
118
|
const t4 = e4.g.coordinate.split(",");
|
|
119
119
|
l2.lineInfo.controlPoint = { x: t4[0], y: t4[1] };
|
|
@@ -130,81 +130,81 @@
|
|
|
130
130
|
}
|
|
131
131
|
}(0, e2.transition));
|
|
132
132
|
}
|
|
133
|
-
function y(e2) {
|
|
134
|
-
return p().getters["wfEditor/transitions"].filter((t2) => t2.startJoint.parent.id === e2 || t2.ref.attr.from === e2);
|
|
135
|
-
}
|
|
136
133
|
function v(e2) {
|
|
137
|
-
|
|
138
|
-
return t2.length > 0 ? t2[0] : null;
|
|
134
|
+
return h().getters["wfEditor/transitions"].filter((t2) => t2.startJoint.parent.id === e2 || t2.ref.attr.from === e2);
|
|
139
135
|
}
|
|
140
136
|
function T(e2) {
|
|
137
|
+
const t2 = h().getters["wfEditor/taches"].filter((t3) => t3.ref.attr.id === e2);
|
|
138
|
+
return t2.length > 0 ? t2[0] : null;
|
|
139
|
+
}
|
|
140
|
+
function N(e2) {
|
|
141
141
|
return JSON.parse(JSON.stringify(e2));
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function x(e2, t2) {
|
|
144
144
|
var o2;
|
|
145
|
-
(o2 = t2,
|
|
145
|
+
(o2 = t2, h().getters["wfEditor/transitions"].filter((e3) => e3.endJoint.parent.id === o2 || e3.ref.attr.to === o2)).map((t3) => {
|
|
146
146
|
t3.ref.attr.to = e2, t3.ref.attr.id = "flow_" + t3.ref.attr.from + "_to_" + t3.ref.attr.to, t3.id = t3.ref.attr.id;
|
|
147
147
|
});
|
|
148
|
-
return
|
|
148
|
+
return v(t2).map((t3) => {
|
|
149
149
|
t3.ref.attr.from = e2, t3.ref.attr.id = "flow_" + t3.ref.attr.from + "_to_" + t3.ref.attr.to, t3.id = t3.ref.attr.id;
|
|
150
150
|
}), true;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
const t2 =
|
|
152
|
+
function E(e2) {
|
|
153
|
+
const t2 = T(e2.formModel.id);
|
|
154
154
|
if (t2 && t2.id !== e2.id)
|
|
155
|
-
return e2.$alert(
|
|
156
|
-
|
|
155
|
+
return e2.$alert(f().t("workflowEditorMessage.itIsTheSameAsTheExistingLink", { name: t2.name })), void (e2.formModel.id = e2.id);
|
|
156
|
+
x(e2.formModel.id, e2.id), e2.$emit("update:id", e2.formModel.id);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function S(e2, t2) {
|
|
159
159
|
let l2 = "";
|
|
160
160
|
if (e2.processI18n && e2.model.ref && e2.model.ref.basicProperties && e2.model.ref.basicProperties.i18nKey) {
|
|
161
|
-
const r2 = e2.model.ref.basicProperties.i18nKey,
|
|
162
|
-
e2.processI18n[r2] && (l2 = e2.processI18n[r2][
|
|
161
|
+
const r2 = e2.model.ref.basicProperties.i18nKey, i2 = o.getLanguageWithLocale();
|
|
162
|
+
e2.processI18n[r2] && (l2 = e2.processI18n[r2][i2]), l2 || (l2 = t2);
|
|
163
163
|
} else
|
|
164
164
|
l2 = t2;
|
|
165
165
|
return l2;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
const e2 =
|
|
169
|
-
return e2.g = { x: 200, y: 150, width: 80, height: 40 }, { attr: { name:
|
|
170
|
-
}, newHumanTask:
|
|
171
|
-
return { attr: { id: "t3", name:
|
|
167
|
+
const M = { newProcess: function() {
|
|
168
|
+
const e2 = p();
|
|
169
|
+
return e2.g = { x: 200, y: 150, width: 80, height: 40 }, { attr: { name: u.global.t("workflowEditor.task.newProcess"), code: "" }, properties: { basicProperties: { admin: "", formVersion: 1, formCode: "", processTypeCode: "", systemCode: "", creator: "", customType: "", branchCode: "" }, permissionSettings: { viewFlowHistory: "", viewSubscribeResult: "", viewVoteResult: "" }, reminder: null, parameterSettings: { doTask: { url: "", parameterName: "" }, viewForm: { url: "", parameterName: "" }, startProcess: { url: "", parameterName: "", parameterValue: "" }, handleEmergency: { url: "", parameterName: "" } }, events: { event: [] }, variables: { variable: [] } }, start: { attr: { id: "start" }, g: { x: 50, y: 50, width: 48, height: 48 } }, humanTask: e2, end: { attr: { id: "end" }, g: { x: 500, y: 300, width: 48, height: 48 } } };
|
|
170
|
+
}, newHumanTask: p, newDecision: function() {
|
|
171
|
+
return { attr: { id: "t3", name: u.global.t("workflowEditor.task.judge") }, g: {} };
|
|
172
172
|
}, newStart: function() {
|
|
173
|
-
return { attr: { id: "", name:
|
|
173
|
+
return { attr: { id: "", name: u.global.t("workflowEditor.task.start") }, g: {} };
|
|
174
174
|
}, newEnd: function() {
|
|
175
|
-
return { attr: { id: "", name:
|
|
175
|
+
return { attr: { id: "", name: u.global.t("workflowEditor.task.end") }, g: {} };
|
|
176
176
|
}, newTransition: function() {
|
|
177
177
|
return { attr: { id: "", from: "", to: "" }, g: {}, basicProperties: { remark: "", isOriginalUser: false, condition: "" }, inform: { informType: "mail", userCondition: "", subject: "", content: "" }, autoFilledFields: { field: [] }, onTransit: false };
|
|
178
178
|
}, newSubprocess: function() {
|
|
179
|
-
return { attr: { id: "", name:
|
|
179
|
+
return { attr: { id: "", name: u.global.t("workflowEditor.task.subprocess"), taskTitle: "" }, g: {}, processCode: "", processVersion: "", events: { beforeStart: "", end: false }, transactorSettings: { userCondition: "", additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, parameters: { field: [] }, result: { field: [] } };
|
|
180
180
|
}, newFork: function() {
|
|
181
|
-
return { attr: { id: "", name:
|
|
181
|
+
return { attr: { id: "", name: u.global.t("workflowEditor.task.branch") }, g: {} };
|
|
182
182
|
}, newJoin: function() {
|
|
183
|
-
return { attr: { id: "", name:
|
|
183
|
+
return { attr: { id: "", name: u.global.t("workflowEditor.task.converge") }, g: {} };
|
|
184
184
|
}, newHumanDecision: function() {
|
|
185
|
-
return { attr: { name:
|
|
185
|
+
return { attr: { name: u.global.t("workflowEditor.task.manualJudgment") }, g: {} };
|
|
186
186
|
}, newCopyTask: function() {
|
|
187
|
-
return { attr: { id: "", name:
|
|
187
|
+
return { attr: { id: "", name: u.global.t("workflowEditor.task.newCc") }, g: {}, taskNotice: {}, basicProperties: { taskTitle: "", remark: "", taskUrl: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, events: {}, permissionSettings: { editForm: { permission: false, field: [] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } } };
|
|
188
188
|
}, newAutoTask: function() {
|
|
189
|
-
return { attr: { id: "", name:
|
|
190
|
-
} },
|
|
189
|
+
return { attr: { id: "", name: u.global.t("workflowEditor.task.newAutoTask") }, g: {}, taskNotice: {}, basicProperties: { beanName: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, events: {}, permissionSettings: { editForm: { permission: false, field: [] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } } };
|
|
190
|
+
} }, D = (e2, t2) => {
|
|
191
191
|
const o2 = e2.__vccOpts || e2;
|
|
192
192
|
for (const [e3, l2] of t2)
|
|
193
193
|
o2[e3] = l2;
|
|
194
194
|
return o2;
|
|
195
|
-
},
|
|
196
|
-
const
|
|
195
|
+
}, $ = { class: "svg-icon", "aria-hidden": "true" }, F = ["xlink:href"];
|
|
196
|
+
const P = D({ name: "IconSvg", props: { icon: { type: String, required: true } }, computed: { iconName() {
|
|
197
197
|
return `#icon-${this.icon}`;
|
|
198
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
199
|
-
return r.openBlock(), r.createElementBlock("svg",
|
|
200
|
-
}]]),
|
|
198
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
199
|
+
return r.openBlock(), r.createElementBlock("svg", $, [r.createElementVNode("use", { "xlink:href": n2.iconName }, null, 8, F)]);
|
|
200
|
+
}]]), B = { name: "Toolbox", components: { IconSvg: P }, data: () => ({ componentList: w() }), computed: { ...t.mapGetters("wfEditor", ["componentToDraw"]) }, methods: { ...t.mapMutations("wfEditor", ["setComponentToDraw"]), select(e2) {
|
|
201
201
|
this.setComponentToDraw(e2);
|
|
202
|
-
} } },
|
|
203
|
-
const
|
|
202
|
+
} } }, O = { style: { height: "calc(100vh - 98px)", "background-color": "#FFFFFF" } };
|
|
203
|
+
const I = D(B, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
204
204
|
const a2 = r.resolveComponent("icon-svg"), s2 = r.resolveComponent("el-button");
|
|
205
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
206
|
-
}], ["__scopeId", "data-v-0d941719"]]),
|
|
207
|
-
return
|
|
205
|
+
return r.openBlock(), r.createElementBlock("div", O, [r.createElementVNode("h3", null, r.toDisplayString(e2.$t("workflowEditor.main.tacheType")), 1), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.componentList, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3.name, type: e3.type, class: r.normalizeClass(e3.class), round: e3.round, onMousedown: (t3) => n2.select(e3.name) }, { default: r.withCtx(() => [r.createVNode(a2, { icon: e3.icon }, null, 8, ["icon"]), r.createTextVNode(" " + r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["type", "class", "round", "onMousedown"]))), 128))]);
|
|
206
|
+
}], ["__scopeId", "data-v-0d941719"]]), _ = { name: "Joint", props: { parent: { type: Object, default: null }, position: { type: String, default: null } }, data: () => ({ isActivated: false }), computed: { ...t.mapGetters("wfEditor", ["transitions", "startJoint", "endJoint", "draggerToMove"]), joint() {
|
|
207
|
+
return g(this.parent, this.position);
|
|
208
208
|
}, jointContainer() {
|
|
209
209
|
return { x: this.joint.x - 10, y: this.joint.y - 10 };
|
|
210
210
|
} }, methods: { ...t.mapMutations("wfEditor", ["setStartJoint", "setEndJoint", "stopDrawingLine", "setDraggerToMove", "setContextMenuVisible"]), isValidTransition(e2, t2) {
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
if ("Decision" !== e2.parent.type && "Fork" !== e2.parent.type && "HumanDecision" !== e2.parent.type) {
|
|
216
216
|
let t3 = 0;
|
|
217
217
|
this.draggerToMove && (t3 = 1);
|
|
218
|
-
if (
|
|
218
|
+
if (v(e2.parent.id).length > t3)
|
|
219
219
|
return this.$alert(this.$t("workflowEditorMessage.onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows")), false;
|
|
220
220
|
}
|
|
221
221
|
return "Start" === e2.parent.type && "End" === t2.parent.type ? (this.$alert(this.$t("workflowEditorMessage.startAndEndNodesCannotBeConnectedDirectly")), false) : "End" !== e2.parent.type || (this.$alert(this.$t("workflowEditorMessage.endNodeCannotHaveOutFlowDirection")), false);
|
|
@@ -235,40 +235,40 @@
|
|
|
235
235
|
if (this.isValidTransition(this.startJoint, e2)) {
|
|
236
236
|
this.setEndJoint(e2);
|
|
237
237
|
const t2 = { id: "flow_" + this.startJoint.parent.id + "_to_" + this.endJoint.parent.id, startJoint: this.startJoint, endJoint: this.endJoint, isSelected: false, lineInfo: { type: "StraightLine", controlPoint: null } };
|
|
238
|
-
t2.ref =
|
|
238
|
+
t2.ref = M.newTransition(), t2.ref.attr = { id: t2.id, from: this.startJoint.parent.id, to: this.endJoint.parent.id }, this.transitions.push(t2);
|
|
239
239
|
}
|
|
240
240
|
this.stopDrawingLine();
|
|
241
241
|
}, enterJoint() {
|
|
242
242
|
this.isActivated = true, this.$emit("enter-joint");
|
|
243
243
|
}, leaveJoint() {
|
|
244
244
|
this.isActivated = false, this.$emit("leave-joint");
|
|
245
|
-
} } },
|
|
246
|
-
const
|
|
245
|
+
} } }, R = ["x", "y"], A = ["cx", "cy"];
|
|
246
|
+
const U = D(_, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
247
247
|
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[4] || (t2[4] = r.withModifiers(() => {
|
|
248
|
-
}, ["stop"])) }, [r.createElementVNode("rect", { x:
|
|
248
|
+
}, ["stop"])) }, [r.createElementVNode("rect", { x: n2.jointContainer.x, y: n2.jointContainer.y, class: r.normalizeClass({ "joint-container": true, "joint-activated": i2.isActivated }), width: "20", height: "20", rx: "3", ry: "3", onMousemove: t2[0] || (t2[0] = r.withModifiers((...e3) => n2.enterJoint && n2.enterJoint(...e3), ["stop"])), onMouseout: t2[1] || (t2[1] = r.withModifiers((...e3) => n2.leaveJoint && n2.leaveJoint(...e3), ["stop"])), onMousedown: t2[2] || (t2[2] = r.withModifiers((t3) => {
|
|
249
249
|
e2.setContextMenuVisible(false), e2.setStartJoint({ parent: o2.parent, position: o2.position });
|
|
250
|
-
}, ["stop"])), onMouseup: t2[3] || (t2[3] = (...e3) =>
|
|
251
|
-
}]]),
|
|
250
|
+
}, ["stop"])), onMouseup: t2[3] || (t2[3] = (...e3) => n2.mouseup && n2.mouseup(...e3)) }, null, 42, R), r.withDirectives(r.createElementVNode("circle", { cx: n2.joint.x, cy: n2.joint.y, r: "3", class: "joint" }, null, 8, A), [[r.vShow, !i2.isActivated]])], 32);
|
|
251
|
+
}]]), L = { startDrag(e2) {
|
|
252
252
|
this.model.name, this.setContextMenuVisible(false), function(e3, t2) {
|
|
253
|
-
|
|
254
|
-
const o2 =
|
|
255
|
-
|
|
253
|
+
k(), t2.$parent.region = null, t2.$parent.showHistory || (t2.model.isSelected = true), h().getters["wfEditor/selectedTaches"].push(t2.model);
|
|
254
|
+
const o2 = C(e3);
|
|
255
|
+
h().commit("wfEditor/setMouseDownPosition", o2), h().commit("wfEditor/setMovingTache", true);
|
|
256
256
|
}(e2, this);
|
|
257
257
|
}, endDrag() {
|
|
258
|
-
this.model.name,
|
|
258
|
+
this.model.name, h().commit("wfEditor/setMovingTache", false), h().commit("wfEditor/setMouseDownPosition", null);
|
|
259
259
|
}, showJoints() {
|
|
260
260
|
this.$parent.showHistory || (this.jointPoints = ["up", "right", "down", "left"]);
|
|
261
261
|
}, hideJoints() {
|
|
262
262
|
this.jointPoints = [];
|
|
263
|
-
} },
|
|
264
|
-
const
|
|
263
|
+
} }, H = { name: "Start", components: { Joint: U }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, z = ["width", "height", "x", "y"], W = ["x", "y", "width", "height"];
|
|
264
|
+
const j = D(H, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
265
265
|
const a2 = r.resolveComponent("joint");
|
|
266
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor(""), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, start: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
267
|
-
}]]),
|
|
268
|
-
const
|
|
266
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor(""), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, start: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, z), r.createElementVNode("use", { "xlink:href": "#icon-start", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#67C23A", class: "draggable" }, null, 8, W), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
267
|
+
}]]), J = { name: "End", components: { Joint: U }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, G = ["width", "height", "x", "y"], q = ["x", "y", "width", "height"];
|
|
268
|
+
const K = D(J, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
269
269
|
const a2 = r.resolveComponent("joint");
|
|
270
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor(""), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, end: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
271
|
-
}]]),
|
|
270
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor(""), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, end: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, G), r.createElementVNode("use", { "xlink:href": "#icon-end", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#F56C6C", class: "draggable" }, null, 8, q), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
271
|
+
}]]), X = { name: "TacheResizer", props: { owner: { type: Object, default: null }, position: { type: String, default: "" } }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), area() {
|
|
272
272
|
let e2, t2;
|
|
273
273
|
switch (this.position) {
|
|
274
274
|
case "NW":
|
|
@@ -285,131 +285,131 @@
|
|
|
285
285
|
}
|
|
286
286
|
e2 -= 4, t2 -= 4;
|
|
287
287
|
return { x: e2, y: t2, width: 8, height: 8, cursor: this.position.toLowerCase() + "-resize" };
|
|
288
|
-
} }, methods: { ...t.mapMutations("wfEditor", ["setMovingResizer", "setResizerToMove", "setContextMenuVisible"]) } },
|
|
289
|
-
const
|
|
290
|
-
return o2.owner.isSelected && 1 == e2.selectedTaches.length ? (r.openBlock(), r.createElementBlock("rect", { key: 0, x:
|
|
288
|
+
} }, methods: { ...t.mapMutations("wfEditor", ["setMovingResizer", "setResizerToMove", "setContextMenuVisible"]) } }, Y = ["x", "y", "width", "height"];
|
|
289
|
+
const Q = D(X, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
290
|
+
return o2.owner.isSelected && 1 == e2.selectedTaches.length ? (r.openBlock(), r.createElementBlock("rect", { key: 0, x: n2.area.x, y: n2.area.y, width: n2.area.width, height: n2.area.height, style: r.normalizeStyle({ cursor: n2.area.cursor }), class: "resizer", onMousedown: t2[0] || (t2[0] = r.withModifiers((t3) => {
|
|
291
291
|
e2.setContextMenuVisible(false), e2.setResizerToMove({ owner: o2.owner, position: o2.position });
|
|
292
|
-
}, ["stop"])), onMouseup: t2[1] || (t2[1] = r.withModifiers((t3) => e2.setResizerToMove(null), ["stop"])) }, null, 44,
|
|
293
|
-
}]]),
|
|
292
|
+
}, ["stop"])), onMouseup: t2[1] || (t2[1] = r.withModifiers((t3) => e2.setResizerToMove(null), ["stop"])) }, null, 44, Y)) : r.createCommentVNode("", true);
|
|
293
|
+
}]]), Z = { name: "HumanTask", components: { Joint: U, TacheResizer: Q }, props: { model: { type: Object, default: null } }, data() {
|
|
294
294
|
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
295
295
|
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
296
296
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
297
297
|
} }, created() {
|
|
298
|
-
this.name =
|
|
298
|
+
this.name = S(this, this.name);
|
|
299
299
|
}, mounted() {
|
|
300
300
|
this.$watch("model.name", function(e2) {
|
|
301
|
-
this.name =
|
|
301
|
+
this.name = S(this, e2);
|
|
302
302
|
});
|
|
303
|
-
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
304
|
-
const
|
|
303
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, ee = ["width", "height", "x", "y"], te = ["x", "y"];
|
|
304
|
+
const oe = D(Z, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
305
305
|
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
306
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass(["draggable", "task-tache", { selected: o2.model.isSelected }]), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
307
|
-
}]]),
|
|
306
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass(["draggable", "task-tache", { selected: o2.model.isSelected }]), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, ee), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, te), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
307
|
+
}]]), le = { name: "Decision", components: { Joint: U }, props: { model: { type: Object, default: null } }, data() {
|
|
308
308
|
return { jointPoints: [], name: this.model.name };
|
|
309
309
|
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
310
310
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
311
311
|
} }, created() {
|
|
312
|
-
this.name =
|
|
312
|
+
this.name = S(this, this.name);
|
|
313
313
|
}, mounted() {
|
|
314
314
|
this.$watch("model.name", function(e2) {
|
|
315
|
-
this.name =
|
|
315
|
+
this.name = S(this, e2);
|
|
316
316
|
});
|
|
317
|
-
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
318
|
-
const
|
|
317
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, re = ["width", "height", "x", "y"], ie = ["x", "y", "width", "height"], ne = ["x", "y"];
|
|
318
|
+
const ae = D(le, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
319
319
|
const a2 = r.resolveComponent("joint");
|
|
320
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Decision"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
321
|
-
}]]),
|
|
320
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Decision"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, re), r.createElementVNode("use", { "xlink:href": "#icon-decision", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, ie), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, ne), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
321
|
+
}]]), se = { name: "Subprocess", components: { Joint: U, TacheResizer: Q }, props: { model: { type: Object, default: null } }, data() {
|
|
322
322
|
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
323
323
|
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
324
324
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
325
325
|
} }, created() {
|
|
326
|
-
this.name =
|
|
326
|
+
this.name = S(this, this.name);
|
|
327
327
|
}, mounted() {
|
|
328
328
|
this.$watch("model.name", function(e2) {
|
|
329
|
-
this.name =
|
|
329
|
+
this.name = S(this, e2);
|
|
330
330
|
});
|
|
331
|
-
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
332
|
-
const
|
|
331
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, de = ["width", "height", "x", "y"], ce = ["x", "y"];
|
|
332
|
+
const me = D(se, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
333
333
|
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
334
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Subprocess"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
335
|
-
}]]),
|
|
334
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Subprocess"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, de), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, ce), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
335
|
+
}]]), ue = { name: "CustomTask", components: { Joint: U, TacheResizer: Q }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [], resizers: ["NW", "NE", "SW", "SE"] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), text() {
|
|
336
336
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
337
|
-
} }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
338
|
-
const
|
|
337
|
+
} }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, pe = ["width", "height", "x", "y"], he = ["x", "y"];
|
|
338
|
+
const fe = D(ue, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
339
339
|
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
340
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
341
|
-
}]]),
|
|
340
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, pe), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(o2.model.name), 9, he), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
341
|
+
}]]), we = { name: "Fork", components: { Joint: U }, props: { model: { type: Object, default: null } }, data() {
|
|
342
342
|
return { jointPoints: [], name: this.model.name };
|
|
343
343
|
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
344
344
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
345
345
|
} }, created() {
|
|
346
|
-
this.name =
|
|
346
|
+
this.name = S(this, this.name);
|
|
347
347
|
}, mounted() {
|
|
348
348
|
this.$watch("model.name", function(e2) {
|
|
349
|
-
this.name =
|
|
349
|
+
this.name = S(this, e2);
|
|
350
350
|
});
|
|
351
|
-
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
352
|
-
const be =
|
|
351
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, ge = ["width", "height", "x", "y"], Ce = ["x", "y", "width", "height"], ke = ["x", "y"];
|
|
352
|
+
const be = D(we, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
353
353
|
const a2 = r.resolveComponent("joint");
|
|
354
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Fork"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
355
|
-
}]]),
|
|
354
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Fork"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, ge), r.createElementVNode("use", { "xlink:href": "#icon-fork", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, Ce), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, ke), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
355
|
+
}]]), Ve = { name: "Join", components: { Joint: U }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), text() {
|
|
356
356
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
357
|
-
} }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
358
|
-
const
|
|
357
|
+
} }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, ye = ["width", "height", "x", "y"], ve = ["x", "y", "width", "height"], Te = ["x", "y"];
|
|
358
|
+
const Ne = D(Ve, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
359
359
|
const a2 = r.resolveComponent("joint");
|
|
360
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Join"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
361
|
-
}]]),
|
|
360
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Join"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, ye), r.createElementVNode("use", { "xlink:href": "#icon-join", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, ve), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(o2.model.name), 9, Te), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
361
|
+
}]]), xe = { name: "HumanDecision", components: { Joint: U }, props: { model: { type: Object, default: null } }, data() {
|
|
362
362
|
return { jointPoints: [], name: this.model.name };
|
|
363
363
|
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
364
364
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
365
365
|
} }, created() {
|
|
366
|
-
this.name =
|
|
366
|
+
this.name = S(this, this.name);
|
|
367
367
|
}, mounted() {
|
|
368
368
|
this.$watch("model.name", function(e2) {
|
|
369
|
-
this.name =
|
|
369
|
+
this.name = S(this, e2);
|
|
370
370
|
});
|
|
371
|
-
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
372
|
-
const
|
|
371
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, Ee = ["width", "height", "x", "y"], Se = ["x", "y", "width", "height"], Me = ["x", "y"];
|
|
372
|
+
const De = D(xe, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
373
373
|
const a2 = r.resolveComponent("joint");
|
|
374
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanDecision"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "human-decision": !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
375
|
-
}]]),
|
|
374
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("HumanDecision"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "human-decision": !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, Ee), r.createElementVNode("use", { "xlink:href": "#icon-human-decision", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, Se), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, Me), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
375
|
+
}]]), $e = { name: "CopyTask", components: { Joint: U, TacheResizer: Q }, props: { model: { type: Object, default: null } }, data() {
|
|
376
376
|
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
377
377
|
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
378
378
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
379
379
|
} }, created() {
|
|
380
|
-
this.name =
|
|
380
|
+
this.name = S(this, this.name);
|
|
381
381
|
}, mounted() {
|
|
382
382
|
this.$watch("model.name", function(e2) {
|
|
383
|
-
this.name =
|
|
383
|
+
this.name = S(this, e2);
|
|
384
384
|
});
|
|
385
|
-
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
386
|
-
const
|
|
385
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, Fe = ["width", "height", "x", "y"], Pe = ["x", "y"];
|
|
386
|
+
const Be = D($e, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
387
387
|
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
388
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("CopyTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, Fe), r.createElementVNode("text", { x:
|
|
389
|
-
}]]),
|
|
388
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("CopyTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, Fe), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, Pe), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
389
|
+
}]]), Oe = { name: "AutoTask", components: { Joint: U, TacheResizer: Q }, props: { model: { type: Object, default: null } }, data() {
|
|
390
390
|
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
391
391
|
}, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
392
392
|
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
393
393
|
} }, created() {
|
|
394
|
-
this.name =
|
|
394
|
+
this.name = S(this, this.name);
|
|
395
395
|
}, mounted() {
|
|
396
396
|
this.$watch("model.name", function(e2) {
|
|
397
|
-
this.name =
|
|
397
|
+
this.name = S(this, e2);
|
|
398
398
|
});
|
|
399
|
-
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...
|
|
400
|
-
const
|
|
399
|
+
}, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...L } }, Ie = ["width", "height", "x", "y"], _e = ["x", "y"];
|
|
400
|
+
const Re = D(Oe, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
401
401
|
const a2 = r.resolveComponent("joint"), s2 = r.resolveComponent("tache-resizer");
|
|
402
|
-
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("AutoTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10,
|
|
403
|
-
}]]),
|
|
404
|
-
const
|
|
405
|
-
const e2 =
|
|
402
|
+
return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("AutoTask"), ["stop"])) }, [r.createElementVNode("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, Ie), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, _e), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.jointPoints, (e3) => (r.openBlock(), r.createBlock(a2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.resizers, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
403
|
+
}]]), Ae = ["d"];
|
|
404
|
+
const Ue = D({ name: "StraightLine", props: { owner: { type: Object, default: null } }, computed: { path() {
|
|
405
|
+
const e2 = g(this.owner.startJoint.parent, this.owner.startJoint.position), t2 = g(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
406
406
|
return "M" + e2.x + " " + e2.y + " L" + t2.x + " " + t2.y;
|
|
407
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
408
|
-
return r.openBlock(), r.createElementBlock("path", { d:
|
|
409
|
-
}]]),
|
|
410
|
-
return
|
|
407
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
408
|
+
return r.openBlock(), r.createElementBlock("path", { d: n2.path, "marker-end": "url(#arrow)" }, null, 8, Ae);
|
|
409
|
+
}]]), Le = { name: "CurveLine", props: { owner: { type: Object, default: null } }, computed: { startPoint() {
|
|
410
|
+
return g(this.owner.startJoint.parent, this.owner.startJoint.position);
|
|
411
411
|
}, endPoint() {
|
|
412
|
-
return
|
|
412
|
+
return g(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
413
413
|
}, controlPoint() {
|
|
414
414
|
return this.owner.lineInfo.controlPoint;
|
|
415
415
|
}, path() {
|
|
@@ -427,13 +427,13 @@
|
|
|
427
427
|
this.setControlPointToMove({ owner: this.owner });
|
|
428
428
|
}, endDrag() {
|
|
429
429
|
this.setControlPointToMove(null);
|
|
430
|
-
} } },
|
|
431
|
-
const
|
|
432
|
-
return r.openBlock(), r.createElementBlock("g", null, [r.createElementVNode("path", { d:
|
|
433
|
-
}], ["__scopeId", "data-v-0ff53a0a"]]),
|
|
434
|
-
return
|
|
430
|
+
} } }, He = ["d"], ze = ["d"], We = ["d"], je = ["cx", "cy"];
|
|
431
|
+
const Je = D(Le, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
432
|
+
return r.openBlock(), r.createElementBlock("g", null, [r.createElementVNode("path", { d: n2.path, "marker-end": "url(#arrow)" }, null, 8, He), o2.owner.isSelected ? (r.openBlock(), r.createElementBlock(r.Fragment, { key: 0 }, [r.createElementVNode("path", { d: n2.pathToStartPoint, class: "control-line" }, null, 8, ze), r.createElementVNode("path", { d: n2.pathToEndPoint, class: "control-line" }, null, 8, We), r.createElementVNode("circle", { cx: n2.controlPoint.x, cy: n2.controlPoint.y, r: "3", class: "control-point", onMousedown: t2[0] || (t2[0] = r.withModifiers((...e3) => n2.startDrag && n2.startDrag(...e3), ["stop"])), onMouseup: t2[1] || (t2[1] = r.withModifiers((...e3) => n2.endDrag && n2.endDrag(...e3), ["stop"])) }, null, 40, je)], 64)) : r.createCommentVNode("", true)]);
|
|
433
|
+
}], ["__scopeId", "data-v-0ff53a0a"]]), Ge = { name: "BrokenLine", props: { owner: { type: Object, default: null } }, computed: { startPoint() {
|
|
434
|
+
return g(this.owner.startJoint.parent, this.owner.startJoint.position);
|
|
435
435
|
}, endPoint() {
|
|
436
|
-
return
|
|
436
|
+
return g(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
437
437
|
}, controlPoint() {
|
|
438
438
|
return this.owner.lineInfo.controlPoint;
|
|
439
439
|
}, path() {
|
|
@@ -450,24 +450,24 @@
|
|
|
450
450
|
this.setControlPointToMove({ owner: this.owner, pointIndex: e2 });
|
|
451
451
|
}, endDrag() {
|
|
452
452
|
this.setControlPointToMove(null);
|
|
453
|
-
} } }, qe = ["d"],
|
|
454
|
-
const
|
|
455
|
-
return r.openBlock(), r.createElementBlock("g", null, [r.createElementVNode("path", { d:
|
|
453
|
+
} } }, qe = ["d"], Ke = ["cx", "cy", "onMousedown"];
|
|
454
|
+
const Xe = { name: "Transition", components: { StraightLine: Ue, CurveLine: Je, BrokenLine: D(Ge, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
455
|
+
return r.openBlock(), r.createElementBlock("g", null, [r.createElementVNode("path", { d: n2.path, "marker-end": "url(#arrow)" }, null, 8, qe), o2.owner.isSelected ? (r.openBlock(), r.createElementBlock(r.Fragment, { key: 0 }, [n2.controlPoint ? (r.openBlock(true), r.createElementBlock(r.Fragment, { key: 0 }, r.renderList(n2.controlPoint, (e3, o3) => (r.openBlock(), r.createElementBlock("circle", { key: e3.x + e3.y, cx: e3.x, cy: e3.y, r: "3", class: "control-point", onMousedown: r.withModifiers((e4) => n2.startDrag(o3, e4), ["stop"]), onMouseup: t2[0] || (t2[0] = r.withModifiers((...e4) => n2.endDrag && n2.endDrag(...e4), ["stop"])) }, null, 40, Ke))), 128)) : r.createCommentVNode("", true)], 64)) : r.createCommentVNode("", true)]);
|
|
456
456
|
}], ["__scopeId", "data-v-788fb0ae"]]) }, props: { model: { type: Object, default: null } }, data() {
|
|
457
457
|
const e2 = this.getTextPoint();
|
|
458
458
|
return { text: { x: e2.x, y: e2.y }, name: this.model.remark };
|
|
459
459
|
}, computed: { ...t.mapGetters("wfEditor", ["draggerToMove", "processI18n"]), draggers() {
|
|
460
|
-
const e2 =
|
|
460
|
+
const e2 = g(this.model.startJoint.parent, this.model.startJoint.position);
|
|
461
461
|
e2.position = "start";
|
|
462
|
-
const t2 =
|
|
462
|
+
const t2 = g(this.model.endJoint.parent, this.model.endJoint.position);
|
|
463
463
|
return t2.position = "end", [e2, t2];
|
|
464
464
|
}, path() {
|
|
465
465
|
return "M" + this.draggers[0].x + " " + this.draggers[0].y + " L" + this.draggers[1].x + " " + this.draggers[1].y;
|
|
466
466
|
} }, created() {
|
|
467
|
-
this.name =
|
|
467
|
+
this.name = S(this, this.name);
|
|
468
468
|
}, mounted() {
|
|
469
469
|
this.$watch("model.remark", function(e2) {
|
|
470
|
-
if (this.name =
|
|
470
|
+
if (this.name = S(this, e2), this.name && "" !== this.name) {
|
|
471
471
|
const e3 = this.getTextPoint();
|
|
472
472
|
this.text.x = e3.x, this.text.y = e3.y;
|
|
473
473
|
}
|
|
@@ -491,43 +491,43 @@
|
|
|
491
491
|
this.text.x = t2.x, this.text.y = t2.y;
|
|
492
492
|
});
|
|
493
493
|
}, methods: { ...t.mapMutations("wfEditor", ["setMouseDownPosition", "setDraggerToMove", "setSelectedTransition", "setPropertiesEditorFor"]), getTextPoint() {
|
|
494
|
-
const e2 =
|
|
495
|
-
let o2 = e2.x < t2.x ? e2.x : t2.x, l2 = e2.y < t2.y ? e2.y : t2.y, r2 = o2 + Math.abs(e2.x - t2.x) / 2,
|
|
494
|
+
const e2 = g(this.model.startJoint.parent, this.model.startJoint.position), t2 = g(this.model.endJoint.parent, this.model.endJoint.position);
|
|
495
|
+
let o2 = e2.x < t2.x ? e2.x : t2.x, l2 = e2.y < t2.y ? e2.y : t2.y, r2 = o2 + Math.abs(e2.x - t2.x) / 2, i2 = l2 + Math.abs(e2.y - t2.y) / 2;
|
|
496
496
|
if ("CurveLine" === this.model.lineInfo.type) {
|
|
497
497
|
const t3 = this.model.lineInfo.controlPoint;
|
|
498
|
-
t3 && (o2 = e2.x < t3.x ? e2.x : parseFloat(t3.x), l2 = e2.y < t3.y ? e2.y : parseFloat(t3.y), r2 = o2 + Math.abs(e2.x - t3.x) / 2 + 10,
|
|
498
|
+
t3 && (o2 = e2.x < t3.x ? e2.x : parseFloat(t3.x), l2 = e2.y < t3.y ? e2.y : parseFloat(t3.y), r2 = o2 + Math.abs(e2.x - t3.x) / 2 + 10, i2 = l2 + Math.abs(e2.y - t3.y) / 2 - 10);
|
|
499
499
|
} else if ("BrokenLine" === this.model.lineInfo.type && this.model.lineInfo.controlPoint && this.model.lineInfo.controlPoint.length > 0) {
|
|
500
500
|
const t3 = this.model.lineInfo.controlPoint[0];
|
|
501
|
-
t3 && (o2 = e2.x < t3.x ? e2.x : parseFloat(t3.x), l2 = e2.y < t3.y ? e2.y : parseFloat(t3.y), r2 = o2 + Math.abs(e2.x - t3.x) / 2,
|
|
501
|
+
t3 && (o2 = e2.x < t3.x ? e2.x : parseFloat(t3.x), l2 = e2.y < t3.y ? e2.y : parseFloat(t3.y), r2 = o2 + Math.abs(e2.x - t3.x) / 2, i2 = l2 + Math.abs(e2.y - t3.y) / 2 - 10);
|
|
502
502
|
}
|
|
503
|
-
return { x: r2, y:
|
|
503
|
+
return { x: r2, y: i2 };
|
|
504
504
|
}, select(e2) {
|
|
505
|
-
|
|
505
|
+
k(), this.model.isSelected = true, this.setSelectedTransition(this.model);
|
|
506
506
|
}, startDrag(e2, t2) {
|
|
507
|
-
this.setMouseDownPosition(
|
|
507
|
+
this.setMouseDownPosition(C(e2)), this.setDraggerToMove({ owner: this.model, position: t2, originStartJoint: this.model.startJoint, originEndJoint: this.model.endJoint });
|
|
508
508
|
}, endDrag() {
|
|
509
509
|
}, showPropertiesEditor() {
|
|
510
510
|
"Decision" !== this.model.endJoint.parent.type && this.setPropertiesEditorFor("Transition");
|
|
511
|
-
} } },
|
|
512
|
-
const
|
|
513
|
-
return r.openBlock(), r.createElementBlock("g", { class: r.normalizeClass({ "no-events": null != e2.draggerToMove }), onMousedown: t2[1] || (t2[1] = r.withModifiers((...e3) =>
|
|
514
|
-
}], ["__scopeId", "data-v-a1576cad"]]),
|
|
511
|
+
} } }, Ye = ["x", "y"], Qe = { key: 0 }, Ze = ["cx", "cy", "onMousedown"];
|
|
512
|
+
const et = D(Xe, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
513
|
+
return r.openBlock(), r.createElementBlock("g", { class: r.normalizeClass({ "no-events": null != e2.draggerToMove }), onMousedown: t2[1] || (t2[1] = r.withModifiers((...e3) => n2.select && n2.select(...e3), ["stop"])), onDblclick: t2[2] || (t2[2] = r.withModifiers((...e3) => n2.showPropertiesEditor && n2.showPropertiesEditor(...e3), ["stop"])) }, [r.createElementVNode("text", { x: i2.text.x, y: i2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, Ye), (r.openBlock(), r.createBlock(r.resolveDynamicComponent(o2.model.lineInfo.type), { owner: o2.model, class: r.normalizeClass({ transition: true, selected: o2.model.isSelected || o2.model.startJoint.parent.isSelected && o2.model.endJoint.parent.isSelected }) }, null, 8, ["owner", "class"])), o2.model.isSelected ? (r.openBlock(), r.createElementBlock("g", Qe, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.draggers, (e3) => (r.openBlock(), r.createElementBlock("circle", { key: e3.position, cx: e3.x, cy: e3.y, class: "transition-dragger", r: "4", onMousedown: r.withModifiers((t3) => n2.startDrag(t3, e3.position), ["stop"]), onMouseup: t2[0] || (t2[0] = (...e4) => n2.endDrag && n2.endDrag(...e4)) }, null, 40, Ze))), 128))])) : r.createCommentVNode("", true)], 34);
|
|
514
|
+
}], ["__scopeId", "data-v-a1576cad"]]), tt = { name: "VirtualTransition", props: { toPosition: { type: Object, default: null } }, computed: { ...t.mapGetters("wfEditor", ["startJoint"]), path() {
|
|
515
515
|
if (!this.startJoint)
|
|
516
516
|
return null;
|
|
517
|
-
const e2 =
|
|
517
|
+
const e2 = g(this.startJoint.parent, this.startJoint.position), t2 = this.toPosition;
|
|
518
518
|
return "M" + e2.x + " " + e2.y + " L" + t2.x + " " + t2.y;
|
|
519
|
-
} }, methods: {} },
|
|
520
|
-
const
|
|
521
|
-
return r.openBlock(), r.createElementBlock("g", null, [r.withDirectives(r.createElementVNode("path", { d:
|
|
522
|
-
}]]),
|
|
523
|
-
const t2 =
|
|
519
|
+
} }, methods: {} }, ot = ["d"];
|
|
520
|
+
const lt = D(tt, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
521
|
+
return r.openBlock(), r.createElementBlock("g", null, [r.withDirectives(r.createElementVNode("path", { d: n2.path, class: "virtual-transition", "marker-end": "url(#arrow)" }, null, 8, ot), [[r.vShow, n2.path]])]);
|
|
522
|
+
}]]), rt = { name: "SelectionRegion", props: { region: { type: Object, default: null } }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...t.mapMutations("wfEditor", ["setDrawingRegion", "setMovingRegion", "setMouseDownPosition"]), startDrag(e2) {
|
|
523
|
+
const t2 = C(e2);
|
|
524
524
|
this.setMouseDownPosition(t2), this.setMovingRegion(true);
|
|
525
525
|
}, endDrag(e2) {
|
|
526
526
|
this.setMovingRegion(false), this.setMouseDownPosition(null);
|
|
527
|
-
} } },
|
|
528
|
-
const nt =
|
|
529
|
-
return r.openBlock(), r.createElementBlock("g", null, [o2.region ? (r.openBlock(), r.createElementBlock("rect", { key: 0, x: o2.region.x, y: o2.region.y, width: o2.region.width, height: o2.region.height, class: r.normalizeClass({ draggable: true, "selection-region": true, dashed: e2.selectedTaches.length < 1 }), onMousedown: t2[0] || (t2[0] = r.withModifiers((...e3) =>
|
|
530
|
-
}]]),
|
|
527
|
+
} } }, it = ["x", "y", "width", "height"];
|
|
528
|
+
const nt = D(rt, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
529
|
+
return r.openBlock(), r.createElementBlock("g", null, [o2.region ? (r.openBlock(), r.createElementBlock("rect", { key: 0, x: o2.region.x, y: o2.region.y, width: o2.region.width, height: o2.region.height, class: r.normalizeClass({ draggable: true, "selection-region": true, dashed: e2.selectedTaches.length < 1 }), onMousedown: t2[0] || (t2[0] = r.withModifiers((...e3) => n2.startDrag && n2.startDrag(...e3), ["stop"])), onMouseup: t2[1] || (t2[1] = r.withModifiers((...e3) => n2.endDrag && n2.endDrag(...e3), ["stop"])) }, null, 42, it)) : r.createCommentVNode("", true)]);
|
|
530
|
+
}]]), at = { name: "FormFields", props: { fields: { type: Array, default: null } }, data: () => ({ selectedField: null, copyShowFields: [], showFields: [], searchFormCode: "", dialogVisible: true }), computed: { ...t.mapGetters("wfEditor", ["formFields"]), allFields() {
|
|
531
531
|
return this.fields ? this.fields : this.formFields;
|
|
532
532
|
} }, mounted() {
|
|
533
533
|
this.copyAllFields = this.allFields, this.showFields = this.allFields;
|
|
@@ -535,22 +535,22 @@
|
|
|
535
535
|
this.$emit("close", this.selectedField);
|
|
536
536
|
}, searchForm() {
|
|
537
537
|
this.searchFormCode && "" !== this.searchFormCode ? this.showFields = this.copyAllFields.filter((e2) => e2.name.indexOf(this.searchFormCode) > -1 || e2.label.indexOf(this.searchFormCode) > -1) : this.showFields = this.copyAllFields;
|
|
538
|
-
} } },
|
|
539
|
-
const
|
|
538
|
+
} } }, st = { style: { "padding-bottom": "10px" } }, dt = { style: { float: "left", width: "70%" } }, ct = { class: "item-content" };
|
|
539
|
+
const mt = D(at, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
540
540
|
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-button"), d2 = r.resolveComponent("el-radio"), c2 = r.resolveComponent("el-radio-group"), m2 = r.resolveComponent("el-dialog");
|
|
541
|
-
return r.openBlock(), r.createBlock(m2, { width: "60%", title: e2.$t("workflowEditor.common.selectFormField"), modelValue:
|
|
541
|
+
return r.openBlock(), r.createBlock(m2, { width: "60%", title: e2.$t("workflowEditor.common.selectFormField"), modelValue: i2.dialogVisible, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.dialogVisible = e3), center: "", top: "5vh", "append-to-body": "", class: "properties-editor-noTab", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(s2, { type: "primary", size: "small", onClick: n2.setField }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(s2, { size: "small", onClick: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createElementVNode("div", st, [r.createElementVNode("span", dt, [r.createVNode(a2, { modelValue: i2.searchFormCode, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.searchFormCode = e3), placeholder: e2.$t("workflowEditorMessage.pleaseEnterTheNameOrCode") }, null, 8, ["modelValue", "placeholder"])]), r.createElementVNode("span", null, [r.createVNode(s2, { style: { "margin-left": "10px" }, type: "primary", onClick: n2.searchForm }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.search")), 1)]), _: 1 }, 8, ["onClick"])])]), r.createElementVNode("div", ct, [r.createVNode(c2, { modelValue: i2.selectedField, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.selectedField = e3), class: "group" }, { default: r.withCtx(() => [r.createElementVNode("ul", null, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.showFields, (e3) => (r.openBlock(), r.createElementBlock("li", { key: e3.name, class: "item" }, [r.createVNode(d2, { label: e3.name }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]))), 128))])]), _: 1 }, 8, ["modelValue"])])]), _: 1 }, 8, ["title", "modelValue"]);
|
|
542
542
|
}], ["__scopeId", "data-v-98300543"]]);
|
|
543
|
-
function
|
|
544
|
-
const t2 =
|
|
543
|
+
function ut(e2) {
|
|
544
|
+
const t2 = pt(e2);
|
|
545
545
|
return t2 ? t2.label : e2;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function pt(e2) {
|
|
548
548
|
const t2 = window.$store.getters["wfEditor/formFields"];
|
|
549
549
|
e2 && (e2.indexOf("${field[") >= 0 || e2.indexOf("${deptField[") >= 0) && (e2 = e2.substring(e2.indexOf("[") + 1, e2.lastIndexOf("]")));
|
|
550
550
|
const o2 = t2.filter((t3) => t3.name === e2);
|
|
551
551
|
return o2.length > 0 ? o2[0] : null;
|
|
552
552
|
}
|
|
553
|
-
const
|
|
553
|
+
const ht = D({ name: "TaskTitle", components: { FormFields: mt }, props: { modelValue: { type: String, default: null } }, data() {
|
|
554
554
|
const e2 = [];
|
|
555
555
|
if (this.modelValue) {
|
|
556
556
|
const t2 = /\$\{(.+?)\}/g, o2 = this.modelValue.match(t2);
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
let t2 = e2;
|
|
564
564
|
if (e2.indexOf("${field[") >= 0) {
|
|
565
565
|
const e3 = t2.substring(t2.indexOf("[") + 1, t2.lastIndexOf("]"));
|
|
566
|
-
t2 =
|
|
566
|
+
t2 = ut(e3), t2 = "[" + t2 + "]";
|
|
567
567
|
} else if (e2.indexOf("${writeTitle[") >= 0) {
|
|
568
568
|
const o2 = e2.indexOf("${writeTitle[");
|
|
569
569
|
t2 = t2.substring(o2 + 13), t2 = t2.substring(0, t2.indexOf("]"));
|
|
@@ -584,31 +584,31 @@
|
|
|
584
584
|
e2 && (this.inputVisible ? e2 = "${writeTitle[" + e2 + "]}" : this.isShowAdditionalParam && (e2 = "${request[" + e2 + "]}"), this.dynamicTags.push(e2), this.$emit("update:modelValue", this.dynamicTags.join(""))), this.inputVisible = false, this.isShowAdditionalParam = false, this.inputValue = "";
|
|
585
585
|
}, getType: (e2) => e2.indexOf("${field") >= 0 ? "success" : null, setField(e2) {
|
|
586
586
|
void 0 !== e2 && (this.dynamicTags.push("${field[" + e2 + "]}"), this.$emit("update:modelValue", this.dynamicTags.join(""))), this.showFormFields = false;
|
|
587
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
587
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
588
588
|
const a2 = r.resolveComponent("el-tag"), s2 = r.resolveComponent("el-input"), d2 = r.resolveComponent("el-button"), c2 = r.resolveComponent("el-button-group"), m2 = r.resolveComponent("form-fields");
|
|
589
|
-
return r.openBlock(), r.createElementBlock("div", null, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(
|
|
589
|
+
return r.openBlock(), r.createElementBlock("div", null, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.dynamicTags, (e3, t3) => (r.openBlock(), r.createBlock(a2, { key: t3 + e3, type: n2.getType(e3), closable: "", "disable-transitions": false, onClose: (t4) => n2.handleClose(e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(n2.showText(e3)), 1)]), _: 2 }, 1032, ["type", "onClose"]))), 128)), i2.inputVisible || i2.isShowAdditionalParam ? (r.openBlock(), r.createBlock(s2, { key: 0, ref: "saveTagInput", modelValue: i2.inputValue, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.inputValue = e3), class: "input-new-tag", size: "small", onKeyup: r.withKeys(n2.handleInputConfirm, ["enter", "native"]), onBlur: n2.handleInputConfirm }, null, 8, ["modelValue", "onKeyup", "onBlur"])) : r.createCommentVNode("", true), i2.inputVisible ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(c2, { key: 1 }, { default: r.withCtx(() => [r.createVNode(d2, { class: "button-new-tag", size: "small", icon: "EditPen", onClick: n2.showInput }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.enterText")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(d2, { class: "button-new-tag", size: "small", icon: "Search", onClick: t2[1] || (t2[1] = (e3) => i2.showFormFields = true) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.selectField")), 1)]), _: 1 }), r.createVNode(d2, { class: "button-new-tag", size: "small", icon: "EditPen", onClick: n2.showAdditionalParam }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.additionalParam")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 })), i2.showFormFields ? (r.openBlock(), r.createBlock(m2, { key: 2, onClose: n2.setField }, null, 8, ["onClose"])) : r.createCommentVNode("", true)]);
|
|
590
590
|
}], ["__scopeId", "data-v-aaf48aff"]]);
|
|
591
|
-
var
|
|
591
|
+
var ft = (e2, t2) => {
|
|
592
592
|
let o2 = e2.__vccOpts || e2;
|
|
593
593
|
for (let [e3, l2] of t2)
|
|
594
594
|
o2[e3] = l2;
|
|
595
595
|
return o2;
|
|
596
|
-
},
|
|
597
|
-
var
|
|
598
|
-
return r.openBlock(), r.createElementBlock("svg",
|
|
599
|
-
}], ["__file", "circle-plus.vue"]]), bt = { name: "Delete" },
|
|
600
|
-
var
|
|
601
|
-
return r.openBlock(), r.createElementBlock("svg",
|
|
602
|
-
}], ["__file", "delete.vue"]]),
|
|
603
|
-
var
|
|
604
|
-
return r.openBlock(), r.createElementBlock("svg",
|
|
596
|
+
}, wt = { name: "CirclePlus" }, gt = { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, Ct = [r.createElementVNode("path", { fill: "currentColor", d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z" }, null, -1), r.createElementVNode("path", { fill: "currentColor", d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z" }, null, -1), r.createElementVNode("path", { fill: "currentColor", d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" }, null, -1)];
|
|
597
|
+
var kt = ft(wt, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
598
|
+
return r.openBlock(), r.createElementBlock("svg", gt, Ct);
|
|
599
|
+
}], ["__file", "circle-plus.vue"]]), bt = { name: "Delete" }, Vt = { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, yt = [r.createElementVNode("path", { fill: "currentColor", d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z" }, null, -1)];
|
|
600
|
+
var vt = ft(bt, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
601
|
+
return r.openBlock(), r.createElementBlock("svg", Vt, yt);
|
|
602
|
+
}], ["__file", "delete.vue"]]), Tt = { name: "Search" }, Nt = { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, xt = [r.createElementVNode("path", { fill: "currentColor", d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z" }, null, -1)];
|
|
603
|
+
var Et = ft(Tt, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
604
|
+
return r.openBlock(), r.createElementBlock("svg", Nt, xt);
|
|
605
605
|
}], ["__file", "search.vue"]]);
|
|
606
|
-
const
|
|
607
|
-
const
|
|
608
|
-
const
|
|
609
|
-
const Ft = [{ name: "operator.date.gt", label:
|
|
610
|
-
const
|
|
611
|
-
function
|
|
606
|
+
const St = [{ name: "${approvalResult}", label: f().t("workflowEditor.process.approvalResults"), orgType: "other" }, { name: "${instanceCreatorName}", label: f().t("workflowEditor.process.processInitiator"), orgType: "user" }, { name: "${instanceCreatorRole}", label: f().t("workflowEditor.process.processInitiatorRole"), orgType: "role" }, { name: "${instanceCreatorDepartment}", label: f().t("workflowEditor.process.processInitiatorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${superiorDepartment}", label: f().t("workflowEditor.process.processInitiatorSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorUpstageDepartment}", label: f().t("workflowEditor.process.processInitiatorTopDepartment"), orgType: "department" }, { name: "${instanceCreatorWorkGroup}", label: f().t("workflowEditor.process.processInitiatorWorkingGroup"), orgType: "workgroup" }, { name: "${instanceCreatorDirectSuperiorName}", label: f().t("workflowEditor.process.sponsorsImmediateSuperior"), orgType: "user" }, { name: "${instanceCreatorDeptApprover}", label: f().t("workflowEditor.process.deptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptApprover}", label: f().t("workflowEditor.process.superiorDeptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptLeader}", label: f().t("workflowEditor.process.superiorDeptLeader"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDepartment}", label: f().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorDirectSuperiorRole}", label: f().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"), orgType: "role" }, { name: "${instanceCreatorDirectSuperiorWorkGroup}", label: f().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorName}", label: f().t("workflowEditor.process.nameOfCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorRole}", label: f().t("workflowEditor.process.currentHandlerRole"), orgType: "role" }, { name: "${currentTransactorDepartment}", label: f().t("workflowEditor.process.currentHandlerDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorSuperiorDepartment}", label: f().t("workflowEditor.process.currentHandlerSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorUpstageDepartment}", label: f().t("workflowEditor.process.topDepartmentOfCurrentHandler"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment"] }, { name: "${currentTransactorWorkGroup}", label: f().t("workflowEditor.process.currentHandlerWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorDirectSuperiorName}", label: f().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorDirectSuperiorDepartment}", label: f().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorDirectSuperiorRole}", label: f().t("workflowEditor.process.currentManagerDirectSuperiorRole"), orgType: "role" }, { name: "${currentTransactorDirectSuperiorWorkGroup}", label: f().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"), orgType: "workgroup" }, { name: "${upstageDepartment}", label: f().t("workflowEditor.process.topDepartments"), orgType: "department" }, { name: "${countersignatureDisagreeCount}", label: f().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreeCount}", label: f().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureDisagreePercentage}", label: f().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreePercentage}", label: f().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionPercentage}", label: f().t("workflowEditor.process.percentageOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstPercentage}", label: f().t("workflowEditor.process.percentageOfVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorPercentage}", label: f().t("workflowEditor.process.percentageOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionCount}", label: f().t("workflowEditor.process.totalNumberOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstCount}", label: f().t("workflowEditor.process.totalVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorCount}", label: f().t("workflowEditor.process.totalNumberOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }], Mt = { "condition.operator.or": f().t("workflowEditor.process.perhaps"), "condition.operator.and": f().t("workflowEditor.process.also") };
|
|
607
|
+
const Dt = [{ name: "operator.number.gt", label: f().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: f().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: f().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: f().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: f().t("workflowEditor.process.notEqualTo") }];
|
|
608
|
+
const $t = [{ name: "operator.text.eq", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: f().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: f().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: f().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: f().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: f().t("workflowEditor.process.isNotNull") }];
|
|
609
|
+
const Ft = [{ name: "operator.date.gt", label: f().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: f().t("workflowEditor.process.earlierThan") }, { name: "operator.date.et", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: f().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: f().t("workflowEditor.process.noEarlierThan") }, { name: "operator.date.ne", label: f().t("workflowEditor.process.notEqualTo") }], Pt = [{ name: "operator.text.eq", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: f().t("workflowEditor.process.notEqualTo") }];
|
|
610
|
+
const Bt = [{ name: "operator.text.eq", label: f().t("workflowEditor.process.beEqualTo") }], Ot = [...Dt, ...Ft, ...$t, ...Pt];
|
|
611
|
+
function It(e2, t2) {
|
|
612
612
|
if (t2 && 0 !== t2.length) {
|
|
613
613
|
let o2 = t2.replace(/ condition.operator.or /g, " condition.operator.or^_^");
|
|
614
614
|
o2 = o2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
|
|
@@ -617,40 +617,40 @@
|
|
|
617
617
|
for (let t3 of l2) {
|
|
618
618
|
if ("" === t3)
|
|
619
619
|
continue;
|
|
620
|
-
let o3 = "", l3 = "",
|
|
621
|
-
if (d2 > 0 && (o3 = t3.substring(0, d2)), l3 = t3.substring(d2, t3.indexOf(" ")), t3 = t3.substring(t3.indexOf(" ") + 1),
|
|
622
|
-
|
|
620
|
+
let o3 = "", l3 = "", i2 = "", n2 = "", a2 = "", s2 = "condition.operator.or", d2 = t3.indexOf("${");
|
|
621
|
+
if (d2 > 0 && (o3 = t3.substring(0, d2)), l3 = t3.substring(d2, t3.indexOf(" ")), t3 = t3.substring(t3.indexOf(" ") + 1), i2 = t3.substring(0, t3.indexOf(" ")), t3 = t3.substring(t3.indexOf(" ") + 1), d2 = t3.indexOf(")"), d2 >= 0) {
|
|
622
|
+
n2 = t3.substring(0, d2);
|
|
623
623
|
const e3 = t3.substring(d2);
|
|
624
624
|
d2 = e3.indexOf(")"), a2 = e3.indexOf(" ") >= 0 ? e3.substring(d2, e3.indexOf(" ")) : e3.substring(d2), d2 = t3.indexOf(" condition."), d2 >= 0 && (s2 = t3.substring(d2 + 1));
|
|
625
625
|
} else
|
|
626
|
-
d2 = t3.indexOf(" condition."), d2 > 0 ? (
|
|
627
|
-
e2.push({ id: r2, leftBracket: o3, key: l3, operator:
|
|
626
|
+
d2 = t3.indexOf(" condition."), d2 > 0 ? (n2 = t3.substring(0, d2), s2 = t3.substring(d2 + 1)) : n2 = t3;
|
|
627
|
+
e2.push({ id: r2, leftBracket: o3, key: l3, operator: i2, value: n2, rightBracket: a2, logicOperator: s2 }), r2++;
|
|
628
628
|
}
|
|
629
629
|
return r2;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
const t2 =
|
|
632
|
+
function _t(e2) {
|
|
633
|
+
const t2 = St.filter((t3) => t3.name === e2);
|
|
634
634
|
return t2.length > 0 ? t2[0] : null;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return e2 ? e2.indexOf("${field[") >= 0 ?
|
|
638
|
-
const t2 =
|
|
636
|
+
function Rt(e2) {
|
|
637
|
+
return e2 ? e2.indexOf("${field[") >= 0 ? ut(e2) : e2.indexOf("${") >= 0 ? function(e3) {
|
|
638
|
+
const t2 = _t(e3);
|
|
639
639
|
return t2 ? t2.label : e3;
|
|
640
640
|
}(e2) : e2.indexOf("[") >= 0 ? e2.substring(0, e2.indexOf("[")) : e2 : "";
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
const t2 =
|
|
642
|
+
function At(e2) {
|
|
643
|
+
const t2 = Ot.filter((t3) => t3.name === e2);
|
|
644
644
|
return t2.length > 0 ? t2[0].label : "";
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Ut(e2) {
|
|
647
647
|
let t2 = "";
|
|
648
648
|
for (const o3 of e2)
|
|
649
|
-
0 !== o3.key.length && void 0 !== o3.operator && "" !== o3.operator && null !== o3.operator && ("operator.text.is.null" === o3.operator || "operator.text.not.null" === o3.operator || "" !== o3.value && void 0 !== o3.value && null !== o3.value) && (t2 = t2 + o3.leftBracket +
|
|
649
|
+
0 !== o3.key.length && void 0 !== o3.operator && "" !== o3.operator && null !== o3.operator && ("operator.text.is.null" === o3.operator || "operator.text.not.null" === o3.operator || "" !== o3.value && void 0 !== o3.value && null !== o3.value) && (t2 = t2 + o3.leftBracket + Rt(o3.key) + " " + At(o3.operator) + " " + Rt(o3.value) + o3.rightBracket + " " + Mt[o3.logicOperator] + " ");
|
|
650
650
|
const o2 = " 或者 ", l2 = " 并且 ";
|
|
651
651
|
return t2.lastIndexOf(o2) + 4 === t2.length ? t2 = t2.substring(0, t2.lastIndexOf(o2)) : t2.lastIndexOf(l2) + 4 === t2.length && (t2 = t2.substring(0, t2.lastIndexOf(l2))), t2;
|
|
652
652
|
}
|
|
653
|
-
const
|
|
653
|
+
const Lt = { name: "InlineSystemRoleTree", props: { multiple: { type: Boolean, default: false } }, data: () => ({ systemRoleTrees: null, filterText: "", defaultProps: { id: "id", label: "label", children: "children", isLeaf: "leaf" }, containBranch: false, tenantInfo: null, tenantNodeId: -1, allSearchNodeIds: [], allExpandNodeIds: [], isClickNode: false, searchValue: null, selectNodeInfo: null }), computed: {}, watch: { filterText(e2) {
|
|
654
654
|
e2 || (this.searchValue = e2, this.loadRole(this.tenantNodeId, this.tenantNodeId + ""));
|
|
655
655
|
} }, created() {
|
|
656
656
|
}, methods: { loadNode(e2, t2) {
|
|
@@ -659,10 +659,10 @@
|
|
|
659
659
|
var r2 = [];
|
|
660
660
|
this.$refs.roleTree && (r2 = this.$refs.roleTree.getCheckedKeys()), this.initLoadRole(l2, o2, e2, t2, r2);
|
|
661
661
|
}, initLoadRole(e2, t2, o2, l2, r2) {
|
|
662
|
-
this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((
|
|
663
|
-
if (l2(
|
|
664
|
-
const e3 =
|
|
665
|
-
this.tenantInfo = JSON.parse(e3), this.containBranch =
|
|
662
|
+
this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((i2) => {
|
|
663
|
+
if (l2(i2), this.$refs.roleTree.updateKeyChildren(t2, i2), 0 === e2) {
|
|
664
|
+
const e3 = i2[0].data;
|
|
665
|
+
this.tenantInfo = JSON.parse(e3), this.containBranch = i2[0].containBranch, this.loadRole(this.tenantNodeId, this.tenantNodeId + "");
|
|
666
666
|
}
|
|
667
667
|
this.isClickNode ? (this.isClickNode = false, this.checkedNodeAndChildren(o2.data)) : r2 && r2.indexOf(t2) > -1 && this.checkedNodeAndChildren(o2.data);
|
|
668
668
|
});
|
|
@@ -735,13 +735,13 @@
|
|
|
735
735
|
}
|
|
736
736
|
}, renderContent(e2, { node: t2, data: o2, store: l2 }) {
|
|
737
737
|
return o2.nodeType && "ROLE" === o2.nodeType && this.searchValue && o2.label.indexOf(this.searchValue) > -1 ? e2("span", {}, [e2("span", { class: "searchResult" }, t2.label)]) : e2("span", {}, [e2("span", {}, t2.label)]);
|
|
738
|
-
} } },
|
|
739
|
-
const l2 = r.resolveComponent("el-button"),
|
|
740
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(
|
|
738
|
+
} } }, Ht = Object.assign(Lt, { setup: (e2) => (t2, o2) => {
|
|
739
|
+
const l2 = r.resolveComponent("el-button"), i2 = r.resolveComponent("el-input"), n2 = r.resolveComponent("el-tree");
|
|
740
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(i2, { modelValue: t2.filterText, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => t2.filterText = e3), placeholder: t2.$t("workflowEditorMessage.pleaseEnterTheRoleName"), onKeyup: r.withKeys(t2.clickSearch, ["enter"]) }, { append: r.withCtx(() => [r.createVNode(l2, { icon: r.unref(Et), onClick: t2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"]), r.createVNode(n2, { ref: "roleTree", props: t2.defaultProps, load: t2.loadNode, lazy: "", "highlight-current": true, "node-key": "nodeId", "show-checkbox": e2.multiple, "check-strictly": "", "render-content": t2.renderContent, "filter-node-method": t2.filterNode, onCheck: t2.handleCheckNode, onNodeClick: t2.handleNodeClick }, null, 8, ["props", "load", "show-checkbox", "render-content", "filter-node-method", "onCheck", "onNodeClick"])]);
|
|
741
741
|
} });
|
|
742
|
-
const
|
|
742
|
+
const zt = D({ name: "ValueSelectionDialog", components: { InlineSystemRoleTree: Ht }, props: { standardFields: { type: [Object, Array], default: null }, title: { type: String, default: "" }, showOrganization: { type: Boolean, default: true }, showFormFields: { type: Boolean, default: true }, orgType: { type: String, default: "" } }, data() {
|
|
743
743
|
let e2 = this.title, t2 = "organization";
|
|
744
|
-
return this.showOrganization || (t2 = "standardFields"), this.title && "" !== this.title || (e2 =
|
|
744
|
+
return this.showOrganization || (t2 = "standardFields"), this.title && "" !== this.title || (e2 = f().t("workflowEditorMessage.pleaseSelectAValue")), { selectedValue: "", activeTab: t2, titleName: e2, dialogVisible: true, activeNames: ["baseField"] };
|
|
745
745
|
}, computed: { ...t.mapGetters("wfEditor", ["formFields"]), customFormFields() {
|
|
746
746
|
return this.formFields.filter((e2) => !e2.baseField);
|
|
747
747
|
}, baseFormFields() {
|
|
@@ -786,26 +786,26 @@
|
|
|
786
786
|
this.selectedValue = e2.name + "[" + e2.code + "]";
|
|
787
787
|
}, getSelectedRole(e2) {
|
|
788
788
|
this.selectedValue = e2.name + "[" + e2.code + "]";
|
|
789
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
790
|
-
const a2 = r.resolveComponent("el-radio"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-tab-pane"), c2 = r.resolveComponent("inline-department-user-tree"), m2 = r.resolveComponent("inline-department-tree"), u2 = r.resolveComponent("inline-workgroup-tree"), p2 = r.resolveComponent("inline-system-role-tree"), h2 = r.resolveComponent("el-col"), f2 = r.resolveComponent("el-collapse-item"), w2 = r.resolveComponent("el-collapse"), g2 = r.resolveComponent("el-radio-group"), C2 = r.resolveComponent("el-tabs"),
|
|
791
|
-
return r.openBlock(), r.createBlock(
|
|
792
|
-
}], ["__scopeId", "data-v-7feaa2da"]]),
|
|
793
|
-
const e2 = [], t2 =
|
|
794
|
-
return { standardFields:
|
|
789
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
790
|
+
const a2 = r.resolveComponent("el-radio"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-tab-pane"), c2 = r.resolveComponent("inline-department-user-tree"), m2 = r.resolveComponent("inline-department-tree"), u2 = r.resolveComponent("inline-workgroup-tree"), p2 = r.resolveComponent("inline-system-role-tree"), h2 = r.resolveComponent("el-col"), f2 = r.resolveComponent("el-collapse-item"), w2 = r.resolveComponent("el-collapse"), g2 = r.resolveComponent("el-radio-group"), C2 = r.resolveComponent("el-tabs"), k2 = r.resolveComponent("el-button"), b2 = r.resolveComponent("el-dialog");
|
|
791
|
+
return r.openBlock(), r.createBlock(b2, { title: i2.titleName, "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-valueSelect", center: "", onClose: t2[5] || (t2[5] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(k2, { type: "primary", size: "small", onClick: n2.setValue }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(k2, { size: "small", onClick: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createVNode(C2, { id: "custTabOne", modelValue: i2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.activeTab = e3), type: "border-card" }, { default: r.withCtx(() => [n2.options.length > 0 ? (r.openBlock(), r.createBlock(d2, { key: 0, label: e2.$t("workflowEditor.process.standardFields"), name: "standardFields" }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.options, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3.name }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.selectedValue, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => i2.selectedValue = e4), label: e3.name, border: "" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), o2.showOrganization ? (r.openBlock(), r.createBlock(d2, { key: 1, label: e2.$t("workflowEditor.common.organizationStructure"), name: "organization" }, { default: r.withCtx(() => ["user" === o2.orgType ? (r.openBlock(), r.createBlock(c2, { key: 0, ref: "organizationTree", multiple: false, onResult: n2.orgSelect }, null, 8, ["onResult"])) : r.createCommentVNode("", true), "department" === o2.orgType ? (r.openBlock(), r.createBlock(m2, { key: 1, ref: "organizationTree", multiple: false, onResult: n2.orgSelect }, null, 8, ["onResult"])) : r.createCommentVNode("", true), "workgroup" === o2.orgType ? (r.openBlock(), r.createBlock(u2, { key: 2, ref: "organizationTree", multiple: false, onResult: n2.orgSelect }, null, 8, ["onResult"])) : r.createCommentVNode("", true), "role" === o2.orgType ? (r.openBlock(), r.createBlock(p2, { key: 3, ref: "organizationTree", multiple: false, onResult: n2.orgSelect }, null, 8, ["onResult"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(d2, { label: e2.$t("workflowEditor.common.formField"), name: "formFields" }, { default: r.withCtx(() => [r.createVNode(g2, { modelValue: i2.selectedValue, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.selectedValue = e3), class: "group" }, { default: r.withCtx(() => [r.createVNode(s2, { style: { width: "100%" } }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.customFormFields, (e3) => (r.openBlock(), r.createBlock(h2, { key: e3.name, span: 8 }, { default: r.withCtx(() => [r.createVNode(a2, { label: "${field[" + e3.name + "]}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]), _: 2 }, 1024))), 128))]), _: 1 }), r.createVNode(w2, { modelValue: i2.activeNames, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.activeNames = e3), style: { width: "100%" } }, { default: r.withCtx(() => [r.createVNode(f2, { title: e2.$t("workflowEditor.task.baseField"), name: "baseField" }, { default: r.withCtx(() => [r.createVNode(s2, null, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.baseFormFields, (e3) => (r.openBlock(), r.createBlock(h2, { key: e3.name, span: 8 }, { default: r.withCtx(() => [r.createVNode(a2, { label: "${field[" + e3.name + "]}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 }, 8, ["title"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["title"]);
|
|
792
|
+
}], ["__scopeId", "data-v-7feaa2da"]]), Wt = { name: "AdditionalCondition", components: { ValueSelectionDialog: zt }, props: { modelValue: { type: String, default: null }, isTransition: { type: Boolean, default: false } }, data() {
|
|
793
|
+
const e2 = [], t2 = It(e2, this.modelValue);
|
|
794
|
+
return { standardFields: St, tableData: e2, count: t2, currentRow: null, currentInput: null, options: [], valueDialogTitle: null, showOrganization: true, orgType: null };
|
|
795
795
|
}, computed: { ...t.mapGetters("wfEditor", ["formFields"]), availableStandardFields() {
|
|
796
796
|
return "key" === this.currentInput ? function(e2) {
|
|
797
797
|
if (e2)
|
|
798
|
-
return
|
|
798
|
+
return St;
|
|
799
799
|
const t2 = [];
|
|
800
|
-
return
|
|
800
|
+
return St.forEach((o2) => {
|
|
801
801
|
e2 || "other" === o2.orgType || t2.push(o2);
|
|
802
802
|
}), t2;
|
|
803
803
|
}(this.isTransition) : function(e2) {
|
|
804
|
-
const t2 =
|
|
804
|
+
const t2 = St.filter((t3) => t3.name === e2);
|
|
805
805
|
let o2 = [];
|
|
806
806
|
t2.length > 0 && (o2 = t2[0].relatedFields || []);
|
|
807
807
|
const l2 = [];
|
|
808
|
-
return
|
|
808
|
+
return St.forEach((e3) => {
|
|
809
809
|
o2.indexOf(e3.name.substring(2, e3.name.length - 1)) >= 0 && l2.push(e3);
|
|
810
810
|
}), l2;
|
|
811
811
|
}(this.currentRow.key);
|
|
@@ -819,18 +819,17 @@
|
|
|
819
819
|
return t3.lastIndexOf(o2) + 23 === t3.length ? t3 = t3.substring(0, t3.lastIndexOf(o2)) : t3.lastIndexOf(l2) + 24 === t3.length && (t3 = t3.substring(0, t3.lastIndexOf(l2))), t3;
|
|
820
820
|
}(this.tableData));
|
|
821
821
|
}, { deep: true });
|
|
822
|
-
}, methods: { format: (e2, t2) => "" === e2 || null == e2 ? "" :
|
|
823
|
-
const t2 =
|
|
822
|
+
}, methods: { format: (e2, t2) => "" === e2 || null == e2 ? "" : Rt(e2), getOperatorOptions: (e2) => function(e3) {
|
|
823
|
+
const t2 = pt(e3) || _t(e3);
|
|
824
824
|
if (t2)
|
|
825
|
-
return function(e4) {
|
|
826
|
-
return ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(e4) >= 0;
|
|
827
|
-
}(t2.dataType) ? Mt : function(e4) {
|
|
825
|
+
return o2 = t2.dataType, ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(o2) >= 0 ? Dt : function(e4) {
|
|
828
826
|
return ["DATE", "TIME"].indexOf(e4) >= 0;
|
|
829
827
|
}(t2.dataType) ? Ft : function(e4) {
|
|
830
828
|
return ["STRING", "TEXT"].indexOf(e4) >= 0;
|
|
831
|
-
}(t2.dataType) ?
|
|
829
|
+
}(t2.dataType) ? $t : function(e4) {
|
|
832
830
|
return "${approvalResult}" === e4;
|
|
833
|
-
}(e3) ?
|
|
831
|
+
}(e3) ? Bt : Pt;
|
|
832
|
+
var o2;
|
|
834
833
|
}(e2), selectRow(e2) {
|
|
835
834
|
this.$refs.table.setCurrentRow(e2);
|
|
836
835
|
}, openValueDialog(e2) {
|
|
@@ -859,7 +858,7 @@
|
|
|
859
858
|
let e2 = this.getRowIndex(this.currentRow);
|
|
860
859
|
this.tableData.splice(e2, 1), this.tableData.length > 0 && (e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.$refs.table.setCurrentRow(this.tableData[e2]));
|
|
861
860
|
}, view() {
|
|
862
|
-
let e2 =
|
|
861
|
+
let e2 = Ut(this.tableData);
|
|
863
862
|
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorMessage.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
864
863
|
} });
|
|
865
864
|
}, selectField(e2) {
|
|
@@ -872,26 +871,26 @@
|
|
|
872
871
|
}, isTransitionOtherField: (e2) => function(e3) {
|
|
873
872
|
if ("${approvalResult}" === e3)
|
|
874
873
|
return false;
|
|
875
|
-
const t2 =
|
|
874
|
+
const t2 = St.filter((t3) => t3.name === e3);
|
|
876
875
|
let o2 = false;
|
|
877
876
|
return t2.length > 0 && t2.forEach((t3) => {
|
|
878
877
|
e3 === t3.name && "other" === t3.orgType && (o2 = true);
|
|
879
878
|
}), o2;
|
|
880
|
-
}(e2) } },
|
|
881
|
-
const
|
|
879
|
+
}(e2) } }, jt = { style: { overflow: "auto", width: "100%" } };
|
|
880
|
+
const Jt = D(Wt, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
882
881
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-option"), c2 = r.resolveComponent("el-select"), m2 = r.resolveComponent("el-table-column"), u2 = r.resolveComponent("el-input"), p2 = r.resolveComponent("el-table"), h2 = r.resolveComponent("value-selection-dialog");
|
|
883
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
882
|
+
return r.openBlock(), r.createElementBlock("div", jt, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: n2.insert }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "View", onClick: n2.view }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(p2, { ref: "table", data: i2.tableData, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: n2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(m2, { prop: "leftBracket", label: "(", width: "90" }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: "", value: "" }), r.createVNode(d2, { label: "(", value: "(" }), r.createVNode(d2, { label: "((", value: "((" }), r.createVNode(d2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), r.createVNode(m2, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: r.withCtx((e3) => [r.createVNode(u2, { value: n2.format(e3.row.key), onClick: (t3) => n2.selectField(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.operator"), width: "130" }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, placeholder: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.getOperatorOptions(e3.row.key), (e4) => (r.openBlock(), r.createBlock(d2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.value") }, { default: r.withCtx((t3) => [t3.row.key.indexOf("${field[") >= 0 || n2.isTransitionOtherField(t3.row.key) ? (r.openBlock(), r.createBlock(u2, { key: 0, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "${approvalResult}" === t3.row.key ? (r.openBlock(), r.createBlock(c2, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, { default: r.withCtx(() => [r.createVNode(d2, { value: "同意", label: e2.$t("workflowEditorPublicModel.agree") }, null, 8, ["label"]), r.createVNode(d2, { value: "不同意", label: e2.$t("workflowEditorPublicModel.disagree") }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (r.openBlock(), r.createBlock(u2, { key: 2, value: n2.format(t3.row.value, t3.row), readonly: "", onClick: n2.selectValue }, null, 8, ["value", "onClick"]))]), _: 1 }, 8, ["label"]), r.createVNode(m2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => n2.selectRow(e2.scope.row)) }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: r.withCtx(() => [r.createVNode(d2, { label: "", value: "" }), r.createVNode(d2, { label: ")", value: ")" }), r.createVNode(d2, { label: "))", value: "))" }), r.createVNode(d2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r.createVNode(m2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => n2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), i2.currentInput ? (r.openBlock(), r.createBlock(h2, { key: 0, title: i2.valueDialogTitle, "show-organization": i2.showOrganization, "standard-fields": n2.availableStandardFields, "org-type": i2.orgType, onClose: n2.closeValueDialog }, null, 8, ["title", "show-organization", "standard-fields", "org-type", "onClose"])) : r.createCommentVNode("", true)]);
|
|
884
883
|
}]]);
|
|
885
|
-
const
|
|
884
|
+
const Gt = D({ name: "AdditionalConditionDialog", components: { AdditionalCondition: Jt }, props: { modelValue: { type: String, default: "" } }, data() {
|
|
886
885
|
return { condition: this.modelValue, dialogVisible: true };
|
|
887
886
|
}, watch: { value(e2) {
|
|
888
887
|
this.condition = e2;
|
|
889
888
|
} }, methods: { setConditions() {
|
|
890
889
|
this.$emit("update:modelValue", this.condition), this.$emit("close");
|
|
891
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
890
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
892
891
|
const a2 = r.resolveComponent("additional-condition"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-button"), c2 = r.resolveComponent("el-dialog");
|
|
893
|
-
return r.openBlock(), r.createBlock(c2, { width: "50%", title: e2.$t("workflowEditor.task.setConditions"), "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", center: "", onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(d2, { type: "primary", size: "small", onClick:
|
|
894
|
-
}]]), qt = { name: "CustomActions", components: { AdditionalConditionDialog:
|
|
892
|
+
return r.openBlock(), r.createBlock(c2, { width: "50%", title: e2.$t("workflowEditor.task.setConditions"), "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", center: "", onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(d2, { type: "primary", size: "small", onClick: n2.setConditions }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(d2, { size: "small", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.condition, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.condition = e3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
893
|
+
}]]), qt = { name: "CustomActions", components: { AdditionalConditionDialog: Gt }, props: { model: { type: Object, default: null } }, data() {
|
|
895
894
|
const e2 = [];
|
|
896
895
|
let t2 = 1;
|
|
897
896
|
if (this.model.action)
|
|
@@ -900,7 +899,7 @@
|
|
|
900
899
|
e2.push({ ...o2, id: t2 }), t2++;
|
|
901
900
|
else
|
|
902
901
|
e2.push({ ...this.model.action, id: t2 }), t2++;
|
|
903
|
-
return { actions: e2, actionTypes: [{ type: "SAVE", label:
|
|
902
|
+
return { actions: e2, actionTypes: [{ type: "SAVE", label: f().t("workflowEditor.task.save") }, { type: "SUBMIT", label: f().t("workflowEditor.task.submission") }, { type: "APPROVE", label: f().t("workflowEditor.task.agree") }, { type: "REFUSE", label: f().t("workflowEditor.task.disagree") }, { type: "AGREEMENT", label: f().t("workflowEditor.task.favor") }, { type: "OPPOSE", label: f().t("workflowEditor.task.opposition") }, { type: "KIKEN", label: f().t("workflowEditor.task.waiver") }, { type: "DRAW", label: f().t("workflowEditor.task.receive") }, { type: "ABANDON_DRAW", label: f().t("workflowEditor.task.giveUp") }, { type: "ADD_SIGN", label: f().t("workflowEditor.task.additionalSignature") }, { type: "REMOVE_SIGN", label: f().t("workflowEditor.task.reductionOfSignature") }, { type: "ASSIGN_TASK", label: f().t("workflowEditor.task.assignTask") }, { type: "COPY", label: f().t("workflowEditor.task.copyTask") }, { type: "GET_BACK_BUTTON", label: f().t("workflowEditor.task.retrieveTask") }, { type: "READED", label: f().t("workflowEditor.task.readTask") }, { type: "EXPORT_REPORT", label: f().t("workflowEditor.task.exportReport") }], currentRow: null, count: t2, showAdditionalCondition: false };
|
|
904
903
|
}, mounted() {
|
|
905
904
|
this.actions.length > 0 && this.selectRow(this.actions[this.actions.length - 1]), this.$watch("actions", function(e2, t2) {
|
|
906
905
|
const o2 = [];
|
|
@@ -938,15 +937,15 @@
|
|
|
938
937
|
if ("" === e2 || !e2)
|
|
939
938
|
return this.$t("workflowEditor.task.nothing");
|
|
940
939
|
const t2 = [];
|
|
941
|
-
return
|
|
940
|
+
return It(t2, e2), Ut(t2);
|
|
942
941
|
}, selectCondition(e2) {
|
|
943
942
|
this.selectRow(e2), this.currentRow || (this.currentRow.condition = ""), this.showAdditionalCondition = true;
|
|
944
|
-
} } },
|
|
945
|
-
const o2 = r.resolveComponent("el-button"), l2 = r.resolveComponent("el-table-column"),
|
|
946
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(c2, null, { default: r.withCtx(() => [r.createVNode(o2, { type: "primary", size: "small", plain: "", icon: r.unref(
|
|
947
|
-
} }),
|
|
943
|
+
} } }, Kt = Object.assign(qt, { setup: (e2) => (e3, t2) => {
|
|
944
|
+
const o2 = r.resolveComponent("el-button"), l2 = r.resolveComponent("el-table-column"), i2 = r.resolveComponent("el-option"), n2 = r.resolveComponent("el-select"), a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-checkbox"), d2 = r.resolveComponent("el-table"), c2 = r.resolveComponent("el-row");
|
|
945
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(c2, null, { default: r.withCtx(() => [r.createVNode(o2, { type: "primary", size: "small", plain: "", icon: r.unref(kt), onClick: e3.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["icon", "onClick"]), r.createVNode(o2, { type: "primary", size: "small", plain: "", icon: r.unref(vt), onClick: e3.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["icon", "onClick"]), r.createVNode(d2, { ref: "table", data: e3.actions, "row-key": "type", border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: e3.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(l2, { type: "index" }), r.createVNode(l2, { label: e3.$t("workflowEditor.task.operationType"), width: "180" }, { default: r.withCtx((t3) => [r.createVNode(n2, { modelValue: t3.row.type, "onUpdate:modelValue": (e4) => t3.row.type = e4, onChange: e3.isDuplicated }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e3.actionTypes, (e4) => (r.openBlock(), r.createBlock(i2, { key: e4.id, value: e4.type, label: e4.label }, null, 8, ["value", "label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(l2, { prop: "label", label: e3.$t("workflowEditor.task.name"), width: "180" }, { default: r.withCtx((e4) => [r.createVNode(a2, { modelValue: e4.row.label, "onUpdate:modelValue": (t3) => e4.row.label = t3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(l2, { prop: "visible", label: e3.$t("workflowEditor.task.visibleOrNot") }, { default: r.withCtx((e4) => [r.createVNode(s2, { modelValue: e4.row.visible, "onUpdate:modelValue": (t3) => e4.row.visible = t3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(l2, { prop: "condition", label: e3.$t("workflowEditor.task.condition") }, { default: r.withCtx((t3) => [r.createVNode(a2, { value: e3.formatCondition(t3.row.condition), type: "textarea", autosize: "", onFocus: (o3) => e3.selectCondition(t3.row) }, null, 8, ["value", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), e3.showAdditionalCondition ? (r.openBlock(), r.createBlock(r.unref(Gt), { key: 0, modelValue: e3.currentRow.condition, "onUpdate:modelValue": t2[0] || (t2[0] = (t3) => e3.currentRow.condition = t3), onClose: t2[1] || (t2[1] = (t3) => e3.showAdditionalCondition = false) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]);
|
|
946
|
+
} }), Xt = { name: "I18nSet", props: { value: { type: Object, default: null } }, data() {
|
|
948
947
|
let e2 = {};
|
|
949
|
-
return this.value && (e2 = JSON.parse(JSON.stringify(this.value))), { requiredRule: { required: true, message:
|
|
948
|
+
return this.value && (e2 = JSON.parse(JSON.stringify(this.value))), { requiredRule: { required: true, message: f().t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }, i18nModel: e2, bundleCode: null, isShow: false, i18nKey: null, languages: {}, dialogVisible: true, isNewI18n: false };
|
|
950
949
|
}, computed: { ...t.mapGetters("wfEditor", ["systemCode", "processCode", "isHandleCreate"]) }, created() {
|
|
951
950
|
this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n || (this.bundleCode = this.systemCode + ".workflow." + this.processCode), this.getI18nSet();
|
|
952
951
|
}, methods: { getI18nSet() {
|
|
@@ -968,10 +967,10 @@
|
|
|
968
967
|
});
|
|
969
968
|
}, goBack() {
|
|
970
969
|
this.$emit("close");
|
|
971
|
-
} } },
|
|
972
|
-
const
|
|
970
|
+
} } }, Yt = { class: "operation-area" };
|
|
971
|
+
const Qt = { name: "I18nInput", components: { I18nSet: D(Xt, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
973
972
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-input"), d2 = r.resolveComponent("el-form-item"), c2 = r.resolveComponent("el-col"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("el-form"), p2 = r.resolveComponent("el-dialog");
|
|
974
|
-
return
|
|
973
|
+
return i2.isShow ? (r.openBlock(), r.createBlock(p2, { key: 0, "close-on-click-modal": false, width: "30%", title: e2.$t("workflowEditorPublicModel.i18nSet"), "append-to-body": "", "model-value": "", top: "5vh", onOpen: t2[2] || (t2[2] = (t3) => e2.$emit("open")), onOpend: t2[3] || (t2[3] = (t3) => e2.$emit("opend")), onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")), onClosed: t2[5] || (t2[5] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createElementVNode("div", Yt, [r.createVNode(a2, { type: "primary", size: "small", onClick: t2[0] || (t2[0] = (e3) => n2.saveI18nSet("form")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }), r.createVNode(a2, { size: "small", onClick: n2.goBack }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }, 8, ["onClick"])]), r.createVNode(u2, { ref: "form", model: i2.i18nModel, "label-width": "100px" }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(c2, { span: 24 }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditorPublicModel.i18nKey"), prop: "key", rules: [i2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.i18nModel.key, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.i18nModel.key = e3), style: { width: "80%" } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })]), _: 1 }), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(Object.keys(i2.languages), (e3) => (r.openBlock(), r.createBlock(m2, { key: e3 }, { default: r.withCtx(() => [r.createVNode(c2, { span: 24 }, { default: r.withCtx(() => [r.createVNode(d2, { label: i2.languages[e3], prop: e3 }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.i18nModel.values[e3], "onUpdate:modelValue": (t3) => i2.i18nModel.values[e3] = t3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["label", "prop"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["title"])) : r.createCommentVNode("", true);
|
|
975
974
|
}]]) }, model: { prop: "value", event: "input" }, props: { modelValue: { type: String, default: "" }, i18nKey: { type: String, default: "" } }, data() {
|
|
976
975
|
const e2 = this.modelValue;
|
|
977
976
|
return { isShowI18n: false, myI18nKey: this.i18nKey, zh: e2, isNewI18n: false };
|
|
@@ -985,12 +984,12 @@
|
|
|
985
984
|
this.myI18nKey ? this.isShowI18n = true : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseInputCode") });
|
|
986
985
|
}, closeI18nSet(e2) {
|
|
987
986
|
e2 && this.$emit("setI18n", e2), this.isShowI18n = false;
|
|
988
|
-
} } },
|
|
989
|
-
const
|
|
987
|
+
} } }, Zt = { style: { float: "left", "padding-right": "5px" } };
|
|
988
|
+
const eo = D(Qt, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
990
989
|
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("i18n-set");
|
|
991
|
-
return r.openBlock(), r.createElementBlock("span", null, [r.createElementVNode("div",
|
|
992
|
-
}]]),
|
|
993
|
-
const
|
|
990
|
+
return r.openBlock(), r.createElementBlock("span", null, [r.createElementVNode("div", Zt, [r.createVNode(a2, { modelValue: i2.zh, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.zh = e3) }, { append: r.withCtx(() => [r.createElementVNode("i", { class: "fa fa-cog", onClick: t2[0] || (t2[0] = (...e3) => n2.i18nSet && n2.i18nSet(...e3)) })]), _: 1 }, 8, ["modelValue"])]), i2.isShowI18n ? (r.openBlock(), r.createBlock(s2, { key: 0, value: { values: { zh_CN: i2.zh }, key: i2.myI18nKey }, onClose: n2.closeI18nSet }, null, 8, ["value", "onClose"])) : r.createCommentVNode("", true)]);
|
|
991
|
+
}]]), to = { style: { width: "100%" } };
|
|
992
|
+
const oo = D({ name: "SelectMailTemplates", model: { prop: "value", event: "input" }, props: { modelValue: { type: [String, Number], default: "" } }, data() {
|
|
994
993
|
return { baseURL: "", optionUrl: "", multiSelectData: [], showMailTemplateFlag: false, code: this.modelValue, options: { showColumns: "code,name" }, dialogVisible: true };
|
|
995
994
|
}, created() {
|
|
996
995
|
this.baseURL = window.$vueApp.config.globalProperties.baseAPI, this.optionUrl = "/mc/email-templates/list/0";
|
|
@@ -1000,10 +999,10 @@
|
|
|
1000
999
|
this.multiSelectData = e2;
|
|
1001
1000
|
}, clearVal() {
|
|
1002
1001
|
this.code = null, this.$emit("set-value", null);
|
|
1003
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
1002
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1004
1003
|
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("super-grid"), d2 = r.resolveComponent("el-button"), c2 = r.resolveComponent("el-dialog");
|
|
1005
|
-
return r.openBlock(), r.createElementBlock("span",
|
|
1006
|
-
}]]),
|
|
1004
|
+
return r.openBlock(), r.createElementBlock("span", to, [r.createVNode(a2, { readonly: "", modelValue: i2.code, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.code = e3), onClick: t2[3] || (t2[3] = (e3) => i2.showMailTemplateFlag = true) }, { append: r.withCtx(() => [r.createElementVNode("i", { class: "fa fa-search", onClick: t2[0] || (t2[0] = (e3) => i2.showMailTemplateFlag = true) }), r.createElementVNode("i", { style: { "padding-left": "10px" }, class: "fa fa-trash", onClick: t2[1] || (t2[1] = (e3) => n2.clearVal()) })]), _: 1 }, 8, ["modelValue"]), r.createVNode(c2, { width: "40%", title: e2.$t("workflowEditor.task.selectTemplate"), modelValue: i2.showMailTemplateFlag, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.showMailTemplateFlag = e3), center: "", top: "5vh", "append-to-body": "", class: "properties-editor-noTab" }, { footer: r.withCtx(() => [r.createVNode(d2, { onClick: t2[4] || (t2[4] = (e3) => i2.showMailTemplateFlag = false) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 }), r.createVNode(d2, { type: "primary", onClick: n2.selectTemplate }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"])]), default: r.withCtx(() => [r.createVNode(s2, { ref: "reportGrid", url: i2.baseURL + i2.optionUrl, code: "BS_EMAIL_TEMPLATE", options: i2.options, onSelect: n2.selectData }, null, 8, ["url", "options", "onSelect"])]), _: 1 }, 8, ["title", "modelValue"])]);
|
|
1005
|
+
}]]), lo = { name: "BasicProperties", components: { TaskTitle: ht, CustomActions: Kt, i18nInput: eo, SelectMailTemplates: oo }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
1007
1006
|
let e2 = false;
|
|
1008
1007
|
const t2 = this.model.processingMode.actions.action;
|
|
1009
1008
|
return t2 && (e2 = !Array.isArray(t2) || 0 !== t2.length), { showActions: e2, formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
@@ -1016,7 +1015,7 @@
|
|
|
1016
1015
|
this.$emit("update:name", e2);
|
|
1017
1016
|
});
|
|
1018
1017
|
}, methods: { validateId() {
|
|
1019
|
-
|
|
1018
|
+
E(this);
|
|
1020
1019
|
}, setMailTemplateCode(e2) {
|
|
1021
1020
|
this.tache.mailTemplateCode = e2;
|
|
1022
1021
|
}, setMailPointTemplateCode(e2) {
|
|
@@ -1025,11 +1024,11 @@
|
|
|
1025
1024
|
this.tache.i18nKey = e2;
|
|
1026
1025
|
}, updateAction(e2) {
|
|
1027
1026
|
this.tache.processingMode.actions.action = e2;
|
|
1028
|
-
} } },
|
|
1029
|
-
const
|
|
1030
|
-
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("task-title"), p2 = r.resolveComponent("el-switch"), h2 = r.resolveComponent("select-mail-templates"), f2 = r.resolveComponent("el-radio"), w2 = r.resolveComponent("el-radio-group"), g2 = r.resolveComponent("el-input-number"), C2 = r.resolveComponent("custom-actions"),
|
|
1031
|
-
return r.openBlock(), r.createBlock(
|
|
1032
|
-
}], ["__scopeId", "data-v-a219b06d"]]), no = { name: "EditableFieldSelection", components: { AdditionalCondition:
|
|
1027
|
+
} } }, ro = ((e2) => (r.pushScopeId("data-v-a219b06d"), e2 = e2(), r.popScopeId(), e2))(() => r.createElementVNode("span", { class: "percent" }, " % ", -1));
|
|
1028
|
+
const io = D(lo, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1029
|
+
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("task-title"), p2 = r.resolveComponent("el-switch"), h2 = r.resolveComponent("select-mail-templates"), f2 = r.resolveComponent("el-radio"), w2 = r.resolveComponent("el-radio-group"), g2 = r.resolveComponent("el-input-number"), C2 = r.resolveComponent("custom-actions"), k2 = r.resolveComponent("el-form");
|
|
1030
|
+
return r.openBlock(), r.createBlock(k2, { model: i2.formModel, "label-width": "110px" }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.name = e3), "i18n-key": n2.tache.i18nKey ? n2.tache.i18nKey : "name." + i2.formModel.id, onSetI18n: n2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.code") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.id = e3), onBlur: n2.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.task.taskTitle") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.tache.taskTitle, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.tache.taskTitle = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.canItBeRejected") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: n2.tache.rebuttable, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.tache.rebuttable = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.emailNotification") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: n2.tache.mailNotice, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.tache.mailNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n2.tache.mailNotice ? (r.openBlock(), r.createBlock(s2, { key: 0, label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: n2.tache.mailTemplateCode, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.tache.mailTemplateCode = e3), onSetValue: n2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), n2.tache.mailNotice ? (r.openBlock(), r.createBlock(s2, { key: 1, label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: n2.tache.mailPointTemplateCode, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.tache.mailPointTemplateCode = e3), onSetValue: n2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.HandlingMethod") }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: n2.tache.processingMode.type, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => n2.tache.processingMode.type = e3) }, { default: r.withCtx(() => [r.createVNode(f2, { label: "EDIT" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.editorial")), 1)]), _: 1 }), r.createVNode(f2, { label: "APPROVE" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.approvalType")), 1)]), _: 1 }), r.createVNode(f2, { label: "COUNTERSIGN" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.countersign")), 1)]), _: 1 }), r.createVNode(f2, { label: "VOTE" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.voting")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), "EDIT" === n2.tache.processingMode.type || "APPROVE" === n2.tache.processingMode.type ? (r.openBlock(), r.createBlock(s2, { key: 2, label: e2.$t("workflowEditorMessage.whenThereAreMultipleManagers") }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: n2.tache.processingMode.moreTransactor, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => n2.tache.processingMode.moreTransactor = e3) }, { default: r.withCtx(() => [r.createVNode(f2, { label: false }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.anyOneCanHandleIt")), 1)]), _: 1 }), r.createVNode(f2, { label: true }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.forAll")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), "COUNTERSIGN" === n2.tache.processingMode.type || "VOTE" === n2.tache.processingMode.type ? (r.openBlock(), r.createBlock(s2, { key: 3, label: e2.$t("workflowEditor.task.passRate") }, { default: r.withCtx(() => [r.createVNode(g2, { modelValue: n2.tache.processingMode.passRate, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => n2.tache.processingMode.passRate = e3), step: 10, size: "small", min: 0, max: 100 }, null, 8, ["modelValue"]), ro]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.modifyOperationName") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: i2.showActions, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => i2.showActions = e3) }, null, 8, ["modelValue"]), i2.showActions ? (r.openBlock(), r.createBlock(C2, { key: 0, model: n2.tache.processingMode.actions, onUpdateAction: n2.updateAction }, null, 8, ["model", "onUpdateAction"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.handlingPage") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.tache.taskUrl, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => n2.tache.taskUrl = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.remarks") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.tache.remark, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => n2.tache.remark = e3), type: "textarea", autosize: "" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1031
|
+
}], ["__scopeId", "data-v-a219b06d"]]), no = { name: "EditableFieldSelection", components: { AdditionalCondition: Jt }, props: { value: { type: Array, default: null }, disabledFields: { type: Array, default: null } }, data: () => ({ availableFields: [], formModel: { selectedFields: [], constraintRule: "REQUIRED", showCondition: false, condition: "" }, availableFieldsCount: null, orange: -1, pin: false, dialogVisible: true, activeNames: ["baseField"] }), computed: { ...t.mapGetters("wfEditor", ["formFieldsWithSub"]) }, created() {
|
|
1033
1032
|
let e2 = 0;
|
|
1034
1033
|
this.formFieldsWithSub.map((t3) => {
|
|
1035
1034
|
this.disabledFields.indexOf(t3.name) < 0 && (t3.index = e2, this.availableFields.push(t3), e2++);
|
|
@@ -1051,19 +1050,19 @@
|
|
|
1051
1050
|
const o2 = this.availableFields, l2 = this.origin, r2 = t2;
|
|
1052
1051
|
if (this.pin && -1 !== this.formModel.selectedFields.indexOf(e2)) {
|
|
1053
1052
|
this.formModel.selectedFields.indexOf(e2);
|
|
1054
|
-
const t3 = Math.abs(l2 - r2) + 1,
|
|
1055
|
-
let
|
|
1056
|
-
for (;
|
|
1057
|
-
const e3 =
|
|
1058
|
-
-1 === this.formModel.selectedFields.indexOf(o2[e3].name) && this.formModel.selectedFields.push(o2[e3].name),
|
|
1053
|
+
const t3 = Math.abs(l2 - r2) + 1, i2 = Math.min(l2, r2);
|
|
1054
|
+
let n2 = 0;
|
|
1055
|
+
for (; n2 < t3; ) {
|
|
1056
|
+
const e3 = i2 + n2;
|
|
1057
|
+
-1 === this.formModel.selectedFields.indexOf(o2[e3].name) && this.formModel.selectedFields.push(o2[e3].name), n2++;
|
|
1059
1058
|
}
|
|
1060
1059
|
} else
|
|
1061
1060
|
this.origin = t2;
|
|
1062
|
-
} } },
|
|
1063
|
-
const bo = { name: "EditableFields", components: { EditableFieldSelection:
|
|
1064
|
-
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-col"), d2 = r.resolveComponent("el-row"), c2 = r.resolveComponent("el-collapse-item"), m2 = r.resolveComponent("el-collapse"), u2 = r.resolveComponent("el-checkbox-group"), p2 = r.resolveComponent("el-radio"), h2 = r.resolveComponent("el-radio-group"), f2 = r.resolveComponent("el-form-item"), w2 = r.resolveComponent("el-switch"), g2 = r.resolveComponent("additional-condition"), C2 = r.resolveComponent("el-form"),
|
|
1065
|
-
return r.openBlock(), r.createBlock(
|
|
1066
|
-
}], ["__scopeId", "data-v-9458f3bf"]]), AdditionalConditionDialog:
|
|
1061
|
+
} } }, ao = ["title"], so = ["title"], co = ["title"], mo = ["title"], uo = ["title"], po = ["title"], ho = ["title"], fo = ["title"], wo = ["title"], go = ["title"], Co = ["title"], ko = ["title"];
|
|
1062
|
+
const bo = { name: "EditableFields", components: { EditableFieldSelection: D(no, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1063
|
+
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-col"), d2 = r.resolveComponent("el-row"), c2 = r.resolveComponent("el-collapse-item"), m2 = r.resolveComponent("el-collapse"), u2 = r.resolveComponent("el-checkbox-group"), p2 = r.resolveComponent("el-radio"), h2 = r.resolveComponent("el-radio-group"), f2 = r.resolveComponent("el-form-item"), w2 = r.resolveComponent("el-switch"), g2 = r.resolveComponent("additional-condition"), C2 = r.resolveComponent("el-form"), k2 = r.resolveComponent("el-button"), b2 = r.resolveComponent("el-dialog");
|
|
1064
|
+
return r.openBlock(), r.createBlock(b2, { id: "appContainer", width: "60%", title: e2.$t("workflowEditor.task.selectEditableField"), "model-value": "", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", center: "", onClose: t2[6] || (t2[6] = (t3) => e2.$emit("close")) }, { footer: r.withCtx(() => [r.createVNode(k2, { type: "primary", size: "small", onClick: n2.setSelectedFields }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(k2, { size: "small", onClick: t2[5] || (t2[5] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createVNode(C2, { model: i2.formModel }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.formModel.selectedFields, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.selectedFields = e3) }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.availableFieldsCount, (e3, t3) => (r.openBlock(), r.createElementBlock(r.Fragment, { key: e3.prop }, [i2.availableFields[3 * t3 + 0] && !i2.availableFields[3 * t3 + 0].baseField ? (r.openBlock(), r.createBlock(s2, { key: 0, span: 8 }, { default: r.withCtx(() => [-1 === i2.availableFields[3 * t3 + 0].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: i2.availableFields[3 * t3 + 0].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 0].name, i2.availableFields[3 * t3 + 0].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: i2.availableFields[3 * t3 + 0].label }, r.toDisplayString(i2.availableFields[3 * t3 + 0].label), 9, ao)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: i2.availableFields[3 * t3 + 0].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 0].name, i2.availableFields[3 * t3 + 0].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: i2.availableFields[3 * t3 + 0].label }, r.toDisplayString(i2.availableFields[3 * t3 + 0].label), 9, so)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true), i2.availableFields[3 * t3 + 1] && !i2.availableFields[3 * t3 + 1].baseField ? (r.openBlock(), r.createBlock(s2, { key: 1, span: 8 }, { default: r.withCtx(() => [-1 === i2.availableFields[3 * t3 + 1].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: i2.availableFields[3 * t3 + 1].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 1].name, i2.availableFields[3 * t3 + 1].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: i2.availableFields[3 * t3 + 1].label }, r.toDisplayString(i2.availableFields[3 * t3 + 1].label), 9, co)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: i2.availableFields[3 * t3 + 1].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 1].name, i2.availableFields[3 * t3 + 1].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: i2.availableFields[3 * t3 + 1].label }, r.toDisplayString(i2.availableFields[3 * t3 + 1].label), 9, mo)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true), i2.availableFields[3 * t3 + 2] && !i2.availableFields[3 * t3 + 2].baseField ? (r.openBlock(), r.createBlock(s2, { key: 2, span: 8 }, { default: r.withCtx(() => [-1 === i2.availableFields[3 * t3 + 2].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: i2.availableFields[3 * t3 + 2].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 2].name, i2.availableFields[3 * t3 + 2].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: i2.availableFields[3 * t3 + 2].label }, r.toDisplayString(i2.availableFields[3 * t3 + 2].label), 9, uo)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: i2.availableFields[3 * t3 + 2].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 2].name, i2.availableFields[3 * t3 + 2].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: i2.availableFields[3 * t3 + 2].label }, r.toDisplayString(i2.availableFields[3 * t3 + 2].label), 9, po)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true)], 64))), 128))]), _: 1 }), r.createVNode(m2, { modelValue: i2.activeNames, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.activeNames = e3) }, { default: r.withCtx(() => [r.createVNode(c2, { title: e2.$t("workflowEditor.task.baseField"), name: "baseField" }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.availableFieldsCount, (e3, t3) => (r.openBlock(), r.createElementBlock("span", { key: e3.prop }, [r.createVNode(d2, null, { default: r.withCtx(() => [i2.availableFields[3 * t3 + 0] && i2.availableFields[3 * t3 + 0].baseField ? (r.openBlock(), r.createBlock(s2, { key: 0, span: 8 }, { default: r.withCtx(() => [-1 === i2.availableFields[3 * t3 + 0].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: i2.availableFields[3 * t3 + 0].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 0].name, i2.availableFields[3 * t3 + 0].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: i2.availableFields[3 * t3 + 0].label }, r.toDisplayString(i2.availableFields[3 * t3 + 0].label), 9, ho)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: i2.availableFields[3 * t3 + 0].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 0].name, i2.availableFields[3 * t3 + 0].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: i2.availableFields[3 * t3 + 0].label }, r.toDisplayString(i2.availableFields[3 * t3 + 0].label), 9, fo)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true), i2.availableFields[3 * t3 + 1] && i2.availableFields[3 * t3 + 1].baseField ? (r.openBlock(), r.createBlock(s2, { key: 1, span: 8 }, { default: r.withCtx(() => [-1 === i2.availableFields[3 * t3 + 1].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: i2.availableFields[3 * t3 + 1].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 1].name, i2.availableFields[3 * t3 + 1].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: i2.availableFields[3 * t3 + 1].label }, r.toDisplayString(i2.availableFields[3 * t3 + 1].label), 9, wo)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: i2.availableFields[3 * t3 + 1].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 1].name, i2.availableFields[3 * t3 + 1].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: i2.availableFields[3 * t3 + 1].label }, r.toDisplayString(i2.availableFields[3 * t3 + 1].label), 9, go)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true), i2.availableFields[3 * t3 + 2] && i2.availableFields[3 * t3 + 2].baseField ? (r.openBlock(), r.createBlock(s2, { key: 2, span: 8 }, { default: r.withCtx(() => [-1 === i2.availableFields[3 * t3 + 2].name.indexOf("$") ? (r.openBlock(), r.createBlock(a2, { key: 0, label: i2.availableFields[3 * t3 + 2].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 2].name, i2.availableFields[3 * t3 + 2].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { title: i2.availableFields[3 * t3 + 2].label }, r.toDisplayString(i2.availableFields[3 * t3 + 2].label), 9, Co)]), _: 2 }, 1032, ["label", "onChange"])) : (r.openBlock(), r.createBlock(a2, { key: 1, label: i2.availableFields[3 * t3 + 2].name, onChange: (e4) => n2.pinSelect(i2.availableFields[3 * t3 + 2].name, i2.availableFields[3 * t3 + 2].index) }, { default: r.withCtx(() => [r.createElementVNode("span", { style: { color: "#409eff" }, class: "ellipsis", title: i2.availableFields[3 * t3 + 2].label }, r.toDisplayString(i2.availableFields[3 * t3 + 2].label), 9, ko)]), _: 2 }, 1032, ["label", "onChange"]))]), _: 2 }, 1024)) : r.createCommentVNode("", true)]), _: 2 }, 1024)]))), 128))]), _: 1 }, 8, ["title"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"]), r.createVNode(f2, { label: e2.$t("workflowEditor.task.editingMethod") }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: i2.formModel.constraintRule, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.formModel.constraintRule = e3) }, { default: r.withCtx(() => [r.createVNode(p2, { label: "REQUIRED" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r.createVNode(p2, { label: "READ_ONLY" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(f2, { label: e2.$t("workflowEditor.task.additionalConditions") }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: i2.formModel.showCondition, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.formModel.showCondition = e3) }, null, 8, ["modelValue"]), i2.formModel.showCondition ? (r.openBlock(), r.createBlock(g2, { key: 0, modelValue: i2.formModel.condition, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.formModel.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["title"]);
|
|
1065
|
+
}], ["__scopeId", "data-v-9458f3bf"]]), AdditionalConditionDialog: Gt }, props: { modelValue: { type: [Array, Object], default: null } }, data() {
|
|
1067
1066
|
let e2 = [];
|
|
1068
1067
|
"" !== this.modelValue && null !== this.modelValue && void 0 !== this.modelValue && (Array.isArray(this.modelValue) ? e2 = this.modelValue : e2.push(this.modelValue));
|
|
1069
1068
|
return { showFieldSelection: false, showAdditionalCondition: false, selectedFields: e2, currentRow: null, multipleSelection: [], disabledFields: this.getDisabledFields(this.modelValue) };
|
|
@@ -1110,37 +1109,37 @@
|
|
|
1110
1109
|
if ("" === e2 || !e2)
|
|
1111
1110
|
return this.$t("workflowEditor.task.nothing");
|
|
1112
1111
|
const t2 = [];
|
|
1113
|
-
return
|
|
1112
|
+
return It(t2, e2), Ut(t2);
|
|
1114
1113
|
}, getFieldLabel(e2) {
|
|
1115
1114
|
const t2 = this.formFieldsWithSub.filter((t3) => t3.name === e2.name);
|
|
1116
1115
|
return t2.length > 0 ? t2[0].label : "";
|
|
1117
1116
|
}, selectCondition(e2) {
|
|
1118
1117
|
this.selectRow(e2), this.showAdditionalCondition = true;
|
|
1119
|
-
} } },
|
|
1120
|
-
const
|
|
1118
|
+
} } }, Vo = { style: { width: "100%" } };
|
|
1119
|
+
const yo = D(bo, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1121
1120
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-radio"), m2 = r.resolveComponent("el-radio-group"), u2 = r.resolveComponent("el-input"), p2 = r.resolveComponent("el-table"), h2 = r.resolveComponent("editable-field-selection"), f2 = r.resolveComponent("additional-condition-dialog");
|
|
1122
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
1123
|
-
}]]),
|
|
1121
|
+
return r.openBlock(), r.createElementBlock("div", Vo, [r.createVNode(s2, { style: { "padding-bottom": "10px" } }, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(p2, { ref: "table", data: i2.selectedFields, border: "", "highlight-current-row": "", onSelectionChange: n2.handleSelectionChange, onCurrentChange: n2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(d2, { type: "selection", width: "55" }), r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { label: e2.$t("workflowEditor.common.name"), width: "180" }, { default: r.withCtx((e3) => [r.createElementVNode("span", { style: r.normalizeStyle({ color: e3.row.name && 0 === e3.row.name.indexOf("$") ? "#409EFF" : "" }) }, r.toDisplayString(n2.getFieldLabel(e3.row)), 5)]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "name", label: e2.$t("workflowEditor.task.propertyName"), width: "180" }, null, 8, ["label"]), r.createVNode(d2, { prop: "constraintRule", label: e2.$t("workflowEditor.task.editingMethod") }, { default: r.withCtx((t3) => [r.createVNode(m2, { modelValue: t3.row.constraintRule, "onUpdate:modelValue": (e3) => t3.row.constraintRule = e3 }, { default: r.withCtx(() => [r.createVNode(c2, { label: "REQUIRED" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r.createVNode(c2, { label: "READ_ONLY" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "condition", label: e2.$t("workflowEditor.task.condition") }, { default: r.withCtx((e3) => [r.createVNode(u2, { value: n2.formatCondition(e3.row.condition), type: "textarea", autosize: "", onClick: (t3) => n2.selectCondition(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), i2.showFieldSelection ? (r.openBlock(), r.createBlock(h2, { key: 0, "disabled-fields": i2.disabledFields, onInputValue: n2.setSelectedFields, onClose: t2[0] || (t2[0] = (e3) => i2.showFieldSelection = false) }, null, 8, ["disabled-fields", "onInputValue"])) : r.createCommentVNode("", true), i2.showAdditionalCondition ? (r.openBlock(), r.createBlock(f2, { key: 1, modelValue: i2.currentRow.condition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.currentRow.condition = e3), onClose: t2[2] || (t2[2] = (e3) => i2.showAdditionalCondition = false) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]);
|
|
1122
|
+
}]]), vo = { xmlToData(e2) {
|
|
1124
1123
|
const t2 = [];
|
|
1125
1124
|
if (e2) {
|
|
1126
1125
|
const r2 = e2.split(" ");
|
|
1127
1126
|
if (r2 && r2.length > 0) {
|
|
1128
|
-
let e3 = 1,
|
|
1127
|
+
let e3 = 1, i2 = "", n2 = "", a2 = "", s2 = "", d2 = "", c2 = "", m2 = null;
|
|
1129
1128
|
for (var o2 = 0; o2 < r2.length; o2++) {
|
|
1130
1129
|
var l2 = r2[o2];
|
|
1131
1130
|
if (-1 !== l2.indexOf("(")) {
|
|
1132
|
-
this.operationArr && this.operationArr.push([]),
|
|
1131
|
+
this.operationArr && this.operationArr.push([]), i2 = "", n2 = "", a2 = "", s2 = "", d2 = "", c2 = "";
|
|
1133
1132
|
const t3 = l2.split("${field[");
|
|
1134
|
-
if (
|
|
1135
|
-
const t4 = this.getOperators(this.fieldMap[
|
|
1133
|
+
if (i2 = t3[0], n2 = t3[1].replace("]}", ""), this.operationArr) {
|
|
1134
|
+
const t4 = this.getOperators(this.fieldMap[n2]);
|
|
1136
1135
|
this.operationArr[e3 - 1] = t4;
|
|
1137
1136
|
}
|
|
1138
1137
|
continue;
|
|
1139
1138
|
}
|
|
1140
1139
|
if (-1 !== l2.indexOf("(") || -1 === l2.indexOf("${field["))
|
|
1141
|
-
-1 === l2.indexOf("operator.") || -1 !== l2.indexOf("condition.") ? "" === a2 || "" !== s2 ? -1 !== l2.indexOf("condition.") ? (c2 = l2, t2.push({ id: e3, leftBracket:
|
|
1142
|
-
else if (this.operationArr && this.operationArr.push([]),
|
|
1143
|
-
const t3 = this.getOperators(this.fieldMap[
|
|
1140
|
+
-1 === l2.indexOf("operator.") || -1 !== l2.indexOf("condition.") ? "" === a2 || "" !== s2 ? -1 !== l2.indexOf("condition.") ? (c2 = l2, t2.push({ id: e3, leftBracket: i2, propName: n2, operator: a2, propValue: s2, rightBracket: d2, logicOperator: c2, propValueType: m2 }), e3 += 1) : s2 && "" !== s2 && (c2 && "" !== c2 || (c2 = "condition.operator.or", t2.push({ id: e3, leftBracket: i2, propName: n2, operator: a2, propValue: s2, rightBracket: d2, logicOperator: c2, propValueType: m2 }), e3 += 1)) : (-1 !== l2.indexOf(")") ? -1 !== l2.indexOf(")))") ? (s2 = l2.replace(")))", ""), d2 = ")))") : -1 !== l2.indexOf("))") ? (s2 = l2.replace("))", ""), d2 = "))") : -1 !== l2.indexOf(")") && (s2 = l2.replace(")", ""), d2 = ")") : s2 = l2, s2 && "" !== s2 && (-1 !== s2.indexOf("${task.") ? m2 = "task" : -1 !== s2.indexOf("${context.") ? m2 = "context" : -1 !== s2.indexOf("${obj.") ? m2 = "obj" : -1 !== s2.indexOf("${subObj.") ? m2 = "subObj" : -1 !== s2.indexOf("${request.") ? m2 = "request" : -1 !== s2.indexOf("${input.") ? m2 = "input" : -1 !== s2.indexOf("${custom.") && (m2 = "custom"))) : a2 = l2;
|
|
1141
|
+
else if (this.operationArr && this.operationArr.push([]), i2 = "", n2 = "", a2 = "", s2 = "", d2 = "", c2 = "", n2 = l2.replace("${field[", "").replace("]}", ""), this.operationArr) {
|
|
1142
|
+
const t3 = this.getOperators(this.fieldMap[n2]);
|
|
1144
1143
|
this.operationArr[e3 - 1] = t3;
|
|
1145
1144
|
}
|
|
1146
1145
|
}
|
|
@@ -1159,8 +1158,8 @@
|
|
|
1159
1158
|
if (e2 && e2.length > 0)
|
|
1160
1159
|
for (var l2 = 0; l2 < e2.length; l2++) {
|
|
1161
1160
|
o2.push([]);
|
|
1162
|
-
const r2 = e2[l2],
|
|
1163
|
-
o2[l2] =
|
|
1161
|
+
const r2 = e2[l2], i2 = this.getOperators(t2[r2.propName]);
|
|
1162
|
+
o2[l2] = i2;
|
|
1164
1163
|
}
|
|
1165
1164
|
return o2;
|
|
1166
1165
|
}, dataToXml(e2) {
|
|
@@ -1199,11 +1198,11 @@
|
|
|
1199
1198
|
}
|
|
1200
1199
|
}
|
|
1201
1200
|
return t2;
|
|
1202
|
-
}, getOperators: (e2) => e2 ? "INTEGER" === e2.type || "LONG" === e2.type || "DOUBLE" === e2.type || "FLOAT" === e2.type ? [{ name: "operator.number.gt", label:
|
|
1203
|
-
function
|
|
1204
|
-
return void 0 !==
|
|
1201
|
+
}, getOperators: (e2) => e2 ? "INTEGER" === e2.type || "LONG" === e2.type || "DOUBLE" === e2.type || "FLOAT" === e2.type ? [{ name: "operator.number.gt", label: f().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: f().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: f().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: f().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: f().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.is.null", label: f().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: f().t("workflowEditor.process.isNotNull") }] : "DATE" === e2.type || "TIME" === e2.type ? [{ name: "operator.date.gt", label: f().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: f().t("workflowEditor.process.earlierThan") }, { name: "operator.date.eq", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: f().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: f().t("workflowEditor.process.noEarlierThan") }, { name: "operator.text.is.null", label: f().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: f().t("workflowEditor.process.isNotNull") }] : "TEXT" === e2.type ? [{ name: "operator.text.eq", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: f().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: f().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: f().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: f().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: f().t("workflowEditor.process.isNotNull") }] : [{ name: "operator.text.eq", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: f().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.is.null", label: f().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: f().t("workflowEditor.process.isNotNull") }] : [{ name: "operator.text.eq", label: f().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: f().t("workflowEditor.process.notEqualTo") }] }, To = { "${instanceCreatorName}": f().t("workflowEditor.process.processInitiator"), "${instanceCreatorDirectSuperiorName}": f().t("workflowEditor.process.sponsorsImmediateSuperior"), "${instanceCreatorDeptApprover}": f().t("workflowEditor.process.deptApprover"), "${instanceCreatorDirectSuperiorDeptApprover}": f().t("workflowEditor.process.superiorDeptApprover"), "${instanceCreatorDirectSuperiorDeptLeader}": f().t("workflowEditor.process.superiorDeptLeader"), "${currentTransactorName}": f().t("workflowEditor.process.nameOfCurrentHandler"), "${currentTransactorDirectSuperiorName}": f().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler") }, No = { "${instanceCreatorDepartment}": f().t("workflowEditor.process.processInitiatorDepartment"), "${instanceCreatorSuperiorDepartment}": f().t("workflowEditor.process.sponsorsSuperiorDepartment"), "${instanceCreatorUpstageDepartment}": f().t("workflowEditor.process.sponsorTopDepartment"), "${instanceCreatorDirectSuperiorDepartment}": f().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"), "${currentTransactorDepartment}": f().t("workflowEditor.process.currentHandlerDepartment"), "${currentTransactorSuperiorDepartment}": f().t("workflowEditor.process.currentHandlerSuperiorDepartment"), "${currentTransactorUpstageDepartment}": f().t("workflowEditor.process.topDepartmentOfCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": f().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment") }, xo = { "${instanceCreatorrWorkGroup}": f().t("workflowEditor.process.processInitiatorWorkingGroup"), "${instanceCreatorDirectSuperiorWorkGroup}": f().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"), "${currentTransactorWorkGroup}": f().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorDirectSuperiorWorkGroup}": f().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler") }, Eo = { "${user}": f().t("workflowEditor.common.user"), "${department}": f().t("workflowEditor.common.department"), "${role}": f().t("workflowEditor.common.role"), "${workgroup}": f().t("workflowEditor.common.workgroup") }, So = { "condition.operator.or": f().t("workflowEditor.process.perhaps"), "condition.operator.and": f().t("workflowEditor.process.also") }, Mo = { "operator.text.eq": f().t("workflowEditor.process.beEqualTo"), "operator.text.neq": f().t("workflowEditor.process.notEqualTo") }, Do = { ...To, ...No, ...xo }, $o = { "${instanceCreatorName}": f().t("workflowEditor.process.processInitiator"), "${instanceCreatorDirectSuperiorName}": f().t("workflowEditor.process.sponsorsImmediateSuperior"), "${instanceCreatorDeptApprover}": f().t("workflowEditor.process.deptApprover"), "${instanceCreatorDirectSuperiorDeptApprover}": f().t("workflowEditor.process.superiorDeptApprover"), "${instanceCreatorDirectSuperiorDeptLeader}": f().t("workflowEditor.process.superiorDeptLeader") }, Fo = { "${upstageDepartment}": f().t("workflowEditor.process.topDepartments"), "${instanceCreatorDepartment}": f().t("workflowEditor.process.processInitiatorDepartment"), "${instanceCreatorSuperiorDepartment}": f().t("workflowEditor.process.sponsorsSuperiorDepartment"), "${instanceCreatorUpstageDepartment}": f().t("workflowEditor.process.sponsorTopDepartment"), "${instanceCreatorDirectSuperiorDepartment}": f().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"), "${previousTransactorDepartment}": f().t("workflowEditor.process.lastLinkHandlerDepartment"), "${previousTransactorSuperiorDepartment}": f().t("workflowEditor.process.previousLinkHandlerSuperiorDepartment"), "${previousTransactorUpstageDepartment}": f().t("workflowEditor.process.topDepartmentOfHandlerInThePreviousLink"), "${previousTransactorDirectSuperiorDepartment}": f().t("workflowEditor.process.previousLinkHandlersDirectSuperiorDepartment") }, Po = { "${instanceCreatorrWorkGroup}": f().t("workflowEditor.process.processInitiatorWorkingGroup"), "${instanceCreatorDirectSuperiorWorkGroup}": f().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"), "${previousTransactorWorkGroup}": f().t("workflowEditor.process.previousLinkHandlerWorkingGroup"), "${previousTransactorDirectSuperiorWorkGroup}": f().t("workflowEditor.process.workingGroupDirectlyUnderTheManagerInThePreviousLink") };
|
|
1202
|
+
function Bo(e2) {
|
|
1203
|
+
return void 0 !== Do[e2] ? Do[e2] : "";
|
|
1205
1204
|
}
|
|
1206
|
-
const
|
|
1205
|
+
const Oo = { name: "CommonUserCondition", components: { ValueSelectionDialog: zt }, props: { modelValue: { type: String, default: null }, usedIn: { type: String, default: "reminder" } }, data() {
|
|
1207
1206
|
const e2 = [];
|
|
1208
1207
|
let t2 = 0;
|
|
1209
1208
|
return this.modelValue && "" !== this.modelValue && (t2 = function(e3, t3) {
|
|
@@ -1214,16 +1213,16 @@
|
|
|
1214
1213
|
for (const t4 of l2) {
|
|
1215
1214
|
if ("" === t4)
|
|
1216
1215
|
continue;
|
|
1217
|
-
let o3 = "", l3 = "",
|
|
1216
|
+
let o3 = "", l3 = "", i2 = "", n2 = "", a2 = "", s2 = "condition.operator.or";
|
|
1218
1217
|
const d2 = t4.split(" ");
|
|
1219
1218
|
let c2 = d2[0].indexOf("${");
|
|
1220
|
-
c2 > 0 ? (o3 = d2[0].substring(0, c2), l3 = d2[0].substring(c2)) : l3 = d2[0],
|
|
1219
|
+
c2 > 0 ? (o3 = d2[0].substring(0, c2), l3 = d2[0].substring(c2)) : l3 = d2[0], i2 = d2[1], c2 = d2[2].indexOf(")"), c2 > 0 ? (n2 = d2[2].substring(0, c2), a2 = d2[2].substring(c2)) : n2 = d2[2], 4 === d2.length && (s2 = d2[3]), e3.push({ id: r2, leftBracket: o3, key: l3, operator: i2, value: n2, rightBracket: a2, logicOperator: s2 }), r2++;
|
|
1221
1220
|
}
|
|
1222
1221
|
return r2;
|
|
1223
1222
|
}(e2, this.modelValue)), { users: e2, count: t2, currentRow: null, showValueDialog: false };
|
|
1224
1223
|
}, computed: { standardFields() {
|
|
1225
|
-
let e2 = "reminder" === this.usedIn ?
|
|
1226
|
-
return "${department}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ?
|
|
1224
|
+
let e2 = "reminder" === this.usedIn ? To : $o;
|
|
1225
|
+
return "${department}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? No : Fo : "${workgroup}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? xo : Po : "${role}" === this.currentRow.key && (e2 = {}), e2;
|
|
1227
1226
|
} }, mounted() {
|
|
1228
1227
|
this.users.length > 0 && this.$refs.table.setCurrentRow(this.users[this.users.length - 1]), this.$watch("users", function(e2, t2) {
|
|
1229
1228
|
this.$emit("update:modelValue", function(e3) {
|
|
@@ -1234,7 +1233,7 @@
|
|
|
1234
1233
|
return t3.lastIndexOf(o2) + 23 === t3.length ? t3 = t3.substring(0, t3.lastIndexOf(o2)) : t3.lastIndexOf(l2) + 24 === t3.length && (t3 = t3.substring(0, t3.lastIndexOf(l2))), t3;
|
|
1235
1234
|
}(this.users));
|
|
1236
1235
|
}, { deep: true });
|
|
1237
|
-
}, methods: { format: (e2) => e2.indexOf("${field[") >= 0 ?
|
|
1236
|
+
}, methods: { format: (e2) => e2.indexOf("${field[") >= 0 ? ut(e2) : e2.indexOf("${") >= 0 ? Bo(e2) : e2.substring(0, e2.indexOf("[")), selectRow(e2) {
|
|
1238
1237
|
this.$refs.table.setCurrentRow(e2);
|
|
1239
1238
|
}, openValueDialog(e2) {
|
|
1240
1239
|
this.showValueDialog = true, this.selectRow(e2);
|
|
@@ -1264,8 +1263,8 @@
|
|
|
1264
1263
|
let e2 = function(e3) {
|
|
1265
1264
|
let t2 = "";
|
|
1266
1265
|
for (const o3 of e3)
|
|
1267
|
-
"" !== o3.value && (t2 = t2 + o3.leftBracket +
|
|
1268
|
-
const o2 = " " +
|
|
1266
|
+
"" !== o3.value && (t2 = t2 + o3.leftBracket + Eo[o3.key] + " " + Mo[o3.operator] + " " + Bo(o3.value) + o3.rightBracket + " " + So[o3.logicOperator] + " ");
|
|
1267
|
+
const o2 = " " + f().t("workflowEditor.process.perhaps") + " ", l2 = " " + f().t("workflowEditor.process.also") + " ";
|
|
1269
1268
|
return t2.lastIndexOf(o2) + o2.length === t2.length ? t2 = t2.substring(0, t2.lastIndexOf(o2)) : t2.lastIndexOf(l2) + l2.length === t2.length && (t2 = t2.substring(0, t2.lastIndexOf(l2))), t2;
|
|
1270
1269
|
}(this.users);
|
|
1271
1270
|
"" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorPublicModel.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
|
|
@@ -1273,17 +1272,17 @@
|
|
|
1273
1272
|
}, handleKeyChange(e2) {
|
|
1274
1273
|
this.currentRow.value = "";
|
|
1275
1274
|
} } };
|
|
1276
|
-
const
|
|
1275
|
+
const Io = D(Oo, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1277
1276
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-option"), c2 = r.resolveComponent("el-select"), m2 = r.resolveComponent("el-table-column"), u2 = r.resolveComponent("el-input"), p2 = r.resolveComponent("el-table"), h2 = r.resolveComponent("value-selection-dialog");
|
|
1278
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick:
|
|
1279
|
-
}]]),
|
|
1277
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: n2.insert }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "View", onClick: n2.view }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(p2, { ref: "table", data: i2.users, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: n2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(m2, { prop: "leftBracket", label: "(", width: "90" }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: "", value: "" }), r.createVNode(d2, { label: "(", value: "(" }), r.createVNode(d2, { label: "((", value: "((" }), r.createVNode(d2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), r.createVNode(m2, { label: e2.$t("workflowEditor.common.type"), width: "110" }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.key, "onUpdate:modelValue": (e3) => t3.row.key = e3, placeholder: "", onFocus: (e3) => n2.selectRow(t3.row), onChange: n2.handleKeyChange }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditor.common.user"), value: "${user}" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.common.role"), value: "${role}" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.common.department"), value: "${department}" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.common.workgroup"), value: "${workgroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.operator, "onUpdate:modelValue": (e3) => t3.row.operator = e3, placeholder: "", onFocus: (e3) => n2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditor.process.beEqualTo"), value: "operator.text.eq" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.process.notEqualTo"), value: "operator.text.neq" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.value") }, { default: r.withCtx((e3) => [r.createVNode(u2, { value: n2.format(e3.row.value), readonly: "", onClick: (t3) => n2.openValueDialog(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), r.createVNode(m2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => n2.selectRow(e2.scope.row)) }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: r.withCtx(() => [r.createVNode(d2, { label: "", value: "" }), r.createVNode(d2, { label: ")", value: ")" }), r.createVNode(d2, { label: "))", value: "))" }), r.createVNode(d2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r.createVNode(m2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => n2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(d2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), r.createVNode(d2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), i2.showValueDialog ? (r.openBlock(), r.createBlock(h2, { key: 0, "standard-fields": n2.standardFields, "org-type": i2.currentRow.key.substring(i2.currentRow.key.indexOf("{") + 1, i2.currentRow.key.lastIndexOf("}")), onClose: n2.closeValueDialog }, null, 8, ["standard-fields", "org-type", "onClose"])) : r.createCommentVNode("", true)]);
|
|
1278
|
+
}]]), _o = { components: { AdditionalCondition: Jt, CommonUserCondition: Io }, props: { conditionList: { type: [Array, String], default: null }, userCondition: { type: String, default: null }, parentCondition: { type: String, default: null }, attributeMap: { type: Object, default: null }, buttonType: { type: Object, default: null } }, data() {
|
|
1280
1279
|
let e2, t2;
|
|
1281
1280
|
return this.userCondition && "" !== this.userCondition && (e2 = this.userCondition), this.parentCondition && "" !== this.parentCondition && (t2 = this.parentCondition), { myUserCondition: e2, myParentCondition: t2, tableData: null, attributeArr: [], fieldMap: {}, fieldNameMap: {}, queryList: [], operationArr: [], parentAttributeArr: [], dialogVisible: true };
|
|
1282
1281
|
}, created() {
|
|
1283
1282
|
this.getAttributeArr();
|
|
1284
1283
|
}, computed: { ...t.mapGetters("wfEditor", ["propSettingKeyList"]) }, mounted() {
|
|
1285
1284
|
this.conditionList && ("object" == typeof this.conditionList ? this.tableData = this.conditionList : this.tableData = this.xmlToData(this.conditionList), this.getOperatorsArr(this.tableData));
|
|
1286
|
-
}, methods: { ...
|
|
1285
|
+
}, methods: { ...vo, add() {
|
|
1287
1286
|
this.tableData || (this.tableData = []), this.tableData.push({ leftBracket: "", propName: "", operator: "", propValue: "", rightBracket: "", logicOperator: "condition.operator.or", dataType: "", propDbName: "" }), this.operationArr.push([]);
|
|
1288
1287
|
}, remove() {
|
|
1289
1288
|
if (null === this.currentRow)
|
|
@@ -1318,10 +1317,10 @@
|
|
|
1318
1317
|
this.savebuttonSetting(), this.$emit("close", null);
|
|
1319
1318
|
}, changePropValue(e2) {
|
|
1320
1319
|
this.tableData[e2] && this.tableData[e2].propValue ? this.tableData[e2].propValueType && ("request" === this.tableData[e2].propValueType && (-1 === this.tableData[e2].propValue.indexOf("${request.") && (this.tableData[e2].propValue = "${request." + this.tableData[e2].propValue), -1 === this.tableData[e2].propValue.indexOf("}") && (this.tableData[e2].propValue = this.tableData[e2].propValue + "}")), "input" === this.tableData[e2].propValueType && (-1 === this.tableData[e2].propValue.indexOf("${input.") && (this.tableData[e2].propValue = "${input." + this.tableData[e2].propValue), -1 === this.tableData[e2].propValue.indexOf("}") && (this.tableData[e2].propValue = this.tableData[e2].propValue + "}"))) : this.tableData[e2].propValueType = null;
|
|
1321
|
-
} } },
|
|
1322
|
-
const
|
|
1320
|
+
} } }, Ro = { style: { "overflow-y": "auto", "max-height": "500px" } }, Ao = { class: "operation-area" }, Uo = { class: "clearfix" }, Lo = { class: "clearfix" };
|
|
1321
|
+
const Ho = { name: "EditableChildFields", components: { editableChildFieldSetting: D({ name: "EditableChildFieldSetting", components: { selectionConditions: D(_o, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1323
1322
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("common-user-condition"), d2 = r.resolveComponent("el-card"), c2 = r.resolveComponent("additional-condition"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("el-option"), p2 = r.resolveComponent("el-select"), h2 = r.resolveComponent("el-table-column"), f2 = r.resolveComponent("el-date-picker"), w2 = r.resolveComponent("el-input"), g2 = r.resolveComponent("el-table"), C2 = r.resolveComponent("el-dialog");
|
|
1324
|
-
return r.openBlock(), r.createBlock(C2, { "show-close": true, "append-to-body": true, style: { width: "100%" }, title: e2.$t("workflowEditor.condition.combinationCondition"), "model-value": "", onClose: i2.closeButtonSetting }, { default: r.withCtx(() => [r.createElementVNode("div", _o, [r.createElementVNode("div", Ro, [r.createVNode(a2, { size: "small", type: "primary", onClick: i2.savebuttonSetting }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])]), r.createElementVNode("div", null, [r.createVNode(d2, { class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", Ao, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.personnelScope")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(s2, { modelValue: n2.myUserCondition, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.myUserCondition = e3), "used-in": "transactor" }, null, 8, ["modelValue"])])]), _: 1 }), r.createVNode(d2, { class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", Uo, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.mainTableConditions")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(c2, { modelValue: n2.myParentCondition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.myParentCondition = e3) }, null, 8, ["modelValue"])])]), _: 1 }), "notEmpty" !== o2.buttonType && "add" !== o2.buttonType ? (r.openBlock(), r.createBlock(d2, { key: 0, class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", null, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.subtableCondition")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(m2, { style: { "padding-bottom": "8px" } }, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(g2, { id: "tableDataDialog", ref: "table", data: n2.tableData, border: "", style: { width: "100%" }, "highlight-current-row": "", onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(h2, { prop: "leftBracket", label: "(", width: "90" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, size: "small", clearable: "", onFocus: (t3) => i2.selectRow(e3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: "", value: "" }), r.createVNode(u2, { label: "(", value: "(" }), r.createVNode(u2, { label: "((", value: "((" }), r.createVNode(u2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), r.createVNode(h2, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.propName, "onUpdate:modelValue": (t3) => e3.row.propName = t3, "filter-method": i2.searchField, size: "small", clearable: "", filterable: "", onFocus: (t3) => i2.selectRow(e3.row), onChange: (t3) => i2.changeFieldName(e3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.attributeArr, (e4) => (r.openBlock(), r.createBlock(u2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "filter-method", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(h2, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, size: "small", clearable: "", onFocus: (t3) => i2.selectRow(e3.row) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.operationArr[e3.$index], (e4) => (r.openBlock(), r.createBlock(u2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), r.createVNode(h2, { label: e2.$t("workflowEditor.common.value") }, { default: r.withCtx((t3) => [t3.row.propValueType ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(p2, { key: 0, modelValue: t3.row.propValueType, "onUpdate:modelValue": (e3) => t3.row.propValueType = e3, size: "small", onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.fillInManually"), value: "input" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.environmentVariable"), value: "context" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.requestParameters"), value: "request" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.mainTableField"), value: "obj" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.databaseFields"), value: "subObj" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.taskFields"), value: "task" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.systemParameter"), value: "custom" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])), "context" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 1, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, clearable: "", size: "small", title: t3.row.propValue, filterable: "", "default-first-option": "", "allow-create": "", onChange: (e3) => i2.changePropValue(t3.$index), onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTime"), value: "${context.currentTime}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactor"), value: "${context.currentTransactor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorName"), value: "${context.currentTransactorName}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorId"), value: "${context.currentTransactorId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorMainDepartmentId"), value: "${context.currentTransactorMainDepartmentId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorMainDepartment"), value: "${context.currentTransactorMainDepartment}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorRoleId"), value: "${context.currentTransactorRoleId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorRole"), value: "${context.currentTransactorRole}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorWorkGroupId"), value: "${context.currentTransactorWorkGroupId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorWorkGroup"), value: "${context.currentTransactorWorkGroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : r.createCommentVNode("", true), "task" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 2, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, clearable: "", size: "small", title: t3.row.propValue, filterable: "", "default-first-option": "", "allow-create": "", onChange: (e3) => i2.changePropValue(t3.$index), onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentHandler"), value: "${task.transactor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTaskClient"), value: "${task.trustor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentAssignor"), value: "${task.assigner}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.linkName"), value: "${task.name}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.linkCode"), value: "${task.nodeId}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : r.createCommentVNode("", true), "DATE" === t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(f2, { key: 3, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, size: "small", clearable: "", "value-format": "YYYY-MM-DD", title: t3.row.propValue, type: "date", onChange: (e3) => i2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "TIME" === t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(f2, { key: 4, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, size: "small", title: t3.row.propValue, clearable: "", "value-format": "YYYY-MM-DD HH:mm:ss", type: "datetime", onChange: (e3) => i2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "TIME" !== t3.row.dataType && "DATE" !== t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(w2, { key: 5, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, modelModifiers: { trim: true }, title: t3.row.propValue, clearable: "", size: "small", onChange: (e3) => i2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "request" === t3.row.propValueType ? (r.openBlock(), r.createBlock(w2, { key: 6, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, modelModifiers: { trim: true }, title: t3.row.propValue, clearable: "", size: "small", onChange: (e3) => i2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "subObj" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 7, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, "filter-method": i2.searchField, size: "small", clearable: "", filterable: "", onChange: (e3) => i2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.attributeArr, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${subObj." + e3.value + "}", label: e3.label, value: "${subObj." + e3.value + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "filter-method", "onChange"])) : r.createCommentVNode("", true), "obj" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 8, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, size: "small", clearable: "", filterable: "", onChange: (e3) => i2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.parentAttributeArr, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${obj." + e3.value + "}", label: e3.label, value: "${obj." + e3.value + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "custom" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 9, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, size: "small", clearable: "", filterable: "", onChange: (e3) => i2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.propSettingKeyList, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${custom." + e3 + "}", label: e3, value: "${custom." + e3 + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(h2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[2] || (t2[2] = (t3) => i2.selectRow(e2.scope.row)) }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, size: "small", clearable: "" }, { default: r.withCtx(() => [r.createVNode(u2, { label: "", value: "" }), r.createVNode(u2, { label: ")", value: ")" }), r.createVNode(u2, { label: "))", value: "))" }), r.createVNode(u2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r.createVNode(h2, { label: e2.$t("workflowEditorPublicModel.andOr"), prop: "logicOperator", width: "110" }, { default: r.withCtx((t3) => [r.createVNode(p2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, size: "small", clearable: "", onFocus: (e3) => i2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])])]), _: 1 })) : r.createCommentVNode("", true)])])]), _: 1 }, 8, ["title", "onClose"]);
|
|
1323
|
+
return r.openBlock(), r.createBlock(C2, { "show-close": true, "append-to-body": true, style: { width: "100%" }, title: e2.$t("workflowEditor.condition.combinationCondition"), "model-value": "", onClose: n2.closeButtonSetting }, { default: r.withCtx(() => [r.createElementVNode("div", Ro, [r.createElementVNode("div", Ao, [r.createVNode(a2, { size: "small", type: "primary", onClick: n2.savebuttonSetting }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])]), r.createElementVNode("div", null, [r.createVNode(d2, { class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", Uo, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.personnelScope")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(s2, { modelValue: i2.myUserCondition, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.myUserCondition = e3), "used-in": "transactor" }, null, 8, ["modelValue"])])]), _: 1 }), r.createVNode(d2, { class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", Lo, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.mainTableConditions")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(c2, { modelValue: i2.myParentCondition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.myParentCondition = e3) }, null, 8, ["modelValue"])])]), _: 1 }), "notEmpty" !== o2.buttonType && "add" !== o2.buttonType ? (r.openBlock(), r.createBlock(d2, { key: 0, class: "box-card", shadow: "never" }, { header: r.withCtx(() => [r.createElementVNode("div", null, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.condition.subtableCondition")), 1)])]), default: r.withCtx(() => [r.createElementVNode("div", null, [r.createVNode(m2, { style: { "padding-bottom": "8px" } }, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(g2, { id: "tableDataDialog", ref: "table", data: i2.tableData, border: "", style: { width: "100%" }, "highlight-current-row": "", onCurrentChange: n2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(h2, { prop: "leftBracket", label: "(", width: "90" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, size: "small", clearable: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: "", value: "" }), r.createVNode(u2, { label: "(", value: "(" }), r.createVNode(u2, { label: "((", value: "((" }), r.createVNode(u2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), r.createVNode(h2, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.propName, "onUpdate:modelValue": (t3) => e3.row.propName = t3, "filter-method": n2.searchField, size: "small", clearable: "", filterable: "", onFocus: (t3) => n2.selectRow(e3.row), onChange: (t3) => n2.changeFieldName(e3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.attributeArr, (e4) => (r.openBlock(), r.createBlock(u2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "filter-method", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(h2, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, size: "small", clearable: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.operationArr[e3.$index], (e4) => (r.openBlock(), r.createBlock(u2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), r.createVNode(h2, { label: e2.$t("workflowEditor.common.value") }, { default: r.withCtx((t3) => [t3.row.propValueType ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(p2, { key: 0, modelValue: t3.row.propValueType, "onUpdate:modelValue": (e3) => t3.row.propValueType = e3, size: "small", onFocus: (e3) => n2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.fillInManually"), value: "input" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.environmentVariable"), value: "context" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.requestParameters"), value: "request" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.mainTableField"), value: "obj" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.databaseFields"), value: "subObj" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.taskFields"), value: "task" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.systemParameter"), value: "custom" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])), "context" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 1, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, clearable: "", size: "small", title: t3.row.propValue, filterable: "", "default-first-option": "", "allow-create": "", onChange: (e3) => n2.changePropValue(t3.$index), onFocus: (e3) => n2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTime"), value: "${context.currentTime}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactor"), value: "${context.currentTransactor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorName"), value: "${context.currentTransactorName}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorId"), value: "${context.currentTransactorId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorMainDepartmentId"), value: "${context.currentTransactorMainDepartmentId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorMainDepartment"), value: "${context.currentTransactorMainDepartment}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorRoleId"), value: "${context.currentTransactorRoleId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorRole"), value: "${context.currentTransactorRole}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorWorkGroupId"), value: "${context.currentTransactorWorkGroupId}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTransactorWorkGroup"), value: "${context.currentTransactorWorkGroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : r.createCommentVNode("", true), "task" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 2, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, clearable: "", size: "small", title: t3.row.propValue, filterable: "", "default-first-option": "", "allow-create": "", onChange: (e3) => n2.changePropValue(t3.$index), onFocus: (e3) => n2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentHandler"), value: "${task.transactor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentTaskClient"), value: "${task.trustor}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.currentAssignor"), value: "${task.assigner}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.linkName"), value: "${task.name}" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.condition.linkCode"), value: "${task.nodeId}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange", "onFocus"])) : r.createCommentVNode("", true), "DATE" === t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(f2, { key: 3, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, size: "small", clearable: "", "value-format": "YYYY-MM-DD", title: t3.row.propValue, type: "date", onChange: (e3) => n2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "TIME" === t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(f2, { key: 4, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, size: "small", title: t3.row.propValue, clearable: "", "value-format": "YYYY-MM-DD HH:mm:ss", type: "datetime", onChange: (e3) => n2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "TIME" !== t3.row.dataType && "DATE" !== t3.row.dataType && "input" === t3.row.propValueType ? (r.openBlock(), r.createBlock(w2, { key: 5, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, modelModifiers: { trim: true }, title: t3.row.propValue, clearable: "", size: "small", onChange: (e3) => n2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "request" === t3.row.propValueType ? (r.openBlock(), r.createBlock(w2, { key: 6, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, modelModifiers: { trim: true }, title: t3.row.propValue, clearable: "", size: "small", onChange: (e3) => n2.changePropValue(t3.$index) }, null, 8, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "subObj" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 7, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, "filter-method": n2.searchField, size: "small", clearable: "", filterable: "", onChange: (e3) => n2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.attributeArr, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${subObj." + e3.value + "}", label: e3.label, value: "${subObj." + e3.value + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "filter-method", "onChange"])) : r.createCommentVNode("", true), "obj" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 8, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, size: "small", clearable: "", filterable: "", onChange: (e3) => n2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.parentAttributeArr, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${obj." + e3.value + "}", label: e3.label, value: "${obj." + e3.value + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true), "custom" === t3.row.propValueType ? (r.openBlock(), r.createBlock(p2, { key: 9, modelValue: t3.row.propValue, "onUpdate:modelValue": (e3) => t3.row.propValue = e3, title: t3.row.propValue, size: "small", clearable: "", filterable: "", onChange: (e3) => n2.changePropValue(t3.$index) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.propSettingKeyList, (e3) => (r.openBlock(), r.createBlock(u2, { key: "${custom." + e3 + "}", label: e3, value: "${custom." + e3 + "}" }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(h2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[2] || (t2[2] = (t3) => n2.selectRow(e2.scope.row)) }, { default: r.withCtx((e3) => [r.createVNode(p2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, size: "small", clearable: "" }, { default: r.withCtx(() => [r.createVNode(u2, { label: "", value: "" }), r.createVNode(u2, { label: ")", value: ")" }), r.createVNode(u2, { label: "))", value: "))" }), r.createVNode(u2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r.createVNode(h2, { label: e2.$t("workflowEditorPublicModel.andOr"), prop: "logicOperator", width: "110" }, { default: r.withCtx((t3) => [r.createVNode(p2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, size: "small", clearable: "", onFocus: (e3) => n2.selectRow(t3.row) }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])])]), _: 1 })) : r.createCommentVNode("", true)])])]), _: 1 }, 8, ["title", "onClose"]);
|
|
1325
1324
|
}]]) }, props: { setting: { type: Object, default: null }, tableName: { type: String, default: null } }, data() {
|
|
1326
1325
|
let e2 = [];
|
|
1327
1326
|
this.setting && this.setting.actionArr && (e2 = this.setting.actionArr);
|
|
@@ -1333,7 +1332,7 @@
|
|
|
1333
1332
|
this.subtableConditionMap && this.tableName && (this.subtableConditionItem = this.subtableConditionMap[this.tableName], this.getAttributeArr());
|
|
1334
1333
|
}, mounted() {
|
|
1335
1334
|
this.subtableConditionMap && this.tableName && (this.subtableConditionItem = this.subtableConditionMap[this.tableName], this.subtableConditionMap[this.tableName] && (this.attributeArr = this.subtableConditionItem.attributeArr));
|
|
1336
|
-
}, methods: { ...
|
|
1335
|
+
}, methods: { ...vo, getAttributeArr() {
|
|
1337
1336
|
this.subtableConditionItem && this.subtableConditionItem.attributeArr && (this.queryList = this.subtableConditionItem.attributeArr, this.fieldMap = this.subtableConditionItem.fieldMap, this.fieldNameMap = this.subtableConditionItem.fieldNameMap);
|
|
1338
1337
|
}, savebuttonSetting(e2) {
|
|
1339
1338
|
e2 && (this.currentRow.condition = e2.condition, this.currentRow.userCondition = e2.userCondition, this.currentRow.parentCondition = e2.parentCondition, this.combinationParameters()), this.showAdditionalCondition = false;
|
|
@@ -1390,10 +1389,9 @@
|
|
|
1390
1389
|
}), e2.field = t3;
|
|
1391
1390
|
}
|
|
1392
1391
|
this.$emit("combinationParameters", e2);
|
|
1393
|
-
} } }
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createElementVNode("div", null, [r.createVNode(u2, { modelValue: n2.actionArr, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.actionArr = e3), onChange: i2.changeActionArr }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "notEmpty" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.tableDataNotEmpty")) + " ", 1), n2.actionArr && -1 !== n2.actionArr.indexOf("notEmpty") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[0] || (t2[0] = (e3) => i2.showButtonVisible("notEmpty")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "add" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.rowsCanBeAdded")) + " ", 1), n2.actionArr && -1 !== n2.actionArr.indexOf("add") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[1] || (t2[1] = (e3) => i2.showButtonVisible("add")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "delete" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.deleteLine")) + " ", 1), n2.actionArr && -1 !== n2.actionArr.indexOf("delete") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[2] || (t2[2] = (e3) => i2.showButtonVisible("delete")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "update" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.modifiableHistoricalData")) + " ", 1), n2.actionArr && -1 !== n2.actionArr.indexOf("update") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[3] || (t2[3] = (e3) => i2.showButtonVisible("update")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), n2.showButtonVisibleFlag ? (r.openBlock(), r.createBlock(p2, { key: 0, "attribute-map": n2.subtableConditionItem, "condition-list": n2.buttonVisibleCon.condition, "parent-condition": n2.buttonVisibleCon.parentCondition, "user-condition": n2.buttonVisibleCon.userCondition, "button-type": n2.buttonType, onClose: i2.saveButtonVisible }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "button-type", "onClose"])) : r.createCommentVNode("", true)]), r.createElementVNode("div", null, [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(h2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: i2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(h2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: i2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(k2, { ref: "table", data: n2.fieldArr, border: "", "highlight-current-row": "", style: { width: "100%" }, onSelectionChange: i2.handleSelectionChange, onCurrentChange: i2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(f2, { type: "selection", width: "55", align: "center" }), r.createVNode(f2, { type: "index", width: "50", align: "center" }), r.createVNode(f2, { prop: "name", label: e2.$t("workflowEditor.task.propertyName"), width: "280", align: "center" }, { default: r.withCtx((t3) => [r.createVNode(g2, { modelValue: t3.row.name, "onUpdate:modelValue": (e3) => t3.row.name = e3, size: "small", filterable: "", onChange: i2.combinationParameters }, { default: r.withCtx(() => [r.createVNode(w2, { label: e2.$t("workflowEditor.condition.allFields"), value: "all_fields" }, null, 8, ["label"]), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.attributeArr, (e3) => (r.openBlock(), r.createBlock(w2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(f2, { prop: "constraintRule", label: e2.$t("workflowEditor.task.editingMethod"), width: "380", align: "center" }, { default: r.withCtx((t3) => [r.createVNode(b2, { modelValue: t3.row.constraintRule, "onUpdate:modelValue": (e3) => t3.row.constraintRule = e3, onChange: i2.combinationParameters }, { default: r.withCtx(() => [r.createVNode(C2, { label: "REQUIRED" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r.createVNode(C2, { label: "READ_ONLY" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(f2, { prop: "condition", label: e2.$t("workflowEditor.task.condition"), align: "center" }, { default: r.withCtx((e3) => [r.createVNode(s2, { onClick: (t3) => i2.selectCondition(e3.row) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), n2.showAdditionalCondition ? (r.openBlock(), r.createBlock(p2, { key: 0, "attribute-map": n2.subtableConditionItem, "condition-list": n2.currentRow.condition, "parent-condition": n2.currentRow.parentCondition, "user-condition": n2.currentRow.userCondition, onClose: i2.savebuttonSetting }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "onClose"])) : r.createCommentVNode("", true)])]);
|
|
1392
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1393
|
+
const a2 = r.resolveComponent("Tools"), s2 = r.resolveComponent("el-icon"), d2 = r.resolveComponent("el-checkbox"), c2 = r.resolveComponent("el-col"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("el-checkbox-group"), p2 = r.resolveComponent("selection-conditions"), h2 = r.resolveComponent("el-button"), f2 = r.resolveComponent("el-table-column"), w2 = r.resolveComponent("el-option"), g2 = r.resolveComponent("el-select"), C2 = r.resolveComponent("el-radio"), k2 = r.resolveComponent("el-radio-group"), b2 = r.resolveComponent("el-table");
|
|
1394
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createElementVNode("div", null, [r.createVNode(u2, { modelValue: i2.actionArr, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.actionArr = e3), onChange: n2.changeActionArr }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "notEmpty" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.tableDataNotEmpty")) + " ", 1), i2.actionArr && -1 !== i2.actionArr.indexOf("notEmpty") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[0] || (t2[0] = (e3) => n2.showButtonVisible("notEmpty")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "add" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.rowsCanBeAdded")) + " ", 1), i2.actionArr && -1 !== i2.actionArr.indexOf("add") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[1] || (t2[1] = (e3) => n2.showButtonVisible("add")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "delete" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.deleteLine")) + " ", 1), i2.actionArr && -1 !== i2.actionArr.indexOf("delete") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[2] || (t2[2] = (e3) => n2.showButtonVisible("delete")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 }), r.createVNode(c2, { span: 6 }, { default: r.withCtx(() => [r.createVNode(d2, { label: "update" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.condition.modifiableHistoricalData")) + " ", 1), i2.actionArr && -1 !== i2.actionArr.indexOf("update") ? (r.openBlock(), r.createBlock(s2, { key: 0, onClick: t2[3] || (t2[3] = (e3) => n2.showButtonVisible("update")) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })) : r.createCommentVNode("", true)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), i2.showButtonVisibleFlag ? (r.openBlock(), r.createBlock(p2, { key: 0, "attribute-map": i2.subtableConditionItem, "condition-list": i2.buttonVisibleCon.condition, "parent-condition": i2.buttonVisibleCon.parentCondition, "user-condition": i2.buttonVisibleCon.userCondition, "button-type": i2.buttonType, onClose: n2.saveButtonVisible }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "button-type", "onClose"])) : r.createCommentVNode("", true)]), r.createElementVNode("div", null, [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(h2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(h2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(b2, { ref: "table", data: i2.fieldArr, border: "", "highlight-current-row": "", style: { width: "100%" }, onSelectionChange: n2.handleSelectionChange, onCurrentChange: n2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(f2, { type: "selection", width: "55", align: "center" }), r.createVNode(f2, { type: "index", width: "50", align: "center" }), r.createVNode(f2, { prop: "name", label: e2.$t("workflowEditor.task.propertyName"), width: "280", align: "center" }, { default: r.withCtx((t3) => [r.createVNode(g2, { modelValue: t3.row.name, "onUpdate:modelValue": (e3) => t3.row.name = e3, size: "small", filterable: "", onChange: n2.combinationParameters }, { default: r.withCtx(() => [r.createVNode(w2, { label: e2.$t("workflowEditor.condition.allFields"), value: "all_fields" }, null, 8, ["label"]), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.attributeArr, (e3) => (r.openBlock(), r.createBlock(w2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(f2, { prop: "constraintRule", label: e2.$t("workflowEditor.task.editingMethod"), width: "380", align: "center" }, { default: r.withCtx((t3) => [r.createVNode(k2, { modelValue: t3.row.constraintRule, "onUpdate:modelValue": (e3) => t3.row.constraintRule = e3, onChange: n2.combinationParameters }, { default: r.withCtx(() => [r.createVNode(C2, { label: "REQUIRED" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.mustFill")), 1)]), _: 1 }), r.createVNode(C2, { label: "READ_ONLY" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.readOnly")), 1)]), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(f2, { prop: "condition", label: e2.$t("workflowEditor.task.condition"), align: "center" }, { default: r.withCtx((e3) => [r.createVNode(s2, { onClick: (t3) => n2.selectCondition(e3.row) }, { default: r.withCtx(() => [r.createVNode(a2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onSelectionChange", "onCurrentChange"]), i2.showAdditionalCondition ? (r.openBlock(), r.createBlock(p2, { key: 0, "attribute-map": i2.subtableConditionItem, "condition-list": i2.currentRow.condition, "parent-condition": i2.currentRow.parentCondition, "user-condition": i2.currentRow.userCondition, onClose: n2.savebuttonSetting }, null, 8, ["attribute-map", "condition-list", "parent-condition", "user-condition", "onClose"])) : r.createCommentVNode("", true)])]);
|
|
1397
1395
|
}]]) }, props: { modelValue: { type: [Array, Object], default: null } }, data() {
|
|
1398
1396
|
let e2 = [];
|
|
1399
1397
|
return "" !== this.modelValue && null !== this.modelValue && void 0 !== this.modelValue && (Array.isArray(this.modelValue) ? e2 = this.modelValue : e2.push(this.modelValue)), { selectedFields: e2, selectedFieldMap: {} };
|
|
@@ -1438,7 +1436,7 @@
|
|
|
1438
1436
|
}
|
|
1439
1437
|
}
|
|
1440
1438
|
}, mounted() {
|
|
1441
|
-
}, methods: { ...
|
|
1439
|
+
}, methods: { ...vo, combinationParameters(e2) {
|
|
1442
1440
|
if (e2 && e2.tableName) {
|
|
1443
1441
|
if (this.selectedFields && this.selectedFields.length > 0) {
|
|
1444
1442
|
const t2 = this.selectedFields.findIndex((t3) => t3.tableName === e2.tableName);
|
|
@@ -1467,20 +1465,20 @@
|
|
|
1467
1465
|
null != t2 && -1 !== t2 ? this.selectedFields[t2].permission = true : this.selectedFields[this.selectedFields.length] = { permission: true, tableName: e2 };
|
|
1468
1466
|
}
|
|
1469
1467
|
this.$emit("update:modelValue", this.selectedFields);
|
|
1470
|
-
} } },
|
|
1471
|
-
const Ko =
|
|
1468
|
+
} } }, zo = { style: { width: "100%", "margin-top": "10px" } }, Wo = { class: "clearfix" }, jo = { key: 0 }, Jo = { style: { color: "cornflowerblue" } }, Go = { style: { "padding-left": "5px" } }, qo = { key: 0 };
|
|
1469
|
+
const Ko = D(Ho, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1472
1470
|
const a2 = r.resolveComponent("el-col"), s2 = r.resolveComponent("el-switch"), d2 = r.resolveComponent("el-row"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-button"), u2 = r.resolveComponent("editable-child-field-setting"), p2 = r.resolveComponent("el-card");
|
|
1473
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
1471
|
+
return r.openBlock(), r.createElementBlock("div", zo, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.subtableConditionMap, (t3, o3) => (r.openBlock(), r.createElementBlock("span", { key: o3 }, [r.createVNode(p2, { class: "box-card" }, { default: r.withCtx(() => [r.createElementVNode("div", Wo, [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(a2, { span: 12 }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(o3), 1)]), _: 2 }, 1024), i2.selectedFieldMap[o3] ? (r.openBlock(), r.createBlock(a2, { key: 0, span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.selectedFieldMap[o3].sumPermission, "onUpdate:modelValue": (e3) => i2.selectedFieldMap[o3].sumPermission = e3, "inactive-text": e2.$t("workflowEditor.condition.accessControl"), onChange: (e3) => n2.changeSumPermission(o3) }, null, 8, ["modelValue", "onUpdate:modelValue", "inactive-text", "onChange"])]), _: 2 }, 1024)) : r.createCommentVNode("", true)]), _: 2 }, 1024), r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(a2, null, { default: r.withCtx(() => [i2.selectedFieldMap[o3] && i2.selectedFieldMap[o3].sumPermission ? (r.openBlock(), r.createElementBlock("span", jo, [r.createElementVNode("span", Jo, r.toDisplayString(e2.$t("workflowEditor.condition.formBindingModel")) + ":", 1), r.createElementVNode("span", Go, [r.createVNode(c2, { modelValue: i2.selectedFieldMap[o3].modelName, "onUpdate:modelValue": (e3) => i2.selectedFieldMap[o3].modelName = e3, style: { width: "300px" } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), r.createVNode(m2, { icon: "el-icon-refresh", type: "text", onClick: (e3) => n2.refreshModelName(o3) }, null, 8, ["onClick"])])) : r.createCommentVNode("", true)]), _: 2 }, 1024)]), _: 2 }, 1024)]), i2.selectedFieldMap[o3] && i2.selectedFieldMap[o3].sumPermission ? (r.openBlock(), r.createElementBlock("div", qo, [r.createVNode(u2, { setting: i2.selectedFieldMap[o3], "table-name": o3, onCombinationParameters: n2.combinationParameters }, null, 8, ["setting", "table-name", "onCombinationParameters"])])) : r.createCommentVNode("", true)]), _: 2 }, 1024)]))), 128))]);
|
|
1474
1472
|
}]]);
|
|
1475
|
-
const Xo = { name: "UserSelection", components: { SystemRoleTree:
|
|
1473
|
+
const Xo = { name: "UserSelection", components: { SystemRoleTree: D({ name: "SystemRoleTree", components: { InlineSystemRoleTree: Ht }, props: { multiple: { type: Boolean, default: false } }, data: () => ({ dialogVisible: true }), computed: {}, watch: {}, created() {
|
|
1476
1474
|
}, methods: { roleResult(e2) {
|
|
1477
1475
|
e2 ? this.$emit("close", e2) : this.$emit("close");
|
|
1478
1476
|
}, selectRoles() {
|
|
1479
1477
|
this.$refs.systemRoleTree.selectRole();
|
|
1480
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
1478
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1481
1479
|
const a2 = r.resolveComponent("inline-system-role-tree"), s2 = r.resolveComponent("el-button"), d2 = r.resolveComponent("el-dialog");
|
|
1482
|
-
return r.openBlock(), r.createBlock(d2, { "model-value": "", title: e2.$t("workflowEditorMessage.selectRole"), width: "30%", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", "close-on-click-modal": false, onClose: t2[1] || (t2[1] = (t3) => e2.$emit("close")) }, r.createSlots({ default: r.withCtx(() => [r.createVNode(a2, { ref: "systemRoleTree", multiple: o2.multiple, onResult:
|
|
1483
|
-
}]]), FormFields:
|
|
1480
|
+
return r.openBlock(), r.createBlock(d2, { "model-value": "", title: e2.$t("workflowEditorMessage.selectRole"), width: "30%", top: "10vh", "append-to-body": "", class: "properties-editor-noTab", "close-on-click-modal": false, onClose: t2[1] || (t2[1] = (t3) => e2.$emit("close")) }, r.createSlots({ default: r.withCtx(() => [r.createVNode(a2, { ref: "systemRoleTree", multiple: o2.multiple, onResult: n2.roleResult }, null, 8, ["multiple", "onResult"])]), _: 2 }, [o2.multiple ? { name: "footer", fn: r.withCtx(() => [r.createVNode(s2, { type: "primary", size: "small", onClick: n2.selectRoles }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.determine")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(s2, { size: "small", onClick: t2[0] || (t2[0] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), key: "0" } : void 0]), 1032, ["title"]);
|
|
1481
|
+
}]]), FormFields: mt }, props: { label: { type: String, default: "" }, labelWidth: { type: String, default: null }, modelValue: { type: String, default: "" }, currentTransactor: { type: Boolean, default: false } }, data() {
|
|
1484
1482
|
let e2 = false, t2 = "";
|
|
1485
1483
|
const o2 = this.modelValue.split("; "), l2 = o2[0].split(" condition.operator.or ");
|
|
1486
1484
|
return 2 === o2.length && (e2 = true, t2 = o2[1].split(" condition.operator.or "), l2.push("assignUser")), { checkList: l2, showUserList: e2, selectedUsers: t2, showSelectUser: false, selectedUsersShowValue: null, showSelectDepartment: false, showSelectWorkgroup: false, showSelectRole: false, showSelectField: false };
|
|
@@ -1490,7 +1488,7 @@
|
|
|
1490
1488
|
this.$emit("update:modelValue", this.getValue());
|
|
1491
1489
|
} }, created() {
|
|
1492
1490
|
this.checkList, this.getSelectedUsersShowValue();
|
|
1493
|
-
}, methods: { formatLabel: (e2) =>
|
|
1491
|
+
}, methods: { formatLabel: (e2) => ut(e2), getValue() {
|
|
1494
1492
|
let e2 = this.checkList.filter((e3) => "" !== e3 && "assignUser" !== e3).join(" condition.operator.or ");
|
|
1495
1493
|
return this.showUserList && this.selectedUsers && 0 !== this.selectedUsers.length && (e2 = e2 + "; " + this.selectedUsers.join(" condition.operator.or ")), e2;
|
|
1496
1494
|
}, toggleUserList() {
|
|
@@ -1584,12 +1582,12 @@
|
|
|
1584
1582
|
}, setField(e2) {
|
|
1585
1583
|
void 0 !== e2 && (this.packageSelectedFieldConditions(e2, "${user}"), this.getSelectedUsersShowValue()), this.showSelectField = false;
|
|
1586
1584
|
} } }, Yo = { key: 0, style: { width: "100%", "vertical-align": "middle" } }, Qo = { class: "el-dropdown-link" }, Zo = r.createElementVNode("i", { class: "fa fa-search" }, null, -1);
|
|
1587
|
-
const el =
|
|
1588
|
-
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-checkbox-group"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-dropdown-item"), m2 = r.resolveComponent("el-dropdown-menu"), u2 = r.resolveComponent("el-dropdown"), p2 = r.resolveComponent("el-button"), h2 = r.resolveComponent("el-row"), f2 = r.resolveComponent("el-input"), w2 = r.resolveComponent("department-user-tree"), g2 = r.resolveComponent("department-tree"), C2 = r.resolveComponent("workgroup-tree"),
|
|
1589
|
-
return r.openBlock(), r.createBlock(V2, { label: o2.label, "label-width": o2.labelWidth }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { modelValue:
|
|
1585
|
+
const el = D(Xo, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1586
|
+
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-checkbox-group"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-dropdown-item"), m2 = r.resolveComponent("el-dropdown-menu"), u2 = r.resolveComponent("el-dropdown"), p2 = r.resolveComponent("el-button"), h2 = r.resolveComponent("el-row"), f2 = r.resolveComponent("el-input"), w2 = r.resolveComponent("department-user-tree"), g2 = r.resolveComponent("department-tree"), C2 = r.resolveComponent("workgroup-tree"), k2 = r.resolveComponent("system-role-tree"), b2 = r.resolveComponent("form-fields"), V2 = r.resolveComponent("el-form-item");
|
|
1587
|
+
return r.openBlock(), r.createBlock(V2, { label: o2.label, "label-width": o2.labelWidth }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.checkList, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.checkList = e3) }, { default: r.withCtx(() => [r.createVNode(a2, { label: "${instanceCreator}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.processInitiator")), 1)]), _: 1 }), r.createVNode(a2, { label: "${processAdmin}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.processAdministrator")), 1)]), _: 1 }), o2.currentTransactor ? (r.openBlock(), r.createBlock(a2, { key: 0, label: "${currentTransactor}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.currentHandler")), 1)]), _: 1 })) : (r.openBlock(), r.createBlock(a2, { key: 1, label: "${allHandleTransactors}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.allHandlingPersonnel")), 1)]), _: 1 })), r.createVNode(a2, { label: "assignUser", onChange: n2.toggleUserList }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.designatedPersonnel")), 1)]), _: 1 }, 8, ["onChange"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i2.showUserList ? (r.openBlock(), r.createElementBlock("div", Yo, [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(h2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 4 }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.listOfDesignatedPersons")), 1)]), _: 1 }), r.createVNode(d2, { style: { display: "flex", "justify-content": "center", "align-items": "center" }, span: 5 }, { default: r.withCtx(() => [r.createVNode(u2, { size: "small", "split-button": "", type: "primary", plain: "", onCommand: n2.handleCommand }, { dropdown: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(c2, { command: "selectUser", onClick: t2[1] || (t2[1] = (e3) => n2.selectPointUser()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectusers")), 1)]), _: 1 }), r.createVNode(c2, { command: "selectDepartment", onClick: t2[2] || (t2[2] = (e3) => n2.selectPointDepartment()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectDepartment")), 1)]), _: 1 }), r.createVNode(c2, { command: "selectWorkgroup", onClick: t2[3] || (t2[3] = (e3) => n2.selectPointWorkgroup()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectTeam")), 1)]), _: 1 }), r.createVNode(c2, { command: "selectRole", onClick: t2[4] || (t2[4] = (e3) => n2.selectPointRole()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectRole")), 1)]), _: 1 }), r.createVNode(c2, { command: "selectField", onClick: t2[5] || (t2[5] = (e3) => n2.selectPointField()) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.common.selectField")), 1)]), _: 1 })]), _: 1 })]), default: r.withCtx(() => [r.createElementVNode("span", Qo, [Zo, r.createTextVNode(" " + r.toDisplayString(e2.$t("workflowEditorPublicModel.choice")), 1)])]), _: 1 }, 8, ["onCommand"])]), _: 1 }), r.createVNode(d2, { span: 3 }, { default: r.withCtx(() => [r.createVNode(p2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.resetSelectedUsers }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.empty")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 })]), _: 1 }), r.createVNode(h2, null, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: i2.selectedUsersShowValue, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.selectedUsersShowValue = e3), type: "textarea", rows: 2, placeholder: e2.$t("workflowEditorMessage.pleaseSelectPersonnel") }, null, 8, ["modelValue", "placeholder"])]), _: 1 })]), _: 1 })]), _: 1 }), i2.showSelectUser ? (r.openBlock(), r.createBlock(w2, { key: 0, width: "60%", multiple: true, onClose: n2.addPointUsers }, null, 8, ["onClose"])) : r.createCommentVNode("", true), i2.showSelectDepartment ? (r.openBlock(), r.createBlock(g2, { key: 1, width: "30%", multiple: true, onClose: n2.addPointDepartments }, null, 8, ["onClose"])) : r.createCommentVNode("", true), i2.showSelectWorkgroup ? (r.openBlock(), r.createBlock(C2, { key: 2, width: "30%", multiple: true, onClose: n2.addPointWorkgroups }, null, 8, ["onClose"])) : r.createCommentVNode("", true), i2.showSelectRole ? (r.openBlock(), r.createBlock(k2, { key: 3, multiple: true, onClose: n2.addPointRoles }, null, 8, ["onClose"])) : r.createCommentVNode("", true), i2.showSelectField ? (r.openBlock(), r.createBlock(b2, { key: 4, onClose: n2.setField }, null, 8, ["onClose"])) : r.createCommentVNode("", true)])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label", "label-width"]);
|
|
1590
1588
|
}]]);
|
|
1591
|
-
const tl =
|
|
1592
|
-
const e2 =
|
|
1589
|
+
const tl = D({ name: "PermissionSettings", components: { EditableFields: yo, UserSelection: el, AdditionalCondition: Jt, editableChildFields: Ko }, props: { modelValue: { type: Object, default: null } }, data() {
|
|
1590
|
+
const e2 = N(this.modelValue), t2 = ["viewOpinion", "editOpinion", "requireOpinion", "viewMeetingResult", "viewVoteResult", "viewFlowHistory", "printForm"];
|
|
1593
1591
|
t2.forEach((t3) => {
|
|
1594
1592
|
e2[t3 + "Checkbox"] = !!this.modelValue[t3].condition;
|
|
1595
1593
|
});
|
|
@@ -1606,10 +1604,10 @@
|
|
|
1606
1604
|
t2.attachment[o2] || (t2.attachment[o2] = {}), t2.attachment[o2].permission = e2.attachment[o2].permission, e2.attachment[o2].permission && e2.attachment[o2 + "Checkbox"] ? t2.attachment[o2].condition = e2.attachment[o2].condition : t2.attachment[o2].condition = "";
|
|
1607
1605
|
}), this.$emit("update:modelValue", t2);
|
|
1608
1606
|
}, { deep: true });
|
|
1609
|
-
}, methods: {} }, [["render", function(e2, t2, o2, l2,
|
|
1607
|
+
}, methods: {} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1610
1608
|
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("editable-fields"), c2 = r.resolveComponent("editable-child-fields"), m2 = r.resolveComponent("el-checkbox"), u2 = r.resolveComponent("additional-condition"), p2 = r.resolveComponent("user-selection"), h2 = r.resolveComponent("el-card"), f2 = r.resolveComponent("el-form");
|
|
1611
|
-
return r.openBlock(), r.createBlock(f2, { model: n2.formModel }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowEditingForms") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.editForm.permission, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.editForm.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [n2.formModel.editForm.permission ? (r.openBlock(), r.createBlock(d2, { key: 0, modelValue: n2.formModel.editForm.field, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n2.formModel.editForm.field = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.editForm.permission ? (r.openBlock(), r.createBlock(c2, { key: 1, modelValue: n2.formModel.editForm.subTablePermission, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.formModel.editForm.subTablePermission = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 512), [[r.vShow, n2.formModel.editForm.permission]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowViews") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewOpinion.permission, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.formModel.viewOpinion.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.viewOpinionCheckbox, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.formModel.viewOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.viewOpinion.condition, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.formModel.viewOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.viewOpinion.permission && n2.formModel.viewOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.commentsAllowed") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.editOpinion.permission, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => n2.formModel.editOpinion.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.editOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.editOpinionCheckbox, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => n2.formModel.editOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.editOpinion.condition, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => n2.formModel.editOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.editOpinion.permission && n2.formModel.editOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.commentsAreRequired") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.requireOpinion.permission, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => n2.formModel.requireOpinion.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.requireOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.requireOpinionCheckbox, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => n2.formModel.requireOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.requireOpinion.condition, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => n2.formModel.requireOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.requireOpinion.permission && n2.formModel.requireOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewCountersignatureResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewMeetingResult.permission, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => n2.formModel.viewMeetingResult.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewMeetingResult.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.viewMeetingResultCheckbox, "onUpdate:modelValue": t2[13] || (t2[13] = (e3) => n2.formModel.viewMeetingResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.viewMeetingResult.condition, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => n2.formModel.viewMeetingResult.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.viewMeetingResult.permission && n2.formModel.viewMeetingResultCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewVotingResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewVoteResult.permission, "onUpdate:modelValue": t2[15] || (t2[15] = (e3) => n2.formModel.viewVoteResult.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewVoteResult.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.viewVoteResultCheckbox, "onUpdate:modelValue": t2[16] || (t2[16] = (e3) => n2.formModel.viewVoteResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.viewVoteResult.condition, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => n2.formModel.viewVoteResult.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.viewVoteResult.permission && n2.formModel.viewVoteResultCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewFlowHistory") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.viewFlowHistory.permission, "onUpdate:modelValue": t2[18] || (t2[18] = (e3) => n2.formModel.viewFlowHistory.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.viewFlowHistory.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.viewFlowHistoryCheckbox, "onUpdate:modelValue": t2[19] || (t2[19] = (e3) => n2.formModel.viewFlowHistoryCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.viewFlowHistory.condition, "onUpdate:modelValue": t2[20] || (t2[20] = (e3) => n2.formModel.viewFlowHistory.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.viewFlowHistory.permission && n2.formModel.viewFlowHistoryCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowFormsToPrint") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.printForm.permission, "onUpdate:modelValue": t2[21] || (t2[21] = (e3) => n2.formModel.printForm.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.printForm.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.printFormCheckbox, "onUpdate:modelValue": t2[22] || (t2[22] = (e3) => n2.formModel.printFormCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.formModel.printForm.condition, "onUpdate:modelValue": t2[23] || (t2[23] = (e3) => n2.formModel.printForm.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, n2.formModel.printForm.permission && n2.formModel.printFormCheckbox]]), r.createVNode(p2, { modelValue: n2.formModel.deleteInstance.userCondition, "onUpdate:modelValue": t2[24] || (t2[24] = (e3) => n2.formModel.deleteInstance.userCondition = e3), label: e2.$t("workflowEditor.task.deletePermission"), "label-width": "100px", "current-transactor": true }, null, 8, ["modelValue", "label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.attachmentAuthority") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.permission, "onUpdate:modelValue": t2[25] || (t2[25] = (e3) => n2.formModel.attachment.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), n2.formModel.attachment.permission ? (r.openBlock(), r.createBlock(h2, { key: 0, class: "box-card" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.addAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.add.permission, "onUpdate:modelValue": t2[26] || (t2[26] = (e3) => n2.formModel.attachment.add.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.attachment.add.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.attachment.addCheckbox, "onUpdate:modelValue": t2[27] || (t2[27] = (e3) => n2.formModel.attachment.addCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.attachment.add.permission && n2.formModel.attachment.addCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: n2.formModel.attachment.add.condition, "onUpdate:modelValue": t2[28] || (t2[28] = (e3) => n2.formModel.attachment.add.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.deleteAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.delete.permission, "onUpdate:modelValue": t2[29] || (t2[29] = (e3) => n2.formModel.attachment.delete.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.attachment.delete.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.attachment.deleteCheckbox, "onUpdate:modelValue": t2[30] || (t2[30] = (e3) => n2.formModel.attachment.deleteCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.attachment.delete.permission && n2.formModel.attachment.deleteCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: n2.formModel.attachment.delete.condition, "onUpdate:modelValue": t2[31] || (t2[31] = (e3) => n2.formModel.attachment.delete.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.downloadAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attachment.download.permission, "onUpdate:modelValue": t2[32] || (t2[32] = (e3) => n2.formModel.attachment.download.permission = e3) }, null, 8, ["modelValue"]), n2.formModel.attachment.download.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: n2.formModel.attachment.downloadCheckbox, "onUpdate:modelValue": t2[33] || (t2[33] = (e3) => n2.formModel.attachment.downloadCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), n2.formModel.attachment.download.permission && n2.formModel.attachment.downloadCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: n2.formModel.attachment.download.condition, "onUpdate:modelValue": t2[34] || (t2[34] = (e3) => n2.formModel.attachment.download.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.bodyPermission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.officialText.permission, "onUpdate:modelValue": t2[35] || (t2[35] = (e3) => n2.formModel.officialText.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1612
|
-
}], ["__scopeId", "data-v-c019538f"]]), ol = { name: "TransactorSettings", components: { CommonUserCondition:
|
|
1609
|
+
return r.openBlock(), r.createBlock(f2, { model: i2.formModel }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowEditingForms") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.editForm.permission, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.editForm.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [i2.formModel.editForm.permission ? (r.openBlock(), r.createBlock(d2, { key: 0, modelValue: i2.formModel.editForm.field, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.editForm.field = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.editForm.permission ? (r.openBlock(), r.createBlock(c2, { key: 1, modelValue: i2.formModel.editForm.subTablePermission, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.formModel.editForm.subTablePermission = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 512), [[r.vShow, i2.formModel.editForm.permission]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowViews") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.viewOpinion.permission, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.formModel.viewOpinion.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.viewOpinionCheckbox, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.formModel.viewOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.formModel.viewOpinion.condition, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.formModel.viewOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, i2.formModel.viewOpinion.permission && i2.formModel.viewOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.commentsAllowed") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.editOpinion.permission, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.formModel.editOpinion.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.editOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.editOpinionCheckbox, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.formModel.editOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.formModel.editOpinion.condition, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => i2.formModel.editOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, i2.formModel.editOpinion.permission && i2.formModel.editOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.commentsAreRequired") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.requireOpinion.permission, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => i2.formModel.requireOpinion.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.requireOpinion.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.requireOpinionCheckbox, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => i2.formModel.requireOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.formModel.requireOpinion.condition, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => i2.formModel.requireOpinion.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, i2.formModel.requireOpinion.permission && i2.formModel.requireOpinionCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewCountersignatureResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.viewMeetingResult.permission, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => i2.formModel.viewMeetingResult.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewMeetingResult.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.viewMeetingResultCheckbox, "onUpdate:modelValue": t2[13] || (t2[13] = (e3) => i2.formModel.viewMeetingResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.formModel.viewMeetingResult.condition, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => i2.formModel.viewMeetingResult.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, i2.formModel.viewMeetingResult.permission && i2.formModel.viewMeetingResultCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewVotingResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.viewVoteResult.permission, "onUpdate:modelValue": t2[15] || (t2[15] = (e3) => i2.formModel.viewVoteResult.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewVoteResult.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.viewVoteResultCheckbox, "onUpdate:modelValue": t2[16] || (t2[16] = (e3) => i2.formModel.viewVoteResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.formModel.viewVoteResult.condition, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => i2.formModel.viewVoteResult.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, i2.formModel.viewVoteResult.permission && i2.formModel.viewVoteResultCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowToViewFlowHistory") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.viewFlowHistory.permission, "onUpdate:modelValue": t2[18] || (t2[18] = (e3) => i2.formModel.viewFlowHistory.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewFlowHistory.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.viewFlowHistoryCheckbox, "onUpdate:modelValue": t2[19] || (t2[19] = (e3) => i2.formModel.viewFlowHistoryCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.formModel.viewFlowHistory.condition, "onUpdate:modelValue": t2[20] || (t2[20] = (e3) => i2.formModel.viewFlowHistory.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, i2.formModel.viewFlowHistory.permission && i2.formModel.viewFlowHistoryCheckbox]]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.allowFormsToPrint") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.printForm.permission, "onUpdate:modelValue": t2[21] || (t2[21] = (e3) => i2.formModel.printForm.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.printForm.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.printFormCheckbox, "onUpdate:modelValue": t2[22] || (t2[22] = (e3) => i2.formModel.printFormCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.formModel.printForm.condition, "onUpdate:modelValue": t2[23] || (t2[23] = (e3) => i2.formModel.printForm.condition = e3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[r.vShow, i2.formModel.printForm.permission && i2.formModel.printFormCheckbox]]), r.createVNode(p2, { modelValue: i2.formModel.deleteInstance.userCondition, "onUpdate:modelValue": t2[24] || (t2[24] = (e3) => i2.formModel.deleteInstance.userCondition = e3), label: e2.$t("workflowEditor.task.deletePermission"), "label-width": "100px", "current-transactor": true }, null, 8, ["modelValue", "label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.attachmentAuthority") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attachment.permission, "onUpdate:modelValue": t2[25] || (t2[25] = (e3) => i2.formModel.attachment.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i2.formModel.attachment.permission ? (r.openBlock(), r.createBlock(h2, { key: 0, class: "box-card" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.addAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attachment.add.permission, "onUpdate:modelValue": t2[26] || (t2[26] = (e3) => i2.formModel.attachment.add.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.attachment.add.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.attachment.addCheckbox, "onUpdate:modelValue": t2[27] || (t2[27] = (e3) => i2.formModel.attachment.addCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.attachment.add.permission && i2.formModel.attachment.addCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: i2.formModel.attachment.add.condition, "onUpdate:modelValue": t2[28] || (t2[28] = (e3) => i2.formModel.attachment.add.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.deleteAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attachment.delete.permission, "onUpdate:modelValue": t2[29] || (t2[29] = (e3) => i2.formModel.attachment.delete.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.attachment.delete.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.attachment.deleteCheckbox, "onUpdate:modelValue": t2[30] || (t2[30] = (e3) => i2.formModel.attachment.deleteCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.attachment.delete.permission && i2.formModel.attachment.deleteCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: i2.formModel.attachment.delete.condition, "onUpdate:modelValue": t2[31] || (t2[31] = (e3) => i2.formModel.attachment.delete.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.downloadAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attachment.download.permission, "onUpdate:modelValue": t2[32] || (t2[32] = (e3) => i2.formModel.attachment.download.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.attachment.download.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, modelValue: i2.formModel.attachment.downloadCheckbox, "onUpdate:modelValue": t2[33] || (t2[33] = (e3) => i2.formModel.attachment.downloadCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.attachment.download.permission && i2.formModel.attachment.downloadCheckbox ? (r.openBlock(), r.createBlock(u2, { key: 1, modelValue: i2.formModel.attachment.download.condition, "onUpdate:modelValue": t2[34] || (t2[34] = (e3) => i2.formModel.attachment.download.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.bodyPermission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.officialText.permission, "onUpdate:modelValue": t2[35] || (t2[35] = (e3) => i2.formModel.officialText.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1610
|
+
}], ["__scopeId", "data-v-c019538f"]]), ol = { name: "TransactorSettings", components: { CommonUserCondition: Io, FormFields: mt }, props: { model: { type: Object, default: null }, usedIn: { type: String, default: "HumanTask" }, isSubprocess: { type: Boolean, default: false }, basicProperties: { type: Object, default: null } }, data() {
|
|
1613
1611
|
const e2 = { selectedField: "" };
|
|
1614
1612
|
return this.initFormModel(e2), { showFormFields: false, formModel: e2, isCountersign: false };
|
|
1615
1613
|
}, mounted() {
|
|
@@ -1620,7 +1618,7 @@
|
|
|
1620
1618
|
}, { deep: true }), this.$watch("basicProperties", function() {
|
|
1621
1619
|
this.showActivateOneVoteVeto();
|
|
1622
1620
|
}, { deep: true }), this.showActivateOneVoteVeto();
|
|
1623
|
-
}, methods: { formatLabel: (e2) =>
|
|
1621
|
+
}, methods: { formatLabel: (e2) => ut(e2), initFormModel(e2) {
|
|
1624
1622
|
e2.userCondition = "";
|
|
1625
1623
|
const t2 = this.model.userCondition;
|
|
1626
1624
|
void 0 === t2 || "" === t2 || null === t2 ? (e2.transactor = "${instanceCreator}", this.model.userCondition = "${instanceCreator}") : "${instanceCreator}" === t2 || "${previousTransactorAssignment}" === t2 ? e2.transactor = t2 : t2.startsWith("${field[") && t2.indexOf("${field[") >= 0 && t2.indexOf('"selectedField": "${field[') < 2 ? (e2.transactor = "byField", e2.selectedField = t2) : t2.startsWith("${deptField[") ? (e2.transactor = "byDeptField", e2.selectedField = t2) : (e2.transactor = "byCondition", e2.userCondition = t2), this.initAdditionalCondition(e2), void 0 !== this.model.url ? e2.url = this.model.url : e2.url = "";
|
|
@@ -1639,12 +1637,12 @@
|
|
|
1639
1637
|
this.basicProperties && this.basicProperties.processingMode && ("COUNTERSIGN" === this.basicProperties.processingMode.type ? this.isCountersign = true : (this.isCountersign = false, this.formModel.additionalCondition.activateOneVoteVeto = false));
|
|
1640
1638
|
}, transactorChange() {
|
|
1641
1639
|
this.formModel.selectedField = null;
|
|
1642
|
-
} } }, ll = { key: 0, style: { width: "100%" } }, rl = { key: 1 },
|
|
1643
|
-
const
|
|
1640
|
+
} } }, ll = { key: 0, style: { width: "100%" } }, rl = { key: 1 }, il = { key: 0 };
|
|
1641
|
+
const nl = D(ol, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1644
1642
|
const a2 = r.resolveComponent("el-radio"), s2 = r.resolveComponent("el-radio-group"), d2 = r.resolveComponent("common-user-condition"), c2 = r.resolveComponent("el-form-item"), m2 = r.resolveComponent("el-input"), u2 = r.resolveComponent("form-fields"), p2 = r.resolveComponent("el-checkbox"), h2 = r.resolveComponent("el-form");
|
|
1645
|
-
return r.openBlock(), r.createBlock(h2, { model:
|
|
1646
|
-
}]]), al = { "${currentTime}":
|
|
1647
|
-
const sl =
|
|
1643
|
+
return r.openBlock(), r.createBlock(h2, { model: i2.formModel }, { default: r.withCtx(() => [r.createVNode(c2, { label: "" }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.formModel.transactor, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.transactor = e3), onChange: n2.transactorChange }, { default: r.withCtx(() => [r.createVNode(a2, { label: "${instanceCreator}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.processInitiator")), 1)]), _: 1 }), "HumanTask" === o2.usedIn ? (r.openBlock(), r.createBlock(a2, { key: 0, label: "${previousTransactorAssignment}" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.appointmentOfHandlerInThePreviousLink")), 1)]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(a2, { label: "byField" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.personSpecifiedInFormField")), 1)]), _: 1 }), r.createVNode(a2, { label: "byDeptField" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.deptSpecifiedInFormField")), 1)]), _: 1 }), r.createVNode(a2, { label: "byCondition" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.filterByCriteria")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue", "onChange"]), "byCondition" === i2.formModel.transactor ? (r.openBlock(), r.createElementBlock("div", ll, [r.createVNode(d2, { modelValue: i2.formModel.userCondition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.userCondition = e3), "used-in": "transactor" }, null, 8, ["modelValue"])])) : r.createCommentVNode("", true)]), _: 1 }), "byField" === i2.formModel.transactor || "byDeptField" === i2.formModel.transactor ? (r.openBlock(), r.createBlock(c2, { key: 0, prop: "selectedField", rules: [{ required: true, message: e2.$t("workflowEditor.process.fieldName") + e2.$t("workflowEditor.common.canNotBeEmpty"), trigger: "focus" }], label: e2.$t("workflowEditor.process.fieldName"), "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(m2, { value: n2.formatLabel(i2.formModel.selectedField), onClick: t2[2] || (t2[2] = (e3) => i2.showFormFields = true) }, null, 8, ["value"]), i2.showFormFields ? (r.openBlock(), r.createBlock(u2, { key: 0, onClose: n2.setField }, null, 8, ["onClose"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["rules", "label"])) : r.createCommentVNode("", true), "byCondition" === i2.formModel.transactor || "byField" === i2.formModel.transactor || "byDeptField" === i2.formModel.transactor ? (r.openBlock(), r.createElementBlock("div", rl, [r.createVNode(c2, { label: e2.$t("workflowEditor.process.additionalConditions") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: i2.formModel.additionalCondition.onlyInCreatorDepartment, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.formModel.additionalCondition.onlyInCreatorDepartment = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.handlingYyThePersonnelOfTheDepartmentOfTheInitiator")), 1)]), _: 1 }, 8, ["modelValue"]), r.createVNode(p2, { modelValue: i2.formModel.additionalCondition.withCreatorDepartment, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.formModel.additionalCondition.withCreatorDepartment = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling")), 1)]), _: 1 }, 8, ["modelValue"]), r.createVNode(p2, { modelValue: i2.formModel.additionalCondition.selectOneFromMultiple, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.formModel.additionalCondition.selectOneFromMultiple = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.selectSpecificHandler")), 1)]), _: 1 }, 8, ["modelValue"]), r.createVNode(p2, { modelValue: i2.formModel.additionalCondition.selectOneFromDept, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.formModel.additionalCondition.selectOneFromDept = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.selectOneFromDept")), 1)]), _: 1 }, 8, ["modelValue"]), o2.isSubprocess ? (r.openBlock(), r.createBlock(p2, { key: 0, modelValue: i2.formModel.additionalCondition.generateOneInstanceFromDept, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.formModel.additionalCondition.generateOneInstanceFromDept = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.generateOneInstanceFromDept")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.isCountersign ? (r.openBlock(), r.createBlock(p2, { key: 1, modelValue: i2.formModel.additionalCondition.activateOneVoteVeto, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => i2.formModel.additionalCondition.activateOneVoteVeto = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.activateOneVoteVeto")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), i2.formModel.additionalCondition.selectOneFromMultiple ? (r.openBlock(), r.createElementBlock("div", il, [r.createVNode(c2, { label: e2.$t("workflowEditor.process.selectionMethod") }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.formModel.additionalCondition.selectType, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => i2.formModel.additionalCondition.selectType = e3) }, { default: r.withCtx(() => [r.createVNode(a2, { label: "customType" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.manualSelection")), 1)]), _: 1 }), r.createVNode(a2, { label: "autoType" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.autoSelect")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.withDirectives(r.createVNode(c2, { prop: "additionalCondition.selectUrl", label: e2.$t("workflowEditor.process.callbackURL"), rules: [{ required: true, message: this.$t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }] }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: i2.formModel.additionalCondition.selectUrl, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => i2.formModel.additionalCondition.selectUrl = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"]), [[r.vShow, "autoType" === i2.formModel.additionalCondition.selectType]])])) : r.createCommentVNode("", true)])) : r.createCommentVNode("", true), "HumanTask" === o2.usedIn && "${previousTransactorAssignment}" === i2.formModel.transactor ? (r.openBlock(), r.createBlock(c2, { key: 2, prop: "url", rules: [{ required: true, message: this.$t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }], label: e2.$t("workflowEditor.process.selectURL"), "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: i2.formModel.url, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => i2.formModel.url = e3), modelModifiers: { trim: true }, onChange: n2.handleUrlChange }, null, 8, ["modelValue", "onChange"])]), _: 1 }, 8, ["rules", "label"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
1644
|
+
}]]), al = { "${currentTime}": f().t("workflowEditor.process.handlingTimeOfThisLink"), "${currentTransactorId}": f().t("workflowEditor.process.handlerIDOfThisLink"), "${currentTransactorMainDepartmentId}": f().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"), "${currentTransactorDirectSuperiorId}": f().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorMainDepartmentId}": f().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"), "${currentTransactor}": f().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"), "${currentTransactorName }": f().t("workflowEditor.process.NameOfCurrentHandler"), "${currentTransactorDepartment }": f().t("workflowEditor.process.CurrentHandlerDepartment"), "${currentTransactorDepartmentId}": f().t("workflowEditor.process.CurrentHandlerDepartmentID"), "${currentTransactorMainDepartment}": f().t("workflowEditor.process.CurrentManagersPrincipalDepartment"), "${currentTransactorSuperiorDepartmentId}": f().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"), "${currentTransactorSuperiorDepartment}": f().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"), "${currentTransactorUpstageDepartment}": f().t("workflowEditor.process.TopDepartmentOfCurrentHandler"), "${currentTransactorUpstageDepartmentId}": f().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"), "${currentTransactorRole}": f().t("workflowEditor.process.CurrentHandlerRole"), "${currentTransactorRoleId}": f().t("workflowEditor.process.CurrentHandlerRoleID"), "${currentTransactorWorkGroup}": f().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorWorkGroupId}": f().t("workflowEditor.process.CurrentHandlerWorkingGroupID"), "${currentTransactorDirectSuperior}": f().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorName}": f().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": f().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorDepartmentId}": f().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"), "${currentTransactorDirectSuperiorMainDepartment}": f().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorRole}": f().t("workflowEditor.process.currentManagersDirectSuperiorRole"), "${currentTransactorDirectSuperiorRoleId}": f().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"), "${currentTransactorDirectSuperiorWorkGroup}": f().t("workflowEditor.process.currentManagersDirectSuperiorWork"), "${currentTransactorDirectSuperiorWorkGroupId}": f().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"), "${currentOperation}": f().t("workflowEditor.process.operationsPerformedInThisPhase"), "${previousTransactorId}": f().t("workflowEditor.process.handlerIDOfThePreviousLink"), "${previousTransactor}": f().t("workflowEditor.process.lastLinkHandlerLogin"), "${previousTransactorName}": f().t("workflowEditor.process.nameOfHandlerInThePreviousLink") };
|
|
1645
|
+
const sl = D({ name: "AutoFilledFields", components: { FormFields: mt }, props: { modelValue: { type: Object, default: () => ({}) }, opinionSetting: { type: Object, default: () => ({}) } }, data() {
|
|
1648
1646
|
const e2 = [];
|
|
1649
1647
|
if (void 0 !== this.modelValue.field && null !== this.modelValue.field)
|
|
1650
1648
|
if (Array.isArray(this.modelValue.field))
|
|
@@ -1700,15 +1698,15 @@
|
|
|
1700
1698
|
0 === e2.length && this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"));
|
|
1701
1699
|
}, setField(e2) {
|
|
1702
1700
|
this.isSelectOpinionField ? this.opinionAutoSetting.opinionSourceField = e2 : void 0 !== e2 && (this.currentRow.name = e2), this.showFormFields = false, this.isSelectOpinionField = false;
|
|
1703
|
-
}, getFieldLabel: (e2) =>
|
|
1701
|
+
}, getFieldLabel: (e2) => ut(e2), selectOpinionField() {
|
|
1704
1702
|
this.showFormFields = true, this.isSelectOpinionField = true;
|
|
1705
1703
|
}, clearOpinionField() {
|
|
1706
1704
|
delete this.opinionAutoSetting.opinionSourceField;
|
|
1707
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
1705
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1708
1706
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-option"), u2 = r.resolveComponent("el-select"), p2 = r.resolveComponent("el-table"), h2 = r.resolveComponent("el-card"), f2 = r.resolveComponent("el-form-item"), w2 = r.resolveComponent("form-fields");
|
|
1709
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(h2, { class: "box-card" }, { header: r.withCtx(() => [r.createTextVNode(" 表单自动填充字段设置 ")]), default: r.withCtx(() => [r.createVNode(s2, { style: { "margin-bottom": "5px" } }, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick:
|
|
1707
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(h2, { class: "box-card" }, { header: r.withCtx(() => [r.createTextVNode(" 表单自动填充字段设置 ")]), default: r.withCtx(() => [r.createVNode(s2, { style: { "margin-bottom": "5px" } }, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(p2, { ref: "table", data: i2.tableData, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: n2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "name", label: e2.$t("workflowEditor.common.name"), width: "150" }, { default: r.withCtx((o3) => [r.createVNode(c2, { value: n2.getFieldLabel(o3.row.name), placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), readonly: "", onClick: t2[0] || (t2[0] = (e3) => i2.showFormFields = true), onBlur: (e3) => n2.checkName(o3.row.name) }, null, 8, ["value", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "value", label: e2.$t("workflowEditor.common.fieldValue"), width: "200" }, { default: r.withCtx((t3) => [r.createVNode(u2, { modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, multiple: "", filterable: "", "allow-create": "", "default-first-option": "", placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onBlur: (e3) => n2.checkValue(t3.row.value) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.keys, (e3) => (r.openBlock(), r.createBlock(m2, { key: e3, label: i2.standardValues[e3], value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "separator", label: e2.$t("workflowEditor.common.separator") }, { default: r.withCtx((e3) => [r.createVNode(c2, { modelValue: e3.row.separator, "onUpdate:modelValue": (t3) => e3.row.separator = t3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "fillType", label: e2.$t("workflowEditor.common.fillInMethod") }, { default: r.withCtx((t3) => [r.createVNode(u2, { modelValue: t3.row.fillType, "onUpdate:modelValue": (e3) => t3.row.fillType = e3 }, { default: r.withCtx(() => [r.createVNode(m2, { label: e2.$t("workflowEditor.common.cover"), value: "cover" }, null, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.append"), value: "append" }, null, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.insertToFront"), value: "prepend" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "fillTime", label: e2.$t("workflowEditor.common.fillInTime") }, { default: r.withCtx((t3) => [r.createVNode(u2, { modelValue: t3.row.fillTime, "onUpdate:modelValue": (e3) => t3.row.fillTime = e3 }, { default: r.withCtx(() => [r.createVNode(m2, { label: e2.$t("workflowEditor.common.fillInBeforeHandling"), value: "before" }, null, 8, ["label"]), r.createVNode(m2, { label: e2.$t("workflowEditor.common.fillInAfterHandling"), value: "after" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), r.createVNode(h2, { class: "box-card", style: { "margin-top": "10px" } }, { header: r.withCtx(() => [r.createTextVNode(" 办理意见 ")]), default: r.withCtx(() => [r.createVNode(f2, { label: "意见来源字段", "label-width": "100" }, { default: r.withCtx(() => [r.createVNode(c2, { value: n2.getFieldLabel(i2.opinionAutoSetting.opinionSourceField), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), readonly: "", clearable: true, onClick: n2.selectOpinionField }, { append: r.withCtx(() => [r.createVNode(a2, { icon: "Delete", onClick: n2.clearOpinionField }, null, 8, ["onClick"])]), _: 1 }, 8, ["value", "placeholder", "onClick"])]), _: 1 })]), _: 1 }), i2.showFormFields ? (r.openBlock(), r.createBlock(w2, { key: 0, onClose: n2.setField }, null, 8, ["onClose"])) : r.createCommentVNode("", true)]);
|
|
1710
1708
|
}]]);
|
|
1711
|
-
const dl =
|
|
1709
|
+
const dl = D({ name: "Variables", props: { modelValue: { type: Object, default: null } }, data() {
|
|
1712
1710
|
let e2 = [];
|
|
1713
1711
|
return this.modelValue && (Array.isArray(this.modelValue.variable) ? e2 = this.modelValue.variable : this.modelValue.variable && e2.push(this.modelValue.variable)), { variables: e2, currentRow: null };
|
|
1714
1712
|
}, watch: {}, mounted() {
|
|
@@ -1740,11 +1738,11 @@
|
|
|
1740
1738
|
"" === e2 && this.$alert(this.$t("workflowEditorMessage.variableNameCannotBeEmpty"));
|
|
1741
1739
|
}, checkValue(e2) {
|
|
1742
1740
|
"" === e2 && this.$alert(this.$t("workflowEditorMessage.variableValueCannotBeEmpty"));
|
|
1743
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
1741
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1744
1742
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-table");
|
|
1745
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick:
|
|
1743
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(m2, { ref: "table", data: i2.variables, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: n2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "name", label: e2.$t("workflowEditor.common.variableName") }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.name, "onUpdate:modelValue": (e3) => t3.row.name = e3, modelModifiers: { trim: true }, placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), onBlur: (e3) => n2.checkName(t3.row.name) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "value", label: e2.$t("workflowEditor.common.variableValue") }, { default: r.withCtx((t3) => [r.createVNode(c2, { modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true }, placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), onBlur: (e3) => n2.checkValue(t3.row.value) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]);
|
|
1746
1744
|
}]]), cl = { key: 0 };
|
|
1747
|
-
const ml =
|
|
1745
|
+
const ml = D({ name: "Events", props: { modelValue: { type: Object, default: null } }, data() {
|
|
1748
1746
|
const e2 = { beforeSubmitEnabled: false, beforeSubmit: {} };
|
|
1749
1747
|
return this.modelValue.beforeSubmit && (e2.beforeSubmitEnabled = true, e2.beforeSubmit = { ...this.modelValue.beforeSubmit }), e2.afterComplete = this.modelValue.afterComplete, { formModel: e2 };
|
|
1750
1748
|
}, mounted() {
|
|
@@ -1752,11 +1750,11 @@
|
|
|
1752
1750
|
const o2 = {};
|
|
1753
1751
|
this.formModel.beforeSubmitEnabled && (o2.beforeSubmit = { ...this.formModel.beforeSubmit }), o2.afterComplete = this.formModel.afterComplete, this.$emit("update:modelValue", o2);
|
|
1754
1752
|
}, { deep: true });
|
|
1755
|
-
} }, [["render", function(e2, t2, o2, l2,
|
|
1753
|
+
} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1756
1754
|
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-input"), c2 = r.resolveComponent("el-form");
|
|
1757
|
-
return r.openBlock(), r.createBlock(c2, { model:
|
|
1755
|
+
return r.openBlock(), r.createBlock(c2, { model: i2.formModel, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.beforeSubmission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.beforeSubmitEnabled, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.beforeSubmitEnabled = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i2.formModel.beforeSubmitEnabled ? (r.openBlock(), r.createElementBlock("div", cl, [r.createVNode(s2, { label: e2.$t("workflowEditor.task.executionURL") }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: i2.formModel.beforeSubmit.url, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.beforeSubmit.url = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.errorMessage") }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: i2.formModel.beforeSubmit.errorMessage, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.formModel.beforeSubmit.errorMessage = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])])) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.afterSubmission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.afterComplete, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.formModel.afterComplete = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1758
1756
|
}]]);
|
|
1759
|
-
const ul =
|
|
1757
|
+
const ul = D({ name: "CommonNoticeTool", props: { label: { type: String, default: null }, modelValue: { type: String, default: null }, customMsg: { type: String, default: null } }, data() {
|
|
1760
1758
|
let e2 = [];
|
|
1761
1759
|
this.modelValue && "" !== this.modelValue && null !== this.modelValue && (e2 = this.modelValue.split(","));
|
|
1762
1760
|
let t2 = "";
|
|
@@ -1765,10 +1763,10 @@
|
|
|
1765
1763
|
this.$emit("update:modelValue", this.tools.join(","));
|
|
1766
1764
|
}, myCustomMsg(e2) {
|
|
1767
1765
|
this.$emit("input-msg", this.myCustomMsg);
|
|
1768
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
1766
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1769
1767
|
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-checkbox-group"), d2 = r.resolveComponent("el-form-item"), c2 = r.resolveComponent("el-input");
|
|
1770
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(d2, { label: o2.label }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue:
|
|
1771
|
-
}]]), pl = { name: "Reminder", components: { CommonNoticeTool: ul, CommonUserCondition:
|
|
1768
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(d2, { label: o2.label }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.tools, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.tools = e3) }, { default: r.withCtx(() => [r.createVNode(a2, { label: "mail" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.mail")), 1)]), _: 1 }), r.createVNode(a2, { label: "DINGDING" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.dingding")), 1)]), _: 1 }), r.createVNode(a2, { label: "QIWEI" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.qiwei")), 1)]), _: 1 }), r.createVNode(a2, { label: "FEISHU" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.feishu")), 1)]), _: 1 }), r.createVNode(a2, { label: "custom" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.custom")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i2.tools.indexOf("custom") >= 0 ? (r.openBlock(), r.createBlock(d2, { key: 0, "label-width": "110", label: e2.$t("workflowEditor.common.customMsg") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.myCustomMsg, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.myCustomMsg = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true)]);
|
|
1769
|
+
}]]), pl = { name: "Reminder", components: { CommonNoticeTool: ul, CommonUserCondition: Io, SelectMailTemplates: oo }, props: { modelValue: { type: [Object, String], default: null }, isProcess: { type: Boolean, default: false } }, data() {
|
|
1772
1770
|
let e2 = false, t2 = false, o2 = { dueDate: 1, dueTimeUnit: "day", repeat: 1, containTransferUser: false, containNoticeUser: false, remindType: "mail", timeUnit: "day", remindTimes: 0, noticeType: "", noticeUserCondition: "", transferUserCondition: "" };
|
|
1773
1771
|
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (o2 = this.modelValue, e2 = true, this.modelValue.remindTimes > 0 && (t2 = true), o2.dueTimeUnit || (o2.dueTimeUnit = "day")), { showReminder: e2, showNotice: t2, model: o2, showMailTemplateFlag: false, baseURL: "", optionUrl: "", multiSelectData: [], options: { showColumns: "code,name" } };
|
|
1774
1772
|
}, watch: { showReminder(e2) {
|
|
@@ -1791,10 +1789,10 @@
|
|
|
1791
1789
|
}, setNoticeCustomMsg(e2) {
|
|
1792
1790
|
this.model.noticeCustomMsg = e2;
|
|
1793
1791
|
} } }, hl = { key: 0 }, fl = { key: 2 };
|
|
1794
|
-
const wl = { name: "NoticeReminder", components: { Reminder:
|
|
1792
|
+
const wl = { name: "NoticeReminder", components: { Reminder: D(pl, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1795
1793
|
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("common-notice-tool"), c2 = r.resolveComponent("select-mail-templates"), m2 = r.resolveComponent("el-input-number"), u2 = r.resolveComponent("el-option"), p2 = r.resolveComponent("el-select"), h2 = r.resolveComponent("el-radio"), f2 = r.resolveComponent("el-checkbox"), w2 = r.resolveComponent("common-user-condition"), g2 = r.resolveComponent("el-form");
|
|
1796
|
-
return r.openBlock(), r.createBlock(g2, { model:
|
|
1797
|
-
}], ["__scopeId", "data-v-4e29ea06"]]), CommonNoticeTool: ul, SelectMailTemplates:
|
|
1794
|
+
return r.openBlock(), r.createBlock(g2, { model: i2.model, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.needToBeUrged") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.showReminder, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.showReminder = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i2.showReminder ? (r.openBlock(), r.createElementBlock("div", hl, [r.createVNode(d2, { modelValue: i2.model.remindType, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.model.remindType = e3), label: e2.$t("workflowEditor.task.urgingMethod"), "custom-msg": i2.model.reminderCustomMsg, onInputMsg: n2.setReminderCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), i2.model.remindType && i2.model.remindType.length > 0 ? (r.openBlock(), r.createBlock(s2, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.model.mailTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.model.mailTemplateCode = e3), onSetValue: n2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), i2.model.remindType && i2.model.remindType.length > 0 && -1 !== i2.model.remindType.indexOf("mail") ? (r.openBlock(), r.createBlock(s2, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.model.mailPointTemplateCode, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.model.mailPointTemplateCode = e3), onSetValue: n2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.timeLimitForHandling"), size: "small" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: i2.model.dueDate, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.model.dueDate = e3), "controls-position": "right", min: 1, max: 30, style: { width: "90px" } }, null, 8, ["modelValue"]), r.createVNode(p2, { modelValue: i2.model.dueTimeUnit, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.model.dueTimeUnit = e3), style: { width: "70px" } }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.task.day"), value: "day" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.task.hour"), value: "hour" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue"]), r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.task.urgingInterval")), 1), r.createVNode(m2, { modelValue: i2.model.repeat, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.model.repeat = e3), "controls-position": "right", min: 1, max: 30, style: { width: "90px" } }, null, 8, ["modelValue"]), r.createVNode(p2, { modelValue: i2.model.timeUnit, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.model.timeUnit = e3), style: { width: "70px" } }, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.task.day"), value: "day" }, null, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.task.hour"), value: "hour" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: i2.showNotice, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => i2.showNotice = e3), label: false }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.alwaysUrging")), 1)]), _: 1 }, 8, ["modelValue"]), r.createVNode(h2, { modelValue: i2.showNotice, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => i2.showNotice = e3), label: true }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.limitedUrging")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i2.showNotice ? (r.openBlock(), r.createElementBlock("div", fl, [r.createVNode(s2, { label: e2.$t("workflowEditor.task.timesOfUrging"), size: "small" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: i2.model.remindTimes, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => i2.model.remindTimes = e3), "controls-position": "right", min: 1, max: 99, style: { width: "90px" } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { modelValue: i2.model.noticeType, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => i2.model.noticeType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": i2.model.noticeCustomMsg, onInputMsg: n2.setNoticeCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), o2.isProcess ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(s2, { key: 0, label: e2.$t("workflowEditor.common.notifyPersonnel"), style: { "margin-bottom": "5px" } }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: i2.model.containTransferUser, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => i2.model.containTransferUser = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.includingHandoverPersonnel")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])), r.createVNode(s2, { "label-width": "0" }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: i2.model.noticeUserCondition, "onUpdate:modelValue": t2[13] || (t2[13] = (e3) => i2.model.noticeUserCondition = e3) }, null, 8, ["modelValue"])]), _: 1 }), o2.isProcess ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(s2, { key: 1, label: e2.$t("workflowEditor.task.handoverPersonnel"), style: { "margin-bottom": "5px" } }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: i2.model.containNoticeUser, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => i2.model.containNoticeUser = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.includeNotifyPeople")), 1)]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"])), o2.isProcess ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(s2, { key: 2, "label-width": "0" }, { default: r.withCtx(() => [r.createVNode(w2, { modelValue: i2.model.transferUserCondition, "onUpdate:modelValue": t2[15] || (t2[15] = (e3) => i2.model.transferUserCondition = e3) }, null, 8, ["modelValue"])]), _: 1 }))])) : r.createCommentVNode("", true)])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
1795
|
+
}], ["__scopeId", "data-v-4e29ea06"]]), CommonNoticeTool: ul, SelectMailTemplates: oo }, props: { reminderValue: { type: [Object, String], default: null }, taskNoticeValue: { type: Object, default: null }, isProcess: { type: Boolean, default: false } }, data() {
|
|
1798
1796
|
let e2 = null;
|
|
1799
1797
|
null !== this.reminderValue && void 0 !== this.reminderValue && "" !== this.reminderValue && (e2 = this.reminderValue);
|
|
1800
1798
|
let t2 = {};
|
|
@@ -1807,12 +1805,12 @@
|
|
|
1807
1805
|
this.noticeObj.mailTemplateCode = e2;
|
|
1808
1806
|
}, setCustomMsg(e2) {
|
|
1809
1807
|
this.noticeObj.customMsg = e2;
|
|
1810
|
-
} } }, gl = { class: "clearfix" }, Cl = { class: "sub-li" },
|
|
1811
|
-
const Nl =
|
|
1808
|
+
} } }, gl = { class: "clearfix" }, Cl = { class: "sub-li" }, kl = { class: "sub-li" }, bl = { class: "clearfix" }, Vl = { class: "sub-li" }, yl = { class: "sub-li" }, vl = { class: "sub-li" }, Tl = { class: "sub-li" };
|
|
1809
|
+
const Nl = D(wl, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1812
1810
|
const a2 = r.resolveComponent("Warning"), s2 = r.resolveComponent("el-icon"), d2 = r.resolveComponent("el-tooltip"), c2 = r.resolveComponent("common-notice-tool"), m2 = r.resolveComponent("select-mail-templates"), u2 = r.resolveComponent("el-form-item"), p2 = r.resolveComponent("el-form"), h2 = r.resolveComponent("el-card"), f2 = r.resolveComponent("reminder");
|
|
1813
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(h2, { class: "box-card" }, { header: r.withCtx(() => [r.createElementVNode("div", gl, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.common.taskNotice")), 1), r.createVNode(d2, null, { content: r.withCtx(() => [r.createElementVNode("ul", null, [r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), r.createElementVNode("li", Cl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r.createElementVNode("li",
|
|
1811
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(h2, { class: "box-card" }, { header: r.withCtx(() => [r.createElementVNode("div", gl, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.common.taskNotice")), 1), r.createVNode(d2, null, { content: r.withCtx(() => [r.createElementVNode("ul", null, [r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), r.createElementVNode("li", Cl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r.createElementVNode("li", kl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1)])]), default: r.withCtx(() => [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })]), _: 1 })])]), default: r.withCtx(() => [r.createVNode(p2, { model: i2.noticeObj, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.noticeObj.informType, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.noticeObj.informType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": i2.noticeObj.customMsg, onInputMsg: n2.setCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), i2.noticeObj.informType && i2.noticeObj.informType.length > 0 ? (r.openBlock(), r.createBlock(u2, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: i2.noticeObj.mailTemplateCode, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.noticeObj.mailTemplateCode = e3), onSetValue: n2.setNoticeCommonTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), i2.noticeObj.informType && i2.noticeObj.informType.length > 0 && i2.noticeObj.informType.indexOf("mail") >= 0 ? (r.openBlock(), r.createBlock(u2, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: i2.noticeObj.mailPointTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.noticeObj.mailPointTemplateCode = e3), onSetValue: n2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"])]), _: 1 }), r.createVNode(h2, { class: "box-card", style: { "margin-top": "10px" } }, { header: r.withCtx(() => [r.createElementVNode("div", bl, [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.common.reminderNotice")), 1), r.createVNode(d2, null, { content: r.withCtx(() => [r.createElementVNode("ul", null, [r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateMsg")), 1), r.createElementVNode("li", Vl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r.createElementVNode("li", yl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindMsg")), 1), r.createElementVNode("li", vl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindImmediately")), 1), r.createElementVNode("li", Tl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindHistory")), 1)])]), default: r.withCtx(() => [r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(a2)]), _: 1 })]), _: 1 })])]), default: r.withCtx(() => [r.createVNode(f2, { modelValue: i2.reminderObj, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.reminderObj = e3), isProcess: o2.isProcess }, null, 8, ["modelValue", "isProcess"])]), _: 1 })]);
|
|
1814
1812
|
}], ["__scopeId", "data-v-39fac73c"]]);
|
|
1815
|
-
const xl =
|
|
1813
|
+
const xl = D({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: io, TransactorSettings: nl, PermissionSettings: tl, AutoFilledFields: sl, Events: ml, Variables: dl, NoticeReminder: Nl }, props: { model: { type: Object, default: null } }, data() {
|
|
1816
1814
|
return this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
1817
1815
|
}, computed: { formModel() {
|
|
1818
1816
|
return this.model.ref;
|
|
@@ -1823,9 +1821,9 @@
|
|
|
1823
1821
|
this.model.name = e2;
|
|
1824
1822
|
});
|
|
1825
1823
|
}, methods: { handleClick(e2, t2) {
|
|
1826
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
1824
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1827
1825
|
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("transactor-settings"), c2 = r.resolveComponent("permission-settings"), m2 = r.resolveComponent("auto-filled-fields"), u2 = r.resolveComponent("notice-reminder"), p2 = r.resolveComponent("events"), h2 = r.resolveComponent("variables"), f2 = r.resolveComponent("el-tabs"), w2 = r.resolveComponent("el-dialog");
|
|
1828
|
-
return r.openBlock(), r.createBlock(w2, { "model-value": "", top: "10vh", title: e2.$t("workflowEditor.task.linkAttribute"), center: true, "append-to-body": "", class: "properties-editor", onOpen: t2[9] || (t2[9] = (t3) => e2.$emit("open")), onOpend: t2[10] || (t2[10] = (t3) => e2.$emit("opend")), onClose: t2[11] || (t2[11] = (t3) => e2.$emit("close")), onClosed: t2[12] || (t2[12] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue:
|
|
1826
|
+
return r.openBlock(), r.createBlock(w2, { "model-value": "", top: "10vh", title: e2.$t("workflowEditor.task.linkAttribute"), center: true, "append-to-body": "", class: "properties-editor", onOpen: t2[9] || (t2[9] = (t3) => e2.$emit("open")), onOpend: t2[10] || (t2[10] = (t3) => e2.$emit("opend")), onClose: t2[11] || (t2[11] = (t3) => e2.$emit("close")), onClosed: t2[12] || (t2[12] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => i2.activeTab = e3), type: "border-card", onTabClick: n2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, "onUpdate:id": t2[0] || (t2[0] = (e3) => o2.model.ref.attr.id = e3), name: o2.model.ref.attr.name, "onUpdate:name": t2[1] || (t2[1] = (e3) => o2.model.ref.attr.name = e3), model: o2.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.settingOfHandler"), name: "transactors" }, { default: r.withCtx(() => [r.createVNode(d2, { model: o2.model.ref.transactorSettings, "basic-properties": o2.model.ref.basicProperties }, null, 8, ["model", "basic-properties"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.permissionSettings"), name: "permissions" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.ref.permissionSettings, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.ref.permissionSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.autoFillInFieldSettings"), name: "autoFilledFields" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: o2.model.ref.autoFilledFields, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.ref.autoFilledFields = e3), "opinion-setting": o2.model.ref.opinionSetting, "onUpdate:opinionSetting": t2[4] || (t2[4] = (e3) => o2.model.ref.opinionSetting = e3) }, null, 8, ["modelValue", "opinion-setting"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.reminderSettings"), name: "reminders" }, { default: r.withCtx(() => [r.createVNode(u2, { "reminder-value": o2.model.ref.reminder, "onUpdate:reminderValue": t2[5] || (t2[5] = (e3) => o2.model.ref.reminder = e3), "task-notice-value": o2.model.ref.taskNotice }, null, 8, ["reminder-value", "task-notice-value"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.eventProcessing"), name: "events" }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.ref.events, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => o2.model.ref.events = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.linkVariable"), name: "variables" }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: o2.model.ref.variables, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => o2.model.ref.variables = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
1829
1827
|
}], ["__scopeId", "data-v-1651d82a"]]);
|
|
1830
1828
|
function El() {
|
|
1831
1829
|
return window.$store;
|
|
@@ -1833,18 +1831,19 @@
|
|
|
1833
1831
|
function Sl() {
|
|
1834
1832
|
return window.$http;
|
|
1835
1833
|
}
|
|
1836
|
-
const Ml = { fetchFormFields: (e2, t2, o2, l2) => new Promise((r2,
|
|
1837
|
-
let
|
|
1838
|
-
e2 ?
|
|
1834
|
+
const Ml = { fetchFormFields: (e2, t2, o2, l2) => new Promise((r2, i2) => {
|
|
1835
|
+
let n2;
|
|
1836
|
+
e2 ? n2 = Sl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields?formCode=" + e2 + "&formVersion=" + t2 + "&publishVersion=" + l2) : o2 && (n2 = Sl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/table-fields?tableName=" + o2 + "&publishVersion=" + l2)), n2 ? n2.then((t3) => {
|
|
1839
1837
|
const o3 = t3.formFields;
|
|
1840
1838
|
t3.subFormFields, El().commit("wfEditor/setFormCode", e2), El().commit("wfEditor/setTableCode", t3.tableCode), El().commit("wfEditor/setFormFields", o3), El().commit("wfEditor/setFormFieldsWithSub", o3);
|
|
1841
1839
|
const l3 = t3.subtableConditionMap;
|
|
1842
1840
|
El().commit("wfEditor/setSubtableConditionMap", l3);
|
|
1843
|
-
const
|
|
1844
|
-
El().commit("wfEditor/setPropSettingKeyList",
|
|
1841
|
+
const i3 = t3.systemPropSettingList;
|
|
1842
|
+
El().commit("wfEditor/setPropSettingKeyList", i3), r2(t3);
|
|
1845
1843
|
}) : r2({});
|
|
1846
|
-
}), fetchSubprocessFormFields: (e2, t2) => Sl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields-with-processes?processCode=" + e2 + "&processVersion=" + t2) }
|
|
1847
|
-
|
|
1844
|
+
}), fetchSubprocessFormFields: (e2, t2) => Sl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields-with-processes?processCode=" + e2 + "&processVersion=" + t2) };
|
|
1845
|
+
const Dl = D({ name: "BasicProperties", components: { i18nInput: eo }, props: { model: { type: Object, default: null }, name: { type: String, default: null }, code: { type: String, default: null } }, data() {
|
|
1846
|
+
return { formModel: { name: this.name, code: this.code, model: this.model }, allForms: [], allProcessTypes: [], allSystems: [], allBranches: [], nameError: null, codeError: null, systemError: null, adminError: null, formError: null, requiredRule: { required: true, message: f().t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }, isSelectAdmin: false, selectedForm: [], systemPublishVersion: null, sysCode: null, systems: [], isShowFormAndSystem: true, tableName: null };
|
|
1848
1847
|
}, computed: { ...t.mapGetters("wfEditor", ["systemVersion", "systemCode", "tableCode", "isCreateDefinition", "isHandleCreate"]) }, created() {
|
|
1849
1848
|
this.getAdminNameWhenUpdate(), this.listAllProcessTypes(), this.listAllSystems(), this.listAllBranches(), this.model.creator || (this.model.creator = o.getUsername()), this.setProcessCode(this.formModel.code), this.model.systemCode ? this.setSystemCode(this.model.systemCode) : this.model.systemCode = this.systemCode, this.systemPublishVersion = parseInt(o.authApi.getSessionCache("wf_editor_systemVersion")), this.changeSystem(this.systemCode, this.systemPublishVersion), this.listAllForms(this.systemCode, this.systemPublishVersion), this.tableName = this.tableCode, this.isCreateDefinition, this.isHandleCreate, this.isHandleCreate && "true" === this.isHandleCreate || this.isCreateDefinition && "true" === this.isCreateDefinition ? this.isShowFormAndSystem = true : this.isShowFormAndSystem = false;
|
|
1850
1849
|
}, mounted() {
|
|
@@ -1880,9 +1879,9 @@
|
|
|
1880
1879
|
}, setDefaultSelectedFormWhenUpdate(e2, t2) {
|
|
1881
1880
|
let o2, l2;
|
|
1882
1881
|
for (var r2 = 0; r2 < e2.length; r2++) {
|
|
1883
|
-
const
|
|
1884
|
-
if (
|
|
1885
|
-
l2 =
|
|
1882
|
+
const i2 = e2[r2].value, n2 = e2[r2].children.filter(this.filterForm(t2));
|
|
1883
|
+
if (n2.length > 0) {
|
|
1884
|
+
l2 = i2, o2 = n2[0];
|
|
1886
1885
|
break;
|
|
1887
1886
|
}
|
|
1888
1887
|
}
|
|
@@ -1917,15 +1916,14 @@
|
|
|
1917
1916
|
});
|
|
1918
1917
|
}, changeVersion() {
|
|
1919
1918
|
this.listAllForms(this.model.systemCode, this.systemPublishVersion);
|
|
1920
|
-
} } }
|
|
1921
|
-
const Fl = M(Dl, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
1919
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1922
1920
|
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("department-user-tree"), u2 = r.resolveComponent("el-option"), p2 = r.resolveComponent("el-select"), h2 = r.resolveComponent("el-cascader"), f2 = r.resolveComponent("el-row"), w2 = r.resolveComponent("el-form");
|
|
1923
|
-
return r.openBlock(), r.createBlock(w2, { model:
|
|
1921
|
+
return r.openBlock(), r.createBlock(w2, { model: i2.formModel, "label-width": "100px" }, { default: r.withCtx(() => [r.createVNode(f2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.processName"), prop: "name", rules: [i2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.name = e3), modelModifiers: { trim: true }, "i18n-key": o2.model.i18nKey ? o2.model.i18nKey : "processName", onSetI18n: n2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.processCode"), prop: "code", rules: [i2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.formModel.code, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.code = e3), modelModifiers: { trim: true } }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.processAdministrator"), rules: [i2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.formModel.adminName, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.formModel.adminName = e3), readonly: "", "suffix-icon": "el-icon-search", onClick: n2.selectAdmin }, null, 8, ["modelValue", "onClick"]), i2.isSelectAdmin ? (r.openBlock(), r.createBlock(m2, { key: 0, width: "30%", multiple: false, onClose: n2.addAdmin }, null, 8, ["onClose"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label", "rules"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.creater") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.creator, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.creator = e3), readonly: "" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), i2.isShowFormAndSystem ? (r.openBlock(), r.createBlock(d2, { key: 0, span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.system"), prop: "model.systemCode", rules: [i2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.systemCode, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => o2.model.systemCode = e3), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onChange: t2[5] || (t2[5] = (e3) => n2.changeSystem(o2.model.systemCode, null)) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.allSystems, (e3) => (r.openBlock(), r.createBlock(u2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })) : r.createCommentVNode("", true), i2.isShowFormAndSystem ? (r.openBlock(), r.createBlock(d2, { key: 1, span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.systemVersion"), rules: [i2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: i2.systemPublishVersion, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.systemPublishVersion = e3), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onChange: n2.changeVersion }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.systems, (e3) => (r.openBlock(), r.createBlock(u2, { key: e3.publishVersion, label: e3.publishVersion, value: e3.publishVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "placeholder", "onChange"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })) : r.createCommentVNode("", true), i2.isShowFormAndSystem ? (r.openBlock(), r.createBlock(d2, { key: 2, span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.correspondingForm"), rules: [i2.requiredRule] }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: i2.selectedForm, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.selectedForm = e3), "show-all-levels": false, options: i2.allForms, onChange: n2.handleChange }, null, 8, ["modelValue", "options", "onChange"])]), _: 1 }, 8, ["label", "rules"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.tableCode") }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(i2.tableName), 1)]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.processType") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.processTypeCode, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => o2.model.processTypeCode = e3), placeholder: e2.$t("workflowEditorMessage.pleaseSelect") }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.allProcessTypes, (e3) => (r.openBlock(), r.createBlock(u2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.affiliatedBranch") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.branchCode, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => o2.model.branchCode = e3), clearable: "", placeholder: e2.$t("workflowEditorMessage.pleaseSelect") }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.allBranches, (e3, t3) => (r.openBlock(), r.createBlock(u2, { key: e3.code + "-" + t3, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.process.customCategory") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.customType, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => o2.model.customType = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
1924
1922
|
}]]);
|
|
1925
|
-
const $l =
|
|
1923
|
+
const $l = D({ name: "PermissionSettings", components: { UserSelection: el }, props: { modelValue: { type: Object, default: null } }, data: () => ({ showNotice: false }) }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1926
1924
|
const a2 = r.resolveComponent("user-selection"), s2 = r.resolveComponent("el-form");
|
|
1927
1925
|
return r.openBlock(), r.createBlock(s2, { model: o2.modelValue, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.modelValue.viewFlowHistory, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.modelValue.viewFlowHistory = e3), label: e2.$t("workflowEditor.process.ViewFlowHistoryPersonnel"), "label-width": "130px" }, null, 8, ["modelValue", "label"]), r.createVNode(a2, { modelValue: o2.modelValue.viewSubscribeResult, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.modelValue.viewSubscribeResult = e3), label: e2.$t("workflowEditor.process.ViewCountersignatureResultPersonnel"), "label-width": "130px" }, null, 8, ["modelValue", "label"]), r.createVNode(a2, { modelValue: o2.modelValue.viewVoteResult, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.modelValue.viewVoteResult = e3), label: e2.$t("workflowEditor.process.ViewVotingResultsBy"), "label-width": "130px" }, null, 8, ["modelValue", "label"])]), _: 1 }, 8, ["model"]);
|
|
1928
|
-
}]]),
|
|
1926
|
+
}]]), Fl = { props: { pageFormCode: { type: String, default: null } }, data: () => ({ baseURL: "", listURL: "", selection: [], dialogVisible: true }), computed: { ...t.mapGetters("wfEditor", ["systemVersion"]) }, watch: { conditionList: { handler(e2, t2) {
|
|
1929
1927
|
this.judgeHeavyData = e2;
|
|
1930
1928
|
} } }, created() {
|
|
1931
1929
|
this.baseURL = window.$vueApp.config.globalProperties.baseURL, this.pageFormCode && (this.listURL = "/wf-editor/workflow-editors/modulePages/" + this.pageFormCode + "/" + parseInt(o.authApi.getSessionCache("wf_editor_systemVersion")));
|
|
@@ -1941,21 +1939,21 @@
|
|
|
1941
1939
|
this.$emit("setPage", "");
|
|
1942
1940
|
}, select(e2, t2) {
|
|
1943
1941
|
this.selection = e2;
|
|
1944
|
-
} } },
|
|
1945
|
-
const
|
|
1942
|
+
} } }, Pl = { style: { "overflow-y": "auto", "max-height": "500px" } }, Bl = { class: "operation-area" };
|
|
1943
|
+
const Ol = D({ name: "ParameterSettings", components: { selectPage: D(Fl, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1946
1944
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("super-grid"), d2 = r.resolveComponent("el-dialog");
|
|
1947
|
-
return r.openBlock(), r.createBlock(d2, { "show-close": true, "append-to-body": true, title: e2.$t("workflowEditorPublicModel.selectPage"), width: "60%", "model-value": "", onClose:
|
|
1945
|
+
return r.openBlock(), r.createBlock(d2, { "show-close": true, "append-to-body": true, title: e2.$t("workflowEditorPublicModel.selectPage"), width: "60%", "model-value": "", onClose: n2.savePage }, { default: r.withCtx(() => [r.createElementVNode("div", Pl, [r.createElementVNode("div", Bl, [r.createVNode(a2, { size: "small", onClick: n2.savePage }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditorPublicModel.close")), 1)]), _: 1 }, 8, ["onClick"])]), r.createElementVNode("div", null, [r.createVNode(s2, { ref: "grid", url: i2.baseURL + i2.listURL, code: "MMS_MODULE_PAGE", onSelect: n2.select }, null, 8, ["url", "onSelect"])])])]), _: 1 }, 8, ["title", "onClose"]);
|
|
1948
1946
|
}]]) }, props: { model: { type: Object, default: null } }, data: () => ({ selectPageFlag: false, pageFormCode: null }), computed: { ...t.mapGetters("wfEditor", ["formCode", "pageCode"]) }, created() {
|
|
1949
1947
|
this.pageCode && (this.model.doTask.url = "page:" + this.pageCode);
|
|
1950
1948
|
}, methods: { openSelectPage() {
|
|
1951
1949
|
this.formCode && (this.pageFormCode = this.formCode), this.selectPageFlag = true;
|
|
1952
1950
|
}, setPage(e2) {
|
|
1953
1951
|
this.model.doTask.url = e2, this.selectPageFlag = false;
|
|
1954
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
1952
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1955
1953
|
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-card"), c2 = r.resolveComponent("select-page"), m2 = r.resolveComponent("el-form");
|
|
1956
|
-
return r.openBlock(), r.createBlock(m2, { model: o2.model, "label-width": "150px" }, { default: r.withCtx(() => [r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.processTaskParameterSettings")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.uRLForProcessingTask") }, { default: r.withCtx(() => [e2.pageCode ? (r.openBlock(), r.createBlock(a2, { key: 0, disabled: "", modelValue: o2.model.doTask.url, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.model.doTask.url = e3) }, null, 8, ["modelValue"])) : (r.openBlock(), r.createBlock(a2, { key: 1, modelValue: o2.model.doTask.url, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.doTask.url = e3) }, { suffix: r.withCtx(() => [r.createElementVNode("i", { class: "fa fa-search", onClick: t2[1] || (t2[1] = (...e3) =>
|
|
1954
|
+
return r.openBlock(), r.createBlock(m2, { model: o2.model, "label-width": "150px" }, { default: r.withCtx(() => [r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.processTaskParameterSettings")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.uRLForProcessingTask") }, { default: r.withCtx(() => [e2.pageCode ? (r.openBlock(), r.createBlock(a2, { key: 0, disabled: "", modelValue: o2.model.doTask.url, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.model.doTask.url = e3) }, null, 8, ["modelValue"])) : (r.openBlock(), r.createBlock(a2, { key: 1, modelValue: o2.model.doTask.url, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.doTask.url = e3) }, { suffix: r.withCtx(() => [r.createElementVNode("i", { class: "fa fa-search", onClick: t2[1] || (t2[1] = (...e3) => n2.openSelectPage && n2.openSelectPage(...e3)) })]), _: 1 }, 8, ["modelValue"]))]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parametersForReceivingTaskID") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.doTask.parameterName, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.doTask.parameterName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.viewFormParameterSettings")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.viewTheURLOfTheForm") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.viewForm.url, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => o2.model.viewForm.url = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parametersOfReceivingEntityID") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.viewForm.parameterName, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => o2.model.viewForm.parameterName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.emergencyTreatmentParameterSetting")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.uRLOfEmergencyHandling") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.handleEmergency.url, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => o2.model.handleEmergency.url = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parametersOfReceivingEntityID") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.handleEmergency.parameterName, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => o2.model.handleEmergency.parameterName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, null, { header: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.initiateProcessParameterSettings")), 1)]), default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.uRLOfTheInitiatingProcess") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.startProcess.url, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => o2.model.startProcess.url = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parametersForReceivingProcessName") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.startProcess.parameterName, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => o2.model.startProcess.parameterName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.customParameterValue") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.startProcess.parameterValue, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => o2.model.startProcess.parameterValue = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }), i2.selectPageFlag ? (r.openBlock(), r.createBlock(c2, { key: 0, "page-form-code": i2.pageFormCode, onSetPage: n2.setPage }, null, 8, ["page-form-code", "onSetPage"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
1957
1955
|
}]]);
|
|
1958
|
-
const
|
|
1956
|
+
const Il = D({ name: "Events", props: { modelValue: { type: Object, default: null } }, data() {
|
|
1959
1957
|
const e2 = [], t2 = this.modelValue.event;
|
|
1960
1958
|
if (void 0 !== t2 && t2.length && t2.length > 0) {
|
|
1961
1959
|
let o2 = [];
|
|
@@ -1963,14 +1961,14 @@
|
|
|
1963
1961
|
e2.push(t3);
|
|
1964
1962
|
});
|
|
1965
1963
|
}
|
|
1966
|
-
return { events: [{ name: "START_INSTANCE", label:
|
|
1964
|
+
return { events: [{ name: "START_INSTANCE", label: f().t("workflowEditor.process.initiationProcess") }, { name: "DELETE_INSTANCE", label: f().t("workflowEditor.process.deleteProcess") }, { name: "CANCEL_INSTANCE", label: f().t("workflowEditor.process.cancelProcess") }, { name: "END_INSTANCE", label: f().t("workflowEditor.process.endProcess") }, { name: "STOP_INSTANCE", label: f().t("workflowEditor.process.pauseProcess") }, { name: "RESUME_INSTANCE", label: f().t("workflowEditor.process.continueTheProcess") }, { name: "JUMP_TACHE", label: f().t("workflowEditor.process.jumpLink") }, { name: "CHANGE_TRANSACTOR", label: f().t("workflowEditor.process.modificationHandler") }, { name: "ADD_TRANSACTOR", label: f().t("workflowEditor.process.addHandler") }, { name: "REMOVE_TRANSACTOR", label: f().t("workflowEditor.process.decreaseOofHandler") }, { name: "ASSIGN_TASK", label: f().t("workflowEditor.process.appointedTask") }, { name: "RETURN_TASK", label: f().t("workflowEditor.process.returnTask") }, { name: "WITHDRAW_TASK", label: f().t("workflowEditor.process.retrieveTask") }, { name: "TRUST_TASK", label: f().t("workflowEditor.process.trustTask") }], selectedEvents: e2 };
|
|
1967
1965
|
}, watch: { selectedEvents(e2) {
|
|
1968
1966
|
this.$emit("update:modelValue", { event: this.selectedEvents });
|
|
1969
|
-
} }, methods: {} }, [["render", function(e2, t2, o2, l2,
|
|
1967
|
+
} }, methods: {} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1970
1968
|
const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-card"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-row"), m2 = r.resolveComponent("el-checkbox-group");
|
|
1971
|
-
return r.openBlock(), r.createBlock(m2, { modelValue:
|
|
1972
|
-
}]]),
|
|
1973
|
-
const
|
|
1969
|
+
return r.openBlock(), r.createBlock(m2, { modelValue: i2.selectedEvents, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.selectedEvents = e3) }, { default: r.withCtx(() => [r.createVNode(c2, { gutter: 12 }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(i2.events, (e3) => (r.openBlock(), r.createBlock(d2, { key: e3.name, span: 8, style: { "margin-bottom": "12px" } }, { default: r.withCtx(() => [r.createVNode(s2, { shadow: "always" }, { default: r.withCtx(() => [r.createVNode(a2, { label: e3.name }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["label"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
|
|
1970
|
+
}]]), _l = { key: 0 };
|
|
1971
|
+
const Rl = D({ name: "Notice", components: { UserSelection: el, CommonNoticeTool: ul, SelectMailTemplates: oo }, props: { modelValue: { type: [Object, String], default: null }, switchLabel: { type: String, default: "" } }, data() {
|
|
1974
1972
|
let e2 = false, t2 = { informType: "", userCondition: "", subject: null, content: null };
|
|
1975
1973
|
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (t2 = this.modelValue, t2.informType && "" !== t2.informType && (e2 = true)), { showNotice: e2, model: t2, options: { showColumns: "code,name" } };
|
|
1976
1974
|
}, watch: { showNotice(e2) {
|
|
@@ -1988,11 +1986,11 @@
|
|
|
1988
1986
|
this.model.mailPointTemplateCode = e2;
|
|
1989
1987
|
}, setCustomMsg(e2) {
|
|
1990
1988
|
this.model.customMsg = e2;
|
|
1991
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
1989
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
1992
1990
|
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("common-notice-tool"), c2 = r.resolveComponent("select-mail-templates"), m2 = r.resolveComponent("user-selection"), u2 = r.resolveComponent("el-input"), p2 = r.resolveComponent("el-form");
|
|
1993
|
-
return r.openBlock(), r.createBlock(p2, { model:
|
|
1991
|
+
return r.openBlock(), r.createBlock(p2, { model: i2.model, "label-width": "80px" }, { default: r.withCtx(() => [r.createVNode(s2, { label: o2.switchLabel, "label-width": "150" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.showNotice, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.showNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i2.showNotice ? (r.openBlock(), r.createElementBlock("div", _l, [r.createVNode(d2, { modelValue: i2.model.informType, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.model.informType = e3), label: e2.$t("workflowEditor.common.notificationMethod"), "custom-msg": i2.model.customMsg, onInputMsg: n2.setCustomMsg }, null, 8, ["modelValue", "label", "custom-msg", "onInputMsg"]), i2.model.informType && i2.model.informType.length > 0 ? (r.openBlock(), r.createBlock(s2, { key: 0, "label-width": "100", label: e2.$t("workflowEditor.task.selectNoticeTemplate") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.model.mailTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.model.mailTemplateCode = e3), onSetValue: n2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), i2.model.informType && i2.model.informType.length > 0 && -1 !== i2.model.informType.indexOf("mail") ? (r.openBlock(), r.createBlock(s2, { key: 1, "label-width": "100", label: e2.$t("workflowEditor.task.selectMailTemplate") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.model.mailPointTemplateCode, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.model.mailPointTemplateCode = e3), onSetValue: n2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(m2, { modelValue: i2.model.userCondition, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.model.userCondition = e3), label: e2.$t("workflowEditor.common.addressee") }, null, 8, ["modelValue", "label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.common.theme") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.model.subject, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.model.subject = e3), placeholder: e2.$t("workflowEditorMessage.pleaseEnterASubject") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.common.content") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: i2.model.content, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.model.content = e3), type: "textarea", autosize: { minRows: 4, maxRows: 10 }, placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }, 8, ["label"])])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"]);
|
|
1994
1992
|
}]]);
|
|
1995
|
-
const
|
|
1993
|
+
const Al = D({ name: "ProcessPropertiesEditor", components: { BasicProperties: Dl, PermissionSettings: $l, ParameterSettings: Ol, Events: Il, Variables: dl, NoticeSettings: D({ name: "NoticeSettings", components: { Notice: Rl, SelectMailTemplates: oo }, props: { modelValue: { type: [Object, String], default: null } }, data() {
|
|
1996
1994
|
let e2 = { informType: "", userCondition: "", subject: null, content: null, defaultMailTemplateCode: "" };
|
|
1997
1995
|
return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (e2 = this.modelValue), { showMailTemplateFlag: false, model: e2 };
|
|
1998
1996
|
}, created() {
|
|
@@ -2006,9 +2004,9 @@
|
|
|
2006
2004
|
this.model.defaultMailTemplateCode = e2;
|
|
2007
2005
|
}, setMailPointTemplateCode(e2) {
|
|
2008
2006
|
this.model.defaultMailPointTemplateCode = e2;
|
|
2009
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2007
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2010
2008
|
const a2 = r.resolveComponent("notice"), s2 = r.resolveComponent("select-mail-templates"), d2 = r.resolveComponent("el-form-item"), c2 = r.resolveComponent("el-form");
|
|
2011
|
-
return
|
|
2009
|
+
return i2.model ? (r.openBlock(), r.createBlock(c2, { key: 0, model: i2.model, "label-width": "100px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.model, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.model = e3), "switch-label": e2.$t("workflowEditor.process.sendNotificationAfterProcessEnds") }, null, 8, ["modelValue", "switch-label"]), i2.model.informType && i2.model.informType.length > 0 ? (r.openBlock(), r.createBlock(d2, { key: 0, label: e2.$t("workflowEditor.process.defaultCommonTemplate") }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.model.defaultMailTemplateCode, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.model.defaultMailTemplateCode = e3), onSetValue: n2.setMailTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), i2.model.informType && i2.model.informType.length > 0 && -1 !== i2.model.informType.indexOf("mail") ? (r.openBlock(), r.createBlock(d2, { key: 1, label: e2.$t("workflowEditor.process.defaultMailTemplate") }, { default: r.withCtx(() => [r.createVNode(s2, { modelValue: i2.model.defaultMailPointTemplateCode, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.model.defaultMailPointTemplateCode = e3), onSetValue: n2.setMailPointTemplateCode }, null, 8, ["modelValue", "onSetValue"])]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["model"])) : r.createCommentVNode("", true);
|
|
2012
2010
|
}]]), NoticeReminder: Nl }, props: { model: { type: Object, default: null } }, data() {
|
|
2013
2011
|
return void 0 === this.model.properties.taskNotice && (this.model.properties.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
2014
2012
|
}, computed: { basicProperties() {
|
|
@@ -2024,16 +2022,16 @@
|
|
|
2024
2022
|
}, variables() {
|
|
2025
2023
|
return this.model.properties.variables;
|
|
2026
2024
|
} }, methods: { toXml() {
|
|
2027
|
-
|
|
2025
|
+
i.js2xml({ basicProperties: this.basicProperties }, { compact: true, ignoreComment: true, spaces: 4 });
|
|
2028
2026
|
}, handleClick(e2, t2) {
|
|
2029
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2027
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2030
2028
|
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("permission-settings"), c2 = r.resolveComponent("notice-settings"), m2 = r.resolveComponent("notice-reminder"), u2 = r.resolveComponent("parameter-settings"), p2 = r.resolveComponent("events"), h2 = r.resolveComponent("variables"), f2 = r.resolveComponent("el-tabs"), w2 = r.resolveComponent("el-dialog");
|
|
2031
|
-
return r.openBlock(), r.createBlock(w2, { "model-value": "", title: e2.$t("workflowEditor.process.processProperties"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[7] || (t2[7] = (t3) => e2.$emit("open")), onOpend: t2[8] || (t2[8] = (t3) => e2.$emit("opend")), onClose: t2[9] || (t2[9] = (t3) => e2.$emit("close")), onClosed: t2[10] || (t2[10] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue:
|
|
2029
|
+
return r.openBlock(), r.createBlock(w2, { "model-value": "", title: e2.$t("workflowEditor.process.processProperties"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[7] || (t2[7] = (t3) => e2.$emit("open")), onOpend: t2[8] || (t2[8] = (t3) => e2.$emit("opend")), onClose: t2[9] || (t2[9] = (t3) => e2.$emit("close")), onClosed: t2[10] || (t2[10] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.activeTab = e3), type: "border-card", onTabClick: n2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { name: o2.model.attr.name, "onUpdate:name": t2[0] || (t2[0] = (e3) => o2.model.attr.name = e3), code: o2.model.attr.code, "onUpdate:code": t2[1] || (t2[1] = (e3) => o2.model.attr.code = e3), model: o2.model.properties.basicProperties }, null, 8, ["name", "code", "model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.permissionSettings"), name: "permissions" }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: o2.model.properties.permissionSettings, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.properties.permissionSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.notificationSettings"), name: "inform" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.properties.inform, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.properties.inform = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.reminderSettings"), name: "reminders" }, { default: r.withCtx(() => [r.createVNode(m2, { "reminder-value": o2.model.properties.reminder, "onUpdate:reminderValue": t2[4] || (t2[4] = (e3) => o2.model.properties.reminder = e3), "task-notice-value": o2.model.properties.taskNotice, isProcess: true }, null, 8, ["reminder-value", "task-notice-value"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.parameterSsetting"), name: "parameterSettings" }, { default: r.withCtx(() => [r.createVNode(u2, { model: o2.model.properties.parameterSettings }, null, 8, ["model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.event"), name: "events" }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.properties.events, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => o2.model.properties.events = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.processVariables"), name: "variables" }, { default: r.withCtx(() => [r.createVNode(h2, { model: o2.model.properties.variables }, null, 8, ["model"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
2032
2030
|
}]]);
|
|
2033
|
-
const
|
|
2031
|
+
const Ul = D({ name: "DecisionPropertiesEditor", components: { i18nInput: eo }, props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
|
|
2034
2032
|
return this.model.ref;
|
|
2035
2033
|
}, transitions() {
|
|
2036
|
-
const e2 =
|
|
2034
|
+
const e2 = v(this.formModel.attr.id), t2 = [];
|
|
2037
2035
|
return e2.map((e3) => {
|
|
2038
2036
|
t2.push({ to: e3.ref.attr.to, condition: e3.ref.basicProperties.condition });
|
|
2039
2037
|
}), t2;
|
|
@@ -2043,28 +2041,28 @@
|
|
|
2043
2041
|
});
|
|
2044
2042
|
}, methods: { setI18nValue(e2) {
|
|
2045
2043
|
this.formModel && (this.formModel.basicProperties = {}, this.formModel.basicProperties.i18nKey = e2);
|
|
2046
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2044
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2047
2045
|
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-table"), m2 = r.resolveComponent("el-form"), u2 = r.resolveComponent("el-dialog");
|
|
2048
|
-
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.task.attributeOfConditionJudgment"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue:
|
|
2046
|
+
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.task.attributeOfConditionJudgment"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attr.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.attr.name = e3), modelModifiers: { trim: true }, "i18n-key": n2.formModel.basicProperties && n2.formModel.basicProperties.i18nKey ? n2.formModel.basicProperties.i18nKey : "name." + n2.formModel.attr.id, onSetI18n: n2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, null, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.task.allBranchFlows")), 1), r.createVNode(c2, { border: "", data: n2.transitions, style: { width: "100%" } }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "to", label: e2.$t("workflowEditor.task.targetLink") }, null, 8, ["label"]), r.createVNode(d2, { prop: "condition", label: e2.$t("workflowEditor.task.condition") }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
2049
2047
|
}]]);
|
|
2050
|
-
const
|
|
2048
|
+
const Ll = D({ name: "TransitionPropertiesEditor", components: { Notice: Rl, AutoFilledFields: sl, BasicProperties: D({ name: "BasicProperties", components: { AdditionalCondition: Jt, i18nInput: eo }, props: { model: { type: Object, default: null }, sourceTacheType: { type: String, default: null }, id: { type: String, default: null } }, created() {
|
|
2051
2049
|
}, methods: { setI18nValue(e2) {
|
|
2052
2050
|
this.model.i18nKey = e2;
|
|
2053
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2051
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2054
2052
|
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("additional-condition"), c2 = r.resolveComponent("i18n-input"), m2 = r.resolveComponent("el-form");
|
|
2055
|
-
return r.openBlock(), r.createBlock(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly"), "label-width": "240px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.isOriginalUser, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.model.isOriginalUser = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), "Decision" === o2.sourceTacheType ? (r.openBlock(), r.createBlock(s2, { key: 0 }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.branchingCondition")), 1), r.createVNode(d2, { modelValue: o2.model.condition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.model.condition = e3), "is-transition": true }, null, 8, ["modelValue"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.remarks"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.remark, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.remark = e3), "i18n-key": o2.model.i18nKey ? o2.model.i18nKey : "name." + o2.id, onSetI18n:
|
|
2053
|
+
return r.openBlock(), r.createBlock(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly"), "label-width": "240px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.model.isOriginalUser, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.model.isOriginalUser = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), "Decision" === o2.sourceTacheType ? (r.openBlock(), r.createBlock(s2, { key: 0 }, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.process.branchingCondition")), 1), r.createVNode(d2, { modelValue: o2.model.condition, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.model.condition = e3), "is-transition": true }, null, 8, ["modelValue"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(s2, { label: e2.$t("workflowEditor.task.remarks"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.remark, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.remark = e3), "i18n-key": o2.model.i18nKey ? o2.model.i18nKey : "name." + o2.id, onSetI18n: n2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 });
|
|
2056
2054
|
}]]) }, props: { model: { type: Object, default: null } }, data: () => ({ activeTab: "basicProperties", dialogVisible: true }), mounted() {
|
|
2057
2055
|
this.$watch("model.ref.basicProperties.remark", function(e2) {
|
|
2058
2056
|
this.model.remark = e2;
|
|
2059
2057
|
});
|
|
2060
|
-
} }, [["render", function(e2, t2, o2, l2,
|
|
2058
|
+
} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2061
2059
|
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("notice"), c2 = r.resolveComponent("auto-filled-fields"), m2 = r.resolveComponent("el-switch"), u2 = r.resolveComponent("el-form-item"), p2 = r.resolveComponent("el-input"), h2 = r.resolveComponent("el-form"), f2 = r.resolveComponent("el-tabs"), w2 = r.resolveComponent("el-dialog");
|
|
2062
|
-
return r.openBlock(), r.createBlock(w2, { "model-value": "", title: e2.$t("workflowEditor.transition.flowProperties"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue:
|
|
2060
|
+
return r.openBlock(), r.createBlock(w2, { "model-value": "", title: e2.$t("workflowEditor.transition.flowProperties"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(f2, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.activeTab = e3), type: "border-card" }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.transition.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, model: o2.model.ref.basicProperties, "source-tache-type": o2.model.startJoint.parent.type }, null, 8, ["id", "model", "source-tache-type"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.transition.notificationSettings"), name: "inform" }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: o2.model.ref.inform, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.model.ref.inform = e3), "switch-label": e2.$t("workflowEditor.transition.sendNotificationAfterFlow") }, null, 8, ["modelValue", "switch-label"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.transition.autoFillInFieldSettings"), name: "autoFilledFields" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.ref.autoFilledFields, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.model.ref.autoFilledFields = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.transition.eventProcessing"), name: "events" }, { default: r.withCtx(() => [r.createVNode(h2, null, { default: r.withCtx(() => [r.createVNode(u2, { label: e2.$t("workflowEditor.transition.triggerFlowThroughEvent") }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: o2.model.ref.onTransit, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.ref.onTransit = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(u2, { label: e2.$t("workflowEditor.transition.beanName") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: o2.model.ref.beanName, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.ref.beanName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["title"]);
|
|
2063
2061
|
}], ["__scopeId", "data-v-0e44fe8c"]]);
|
|
2064
|
-
const
|
|
2062
|
+
const Hl = D({ name: "ForkPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
|
|
2065
2063
|
return this.model.ref;
|
|
2066
2064
|
}, transitions() {
|
|
2067
|
-
const e2 =
|
|
2065
|
+
const e2 = v(this.formModel.attr.id), t2 = [];
|
|
2068
2066
|
return e2.map((e3) => {
|
|
2069
2067
|
t2.push({ to: e3.endJoint.parent.name });
|
|
2070
2068
|
}), t2;
|
|
@@ -2072,31 +2070,31 @@
|
|
|
2072
2070
|
this.$watch("model.ref.attr.name", function(e2) {
|
|
2073
2071
|
this.model.name = e2;
|
|
2074
2072
|
});
|
|
2075
|
-
} }, [["render", function(e2, t2, o2, l2,
|
|
2073
|
+
} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2076
2074
|
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-table"), m2 = r.resolveComponent("el-form"), u2 = r.resolveComponent("el-dialog");
|
|
2077
|
-
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfBranches"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue:
|
|
2075
|
+
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfBranches"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attr.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.attr.name = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, null, { default: r.withCtx(() => [r.createElementVNode("span", null, r.toDisplayString(e2.$t("workflowEditor.task.allBranchFlows")), 1), r.createVNode(c2, { border: "", data: n2.transitions, style: { width: "100%" } }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "to", label: e2.$t("workflowEditor.task.targetLink") }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
2078
2076
|
}]]);
|
|
2079
|
-
const zl =
|
|
2077
|
+
const zl = D({ name: "ForkPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
|
|
2080
2078
|
return this.model.ref;
|
|
2081
2079
|
} }, mounted() {
|
|
2082
2080
|
this.$watch("model.ref.attr.name", function(e2) {
|
|
2083
2081
|
this.model.name = e2;
|
|
2084
2082
|
});
|
|
2085
|
-
} }, [["render", function(e2, t2, o2, l2,
|
|
2083
|
+
} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2086
2084
|
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form"), c2 = r.resolveComponent("el-dialog");
|
|
2087
|
-
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.convergedProperties"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue:
|
|
2085
|
+
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.convergedProperties"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attr.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.attr.name = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
2088
2086
|
}]]);
|
|
2089
|
-
const Wl =
|
|
2087
|
+
const Wl = D({ name: "HumanDecisionPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
|
|
2090
2088
|
return this.model.ref;
|
|
2091
2089
|
} }, mounted() {
|
|
2092
2090
|
this.$watch("model.ref.attr.name", function(e2) {
|
|
2093
2091
|
this.model.name = e2;
|
|
2094
2092
|
});
|
|
2095
|
-
} }, [["render", function(e2, t2, o2, l2,
|
|
2093
|
+
} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2096
2094
|
const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form"), c2 = r.resolveComponent("el-dialog");
|
|
2097
|
-
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.attributesOfManualJudgment"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue:
|
|
2095
|
+
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.attributesOfManualJudgment"), center: true, "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name"), "label-width": "40px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: n2.formModel.attr.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n2.formModel.attr.name = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }, 8, ["title"]);
|
|
2098
2096
|
}]]);
|
|
2099
|
-
const
|
|
2097
|
+
const jl = D({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: D({ name: "BasicProperties", components: { TaskTitle: ht, i18nInput: eo }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
2100
2098
|
return { formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
2101
2099
|
}, computed: { tache() {
|
|
2102
2100
|
return this.model;
|
|
@@ -2105,14 +2103,14 @@
|
|
|
2105
2103
|
this.$emit("update:name", e2);
|
|
2106
2104
|
});
|
|
2107
2105
|
}, methods: { validateId() {
|
|
2108
|
-
|
|
2106
|
+
E(this);
|
|
2109
2107
|
}, setI18nValue(e2) {
|
|
2110
2108
|
this.tache.i18nKey = e2;
|
|
2111
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2109
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2112
2110
|
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("task-title"), p2 = r.resolveComponent("el-switch"), h2 = r.resolveComponent("el-form");
|
|
2113
|
-
return r.openBlock(), r.createBlock(h2, { model:
|
|
2114
|
-
}], ["__scopeId", "data-v-c1c7385b"]]), TransactorSettings:
|
|
2115
|
-
const e2 =
|
|
2111
|
+
return r.openBlock(), r.createBlock(h2, { model: i2.formModel, "label-width": "110px" }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.name = e3), "i18n-key": n2.tache.i18nKey ? n2.tache.i18nKey : "name." + i2.formModel.id, onSetI18n: n2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.code") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.id = e3), onBlur: n2.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.task.taskTitle") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.tache.taskTitle, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.tache.taskTitle = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.emailNotification") }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: n2.tache.mailNotice, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => n2.tache.mailNotice = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.handlingPage") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.tache.taskUrl, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => n2.tache.taskUrl = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.remarks") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.tache.remark, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => n2.tache.remark = e3), type: "textarea", autosize: "" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
2112
|
+
}], ["__scopeId", "data-v-c1c7385b"]]), TransactorSettings: nl, PermissionSettings: D({ name: "PermissionSettings", components: { AdditionalCondition: Jt }, props: { modelValue: { type: Object, default: null } }, data() {
|
|
2113
|
+
const e2 = N(this.modelValue), t2 = ["viewOpinion", "viewMeetingResult", "viewVoteResult", "viewFlowHistory", "printForm"];
|
|
2116
2114
|
t2.forEach((t3) => {
|
|
2117
2115
|
e2[t3 + "Checkbox"] = !!this.modelValue[t3].condition;
|
|
2118
2116
|
});
|
|
@@ -2129,9 +2127,9 @@
|
|
|
2129
2127
|
t2.attachment[o2] || (t2.attachment[o2] = {}), t2.attachment[o2].permission = e2.attachment[o2].permission, e2.attachment[o2].permission && e2.attachment[o2 + "Checkbox"] ? t2.attachment[o2].condition = e2.attachment[o2].condition : t2.attachment[o2].condition = "";
|
|
2130
2128
|
}), this.$emit("update:modelValue", t2);
|
|
2131
2129
|
}, { deep: true });
|
|
2132
|
-
}, methods: {} }, [["render", function(e2, t2, o2, l2,
|
|
2130
|
+
}, methods: {} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2133
2131
|
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-checkbox"), d2 = r.resolveComponent("additional-condition"), c2 = r.resolveComponent("el-form-item"), m2 = r.resolveComponent("el-card"), u2 = r.resolveComponent("el-form");
|
|
2134
|
-
return r.openBlock(), r.createBlock(u2, { model:
|
|
2132
|
+
return r.openBlock(), r.createBlock(u2, { model: i2.formModel }, { default: r.withCtx(() => [r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowViews") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.viewOpinion.permission, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.viewOpinion.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewOpinion.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: i2.formModel.viewOpinionCheckbox, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.viewOpinionCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.viewOpinion.permission && i2.formModel.viewOpinionCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: i2.formModel.viewOpinion.condition, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.formModel.viewOpinion.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowToViewCountersignatureResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.viewMeetingResult.permission, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.formModel.viewMeetingResult.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewMeetingResult.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: i2.formModel.viewMeetingResultCheckbox, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.formModel.viewMeetingResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.viewMeetingResult.permission && i2.formModel.viewMeetingResultCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: i2.formModel.viewMeetingResult.condition, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.formModel.viewMeetingResult.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowToViewVotingResults") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.viewVoteResult.permission, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.formModel.viewVoteResult.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewVoteResult.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: i2.formModel.viewVoteResultCheckbox, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.formModel.viewVoteResultCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.viewVoteResult.permission && i2.formModel.viewVoteResultCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: i2.formModel.viewVoteResult.condition, "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => i2.formModel.viewVoteResult.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowToViewFlowHistory") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.viewFlowHistory.permission, "onUpdate:modelValue": t2[9] || (t2[9] = (e3) => i2.formModel.viewFlowHistory.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.viewFlowHistory.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: i2.formModel.viewFlowHistoryCheckbox, "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => i2.formModel.viewFlowHistoryCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.viewFlowHistory.permission && i2.formModel.viewFlowHistoryCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: i2.formModel.viewFlowHistory.condition, "onUpdate:modelValue": t2[11] || (t2[11] = (e3) => i2.formModel.viewFlowHistory.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.allowFormsToPrint") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.printForm.permission, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => i2.formModel.printForm.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.printForm.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: i2.formModel.printFormCheckbox, "onUpdate:modelValue": t2[13] || (t2[13] = (e3) => i2.formModel.printFormCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.printForm.permission && i2.formModel.printFormCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: i2.formModel.printForm.condition, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => i2.formModel.printForm.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"]), r.createVNode(c2, { label: e2.$t("workflowEditor.task.attachmentAuthority") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attachment.permission, "onUpdate:modelValue": t2[15] || (t2[15] = (e3) => i2.formModel.attachment.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), i2.formModel.attachment.permission ? (r.openBlock(), r.createBlock(m2, { key: 0, class: "box-card" }, { default: r.withCtx(() => [r.createVNode(c2, { label: e2.$t("workflowEditor.task.downloadAttachment") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.attachment.download.permission, "onUpdate:modelValue": t2[16] || (t2[16] = (e3) => i2.formModel.attachment.download.permission = e3) }, null, 8, ["modelValue"]), i2.formModel.attachment.download.permission ? (r.openBlock(), r.createBlock(s2, { key: 0, modelValue: i2.formModel.attachment.downloadCheckbox, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => i2.formModel.attachment.downloadCheckbox = e3) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.additionalConditions")), 1)]), _: 1 }, 8, ["modelValue"])) : r.createCommentVNode("", true), i2.formModel.attachment.download.permission && i2.formModel.attachment.downloadCheckbox ? (r.openBlock(), r.createBlock(d2, { key: 1, modelValue: i2.formModel.attachment.download.condition, "onUpdate:modelValue": t2[18] || (t2[18] = (e3) => i2.formModel.attachment.download.condition = e3) }, null, 8, ["modelValue"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["label"])]), _: 1 })) : r.createCommentVNode("", true), r.createVNode(c2, { label: e2.$t("workflowEditor.task.bodyPermission") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.officialText.permission, "onUpdate:modelValue": t2[19] || (t2[19] = (e3) => i2.formModel.officialText.permission = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
2135
2133
|
}], ["__scopeId", "data-v-5fb29fef"]]), NoticeReminder: Nl, Events: ml }, props: { model: { type: Object, default: null } }, data() {
|
|
2136
2134
|
return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
2137
2135
|
}, computed: { formModel() {
|
|
@@ -2143,11 +2141,11 @@
|
|
|
2143
2141
|
this.model.name = e2;
|
|
2144
2142
|
});
|
|
2145
2143
|
}, methods: { handleClick(e2, t2) {
|
|
2146
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2144
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2147
2145
|
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("transactor-settings"), c2 = r.resolveComponent("notice-reminder"), m2 = r.resolveComponent("events"), u2 = r.resolveComponent("permission-settings"), p2 = r.resolveComponent("el-tabs"), h2 = r.resolveComponent("el-dialog");
|
|
2148
|
-
return r.openBlock(), r.createBlock(h2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfCCTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue:
|
|
2146
|
+
return r.openBlock(), r.createBlock(h2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfCCTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.activeTab = e3), type: "border-card", onTabClick: n2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, "onUpdate:id": t2[0] || (t2[0] = (e3) => o2.model.ref.attr.id = e3), name: o2.model.ref.attr.name, "onUpdate:name": t2[1] || (t2[1] = (e3) => o2.model.ref.attr.name = e3), model: o2.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.settingOfHandler"), name: "transactors" }, { default: r.withCtx(() => [r.createVNode(d2, { model: o2.model.ref.transactorSettings, "used-in": "CopyTask" }, null, 8, ["model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.reminderSettings"), name: "reminders" }, { default: r.withCtx(() => [r.createVNode(c2, { "reminder-value": o2.model.ref.reminder, "task-notice-value": o2.model.ref.taskNotice }, null, 8, ["reminder-value", "task-notice-value"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.eventProcessing"), name: "events" }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: o2.model.ref.events, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.ref.events = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.task.permissionSettings"), name: "permissions" }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: o2.model.ref.permissionSettings, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.ref.permissionSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
2149
2147
|
}], ["__scopeId", "data-v-af76d417"]]);
|
|
2150
|
-
const
|
|
2148
|
+
const Jl = D({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: D({ name: "BasicProperties", components: { TaskTitle: ht, i18nInput: eo }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
2151
2149
|
return { formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
2152
2150
|
}, computed: { tache() {
|
|
2153
2151
|
return this.model;
|
|
@@ -2156,12 +2154,12 @@
|
|
|
2156
2154
|
this.$emit("update:name", e2);
|
|
2157
2155
|
});
|
|
2158
2156
|
}, methods: { validateId() {
|
|
2159
|
-
|
|
2157
|
+
E(this);
|
|
2160
2158
|
}, setI18nValue(e2) {
|
|
2161
2159
|
this.tache.i18nKey = e2;
|
|
2162
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2160
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2163
2161
|
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("el-form");
|
|
2164
|
-
return r.openBlock(), r.createBlock(u2, { model:
|
|
2162
|
+
return r.openBlock(), r.createBlock(u2, { model: i2.formModel, "label-width": "110px" }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.name") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.name = e3), "i18n-key": n2.tache.i18nKey ? n2.tache.i18nKey : "name." + i2.formModel.id, onSetI18n: n2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.code") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.id = e3), onBlur: n2.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.task.custombeanName") }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: n2.tache.beanName, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.tache.beanName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
2165
2163
|
}], ["__scopeId", "data-v-6aef99ff"]]) }, props: { model: { type: Object, default: null } }, data() {
|
|
2166
2164
|
return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
2167
2165
|
}, computed: { formModel() {
|
|
@@ -2173,11 +2171,11 @@
|
|
|
2173
2171
|
this.model.name = e2;
|
|
2174
2172
|
});
|
|
2175
2173
|
}, methods: { handleClick(e2, t2) {
|
|
2176
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2174
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2177
2175
|
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("el-tabs"), c2 = r.resolveComponent("el-dialog");
|
|
2178
|
-
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfAutoTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[3] || (t2[3] = (t3) => e2.$emit("open")), onOpend: t2[4] || (t2[4] = (t3) => e2.$emit("opend")), onClose: t2[5] || (t2[5] = (t3) => e2.$emit("close")), onClosed: t2[6] || (t2[6] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue:
|
|
2179
|
-
}], ["__scopeId", "data-v-adb7c2ff"]]), Gl = { style: { width: "100%" } },
|
|
2180
|
-
const
|
|
2176
|
+
return r.openBlock(), r.createBlock(c2, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfAutoTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[3] || (t2[3] = (t3) => e2.$emit("open")), onOpend: t2[4] || (t2[4] = (t3) => e2.$emit("opend")), onClose: t2[5] || (t2[5] = (t3) => e2.$emit("close")), onClosed: t2[6] || (t2[6] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.activeTab = e3), type: "border-card", onTabClick: n2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, "onUpdate:id": t2[0] || (t2[0] = (e3) => o2.model.ref.attr.id = e3), name: o2.model.ref.attr.name, "onUpdate:name": t2[1] || (t2[1] = (e3) => o2.model.ref.attr.name = e3), model: o2.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
2177
|
+
}], ["__scopeId", "data-v-adb7c2ff"]]), Gl = { style: { width: "100%" } }, ql = { key: 0, style: { "margin-right": "12px" } };
|
|
2178
|
+
const Kl = D({ name: "BasicProperties", components: { FieldMappings: D({ name: "FieldMappings", components: { FormFields: mt }, props: { modelValue: { type: Object, default: null }, srcLabel: { type: String, default: null }, targetLabel: { type: String, default: null }, srcFields: { type: Array, default: null }, targetFields: { type: Array, default: null }, labelTittle: { type: String, default: null } }, data() {
|
|
2181
2179
|
let e2 = [];
|
|
2182
2180
|
return void 0 !== this.modelValue.field && (Array.isArray(this.modelValue.field) ? e2 = this.modelValue.field : e2.push(this.modelValue.field)), { tableData: e2, currentRow: null, showSourceFields: false, showTargetFields: false };
|
|
2183
2181
|
}, computed: { formFields() {
|
|
@@ -2191,9 +2189,9 @@
|
|
|
2191
2189
|
const t2 = (this.srcFields || this.targetFields).filter((t3) => t3.name === e2);
|
|
2192
2190
|
return t2.length > 0 ? t2[0].label : e2;
|
|
2193
2191
|
}, showSourceFieldLabel(e2) {
|
|
2194
|
-
return this.srcFields ? this.getSubFormFieldLabel(e2) :
|
|
2192
|
+
return this.srcFields ? this.getSubFormFieldLabel(e2) : ut(e2);
|
|
2195
2193
|
}, showTargetFieldLabel(e2) {
|
|
2196
|
-
return this.targetFields ? this.getSubFormFieldLabel(e2) :
|
|
2194
|
+
return this.targetFields ? this.getSubFormFieldLabel(e2) : ut(e2);
|
|
2197
2195
|
}, add() {
|
|
2198
2196
|
for (let e3 = 0; e3 < this.tableData.length; e3++)
|
|
2199
2197
|
if ("" === this.tableData[e3].source || "" === this.tableData[e3].target)
|
|
@@ -2220,10 +2218,10 @@
|
|
|
2220
2218
|
"" === e2 && this.$alert(this.$t("workflowEditorMessage.dataCannotBeEmpty", { data: this.targetLabel }));
|
|
2221
2219
|
}, selectField(e2) {
|
|
2222
2220
|
this.showSourceFields && (this.currentRow.source = e2, this.showSourceFields = false), this.showTargetFields && (this.currentRow.target = e2, this.showTargetFields = false), this.tableData, this.srcFields, this.targetFields;
|
|
2223
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2221
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2224
2222
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("el-table-column"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-table"), u2 = r.resolveComponent("form-fields");
|
|
2225
|
-
return r.openBlock(), r.createElementBlock("div", Gl, [r.createVNode(s2, { style: { "align-items": "center" } }, { default: r.withCtx(() => [o2.labelTittle ? (r.openBlock(), r.createElementBlock("span",
|
|
2226
|
-
}]]), i18nInput:
|
|
2223
|
+
return r.openBlock(), r.createElementBlock("div", Gl, [r.createVNode(s2, { style: { "align-items": "center" } }, { default: r.withCtx(() => [o2.labelTittle ? (r.openBlock(), r.createElementBlock("span", ql, r.toDisplayString(o2.labelTittle), 1)) : r.createCommentVNode("", true), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), r.createVNode(m2, { ref: "table", data: i2.tableData, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: n2.handleCurrentChange }, { default: r.withCtx(() => [r.createVNode(d2, { type: "index", width: "50" }), r.createVNode(d2, { prop: "source", label: o2.srcLabel }, { default: r.withCtx((o3) => [r.createVNode(c2, { value: n2.showSourceFieldLabel(o3.row.source), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onClick: t2[0] || (t2[0] = (e3) => i2.showSourceFields = true) }, null, 8, ["value", "placeholder"])]), _: 1 }, 8, ["label"]), r.createVNode(d2, { prop: "target", label: o2.targetLabel }, { default: r.withCtx((o3) => [r.createVNode(c2, { value: n2.showTargetFieldLabel(o3.row.target), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onClick: t2[1] || (t2[1] = (e3) => i2.showTargetFields = true) }, null, 8, ["value", "placeholder"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), i2.showSourceFields || i2.showTargetFields ? (r.openBlock(), r.createBlock(u2, { key: 0, fields: n2.formFields, onClose: n2.selectField }, null, 8, ["fields", "onClose"])) : r.createCommentVNode("", true)]);
|
|
2224
|
+
}]]), i18nInput: eo, TaskTitle: ht }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
2227
2225
|
return { selectedProcess: [], processes: [], subprocessFormFields: [], formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
2228
2226
|
}, computed: { tache() {
|
|
2229
2227
|
return this.model;
|
|
@@ -2256,9 +2254,9 @@
|
|
|
2256
2254
|
}, setDefaultSelectedProcessWhenUpdate(e2, t2) {
|
|
2257
2255
|
let o2, l2;
|
|
2258
2256
|
for (var r2 = 0; r2 < e2.length; r2++) {
|
|
2259
|
-
const
|
|
2260
|
-
if (
|
|
2261
|
-
l2 =
|
|
2257
|
+
const i2 = e2[r2].value, n2 = e2[r2].children.filter(this.filterProcess(t2));
|
|
2258
|
+
if (n2.length > 0) {
|
|
2259
|
+
l2 = i2, o2 = n2[0];
|
|
2262
2260
|
break;
|
|
2263
2261
|
}
|
|
2264
2262
|
}
|
|
@@ -2270,30 +2268,30 @@
|
|
|
2270
2268
|
const o2 = t2.value, l2 = o2.substring(o2.indexOf("/") + 1);
|
|
2271
2269
|
return e2 === l2;
|
|
2272
2270
|
}, validateId() {
|
|
2273
|
-
|
|
2271
|
+
E(this);
|
|
2274
2272
|
}, setI18nValue(e2) {
|
|
2275
2273
|
this.formModel.tache.i18nKey = e2;
|
|
2276
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2274
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2277
2275
|
const a2 = r.resolveComponent("i18n-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-col"), c2 = r.resolveComponent("el-input"), m2 = r.resolveComponent("el-row"), u2 = r.resolveComponent("task-title"), p2 = r.resolveComponent("el-cascader"), h2 = r.resolveComponent("el-switch"), f2 = r.resolveComponent("el-radio"), w2 = r.resolveComponent("el-radio-group"), g2 = r.resolveComponent("field-mappings"), C2 = r.resolveComponent("el-form");
|
|
2278
|
-
return r.openBlock(), r.createBlock(C2, { model:
|
|
2276
|
+
return r.openBlock(), r.createBlock(C2, { model: i2.formModel }, { default: r.withCtx(() => [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.name"), "label-width": "50px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: i2.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.formModel.name = e3), "i18n-key": i2.formModel.tache.i18nKey ? i2.formModel.tache.i18nKey : "name." + i2.formModel.id, onSetI18n: n2.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), r.createVNode(d2, { span: 12 }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.code"), "label-width": "50px" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: i2.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.formModel.id = e3), onBlur: n2.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), r.createVNode(s2, { label: e2.$t("workflowEditor.task.taskTitle") }, { default: r.withCtx(() => [r.createVNode(u2, { modelValue: n2.tache.taskTitle, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => n2.tache.taskTitle = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.subprocess"), "label-width": "60px" }, { default: r.withCtx(() => [r.createVNode(p2, { modelValue: i2.selectedProcess, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.selectedProcess = e3), "show-all-levels": false, options: i2.processes, onChange: n2.handleChange }, null, 8, ["modelValue", "options", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.subprocessIsSharedForm"), "label-width": "140px" }, { default: r.withCtx(() => [r.createVNode(h2, { modelValue: i2.formModel.tache.isSharedForm, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.formModel.tache.isSharedForm = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(w2, { modelValue: i2.formModel.tache.moreTransactor, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => i2.formModel.tache.moreTransactor = e3) }, { default: r.withCtx(() => [r.createVNode(f2, { label: false }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.anyOneCanHandleIt")), 1)]), _: 1 }), r.createVNode(f2, { label: true }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.task.forAll")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"]), r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(g2, { "label-tittle": e2.$t("workflowEditor.process.transferValueFromMainFormToSubForm"), modelValue: i2.formModel.tache.parameters, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => i2.formModel.tache.parameters = e3), "src-label": e2.$t("workflowEditor.process.fieldsOfTheMainForm"), "target-label": e2.$t("workflowEditor.process.fieldsOfSubform"), "target-fields": i2.subprocessFormFields }, null, 8, ["label-tittle", "modelValue", "src-label", "target-label", "target-fields"])]), _: 1 }), r.createVNode(s2, null, { default: r.withCtx(() => [r.createVNode(g2, { "label-tittle": e2.$t("workflowEditor.process.subformReturnsResultsToMainForm"), modelValue: i2.formModel.tache.result, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.formModel.tache.result = e3), "src-label": e2.$t("workflowEditor.process.fieldsOfSubform"), "target-label": e2.$t("workflowEditor.process.fieldsOfTheMainForm"), "src-fields": i2.subprocessFormFields }, null, 8, ["label-tittle", "modelValue", "src-label", "target-label", "src-fields"])]), _: 1 })]), _: 1 }, 8, ["model"]);
|
|
2279
2277
|
}]]);
|
|
2280
|
-
const
|
|
2278
|
+
const Xl = D({ name: "Events", props: { modelValue: { type: Object, default: null } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2281
2279
|
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form");
|
|
2282
2280
|
return r.openBlock(), r.createBlock(d2, null, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.eventsTriggeredBeforeStartingASubprocess"), "label-width": "150px" }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.modelValue.beforeStart, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => o2.modelValue.beforeStart = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.triggerSubprocessEndEvent") }, { default: r.withCtx(() => [r.createVNode(a2, { modelValue: o2.modelValue.end, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o2.modelValue.end = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 });
|
|
2283
2281
|
}]]);
|
|
2284
|
-
const
|
|
2282
|
+
const Yl = D({ name: "SubprocessPropertiesEditor", components: { BasicProperties: Kl, SubprocessTransactorSettings: D({ name: "SubprocessTransactorSettings", components: { TransactorSettings: nl }, props: { modelValue: { type: Object, default: null } }, data() {
|
|
2285
2283
|
let e2 = false;
|
|
2286
2284
|
this.modelValue.userCondition && (e2 = true);
|
|
2287
|
-
let t2 =
|
|
2285
|
+
let t2 = N(this.modelValue);
|
|
2288
2286
|
return t2.userCondition || (t2 = { userCondition: "${instanceCreator}", additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }), { model: { showTransactorSettings: e2, transactorSettings: t2 } };
|
|
2289
2287
|
}, mounted() {
|
|
2290
2288
|
this.$watch("model", function(e2) {
|
|
2291
2289
|
e2.showTransactorSettings ? this.$emit("update:modelValue", e2.transactorSettings) : this.$emit("update:modelValue", {});
|
|
2292
2290
|
}, { deep: true });
|
|
2293
|
-
} }, [["render", function(e2, t2, o2, l2,
|
|
2291
|
+
} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2294
2292
|
const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("transactor-settings", true);
|
|
2295
|
-
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.setTheHandlerOfTheFirstPhaseOfTheSubProcess")), 1), r.createVNode(a2, { modelValue:
|
|
2296
|
-
}]]), Events:
|
|
2293
|
+
return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(s2, null, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditor.process.setTheHandlerOfTheFirstPhaseOfTheSubProcess")), 1), r.createVNode(a2, { modelValue: i2.model.showTransactorSettings, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.model.showTransactorSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }), i2.model.showTransactorSettings ? (r.openBlock(), r.createBlock(d2, { key: 0, "is-subprocess": true, model: i2.model.transactorSettings }, null, 8, ["model"])) : r.createCommentVNode("", true)]);
|
|
2294
|
+
}]]), Events: Xl }, props: { model: { type: Object, default: null } }, data: () => ({ activeTab: "basicProperties", dialogVisible: true }), computed: { formModel() {
|
|
2297
2295
|
return this.model.ref;
|
|
2298
2296
|
} }, mounted() {
|
|
2299
2297
|
this.$watch("model.ref.attr.id", function(e2, t2) {
|
|
@@ -2302,21 +2300,21 @@
|
|
|
2302
2300
|
this.model.name = e2;
|
|
2303
2301
|
});
|
|
2304
2302
|
}, methods: { handleClick(e2, t2) {
|
|
2305
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2303
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2306
2304
|
const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("subprocess-transactor-settings"), c2 = r.resolveComponent("events"), m2 = r.resolveComponent("el-tabs"), u2 = r.resolveComponent("el-dialog");
|
|
2307
|
-
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.process.propertiesOfSubprocesses"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue:
|
|
2308
|
-
}], ["__scopeId", "data-v-bd66d235"]]),
|
|
2309
|
-
const
|
|
2310
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
2311
|
-
}], ["__scopeId", "data-v-ac799913"]]),
|
|
2305
|
+
return r.openBlock(), r.createBlock(u2, { "model-value": "", title: e2.$t("workflowEditor.process.propertiesOfSubprocesses"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: t2[5] || (t2[5] = (t3) => e2.$emit("open")), onOpend: t2[6] || (t2[6] = (t3) => e2.$emit("opend")), onClose: t2[7] || (t2[7] = (t3) => e2.$emit("close")), onClosed: t2[8] || (t2[8] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createVNode(m2, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => i2.activeTab = e3), type: "border-card", onTabClick: n2.handleClick }, { default: r.withCtx(() => [r.createVNode(s2, { label: e2.$t("workflowEditor.process.basicProperties"), name: "basicProperties" }, { default: r.withCtx(() => [r.createVNode(a2, { id: o2.model.ref.attr.id, "onUpdate:id": t2[0] || (t2[0] = (e3) => o2.model.ref.attr.id = e3), name: o2.model.ref.attr.name, "onUpdate:name": t2[1] || (t2[1] = (e3) => o2.model.ref.attr.name = e3), model: o2.model.ref }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.settingOfHandler"), name: "transactors" }, { default: r.withCtx(() => [r.createVNode(d2, { modelValue: o2.model.ref.transactorSettings, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => o2.model.ref.transactorSettings = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), r.createVNode(s2, { label: e2.$t("workflowEditor.process.eventProcessing"), name: "events" }, { default: r.withCtx(() => [r.createVNode(c2, { modelValue: o2.model.ref.events, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o2.model.ref.events = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
2306
|
+
}], ["__scopeId", "data-v-bd66d235"]]), Ql = { class: "tooltip" }, Zl = ["innerHTML"];
|
|
2307
|
+
const er = D({ name: "TacheHistoryTooltip", props: { content: { type: String, default: "" } }, methods: {} }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2308
|
+
return r.openBlock(), r.createElementBlock("div", Ql, [r.createElementVNode("div", { innerHTML: o2.content }, null, 8, Zl)]);
|
|
2309
|
+
}], ["__scopeId", "data-v-ac799913"]]), tr = { name: "Canvas", components: { Start: j, End: K, HumanTask: oe, Decision: ae, Subprocess: me, CustomTask: fe, Fork: be, Join: Ne, HumanDecision: De, CopyTask: Be, Transition: et, VirtualTransition: lt, SelectionRegion: nt, HumanTaskPropertiesEditor: xl, ProcessPropertiesEditor: Al, DecisionPropertiesEditor: Ul, TransitionPropertiesEditor: Ll, ForkPropertiesEditor: Hl, JoinPropertiesEditor: zl, HumanDecisionPropertiesEditor: Wl, CopyTaskPropertiesEditor: jl, SubprocessPropertiesEditor: Yl, TacheHistoryTooltip: er, AutoTask: Re, AutoTaskPropertiesEditor: Jl }, props: { process: { type: Object, default: null }, showHistory: { type: Boolean, default: false } }, data: function() {
|
|
2312
2310
|
return { inputArea: null, currentPosition: null, originPosition: null, offset: null, startPoint: null, region: null, endPoint: null, transitionsInRegion: [], showTacheHistory: false, tooltipPosition: null };
|
|
2313
2311
|
}, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "isMovingTache", "mouseDownPosition", "startJoint", "endJoint", "isDrawingRegion", "isMovingRegion", "selectedTransition", "selectedTaches", "resizerToMove", "draggerToMove", "controlPointToMove", "propertiesEditorFor", "contextMenuVisible"]) }, watch: { propertiesEditorFor(e2, t2) {
|
|
2314
2312
|
} }, mounted: function() {
|
|
2315
2313
|
}, methods: { ...t.mapMutations("wfEditor", ["setTaches", "setTransitions", "resetState", "setMovingTache", "stopDrawingLine", "setSelectedTaches", "setDrawingRegion", "setResizerToMove", "setDraggerToMove", "setControlPointToMove", "setPropertiesEditorFor"]), forbidSelection: () => false, add: function() {
|
|
2316
2314
|
}, mousedown(e2) {
|
|
2317
|
-
this.unselectAll(), this.setDrawingRegion(true), this.startPoint =
|
|
2315
|
+
this.unselectAll(), this.setDrawingRegion(true), this.startPoint = C(e2);
|
|
2318
2316
|
}, mousemove(e2) {
|
|
2319
|
-
this.showHistory || (!this.originPosition && this.mouseDownPosition && (this.originPosition = this.mouseDownPosition), this.currentPosition =
|
|
2317
|
+
this.showHistory || (!this.originPosition && this.mouseDownPosition && (this.originPosition = this.mouseDownPosition), this.currentPosition = C(e2), this.isMovingTache && this.moveTache(this.selectedTaches[0]), this.drawVirtualSelectionRegion(), this.moveSelectionRegion(), this.resizeSelectedTache(), this.moveTransition(), this.adjustCurveLine(), this.originPosition = this.currentPosition);
|
|
2320
2318
|
}, mouseup(e2) {
|
|
2321
2319
|
this.isMovingTache && this.setMovingTache(false), this.startJoint && this.stopDrawingLine(), this.drawRegionWhenNeeded(), this.resizerToMove && this.setResizerToMove(null), this.resetMovedTransition();
|
|
2322
2320
|
}, mouseleave(e2) {
|
|
@@ -2326,7 +2324,7 @@
|
|
|
2326
2324
|
}, resetMovedTransition() {
|
|
2327
2325
|
this.draggerToMove && (this.draggerToMove.owner.startJoint = this.draggerToMove.originStartJoint, this.draggerToMove.owner.endJoint = this.draggerToMove.originEndJoint, this.setDraggerToMove(null));
|
|
2328
2326
|
}, unselectAll() {
|
|
2329
|
-
|
|
2327
|
+
k(), this.transitionsInRegion = [], this.startPoint = null, this.region = null;
|
|
2330
2328
|
}, selectComponents() {
|
|
2331
2329
|
if (!this.startPoint || !this.region)
|
|
2332
2330
|
return this.startPoint = null, void (this.region = null);
|
|
@@ -2344,9 +2342,9 @@
|
|
|
2344
2342
|
this.isDrawingRegion && this.startPoint && (this.region = function(e2, t2) {
|
|
2345
2343
|
if (!e2 || !t2)
|
|
2346
2344
|
return {};
|
|
2347
|
-
const { x: o2, y: l2 } = e2, { x: r2, y:
|
|
2348
|
-
var
|
|
2349
|
-
return o2 <= r2 ? l2 <=
|
|
2345
|
+
const { x: o2, y: l2 } = e2, { x: r2, y: i2 } = t2;
|
|
2346
|
+
var n2 = { x: 0, y: 0, width: Math.abs(r2 - o2), height: Math.abs(i2 - l2) };
|
|
2347
|
+
return o2 <= r2 ? l2 <= i2 ? (n2.x = o2, n2.y = l2) : (n2.x = o2, n2.y = i2) : l2 >= i2 ? (n2.x = r2, n2.y = i2) : (n2.x = r2, n2.y = l2), n2;
|
|
2350
2348
|
}(this.startPoint, this.currentPosition));
|
|
2351
2349
|
}, drawRealSelectionRegion() {
|
|
2352
2350
|
if (this.selectedTaches.length <= 1)
|
|
@@ -2354,8 +2352,8 @@
|
|
|
2354
2352
|
this.region = function(e2) {
|
|
2355
2353
|
let t2, o2, l2, r2;
|
|
2356
2354
|
t2 = o2 = 1e4, l2 = r2 = 0;
|
|
2357
|
-
for (const
|
|
2358
|
-
t2 >
|
|
2355
|
+
for (const i2 of e2)
|
|
2356
|
+
t2 > i2.x && (t2 = i2.x), o2 > i2.y && (o2 = i2.y), l2 < i2.x + i2.width && (l2 = i2.x + i2.width), r2 < i2.y + i2.height && (r2 = i2.y + i2.height);
|
|
2359
2357
|
return { x: t2 - 10, y: o2 - 10, width: l2 - t2 + 20, height: r2 - o2 + 20 };
|
|
2360
2358
|
}(this.selectedTaches);
|
|
2361
2359
|
}, moveSelectionRegion() {
|
|
@@ -2410,13 +2408,13 @@
|
|
|
2410
2408
|
}, hideTacheHistoryTooltip() {
|
|
2411
2409
|
this.showTacheHistory = false;
|
|
2412
2410
|
}, updateTacheHistoryTooltipPosition(e2) {
|
|
2413
|
-
const t2 =
|
|
2411
|
+
const t2 = C(e2);
|
|
2414
2412
|
this.tooltipPosition = { left: t2.x + "px", top: t2.y + "px" };
|
|
2415
|
-
} } },
|
|
2416
|
-
const
|
|
2413
|
+
} } }, or = { ref: "svgContainer", style: { position: "relative" } }, lr = r.createElementVNode("defs", null, [r.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [r.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
|
|
2414
|
+
const rr = D(tr, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2417
2415
|
const a2 = r.resolveComponent("virtual-transition"), s2 = r.resolveComponent("selection-region"), d2 = r.resolveComponent("tache-history-tooltip");
|
|
2418
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
2419
|
-
}]]), ir = { name: "ContextMenu", components: { IconSvg:
|
|
2416
|
+
return r.openBlock(), r.createElementBlock("div", or, [(r.openBlock(), r.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: t2[0] || (t2[0] = (...e3) => n2.mousedown && n2.mousedown(...e3)), onMousemove: t2[1] || (t2[1] = (...e3) => n2.mousemove && n2.mousemove(...e3)), onMouseup: t2[2] || (t2[2] = (...e3) => n2.mouseup && n2.mouseup(...e3)), onMouseleave: t2[3] || (t2[3] = (...e3) => n2.mouseleave && n2.mouseleave(...e3)), onDblclick: t2[4] || (t2[4] = (t3) => e2.setPropertiesEditorFor("Process")) }, [lr, (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.taches, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, onMouseenter: n2.showTacheHistoryTooltip, onMouseleave: n2.hideTacheHistoryTooltip, onMousemove: n2.updateTacheHistoryTooltipPosition }, null, 40, ["model", "onMouseenter", "onMouseleave", "onMousemove"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.transitions, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128)), r.createVNode(a2, { toPosition: e2.currentPosition }, null, 8, ["toPosition"]), r.createVNode(s2, { region: e2.region }, null, 8, ["region"])], 32)), !o2.showHistory && e2.propertiesEditorFor ? (r.openBlock(), r.createBlock(r.resolveDynamicComponent(e2.propertiesEditorFor + "PropertiesEditor"), { key: 0, model: e2.selectedTaches[0] || e2.selectedTransition || o2.process, onClose: t2[5] || (t2[5] = (t3) => e2.setPropertiesEditorFor("")) }, null, 40, ["model"])) : r.createCommentVNode("", true), o2.showHistory && e2.showTacheHistory ? (r.openBlock(), r.createBlock(d2, { key: 1, style: r.normalizeStyle(e2.tooltipPosition) }, null, 8, ["style"])) : r.createCommentVNode("", true)], 512);
|
|
2417
|
+
}]]), ir = { name: "ContextMenu", components: { IconSvg: P }, data() {
|
|
2420
2418
|
return { menusForTransition: [{ name: "switch-line-type-StraightLine", label: this.$t("workflowEditor.main.straightLine"), icon: "switch" }, { name: "switch-line-type-CurveLine", label: this.$t("workflowEditor.main.curveLine"), icon: "switch" }, { name: "switch-line-type-BrokenLine", label: this.$t("workflowEditor.main.brokenLine"), icon: "switch" }, { name: "remove", label: this.$t("workflowEditor.common.remove"), icon: "delete" }, { name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], menusForTache: [{ name: "remove", label: this.$t("workflowEditor.common.remove"), icon: "delete" }, { name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], menusForProcess: [{ name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], componentsWithoutPropertiesEditor: ["Start", "End"] };
|
|
2421
2419
|
}, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "selectedTransition", "selectedTaches"]), menuType() {
|
|
2422
2420
|
let e2 = "";
|
|
@@ -2436,22 +2434,22 @@
|
|
|
2436
2434
|
this.switchLineType(t2);
|
|
2437
2435
|
}
|
|
2438
2436
|
"remove" === e2 && ("Tache" === this.menuType ? this.taches.splice(this.taches.indexOf(this.selectedTaches[0]), 1) : "Transition" === this.menuType && this.transitions.splice(this.transitions.indexOf(this.selectedTransition), 1)), "properties" === e2 && ("Tache" === this.menuType ? this.setPropertiesEditorFor(this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type) : "Transition" === this.menuType ? this.setPropertiesEditorFor("Transition") : this.setPropertiesEditorFor("Process")), "copy" === e2 && this.setSourceComponentForCopy(this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type), this.setContextMenuVisible(false);
|
|
2439
|
-
} } },
|
|
2440
|
-
const
|
|
2437
|
+
} } }, nr = { class: "context-menu" }, ar = ["onMousedown"];
|
|
2438
|
+
const sr = { name: "WorkflowEditor", components: { WorkflowCanvas: rr, Toolbox: I, IconSvg: P, ContextMenu: D(ir, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2441
2439
|
const a2 = r.resolveComponent("icon-svg");
|
|
2442
|
-
return r.openBlock(), r.createElementBlock("ul",
|
|
2443
|
-
}], ["__scopeId", "data-v-7e8a1cf6"]]), AdminSaveDialog:
|
|
2440
|
+
return r.openBlock(), r.createElementBlock("ul", nr, [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.menus, (e3) => (r.openBlock(), r.createElementBlock("li", { key: e3.name, onMousedown: r.withModifiers((t3) => n2.execute(e3.name), ["stop"]) }, [r.createVNode(a2, { icon: e3.icon }, null, 8, ["icon"]), r.createElementVNode("span", null, r.toDisplayString(e3.label), 1)], 40, ar))), 128))]);
|
|
2441
|
+
}], ["__scopeId", "data-v-7e8a1cf6"]]), AdminSaveDialog: D({ name: "AdminSaveDialog", data: () => ({ dialogVisible: true }), methods: { updateWfVersion() {
|
|
2444
2442
|
this.$emit("update");
|
|
2445
2443
|
}, addWfVersion() {
|
|
2446
2444
|
this.$emit("add");
|
|
2447
|
-
} } }, [["render", function(e2, t2, o2, l2,
|
|
2445
|
+
} } }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2448
2446
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-dialog");
|
|
2449
|
-
return r.openBlock(), r.createBlock(s2, { "model-value": "", title: e2.$t("workflowEditorPublicModel.tipTitle"), center: true, top: "10vh", "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { footer: r.withCtx(() => [r.createVNode(a2, { onClick:
|
|
2447
|
+
return r.openBlock(), r.createBlock(s2, { "model-value": "", title: e2.$t("workflowEditorPublicModel.tipTitle"), center: true, top: "10vh", "append-to-body": "", onOpen: t2[1] || (t2[1] = (t3) => e2.$emit("open")), onOpend: t2[2] || (t2[2] = (t3) => e2.$emit("opend")), onClose: t2[3] || (t2[3] = (t3) => e2.$emit("close")), onClosed: t2[4] || (t2[4] = (t3) => e2.$emit("closed")) }, { footer: r.withCtx(() => [r.createVNode(a2, { onClick: n2.updateWfVersion }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.updateVersion")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { type: "primary", onClick: n2.addWfVersion }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorMessage.addVersion")), 1)]), _: 1 }, 8, ["onClick"]), r.createVNode(a2, { onClick: t2[0] || (t2[0] = (t3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: r.withCtx(() => [r.createElementVNode("div", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip")), 1), r.createElementVNode("ul", null, [r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip1")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip2")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip3")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip4")), 1)]), r.createElementVNode("div", null, r.toDisplayString(e2.$t("workflowEditorMessage.adminSaveTip5")), 1)]), _: 1 }, 8, ["title"]);
|
|
2450
2448
|
}]]) }, props: { code: { type: String, default: null }, version: { type: Number, default: null }, id: { type: Number, default: null }, readonly: { type: Boolean, default: false }, systemCode: { type: String, default: null }, systemPublishVersion: { type: Number, default: null }, pageCode: { type: String, default: null } }, data: function() {
|
|
2451
2449
|
return { activeTab: "canvas", count: 1, currentPosition: { x: 0, y: 0 }, process: null, definitionId: null, xml: "", contextMenuPosition: null, isAdminSave: false, isShowEnable: false, defVersion: 0, workflowDefVersionList: [], isShowDefVersionList: false, canvasKey: 0 };
|
|
2452
2450
|
}, computed: { ...t.mapGetters("wfEditor", ["componentToDraw", "taches", "selectedTaches", "transitions", "contextMenuVisible", "systemVersion", "tableCode", "pageCode", "sourceComponentType"]), ...t.mapGetters(["sidebar"]), componentInfo() {
|
|
2453
2451
|
return function(e2) {
|
|
2454
|
-
const t2 =
|
|
2452
|
+
const t2 = w().filter((t3) => t3.name === e2);
|
|
2455
2453
|
return t2.length > 0 ? t2[0] : null;
|
|
2456
2454
|
}(this.componentToDraw);
|
|
2457
2455
|
} }, watch: { activeTab(e2) {
|
|
@@ -2461,7 +2459,7 @@
|
|
|
2461
2459
|
}, sourceComponentType(e2) {
|
|
2462
2460
|
e2 && this.copyTache();
|
|
2463
2461
|
} }, created: function() {
|
|
2464
|
-
o.authApi.setSessionCache("wf_editor_systemVersion", this.systemPublishVersion), this.setPageCode(this.pageCode), this.systemCode && this.setSystemCode(this.systemCode), this.systemCode && this.getWorkflowDefVersionList(), this.clearCanvas(), this.id && (this.definitionId = this.id), this.code, this.id, this.code || this.id ? this.initShowDefinitionWhenUpdate(this.id, this.code, this.version) : (this.isShowEnable = false, window.$store.commit("wfEditor/setIsCreateDefinition", "true"), this.process =
|
|
2462
|
+
o.authApi.setSessionCache("wf_editor_systemVersion", this.systemPublishVersion), this.setPageCode(this.pageCode), this.systemCode && this.setSystemCode(this.systemCode), this.systemCode && this.getWorkflowDefVersionList(), this.clearCanvas(), this.id && (this.definitionId = this.id), this.code, this.id, this.code || this.id ? this.initShowDefinitionWhenUpdate(this.id, this.code, this.version) : (this.isShowEnable = false, window.$store.commit("wfEditor/setIsCreateDefinition", "true"), this.process = M.newProcess(), y(this.process));
|
|
2465
2463
|
}, mounted: function() {
|
|
2466
2464
|
}, methods: { ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setSystemCode", "setSystemVersion", "setProcessCode", "setPageCode", "setSourceComponentForCopy"]), initShowDefinitionWhenUpdate(e2, t2, o2) {
|
|
2467
2465
|
window.$store.commit("wfEditor/setIsCreateDefinition", "false");
|
|
@@ -2494,11 +2492,11 @@
|
|
|
2494
2492
|
}
|
|
2495
2493
|
}, initProcessByXml(e2, t2) {
|
|
2496
2494
|
if (e2) {
|
|
2497
|
-
const t3 = { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 }, o2 =
|
|
2495
|
+
const t3 = { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 }, o2 = i.xml2js(e2, t3);
|
|
2498
2496
|
b(o2.process), this.process = o2.process;
|
|
2499
2497
|
} else
|
|
2500
|
-
this.process =
|
|
2501
|
-
this.process && this.process.properties && this.process.properties.basicProperties ? this.setSystemCode(this.process.properties.basicProperties.systemCode) : this.setSystemCode(this.systemCode), this.process && this.process.attr && this.setProcessCode(this.process.attr.code), this.fetchFormFields(), this.clearCanvas(),
|
|
2498
|
+
this.process = M.newProcess(), this.initProcessBaseInfo(t2);
|
|
2499
|
+
this.process && this.process.properties && this.process.properties.basicProperties ? this.setSystemCode(this.process.properties.basicProperties.systemCode) : this.setSystemCode(this.systemCode), this.process && this.process.attr && this.setProcessCode(this.process.attr.code), this.fetchFormFields(), this.clearCanvas(), y(this.process), this.count = this.getMaxCount() + 1;
|
|
2502
2500
|
}, initProcessBaseInfo(e2) {
|
|
2503
2501
|
this.process.attr.name = e2.name, this.process.attr.code = e2.code, this.process.properties.basicProperties.systemCode = e2.systemCode, this.pageCode && (this.process.properties.parameterSettings || (this.process.properties.parameterSettings = {}), this.process.properties.parameterSettings.doTask || (this.process.properties.parameterSettings.doTask = {}), this.process.properties.parameterSettings.doTask.url = "page:" + this.pageCode);
|
|
2504
2502
|
}, fetchFormFields() {
|
|
@@ -2519,7 +2517,7 @@
|
|
|
2519
2517
|
}), t3.ref.g.coordinate = e3;
|
|
2520
2518
|
}
|
|
2521
2519
|
});
|
|
2522
|
-
let t2 =
|
|
2520
|
+
let t2 = i.json2xml({ process: e2 }, { attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
|
|
2523
2521
|
return t2 = '<?xml version="1.0" encoding="utf-8"?>\n' + t2, t2;
|
|
2524
2522
|
}, saveXml() {
|
|
2525
2523
|
const e2 = this.getProcessXml();
|
|
@@ -2570,7 +2568,7 @@
|
|
|
2570
2568
|
});
|
|
2571
2569
|
}, exportProcessFromClient() {
|
|
2572
2570
|
const e2 = new Blob([this.getProcessXml()], { type: "text/xml;charset=utf-8" });
|
|
2573
|
-
|
|
2571
|
+
n.saveAs(e2, this.process.attr.name + ".xml");
|
|
2574
2572
|
}, exportProcess() {
|
|
2575
2573
|
const e2 = this.getProcessXml();
|
|
2576
2574
|
this.$http({ method: "post", url: this.baseAPI + "/wf-editor/save-as-xmls", data: { xmlContent: e2 } }).then((e3) => {
|
|
@@ -2597,7 +2595,7 @@
|
|
|
2597
2595
|
this.componentToDraw && this.setComponentToDraw("");
|
|
2598
2596
|
}, addTache(e2) {
|
|
2599
2597
|
if (this.componentToDraw) {
|
|
2600
|
-
const t2 =
|
|
2598
|
+
const t2 = C(e2), o2 = M["new" + this.componentToDraw]();
|
|
2601
2599
|
o2.attr.id = this.componentToDraw.charAt(0).toLowerCase() + this.componentToDraw.substring(1) + "_" + this.count;
|
|
2602
2600
|
const l2 = { id: o2.attr.id, name: o2.attr.name, x: t2.x - this.componentInfo.width / 2, y: t2.y - this.componentInfo.height / 2, width: this.componentInfo.width, height: this.componentInfo.height, type: this.componentToDraw, isSelected: false };
|
|
2603
2601
|
l2.ref = o2, this.taches.push(l2), this.count++;
|
|
@@ -2631,83 +2629,19 @@
|
|
|
2631
2629
|
this.definitionId && this.$http.put(this.baseAPI + "/wf-editor/workflow-editors/" + this.definitionId + "/states").then(() => {
|
|
2632
2630
|
this.getWorkflowDefVersionList(), this.isShowEnable = false, this.$alert(this.$t("workflowEditorMessage.enabledSuccessfully"));
|
|
2633
2631
|
});
|
|
2634
|
-
} } },
|
|
2635
|
-
const
|
|
2632
|
+
} } }, dr = { style: { width: "100%", height: "100%", background: "#fff" } }, cr = { key: 0, class: "xml line-numbers" };
|
|
2633
|
+
const mr = D(sr, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2636
2634
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-option"), d2 = r.resolveComponent("el-select"), c2 = r.resolveComponent("el-row"), m2 = r.resolveComponent("toolbox"), u2 = r.resolveComponent("workflow-canvas"), p2 = r.resolveComponent("el-tab-pane"), h2 = r.resolveComponent("el-tabs"), f2 = r.resolveComponent("icon-svg"), w2 = r.resolveComponent("context-menu"), g2 = r.resolveComponent("admin-save-dialog"), C2 = r.resolveDirective("permission");
|
|
2637
|
-
return r.openBlock(), r.createElementBlock("div", { ref: "wfEditor", style: { position: "relative", height: "100%" }, onMousedown: t2[9] || (t2[9] = (t3) => e2.setContextMenuVisible(false)), onMousewheel: t2[10] || (t2[10] = (t3) => e2.setContextMenuVisible(false)) }, [r.createVNode(c2, { class: "button-area" }, { default: r.withCtx(() => [o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(a2, { key: 0, type: "primary", onClick:
|
|
2638
|
-
}], ["__scopeId", "data-v-865cb4ee"]])
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
},
|
|
2643
|
-
|
|
2644
|
-
}, resetState(e2) {
|
|
2645
|
-
e2.isMovingTache = false, e2.startJoint = null, e2.endJoint = null, e2.isDrawingRegion = false, e2.isMovingRegion = false, e2.resizerToMove = null, e2.draggerToMove = null, e2.controlPointToMove = null;
|
|
2646
|
-
}, stopDrawingLine(e2) {
|
|
2647
|
-
e2.startJoint = null, e2.endJoint = null;
|
|
2648
|
-
}, setStartJoint(e2, t2) {
|
|
2649
|
-
e2.startJoint = t2;
|
|
2650
|
-
}, setEndJoint(e2, t2) {
|
|
2651
|
-
e2.endJoint = t2;
|
|
2652
|
-
}, setMovingTache(e2, t2) {
|
|
2653
|
-
e2.isMovingTache = t2;
|
|
2654
|
-
}, setMouseDownPosition(e2, t2) {
|
|
2655
|
-
e2.mouseDownPosition = t2;
|
|
2656
|
-
}, setDrawingRegion(e2, t2) {
|
|
2657
|
-
e2.isDrawingRegion = t2;
|
|
2658
|
-
}, setMovingRegion(e2, t2) {
|
|
2659
|
-
e2.isMovingRegion = t2;
|
|
2660
|
-
}, setSelectedTaches(e2, t2) {
|
|
2661
|
-
e2.selectedTaches = t2;
|
|
2662
|
-
}, setSelectedTransition(e2, t2) {
|
|
2663
|
-
e2.selectedTransition = t2;
|
|
2664
|
-
}, setResizerToMove(e2, t2) {
|
|
2665
|
-
e2.resizerToMove = t2;
|
|
2666
|
-
}, setDraggerToMove(e2, t2) {
|
|
2667
|
-
e2.draggerToMove = t2;
|
|
2668
|
-
}, setPropertiesEditorFor(e2, t2) {
|
|
2669
|
-
e2.propertiesEditorFor = t2;
|
|
2670
|
-
}, setComponentToDraw(e2, t2) {
|
|
2671
|
-
e2.componentToDraw = t2;
|
|
2672
|
-
}, setControlPointToMove(e2, t2) {
|
|
2673
|
-
e2.controlPointToMove = t2;
|
|
2674
|
-
}, setFormFields(e2, t2) {
|
|
2675
|
-
e2.formFields = t2;
|
|
2676
|
-
}, setFormCode(e2, t2) {
|
|
2677
|
-
e2.formCode = t2;
|
|
2678
|
-
}, setFormFieldsWithSub(e2, t2) {
|
|
2679
|
-
e2.formFieldsWithSub = t2;
|
|
2680
|
-
}, setContextMenuVisible(e2, t2) {
|
|
2681
|
-
e2.contextMenuVisible = t2;
|
|
2682
|
-
}, setSystemCode(e2, t2) {
|
|
2683
|
-
e2.systemCode = t2;
|
|
2684
|
-
}, setProcessCode(e2, t2) {
|
|
2685
|
-
e2.processCode = t2;
|
|
2686
|
-
}, setProcessI18n(e2, t2) {
|
|
2687
|
-
e2.processI18n = t2;
|
|
2688
|
-
}, setSubtableConditionMap(e2, t2) {
|
|
2689
|
-
e2.subtableConditionMap = t2;
|
|
2690
|
-
}, setPropSettingKeyList(e2, t2) {
|
|
2691
|
-
e2.propSettingKeyList = t2;
|
|
2692
|
-
}, setSystemVersion(e2, t2) {
|
|
2693
|
-
e2.systemVersion = t2;
|
|
2694
|
-
}, setTableCode(e2, t2) {
|
|
2695
|
-
e2.tableCode = t2;
|
|
2696
|
-
}, setTableCode(e2, t2) {
|
|
2697
|
-
e2.tableCode = t2;
|
|
2698
|
-
}, setIsCreateDefinition(e2, t2) {
|
|
2699
|
-
e2.isCreateDefinition = t2;
|
|
2700
|
-
}, setIsHandleCreate(e2, t2) {
|
|
2701
|
-
e2.isHandleCreate = t2;
|
|
2702
|
-
}, setPageCode(e2, t2) {
|
|
2703
|
-
e2.pageCode = t2;
|
|
2704
|
-
}, setSourceComponentForCopy(e2, t2) {
|
|
2705
|
-
e2.sourceComponentType = t2;
|
|
2706
|
-
} } }, hr = ["src"];
|
|
2707
|
-
const fr = { name: "WfHistoryCanvas", components: { Start: z, End: G, HumanTask: te, Decision: ie, Subprocess: ce, CustomTask: he, Fork: be, Join: Te, HumanDecision: Me, CopyTask: Pe, Transition: Ze, TacheHistoryTooltip: tr, TacheSubprocessHistoryDialog: M({ name: "TacheSubprocessHistoryDialog", props: { workflowId: { type: Number, default: null } }, data: () => ({ dialogVisible: true }) }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2635
|
+
return r.openBlock(), r.createElementBlock("div", { ref: "wfEditor", style: { position: "relative", height: "100%" }, onMousedown: t2[9] || (t2[9] = (t3) => e2.setContextMenuVisible(false)), onMousewheel: t2[10] || (t2[10] = (t3) => e2.setContextMenuVisible(false)) }, [r.createVNode(c2, { class: "button-area" }, { default: r.withCtx(() => [o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(a2, { key: 0, type: "primary", onClick: n2.saveXml }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])), o2.readonly ? r.createCommentVNode("", true) : r.withDirectives((r.openBlock(), r.createBlock(a2, { key: 1, class: "button--default", onClick: n2.adminSave }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.adminSave")), 1)]), _: 1 }, 8, ["onClick"])), [[C2, "wf.workflowDefinition.adminSave"]]), e2.isShowEnable ? (r.openBlock(), r.createBlock(a2, { key: 2, class: "button--default", onClick: n2.enableWf }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.enable")), 1)]), _: 1 }, 8, ["onClick"])) : r.createCommentVNode("", true), r.createVNode(a2, { class: "button--default", onClick: n2.exportProcessFromClient }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.export")), 1)]), _: 1 }, 8, ["onClick"]), o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(a2, { key: 3, class: "button--default", onClick: n2.selectProcessFile }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.open")) + " ", 1), r.createElementVNode("input", { ref: "processFile", type: "file", name: "processFile", accept: ".xml", style: { display: "none" }, onChange: t2[0] || (t2[0] = (...e3) => n2.openXmlFromClient && n2.openXmlFromClient(...e3)) }, null, 544)]), _: 1 }, 8, ["onClick"])), r.createVNode(a2, { type: "primary", class: "button--return", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("back")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }), e2.isShowDefVersionList ? (r.openBlock(), r.createBlock(d2, { key: 4, modelValue: e2.defVersion, "onUpdate:modelValue": t2[2] || (t2[2] = (t3) => e2.defVersion = t3), style: { "padding-left": "10px", width: "200px" }, onChange: n2.changeDefVersion }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.workflowDefVersionList, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3.definitionVersion, label: e3.definitionVersion, value: e3.definitionVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }), r.createElementVNode("div", { class: "main", onMousedown: t2[4] || (t2[4] = (...e3) => n2.startDrag && n2.startDrag(...e3)), onMousemove: t2[5] || (t2[5] = (...e3) => n2.drag && n2.drag(...e3)), onMouseup: t2[6] || (t2[6] = (...e3) => n2.endDrag && n2.endDrag(...e3)), onMouseleave: t2[7] || (t2[7] = (...e3) => n2.clearStatus && n2.clearStatus(...e3)) }, [o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(m2, { key: 0, class: "toolbox", onselectstart: "return false", oncontextmenu: "return false" })), (r.openBlock(), r.createElementBlock("section", { class: "tabBox", key: e2.canvasKey }, [r.createVNode(h2, { modelValue: e2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (t3) => e2.activeTab = t3), class: "tabs" }, { default: r.withCtx(() => [r.createVNode(p2, { label: e2.$t("workflowEditorPublicModel.flowChart"), name: "canvas", class: "tab-pane" }, { default: r.withCtx(() => [r.createVNode(u2, { onselectstart: "return false", process: e2.process, class: "canvas", onMouseup: n2.addTache, onContextmenu: r.withModifiers(n2.showContextMenu, ["prevent"]) }, null, 8, ["process", "onMouseup", "onContextmenu"])]), _: 1 }, 8, ["label"]), r.createVNode(p2, { label: "XML", name: "xml", class: "tab-pane" }, { default: r.withCtx(() => [r.createElementVNode("div", dr, ["xml" === e2.activeTab ? (r.openBlock(), r.createElementBlock("pre", cr, [r.createElementVNode("code", { ref: "xml", class: "language-xml" }, r.toDisplayString(e2.xml), 513)])) : r.createCommentVNode("", true)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]))], 32), e2.componentToDraw ? (r.openBlock(), r.createBlock(f2, { key: 0, style: r.normalizeStyle({ height: n2.componentInfo.height, width: n2.componentInfo.width, color: n2.componentInfo.color, left: e2.currentPosition.x + "px", top: e2.currentPosition.y + "px" }), icon: n2.componentInfo.icon, class: "component-icon" }, null, 8, ["style", "icon"])) : r.createCommentVNode("", true), e2.contextMenuVisible ? (r.openBlock(), r.createBlock(w2, { key: 1, style: r.normalizeStyle({ position: "absolute", left: e2.contextMenuPosition.x + "px", top: e2.contextMenuPosition.y + "px" }) }, null, 8, ["style"])) : r.createCommentVNode("", true), e2.isAdminSave ? (r.openBlock(), r.createBlock(g2, { key: 2, onClose: t2[8] || (t2[8] = (t3) => e2.isAdminSave = false), onUpdate: n2.updateWfVersion, onAdd: n2.addWfVersion }, null, 8, ["onUpdate", "onAdd"])) : r.createCommentVNode("", true)], 544);
|
|
2636
|
+
}], ["__scopeId", "data-v-865cb4ee"]]);
|
|
2637
|
+
mr.install = function(e2) {
|
|
2638
|
+
e2.component(mr.name, mr);
|
|
2639
|
+
};
|
|
2640
|
+
const ur = { WorkflowEditor: mr }, pr = ["src"];
|
|
2641
|
+
const hr = { name: "WfHistoryCanvas", components: { Start: j, End: K, HumanTask: oe, Decision: ae, Subprocess: me, CustomTask: fe, Fork: be, Join: Ne, HumanDecision: De, CopyTask: Be, Transition: et, TacheHistoryTooltip: er, TacheSubprocessHistoryDialog: D({ name: "TacheSubprocessHistoryDialog", props: { workflowId: { type: Number, default: null } }, data: () => ({ dialogVisible: true }) }, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2708
2642
|
const a2 = r.resolveComponent("el-dialog");
|
|
2709
|
-
return r.openBlock(), r.createBlock(a2, { "model-value": "", title: e2.$t("workflowEditorPublicModel.subprocessTitle"), "close-on-click-modal": false, "append-to-body": "", width: "90%", top: "5vh", onOpen: t2[0] || (t2[0] = (t3) => e2.$emit("open")), onOpend: t2[1] || (t2[1] = (t3) => e2.$emit("opend")), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")), onClosed: t2[3] || (t2[3] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createElementVNode("iframe", { id: "_subprocess-content", src: "#/show-sub-wf-history?workflowId=" + o2.workflowId, name: "_subprocess-content", title: "Subprocess Content", frameborder: "0" }, null, 8,
|
|
2710
|
-
}], ["__scopeId", "data-v-2b195c05"]]), AutoTask:
|
|
2643
|
+
return r.openBlock(), r.createBlock(a2, { "model-value": "", title: e2.$t("workflowEditorPublicModel.subprocessTitle"), "close-on-click-modal": false, "append-to-body": "", width: "90%", top: "5vh", onOpen: t2[0] || (t2[0] = (t3) => e2.$emit("open")), onOpend: t2[1] || (t2[1] = (t3) => e2.$emit("opend")), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")), onClosed: t2[3] || (t2[3] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createElementVNode("iframe", { id: "_subprocess-content", src: "#/show-sub-wf-history?workflowId=" + o2.workflowId, name: "_subprocess-content", title: "Subprocess Content", frameborder: "0" }, null, 8, pr)]), _: 1 }, 8, ["title"]);
|
|
2644
|
+
}], ["__scopeId", "data-v-2b195c05"]]), AutoTask: Re }, props: { process: { type: Object, default: null }, histories: { type: Array, default: null }, currentTasks: { type: Array, default: null }, allProcessI18n: { type: Object, default: null } }, data: function() {
|
|
2711
2645
|
return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
|
|
2712
2646
|
}, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
|
|
2713
2647
|
}, methods: { getTacheClass(e2) {
|
|
@@ -2732,8 +2666,8 @@
|
|
|
2732
2666
|
return t2;
|
|
2733
2667
|
}, i18nOperation(e2) {
|
|
2734
2668
|
let t2, l2;
|
|
2735
|
-
const r2 = o.getLanguageWithLocale(),
|
|
2736
|
-
return
|
|
2669
|
+
const r2 = o.getLanguageWithLocale(), i2 = e2.bundleCode;
|
|
2670
|
+
return i2 && "" !== i2 && this.processI18n && (t2 = this.processI18n[i2]), t2 && t2.processName && (l2 = t2.processName[r2]), o.i18nOperation(e2, l2, t2, r2);
|
|
2737
2671
|
}, getCurrentTache(e2) {
|
|
2738
2672
|
let t2 = null;
|
|
2739
2673
|
for (const o2 of this.currentTasks)
|
|
@@ -2758,25 +2692,25 @@
|
|
|
2758
2692
|
}, hideTacheHistoryTooltip() {
|
|
2759
2693
|
this.showHistory = false;
|
|
2760
2694
|
}, updateTacheHistoryTooltipPosition(e2) {
|
|
2761
|
-
const t2 =
|
|
2695
|
+
const t2 = C(e2);
|
|
2762
2696
|
this.tooltipPosition = { left: t2.x + 5 + "px", top: t2.y + 5 + "px" };
|
|
2763
2697
|
}, showSubprocessHistory(e2) {
|
|
2764
2698
|
const t2 = this.getPassedTache(e2);
|
|
2765
2699
|
t2 && void 0 !== t2.hasChildren && true === t2.hasChildren && (t2.children && t2.children.length > 0 && (this.subWorkflowId = t2.children[0].workflowId), this.showSubprocessDialog = true);
|
|
2766
2700
|
}, closeSubprocessHistory() {
|
|
2767
2701
|
this.showSubprocessDialog = false;
|
|
2768
|
-
} } },
|
|
2769
|
-
const
|
|
2702
|
+
} } }, fr = { ref: "svgContainer", style: { position: "relative" } }, wr = r.createElementVNode("defs", null, [r.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [r.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
|
|
2703
|
+
const gr = D(hr, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2770
2704
|
const a2 = r.resolveComponent("tache-history-tooltip"), s2 = r.resolveComponent("tache-subprocess-history-dialog");
|
|
2771
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
2772
|
-
}]]),
|
|
2705
|
+
return r.openBlock(), r.createElementBlock("div", fr, [(r.openBlock(), r.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: t2[0] || (t2[0] = (...e3) => n2.mousedown && n2.mousedown(...e3)), onMousemove: t2[1] || (t2[1] = (...e3) => n2.mousemove && n2.mousemove(...e3)), onMouseup: t2[2] || (t2[2] = (...e3) => n2.mouseup && n2.mouseup(...e3)), onMouseleave: t2[3] || (t2[3] = (...e3) => n2.mouseleave && n2.mouseleave(...e3)) }, [wr, (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.taches, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, class: r.normalizeClass([n2.getTacheClass(e3)]), "display-mode": e3.displayMode, onMouseenter: (t3) => n2.showTacheHistoryTooltip(e3, t3), onMouseleave: (t3) => n2.hideTacheHistoryTooltip(e3), onMousemove: n2.updateTacheHistoryTooltipPosition, onClick: (t3) => n2.showSubprocessHistory(e3) }, null, 40, ["model", "class", "display-mode", "onMouseenter", "onMouseleave", "onMousemove", "onClick"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.transitions, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128))], 32)), e2.showHistory && e2.tacheHistoryInfo ? (r.openBlock(), r.createBlock(a2, { key: 0, style: r.normalizeStyle(e2.tooltipPosition), content: e2.tacheHistoryInfo }, null, 8, ["style", "content"])) : r.createCommentVNode("", true), e2.showSubprocessDialog ? (r.openBlock(), r.createBlock(s2, { key: 1, "workflow-id": e2.subWorkflowId, onClose: n2.closeSubprocessHistory }, null, 8, ["workflow-id", "onClose"])) : r.createCommentVNode("", true)], 512);
|
|
2706
|
+
}]]), Cr = { refresh() {
|
|
2773
2707
|
this.showHistory();
|
|
2774
|
-
} }, kr = { name: "WorkflowHistory", components: { WfHistoryCanvas:
|
|
2708
|
+
} }, kr = { name: "WorkflowHistory", components: { WfHistoryCanvas: gr }, props: { id: { type: Number, default: null } }, data: function() {
|
|
2775
2709
|
return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
|
|
2776
2710
|
}, computed: { ...t.mapGetters("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...t.mapGetters(["sidebar"]) }, watch: {}, created: function() {
|
|
2777
2711
|
this.showHistory();
|
|
2778
2712
|
}, mounted: function() {
|
|
2779
|
-
}, methods: { ...
|
|
2713
|
+
}, methods: { ...Cr, ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
|
|
2780
2714
|
this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((e2) => {
|
|
2781
2715
|
this.allProcessI18n = e2;
|
|
2782
2716
|
const t2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
|
|
@@ -2784,516 +2718,93 @@
|
|
|
2784
2718
|
let o2;
|
|
2785
2719
|
this.initProcessByXml(t3.xml), t3.histories && t3.histories.length > 0 && (o2 = t3.histories[0].bundleCode), !o2 && t3.currentTasks && t3.currentTasks.length > 0 && (o2 = t3.currentTasks[0].bundleCode), o2 && this.setProcessI18n(e2[o2]), this.histories = t3.histories, this.currentTasks = t3.currentTasks;
|
|
2786
2720
|
});
|
|
2787
|
-
}) : (this.process =
|
|
2721
|
+
}) : (this.process = M.newProcess(), y(this.process));
|
|
2788
2722
|
}, showContextMenu(e2) {
|
|
2789
2723
|
}, initProcessByXml(e2) {
|
|
2790
|
-
const t2 =
|
|
2791
|
-
b(t2.process), this.process = t2.process,
|
|
2792
|
-
} } },
|
|
2793
|
-
const
|
|
2724
|
+
const t2 = i.xml2js(e2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
|
|
2725
|
+
b(t2.process), this.process = t2.process, y(this.process);
|
|
2726
|
+
} } }, br = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, Vr = { class: "main" };
|
|
2727
|
+
const yr = D(kr, [["render", function(e2, t2, o2, l2, i2, n2) {
|
|
2794
2728
|
const a2 = r.resolveComponent("wf-history-canvas");
|
|
2795
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
2796
|
-
}], ["__scopeId", "data-v-
|
|
2797
|
-
|
|
2798
|
-
e2.component(
|
|
2729
|
+
return r.openBlock(), r.createElementBlock("div", br, [r.createElementVNode("div", Vr, [r.createElementVNode("section", null, [r.createVNode(a2, { onselectstart: "return false", process: e2.process, histories: e2.histories, "current-tasks": e2.currentTasks, "all-process-i18n": e2.allProcessI18n, "show-history": true, class: "canvas", onContextmenu: r.withModifiers(n2.showContextMenu, ["prevent"]) }, null, 8, ["process", "histories", "current-tasks", "all-process-i18n", "onContextmenu"])])])], 512);
|
|
2730
|
+
}], ["__scopeId", "data-v-14c5e870"]]);
|
|
2731
|
+
WorkflowEditor.install = function(e2) {
|
|
2732
|
+
e2.component(yr.name, yr);
|
|
2799
2733
|
};
|
|
2800
|
-
const Tr = {
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
}
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
}
|
|
2861
|
-
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
}), t2;
|
|
2871
|
-
}
|
|
2872
|
-
function Pr(e2) {
|
|
2873
|
-
for (var t2 = arguments.length, o2 = new Array(t2 > 1 ? t2 - 1 : 0), l2 = 1; l2 < t2; l2++)
|
|
2874
|
-
o2[l2 - 1] = arguments[l2];
|
|
2875
|
-
var r2 = 0, n2 = o2.length;
|
|
2876
|
-
return "function" == typeof e2 ? e2.apply(null, o2) : "string" == typeof e2 ? e2.replace(Dr, function(e3) {
|
|
2877
|
-
if ("%%" === e3)
|
|
2878
|
-
return "%";
|
|
2879
|
-
if (r2 >= n2)
|
|
2880
|
-
return e3;
|
|
2881
|
-
switch (e3) {
|
|
2882
|
-
case "%s":
|
|
2883
|
-
return String(o2[r2++]);
|
|
2884
|
-
case "%d":
|
|
2885
|
-
return Number(o2[r2++]);
|
|
2886
|
-
case "%j":
|
|
2887
|
-
try {
|
|
2888
|
-
return JSON.stringify(o2[r2++]);
|
|
2889
|
-
} catch (e4) {
|
|
2890
|
-
return "[Circular]";
|
|
2891
|
-
}
|
|
2892
|
-
break;
|
|
2893
|
-
default:
|
|
2894
|
-
return e3;
|
|
2895
|
-
}
|
|
2896
|
-
}) : e2;
|
|
2897
|
-
}
|
|
2898
|
-
function Br(e2, t2) {
|
|
2899
|
-
return null == e2 || (!("array" !== t2 || !Array.isArray(e2) || e2.length) || !(!function(e3) {
|
|
2900
|
-
return "string" === e3 || "url" === e3 || "hex" === e3 || "email" === e3 || "date" === e3 || "pattern" === e3;
|
|
2901
|
-
}(t2) || "string" != typeof e2 || e2));
|
|
2902
|
-
}
|
|
2903
|
-
function Or(e2, t2, o2) {
|
|
2904
|
-
var l2 = 0, r2 = e2.length;
|
|
2905
|
-
!function n2(i2) {
|
|
2906
|
-
if (i2 && i2.length)
|
|
2907
|
-
o2(i2);
|
|
2908
|
-
else {
|
|
2909
|
-
var a2 = l2;
|
|
2910
|
-
l2 += 1, a2 < r2 ? t2(e2[a2], n2) : o2([]);
|
|
2911
|
-
}
|
|
2912
|
-
}([]);
|
|
2913
|
-
}
|
|
2914
|
-
"undefined" != typeof process && process.env && "production" !== process.env.NODE_ENV && "undefined" != typeof window && "undefined" != typeof document && (Fr = function(e2, t2) {
|
|
2915
|
-
"undefined" != typeof console && console.warn && "undefined" == typeof ASYNC_VALIDATOR_NO_WARNING && t2.every(function(e3) {
|
|
2916
|
-
return "string" == typeof e3;
|
|
2917
|
-
});
|
|
2918
|
-
});
|
|
2919
|
-
var Ir = function(e2) {
|
|
2920
|
-
var t2, o2;
|
|
2921
|
-
function l2(t3, o3) {
|
|
2922
|
-
var l3;
|
|
2923
|
-
return (l3 = e2.call(this, "Async Validation Error") || this).errors = t3, l3.fields = o3, l3;
|
|
2924
|
-
}
|
|
2925
|
-
return o2 = e2, (t2 = l2).prototype = Object.create(o2.prototype), t2.prototype.constructor = t2, Er(t2, o2), l2;
|
|
2926
|
-
}(Mr(Error));
|
|
2927
|
-
function _r(e2, t2, o2, l2, r2) {
|
|
2928
|
-
if (t2.first) {
|
|
2929
|
-
var n2 = new Promise(function(t3, n3) {
|
|
2930
|
-
var i3 = function(e3) {
|
|
2931
|
-
var t4 = [];
|
|
2932
|
-
return Object.keys(e3).forEach(function(o3) {
|
|
2933
|
-
t4.push.apply(t4, e3[o3] || []);
|
|
2934
|
-
}), t4;
|
|
2935
|
-
}(e2);
|
|
2936
|
-
Or(i3, o2, function(e3) {
|
|
2937
|
-
return l2(e3), e3.length ? n3(new Ir(e3, $r(e3))) : t3(r2);
|
|
2938
|
-
});
|
|
2939
|
-
});
|
|
2940
|
-
return n2.catch(function(e3) {
|
|
2941
|
-
return e3;
|
|
2942
|
-
}), n2;
|
|
2943
|
-
}
|
|
2944
|
-
var i2 = true === t2.firstFields ? Object.keys(e2) : t2.firstFields || [], a2 = Object.keys(e2), s2 = a2.length, d2 = 0, c2 = [], m2 = new Promise(function(t3, n3) {
|
|
2945
|
-
var m3 = function(e3) {
|
|
2946
|
-
if (c2.push.apply(c2, e3), ++d2 === s2)
|
|
2947
|
-
return l2(c2), c2.length ? n3(new Ir(c2, $r(c2))) : t3(r2);
|
|
2948
|
-
};
|
|
2949
|
-
a2.length || (l2(c2), t3(r2)), a2.forEach(function(t4) {
|
|
2950
|
-
var l3 = e2[t4];
|
|
2951
|
-
-1 !== i2.indexOf(t4) ? Or(l3, o2, m3) : function(e3, t5, o3) {
|
|
2952
|
-
var l4 = [], r3 = 0, n4 = e3.length;
|
|
2953
|
-
function i3(e4) {
|
|
2954
|
-
l4.push.apply(l4, e4 || []), ++r3 === n4 && o3(l4);
|
|
2955
|
-
}
|
|
2956
|
-
e3.forEach(function(e4) {
|
|
2957
|
-
t5(e4, i3);
|
|
2958
|
-
});
|
|
2959
|
-
}(l3, o2, m3);
|
|
2960
|
-
});
|
|
2961
|
-
});
|
|
2962
|
-
return m2.catch(function(e3) {
|
|
2963
|
-
return e3;
|
|
2964
|
-
}), m2;
|
|
2965
|
-
}
|
|
2966
|
-
function Rr(e2, t2) {
|
|
2967
|
-
return function(o2) {
|
|
2968
|
-
var l2, r2;
|
|
2969
|
-
return l2 = e2.fullFields ? function(e3, t3) {
|
|
2970
|
-
for (var o3 = e3, l3 = 0; l3 < t3.length; l3++) {
|
|
2971
|
-
if (null == o3)
|
|
2972
|
-
return o3;
|
|
2973
|
-
o3 = o3[t3[l3]];
|
|
2974
|
-
}
|
|
2975
|
-
return o3;
|
|
2976
|
-
}(t2, e2.fullFields) : t2[o2.field || e2.fullField], (r2 = o2) && void 0 !== r2.message ? (o2.field = o2.field || e2.fullField, o2.fieldValue = l2, o2) : { message: "function" == typeof o2 ? o2() : o2, fieldValue: l2, field: o2.field || e2.fullField };
|
|
2977
|
-
};
|
|
2978
|
-
}
|
|
2979
|
-
function Ar(e2, t2) {
|
|
2980
|
-
if (t2) {
|
|
2981
|
-
for (var o2 in t2)
|
|
2982
|
-
if (t2.hasOwnProperty(o2)) {
|
|
2983
|
-
var l2 = t2[o2];
|
|
2984
|
-
"object" == typeof l2 && "object" == typeof e2[o2] ? e2[o2] = Nr({}, e2[o2], l2) : e2[o2] = l2;
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2987
|
-
return e2;
|
|
2988
|
-
}
|
|
2989
|
-
var Ur, Lr = function(e2, t2, o2, l2, r2, n2) {
|
|
2990
|
-
!e2.required || o2.hasOwnProperty(e2.field) && !Br(t2, n2 || e2.type) || l2.push(Pr(r2.messages.required, e2.fullField));
|
|
2991
|
-
}, Hr = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/, jr = /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i, zr = { integer: function(e2) {
|
|
2992
|
-
return zr.number(e2) && parseInt(e2, 10) === e2;
|
|
2993
|
-
}, float: function(e2) {
|
|
2994
|
-
return zr.number(e2) && !zr.integer(e2);
|
|
2995
|
-
}, array: function(e2) {
|
|
2996
|
-
return Array.isArray(e2);
|
|
2997
|
-
}, regexp: function(e2) {
|
|
2998
|
-
if (e2 instanceof RegExp)
|
|
2999
|
-
return true;
|
|
3000
|
-
try {
|
|
3001
|
-
return !!new RegExp(e2);
|
|
3002
|
-
} catch (e3) {
|
|
3003
|
-
return false;
|
|
3004
|
-
}
|
|
3005
|
-
}, date: function(e2) {
|
|
3006
|
-
return "function" == typeof e2.getTime && "function" == typeof e2.getMonth && "function" == typeof e2.getYear && !isNaN(e2.getTime());
|
|
3007
|
-
}, number: function(e2) {
|
|
3008
|
-
return !isNaN(e2) && "number" == typeof e2;
|
|
3009
|
-
}, object: function(e2) {
|
|
3010
|
-
return "object" == typeof e2 && !zr.array(e2);
|
|
3011
|
-
}, method: function(e2) {
|
|
3012
|
-
return "function" == typeof e2;
|
|
3013
|
-
}, email: function(e2) {
|
|
3014
|
-
return "string" == typeof e2 && e2.length <= 320 && !!e2.match(Hr);
|
|
3015
|
-
}, url: function(e2) {
|
|
3016
|
-
return "string" == typeof e2 && e2.length <= 2048 && !!e2.match(function() {
|
|
3017
|
-
if (Ur)
|
|
3018
|
-
return Ur;
|
|
3019
|
-
var e3 = "[a-fA-F\\d:]", t2 = function(t3) {
|
|
3020
|
-
return t3 && t3.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e3 + ")|(?<=" + e3 + ")(?=\\s|$))" : "";
|
|
3021
|
-
}, o2 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", l2 = "[a-fA-F\\d]{1,4}", r2 = ("\n(?:\n(?:" + l2 + ":){7}(?:" + l2 + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + l2 + ":){6}(?:" + o2 + "|:" + l2 + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + l2 + ":){5}(?::" + o2 + "|(?::" + l2 + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + l2 + ":){4}(?:(?::" + l2 + "){0,1}:" + o2 + "|(?::" + l2 + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + l2 + ":){3}(?:(?::" + l2 + "){0,2}:" + o2 + "|(?::" + l2 + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + l2 + ":){2}(?:(?::" + l2 + "){0,3}:" + o2 + "|(?::" + l2 + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + l2 + ":){1}(?:(?::" + l2 + "){0,4}:" + o2 + "|(?::" + l2 + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + l2 + "){0,5}:" + o2 + "|(?::" + l2 + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), n2 = new RegExp("(?:^" + o2 + "$)|(?:^" + r2 + "$)"), i2 = new RegExp("^" + o2 + "$"), a2 = new RegExp("^" + r2 + "$"), s2 = function(e4) {
|
|
3022
|
-
return e4 && e4.exact ? n2 : new RegExp("(?:" + t2(e4) + o2 + t2(e4) + ")|(?:" + t2(e4) + r2 + t2(e4) + ")", "g");
|
|
3023
|
-
};
|
|
3024
|
-
s2.v4 = function(e4) {
|
|
3025
|
-
return e4 && e4.exact ? i2 : new RegExp("" + t2(e4) + o2 + t2(e4), "g");
|
|
3026
|
-
}, s2.v6 = function(e4) {
|
|
3027
|
-
return e4 && e4.exact ? a2 : new RegExp("" + t2(e4) + r2 + t2(e4), "g");
|
|
3028
|
-
};
|
|
3029
|
-
var d2 = s2.v4().source, c2 = s2.v6().source;
|
|
3030
|
-
return Ur = new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|" + d2 + "|" + c2 + '|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)', "i");
|
|
3031
|
-
}());
|
|
3032
|
-
}, hex: function(e2) {
|
|
3033
|
-
return "string" == typeof e2 && !!e2.match(jr);
|
|
3034
|
-
} }, Wr = "enum", Jr = { required: Lr, whitespace: function(e2, t2, o2, l2, r2) {
|
|
3035
|
-
(/^\s+$/.test(t2) || "" === t2) && l2.push(Pr(r2.messages.whitespace, e2.fullField));
|
|
3036
|
-
}, type: function(e2, t2, o2, l2, r2) {
|
|
3037
|
-
if (e2.required && void 0 === t2)
|
|
3038
|
-
Lr(e2, t2, o2, l2, r2);
|
|
3039
|
-
else {
|
|
3040
|
-
var n2 = e2.type;
|
|
3041
|
-
["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"].indexOf(n2) > -1 ? zr[n2](t2) || l2.push(Pr(r2.messages.types[n2], e2.fullField, e2.type)) : n2 && typeof t2 !== e2.type && l2.push(Pr(r2.messages.types[n2], e2.fullField, e2.type));
|
|
3042
|
-
}
|
|
3043
|
-
}, range: function(e2, t2, o2, l2, r2) {
|
|
3044
|
-
var n2 = "number" == typeof e2.len, i2 = "number" == typeof e2.min, a2 = "number" == typeof e2.max, s2 = t2, d2 = null, c2 = "number" == typeof t2, m2 = "string" == typeof t2, u2 = Array.isArray(t2);
|
|
3045
|
-
if (c2 ? d2 = "number" : m2 ? d2 = "string" : u2 && (d2 = "array"), !d2)
|
|
3046
|
-
return false;
|
|
3047
|
-
u2 && (s2 = t2.length), m2 && (s2 = t2.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length), n2 ? s2 !== e2.len && l2.push(Pr(r2.messages[d2].len, e2.fullField, e2.len)) : i2 && !a2 && s2 < e2.min ? l2.push(Pr(r2.messages[d2].min, e2.fullField, e2.min)) : a2 && !i2 && s2 > e2.max ? l2.push(Pr(r2.messages[d2].max, e2.fullField, e2.max)) : i2 && a2 && (s2 < e2.min || s2 > e2.max) && l2.push(Pr(r2.messages[d2].range, e2.fullField, e2.min, e2.max));
|
|
3048
|
-
}, enum: function(e2, t2, o2, l2, r2) {
|
|
3049
|
-
e2[Wr] = Array.isArray(e2[Wr]) ? e2[Wr] : [], -1 === e2[Wr].indexOf(t2) && l2.push(Pr(r2.messages[Wr], e2.fullField, e2[Wr].join(", ")));
|
|
3050
|
-
}, pattern: function(e2, t2, o2, l2, r2) {
|
|
3051
|
-
if (e2.pattern) {
|
|
3052
|
-
if (e2.pattern instanceof RegExp)
|
|
3053
|
-
e2.pattern.lastIndex = 0, e2.pattern.test(t2) || l2.push(Pr(r2.messages.pattern.mismatch, e2.fullField, t2, e2.pattern));
|
|
3054
|
-
else if ("string" == typeof e2.pattern) {
|
|
3055
|
-
new RegExp(e2.pattern).test(t2) || l2.push(Pr(r2.messages.pattern.mismatch, e2.fullField, t2, e2.pattern));
|
|
3056
|
-
}
|
|
3057
|
-
}
|
|
3058
|
-
} }, qr = function(e2, t2, o2, l2, r2) {
|
|
3059
|
-
var n2 = e2.type, i2 = [];
|
|
3060
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3061
|
-
if (Br(t2, n2) && !e2.required)
|
|
3062
|
-
return o2();
|
|
3063
|
-
Jr.required(e2, t2, l2, i2, r2, n2), Br(t2, n2) || Jr.type(e2, t2, l2, i2, r2);
|
|
3064
|
-
}
|
|
3065
|
-
o2(i2);
|
|
3066
|
-
}, Gr = { string: function(e2, t2, o2, l2, r2) {
|
|
3067
|
-
var n2 = [];
|
|
3068
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3069
|
-
if (Br(t2, "string") && !e2.required)
|
|
3070
|
-
return o2();
|
|
3071
|
-
Jr.required(e2, t2, l2, n2, r2, "string"), Br(t2, "string") || (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2), Jr.pattern(e2, t2, l2, n2, r2), true === e2.whitespace && Jr.whitespace(e2, t2, l2, n2, r2));
|
|
3072
|
-
}
|
|
3073
|
-
o2(n2);
|
|
3074
|
-
}, method: function(e2, t2, o2, l2, r2) {
|
|
3075
|
-
var n2 = [];
|
|
3076
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3077
|
-
if (Br(t2) && !e2.required)
|
|
3078
|
-
return o2();
|
|
3079
|
-
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && Jr.type(e2, t2, l2, n2, r2);
|
|
3080
|
-
}
|
|
3081
|
-
o2(n2);
|
|
3082
|
-
}, number: function(e2, t2, o2, l2, r2) {
|
|
3083
|
-
var n2 = [];
|
|
3084
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3085
|
-
if ("" === t2 && (t2 = void 0), Br(t2) && !e2.required)
|
|
3086
|
-
return o2();
|
|
3087
|
-
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2));
|
|
3088
|
-
}
|
|
3089
|
-
o2(n2);
|
|
3090
|
-
}, boolean: function(e2, t2, o2, l2, r2) {
|
|
3091
|
-
var n2 = [];
|
|
3092
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3093
|
-
if (Br(t2) && !e2.required)
|
|
3094
|
-
return o2();
|
|
3095
|
-
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && Jr.type(e2, t2, l2, n2, r2);
|
|
3096
|
-
}
|
|
3097
|
-
o2(n2);
|
|
3098
|
-
}, regexp: function(e2, t2, o2, l2, r2) {
|
|
3099
|
-
var n2 = [];
|
|
3100
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3101
|
-
if (Br(t2) && !e2.required)
|
|
3102
|
-
return o2();
|
|
3103
|
-
Jr.required(e2, t2, l2, n2, r2), Br(t2) || Jr.type(e2, t2, l2, n2, r2);
|
|
3104
|
-
}
|
|
3105
|
-
o2(n2);
|
|
3106
|
-
}, integer: function(e2, t2, o2, l2, r2) {
|
|
3107
|
-
var n2 = [];
|
|
3108
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3109
|
-
if (Br(t2) && !e2.required)
|
|
3110
|
-
return o2();
|
|
3111
|
-
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2));
|
|
3112
|
-
}
|
|
3113
|
-
o2(n2);
|
|
3114
|
-
}, float: function(e2, t2, o2, l2, r2) {
|
|
3115
|
-
var n2 = [];
|
|
3116
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3117
|
-
if (Br(t2) && !e2.required)
|
|
3118
|
-
return o2();
|
|
3119
|
-
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2));
|
|
3120
|
-
}
|
|
3121
|
-
o2(n2);
|
|
3122
|
-
}, array: function(e2, t2, o2, l2, r2) {
|
|
3123
|
-
var n2 = [];
|
|
3124
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3125
|
-
if (null == t2 && !e2.required)
|
|
3126
|
-
return o2();
|
|
3127
|
-
Jr.required(e2, t2, l2, n2, r2, "array"), null != t2 && (Jr.type(e2, t2, l2, n2, r2), Jr.range(e2, t2, l2, n2, r2));
|
|
3128
|
-
}
|
|
3129
|
-
o2(n2);
|
|
3130
|
-
}, object: function(e2, t2, o2, l2, r2) {
|
|
3131
|
-
var n2 = [];
|
|
3132
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3133
|
-
if (Br(t2) && !e2.required)
|
|
3134
|
-
return o2();
|
|
3135
|
-
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && Jr.type(e2, t2, l2, n2, r2);
|
|
3136
|
-
}
|
|
3137
|
-
o2(n2);
|
|
3138
|
-
}, enum: function(e2, t2, o2, l2, r2) {
|
|
3139
|
-
var n2 = [];
|
|
3140
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3141
|
-
if (Br(t2) && !e2.required)
|
|
3142
|
-
return o2();
|
|
3143
|
-
Jr.required(e2, t2, l2, n2, r2), void 0 !== t2 && Jr.enum(e2, t2, l2, n2, r2);
|
|
3144
|
-
}
|
|
3145
|
-
o2(n2);
|
|
3146
|
-
}, pattern: function(e2, t2, o2, l2, r2) {
|
|
3147
|
-
var n2 = [];
|
|
3148
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3149
|
-
if (Br(t2, "string") && !e2.required)
|
|
3150
|
-
return o2();
|
|
3151
|
-
Jr.required(e2, t2, l2, n2, r2), Br(t2, "string") || Jr.pattern(e2, t2, l2, n2, r2);
|
|
3152
|
-
}
|
|
3153
|
-
o2(n2);
|
|
3154
|
-
}, date: function(e2, t2, o2, l2, r2) {
|
|
3155
|
-
var n2 = [];
|
|
3156
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3157
|
-
if (Br(t2, "date") && !e2.required)
|
|
3158
|
-
return o2();
|
|
3159
|
-
var i2;
|
|
3160
|
-
if (Jr.required(e2, t2, l2, n2, r2), !Br(t2, "date"))
|
|
3161
|
-
i2 = t2 instanceof Date ? t2 : new Date(t2), Jr.type(e2, i2, l2, n2, r2), i2 && Jr.range(e2, i2.getTime(), l2, n2, r2);
|
|
3162
|
-
}
|
|
3163
|
-
o2(n2);
|
|
3164
|
-
}, url: qr, hex: qr, email: qr, required: function(e2, t2, o2, l2, r2) {
|
|
3165
|
-
var n2 = [], i2 = Array.isArray(t2) ? "array" : typeof t2;
|
|
3166
|
-
Jr.required(e2, t2, l2, n2, r2, i2), o2(n2);
|
|
3167
|
-
}, any: function(e2, t2, o2, l2, r2) {
|
|
3168
|
-
var n2 = [];
|
|
3169
|
-
if (e2.required || !e2.required && l2.hasOwnProperty(e2.field)) {
|
|
3170
|
-
if (Br(t2) && !e2.required)
|
|
3171
|
-
return o2();
|
|
3172
|
-
Jr.required(e2, t2, l2, n2, r2);
|
|
3173
|
-
}
|
|
3174
|
-
o2(n2);
|
|
3175
|
-
} };
|
|
3176
|
-
function Kr() {
|
|
3177
|
-
return { default: "Validation error on field %s", required: "%s is required", enum: "%s must be one of %s", whitespace: "%s cannot be empty", date: { format: "%s date %s is invalid for format %s", parse: "%s date could not be parsed, %s is invalid ", invalid: "%s date %s is invalid" }, types: { string: "%s is not a %s", method: "%s is not a %s (function)", array: "%s is not an %s", object: "%s is not an %s", number: "%s is not a %s", date: "%s is not a %s", boolean: "%s is not a %s", integer: "%s is not an %s", float: "%s is not a %s", regexp: "%s is not a valid %s", email: "%s is not a valid %s", url: "%s is not a valid %s", hex: "%s is not a valid %s" }, string: { len: "%s must be exactly %s characters", min: "%s must be at least %s characters", max: "%s cannot be longer than %s characters", range: "%s must be between %s and %s characters" }, number: { len: "%s must equal %s", min: "%s cannot be less than %s", max: "%s cannot be greater than %s", range: "%s must be between %s and %s" }, array: { len: "%s must be exactly %s in length", min: "%s cannot be less than %s in length", max: "%s cannot be greater than %s in length", range: "%s must be between %s and %s in length" }, pattern: { mismatch: "%s value %s does not match pattern %s" }, clone: function() {
|
|
3178
|
-
var e2 = JSON.parse(JSON.stringify(this));
|
|
3179
|
-
return e2.clone = this.clone, e2;
|
|
3180
|
-
} };
|
|
3181
|
-
}
|
|
3182
|
-
var Xr = Kr(), Yr = function() {
|
|
3183
|
-
function e2(e3) {
|
|
3184
|
-
this.rules = null, this._messages = Xr, this.define(e3);
|
|
3185
|
-
}
|
|
3186
|
-
var t2 = e2.prototype;
|
|
3187
|
-
return t2.define = function(e3) {
|
|
3188
|
-
var t3 = this;
|
|
3189
|
-
if (!e3)
|
|
3190
|
-
throw new Error("Cannot configure a schema with no rules");
|
|
3191
|
-
if ("object" != typeof e3 || Array.isArray(e3))
|
|
3192
|
-
throw new Error("Rules must be an object");
|
|
3193
|
-
this.rules = {}, Object.keys(e3).forEach(function(o2) {
|
|
3194
|
-
var l2 = e3[o2];
|
|
3195
|
-
t3.rules[o2] = Array.isArray(l2) ? l2 : [l2];
|
|
3196
|
-
});
|
|
3197
|
-
}, t2.messages = function(e3) {
|
|
3198
|
-
return e3 && (this._messages = Ar(Kr(), e3)), this._messages;
|
|
3199
|
-
}, t2.validate = function(t3, o2, l2) {
|
|
3200
|
-
var r2 = this;
|
|
3201
|
-
void 0 === o2 && (o2 = {}), void 0 === l2 && (l2 = function() {
|
|
3202
|
-
});
|
|
3203
|
-
var n2 = t3, i2 = o2, a2 = l2;
|
|
3204
|
-
if ("function" == typeof i2 && (a2 = i2, i2 = {}), !this.rules || 0 === Object.keys(this.rules).length)
|
|
3205
|
-
return a2 && a2(null, n2), Promise.resolve(n2);
|
|
3206
|
-
if (i2.messages) {
|
|
3207
|
-
var s2 = this.messages();
|
|
3208
|
-
s2 === Xr && (s2 = Kr()), Ar(s2, i2.messages), i2.messages = s2;
|
|
3209
|
-
} else
|
|
3210
|
-
i2.messages = this.messages();
|
|
3211
|
-
var d2 = {};
|
|
3212
|
-
(i2.keys || Object.keys(this.rules)).forEach(function(e3) {
|
|
3213
|
-
var o3 = r2.rules[e3], l3 = n2[e3];
|
|
3214
|
-
o3.forEach(function(o4) {
|
|
3215
|
-
var i3 = o4;
|
|
3216
|
-
"function" == typeof i3.transform && (n2 === t3 && (n2 = Nr({}, n2)), l3 = n2[e3] = i3.transform(l3)), (i3 = "function" == typeof i3 ? { validator: i3 } : Nr({}, i3)).validator = r2.getValidationMethod(i3), i3.validator && (i3.field = e3, i3.fullField = i3.fullField || e3, i3.type = r2.getType(i3), d2[e3] = d2[e3] || [], d2[e3].push({ rule: i3, value: l3, source: n2, field: e3 }));
|
|
3217
|
-
});
|
|
3218
|
-
});
|
|
3219
|
-
var c2 = {};
|
|
3220
|
-
return _r(d2, i2, function(t4, o3) {
|
|
3221
|
-
var l3, r3 = t4.rule, a3 = !("object" !== r3.type && "array" !== r3.type || "object" != typeof r3.fields && "object" != typeof r3.defaultField);
|
|
3222
|
-
function s3(e3, t5) {
|
|
3223
|
-
return Nr({}, t5, { fullField: r3.fullField + "." + e3, fullFields: r3.fullFields ? [].concat(r3.fullFields, [e3]) : [e3] });
|
|
3224
|
-
}
|
|
3225
|
-
function d3(l4) {
|
|
3226
|
-
void 0 === l4 && (l4 = []);
|
|
3227
|
-
var d4 = Array.isArray(l4) ? l4 : [l4];
|
|
3228
|
-
!i2.suppressWarning && d4.length && e2.warning("async-validator:", d4), d4.length && void 0 !== r3.message && (d4 = [].concat(r3.message));
|
|
3229
|
-
var m2 = d4.map(Rr(r3, n2));
|
|
3230
|
-
if (i2.first && m2.length)
|
|
3231
|
-
return c2[r3.field] = 1, o3(m2);
|
|
3232
|
-
if (a3) {
|
|
3233
|
-
if (r3.required && !t4.value)
|
|
3234
|
-
return void 0 !== r3.message ? m2 = [].concat(r3.message).map(Rr(r3, n2)) : i2.error && (m2 = [i2.error(r3, Pr(i2.messages.required, r3.field))]), o3(m2);
|
|
3235
|
-
var u2 = {};
|
|
3236
|
-
r3.defaultField && Object.keys(t4.value).map(function(e3) {
|
|
3237
|
-
u2[e3] = r3.defaultField;
|
|
3238
|
-
}), u2 = Nr({}, u2, t4.rule.fields);
|
|
3239
|
-
var p2 = {};
|
|
3240
|
-
Object.keys(u2).forEach(function(e3) {
|
|
3241
|
-
var t5 = u2[e3], o4 = Array.isArray(t5) ? t5 : [t5];
|
|
3242
|
-
p2[e3] = o4.map(s3.bind(null, e3));
|
|
3243
|
-
});
|
|
3244
|
-
var h2 = new e2(p2);
|
|
3245
|
-
h2.messages(i2.messages), t4.rule.options && (t4.rule.options.messages = i2.messages, t4.rule.options.error = i2.error), h2.validate(t4.value, t4.rule.options || i2, function(e3) {
|
|
3246
|
-
var t5 = [];
|
|
3247
|
-
m2 && m2.length && t5.push.apply(t5, m2), e3 && e3.length && t5.push.apply(t5, e3), o3(t5.length ? t5 : null);
|
|
3248
|
-
});
|
|
3249
|
-
} else
|
|
3250
|
-
o3(m2);
|
|
3251
|
-
}
|
|
3252
|
-
if (a3 = a3 && (r3.required || !r3.required && t4.value), r3.field = t4.field, r3.asyncValidator)
|
|
3253
|
-
l3 = r3.asyncValidator(r3, t4.value, d3, t4.source, i2);
|
|
3254
|
-
else if (r3.validator) {
|
|
3255
|
-
try {
|
|
3256
|
-
l3 = r3.validator(r3, t4.value, d3, t4.source, i2);
|
|
3257
|
-
} catch (e3) {
|
|
3258
|
-
null == console.error || console.error(e3), i2.suppressValidatorError || setTimeout(function() {
|
|
3259
|
-
throw e3;
|
|
3260
|
-
}, 0), d3(e3.message);
|
|
3261
|
-
}
|
|
3262
|
-
true === l3 ? d3() : false === l3 ? d3("function" == typeof r3.message ? r3.message(r3.fullField || r3.field) : r3.message || (r3.fullField || r3.field) + " fails") : l3 instanceof Array ? d3(l3) : l3 instanceof Error && d3(l3.message);
|
|
3263
|
-
}
|
|
3264
|
-
l3 && l3.then && l3.then(function() {
|
|
3265
|
-
return d3();
|
|
3266
|
-
}, function(e3) {
|
|
3267
|
-
return d3(e3);
|
|
3268
|
-
});
|
|
3269
|
-
}, function(e3) {
|
|
3270
|
-
!function(e4) {
|
|
3271
|
-
var t4 = [], o3 = {};
|
|
3272
|
-
function l3(e5) {
|
|
3273
|
-
var o4;
|
|
3274
|
-
Array.isArray(e5) ? t4 = (o4 = t4).concat.apply(o4, e5) : t4.push(e5);
|
|
3275
|
-
}
|
|
3276
|
-
for (var r3 = 0; r3 < e4.length; r3++)
|
|
3277
|
-
l3(e4[r3]);
|
|
3278
|
-
t4.length ? (o3 = $r(t4), a2(t4, o3)) : a2(null, n2);
|
|
3279
|
-
}(e3);
|
|
3280
|
-
}, n2);
|
|
3281
|
-
}, t2.getType = function(e3) {
|
|
3282
|
-
if (void 0 === e3.type && e3.pattern instanceof RegExp && (e3.type = "pattern"), "function" != typeof e3.validator && e3.type && !Gr.hasOwnProperty(e3.type))
|
|
3283
|
-
throw new Error(Pr("Unknown rule type %s", e3.type));
|
|
3284
|
-
return e3.type || "string";
|
|
3285
|
-
}, t2.getValidationMethod = function(e3) {
|
|
3286
|
-
if ("function" == typeof e3.validator)
|
|
3287
|
-
return e3.validator;
|
|
3288
|
-
var t3 = Object.keys(e3), o2 = t3.indexOf("message");
|
|
3289
|
-
return -1 !== o2 && t3.splice(o2, 1), 1 === t3.length && "required" === t3[0] ? Gr.required : Gr[this.getType(e3)] || void 0;
|
|
3290
|
-
}, e2;
|
|
3291
|
-
}();
|
|
3292
|
-
function Qr(e2, t2) {
|
|
2734
|
+
const vr = { WorkflowHistory: yr }, Tr = { namespaced: true, state: { taches: [], transitions: [], startJoint: null, endJoint: null, isMovingTache: false, mouseDownPosition: null, isDrawingRegion: false, isMovingRegion: false, selectedTaches: [], selectedTransition: null, resizerToMove: null, draggerToMove: null, propertiesEditorFor: "", componentToDraw: "", controlPointToMove: null, formFields: [], formFieldsWithSub: [], contextMenuVisible: false, formCode: null, systemCode: null, systemVersion: null, processCode: null, processI18n: null, subtableConditionMap: null, propSettingKeyList: null, tableCode: null, isCreateDefinition: "", isHandleCreate: "", pageCode: null, sourceComponentType: "" }, getters: { taches: (e2) => e2.taches, transitions: (e2) => e2.transitions, startJoint: (e2) => e2.startJoint, endJoint: (e2) => e2.endJoint, isMovingTache: (e2) => e2.isMovingTache, mouseDownPosition: (e2) => e2.mouseDownPosition, isDrawingRegion: (e2) => e2.isDrawingRegion, isMovingRegion: (e2) => e2.isMovingRegion, selectedTaches: (e2) => e2.selectedTaches, selectedTransition: (e2) => e2.selectedTransition, resizerToMove: (e2) => e2.resizerToMove, draggerToMove: (e2) => e2.draggerToMove, propertiesEditorFor: (e2) => e2.propertiesEditorFor, componentToDraw: (e2) => e2.componentToDraw, controlPointToMove: (e2) => e2.controlPointToMove, formFields: (e2) => e2.formFields, formCode: (e2) => e2.formCode, formFieldsWithSub: (e2) => e2.formFieldsWithSub, contextMenuVisible: (e2) => e2.contextMenuVisible, systemCode: (e2) => e2.systemCode, processCode: (e2) => e2.processCode, processI18n: (e2) => e2.processI18n, subtableConditionMap: (e2) => e2.subtableConditionMap, propSettingKeyList: (e2) => e2.propSettingKeyList, systemVersion: (e2) => e2.systemVersion, tableCode: (e2) => e2.tableCode, isHandleCreate: (e2) => e2.isHandleCreate, isCreateDefinition: (e2) => e2.isCreateDefinition, pageCode: (e2) => e2.pageCode, sourceComponentType: (e2) => e2.sourceComponentType }, mutations: { setTaches(e2, t2) {
|
|
2735
|
+
e2.taches = t2;
|
|
2736
|
+
}, setTransitions(e2, t2) {
|
|
2737
|
+
e2.transitions = t2;
|
|
2738
|
+
}, clearCanvas(e2) {
|
|
2739
|
+
e2.taches = [], e2.transitions = [];
|
|
2740
|
+
}, resetState(e2) {
|
|
2741
|
+
e2.isMovingTache = false, e2.startJoint = null, e2.endJoint = null, e2.isDrawingRegion = false, e2.isMovingRegion = false, e2.resizerToMove = null, e2.draggerToMove = null, e2.controlPointToMove = null;
|
|
2742
|
+
}, stopDrawingLine(e2) {
|
|
2743
|
+
e2.startJoint = null, e2.endJoint = null;
|
|
2744
|
+
}, setStartJoint(e2, t2) {
|
|
2745
|
+
e2.startJoint = t2;
|
|
2746
|
+
}, setEndJoint(e2, t2) {
|
|
2747
|
+
e2.endJoint = t2;
|
|
2748
|
+
}, setMovingTache(e2, t2) {
|
|
2749
|
+
e2.isMovingTache = t2;
|
|
2750
|
+
}, setMouseDownPosition(e2, t2) {
|
|
2751
|
+
e2.mouseDownPosition = t2;
|
|
2752
|
+
}, setDrawingRegion(e2, t2) {
|
|
2753
|
+
e2.isDrawingRegion = t2;
|
|
2754
|
+
}, setMovingRegion(e2, t2) {
|
|
2755
|
+
e2.isMovingRegion = t2;
|
|
2756
|
+
}, setSelectedTaches(e2, t2) {
|
|
2757
|
+
e2.selectedTaches = t2;
|
|
2758
|
+
}, setSelectedTransition(e2, t2) {
|
|
2759
|
+
e2.selectedTransition = t2;
|
|
2760
|
+
}, setResizerToMove(e2, t2) {
|
|
2761
|
+
e2.resizerToMove = t2;
|
|
2762
|
+
}, setDraggerToMove(e2, t2) {
|
|
2763
|
+
e2.draggerToMove = t2;
|
|
2764
|
+
}, setPropertiesEditorFor(e2, t2) {
|
|
2765
|
+
e2.propertiesEditorFor = t2;
|
|
2766
|
+
}, setComponentToDraw(e2, t2) {
|
|
2767
|
+
e2.componentToDraw = t2;
|
|
2768
|
+
}, setControlPointToMove(e2, t2) {
|
|
2769
|
+
e2.controlPointToMove = t2;
|
|
2770
|
+
}, setFormFields(e2, t2) {
|
|
2771
|
+
e2.formFields = t2;
|
|
2772
|
+
}, setFormCode(e2, t2) {
|
|
2773
|
+
e2.formCode = t2;
|
|
2774
|
+
}, setFormFieldsWithSub(e2, t2) {
|
|
2775
|
+
e2.formFieldsWithSub = t2;
|
|
2776
|
+
}, setContextMenuVisible(e2, t2) {
|
|
2777
|
+
e2.contextMenuVisible = t2;
|
|
2778
|
+
}, setSystemCode(e2, t2) {
|
|
2779
|
+
e2.systemCode = t2;
|
|
2780
|
+
}, setProcessCode(e2, t2) {
|
|
2781
|
+
e2.processCode = t2;
|
|
2782
|
+
}, setProcessI18n(e2, t2) {
|
|
2783
|
+
e2.processI18n = t2;
|
|
2784
|
+
}, setSubtableConditionMap(e2, t2) {
|
|
2785
|
+
e2.subtableConditionMap = t2;
|
|
2786
|
+
}, setPropSettingKeyList(e2, t2) {
|
|
2787
|
+
e2.propSettingKeyList = t2;
|
|
2788
|
+
}, setSystemVersion(e2, t2) {
|
|
2789
|
+
e2.systemVersion = t2;
|
|
2790
|
+
}, setTableCode(e2, t2) {
|
|
2791
|
+
e2.tableCode = t2;
|
|
2792
|
+
}, setTableCode(e2, t2) {
|
|
2793
|
+
e2.tableCode = t2;
|
|
2794
|
+
}, setIsCreateDefinition(e2, t2) {
|
|
2795
|
+
e2.isCreateDefinition = t2;
|
|
2796
|
+
}, setIsHandleCreate(e2, t2) {
|
|
2797
|
+
e2.isHandleCreate = t2;
|
|
2798
|
+
}, setPageCode(e2, t2) {
|
|
2799
|
+
e2.pageCode = t2;
|
|
2800
|
+
}, setSourceComponentForCopy(e2, t2) {
|
|
2801
|
+
e2.sourceComponentType = t2;
|
|
2802
|
+
} } };
|
|
2803
|
+
function Nr(e2, t2) {
|
|
3293
2804
|
const o2 = {}, l2 = e2.dataType;
|
|
3294
|
-
return "DATE" === l2 || "TIME" === l2 ? (o2.type = "date",
|
|
2805
|
+
return "DATE" === l2 || "TIME" === l2 ? (o2.type = "date", xr(o2), o2.message = e2.label + " " + f().t("workflowEditorMessage.requiredAndMustBeADate")) : "INTEGER" === l2 || "LONG" === l2 ? (o2.pattern = /^-?\d+$/, o2.message = e2.label + " " + f().t("workflowEditorMessage.requiredAndMustBeAnInteger")) : "FLOAT" === l2 || "DOUBLE" === l2 ? (o2.pattern = new RegExp("^(-?\\d+)(\\.\\d+)?$"), o2.message = e2.label + " " + f().t("workflowEditorMessage.requiredAndMustBeDecimal")) : "BOOLEAN" === l2 ? (o2.type = "boolean", o2.message = e2.label + " " + f().t("workflowEditorMessage.mustFill"), xr(o2)) : o2.message = e2.label + " " + f().t("workflowEditorMessage.mustFill"), e2.canEdit && (o2.required = true, o2.trigger = "blur"), e2.rowIndexes && (o2.rowIndexes = e2.rowIndexes), e2.condition && (o2.condition = e2.condition), t2[e2.name] = e2.dataType, o2;
|
|
3295
2806
|
}
|
|
3296
|
-
function
|
|
2807
|
+
function xr(e2) {
|
|
3297
2808
|
e2 && e2.type && "boolean" === e2.type ? e2.validator = function(e3, t2, o2) {
|
|
3298
2809
|
return null == t2 ? !e3.required : "number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2);
|
|
3299
2810
|
} : e2 && e2.type && "date" === e2.type && (e2.validator = function(e3, t2, o2) {
|
|
@@ -3305,16 +2816,16 @@
|
|
|
3305
2816
|
}
|
|
3306
2817
|
});
|
|
3307
2818
|
}
|
|
3308
|
-
function
|
|
2819
|
+
function Er(e2, t2, o2) {
|
|
3309
2820
|
let l2;
|
|
3310
2821
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
3311
|
-
const
|
|
3312
|
-
if (l2 = 0 === r2 ? e2[
|
|
2822
|
+
const i2 = t2[r2];
|
|
2823
|
+
if (l2 = 0 === r2 ? e2[i2] : l2.fields[t2[r2]], i2 === o2)
|
|
3313
2824
|
break;
|
|
3314
2825
|
}
|
|
3315
2826
|
return l2;
|
|
3316
2827
|
}
|
|
3317
|
-
function
|
|
2828
|
+
function Sr(e2, t2, o2) {
|
|
3318
2829
|
let l2;
|
|
3319
2830
|
for (let r2 = 0; r2 < t2.length; r2++)
|
|
3320
2831
|
if (l2 = 0 === r2 ? e2[t2[r2]] : l2.fields[t2[r2]], r2 !== t2.length - 1) {
|
|
@@ -3323,12 +2834,12 @@
|
|
|
3323
2834
|
}
|
|
3324
2835
|
return l2;
|
|
3325
2836
|
}
|
|
3326
|
-
function
|
|
3327
|
-
let
|
|
3328
|
-
const
|
|
2837
|
+
function Mr(e2, t2, o2, l2, r2) {
|
|
2838
|
+
let i2 = e2.name;
|
|
2839
|
+
const n2 = i2.substring(0, i2.indexOf("."));
|
|
3329
2840
|
if (o2) {
|
|
3330
|
-
o2[
|
|
3331
|
-
const l3 = o2[
|
|
2841
|
+
o2[n2] || (o2[n2] = {});
|
|
2842
|
+
const l3 = o2[n2];
|
|
3332
2843
|
(function(e3, t3) {
|
|
3333
2844
|
if (e3.indexOf(".") > 0) {
|
|
3334
2845
|
let o3 = t3;
|
|
@@ -3342,49 +2853,49 @@
|
|
|
3342
2853
|
return true;
|
|
3343
2854
|
}
|
|
3344
2855
|
return true;
|
|
3345
|
-
})(
|
|
2856
|
+
})(i2.substring(i2.indexOf(".") + 1), l3) && function(e3, t3, o3, l4) {
|
|
3346
2857
|
const r3 = {};
|
|
3347
|
-
let
|
|
2858
|
+
let i3 = e3.name;
|
|
3348
2859
|
t3 || (t3 = {});
|
|
3349
|
-
const
|
|
3350
|
-
for (let o4 = 0; o4 <
|
|
3351
|
-
const
|
|
2860
|
+
const n3 = i3.split(".");
|
|
2861
|
+
for (let o4 = 0; o4 < n3.length; o4++) {
|
|
2862
|
+
const i4 = n3[o4];
|
|
3352
2863
|
let a2;
|
|
3353
|
-
if (o4 ===
|
|
3354
|
-
a2 =
|
|
2864
|
+
if (o4 === n3.length - 1)
|
|
2865
|
+
a2 = Sr(r3, n3, i4), a2.fields[i4] = Nr(e3, l4);
|
|
3355
2866
|
else {
|
|
3356
2867
|
let e4;
|
|
3357
|
-
0 === o4 ? a2 = t3 : (e4 =
|
|
2868
|
+
0 === o4 ? a2 = t3 : (e4 = Er(r3, n3, n3[o4 - 1]), a2 = e4.fields), a2[i4] || (a2[i4] = { type: "object", required: true, fields: {} }), 0 === o4 ? r3[i4] = a2[i4] : e4.fields[i4] = a2[i4];
|
|
3358
2869
|
}
|
|
3359
2870
|
}
|
|
3360
2871
|
}(e2, t2, 0, r2);
|
|
3361
2872
|
}
|
|
3362
2873
|
}
|
|
3363
|
-
function
|
|
3364
|
-
return
|
|
2874
|
+
function Dr(e2, t2, o2, l2, r2, i2, n2) {
|
|
2875
|
+
return $r(e2, t2, o2, true, l2, r2, i2, n2);
|
|
3365
2876
|
}
|
|
3366
|
-
function
|
|
3367
|
-
let
|
|
3368
|
-
let
|
|
3369
|
-
if (new
|
|
2877
|
+
function $r(e2, t2, o2, l2, r2, i2, n2, a2) {
|
|
2878
|
+
let d2 = false;
|
|
2879
|
+
let c2;
|
|
2880
|
+
if (new s(t2).validate(e2, { first: true }, (a3, s2) => {
|
|
3370
2881
|
if (a3) {
|
|
3371
2882
|
const e3 = a3[0].message;
|
|
3372
|
-
|
|
2883
|
+
c2 = a3[0].field, d2 = null != o2 ? void 0 !== i2 && void 0 !== n2 ? f().t("workflowEditorMessage.pageRecordLine", { pageNum: i2, row: n2 }) + "," + e3 : f().t("workflowEditorMessage.recordLine", { row: o2 + 1 }) + "," + e3 : e3;
|
|
3373
2884
|
} else
|
|
3374
|
-
|
|
3375
|
-
if (
|
|
3376
|
-
if (void 0 !== r2 && true === r2 && /[A-Z]+/.test(
|
|
2885
|
+
d2 = true;
|
|
2886
|
+
if (c2 && true === l2) {
|
|
2887
|
+
if (void 0 !== r2 && true === r2 && /[A-Z]+/.test(c2) && void 0 !== e2[c2.toLowerCase()]) {
|
|
3377
2888
|
const l3 = JSON.parse(JSON.stringify(e2));
|
|
3378
|
-
l3[
|
|
2889
|
+
l3[c2.toUpperCase()] = e2[c2.toLowerCase()], delete l3[c2.toLowerCase()], d2 = $r(l3, t2, o2, false, r2, i2, n2);
|
|
3379
2890
|
}
|
|
3380
2891
|
}
|
|
3381
2892
|
}), a2) {
|
|
3382
|
-
let e3 = { msg:
|
|
3383
|
-
return void 0 !==
|
|
2893
|
+
let e3 = { msg: d2, field: c2 };
|
|
2894
|
+
return void 0 !== i2 && void 0 !== n2 ? (e3.pageNum = i2, e3.rowIndex = n2) : e3.rowIndex = o2, e3;
|
|
3384
2895
|
}
|
|
3385
|
-
return
|
|
2896
|
+
return d2;
|
|
3386
2897
|
}
|
|
3387
|
-
function
|
|
2898
|
+
function Fr(e2, t2, l2, r2, i2, n2, a2, s2, d2) {
|
|
3388
2899
|
const c2 = function(e3) {
|
|
3389
2900
|
return e3 && e3.id ? e3.id : e3 && e3.ID ? e3.ID : void 0;
|
|
3390
2901
|
}(l2), m2 = {};
|
|
@@ -3392,7 +2903,7 @@
|
|
|
3392
2903
|
const p2 = e2[u2];
|
|
3393
2904
|
if (d2.indexOf(p2) < 0)
|
|
3394
2905
|
continue;
|
|
3395
|
-
const h2 = t2[p2], f2 = h2.condition, w2 = o.parseSubTablePermissionCondition(f2, r2,
|
|
2906
|
+
const h2 = t2[p2], f2 = h2.condition, w2 = o.parseSubTablePermissionCondition(f2, r2, i2, l2, n2, a2, s2);
|
|
3396
2907
|
if (null != w2 && true === w2)
|
|
3397
2908
|
if (void 0 === c2)
|
|
3398
2909
|
m2[p2] = h2;
|
|
@@ -3403,21 +2914,16 @@
|
|
|
3403
2914
|
}
|
|
3404
2915
|
return m2;
|
|
3405
2916
|
}
|
|
3406
|
-
function
|
|
2917
|
+
function Pr(e2, t2, o2) {
|
|
3407
2918
|
let l2 = t2[o2];
|
|
3408
2919
|
return l2 || (l2 = []), 0 !== l2.length || !e2 || !e2[o2] || void 0 === e2[o2].required || true !== e2[o2].required || e2[o2].message;
|
|
3409
2920
|
}
|
|
3410
|
-
|
|
3411
|
-
if ("function" != typeof t2)
|
|
3412
|
-
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
3413
|
-
Gr[e2] = t2;
|
|
3414
|
-
}, Yr.warning = Fr, Yr.messages = Xr, Yr.validators = Gr;
|
|
3415
|
-
const sn = function(e2, t2, o2, l2, r2, n2, i2, a2) {
|
|
2921
|
+
const Br = function(e2, t2, o2, l2, r2, i2, n2, a2) {
|
|
3416
2922
|
const s2 = Object.keys(t2);
|
|
3417
2923
|
if (s2.indexOf("rules") >= 0 && s2.indexOf("subRules") >= 0 && s2.indexOf("totalSubRules") >= 0) {
|
|
3418
2924
|
const s3 = t2.rules, d2 = t2.subRules, c2 = t2.totalSubRules, m2 = t2.dataTypeMap;
|
|
3419
|
-
let u2 =
|
|
3420
|
-
return (!a2 && true === u2 || a2 && true === u2.msg) && (d2 || c2) && (u2 = function(e3, t3, o3, l3, r3,
|
|
2925
|
+
let u2 = Dr(e2, s3, null, o2, null, null, a2);
|
|
2926
|
+
return (!a2 && true === u2 || a2 && true === u2.msg) && (d2 || c2) && (u2 = function(e3, t3, o3, l3, r3, i3, n3, a3, s4, d3) {
|
|
3421
2927
|
let c3 = {};
|
|
3422
2928
|
if (o3 && (c3 = JSON.parse(JSON.stringify(o3))), t3) {
|
|
3423
2929
|
const o4 = Object.keys(t3);
|
|
@@ -3425,37 +2931,37 @@
|
|
|
3425
2931
|
const u3 = o4[m3], p2 = t3[u3], h2 = Object.keys(p2);
|
|
3426
2932
|
let f2 = e3[u3];
|
|
3427
2933
|
f2 || (f2 = []);
|
|
3428
|
-
const w2 =
|
|
2934
|
+
const w2 = Pr(c3, e3, u3);
|
|
3429
2935
|
if (true !== w2)
|
|
3430
2936
|
return delete c3[u3], d3 ? { msg: w2, listCode: u3 } : w2;
|
|
3431
2937
|
let g2, C2 = [];
|
|
3432
2938
|
s4 && s4[u3] && (g2 = s4[u3].pageSize, C2 = s4[u3].fields || []);
|
|
3433
2939
|
for (let t4 = 0; t4 < f2.length; t4++) {
|
|
3434
|
-
const o5 = f2[t4], s5 =
|
|
2940
|
+
const o5 = f2[t4], s5 = Fr(h2, p2, f2[t4], r3, e3, i3, n3, a3, C2);
|
|
3435
2941
|
let c4, m4;
|
|
3436
2942
|
void 0 !== g2 && g2 > 0 && (c4 = Math.ceil((t4 + 1) / g2), m4 = t4 + 1 - (c4 - 1) * g2), Object.keys(s5).forEach((l4) => {
|
|
3437
2943
|
const r4 = s5[l4];
|
|
3438
2944
|
if (r4 && r4.rules && (s5[l4] = r4.rules), r4 && r4.beforeValidate) {
|
|
3439
|
-
const
|
|
3440
|
-
"function" == typeof
|
|
2945
|
+
const i4 = r4.beforeValidate;
|
|
2946
|
+
"function" == typeof i4 && false === i4({ row: o5, parent: e3, rowIndex: t4 }) && (s5[l4] = []);
|
|
3441
2947
|
}
|
|
3442
2948
|
});
|
|
3443
|
-
const w3 =
|
|
2949
|
+
const w3 = Dr(o5, s5, t4, l3, c4, m4, d3);
|
|
3444
2950
|
if (!d3 && true !== w3 || d3 && true !== w3.msg)
|
|
3445
2951
|
return d3 && (w3.listCode = u3), w3;
|
|
3446
2952
|
}
|
|
3447
2953
|
}
|
|
3448
2954
|
}
|
|
3449
2955
|
for (const t4 in c3) {
|
|
3450
|
-
const o4 =
|
|
2956
|
+
const o4 = Pr(c3, e3, t4);
|
|
3451
2957
|
if (true !== o4)
|
|
3452
2958
|
return d3 ? { msg: o4, listCode: t4 } : o4;
|
|
3453
2959
|
}
|
|
3454
2960
|
return !d3 || { msg: true };
|
|
3455
|
-
}(e2, d2, c2, o2, m2, l2, r2,
|
|
2961
|
+
}(e2, d2, c2, o2, m2, l2, r2, i2, n2, a2)), u2;
|
|
3456
2962
|
}
|
|
3457
|
-
return
|
|
3458
|
-
},
|
|
2963
|
+
return Dr(e2, t2, null, o2, null, null, a2);
|
|
2964
|
+
}, Or = function(e2, t2, l2, r2, i2, n2) {
|
|
3459
2965
|
void 0 === l2 && (l2 = false);
|
|
3460
2966
|
const a2 = {}, s2 = {}, d2 = {}, c2 = {};
|
|
3461
2967
|
return e2 && e2.forEach((e3) => {
|
|
@@ -3464,41 +2970,41 @@
|
|
|
3464
2970
|
let m3 = e3.name;
|
|
3465
2971
|
if (m3) {
|
|
3466
2972
|
const u2 = e3.condition, p2 = null;
|
|
3467
|
-
let
|
|
3468
|
-
if (
|
|
2973
|
+
let h2 = null;
|
|
2974
|
+
if (h2 = m3.indexOf(".") > 0 && 0 === m3.indexOf("$") || o.parseSubTablePermissionCondition(u2, s2, p2, t2, r2, i2, n2), null != h2 && true === h2) {
|
|
3469
2975
|
let o2 = {};
|
|
3470
2976
|
if (m3.indexOf(".") > 0)
|
|
3471
2977
|
0 === m3.indexOf("$") ? function(e4, t3, o3, l3, r3) {
|
|
3472
|
-
let
|
|
3473
|
-
const
|
|
2978
|
+
let i3 = e4.name;
|
|
2979
|
+
const n3 = i3.substring(i3.indexOf("$") + 1, i3.indexOf("."));
|
|
3474
2980
|
if (!o3)
|
|
3475
2981
|
return;
|
|
3476
|
-
const a3 = o3[
|
|
3477
|
-
t3[
|
|
2982
|
+
const a3 = o3[n3], s3 = i3.substring(i3.indexOf(".") + 1);
|
|
2983
|
+
t3[n3] || (t3[n3] = {});
|
|
3478
2984
|
const d3 = JSON.parse(JSON.stringify(e4));
|
|
3479
2985
|
if (d3.name = s3, s3.indexOf(".") > 0) {
|
|
3480
2986
|
if (void 0 !== a3 && null === a3 && 0 === a3.length) {
|
|
3481
2987
|
const e5 = a3[0];
|
|
3482
|
-
|
|
2988
|
+
Mr(d3, t3[n3], e5, l3, r3);
|
|
3483
2989
|
}
|
|
3484
2990
|
} else
|
|
3485
|
-
t3[
|
|
3486
|
-
}(e3, c2, t2, l2, s2) :
|
|
2991
|
+
t3[n3][s3] = Nr(d3, r3);
|
|
2992
|
+
}(e3, c2, t2, l2, s2) : Mr(e3, a2, t2, l2, s2);
|
|
3487
2993
|
else if (0 === m3.indexOf("$")) {
|
|
3488
2994
|
const t3 = m3.substring(m3.indexOf("$") + 1);
|
|
3489
|
-
d2[t3] = { required: true, message:
|
|
2995
|
+
d2[t3] = { required: true, message: f().t("workflowEditorMessage.subTableMustInputDatas", { subTable: e3.label }) };
|
|
3490
2996
|
} else
|
|
3491
|
-
o2 =
|
|
2997
|
+
o2 = Nr(e3, s2), a2[m3] = o2;
|
|
3492
2998
|
}
|
|
3493
2999
|
}
|
|
3494
3000
|
}
|
|
3495
3001
|
}), Object.keys(c2).length > 0 || Object.keys(d2).length > 0 ? { rules: a2, subRules: c2, totalSubRules: d2, dataTypeMap: s2 } : a2;
|
|
3496
|
-
},
|
|
3497
|
-
e2.config.globalProperties.$formValidator =
|
|
3498
|
-
} },
|
|
3499
|
-
|
|
3002
|
+
}, Ir = { install: function(e2, t2) {
|
|
3003
|
+
e2.config.globalProperties.$formValidator = Br, e2.config.globalProperties.$getValidator = Or;
|
|
3004
|
+
} }, _r = [ur, vr], Rr = function(e2) {
|
|
3005
|
+
Rr.installed || (_r.forEach((t2) => {
|
|
3500
3006
|
e2.component(t2.name, t2);
|
|
3501
|
-
}), e2.use(
|
|
3007
|
+
}), e2.use(Ir));
|
|
3502
3008
|
};
|
|
3503
|
-
e.WorkflowEditor =
|
|
3009
|
+
e.WorkflowEditor = ur, e.WorkflowHistory = vr, e.wfEditorCn = c, e.wfEditorEn = d, e.wfEditorInstall = Rr, e.wfEditorStore = Tr, Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
|
|
3504
3010
|
});
|