workflow-editor 0.0.81-up-tmp23 → 0.0.81-up-tmp25

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.
Files changed (163) hide show
  1. package/es/style.css +1 -525
  2. package/es/workflow-editor/src/process-service.mjs +1 -2
  3. package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +6 -6
  4. package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +2 -3
  5. package/package.json +6 -9
  6. package/dist/index.full.min.js +0 -2992
  7. package/dist/style.css +0 -526
  8. package/dist/vite.svg +0 -1
  9. package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
  10. package/lib/index.cjs +0 -8
  11. package/lib/plugins/formValidatorUtil.cjs +0 -203
  12. package/lib/plugins/index.cjs +0 -5
  13. package/lib/src/i18n/i18n.cjs +0 -3
  14. package/lib/src/i18n/langs/cn.cjs +0 -2
  15. package/lib/src/i18n/langs/en.cjs +0 -2
  16. package/lib/style.css +0 -525
  17. package/lib/vite.svg +0 -1
  18. package/lib/workflow-editor/index.cjs +0 -7
  19. package/lib/workflow-editor/src/api.cjs +0 -5
  20. package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +0 -44
  21. package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +0 -5
  22. package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +0 -5
  23. package/lib/workflow-editor/src/json-object-templates/decision.cjs +0 -5
  24. package/lib/workflow-editor/src/json-object-templates/end.cjs +0 -5
  25. package/lib/workflow-editor/src/json-object-templates/fork.cjs +0 -5
  26. package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +0 -5
  27. package/lib/workflow-editor/src/json-object-templates/human-task.cjs +0 -5
  28. package/lib/workflow-editor/src/json-object-templates/join.cjs +0 -5
  29. package/lib/workflow-editor/src/json-object-templates/process.cjs +0 -6
  30. package/lib/workflow-editor/src/json-object-templates/start.cjs +0 -5
  31. package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +0 -5
  32. package/lib/workflow-editor/src/json-object-templates/transition.cjs +0 -4
  33. package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +0 -11
  34. package/lib/workflow-editor/src/main/canvas.vue.cjs +0 -101
  35. package/lib/workflow-editor/src/main/canvas.vue2.cjs +0 -2
  36. package/lib/workflow-editor/src/main/context-menu.vue.cjs +0 -29
  37. package/lib/workflow-editor/src/main/context-menu.vue2.cjs +0 -2
  38. package/lib/workflow-editor/src/main/icon-svg.vue.cjs +0 -10
  39. package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +0 -2
  40. package/lib/workflow-editor/src/main/selection-region.vue.cjs +0 -13
  41. package/lib/workflow-editor/src/main/selection-region.vue2.cjs +0 -2
  42. package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +0 -8
  43. package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +0 -2
  44. package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +0 -9
  45. package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +0 -2
  46. package/lib/workflow-editor/src/main/toolbox.vue.cjs +0 -11
  47. package/lib/workflow-editor/src/main/toolbox.vue2.cjs +0 -2
  48. package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +0 -67
  49. package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +0 -2
  50. package/lib/workflow-editor/src/process-service.cjs +0 -20
  51. package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +0 -20
  52. package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +0 -2
  53. package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +0 -19
  54. package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +0 -2
  55. package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +0 -94
  56. package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +0 -54
  57. package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +0 -4
  58. package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +0 -67
  59. package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +0 -16
  60. package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +0 -50
  61. package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +0 -11
  62. package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +0 -17
  63. package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +0 -2
  64. package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +0 -20
  65. package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +0 -31
  66. package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +0 -22
  67. package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +0 -2
  68. package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +0 -25
  69. package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +0 -31
  70. package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +0 -2
  71. package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +0 -17
  72. package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +0 -93
  73. package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +0 -2
  74. package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +0 -13
  75. package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +0 -2
  76. package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +0 -42
  77. package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +0 -2
  78. package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +0 -37
  79. package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +0 -110
  80. package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +0 -55
  81. package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +0 -2
  82. package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +0 -39
  83. package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +0 -20
  84. package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +0 -2
  85. package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +0 -26
  86. package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +0 -2
  87. package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +0 -19
  88. package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +0 -2
  89. package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +0 -20
  90. package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +0 -18
  91. package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +0 -13
  92. package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +0 -13
  93. package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +0 -31
  94. package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +0 -2
  95. package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +0 -82
  96. package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +0 -56
  97. package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +0 -77
  98. package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +0 -80
  99. package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +0 -39
  100. package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +0 -2
  101. package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +0 -60
  102. package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +0 -15
  103. package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +0 -26
  104. package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +0 -2
  105. package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +0 -49
  106. package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +0 -19
  107. package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +0 -2
  108. package/lib/workflow-editor/src/properties-editors/join.vue.cjs +0 -13
  109. package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +0 -81
  110. package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +0 -18
  111. package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +0 -21
  112. package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +0 -13
  113. package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +0 -7
  114. package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +0 -23
  115. package/lib/workflow-editor/src/properties-editors/process.vue.cjs +0 -24
  116. package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +0 -57
  117. package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +0 -7
  118. package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +0 -50
  119. package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +0 -16
  120. package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +0 -17
  121. package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +0 -2
  122. package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +0 -10
  123. package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +0 -12
  124. package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +0 -2
  125. package/lib/workflow-editor/src/properties-editors/user-condition.cjs +0 -33
  126. package/lib/workflow-editor/src/store/getters.cjs +0 -2
  127. package/lib/workflow-editor/src/store/workflow-editor.cjs +0 -71
  128. package/lib/workflow-editor/src/taches/auto-task.vue.cjs +0 -17
  129. package/lib/workflow-editor/src/taches/common-methods.cjs +0 -11
  130. package/lib/workflow-editor/src/taches/copy-task.vue.cjs +0 -17
  131. package/lib/workflow-editor/src/taches/custom-task.vue.cjs +0 -9
  132. package/lib/workflow-editor/src/taches/decision.vue.cjs +0 -19
  133. package/lib/workflow-editor/src/taches/decision.vue2.cjs +0 -2
  134. package/lib/workflow-editor/src/taches/end.vue.cjs +0 -9
  135. package/lib/workflow-editor/src/taches/end.vue2.cjs +0 -2
  136. package/lib/workflow-editor/src/taches/fork.vue.cjs +0 -19
  137. package/lib/workflow-editor/src/taches/fork.vue2.cjs +0 -2
  138. package/lib/workflow-editor/src/taches/human-decision.vue.cjs +0 -19
  139. package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +0 -2
  140. package/lib/workflow-editor/src/taches/human-task.vue.cjs +0 -17
  141. package/lib/workflow-editor/src/taches/join.vue.cjs +0 -11
  142. package/lib/workflow-editor/src/taches/join.vue2.cjs +0 -2
  143. package/lib/workflow-editor/src/taches/joint.vue.cjs +0 -50
  144. package/lib/workflow-editor/src/taches/joint.vue2.cjs +0 -2
  145. package/lib/workflow-editor/src/taches/start.vue.cjs +0 -9
  146. package/lib/workflow-editor/src/taches/start.vue2.cjs +0 -2
  147. package/lib/workflow-editor/src/taches/subprocess.vue.cjs +0 -17
  148. package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +0 -27
  149. package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +0 -2
  150. package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +0 -28
  151. package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +0 -2
  152. package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +0 -29
  153. package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +0 -2
  154. package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +0 -9
  155. package/lib/workflow-editor/src/transitions/transition.vue.cjs +0 -63
  156. package/lib/workflow-editor/src/transitions/transition.vue2.cjs +0 -2
  157. package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +0 -13
  158. package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +0 -2
  159. package/lib/workflow-editor/src/util.cjs +0 -139
  160. package/lib/workflow-editor/src/workflow-editor.vue.cjs +0 -191
  161. package/lib/workflow-editor/src/workflow-editor.vue2.cjs +0 -2
  162. package/lib/workflow-editor/src/workflow-history.vue.cjs +0 -28
  163. package/lib/workflow-editor/src/workflow-history.vue2.cjs +0 -2
@@ -1,2992 +0,0 @@
1
- !function(e, t) {
2
- "object" == typeof exports && "undefined" != typeof module ? t(exports, require("vuex"), require("agilebuilder-ui"), require("vue-i18n"), require("vue"), require("@element-plus/icons-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", "@element-plus/icons-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.iconsVue, e.convert, e.FileSaver, e.Prism, e.Validator);
3
- }(this, function(e, t, o, l, r, i, n, a, s, d) {
4
- "use strict";
5
- !function(e2) {
6
- var t2, o2 = '<svg><symbol id="icon-switch" viewBox="0 0 1024 1024"><path d="M701.74225 917.574059c-7.419408 0-14.960447-2.675852-20.9203-8.149187-12.649483-11.554816-13.500891-31.13719-2.067704-43.786673l119.318684-130.75187L679.119135 608.634755c-11.798076-12.527854-11.189928-32.110227 1.337926-43.786673 12.527854-11.798076 32.110227-11.189928 43.786673 1.337926l138.657798 147.171873c11.068298 11.798076 11.311557 30.164153 0.364889 42.205488l-138.657798 152.037059c-6.081482 6.568001-14.473928 9.973631-22.866373 9.973631z" fill="" ></path><path d="M806.343746 786.21404h-581.389713c-82.100012 0-148.996318-66.896306-148.996318-148.996318v-245.691888c0-17.14978 13.86578-31.01556 31.01556-31.01556s31.01556 13.86578 31.01556 31.01556v245.691888c0 47.922081 39.043117 86.965198 86.965198 86.965198h581.389713c17.14978 0 31.01556 13.86578 31.01556 31.01556s-13.86578 31.01556-31.01556 31.01556z" fill="" ></path><path d="M322.25775 468.76066c-8.270816 0-16.420002-3.284-22.623114-9.730371l-138.657798-147.171874c-11.068298-11.798076-11.311557-30.164153-0.364889-42.205487l138.657798-152.037059c11.554816-12.649483 31.13719-13.500891 43.786673-2.067704 12.649483 11.554816 13.500891 31.13719 2.067704 43.786673l-119.197054 130.8735 118.953795 126.251574c11.798076 12.527854 11.189928 32.110227-1.337926 43.786673-5.959853 5.716593-13.62252 8.514075-21.285189 8.514075z" fill="" ></path><path d="M917.026725 664.584392c-17.14978 0-31.01556-13.86578-31.01556-31.01556v-245.691887c0-47.922081-39.043117-86.965198-86.965198-86.965198h-581.389713c-17.14978 0-31.01556-13.86578-31.01556-31.01556s13.86578-31.01556 31.01556-31.01556h581.389713c82.100012 0 148.996318 66.896306 148.996318 148.996318v245.691887c0 17.14978-13.86578 31.01556-31.01556 31.01556z" fill="" ></path></symbol><symbol id="icon-properties" viewBox="0 0 1024 1024"><path d="M512.980327 64.636113c-246.706845 0-447.421192 200.714348-447.421192 447.421192 0 246.700705 200.714348 447.415053 447.421192 447.415053s447.421192-200.714348 447.421193-447.415053c0-246.706845-200.715371-447.421192-447.421193-447.421192z m0 833.54532c-212.913181 0-386.130268-173.21811-386.130267-386.125151 0-212.913181 173.21811-386.130268 386.130267-386.130268s386.130268 173.21811 386.130268 386.130268c0 212.908064-173.21811 386.125151-386.130268 386.125151z" ></path><path d="M606.931093 640.392182c-11.621688 0-55.209416 68.771293-79.423911 68.771293-6.780427 0-9.685593-5.813403-9.685593-11.624758 0-13.558807 8.715499-33.899064 13.558807-45.520753l57.147558-156.913773c28.088732-77.487815-8.717546-98.795097-42.617633-98.795097-46.491871 0-88.142479 23.245424-120.105449 54.240345-10.654664 10.654664-45.523823 44.554752-45.523823 59.083654 0 4.844332 4.843308 10.655687 10.655688 10.655687 14.528901 0 52.302203-69.739341 82.328053-69.739341 5.814426 0 13.561877 6.780427 7.751545 21.309329L426.773943 612.304474c-5.811356 13.558807-32.93204 79.423911-32.93204 118.167306 0 30.994921 19.373233 44.554752 48.432059 44.554752 80.391958 0 174.34477-99.765191 174.34477-123.009591-0.002047-6.780427-5.814426-11.624758-9.687639-11.624759zM590.464049 249.081938c-35.836183 0-65.86408 28.088732-65.86408 63.927985 0 32.93204 21.310352 55.210439 54.242392 54.239322 36.805254 0 66.832128-27.120684 66.832128-63.927985 0-32.92897-23.24747-54.239322-55.21044-54.239322z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M409.6 163.84h163.84v40.96h-163.84zM532.48 368.64h40.96v368.64h-40.96zM409.6 368.64h40.96v368.64h-40.96z" ></path><path d="M286.72 245.76v614.4h409.6V245.76H286.72z m450.56 0v655.36H245.76V245.76H204.8V204.8h573.44v40.96h-40.96z" ></path></symbol><symbol id="icon-custom-task" viewBox="0 0 1024 1024"><path d="M756.63132445 483.81952l220.74709333-209.7152a112.86755555 112.86755555 0 0 0 0-159.61656889l-55.08664889-55.08664889a112.86755555 112.86755555 0 0 0-157.54126222-2.00248889L549.13706667 262.12579555 339.71313778 38.39317333l-1.71121778-1.78403555a73.76440889 73.76440889 0 0 0-104.34787555-0.43690667L76.44046222 193.38581333a73.728 73.728 0 0 0-1.27431111 102.56384L281.49532445 516.36906667 86.41649778 701.69031111A112.94037333 112.94037333 0 0 0 54.26744889 757.76L21.28099555 898.55317333a74.67463111 74.67463111 0 0 0 93.7528889 88.65564445L250.76622222 947.23185778a113.48650667 113.48650667 0 0 0 45.8752-26.43285333l192.34816-182.73621334 231.66976 247.50762667 1.71121778 1.78403555a73.76440889 73.76440889 0 0 0 104.34787555 0.43690667L983.93201778 830.57777778a73.728 73.728 0 0 0 1.27431111-102.56384L756.63132445 483.81952zM292.89130667 823.95136l-102.52743112-102.52743111a35.82634667 35.82634667 0 0 0-11.14112-7.39100444l509.2511289-483.80131556 107.26058666 107.26058666c1.60199111 1.60199111 3.60448 2.36657778 5.42492444 3.60448l-508.26808888 482.85468445z m521.99424-713.83267555a40.04977778 40.04977778 0 0 1 55.88764444 0.72817777l55.08664889 55.08664889c15.65582222 15.65582222 15.65582222 40.99640889-0.72817778 57.344l-73.32750222 69.65020444c-1.45635555-2.36657778-2.54862222-4.87879111-4.62392889-6.95409777l-105.94986666-105.94986667 73.65518222-69.90506666z m-557.16522667 274.34097777c9.10222222-0.14563555 18.20444445-3.60448 25.15854222-10.55857777l54.61333333-54.61333334a36.37248 36.37248 0 1 0-51.48216888-51.48216889l-54.61333334 54.61333333a36.0448 36.0448 0 0 0-10.15808 23.04682667L128.35953778 246.21511111c-0.58254222-0.58254222-0.58254222-1.16508445-0.40049778-1.31072L285.17262222 87.6544c0.14563555-0.14563555 0.76458667-0.14563555 1.41994667 0.47331555l209.78801778 224.13312L334.32462222 466.23402667l-76.60430222-81.77436445zM94.46286222 917.37656889a1.82044445 1.82044445 0 0 1-2.29376-2.18453334L125.15555555 774.39886222c1.12867555-4.73315555 3.34961778-9.06581333 6.04387556-13.07079111a36.19043555 36.19043555 0 0 0 7.68227556 11.54161778l100.45212444 100.45212444a39.90414222 39.90414222 0 0 1-9.10222222 4.04138667l-135.76874667 40.01336889zM775.23626667 936.3456c-0.14563555 0.14563555-0.76458667 0.14563555-1.41994667-0.47331555l-142.90488889-152.66247112a35.53507555 35.53507555 0 0 0 16.01991111-8.77454222l54.61333333-54.61333333a36.37248 36.37248 0 1 0-51.48216888-51.48216889l-54.61333334 54.61333333a36.0448 36.0448 0 0 0-8.30122666 13.54410667l-45.40188445-48.53304889 162.05596445-153.97319111 228.21091555 243.83032889c0.54613333 0.58254222 0.54613333 1.16508445 0.40049778 1.31072L775.23626667 936.3456z" ></path></symbol><symbol id="icon-join" viewBox="0 0 1024 1024"><path d="M987.136 552.96c5.46133333-5.46133333 10.92266667-13.65333333 10.92266667-24.576 0-8.192-2.73066667-16.384-10.92266667-24.576L817.83466667 329.04533333c-5.46133333-2.73066667-13.65333333-8.192-24.576-8.192-8.192 0-19.11466667 2.73066667-24.576 10.92266667l-177.49333334 174.76266667C585.728 512 580.26666667 520.192 580.26666667 531.11466667s2.73066667 19.11466667 10.92266666 24.576l177.49333334 172.032c5.46133333 5.46133333 13.65333333 10.92266667 24.576 10.92266666 8.192 0 16.384-2.73066667 24.576-10.92266666L987.136 552.96zM25.94133333 970.752c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667h270.336c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576v-68.26666667h152.91733333c8.192 0 16.384-2.73066667 24.576-10.92266666 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576v-682.66666667c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H367.27466667V47.78666667c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H61.44c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v221.184c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266666h270.336c8.192 0 16.384-2.73066667 24.576-10.92266666 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V252.58666667h68.26666666c8.192 0 16.384 2.73066667 24.576 10.92266666 5.46133333 5.46133333 10.92266667 16.384 10.92266667 24.576V785.06666667c0 8.192-2.73066667 16.384-10.92266667 24.576-5.46133333 5.46133333-16.384 10.92266667-24.576 10.92266666h-68.26666666v-68.26666666c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H61.44c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v218.45333333z" ></path></symbol><symbol id="icon-fork" viewBox="0 0 1024 1024"><path d="M36.864 471.04c-5.46133333 5.46133333-10.92266667 13.65333333-10.92266667 24.576 0 8.192 2.73066667 16.384 10.92266667 24.576l169.30133333 174.76266667c5.46133333 2.73066667 13.65333333 8.192 24.576 8.192 8.192 0 19.11466667-2.73066667 24.576-10.92266667l177.49333334-174.76266667c5.46133333-5.46133333 10.92266667-13.65333333 10.92266666-24.576s-2.73066667-19.11466667-10.92266666-24.576l-177.49333334-172.032c-5.46133333-5.46133333-13.65333333-10.92266667-24.576-10.92266666-8.192 0-16.384 2.73066667-24.576 10.92266666L36.864 471.04zM998.05866667 53.248c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266667H692.224c-8.192 0-16.384 2.73066667-24.576 10.92266667-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v68.26666667H503.808c-8.192 0-16.384 2.73066667-24.576 10.92266666-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v682.66666667c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667h152.91733333v101.03466666c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667H962.56c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V755.02933333c0-8.192-2.73066667-16.384-10.92266667-24.576-5.46133333-5.46133333-16.384-10.92266667-24.576-10.92266666H692.224c-8.192 0-16.384 2.73066667-24.576 10.92266666-5.46133333 5.46133333-10.92266667 16.384-10.92266667 24.576v16.384h-68.26666666c-8.192 0-16.384-2.73066667-24.576-10.92266666-5.46133333-5.46133333-10.92266667-16.384-10.92266667-24.576V238.93333333c0-8.192 2.73066667-16.384 10.92266667-24.576 5.46133333-5.46133333 16.384-10.92266667 24.576-10.92266666h68.26666666v68.26666666c0 8.192 2.73066667 16.384 10.92266667 24.576 5.46133333 5.46133333 16.384 10.92266667 24.576 10.92266667H962.56c8.192 0 16.384-2.73066667 24.576-10.92266667 5.46133333-5.46133333 10.92266667-16.384 10.92266667-24.576V53.248z" ></path></symbol><symbol id="icon-copy-task" viewBox="0 0 1024 1024"><path d="M636.30222222 513.25155555c11.71911111-6.82666667 21.16266667-26.39644445 1.36533334-35.72622222-6.71288889-3.072-13.65333333-5.91644445-20.59377778-8.64711111C666.45333334 424.61866667 697.74222222 360.56177778 697.74222222 288.99555555c0-133.34755555-108.20266667-241.55022222-241.55022222-241.55022222S214.64177778 155.648 214.64177778 288.99555555c0 71.56622222 31.28888889 135.62311111 80.66844444 179.88266667-146.31822222 57.45777778-254.29333333 191.03288889-275.34222222 352.02844445-0.22755555 1.93422222-0.34133333 3.86844445-0.34133333 5.80266666 0 30.37866667 24.576 55.06844445 55.06844445 55.06844445H532.76444445c-21.04888889-38.912-33.10933333-83.51288889-33.10933333-130.84444445 0.11377778-101.48977778 55.06844445-190.00888889 136.6471111-237.68177778z m31.63022223 227.8968889l78.05155555 37.09155555 98.98666667-98.98666667z m133.91644444 133.91644444l56.88888889-171.23555556-94.09422222 94.09422222z" ></path><path d="M774.76977778 524.97066667c-124.47288889 0-225.84888889 101.26222222-225.84888889 225.84888888 0 124.47288889 101.26222222 225.84888889 225.84888889 225.8488889s225.84888889-101.26222222 225.84888889-225.8488889c0-124.47288889-101.26222222-225.84888889-225.84888889-225.84888888z m129.47911111 128l-87.15377777 262.25777778c-1.70666667 5.23377778-6.48533333 8.87466667-11.94666667 9.216h-0.91022223c-5.12 0-10.01244445-2.95822222-12.17422222-7.62311112l-54.49955555-112.64-110.93333333-52.90666666c-3.29955555-1.59288889-5.80266667-4.32355555-6.94044445-7.73688889-2.50311111-7.05422222 1.25155555-14.79111111 8.30577778-17.29422223l258.95822222-90.45333333c1.47911111-0.45511111 2.95822222-0.79644445 4.43733333-0.79644444 3.64088889 0 6.94044445 1.36533333 9.55733334 3.86844444 3.52711111 3.75466667 4.89244445 9.216 3.29955555 14.10844445z" ></path></symbol><symbol id="icon-subprocess" viewBox="0 0 1024 1024"><path d="M1023.78666667 129.49333333c-0.32-6.93333333-1.28-13.86666667-2.56-20.48s-3.2-13.12-5.54666667-19.41333333c-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.73333333-8.85333333-8.42666667-17.28-13.86666667-25.06666666-0.32-0.53333333-0.74666667-1.06666667-1.06666667-1.49333334-0.96-1.28-1.92-2.66666667-2.98666666-3.94666666-0.32-0.32-0.53333333-0.74666667-0.85333334-1.06666667-2.56-3.2-5.22666667-6.29333333-8-9.28l-0.21333333-0.21333333c-5.97333333-6.29333333-12.58666667-12.05333333-19.73333333-17.06666667-1.49333333-1.06666667-2.98666667-2.02666667-4.48-3.09333333-1.6-1.06666667-3.2-2.02666667-4.90666667-3.09333334-0.85333333-0.53333333-1.81333333-1.06666667-2.66666667-1.6-1.28-0.74666667-2.45333333-1.38666667-3.73333333-2.02666666-0.64-0.32-1.28-0.64-2.02666667-1.06666667-1.28-0.64-2.66666667-1.28-4.05333333-1.92-2.56-1.17333333-5.22666667-2.34666667-7.89333333-3.41333333-1.49333333-0.64-3.09333333-1.17333333-4.58666667-1.70666667-2.34666667-0.85333333-4.8-1.6-7.25333333-2.24-3.2-0.96-6.50666667-1.70666667-9.81333334-2.45333333-5.54666667-1.17333333-11.2-1.92-16.96-2.34666667-3.52-0.21333333-6.93333333-0.42666667-10.45333333-0.42666667s-7.04 0.10666667-10.45333333 0.42666667c-5.76 0.42666667-11.41333333 1.28-16.96 2.34666667-3.30666667 0.64-6.61333333 1.49333333-9.81333334 2.45333333-2.45333333 0.64-4.8 1.49333333-7.25333333 2.24-1.49333333 0.53333333-3.09333333 1.06666667-4.58666667 1.70666667-2.66666667 1.06666667-5.33333333 2.13333333-7.89333333 3.41333333-1.38666667 0.64-2.66666667 1.28-4.05333333 1.92-0.64 0.32-1.28 0.64-2.02666667 1.06666667-1.28 0.64-2.56 1.38666667-3.73333333 2.02666666-0.96 0.53333333-1.81333333 1.06666667-2.66666667 1.6-1.6 0.96-3.30666667 2.02666667-4.90666667 3.09333334-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333333-7.14666667 5.01333333-13.76 10.77333333-19.73333333 17.06666667l-0.21333333 0.21333333c-2.77333333 2.98666667-5.44 6.08-8 9.28-0.32 0.32-0.53333333 0.74666667-0.85333334 1.06666667-0.96 1.28-2.02666667 2.56-2.98666666 3.94666666-0.32 0.53333333-0.74666667 1.06666667-1.06666667 1.49333334-5.44 7.78666667-10.13333333 16.21333333-13.86666667 25.06666666-0.85333333 2.02666667-1.70666667 4.16-2.45333333 6.18666667-2.34666667 6.29333333-4.16 12.8-5.54666667 19.41333333s-2.24 13.54666667-2.56 20.48c-0.10666667 2.34666667-0.21333333 4.69333333-0.21333333 7.04 0 3.52 0.10666667 7.04 0.42666667 10.45333334 0.42666667 5.76 1.28 11.41333333 2.34666666 16.96 0.64 3.30666667 1.49333333 6.61333333 2.45333334 9.81333333 5.22666667 18.34666667 14.18666667 35.09333333 26.02666666 49.49333333 0.74666667 0.85333333 1.38666667 1.70666667 2.13333334 2.45333334 4.16 4.8 8.74666667 9.38666667 13.54666666 13.65333333l-105.81333333 306.98666667c-3.09333333-0.21333333-6.18666667-0.32-9.28-0.32-14.93333333 0-29.33333333 2.45333333-42.77333333 6.82666666-0.64 0.21333333-1.28 0.42666667-1.81333334 0.64-1.49333333 0.53333333-3.09333333 1.06666667-4.58666666 1.70666667-2.34666667 0.96-4.69333333 1.92-7.04 2.98666667L466.56 395.62666667c2.34666667-5.44 4.37333333-11.2 6.08-16.96 0.96-3.2 1.70666667-6.50666667 2.45333333-9.81333334 1.17333333-5.54666667 1.92-11.2 2.34666667-16.96 0.21333333-3.52 0.42666667-6.93333333 0.42666667-10.45333333 0-2.34666667-0.10666667-4.69333333-0.21333334-7.04-0.32-6.93333333-1.28-13.86666667-2.56-20.48-7.04-34.45333333-27.09333333-64.10666667-54.72-83.84-0.85333333-0.64-1.81333333-1.28-2.66666666-1.92-6.4-4.26666667-13.12-8.10666667-20.16-11.30666667-2.02666667-0.96-4.05333333-1.81333333-6.08-2.56s-4.16-1.6-6.29333334-2.34666666c-13.76-4.69333333-28.48-7.14666667-43.84-7.14666667-3.52 0-7.04 0.10666667-10.45333333 0.42666667-5.76 0.42666667-11.41333333 1.28-16.96 2.34666666-3.30666667 0.64-6.61333333 1.49333333-9.81333333 2.45333334-2.45333333 0.64-4.8 1.49333333-7.25333334 2.24-1.49333333 0.53333333-3.09333333 1.06666667-4.58666666 1.70666666-2.66666667 1.06666667-5.33333333 2.13333333-7.89333334 3.41333334-1.38666667 0.64-2.66666667 1.28-4.05333333 1.92-0.64 0.32-1.28 0.64-2.02666667 1.06666666-1.28 0.64-2.56 1.38666667-3.73333333 2.02666667-0.96 0.53333333-1.81333333 1.06666667-2.66666667 1.6-1.6 0.96-3.30666667 2.02666667-4.90666666 3.09333333-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333334-7.14666667 5.01333333-13.76 10.77333333-19.73333334 17.06666666l-0.21333333 0.21333334c-2.77333333 2.98666667-5.44 6.08-8 9.28-0.32 0.32-0.53333333 0.74666667-0.85333333 1.06666666-0.96 1.28-2.02666667 2.56-2.98666667 3.94666667-0.32 0.53333333-0.74666667 1.06666667-1.06666667 1.49333333-5.44 7.78666667-10.13333333 16.21333333-13.86666666 25.06666667-0.85333333 2.02666667-1.70666667 4.16-2.45333334 6.18666667-2.34666667 6.29333333-4.16 12.8-5.54666666 19.41333333s-2.24 13.54666667-2.56 20.48c-0.10666667 2.34666667-0.21333333 4.69333333-0.21333334 7.04 0 3.52 0.10666667 7.04 0.42666667 10.45333333 0.42666667 5.76 1.28 11.41333333 2.34666667 16.96 0.64 3.30666667 1.49333333 6.61333333 2.45333333 9.81333334 5.22666667 18.34666667 14.18666667 35.09333333 26.02666667 49.49333333 0.74666667 0.85333333 1.38666667 1.70666667 2.13333333 2.45333333 0.64 0.74666667 1.28 1.49333333 1.92 2.13333334L129.6 751.04c-12.48 0.64-24.53333333 2.88-35.84 6.61333333-0.64 0.21333333-1.28 0.42666667-1.81333333 0.64-1.49333333 0.53333333-3.09333333 1.06666667-4.58666667 1.70666667-2.66666667 1.06666667-5.33333333 2.13333333-7.89333333 3.41333333-3.30666667 1.49333333-6.61333333 3.2-9.81333334 5.01333334-0.96 0.53333333-1.81333333 1.06666667-2.66666666 1.6-1.6 0.96-3.30666667 2.02666667-4.90666667 3.09333333-1.49333333 0.96-2.98666667 2.02666667-4.48 3.09333333-1.81333333 1.28-3.52 2.56-5.22666667 3.94666667-0.85333333 0.64-1.70666667 1.38666667-2.56 2.02666667-2.56 2.13333333-5.01333333 4.26666667-7.36 6.50666666-0.74666667 0.74666667-1.6 1.49333333-2.34666666 2.24-1.49333333 1.49333333-3.09333333 3.09333333-4.48 4.69333334-1.49333333 1.6-2.88 3.30666667-4.26666667 4.90666666-2.77333333 3.41333333-5.44 6.82666667-7.89333333 10.56-4.90666667 7.25333333-9.17333333 15.04-12.58666667 23.14666667-0.85333333 2.02666667-1.70666667 4.16-2.45333333 6.18666667-0.74666667 2.13333333-1.49333333 4.16-2.13333334 6.29333333-1.28 4.26666667-2.45333333 8.64-3.41333333 13.12s-1.6 8.96-2.02666667 13.54666667c-0.42666667 4.58666667-0.74666667 9.28-0.74666666 13.97333333 0 75.41333333 61.12 136.53333333 136.53333333 136.53333333s136.53333333-61.12 136.53333333-136.53333333c0-4.69333333-0.21333333-9.38666667-0.74666666-13.97333333-0.42666667-4.58666667-1.17333333-9.06666667-2.02666667-13.54666667s-2.02666667-8.85333333-3.41333333-13.12c-0.64-2.13333333-1.38666667-4.26666667-2.13333334-6.29333333-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.41333333-8.21333333-7.68-15.89333333-12.58666667-23.14666667-2.45333333-3.62666667-5.12-7.14666667-7.89333333-10.56-1.38666667-1.70666667-2.77333333-3.30666667-4.26666667-4.90666666s-2.98666667-3.2-4.48-4.69333334c-0.74666667-0.74666667-1.6-1.49333333-2.34666666-2.24-1.38666667-1.38666667-2.88-2.66666667-4.37333334-3.94666666l106.45333334-307.2c2.77333333 0.21333333 5.65333333 0.32 8.42666666 0.32 16.53333333 0 32.32-2.88 46.93333334-8.32 1.81333333-0.64 3.52-1.38666667 5.33333333-2.13333334l162.13333333 164.8c-0.42666667 1.17333333-0.85333333 2.24-1.28 3.41333334-0.74666667 2.13333333-1.49333333 4.16-2.13333333 6.29333333-1.28 4.26666667-2.45333333 8.64-3.41333333 13.12s-1.6 8.96-2.02666667 13.54666667c-0.42666667 4.58666667-0.74666667 9.28-0.74666667 13.97333333 0 75.41333333 61.12 136.53333333 136.53333334 136.53333333s136.53333333-61.12 136.53333333-136.53333333c0-4.69333333-0.21333333-9.38666667-0.74666667-13.97333333-0.42666667-4.58666667-1.17333333-9.06666667-2.02666666-13.54666667s-2.02666667-8.85333333-3.41333334-13.12c-0.64-2.13333333-1.38666667-4.26666667-2.13333333-6.29333333-0.74666667-2.13333333-1.6-4.16-2.45333333-6.18666667-3.41333333-8.21333333-7.68-15.89333333-12.58666667-23.14666667-2.45333333-3.62666667-5.12-7.14666667-7.89333333-10.56-1.06666667-1.38666667-2.24-2.66666667-3.41333334-3.94666666l109.97333334-318.93333334c1.17333333-0.10666667 2.24-0.10666667 3.41333333-0.21333333 5.76-0.42666667 11.41333333-1.28 16.96-2.34666667 3.30666667-0.64 6.61333333-1.49333333 9.81333333-2.45333333 18.34666667-5.22666667 35.09333333-14.18666667 49.49333334-26.02666667 0.85333333-0.74666667 1.70666667-1.38666667 2.45333333-2.13333333 4.90666667-4.26666667 9.6-8.96 13.86666667-13.86666667 0.74666667-0.85333333 1.38666667-1.70666667 2.13333333-2.45333333 11.84-14.29333333 20.8-31.14666667 26.02666667-49.49333333 0.96-3.2 1.70666667-6.50666667 2.45333333-9.81333334 1.17333333-5.54666667 1.92-11.2 2.34666667-16.96 0.21333333-3.52 0.42666667-6.93333333 0.42666666-10.45333333 0.10666667-2.45333333 0-4.8-0.10666666-7.14666667z" ></path></symbol><symbol id="icon-human-decision" viewBox="0 0 1024 1024"><path d="M519.5 594.47733333c-4.1 10.399-6.1 21.398-6.1 32.197 0 23.198 8.899 46.395 26.497 64.294l29.897 29.997 1.7 1.4c17.398 16.798 39.996 24.997 62.494 24.997 22.998 0 46.396-8.7 63.794-26.397h0.2l176.883-176.983 1.6-1.5c16.698-17.598 24.797-40.196 24.797-62.794 0-23.197-8.8-46.195-26.397-63.794h0.1l0.1-0.4-29.898-29.797c-17.598-17.498-40.796-26.297-64.293-26.297-11 0-21.998 1.9-32.497 5.9L557.696 174.41733333c4.2-10.399 6.099-21.498 6.099-32.497 0-23.198-9-46.395-26.697-64.293L507.2 47.83033333C489.602 30.23333333 466.404 21.33333333 443.107 21.33333333c-23.198 0-46.696 8.9-64.294 26.497L201.93 224.81333333l-1.5 1.5c-16.398 17.698-24.797 40.296-24.797 62.494 0 23.398 8.799 46.595 26.397 64.394l29.897 29.897 1.7 1.4c17.598 16.898 40.096 25.097 62.494 25.097 10.999 0 21.898-2.2 32.497-6l18.898 18.999L31.546 738.86333333C10.55 759.86133333 0.05 787.45833333 0.05 814.95533333c0 27.798 10.499 55.495 31.497 76.393 21.198 21.098 48.795 31.597 76.392 31.597 27.698 0 55.195-10.499 76.293-31.597l315.97-316.07 19.297 19.199zM959.956 981.33933333H512c-35.197 0-63.994-28.797-63.994-63.994 0-35.196 28.797-63.993 63.994-63.993h447.956c35.197 0 63.994 28.797 63.994 63.993 0 35.197-28.797 63.994-63.994 63.994z" ></path></symbol><symbol id="icon-human-task" viewBox="0 0 1024 1024"><path d="M924.33066667 123.33511111H776.87466667v163.84h-546.13333334v-163.84H99.66933333c-19.11466667 0-32.768 19.11466667-32.768 38.22933334v813.73866666c0 21.84533333 16.384 38.22933333 35.49866667 38.22933334h816.46933333c19.11466667 0 35.49866667-16.384 35.49866667-38.22933334V161.56444445c0-21.84533333-16.384-38.22933333-35.49866667-38.22933334h5.46133334zM790.528 445.55377778L471.04 838.76977778c2.73066667 5.46133333-5.46133333 5.46133333-10.92266667 2.73066667l-232.10666666-191.14666667c-5.46133333-2.73066667-5.46133333-10.92266667-2.73066667-16.384l38.22933333-49.152c2.73066667-5.46133333 10.92266667-5.46133333 16.384-2.73066667l174.76266667 147.456 273.06666667-338.60266666c2.73066667-8.192 10.92266667-8.192 16.384-2.73066667l43.69066666 38.22933333c8.192 2.73066667 10.92266667 8.192 2.73066667 19.11466667zM643.072 74.18311111V41.41511111c0-30.03733333-27.30666667-49.152-57.344-49.152H419.15733333c-30.03733333 0-57.344 19.11466667-57.344 49.152v32.768h-65.536v163.84h412.33066667v-163.84h-65.536z m-139.264 98.304c-32.768 0-60.07466667-27.30666667-60.07466667-60.07466666s27.30666667-60.07466667 60.07466667-60.07466667 60.07466667 27.30666667 60.07466667 60.07466667c0 38.22933333-27.30666667 60.07466667-60.07466667 60.07466666z m0 0" ></path></symbol><symbol id="icon-decision" viewBox="0 0 1024 1024"><path d="M580.175027 28.57919l414.065896 414.065896a97.58526 97.58526 0 0 1 0 138.00065l-414.065896 414.065896a97.58526 97.58526 0 0 1-138.000649 0l-414.065897-414.065896a97.58526 97.58526 0 0 1 0-138.00065l414.065897-414.065896a97.58526 97.58526 0 0 1 138.000649 0z" ></path></symbol><symbol id="icon-end" viewBox="0 0 1024 1024"><path d="M512 25.6C243.2 25.6 25.6 243.2 25.6 512S243.2 998.4 512 998.4 998.4 780.8 998.4 512 780.8 25.6 512 25.6z m162.304 615.936c0 17.92-14.336 32.256-32.256 32.256H382.464c-17.92 0-32.256-14.336-32.256-32.256V381.952c0-17.92 14.336-32.256 32.256-32.256h259.584c17.92 0 32.256 14.336 32.256 32.256v259.584z m0 0" ></path></symbol><symbol id="icon-start" viewBox="0 0 1024 1024"><path d="M960.62577778 322.33244445c-24.46222222-57.91288889-59.61955555-110.02311111-104.33422223-154.73777778s-96.82488889-79.872-154.73777777-104.33422222C641.59288889 37.888 577.87733333 25.03111111 512.11377778 25.03111111c-65.64977778 0-129.47911111 12.85688889-189.44 38.22933334-57.91288889 24.46222222-110.02311111 59.61955555-154.73777778 104.33422222s-79.872 96.82488889-104.33422222 154.73777778C38.22933333 382.29333333 25.37244445 446.00888889 25.37244445 511.77244445c0 65.64977778 12.85688889 129.47911111 38.22933333 189.44 24.46222222 57.91288889 59.61955555 110.02311111 104.33422222 154.73777777s96.82488889 79.872 154.73777778 104.33422223c59.96088889 25.37244445 123.67644445 38.22933333 189.44 38.22933333 65.64977778 0 129.47911111-12.97066667 189.44-38.22933333 57.91288889-24.46222222 110.02311111-59.61955555 154.73777777-104.33422223s79.872-96.82488889 104.33422223-154.73777777c25.37244445-59.96088889 38.22933333-123.67644445 38.22933333-189.44 0-65.64977778-12.85688889-129.47911111-38.22933333-189.44z m-236.65777778 233.13066666L464.09955555 755.14311111C422.11555555 797.01333333 350.43555555 767.31733333 350.43555555 708.03911111V308.79288889c0-59.27822222 71.68-88.97422222 113.664-47.104l259.86844445 199.56622222c26.05511111 26.05511111 26.05511111 68.15288889 0 94.208z" ></path></symbol><symbol id="icon-virtual-human-task" viewBox="0 0 1496 1024"><path d="M864 1024H160C70.4 1024 0 953.6 0 864V160C0 70.4 70.4 0 160 0h704c89.6 0 160 70.4 160 160v704c0 89.6-70.4 160-160 160zM160 64c-51.2 0-96 44.8-96 96v704c0 51.2 44.8 96 96 96h704c51.2 0 96-44.8 96-96V160c0-51.2-44.8-96-96-96H160z" fill="#C9CED6" ></path></symbol><symbol id="icon-fuzhi" viewBox="0 0 1024 1024"><path d="M394.667 106.667h448a74.667 74.667 0 0 1 74.666 74.666v448A74.667 74.667 0 0 1 842.667 704h-448A74.667 74.667 0 0 1 320 629.333v-448a74.667 74.667 0 0 1 74.667-74.666z m0 64A10.667 10.667 0 0 0 384 181.333v448A10.667 10.667 0 0 0 394.667 640h448a10.667 10.667 0 0 0 10.666-10.667v-448a10.667 10.667 0 0 0-10.666-10.666h-448zM640 768a32 32 0 0 1 64 0v74.667a74.667 74.667 0 0 1-74.667 74.666h-448a74.667 74.667 0 0 1-74.666-74.666v-448A74.667 74.667 0 0 1 181.333 320H256a32 32 0 0 1 0 64h-74.667a10.667 10.667 0 0 0-10.666 10.667v448a10.667 10.667 0 0 0 10.666 10.666h448A10.667 10.667 0 0 0 640 842.667V768z" ></path></symbol></svg>';
7
- if ((t2 = document.getElementsByTagName("script"))[t2.length - 1].getAttribute("data-injectcss") && !e2.__iconfont__svg__cssinject__) {
8
- e2.__iconfont__svg__cssinject__ = true;
9
- try {
10
- document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
11
- } catch (t3) {
12
- console;
13
- }
14
- }
15
- !function(t3) {
16
- if (document.addEventListener)
17
- if (~["complete", "loaded", "interactive"].indexOf(document.readyState))
18
- setTimeout(t3, 0);
19
- else {
20
- var o3 = function() {
21
- document.removeEventListener("DOMContentLoaded", o3, false), t3();
22
- };
23
- document.addEventListener("DOMContentLoaded", o3, false);
24
- }
25
- else
26
- document.attachEvent && (l2 = t3, r2 = e2.document, i2 = false, n2 = function() {
27
- i2 || (i2 = true, l2());
28
- }, (a2 = function() {
29
- try {
30
- r2.documentElement.doScroll("left");
31
- } catch (e3) {
32
- return void setTimeout(a2, 50);
33
- }
34
- n2();
35
- })(), r2.onreadystatechange = function() {
36
- "complete" == r2.readyState && (r2.onreadystatechange = null, n2());
37
- });
38
- var l2, r2, i2, n2, a2;
39
- }(function() {
40
- var e3, t3;
41
- (e3 = document.createElement("div")).innerHTML = o2, o2 = null, (t3 = e3.getElementsByTagName("svg")[0]) && (t3.setAttribute("aria-hidden", "true"), t3.style.position = "absolute", t3.style.width = 0, t3.style.height = 0, t3.style.overflow = "hidden", function(e4, t4) {
42
- t4.firstChild ? function(e5, t5) {
43
- t5.parentNode.insertBefore(e5, t5);
44
- }(e4, t4.firstChild) : t4.appendChild(e4);
45
- }(t3, document.body));
46
- });
47
- }(window);
48
- const c = { 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" } } }, m = { 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: "表格数据不为空" } } }, u = { en: c, cn: m }, p = l.createI18n({ locale: "cn", messages: u, legacy: false });
49
- function h() {
50
- return { attr: { id: "newHumanTask", name: p.global.t("workflowEditor.task.newTask") }, g: {}, basicProperties: { processingMode: { type: "EDIT", passRate: 0, moreTransactor: false, actions: { action: [] } }, taskCode: "", taskTitle: "", remark: "", mailNotice: false, taskUrl: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, permissionSettings: { editForm: { permission: false, field: [], subTablePermission: [{ tableName: "sub_table1", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }, { tableName: "sub_table2", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } }, autoFilledFields: { field: [] }, reminder: null, events: { afterComplete: false }, variables: { variable: [] } };
51
- }
52
- function f() {
53
- return window.$store;
54
- }
55
- function w() {
56
- return window.$locale ? p.locale = window.$locale : p.locale = "cn", p.global;
57
- }
58
- function g() {
59
- return [{ name: "Start", label: w().t("workflowEditor.task.start"), icon: "start", type: "primary", class: "", round: true, width: 48, height: 48, color: "#67C23A" }, { name: "HumanTask", label: w().t("workflowEditor.task.humanTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#000" }, { name: "Decision", label: w().t("workflowEditor.task.conditionJudgment"), icon: "decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Fork", label: w().t("workflowEditor.task.branch"), icon: "fork", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Join", label: w().t("workflowEditor.task.converge"), icon: "join", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Subprocess", label: w().t("workflowEditor.task.subprocess"), icon: "subprocess", type: "warning", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "HumanDecision", label: w().t("workflowEditor.task.manualJudgment"), icon: "human-decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "CopyTask", label: w().t("workflowEditor.task.cCtask"), icon: "copy-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "AutoTask", label: w().t("workflowEditor.task.autoTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "End", label: w().t("workflowEditor.task.end"), icon: "end", type: "danger", class: "workflow-end-button", round: true, width: 48, height: 48, color: "#F56C6C" }];
60
- }
61
- function C(e2, t2) {
62
- switch ("string" == typeof e2 && (e2 = function(e3) {
63
- return f().getters["wfEditor/taches"].filter((t3) => t3.id === e3)[0];
64
- }(e2)), t2) {
65
- case "up":
66
- case "top":
67
- return { position: "up", x: e2.x + e2.width / 2, y: e2.y };
68
- case "right":
69
- return { position: "right", x: e2.x + e2.width, y: e2.y + e2.height / 2 };
70
- case "down":
71
- case "bottom":
72
- return { position: "down", x: e2.x + e2.width / 2, y: e2.y + e2.height };
73
- case "left":
74
- return { position: "left", x: e2.x, y: e2.y + e2.height / 2 };
75
- default:
76
- return { position: "", x: e2.x, y: e2.y };
77
- }
78
- }
79
- function k(e2) {
80
- const t2 = document.getElementById("svg").getScreenCTM();
81
- return { x: (e2.clientX - t2.e) / t2.a, y: (e2.clientY - t2.f) / t2.d };
82
- }
83
- function b() {
84
- !function() {
85
- for (const e2 of f().getters["wfEditor/selectedTaches"])
86
- e2.isSelected = false;
87
- f().commit("wfEditor/setSelectedTaches", []);
88
- }(), f().getters["wfEditor/selectedTransition"] && (f().getters["wfEditor/selectedTransition"].isSelected = false), f().commit("wfEditor/setSelectedTransition", null);
89
- }
90
- function V(e2) {
91
- Object.getOwnPropertyNames(e2).forEach(function(t2) {
92
- if ("object" == typeof e2[t2]) {
93
- if (void 0 !== e2[t2]._text)
94
- return void (e2[t2] = e2[t2]._text);
95
- if (Object.keys(e2[t2]).length > 0)
96
- V(e2[t2]);
97
- else {
98
- ["variables", "events", "autoFilledFields"].indexOf(t2) < 0 && (e2[t2] = "");
99
- }
100
- }
101
- });
102
- }
103
- function y(e2, t2) {
104
- t2 || (t2 = []), Array.isArray(t2) || (t2 = [t2]);
105
- const o2 = f().getters["wfEditor/taches"];
106
- for (const l2 of t2) {
107
- const t3 = { id: l2.attr.id, name: l2.attr.name, x: l2.g.x, y: l2.g.y, width: l2.g.width, height: l2.g.height, type: e2, isSelected: false, ref: l2 };
108
- o2.push(t3);
109
- }
110
- }
111
- function v(e2) {
112
- e2 && (y("HumanTask", e2.humanTask), y("Decision", e2.decision), y("Fork", e2.fork), y("Join", e2.join), y("Subprocess", e2.subprocess), y("HumanDecision", e2.humanDecision), y("CopyTask", e2.copyTask), y("AutoTask", e2.autoTask), y("Start", e2.start), y("End", e2.end), function(e3, t2) {
113
- t2 || (t2 = []), Array.isArray(t2) || (t2 = [t2]);
114
- const o2 = f().getters["wfEditor/transitions"];
115
- for (const e4 of t2) {
116
- const t3 = e4.basicProperties.remark || "", l2 = { id: e4.attr.id, startJoint: { parent: N(e4.attr.from), position: e4.g.fromJoint }, endJoint: { parent: N(e4.attr.to), position: e4.g.toJoint }, isSelected: false, remark: t3, lineInfo: { type: e4.g.lineType, controlPoint: null }, ref: e4 };
117
- if ("CurveLine" === e4.g.lineType && e4.g.coordinate) {
118
- const t4 = e4.g.coordinate.split(",");
119
- l2.lineInfo.controlPoint = { x: t4[0], y: t4[1] };
120
- } else if ("BrokenLine" === e4.g.lineType && e4.g.coordinate) {
121
- const t4 = e4.g.coordinate.split(";"), o3 = [];
122
- t4.forEach((e5) => {
123
- if ("" !== e5) {
124
- const t5 = e5.split(",");
125
- o3.push({ x: t5[0], y: t5[1] });
126
- }
127
- }), l2.lineInfo.controlPoint = o3;
128
- }
129
- o2.push(l2);
130
- }
131
- }(0, e2.transition));
132
- }
133
- function T(e2) {
134
- return f().getters["wfEditor/transitions"].filter((t2) => t2.startJoint.parent.id === e2 || t2.ref.attr.from === e2);
135
- }
136
- function N(e2) {
137
- const t2 = f().getters["wfEditor/taches"].filter((t3) => t3.ref.attr.id === e2);
138
- return t2.length > 0 ? t2[0] : null;
139
- }
140
- function x(e2) {
141
- return JSON.parse(JSON.stringify(e2));
142
- }
143
- function E(e2, t2) {
144
- var o2;
145
- (o2 = t2, f().getters["wfEditor/transitions"].filter((e3) => e3.endJoint.parent.id === o2 || e3.ref.attr.to === o2)).map((t3) => {
146
- t3.ref.attr.to = e2, t3.ref.attr.id = "flow_" + t3.ref.attr.from + "_to_" + t3.ref.attr.to, t3.id = t3.ref.attr.id;
147
- });
148
- return T(t2).map((t3) => {
149
- t3.ref.attr.from = e2, t3.ref.attr.id = "flow_" + t3.ref.attr.from + "_to_" + t3.ref.attr.to, t3.id = t3.ref.attr.id;
150
- }), true;
151
- }
152
- function S(e2) {
153
- const t2 = N(e2.formModel.id);
154
- if (t2 && t2.id !== e2.id)
155
- return e2.$alert(w().t("workflowEditorMessage.itIsTheSameAsTheExistingLink", { name: t2.name })), void (e2.formModel.id = e2.id);
156
- E(e2.formModel.id, e2.id), e2.$emit("update:id", e2.formModel.id);
157
- }
158
- function M(e2, t2) {
159
- let l2 = "";
160
- if (e2.processI18n && e2.model.ref && e2.model.ref.basicProperties && e2.model.ref.basicProperties.i18nKey) {
161
- const r2 = e2.model.ref.basicProperties.i18nKey, i2 = o.getLanguageWithLocale();
162
- e2.processI18n[r2] && (l2 = e2.processI18n[r2][i2]), l2 || (l2 = t2);
163
- } else
164
- l2 = t2;
165
- return l2;
166
- }
167
- const D = { newProcess: function() {
168
- const e2 = h();
169
- return e2.g = { x: 200, y: 150, width: 80, height: 40 }, { attr: { name: p.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: h, newDecision: function() {
171
- return { attr: { id: "t3", name: p.global.t("workflowEditor.task.judge") }, g: {} };
172
- }, newStart: function() {
173
- return { attr: { id: "", name: p.global.t("workflowEditor.task.start") }, g: {} };
174
- }, newEnd: function() {
175
- return { attr: { id: "", name: p.global.t("workflowEditor.task.end") }, g: {} };
176
- }, newTransition: function() {
177
- return { attr: { id: "", from: "", to: "" }, g: {}, basicProperties: { remark: "", isOriginalUser: false, condition: "" }, inform: { informType: "mail", userCondition: "", subject: "", content: "" }, autoFilledFields: { field: [] }, onTransit: false };
178
- }, newSubprocess: function() {
179
- return { attr: { id: "", name: p.global.t("workflowEditor.task.subprocess"), taskTitle: "" }, g: {}, processCode: "", processVersion: "", events: { beforeStart: "", end: false }, transactorSettings: { userCondition: "", additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, parameters: { field: [] }, result: { field: [] } };
180
- }, newFork: function() {
181
- return { attr: { id: "", name: p.global.t("workflowEditor.task.branch") }, g: {} };
182
- }, newJoin: function() {
183
- return { attr: { id: "", name: p.global.t("workflowEditor.task.converge") }, g: {} };
184
- }, newHumanDecision: function() {
185
- return { attr: { name: p.global.t("workflowEditor.task.manualJudgment") }, g: {} };
186
- }, newCopyTask: function() {
187
- return { attr: { id: "", name: p.global.t("workflowEditor.task.newCc") }, g: {}, taskNotice: {}, basicProperties: { taskTitle: "", remark: "", taskUrl: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, events: {}, permissionSettings: { editForm: { permission: false, field: [] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } } };
188
- }, newAutoTask: function() {
189
- return { attr: { id: "", name: p.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
- } }, $ = (e2, t2) => {
191
- const o2 = e2.__vccOpts || e2;
192
- for (const [e3, l2] of t2)
193
- o2[e3] = l2;
194
- return o2;
195
- }, F = { class: "svg-icon", "aria-hidden": "true" }, P = ["xlink:href"];
196
- const B = $({ name: "IconSvg", props: { icon: { type: String, required: true } }, computed: { iconName() {
197
- return `#icon-${this.icon}`;
198
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
199
- return r.openBlock(), r.createElementBlock("svg", F, [r.createElementVNode("use", { "xlink:href": n2.iconName }, null, 8, P)]);
200
- }]]), O = { name: "Toolbox", components: { IconSvg: B }, data: () => ({ componentList: g() }), computed: { ...t.mapGetters("wfEditor", ["componentToDraw"]) }, methods: { ...t.mapMutations("wfEditor", ["setComponentToDraw"]), select(e2) {
201
- this.setComponentToDraw(e2);
202
- } } }, I = { style: { height: "calc(100vh - 98px)", "background-color": "#FFFFFF" } };
203
- const _ = $(O, [["render", function(e2, t2, o2, l2, i2, n2) {
204
- const a2 = r.resolveComponent("icon-svg"), s2 = r.resolveComponent("el-button");
205
- return r.openBlock(), r.createElementBlock("div", I, [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"]]), R = { 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 C(this.parent, this.position);
208
- }, jointContainer() {
209
- return { x: this.joint.x - 10, y: this.joint.y - 10 };
210
- } }, methods: { ...t.mapMutations("wfEditor", ["setStartJoint", "setEndJoint", "stopDrawingLine", "setDraggerToMove", "setContextMenuVisible"]), isValidTransition(e2, t2) {
211
- if (!e2)
212
- return false;
213
- if (e2.parent === t2.parent)
214
- return this.$alert(this.$t("workflowEditorMessage.theStartAndEndOfTheFlowDirectionCannotBeTheSame")), false;
215
- if ("Decision" !== e2.parent.type && "Fork" !== e2.parent.type && "HumanDecision" !== e2.parent.type) {
216
- let t3 = 0;
217
- this.draggerToMove && (t3 = 1);
218
- if (T(e2.parent.id).length > t3)
219
- return this.$alert(this.$t("workflowEditorMessage.onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows")), false;
220
- }
221
- return "Start" === e2.parent.type && "End" === t2.parent.type ? (this.$alert(this.$t("workflowEditorMessage.startAndEndNodesCannotBeConnectedDirectly")), false) : "End" !== e2.parent.type || (this.$alert(this.$t("workflowEditorMessage.endNodeCannotHaveOutFlowDirection")), false);
222
- }, mouseup() {
223
- if (this.draggerToMove) {
224
- const e2 = this.draggerToMove.position, t2 = { parent: this.parent, position: this.position };
225
- if ("start" === e2 ? this.draggerToMove.owner.startJoint = t2 : this.draggerToMove.owner.endJoint = t2, this.isValidTransition(this.draggerToMove.owner.startJoint, this.draggerToMove.owner.endJoint)) {
226
- const e3 = this.draggerToMove.owner;
227
- e3.id = "flow_" + e3.startJoint.parent.id + "_to_" + e3.endJoint.parent.id, e3.ref.attr = { id: e3.id, from: e3.startJoint.parent.id, to: e3.endJoint.parent.id };
228
- } else
229
- this.draggerToMove.owner.startJoint = this.draggerToMove.originStartJoint, this.draggerToMove.owner.endJoint = this.draggerToMove.originEndJoint;
230
- this.setDraggerToMove(null);
231
- } else
232
- this.addTransition();
233
- }, addTransition() {
234
- const e2 = { parent: this.parent, position: this.position };
235
- if (this.isValidTransition(this.startJoint, e2)) {
236
- this.setEndJoint(e2);
237
- const t2 = { id: "flow_" + this.startJoint.parent.id + "_to_" + this.endJoint.parent.id, startJoint: this.startJoint, endJoint: this.endJoint, isSelected: false, lineInfo: { type: "StraightLine", controlPoint: null } };
238
- t2.ref = D.newTransition(), t2.ref.attr = { id: t2.id, from: this.startJoint.parent.id, to: this.endJoint.parent.id }, this.transitions.push(t2);
239
- }
240
- this.stopDrawingLine();
241
- }, enterJoint() {
242
- this.isActivated = true, this.$emit("enter-joint");
243
- }, leaveJoint() {
244
- this.isActivated = false, this.$emit("leave-joint");
245
- } } }, A = ["x", "y"], U = ["cx", "cy"];
246
- const L = $(R, [["render", function(e2, t2, o2, l2, i2, n2) {
247
- return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[4] || (t2[4] = r.withModifiers(() => {
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
- e2.setContextMenuVisible(false), e2.setStartJoint({ parent: o2.parent, position: o2.position });
250
- }, ["stop"])), onMouseup: t2[3] || (t2[3] = (...e3) => n2.mouseup && n2.mouseup(...e3)) }, null, 42, A), r.withDirectives(r.createElementVNode("circle", { cx: n2.joint.x, cy: n2.joint.y, r: "3", class: "joint" }, null, 8, U), [[r.vShow, !i2.isActivated]])], 32);
251
- }]]), H = { startDrag(e2) {
252
- this.model.name, this.setContextMenuVisible(false), function(e3, t2) {
253
- b(), t2.$parent.region = null, t2.$parent.showHistory || (t2.model.isSelected = true), f().getters["wfEditor/selectedTaches"].push(t2.model);
254
- const o2 = k(e3);
255
- f().commit("wfEditor/setMouseDownPosition", o2), f().commit("wfEditor/setMovingTache", true);
256
- }(e2, this);
257
- }, endDrag() {
258
- this.model.name, f().commit("wfEditor/setMovingTache", false), f().commit("wfEditor/setMouseDownPosition", null);
259
- }, showJoints() {
260
- this.$parent.showHistory || (this.jointPoints = ["up", "right", "down", "left"]);
261
- }, hideJoints() {
262
- this.jointPoints = [];
263
- } }, W = { name: "Start", components: { Joint: L }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, z = ["width", "height", "x", "y"], j = ["x", "y", "width", "height"];
264
- const J = $(W, [["render", function(e2, t2, o2, l2, i2, n2) {
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, 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, j), (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
- }]]), G = { name: "End", components: { Joint: L }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, q = ["width", "height", "x", "y"], K = ["x", "y", "width", "height"];
268
- const X = $(G, [["render", function(e2, t2, o2, l2, i2, n2) {
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, q), 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, K), (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
- }]]), Y = { name: "TacheResizer", props: { owner: { type: Object, default: null }, position: { type: String, default: "" } }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), area() {
272
- let e2, t2;
273
- switch (this.position) {
274
- case "NW":
275
- e2 = this.owner.x, t2 = this.owner.y;
276
- break;
277
- case "NE":
278
- e2 = this.owner.x + this.owner.width, t2 = this.owner.y;
279
- break;
280
- case "SW":
281
- e2 = this.owner.x, t2 = this.owner.y + this.owner.height;
282
- break;
283
- case "SE":
284
- e2 = this.owner.x + this.owner.width, t2 = this.owner.y + this.owner.height;
285
- }
286
- e2 -= 4, t2 -= 4;
287
- return { x: e2, y: t2, width: 8, height: 8, cursor: this.position.toLowerCase() + "-resize" };
288
- } }, methods: { ...t.mapMutations("wfEditor", ["setMovingResizer", "setResizerToMove", "setContextMenuVisible"]) } }, Q = ["x", "y", "width", "height"];
289
- const Z = $(Y, [["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
- 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, Q)) : r.createCommentVNode("", true);
293
- }]]), ee = { name: "HumanTask", components: { Joint: L, TacheResizer: Z }, props: { model: { type: Object, default: null } }, data() {
294
- return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
295
- }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
296
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
297
- } }, created() {
298
- this.name = M(this, this.name);
299
- }, mounted() {
300
- this.$watch("model.name", function(e2) {
301
- this.name = M(this, e2);
302
- });
303
- }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, te = ["width", "height", "x", "y"], oe = ["x", "y"];
304
- const le = $(ee, [["render", function(e2, t2, o2, l2, i2, n2) {
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, te), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, oe), (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
- }]]), re = { name: "Decision", components: { Joint: L }, props: { model: { type: Object, default: null } }, data() {
308
- return { jointPoints: [], name: this.model.name };
309
- }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
310
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
311
- } }, created() {
312
- this.name = M(this, this.name);
313
- }, mounted() {
314
- this.$watch("model.name", function(e2) {
315
- this.name = M(this, e2);
316
- });
317
- }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, ie = ["width", "height", "x", "y"], ne = ["x", "y", "width", "height"], ae = ["x", "y"];
318
- const se = $(re, [["render", function(e2, t2, o2, l2, i2, n2) {
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, ie), 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, ne), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, ae), (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
- }]]), de = { name: "Subprocess", components: { Joint: L, TacheResizer: Z }, props: { model: { type: Object, default: null } }, data() {
322
- return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
323
- }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
324
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
325
- } }, created() {
326
- this.name = M(this, this.name);
327
- }, mounted() {
328
- this.$watch("model.name", function(e2) {
329
- this.name = M(this, e2);
330
- });
331
- }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, ce = ["width", "height", "x", "y"], me = ["x", "y"];
332
- const ue = $(de, [["render", function(e2, t2, o2, l2, i2, n2) {
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, ce), 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)), (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
- }]]), pe = { name: "CustomTask", components: { Joint: L, TacheResizer: Z }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [], resizers: ["NW", "NE", "SW", "SE"] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), text() {
336
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
337
- } }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, he = ["width", "height", "x", "y"], fe = ["x", "y"];
338
- const we = $(pe, [["render", function(e2, t2, o2, l2, i2, n2) {
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, he), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(o2.model.name), 9, fe), (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
- }]]), ge = { name: "Fork", components: { Joint: L }, props: { model: { type: Object, default: null } }, data() {
342
- return { jointPoints: [], name: this.model.name };
343
- }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
344
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
345
- } }, created() {
346
- this.name = M(this, this.name);
347
- }, mounted() {
348
- this.$watch("model.name", function(e2) {
349
- this.name = M(this, e2);
350
- });
351
- }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, Ce = ["width", "height", "x", "y"], ke = ["x", "y", "width", "height"], be = ["x", "y"];
352
- const Ve = $(ge, [["render", function(e2, t2, o2, l2, i2, n2) {
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, Ce), 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, ke), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, be), (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
- }]]), ye = { name: "Join", components: { Joint: L }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...t.mapGetters("wfEditor", ["selectedTaches"]), text() {
356
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
357
- } }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, ve = ["width", "height", "x", "y"], Te = ["x", "y", "width", "height"], Ne = ["x", "y"];
358
- const xe = $(ye, [["render", function(e2, t2, o2, l2, i2, n2) {
359
- const a2 = r.resolveComponent("joint");
360
- return r.openBlock(), r.createElementBlock("g", { onMousedown: t2[0] || (t2[0] = r.withModifiers((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r.withModifiers((t3) => e2.setPropertiesEditorFor("Join"), ["stop"])) }, [r.createElementVNode("rect", { width: o2.model.width, height: o2.model.height, class: r.normalizeClass({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, ve), r.createElementVNode("use", { "xlink:href": "#icon-join", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, Te), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(o2.model.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);
361
- }]]), Ee = { name: "HumanDecision", components: { Joint: L }, props: { model: { type: Object, default: null } }, data() {
362
- return { jointPoints: [], name: this.model.name };
363
- }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
364
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
365
- } }, created() {
366
- this.name = M(this, this.name);
367
- }, mounted() {
368
- this.$watch("model.name", function(e2) {
369
- this.name = M(this, e2);
370
- });
371
- }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, Se = ["width", "height", "x", "y"], Me = ["x", "y", "width", "height"], De = ["x", "y"];
372
- const $e = $(Ee, [["render", function(e2, t2, o2, l2, i2, n2) {
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, Se), 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, Me), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, De), (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
- }]]), Fe = { name: "CopyTask", components: { Joint: L, TacheResizer: Z }, props: { model: { type: Object, default: null } }, data() {
376
- return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
377
- }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
378
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
379
- } }, created() {
380
- this.name = M(this, this.name);
381
- }, mounted() {
382
- this.$watch("model.name", function(e2) {
383
- this.name = M(this, e2);
384
- });
385
- }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, Pe = ["width", "height", "x", "y"], Be = ["x", "y"];
386
- const Oe = $(Fe, [["render", function(e2, t2, o2, l2, i2, n2) {
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, Pe), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, Be), (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
- }]]), Ie = { name: "AutoTask", components: { Joint: L, TacheResizer: Z }, props: { model: { type: Object, default: null } }, data() {
390
- return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
391
- }, computed: { ...t.mapGetters("wfEditor", ["selectedTaches", "processI18n"]), text() {
392
- return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
393
- } }, created() {
394
- this.name = M(this, this.name);
395
- }, mounted() {
396
- this.$watch("model.name", function(e2) {
397
- this.name = M(this, e2);
398
- });
399
- }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...H } }, _e = ["width", "height", "x", "y"], Re = ["x", "y"];
400
- const Ae = $(Ie, [["render", function(e2, t2, o2, l2, i2, n2) {
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, _e), r.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, r.toDisplayString(i2.name), 9, Re), (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
- }]]), Ue = ["d"];
404
- const Le = $({ name: "StraightLine", props: { owner: { type: Object, default: null } }, computed: { path() {
405
- const e2 = C(this.owner.startJoint.parent, this.owner.startJoint.position), t2 = C(this.owner.endJoint.parent, this.owner.endJoint.position);
406
- return "M" + e2.x + " " + e2.y + " L" + t2.x + " " + t2.y;
407
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
408
- return r.openBlock(), r.createElementBlock("path", { d: n2.path, "marker-end": "url(#arrow)" }, null, 8, Ue);
409
- }]]), He = { name: "CurveLine", props: { owner: { type: Object, default: null } }, computed: { startPoint() {
410
- return C(this.owner.startJoint.parent, this.owner.startJoint.position);
411
- }, endPoint() {
412
- return C(this.owner.endJoint.parent, this.owner.endJoint.position);
413
- }, controlPoint() {
414
- return this.owner.lineInfo.controlPoint;
415
- }, path() {
416
- return "M " + this.startPoint.x + " " + this.startPoint.y + " Q " + this.controlPoint.x + " " + this.controlPoint.y + " " + this.endPoint.x + " " + this.endPoint.y;
417
- }, pathToStartPoint() {
418
- return "M " + this.controlPoint.x + " " + this.controlPoint.y + "L " + this.startPoint.x + " " + this.startPoint.y;
419
- }, pathToEndPoint() {
420
- return "M " + this.controlPoint.x + " " + this.controlPoint.y + "L " + this.endPoint.x + " " + this.endPoint.y;
421
- } }, created: function() {
422
- if (!this.owner.lineInfo.controlPoint) {
423
- let e2 = this.startPoint.x + (this.endPoint.x - this.startPoint.x) / 2;
424
- (e2 + 10 < this.startPoint.x || e2 < this.startPoint.x + 10) && (e2 = this.startPoint.x + 30), this.owner.lineInfo.controlPoint = { x: e2, y: this.endPoint.y };
425
- }
426
- }, methods: { ...t.mapMutations("wfEditor", ["setControlPointToMove"]), startDrag(e2) {
427
- this.setControlPointToMove({ owner: this.owner });
428
- }, endDrag() {
429
- this.setControlPointToMove(null);
430
- } } }, We = ["d"], ze = ["d"], je = ["d"], Je = ["cx", "cy"];
431
- const Ge = $(He, [["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, We), 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, je), 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"]]), qe = { name: "BrokenLine", props: { owner: { type: Object, default: null } }, computed: { startPoint() {
434
- return C(this.owner.startJoint.parent, this.owner.startJoint.position);
435
- }, endPoint() {
436
- return C(this.owner.endJoint.parent, this.owner.endJoint.position);
437
- }, controlPoint() {
438
- return this.owner.lineInfo.controlPoint;
439
- }, path() {
440
- let e2 = "M " + this.startPoint.x + " " + this.startPoint.y + " ";
441
- return this.controlPoint && this.controlPoint.forEach((t2) => {
442
- e2 += "L " + t2.x + " " + t2.y;
443
- }), e2 += "L " + this.endPoint.x + " " + this.endPoint.y, e2;
444
- } }, created: function() {
445
- if (this.owner.lineInfo, !this.owner.lineInfo.controlPoint) {
446
- const e2 = this.startPoint.x + (this.endPoint.x - this.startPoint.x) / 2, t2 = this.startPoint.y + (this.endPoint.y - this.startPoint.y) / 2;
447
- this.owner.lineInfo.controlPoint = [{ x: e2, y: t2 }];
448
- }
449
- }, methods: { ...t.mapMutations("wfEditor", ["setControlPointToMove"]), startDrag(e2, t2) {
450
- this.setControlPointToMove({ owner: this.owner, pointIndex: e2 });
451
- }, endDrag() {
452
- this.setControlPointToMove(null);
453
- } } }, Ke = ["d"], Xe = ["cx", "cy", "onMousedown"];
454
- const Ye = $(qe, [["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, Ke), 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, Xe))), 128)) : r.createCommentVNode("", true)], 64)) : r.createCommentVNode("", true)]);
456
- }], ["__scopeId", "data-v-788fb0ae"]]), Qe = { name: "Transition", components: { StraightLine: Le, CurveLine: Ge, BrokenLine: Ye }, props: { model: { type: Object, default: null } }, data() {
457
- const e2 = this.getTextPoint();
458
- return { text: { x: e2.x, y: e2.y }, name: this.model.remark };
459
- }, computed: { ...t.mapGetters("wfEditor", ["draggerToMove", "processI18n"]), draggers() {
460
- const e2 = C(this.model.startJoint.parent, this.model.startJoint.position);
461
- e2.position = "start";
462
- const t2 = C(this.model.endJoint.parent, this.model.endJoint.position);
463
- return t2.position = "end", [e2, t2];
464
- }, path() {
465
- return "M" + this.draggers[0].x + " " + this.draggers[0].y + " L" + this.draggers[1].x + " " + this.draggers[1].y;
466
- } }, created() {
467
- this.name = M(this, this.name);
468
- }, mounted() {
469
- this.$watch("model.remark", function(e2) {
470
- if (this.name = M(this, e2), this.name && "" !== this.name) {
471
- const e3 = this.getTextPoint();
472
- this.text.x = e3.x, this.text.y = e3.y;
473
- }
474
- }), this.$watch("model.lineInfo.type", function(e2) {
475
- const t2 = this.getTextPoint();
476
- this.text.x = t2.x, this.text.y = t2.y;
477
- }), this.$watch("model.lineInfo.controlPoint", function(e2) {
478
- const t2 = this.getTextPoint();
479
- this.text.x = t2.x, this.text.y = t2.y;
480
- }), this.$watch("model.startJoint.parent.x", function(e2) {
481
- const t2 = this.getTextPoint();
482
- this.text.x = t2.x, this.text.y = t2.y;
483
- }), this.$watch("model.startJoint.parent.y", function(e2) {
484
- const t2 = this.getTextPoint();
485
- this.text.x = t2.x, this.text.y = t2.y;
486
- }), this.$watch("model.endJoint.parent.x", function(e2) {
487
- const t2 = this.getTextPoint();
488
- this.text.x = t2.x, this.text.y = t2.y;
489
- }), this.$watch("model.endJoint.parent.y", function(e2) {
490
- const t2 = this.getTextPoint();
491
- this.text.x = t2.x, this.text.y = t2.y;
492
- });
493
- }, methods: { ...t.mapMutations("wfEditor", ["setMouseDownPosition", "setDraggerToMove", "setSelectedTransition", "setPropertiesEditorFor"]), getTextPoint() {
494
- const e2 = C(this.model.startJoint.parent, this.model.startJoint.position), t2 = C(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
- if ("CurveLine" === this.model.lineInfo.type) {
497
- const t3 = this.model.lineInfo.controlPoint;
498
- t3 && (o2 = e2.x < t3.x ? e2.x : parseFloat(t3.x), l2 = e2.y < t3.y ? e2.y : parseFloat(t3.y), r2 = o2 + Math.abs(e2.x - t3.x) / 2 + 10, i2 = l2 + Math.abs(e2.y - t3.y) / 2 - 10);
499
- } else if ("BrokenLine" === this.model.lineInfo.type && this.model.lineInfo.controlPoint && this.model.lineInfo.controlPoint.length > 0) {
500
- const t3 = this.model.lineInfo.controlPoint[0];
501
- t3 && (o2 = e2.x < t3.x ? e2.x : parseFloat(t3.x), l2 = e2.y < t3.y ? e2.y : parseFloat(t3.y), r2 = o2 + Math.abs(e2.x - t3.x) / 2, i2 = l2 + Math.abs(e2.y - t3.y) / 2 - 10);
502
- }
503
- return { x: r2, y: i2 };
504
- }, select(e2) {
505
- b(), this.model.isSelected = true, this.setSelectedTransition(this.model);
506
- }, startDrag(e2, t2) {
507
- this.setMouseDownPosition(k(e2)), this.setDraggerToMove({ owner: this.model, position: t2, originStartJoint: this.model.startJoint, originEndJoint: this.model.endJoint });
508
- }, endDrag() {
509
- }, showPropertiesEditor() {
510
- "Decision" !== this.model.endJoint.parent.type && this.setPropertiesEditorFor("Transition");
511
- } } }, Ze = ["x", "y"], et = { key: 0 }, tt = ["cx", "cy", "onMousedown"];
512
- const ot = $(Qe, [["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, Ze), (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", et, [(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, tt))), 128))])) : r.createCommentVNode("", true)], 34);
514
- }], ["__scopeId", "data-v-a1576cad"]]), lt = { name: "VirtualTransition", props: { toPosition: { type: Object, default: null } }, computed: { ...t.mapGetters("wfEditor", ["startJoint"]), path() {
515
- if (!this.startJoint)
516
- return null;
517
- const e2 = C(this.startJoint.parent, this.startJoint.position), t2 = this.toPosition;
518
- return "M" + e2.x + " " + e2.y + " L" + t2.x + " " + t2.y;
519
- } }, methods: {} }, rt = ["d"];
520
- const it = $(lt, [["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, rt), [[r.vShow, n2.path]])]);
522
- }]]), nt = { 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 = k(e2);
524
- this.setMouseDownPosition(t2), this.setMovingRegion(true);
525
- }, endDrag(e2) {
526
- this.setMovingRegion(false), this.setMouseDownPosition(null);
527
- } } }, at = ["x", "y", "width", "height"];
528
- const st = $(nt, [["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, at)) : r.createCommentVNode("", true)]);
530
- }]]), dt = { name: "FormFields", props: { fields: { type: Array, default: null } }, data: () => ({ selectedField: null, copyShowFields: [], showFields: [], searchFormCode: "", dialogVisible: true }), computed: { ...t.mapGetters("wfEditor", ["formFields"]), allFields() {
531
- return this.fields ? this.fields : this.formFields;
532
- } }, mounted() {
533
- this.copyAllFields = this.allFields, this.showFields = this.allFields;
534
- }, methods: { setField() {
535
- this.$emit("close", this.selectedField);
536
- }, searchForm() {
537
- this.searchFormCode && "" !== this.searchFormCode ? this.showFields = this.copyAllFields.filter((e2) => e2.name.indexOf(this.searchFormCode) > -1 || e2.label.indexOf(this.searchFormCode) > -1) : this.showFields = this.copyAllFields;
538
- } } }, ct = { style: { "padding-bottom": "10px" } }, mt = { style: { float: "left", width: "70%" } }, ut = { class: "item-content" };
539
- const pt = $(dt, [["render", function(e2, t2, o2, l2, i2, n2) {
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: 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", ct, [r.createElementVNode("span", mt, [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", ut, [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
- }], ["__scopeId", "data-v-98300543"]]);
543
- function ht(e2) {
544
- const t2 = ft(e2);
545
- return t2 ? t2.label : e2;
546
- }
547
- function ft(e2) {
548
- const t2 = window.$store.getters["wfEditor/formFields"];
549
- e2 && (e2.indexOf("${field[") >= 0 || e2.indexOf("${deptField[") >= 0) && (e2 = e2.substring(e2.indexOf("[") + 1, e2.lastIndexOf("]")));
550
- const o2 = t2.filter((t3) => t3.name === e2);
551
- return o2.length > 0 ? o2[0] : null;
552
- }
553
- const wt = { name: "TaskTitle", components: { FormFields: pt }, props: { modelValue: { type: String, default: null } }, data() {
554
- const e2 = [];
555
- if (this.modelValue) {
556
- const t2 = /\$\{(.+?)\}/g, o2 = this.modelValue.match(t2);
557
- for (const t3 of o2)
558
- e2.push(t3);
559
- }
560
- return { dynamicTags: e2, inputVisible: false, showFormFields: false, inputValue: "", showLabel: null, isShowAdditionalParam: false };
561
- }, mounted() {
562
- }, methods: { showText(e2) {
563
- let t2 = e2;
564
- if (e2.indexOf("${field[") >= 0) {
565
- const e3 = t2.substring(t2.indexOf("[") + 1, t2.lastIndexOf("]"));
566
- t2 = ht(e3), t2 = "[" + t2 + "]";
567
- } else if (e2.indexOf("${writeTitle[") >= 0) {
568
- const o2 = e2.indexOf("${writeTitle[");
569
- t2 = t2.substring(o2 + 13), t2 = t2.substring(0, t2.indexOf("]"));
570
- }
571
- return t2;
572
- }, handleClose(e2) {
573
- this.dynamicTags.splice(this.dynamicTags.indexOf(e2), 1), this.$emit("update:modelValue", this.dynamicTags.join(""));
574
- }, showInput() {
575
- this.inputVisible = true, this.$nextTick((e2) => {
576
- this.$refs.saveTagInput.focus();
577
- });
578
- }, showAdditionalParam() {
579
- this.isShowAdditionalParam = true, this.$nextTick((e2) => {
580
- this.$refs.saveTagInput.focus();
581
- });
582
- }, handleInputConfirm() {
583
- let e2 = this.inputValue;
584
- e2 && (this.inputVisible ? e2 = "${writeTitle[" + e2 + "]}" : this.isShowAdditionalParam && (e2 = "${request[" + e2 + "]}"), this.dynamicTags.push(e2), this.$emit("update:modelValue", this.dynamicTags.join(""))), this.inputVisible = false, this.isShowAdditionalParam = false, this.inputValue = "";
585
- }, getType: (e2) => e2.indexOf("${field") >= 0 ? "success" : null, setField(e2) {
586
- void 0 !== e2 && (this.dynamicTags.push("${field[" + e2 + "]}"), this.$emit("update:modelValue", this.dynamicTags.join(""))), this.showFormFields = false;
587
- } } };
588
- const gt = $(wt, [["render", function(e2, t2, o2, l2, i2, n2) {
589
- 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");
590
- 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)]);
591
- }], ["__scopeId", "data-v-aaf48aff"]]), Ct = [{ name: "${approvalResult}", label: w().t("workflowEditor.process.approvalResults"), orgType: "other" }, { name: "${instanceCreatorName}", label: w().t("workflowEditor.process.processInitiator"), orgType: "user" }, { name: "${instanceCreatorRole}", label: w().t("workflowEditor.process.processInitiatorRole"), orgType: "role" }, { name: "${instanceCreatorDepartment}", label: w().t("workflowEditor.process.processInitiatorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${superiorDepartment}", label: w().t("workflowEditor.process.processInitiatorSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorUpstageDepartment}", label: w().t("workflowEditor.process.processInitiatorTopDepartment"), orgType: "department" }, { name: "${instanceCreatorWorkGroup}", label: w().t("workflowEditor.process.processInitiatorWorkingGroup"), orgType: "workgroup" }, { name: "${instanceCreatorDirectSuperiorName}", label: w().t("workflowEditor.process.sponsorsImmediateSuperior"), orgType: "user" }, { name: "${instanceCreatorDeptApprover}", label: w().t("workflowEditor.process.deptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptApprover}", label: w().t("workflowEditor.process.superiorDeptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptLeader}", label: w().t("workflowEditor.process.superiorDeptLeader"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDepartment}", label: w().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorDirectSuperiorRole}", label: w().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"), orgType: "role" }, { name: "${instanceCreatorDirectSuperiorWorkGroup}", label: w().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorName}", label: w().t("workflowEditor.process.nameOfCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorRole}", label: w().t("workflowEditor.process.currentHandlerRole"), orgType: "role" }, { name: "${currentTransactorDepartment}", label: w().t("workflowEditor.process.currentHandlerDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorSuperiorDepartment}", label: w().t("workflowEditor.process.currentHandlerSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorUpstageDepartment}", label: w().t("workflowEditor.process.topDepartmentOfCurrentHandler"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment"] }, { name: "${currentTransactorWorkGroup}", label: w().t("workflowEditor.process.currentHandlerWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorDirectSuperiorName}", label: w().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorDirectSuperiorDepartment}", label: w().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorDirectSuperiorRole}", label: w().t("workflowEditor.process.currentManagerDirectSuperiorRole"), orgType: "role" }, { name: "${currentTransactorDirectSuperiorWorkGroup}", label: w().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"), orgType: "workgroup" }, { name: "${upstageDepartment}", label: w().t("workflowEditor.process.topDepartments"), orgType: "department" }, { name: "${countersignatureDisagreeCount}", label: w().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreeCount}", label: w().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureDisagreePercentage}", label: w().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreePercentage}", label: w().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionPercentage}", label: w().t("workflowEditor.process.percentageOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstPercentage}", label: w().t("workflowEditor.process.percentageOfVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorPercentage}", label: w().t("workflowEditor.process.percentageOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionCount}", label: w().t("workflowEditor.process.totalNumberOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstCount}", label: w().t("workflowEditor.process.totalVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorCount}", label: w().t("workflowEditor.process.totalNumberOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }], kt = { "condition.operator.or": w().t("workflowEditor.process.perhaps"), "condition.operator.and": w().t("workflowEditor.process.also") };
592
- const bt = [{ name: "operator.number.gt", label: w().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: w().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: w().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: w().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: w().t("workflowEditor.process.notEqualTo") }];
593
- const Vt = [{ name: "operator.text.eq", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: w().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: w().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: w().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: w().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: w().t("workflowEditor.process.isNotNull") }];
594
- const yt = [{ name: "operator.date.gt", label: w().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: w().t("workflowEditor.process.earlierThan") }, { name: "operator.date.et", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: w().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: w().t("workflowEditor.process.noEarlierThan") }, { name: "operator.date.ne", label: w().t("workflowEditor.process.notEqualTo") }], vt = [{ name: "operator.text.eq", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: w().t("workflowEditor.process.notEqualTo") }];
595
- const Tt = [{ name: "operator.text.eq", label: w().t("workflowEditor.process.beEqualTo") }], Nt = [...bt, ...yt, ...Vt, ...vt];
596
- function xt(e2, t2) {
597
- if (t2 && 0 !== t2.length) {
598
- let o2 = t2.replace(/ condition.operator.or /g, " condition.operator.or^_^");
599
- o2 = o2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
600
- const l2 = o2.split("^_^");
601
- let r2 = 0;
602
- for (let t3 of l2) {
603
- if ("" === t3)
604
- continue;
605
- let o3 = "", l3 = "", i2 = "", n2 = "", a2 = "", s2 = "condition.operator.or", d2 = t3.indexOf("${");
606
- 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) {
607
- n2 = t3.substring(0, d2);
608
- const e3 = t3.substring(d2);
609
- 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));
610
- } else
611
- d2 = t3.indexOf(" condition."), d2 > 0 ? (n2 = t3.substring(0, d2), s2 = t3.substring(d2 + 1)) : n2 = t3;
612
- e2.push({ id: r2, leftBracket: o3, key: l3, operator: i2, value: n2, rightBracket: a2, logicOperator: s2 }), r2++;
613
- }
614
- return r2;
615
- }
616
- }
617
- function Et(e2) {
618
- const t2 = Ct.filter((t3) => t3.name === e2);
619
- return t2.length > 0 ? t2[0] : null;
620
- }
621
- function St(e2) {
622
- return e2 ? e2.indexOf("${field[") >= 0 ? ht(e2) : e2.indexOf("${") >= 0 ? function(e3) {
623
- const t2 = Et(e3);
624
- return t2 ? t2.label : e3;
625
- }(e2) : e2.indexOf("[") >= 0 ? e2.substring(0, e2.indexOf("[")) : e2 : "";
626
- }
627
- function Mt(e2) {
628
- const t2 = Nt.filter((t3) => t3.name === e2);
629
- return t2.length > 0 ? t2[0].label : "";
630
- }
631
- function Dt(e2) {
632
- let t2 = "";
633
- for (const o3 of e2)
634
- 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 + St(o3.key) + " " + Mt(o3.operator) + " " + St(o3.value) + o3.rightBracket + " " + kt[o3.logicOperator] + " ");
635
- const o2 = " 或者 ", l2 = " 并且 ";
636
- 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;
637
- }
638
- const $t = { 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) {
639
- e2 || (this.searchValue = e2, this.loadRole(this.tenantNodeId, this.tenantNodeId + ""));
640
- } }, created() {
641
- }, methods: { loadNode(e2, t2) {
642
- var o2, l2 = 0;
643
- 0 === e2.level ? o2 = (l2 = 0) + "" : (l2 = e2.data.id, o2 = e2.data.nodeId);
644
- var r2 = [];
645
- this.$refs.roleTree && (r2 = this.$refs.roleTree.getCheckedKeys()), this.initLoadRole(l2, o2, e2, t2, r2);
646
- }, initLoadRole(e2, t2, o2, l2, r2) {
647
- this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((i2) => {
648
- if (l2(i2), this.$refs.roleTree.updateKeyChildren(t2, i2), 0 === e2) {
649
- const e3 = i2[0].data;
650
- this.tenantInfo = JSON.parse(e3), this.containBranch = i2[0].containBranch, this.loadRole(this.tenantNodeId, this.tenantNodeId + "");
651
- }
652
- this.isClickNode ? (this.isClickNode = false, this.checkedNodeAndChildren(o2.data)) : r2 && r2.indexOf(t2) > -1 && this.checkedNodeAndChildren(o2.data);
653
- });
654
- }, loadRole(e2, t2, o2, l2) {
655
- this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2).then((e3) => {
656
- this.$refs.roleTree.updateKeyChildren(t2, e3), this.$refs.roleTree.store.nodesMap[t2] && (this.$refs.roleTree.store.nodesMap[t2].expanded = true), o2 && (-1 === this.allExpandNodeIds.indexOf(t2) && this.allExpandNodeIds.push(t2), this.allExpandNodeIds.length === this.allSearchNodeIds.length && (this.$refs.roleTree.filter(l2), this.allExpandNodeIds = [], this.allSearchNodeIds = []));
657
- });
658
- }, clickSearch() {
659
- this.searchValue = this.filterText, this.filterAppendNodes(this.filterText);
660
- }, filterAppendNodes(e2) {
661
- this.$http.get(this.baseAPI + "/acs/roles/search-system-role-trees?searchValue=" + e2).then((t2) => {
662
- if (t2) {
663
- if (0 === t2.length)
664
- return void this.$message({ showClose: true, type: "error", message: this.$t("workflowEditorMessage.queryResultIsEmpty") });
665
- t2.forEach((t3) => {
666
- const o2 = "SYSTEM_" + t3;
667
- -1 === this.allSearchNodeIds.indexOf(o2) && (this.allSearchNodeIds.push(o2), this.loadRole(t3, o2, true, e2));
668
- });
669
- } else
670
- this.$message({ showClose: true, type: "error", message: this.$t("workflowEditorMessage.queryResultIsEmpty") });
671
- });
672
- }, handleCheckNode(e2, t2) {
673
- t2.checkedKeys.indexOf(e2.nodeId) > -1 ? e2.children ? (this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.checkedNodeAndChildren(e2)) : e2.leaf || this.$http.get(this.baseAPI + "/acs/roles/system-role-trees/" + e2.id).then((t3) => {
674
- this.$refs.roleTree.updateKeyChildren(e2.nodeId, t3), this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.checkedNodeAndChildren(e2);
675
- }) : this.cancelChildCheckedNodes(e2);
676
- }, checkedNodeAndChildren(e2) {
677
- this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true, this.$refs.roleTree.setChecked(e2.nodeId, true);
678
- const t2 = e2.children;
679
- t2 && t2.forEach((e3) => {
680
- this.checkedNodeAndChildren(e3);
681
- });
682
- }, cancelChildCheckedNodes(e2) {
683
- e2.id !== this.tenantNodeId && this.$refs.roleTree.setChecked(this.tenantNodeId + "", false);
684
- const t2 = e2.children;
685
- t2 && t2.forEach((e3) => {
686
- this.$refs.roleTree.setChecked(e3.nodeId, false), this.cancelChildCheckedNodes(e3);
687
- });
688
- }, selectRole() {
689
- if (this.multiple) {
690
- const e2 = { containBranch: this.containBranch, roles: [] }, t2 = [];
691
- this.$refs.roleTree.getCheckedNodes().forEach((e3) => {
692
- if ("ROLE" === e3.nodeType) {
693
- const o2 = JSON.parse(e3.data);
694
- o2.tenantCode = this.tenantInfo.code, o2.tenantName = this.tenantInfo.tenantName, t2.push(o2);
695
- }
696
- }), e2.roles = t2, e2.length > 0 ? this.$emit("result", e2) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
697
- } else
698
- this.selectNodeInfo ? this.$emit("result", this.selectNodeInfo) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditor.pleaseSelectRole") });
699
- }, filterNode(e2, t2, o2) {
700
- if (e2) {
701
- var l2 = t2.label;
702
- return "ROLE" === t2.nodeType && -1 !== l2.indexOf(e2);
703
- }
704
- return true;
705
- }, handleNodeClick(e2, t2, o2) {
706
- if (this.multiple && this.clickNodeWhenMultiple(e2), "ROLE" === e2.nodeType && !this.multiple) {
707
- const t3 = JSON.parse(e2.data);
708
- t3.tenantName = this.tenantInfo.tenantName, t3.tenantCode = this.tenantInfo.code;
709
- var l2 = { id: e2.id, name: e2.name, containBranch: this.containBranch, role: t3 };
710
- this.selectNodeInfo = l2;
711
- }
712
- }, clickNodeWhenMultiple(e2) {
713
- var t2 = [];
714
- if (this.$refs.roleTree && (t2 = this.$refs.roleTree.getCheckedKeys()), t2.indexOf(e2.nodeId) > -1)
715
- this.$refs.roleTree.setChecked(e2.nodeId, false), this.cancelChildCheckedNodes(e2), this.$refs.roleTree.store.nodesMap[e2.nodeId].expanded = true;
716
- else {
717
- this.$refs.roleTree.setChecked(e2.nodeId, true);
718
- const t3 = e2.childDepartments;
719
- t3 && t3.length > 0 ? this.checkedNodeAndChildren(e2) : this.isClickNode = true;
720
- }
721
- }, renderContent(e2, { node: t2, data: o2, store: l2 }) {
722
- 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)]);
723
- } } }, Ft = Object.assign($t, { setup: (e2) => (t2, o2) => {
724
- const l2 = r.resolveComponent("el-button"), n2 = r.resolveComponent("el-input"), a2 = r.resolveComponent("el-tree");
725
- return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(n2, { modelValue: t2.filterText, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => t2.filterText = e3), placeholder: t2.$t("workflowEditorMessage.pleaseEnterTheRoleName"), onKeyup: r.withKeys(t2.clickSearch, ["enter"]) }, { append: r.withCtx(() => [r.createVNode(l2, { icon: r.unref(i.Search), onClick: t2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "placeholder", "onKeyup"]), r.createVNode(a2, { 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"])]);
726
- } });
727
- const Pt = $({ name: "ValueSelectionDialog", components: { InlineSystemRoleTree: Ft }, 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() {
728
- let e2 = this.title, t2 = "organization";
729
- return this.showOrganization || (t2 = "standardFields"), this.title && "" !== this.title || (e2 = w().t("workflowEditorMessage.pleaseSelectAValue")), { selectedValue: "", activeTab: t2, titleName: e2, dialogVisible: true, activeNames: ["baseField"] };
730
- }, computed: { ...t.mapGetters("wfEditor", ["formFields"]), customFormFields() {
731
- return this.formFields.filter((e2) => !e2.baseField);
732
- }, baseFormFields() {
733
- return this.formFields.filter((e2) => e2.baseField);
734
- }, options() {
735
- if (Array.isArray(this.standardFields))
736
- return this.standardFields;
737
- {
738
- const e2 = [];
739
- for (const t2 of Object.keys(this.standardFields))
740
- e2.push({ name: t2, label: this.standardFields[t2] });
741
- return e2;
742
- }
743
- } }, watch: { activeTab(e2) {
744
- this.selectedValue = "";
745
- } }, methods: { setValue() {
746
- this.organizationResultValue(), "" !== this.selectedValue ? this.$emit("close", this.selectedValue) : this.$alert(this.$t("workflowEditorMessage.pleaseSelectAValueInTheCurrentTab"));
747
- }, orgSelect(e2) {
748
- e2 && ("user" === this.orgType ? this.getSelectedUser(e2.user, e2.containBranch) : "department" === this.orgType ? this.getSelectedDepartmentOrWorkgroup(e2.department, e2.containBranch) : "workgroup" === this.orgType ? this.getSelectedDepartmentOrWorkgroup(e2.workgroup, e2.containBranch) : "role" === this.orgType && this.getSelectedRole(e2.role));
749
- }, organizationResultValue() {
750
- this.orgType && "organization" === this.activeTab && ("user" === this.orgType ? this.$refs.organizationTree.confirmSelectUser() : "department" === this.orgType ? this.$refs.organizationTree.selectDepartment() : "workgroup" === this.orgType ? this.$refs.organizationTree.selectWorkgroup() : "role" === this.orgType && this.$refs.organizationTree.selectRole());
751
- }, getSelectedUser(e2, t2) {
752
- let o2 = e2.loginName, l2 = e2.name;
753
- if (t2) {
754
- if (e2.subCompanyId && null !== e2.subCompanyId) {
755
- o2 = o2 + "~~" + e2.subCompanyCode, l2 = l2 + "/" + e2.subCompanyName;
756
- } else
757
- o2 = o2 + "~~" + e2.tenantCode, l2 = l2 + "/" + e2.tenantName;
758
- this.selectedValue = l2 + "[" + o2 + "]";
759
- } else
760
- this.selectedValue = e2.name + "[" + e2.loginName + "]";
761
- }, getSelectedDepartmentOrWorkgroup(e2, t2) {
762
- this.selectedValue = e2.name;
763
- let o2 = e2.name;
764
- if (t2) {
765
- if (e2.subCompanyId && null !== e2.subCompanyId) {
766
- o2 = o2 + "/" + e2.subCompanyName;
767
- } else
768
- o2 = o2 + "/" + e2.tenantName;
769
- this.selectedValue = o2 + "[" + e2.code + "]";
770
- } else
771
- this.selectedValue = e2.name + "[" + e2.code + "]";
772
- }, getSelectedRole(e2) {
773
- this.selectedValue = e2.name + "[" + e2.code + "]";
774
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
775
- 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");
776
- 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"]);
777
- }], ["__scopeId", "data-v-7feaa2da"]]), Bt = { name: "AdditionalCondition", components: { ValueSelectionDialog: Pt }, props: { modelValue: { type: String, default: null }, isTransition: { type: Boolean, default: false } }, data() {
778
- const e2 = [], t2 = xt(e2, this.modelValue);
779
- return { standardFields: Ct, tableData: e2, count: t2, currentRow: null, currentInput: null, options: [], valueDialogTitle: null, showOrganization: true, orgType: null };
780
- }, computed: { ...t.mapGetters("wfEditor", ["formFields"]), availableStandardFields() {
781
- return "key" === this.currentInput ? function(e2) {
782
- if (e2)
783
- return Ct;
784
- const t2 = [];
785
- return Ct.forEach((o2) => {
786
- e2 || "other" === o2.orgType || t2.push(o2);
787
- }), t2;
788
- }(this.isTransition) : function(e2) {
789
- const t2 = Ct.filter((t3) => t3.name === e2);
790
- let o2 = [];
791
- t2.length > 0 && (o2 = t2[0].relatedFields || []);
792
- const l2 = [];
793
- return Ct.forEach((e3) => {
794
- o2.indexOf(e3.name.substring(2, e3.name.length - 1)) >= 0 && l2.push(e3);
795
- }), l2;
796
- }(this.currentRow.key);
797
- } }, mounted() {
798
- this.tableData.length > 0 && this.$refs.table.setCurrentRow(this.tableData[this.tableData.length - 1]), this.$watch("tableData", function(e2, t2) {
799
- this.$emit("update:modelValue", function(e3) {
800
- let t3 = "";
801
- for (const o3 of e3)
802
- 0 === o3.key.length || "" === o3.operator || "" === o3.value && "operator.text.is.null" !== o3.operator && "operator.text.not.null" !== o3.operator || (t3 = t3 + o3.leftBracket + o3.key + " " + o3.operator + " " + o3.value + o3.rightBracket + " " + o3.logicOperator + " ");
803
- const o2 = " condition.operator.or ", l2 = " condition.operator.and ";
804
- 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;
805
- }(this.tableData));
806
- }, { deep: true });
807
- }, methods: { format: (e2, t2) => "" === e2 || null == e2 ? "" : St(e2), getOperatorOptions: (e2) => function(e3) {
808
- const t2 = ft(e3) || Et(e3);
809
- if (t2)
810
- return o2 = t2.dataType, ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(o2) >= 0 ? bt : function(e4) {
811
- return ["DATE", "TIME"].indexOf(e4) >= 0;
812
- }(t2.dataType) ? yt : function(e4) {
813
- return ["STRING", "TEXT"].indexOf(e4) >= 0;
814
- }(t2.dataType) ? Vt : function(e4) {
815
- return "${approvalResult}" === e4;
816
- }(e3) ? Tt : vt;
817
- var o2;
818
- }(e2), selectRow(e2) {
819
- this.$refs.table.setCurrentRow(e2);
820
- }, openValueDialog(e2) {
821
- this.showValueDialog = true, this.selectRow(e2);
822
- }, closeValueDialog(e2) {
823
- void 0 !== e2 && "" !== e2 && ("key" === this.currentInput && this.currentRow.key !== e2 && (this.currentRow.operator = "", this.currentRow.value = ""), this.currentRow[this.currentInput] = e2), this.currentInput = "";
824
- }, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
825
- this.currentRow = e2;
826
- }, getRowIndex(e2) {
827
- for (let t2 = 0; t2 < this.tableData.length; t2++)
828
- if (this.tableData[t2].id === e2.id)
829
- return t2;
830
- return -1;
831
- }, add() {
832
- (null === this.count || void 0 === this.count || this.count.isNaN || "NaN" === this.count) && (this.count = 0);
833
- const e2 = { id: this.count, leftBracket: "", key: "", operator: "", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
834
- this.tableData.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
835
- }, insert() {
836
- if (null === this.currentRow)
837
- return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
838
- const e2 = { id: this.count, leftBracket: "", key: "", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
839
- this.tableData.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
840
- }, remove() {
841
- if (null === this.currentRow)
842
- return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
843
- let e2 = this.getRowIndex(this.currentRow);
844
- 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]));
845
- }, view() {
846
- let e2 = Dt(this.tableData);
847
- "" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorMessage.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
848
- } });
849
- }, selectField(e2) {
850
- this.selectRow(e2), this.currentInput = "key", this.valueDialogTitle = this.$t("workflowEditorMessage.fieldSettings"), this.showOrganization = false;
851
- }, selectValue() {
852
- this.currentInput = "value", this.valueDialogTitle = this.$t("workflowEditorMessage.valueSetting"), this.showOrganization = true, this.orgType = this.getStandardFieldOrgType();
853
- }, getStandardFieldOrgType() {
854
- const e2 = this.standardFields.filter((e3) => e3.name === this.currentRow.key);
855
- return e2.length > 0 ? e2[0].orgType : "";
856
- }, isTransitionOtherField: (e2) => function(e3) {
857
- if ("${approvalResult}" === e3)
858
- return false;
859
- const t2 = Ct.filter((t3) => t3.name === e3);
860
- let o2 = false;
861
- return t2.length > 0 && t2.forEach((t3) => {
862
- e3 === t3.name && "other" === t3.orgType && (o2 = true);
863
- }), o2;
864
- }(e2) } }, Ot = { style: { overflow: "auto", width: "100%" } };
865
- const It = $(Bt, [["render", function(e2, t2, o2, l2, i2, n2) {
866
- 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");
867
- return r.openBlock(), r.createElementBlock("div", Ot, [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)]);
868
- }]]);
869
- const _t = $({ name: "AdditionalConditionDialog", components: { AdditionalCondition: It }, props: { modelValue: { type: String, default: "" } }, data() {
870
- return { condition: this.modelValue, dialogVisible: true };
871
- }, watch: { value(e2) {
872
- this.condition = e2;
873
- } }, methods: { setConditions() {
874
- this.$emit("update:modelValue", this.condition), this.$emit("close");
875
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
876
- const a2 = r.resolveComponent("additional-condition"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-button"), c2 = r.resolveComponent("el-dialog");
877
- 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"]);
878
- }]]), Rt = { name: "CustomActions", components: { AdditionalConditionDialog: _t }, props: { model: { type: Object, default: null } }, data() {
879
- const e2 = [];
880
- let t2 = 1;
881
- if (this.model.action)
882
- if (Array.isArray(this.model.action))
883
- for (const o2 of this.model.action)
884
- e2.push({ ...o2, id: t2 }), t2++;
885
- else
886
- e2.push({ ...this.model.action, id: t2 }), t2++;
887
- return { actions: e2, actionTypes: [{ type: "SAVE", label: w().t("workflowEditor.task.save") }, { type: "SUBMIT", label: w().t("workflowEditor.task.submission") }, { type: "APPROVE", label: w().t("workflowEditor.task.agree") }, { type: "REFUSE", label: w().t("workflowEditor.task.disagree") }, { type: "AGREEMENT", label: w().t("workflowEditor.task.favor") }, { type: "OPPOSE", label: w().t("workflowEditor.task.opposition") }, { type: "KIKEN", label: w().t("workflowEditor.task.waiver") }, { type: "DRAW", label: w().t("workflowEditor.task.receive") }, { type: "ABANDON_DRAW", label: w().t("workflowEditor.task.giveUp") }, { type: "ADD_SIGN", label: w().t("workflowEditor.task.additionalSignature") }, { type: "REMOVE_SIGN", label: w().t("workflowEditor.task.reductionOfSignature") }, { type: "ASSIGN_TASK", label: w().t("workflowEditor.task.assignTask") }, { type: "COPY", label: w().t("workflowEditor.task.copyTask") }, { type: "GET_BACK_BUTTON", label: w().t("workflowEditor.task.retrieveTask") }, { type: "READED", label: w().t("workflowEditor.task.readTask") }, { type: "EXPORT_REPORT", label: w().t("workflowEditor.task.exportReport") }], currentRow: null, count: t2, showAdditionalCondition: false };
888
- }, mounted() {
889
- this.actions.length > 0 && this.selectRow(this.actions[this.actions.length - 1]), this.$watch("actions", function(e2, t2) {
890
- const o2 = [];
891
- for (const e3 of this.actions) {
892
- const t3 = { ...e3 };
893
- delete t3.id, o2.push(t3);
894
- }
895
- this.$emit("updateAction", o2);
896
- }, { deep: true });
897
- }, methods: { selectRow(e2) {
898
- this.$refs.table.setCurrentRow(e2);
899
- }, getRowIndex(e2) {
900
- for (let t2 = 0; t2 < this.actions.length; t2++)
901
- if (this.actions[t2].id === e2.id)
902
- return t2;
903
- return -1;
904
- }, handleCurrentChange(e2) {
905
- this.currentRow = e2;
906
- }, isDuplicated(e2) {
907
- const t2 = this.getRowIndex(this.currentRow);
908
- for (let o2 = 0; o2 < this.actions.length; o2++)
909
- o2 !== t2 && this.actions[o2].type === e2 && (this.$alert(this.$t("workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect", { row: o2 + 1 })), this.currentRow.type = "");
910
- }, add() {
911
- for (let e3 = 0; e3 < this.actions.length; e3++) {
912
- const t2 = this.actions[e3];
913
- if ("" === t2.type || "" === t2.label)
914
- return void this.$alert(this.$t("workflowEditorMessage.theOperationTypeOrNameInLineIsEmpty", { row: e3 + 1 }));
915
- }
916
- const e2 = { id: this.count, type: "", label: "", visible: true, condition: "" };
917
- this.actions.push(e2), this.selectRow(e2), this.count++;
918
- }, remove() {
919
- let e2 = this.getRowIndex(this.currentRow);
920
- this.actions.splice(e2, 1), this.actions.length > 0 && (e2 = e2 <= this.actions.length - 1 ? e2 : this.actions.length - 1, this.$refs.table.setCurrentRow(this.actions[e2]));
921
- }, formatCondition(e2) {
922
- if ("" === e2 || !e2)
923
- return this.$t("workflowEditor.task.nothing");
924
- const t2 = [];
925
- return xt(t2, e2), Dt(t2);
926
- }, selectCondition(e2) {
927
- this.selectRow(e2), this.currentRow || (this.currentRow.condition = ""), this.showAdditionalCondition = true;
928
- } } }, At = Object.assign(Rt, { setup: (e2) => (e3, t2) => {
929
- const o2 = r.resolveComponent("el-button"), l2 = r.resolveComponent("el-table-column"), n2 = r.resolveComponent("el-option"), a2 = r.resolveComponent("el-select"), s2 = r.resolveComponent("el-input"), d2 = r.resolveComponent("el-checkbox"), c2 = r.resolveComponent("el-table"), m2 = r.resolveComponent("el-row");
930
- return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(m2, null, { default: r.withCtx(() => [r.createVNode(o2, { type: "primary", size: "small", plain: "", icon: r.unref(i.CirclePlus), 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(i.Delete), onClick: e3.remove }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e3.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["icon", "onClick"]), r.createVNode(c2, { 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(a2, { modelValue: t3.row.type, "onUpdate:modelValue": (e4) => t3.row.type = e4, onChange: e3.isDuplicated }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e3.actionTypes, (e4) => (r.openBlock(), r.createBlock(n2, { key: e4.id, value: e4.type, label: e4.label }, null, 8, ["value", "label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }, 8, ["label"]), r.createVNode(l2, { prop: "label", label: e3.$t("workflowEditor.task.name"), width: "180" }, { default: r.withCtx((e4) => [r.createVNode(s2, { 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(d2, { 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(s2, { 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(_t), { 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)]);
931
- } }), Ut = { name: "I18nSet", props: { value: { type: Object, default: null } }, data() {
932
- let e2 = {};
933
- return this.value && (e2 = JSON.parse(JSON.stringify(this.value))), { requiredRule: { required: true, message: w().t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }, i18nModel: e2, bundleCode: null, isShow: false, i18nKey: null, languages: {}, dialogVisible: true, isNewI18n: false };
934
- }, computed: { ...t.mapGetters("wfEditor", ["systemCode", "processCode", "isHandleCreate"]) }, created() {
935
- this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n || (this.bundleCode = this.systemCode + ".workflow." + this.processCode), this.getI18nSet();
936
- }, methods: { getI18nSet() {
937
- this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/languages?isNewI18n=" + this.isNewI18n).then((e2) => {
938
- const t2 = { bundleCode: this.bundleCode, i18nKey: this.i18nModel.key, isNewI18n: this.isNewI18n + "", systemCode: this.systemCode };
939
- this.$http.post(this.baseAPI + "/wf-editor/i18n-settings/get-info", t2).then((t3) => {
940
- this.languages = e2, Object.keys(this.languages).forEach((e3) => {
941
- this.i18nModel, t3 && t3[e3] ? this.i18nModel.values[e3] = t3[e3] : this.i18nModel.values[e3] || (this.i18nModel.values[e3] = "");
942
- }), this.isShow = true;
943
- });
944
- });
945
- }, saveI18nSet(e2) {
946
- this.$refs[e2].validate((e3) => {
947
- if (!e3)
948
- return false;
949
- this.i18nModel.bundleCode = this.bundleCode, this.i18nModel.systemCode = this.systemCode, this.i18nModel.isNewI18n = this.isNewI18n + "", this.i18nModel, this.$http.post(this.baseAPI + "/wf-editor/i18n-settings", this.i18nModel).then(() => {
950
- this.$emit("close", this.i18nModel.key);
951
- });
952
- });
953
- }, goBack() {
954
- this.$emit("close");
955
- } } }, Lt = { class: "operation-area" };
956
- const Ht = { name: "I18nInput", components: { I18nSet: $(Ut, [["render", function(e2, t2, o2, l2, i2, n2) {
957
- 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");
958
- 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", Lt, [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);
959
- }]]) }, model: { prop: "value", event: "input" }, props: { modelValue: { type: String, default: "" }, i18nKey: { type: String, default: "" } }, data() {
960
- const e2 = this.modelValue;
961
- return { isShowI18n: false, myI18nKey: this.i18nKey, zh: e2, isNewI18n: false };
962
- }, computed: { ...t.mapGetters("wfEditor", ["processCode", "isHandleCreate"]) }, mounted() {
963
- this.$watch("zh", function(e2) {
964
- this.$emit("update:modelValue", e2);
965
- });
966
- }, created() {
967
- this.isHandleCreate && "true" === this.isHandleCreate ? this.isNewI18n = false : this.isNewI18n = true, this.isNewI18n && (this.myI18nKey = this.modelValue);
968
- }, methods: { i18nSet() {
969
- this.myI18nKey ? this.isShowI18n = true : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseInputCode") });
970
- }, closeI18nSet(e2) {
971
- e2 && this.$emit("setI18n", e2), this.isShowI18n = false;
972
- } } }, Wt = { style: { float: "left", "padding-right": "5px" } };
973
- const zt = $(Ht, [["render", function(e2, t2, o2, l2, i2, n2) {
974
- const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("i18n-set");
975
- return r.openBlock(), r.createElementBlock("span", null, [r.createElementVNode("div", Wt, [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)]);
976
- }]]), jt = { style: { width: "100%" } };
977
- const Jt = $({ name: "SelectMailTemplates", model: { prop: "value", event: "input" }, props: { modelValue: { type: [String, Number], default: "" } }, data() {
978
- return { baseURL: "", optionUrl: "", multiSelectData: [], showMailTemplateFlag: false, code: this.modelValue, options: { showColumns: "code,name" }, dialogVisible: true };
979
- }, created() {
980
- this.baseURL = window.$vueApp.config.globalProperties.baseAPI, this.optionUrl = "/mc/email-templates/list/0";
981
- }, methods: { selectTemplate() {
982
- this.multiSelectData && 1 === this.multiSelectData.length ? (this.code = this.multiSelectData[0].code, this.$emit("set-value", this.code), this.showMailTemplateFlag = false) : this.$message({ showClose: true, type: "warning", message: this.$t("workflowEditorMessage.pleaseSelectARow") });
983
- }, selectData(e2, t2) {
984
- this.multiSelectData = e2;
985
- }, clearVal() {
986
- this.code = null, this.$emit("set-value", null);
987
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
988
- const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("super-grid"), d2 = r.resolveComponent("el-button"), c2 = r.resolveComponent("el-dialog");
989
- return r.openBlock(), r.createElementBlock("span", jt, [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"])]);
990
- }]]), Gt = { name: "BasicProperties", components: { TaskTitle: gt, CustomActions: At, i18nInput: zt, SelectMailTemplates: Jt }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
991
- let e2 = false;
992
- const t2 = this.model.processingMode.actions.action;
993
- return t2 && (e2 = !Array.isArray(t2) || 0 !== t2.length), { showActions: e2, formModel: { name: this.name, id: this.id, tache: this.model } };
994
- }, computed: { tache() {
995
- return this.model;
996
- } }, created() {
997
- this.tache.processingMode.actions || (this.tache.processingMode.actions = {});
998
- }, mounted() {
999
- this.$watch("formModel.name", function(e2, t2) {
1000
- this.$emit("update:name", e2);
1001
- });
1002
- }, methods: { validateId() {
1003
- S(this);
1004
- }, setMailTemplateCode(e2) {
1005
- this.tache.mailTemplateCode = e2;
1006
- }, setMailPointTemplateCode(e2) {
1007
- this.tache.mailPointTemplateCode = e2;
1008
- }, setI18nValue(e2) {
1009
- this.tache.i18nKey = e2;
1010
- }, updateAction(e2) {
1011
- this.tache.processingMode.actions.action = e2;
1012
- } } }, qt = ((e2) => (r.pushScopeId("data-v-a219b06d"), e2 = e2(), r.popScopeId(), e2))(() => r.createElementVNode("span", { class: "percent" }, " % ", -1));
1013
- const Kt = $(Gt, [["render", function(e2, t2, o2, l2, i2, n2) {
1014
- 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");
1015
- 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"]), qt]), _: 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"]);
1016
- }], ["__scopeId", "data-v-a219b06d"]]), Xt = { name: "EditableFieldSelection", components: { AdditionalCondition: It }, 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() {
1017
- let e2 = 0;
1018
- this.formFieldsWithSub.map((t3) => {
1019
- this.disabledFields.indexOf(t3.name) < 0 && (t3.index = e2, this.availableFields.push(t3), e2++);
1020
- });
1021
- const t2 = this.availableFields.length;
1022
- this.availableFieldsCount = Math.ceil(t2 / 3);
1023
- }, mounted() {
1024
- window.addEventListener("keydown", (e2) => {
1025
- 16 === e2.keyCode && e2.shiftKey && (this.pin = true);
1026
- }), window.addEventListener("keyup", (e2) => {
1027
- 16 === e2.keyCode && (this.pin = false);
1028
- });
1029
- }, methods: { filterMethod: (e2, t2) => !!(t2.label && t2.label.indexOf(e2) > -1) || (t2.label, false), setSelectedFields() {
1030
- const e2 = [];
1031
- for (const t2 of this.formModel.selectedFields)
1032
- e2.push({ name: t2, constraintRule: this.formModel.constraintRule, condition: this.formModel.showCondition ? this.formModel.condition : "" });
1033
- this.$emit("input-value", e2), this.$emit("close");
1034
- }, pinSelect(e2, t2) {
1035
- const o2 = this.availableFields, l2 = this.origin, r2 = t2;
1036
- if (this.pin && -1 !== this.formModel.selectedFields.indexOf(e2)) {
1037
- this.formModel.selectedFields.indexOf(e2);
1038
- const t3 = Math.abs(l2 - r2) + 1, i2 = Math.min(l2, r2);
1039
- let n2 = 0;
1040
- for (; n2 < t3; ) {
1041
- const e3 = i2 + n2;
1042
- -1 === this.formModel.selectedFields.indexOf(o2[e3].name) && this.formModel.selectedFields.push(o2[e3].name), n2++;
1043
- }
1044
- } else
1045
- this.origin = t2;
1046
- } } }, Yt = ["title"], Qt = ["title"], Zt = ["title"], eo = ["title"], to = ["title"], oo = ["title"], lo = ["title"], ro = ["title"], io = ["title"], no = ["title"], ao = ["title"], so = ["title"];
1047
- const co = { name: "EditableFields", components: { EditableFieldSelection: $(Xt, [["render", function(e2, t2, o2, l2, i2, n2) {
1048
- 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");
1049
- 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, Yt)]), _: 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, Qt)]), _: 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, Zt)]), _: 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, eo)]), _: 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, to)]), _: 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, oo)]), _: 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, lo)]), _: 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, ro)]), _: 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, io)]), _: 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, no)]), _: 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, ao)]), _: 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, so)]), _: 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"]);
1050
- }], ["__scopeId", "data-v-9458f3bf"]]), AdditionalConditionDialog: _t }, props: { modelValue: { type: [Array, Object], default: null } }, data() {
1051
- let e2 = [];
1052
- "" !== this.modelValue && null !== this.modelValue && void 0 !== this.modelValue && (Array.isArray(this.modelValue) ? e2 = this.modelValue : e2.push(this.modelValue));
1053
- return { showFieldSelection: false, showAdditionalCondition: false, selectedFields: e2, currentRow: null, multipleSelection: [], disabledFields: this.getDisabledFields(this.modelValue) };
1054
- }, computed: { ...t.mapGetters("wfEditor", ["formFieldsWithSub"]) }, watch: { selectedFields: { handler(e2, t2) {
1055
- this.disabledFields = this.getDisabledFields(e2);
1056
- }, deep: true } }, mounted() {
1057
- this.selectedFields.length > 0 && this.selectRow(this.selectedFields[this.selectedFields.length - 1]);
1058
- }, methods: { getDisabledFields(e2) {
1059
- if (null == e2)
1060
- return [];
1061
- const t2 = [];
1062
- return Array.isArray(e2) ? e2.map((e3) => {
1063
- t2.push(e3.name);
1064
- }) : t2.push(e2), t2;
1065
- }, handleCurrentChange(e2) {
1066
- this.currentRow = e2;
1067
- }, handleSelectionChange(e2) {
1068
- this.multipleSelection = e2;
1069
- }, selectRow(e2) {
1070
- this.$refs.table.setCurrentRow(e2);
1071
- }, add() {
1072
- this.showFieldSelection = true;
1073
- }, getCurrentRowIndex() {
1074
- let e2 = -1;
1075
- for (let t2 = 0; t2 < this.selectedFields.length; t2++)
1076
- if (this.selectedFields[t2].name === this.currentRow.name) {
1077
- e2 = t2;
1078
- break;
1079
- }
1080
- return e2;
1081
- }, remove() {
1082
- if (this.multipleSelection && this.multipleSelection.length > 0) {
1083
- for (var e2 = 0; e2 < this.multipleSelection.length; e2++) {
1084
- const t2 = this.multipleSelection[e2];
1085
- this.selectRow(t2);
1086
- const o2 = this.getCurrentRowIndex();
1087
- this.selectedFields.splice(o2, 1);
1088
- }
1089
- this.$emit("update:modelValue", this.selectedFields);
1090
- }
1091
- }, setSelectedFields(e2) {
1092
- null == e2 && (e2 = []), this.selectedFields = this.selectedFields.concat(e2), this.selectRow(this.selectedFields[this.selectedFields.length - 1]), this.$emit("update:modelValue", this.selectedFields);
1093
- }, formatCondition(e2) {
1094
- if ("" === e2 || !e2)
1095
- return this.$t("workflowEditor.task.nothing");
1096
- const t2 = [];
1097
- return xt(t2, e2), Dt(t2);
1098
- }, getFieldLabel(e2) {
1099
- const t2 = this.formFieldsWithSub.filter((t3) => t3.name === e2.name);
1100
- return t2.length > 0 ? t2[0].label : "";
1101
- }, selectCondition(e2) {
1102
- this.selectRow(e2), this.showAdditionalCondition = true;
1103
- } } }, mo = { style: { width: "100%" } };
1104
- const uo = $(co, [["render", function(e2, t2, o2, l2, i2, n2) {
1105
- 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");
1106
- return r.openBlock(), r.createElementBlock("div", mo, [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)]);
1107
- }]]), po = { xmlToData(e2) {
1108
- const t2 = [];
1109
- if (e2) {
1110
- const r2 = e2.split(" ");
1111
- if (r2 && r2.length > 0) {
1112
- let e3 = 1, i2 = "", n2 = "", a2 = "", s2 = "", d2 = "", c2 = "", m2 = null;
1113
- for (var o2 = 0; o2 < r2.length; o2++) {
1114
- var l2 = r2[o2];
1115
- if (-1 !== l2.indexOf("(")) {
1116
- this.operationArr && this.operationArr.push([]), i2 = "", n2 = "", a2 = "", s2 = "", d2 = "", c2 = "";
1117
- const t3 = l2.split("${field[");
1118
- if (i2 = t3[0], n2 = t3[1].replace("]}", ""), this.operationArr) {
1119
- const t4 = this.getOperators(this.fieldMap[n2]);
1120
- this.operationArr[e3 - 1] = t4;
1121
- }
1122
- continue;
1123
- }
1124
- if (-1 !== l2.indexOf("(") || -1 === l2.indexOf("${field["))
1125
- -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;
1126
- else if (this.operationArr && this.operationArr.push([]), i2 = "", n2 = "", a2 = "", s2 = "", d2 = "", c2 = "", n2 = l2.replace("${field[", "").replace("]}", ""), this.operationArr) {
1127
- const t3 = this.getOperators(this.fieldMap[n2]);
1128
- this.operationArr[e3 - 1] = t3;
1129
- }
1130
- }
1131
- }
1132
- }
1133
- return t2;
1134
- }, getOperatorsArr(e2) {
1135
- if (e2 && e2.length > 0)
1136
- for (var t2 = 0; t2 < e2.length; t2++) {
1137
- this.operationArr.push([]);
1138
- const o2 = e2[t2], l2 = this.getOperators(this.fieldMap[o2.propName]);
1139
- this.operationArr[t2] = l2;
1140
- }
1141
- }, getRetunrOperatorsArr(e2, t2) {
1142
- const o2 = [];
1143
- if (e2 && e2.length > 0)
1144
- for (var l2 = 0; l2 < e2.length; l2++) {
1145
- o2.push([]);
1146
- const r2 = e2[l2], i2 = this.getOperators(t2[r2.propName]);
1147
- o2[l2] = i2;
1148
- }
1149
- return o2;
1150
- }, dataToXml(e2) {
1151
- let t2 = "";
1152
- if (e2 && e2.length > 0)
1153
- for (var o2 = 0; o2 < e2.length; o2++) {
1154
- var l2 = e2[o2];
1155
- let r2 = l2.logicOperator;
1156
- o2 === e2.length - 1 && (r2 = ""), t2 = t2 + l2.leftBracket + "${field[" + l2.propName + "]} " + l2.operator + " " + l2.propValue + l2.rightBracket + " " + r2 + " ";
1157
- }
1158
- return t2;
1159
- }, formatConditionList(e2) {
1160
- let t2 = "";
1161
- if (e2)
1162
- if ("string" == typeof e2) {
1163
- const o2 = this.xmlToData(e2);
1164
- t2 = this.formatConditionListTwo(o2);
1165
- } else
1166
- t2 = this.formatConditionListTwo(e2);
1167
- if (t2 && "" !== t2) {
1168
- const e3 = t2.substring(t2.length - 1);
1169
- "者" !== e3 && "且" !== e3 || (t2 = t2.substring(0, t2.length - 2));
1170
- }
1171
- return t2;
1172
- }, formatConditionListTwo(e2) {
1173
- let t2 = "";
1174
- if (e2 && e2.length > 0)
1175
- for (var o2 = 0; o2 < e2.length; o2++) {
1176
- const l2 = e2[o2];
1177
- if (l2 && l2.propName) {
1178
- const e3 = this.getOperators(this.fieldMap[l2.propName]);
1179
- if (e3 && e3.length > 0) {
1180
- const o3 = e3.filter((e4) => e4.name === l2.operator);
1181
- t2 += l2.leftBracket, this.fieldMap[l2.propName] && this.fieldMap[l2.propName].label && (t2 += this.fieldMap[l2.propName].label + " "), o3 && o3.length > 0 && (t2 += o3[0].label + " "), t2 += l2.propValue + l2.rightBracket + " ", l2.logicOperator && ("or" === l2.logicOperator ? t2 += "或者" : t2 += "并且");
1182
- }
1183
- }
1184
- }
1185
- return t2;
1186
- }, getOperators: (e2) => e2 ? "INTEGER" === e2.type || "LONG" === e2.type || "DOUBLE" === e2.type || "FLOAT" === e2.type ? [{ name: "operator.number.gt", label: w().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: w().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: w().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: w().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: w().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.is.null", label: w().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: w().t("workflowEditor.process.isNotNull") }] : "DATE" === e2.type || "TIME" === e2.type ? [{ name: "operator.date.gt", label: w().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: w().t("workflowEditor.process.earlierThan") }, { name: "operator.date.eq", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: w().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: w().t("workflowEditor.process.noEarlierThan") }, { name: "operator.text.is.null", label: w().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: w().t("workflowEditor.process.isNotNull") }] : "TEXT" === e2.type ? [{ name: "operator.text.eq", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: w().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: w().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: w().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: w().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: w().t("workflowEditor.process.isNotNull") }] : [{ name: "operator.text.eq", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: w().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.is.null", label: w().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: w().t("workflowEditor.process.isNotNull") }] : [{ name: "operator.text.eq", label: w().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: w().t("workflowEditor.process.notEqualTo") }] }, ho = { "${instanceCreatorName}": w().t("workflowEditor.process.processInitiator"), "${instanceCreatorDirectSuperiorName}": w().t("workflowEditor.process.sponsorsImmediateSuperior"), "${instanceCreatorDeptApprover}": w().t("workflowEditor.process.deptApprover"), "${instanceCreatorDirectSuperiorDeptApprover}": w().t("workflowEditor.process.superiorDeptApprover"), "${instanceCreatorDirectSuperiorDeptLeader}": w().t("workflowEditor.process.superiorDeptLeader"), "${currentTransactorName}": w().t("workflowEditor.process.nameOfCurrentHandler"), "${currentTransactorDirectSuperiorName}": w().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler") }, fo = { "${instanceCreatorDepartment}": w().t("workflowEditor.process.processInitiatorDepartment"), "${instanceCreatorSuperiorDepartment}": w().t("workflowEditor.process.sponsorsSuperiorDepartment"), "${instanceCreatorUpstageDepartment}": w().t("workflowEditor.process.sponsorTopDepartment"), "${instanceCreatorDirectSuperiorDepartment}": w().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"), "${currentTransactorDepartment}": w().t("workflowEditor.process.currentHandlerDepartment"), "${currentTransactorSuperiorDepartment}": w().t("workflowEditor.process.currentHandlerSuperiorDepartment"), "${currentTransactorUpstageDepartment}": w().t("workflowEditor.process.topDepartmentOfCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": w().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment") }, wo = { "${instanceCreatorrWorkGroup}": w().t("workflowEditor.process.processInitiatorWorkingGroup"), "${instanceCreatorDirectSuperiorWorkGroup}": w().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"), "${currentTransactorWorkGroup}": w().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorDirectSuperiorWorkGroup}": w().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler") }, go = { "${user}": w().t("workflowEditor.common.user"), "${department}": w().t("workflowEditor.common.department"), "${role}": w().t("workflowEditor.common.role"), "${workgroup}": w().t("workflowEditor.common.workgroup") }, Co = { "condition.operator.or": w().t("workflowEditor.process.perhaps"), "condition.operator.and": w().t("workflowEditor.process.also") }, ko = { "operator.text.eq": w().t("workflowEditor.process.beEqualTo"), "operator.text.neq": w().t("workflowEditor.process.notEqualTo") }, bo = { ...ho, ...fo, ...wo }, Vo = { "${instanceCreatorName}": w().t("workflowEditor.process.processInitiator"), "${instanceCreatorDirectSuperiorName}": w().t("workflowEditor.process.sponsorsImmediateSuperior"), "${instanceCreatorDeptApprover}": w().t("workflowEditor.process.deptApprover"), "${instanceCreatorDirectSuperiorDeptApprover}": w().t("workflowEditor.process.superiorDeptApprover"), "${instanceCreatorDirectSuperiorDeptLeader}": w().t("workflowEditor.process.superiorDeptLeader") }, yo = { "${upstageDepartment}": w().t("workflowEditor.process.topDepartments"), "${instanceCreatorDepartment}": w().t("workflowEditor.process.processInitiatorDepartment"), "${instanceCreatorSuperiorDepartment}": w().t("workflowEditor.process.sponsorsSuperiorDepartment"), "${instanceCreatorUpstageDepartment}": w().t("workflowEditor.process.sponsorTopDepartment"), "${instanceCreatorDirectSuperiorDepartment}": w().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"), "${previousTransactorDepartment}": w().t("workflowEditor.process.lastLinkHandlerDepartment"), "${previousTransactorSuperiorDepartment}": w().t("workflowEditor.process.previousLinkHandlerSuperiorDepartment"), "${previousTransactorUpstageDepartment}": w().t("workflowEditor.process.topDepartmentOfHandlerInThePreviousLink"), "${previousTransactorDirectSuperiorDepartment}": w().t("workflowEditor.process.previousLinkHandlersDirectSuperiorDepartment") }, vo = { "${instanceCreatorrWorkGroup}": w().t("workflowEditor.process.processInitiatorWorkingGroup"), "${instanceCreatorDirectSuperiorWorkGroup}": w().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"), "${previousTransactorWorkGroup}": w().t("workflowEditor.process.previousLinkHandlerWorkingGroup"), "${previousTransactorDirectSuperiorWorkGroup}": w().t("workflowEditor.process.workingGroupDirectlyUnderTheManagerInThePreviousLink") };
1187
- function To(e2) {
1188
- return void 0 !== bo[e2] ? bo[e2] : "";
1189
- }
1190
- const No = { name: "CommonUserCondition", components: { ValueSelectionDialog: Pt }, props: { modelValue: { type: String, default: null }, usedIn: { type: String, default: "reminder" } }, data() {
1191
- const e2 = [];
1192
- let t2 = 0;
1193
- return this.modelValue && "" !== this.modelValue && (t2 = function(e3, t3) {
1194
- let o2 = t3.replace(/ condition.operator.or /g, " condition.operator.or^_^");
1195
- o2 = o2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
1196
- const l2 = o2.split("^_^");
1197
- let r2 = 0;
1198
- for (const t4 of l2) {
1199
- if ("" === t4)
1200
- continue;
1201
- let o3 = "", l3 = "", i2 = "", n2 = "", a2 = "", s2 = "condition.operator.or";
1202
- const d2 = t4.split(" ");
1203
- let c2 = d2[0].indexOf("${");
1204
- 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++;
1205
- }
1206
- return r2;
1207
- }(e2, this.modelValue)), { users: e2, count: t2, currentRow: null, showValueDialog: false };
1208
- }, computed: { standardFields() {
1209
- let e2 = "reminder" === this.usedIn ? ho : Vo;
1210
- return "${department}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? fo : yo : "${workgroup}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? wo : vo : "${role}" === this.currentRow.key && (e2 = {}), e2;
1211
- } }, mounted() {
1212
- this.users.length > 0 && this.$refs.table.setCurrentRow(this.users[this.users.length - 1]), this.$watch("users", function(e2, t2) {
1213
- this.$emit("update:modelValue", function(e3) {
1214
- let t3 = "";
1215
- for (const o3 of e3)
1216
- "" !== o3.value && (t3 = t3 + o3.leftBracket + o3.key + " " + o3.operator + " " + o3.value + o3.rightBracket + " " + o3.logicOperator + " ");
1217
- const o2 = " condition.operator.or ", l2 = " condition.operator.and ";
1218
- 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;
1219
- }(this.users));
1220
- }, { deep: true });
1221
- }, methods: { format: (e2) => e2.indexOf("${field[") >= 0 ? ht(e2) : e2.indexOf("${") >= 0 ? To(e2) : e2.substring(0, e2.indexOf("[")), selectRow(e2) {
1222
- this.$refs.table.setCurrentRow(e2);
1223
- }, openValueDialog(e2) {
1224
- this.showValueDialog = true, this.selectRow(e2);
1225
- }, closeValueDialog(e2) {
1226
- void 0 !== e2 && "" !== e2 && (this.currentRow.value = e2), this.showValueDialog = false;
1227
- }, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
1228
- this.currentRow = e2;
1229
- }, getRowIndex(e2) {
1230
- for (let t2 = 0; t2 < this.users.length; t2++)
1231
- if (this.users[t2].id === e2.id)
1232
- return t2;
1233
- return -1;
1234
- }, add() {
1235
- const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
1236
- this.users.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
1237
- }, insert() {
1238
- if (null === this.currentRow)
1239
- return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
1240
- const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
1241
- this.users.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
1242
- }, remove() {
1243
- if (null === this.currentRow)
1244
- return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
1245
- let e2 = this.getRowIndex(this.currentRow);
1246
- this.users.splice(e2, 1), this.users.length > 0 && (e2 = e2 <= this.users.length - 1 ? e2 : this.users.length - 1, this.$refs.table.setCurrentRow(this.users[e2]));
1247
- }, view() {
1248
- let e2 = function(e3) {
1249
- let t2 = "";
1250
- for (const o3 of e3)
1251
- "" !== o3.value && (t2 = t2 + o3.leftBracket + go[o3.key] + " " + ko[o3.operator] + " " + To(o3.value) + o3.rightBracket + " " + Co[o3.logicOperator] + " ");
1252
- const o2 = " " + w().t("workflowEditor.process.perhaps") + " ", l2 = " " + w().t("workflowEditor.process.also") + " ";
1253
- 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;
1254
- }(this.users);
1255
- "" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorPublicModel.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
1256
- } });
1257
- }, handleKeyChange(e2) {
1258
- this.currentRow.value = "";
1259
- } } };
1260
- const xo = $(No, [["render", function(e2, t2, o2, l2, i2, n2) {
1261
- 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");
1262
- 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)]);
1263
- }]]), Eo = { components: { AdditionalCondition: It, CommonUserCondition: xo }, 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() {
1264
- let e2, t2;
1265
- 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 };
1266
- }, created() {
1267
- this.getAttributeArr();
1268
- }, computed: { ...t.mapGetters("wfEditor", ["propSettingKeyList"]) }, mounted() {
1269
- this.conditionList && ("object" == typeof this.conditionList ? this.tableData = this.conditionList : this.tableData = this.xmlToData(this.conditionList), this.getOperatorsArr(this.tableData));
1270
- }, methods: { ...po, add() {
1271
- this.tableData || (this.tableData = []), this.tableData.push({ leftBracket: "", propName: "", operator: "", propValue: "", rightBracket: "", logicOperator: "condition.operator.or", dataType: "", propDbName: "" }), this.operationArr.push([]);
1272
- }, remove() {
1273
- if (null === this.currentRow)
1274
- return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
1275
- let e2 = this.getRowIndex(this.currentRow);
1276
- 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]));
1277
- }, changeFieldName(e2) {
1278
- const t2 = this.currentRow.propName, o2 = this.fieldMap[t2];
1279
- o2 && (this.tableData[e2].dataType = o2.type, this.tableData[e2].propDbName = o2.propDbName), this.operationArr[e2] = this.getOperators(o2);
1280
- }, getAttributeArr() {
1281
- this.attributeMap && this.attributeMap.attributeArr && (this.attributeArr = this.attributeMap.attributeArr, this.queryList = this.attributeMap.attributeArr, this.fieldMap = this.attributeMap.fieldMap, this.fieldNameMap = this.attributeMap.fieldNameMap, this.parentAttributeArr = this.attributeMap.parentAttributeArr);
1282
- }, selectRow(e2) {
1283
- this.attributeArr = this.queryList, this.$refs.table.setCurrentRow(e2);
1284
- }, handleCurrentChange(e2) {
1285
- this.currentRow = e2;
1286
- }, searchField(e2) {
1287
- e2 && (this.attributeArr = this.queryList.filter((t2) => t2.label.indexOf(e2) > -1 || t2.value.indexOf(e2) > -1));
1288
- }, getRowIndex(e2) {
1289
- for (let t2 = 0; t2 < this.tableData.length; t2++)
1290
- if (this.tableData[t2].propName === e2.propName)
1291
- return t2;
1292
- return -1;
1293
- }, savebuttonSetting() {
1294
- if (this.tableData && this.tableData.length > 0)
1295
- for (var e2 = 0; e2 < this.tableData.length; e2++) {
1296
- if (!this.tableData[e2].propName)
1297
- return void this.$alert(this.$t("workflowEditorMessage.blankFieldNameOrValue"));
1298
- }
1299
- const t2 = { userCondition: this.myUserCondition, parentCondition: this.myParentCondition, condition: this.tableData };
1300
- this.$emit("close", t2);
1301
- }, closeButtonSetting() {
1302
- this.savebuttonSetting(), this.$emit("close", null);
1303
- }, changePropValue(e2) {
1304
- 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;
1305
- } } }, So = { style: { "overflow-y": "auto", "max-height": "500px" } }, Mo = { class: "operation-area" }, Do = { class: "clearfix" }, $o = { class: "clearfix" };
1306
- const Fo = { name: "EditableChildFieldSetting", components: { selectionConditions: $(Eo, [["render", function(e2, t2, o2, l2, i2, n2) {
1307
- 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");
1308
- 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", So, [r.createElementVNode("div", Mo, [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", Do, [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", $o, [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"]);
1309
- }]]) }, props: { setting: { type: Object, default: null }, tableName: { type: String, default: null } }, data() {
1310
- let e2 = [];
1311
- this.setting && this.setting.actionArr && (e2 = this.setting.actionArr);
1312
- let t2, o2, l2, r2 = [];
1313
- return this.setting && this.setting.fieldArr && (r2 = this.setting.fieldArr), this.setting && this.setting.visibleConditionArr && (t2 = this.setting.visibleConditionArr), this.setting && this.setting.modelName && (o2 = this.setting.modelName), this.setting && null !== this.setting.sumPermission && (l2 = this.setting.sumPermission), { sumPermission: l2, subtableConditionItem: null, attributeArr: null, showAdditionalCondition: false, currentRow: null, multipleSelection: null, actionArr: e2, fieldArr: r2, queryList: null, fieldMap: null, fieldNameMap: null, actionVisibleConditionArr: t2, buttonType: null, buttonVisibleCon: null, showButtonVisibleFlag: false, clickButton: false, operationArr: [], modelName: o2 };
1314
- }, watch: { setting: { handler(e2, t2) {
1315
- e2 && e2.actionArr && (this.actionArr = e2.actionArr), e2 && e2.fieldArr && (this.fieldArr = e2.fieldArr), e2 && e2.actionVisibleConditionArr && (this.actionVisibleConditionArr = e2.actionVisibleConditionArr), this.modelName = e2.modelName, this.sumPermission = e2.sumPermission, this.combinationParameters();
1316
- }, deep: true } }, computed: { ...t.mapGetters("wfEditor", ["subtableConditionMap"]) }, created() {
1317
- this.subtableConditionMap && this.tableName && (this.subtableConditionItem = this.subtableConditionMap[this.tableName], this.getAttributeArr());
1318
- }, mounted() {
1319
- this.subtableConditionMap && this.tableName && (this.subtableConditionItem = this.subtableConditionMap[this.tableName], this.subtableConditionMap[this.tableName] && (this.attributeArr = this.subtableConditionItem.attributeArr));
1320
- }, methods: { ...po, getAttributeArr() {
1321
- this.subtableConditionItem && this.subtableConditionItem.attributeArr && (this.queryList = this.subtableConditionItem.attributeArr, this.fieldMap = this.subtableConditionItem.fieldMap, this.fieldNameMap = this.subtableConditionItem.fieldNameMap);
1322
- }, savebuttonSetting(e2) {
1323
- e2 && (this.currentRow.condition = e2.condition, this.currentRow.userCondition = e2.userCondition, this.currentRow.parentCondition = e2.parentCondition, this.combinationParameters()), this.showAdditionalCondition = false;
1324
- }, handleCurrentChange(e2) {
1325
- this.currentRow = e2;
1326
- }, handleSelectionChange(e2) {
1327
- this.multipleSelection = e2;
1328
- }, selectRow(e2) {
1329
- this.$refs.table.setCurrentRow(e2);
1330
- }, add() {
1331
- this.fieldArr || (this.fieldArr = []), this.fieldArr.push({ name: null, constraintRule: null, condition: null }), this.combinationParameters();
1332
- }, getCurrentRowIndex() {
1333
- let e2 = -1;
1334
- for (let t2 = 0; t2 < this.fieldArr.length; t2++)
1335
- if (this.fieldArr[t2].name === this.currentRow.name) {
1336
- e2 = t2;
1337
- break;
1338
- }
1339
- return e2;
1340
- }, remove() {
1341
- if (this.multipleSelection && this.multipleSelection.length > 0) {
1342
- for (var e2 = 0; e2 < this.multipleSelection.length; e2++) {
1343
- const t2 = this.multipleSelection[e2];
1344
- this.selectRow(t2);
1345
- const o2 = this.getCurrentRowIndex();
1346
- this.fieldArr.splice(o2, 1);
1347
- }
1348
- this.combinationParameters();
1349
- }
1350
- }, selectCondition(e2) {
1351
- this.selectRow(e2), this.showAdditionalCondition = true;
1352
- }, showButtonVisible(e2) {
1353
- this.clickButton = true, this.buttonType = e2, this.actionVisibleConditionArr && this.actionVisibleConditionArr[e2] ? this.buttonVisibleCon = this.actionVisibleConditionArr[e2] : this.buttonVisibleCon = {}, this.showButtonVisibleFlag = true;
1354
- }, saveButtonVisible(e2) {
1355
- e2 && (this.actionVisibleConditionArr || (this.actionVisibleConditionArr = {}), this.actionVisibleConditionArr[this.buttonType] = e2, this.combinationParameters()), this.showButtonVisibleFlag = false;
1356
- }, changeActionArr() {
1357
- this.clickButton ? (this.actionArr.push(this.buttonType), this.clickButton = false) : this.combinationParameters();
1358
- }, combinationParameters() {
1359
- const e2 = {};
1360
- e2.modelName = this.modelName, e2.tableName = this.tableName, e2.permission = this.sumPermission;
1361
- const t2 = [];
1362
- if (this.actionArr && this.actionArr.length > 0 && (this.actionArr.forEach((e3) => {
1363
- const o2 = {};
1364
- if (o2.name = e3, this.actionVisibleConditionArr && this.actionVisibleConditionArr[e3]) {
1365
- const t3 = this.actionVisibleConditionArr[e3];
1366
- o2.condition = this.dataToXml(t3.condition), o2.parentCondition = t3.parentCondition, o2.userCondition = t3.userCondition;
1367
- }
1368
- t2.push(o2);
1369
- }), e2.action = t2), this.fieldArr && this.fieldArr.length > 0) {
1370
- const t3 = [];
1371
- this.fieldArr.forEach((e3) => {
1372
- const o2 = {};
1373
- o2.name = e3.name, o2.constraintRule = e3.constraintRule, e3.condition && (o2.condition = this.dataToXml(e3.condition)), o2.userCondition = e3.userCondition, o2.parentCondition = e3.parentCondition, t3.push(o2);
1374
- }), e2.field = t3;
1375
- }
1376
- this.$emit("combinationParameters", e2);
1377
- } } };
1378
- const Po = { name: "EditableChildFields", components: { editableChildFieldSetting: $(Fo, [["render", function(e2, t2, o2, l2, i2, n2) {
1379
- 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");
1380
- 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)])]);
1381
- }]]) }, props: { modelValue: { type: [Array, Object], default: null } }, data() {
1382
- let e2 = [];
1383
- return "" !== this.modelValue && null !== this.modelValue && void 0 !== this.modelValue && (Array.isArray(this.modelValue) ? e2 = this.modelValue : e2.push(this.modelValue)), { selectedFields: e2, selectedFieldMap: {} };
1384
- }, computed: { ...t.mapGetters("wfEditor", ["subtableConditionMap"]) }, watch: {}, created() {
1385
- if (this.selectedFields && this.selectedFields.length > 0 && this.selectedFields.forEach((e3) => {
1386
- const t2 = {}, o2 = e3.tableName;
1387
- if (e3.action)
1388
- if (Array.isArray(e3.action)) {
1389
- if (e3.action.length > 0) {
1390
- const o3 = [], l2 = {};
1391
- e3.action.forEach((e4) => {
1392
- o3.push(e4.name);
1393
- const t3 = {};
1394
- e4.condition && (t3.condition = this.xmlToData(e4.condition)), t3.parentCondition = e4.parentCondition, t3.userCondition = e4.userCondition, l2[e4.name] = t3;
1395
- }), t2.actionArr = o3, t2.visibleConditionArr = l2;
1396
- }
1397
- } else {
1398
- const o3 = [], l2 = {};
1399
- o3.push(e3.action.name);
1400
- const r2 = {};
1401
- e3.action.condition && (r2.condition = this.xmlToData(e3.action.condition)), r2.parentCondition = e3.action.parentCondition, r2.userCondition = e3.action.userCondition, l2[e3.action.name] = r2, t2.actionArr = o3, t2.visibleConditionArr = l2;
1402
- }
1403
- if (e3.field)
1404
- if (Array.isArray(e3.field)) {
1405
- if (e3.field.length > 0) {
1406
- const o3 = [];
1407
- e3.field.forEach((e4) => {
1408
- const t3 = {};
1409
- t3.name = e4.name, t3.constraintRule = e4.constraintRule, t3.condition = this.xmlToData(e4.condition), t3.userCondition = e4.userCondition, t3.parentCondition = e4.parentCondition, o3.push(t3);
1410
- }), t2.fieldArr = o3;
1411
- }
1412
- } else {
1413
- const o3 = [], l2 = {};
1414
- l2.name = e3.field.name, l2.constraintRule = e3.field.constraintRule, l2.condition = this.xmlToData(e3.field.condition), l2.userCondition = e3.field.userCondition, l2.parentCondition = e3.field.parentCondition, o3.push(l2), t2.fieldArr = o3;
1415
- }
1416
- e3.modelName ? t2.modelName = e3.modelName : t2.modelName = null, e3.permission ? t2.sumPermission = e3.permission : t2.sumPermission = false, this.selectedFieldMap[o2] = t2;
1417
- }), this.subtableConditionMap) {
1418
- for (var e2 in this.subtableConditionMap)
1419
- if (!this.selectedFieldMap[e2]) {
1420
- const t2 = {};
1421
- t2.tableName = e2, t2.modelName = this.subtableConditionMap[e2].modelName, t2.sumPermission = false, this.selectedFieldMap[e2] = t2;
1422
- }
1423
- }
1424
- }, mounted() {
1425
- }, methods: { ...po, combinationParameters(e2) {
1426
- if (e2 && e2.tableName) {
1427
- if (this.selectedFields && this.selectedFields.length > 0) {
1428
- const t2 = this.selectedFields.findIndex((t3) => t3.tableName === e2.tableName);
1429
- -1 !== t2 ? this.selectedFields[t2] = e2 : this.selectedFields.push(e2);
1430
- } else
1431
- this.selectedFields = [], this.selectedFields.push(e2);
1432
- this.$emit("update:modelValue", this.selectedFields);
1433
- }
1434
- }, refreshModelName(e2) {
1435
- if (this.subtableConditionMap && this.subtableConditionMap[e2] && this.subtableConditionMap[e2].modelName) {
1436
- if (this.selectedFieldMap[e2]) {
1437
- this.selectedFieldMap[e2].modelName = this.subtableConditionMap[e2].modelName;
1438
- } else {
1439
- const t2 = {};
1440
- t2.modelName = this.subtableConditionMap[e2].modelName, this.selectedFieldMap[e2] = t2;
1441
- }
1442
- this.$message({ showClose: true, type: "success", message: this.$t("workflowEditorMessage.updateSuccessful") });
1443
- }
1444
- }, changeSumPermission(e2) {
1445
- if (e2 && this.selectedFieldMap[e2])
1446
- if (this.selectedFields || (this.selectedFields = []), false === this.selectedFieldMap[e2].sumPermission) {
1447
- const t2 = this.selectedFields.findIndex((t3) => t3.tableName === e2);
1448
- null != t2 && -1 !== t2 ? this.selectedFields[t2].permission = false : this.selectedFields[this.selectedFields.length] = { permission: false, tableName: e2 };
1449
- } else {
1450
- const t2 = this.selectedFields.findIndex((t3) => t3.tableName === e2);
1451
- null != t2 && -1 !== t2 ? this.selectedFields[t2].permission = true : this.selectedFields[this.selectedFields.length] = { permission: true, tableName: e2 };
1452
- }
1453
- this.$emit("update:modelValue", this.selectedFields);
1454
- } } }, Bo = { style: { width: "100%", "margin-top": "10px" } }, Oo = { class: "clearfix" }, Io = { key: 0 }, _o = { style: { color: "cornflowerblue" } }, Ro = { style: { "padding-left": "5px" } }, Ao = { key: 0 };
1455
- const Uo = $(Po, [["render", function(e2, t2, o2, l2, i2, n2) {
1456
- 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");
1457
- return r.openBlock(), r.createElementBlock("div", Bo, [(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", Oo, [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", Io, [r.createElementVNode("span", _o, r.toDisplayString(e2.$t("workflowEditor.condition.formBindingModel")) + ":", 1), r.createElementVNode("span", Ro, [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", Ao, [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))]);
1458
- }]]);
1459
- const Lo = { name: "UserSelection", components: { SystemRoleTree: $({ name: "SystemRoleTree", components: { InlineSystemRoleTree: Ft }, props: { multiple: { type: Boolean, default: false } }, data: () => ({ dialogVisible: true }), computed: {}, watch: {}, created() {
1460
- }, methods: { roleResult(e2) {
1461
- e2 ? this.$emit("close", e2) : this.$emit("close");
1462
- }, selectRoles() {
1463
- this.$refs.systemRoleTree.selectRole();
1464
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
1465
- const a2 = r.resolveComponent("inline-system-role-tree"), s2 = r.resolveComponent("el-button"), d2 = r.resolveComponent("el-dialog");
1466
- 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"]);
1467
- }]]), FormFields: pt }, props: { label: { type: String, default: "" }, labelWidth: { type: String, default: null }, modelValue: { type: String, default: "" }, currentTransactor: { type: Boolean, default: false } }, data() {
1468
- let e2 = false, t2 = "";
1469
- const o2 = this.modelValue.split("; "), l2 = o2[0].split(" condition.operator.or ");
1470
- 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 };
1471
- }, watch: { checkList(e2) {
1472
- this.$emit("update:modelValue", this.getValue());
1473
- }, selectedUsers(e2) {
1474
- this.$emit("update:modelValue", this.getValue());
1475
- } }, created() {
1476
- this.checkList, this.getSelectedUsersShowValue();
1477
- }, methods: { formatLabel: (e2) => ht(e2), getValue() {
1478
- let e2 = this.checkList.filter((e3) => "" !== e3 && "assignUser" !== e3).join(" condition.operator.or ");
1479
- return this.showUserList && this.selectedUsers && 0 !== this.selectedUsers.length && (e2 = e2 + "; " + this.selectedUsers.join(" condition.operator.or ")), e2;
1480
- }, toggleUserList() {
1481
- this.showUserList = !this.showUserList;
1482
- }, resetSelectedUsers() {
1483
- this.selectedUsers = [], this.selectedUsersShowValue = "";
1484
- }, handleCommand(e2) {
1485
- "selectUser" === e2 ? this.selectPointUser() : "selectDepartment" === e2 ? this.selectPointDepartment() : "selectRole" === e2 ? this.selectPointRole() : "selectWorkgroup" === e2 ? this.selectPointWorkgroup() : "selectField" === e2 && this.selectPointField();
1486
- }, selectPointUser() {
1487
- this.showSelectUser = true;
1488
- }, selectPointDepartment() {
1489
- this.showSelectDepartment = true;
1490
- }, selectPointRole() {
1491
- this.showSelectRole = true;
1492
- }, selectPointField() {
1493
- this.showSelectField = true;
1494
- }, selectPointWorkgroup() {
1495
- this.showSelectWorkgroup = true;
1496
- }, addPointUsers(e2) {
1497
- if (e2) {
1498
- e2.containBranch ? this.packageSelectedUserConditionsWithBranch(e2.users) : this.packageSelectedUserConditionsWithOutBranch(e2.users), this.getSelectedUsersShowValue();
1499
- }
1500
- this.showSelectUser = false;
1501
- }, packageSelectedUserConditionsWithBranch(e2) {
1502
- e2.forEach((e3) => {
1503
- let t2 = e3.loginName, o2 = e3.name;
1504
- if (e3.subCompanyId && null !== e3.subCompanyId) {
1505
- t2 = t2 + "~~" + e3.subCompanyCode, o2 = o2 + "/" + e3.subCompanyName;
1506
- } else
1507
- t2 = t2 + "~~" + e3.tenantCode, o2 = o2 + "/" + e3.tenantName;
1508
- const l2 = "${user} operator.text.eq " + o2 + "[" + t2 + "]";
1509
- if (this.selectedUsers) {
1510
- 0 === this.selectedUsers.filter(this.filterCondition(l2)).length && this.selectedUsers.push(l2);
1511
- } else
1512
- this.selectedUsers = [], this.selectedUsers.push(l2);
1513
- });
1514
- }, packageSelectedUserConditionsWithOutBranch(e2) {
1515
- e2.forEach((e3) => {
1516
- this.selectedUsers || (this.selectedUsers = []);
1517
- const t2 = "${user} operator.text.eq " + e3.name + "[" + e3.loginName + "]";
1518
- 0 === this.selectedUsers.filter(this.filterCondition(t2)).length && this.selectedUsers.push(t2);
1519
- });
1520
- }, getSelectedUsersShowValue() {
1521
- if (this.selectedUsers) {
1522
- const e2 = this.selectedUsers.join(" condition.operator.or ");
1523
- this.selectedUsersShowValue = e2.replace(/\$\{user\}/g, "用户").replace(/\$\{department\}/g, "部门").replace(/\$\{workGroup\}/g, "工作组").replace(/\$\{role\}/g, "角色").replace(/operator\.text\.eq/g, "等于").replace(/condition\.operator\.or/g, "或者").replace(/\$\{field/g, "字段").replace(/]\}/g, "]");
1524
- }
1525
- }, filterCondition: (e2) => (t2) => t2 === e2, addPointDepartments(e2) {
1526
- if (e2) {
1527
- e2.containBranch ? this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2.departments, "${department}") : this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.departments, "${department}"), this.getSelectedUsersShowValue();
1528
- }
1529
- this.showSelectDepartment = false;
1530
- }, packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2, t2) {
1531
- const o2 = t2 + " operator.text.eq ";
1532
- e2.forEach((e3) => {
1533
- const t3 = e3.code;
1534
- let l2 = e3.name;
1535
- if (e3.subCompanyId && null !== e3.subCompanyId) {
1536
- const t4 = e3.subCompanyName;
1537
- t4 && "" !== t4 && (l2 = l2 + "/" + t4);
1538
- } else
1539
- l2 = l2 + "/" + e3.tenantName;
1540
- const r2 = o2 + l2 + "[" + t3 + "]";
1541
- if (this.selectedUsers) {
1542
- 0 === this.selectedUsers.filter(this.filterCondition(r2)).length && this.selectedUsers.push(r2);
1543
- } else
1544
- this.selectedUsers = [], this.selectedUsers.push(r2);
1545
- });
1546
- }, packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2, t2) {
1547
- const o2 = t2 + " operator.text.eq ";
1548
- e2.forEach((e3) => {
1549
- const t3 = o2 + e3.name + "[" + e3.code + "]";
1550
- if (this.selectedUsers) {
1551
- 0 === this.selectedUsers.filter(this.filterCondition(t3)).length && this.selectedUsers.push(t3);
1552
- } else
1553
- this.selectedUsers = [], this.selectedUsers.push(t3);
1554
- });
1555
- }, addPointWorkgroups(e2) {
1556
- if (e2) {
1557
- e2.containBranch ? this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e2.workgroups, "${workGroup}") : this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.workgroups, "${workGroup}"), this.getSelectedUsersShowValue();
1558
- }
1559
- this.showSelectWorkgroup = false;
1560
- }, addPointRoles(e2) {
1561
- e2 && (this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e2.roles, "${role}"), this.getSelectedUsersShowValue()), this.showSelectRole = false;
1562
- }, packageSelectedFieldConditions(e2, t2) {
1563
- const o2 = t2 + " operator.text.eq ${field[" + e2 + "]}";
1564
- if (this.selectedUsers) {
1565
- 0 === this.selectedUsers.filter(this.filterCondition(o2)).length && this.selectedUsers.push(o2);
1566
- } else
1567
- this.selectedUsers = [], this.selectedUsers.push(o2);
1568
- }, setField(e2) {
1569
- void 0 !== e2 && (this.packageSelectedFieldConditions(e2, "${user}"), this.getSelectedUsersShowValue()), this.showSelectField = false;
1570
- } } }, Ho = { key: 0, style: { width: "100%", "vertical-align": "middle" } }, Wo = { class: "el-dropdown-link" }, zo = r.createElementVNode("i", { class: "fa fa-search" }, null, -1);
1571
- const jo = $(Lo, [["render", function(e2, t2, o2, l2, i2, n2) {
1572
- 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");
1573
- 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", Ho, [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", Wo, [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"]);
1574
- }]]);
1575
- const Jo = $({ name: "PermissionSettings", components: { EditableFields: uo, UserSelection: jo, AdditionalCondition: It, editableChildFields: Uo }, props: { modelValue: { type: Object, default: null } }, data() {
1576
- const e2 = x(this.modelValue), t2 = ["viewOpinion", "editOpinion", "requireOpinion", "viewMeetingResult", "viewVoteResult", "viewFlowHistory", "printForm"];
1577
- t2.forEach((t3) => {
1578
- e2[t3 + "Checkbox"] = !!this.modelValue[t3].condition;
1579
- });
1580
- const o2 = ["add", "delete", "download"];
1581
- return o2.forEach((t3) => {
1582
- e2.attachment[t3 + "Checkbox"] = !!this.modelValue.attachment[t3] && !!this.modelValue.attachment[t3].condition, e2.attachment.permission || (e2.attachment[t3] = { permission: false, condition: "" });
1583
- }), { formModel: e2, attrNames: t2, attachmentAttrNames: o2 };
1584
- }, mounted() {
1585
- this.$watch("formModel", function(e2) {
1586
- const t2 = { editForm: {}, viewOpinion: {}, editOpinion: {}, requireOpinion: {}, viewMeetingResult: {}, viewVoteResult: {}, viewFlowHistory: {}, printForm: {}, officialText: {}, attachment: {}, deleteInstance: { userCondition: "" } };
1587
- t2.editForm.permission = e2.editForm.permission, e2.editForm.permission && (t2.editForm.field = e2.editForm.field, t2.editForm.subTablePermission = e2.editForm.subTablePermission), this.attrNames.map((o2) => {
1588
- t2[o2].permission = e2[o2].permission, e2[o2].permission && e2[o2 + "Checkbox"] ? t2[o2].condition = e2[o2].condition : t2[o2].condition = "";
1589
- }), t2.attachment.permission = e2.attachment.permission, e2.attachment.permission && this.attachmentAttrNames.map((o2) => {
1590
- 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 = "";
1591
- }), this.$emit("update:modelValue", t2);
1592
- }, { deep: true });
1593
- }, methods: {} }, [["render", function(e2, t2, o2, l2, i2, n2) {
1594
- 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");
1595
- 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"]);
1596
- }], ["__scopeId", "data-v-c019538f"]]), Go = { name: "TransactorSettings", components: { CommonUserCondition: xo, FormFields: pt }, props: { model: { type: Object, default: null }, usedIn: { type: String, default: "HumanTask" }, isSubprocess: { type: Boolean, default: false }, basicProperties: { type: Object, default: null } }, data() {
1597
- const e2 = { selectedField: "" };
1598
- return this.initFormModel(e2), { showFormFields: false, formModel: e2, isCountersign: false };
1599
- }, mounted() {
1600
- this.$watch("formModel", function() {
1601
- this.setTransactor(this.formModel.transactor);
1602
- const e2 = { ...this.formModel.additionalCondition };
1603
- e2.selectOneFromMultiple ? "customType" === e2.selectType && delete e2.selectUrl : (delete e2.selectType, delete e2.selectUrl), this.model.additionalCondition = e2;
1604
- }, { deep: true }), this.$watch("basicProperties", function() {
1605
- this.showActivateOneVoteVeto();
1606
- }, { deep: true }), this.showActivateOneVoteVeto();
1607
- }, methods: { formatLabel: (e2) => ht(e2), initFormModel(e2) {
1608
- e2.userCondition = "";
1609
- const t2 = this.model.userCondition;
1610
- 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 = "";
1611
- }, initAdditionalCondition(e2) {
1612
- void 0 === this.model.additionalCondition ? e2.additionalCondition = { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false, selectType: "customType", selectUrl: "" } : (e2.additionalCondition = { ...this.model.additionalCondition }, void 0 === e2.additionalCondition.selectType && (e2.additionalCondition.selectType = "customType"));
1613
- }, changeA(e2) {
1614
- this.setTransactor(e2);
1615
- }, handleUrlChange(e2) {
1616
- this.model.url = e2;
1617
- }, setTransactor(e2) {
1618
- "${instanceCreator}" !== e2 && "${previousTransactorAssignment}" !== e2 || (this.model.userCondition = e2), "byField" === e2 && (this.model.userCondition = this.formModel.selectedField), "byCondition" === e2 && (this.model.userCondition = this.formModel.userCondition), this.model.url = "${previousTransactorAssignment}" === e2 ? this.formModel.url : "", this.model.additionalCondition = "byCondition" === e2 ? { ...this.formModel.additionalCondition } : void 0;
1619
- }, handleFieldSelection(e2) {
1620
- }, setField(e2) {
1621
- void 0 !== e2 && ("byDeptField" === this.formModel.transactor ? (this.formModel.selectedField = "${deptField[" + e2 + "]}", this.model.userCondition = this.formModel.selectedField) : (this.formModel.selectedField = "${field[" + e2 + "]}", this.model.userCondition = this.formModel.selectedField)), this.showFormFields = false;
1622
- }, showActivateOneVoteVeto() {
1623
- this.basicProperties && this.basicProperties.processingMode && ("COUNTERSIGN" === this.basicProperties.processingMode.type ? this.isCountersign = true : (this.isCountersign = false, this.formModel.additionalCondition.activateOneVoteVeto = false));
1624
- }, transactorChange() {
1625
- this.formModel.selectedField = null;
1626
- } } }, qo = { key: 0, style: { width: "100%" } }, Ko = { key: 1 }, Xo = { key: 0 };
1627
- const Yo = $(Go, [["render", function(e2, t2, o2, l2, i2, n2) {
1628
- 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");
1629
- 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", qo, [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", Ko, [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", Xo, [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"]);
1630
- }]]), Qo = { "${currentTime}": w().t("workflowEditor.process.handlingTimeOfThisLink"), "${currentTransactorId}": w().t("workflowEditor.process.handlerIDOfThisLink"), "${currentTransactorMainDepartmentId}": w().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"), "${currentTransactorDirectSuperiorId}": w().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorMainDepartmentId}": w().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"), "${currentTransactor}": w().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"), "${currentTransactorName }": w().t("workflowEditor.process.NameOfCurrentHandler"), "${currentTransactorDepartment }": w().t("workflowEditor.process.CurrentHandlerDepartment"), "${currentTransactorDepartmentId}": w().t("workflowEditor.process.CurrentHandlerDepartmentID"), "${currentTransactorMainDepartment}": w().t("workflowEditor.process.CurrentManagersPrincipalDepartment"), "${currentTransactorSuperiorDepartmentId}": w().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"), "${currentTransactorSuperiorDepartment}": w().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"), "${currentTransactorUpstageDepartment}": w().t("workflowEditor.process.TopDepartmentOfCurrentHandler"), "${currentTransactorUpstageDepartmentId}": w().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"), "${currentTransactorRole}": w().t("workflowEditor.process.CurrentHandlerRole"), "${currentTransactorRoleId}": w().t("workflowEditor.process.CurrentHandlerRoleID"), "${currentTransactorWorkGroup}": w().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorWorkGroupId}": w().t("workflowEditor.process.CurrentHandlerWorkingGroupID"), "${currentTransactorDirectSuperior}": w().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorName}": w().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": w().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorDepartmentId}": w().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"), "${currentTransactorDirectSuperiorMainDepartment}": w().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorRole}": w().t("workflowEditor.process.currentManagersDirectSuperiorRole"), "${currentTransactorDirectSuperiorRoleId}": w().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"), "${currentTransactorDirectSuperiorWorkGroup}": w().t("workflowEditor.process.currentManagersDirectSuperiorWork"), "${currentTransactorDirectSuperiorWorkGroupId}": w().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"), "${currentOperation}": w().t("workflowEditor.process.operationsPerformedInThisPhase"), "${previousTransactorId}": w().t("workflowEditor.process.handlerIDOfThePreviousLink"), "${previousTransactor}": w().t("workflowEditor.process.lastLinkHandlerLogin"), "${previousTransactorName}": w().t("workflowEditor.process.nameOfHandlerInThePreviousLink") }, Zo = { name: "AutoFilledFields", components: { FormFields: pt }, props: { modelValue: { type: Object, default: () => ({}) }, opinionSetting: { type: Object, default: () => ({}) } }, data() {
1631
- const e2 = [];
1632
- if (void 0 !== this.modelValue.field && null !== this.modelValue.field)
1633
- if (Array.isArray(this.modelValue.field))
1634
- this.modelValue.field.map((t3) => {
1635
- const o2 = { ...t3 };
1636
- "string" == typeof t3.value && -1 !== t3.value.indexOf("+") ? o2.value = t3.value.split("+") : (o2.value = [], o2.value.push(t3.value)), e2.push(o2);
1637
- });
1638
- else {
1639
- const t3 = { ...this.modelValue.field };
1640
- "string" == typeof this.modelValue.field.value && -1 !== this.modelValue.field.value.indexOf("+") ? t3.value = this.modelValue.field.value.split("+") : (t3.value = [], t3.value.push(this.modelValue.field.value)), e2.push(t3);
1641
- }
1642
- let t2 = {};
1643
- return this.opinionSetting && this.opinionSetting.opinionSourceField && (t2 = { ...this.opinionSetting }), { tableData: e2, currentRow: null, standardValues: Qo, showFormFields: false, isSelectOpinionField: false, opinionAutoSetting: t2 };
1644
- }, computed: { keys() {
1645
- return Object.keys(this.standardValues);
1646
- } }, watch: { opinionAutoSetting: { deep: true, handler(e2) {
1647
- const t2 = { ...e2 };
1648
- this.$emit("update:opinion-setting", t2);
1649
- } } }, mounted() {
1650
- this.tableData && this.tableData.length > 0 && this.setCurrentRow(this.tableData[0]), this.$watch("tableData", function() {
1651
- const e2 = [];
1652
- this.tableData.map((t2) => {
1653
- if ("" !== t2.name && t2.value.length > 0) {
1654
- const o2 = { ...t2 };
1655
- o2.value = t2.value.join("+"), e2.push(o2);
1656
- }
1657
- }), this.$emit("update:modelValue", { field: e2 });
1658
- }, { deep: true });
1659
- }, created() {
1660
- }, methods: { add() {
1661
- for (let e3 = 0; e3 < this.tableData.length; e3++)
1662
- if ("" === this.tableData[e3].name || "" === this.tableData[e3].value)
1663
- return void this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty", { row: e3 + 1 }));
1664
- const e2 = { name: "", value: [], separator: "", fillType: "cover", fillTime: "after" };
1665
- this.tableData.push(e2), this.setCurrentRow(e2);
1666
- }, remove() {
1667
- if (null === this.currentRow)
1668
- return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
1669
- let e2;
1670
- for (let t2 = 0; t2 < this.tableData.length; t2++)
1671
- if (this.tableData[t2].name === this.currentRow.name) {
1672
- e2 = t2;
1673
- break;
1674
- }
1675
- this.tableData.splice(e2, 1), e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.setCurrentRow(this.tableData[e2]);
1676
- }, setCurrentRow(e2) {
1677
- this.$refs.table.setCurrentRow(e2);
1678
- }, handleCurrentChange(e2) {
1679
- this.currentRow = e2;
1680
- }, checkName(e2) {
1681
- this.showFormFields || "" !== e2 || this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"));
1682
- }, checkValue(e2) {
1683
- 0 === e2.length && this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"));
1684
- }, setField(e2) {
1685
- this.isSelectOpinionField ? this.opinionAutoSetting.opinionSourceField = e2 : void 0 !== e2 && (this.currentRow.name = e2), this.showFormFields = false, this.isSelectOpinionField = false;
1686
- }, getFieldLabel: (e2) => ht(e2), selectOpinionField() {
1687
- this.showFormFields = true, this.isSelectOpinionField = true;
1688
- }, clearOpinionField() {
1689
- delete this.opinionAutoSetting.opinionSourceField;
1690
- } } };
1691
- const el = $(Zo, [["render", function(e2, t2, o2, l2, i2, n2) {
1692
- 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");
1693
- 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)]);
1694
- }]]), tl = { name: "Variables", props: { modelValue: { type: Object, default: null } }, data() {
1695
- let e2 = [];
1696
- return this.modelValue && (Array.isArray(this.modelValue.variable) ? e2 = this.modelValue.variable : this.modelValue.variable && e2.push(this.modelValue.variable)), { variables: e2, currentRow: null };
1697
- }, watch: {}, mounted() {
1698
- this.variables.length > 0 && this.setCurrentRow(this.variables[0]), this.$watch("variables", function() {
1699
- const e2 = this.variables.filter((e3) => "" !== e3.name && "" !== e3.value);
1700
- this.$emit("update:modelValue", { variable: e2 });
1701
- }, { deep: true });
1702
- }, methods: { add() {
1703
- for (let e3 = 0; e3 < this.variables.length; e3++)
1704
- if ("" === this.variables[e3].name || "" === this.variables[e3].value)
1705
- return void this.$alert(this.$t("workflowEditorMessage.variableNameOrValueOnLineCannotBeEmpty", { row: e3 + 1 }));
1706
- const e2 = { name: "", value: "" };
1707
- this.variables.push(e2), this.setCurrentRow(e2);
1708
- }, remove() {
1709
- if (null === this.currentRow)
1710
- return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
1711
- let e2;
1712
- for (let t2 = 0; t2 < this.variables.length; t2++)
1713
- if (this.variables[t2].name === this.currentRow.name) {
1714
- e2 = t2;
1715
- break;
1716
- }
1717
- this.variables.splice(e2, 1), e2 = e2 <= this.variables.length - 1 ? e2 : this.variables.length - 1, this.setCurrentRow(this.variables[e2]);
1718
- }, setCurrentRow(e2) {
1719
- this.$refs.table.setCurrentRow(e2);
1720
- }, handleCurrentChange(e2) {
1721
- this.currentRow = e2;
1722
- }, checkName(e2) {
1723
- "" === e2 && this.$alert(this.$t("workflowEditorMessage.variableNameCannotBeEmpty"));
1724
- }, checkValue(e2) {
1725
- "" === e2 && this.$alert(this.$t("workflowEditorMessage.variableValueCannotBeEmpty"));
1726
- } } };
1727
- const ol = $(tl, [["render", function(e2, t2, o2, l2, i2, n2) {
1728
- 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");
1729
- 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"])]);
1730
- }]]), ll = { key: 0 };
1731
- const rl = $({ name: "Events", props: { modelValue: { type: Object, default: null } }, data() {
1732
- const e2 = { beforeSubmitEnabled: false, beforeSubmit: {} };
1733
- return this.modelValue.beforeSubmit && (e2.beforeSubmitEnabled = true, e2.beforeSubmit = { ...this.modelValue.beforeSubmit }), e2.afterComplete = this.modelValue.afterComplete, { formModel: e2 };
1734
- }, mounted() {
1735
- this.$watch("formModel", function(e2, t2) {
1736
- const o2 = {};
1737
- this.formModel.beforeSubmitEnabled && (o2.beforeSubmit = { ...this.formModel.beforeSubmit }), o2.afterComplete = this.formModel.afterComplete, this.$emit("update:modelValue", o2);
1738
- }, { deep: true });
1739
- } }, [["render", function(e2, t2, o2, l2, i2, n2) {
1740
- const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-input"), c2 = r.resolveComponent("el-form");
1741
- 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", ll, [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"]);
1742
- }]]);
1743
- const il = $({ name: "CommonNoticeTool", props: { label: { type: String, default: null }, modelValue: { type: String, default: null }, customMsg: { type: String, default: null } }, data() {
1744
- let e2 = [];
1745
- this.modelValue && "" !== this.modelValue && null !== this.modelValue && (e2 = this.modelValue.split(","));
1746
- let t2 = "";
1747
- return this.customMsg && "" !== this.customMsg && null !== this.customMsg && (t2 = this.customMsg), { tools: e2, myCustomMsg: t2 };
1748
- }, watch: { tools(e2) {
1749
- this.$emit("update:modelValue", this.tools.join(","));
1750
- }, myCustomMsg(e2) {
1751
- this.$emit("input-msg", this.myCustomMsg);
1752
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
1753
- const a2 = r.resolveComponent("el-checkbox"), s2 = r.resolveComponent("el-checkbox-group"), d2 = r.resolveComponent("el-form-item"), c2 = r.resolveComponent("el-input");
1754
- 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)]);
1755
- }]]), nl = { name: "Reminder", components: { CommonNoticeTool: il, CommonUserCondition: xo, SelectMailTemplates: Jt }, props: { modelValue: { type: [Object, String], default: null }, isProcess: { type: Boolean, default: false } }, data() {
1756
- 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: "" };
1757
- 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" } };
1758
- }, watch: { showReminder(e2) {
1759
- e2 ? this.$emit("update:modelValue", this.model) : this.$emit("update:modelValue", null);
1760
- }, showNotice(e2) {
1761
- e2 ? this.$emit("update:modelValue", this.model) : this.$emit("update:modelValue", { remindType: this.model.remindType, dueDate: this.model.dueDate, dueTimeUnit: this.model.dueTimeUnit, repeat: this.model.repeat, timeUnit: this.model.timeUnit, remindTimes: 0, noticeType: "", noticeUserCondition: "", containTransferUser: false, transferUserCondition: "", containNoticeUser: false });
1762
- } }, created() {
1763
- this.baseURL = window.$vueApp.config.globalProperties.baseURL, this.optionUrl = "/bs/email-templates/list/0", this.$watch("model", function(e2, t2) {
1764
- let o2 = null;
1765
- this.showReminder && (o2 = this.model, o2.dueTimeUnit || (o2.dueTimeUnit = "day")), this.$emit("update:modelValue", o2);
1766
- }, { deep: true });
1767
- }, methods: { setMailTemplateCode(e2) {
1768
- this.model.mailTemplateCode = e2;
1769
- }, setMailPointTemplateCode(e2) {
1770
- this.model.mailPointTemplateCode = e2;
1771
- }, selectData(e2, t2) {
1772
- this.multiSelectData = e2;
1773
- }, setReminderCustomMsg(e2) {
1774
- this.model.reminderCustomMsg = e2;
1775
- }, setNoticeCustomMsg(e2) {
1776
- this.model.noticeCustomMsg = e2;
1777
- } } }, al = { key: 0 }, sl = { key: 2 };
1778
- const dl = { name: "NoticeReminder", components: { Reminder: $(nl, [["render", function(e2, t2, o2, l2, i2, n2) {
1779
- 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");
1780
- 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", al, [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", sl, [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"]);
1781
- }], ["__scopeId", "data-v-4e29ea06"]]), CommonNoticeTool: il, SelectMailTemplates: Jt }, props: { reminderValue: { type: [Object, String], default: null }, taskNoticeValue: { type: Object, default: null }, isProcess: { type: Boolean, default: false } }, data() {
1782
- let e2 = null;
1783
- null !== this.reminderValue && void 0 !== this.reminderValue && "" !== this.reminderValue && (e2 = this.reminderValue);
1784
- let t2 = {};
1785
- return null !== this.taskNoticeValue && void 0 !== this.taskNoticeValue && "" !== this.taskNoticeValue && (t2 = this.taskNoticeValue), { reminderObj: e2, noticeObj: t2 };
1786
- }, watch: { reminderObj(e2) {
1787
- e2 ? this.$emit("update:reminder-value", e2) : this.$emit("update:reminder-value", null);
1788
- } }, methods: { setMailTemplateCode(e2) {
1789
- this.noticeObj.mailPointTemplateCode = e2;
1790
- }, setNoticeCommonTemplateCode(e2) {
1791
- this.noticeObj.mailTemplateCode = e2;
1792
- }, setCustomMsg(e2) {
1793
- this.noticeObj.customMsg = e2;
1794
- } } }, cl = { class: "clearfix" }, ml = { class: "sub-li" }, ul = { class: "sub-li" }, pl = { class: "clearfix" }, hl = { class: "sub-li" }, fl = { class: "sub-li" }, wl = { class: "sub-li" }, gl = { class: "sub-li" };
1795
- const Cl = $(dl, [["render", function(e2, t2, o2, l2, i2, n2) {
1796
- 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");
1797
- return r.openBlock(), r.createElementBlock("div", null, [r.createVNode(h2, { class: "box-card" }, { header: r.withCtx(() => [r.createElementVNode("div", cl, [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", ml, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r.createElementVNode("li", ul, 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", pl, [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", hl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateNotice")), 1), r.createElementVNode("li", fl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipTemplateEmail")), 1), r.createElementVNode("li", null, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindMsg")), 1), r.createElementVNode("li", wl, r.toDisplayString(e2.$t("workflowEditor.task.reminderTipRemindImmediately")), 1), r.createElementVNode("li", gl, 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 })]);
1798
- }], ["__scopeId", "data-v-39fac73c"]]);
1799
- const kl = $({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: Kt, TransactorSettings: Yo, PermissionSettings: Jo, AutoFilledFields: el, Events: rl, Variables: ol, NoticeReminder: Cl }, props: { model: { type: Object, default: null } }, data() {
1800
- return this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
1801
- }, computed: { formModel() {
1802
- return this.model.ref;
1803
- } }, mounted() {
1804
- this.$watch("model.ref.attr.id", function(e2, t2) {
1805
- this.model.id = e2;
1806
- }), this.$watch("model.ref.attr.name", function(e2, t2) {
1807
- this.model.name = e2;
1808
- });
1809
- }, methods: { handleClick(e2, t2) {
1810
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
1811
- 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");
1812
- 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"]);
1813
- }], ["__scopeId", "data-v-1651d82a"]]);
1814
- function bl() {
1815
- return window.$store;
1816
- }
1817
- function Vl() {
1818
- return window.$http;
1819
- }
1820
- const yl = { fetchFormFields: (e2, t2, o2, l2) => new Promise((r2, i2) => {
1821
- let n2;
1822
- e2 ? n2 = Vl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields?formCode=" + e2 + "&formVersion=" + t2 + "&publishVersion=" + l2) : o2 && (n2 = Vl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/table-fields?tableName=" + o2 + "&publishVersion=" + l2)), n2 ? n2.then((t3) => {
1823
- const o3 = t3.formFields;
1824
- t3.subFormFields, bl().commit("wfEditor/setFormCode", e2), bl().commit("wfEditor/setTableCode", t3.tableCode), bl().commit("wfEditor/setFormFields", o3), bl().commit("wfEditor/setFormFieldsWithSub", o3);
1825
- const l3 = t3.subtableConditionMap;
1826
- bl().commit("wfEditor/setSubtableConditionMap", l3);
1827
- const i3 = t3.systemPropSettingList;
1828
- bl().commit("wfEditor/setPropSettingKeyList", i3), r2(t3);
1829
- }) : r2({});
1830
- }), fetchSubprocessFormFields: (e2, t2) => Vl().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields-with-processes?processCode=" + e2 + "&processVersion=" + t2) };
1831
- const vl = $({ name: "BasicProperties", components: { i18nInput: zt }, props: { model: { type: Object, default: null }, name: { type: String, default: null }, code: { type: String, default: null } }, data() {
1832
- 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: w().t("workflowEditor.process.cannotBeEmpty"), trigger: "blur" }, isSelectAdmin: false, selectedForm: [], systemPublishVersion: null, sysCode: null, systems: [], isShowFormAndSystem: true, tableName: null };
1833
- }, computed: { ...t.mapGetters("wfEditor", ["systemVersion", "systemCode", "tableCode", "isCreateDefinition", "isHandleCreate"]) }, created() {
1834
- 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;
1835
- }, mounted() {
1836
- this.$watch("formModel.name", function(e2, t2) {
1837
- this.$emit("update:name", e2);
1838
- }), this.$watch("formModel.code", function(e2, t2) {
1839
- this.$emit("update:code", e2), this.setProcessCode(e2);
1840
- }), this.$watch("model.systemCode", function(e2, t2) {
1841
- this.setSystemCode(e2);
1842
- }), this.$watch("systemPublishVersion", function(e2, t2) {
1843
- this.setSystemVersion(e2);
1844
- });
1845
- }, methods: { ...t.mapMutations("wfEditor", ["setFormFields", "setSystemCode", "setSystemVersion", "setProcessCode"]), handleChange(e2) {
1846
- const t2 = e2[1];
1847
- this.model.formCode = t2.substring(t2.indexOf("/") + 1, t2.lastIndexOf("/")), this.model.formVersion = t2.substring(t2.lastIndexOf("/") + 1), yl.fetchFormFields(this.model.formCode, this.model.formVersion, null, this.systemPublishVersion).then((e3) => {
1848
- this.tableName = e3.tableCode;
1849
- });
1850
- }, selectAdmin() {
1851
- this.isSelectAdmin = true;
1852
- }, addAdmin(e2) {
1853
- if (e2) {
1854
- e2.containBranch = true;
1855
- let t2 = e2.loginName;
1856
- const o2 = e2.user;
1857
- e2.containBranch && (t2 = o2.subCompanyCode ? e2.loginName + "~~" + o2.subCompanyCode : e2.loginName + "~~" + o2.tenantCode), this.model.admin = t2, this.formModel.adminName = e2.name;
1858
- }
1859
- this.isSelectAdmin = false;
1860
- }, listAllForms(e2, t2) {
1861
- this.$http.get(this.baseAPI + `/wf-editor/workflow-editors/forms?systemCode=${e2}&publishVersion=${t2}`).then((e3) => {
1862
- const t3 = this.model.formCode + "/" + this.model.formVersion;
1863
- this.setDefaultSelectedFormWhenUpdate(e3, t3), this.allForms = e3;
1864
- });
1865
- }, setDefaultSelectedFormWhenUpdate(e2, t2) {
1866
- let o2, l2;
1867
- for (var r2 = 0; r2 < e2.length; r2++) {
1868
- const i2 = e2[r2].value, n2 = e2[r2].children.filter(this.filterForm(t2));
1869
- if (n2.length > 0) {
1870
- l2 = i2, o2 = n2[0];
1871
- break;
1872
- }
1873
- }
1874
- if (o2) {
1875
- const e3 = [];
1876
- e3.push(l2 + ""), e3.push(l2 + "/" + t2), this.selectedForm = e3;
1877
- }
1878
- }, filterForm: (e2) => (t2) => {
1879
- const o2 = t2.value;
1880
- return o2.substring(o2.indexOf("/") + 1) === e2;
1881
- }, listAllProcessTypes() {
1882
- this.$http.get(this.baseAPI + "/api/workflow-types/all").then((e2) => {
1883
- this.allProcessTypes = e2;
1884
- });
1885
- }, listAllSystems() {
1886
- this.$http.get(this.baseAPI + "/api/all-enabled-systems").then((e2) => {
1887
- this.allSystems = e2;
1888
- });
1889
- }, listAllBranches() {
1890
- this.$http.get(this.baseAPI + "/api/branches/all").then((e2) => {
1891
- this.allBranches = e2;
1892
- });
1893
- }, getAdminNameWhenUpdate() {
1894
- this.model.admin && "" !== this.model.admin && this.$http.get(this.baseAPI + "/wf-editor/workflow-editors/admin-name-info?loginNameInfo=" + this.model.admin).then((e2) => {
1895
- this.formModel.adminName = e2;
1896
- });
1897
- }, setI18nValue(e2) {
1898
- this.model.i18nKey = e2;
1899
- }, changeSystem(e2, t2) {
1900
- this.systemPublishVersion = t2, this.allForms = [], e2 && this.$http.get(this.baseAPI + "/wf-editor/systems/getPublishVersionsByCode/" + e2).then((e3) => {
1901
- this.systems = e3 || [];
1902
- });
1903
- }, changeVersion() {
1904
- this.listAllForms(this.model.systemCode, this.systemPublishVersion);
1905
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
1906
- 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");
1907
- 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"]);
1908
- }]]);
1909
- const Tl = $({ name: "PermissionSettings", components: { UserSelection: jo }, props: { modelValue: { type: Object, default: null } }, data: () => ({ showNotice: false }) }, [["render", function(e2, t2, o2, l2, i2, n2) {
1910
- const a2 = r.resolveComponent("user-selection"), s2 = r.resolveComponent("el-form");
1911
- 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"]);
1912
- }]]), Nl = { props: { pageFormCode: { type: String, default: null } }, data: () => ({ baseURL: "", listURL: "", selection: [], dialogVisible: true }), computed: { ...t.mapGetters("wfEditor", ["systemVersion"]) }, watch: { conditionList: { handler(e2, t2) {
1913
- this.judgeHeavyData = e2;
1914
- } } }, created() {
1915
- 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")));
1916
- }, methods: { savePage() {
1917
- if (this.selection && this.selection.length > 0)
1918
- if (1 !== this.selection.length)
1919
- this.$message({ showClose: true, type: "error", message: this.$t("message.pleaseSelectARecord") });
1920
- else {
1921
- const e2 = "page:" + this.selection[0].code;
1922
- this.$emit("setPage", e2);
1923
- }
1924
- else
1925
- this.$emit("setPage", "");
1926
- }, select(e2, t2) {
1927
- this.selection = e2;
1928
- } } }, xl = { style: { "overflow-y": "auto", "max-height": "500px" } }, El = { class: "operation-area" };
1929
- const Sl = $({ name: "ParameterSettings", components: { selectPage: $(Nl, [["render", function(e2, t2, o2, l2, i2, n2) {
1930
- const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("super-grid"), d2 = r.resolveComponent("el-dialog");
1931
- 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", xl, [r.createElementVNode("div", El, [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"]);
1932
- }]]) }, props: { model: { type: Object, default: null } }, data: () => ({ selectPageFlag: false, pageFormCode: null }), computed: { ...t.mapGetters("wfEditor", ["formCode", "pageCode"]) }, created() {
1933
- this.pageCode && (this.model.doTask.url = "page:" + this.pageCode);
1934
- }, methods: { openSelectPage() {
1935
- this.formCode && (this.pageFormCode = this.formCode), this.selectPageFlag = true;
1936
- }, setPage(e2) {
1937
- this.model.doTask.url = e2, this.selectPageFlag = false;
1938
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
1939
- 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");
1940
- 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"]);
1941
- }]]);
1942
- const Ml = $({ name: "Events", props: { modelValue: { type: Object, default: null } }, data() {
1943
- const e2 = [], t2 = this.modelValue.event;
1944
- if (void 0 !== t2 && t2.length && t2.length > 0) {
1945
- let o2 = [];
1946
- o2 = "string" == typeof t2 ? t2.split(",") : this.modelValue.event, o2.map(function(t3) {
1947
- e2.push(t3);
1948
- });
1949
- }
1950
- return { events: [{ name: "START_INSTANCE", label: w().t("workflowEditor.process.initiationProcess") }, { name: "DELETE_INSTANCE", label: w().t("workflowEditor.process.deleteProcess") }, { name: "CANCEL_INSTANCE", label: w().t("workflowEditor.process.cancelProcess") }, { name: "END_INSTANCE", label: w().t("workflowEditor.process.endProcess") }, { name: "STOP_INSTANCE", label: w().t("workflowEditor.process.pauseProcess") }, { name: "RESUME_INSTANCE", label: w().t("workflowEditor.process.continueTheProcess") }, { name: "JUMP_TACHE", label: w().t("workflowEditor.process.jumpLink") }, { name: "CHANGE_TRANSACTOR", label: w().t("workflowEditor.process.modificationHandler") }, { name: "ADD_TRANSACTOR", label: w().t("workflowEditor.process.addHandler") }, { name: "REMOVE_TRANSACTOR", label: w().t("workflowEditor.process.decreaseOofHandler") }, { name: "ASSIGN_TASK", label: w().t("workflowEditor.process.appointedTask") }, { name: "RETURN_TASK", label: w().t("workflowEditor.process.returnTask") }, { name: "WITHDRAW_TASK", label: w().t("workflowEditor.process.retrieveTask") }, { name: "TRUST_TASK", label: w().t("workflowEditor.process.trustTask") }], selectedEvents: e2 };
1951
- }, watch: { selectedEvents(e2) {
1952
- this.$emit("update:modelValue", { event: this.selectedEvents });
1953
- } }, methods: {} }, [["render", function(e2, t2, o2, l2, i2, n2) {
1954
- 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");
1955
- 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"]);
1956
- }]]), Dl = { key: 0 };
1957
- const $l = $({ name: "Notice", components: { UserSelection: jo, CommonNoticeTool: il, SelectMailTemplates: Jt }, props: { modelValue: { type: [Object, String], default: null }, switchLabel: { type: String, default: "" } }, data() {
1958
- let e2 = false, t2 = { informType: "", userCondition: "", subject: null, content: null };
1959
- 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" } };
1960
- }, watch: { showNotice(e2) {
1961
- this.getValue();
1962
- } }, created() {
1963
- this.$watch("model", function(e2, t2) {
1964
- this.getValue();
1965
- }, { deep: true });
1966
- }, methods: { getValue() {
1967
- const e2 = this.model;
1968
- this.$emit("update:modelValue", e2);
1969
- }, setMailTemplateCode(e2) {
1970
- this.model.mailTemplateCode = e2;
1971
- }, setMailPointTemplateCode(e2) {
1972
- this.model.mailPointTemplateCode = e2;
1973
- }, setCustomMsg(e2) {
1974
- this.model.customMsg = e2;
1975
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
1976
- 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");
1977
- 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", Dl, [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"]);
1978
- }]]);
1979
- const Fl = $({ name: "ProcessPropertiesEditor", components: { BasicProperties: vl, PermissionSettings: Tl, ParameterSettings: Sl, Events: Ml, Variables: ol, NoticeSettings: $({ name: "NoticeSettings", components: { Notice: $l, SelectMailTemplates: Jt }, props: { modelValue: { type: [Object, String], default: null } }, data() {
1980
- let e2 = { informType: "", userCondition: "", subject: null, content: null, defaultMailTemplateCode: "" };
1981
- return null !== this.modelValue && void 0 !== this.modelValue && "" !== this.modelValue && (e2 = this.modelValue), { showMailTemplateFlag: false, model: e2 };
1982
- }, created() {
1983
- this.$watch("model", function(e2, t2) {
1984
- this.getValue();
1985
- }, { deep: true });
1986
- }, methods: { getValue() {
1987
- const e2 = this.model;
1988
- this.$emit("update:modelValue", e2);
1989
- }, setMailTemplateCode(e2) {
1990
- this.model.defaultMailTemplateCode = e2;
1991
- }, setMailPointTemplateCode(e2) {
1992
- this.model.defaultMailPointTemplateCode = e2;
1993
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
1994
- const a2 = r.resolveComponent("notice"), s2 = r.resolveComponent("select-mail-templates"), d2 = r.resolveComponent("el-form-item"), c2 = r.resolveComponent("el-form");
1995
- 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);
1996
- }]]), NoticeReminder: Cl }, props: { model: { type: Object, default: null } }, data() {
1997
- return void 0 === this.model.properties.taskNotice && (this.model.properties.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
1998
- }, computed: { basicProperties() {
1999
- return this.model.properties.basicProperties;
2000
- }, accessRight() {
2001
- return this.model.properties.accessRight;
2002
- }, reminder() {
2003
- return this.model.properties.reminder;
2004
- }, parameterSettings() {
2005
- return this.model.properties.parameterSettings;
2006
- }, events() {
2007
- return this.model.properties.events;
2008
- }, variables() {
2009
- return this.model.properties.variables;
2010
- } }, methods: { toXml() {
2011
- n.js2xml({ basicProperties: this.basicProperties }, { compact: true, ignoreComment: true, spaces: 4 });
2012
- }, handleClick(e2, t2) {
2013
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2014
- 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");
2015
- 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"]);
2016
- }]]);
2017
- const Pl = $({ name: "DecisionPropertiesEditor", components: { i18nInput: zt }, props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
2018
- return this.model.ref;
2019
- }, transitions() {
2020
- const e2 = T(this.formModel.attr.id), t2 = [];
2021
- return e2.map((e3) => {
2022
- t2.push({ to: e3.ref.attr.to, condition: e3.ref.basicProperties.condition });
2023
- }), t2;
2024
- } }, mounted() {
2025
- this.$watch("model.ref.attr.name", function(e2) {
2026
- this.model.name = e2;
2027
- });
2028
- }, methods: { setI18nValue(e2) {
2029
- this.formModel && (this.formModel.basicProperties = {}, this.formModel.basicProperties.i18nKey = e2);
2030
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2031
- 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");
2032
- 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"]);
2033
- }]]);
2034
- const Bl = $({ name: "TransitionPropertiesEditor", components: { Notice: $l, AutoFilledFields: el, BasicProperties: $({ name: "BasicProperties", components: { AdditionalCondition: It, i18nInput: zt }, props: { model: { type: Object, default: null }, sourceTacheType: { type: String, default: null }, id: { type: String, default: null } }, created() {
2035
- }, methods: { setI18nValue(e2) {
2036
- this.model.i18nKey = e2;
2037
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2038
- 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");
2039
- 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 });
2040
- }]]) }, props: { model: { type: Object, default: null } }, data: () => ({ activeTab: "basicProperties", dialogVisible: true }), mounted() {
2041
- this.$watch("model.ref.basicProperties.remark", function(e2) {
2042
- this.model.remark = e2;
2043
- });
2044
- } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2045
- 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");
2046
- 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"]);
2047
- }], ["__scopeId", "data-v-0e44fe8c"]]);
2048
- const Ol = $({ name: "ForkPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
2049
- return this.model.ref;
2050
- }, transitions() {
2051
- const e2 = T(this.formModel.attr.id), t2 = [];
2052
- return e2.map((e3) => {
2053
- t2.push({ to: e3.endJoint.parent.name });
2054
- }), t2;
2055
- } }, mounted() {
2056
- this.$watch("model.ref.attr.name", function(e2) {
2057
- this.model.name = e2;
2058
- });
2059
- } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2060
- 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");
2061
- 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"]);
2062
- }]]);
2063
- const Il = $({ name: "ForkPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
2064
- return this.model.ref;
2065
- } }, mounted() {
2066
- this.$watch("model.ref.attr.name", function(e2) {
2067
- this.model.name = e2;
2068
- });
2069
- } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2070
- const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form"), c2 = r.resolveComponent("el-dialog");
2071
- 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"]);
2072
- }]]);
2073
- const _l = $({ name: "HumanDecisionPropertiesEditor", props: { model: { type: Object, default: null } }, data: () => ({ dialogVisible: true }), computed: { formModel() {
2074
- return this.model.ref;
2075
- } }, mounted() {
2076
- this.$watch("model.ref.attr.name", function(e2) {
2077
- this.model.name = e2;
2078
- });
2079
- } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2080
- const a2 = r.resolveComponent("el-input"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form"), c2 = r.resolveComponent("el-dialog");
2081
- 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"]);
2082
- }]]);
2083
- const Rl = $({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: $({ name: "BasicProperties", components: { TaskTitle: gt, i18nInput: zt }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
2084
- return { formModel: { name: this.name, id: this.id, tache: this.model } };
2085
- }, computed: { tache() {
2086
- return this.model;
2087
- } }, mounted() {
2088
- this.$watch("formModel.name", function(e2, t2) {
2089
- this.$emit("update:name", e2);
2090
- });
2091
- }, methods: { validateId() {
2092
- S(this);
2093
- }, setI18nValue(e2) {
2094
- this.tache.i18nKey = e2;
2095
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2096
- 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");
2097
- 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"]);
2098
- }], ["__scopeId", "data-v-c1c7385b"]]), TransactorSettings: Yo, PermissionSettings: $({ name: "PermissionSettings", components: { AdditionalCondition: It }, props: { modelValue: { type: Object, default: null } }, data() {
2099
- const e2 = x(this.modelValue), t2 = ["viewOpinion", "viewMeetingResult", "viewVoteResult", "viewFlowHistory", "printForm"];
2100
- t2.forEach((t3) => {
2101
- e2[t3 + "Checkbox"] = !!this.modelValue[t3].condition;
2102
- });
2103
- const o2 = ["download"];
2104
- return o2.forEach((t3) => {
2105
- e2.attachment[name + "Checkbox"] = !!this.modelValue.attachment[name] && !!this.modelValue.attachment[name].condition, e2.attachment.permission || (e2.attachment[name] = { permission: false, condition: "" });
2106
- }), { formModel: e2, attrNames: t2, attachmentAttrNames: o2 };
2107
- }, mounted() {
2108
- this.$watch("formModel", function(e2) {
2109
- const t2 = { viewOpinion: {}, viewMeetingResult: {}, viewVoteResult: {}, viewFlowHistory: {}, printForm: {}, officialText: {}, attachment: {} };
2110
- this.attrNames.map((o2) => {
2111
- t2[o2].permission = e2[o2].permission, e2[o2].permission && e2[o2 + "Checkbox"] ? t2[o2].condition = e2[o2].condition : t2[o2].condition = "";
2112
- }), t2.attachment.permission = e2.attachment.permission, e2.attachment.permission && this.attachmentAttrNames.map((o2) => {
2113
- 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 = "";
2114
- }), this.$emit("update:modelValue", t2);
2115
- }, { deep: true });
2116
- }, methods: {} }, [["render", function(e2, t2, o2, l2, i2, n2) {
2117
- 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");
2118
- 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"]);
2119
- }], ["__scopeId", "data-v-5fb29fef"]]), NoticeReminder: Cl, Events: rl }, props: { model: { type: Object, default: null } }, data() {
2120
- return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
2121
- }, computed: { formModel() {
2122
- return this.model.ref;
2123
- } }, mounted() {
2124
- this.$watch("model.ref.attr.id", function(e2, t2) {
2125
- this.model.id = e2;
2126
- }), this.$watch("model.ref.attr.name", function(e2, t2) {
2127
- this.model.name = e2;
2128
- });
2129
- }, methods: { handleClick(e2, t2) {
2130
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2131
- 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");
2132
- 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"]);
2133
- }], ["__scopeId", "data-v-af76d417"]]);
2134
- const Al = $({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: $({ name: "BasicProperties", components: { TaskTitle: gt, i18nInput: zt }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
2135
- return { formModel: { name: this.name, id: this.id, tache: this.model } };
2136
- }, computed: { tache() {
2137
- return this.model;
2138
- } }, mounted() {
2139
- this.$watch("formModel.name", function(e2, t2) {
2140
- this.$emit("update:name", e2);
2141
- });
2142
- }, methods: { validateId() {
2143
- S(this);
2144
- }, setI18nValue(e2) {
2145
- this.tache.i18nKey = e2;
2146
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2147
- 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");
2148
- 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"]);
2149
- }], ["__scopeId", "data-v-6aef99ff"]]) }, props: { model: { type: Object, default: null } }, data() {
2150
- return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
2151
- }, computed: { formModel() {
2152
- return this.model.ref;
2153
- } }, mounted() {
2154
- this.$watch("model.ref.attr.id", function(e2, t2) {
2155
- this.model.id = e2;
2156
- }), this.$watch("model.ref.attr.name", function(e2, t2) {
2157
- this.model.name = e2;
2158
- });
2159
- }, methods: { handleClick(e2, t2) {
2160
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2161
- const a2 = r.resolveComponent("basic-properties"), s2 = r.resolveComponent("el-tab-pane"), d2 = r.resolveComponent("el-tabs"), c2 = r.resolveComponent("el-dialog");
2162
- 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"]);
2163
- }], ["__scopeId", "data-v-adb7c2ff"]]), Ul = { name: "FieldMappings", components: { FormFields: pt }, 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() {
2164
- let e2 = [];
2165
- 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 };
2166
- }, computed: { formFields() {
2167
- return this.showSourceFields ? this.srcFields : this.showTargetFields ? this.targetFields : [];
2168
- } }, watch: {}, mounted() {
2169
- this.tableData.length > 0 && this.setCurrentRow(this.tableData[0]), this.$watch("tableData", function() {
2170
- const e2 = this.tableData.filter((e3) => "" !== e3.source && "" !== e3.target);
2171
- this.$emit("update:modelValue", { field: e2 });
2172
- }, { deep: true });
2173
- }, methods: { getSubFormFieldLabel(e2) {
2174
- const t2 = (this.srcFields || this.targetFields).filter((t3) => t3.name === e2);
2175
- return t2.length > 0 ? t2[0].label : e2;
2176
- }, showSourceFieldLabel(e2) {
2177
- return this.srcFields ? this.getSubFormFieldLabel(e2) : ht(e2);
2178
- }, showTargetFieldLabel(e2) {
2179
- return this.targetFields ? this.getSubFormFieldLabel(e2) : ht(e2);
2180
- }, add() {
2181
- for (let e3 = 0; e3 < this.tableData.length; e3++)
2182
- if ("" === this.tableData[e3].source || "" === this.tableData[e3].target)
2183
- return void this.$alert(this.$t("workflowEditorMessage.dataInLineCannotBeEmpty", { row: e3 + 1, data1: this.srcLabel, data2: this.targetLabel }));
2184
- const e2 = { source: "", target: "" };
2185
- this.tableData.push(e2), this.setCurrentRow(e2);
2186
- }, remove() {
2187
- if (null === this.currentRow)
2188
- return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
2189
- let e2;
2190
- for (let t2 = 0; t2 < this.tableData.length; t2++)
2191
- if (this.tableData[t2].source === this.currentRow.source) {
2192
- e2 = t2;
2193
- break;
2194
- }
2195
- this.tableData.splice(e2, 1), e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.setCurrentRow(this.tableData[e2]);
2196
- }, setCurrentRow(e2) {
2197
- this.$refs.table.setCurrentRow(e2);
2198
- }, handleCurrentChange(e2) {
2199
- this.currentRow = e2;
2200
- }, checkSource(e2) {
2201
- "" === e2 && this.$alert(this.$t("workflowEditorMessage.dataCannotBeEmpty", { data: this.srcLabel }));
2202
- }, checkTarget(e2) {
2203
- "" === e2 && this.$alert(this.$t("workflowEditorMessage.dataCannotBeEmpty", { data: this.targetLabel }));
2204
- }, selectField(e2) {
2205
- this.showSourceFields && (this.currentRow.source = e2, this.showSourceFields = false), this.showTargetFields && (this.currentRow.target = e2, this.showTargetFields = false), this.tableData, this.srcFields, this.targetFields;
2206
- } } }, Ll = { style: { width: "100%" } }, Hl = { key: 0, style: { "margin-right": "12px" } };
2207
- const Wl = $({ name: "BasicProperties", components: { FieldMappings: $(Ul, [["render", function(e2, t2, o2, l2, i2, n2) {
2208
- 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");
2209
- return r.openBlock(), r.createElementBlock("div", Ll, [r.createVNode(s2, { style: { "align-items": "center" } }, { default: r.withCtx(() => [o2.labelTittle ? (r.openBlock(), r.createElementBlock("span", Hl, 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)]);
2210
- }]]), i18nInput: zt, TaskTitle: gt }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
2211
- return { selectedProcess: [], processes: [], subprocessFormFields: [], formModel: { name: this.name, id: this.id, tache: this.model } };
2212
- }, computed: { tache() {
2213
- return this.model;
2214
- } }, created() {
2215
- this.listAllProcesses().then(() => {
2216
- this.fetchSubprocessFormFields();
2217
- }), "" === this.formModel.tache.parameters && (this.formModel.tache.parameters = {}), "" === this.formModel.tache.result && (this.formModel.tache.result = {});
2218
- }, mounted() {
2219
- this.$watch("formModel.name", function(e2, t2) {
2220
- this.$emit("update:name", e2);
2221
- });
2222
- }, methods: { fetchSubprocessFormFields() {
2223
- this.model.processCode && yl.fetchSubprocessFormFields(this.model.processCode, this.model.processVersion).then((e2) => {
2224
- this.subprocessFormFields = e2;
2225
- });
2226
- }, handleChange(e2) {
2227
- const t2 = e2[1];
2228
- this.model.processCode = t2.substring(t2.indexOf("/") + 1, t2.lastIndexOf("/")), this.model.processVersion = t2.substring(t2.lastIndexOf("/") + 1), this.fetchSubprocessFormFields();
2229
- }, listAllProcesses() {
2230
- return new Promise((e2, t2) => {
2231
- this.$http.get(this.baseAPI + "/wf-editor/workflow-editors/all-active-definitions").then((t3) => {
2232
- if (t3.length > 0) {
2233
- const o2 = this.model.processCode + "/" + this.model.processVersion;
2234
- this.setDefaultSelectedProcessWhenUpdate(t3, o2), this.processes = t3, e2();
2235
- }
2236
- }).catch((e3) => {
2237
- t2(e3);
2238
- });
2239
- });
2240
- }, setDefaultSelectedProcessWhenUpdate(e2, t2) {
2241
- let o2, l2;
2242
- for (var r2 = 0; r2 < e2.length; r2++) {
2243
- const i2 = e2[r2].value, n2 = e2[r2].children.filter(this.filterProcess(t2));
2244
- if (n2.length > 0) {
2245
- l2 = i2, o2 = n2[0];
2246
- break;
2247
- }
2248
- }
2249
- if (o2) {
2250
- const e3 = [];
2251
- e3.push(l2), e3.push(o2.value), this.selectedProcess = e3;
2252
- }
2253
- }, filterProcess: (e2) => (t2) => {
2254
- const o2 = t2.value, l2 = o2.substring(o2.indexOf("/") + 1);
2255
- return e2 === l2;
2256
- }, validateId() {
2257
- S(this);
2258
- }, setI18nValue(e2) {
2259
- this.formModel.tache.i18nKey = e2;
2260
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2261
- 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");
2262
- 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"]);
2263
- }]]);
2264
- const zl = $({ name: "Events", props: { modelValue: { type: Object, default: null } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2265
- const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-form-item"), d2 = r.resolveComponent("el-form");
2266
- 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 });
2267
- }]]);
2268
- const jl = $({ name: "SubprocessPropertiesEditor", components: { BasicProperties: Wl, SubprocessTransactorSettings: $({ name: "SubprocessTransactorSettings", components: { TransactorSettings: Yo }, props: { modelValue: { type: Object, default: null } }, data() {
2269
- let e2 = false;
2270
- this.modelValue.userCondition && (e2 = true);
2271
- let t2 = x(this.modelValue);
2272
- return t2.userCondition || (t2 = { userCondition: "${instanceCreator}", additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }), { model: { showTransactorSettings: e2, transactorSettings: t2 } };
2273
- }, mounted() {
2274
- this.$watch("model", function(e2) {
2275
- e2.showTransactorSettings ? this.$emit("update:modelValue", e2.transactorSettings) : this.$emit("update:modelValue", {});
2276
- }, { deep: true });
2277
- } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2278
- const a2 = r.resolveComponent("el-switch"), s2 = r.resolveComponent("el-row"), d2 = r.resolveComponent("transactor-settings", true);
2279
- 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)]);
2280
- }]]), Events: zl }, props: { model: { type: Object, default: null } }, data: () => ({ activeTab: "basicProperties", dialogVisible: true }), computed: { formModel() {
2281
- return this.model.ref;
2282
- } }, mounted() {
2283
- this.$watch("model.ref.attr.id", function(e2, t2) {
2284
- this.model.id = e2;
2285
- }), this.$watch("model.ref.attr.name", function(e2, t2) {
2286
- this.model.name = e2;
2287
- });
2288
- }, methods: { handleClick(e2, t2) {
2289
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2290
- 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");
2291
- 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"]);
2292
- }], ["__scopeId", "data-v-bd66d235"]]), Jl = { class: "tooltip" }, Gl = ["innerHTML"];
2293
- const ql = $({ name: "TacheHistoryTooltip", props: { content: { type: String, default: "" } }, methods: {} }, [["render", function(e2, t2, o2, l2, i2, n2) {
2294
- return r.openBlock(), r.createElementBlock("div", Jl, [r.createElementVNode("div", { innerHTML: o2.content }, null, 8, Gl)]);
2295
- }], ["__scopeId", "data-v-ac799913"]]), Kl = { name: "Canvas", components: { Start: J, End: X, HumanTask: le, Decision: se, Subprocess: ue, CustomTask: we, Fork: Ve, Join: xe, HumanDecision: $e, CopyTask: Oe, Transition: ot, VirtualTransition: it, SelectionRegion: st, HumanTaskPropertiesEditor: kl, ProcessPropertiesEditor: Fl, DecisionPropertiesEditor: Pl, TransitionPropertiesEditor: Bl, ForkPropertiesEditor: Ol, JoinPropertiesEditor: Il, HumanDecisionPropertiesEditor: _l, CopyTaskPropertiesEditor: Rl, SubprocessPropertiesEditor: jl, TacheHistoryTooltip: ql, AutoTask: Ae, AutoTaskPropertiesEditor: Al }, props: { process: { type: Object, default: null }, showHistory: { type: Boolean, default: false } }, data: function() {
2296
- return { inputArea: null, currentPosition: null, originPosition: null, offset: null, startPoint: null, region: null, endPoint: null, transitionsInRegion: [], showTacheHistory: false, tooltipPosition: null };
2297
- }, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "isMovingTache", "mouseDownPosition", "startJoint", "endJoint", "isDrawingRegion", "isMovingRegion", "selectedTransition", "selectedTaches", "resizerToMove", "draggerToMove", "controlPointToMove", "propertiesEditorFor", "contextMenuVisible"]) }, watch: { propertiesEditorFor(e2, t2) {
2298
- } }, mounted: function() {
2299
- }, methods: { ...t.mapMutations("wfEditor", ["setTaches", "setTransitions", "resetState", "setMovingTache", "stopDrawingLine", "setSelectedTaches", "setDrawingRegion", "setResizerToMove", "setDraggerToMove", "setControlPointToMove", "setPropertiesEditorFor"]), forbidSelection: () => false, add: function() {
2300
- }, mousedown(e2) {
2301
- this.unselectAll(), this.setDrawingRegion(true), this.startPoint = k(e2);
2302
- }, mousemove(e2) {
2303
- this.showHistory || (!this.originPosition && this.mouseDownPosition && (this.originPosition = this.mouseDownPosition), this.currentPosition = k(e2), this.isMovingTache && this.moveTache(this.selectedTaches[0]), this.drawVirtualSelectionRegion(), this.moveSelectionRegion(), this.resizeSelectedTache(), this.moveTransition(), this.adjustCurveLine(), this.originPosition = this.currentPosition);
2304
- }, mouseup(e2) {
2305
- this.isMovingTache && this.setMovingTache(false), this.startJoint && this.stopDrawingLine(), this.drawRegionWhenNeeded(), this.resizerToMove && this.setResizerToMove(null), this.resetMovedTransition();
2306
- }, mouseleave(e2) {
2307
- this.drawRegionWhenNeeded(), this.resetMovedTransition(), this.resetState();
2308
- }, drawRegionWhenNeeded() {
2309
- this.isDrawingRegion && (this.selectComponents(), this.drawRealSelectionRegion(), this.setDrawingRegion(false));
2310
- }, resetMovedTransition() {
2311
- this.draggerToMove && (this.draggerToMove.owner.startJoint = this.draggerToMove.originStartJoint, this.draggerToMove.owner.endJoint = this.draggerToMove.originEndJoint, this.setDraggerToMove(null));
2312
- }, unselectAll() {
2313
- b(), this.transitionsInRegion = [], this.startPoint = null, this.region = null;
2314
- }, selectComponents() {
2315
- if (!this.startPoint || !this.region)
2316
- return this.startPoint = null, void (this.region = null);
2317
- for (const e2 of this.taches)
2318
- this.isInsideSelectionRegion(e2) && (e2.isSelected = true, this.selectedTaches.push(e2));
2319
- for (const e2 of this.transitions)
2320
- e2.startJoint.parent.isSelected && e2.endJoint.parent.isSelected && this.transitionsInRegion.push(e2);
2321
- }, isInsideSelectionRegion(e2) {
2322
- const t2 = e2.x >= this.region.x && e2.y >= this.region.y, o2 = e2.x + e2.width <= this.region.x + this.region.width && e2.y + e2.height <= this.region.y + this.region.height;
2323
- return t2 && o2;
2324
- }, moveTache(e2) {
2325
- const t2 = this.currentPosition.x - this.originPosition.x, o2 = this.currentPosition.y - this.originPosition.y;
2326
- e2.x += t2, e2.y += o2, e2.x < 0 && (e2.x = 2), e2.y < 0 && (e2.y = 2);
2327
- }, drawVirtualSelectionRegion() {
2328
- this.isDrawingRegion && this.startPoint && (this.region = function(e2, t2) {
2329
- if (!e2 || !t2)
2330
- return {};
2331
- const { x: o2, y: l2 } = e2, { x: r2, y: i2 } = t2;
2332
- var n2 = { x: 0, y: 0, width: Math.abs(r2 - o2), height: Math.abs(i2 - l2) };
2333
- 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;
2334
- }(this.startPoint, this.currentPosition));
2335
- }, drawRealSelectionRegion() {
2336
- if (this.selectedTaches.length <= 1)
2337
- return this.startPoint = null, void (this.region = null);
2338
- this.region = function(e2) {
2339
- let t2, o2, l2, r2;
2340
- t2 = o2 = 1e4, l2 = r2 = 0;
2341
- for (const i2 of e2)
2342
- 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);
2343
- return { x: t2 - 10, y: o2 - 10, width: l2 - t2 + 20, height: r2 - o2 + 20 };
2344
- }(this.selectedTaches);
2345
- }, moveSelectionRegion() {
2346
- if (!this.isMovingRegion)
2347
- return;
2348
- let e2 = this.currentPosition.x - this.originPosition.x, t2 = this.currentPosition.y - this.originPosition.y;
2349
- this.region.x + e2 < 0 && (e2 = 2 - this.region.x), this.region.y + t2 < 0 && (t2 = 2 - this.region.y), this.region.x = this.region.x + e2, this.region.y = this.region.y + t2, this.moveTachesInRegion(e2, t2), this.moveTransitionControlPoints(e2, t2);
2350
- }, moveTachesInRegion(e2, t2) {
2351
- for (const o2 of this.selectedTaches)
2352
- o2.x += e2, o2.y += t2;
2353
- }, moveTransitionControlPoints(e2, t2) {
2354
- for (const o2 of this.transitionsInRegion)
2355
- "CurveLine" === o2.lineInfo.type ? (o2.lineInfo.controlPoint.x += e2, o2.lineInfo.controlPoint.y += t2) : "BrokenLine" === o2.lineInfo.type && o2.lineInfo.controlPoint.forEach((o3) => {
2356
- o3.x += e2, o3.y += t2;
2357
- });
2358
- }, resizeSelectedTache() {
2359
- if (!this.resizerToMove)
2360
- return;
2361
- let e2 = this.currentPosition.x - this.originPosition.x, t2 = this.currentPosition.y - this.originPosition.y;
2362
- const o2 = this.resizerToMove.owner;
2363
- switch (this.resizerToMove.position) {
2364
- case "NW":
2365
- o2.width - e2 < 80 && (e2 = o2.width - 80), o2.height - t2 < 40 && (t2 = o2.height - 40), o2.width -= e2, o2.height -= t2, o2.x += e2, o2.y += t2;
2366
- break;
2367
- case "NE":
2368
- o2.width + e2 < 80 && (e2 = 80 - o2.width), o2.height - t2 < 40 && (t2 = o2.height - 40), o2.width += e2, o2.height -= t2, o2.y += t2;
2369
- break;
2370
- case "SW":
2371
- o2.width - e2 < 80 && (e2 = o2.width - 80), o2.height + t2 < 40 && (t2 = 40 - o2.height), o2.width -= e2, o2.height += t2, o2.x += e2;
2372
- break;
2373
- case "SE":
2374
- o2.width + e2 < 80 && (e2 = 80 - o2.width), o2.height + t2 < 40 && (t2 = 40 - o2.height), o2.width += e2, o2.height += t2;
2375
- }
2376
- }, moveTransition() {
2377
- if (!this.draggerToMove)
2378
- return;
2379
- const e2 = this.draggerToMove.owner, t2 = this.draggerToMove.position, o2 = { parent: this.currentPosition, position: "" };
2380
- "start" === t2 ? e2.startJoint = o2 : e2.endJoint = o2;
2381
- }, adjustCurveLine() {
2382
- if (!this.controlPointToMove)
2383
- return;
2384
- const e2 = this.controlPointToMove.owner;
2385
- if (e2.lineInfo && "CurveLine" === e2.lineInfo.type)
2386
- e2.lineInfo.controlPoint = this.currentPosition;
2387
- else if (e2.lineInfo && "BrokenLine" === e2.lineInfo.type) {
2388
- const t2 = this.controlPointToMove.pointIndex;
2389
- e2.lineInfo.controlPoint[t2] = this.currentPosition;
2390
- }
2391
- }, endDrag(e2) {
2392
- }, showTacheHistoryTooltip(e2) {
2393
- this.showTacheHistory = true;
2394
- }, hideTacheHistoryTooltip() {
2395
- this.showTacheHistory = false;
2396
- }, updateTacheHistoryTooltipPosition(e2) {
2397
- const t2 = k(e2);
2398
- this.tooltipPosition = { left: t2.x + "px", top: t2.y + "px" };
2399
- } } }, Xl = { ref: "svgContainer", style: { position: "relative" } }, Yl = 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);
2400
- const Ql = $(Kl, [["render", function(e2, t2, o2, l2, i2, n2) {
2401
- const a2 = r.resolveComponent("virtual-transition"), s2 = r.resolveComponent("selection-region"), d2 = r.resolveComponent("tache-history-tooltip");
2402
- return r.openBlock(), r.createElementBlock("div", Xl, [(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")) }, [Yl, (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);
2403
- }]]), Zl = { name: "ContextMenu", components: { IconSvg: B }, data() {
2404
- 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"] };
2405
- }, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "selectedTransition", "selectedTaches"]), menuType() {
2406
- let e2 = "";
2407
- return this.selectedTransition ? e2 = "Transition" : 1 === this.selectedTaches.length && (e2 = "Tache"), null === this.selectedTransition && 0 === this.selectedTaches.length && (e2 = "Process"), e2;
2408
- }, menus() {
2409
- return this.menuType ? this["menusFor" + this.menuType] : [];
2410
- } }, created() {
2411
- if (this.selectedTaches.length > 0) {
2412
- const e2 = this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type;
2413
- this.menuType && "Tache" === this.menuType && e2 && this.menusForTache.push({ name: "copy", label: this.$t("workflowEditor.common.copy"), icon: "fuzhi" });
2414
- }
2415
- }, methods: { ...t.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible", "setSourceComponentForCopy"]), switchLineType(e2) {
2416
- this.selectedTransition.lineInfo.controlPoint = null, this.selectedTransition.lineInfo.type = e2;
2417
- }, execute(e2) {
2418
- if (e2.indexOf("switch-line-type-") >= 0) {
2419
- const t2 = e2.substring(e2.lastIndexOf("-") + 1);
2420
- this.switchLineType(t2);
2421
- }
2422
- "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);
2423
- } } }, er = { class: "context-menu" }, tr = ["onMousedown"];
2424
- const or = { name: "WorkflowEditor", components: { WorkflowCanvas: Ql, Toolbox: _, IconSvg: B, ContextMenu: $(Zl, [["render", function(e2, t2, o2, l2, i2, n2) {
2425
- const a2 = r.resolveComponent("icon-svg");
2426
- return r.openBlock(), r.createElementBlock("ul", er, [(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, tr))), 128))]);
2427
- }], ["__scopeId", "data-v-7e8a1cf6"]]), AdminSaveDialog: $({ name: "AdminSaveDialog", data: () => ({ dialogVisible: true }), methods: { updateWfVersion() {
2428
- this.$emit("update");
2429
- }, addWfVersion() {
2430
- this.$emit("add");
2431
- } } }, [["render", function(e2, t2, o2, l2, i2, n2) {
2432
- const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-dialog");
2433
- 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"]);
2434
- }]]) }, 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() {
2435
- 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 };
2436
- }, computed: { ...t.mapGetters("wfEditor", ["componentToDraw", "taches", "selectedTaches", "transitions", "contextMenuVisible", "systemVersion", "tableCode", "pageCode", "sourceComponentType"]), ...t.mapGetters(["sidebar"]), componentInfo() {
2437
- return function(e2) {
2438
- const t2 = g().filter((t3) => t3.name === e2);
2439
- return t2.length > 0 ? t2[0] : null;
2440
- }(this.componentToDraw);
2441
- } }, watch: { activeTab(e2) {
2442
- "xml" === e2 && (this.xml = this.getProcessXml(), this.$nextTick(function() {
2443
- s.highlightElement(this.$refs.xml);
2444
- }));
2445
- }, sourceComponentType(e2) {
2446
- e2 && this.copyTache();
2447
- } }, created: function() {
2448
- 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 = D.newProcess(), v(this.process));
2449
- }, mounted: function() {
2450
- }, methods: { ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setSystemCode", "setSystemVersion", "setProcessCode", "setPageCode", "setSourceComponentForCopy"]), initShowDefinitionWhenUpdate(e2, t2, o2) {
2451
- window.$store.commit("wfEditor/setIsCreateDefinition", "false");
2452
- let l2 = this.baseAPI + "/wf-editor/open-xmls/with-definitions";
2453
- l2 = this.packageUrlParam(l2, e2, t2, o2), this.$http.get(l2).then((e3) => {
2454
- const t3 = e3.definition;
2455
- if (t3) {
2456
- this.definitionId = t3.id, this.defVersion = t3.definitionVersion, window.$store.commit("wfEditor/setTableCode", t3.tableCode);
2457
- const e4 = t3.enable;
2458
- this.isShowEnable = !e4 || "ENABLE" !== e4, t3.formCode ? window.$store.commit("wfEditor/setIsHandleCreate", "true") : window.$store.commit("wfEditor/setIsHandleCreate", "false");
2459
- }
2460
- const o3 = e3.xml;
2461
- this.initProcessByXml(o3, t3), this.canvasKey++;
2462
- });
2463
- }, getWorkflowDefVersionList() {
2464
- this.isShowDefVersionList = false;
2465
- let e2 = { wfDefinitionCode: this.code, publishVersion: this.systemPublishVersion };
2466
- o.http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/workflow-definitions/version-list", e2).then((e3) => {
2467
- this.workflowDefVersionList = e3, e3.length > 0 && !this.defVersion && (this.defVersion = e3[0].definitionVersion), this.isShowDefVersionList = true;
2468
- });
2469
- }, showContextMenu(e2) {
2470
- this.setContextMenuVisible(true);
2471
- const t2 = this.$refs.wfEditor.getBoundingClientRect();
2472
- this.contextMenuPosition = { x: e2.clientX - t2.x, y: e2.clientY - t2.y };
2473
- }, changeDefVersion(e2) {
2474
- const t2 = this.workflowDefVersionList.filter((t3) => t3.definitionVersion === e2);
2475
- if (t2 && t2.length > 0) {
2476
- const e3 = t2[0];
2477
- this.clearCanvas(), this.initShowDefinitionWhenUpdate(e3.id, e3.code, e3.definitionVersion), this.$emit("changeDefVersion", e3);
2478
- }
2479
- }, initProcessByXml(e2, t2) {
2480
- if (e2) {
2481
- const t3 = { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 }, o2 = n.xml2js(e2, t3);
2482
- V(o2.process), this.process = o2.process;
2483
- } else
2484
- this.process = D.newProcess(), this.initProcessBaseInfo(t2);
2485
- this.process && this.process.properties && this.process.properties.basicProperties ? this.setSystemCode(this.process.properties.basicProperties.systemCode) : this.setSystemCode(this.systemCode), this.process && this.process.attr && this.setProcessCode(this.process.attr.code), this.fetchFormFields(), this.clearCanvas(), v(this.process), this.count = this.getMaxCount() + 1;
2486
- }, initProcessBaseInfo(e2) {
2487
- 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);
2488
- }, fetchFormFields() {
2489
- const e2 = this.process.properties.basicProperties, t2 = e2.formCode, o2 = e2.formVersion;
2490
- this.tableCode, t2 && "" !== t2 && o2 ? yl.fetchFormFields(e2.formCode, e2.formVersion, null, this.systemPublishVersion) : this.tableCode && yl.fetchFormFields(null, null, this.tableCode, this.systemPublishVersion);
2491
- }, packageUrlParam: (e2, t2, o2, l2) => (t2 ? e2 = e2 + "?id=" + t2 : o2 && (e2 = e2 + "?code=" + o2 + "&version=" + l2), e2), getProcessXml() {
2492
- const e2 = { start: [], humanTask: [], decision: [], transition: [], fork: [], join: [], subprocess: [], humanDecision: [], copyTask: [], autoTask: [], end: [] };
2493
- e2.attr = this.process.attr, e2.properties = this.process.properties, this.taches.map((t3) => {
2494
- const o2 = t3.type;
2495
- e2[o2.charAt(0).toLowerCase() + o2.substring(1)].push(t3.ref), t3.ref.g = { x: t3.x, y: t3.y, width: t3.width, height: t3.height };
2496
- }), this.transitions.map((t3) => {
2497
- if (e2.transition.push(t3.ref), t3.ref.g = { fromJoint: t3.startJoint.position, toJoint: t3.endJoint.position, coordinate: "", lineType: t3.lineInfo.type }, "CurveLine" === t3.lineInfo.type && t3.lineInfo.controlPoint)
2498
- t3.ref.g.coordinate = t3.lineInfo.controlPoint.x + "," + t3.lineInfo.controlPoint.y;
2499
- else if ("BrokenLine" === t3.lineInfo.type && t3.lineInfo.controlPoint) {
2500
- let e3 = "";
2501
- t3.lineInfo.controlPoint.forEach((t4) => {
2502
- e3 += t4.x + "," + t4.y + ";";
2503
- }), t3.ref.g.coordinate = e3;
2504
- }
2505
- });
2506
- let t2 = n.json2xml({ process: e2 }, { attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
2507
- return t2 = '<?xml version="1.0" encoding="utf-8"?>\n' + t2, t2;
2508
- }, saveXml() {
2509
- const e2 = this.getProcessXml();
2510
- if (this.code || this.id || this.definitionId)
2511
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
2512
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.$alert(this.$t("workflowEditorMessage.updateSuccessful"));
2513
- });
2514
- else {
2515
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
2516
- this.$http.post(this.baseAPI + "/wf-editor/workflow-definitions", t2).then((e3) => {
2517
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.definitionId = e3.id, this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"));
2518
- });
2519
- }
2520
- }, saveWf(e2, t2, o2) {
2521
- return new Promise((o3, l2) => {
2522
- const r2 = this.packageSaveXmlParam(e2);
2523
- this.$http.post(t2, r2).then((e3) => {
2524
- this.definitionId = e3.id, o3();
2525
- });
2526
- });
2527
- }, packageSaveXmlParam(e2) {
2528
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
2529
- return this.definitionId ? t2.id = this.definitionId : this.id ? t2.id = this.id : this.code && (t2.code = this.code, t2.version = this.version), t2;
2530
- }, adminSave() {
2531
- const e2 = this.getProcessXml();
2532
- if (this.code || this.id || this.definitionId) {
2533
- const t2 = this.baseAPI + "/wf-editor/workflow-definitions/states", o2 = {};
2534
- this.definitionId ? o2.id = this.definitionId : this.id ? o2.id = this.id : this.code && (o2.code = this.code, o2.version = this.version), this.$http.post(t2, o2).then((t3) => {
2535
- "DRAFT" === t3 ? this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
2536
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.$alert(this.$t("workflowEditorMessage.updateSuccessful"));
2537
- }) : this.isAdminSave = true;
2538
- });
2539
- } else {
2540
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
2541
- this.$http.post(this.baseAPI + "/wf-editor/workflow-definitions", t2).then((e3) => {
2542
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.definitionId = e3.id, this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"));
2543
- });
2544
- }
2545
- }, updateWfVersion() {
2546
- const e2 = this.getProcessXml();
2547
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/update-version").then(() => {
2548
- window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.isAdminSave = false, this.$alert(this.$t("workflowEditorMessage.updateVersionSuccessful"));
2549
- });
2550
- }, addWfVersion() {
2551
- const e2 = this.getProcessXml();
2552
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
2553
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.isAdminSave = false, this.$alert(this.$t("workflowEditorMessage.addVersionSuccessful"));
2554
- });
2555
- }, exportProcessFromClient() {
2556
- const e2 = new Blob([this.getProcessXml()], { type: "text/xml;charset=utf-8" });
2557
- a.saveAs(e2, this.process.attr.name + ".xml");
2558
- }, exportProcess() {
2559
- const e2 = this.getProcessXml();
2560
- this.$http({ method: "post", url: this.baseAPI + "/wf-editor/save-as-xmls", data: { xmlContent: e2 } }).then((e3) => {
2561
- this.download(e3), this.$t("workflowEditorMessage.exportSucceeded");
2562
- });
2563
- }, download(e2) {
2564
- if (!e2)
2565
- return;
2566
- const t2 = window.URL.createObjectURL(new Blob([e2])), o2 = document.createElement("a");
2567
- o2.style.display = "none", o2.href = t2, o2.setAttribute("download", "myXml.xml"), document.body.appendChild(o2), o2.click();
2568
- }, uploadSuccess(e2, t2, o2) {
2569
- const l2 = e2;
2570
- this.clearCanvas(), this.initProcessByXml(l2), this.$refs.upload.clearFiles();
2571
- }, getCurrentPosition(e2) {
2572
- if (this.componentToDraw) {
2573
- const t2 = this.$refs.wfEditor.getBoundingClientRect();
2574
- this.currentPosition = { x: e2.clientX - t2.x - 22, y: e2.clientY - t2.y - 22 };
2575
- }
2576
- }, startDrag(e2) {
2577
- this.getCurrentPosition(e2);
2578
- }, drag(e2) {
2579
- this.getCurrentPosition(e2);
2580
- }, endDrag() {
2581
- this.componentToDraw && this.setComponentToDraw("");
2582
- }, addTache(e2) {
2583
- if (this.componentToDraw) {
2584
- const t2 = k(e2), o2 = D["new" + this.componentToDraw]();
2585
- o2.attr.id = this.componentToDraw.charAt(0).toLowerCase() + this.componentToDraw.substring(1) + "_" + this.count;
2586
- 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 };
2587
- l2.ref = o2, this.taches.push(l2), this.count++;
2588
- }
2589
- }, copyTache() {
2590
- const e2 = this.selectedTaches && this.selectedTaches.length > 0 ? this.selectedTaches[0] : null;
2591
- if (!e2)
2592
- return;
2593
- const t2 = JSON.parse(JSON.stringify(e2)), o2 = t2.type, l2 = t2.ref;
2594
- l2.attr.id = o2.charAt(0).toLowerCase() + o2.substring(1) + "_" + this.count, l2.attr.name = e2.name + "_copy", t2.id = l2.attr.id, t2.name = l2.attr.name, t2.x = e2.x + 20, t2.y = e2.y + 20, t2.isSelected = false, t2.ref = l2, this.taches.push(t2), this.count++, this.setSourceComponentForCopy("");
2595
- }, clearStatus() {
2596
- this.componentToDraw && this.setComponentToDraw("");
2597
- }, getMaxCount() {
2598
- let e2 = 0;
2599
- return this.taches.map((t2) => {
2600
- let o2 = t2.id.substring(t2.id.lastIndexOf("_") + 1);
2601
- o2 = +o2, e2 < o2 && (e2 = o2);
2602
- }), e2;
2603
- }, selectProcessFile() {
2604
- this.$refs.processFile.click();
2605
- }, openXmlFromClient() {
2606
- if ("" === this.$refs.processFile.value)
2607
- return;
2608
- const e2 = this.$refs.processFile.files[0], t2 = new FileReader();
2609
- t2.readAsText(e2);
2610
- const o2 = this;
2611
- t2.onload = function() {
2612
- o2.clearCanvas(), o2.initProcessByXml(t2.result), o2.$refs.processFile.value = "";
2613
- };
2614
- }, enableWf() {
2615
- this.definitionId && this.$http.put(this.baseAPI + "/wf-editor/workflow-editors/" + this.definitionId + "/states").then(() => {
2616
- this.getWorkflowDefVersionList(), this.isShowEnable = false, this.$alert(this.$t("workflowEditorMessage.enabledSuccessfully"));
2617
- });
2618
- } } }, lr = { style: { width: "100%", height: "100%", background: "#fff" } }, rr = { key: 0, class: "xml line-numbers" };
2619
- const ir = $(or, [["render", function(e2, t2, o2, l2, i2, n2) {
2620
- 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");
2621
- 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", lr, ["xml" === e2.activeTab ? (r.openBlock(), r.createElementBlock("pre", rr, [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);
2622
- }], ["__scopeId", "data-v-865cb4ee"]]), nr = { 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) {
2623
- e2.taches = t2;
2624
- }, setTransitions(e2, t2) {
2625
- e2.transitions = t2;
2626
- }, clearCanvas(e2) {
2627
- e2.taches = [], e2.transitions = [];
2628
- }, resetState(e2) {
2629
- e2.isMovingTache = false, e2.startJoint = null, e2.endJoint = null, e2.isDrawingRegion = false, e2.isMovingRegion = false, e2.resizerToMove = null, e2.draggerToMove = null, e2.controlPointToMove = null;
2630
- }, stopDrawingLine(e2) {
2631
- e2.startJoint = null, e2.endJoint = null;
2632
- }, setStartJoint(e2, t2) {
2633
- e2.startJoint = t2;
2634
- }, setEndJoint(e2, t2) {
2635
- e2.endJoint = t2;
2636
- }, setMovingTache(e2, t2) {
2637
- e2.isMovingTache = t2;
2638
- }, setMouseDownPosition(e2, t2) {
2639
- e2.mouseDownPosition = t2;
2640
- }, setDrawingRegion(e2, t2) {
2641
- e2.isDrawingRegion = t2;
2642
- }, setMovingRegion(e2, t2) {
2643
- e2.isMovingRegion = t2;
2644
- }, setSelectedTaches(e2, t2) {
2645
- e2.selectedTaches = t2;
2646
- }, setSelectedTransition(e2, t2) {
2647
- e2.selectedTransition = t2;
2648
- }, setResizerToMove(e2, t2) {
2649
- e2.resizerToMove = t2;
2650
- }, setDraggerToMove(e2, t2) {
2651
- e2.draggerToMove = t2;
2652
- }, setPropertiesEditorFor(e2, t2) {
2653
- e2.propertiesEditorFor = t2;
2654
- }, setComponentToDraw(e2, t2) {
2655
- e2.componentToDraw = t2;
2656
- }, setControlPointToMove(e2, t2) {
2657
- e2.controlPointToMove = t2;
2658
- }, setFormFields(e2, t2) {
2659
- e2.formFields = t2;
2660
- }, setFormCode(e2, t2) {
2661
- e2.formCode = t2;
2662
- }, setFormFieldsWithSub(e2, t2) {
2663
- e2.formFieldsWithSub = t2;
2664
- }, setContextMenuVisible(e2, t2) {
2665
- e2.contextMenuVisible = t2;
2666
- }, setSystemCode(e2, t2) {
2667
- e2.systemCode = t2;
2668
- }, setProcessCode(e2, t2) {
2669
- e2.processCode = t2;
2670
- }, setProcessI18n(e2, t2) {
2671
- e2.processI18n = t2;
2672
- }, setSubtableConditionMap(e2, t2) {
2673
- e2.subtableConditionMap = t2;
2674
- }, setPropSettingKeyList(e2, t2) {
2675
- e2.propSettingKeyList = t2;
2676
- }, setSystemVersion(e2, t2) {
2677
- e2.systemVersion = t2;
2678
- }, setTableCode(e2, t2) {
2679
- e2.tableCode = t2;
2680
- }, setTableCode(e2, t2) {
2681
- e2.tableCode = t2;
2682
- }, setIsCreateDefinition(e2, t2) {
2683
- e2.isCreateDefinition = t2;
2684
- }, setIsHandleCreate(e2, t2) {
2685
- e2.isHandleCreate = t2;
2686
- }, setPageCode(e2, t2) {
2687
- e2.pageCode = t2;
2688
- }, setSourceComponentForCopy(e2, t2) {
2689
- e2.sourceComponentType = t2;
2690
- } } }, ar = ["src"];
2691
- const sr = { name: "WfHistoryCanvas", components: { Start: J, End: X, HumanTask: le, Decision: se, Subprocess: ue, CustomTask: we, Fork: Ve, Join: xe, HumanDecision: $e, CopyTask: Oe, Transition: ot, TacheHistoryTooltip: ql, TacheSubprocessHistoryDialog: $({ name: "TacheSubprocessHistoryDialog", props: { workflowId: { type: Number, default: null } }, data: () => ({ dialogVisible: true }) }, [["render", function(e2, t2, o2, l2, i2, n2) {
2692
- const a2 = r.resolveComponent("el-dialog");
2693
- 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, ar)]), _: 1 }, 8, ["title"]);
2694
- }], ["__scopeId", "data-v-2b195c05"]]), AutoTask: Ae }, props: { process: { type: Object, default: null }, histories: { type: Array, default: null }, currentTasks: { type: Array, default: null }, allProcessI18n: { type: Object, default: null } }, data: function() {
2695
- return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
2696
- }, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
2697
- }, methods: { getTacheClass(e2) {
2698
- if (this.getCurrentTache(e2))
2699
- return "current-tache";
2700
- {
2701
- const t2 = this.getPassedTache(e2);
2702
- return t2 && t2.current ? "current-tache" : t2 ? "passed-tache" : "";
2703
- }
2704
- }, getPassedTache(e2) {
2705
- let t2 = null;
2706
- for (const o2 of this.histories)
2707
- if ("PROCESS_START" === o2.historyType && e2.ref.attr.id && "start" === e2.ref.attr.id || "PROCESS_END" === o2.historyType && e2.ref.attr.id && "end" === e2.ref.attr.id || e2.ref.attr.name && o2.taskName && o2.taskName === e2.ref.attr.name) {
2708
- t2 = o2;
2709
- break;
2710
- }
2711
- return t2;
2712
- }, getPassedTacheHistories(e2) {
2713
- const t2 = [];
2714
- for (const o2 of this.histories)
2715
- ("PROCESS_START" === o2.historyType && e2.ref.attr.id && "start" === e2.ref.attr.id || "PROCESS_END" === o2.historyType && e2.ref.attr.id && "end" === e2.ref.attr.id || e2.ref.attr.name && o2.taskName && o2.taskName === e2.ref.attr.name) && t2.push(this.i18nOperation(o2));
2716
- return t2;
2717
- }, i18nOperation(e2) {
2718
- let t2, l2;
2719
- const r2 = o.getLanguageWithLocale(), i2 = e2.bundleCode;
2720
- return i2 && "" !== i2 && this.processI18n && (t2 = this.processI18n[i2]), t2 && t2.processName && (l2 = t2.processName[r2]), o.i18nOperation(e2, l2, t2, r2);
2721
- }, getCurrentTache(e2) {
2722
- let t2 = null;
2723
- for (const o2 of this.currentTasks)
2724
- if (o2.taskName === e2.ref.attr.name) {
2725
- t2 = o2;
2726
- break;
2727
- }
2728
- return t2;
2729
- }, getTacheHistory(e2) {
2730
- let t2, o2 = null;
2731
- const l2 = this.getPassedTacheHistories(e2);
2732
- l2 && l2.length > 0 && (t2 = l2.join("</br>"));
2733
- const r2 = this.getCurrentTache(e2);
2734
- return r2 ? (o2 = this.$t("workflowEditorMessage.currentHandlingPersonnel") + ": " + r2.transactionResult, t2 && (o2 += "</br>" + t2)) : o2 = t2, o2;
2735
- }, forbidSelection: () => false, mousedown(e2) {
2736
- }, mousemove(e2) {
2737
- }, mouseup(e2) {
2738
- }, mouseleave(e2) {
2739
- }, endDrag(e2) {
2740
- }, showTacheHistoryTooltip(e2, t2) {
2741
- this.tacheHistoryInfo = this.getTacheHistory(e2), this.showHistory = true;
2742
- }, hideTacheHistoryTooltip() {
2743
- this.showHistory = false;
2744
- }, updateTacheHistoryTooltipPosition(e2) {
2745
- const t2 = k(e2);
2746
- this.tooltipPosition = { left: t2.x + 5 + "px", top: t2.y + 5 + "px" };
2747
- }, showSubprocessHistory(e2) {
2748
- const t2 = this.getPassedTache(e2);
2749
- t2 && void 0 !== t2.hasChildren && true === t2.hasChildren && (t2.children && t2.children.length > 0 && (this.subWorkflowId = t2.children[0].workflowId), this.showSubprocessDialog = true);
2750
- }, closeSubprocessHistory() {
2751
- this.showSubprocessDialog = false;
2752
- } } }, dr = { ref: "svgContainer", style: { position: "relative" } }, cr = 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);
2753
- const mr = $(sr, [["render", function(e2, t2, o2, l2, i2, n2) {
2754
- const a2 = r.resolveComponent("tache-history-tooltip"), s2 = r.resolveComponent("tache-subprocess-history-dialog");
2755
- return r.openBlock(), r.createElementBlock("div", dr, [(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)) }, [cr, (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);
2756
- }]]), ur = { refresh() {
2757
- this.showHistory();
2758
- } }, pr = { name: "WorkflowHistory", components: { WfHistoryCanvas: mr }, props: { id: { type: Number, default: null } }, data: function() {
2759
- return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
2760
- }, computed: { ...t.mapGetters("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...t.mapGetters(["sidebar"]) }, watch: {}, created: function() {
2761
- this.showHistory();
2762
- }, mounted: function() {
2763
- }, methods: { ...ur, ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
2764
- this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((e2) => {
2765
- this.allProcessI18n = e2;
2766
- const t2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
2767
- this.$http.get(t2).then((t3) => {
2768
- let o2;
2769
- 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;
2770
- });
2771
- }) : (this.process = D.newProcess(), v(this.process));
2772
- }, showContextMenu(e2) {
2773
- }, initProcessByXml(e2) {
2774
- const t2 = n.xml2js(e2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
2775
- V(t2.process), this.process = t2.process, v(this.process);
2776
- } } }, hr = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, fr = { class: "main" };
2777
- const wr = $(pr, [["render", function(e2, t2, o2, l2, i2, n2) {
2778
- const a2 = r.resolveComponent("wf-history-canvas");
2779
- return r.openBlock(), r.createElementBlock("div", hr, [r.createElementVNode("div", fr, [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);
2780
- }], ["__scopeId", "data-v-6658e14b"]]);
2781
- ir.install = function(e2) {
2782
- e2.component(ir.name, ir), e2.component(wr.name, wr);
2783
- };
2784
- const gr = { WorkflowEditor: ir, WorkflowHistory: wr, wfEditorStore: nr };
2785
- function Cr(e2, t2) {
2786
- const o2 = {}, l2 = e2.dataType;
2787
- return "DATE" === l2 || "TIME" === l2 ? (o2.type = "date", kr(o2), o2.message = e2.label + " " + w().t("workflowEditorMessage.requiredAndMustBeADate")) : "INTEGER" === l2 || "LONG" === l2 ? (o2.pattern = /^-?\d+$/, o2.message = e2.label + " " + w().t("workflowEditorMessage.requiredAndMustBeAnInteger")) : "FLOAT" === l2 || "DOUBLE" === l2 ? (o2.pattern = new RegExp("^(-?\\d+)(\\.\\d+)?$"), o2.message = e2.label + " " + w().t("workflowEditorMessage.requiredAndMustBeDecimal")) : "BOOLEAN" === l2 ? (o2.type = "boolean", o2.message = e2.label + " " + w().t("workflowEditorMessage.mustFill"), kr(o2)) : o2.message = e2.label + " " + w().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;
2788
- }
2789
- function kr(e2) {
2790
- e2 && e2.type && "boolean" === e2.type ? e2.validator = function(e3, t2, o2) {
2791
- return null == t2 ? !e3.required : "number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2);
2792
- } : e2 && e2.type && "date" === e2.type && (e2.validator = function(e3, t2, o2) {
2793
- if (null == t2)
2794
- return !e3.required;
2795
- {
2796
- const e4 = new Date(t2);
2797
- return !isNaN(e4.getTime());
2798
- }
2799
- });
2800
- }
2801
- function br(e2, t2, o2) {
2802
- let l2;
2803
- for (let r2 = 0; r2 < t2.length; r2++) {
2804
- const i2 = t2[r2];
2805
- if (l2 = 0 === r2 ? e2[i2] : l2.fields[t2[r2]], i2 === o2)
2806
- break;
2807
- }
2808
- return l2;
2809
- }
2810
- function Vr(e2, t2, o2) {
2811
- let l2;
2812
- for (let r2 = 0; r2 < t2.length; r2++)
2813
- if (l2 = 0 === r2 ? e2[t2[r2]] : l2.fields[t2[r2]], r2 !== t2.length - 1) {
2814
- if (t2[r2 + 1] === o2)
2815
- break;
2816
- }
2817
- return l2;
2818
- }
2819
- function yr(e2, t2, o2, l2, r2) {
2820
- let i2 = e2.name;
2821
- const n2 = i2.substring(0, i2.indexOf("."));
2822
- if (o2) {
2823
- o2[n2] || (o2[n2] = {});
2824
- const l3 = o2[n2];
2825
- (function(e3, t3) {
2826
- if (e3.indexOf(".") > 0) {
2827
- let o3 = t3;
2828
- const l4 = e3.split(".");
2829
- for (let e4 = 0; e4 < l4.length - 1; e4++) {
2830
- const t4 = l4[e4];
2831
- if (!o3 || !o3[t4])
2832
- return false;
2833
- o3 = o3[t4];
2834
- }
2835
- return true;
2836
- }
2837
- return true;
2838
- })(i2.substring(i2.indexOf(".") + 1), l3) && function(e3, t3, o3, l4) {
2839
- const r3 = {};
2840
- let i3 = e3.name;
2841
- t3 || (t3 = {});
2842
- const n3 = i3.split(".");
2843
- for (let o4 = 0; o4 < n3.length; o4++) {
2844
- const i4 = n3[o4];
2845
- let a2;
2846
- if (o4 === n3.length - 1)
2847
- a2 = Vr(r3, n3, i4), a2.fields[i4] = Cr(e3, l4);
2848
- else {
2849
- let e4;
2850
- 0 === o4 ? a2 = t3 : (e4 = br(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];
2851
- }
2852
- }
2853
- }(e2, t2, 0, r2);
2854
- }
2855
- }
2856
- function vr(e2, t2, o2, l2, r2, i2, n2) {
2857
- return Tr(e2, t2, o2, true, l2, r2, i2, n2);
2858
- }
2859
- function Tr(e2, t2, o2, l2, r2, i2, n2, a2) {
2860
- let s2 = false;
2861
- let c2;
2862
- if (new d(t2).validate(e2, { first: true }, (a3, d2) => {
2863
- if (a3) {
2864
- const e3 = a3[0].message;
2865
- c2 = a3[0].field, s2 = null != o2 ? void 0 !== i2 && void 0 !== n2 ? w().t("workflowEditorMessage.pageRecordLine", { pageNum: i2, row: n2 }) + "," + e3 : w().t("workflowEditorMessage.recordLine", { row: o2 + 1 }) + "," + e3 : e3;
2866
- } else
2867
- s2 = true;
2868
- if (c2 && true === l2) {
2869
- if (void 0 !== r2 && true === r2 && /[A-Z]+/.test(c2) && void 0 !== e2[c2.toLowerCase()]) {
2870
- const l3 = JSON.parse(JSON.stringify(e2));
2871
- l3[c2.toUpperCase()] = e2[c2.toLowerCase()], delete l3[c2.toLowerCase()], s2 = Tr(l3, t2, o2, false, r2, i2, n2);
2872
- }
2873
- }
2874
- }), a2) {
2875
- let e3 = { msg: s2, field: c2 };
2876
- return void 0 !== i2 && void 0 !== n2 ? (e3.pageNum = i2, e3.rowIndex = n2) : e3.rowIndex = o2, e3;
2877
- }
2878
- return s2;
2879
- }
2880
- function Nr(e2, t2, l2, r2, i2, n2, a2, s2, d2) {
2881
- const c2 = function(e3) {
2882
- return e3 && e3.id ? e3.id : e3 && e3.ID ? e3.ID : void 0;
2883
- }(l2), m2 = {};
2884
- for (let u2 = 0; u2 < e2.length; u2++) {
2885
- const p2 = e2[u2];
2886
- if (d2.indexOf(p2) < 0)
2887
- continue;
2888
- const h2 = t2[p2], f2 = h2.condition, w2 = o.parseSubTablePermissionCondition(f2, r2, i2, l2, n2, a2, s2);
2889
- if (null != w2 && true === w2)
2890
- if (void 0 === c2)
2891
- m2[p2] = h2;
2892
- else {
2893
- const e3 = h2.rowIndexes;
2894
- (!e3 || e3.indexOf(c2) >= 0) && (m2[p2] = h2);
2895
- }
2896
- }
2897
- return m2;
2898
- }
2899
- function xr(e2, t2, o2) {
2900
- let l2 = t2[o2];
2901
- return l2 || (l2 = []), 0 !== l2.length || !e2 || !e2[o2] || void 0 === e2[o2].required || true !== e2[o2].required || e2[o2].message;
2902
- }
2903
- const Er = function(e2, t2, o2, l2, r2, i2, n2, a2) {
2904
- const s2 = Object.keys(t2);
2905
- if (s2.indexOf("rules") >= 0 && s2.indexOf("subRules") >= 0 && s2.indexOf("totalSubRules") >= 0) {
2906
- const s3 = t2.rules, d2 = t2.subRules, c2 = t2.totalSubRules, m2 = t2.dataTypeMap;
2907
- let u2 = vr(e2, s3, null, o2, null, null, a2);
2908
- return (!a2 && true === u2 || a2 && true === u2.msg) && (d2 || c2) && (u2 = function(e3, t3, o3, l3, r3, i3, n3, a3, s4, d3) {
2909
- let c3 = {};
2910
- if (o3 && (c3 = JSON.parse(JSON.stringify(o3))), t3) {
2911
- const o4 = Object.keys(t3);
2912
- for (let m3 = 0; m3 < o4.length; m3++) {
2913
- const u3 = o4[m3], p2 = t3[u3], h2 = Object.keys(p2);
2914
- let f2 = e3[u3];
2915
- f2 || (f2 = []);
2916
- const w2 = xr(c3, e3, u3);
2917
- if (true !== w2)
2918
- return delete c3[u3], d3 ? { msg: w2, listCode: u3 } : w2;
2919
- let g2, C2 = [];
2920
- s4 && s4[u3] && (g2 = s4[u3].pageSize, C2 = s4[u3].fields || []);
2921
- for (let t4 = 0; t4 < f2.length; t4++) {
2922
- const o5 = f2[t4], s5 = Nr(h2, p2, f2[t4], r3, e3, i3, n3, a3, C2);
2923
- let c4, m4;
2924
- void 0 !== g2 && g2 > 0 && (c4 = Math.ceil((t4 + 1) / g2), m4 = t4 + 1 - (c4 - 1) * g2), Object.keys(s5).forEach((l4) => {
2925
- const r4 = s5[l4];
2926
- if (r4 && r4.rules && (s5[l4] = r4.rules), r4 && r4.beforeValidate) {
2927
- const i4 = r4.beforeValidate;
2928
- "function" == typeof i4 && false === i4({ row: o5, parent: e3, rowIndex: t4 }) && (s5[l4] = []);
2929
- }
2930
- });
2931
- const w3 = vr(o5, s5, t4, l3, c4, m4, d3);
2932
- if (!d3 && true !== w3 || d3 && true !== w3.msg)
2933
- return d3 && (w3.listCode = u3), w3;
2934
- }
2935
- }
2936
- }
2937
- for (const t4 in c3) {
2938
- const o4 = xr(c3, e3, t4);
2939
- if (true !== o4)
2940
- return d3 ? { msg: o4, listCode: t4 } : o4;
2941
- }
2942
- return !d3 || { msg: true };
2943
- }(e2, d2, c2, o2, m2, l2, r2, i2, n2, a2)), u2;
2944
- }
2945
- return vr(e2, t2, null, o2, null, null, a2);
2946
- }, Sr = function(e2, t2, l2, r2, i2, n2) {
2947
- void 0 === l2 && (l2 = false);
2948
- const a2 = {}, s2 = {}, d2 = {}, c2 = {};
2949
- return e2 && e2.forEach((e3) => {
2950
- const m2 = e3.canEdit;
2951
- if (void 0 !== m2 && true === m2) {
2952
- let m3 = e3.name;
2953
- if (m3) {
2954
- const u2 = e3.condition, p2 = null;
2955
- let h2 = null;
2956
- if (h2 = m3.indexOf(".") > 0 && 0 === m3.indexOf("$") || o.parseSubTablePermissionCondition(u2, s2, p2, t2, r2, i2, n2), null != h2 && true === h2) {
2957
- let o2 = {};
2958
- if (m3.indexOf(".") > 0)
2959
- 0 === m3.indexOf("$") ? function(e4, t3, o3, l3, r3) {
2960
- let i3 = e4.name;
2961
- const n3 = i3.substring(i3.indexOf("$") + 1, i3.indexOf("."));
2962
- if (!o3)
2963
- return;
2964
- const a3 = o3[n3], s3 = i3.substring(i3.indexOf(".") + 1);
2965
- t3[n3] || (t3[n3] = {});
2966
- const d3 = JSON.parse(JSON.stringify(e4));
2967
- if (d3.name = s3, s3.indexOf(".") > 0) {
2968
- if (void 0 !== a3 && null === a3 && 0 === a3.length) {
2969
- const e5 = a3[0];
2970
- yr(d3, t3[n3], e5, l3, r3);
2971
- }
2972
- } else
2973
- t3[n3][s3] = Cr(d3, r3);
2974
- }(e3, c2, t2, l2, s2) : yr(e3, a2, t2, l2, s2);
2975
- else if (0 === m3.indexOf("$")) {
2976
- const t3 = m3.substring(m3.indexOf("$") + 1);
2977
- d2[t3] = { required: true, message: w().t("workflowEditorMessage.subTableMustInputDatas", { subTable: e3.label }) };
2978
- } else
2979
- o2 = Cr(e3, s2), a2[m3] = o2;
2980
- }
2981
- }
2982
- }
2983
- }), Object.keys(c2).length > 0 || Object.keys(d2).length > 0 ? { rules: a2, subRules: c2, totalSubRules: d2, dataTypeMap: s2 } : a2;
2984
- }, Mr = { install: function(e2, t2) {
2985
- e2.config.globalProperties.$formValidator = Er, e2.config.globalProperties.$getValidator = Sr;
2986
- } }, Dr = gr.WorkflowEditor, $r = gr.WorkflowHistory, Fr = gr.wfEditorStore, Pr = [Dr, $r], Br = function(e2) {
2987
- Br.installed || (Pr.forEach((t2) => {
2988
- e2.component(t2.name, t2);
2989
- }), e2.use(Mr));
2990
- }, Or = { wfEditorInstall: Br, WorkflowEditor: Dr, wfEditorStore: Fr };
2991
- e.WorkflowEditor = Dr, e.WorkflowHistory = $r, e.default = Or, e.wfEditorCn = m, e.wfEditorEn = c, e.wfEditorInstall = Br, e.wfEditorStore = Fr, Object.defineProperties(e, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
2992
- });