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,499 @@
1
+ <template>
2
+ <el-dialog
3
+ :show-close="true"
4
+ :append-to-body="true"
5
+ style="width: 100%"
6
+ :title="$t('workflowEditor.condition.combinationCondition')"
7
+ model-value
8
+ @close="closeButtonSetting"
9
+ >
10
+ <div style="overflow-y: auto; max-height: 500px">
11
+ <div class="operation-area">
12
+ <el-button size="small" type="primary" @click="savebuttonSetting">
13
+ <span> {{ $t('workflowEditorPublicModel.save') }}</span>
14
+ </el-button>
15
+ </div>
16
+ <div>
17
+ <el-card class="box-card" shadow="never">
18
+ <template #header>
19
+ <div class="clearfix">
20
+ <span>{{ $t('workflowEditor.condition.personnelScope') }}</span>
21
+ </div>
22
+ </template>
23
+ <div>
24
+ <common-user-condition v-model="myUserCondition" used-in="transactor" />
25
+ </div>
26
+ </el-card>
27
+ <el-card class="box-card" shadow="never">
28
+ <template #header>
29
+ <div class="clearfix">
30
+ <span>{{ $t('workflowEditor.condition.mainTableConditions') }}</span>
31
+ </div>
32
+ </template>
33
+ <div>
34
+ <additional-condition v-model="myParentCondition" />
35
+ </div>
36
+ </el-card>
37
+ <el-card v-if="buttonType !== 'notEmpty' && buttonType !== 'add'" class="box-card" shadow="never">
38
+ <template #header>
39
+ <div>
40
+ <span>{{ $t('workflowEditor.condition.subtableCondition') }}</span>
41
+ </div>
42
+ </template>
43
+ <div>
44
+ <el-row style="padding-bottom: 8px">
45
+ <el-button type="primary" size="small" plain icon="CirclePlus" @click="add">
46
+ {{ $t('workflowEditorPublicModel.add') }}
47
+ </el-button>
48
+ <el-button type="primary" size="small" plain icon="Delete" @click="remove">
49
+ {{ $t('workflowEditorPublicModel.delete') }}
50
+ </el-button>
51
+ </el-row>
52
+ <el-table
53
+ id="tableDataDialog"
54
+ ref="table"
55
+ :data="tableData"
56
+ border
57
+ style="width: 100%"
58
+ highlight-current-row
59
+ @current-change="handleCurrentChange"
60
+ >
61
+ <el-table-column prop="leftBracket" label="(" width="90">
62
+ <template v-slot="scope">
63
+ <el-select v-model="scope.row.leftBracket" size="small" clearable @focus="selectRow(scope.row)">
64
+ <el-option label="" value="" />
65
+ <el-option label="(" value="(" />
66
+ <el-option label="((" value="((" />
67
+ <el-option label="(((" value="(((" />
68
+ </el-select>
69
+ </template>
70
+ </el-table-column>
71
+ <el-table-column :label="$t('workflowEditor.common.fieldName')" width="200">
72
+ <template v-slot="scope">
73
+ <el-select
74
+ v-model="scope.row.propName"
75
+ :filter-method="searchField"
76
+ size="small"
77
+ clearable
78
+ filterable
79
+ @focus="selectRow(scope.row)"
80
+ @change="changeFieldName(scope.$index)"
81
+ >
82
+ <el-option v-for="item in attributeArr" :key="item.value" :label="item.label" :value="item.value" />
83
+ </el-select>
84
+ </template>
85
+ </el-table-column>
86
+ <el-table-column :label="$t('workflowEditor.common.operator')" width="110">
87
+ <template v-slot="scope">
88
+ <el-select v-model="scope.row.operator" size="small" clearable @focus="selectRow(scope.row)">
89
+ <el-option
90
+ v-for="option in operationArr[scope.$index]"
91
+ :key="option.name"
92
+ :label="option.label"
93
+ :value="option.name"
94
+ />
95
+ </el-select>
96
+ </template>
97
+ </el-table-column>
98
+ <el-table-column :label="$t('workflowEditor.common.value')">
99
+ <template v-slot="scope">
100
+ <el-select
101
+ v-if="!scope.row.propValueType"
102
+ v-model="scope.row.propValueType"
103
+ size="small"
104
+ @focus="selectRow(scope.row)"
105
+ >
106
+ <el-option :label="$t('workflowEditor.condition.fillInManually')" value="input" />
107
+ <el-option :label="$t('workflowEditor.condition.environmentVariable')" value="context" />
108
+ <el-option :label="$t('workflowEditor.condition.requestParameters')" value="request" />
109
+ <el-option :label="$t('workflowEditor.condition.mainTableField')" value="obj" />
110
+ <el-option :label="$t('workflowEditor.condition.databaseFields')" value="subObj" />
111
+ <el-option :label="$t('workflowEditor.condition.taskFields')" value="task" />
112
+ <el-option :label="$t('workflowEditor.condition.systemParameter')" value="custom" />
113
+ </el-select>
114
+ <el-select
115
+ v-if="scope.row.propValueType === 'context'"
116
+ v-model="scope.row.propValue"
117
+ clearable
118
+ size="small"
119
+ :title="scope.row.propValue"
120
+ filterable
121
+ default-first-option
122
+ allow-create
123
+ @change="changePropValue(scope.$index)"
124
+ @focus="selectRow(scope.row)"
125
+ >
126
+ <el-option :label="$t('workflowEditor.condition.currentTime')" value="${context.currentTime}" />
127
+ <el-option
128
+ :label="$t('workflowEditor.condition.currentTransactor')"
129
+ value="${context.currentTransactor}"
130
+ />
131
+ <el-option
132
+ :label="$t('workflowEditor.condition.currentTransactorName')"
133
+ value="${context.currentTransactorName}"
134
+ />
135
+ <el-option
136
+ :label="$t('workflowEditor.condition.currentTransactorId')"
137
+ value="${context.currentTransactorId}"
138
+ />
139
+ <el-option
140
+ :label="$t('workflowEditor.condition.currentTransactorMainDepartmentId')"
141
+ value="${context.currentTransactorMainDepartmentId}"
142
+ />
143
+ <el-option
144
+ :label="$t('workflowEditor.condition.currentTransactorMainDepartment')"
145
+ value="${context.currentTransactorMainDepartment}"
146
+ />
147
+ <el-option
148
+ :label="$t('workflowEditor.condition.currentTransactorRoleId')"
149
+ value="${context.currentTransactorRoleId}"
150
+ />
151
+ <el-option
152
+ :label="$t('workflowEditor.condition.currentTransactorRole')"
153
+ value="${context.currentTransactorRole}"
154
+ />
155
+ <el-option
156
+ :label="$t('workflowEditor.condition.currentTransactorWorkGroupId')"
157
+ value="${context.currentTransactorWorkGroupId}"
158
+ />
159
+ <el-option
160
+ :label="$t('workflowEditor.condition.currentTransactorWorkGroup')"
161
+ value="${context.currentTransactorWorkGroup}"
162
+ />
163
+ </el-select>
164
+ <el-select
165
+ v-if="scope.row.propValueType === 'task'"
166
+ v-model="scope.row.propValue"
167
+ clearable
168
+ size="small"
169
+ :title="scope.row.propValue"
170
+ filterable
171
+ default-first-option
172
+ allow-create
173
+ @change="changePropValue(scope.$index)"
174
+ @focus="selectRow(scope.row)"
175
+ >
176
+ <el-option :label="$t('workflowEditor.condition.currentHandler')" value="${task.transactor}" />
177
+ <el-option :label="$t('workflowEditor.condition.currentTaskClient')" value="${task.trustor}" />
178
+ <el-option :label="$t('workflowEditor.condition.currentAssignor')" value="${task.assigner}" />
179
+ <el-option :label="$t('workflowEditor.condition.linkName')" value="${task.name}" />
180
+ <el-option :label="$t('workflowEditor.condition.linkCode')" value="${task.nodeId}" />
181
+ </el-select>
182
+ <el-date-picker
183
+ v-if="scope.row.dataType === 'DATE' && scope.row.propValueType === 'input'"
184
+ v-model="scope.row.propValue"
185
+ size="small"
186
+ clearable
187
+ value-format="YYYY-MM-DD"
188
+ :title="scope.row.propValue"
189
+ type="date"
190
+ @change="changePropValue(scope.$index)"
191
+ />
192
+ <el-date-picker
193
+ v-if="scope.row.dataType === 'TIME' && scope.row.propValueType === 'input'"
194
+ v-model="scope.row.propValue"
195
+ size="small"
196
+ :title="scope.row.propValue"
197
+ clearable
198
+ value-format="YYYY-MM-DD HH:mm:ss"
199
+ type="datetime"
200
+ @change="changePropValue(scope.$index)"
201
+ />
202
+ <el-input
203
+ v-if="
204
+ scope.row.dataType !== 'TIME' &&
205
+ scope.row.dataType !== 'DATE' &&
206
+ scope.row.propValueType === 'input'
207
+ "
208
+ v-model.trim="scope.row.propValue"
209
+ :title="scope.row.propValue"
210
+ clearable
211
+ size="small"
212
+ @change="changePropValue(scope.$index)"
213
+ />
214
+ <el-input
215
+ v-if="scope.row.propValueType === 'request'"
216
+ v-model.trim="scope.row.propValue"
217
+ :title="scope.row.propValue"
218
+ clearable
219
+ size="small"
220
+ @change="changePropValue(scope.$index)"
221
+ />
222
+ <el-select
223
+ v-if="scope.row.propValueType === 'subObj'"
224
+ v-model="scope.row.propValue"
225
+ :title="scope.row.propValue"
226
+ :filter-method="searchField"
227
+ size="small"
228
+ clearable
229
+ filterable
230
+ @change="changePropValue(scope.$index)"
231
+ >
232
+ <el-option
233
+ v-for="item in attributeArr"
234
+ :key="'${subObj.' + item.value + '}'"
235
+ :label="item.label"
236
+ :value="'${subObj.' + item.value + '}'"
237
+ />
238
+ </el-select>
239
+ <el-select
240
+ v-if="scope.row.propValueType === 'obj'"
241
+ v-model="scope.row.propValue"
242
+ :title="scope.row.propValue"
243
+ size="small"
244
+ clearable
245
+ filterable
246
+ @change="changePropValue(scope.$index)"
247
+ >
248
+ <el-option
249
+ v-for="item in parentAttributeArr"
250
+ :key="'${obj.' + item.value + '}'"
251
+ :label="item.label"
252
+ :value="'${obj.' + item.value + '}'"
253
+ />
254
+ </el-select>
255
+ <el-select
256
+ v-if="scope.row.propValueType === 'custom'"
257
+ v-model="scope.row.propValue"
258
+ :title="scope.row.propValue"
259
+ size="small"
260
+ clearable
261
+ filterable
262
+ @change="changePropValue(scope.$index)"
263
+ >
264
+ <el-option
265
+ v-for="key in propSettingKeyList"
266
+ :key="'${custom.' + key + '}'"
267
+ :label="key"
268
+ :value="'${custom.' + key + '}'"
269
+ />
270
+ </el-select>
271
+ </template>
272
+ </el-table-column>
273
+ <el-table-column prop="rightBracket" label=")" width="90" @focus="selectRow(scope.row)">
274
+ <template v-slot="scope">
275
+ <el-select v-model="scope.row.rightBracket" size="small" clearable>
276
+ <el-option label="" value="" />
277
+ <el-option label=")" value=")" />
278
+ <el-option label="))" value="))" />
279
+ <el-option label=")))" value=")))" />
280
+ </el-select>
281
+ </template>
282
+ </el-table-column>
283
+ <el-table-column :label="$t('workflowEditorPublicModel.andOr')" prop="logicOperator" width="110">
284
+ <template v-slot="scope">
285
+ <el-select v-model="scope.row.logicOperator" size="small" clearable @focus="selectRow(scope.row)">
286
+ <el-option :label="$t('workflowEditor.process.perhaps')" value="condition.operator.or" />
287
+ <el-option :label="$t('workflowEditor.process.also')" value="condition.operator.and" />
288
+ </el-select>
289
+ </template>
290
+ </el-table-column>
291
+ </el-table>
292
+ </div>
293
+ </el-card>
294
+ </div>
295
+ </div>
296
+ </el-dialog>
297
+ </template>
298
+ <script>
299
+ // import modulePageService from '@/subsystems/mms/api/module-page'
300
+ import componentsConfigUtil from './componentsConfigUtil'
301
+ import AdditionalCondition from '../common/additional-condition'
302
+ import CommonUserCondition from '../common/common-user-condition'
303
+ import { mapGetters } from 'vuex'
304
+
305
+ export default {
306
+ components: {
307
+ AdditionalCondition,
308
+ CommonUserCondition
309
+ },
310
+ props: {
311
+ conditionList: {
312
+ type: [Array, String],
313
+ default: null
314
+ },
315
+ userCondition: {
316
+ type: String,
317
+ default: null
318
+ },
319
+ parentCondition: {
320
+ type: String,
321
+ default: null
322
+ },
323
+ attributeMap: {
324
+ type: Object,
325
+ default: null
326
+ },
327
+ buttonType: {
328
+ type: Object,
329
+ default: null
330
+ }
331
+ },
332
+ data() {
333
+ let myUserCondition
334
+ if (this.userCondition && this.userCondition !== '') {
335
+ myUserCondition = this.userCondition
336
+ }
337
+ let myParentCondition
338
+ if (this.parentCondition && this.parentCondition !== '') {
339
+ myParentCondition = this.parentCondition
340
+ }
341
+ return {
342
+ myUserCondition,
343
+ myParentCondition,
344
+ tableData: null,
345
+ attributeArr: [],
346
+ fieldMap: {},
347
+ fieldNameMap: {},
348
+ queryList: [],
349
+ operationArr: [],
350
+ parentAttributeArr: [],
351
+ dialogVisible: true
352
+ }
353
+ },
354
+ created() {
355
+ this.getAttributeArr()
356
+ // if (this.tableData === null || this.tableData === undefined) {
357
+ // this.add()
358
+ // }
359
+ },
360
+ computed: {
361
+ ...mapGetters('wfEditor', ['propSettingKeyList'])
362
+ },
363
+ mounted() {
364
+ if (this.conditionList) {
365
+ if (typeof this.conditionList === 'object') {
366
+ this.tableData = this.conditionList
367
+ } else {
368
+ this.tableData = this.xmlToData(this.conditionList)
369
+ }
370
+ this.getOperatorsArr(this.tableData)
371
+ }
372
+ },
373
+ methods: {
374
+ ...componentsConfigUtil,
375
+ // 添加
376
+ add() {
377
+ if (!this.tableData) {
378
+ this.tableData = []
379
+ }
380
+ this.tableData.push({
381
+ leftBracket: '',
382
+ propName: '',
383
+ operator: '',
384
+ propValue: '',
385
+ rightBracket: '',
386
+ logicOperator: 'condition.operator.or',
387
+ dataType: '',
388
+ propDbName: ''
389
+ })
390
+ this.operationArr.push([])
391
+ },
392
+ // 删除
393
+ remove() {
394
+ if (this.currentRow === null) {
395
+ this.$alert(this.$t('workflowEditorMessage.pleaseSelectARow'))
396
+ return
397
+ }
398
+ let index = this.getRowIndex(this.currentRow)
399
+ this.tableData.splice(index, 1)
400
+ if (this.tableData.length > 0) {
401
+ index = index <= this.tableData.length - 1 ? index : this.tableData.length - 1
402
+ this.$refs.table.setCurrentRow(this.tableData[index])
403
+ }
404
+ },
405
+ // 改变选择的属性
406
+ changeFieldName(index) {
407
+ // const selectData = this.$refs.table.store.states.data
408
+ const propName = this.currentRow.propName
409
+ const item = this.fieldMap[propName]
410
+ if (item) {
411
+ this.tableData[index].dataType = item.type
412
+ this.tableData[index].propDbName = item.propDbName
413
+ }
414
+ this.operationArr[index] = this.getOperators(item)
415
+ },
416
+ // 根据code获取属性
417
+ getAttributeArr() {
418
+ if (this.attributeMap && this.attributeMap.attributeArr) {
419
+ this.attributeArr = this.attributeMap.attributeArr
420
+ this.queryList = this.attributeMap.attributeArr
421
+ this.fieldMap = this.attributeMap.fieldMap
422
+ this.fieldNameMap = this.attributeMap.fieldNameMap
423
+ this.parentAttributeArr = this.attributeMap.parentAttributeArr
424
+ }
425
+ },
426
+ // 选择行
427
+ selectRow(row) {
428
+ this.attributeArr = this.queryList
429
+ this.$refs.table.setCurrentRow(row)
430
+ },
431
+ handleCurrentChange(val) {
432
+ this.currentRow = val
433
+ },
434
+ // 属性搜索方法
435
+ searchField(query) {
436
+ if (query) {
437
+ this.attributeArr = this.queryList.filter((item) => {
438
+ return item.label.indexOf(query) > -1 || item.value.indexOf(query) > -1
439
+ })
440
+ }
441
+ },
442
+ getRowIndex(row) {
443
+ for (let i = 0; i < this.tableData.length; i++) {
444
+ if (this.tableData[i].propName === row.propName) {
445
+ return i
446
+ }
447
+ }
448
+ return -1
449
+ },
450
+ // 保存关闭方法
451
+ savebuttonSetting() {
452
+ if (this.tableData && this.tableData.length > 0) {
453
+ for (var i = 0; i < this.tableData.length; i++) {
454
+ const item = this.tableData[i]
455
+ if (!item.propName) {
456
+ this.$alert(this.$t('workflowEditorMessage.blankFieldNameOrValue'))
457
+ return
458
+ }
459
+ }
460
+ }
461
+ const param = {
462
+ userCondition: this.myUserCondition,
463
+ parentCondition: this.myParentCondition,
464
+ condition: this.tableData
465
+ }
466
+ this.$emit('close', param)
467
+ },
468
+ closeButtonSetting() {
469
+ this.savebuttonSetting()
470
+ this.$emit('close', null)
471
+ },
472
+ changePropValue(index) {
473
+ if (this.tableData[index] && this.tableData[index].propValue) {
474
+ if (this.tableData[index].propValueType) {
475
+ if (this.tableData[index].propValueType === 'request') {
476
+ if (this.tableData[index].propValue.indexOf('${request.') === -1) {
477
+ this.tableData[index].propValue = '${request.' + this.tableData[index].propValue
478
+ }
479
+ if (this.tableData[index].propValue.indexOf('}') === -1) {
480
+ this.tableData[index].propValue = this.tableData[index].propValue + '}'
481
+ }
482
+ }
483
+ if (this.tableData[index].propValueType === 'input') {
484
+ if (this.tableData[index].propValue.indexOf('${input.') === -1) {
485
+ this.tableData[index].propValue = '${input.' + this.tableData[index].propValue
486
+ }
487
+ if (this.tableData[index].propValue.indexOf('}') === -1) {
488
+ this.tableData[index].propValue = this.tableData[index].propValue + '}'
489
+ }
490
+ }
491
+ }
492
+ } else {
493
+ this.tableData[index]['propValueType'] = null
494
+ // this.$set(this.tableData[index], 'propValueType', null)
495
+ }
496
+ }
497
+ }
498
+ }
499
+ </script>
@@ -0,0 +1,107 @@
1
+ <template>
2
+ <el-dialog
3
+ model-value
4
+ top="10vh"
5
+ :title="$t('workflowEditor.task.linkAttribute')"
6
+ :center="true"
7
+ append-to-body
8
+ class="properties-editor"
9
+ @open="$emit('open')"
10
+ @opend="$emit('opend')"
11
+ @close="$emit('close')"
12
+ @closed="$emit('closed')"
13
+ >
14
+ <el-tabs v-model="activeTab" type="border-card" @tab-click="handleClick">
15
+ <el-tab-pane :label="$t('workflowEditor.task.basicProperties')" name="basicProperties">
16
+ <basic-properties
17
+ v-model:id="model.ref.attr.id"
18
+ v-model:name="model.ref.attr.name"
19
+ :model="model.ref.basicProperties"
20
+ />
21
+ </el-tab-pane>
22
+ <el-tab-pane :label="$t('workflowEditor.task.settingOfHandler')" name="transactors">
23
+ <transactor-settings :model="model.ref.transactorSettings" :basic-properties="model.ref.basicProperties" />
24
+ </el-tab-pane>
25
+ <el-tab-pane :label="$t('workflowEditor.task.permissionSettings')" name="permissions">
26
+ <permission-settings v-model="model.ref.permissionSettings" />
27
+ </el-tab-pane>
28
+ <el-tab-pane :label="$t('workflowEditor.task.autoFillInFieldSettings')" name="autoFilledFields">
29
+ <auto-filled-fields v-model="model.ref.autoFilledFields" v-model:opinion-setting="model.ref.opinionSetting" />
30
+ </el-tab-pane>
31
+ <el-tab-pane :label="$t('workflowEditor.task.reminderSettings')" name="reminders">
32
+ <!-- <reminder v-model="model.ref.reminder" /> -->
33
+ <notice-reminder v-model:reminder-value="model.ref.reminder" :task-notice-value="model.ref.taskNotice" />
34
+ </el-tab-pane>
35
+ <el-tab-pane :label="$t('workflowEditor.task.eventProcessing')" name="events">
36
+ <events v-model="model.ref.events" />
37
+ </el-tab-pane>
38
+ <el-tab-pane :label="$t('workflowEditor.task.linkVariable')" name="variables">
39
+ <variables v-model="model.ref.variables" />
40
+ </el-tab-pane>
41
+ </el-tabs>
42
+ </el-dialog>
43
+ </template>
44
+
45
+ <script>
46
+ import BasicProperties from './human-task/basic-properties'
47
+ import PermissionSettings from './human-task/permission-settings'
48
+ import TransactorSettings from './common/transactor-settings'
49
+ import AutoFilledFields from './common/auto-filled-fields.vue'
50
+ // import Reminder from './common/reminder'
51
+ import Variables from './common/variables'
52
+ import Events from './human-task/events'
53
+ import NoticeReminder from './common/notice-reminder.vue'
54
+ export default {
55
+ name: 'HumanTaskPropertiesEditor',
56
+ components: {
57
+ BasicProperties,
58
+ TransactorSettings,
59
+ PermissionSettings,
60
+ AutoFilledFields,
61
+ // Reminder,
62
+ Events,
63
+ Variables,
64
+ NoticeReminder
65
+ },
66
+ props: {
67
+ model: {
68
+ type: Object,
69
+ default: null
70
+ }
71
+ },
72
+ data() {
73
+ if (!this.model.ref.taskNotice) {
74
+ this.model.ref.taskNotice = {}
75
+ }
76
+ return {
77
+ activeTab: 'basicProperties',
78
+ dialogVisible: true
79
+ }
80
+ },
81
+ computed: {
82
+ formModel() {
83
+ return this.model.ref
84
+ }
85
+ },
86
+ mounted() {
87
+ this.$watch('model.ref.attr.id', function (newVal, oldVal) {
88
+ this.model.id = newVal
89
+ })
90
+ this.$watch('model.ref.attr.name', function (newVal, oldVal) {
91
+ this.model.name = newVal
92
+ })
93
+ },
94
+ methods: {
95
+ handleClick(tab, event) {
96
+ // console.log(tab, event)
97
+ }
98
+ }
99
+ }
100
+ </script>
101
+
102
+ <style scoped>
103
+ /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
104
+ .properties-editor :deep(.el-dialog__body) {
105
+ padding-top: 0;
106
+ }
107
+ </style>
@@ -0,0 +1,49 @@
1
+ <template>
2
+ <el-dialog
3
+ model-value
4
+ :title="$t('workflowEditor.task.convergedProperties')"
5
+ :center="true"
6
+ append-to-body
7
+ @open="$emit('open')"
8
+ @opend="$emit('opend')"
9
+ @close="$emit('close')"
10
+ @closed="$emit('closed')"
11
+ >
12
+ <el-form>
13
+ <el-form-item :label="$t('workflowEditor.task.name')" label-width="40px">
14
+ <el-input v-model="formModel.attr.name" />
15
+ </el-form-item>
16
+ </el-form>
17
+ </el-dialog>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ name: 'ForkPropertiesEditor',
23
+ props: {
24
+ model: {
25
+ type: Object,
26
+ default: null
27
+ }
28
+ },
29
+ data(){
30
+ return {
31
+ dialogVisible: true
32
+ }
33
+ },
34
+ computed: {
35
+ formModel() {
36
+ return this.model.ref
37
+ }
38
+ },
39
+ mounted() {
40
+ this.$watch('model.ref.attr.name', function(newVal) {
41
+ this.model.name = newVal
42
+ })
43
+ }
44
+ }
45
+ </script>
46
+
47
+ <style lang="scss" scoped>
48
+
49
+ </style>