workflow-editor 0.0.81-up-tmp12 → 0.0.81-up-tmp16

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 (281) hide show
  1. package/es/{index.mjs → index.js} +4 -4
  2. package/es/plugins/{formValidatorUtil.mjs → formValidatorUtil.js} +16 -16
  3. package/es/plugins/{index.mjs → index.js} +1 -1
  4. package/es/src/i18n/i18n.js +7 -0
  5. package/es/style.css +152 -152
  6. package/es/workflow-editor/index.js +10 -0
  7. package/es/workflow-editor/src/json-object-templates/{auto-task.mjs → auto-task.js} +1 -1
  8. package/es/workflow-editor/src/json-object-templates/{copy-task.mjs → copy-task.js} +1 -1
  9. package/es/workflow-editor/src/json-object-templates/{decision.mjs → decision.js} +1 -1
  10. package/es/workflow-editor/src/json-object-templates/{end.mjs → end.js} +1 -1
  11. package/es/workflow-editor/src/json-object-templates/{fork.mjs → fork.js} +1 -1
  12. package/es/workflow-editor/src/json-object-templates/{human-decision.mjs → human-decision.js} +1 -1
  13. package/es/workflow-editor/src/json-object-templates/{human-task.mjs → human-task.js} +1 -1
  14. package/es/workflow-editor/src/json-object-templates/{join.mjs → join.js} +1 -1
  15. package/es/workflow-editor/src/json-object-templates/{process.mjs → process.js} +2 -2
  16. package/es/workflow-editor/src/json-object-templates/{start.mjs → start.js} +1 -1
  17. package/es/workflow-editor/src/json-object-templates/{subprocess.mjs → subprocess.js} +1 -1
  18. package/es/workflow-editor/src/main/{admin-save-dialog.vue.mjs → admin-save-dialog.vue.js} +1 -1
  19. package/es/workflow-editor/src/main/{canvas.vue.mjs → canvas.vue.js} +29 -29
  20. package/es/workflow-editor/src/main/{context-menu.vue.mjs → context-menu.vue.js} +3 -3
  21. package/es/workflow-editor/src/main/{icon-svg.vue.mjs → icon-svg.vue.js} +4 -4
  22. package/es/workflow-editor/src/main/{selection-region.vue.mjs → selection-region.vue.js} +3 -3
  23. package/es/workflow-editor/src/main/{tache-history-tooltip.vue.mjs → tache-history-tooltip.vue.js} +2 -2
  24. package/es/workflow-editor/src/main/{tache-subprocess-history-dialog.vue.mjs → tache-subprocess-history-dialog.vue.js} +2 -2
  25. package/es/workflow-editor/src/main/{toolbox.vue.mjs → toolbox.vue.js} +6 -6
  26. package/es/workflow-editor/src/main/{wf-history-canvas.vue.mjs → wf-history-canvas.vue.js} +17 -17
  27. package/es/workflow-editor/src/properties-editors/auto-task/{basic-properties.vue.mjs → basic-properties.vue.js} +7 -7
  28. package/es/workflow-editor/src/properties-editors/{auto-task.vue.mjs → auto-task.vue.js} +3 -3
  29. package/es/workflow-editor/src/properties-editors/common/{additional-condition-utils.mjs → additional-condition-utils.js} +2 -2
  30. package/es/workflow-editor/src/properties-editors/common/{additional-condition.vue.mjs → additional-condition.vue.js} +3 -3
  31. package/es/workflow-editor/src/properties-editors/common/{auto-filled-fields-utils.mjs → auto-filled-fields-utils.js} +1 -1
  32. package/es/workflow-editor/src/properties-editors/common/{auto-filled-fields.vue.mjs → auto-filled-fields.vue.js} +6 -6
  33. package/es/workflow-editor/src/properties-editors/common/{common-notice-tool.vue.mjs → common-notice-tool.vue.js} +3 -3
  34. package/es/workflow-editor/src/properties-editors/common/{common-user-condition.vue.mjs → common-user-condition.vue.js} +4 -4
  35. package/es/workflow-editor/src/properties-editors/common/{form-fields.vue.mjs → form-fields.vue.js} +2 -2
  36. package/es/workflow-editor/src/properties-editors/common/{i18n-input.vue.mjs → i18n-input.vue.js} +6 -6
  37. package/es/workflow-editor/src/properties-editors/common/{i18n-set-dialog.vue.mjs → i18n-set-dialog.vue.js} +2 -2
  38. package/es/workflow-editor/src/properties-editors/common/{notice-reminder.vue.mjs → notice-reminder.vue.js} +7 -7
  39. package/es/workflow-editor/src/properties-editors/common/{notice.vue.mjs → notice.vue.js} +4 -4
  40. package/es/workflow-editor/src/properties-editors/common/{reminder.vue.mjs → reminder.vue.js} +5 -5
  41. package/es/workflow-editor/src/properties-editors/common/{select-mail-template.vue.mjs → select-mail-template.vue.js} +1 -1
  42. package/es/workflow-editor/src/properties-editors/common/{system-role-tree-inline.vue.mjs → system-role-tree-inline.vue.js} +2 -2
  43. package/es/workflow-editor/src/properties-editors/common/{system-role-tree.vue.mjs → system-role-tree.vue.js} +3 -3
  44. package/es/workflow-editor/src/properties-editors/common/{task-title.vue.mjs → task-title.vue.js} +4 -4
  45. package/es/workflow-editor/src/properties-editors/common/{transactor-settings.vue.mjs → transactor-settings.vue.js} +4 -4
  46. package/es/workflow-editor/src/properties-editors/common/{user-selection.vue.mjs → user-selection.vue.js} +4 -4
  47. package/es/workflow-editor/src/properties-editors/common/{value-selection-dialog.vue.mjs → value-selection-dialog.vue.js} +4 -4
  48. package/es/workflow-editor/src/properties-editors/common/{variables.vue.mjs → variables.vue.js} +1 -1
  49. package/es/workflow-editor/src/properties-editors/copy-task/{basic-properties.vue.mjs → basic-properties.vue.js} +7 -7
  50. package/es/workflow-editor/src/properties-editors/copy-task/{permission-settings.vue.mjs → permission-settings.vue.js} +4 -4
  51. package/es/workflow-editor/src/properties-editors/{copy-task.vue.mjs → copy-task.vue.js} +11 -11
  52. package/es/workflow-editor/src/properties-editors/{decision.vue.mjs → decision.vue.js} +3 -3
  53. package/es/workflow-editor/src/properties-editors/{fork.vue.mjs → fork.vue.js} +2 -2
  54. package/es/workflow-editor/src/properties-editors/{human-decision.vue.mjs → human-decision.vue.js} +1 -1
  55. package/es/workflow-editor/src/properties-editors/human-task/{additional-condition-dialog.vue.mjs → additional-condition-dialog.vue.js} +2 -2
  56. package/es/workflow-editor/src/properties-editors/human-task/{basic-properties.vue.mjs → basic-properties.vue.js} +7 -7
  57. package/es/workflow-editor/src/properties-editors/human-task/{componentsConfigUtil.mjs → componentsConfigUtil.js} +1 -1
  58. package/es/workflow-editor/src/properties-editors/human-task/{custom-actions.vue.mjs → custom-actions.vue.js} +4 -4
  59. package/es/workflow-editor/src/properties-editors/human-task/{editable-child-field-setting.vue.mjs → editable-child-field-setting.vue.js} +3 -3
  60. package/es/workflow-editor/src/properties-editors/human-task/{editable-child-fields.vue.mjs → editable-child-fields.vue.js} +3 -3
  61. package/es/workflow-editor/src/properties-editors/human-task/{editable-field-selection.vue.mjs → editable-field-selection.vue.js} +3 -3
  62. package/es/workflow-editor/src/properties-editors/human-task/{editable-fields.vue.mjs → editable-fields.vue.js} +4 -4
  63. package/es/workflow-editor/src/properties-editors/human-task/{events.vue.mjs → events.vue.js} +1 -1
  64. package/es/workflow-editor/src/properties-editors/human-task/{permission-settings.vue.mjs → permission-settings.vue.js} +7 -7
  65. package/es/workflow-editor/src/properties-editors/human-task/{selection-conditions.vue.mjs → selection-conditions.vue.js} +4 -4
  66. package/es/workflow-editor/src/properties-editors/{human-task.vue.mjs → human-task.vue.js} +9 -9
  67. package/es/workflow-editor/src/properties-editors/{join.vue.mjs → join.vue.js} +1 -1
  68. package/es/workflow-editor/src/properties-editors/process/{basic-properties.vue.mjs → basic-properties.vue.js} +6 -6
  69. package/es/workflow-editor/src/properties-editors/process/{events.vue.mjs → events.vue.js} +6 -6
  70. package/es/workflow-editor/src/properties-editors/process/{notice-settings.vue.mjs → notice-settings.vue.js} +3 -3
  71. package/es/workflow-editor/src/properties-editors/process/{parameter-settings.vue.mjs → parameter-settings.vue.js} +2 -2
  72. package/es/workflow-editor/src/properties-editors/process/{permission-settings.vue.mjs → permission-settings.vue.js} +2 -2
  73. package/es/workflow-editor/src/properties-editors/process/{selectPage.vue.mjs → selectPage.vue.js} +1 -1
  74. package/es/workflow-editor/src/properties-editors/{process.vue.mjs → process.vue.js} +8 -8
  75. package/es/workflow-editor/src/properties-editors/subprocess/{basic-properties.vue.mjs → basic-properties.vue.js} +8 -8
  76. package/es/workflow-editor/src/properties-editors/subprocess/{events.vue.mjs → events.vue.js} +1 -1
  77. package/es/workflow-editor/src/properties-editors/subprocess/{field-mappings.vue.mjs → field-mappings.vue.js} +5 -5
  78. package/es/workflow-editor/src/properties-editors/subprocess/{transactor-settings.vue.mjs → transactor-settings.vue.js} +7 -7
  79. package/es/workflow-editor/src/properties-editors/{subprocess.vue.mjs → subprocess.vue.js} +5 -5
  80. package/es/workflow-editor/src/properties-editors/transition/{basic-properties.vue.mjs → basic-properties.vue.js} +3 -3
  81. package/es/workflow-editor/src/properties-editors/{transition.vue.mjs → transition.vue.js} +9 -9
  82. package/es/workflow-editor/src/properties-editors/{user-condition.mjs → user-condition.js} +1 -1
  83. package/es/workflow-editor/src/store/{workflow-editor.mjs → workflow-editor.js} +1 -1
  84. package/es/workflow-editor/src/taches/{auto-task.vue.mjs → auto-task.vue.js} +7 -7
  85. package/es/workflow-editor/src/taches/{common-methods.mjs → common-methods.js} +1 -1
  86. package/es/workflow-editor/src/taches/{copy-task.vue.mjs → copy-task.vue.js} +7 -7
  87. package/es/workflow-editor/src/taches/{custom-task.vue.mjs → custom-task.vue.js} +4 -4
  88. package/es/workflow-editor/src/taches/{decision.vue.mjs → decision.vue.js} +5 -5
  89. package/es/workflow-editor/src/taches/{end.vue.mjs → end.vue.js} +4 -4
  90. package/es/workflow-editor/src/taches/{fork.vue.mjs → fork.vue.js} +5 -5
  91. package/es/workflow-editor/src/taches/{human-decision.vue.mjs → human-decision.vue.js} +7 -7
  92. package/es/workflow-editor/src/taches/{human-task.vue.mjs → human-task.vue.js} +5 -5
  93. package/es/workflow-editor/src/taches/{join.vue.mjs → join.vue.js} +4 -4
  94. package/es/workflow-editor/src/taches/{joint.vue.mjs → joint.vue.js} +3 -3
  95. package/es/workflow-editor/src/taches/{start.vue.mjs → start.vue.js} +4 -4
  96. package/es/workflow-editor/src/taches/{subprocess.vue.mjs → subprocess.vue.js} +7 -7
  97. package/es/workflow-editor/src/taches/{tache-resizer.vue.mjs → tache-resizer.vue.js} +2 -2
  98. package/es/workflow-editor/src/transitions/{broken-line.vue.mjs → broken-line.vue.js} +3 -3
  99. package/es/workflow-editor/src/transitions/{curve-line.vue.mjs → curve-line.vue.js} +3 -3
  100. package/es/workflow-editor/src/transitions/{straight-line.vue.mjs → straight-line.vue.js} +2 -2
  101. package/es/workflow-editor/src/transitions/{transition.vue.mjs → transition.vue.js} +8 -8
  102. package/es/workflow-editor/src/transitions/{virtual-transition.vue.mjs → virtual-transition.vue.js} +3 -3
  103. package/es/workflow-editor/src/{util.mjs → util.js} +13 -13
  104. package/es/workflow-editor/src/{workflow-editor.vue.mjs → workflow-editor.vue.js} +16 -16
  105. package/es/workflow-editor/src/{workflow-history.vue.mjs → workflow-history.vue.js} +8 -8
  106. package/lib/style.css +144 -144
  107. package/package.json +7 -1
  108. package/.prettierrc.json +0 -9
  109. package/es/src/i18n/i18n.mjs +0 -7
  110. package/es/workflow-editor/index.mjs +0 -10
  111. package/index.html +0 -13
  112. package/packages/index.js +0 -50
  113. package/packages/plugins/formValidatorUtil.js +0 -723
  114. package/packages/plugins/index.js +0 -8
  115. package/packages/workflow-editor/index.js +0 -14
  116. package/packages/workflow-editor/src/api.js +0 -7
  117. package/packages/workflow-editor/src/assets/tab-select.png +0 -0
  118. package/packages/workflow-editor/src/assets/tab-selectWhite.png +0 -0
  119. package/packages/workflow-editor/src/assets/wf-editor-icons.js +0 -2
  120. package/packages/workflow-editor/src/constant.js +0 -8
  121. package/packages/workflow-editor/src/json-object-templates/auto-task.js +0 -70
  122. package/packages/workflow-editor/src/json-object-templates/copy-task.js +0 -72
  123. package/packages/workflow-editor/src/json-object-templates/decision.js +0 -11
  124. package/packages/workflow-editor/src/json-object-templates/end.js +0 -14
  125. package/packages/workflow-editor/src/json-object-templates/fork.js +0 -10
  126. package/packages/workflow-editor/src/json-object-templates/human-decision.js +0 -9
  127. package/packages/workflow-editor/src/json-object-templates/human-task.js +0 -208
  128. package/packages/workflow-editor/src/json-object-templates/join.js +0 -10
  129. package/packages/workflow-editor/src/json-object-templates/process.js +0 -99
  130. package/packages/workflow-editor/src/json-object-templates/start.js +0 -13
  131. package/packages/workflow-editor/src/json-object-templates/subprocess.js +0 -31
  132. package/packages/workflow-editor/src/json-object-templates/transition.js +0 -26
  133. package/packages/workflow-editor/src/main/admin-save-dialog.vue +0 -67
  134. package/packages/workflow-editor/src/main/canvas.vue +0 -493
  135. package/packages/workflow-editor/src/main/context-menu.vue +0 -147
  136. package/packages/workflow-editor/src/main/icon-svg.vue +0 -32
  137. package/packages/workflow-editor/src/main/selection-region.vue +0 -66
  138. package/packages/workflow-editor/src/main/tache-history-tooltip.vue +0 -38
  139. package/packages/workflow-editor/src/main/tache-name-input.vue +0 -19
  140. package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +0 -40
  141. package/packages/workflow-editor/src/main/toolbox.vue +0 -60
  142. package/packages/workflow-editor/src/main/wf-history-canvas.vue +0 -309
  143. package/packages/workflow-editor/src/process-json.js +0 -624
  144. package/packages/workflow-editor/src/process-service.js +0 -68
  145. package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +0 -81
  146. package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +0 -155
  147. package/packages/workflow-editor/src/properties-editors/auto-task.vue +0 -74
  148. package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +0 -568
  149. package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +0 -320
  150. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +0 -34
  151. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +0 -268
  152. package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +0 -81
  153. package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +0 -242
  154. package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +0 -23
  155. package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +0 -117
  156. package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +0 -88
  157. package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +0 -143
  158. package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +0 -149
  159. package/packages/workflow-editor/src/properties-editors/common/notice.vue +0 -108
  160. package/packages/workflow-editor/src/properties-editors/common/reminder.vue +0 -272
  161. package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +0 -92
  162. package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +0 -66
  163. package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +0 -354
  164. package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +0 -68
  165. package/packages/workflow-editor/src/properties-editors/common/task-title.vue +0 -165
  166. package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +0 -275
  167. package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +0 -426
  168. package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +0 -272
  169. package/packages/workflow-editor/src/properties-editors/common/variables.vue +0 -139
  170. package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +0 -90
  171. package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +0 -155
  172. package/packages/workflow-editor/src/properties-editors/copy-task.vue +0 -95
  173. package/packages/workflow-editor/src/properties-editors/decision.vue +0 -95
  174. package/packages/workflow-editor/src/properties-editors/fork.vue +0 -77
  175. package/packages/workflow-editor/src/properties-editors/human-decision.vue +0 -49
  176. package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +0 -62
  177. package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +0 -184
  178. package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +0 -359
  179. package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +0 -256
  180. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +0 -405
  181. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +0 -257
  182. package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +0 -430
  183. package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +0 -206
  184. package/packages/workflow-editor/src/properties-editors/human-task/events.vue +0 -60
  185. package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +0 -224
  186. package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +0 -499
  187. package/packages/workflow-editor/src/properties-editors/human-task.vue +0 -107
  188. package/packages/workflow-editor/src/properties-editors/join.vue +0 -49
  189. package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +0 -336
  190. package/packages/workflow-editor/src/properties-editors/process/events.vue +0 -79
  191. package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +0 -68
  192. package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +0 -106
  193. package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +0 -28
  194. package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +0 -88
  195. package/packages/workflow-editor/src/properties-editors/process.vue +0 -115
  196. package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +0 -201
  197. package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +0 -26
  198. package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +0 -216
  199. package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +0 -66
  200. package/packages/workflow-editor/src/properties-editors/subprocess.vue +0 -80
  201. package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +0 -53
  202. package/packages/workflow-editor/src/properties-editors/transition.vue +0 -75
  203. package/packages/workflow-editor/src/properties-editors/user-condition.js +0 -183
  204. package/packages/workflow-editor/src/store/getters.js +0 -33
  205. package/packages/workflow-editor/src/store/workflow-editor.js +0 -153
  206. package/packages/workflow-editor/src/taches/auto-task.vue +0 -99
  207. package/packages/workflow-editor/src/taches/common-methods.js +0 -21
  208. package/packages/workflow-editor/src/taches/copy-task.vue +0 -99
  209. package/packages/workflow-editor/src/taches/custom-task.vue +0 -88
  210. package/packages/workflow-editor/src/taches/decision.vue +0 -102
  211. package/packages/workflow-editor/src/taches/end.vue +0 -76
  212. package/packages/workflow-editor/src/taches/fork.vue +0 -102
  213. package/packages/workflow-editor/src/taches/human-decision.vue +0 -102
  214. package/packages/workflow-editor/src/taches/human-task.vue +0 -113
  215. package/packages/workflow-editor/src/taches/join.vue +0 -91
  216. package/packages/workflow-editor/src/taches/joint.vue +0 -177
  217. package/packages/workflow-editor/src/taches/start.vue +0 -76
  218. package/packages/workflow-editor/src/taches/subprocess.vue +0 -99
  219. package/packages/workflow-editor/src/taches/tache-resizer.vue +0 -80
  220. package/packages/workflow-editor/src/transitions/broken-line.vue +0 -91
  221. package/packages/workflow-editor/src/transitions/curve-line.vue +0 -91
  222. package/packages/workflow-editor/src/transitions/straight-line.vue +0 -26
  223. package/packages/workflow-editor/src/transitions/transition.vue +0 -209
  224. package/packages/workflow-editor/src/transitions/virtual-transition.vue +0 -43
  225. package/packages/workflow-editor/src/util.js +0 -499
  226. package/packages/workflow-editor/src/workflow-editor.vue +0 -852
  227. package/packages/workflow-editor/src/workflow-history.vue +0 -153
  228. package/public/vite.svg +0 -1
  229. package/src/i18n/i18n.js +0 -16
  230. package/src/i18n/langs/cn.js +0 -521
  231. package/src/i18n/langs/en.js +0 -529
  232. package/vite.config.js +0 -103
  233. /package/es/_virtual/{_plugin-vue_export-helper.mjs → _plugin-vue_export-helper.js} +0 -0
  234. /package/es/src/i18n/langs/{cn.mjs → cn.js} +0 -0
  235. /package/es/src/i18n/langs/{en.mjs → en.js} +0 -0
  236. /package/es/workflow-editor/src/{api.mjs → api.js} +0 -0
  237. /package/es/workflow-editor/src/assets/{wf-editor-icons.mjs → wf-editor-icons.js} +0 -0
  238. /package/es/workflow-editor/src/json-object-templates/{transition.mjs → transition.js} +0 -0
  239. /package/es/workflow-editor/src/main/{canvas.vue2.mjs → canvas.vue2.js} +0 -0
  240. /package/es/workflow-editor/src/main/{context-menu.vue2.mjs → context-menu.vue2.js} +0 -0
  241. /package/es/workflow-editor/src/main/{icon-svg.vue2.mjs → icon-svg.vue2.js} +0 -0
  242. /package/es/workflow-editor/src/main/{selection-region.vue2.mjs → selection-region.vue2.js} +0 -0
  243. /package/es/workflow-editor/src/main/{tache-history-tooltip.vue2.mjs → tache-history-tooltip.vue2.js} +0 -0
  244. /package/es/workflow-editor/src/main/{tache-subprocess-history-dialog.vue2.mjs → tache-subprocess-history-dialog.vue2.js} +0 -0
  245. /package/es/workflow-editor/src/main/{toolbox.vue2.mjs → toolbox.vue2.js} +0 -0
  246. /package/es/workflow-editor/src/main/{wf-history-canvas.vue2.mjs → wf-history-canvas.vue2.js} +0 -0
  247. /package/es/workflow-editor/src/{process-service.mjs → process-service.js} +0 -0
  248. /package/es/workflow-editor/src/properties-editors/auto-task/{basic-properties.vue2.mjs → basic-properties.vue2.js} +0 -0
  249. /package/es/workflow-editor/src/properties-editors/{auto-task.vue2.mjs → auto-task.vue2.js} +0 -0
  250. /package/es/workflow-editor/src/properties-editors/common/{form-fields-utils.mjs → form-fields-utils.js} +0 -0
  251. /package/es/workflow-editor/src/properties-editors/common/{form-fields.vue2.mjs → form-fields.vue2.js} +0 -0
  252. /package/es/workflow-editor/src/properties-editors/common/{notice-reminder.vue2.mjs → notice-reminder.vue2.js} +0 -0
  253. /package/es/workflow-editor/src/properties-editors/common/{reminder.vue2.mjs → reminder.vue2.js} +0 -0
  254. /package/es/workflow-editor/src/properties-editors/common/{system-role-tree-inline.vue2.mjs → system-role-tree-inline.vue2.js} +0 -0
  255. /package/es/workflow-editor/src/properties-editors/common/{system-role-tree.vue2.mjs → system-role-tree.vue2.js} +0 -0
  256. /package/es/workflow-editor/src/properties-editors/common/{task-title.vue2.mjs → task-title.vue2.js} +0 -0
  257. /package/es/workflow-editor/src/properties-editors/common/{value-selection-dialog.vue2.mjs → value-selection-dialog.vue2.js} +0 -0
  258. /package/es/workflow-editor/src/properties-editors/copy-task/{basic-properties.vue2.mjs → basic-properties.vue2.js} +0 -0
  259. /package/es/workflow-editor/src/properties-editors/copy-task/{permission-settings.vue2.mjs → permission-settings.vue2.js} +0 -0
  260. /package/es/workflow-editor/src/properties-editors/{copy-task.vue2.mjs → copy-task.vue2.js} +0 -0
  261. /package/es/workflow-editor/src/properties-editors/human-task/{basic-properties.vue2.mjs → basic-properties.vue2.js} +0 -0
  262. /package/es/workflow-editor/src/properties-editors/human-task/{editable-field-selection.vue2.mjs → editable-field-selection.vue2.js} +0 -0
  263. /package/es/workflow-editor/src/properties-editors/human-task/{permission-settings.vue2.mjs → permission-settings.vue2.js} +0 -0
  264. /package/es/workflow-editor/src/properties-editors/{human-task.vue2.mjs → human-task.vue2.js} +0 -0
  265. /package/es/workflow-editor/src/properties-editors/{subprocess.vue2.mjs → subprocess.vue2.js} +0 -0
  266. /package/es/workflow-editor/src/properties-editors/{transition.vue2.mjs → transition.vue2.js} +0 -0
  267. /package/es/workflow-editor/src/store/{getters.mjs → getters.js} +0 -0
  268. /package/es/workflow-editor/src/taches/{decision.vue2.mjs → decision.vue2.js} +0 -0
  269. /package/es/workflow-editor/src/taches/{end.vue2.mjs → end.vue2.js} +0 -0
  270. /package/es/workflow-editor/src/taches/{fork.vue2.mjs → fork.vue2.js} +0 -0
  271. /package/es/workflow-editor/src/taches/{human-decision.vue2.mjs → human-decision.vue2.js} +0 -0
  272. /package/es/workflow-editor/src/taches/{join.vue2.mjs → join.vue2.js} +0 -0
  273. /package/es/workflow-editor/src/taches/{joint.vue2.mjs → joint.vue2.js} +0 -0
  274. /package/es/workflow-editor/src/taches/{start.vue2.mjs → start.vue2.js} +0 -0
  275. /package/es/workflow-editor/src/taches/{tache-resizer.vue2.mjs → tache-resizer.vue2.js} +0 -0
  276. /package/es/workflow-editor/src/transitions/{broken-line.vue2.mjs → broken-line.vue2.js} +0 -0
  277. /package/es/workflow-editor/src/transitions/{curve-line.vue2.mjs → curve-line.vue2.js} +0 -0
  278. /package/es/workflow-editor/src/transitions/{transition.vue2.mjs → transition.vue2.js} +0 -0
  279. /package/es/workflow-editor/src/transitions/{virtual-transition.vue2.mjs → virtual-transition.vue2.js} +0 -0
  280. /package/es/workflow-editor/src/{workflow-editor.vue2.mjs → workflow-editor.vue2.js} +0 -0
  281. /package/es/workflow-editor/src/{workflow-history.vue2.mjs → workflow-history.vue2.js} +0 -0
@@ -1,256 +0,0 @@
1
- <template>
2
- <div>
3
- <el-row>
4
- <el-button type="primary" size="small" plain :icon="CirclePlus" @click="add">
5
- {{ $t('workflowEditorPublicModel.add') }}
6
- </el-button>
7
- <el-button type="primary" size="small" plain :icon="Delete" @click="remove">
8
- {{ $t('workflowEditorPublicModel.delete') }}
9
- </el-button>
10
- <el-table
11
- ref="table"
12
- :data="actions"
13
- row-key="type"
14
- border
15
- highlight-current-row
16
- style="width: 100%"
17
- @current-change="handleCurrentChange"
18
- >
19
- <el-table-column
20
- type="index"
21
- />
22
- <el-table-column
23
- :label="$t('workflowEditor.task.operationType')"
24
- width="180"
25
- >
26
- <template v-slot="scope">
27
- <el-select v-model="scope.row.type" @change="isDuplicated">
28
- <el-option
29
- v-for="item in actionTypes"
30
- :key="item.id"
31
- :value="item.type"
32
- :label="item.label"
33
- />
34
- </el-select>
35
- </template>
36
- </el-table-column>
37
- <el-table-column
38
- prop="label"
39
- :label="$t('workflowEditor.task.name')"
40
- width="180"
41
- >
42
- <template v-slot="scope">
43
- <el-input v-model="scope.row.label" />
44
- </template>
45
- </el-table-column>
46
- <el-table-column
47
- prop="visible"
48
- :label="$t('workflowEditor.task.visibleOrNot')"
49
- >
50
- <template v-slot="scope">
51
- <el-checkbox v-model="scope.row.visible" />
52
- </template>
53
- </el-table-column>
54
- <el-table-column
55
- prop="condition"
56
- :label="$t('workflowEditor.task.condition')"
57
- >
58
- <template v-slot="scope">
59
- <el-input
60
- :value="formatCondition(scope.row.condition)"
61
- type="textarea"
62
- autosize
63
- @focus="selectCondition(scope.row)"
64
- />
65
- </template>
66
- </el-table-column>
67
- </el-table>
68
- </el-row>
69
- <additional-condition-dialog v-if="showAdditionalCondition" v-model="currentRow.condition" @close="showAdditionalCondition=false" />
70
- </div>
71
- </template>
72
- <script setup>
73
- import {
74
- CirclePlus,
75
- Delete
76
- } from '@element-plus/icons-vue'
77
- </script>
78
- <script>
79
- import { getI18n } from '../../../../workflow-editor/src/util'
80
- import AdditionalConditionDialog from './additional-condition-dialog'
81
- import { parseCondition, displayCondition } from '../common/additional-condition-utils'
82
- export default {
83
- name: 'CustomActions',
84
- components: {
85
- AdditionalConditionDialog
86
- },
87
- props: {
88
- model: {
89
- type: Object,
90
- default: null
91
- }
92
- },
93
- data() {
94
- const actions = []
95
- let count = 1
96
- if (this.model.action) {
97
- if (Array.isArray(this.model.action)) {
98
- for (const action of this.model.action) {
99
- actions.push({
100
- ...action,
101
- id: count
102
- })
103
- count++
104
- }
105
- } else {
106
- actions.push({
107
- ...this.model.action,
108
- id: count
109
- })
110
- count++
111
- }
112
- }
113
- return {
114
- actions,
115
- actionTypes: [{
116
- type: 'SAVE',
117
- label: getI18n().t('workflowEditor.task.save')
118
- }, {
119
- type: 'SUBMIT',
120
- label: getI18n().t('workflowEditor.task.submission')
121
- }, {
122
- type: 'APPROVE',
123
- label: getI18n().t('workflowEditor.task.agree')
124
- }, {
125
- type: 'REFUSE',
126
- label: getI18n().t('workflowEditor.task.disagree')
127
- }, {
128
- type: 'AGREEMENT',
129
- label: getI18n().t('workflowEditor.task.favor')
130
- }, {
131
- type: 'OPPOSE',
132
- label: getI18n().t('workflowEditor.task.opposition')
133
- }, {
134
- type: 'KIKEN',
135
- label: getI18n().t('workflowEditor.task.waiver')
136
- }, {
137
- type: 'DRAW',
138
- label: getI18n().t('workflowEditor.task.receive')
139
- }, {
140
- type: 'ABANDON_DRAW',
141
- label: getI18n().t('workflowEditor.task.giveUp')
142
- }, {
143
- type: 'ADD_SIGN',
144
- label: getI18n().t('workflowEditor.task.additionalSignature')
145
- }, {
146
- type: 'REMOVE_SIGN',
147
- label: getI18n().t('workflowEditor.task.reductionOfSignature')
148
- }, {
149
- type: 'ASSIGN_TASK',
150
- label: getI18n().t('workflowEditor.task.assignTask')
151
- }, {
152
- type: 'COPY',
153
- label: getI18n().t('workflowEditor.task.copyTask')
154
- }, {
155
- type: 'GET_BACK_BUTTON',
156
- label: getI18n().t('workflowEditor.task.retrieveTask')
157
- }, {
158
- type: 'READED',
159
- label: getI18n().t('workflowEditor.task.readTask')
160
- }, {
161
- type: 'EXPORT_REPORT',
162
- label: getI18n().t('workflowEditor.task.exportReport')
163
- }],
164
- currentRow: null,
165
- count,
166
- showAdditionalCondition: false
167
- }
168
- },
169
- mounted() {
170
- if (this.actions.length > 0) {
171
- this.selectRow(this.actions[this.actions.length - 1])
172
- }
173
- this.$watch('actions', function(newVal, oldVal) {
174
- const actions = []
175
- for (const action of this.actions) {
176
- const row = {
177
- ...action
178
- }
179
- delete row['id']
180
- actions.push(row)
181
- }
182
- this.$emit('updateAction', actions)
183
- }, {
184
- deep: true
185
- })
186
- },
187
- methods: {
188
- selectRow(row) {
189
- this.$refs.table.setCurrentRow(row)
190
- },
191
- getRowIndex(row) {
192
- for (let i = 0; i < this.actions.length; i++) {
193
- if (this.actions[i].id === row.id) {
194
- return i
195
- }
196
- }
197
- return -1
198
- },
199
- handleCurrentChange(val) {
200
- this.currentRow = val
201
- },
202
- isDuplicated(val) {
203
- const index = this.getRowIndex(this.currentRow)
204
- console.log('index:' + index)
205
- for (let i = 0; i < this.actions.length; i++) {
206
- if (i === index) continue
207
- if (this.actions[i].type === val) {
208
- this.$alert(this.$t('workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect', { row: (i + 1) }))
209
- this.currentRow.type = ''
210
- }
211
- }
212
- },
213
- add() {
214
- for (let i = 0; i < this.actions.length; i++) {
215
- const action = this.actions[i]
216
- if (action.type === '' || action.label === '') {
217
- this.$alert(this.$t('workflowEditorMessage.theOperationTypeOrNameInLineIsEmpty', { row: (i + 1) }))
218
- return
219
- }
220
- }
221
- const newRow = {
222
- id: this.count,
223
- type: '',
224
- label: '',
225
- visible: true,
226
- condition: ''
227
- }
228
- this.actions.push(newRow)
229
- this.selectRow(newRow)
230
- this.count++
231
- },
232
- remove() {
233
- let index = this.getRowIndex(this.currentRow)
234
- this.actions.splice(index, 1)
235
- if (this.actions.length > 0) {
236
- index = (index <= (this.actions.length - 1) ? index : (this.actions.length - 1))
237
- this.$refs.table.setCurrentRow(this.actions[index])
238
- }
239
- },
240
- formatCondition(value) {
241
- if (value === '' || !value) return this.$t('workflowEditor.task.nothing')
242
- const conditions = []
243
- parseCondition(conditions, value)
244
- return displayCondition(conditions)
245
- },
246
- selectCondition(row) {
247
- this.selectRow(row)
248
- if (!this.currentRow) {
249
- this.currentRow.condition = ''
250
- // this.$set(this.currentRow, 'condition', '')
251
- }
252
- this.showAdditionalCondition = true
253
- }
254
- }
255
- }
256
- </script>
@@ -1,405 +0,0 @@
1
- <template>
2
- <div>
3
- <div>
4
- <el-checkbox-group v-model="actionArr" @change="changeActionArr">
5
- <el-row>
6
- <el-col :span="6">
7
- <el-checkbox label="notEmpty">
8
- {{ $t('workflowEditor.condition.tableDataNotEmpty') }}
9
- <el-icon v-if="actionArr && actionArr.indexOf('notEmpty') !== -1" @click="showButtonVisible('notEmpty')"
10
- ><Tools
11
- /></el-icon>
12
- </el-checkbox>
13
- </el-col>
14
- <el-col :span="6">
15
- <el-checkbox label="add">
16
- {{ $t('workflowEditor.condition.rowsCanBeAdded') }}
17
- <el-icon v-if="actionArr && actionArr.indexOf('add') !== -1" @click="showButtonVisible('add')"
18
- ><Tools
19
- /></el-icon>
20
- </el-checkbox>
21
- </el-col>
22
- <el-col :span="6">
23
- <el-checkbox label="delete">
24
- {{ $t('workflowEditor.condition.deleteLine') }}
25
- <el-icon v-if="actionArr && actionArr.indexOf('delete') !== -1" @click="showButtonVisible('delete')"
26
- ><Tools
27
- /></el-icon>
28
- </el-checkbox>
29
- </el-col>
30
- <el-col :span="6">
31
- <el-checkbox label="update">
32
- {{ $t('workflowEditor.condition.modifiableHistoricalData') }}
33
- <el-icon v-if="actionArr && actionArr.indexOf('update') !== -1" @click="showButtonVisible('update')"
34
- ><Tools
35
- /></el-icon>
36
- </el-checkbox>
37
- </el-col>
38
- </el-row>
39
- </el-checkbox-group>
40
- <!-- <el-col :span="4">
41
- <el-radio v-model="permission" label="fieldControl" @change="combinationParameters()">
42
- {{ $t('workflowEditor.condition.controlByField') }}
43
- </el-radio>
44
- </el-col>
45
- <el-col :span="4">
46
- <el-radio v-model="permission" label="allForbidden" @change="combinationParameters()">
47
- {{ $t('workflowEditor.condition.allReadOnly') }}
48
- </el-radio>
49
- </el-col>
50
- <el-col :span="4">
51
- <el-radio v-model="permission" label="allRequired" @change="combinationParameters()">
52
- {{ $t('workflowEditor.condition.allRequired') }}
53
- </el-radio>
54
- </el-col> -->
55
- <selection-conditions
56
- v-if="showButtonVisibleFlag"
57
- :attribute-map="subtableConditionItem"
58
- :condition-list="buttonVisibleCon.condition"
59
- :parent-condition="buttonVisibleCon.parentCondition"
60
- :user-condition="buttonVisibleCon.userCondition"
61
- :button-type="buttonType"
62
- @close="saveButtonVisible"
63
- />
64
- </div>
65
- <div>
66
- <el-row>
67
- <el-button type="primary" size="small" plain icon="CirclePlus" @click="add">
68
- {{ $t('workflowEditorPublicModel.add') }}
69
- </el-button>
70
- <el-button type="primary" size="small" plain icon="Delete" @click="remove">
71
- {{ $t('workflowEditorPublicModel.delete') }}
72
- </el-button>
73
- </el-row>
74
- <el-table
75
- ref="table"
76
- :data="fieldArr"
77
- border
78
- highlight-current-row
79
- style="width: 100%"
80
- @selection-change="handleSelectionChange"
81
- @current-change="handleCurrentChange"
82
- >
83
- <el-table-column type="selection" width="55" align="center" />
84
- <el-table-column type="index" width="50" align="center" />
85
- <el-table-column prop="name" :label="$t('workflowEditor.task.propertyName')" width="280" align="center">
86
- <template v-slot="scope">
87
- <el-select v-model="scope.row.name" size="small" filterable @change="combinationParameters">
88
- <el-option :label="$t('workflowEditor.condition.allFields')" value="all_fields" />
89
- <el-option v-for="item in attributeArr" :key="item.value" :label="item.label" :value="item.value" />
90
- </el-select>
91
- </template>
92
- </el-table-column>
93
- <el-table-column
94
- prop="constraintRule"
95
- :label="$t('workflowEditor.task.editingMethod')"
96
- width="380"
97
- align="center"
98
- >
99
- <template v-slot="scope">
100
- <el-radio-group v-model="scope.row.constraintRule" @change="combinationParameters">
101
- <el-radio label="REQUIRED">
102
- {{ $t('workflowEditorMessage.mustFill') }}
103
- </el-radio>
104
- <el-radio label="READ_ONLY">
105
- {{ $t('workflowEditorMessage.readOnly') }}
106
- </el-radio>
107
- </el-radio-group>
108
- </template>
109
- </el-table-column>
110
- <el-table-column prop="condition" :label="$t('workflowEditor.task.condition')" align="center">
111
- <template v-slot="scope">
112
- <el-icon @click="selectCondition(scope.row)"><Tools /></el-icon>
113
- <!-- <el-input
114
- :value="formatConditionList(scope.row.condition)"
115
- type="textarea"
116
- autosize
117
- @focus="selectCondition(scope.row)"
118
- /> -->
119
- </template>
120
- </el-table-column>
121
- </el-table>
122
- <selection-conditions
123
- v-if="showAdditionalCondition"
124
- :attribute-map="subtableConditionItem"
125
- :condition-list="currentRow.condition"
126
- :parent-condition="currentRow.parentCondition"
127
- :user-condition="currentRow.userCondition"
128
- @close="savebuttonSetting"
129
- />
130
- </div>
131
- </div>
132
- </template>
133
-
134
- <script>
135
- import { mapGetters } from 'vuex'
136
- import selectionConditions from './selection-conditions'
137
- import componentsConfigUtil from './componentsConfigUtil'
138
- import { CirclePlus, Delete } from '@element-plus/icons-vue'
139
-
140
- export default {
141
- name: 'EditableChildFieldSetting',
142
- components: {
143
- selectionConditions
144
- },
145
- props: {
146
- setting: {
147
- type: Object,
148
- default: null
149
- },
150
- tableName: {
151
- type: String,
152
- default: null
153
- }
154
- },
155
- data() {
156
- let actionArr = []
157
- if (this.setting && this.setting.actionArr) {
158
- actionArr = this.setting.actionArr
159
- }
160
- let fieldArr = []
161
- if (this.setting && this.setting.fieldArr) {
162
- fieldArr = this.setting.fieldArr
163
- }
164
- let actionVisibleConditionArr
165
- if (this.setting && this.setting.visibleConditionArr) {
166
- actionVisibleConditionArr = this.setting.visibleConditionArr
167
- }
168
- let modelName
169
- if (this.setting && this.setting.modelName) {
170
- modelName = this.setting.modelName
171
- }
172
- let sumPermission
173
- if (this.setting && this.setting.sumPermission !== null) {
174
- sumPermission = this.setting.sumPermission
175
- }
176
- return {
177
- sumPermission,
178
- subtableConditionItem: null,
179
- attributeArr: null,
180
- showAdditionalCondition: false,
181
- currentRow: null,
182
- multipleSelection: null,
183
- actionArr,
184
- fieldArr,
185
- queryList: null,
186
- fieldMap: null,
187
- fieldNameMap: null,
188
- actionVisibleConditionArr,
189
- buttonType: null,
190
- buttonVisibleCon: null,
191
- showButtonVisibleFlag: false,
192
- clickButton: false,
193
- operationArr: [],
194
- modelName
195
- }
196
- },
197
- watch: {
198
- setting: {
199
- handler(newValue, oldValue) {
200
- if (newValue && newValue.actionArr) {
201
- this.actionArr = newValue.actionArr
202
- }
203
- if (newValue && newValue.fieldArr) {
204
- this.fieldArr = newValue.fieldArr
205
- }
206
- if (newValue && newValue.actionVisibleConditionArr) {
207
- this.actionVisibleConditionArr = newValue.actionVisibleConditionArr
208
- }
209
- this.modelName = newValue.modelName
210
- this.sumPermission = newValue.sumPermission
211
- this.combinationParameters()
212
- },
213
- deep: true
214
- }
215
- // permission: {
216
- // handler(newValue, oldValue) {
217
- // console.log(11111111111111)
218
- // this.combinationParameters()
219
- // }
220
- // },
221
- // actionArr: {
222
- // handler(newValue, oldValue) {
223
- // console.log(22222222222222)
224
- // this.combinationParameters()
225
- // }
226
- // },
227
- // fieldArr: {
228
- // handler(newValue, oldValue) {
229
- // console.log(333333333333333)
230
- // this.combinationParameters()
231
- // },
232
- // deep: true
233
- // },
234
- // actionVisibleConditionArr: {
235
- // handler(newValue, oldValue) {
236
- // console.log(4444444444444444)
237
- // this.combinationParameters()
238
- // },
239
- // deep: true
240
- // }
241
- },
242
- computed: {
243
- ...mapGetters('wfEditor', ['subtableConditionMap'])
244
- },
245
- created() {
246
- if (this.subtableConditionMap) {
247
- if (this.tableName) {
248
- this.subtableConditionItem = this.subtableConditionMap[this.tableName]
249
- this.getAttributeArr()
250
- }
251
- }
252
- },
253
- mounted() {
254
- if (this.subtableConditionMap) {
255
- if (this.tableName) {
256
- this.subtableConditionItem = this.subtableConditionMap[this.tableName]
257
- if (this.subtableConditionMap[this.tableName]) {
258
- this.attributeArr = this.subtableConditionItem.attributeArr
259
- }
260
- }
261
- }
262
- },
263
- methods: {
264
- ...componentsConfigUtil,
265
- getAttributeArr() {
266
- if (this.subtableConditionItem && this.subtableConditionItem.attributeArr) {
267
- this.queryList = this.subtableConditionItem.attributeArr
268
- this.fieldMap = this.subtableConditionItem.fieldMap
269
- this.fieldNameMap = this.subtableConditionItem.fieldNameMap
270
- }
271
- },
272
- savebuttonSetting(param) {
273
- if (param) {
274
- this.currentRow.condition = param.condition
275
- this.currentRow.userCondition = param.userCondition
276
- this.currentRow.parentCondition = param.parentCondition
277
- // this.$set(this.currentRow, 'condition', param.condition)
278
- // this.$set(this.currentRow, 'userCondition', param.userCondition)
279
- // this.$set(this.currentRow, 'parentCondition', param.parentCondition)
280
- this.combinationParameters()
281
- }
282
- this.showAdditionalCondition = false
283
- },
284
- handleCurrentChange(val) {
285
- this.currentRow = val
286
- },
287
- handleSelectionChange(val) {
288
- this.multipleSelection = val
289
- },
290
- selectRow(row) {
291
- this.$refs.table.setCurrentRow(row)
292
- },
293
- add() {
294
- if (!this.fieldArr) {
295
- this.fieldArr = []
296
- }
297
- this.fieldArr.push({
298
- name: null,
299
- constraintRule: null,
300
- condition: null
301
- })
302
- this.combinationParameters()
303
- },
304
- getCurrentRowIndex() {
305
- let index = -1
306
- for (let i = 0; i < this.fieldArr.length; i++) {
307
- if (this.fieldArr[i].name === this.currentRow.name) {
308
- index = i
309
- break
310
- }
311
- }
312
- return index
313
- },
314
- remove() {
315
- if (this.multipleSelection && this.multipleSelection.length > 0) {
316
- for (var i = 0; i < this.multipleSelection.length; i++) {
317
- const selectRow = this.multipleSelection[i]
318
- this.selectRow(selectRow)
319
- const index = this.getCurrentRowIndex()
320
- this.fieldArr.splice(index, 1)
321
- }
322
- // this.$emit('input', this.selectedFields)
323
- this.combinationParameters()
324
- }
325
- },
326
- selectCondition(row) {
327
- this.selectRow(row)
328
- this.showAdditionalCondition = true
329
- },
330
- showButtonVisible(type) {
331
- this.clickButton = true
332
- this.buttonType = type
333
- if (this.actionVisibleConditionArr && this.actionVisibleConditionArr[type]) {
334
- this.buttonVisibleCon = this.actionVisibleConditionArr[type]
335
- // this.$set(this, 'buttonVisibleCon', this.actionVisibleConditionArr[type])
336
- } else {
337
- this.buttonVisibleCon = {}
338
- // this.$set(this, 'buttonVisibleCon', {})
339
- }
340
- this.showButtonVisibleFlag = true
341
- // this.$set(this, 'showButtonVisibleFlag', true)
342
- },
343
- saveButtonVisible(param) {
344
- if (param) {
345
- if (!this.actionVisibleConditionArr) {
346
- this.actionVisibleConditionArr = {}
347
- }
348
- this.actionVisibleConditionArr[this.buttonType] = param
349
- // this.$set(this.actionVisibleConditionArr, this.buttonType, param)
350
- this.combinationParameters()
351
- }
352
- this.showButtonVisibleFlag = false
353
- },
354
- changeActionArr() {
355
- if (this.clickButton) {
356
- this.actionArr.push(this.buttonType)
357
- this.clickButton = false
358
- } else {
359
- this.combinationParameters()
360
- }
361
- },
362
- // 组合参数
363
- combinationParameters() {
364
- const subTableItem = {}
365
- subTableItem.modelName = this.modelName
366
- subTableItem.tableName = this.tableName
367
- subTableItem.permission = this.sumPermission
368
- const actions = []
369
- if (this.actionArr && this.actionArr.length > 0) {
370
- this.actionArr.forEach((type) => {
371
- const action = {}
372
- action.name = type
373
- if (this.actionVisibleConditionArr && this.actionVisibleConditionArr[type]) {
374
- const param = this.actionVisibleConditionArr[type]
375
- action.condition = this.dataToXml(param.condition)
376
- action.parentCondition = param.parentCondition
377
- action.userCondition = param.userCondition
378
- }
379
- actions.push(action)
380
- })
381
- subTableItem.action = actions
382
- }
383
- if (this.fieldArr && this.fieldArr.length > 0) {
384
- const field = []
385
- this.fieldArr.forEach((item) => {
386
- const fieldItem = {}
387
- fieldItem.name = item.name
388
- fieldItem.constraintRule = item.constraintRule
389
- if (item.condition) {
390
- fieldItem.condition = this.dataToXml(item.condition)
391
- }
392
- fieldItem.userCondition = item.userCondition
393
- fieldItem.parentCondition = item.parentCondition
394
- field.push(fieldItem)
395
- })
396
- subTableItem.field = field
397
- }
398
- console.log('触发combinationParameters', subTableItem)
399
- this.$emit('combinationParameters', subTableItem)
400
- }
401
- }
402
- }
403
- </script>
404
-
405
- <style lang="scss" scoped></style>