workflow-editor 0.0.81-up-tmp8 → 0.0.81-up-tmp10

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 (424) hide show
  1. package/dist/index.full.min.js +142 -138
  2. package/es/index.mjs +13 -15
  3. package/es/src/i18n/i18n.mjs +7 -0
  4. package/es/src/i18n/langs/cn.mjs +4 -0
  5. package/es/src/i18n/langs/en.mjs +4 -0
  6. package/es/style.css +153 -153
  7. package/es/workflow-editor/index.mjs +10 -0
  8. package/es/workflow-editor/src/api.mjs +6 -0
  9. package/es/workflow-editor/src/assets/wf-editor-icons.mjs +43 -0
  10. package/es/workflow-editor/src/json-object-templates/auto-task.mjs +7 -0
  11. package/es/workflow-editor/src/json-object-templates/copy-task.mjs +7 -0
  12. package/es/workflow-editor/src/json-object-templates/decision.mjs +7 -0
  13. package/es/workflow-editor/src/json-object-templates/end.mjs +7 -0
  14. package/es/workflow-editor/src/json-object-templates/fork.mjs +7 -0
  15. package/es/workflow-editor/src/json-object-templates/human-decision.mjs +7 -0
  16. package/es/workflow-editor/src/json-object-templates/human-task.mjs +7 -0
  17. package/es/workflow-editor/src/json-object-templates/join.mjs +7 -0
  18. package/es/workflow-editor/src/json-object-templates/process.mjs +9 -0
  19. package/es/workflow-editor/src/json-object-templates/start.mjs +7 -0
  20. package/es/workflow-editor/src/json-object-templates/subprocess.mjs +7 -0
  21. package/es/workflow-editor/src/json-object-templates/transition.mjs +6 -0
  22. package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +13 -0
  23. package/es/workflow-editor/src/main/canvas.vue.mjs +130 -0
  24. package/es/workflow-editor/src/main/canvas.vue2.mjs +4 -0
  25. package/es/workflow-editor/src/main/context-menu.vue.mjs +33 -0
  26. package/es/workflow-editor/src/main/context-menu.vue2.mjs +4 -0
  27. package/es/workflow-editor/src/main/icon-svg.vue.mjs +12 -0
  28. package/es/workflow-editor/src/main/icon-svg.vue2.mjs +4 -0
  29. package/es/workflow-editor/src/main/selection-region.vue.mjs +17 -0
  30. package/es/workflow-editor/src/main/selection-region.vue2.mjs +4 -0
  31. package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +10 -0
  32. package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +4 -0
  33. package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +11 -0
  34. package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +4 -0
  35. package/es/workflow-editor/src/main/toolbox.vue.mjs +16 -0
  36. package/es/workflow-editor/src/main/toolbox.vue2.mjs +4 -0
  37. package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +86 -0
  38. package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +4 -0
  39. package/es/workflow-editor/src/process-service.mjs +21 -0
  40. package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +25 -0
  41. package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +4 -0
  42. package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +22 -0
  43. package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +4 -0
  44. package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +125 -0
  45. package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +60 -0
  46. package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +5 -0
  47. package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +72 -0
  48. package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +18 -0
  49. package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +55 -0
  50. package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +14 -0
  51. package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +20 -0
  52. package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +4 -0
  53. package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +25 -0
  54. package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +36 -0
  55. package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +27 -0
  56. package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +4 -0
  57. package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +31 -0
  58. package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +36 -0
  59. package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +4 -0
  60. package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +20 -0
  61. package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +95 -0
  62. package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +4 -0
  63. package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +16 -0
  64. package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +4 -0
  65. package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +46 -0
  66. package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +4 -0
  67. package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +43 -0
  68. package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +116 -0
  69. package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +60 -0
  70. package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +4 -0
  71. package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +41 -0
  72. package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +25 -0
  73. package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +4 -0
  74. package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +30 -0
  75. package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +4 -0
  76. package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +26 -0
  77. package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +4 -0
  78. package/es/workflow-editor/src/properties-editors/decision.vue.mjs +24 -0
  79. package/es/workflow-editor/src/properties-editors/fork.vue.mjs +21 -0
  80. package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +15 -0
  81. package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +16 -0
  82. package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +38 -0
  83. package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +4 -0
  84. package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +84 -0
  85. package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +62 -0
  86. package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +80 -0
  87. package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +86 -0
  88. package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +43 -0
  89. package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +4 -0
  90. package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +67 -0
  91. package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +18 -0
  92. package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +33 -0
  93. package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +4 -0
  94. package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +56 -0
  95. package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +28 -0
  96. package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +4 -0
  97. package/es/workflow-editor/src/properties-editors/join.vue.mjs +15 -0
  98. package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +88 -0
  99. package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +21 -0
  100. package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +25 -0
  101. package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +17 -0
  102. package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +10 -0
  103. package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +28 -0
  104. package/es/workflow-editor/src/properties-editors/process.vue.mjs +34 -0
  105. package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +64 -0
  106. package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +9 -0
  107. package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +55 -0
  108. package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +20 -0
  109. package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +22 -0
  110. package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +4 -0
  111. package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +14 -0
  112. package/es/workflow-editor/src/properties-editors/transition.vue.mjs +17 -0
  113. package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +4 -0
  114. package/es/workflow-editor/src/properties-editors/user-condition.mjs +49 -0
  115. package/es/workflow-editor/src/store/getters.mjs +4 -0
  116. package/es/workflow-editor/src/store/workflow-editor.mjs +73 -0
  117. package/es/workflow-editor/src/taches/auto-task.vue.mjs +25 -0
  118. package/es/workflow-editor/src/taches/common-methods.mjs +13 -0
  119. package/es/workflow-editor/src/taches/copy-task.vue.mjs +25 -0
  120. package/es/workflow-editor/src/taches/custom-task.vue.mjs +16 -0
  121. package/es/workflow-editor/src/taches/decision.vue.mjs +25 -0
  122. package/es/workflow-editor/src/taches/decision.vue2.mjs +4 -0
  123. package/es/workflow-editor/src/taches/end.vue.mjs +14 -0
  124. package/es/workflow-editor/src/taches/end.vue2.mjs +4 -0
  125. package/es/workflow-editor/src/taches/fork.vue.mjs +25 -0
  126. package/es/workflow-editor/src/taches/fork.vue2.mjs +4 -0
  127. package/es/workflow-editor/src/taches/human-decision.vue.mjs +25 -0
  128. package/es/workflow-editor/src/taches/human-decision.vue2.mjs +4 -0
  129. package/es/workflow-editor/src/taches/human-task.vue.mjs +25 -0
  130. package/es/workflow-editor/src/taches/join.vue.mjs +16 -0
  131. package/es/workflow-editor/src/taches/join.vue2.mjs +4 -0
  132. package/es/workflow-editor/src/taches/joint.vue.mjs +54 -0
  133. package/es/workflow-editor/src/taches/joint.vue2.mjs +4 -0
  134. package/es/workflow-editor/src/taches/start.vue.mjs +14 -0
  135. package/es/workflow-editor/src/taches/start.vue2.mjs +4 -0
  136. package/es/workflow-editor/src/taches/subprocess.vue.mjs +25 -0
  137. package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +30 -0
  138. package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +4 -0
  139. package/es/workflow-editor/src/transitions/broken-line.vue.mjs +32 -0
  140. package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +4 -0
  141. package/es/workflow-editor/src/transitions/curve-line.vue.mjs +33 -0
  142. package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +4 -0
  143. package/es/workflow-editor/src/transitions/straight-line.vue.mjs +13 -0
  144. package/es/workflow-editor/src/transitions/transition.vue.mjs +70 -0
  145. package/es/workflow-editor/src/transitions/transition.vue2.mjs +4 -0
  146. package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +17 -0
  147. package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +4 -0
  148. package/es/workflow-editor/src/util.mjs +180 -0
  149. package/es/workflow-editor/src/workflow-editor.vue.mjs +205 -0
  150. package/es/workflow-editor/src/workflow-editor.vue2.mjs +4 -0
  151. package/es/workflow-editor/src/workflow-history.vue.mjs +35 -0
  152. package/es/workflow-editor/src/workflow-history.vue2.mjs +4 -0
  153. package/lib/index.cjs +4 -4
  154. package/lib/src/i18n/i18n.cjs +3 -0
  155. package/lib/src/i18n/langs/cn.cjs +2 -0
  156. package/lib/src/i18n/langs/en.cjs +2 -0
  157. package/lib/style.css +110 -110
  158. package/lib/workflow-editor/index.cjs +7 -0
  159. package/lib/workflow-editor/src/api.cjs +5 -0
  160. package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +44 -0
  161. package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +5 -0
  162. package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +5 -0
  163. package/lib/workflow-editor/src/json-object-templates/decision.cjs +5 -0
  164. package/lib/workflow-editor/src/json-object-templates/end.cjs +5 -0
  165. package/lib/workflow-editor/src/json-object-templates/fork.cjs +5 -0
  166. package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +5 -0
  167. package/lib/workflow-editor/src/json-object-templates/human-task.cjs +5 -0
  168. package/lib/workflow-editor/src/json-object-templates/join.cjs +5 -0
  169. package/lib/workflow-editor/src/json-object-templates/process.cjs +6 -0
  170. package/lib/workflow-editor/src/json-object-templates/start.cjs +5 -0
  171. package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +5 -0
  172. package/lib/workflow-editor/src/json-object-templates/transition.cjs +4 -0
  173. package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +11 -0
  174. package/lib/workflow-editor/src/main/canvas.vue.cjs +101 -0
  175. package/lib/workflow-editor/src/main/canvas.vue2.cjs +2 -0
  176. package/lib/workflow-editor/src/main/context-menu.vue.cjs +29 -0
  177. package/lib/workflow-editor/src/main/context-menu.vue2.cjs +2 -0
  178. package/lib/workflow-editor/src/main/icon-svg.vue.cjs +10 -0
  179. package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +2 -0
  180. package/lib/workflow-editor/src/main/selection-region.vue.cjs +13 -0
  181. package/lib/workflow-editor/src/main/selection-region.vue2.cjs +2 -0
  182. package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +8 -0
  183. package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +2 -0
  184. package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +9 -0
  185. package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +2 -0
  186. package/lib/workflow-editor/src/main/toolbox.vue.cjs +11 -0
  187. package/lib/workflow-editor/src/main/toolbox.vue2.cjs +2 -0
  188. package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +67 -0
  189. package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +2 -0
  190. package/lib/workflow-editor/src/process-service.cjs +20 -0
  191. package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +20 -0
  192. package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +2 -0
  193. package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +19 -0
  194. package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +2 -0
  195. package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +94 -0
  196. package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +54 -0
  197. package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +4 -0
  198. package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +67 -0
  199. package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +16 -0
  200. package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +50 -0
  201. package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +11 -0
  202. package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +17 -0
  203. package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +2 -0
  204. package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +20 -0
  205. package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +31 -0
  206. package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +22 -0
  207. package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +2 -0
  208. package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +25 -0
  209. package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +31 -0
  210. package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +2 -0
  211. package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +17 -0
  212. package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +93 -0
  213. package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +2 -0
  214. package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +13 -0
  215. package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +2 -0
  216. package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +42 -0
  217. package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +2 -0
  218. package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +37 -0
  219. package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +110 -0
  220. package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +55 -0
  221. package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +2 -0
  222. package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +39 -0
  223. package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +20 -0
  224. package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +2 -0
  225. package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +26 -0
  226. package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +2 -0
  227. package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +19 -0
  228. package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +2 -0
  229. package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +20 -0
  230. package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +18 -0
  231. package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +13 -0
  232. package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +13 -0
  233. package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +31 -0
  234. package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +2 -0
  235. package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +82 -0
  236. package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +56 -0
  237. package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +75 -0
  238. package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +80 -0
  239. package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +39 -0
  240. package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +2 -0
  241. package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +60 -0
  242. package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +15 -0
  243. package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +26 -0
  244. package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +2 -0
  245. package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +49 -0
  246. package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +19 -0
  247. package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +2 -0
  248. package/lib/workflow-editor/src/properties-editors/join.vue.cjs +13 -0
  249. package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +81 -0
  250. package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +18 -0
  251. package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +21 -0
  252. package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +13 -0
  253. package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +7 -0
  254. package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +23 -0
  255. package/lib/workflow-editor/src/properties-editors/process.vue.cjs +24 -0
  256. package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +57 -0
  257. package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +7 -0
  258. package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +50 -0
  259. package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +16 -0
  260. package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +17 -0
  261. package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +2 -0
  262. package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +10 -0
  263. package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +12 -0
  264. package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +2 -0
  265. package/lib/workflow-editor/src/properties-editors/user-condition.cjs +33 -0
  266. package/lib/workflow-editor/src/store/getters.cjs +2 -0
  267. package/lib/workflow-editor/src/store/workflow-editor.cjs +71 -0
  268. package/lib/workflow-editor/src/taches/auto-task.vue.cjs +17 -0
  269. package/lib/workflow-editor/src/taches/common-methods.cjs +11 -0
  270. package/lib/workflow-editor/src/taches/copy-task.vue.cjs +17 -0
  271. package/lib/workflow-editor/src/taches/custom-task.vue.cjs +9 -0
  272. package/lib/workflow-editor/src/taches/decision.vue.cjs +19 -0
  273. package/lib/workflow-editor/src/taches/decision.vue2.cjs +2 -0
  274. package/lib/workflow-editor/src/taches/end.vue.cjs +9 -0
  275. package/lib/workflow-editor/src/taches/end.vue2.cjs +2 -0
  276. package/lib/workflow-editor/src/taches/fork.vue.cjs +19 -0
  277. package/lib/workflow-editor/src/taches/fork.vue2.cjs +2 -0
  278. package/lib/workflow-editor/src/taches/human-decision.vue.cjs +19 -0
  279. package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +2 -0
  280. package/lib/workflow-editor/src/taches/human-task.vue.cjs +17 -0
  281. package/lib/workflow-editor/src/taches/join.vue.cjs +11 -0
  282. package/lib/workflow-editor/src/taches/join.vue2.cjs +2 -0
  283. package/lib/workflow-editor/src/taches/joint.vue.cjs +50 -0
  284. package/lib/workflow-editor/src/taches/joint.vue2.cjs +2 -0
  285. package/lib/workflow-editor/src/taches/start.vue.cjs +9 -0
  286. package/lib/workflow-editor/src/taches/start.vue2.cjs +2 -0
  287. package/lib/workflow-editor/src/taches/subprocess.vue.cjs +17 -0
  288. package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +27 -0
  289. package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +2 -0
  290. package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +28 -0
  291. package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +2 -0
  292. package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +29 -0
  293. package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +2 -0
  294. package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +9 -0
  295. package/lib/workflow-editor/src/transitions/transition.vue.cjs +63 -0
  296. package/lib/workflow-editor/src/transitions/transition.vue2.cjs +2 -0
  297. package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +13 -0
  298. package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +2 -0
  299. package/lib/workflow-editor/src/util.cjs +139 -0
  300. package/lib/workflow-editor/src/workflow-editor.vue.cjs +191 -0
  301. package/lib/workflow-editor/src/workflow-editor.vue2.cjs +2 -0
  302. package/lib/workflow-editor/src/workflow-history.vue.cjs +28 -0
  303. package/lib/workflow-editor/src/workflow-history.vue2.cjs +2 -0
  304. package/package.json +1 -1
  305. package/packages/index.js +50 -0
  306. package/packages/plugins/formValidatorUtil.js +723 -0
  307. package/packages/plugins/index.js +8 -0
  308. package/packages/workflow-editor/index.js +14 -0
  309. package/packages/workflow-editor/src/api.js +7 -0
  310. package/packages/workflow-editor/src/assets/tab-select.png +0 -0
  311. package/packages/workflow-editor/src/assets/tab-selectWhite.png +0 -0
  312. package/packages/workflow-editor/src/assets/wf-editor-icons.js +2 -0
  313. package/packages/workflow-editor/src/constant.js +8 -0
  314. package/packages/workflow-editor/src/json-object-templates/auto-task.js +70 -0
  315. package/packages/workflow-editor/src/json-object-templates/copy-task.js +72 -0
  316. package/packages/workflow-editor/src/json-object-templates/decision.js +11 -0
  317. package/packages/workflow-editor/src/json-object-templates/end.js +14 -0
  318. package/packages/workflow-editor/src/json-object-templates/fork.js +10 -0
  319. package/packages/workflow-editor/src/json-object-templates/human-decision.js +9 -0
  320. package/packages/workflow-editor/src/json-object-templates/human-task.js +208 -0
  321. package/packages/workflow-editor/src/json-object-templates/join.js +10 -0
  322. package/packages/workflow-editor/src/json-object-templates/process.js +99 -0
  323. package/packages/workflow-editor/src/json-object-templates/start.js +13 -0
  324. package/packages/workflow-editor/src/json-object-templates/subprocess.js +31 -0
  325. package/packages/workflow-editor/src/json-object-templates/transition.js +26 -0
  326. package/packages/workflow-editor/src/main/admin-save-dialog.vue +67 -0
  327. package/packages/workflow-editor/src/main/canvas.vue +493 -0
  328. package/packages/workflow-editor/src/main/context-menu.vue +147 -0
  329. package/packages/workflow-editor/src/main/icon-svg.vue +32 -0
  330. package/packages/workflow-editor/src/main/selection-region.vue +66 -0
  331. package/packages/workflow-editor/src/main/tache-history-tooltip.vue +38 -0
  332. package/packages/workflow-editor/src/main/tache-name-input.vue +19 -0
  333. package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +40 -0
  334. package/packages/workflow-editor/src/main/toolbox.vue +60 -0
  335. package/packages/workflow-editor/src/main/wf-history-canvas.vue +309 -0
  336. package/packages/workflow-editor/src/process-json.js +624 -0
  337. package/packages/workflow-editor/src/process-service.js +68 -0
  338. package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +81 -0
  339. package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +155 -0
  340. package/packages/workflow-editor/src/properties-editors/auto-task.vue +74 -0
  341. package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +568 -0
  342. package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +320 -0
  343. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +34 -0
  344. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +268 -0
  345. package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +81 -0
  346. package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +242 -0
  347. package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +23 -0
  348. package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +117 -0
  349. package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +88 -0
  350. package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +143 -0
  351. package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +149 -0
  352. package/packages/workflow-editor/src/properties-editors/common/notice.vue +108 -0
  353. package/packages/workflow-editor/src/properties-editors/common/reminder.vue +272 -0
  354. package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +92 -0
  355. package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +66 -0
  356. package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +354 -0
  357. package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +68 -0
  358. package/packages/workflow-editor/src/properties-editors/common/task-title.vue +165 -0
  359. package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +275 -0
  360. package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +426 -0
  361. package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +272 -0
  362. package/packages/workflow-editor/src/properties-editors/common/variables.vue +139 -0
  363. package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +90 -0
  364. package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +155 -0
  365. package/packages/workflow-editor/src/properties-editors/copy-task.vue +95 -0
  366. package/packages/workflow-editor/src/properties-editors/decision.vue +95 -0
  367. package/packages/workflow-editor/src/properties-editors/fork.vue +77 -0
  368. package/packages/workflow-editor/src/properties-editors/human-decision.vue +49 -0
  369. package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +62 -0
  370. package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +184 -0
  371. package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +359 -0
  372. package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +256 -0
  373. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +405 -0
  374. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +257 -0
  375. package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +430 -0
  376. package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +206 -0
  377. package/packages/workflow-editor/src/properties-editors/human-task/events.vue +60 -0
  378. package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +224 -0
  379. package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +499 -0
  380. package/packages/workflow-editor/src/properties-editors/human-task.vue +107 -0
  381. package/packages/workflow-editor/src/properties-editors/join.vue +49 -0
  382. package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +336 -0
  383. package/packages/workflow-editor/src/properties-editors/process/events.vue +79 -0
  384. package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +68 -0
  385. package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +106 -0
  386. package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +28 -0
  387. package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +88 -0
  388. package/packages/workflow-editor/src/properties-editors/process.vue +115 -0
  389. package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +201 -0
  390. package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +26 -0
  391. package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +216 -0
  392. package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +66 -0
  393. package/packages/workflow-editor/src/properties-editors/subprocess.vue +80 -0
  394. package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +53 -0
  395. package/packages/workflow-editor/src/properties-editors/transition.vue +75 -0
  396. package/packages/workflow-editor/src/properties-editors/user-condition.js +183 -0
  397. package/packages/workflow-editor/src/store/getters.js +33 -0
  398. package/packages/workflow-editor/src/store/workflow-editor.js +153 -0
  399. package/packages/workflow-editor/src/taches/auto-task.vue +99 -0
  400. package/packages/workflow-editor/src/taches/common-methods.js +21 -0
  401. package/packages/workflow-editor/src/taches/copy-task.vue +99 -0
  402. package/packages/workflow-editor/src/taches/custom-task.vue +88 -0
  403. package/packages/workflow-editor/src/taches/decision.vue +102 -0
  404. package/packages/workflow-editor/src/taches/end.vue +76 -0
  405. package/packages/workflow-editor/src/taches/fork.vue +102 -0
  406. package/packages/workflow-editor/src/taches/human-decision.vue +102 -0
  407. package/packages/workflow-editor/src/taches/human-task.vue +113 -0
  408. package/packages/workflow-editor/src/taches/join.vue +91 -0
  409. package/packages/workflow-editor/src/taches/joint.vue +177 -0
  410. package/packages/workflow-editor/src/taches/start.vue +76 -0
  411. package/packages/workflow-editor/src/taches/subprocess.vue +99 -0
  412. package/packages/workflow-editor/src/taches/tache-resizer.vue +80 -0
  413. package/packages/workflow-editor/src/transitions/broken-line.vue +91 -0
  414. package/packages/workflow-editor/src/transitions/curve-line.vue +91 -0
  415. package/packages/workflow-editor/src/transitions/straight-line.vue +26 -0
  416. package/packages/workflow-editor/src/transitions/transition.vue +209 -0
  417. package/packages/workflow-editor/src/transitions/virtual-transition.vue +43 -0
  418. package/packages/workflow-editor/src/util.js +499 -0
  419. package/packages/workflow-editor/src/workflow-editor.vue +852 -0
  420. package/packages/workflow-editor/src/workflow-history.vue +153 -0
  421. package/src/i18n/i18n.js +16 -0
  422. package/src/i18n/langs/cn.js +521 -0
  423. package/src/i18n/langs/en.js +529 -0
  424. package/.vscode/extensions.json +0 -3
@@ -0,0 +1,256 @@
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>
@@ -0,0 +1,405 @@
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>