agilebuilder-ui 1.1.65-tmp16 → 1.1.65-tmp17

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 (441) hide show
  1. package/lib/IntervalSelection/index.js +5 -7
  2. package/lib/IntervalSelection/src/sectionDate.vue.js +17 -21
  3. package/lib/IntervalSelection/src/sectionDate.vue2.js +2 -4
  4. package/lib/_virtual/__vite-browser-external.js +2 -4
  5. package/lib/_virtual/_plugin-vue_export-helper.js +6 -8
  6. package/lib/breadcrumb/index.js +3 -5
  7. package/lib/breadcrumb/src/breadcrumb.vue.js +28 -19
  8. package/lib/breadcrumb/src/breadcrumb.vue2.js +2 -4
  9. package/lib/chat-embed/index.js +3 -5
  10. package/lib/chat-embed/src/chat-addition-data.vue.js +5 -7
  11. package/lib/chat-embed/src/chat-addition-data.vue2.js +11 -13
  12. package/lib/chat-embed/src/chat-addition-data.vue3.js +2 -4
  13. package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +5 -7
  14. package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +17 -20
  15. package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +2 -4
  16. package/lib/chat-embed/src/chat-bubble-footer.vue.js +5 -7
  17. package/lib/chat-embed/src/chat-bubble-footer.vue2.js +17 -22
  18. package/lib/chat-embed/src/chat-bubble-footer.vue3.js +2 -4
  19. package/lib/chat-embed/src/chat-embed-message.js +14 -20
  20. package/lib/chat-embed/src/chat-sender.vue.js +5 -7
  21. package/lib/chat-embed/src/chat-sender.vue2.js +110 -123
  22. package/lib/chat-embed/src/chat-sender.vue3.js +2 -4
  23. package/lib/chat-embed/src/components/answer-auto-chart.vue.js +5 -7
  24. package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +42 -50
  25. package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +2 -4
  26. package/lib/chat-embed/src/components/answer-home-chart.vue.js +5 -7
  27. package/lib/chat-embed/src/components/answer-home-chart.vue2.js +3 -6
  28. package/lib/chat-embed/src/components/answer-home-chart.vue3.js +2 -4
  29. package/lib/chat-embed/src/components/answer-interaction-data.vue.js +5 -7
  30. package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +74 -84
  31. package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +2 -4
  32. package/lib/chat-embed/src/components/history-detail.vue.js +5 -7
  33. package/lib/chat-embed/src/components/history-detail.vue2.js +27 -32
  34. package/lib/chat-embed/src/components/history-detail.vue3.js +2 -4
  35. package/lib/chat-embed/src/header.vue.js +5 -7
  36. package/lib/chat-embed/src/header.vue2.js +25 -32
  37. package/lib/chat-embed/src/header.vue3.js +2 -4
  38. package/lib/chat-embed/src/index.vue.js +5 -7
  39. package/lib/chat-embed/src/index.vue2.js +185 -211
  40. package/lib/chat-embed/src/index.vue3.js +2 -4
  41. package/lib/chat-embed/src/recommendation-message.vue.js +5 -7
  42. package/lib/chat-embed/src/recommendation-message.vue2.js +5 -8
  43. package/lib/chat-embed/src/recommendation-message.vue3.js +2 -4
  44. package/lib/chat-embed/src/sidebar-item.vue.js +5 -7
  45. package/lib/chat-embed/src/sidebar-item.vue2.js +84 -93
  46. package/lib/chat-embed/src/sidebar-item.vue3.js +2 -4
  47. package/lib/chat-embed/src/type.js +3 -5
  48. package/lib/chat-embed/src/util/chat-embed-util.js +35 -41
  49. package/lib/chat-embed/src/util/history-message-util.js +63 -85
  50. package/lib/chat-embed/src/util/mcp-utils.js +5 -8
  51. package/lib/chat-embed/src/util/text-file-util.js +7 -11
  52. package/lib/chat-embed/src/voice/index.js +5 -7
  53. package/lib/chat-embed/src/voice/js/crypto-js.js +987 -995
  54. package/lib/chat-embed/src/voice/js/processor/index.umd.js +161 -169
  55. package/lib/chat-embed/src/voice/js/timer.js +7 -10
  56. package/lib/chat-embed/src/voice/voice.vue.js +61 -70
  57. package/lib/date-picker-range/index.js +5 -7
  58. package/lib/date-picker-range/index.vue.js +5 -7
  59. package/lib/date-picker-range/index.vue2.js +59 -63
  60. package/lib/date-picker-range/index.vue3.js +2 -4
  61. package/lib/department-tree/index.js +3 -5
  62. package/lib/department-tree/src/department-tree.vue.js +11 -17
  63. package/lib/department-tree-inline/index.js +3 -5
  64. package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +17 -27
  65. package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +2 -4
  66. package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +17 -27
  67. package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +2 -4
  68. package/lib/department-tree-inline/src/department-tree-inline.vue.js +8 -13
  69. package/lib/department-tree-inline/src/department-tree-service.js +8 -10
  70. package/lib/department-tree-inline/src/search-result.vue.js +19 -23
  71. package/lib/department-tree-inline/src/search-result.vue2.js +2 -4
  72. package/lib/department-tree-mobile/index.js +4 -7
  73. package/lib/department-tree-mobile/src/department-tree-app.vue.js +9 -12
  74. package/lib/department-tree-mobile/src/department-tree-app.vue2.js +2 -4
  75. package/lib/department-tree-mobile/src/department-tree-app.vue3.js +3 -5
  76. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +80 -91
  77. package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +3 -4
  78. package/lib/department-tree-mobile/src/department-tree-service.js +32 -42
  79. package/lib/department-tree-mobile/src/dept-path.vue.js +10 -11
  80. package/lib/department-tree-mobile/src/dept-path.vue2.js +3 -4
  81. package/lib/department-tree-mobile/src/dept-result.vue.js +11 -14
  82. package/lib/department-tree-mobile/src/dept-result.vue2.js +3 -4
  83. package/lib/department-user-tree/index.js +3 -5
  84. package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +10 -14
  85. package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +2 -4
  86. package/lib/department-user-tree/src/department-user-single-tree.vue.js +9 -14
  87. package/lib/department-user-tree/src/department-user-tree.vue.js +14 -20
  88. package/lib/department-user-tree-inline/index.js +3 -5
  89. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +17 -28
  90. package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +2 -4
  91. package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +21 -33
  92. package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +2 -4
  93. package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +8 -13
  94. package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +6 -9
  95. package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +8 -11
  96. package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +7 -12
  97. package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +7 -12
  98. package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +8 -14
  99. package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +14 -20
  100. package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +17 -23
  101. package/lib/department-user-tree-inline/src/group-user-tree-service.js +2 -3
  102. package/lib/department-user-tree-inline/src/search-result.vue.js +12 -15
  103. package/lib/department-user-tree-inline/src/search-result.vue2.js +2 -4
  104. package/lib/department-user-tree-mobile/index.js +4 -7
  105. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +9 -12
  106. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +2 -4
  107. package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +3 -5
  108. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +93 -104
  109. package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +3 -4
  110. package/lib/department-user-tree-mobile/src/department-user-tree-service.js +20 -30
  111. package/lib/department-user-tree-mobile/src/dept-path.vue.js +10 -11
  112. package/lib/department-user-tree-mobile/src/dept-path.vue2.js +3 -4
  113. package/lib/department-user-tree-mobile/src/dept-result.vue.js +11 -15
  114. package/lib/department-user-tree-mobile/src/dept-result.vue2.js +3 -4
  115. package/lib/directives/prevent-reclick.js +2 -3
  116. package/lib/dynamic-source-select/index.js +5 -7
  117. package/lib/dynamic-source-select/src/dynamic-source-select-service.js +13 -15
  118. package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +173 -183
  119. package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +2 -4
  120. package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +2 -4
  121. package/lib/dynamic-source-select/src/events.js +2 -3
  122. package/lib/empty-state/index.vue.js +5 -8
  123. package/lib/empty-state/index.vue2.js +3 -4
  124. package/lib/fs-preview/index.js +5 -7
  125. package/lib/fs-preview/src/fs-preview.vue.js +63 -72
  126. package/lib/fs-preview/src/fs-preview.vue2.js +2 -4
  127. package/lib/fs-upload/index.js +5 -7
  128. package/lib/fs-upload/src/fs-upload-multi.vue.js +24 -32
  129. package/lib/fs-upload/src/fs-upload-single.vue.js +30 -39
  130. package/lib/fs-upload/src/fs-upload.vue.js +10 -16
  131. package/lib/fs-upload/src/see-big-picture.vue.js +8 -11
  132. package/lib/fs-upload-list/index.js +5 -7
  133. package/lib/fs-upload-list/src/fs-upload-list.vue.js +33 -40
  134. package/lib/fs-upload-list/src/fs-upload-list.vue2.js +2 -4
  135. package/lib/fs-upload-new/index.js +5 -7
  136. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +34 -38
  137. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +3 -4
  138. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +101 -109
  139. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +3 -4
  140. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +5 -7
  141. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +26 -33
  142. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +2 -4
  143. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +27 -31
  144. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +3 -4
  145. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +18 -24
  146. package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +3 -4
  147. package/lib/fs-upload-new/src/fs-button-upload.vue.js +5 -7
  148. package/lib/fs-upload-new/src/fs-button-upload.vue2.js +36 -43
  149. package/lib/fs-upload-new/src/fs-button-upload.vue3.js +2 -4
  150. package/lib/fs-upload-new/src/fs-drag-upload.vue.js +5 -7
  151. package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +37 -45
  152. package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +2 -4
  153. package/lib/fs-upload-new/src/fs-preview-new.vue.js +5 -8
  154. package/lib/fs-upload-new/src/fs-preview-new.vue2.js +61 -70
  155. package/lib/fs-upload-new/src/fs-preview-new.vue3.js +2 -4
  156. package/lib/fs-upload-new/src/fs-preview-new.vue4.js +2 -4
  157. package/lib/fs-upload-new/src/fs-upload-new.vue.js +37 -47
  158. package/lib/fs-upload-new/src/fs-upload-new.vue2.js +3 -4
  159. package/lib/hamburger/index.js +3 -5
  160. package/lib/hamburger/src/hamburger.vue.js +10 -14
  161. package/lib/hamburger/src/hamburger.vue2.js +2 -4
  162. package/lib/index.js +40 -383
  163. package/lib/json-view/json-view-dialog.vue.js +12 -15
  164. package/lib/json-view/json-view-dialog.vue2.js +3 -4
  165. package/lib/json-view/json-view.vue.js +3 -4
  166. package/lib/json-view/json-view.vue2.js +27 -31
  167. package/lib/multipart-upload/index.js +5 -7
  168. package/lib/multipart-upload/src/index.vue.js +7 -11
  169. package/lib/multipart-upload/src/multipart-upload-form.vue.js +40 -49
  170. package/lib/multipart-upload/src/multipart-upload-list.vue.js +59 -67
  171. package/lib/organization-input/index.js +5 -7
  172. package/lib/organization-input/src/organization-input.vue.js +31 -37
  173. package/lib/organization-input/src/organization-input.vue2.js +2 -4
  174. package/lib/plugins/export-data-new.js +96 -104
  175. package/lib/plugins/export-data.js +45 -51
  176. package/lib/plugins/index.js +4 -8
  177. package/lib/plugins/public-method.js +2 -3
  178. package/lib/remove-department/index.js +3 -5
  179. package/lib/remove-department/src/remove-department.vue.js +13 -19
  180. package/lib/remove-department/src/remove-dept-service.js +9 -10
  181. package/lib/remove-user/index.js +5 -7
  182. package/lib/remove-user/src/remove-user-service.js +3 -4
  183. package/lib/remove-user/src/remove-user.vue.js +16 -22
  184. package/lib/remove-workgroup/index.js +5 -7
  185. package/lib/remove-workgroup/src/remove-workgroup-service.js +3 -4
  186. package/lib/remove-workgroup/src/remove-workgroup.vue.js +12 -18
  187. package/lib/rich-editor/index.js +5 -7
  188. package/lib/rich-editor/index.vue.js +28 -76
  189. package/lib/rich-editor/tinymce/zh_CN.js +2 -2
  190. package/lib/rich-editor/viewer.vue.js +7 -10
  191. package/lib/row-form/index.js +5 -7
  192. package/lib/row-form/index.vue.js +5 -7
  193. package/lib/row-form/index.vue2.js +41 -47
  194. package/lib/row-form/index.vue3.js +2 -4
  195. package/lib/row-form/operation.vue.js +22 -26
  196. package/lib/row-form/operation.vue2.js +3 -4
  197. package/lib/scan-code-input/index.js +5 -7
  198. package/lib/scan-code-input/src/events.js +11 -13
  199. package/lib/scan-code-input/src/scan-code-input.vue.js +9 -15
  200. package/lib/scan-code-input-browser/index.js +5 -7
  201. package/lib/scan-code-input-browser/src/scan-code-input.vue.js +16 -21
  202. package/lib/secret-info/index.js +5 -7
  203. package/lib/secret-info/index.vue.js +6 -9
  204. package/lib/src/api/sso-service.js +34 -36
  205. package/lib/src/api/tab.js +8 -9
  206. package/lib/src/assets/401/401.gif.js +2 -4
  207. package/lib/src/assets/404/404-cloud.png.js +2 -4
  208. package/lib/src/assets/404/404.png.js +2 -4
  209. package/lib/src/assets/chat-embed/robot.gif.js +2 -4
  210. package/lib/src/assets/chat-embed/robot.svg.js +2 -4
  211. package/lib/src/assets/nonemessage.png.js +2 -4
  212. package/lib/src/components/Affix/index.vue.js +5 -7
  213. package/lib/src/components/Affix/index.vue2.js +56 -58
  214. package/lib/src/components/Affix/index.vue3.js +2 -4
  215. package/lib/src/components/Card/index.js +33 -38
  216. package/lib/src/components/Scrollbar/index.vue.js +33 -37
  217. package/lib/src/components/Scrollbar/index.vue2.js +2 -4
  218. package/lib/src/directives/permission/index.js +3 -5
  219. package/lib/src/directives/permission/permission.js +7 -9
  220. package/lib/src/i18n/i18n.js +3 -7
  221. package/lib/src/i18n/langs/cn.js +2 -4
  222. package/lib/src/i18n/langs/en.js +2 -4
  223. package/lib/src/mixins/resizeMixin.js +2 -3
  224. package/lib/src/permission.js +43 -46
  225. package/lib/src/router/index.js +16 -10
  226. package/lib/src/store/getters.js +2 -4
  227. package/lib/src/store/index.js +16 -13
  228. package/lib/src/store/modules/app.js +3 -4
  229. package/lib/src/store/modules/chat-ai-store.js +19 -22
  230. package/lib/src/store/modules/permission.js +10 -11
  231. package/lib/src/store/modules/system.js +7 -9
  232. package/lib/src/store/modules/tab-content.js +13 -15
  233. package/lib/src/store/modules/table.js +2 -3
  234. package/lib/src/store/modules/user.js +89 -95
  235. package/lib/src/utils/auth-api.js +3 -5
  236. package/lib/src/utils/auth.js +69 -139
  237. package/lib/src/utils/calculator/calculator-factory-wf.js +48 -49
  238. package/lib/src/utils/calculator/calculator-factory.js +57 -58
  239. package/lib/src/utils/calculator/calculator-util.js +29 -32
  240. package/lib/src/utils/chat-ai-util.js +17 -25
  241. package/lib/src/utils/common-util.js +271 -356
  242. package/lib/src/utils/eventBus.js +3 -6
  243. package/lib/src/utils/file-util.js +15 -16
  244. package/lib/src/utils/global-prop.js +21 -37
  245. package/lib/src/utils/guid.js +5 -8
  246. package/lib/src/utils/i18n-util.js +16 -24
  247. package/lib/src/utils/iconUtils.js +16 -23
  248. package/lib/src/utils/index.js +26 -40
  249. package/lib/src/utils/insert_css.js +8 -7
  250. package/lib/src/utils/json-util.js +25 -27
  251. package/lib/src/utils/jump-page-utils.js +172 -180
  252. package/lib/src/utils/local-storage.js +2 -3
  253. package/lib/src/utils/menu.js +10 -11
  254. package/lib/src/utils/permission.js +22 -26
  255. package/lib/src/utils/permissionAuth.js +102 -136
  256. package/lib/src/utils/range-selector.js +41 -45
  257. package/lib/src/utils/request.js +77 -86
  258. package/lib/src/utils/resize.js +5 -5
  259. package/lib/src/utils/restful-interface-utils.js +12 -15
  260. package/lib/src/utils/util.js +6 -26
  261. package/lib/src/utils/validate.js +10 -20
  262. package/lib/src/utils/voice-setting-cache.js +140 -153
  263. package/lib/src/utils/watermark-cache.js +9 -14
  264. package/lib/src/utils/watermark.js +23 -30
  265. package/lib/src/utils/workflow-util.js +25 -26
  266. package/lib/src/views/dsc-component/Sidebar/Item.vue.js +5 -7
  267. package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +8 -11
  268. package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +2 -4
  269. package/lib/src/views/dsc-component/Sidebar/Link.vue.js +9 -12
  270. package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +19 -26
  271. package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +2 -4
  272. package/lib/src/views/dsc-component/Sidebar/index.vue.js +12 -20
  273. package/lib/src/views/dsc-component/tabs/tab-content.vue.js +21 -26
  274. package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +2 -4
  275. package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +2 -4
  276. package/lib/src/views/error-page/401.vue.js +9 -13
  277. package/lib/src/views/error-page/401.vue2.js +2 -4
  278. package/lib/src/views/error-page/404.vue.js +7 -11
  279. package/lib/src/views/error-page/404.vue2.js +2 -4
  280. package/lib/src/views/layout/EmptyLayout.vue.js +6 -8
  281. package/lib/src/views/layout/Layout.vue.js +12 -19
  282. package/lib/src/views/layout/Layout.vue2.js +2 -4
  283. package/lib/src/views/layout/NewLayout.vue.js +6 -10
  284. package/lib/src/views/layout/components/AppMain.vue.js +9 -11
  285. package/lib/src/views/layout/components/AppMain.vue2.js +2 -4
  286. package/lib/src/views/layout/components/Breadcrumb/index.vue.js +44 -37
  287. package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +2 -4
  288. package/lib/src/views/layout/components/Menubar/Item.vue.js +5 -7
  289. package/lib/src/views/layout/components/Menubar/Item.vue2.js +12 -14
  290. package/lib/src/views/layout/components/Menubar/Item.vue3.js +2 -4
  291. package/lib/src/views/layout/components/Menubar/Link.vue.js +9 -12
  292. package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +15 -24
  293. package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +2 -4
  294. package/lib/src/views/layout/components/Menubar/index.vue.js +19 -30
  295. package/lib/src/views/layout/components/Sidebar/Item.vue.js +6 -8
  296. package/lib/src/views/layout/components/Sidebar/Item.vue2.js +3 -4
  297. package/lib/src/views/layout/components/Sidebar/Link.vue.js +8 -11
  298. package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +11 -17
  299. package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +2 -4
  300. package/lib/src/views/layout/components/Sidebar/index.vue.js +18 -25
  301. package/lib/src/views/layout/components/iframe-page.vue.js +8 -10
  302. package/lib/src/views/layout/components/iframe-page.vue2.js +2 -4
  303. package/lib/src/views/layout/components/tabs/tab-content.vue.js +10 -14
  304. package/lib/src/views/layout/components/tabs/tab-content.vue2.js +2 -4
  305. package/lib/src/views/layout/components/tabs/tab-content.vue3.js +2 -4
  306. package/lib/src/views/layout/mixin/ResizeHandler.js +3 -5
  307. package/lib/src/views/layout/tab-content-iframe-index.vue.js +8 -10
  308. package/lib/src/views/layout/tab-content-iframe-index.vue2.js +2 -4
  309. package/lib/src/views/layout/tab-content-index.vue.js +12 -18
  310. package/lib/src/views/layout/tab-content-index.vue2.js +2 -4
  311. package/lib/src/views/login/authredirect.vue.js +2 -3
  312. package/lib/src/views/redirect/index.vue.js +17 -8
  313. package/lib/src/views/svg-icon/src/svg-icon.vue.js +2 -4
  314. package/lib/src/views/wf-history/tache-subprocess-history.vue.js +11 -13
  315. package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +2 -4
  316. package/lib/style.css +685 -685
  317. package/lib/super-grid/index.js +5 -7
  318. package/lib/super-grid/src/apis.js +221 -231
  319. package/lib/super-grid/src/columns-config.vue.js +16 -22
  320. package/lib/super-grid/src/components/grid-icon.vue.js +26 -34
  321. package/lib/super-grid/src/components/grid-radio-input.vue.js +15 -18
  322. package/lib/super-grid/src/components/grid-radio-input.vue2.js +3 -4
  323. package/lib/super-grid/src/components/mobile-table-card.js +73 -83
  324. package/lib/super-grid/src/components/select-input.vue.js +98 -106
  325. package/lib/super-grid/src/components/select-input.vue2.js +3 -4
  326. package/lib/super-grid/src/custom-formatter.js +69 -74
  327. package/lib/super-grid/src/dynamic-input.vue.js +142 -159
  328. package/lib/super-grid/src/eventBus.js +3 -6
  329. package/lib/super-grid/src/events.js +34 -36
  330. package/lib/super-grid/src/formValidatorUtil.js +62 -65
  331. package/lib/super-grid/src/formatter.js +36 -41
  332. package/lib/super-grid/src/group-column.vue.js +8 -13
  333. package/lib/super-grid/src/header-context-menu.vue.js +10 -13
  334. package/lib/super-grid/src/header-context-menu.vue2.js +2 -4
  335. package/lib/super-grid/src/index-column.vue.js +7 -10
  336. package/lib/super-grid/src/normal-column-content.vue.js +186 -205
  337. package/lib/super-grid/src/normal-column-content.vue2.js +2 -4
  338. package/lib/super-grid/src/normal-column.vue.js +40 -55
  339. package/lib/super-grid/src/normal-column.vue2.js +2 -4
  340. package/lib/super-grid/src/public-methods.js +12 -14
  341. package/lib/super-grid/src/row-detail.vue.js +7 -10
  342. package/lib/super-grid/src/row-operation.vue.js +19 -26
  343. package/lib/super-grid/src/row-operation.vue2.js +2 -4
  344. package/lib/super-grid/src/scan-util.js +24 -26
  345. package/lib/super-grid/src/search-button.vue.js +12 -17
  346. package/lib/super-grid/src/search-condition-input.vue.js +8 -12
  347. package/lib/super-grid/src/search-condition-list.vue.js +10 -13
  348. package/lib/super-grid/src/search-form-advancedQuery.vue.js +13 -23
  349. package/lib/super-grid/src/search-form-advancedQuery.vue2.js +2 -4
  350. package/lib/super-grid/src/search-form-dialog.vue.js +9 -13
  351. package/lib/super-grid/src/search-form-item.vue.js +16 -24
  352. package/lib/super-grid/src/search-form-item.vue2.js +2 -4
  353. package/lib/super-grid/src/search-form-mobile.vue.js +13 -22
  354. package/lib/super-grid/src/search-form-mobile.vue2.js +2 -4
  355. package/lib/super-grid/src/search-form-number.vue.js +9 -14
  356. package/lib/super-grid/src/search-form-open.vue.js +7 -13
  357. package/lib/super-grid/src/search-form-ordinarySearch.vue.js +11 -19
  358. package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +2 -4
  359. package/lib/super-grid/src/search-form.vue.js +65 -77
  360. package/lib/super-grid/src/search-form.vue2.js +2 -4
  361. package/lib/super-grid/src/search-methods.js +2 -3
  362. package/lib/super-grid/src/selection-column.vue.js +7 -9
  363. package/lib/super-grid/src/store.js +3 -4
  364. package/lib/super-grid/src/super-grid-service.js +121 -128
  365. package/lib/super-grid/src/super-grid.vue.js +186 -217
  366. package/lib/super-grid/src/super-grid.vue2.js +2 -4
  367. package/lib/super-grid/src/utils.js +265 -322
  368. package/lib/super-grid/src/view-image-dialog.vue.js +26 -33
  369. package/lib/super-icon/index.js +5 -7
  370. package/lib/super-icon/src/index.vue.js +5 -7
  371. package/lib/super-icon/src/index.vue2.js +8 -11
  372. package/lib/super-icon/src/index.vue3.js +2 -4
  373. package/lib/super-nine-grid/index.js +5 -7
  374. package/lib/super-nine-grid/src/apis.js +5 -8
  375. package/lib/super-nine-grid/src/custom-formatter.js +5 -7
  376. package/lib/super-nine-grid/src/formatter.js +28 -29
  377. package/lib/super-nine-grid/src/search-form-number.vue.js +8 -12
  378. package/lib/super-nine-grid/src/search-form.vue.js +33 -40
  379. package/lib/super-nine-grid/src/search-form.vue2.js +2 -4
  380. package/lib/super-nine-grid/src/search-methods.js +2 -3
  381. package/lib/super-nine-grid/src/store.js +3 -4
  382. package/lib/super-nine-grid/src/super-grid-service.js +5 -9
  383. package/lib/super-nine-grid/src/super-nine-grid.vue.js +95 -105
  384. package/lib/super-nine-grid/src/super-nine-grid.vue2.js +2 -4
  385. package/lib/super-nine-grid/src/utils.js +31 -27
  386. package/lib/svg-icon/index.js +5 -7
  387. package/lib/svg-icon/src/svg-icon.vue.js +8 -10
  388. package/lib/svg-icon/src/svg-icon.vue2.js +2 -4
  389. package/lib/utils/gogocodeTransfer.js +23 -28
  390. package/lib/utils/memory-cache-utils.js +3 -5
  391. package/lib/utils/organization.js +40 -53
  392. package/lib/utils/utils.js +27 -29
  393. package/lib/utils/value-set.js +68 -70
  394. package/lib/valid-code/index.js +5 -7
  395. package/lib/valid-code/src/valid-code.vue.js +10 -13
  396. package/lib/valid-code/src/valid-code.vue2.js +2 -4
  397. package/lib/workflow-button/index.js +3 -5
  398. package/lib/workflow-button/src/workflow-button.vue.js +34 -39
  399. package/lib/workflow-history-list/index.js +5 -7
  400. package/lib/workflow-history-list/src/api.js +2 -3
  401. package/lib/workflow-history-list/src/workflow-history-list.vue.js +59 -65
  402. package/lib/workflow-history-list/src/workflow-history-list.vue2.js +2 -4
  403. package/lib/workgroup-tree/index.js +5 -7
  404. package/lib/workgroup-tree/src/workgroup-tree.vue.js +11 -17
  405. package/lib/workgroup-tree-inline/index.js +3 -5
  406. package/lib/workgroup-tree-inline/src/search-result.vue.js +21 -25
  407. package/lib/workgroup-tree-inline/src/search-result.vue2.js +2 -4
  408. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +43 -52
  409. package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +2 -4
  410. package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +5 -7
  411. package/lib/workgroup-tree-mobile/index.js +5 -8
  412. package/lib/workgroup-tree-mobile/src/dept-result.vue.js +11 -14
  413. package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +3 -4
  414. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +9 -12
  415. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +2 -4
  416. package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +3 -5
  417. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +76 -86
  418. package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +3 -4
  419. package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +20 -28
  420. package/lib/workgroup-user-tree/index.js +5 -7
  421. package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +11 -17
  422. package/lib/workgroup-user-tree-inline/index.js +3 -5
  423. package/lib/workgroup-user-tree-inline/src/search-result.vue.js +21 -25
  424. package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +2 -4
  425. package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +9 -11
  426. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +34 -43
  427. package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +2 -4
  428. package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +10 -11
  429. package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +3 -4
  430. package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +11 -15
  431. package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +3 -4
  432. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +9 -12
  433. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +2 -4
  434. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +3 -5
  435. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +93 -104
  436. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +3 -4
  437. package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +16 -25
  438. package/lib/year-range-picker/index.js +3 -5
  439. package/lib/year-range-picker/src/year-range-picker.vue.js +9 -12
  440. package/package.json +1 -1
  441. package/vite.config.js +11 -11
@@ -1,30 +1,23 @@
1
- import { Upload as e, ZoomIn as l, View as i, Delete as t } from "@element-plus/icons-vue";
2
- import { $emit as o } from "../../utils/gogocodeTransfer.js";
3
- import { getToken as s } from "../../src/utils/auth.js";
4
- import { isImage as a } from "../../src/utils/util.js";
5
- import { isPlateSys as n, getSystemFrontendUrlWith as r, getKkFilePreviewUrl as p } from "../../src/utils/common-util.js";
6
- import { resolveComponent as d, openBlock as u, createElementBlock as c, Fragment as h, createVNode as f, withCtx as m, createElementVNode as w, createBlock as v, createCommentVNode as g, createTextVNode as I, toDisplayString as b } from "vue";
7
- import P from "../../fs-preview/src/fs-preview.vue.js";
8
- import U from "../../_virtual/_plugin-vue_export-helper.js";
9
- const F = { data() {
10
- const i2 = { Authorization: s() };
11
- let t2 = window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload";
12
- return n(window.$vueApp.config.globalProperties.systemCode) && (t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), { deleteUuids: [], headers: i2, defaultAction: t2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: this.fileList, ElIconUpload2: e, ElIconZoomIn: l };
13
- }, components: { FsPreview: P, ElIconView: i, ElIconDelete: t }, name: "MultipartUploadForm", props: { value: { type: String, default: null }, fileInfo: { type: Object, default: () => ({ name: null, serverPath: null }) }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 30, multiple: false, accept: null }) }, customViewUrl: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, uploadAble: { type: Boolean, default: true }, deletaAble: { type: Boolean, default: true }, fileList: { type: Array, default: () => [] } }, created() {
1
+ "use strict";
2
+ const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.js"), o = require("../../src/utils/auth.js"), l = require("../../src/utils/util.js"), i = require("../../src/utils/common-util.js"), s = require("vue"), a = require("../../fs-preview/src/fs-preview.vue.js"), n = require("../../_virtual/_plugin-vue_export-helper.js"), r = { data() {
3
+ const t2 = { Authorization: o.getToken() };
4
+ let l2 = window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload";
5
+ return i.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (l2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), { deleteUuids: [], headers: t2, defaultAction: l2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: this.fileList, ElIconUpload2: e.Upload, ElIconZoomIn: e.ZoomIn };
6
+ }, components: { FsPreview: a, ElIconView: e.View, ElIconDelete: e.Delete }, name: "MultipartUploadForm", props: { value: { type: String, default: null }, fileInfo: { type: Object, default: () => ({ name: null, serverPath: null }) }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 30, multiple: false, accept: null }) }, customViewUrl: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, uploadAble: { type: Boolean, default: true }, deletaAble: { type: Boolean, default: true }, fileList: { type: Array, default: () => [] } }, created() {
14
7
  }, mounted() {
15
8
  this.getFileList();
16
9
  }, methods: { openAnnexUpload() {
17
10
  this.annexUploadFlag = true;
18
11
  }, handleBeforeUpload(e2) {
19
- let l2 = this.fileSetObj.limitFileSize;
20
- if (void 0 === l2 && (l2 = 30), e2.size > 1024 * l2 * 1024)
21
- return this.$message({ type: "warning", message: this.$t("imatrixUIMessage.exceedFileSize", { fileSize: l2 }), showClose: true }), false;
22
- }, uploadOnSuccess(e2, l2) {
12
+ let t2 = this.fileSetObj.limitFileSize;
13
+ if (void 0 === t2 && (t2 = 30), e2.size > 1024 * t2 * 1024)
14
+ return this.$message({ type: "warning", message: this.$t("imatrixUIMessage.exceedFileSize", { fileSize: t2 }), showClose: true }), false;
15
+ }, uploadOnSuccess(e2, o2) {
23
16
  if (e2)
24
- if (o(this, "upload-success", { showName: e2.name, serverPath: e2.serverPath }), this.fileSetObj.multiple)
17
+ if (t.$emit(this, "upload-success", { showName: e2.name, serverPath: e2.serverPath }), this.fileSetObj.multiple)
25
18
  if (this.fileInfo.showName) {
26
- const l3 = this.fileInfo.showName.split(","), i2 = this.fileInfo.serverPath.split(",");
27
- l3.push(e2.name), i2.push(e2.serverPath), this.fileInfo.showName = l3.join(","), this.fileInfo.serverPath = i2.join(",");
19
+ const t2 = this.fileInfo.showName.split(","), o3 = this.fileInfo.serverPath.split(",");
20
+ t2.push(e2.name), o3.push(e2.serverPath), this.fileInfo.showName = t2.join(","), this.fileInfo.serverPath = o3.join(",");
28
21
  } else
29
22
  this.fileInfo.showName = e2.name, this.fileInfo.serverPath = e2.serverPath;
30
23
  else
@@ -33,50 +26,48 @@ const F = { data() {
33
26
  }, preview() {
34
27
  this.getFileList(), this.showPreviewMulti = true;
35
28
  }, previewSingle(e2) {
36
- a(e2.showName) ? (this.previewImageInfo = e2, this.showPreviewSingleImage = true) : this.previewDoc(e2);
29
+ l.isImage(e2.showName) ? (this.previewImageInfo = e2, this.showPreviewSingleImage = true) : this.previewDoc(e2);
37
30
  }, getFileList() {
38
31
  if (this.customViewUrl)
39
32
  this.showFileList = this.fileList;
40
33
  else {
41
- const e2 = this.fileInfo.showName.split(","), l2 = this.fileInfo.serverPath.split(",");
42
- if (0 === e2.length || 0 === l2.length || e2.length !== l2.length)
34
+ const e2 = this.fileInfo.showName.split(","), t2 = this.fileInfo.serverPath.split(",");
35
+ if (0 === e2.length || 0 === t2.length || e2.length !== t2.length)
43
36
  return;
44
- const i2 = [], t2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + s();
37
+ const i2 = [], s2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + o.getToken();
45
38
  for (let o2 = 0; o2 < e2.length; o2++) {
46
- const s2 = e2[o2];
47
- if (s2 && l2[o2]) {
48
- const e3 = { showName: s2, serverPath: l2[o2], src: t2 + "&showName=" + s2 + "&serverPath=" + l2[o2] };
49
- a(s2) ? e3.isImg = true : e3.isImg = false, i2.push(e3);
39
+ const a2 = e2[o2];
40
+ if (a2 && t2[o2]) {
41
+ const e3 = { showName: a2, serverPath: t2[o2], src: s2 + "&showName=" + a2 + "&serverPath=" + t2[o2] };
42
+ l.isImage(a2) ? e3.isImg = true : e3.isImg = false, i2.push(e3);
50
43
  }
51
44
  }
52
45
  this.showFileList = i2;
53
46
  }
54
47
  }, previewDoc(e2) {
55
- const l2 = s();
48
+ const t2 = o.getToken();
56
49
  if (window.$vueApp.config.globalProperties.customPreviewUrl)
57
- window.open(r(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + e2.serverPath + "&showName=" + encodeURI(e2.showName), e2.showName);
50
+ window.open(i.getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + e2.serverPath + "&showName=" + encodeURI(e2.showName), e2.showName);
58
51
  else {
59
- let i2;
60
- const t2 = e2.showName, o2 = e2.serverPath;
61
- let s2 = window.$vueApp.config.globalProperties.baseURL;
62
- if (n(window.$vueApp.config.globalProperties.systemCode) && (s2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
63
- const e3 = s2 + "/common/super-form/downloads?jwt=" + l2 + "&showName=" + encodeURI(t2) + "&serverPath=" + o2;
64
- p(e3 + "&fullfilename=" + t2).then((e4) => {
65
- window.open(e4, t2);
52
+ let o2;
53
+ const l2 = e2.showName, s2 = e2.serverPath;
54
+ let a2 = window.$vueApp.config.globalProperties.baseURL;
55
+ if (i.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (a2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
56
+ const e3 = a2 + "/common/super-form/downloads?jwt=" + t2 + "&showName=" + encodeURI(l2) + "&serverPath=" + s2 + "&fullfilename=" + l2;
57
+ i.getKkFilePreviewUrl(e3).then((e4) => {
58
+ window.open(e4, l2);
66
59
  });
67
60
  } else
68
- i2 = s2 + "/common/fs-upload/preview?jwt=" + l2, i2 = i2 + "&showName=" + encodeURI(t2) + "&serverPath=" + o2, window.open(i2, t2);
61
+ o2 = a2 + "/common/fs-upload/preview?jwt=" + t2, o2 = o2 + "&showName=" + encodeURI(l2) + "&serverPath=" + s2, window.open(o2, l2);
69
62
  }
70
63
  }, deleteRow(e2) {
71
- const l2 = this.showFileList[e2], i2 = [], t2 = [];
72
- for (let l3 = 0; l3 < this.showFileList.length; l3++)
73
- l3 !== e2 && (i2.push(this.showFileList[l3].showName), t2.push(this.showFileList[l3].serverPath));
74
- this.fileInfo.showName = i2.join(","), this.fileInfo.serverPath = t2.join(","), this.getFileList(), o(this, "delete-success", { deleteFile: l2, all: this.showFileList }), o(this, "delete", this.showFileList, e2);
75
- } }, emits: ["close", "upload-success", "delete-success", "delete", "update:value", , "close", , "update:value"] }, y = { class: "group-link-btn-main" };
76
- const $ = U(F, [["render", function(e2, l2, i2, t2, o2, s2) {
77
- const a2 = d("ElIconUpload2"), n2 = d("el-icon"), r2 = d("el-link"), p2 = d("ElIconZoomIn"), P2 = d("el-input"), U2 = d("el-button"), F2 = d("el-upload"), $2 = d("el-dialog"), x = d("el-image"), L = d("el-table-column"), j = d("el-icon-view"), k = d("el-tooltip"), A = d("el-icon-delete"), N = d("el-table"), _ = d("fs-preview");
78
- return u(), c("div", null, [i2.disabled ? (u(), v(_, { key: 1, "file-list": o2.showFileList, label: i2.value }, null, 8, ["file-list", "label"])) : (u(), c(h, { key: 0 }, [f(P2, { ref: "item", disabled: i2.disabled, "model-value": i2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: m(() => [w("div", y, [i2.disabled ? g("", true) : (u(), v(r2, { key: 0, type: "info", underline: false, onClick: s2.openAnnexUpload }, { icon: m(() => [f(n2, { size: 14 }, { default: m(() => [f(a2)]), _: 1 })]), _: 1 }, 8, ["onClick"])), f(r2, { size: "default", type: "info", underline: false, onClick: s2.preview }, { icon: m(() => [f(n2, { size: 14 }, { default: m(() => [f(p2)]), _: 1 })]), _: 1 }, 8, ["onClick"])])]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), f($2, { modelValue: o2.annexUploadFlag, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => o2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "30%" }, { default: m(() => [o2.annexUploadFlag ? (u(), v(F2, { key: 0, accept: i2.fileSetObj.accept ? i2.fileSetObj.accept : null, action: o2.defaultAction, "before-upload": s2.handleBeforeUpload, headers: o2.headers, "on-success": s2.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: m(() => [f(U2, null, { default: m(() => [I(b(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : g("", true)]), _: 1 }, 8, ["modelValue", "title"]), f($2, { modelValue: o2.showPreviewSingleImage, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => o2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: l2[2] || (l2[2] = (l3) => e2.$emit("close")) }, { title: m(() => [w("span", null, b(e2.$t("imatrixUIPublicModel.previewImage")) + " ", 1)]), default: m(() => [o2.previewImageInfo && o2.previewImageInfo.isImg ? (u(), v(x, { key: 0, "preview-src-list": [o2.previewImageInfo.src], src: o2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])) : g("", true)]), _: 1 }, 8, ["modelValue", "title"]), f($2, { modelValue: o2.showPreviewMulti, "onUpdate:modelValue": l2[3] || (l2[3] = (e3) => o2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: l2[4] || (l2[4] = (l3) => e2.$emit("close")) }, { title: m(() => [w("span", null, b(e2.$t("imatrixUIPublicModel.preview")) + " ", 1)]), default: m(() => [f(N, { data: o2.showFileList, "show-header": false }, { default: m(() => [f(L, { prop: "showName", width: "300" }), f(L, { align: "right" }, { default: m((l3) => [f(k, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: m(() => [f(n2, { style: { cursor: "pointer" }, onClick: (e3) => s2.previewSingle(l3.row) }, { default: m(() => [f(j)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), i2.disabled ? g("", true) : (u(), v(L, { key: 0 }, { default: m((l3) => [f(k, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: m(() => [f(n2, { style: { cursor: "pointer" }, onClick: (e3) => s2.deleteRow(l3.$index) }, { default: m(() => [f(A)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
64
+ const o2 = this.showFileList[e2], l2 = [], i2 = [];
65
+ for (let t2 = 0; t2 < this.showFileList.length; t2++)
66
+ t2 !== e2 && (l2.push(this.showFileList[t2].showName), i2.push(this.showFileList[t2].serverPath));
67
+ this.fileInfo.showName = l2.join(","), this.fileInfo.serverPath = i2.join(","), this.getFileList(), t.$emit(this, "delete-success", { deleteFile: o2, all: this.showFileList }), t.$emit(this, "delete", this.showFileList, e2);
68
+ } }, emits: ["close", "upload-success", "delete-success", "delete", "update:value", , "close", , "update:value"] }, d = { class: "group-link-btn-main" };
69
+ const c = n(r, [["render", function(e2, t2, o2, l2, i2, a2) {
70
+ const n2 = s.resolveComponent("ElIconUpload2"), r2 = s.resolveComponent("el-icon"), c2 = s.resolveComponent("el-link"), p = s.resolveComponent("ElIconZoomIn"), h = s.resolveComponent("el-input"), u = s.resolveComponent("el-button"), m = s.resolveComponent("el-upload"), w = s.resolveComponent("el-dialog"), f = s.resolveComponent("el-image"), v = s.resolveComponent("el-table-column"), g = s.resolveComponent("el-icon-view"), I = s.resolveComponent("el-tooltip"), C = s.resolveComponent("el-icon-delete"), P = s.resolveComponent("el-table"), b = s.resolveComponent("fs-preview");
71
+ return s.openBlock(), s.createElementBlock("div", null, [o2.disabled ? (s.openBlock(), s.createBlock(b, { key: 1, "file-list": i2.showFileList, label: o2.value }, null, 8, ["file-list", "label"])) : (s.openBlock(), s.createElementBlock(s.Fragment, { key: 0 }, [s.createVNode(h, { ref: "item", disabled: o2.disabled, "model-value": o2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: s.withCtx(() => [s.createElementVNode("div", d, [o2.disabled ? s.createCommentVNode("", true) : (s.openBlock(), s.createBlock(c2, { key: 0, type: "info", underline: false, onClick: a2.openAnnexUpload }, { icon: s.withCtx(() => [s.createVNode(r2, { size: 14 }, { default: s.withCtx(() => [s.createVNode(n2)]), _: 1 })]), _: 1 }, 8, ["onClick"])), s.createVNode(c2, { size: "default", type: "info", underline: false, onClick: a2.preview }, { icon: s.withCtx(() => [s.createVNode(r2, { size: 14 }, { default: s.withCtx(() => [s.createVNode(p)]), _: 1 })]), _: 1 }, 8, ["onClick"])])]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), s.createVNode(w, { modelValue: i2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "30%" }, { default: s.withCtx(() => [i2.annexUploadFlag ? (s.openBlock(), s.createBlock(m, { key: 0, accept: o2.fileSetObj.accept ? o2.fileSetObj.accept : null, action: i2.defaultAction, "before-upload": a2.handleBeforeUpload, headers: i2.headers, "on-success": a2.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: s.withCtx(() => [s.createVNode(u, null, { default: s.withCtx(() => [s.createTextVNode(s.toDisplayString(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : s.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), s.createVNode(w, { modelValue: i2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: s.withCtx(() => [s.createElementVNode("span", null, s.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")) + " ", 1)]), default: s.withCtx(() => [i2.previewImageInfo && i2.previewImageInfo.isImg ? (s.openBlock(), s.createBlock(f, { key: 0, "preview-src-list": [i2.previewImageInfo.src], src: i2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])) : s.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), s.createVNode(w, { modelValue: i2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: s.withCtx(() => [s.createElementVNode("span", null, s.toDisplayString(e2.$t("imatrixUIPublicModel.preview")) + " ", 1)]), default: s.withCtx(() => [s.createVNode(P, { data: i2.showFileList, "show-header": false }, { default: s.withCtx(() => [s.createVNode(v, { prop: "showName", width: "300" }), s.createVNode(v, { align: "right" }, { default: s.withCtx((t3) => [s.createVNode(I, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: s.withCtx(() => [s.createVNode(r2, { style: { cursor: "pointer" }, onClick: (e3) => a2.previewSingle(t3.row) }, { default: s.withCtx(() => [s.createVNode(g)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), o2.disabled ? s.createCommentVNode("", true) : (s.openBlock(), s.createBlock(v, { key: 0 }, { default: s.withCtx((t3) => [s.createVNode(I, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: s.withCtx(() => [s.createVNode(r2, { style: { cursor: "pointer" }, onClick: (e3) => a2.deleteRow(t3.$index) }, { default: s.withCtx(() => [s.createVNode(C)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
79
72
  }]]);
80
- export {
81
- $ as default
82
- };
73
+ module.exports = c;
@@ -1,27 +1,21 @@
1
- import { Upload as e, Paperclip as l, Close as i, View as t, Delete as o } from "@element-plus/icons-vue";
2
- import { getToken as a } from "../../src/utils/auth.js";
3
- import { isImage as n } from "../../src/utils/util.js";
4
- import { isPlateSys as s, getSystemFrontendUrlWith as p, getKkFilePreviewUrl as r } from "../../src/utils/common-util.js";
5
- import { resolveComponent as d, openBlock as u, createElementBlock as c, Fragment as m, createVNode as h, withCtx as f, createBlock as w, createCommentVNode as g, createElementVNode as v, createTextVNode as b, toDisplayString as y, renderList as P } from "vue";
6
- import U from "../../fs-preview/src/fs-preview.vue.js";
7
- import N from "../../_virtual/_plugin-vue_export-helper.js";
8
- const F = { data() {
9
- const l2 = { Authorization: a() };
1
+ "use strict";
2
+ const e = require("@element-plus/icons-vue"), t = require("../../src/utils/auth.js"), l = require("../../src/utils/util.js"), o = require("../../src/utils/common-util.js"), i = require("vue"), a = require("../../fs-preview/src/fs-preview.vue.js"), n = require("../../_virtual/_plugin-vue_export-helper.js"), s = { data() {
3
+ const l2 = { Authorization: t.getToken() };
10
4
  let i2 = window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload";
11
- return s(window.$vueApp.config.globalProperties.systemCode) && (i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), { deleteUuids: [], headers: l2, defaultAction: i2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: [], uploadingFile: [], cancelUploadFile: [], fileContent: [], chunkSize: 5242880, ElIconUpload2: e };
12
- }, components: { FsPreview: U, ElIconPaperclip: l, ElIconClose: i, ElIconView: t, ElIconDelete: o }, name: "MultipartUploadList", props: { value: { type: String, default: null }, entity: { type: Object, default: null }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 10, multiple: false, accept: null }) }, disabled: { type: Boolean, default: false } }, created() {
5
+ return o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), { deleteUuids: [], headers: l2, defaultAction: i2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: [], uploadingFile: [], cancelUploadFile: [], fileContent: [], chunkSize: 5242880, ElIconUpload2: e.Upload };
6
+ }, components: { FsPreview: a, ElIconPaperclip: e.Paperclip, ElIconClose: e.Close, ElIconView: e.View, ElIconDelete: e.Delete }, name: "MultipartUploadList", props: { value: { type: String, default: null }, entity: { type: Object, default: null }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 10, multiple: false, accept: null }) }, disabled: { type: Boolean, default: false } }, created() {
13
7
  }, mounted() {
14
8
  this.fileSetObj.limitFileSize || (this.fileSetObj.limitFileSize = 10);
15
9
  const e2 = this.entity[this.fileSetObj.showNameData.dbName], l2 = this.entity[this.fileSetObj.serverNameData.dbName];
16
10
  if (e2 && l2) {
17
- const i2 = e2.split(","), t2 = l2.split(",");
11
+ const i2 = e2.split(","), a2 = l2.split(",");
18
12
  i2.forEach((e3, l3) => {
19
- this.fileContent.push({ name: e3, serverName: t2[l3] });
20
- const i3 = a();
21
- let o2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + i3;
22
- s(window.$vueApp.config.globalProperties.systemCode) && (o2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/downloads?jwt=" + i3);
23
- const n2 = o2 + "&showName=" + encodeURI(e3) + "&serverPath=" + t2[l3];
24
- this.showFileList.push({ showName: e3, serverPath: t2[l3], src: n2 });
13
+ this.fileContent.push({ name: e3, serverName: a2[l3] });
14
+ const i3 = t.getToken();
15
+ let n2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + i3;
16
+ o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (n2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/downloads?jwt=" + i3);
17
+ const s2 = n2 + "&showName=" + encodeURI(e3) + "&serverPath=" + a2[l3];
18
+ this.showFileList.push({ showName: e3, serverPath: a2[l3], src: s2 });
25
19
  });
26
20
  }
27
21
  }, methods: { openAnnexUpload() {
@@ -29,76 +23,74 @@ const F = { data() {
29
23
  }, async uploadFile(e2) {
30
24
  if (this.uploadingFile.length > 0 && !this.fileSetObj.multiple)
31
25
  return void this.$message({ showClose: true, message: "文件单选,请勿同时上传多份文件!", type: "warning" });
32
- const l2 = Date.now();
33
- this.uploadingFile.push({ name: e2.raw.name, uploadProgress: 0, serverName: l2 });
34
- const i2 = e2.raw, t2 = i2.size, o2 = Math.ceil(t2 / this.chunkSize);
35
- i2.size;
36
- const a2 = { fileName: i2.name, chunkCount: o2 };
26
+ const t2 = Date.now();
27
+ this.uploadingFile.push({ name: e2.raw.name, uploadProgress: 0, serverName: t2 });
28
+ const l2 = e2.raw, o2 = l2.size, i2 = Math.ceil(o2 / this.chunkSize);
29
+ l2.size;
30
+ const a2 = { fileName: l2.name, chunkCount: i2 };
37
31
  this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/create", a2).then(async (e3) => {
38
32
  if (this.cancelUploadFile, this.cancelUploadFile.indexOf(a2.serverName) > 0)
39
33
  return;
40
- const n2 = this.uploadingFile.findIndex((e4) => e4.serverName === l2), s2 = e3.serverName;
41
- this.uploadingFile[n2] = { uploadProgress: 0, name: i2.name, serverName: s2, folder: e3.folder }, this.uploadingFile;
42
- const p2 = [];
43
- for (let l3 = 0; l3 < o2; l3++) {
44
- const a3 = l3 * this.chunkSize, r2 = Math.min(t2, a3 + this.chunkSize), d2 = i2.slice(a3, r2), u2 = new FormData();
45
- if (u2.append("folder", e3.folder), u2.append("serverName", s2), u2.append("file", d2), this.cancelUploadFile.indexOf(s2) > 0)
34
+ const n2 = this.uploadingFile.findIndex((e4) => e4.serverName === t2), s2 = e3.serverName;
35
+ this.uploadingFile[n2] = { uploadProgress: 0, name: l2.name, serverName: s2, folder: e3.folder }, this.uploadingFile;
36
+ const r2 = [];
37
+ for (let t3 = 0; t3 < i2; t3++) {
38
+ const a3 = t3 * this.chunkSize, p2 = Math.min(o2, a3 + this.chunkSize), d2 = l2.slice(a3, p2), c2 = new FormData();
39
+ if (c2.append("folder", e3.folder), c2.append("serverName", s2), c2.append("file", d2), this.cancelUploadFile.indexOf(s2) > 0)
46
40
  break;
47
- await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/upload", u2).then((e4) => {
48
- p2.push(e4.uploadName);
49
- const i3 = parseInt((l3 + 1) / o2 * 100);
50
- this.uploadingFile[n2].uploadProgress = i3 > 100 ? 100 : i3, this.uploadingFile[n2] = this.uploadingFile[n2], this.uploadingFile;
41
+ await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/upload", c2).then((e4) => {
42
+ r2.push(e4.uploadName);
43
+ const l3 = parseInt((t3 + 1) / i2 * 100);
44
+ this.uploadingFile[n2].uploadProgress = l3 > 100 ? 100 : l3, this.uploadingFile[n2] = this.uploadingFile[n2], this.uploadingFile;
51
45
  });
52
46
  }
53
- this.cancelUploadFile.indexOf(s2) < 0 ? this.composeFile(i2.name, o2, t2, s2, p2, e3.folder) : await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/remove-chunks", { serverName: s2, folder: e3.folder }).then((e4) => {
47
+ this.cancelUploadFile.indexOf(s2) < 0 ? this.composeFile(l2.name, i2, o2, s2, r2, e3.folder) : await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/remove-chunks", { serverName: s2, folder: e3.folder }).then((e4) => {
54
48
  });
55
49
  });
56
- }, composeFile(e2, l2, i2, t2, o2, a2) {
57
- const n2 = { fileName: e2, chunkSize: l2, fileSize: i2, serverName: t2, chunkNames: o2, folder: a2 };
58
- this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/merge", n2).then((l3) => {
59
- if (this.uploadingFile.splice(this.uploadingFile.findIndex((e3) => e3.serverName === t2), 1), this.fileSetObj.multiple) {
60
- this.fileContent.push({ name: e2, serverName: t2 });
61
- const l4 = this.entity[this.fileSetObj.showNameData.dbName];
62
- l4 && l4.length > 0 ? this.setEntityValue(l4 + "," + e2, this.entity[this.fileSetObj.serverNameData.dbName] + "," + t2) : this.setEntityValue(e2, t2);
50
+ }, composeFile(e2, t2, l2, o2, i2, a2) {
51
+ const n2 = { fileName: e2, chunkSize: t2, fileSize: l2, serverName: o2, chunkNames: i2, folder: a2 };
52
+ this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/merge", n2).then((t3) => {
53
+ if (this.uploadingFile.splice(this.uploadingFile.findIndex((e3) => e3.serverName === o2), 1), this.fileSetObj.multiple) {
54
+ this.fileContent.push({ name: e2, serverName: o2 });
55
+ const t4 = this.entity[this.fileSetObj.showNameData.dbName];
56
+ t4 && t4.length > 0 ? this.setEntityValue(t4 + "," + e2, this.entity[this.fileSetObj.serverNameData.dbName] + "," + o2) : this.setEntityValue(e2, o2);
63
57
  } else
64
- this.fileContent = [{ name: e2, serverName: t2 }], this.setEntityValue(e2, t2);
58
+ this.fileContent = [{ name: e2, serverName: o2 }], this.setEntityValue(e2, o2);
65
59
  this.entity;
66
60
  });
67
- }, setEntityValue(e2, l2) {
68
- this.entity[this.fileSetObj.showNameData.dbName] = e2, this.entity[this.fileSetObj.serverNameData.dbName] = l2;
61
+ }, setEntityValue(e2, t2) {
62
+ this.entity[this.fileSetObj.showNameData.dbName] = e2, this.entity[this.fileSetObj.serverNameData.dbName] = t2;
69
63
  }, cancelUpload(e2) {
70
- this.entity.DOC_NAME = null, this.entity.DOC_PATH = null, this.cancelUploadFile.push(e2), this.uploadingFile.splice(this.uploadingFile.findIndex((l2) => l2.serverName === e2), 1);
71
- }, preview(e2, l2) {
72
- n(e2) ? (this.previewImageInfo = { src: window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + a() + "&showName=" + e2 + "&serverPath=" + l2 }, this.showPreviewSingleImage = true) : this.previewDoc(e2, l2);
64
+ this.entity.DOC_NAME = null, this.entity.DOC_PATH = null, this.cancelUploadFile.push(e2), this.uploadingFile.splice(this.uploadingFile.findIndex((t2) => t2.serverName === e2), 1);
65
+ }, preview(e2, o2) {
66
+ l.isImage(e2) ? (this.previewImageInfo = { src: window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + t.getToken() + "&showName=" + e2 + "&serverPath=" + o2 }, this.showPreviewSingleImage = true) : this.previewDoc(e2, o2);
73
67
  }, previewDoc(e2, l2) {
74
- const i2 = a();
68
+ const i2 = t.getToken();
75
69
  if (window.$vueApp.config.globalProperties.customPreviewUrl)
76
- window.open(p(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + l2 + "&showName=" + encodeURI(e2), e2);
70
+ window.open(o.getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + l2 + "&showName=" + encodeURI(e2), e2);
77
71
  else {
78
72
  let t2;
79
- const o2 = e2, a2 = l2;
80
- let n2 = window.$vueApp.config.globalProperties.baseURL;
81
- if (s(window.$vueApp.config.globalProperties.systemCode) && (n2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
82
- const e3 = n2 + "/common/super-form/downloads?jwt=" + i2 + "&showName=" + encodeURI(o2) + "&serverPath=" + a2;
83
- r(e3 + "&fullfilename=" + o2).then((e4) => {
84
- window.open(e4, o2);
73
+ const a2 = e2, n2 = l2;
74
+ let s2 = window.$vueApp.config.globalProperties.baseURL;
75
+ if (o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (s2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
76
+ const e3 = s2 + "/common/super-form/downloads?jwt=" + i2 + "&showName=" + encodeURI(a2) + "&serverPath=" + n2 + "&fullfilename=" + a2;
77
+ o.getKkFilePreviewUrl(e3).then((e4) => {
78
+ window.open(e4, a2);
85
79
  });
86
80
  } else
87
- t2 = n2 + "/common/fs-upload/preview?jwt=" + i2, t2 = t2 + "&showName=" + encodeURI(o2) + "&serverPath=" + a2, window.open(t2, o2);
81
+ t2 = s2 + "/common/fs-upload/preview?jwt=" + i2, t2 = t2 + "&showName=" + encodeURI(a2) + "&serverPath=" + n2, window.open(t2, a2);
88
82
  }
89
83
  }, handleOnRemove(e2) {
90
84
  if (this.fileContent.splice(e2, 1), this.fileSetObj.multiple) {
91
- const e3 = [], l2 = [];
92
- this.fileContent.forEach((i2) => {
93
- i2.name && i2.serverName && (e3.push(i2.name), l2.push(i2.serverName));
94
- }), this.setEntityValue(e3.join(","), l2.join(","));
85
+ const e3 = [], t2 = [];
86
+ this.fileContent.forEach((l2) => {
87
+ l2.name && l2.serverName && (e3.push(l2.name), t2.push(l2.serverName));
88
+ }), this.setEntityValue(e3.join(","), t2.join(","));
95
89
  } else
96
90
  this.setEntityValue(null, null);
97
- } }, emits: ["close", "update:value", "update:value"] }, I = { class: "el-upload__tip", style: { "margin-left": "12px" } }, $ = { key: 0 }, k = v("br", null, null, -1), S = { style: { "margin-left": "6.5px" } }, _ = { style: { "line-height": "30px" } }, j = ["onClick"], x = { style: { "margin-left": "6.5px" } };
98
- const C = N(F, [["render", function(e2, l2, i2, t2, o2, a2) {
99
- const n2 = d("el-button"), s2 = d("el-input"), p2 = d("el-upload"), r2 = d("el-icon-paperclip"), U2 = d("el-icon"), N2 = d("el-icon-close"), F2 = d("el-tooltip"), C2 = d("el-tag"), A = d("el-progress"), O = d("el-row"), z = d("el-col"), V = d("el-dialog"), M = d("el-image"), E = d("el-table-column"), R = d("el-icon-view"), D = d("el-icon-delete"), L = d("el-table"), B = d("fs-preview");
100
- return u(), c("div", null, [i2.disabled ? (u(), w(B, { key: 1, "file-list": o2.showFileList, label: i2.value }, null, 8, ["file-list", "label"])) : (u(), c(m, { key: 0 }, [h(s2, { ref: "item", disabled: i2.disabled, "model-value": i2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: f(() => [i2.disabled ? g("", true) : (u(), w(n2, { key: 0, icon: o2.ElIconUpload2, size: "default", onClick: a2.openAnnexUpload }, null, 8, ["icon", "onClick"]))]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), h(V, { modelValue: o2.annexUploadFlag, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => o2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "40%" }, { default: f(() => [h(p2, { id: "upload", "auto-upload": false, "on-change": a2.uploadFile, "show-file-list": false, action: "" }, { tip: f(() => [v("span", I, [b(" 上传文件不能超过" + y(i2.fileSetObj.limitFileSize) + "M ", 1), i2.fileSetObj.accept ? (u(), c("span", $, ",并且只接受" + y(i2.fileSetObj.accept) + "类型文件", 1)) : g("", true)])]), default: f(() => [h(n2, { size: "default", type: "primary" }, { default: f(() => [b(" 选择文件")]), _: 1 })]), _: 1 }, 8, ["on-change"]), k, (u(true), c(m, null, P(o2.uploadingFile, (e3, l3) => (u(), w(O, { key: l3 }, { default: f(() => [h(C2, { size: "small form-list-file" }, { default: f(() => [v("span", null, [h(U2, null, { default: f(() => [h(r2)]), _: 1 }), v("span", S, y(e3.name), 1)]), h(F2, { content: "取消上传", effect: "light", placement: "right" }, { default: f(() => [h(U2, { style: { "margin-left": "8px" }, onClick: (l4) => a2.cancelUpload(e3.serverName) }, { default: f(() => [h(N2)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024), h(A, { percentage: e3.uploadProgress }, null, 8, ["percentage"])]), _: 2 }, 1024))), 128)), v("div", _, [h(O, null, { default: f(() => [h(z, null, { default: f(() => [(u(true), c(m, null, P(o2.fileContent, (e3, l3) => (u(), w(C2, { key: l3, size: "small form-list-file" }, { default: f(() => [v("span", { onClick: (l4) => a2.preview(e3.name, e3.serverName) }, [h(U2, null, { default: f(() => [h(r2)]), _: 1 }), v("span", x, y(e3.name), 1)], 8, j), h(F2, { content: "移除已上传文件", effect: "light", placement: "right" }, { default: f(() => [h(U2, { style: { "margin-left": "8px" }, onClick: (i3) => a2.handleOnRemove(l3, e3) }, { default: f(() => [h(N2)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }, 8, ["modelValue", "title"]), h(V, { modelValue: o2.showPreviewSingleImage, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => o2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: l2[2] || (l2[2] = (l3) => e2.$emit("close")) }, { title: f(() => [v("span", null, y(e2.$t("imatrixUIPublicModel.previewImage")) + " ", 1)]), default: f(() => [h(M, { "preview-src-list": [o2.previewImageInfo.src], src: o2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"]), h(V, { modelValue: o2.showPreviewMulti, "onUpdate:modelValue": l2[3] || (l2[3] = (e3) => o2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: l2[4] || (l2[4] = (l3) => e2.$emit("close")) }, { title: f(() => [v("span", null, y(e2.$t("imatrixUIPublicModel.preview")) + " ", 1)]), default: f(() => [h(L, { data: o2.showFileList, "show-header": false }, { default: f(() => [h(E, { prop: "showName", width: "300" }), h(E, { align: "right" }, { default: f((l3) => [h(F2, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: f(() => [h(U2, { style: { cursor: "pointer" }, onClick: (i3) => e2.previewSingle(l3.row) }, { default: f(() => [h(R)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), i2.disabled ? g("", true) : (u(), w(E, { key: 0 }, { default: f((l3) => [h(F2, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: f(() => [h(U2, { style: { cursor: "pointer" }, onClick: (i3) => e2.deleteRow(l3.$index) }, { default: f(() => [h(D)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
91
+ } }, emits: ["close", "update:value", "update:value"] }, r = { class: "el-upload__tip", style: { "margin-left": "12px" } }, p = { key: 0 }, d = i.createElementVNode("br", null, null, -1), c = { style: { "margin-left": "6.5px" } }, m = { style: { "line-height": "30px" } }, u = ["onClick"], h = { style: { "margin-left": "6.5px" } };
92
+ const w = n(s, [["render", function(e2, t2, l2, o2, a2, n2) {
93
+ const s2 = i.resolveComponent("el-button"), w2 = i.resolveComponent("el-input"), f = i.resolveComponent("el-upload"), g = i.resolveComponent("el-icon-paperclip"), v = i.resolveComponent("el-icon"), N = i.resolveComponent("el-icon-close"), C = i.resolveComponent("el-tooltip"), b = i.resolveComponent("el-tag"), V = i.resolveComponent("el-progress"), x = i.resolveComponent("el-row"), k = i.resolveComponent("el-col"), y = i.resolveComponent("el-dialog"), P = i.resolveComponent("el-image"), U = i.resolveComponent("el-table-column"), F = i.resolveComponent("el-icon-view"), S = i.resolveComponent("el-icon-delete"), I = i.resolveComponent("el-table"), $ = i.resolveComponent("fs-preview");
94
+ return i.openBlock(), i.createElementBlock("div", null, [l2.disabled ? (i.openBlock(), i.createBlock($, { key: 1, "file-list": a2.showFileList, label: l2.value }, null, 8, ["file-list", "label"])) : (i.openBlock(), i.createElementBlock(i.Fragment, { key: 0 }, [i.createVNode(w2, { ref: "item", disabled: l2.disabled, "model-value": l2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: i.withCtx(() => [l2.disabled ? i.createCommentVNode("", true) : (i.openBlock(), i.createBlock(s2, { key: 0, icon: a2.ElIconUpload2, size: "default", onClick: n2.openAnnexUpload }, null, 8, ["icon", "onClick"]))]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), i.createVNode(y, { modelValue: a2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "40%" }, { default: i.withCtx(() => [i.createVNode(f, { id: "upload", "auto-upload": false, "on-change": n2.uploadFile, "show-file-list": false, action: "" }, { tip: i.withCtx(() => [i.createElementVNode("span", r, [i.createTextVNode(" 上传文件不能超过" + i.toDisplayString(l2.fileSetObj.limitFileSize) + "M ", 1), l2.fileSetObj.accept ? (i.openBlock(), i.createElementBlock("span", p, ",并且只接受" + i.toDisplayString(l2.fileSetObj.accept) + "类型文件", 1)) : i.createCommentVNode("", true)])]), default: i.withCtx(() => [i.createVNode(s2, { size: "default", type: "primary" }, { default: i.withCtx(() => [i.createTextVNode(" 选择文件")]), _: 1 })]), _: 1 }, 8, ["on-change"]), d, (i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(a2.uploadingFile, (e3, t3) => (i.openBlock(), i.createBlock(x, { key: t3 }, { default: i.withCtx(() => [i.createVNode(b, { size: "small form-list-file" }, { default: i.withCtx(() => [i.createElementVNode("span", null, [i.createVNode(v, null, { default: i.withCtx(() => [i.createVNode(g)]), _: 1 }), i.createElementVNode("span", c, i.toDisplayString(e3.name), 1)]), i.createVNode(C, { content: "取消上传", effect: "light", placement: "right" }, { default: i.withCtx(() => [i.createVNode(v, { style: { "margin-left": "8px" }, onClick: (t4) => n2.cancelUpload(e3.serverName) }, { default: i.withCtx(() => [i.createVNode(N)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024), i.createVNode(V, { percentage: e3.uploadProgress }, null, 8, ["percentage"])]), _: 2 }, 1024))), 128)), i.createElementVNode("div", m, [i.createVNode(x, null, { default: i.withCtx(() => [i.createVNode(k, null, { default: i.withCtx(() => [(i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(a2.fileContent, (e3, t3) => (i.openBlock(), i.createBlock(b, { key: t3, size: "small form-list-file" }, { default: i.withCtx(() => [i.createElementVNode("span", { onClick: (t4) => n2.preview(e3.name, e3.serverName) }, [i.createVNode(v, null, { default: i.withCtx(() => [i.createVNode(g)]), _: 1 }), i.createElementVNode("span", h, i.toDisplayString(e3.name), 1)], 8, u), i.createVNode(C, { content: "移除已上传文件", effect: "light", placement: "right" }, { default: i.withCtx(() => [i.createVNode(v, { style: { "margin-left": "8px" }, onClick: (l3) => n2.handleOnRemove(t3, e3) }, { default: i.withCtx(() => [i.createVNode(N)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }, 8, ["modelValue", "title"]), i.createVNode(y, { modelValue: a2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: i.withCtx(() => [i.createElementVNode("span", null, i.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")) + " ", 1)]), default: i.withCtx(() => [i.createVNode(P, { "preview-src-list": [a2.previewImageInfo.src], src: a2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"]), i.createVNode(y, { modelValue: a2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: i.withCtx(() => [i.createElementVNode("span", null, i.toDisplayString(e2.$t("imatrixUIPublicModel.preview")) + " ", 1)]), default: i.withCtx(() => [i.createVNode(I, { data: a2.showFileList, "show-header": false }, { default: i.withCtx(() => [i.createVNode(U, { prop: "showName", width: "300" }), i.createVNode(U, { align: "right" }, { default: i.withCtx((t3) => [i.createVNode(C, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: i.withCtx(() => [i.createVNode(v, { style: { cursor: "pointer" }, onClick: (l3) => e2.previewSingle(t3.row) }, { default: i.withCtx(() => [i.createVNode(F)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), l2.disabled ? i.createCommentVNode("", true) : (i.openBlock(), i.createBlock(U, { key: 0 }, { default: i.withCtx((t3) => [i.createVNode(C, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: i.withCtx(() => [i.createVNode(v, { style: { cursor: "pointer" }, onClick: (l3) => e2.deleteRow(t3.$index) }, { default: i.withCtx(() => [i.createVNode(S)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
101
95
  }]]);
102
- export {
103
- C as default
104
- };
96
+ module.exports = w;
@@ -1,7 +1,5 @@
1
- import n from "./src/organization-input.vue.js";
2
- n.install = function(o) {
3
- o.component(n.name, n);
4
- };
5
- export {
6
- n as default
7
- };
1
+ "use strict";
2
+ const n = require("./src/organization-input.vue.js");
3
+ n.install = function(t) {
4
+ t.component(n.name, n);
5
+ }, module.exports = n;
@@ -1,11 +1,7 @@
1
- import { Search as e, Delete as t } from "@element-plus/icons-vue";
2
- import { getPropNameWhenJoinTable as i, setEntityFieldValue as n } from "../../src/utils/util.js";
3
- import a from "../../department-user-tree/src/department-user-tree.vue.js";
4
- import r from "../../department-tree/src/department-tree.vue.js";
5
- import { resolveComponent as l, openBlock as s, createElementBlock as o, createBlock as p, withCtx as u, createVNode as m, createCommentVNode as c } from "vue";
6
- import "./organization-input.vue2.js";
7
- import h from "../../_virtual/_plugin-vue_export-helper.js";
8
- const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree: a, DepartmentTree: r }, name: "OrganizationInput", model: { prop: "value", event: "input" }, props: { value: { type: String, default: "" }, multiple: { type: Boolean, default: false }, checkStrictly: { type: Boolean, default: false }, treeType: { type: String, default: "DeptUserTree" }, disabled: { type: Boolean, default: false }, fields: { type: Array, default: null }, models: { type: Object, default: null }, size: { type: String, default: "" }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, departmentInfo: { type: Array, default: null }, separator: { type: String, default: "," }, openTree: { type: Boolean, default: true }, pageModels: { type: Object, default: null }, limitFilterColumn: { type: String, default: "code" } }, data: () => ({ showOrganizationTreeFlag: false, isAppendResult: false, showRemoveComponent: false, selectOrganizationInfo: null, searchField: null, selectOrganizationAllInfo: {} }), created() {
1
+ "use strict";
2
+ const e = require("@element-plus/icons-vue"), t = require("../../src/utils/util.js"), i = require("../../department-user-tree/src/department-user-tree.vue.js"), n = require("../../department-tree/src/department-tree.vue.js"), o = require("vue");
3
+ require("./organization-input.vue2.js");
4
+ const r = require("../../_virtual/_plugin-vue_export-helper.js"), l = { components: { ElIconSearch: e.Search, ElIconDelete: e.Delete, DepartmentUserTree: i, DepartmentTree: n }, name: "OrganizationInput", model: { prop: "value", event: "input" }, props: { value: { type: String, default: "" }, multiple: { type: Boolean, default: false }, checkStrictly: { type: Boolean, default: false }, treeType: { type: String, default: "DeptUserTree" }, disabled: { type: Boolean, default: false }, fields: { type: Array, default: null }, models: { type: Object, default: null }, size: { type: String, default: "" }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, departmentInfo: { type: Array, default: null }, separator: { type: String, default: "," }, openTree: { type: Boolean, default: true }, pageModels: { type: Object, default: null }, limitFilterColumn: { type: String, default: "code" } }, data: () => ({ showOrganizationTreeFlag: false, isAppendResult: false, showRemoveComponent: false, selectOrganizationInfo: null, searchField: null, selectOrganizationAllInfo: {} }), created() {
9
5
  }, methods: { changeEvent(e2) {
10
6
  this.$emit("change", e2);
11
7
  }, showOrganizationTree() {
@@ -13,7 +9,7 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
13
9
  let e2 = this.multiple;
14
10
  void 0 === e2 && (e2 = false), true === e2 && this.getSelectInfo(), this.$emit("focus"), this.showOrganizationTreeFlag = true, this.$emit("show-tree");
15
11
  }
16
- }, getPropName: (e2, t2, n2) => (e2 && e2.startsWith("${") && (e2 = e2.substring(e2.indexOf(".") + 1, e2.length - 1)), i(e2, t2, n2)), getPropType(e2) {
12
+ }, getPropName: (e2, i2, n2) => (e2 && e2.startsWith("${") && (e2 = e2.substring(e2.indexOf(".") + 1, e2.length - 1)), t.getPropNameWhenJoinTable(e2, i2, n2)), getPropType(e2) {
17
13
  let t2 = "data";
18
14
  return e2 && e2.startsWith("${") && (t2 = e2.substring(2, e2.indexOf("."))), t2;
19
15
  }, emptyOrganizationResult() {
@@ -27,12 +23,12 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
27
23
  }, setOrganizationData(e2, t2, i2) {
28
24
  let n2 = this.multiple;
29
25
  void 0 === n2 && (n2 = false);
30
- const a2 = this.treeType, r2 = this.fields;
26
+ const o2 = this.treeType, r2 = this.fields;
31
27
  r2 && r2.length > 0 && r2.forEach((r3) => {
32
- const l2 = r3.type, s2 = this.getOrgSelectData(l2, e2, this.isUserTree(a2), n2), o2 = this.getPropName(r3.model), p2 = this.getPropType(r3.model);
33
- this.getOrgDataModel(o2, s2, n2, l2, t2, i2, p2);
28
+ const l2 = r3.type, a2 = this.getOrgSelectData(l2, e2, this.isUserTree(o2), n2), s2 = this.getPropName(r3.model), p = this.getPropType(r3.model);
29
+ this.getOrgDataModel(s2, a2, n2, l2, t2, i2, p);
34
30
  });
35
- }, getOrgDataModel(e2, t2, i2, n2, a2, r2, l2) {
31
+ }, getOrgDataModel(e2, t2, i2, n2, o2, r2, l2) {
36
32
  if (i2) {
37
33
  const i3 = this.getModelValue(e2, l2);
38
34
  this.selectOrganizationAllInfo[n2] = t2, this.setValue(e2, t2, l2), this.$emit("replace", e2, i3, t2);
@@ -45,8 +41,8 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
45
41
  if (false === this.isJoinTable && e2 && e2.indexOf(".") > 0) {
46
42
  n2 = this.getParentObject(e2, i2)[e2.substring(e2.lastIndexOf(".") + 1)];
47
43
  } else {
48
- const a2 = this.getPropName(e2);
49
- n2 = t2 && "page" === t2 ? i2 ? i2[a2] : null : i2[a2];
44
+ const o2 = this.getPropName(e2);
45
+ n2 = t2 && "page" === t2 ? i2 ? i2[o2] : null : i2[o2];
50
46
  }
51
47
  return n2;
52
48
  }, isUserTree: (e2) => "DeptUserTree" === e2 || "WgUserTree" === e2, getOrgSelectData(e2, t2, i2, n2) {
@@ -69,12 +65,12 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
69
65
  }
70
66
  if ("mainDeptCode" === e2 || "mainDeptName" === e2) {
71
67
  const n3 = "mainDeptCode" === e2 ? "mainDepartmentCode" : "mainDepartmentName";
72
- let a2 = null;
68
+ let o2 = null;
73
69
  if (i2) {
74
70
  const e3 = t2.user;
75
- e3 && (a2 = e3[n3]);
71
+ e3 && (o2 = e3[n3]);
76
72
  }
77
- return a2;
73
+ return o2;
78
74
  }
79
75
  if ("subCompanyName" === e2) {
80
76
  let e3 = null;
@@ -129,11 +125,11 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
129
125
  return e3.join(this.separator);
130
126
  }
131
127
  if ("mainDeptCode" === e2 || "mainDeptName" === e2) {
132
- const n3 = [], a2 = "mainDeptCode" === e2 ? "mainDepartmentCode" : "mainDepartmentName";
128
+ const n3 = [], o2 = "mainDeptCode" === e2 ? "mainDepartmentCode" : "mainDepartmentName";
133
129
  if (i2) {
134
130
  const e3 = t2.users;
135
131
  e3 && e3.forEach((e4) => {
136
- e4[a2] && n3.push(e4[a2]);
132
+ e4[o2] && n3.push(e4[o2]);
137
133
  });
138
134
  }
139
135
  return n3.join(this.separator);
@@ -173,9 +169,9 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
173
169
  if (n2 && n2.length > 0) {
174
170
  const e3 = n2[0];
175
171
  if (e3) {
176
- const t3 = this.getPropName(e3.model), n3 = this.getPropType(e3.model), a2 = this.getModelValue(t3, n3);
177
- if (a2 && null !== a2 && "" !== a2) {
178
- this.selectOrganizationInfo = a2, this.searchField = i2;
172
+ const t3 = this.getPropName(e3.model), n3 = this.getPropType(e3.model), o2 = this.getModelValue(t3, n3);
173
+ if (o2 && null !== o2 && "" !== o2) {
174
+ this.selectOrganizationInfo = o2, this.searchField = i2;
179
175
  break;
180
176
  }
181
177
  }
@@ -193,16 +189,16 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
193
189
  i2 || (i2 = this.getPropType(e2));
194
190
  let n2 = this.models;
195
191
  i2 && "page" === i2 && (n2 = this.pageModels), this.setEntityValue(e2, t2, n2);
196
- }, setEntityValue(e2, t2, i2) {
197
- if (i2) {
192
+ }, setEntityValue(e2, i2, n2) {
193
+ if (n2) {
198
194
  if (false === this.isJoinTable && e2 && e2.indexOf(".") > 0) {
199
- const a2 = this.getParentObject(e2, i2);
200
- a2 && n(a2, e2.substring(e2.lastIndexOf(".") + 1), t2);
195
+ const o2 = this.getParentObject(e2, n2);
196
+ o2 && t.setEntityFieldValue(o2, e2.substring(e2.lastIndexOf(".") + 1), i2);
201
197
  } else {
202
- const a2 = this.getPropName(e2);
203
- n(i2, a2, t2);
198
+ const o2 = this.getPropName(e2);
199
+ t.setEntityFieldValue(n2, o2, i2);
204
200
  }
205
- this.$emit("setValue", e2, t2), null != t2 && "" !== t2 || this.$emit("clear", e2);
201
+ this.$emit("setValue", e2, i2), null != i2 && "" !== i2 || this.$emit("clear", e2);
206
202
  }
207
203
  }, getParentObject(e2, t2) {
208
204
  const i2 = e2.split(".");
@@ -214,11 +210,9 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
214
210
  e3 = 0 === n2 ? this.getParentModelProp(i2[n2], t2) : this.getParentModelProp(i2[n2], e3);
215
211
  return e3;
216
212
  }
217
- }, getParentModelProp: (e2, t2) => (t2 || (t2 = {}), t2[e2] || (t2[e2] = {}), t2[e2]) }, emits: ["replace", "setValue", "clear", "focus", "update:value", "change"] }, d = { style: { width: "100%" }, class: "organization-input" };
218
- const g = h(f, [["render", function(e2, t2, i2, n2, a2, r2) {
219
- const h2 = l("el-icon-search"), f2 = l("el-icon"), g2 = l("el-icon-delete"), y = l("el-input"), O = l("department-user-tree"), T = l("department-tree"), z = l("workgroup-tree"), I = l("workgroup-user-tree");
220
- return s(), o("span", d, [i2.disabled ? (s(), p(y, { key: 0, disabled: true, "model-value": i2.value, readonly: true, size: i2.size, type: "text", placeholder: e2.$t("imatrixUIMessage.pleaseSelect") }, { append: u(() => [m(f2, { class: "el-input__icon" }, { suffix: u(() => [m(h2)]), _: 1 }), m(f2, { class: "el-input__icon" }, { suffix: u(() => [m(g2)]), _: 1 })]), _: 1 }, 8, ["model-value", "size", "placeholder"])) : (s(), p(y, { key: 1, "model-value": i2.value, readonly: true, size: i2.size, type: "text", placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), onClick: t2[2] || (t2[2] = (e3) => r2.showOrganizationTree(false)), onChange: r2.changeEvent }, { append: u(() => [m(f2, { class: "el-input__icon", onClick: t2[0] || (t2[0] = (e3) => r2.showOrganizationTree(false)) }, { default: u(() => [m(h2)]), _: 1 }), m(f2, { class: "el-input__icon", onClick: t2[1] || (t2[1] = (e3) => r2.emptyOrganizationResult()) }, { default: u(() => [m(g2)]), _: 1 })]), _: 1 }, 8, ["model-value", "size", "placeholder", "onChange"])), i2.treeType && "DeptUserTree" === i2.treeType && a2.showOrganizationTreeFlag ? (s(), p(O, { key: 2, "department-info": i2.departmentInfo, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": a2.searchField, "select-user-info": a2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, onClose: r2.closeOrganizationTree }, null, 8, ["department-info", "multiple", "search-field", "select-user-info", "separator", "limit-filter-column", "onClose"])) : c("", true), i2.treeType && "DeptTree" === i2.treeType && a2.showOrganizationTreeFlag ? (s(), p(T, { key: 3, "check-strictly": void 0 !== i2.checkStrictly && i2.checkStrictly, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": a2.searchField, "department-info": i2.departmentInfo, "select-department-info": a2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: r2.closeOrganizationTree }, null, 8, ["check-strictly", "multiple", "search-field", "department-info", "select-department-info", "separator", "limit-filter-column", "onClose"])) : c("", true), i2.treeType && "WgTree" === i2.treeType && a2.showOrganizationTreeFlag ? (s(), p(z, { key: 4, multiple: void 0 !== i2.multiple && i2.multiple, "branch-info": i2.departmentInfo, "search-field": a2.searchField, "select-workgroup-info": a2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: r2.closeOrganizationTree }, null, 8, ["multiple", "branch-info", "search-field", "select-workgroup-info", "separator", "limit-filter-column", "onClose"])) : c("", true), i2.treeType && "WgUserTree" === i2.treeType && a2.showOrganizationTreeFlag ? (s(), p(I, { key: 5, "branch-info": i2.departmentInfo, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": a2.searchField, "select-user-info": a2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: r2.closeOrganizationTree }, null, 8, ["branch-info", "multiple", "search-field", "select-user-info", "separator", "limit-filter-column", "onClose"])) : c("", true)]);
213
+ }, getParentModelProp: (e2, t2) => (t2 || (t2 = {}), t2[e2] || (t2[e2] = {}), t2[e2]) }, emits: ["replace", "setValue", "clear", "focus", "update:value", "change"] }, a = { style: { width: "100%" }, class: "organization-input" };
214
+ const s = r(l, [["render", function(e2, t2, i2, n2, r2, l2) {
215
+ const s2 = o.resolveComponent("el-icon-search"), p = o.resolveComponent("el-icon"), c = o.resolveComponent("el-icon-delete"), u = o.resolveComponent("el-input"), m = o.resolveComponent("department-user-tree"), h = o.resolveComponent("department-tree"), d = o.resolveComponent("workgroup-tree"), f = o.resolveComponent("workgroup-user-tree");
216
+ return o.openBlock(), o.createElementBlock("span", a, [i2.disabled ? (o.openBlock(), o.createBlock(u, { key: 0, disabled: true, "model-value": i2.value, readonly: true, size: i2.size, type: "text", placeholder: e2.$t("imatrixUIMessage.pleaseSelect") }, { append: o.withCtx(() => [o.createVNode(p, { class: "el-input__icon" }, { suffix: o.withCtx(() => [o.createVNode(s2)]), _: 1 }), o.createVNode(p, { class: "el-input__icon" }, { suffix: o.withCtx(() => [o.createVNode(c)]), _: 1 })]), _: 1 }, 8, ["model-value", "size", "placeholder"])) : (o.openBlock(), o.createBlock(u, { key: 1, "model-value": i2.value, readonly: true, size: i2.size, type: "text", placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), onClick: t2[2] || (t2[2] = (e3) => l2.showOrganizationTree(false)), onChange: l2.changeEvent }, { append: o.withCtx(() => [o.createVNode(p, { class: "el-input__icon", onClick: t2[0] || (t2[0] = (e3) => l2.showOrganizationTree(false)) }, { default: o.withCtx(() => [o.createVNode(s2)]), _: 1 }), o.createVNode(p, { class: "el-input__icon", onClick: t2[1] || (t2[1] = (e3) => l2.emptyOrganizationResult()) }, { default: o.withCtx(() => [o.createVNode(c)]), _: 1 })]), _: 1 }, 8, ["model-value", "size", "placeholder", "onChange"])), i2.treeType && "DeptUserTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(m, { key: 2, "department-info": i2.departmentInfo, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "select-user-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, onClose: l2.closeOrganizationTree }, null, 8, ["department-info", "multiple", "search-field", "select-user-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "DeptTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(h, { key: 3, "check-strictly": void 0 !== i2.checkStrictly && i2.checkStrictly, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "department-info": i2.departmentInfo, "select-department-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["check-strictly", "multiple", "search-field", "department-info", "select-department-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "WgTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(d, { key: 4, multiple: void 0 !== i2.multiple && i2.multiple, "branch-info": i2.departmentInfo, "search-field": r2.searchField, "select-workgroup-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["multiple", "branch-info", "search-field", "select-workgroup-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "WgUserTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(f, { key: 5, "branch-info": i2.departmentInfo, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "select-user-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["branch-info", "multiple", "search-field", "select-user-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true)]);
221
217
  }]]);
222
- export {
223
- g as default
224
- };
218
+ module.exports = s;
@@ -1,4 +1,2 @@
1
- const t = "";
2
- export {
3
- t as default
4
- };
1
+ "use strict";
2
+ module.exports = "";