gds-plus-design-vue 1.2.61 → 1.2.63

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 (332) hide show
  1. package/lib/addPermission.5036013c.js +1 -0
  2. package/lib/addPermission.9fc97a47.mjs +421 -0
  3. package/lib/approvalModel.51d07afe.mjs +340 -0
  4. package/lib/approvalModel.66f49dfb.js +1 -0
  5. package/lib/attribute.318f485c.js +1 -0
  6. package/lib/attribute.a06ac9e7.mjs +237 -0
  7. package/lib/buildItem.6a834227.js +1 -0
  8. package/lib/buildItem.fd8634ab.mjs +205 -0
  9. package/lib/businessRules.0e4dbb3a.js +1 -0
  10. package/lib/businessRules.db6ba874.mjs +538 -0
  11. package/lib/components.chartbi.b043dcdc.mjs +1729 -0
  12. package/lib/components.chartbi.e4680eaa.js +7 -0
  13. package/lib/components.coloreditor.044983d2.mjs +1505 -0
  14. package/lib/components.coloreditor.779a9419.js +6 -0
  15. package/lib/components.dataassign.1853ed5c.js +1 -0
  16. package/lib/components.dataassign.56632583.mjs +147 -0
  17. package/lib/components.echarts.10d3ffe2.mjs +794 -0
  18. package/lib/components.echarts.e4d6b13e.js +3 -0
  19. package/lib/components.exception.3cc33e29.js +1 -0
  20. package/lib/components.exception.cc2f4ca3.mjs +61 -0
  21. package/lib/components.form.3344c817.mjs +7785 -0
  22. package/lib/components.form.91d5ed3e.js +41 -0
  23. package/lib/components.globalheader.07a90c4b.js +1 -0
  24. package/lib/components.globalheader.43fafa8c.mjs +54 -0
  25. package/lib/components.iconselector.8caabeaa.mjs +1165 -0
  26. package/lib/components.iconselector.d712170f.js +1 -0
  27. package/lib/components.imgpreview.57290b54.mjs +213 -0
  28. package/lib/components.imgpreview.86bf7971.js +1 -0
  29. package/lib/components.lunccalendar.76159d2e.js +1 -0
  30. package/lib/components.lunccalendar.f6765c94.mjs +1137 -0
  31. package/lib/components.middleware.3bad5748.js +1 -0
  32. package/lib/components.middleware.457b1182.mjs +147 -0
  33. package/lib/components.modaltitle.ae92f96c.mjs +127 -0
  34. package/lib/components.modaltitle.e0b34fcb.js +1 -0
  35. package/lib/components.multitab.82fd0544.js +1 -0
  36. package/lib/components.multitab.8441aa6b.mjs +140 -0
  37. package/lib/components.selecttree.85d940a9.mjs +170 -0
  38. package/lib/components.selecttree.d710a362.js +1 -0
  39. package/lib/components.settingdrawer.779f6715.js +1 -0
  40. package/lib/components.settingdrawer.a6693034.mjs +237 -0
  41. package/lib/components.sidemenu.725677e3.mjs +277 -0
  42. package/lib/components.sidemenu.80e46c2d.js +1 -0
  43. package/lib/components.sidenavmenu.23b8edce.mjs +1331 -0
  44. package/lib/components.sidenavmenu.b9bb9304.js +1 -0
  45. package/lib/components.statuschange.15938660.mjs +116 -0
  46. package/lib/components.statuschange.ed1218a4.js +1 -0
  47. package/lib/components.table.17c02054.js +8 -0
  48. package/lib/components.table.e3e5e3bc.mjs +4635 -0
  49. package/lib/components.tableumy.2f5dfa12.mjs +450 -0
  50. package/lib/components.tableumy.9cf33062.js +1 -0
  51. package/lib/components.tablevirtual.38d4d3d8.js +1 -0
  52. package/lib/components.tablevirtual.ba03746e.mjs +561 -0
  53. package/lib/components.teamsharing.05503821.js +1 -0
  54. package/lib/components.teamsharing.fb4351ec.mjs +373 -0
  55. package/lib/components.tooltip.950dc77b.mjs +86 -0
  56. package/lib/components.tooltip.a05d8dd1.js +1 -0
  57. package/lib/components.uploadfile.10f6cb2a.mjs +228 -0
  58. package/lib/components.uploadfile.5a9b6cc1.js +1 -0
  59. package/lib/components.uploadimg.cce7452a.js +1 -0
  60. package/lib/components.uploadimg.f4fe4e77.mjs +192 -0
  61. package/lib/components.verificationcode.afb9aa1a.mjs +71 -0
  62. package/lib/components.verificationcode.d1946db4.js +1 -0
  63. package/lib/components.viewformdetails.1621bc18.js +1 -0
  64. package/lib/components.viewformdetails.f362d69e.mjs +1048 -0
  65. package/lib/components.viewloading.807bbf68.js +1 -0
  66. package/lib/components.viewloading.ea40b244.mjs +96 -0
  67. package/lib/components.watermark.1ffc66e0.mjs +53 -0
  68. package/lib/components.watermark.da3d7220.js +2 -0
  69. package/lib/components.xlsxexport.d98572f8.mjs +263 -0
  70. package/lib/components.xlsxexport.f5ace2cd.js +1 -0
  71. package/lib/components.xlsximport.cffa88fe.mjs +913 -0
  72. package/lib/components.xlsximport.dbd826bb.js +1 -0
  73. package/lib/createFile.6b37ecf2.js +1 -0
  74. package/lib/createFile.82d6e415.mjs +239 -0
  75. package/lib/createSubfolders.47af629c.js +1 -0
  76. package/lib/createSubfolders.d35b97e9.mjs +154 -0
  77. package/lib/dialogLayout.08823bb7.js +1 -0
  78. package/lib/dialogLayout.c4bc3b55.mjs +138 -0
  79. package/lib/drawerContainer.604a1271.mjs +146 -0
  80. package/lib/drawerContainer.6a9813ce.js +1 -0
  81. package/lib/drawerLayout.36cf4d05.js +1 -0
  82. package/lib/drawerLayout.fb60950f.mjs +119 -0
  83. package/lib/fileSearch.65311ded.js +1 -0
  84. package/lib/fileSearch.86c356fe.mjs +338 -0
  85. package/lib/flow.designer.1ba3a90d.js +1 -0
  86. package/lib/flow.designer.6da03949.mjs +7686 -0
  87. package/lib/flow.list.03694808.mjs +3030 -0
  88. package/lib/flow.list.4eb10554.js +1 -0
  89. package/lib/form.build.51bd261e.js +1 -0
  90. package/lib/form.build.b768d613.mjs +251 -0
  91. package/lib/form.designer.build.5a950455.js +1 -0
  92. package/lib/form.designer.build.e521c9c6.mjs +5091 -0
  93. package/lib/formFiled.464856f5.js +1 -0
  94. package/lib/formFiled.fe7d9df3.mjs +505 -0
  95. package/lib/gd-initial.js +1 -35
  96. package/lib/gd-initial.mjs +221 -91087
  97. package/lib/http.appmanage.4554a629.mjs +50 -0
  98. package/lib/http.appmanage.b998818f.js +1 -0
  99. package/lib/http.codegeneratemanage.2f925b10.mjs +112 -0
  100. package/lib/http.codegeneratemanage.aecadd5d.js +1 -0
  101. package/lib/http.configmanage.6cfb8ae7.js +1 -0
  102. package/lib/http.configmanage.c23c7fa8.mjs +34 -0
  103. package/lib/http.currencymanage.37ab5ced.js +1 -0
  104. package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
  105. package/lib/http.datasource.294b01e2.js +1 -0
  106. package/lib/http.datasource.aa5cd0d1.mjs +58 -0
  107. package/lib/http.dictdatamanage.4baf16c0.mjs +42 -0
  108. package/lib/http.dictdatamanage.70545d8a.js +1 -0
  109. package/lib/http.dictmanage.3dc07b5d.js +1 -0
  110. package/lib/http.dictmanage.77c69971.mjs +50 -0
  111. package/lib/http.duplicatechecking.31964ce7.mjs +50 -0
  112. package/lib/http.duplicatechecking.ee5c414c.js +1 -0
  113. package/lib/http.emailmanage.1ddaa8b5.js +1 -0
  114. package/lib/http.emailmanage.64fd611f.mjs +18 -0
  115. package/lib/http.filedocument.7c656b91.js +1 -0
  116. package/lib/http.filedocument.d456d26a.mjs +156 -0
  117. package/lib/http.filemanage.7e6e3e1a.js +1 -0
  118. package/lib/http.filemanage.c0de21d6.mjs +71 -0
  119. package/lib/http.languagemanage.2ef16159.mjs +10 -0
  120. package/lib/http.languagemanage.e2c098ec.js +1 -0
  121. package/lib/http.loginmanage.05500c29.mjs +74 -0
  122. package/lib/http.loginmanage.326984c3.js +1 -0
  123. package/lib/http.logmanage.1e12a9bd.js +1 -0
  124. package/lib/http.logmanage.8ba72635.mjs +82 -0
  125. package/lib/http.machinemanage.29d72a65.js +1 -0
  126. package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
  127. package/lib/http.main.2f8a6936.js +1 -0
  128. package/lib/http.main.40657f51.mjs +517 -0
  129. package/lib/http.menumanage.3240ba0d.mjs +66 -0
  130. package/lib/http.menumanage.6d740f2c.js +1 -0
  131. package/lib/http.message.5004bf60.mjs +178 -0
  132. package/lib/http.message.87f319d7.js +1 -0
  133. package/lib/http.noticemanage.2507d094.js +1 -0
  134. package/lib/http.noticemanage.e03bd5f3.mjs +82 -0
  135. package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
  136. package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
  137. package/lib/http.onlineusermanage.3893f897.js +1 -0
  138. package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
  139. package/lib/http.orgmanage.5162fd7a.js +1 -0
  140. package/lib/http.orgmanage.84e43edb.mjs +58 -0
  141. package/lib/http.pluginmanage.6a876040.js +1 -0
  142. package/lib/http.pluginmanage.6bc6197f.mjs +82 -0
  143. package/lib/http.posmanage.c0f80aec.js +1 -0
  144. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  145. package/lib/http.promptmanagement.c7912f6c.mjs +42 -0
  146. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  147. package/lib/http.rolemanage.03363732.js +1 -0
  148. package/lib/http.rolemanage.dbf3fda1.mjs +114 -0
  149. package/lib/http.solution.175d36c8.mjs +91 -0
  150. package/lib/http.solution.c6b2634f.js +1 -0
  151. package/lib/http.sumberrules.0b68ce6d.js +1 -0
  152. package/lib/http.sumberrules.608a06d6.mjs +34 -0
  153. package/lib/http.sysapps.469d47f7.js +1 -0
  154. package/lib/http.sysapps.e294ceaf.mjs +58 -0
  155. package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
  156. package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
  157. package/lib/http.tabledevelopment.1d370398.mjs +362 -0
  158. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  159. package/lib/http.team.c8487c0b.mjs +90 -0
  160. package/lib/http.team.e45400d5.js +1 -0
  161. package/lib/http.timersmanage.01dbc1a2.mjs +146 -0
  162. package/lib/http.timersmanage.6e894942.js +1 -0
  163. package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
  164. package/lib/http.timezonemanage.e0aa212f.js +1 -0
  165. package/lib/http.translationmanage.1f9dce46.js +1 -0
  166. package/lib/http.translationmanage.a4640c9a.mjs +104 -0
  167. package/lib/http.useraffiliation.840741ed.mjs +90 -0
  168. package/lib/http.useraffiliation.af2013ad.js +1 -0
  169. package/lib/http.usermanage.3e5eff33.mjs +219 -0
  170. package/lib/http.usermanage.6dcbc7de.js +1 -0
  171. package/lib/http.webresource.5158b431.mjs +50 -0
  172. package/lib/http.webresource.7c01b9cd.js +1 -0
  173. package/lib/index.69ad4631.mjs +44291 -0
  174. package/lib/index.cca024bf.js +8 -0
  175. package/lib/layoutBlocks.1a9e3e05.mjs +204 -0
  176. package/lib/layoutBlocks.5e6be06f.js +1 -0
  177. package/lib/layouts.051a0bba.mjs +376 -0
  178. package/lib/layouts.a6a36612.js +2 -0
  179. package/lib/main.457f4326.js +1 -0
  180. package/lib/main.4fff412e.js +1 -0
  181. package/lib/{main.6c47713a.mjs → main.70357352.mjs} +12 -10
  182. package/lib/main.77373aa4.mjs +441 -0
  183. package/lib/{main.28952cf7.mjs → main.7f44e3bf.mjs} +78 -143
  184. package/lib/main.8a2a590d.js +1 -0
  185. package/lib/main.ad1e8d4d.js +1 -0
  186. package/lib/{main.5b3edd34.mjs → main.b0e5e1b0.mjs} +9 -8
  187. package/lib/{main.b4704b4b.mjs → main.c1df94d8.mjs} +4 -4
  188. package/lib/main.c3726602.js +1 -0
  189. package/lib/manage.5bb4f719.js +1 -0
  190. package/lib/manage.a1df9b88.mjs +419 -0
  191. package/lib/messages.7b74736f.js +9 -0
  192. package/lib/{messages.1787f71e.mjs → messages.ad082386.mjs} +994 -1952
  193. package/lib/moveFile.0ce803e0.js +1 -0
  194. package/lib/moveFile.8310ea94.mjs +254 -0
  195. package/lib/page.build.685c1e15.mjs +3158 -0
  196. package/lib/page.build.846096e6.js +12 -0
  197. package/lib/personal.echarts.b22fba61.mjs +701 -0
  198. package/lib/personal.echarts.f77bfc9e.js +1 -0
  199. package/lib/result.19351665.mjs +526 -0
  200. package/lib/result.e59c0e40.js +1 -0
  201. package/lib/router.config.2501ec51.js +1 -0
  202. package/lib/router.config.98a73167.mjs +3172 -0
  203. package/lib/solution.58580123.js +1 -0
  204. package/lib/solution.890ff164.mjs +6942 -0
  205. package/lib/store.config.3cb11578.js +1 -0
  206. package/lib/store.config.fff8a5a1.mjs +542 -0
  207. package/lib/style.css +3 -3
  208. package/lib/system.account.014f3e0b.mjs +2097 -0
  209. package/lib/system.account.0d4f1fdc.js +216 -0
  210. package/lib/{system.config.9bee857f.mjs → system.config.0899edb8.mjs} +7 -6
  211. package/lib/system.config.210f516c.js +1 -0
  212. package/lib/system.datasource.82492d27.js +1 -0
  213. package/lib/{system.datasource.926c6da1.mjs → system.datasource.986768c9.mjs} +15 -64
  214. package/lib/{system.dict.d48f77d5.mjs → system.dict.ef24873d.mjs} +28 -107
  215. package/lib/system.dict.f5708400.js +1 -0
  216. package/lib/system.duplicatechecking.8e3a37c0.js +1 -0
  217. package/lib/system.duplicatechecking.dcf9f86b.mjs +742 -0
  218. package/lib/system.email.070ab2be.js +1 -0
  219. package/lib/system.email.252fd642.mjs +138 -0
  220. package/lib/{system.fieldsecurity.a91a8420.mjs → system.fieldsecurity.0234d390.mjs} +224 -685
  221. package/lib/system.fieldsecurity.3ef07bf7.js +1 -0
  222. package/lib/system.file.17a7f2ed.js +1 -0
  223. package/lib/{system.file.ca5f4aae.mjs → system.file.73eeb731.mjs} +8 -7
  224. package/lib/{system.log.e80ba9c9.mjs → system.log.b86cf57f.mjs} +31 -93
  225. package/lib/system.log.fc60f5e6.js +1 -0
  226. package/lib/{system.machine.c1e753fb.mjs → system.machine.0114001b.mjs} +5 -25
  227. package/lib/system.machine.f1d95c86.js +1 -0
  228. package/lib/{system.notice.a6017645.mjs → system.notice.25ea8dca.mjs} +292 -474
  229. package/lib/system.notice.96c770a6.js +1 -0
  230. package/lib/{system.noticereceived.bbf6efd3.mjs → system.noticereceived.369f634c.mjs} +17 -24
  231. package/lib/system.noticereceived.dfe4ecc7.js +1 -0
  232. package/lib/{system.onlineuser.2b756c66.mjs → system.onlineuser.2dc284b1.mjs} +11 -24
  233. package/lib/system.onlineuser.e2e39bdc.js +1 -0
  234. package/lib/system.org.79ee5bd6.js +1 -0
  235. package/lib/{system.org.5f9e7b94.mjs → system.org.c20fe6b2.mjs} +3 -3
  236. package/lib/system.permissions.90f73461.js +9 -0
  237. package/lib/{system.permissions.17fe31d5.mjs → system.permissions.c3d34921.mjs} +4 -3
  238. package/lib/{system.plugin.c503c5b7.mjs → system.plugin.45a0f530.mjs} +23 -93
  239. package/lib/system.plugin.b34a3b47.js +1 -0
  240. package/lib/system.pos.0a3d2a37.js +1 -0
  241. package/lib/{system.pos.a169dcb9.mjs → system.pos.7946a99c.mjs} +31 -62
  242. package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
  243. package/lib/{system.promptmanagement.00fc2917.mjs → system.promptmanagement.d7250932.mjs} +153 -287
  244. package/lib/system.role.03be0982.js +1 -0
  245. package/lib/{system.role.52d67131.mjs → system.role.75da7929.mjs} +8 -5
  246. package/lib/{system.sumberrules.357dc3bb.mjs → system.sumberrules.4a1376a6.mjs} +13 -39
  247. package/lib/system.sumberrules.bb228fce.js +1 -0
  248. package/lib/system.team.32183b63.js +1 -0
  249. package/lib/system.team.e6a9608e.mjs +450 -0
  250. package/lib/{system.teammembers.90598753.mjs → system.teammembers.4a7e7339.mjs} +135 -82
  251. package/lib/system.teammembers.847d8ea7.js +1 -0
  252. package/lib/system.timers.28691ce4.js +38 -0
  253. package/lib/{system.timers.f66ddd64.mjs → system.timers.eb0b6f3e.mjs} +50 -174
  254. package/lib/system.translation.6237f071.js +1 -0
  255. package/lib/{system.translation.279d9e27.mjs → system.translation.e34f0891.mjs} +5 -5
  256. package/lib/{system.user.80ca9f42.mjs → system.user.fa2d2997.mjs} +17 -16
  257. package/lib/{system.user.10ae5122.js → system.user.fca3f2d6.js} +5 -5
  258. package/lib/{system.useraffiliation.b5c11d9e.mjs → system.useraffiliation.518e341e.mjs} +4 -3
  259. package/lib/system.useraffiliation.7547b9c7.js +1 -0
  260. package/lib/system.webresource.12712b90.js +1 -0
  261. package/lib/{system.webresource.6dbe70f3.mjs → system.webresource.469db736.mjs} +16 -58
  262. package/lib/{system.welcome.a162fc7d.mjs → system.welcome.191e98f5.mjs} +10 -3
  263. package/lib/system.welcome.f64e49f8.js +1 -0
  264. package/lib/tcheckboxs.090e75eb.mjs +52 -0
  265. package/lib/tcheckboxs.99361be3.js +1 -0
  266. package/lib/tcurrency.0ddac2f8.mjs +92 -0
  267. package/lib/tcurrency.62763c6d.js +1 -0
  268. package/lib/tdatepicker.8fe48b1b.mjs +52 -0
  269. package/lib/tdatepicker.b19e689d.js +1 -0
  270. package/lib/tdictSwitch.2e07dc8a.js +1 -0
  271. package/lib/tdictSwitch.43d882c7.mjs +60 -0
  272. package/lib/tfile.1bc381f9.js +1 -0
  273. package/lib/tfile.72925615.mjs +62 -0
  274. package/lib/tparticipants.77b876e2.js +1 -0
  275. package/lib/tparticipants.ca5b556c.mjs +56 -0
  276. package/lib/translation.mains.1ce7e110.js +1 -0
  277. package/lib/translation.mains.278e4ba6.mjs +383 -0
  278. package/lib/utils.datepicker.js.2076c2a2.mjs +61 -0
  279. package/lib/utils.datepicker.js.8576e2fc.js +1 -0
  280. package/lib/utils.echarts.js.461a74e7.js +54 -0
  281. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  282. package/lib/utils.mixins.js.750ca50e.js +1 -0
  283. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  284. package/lib/utils.util.js.50d1ec9c.js +1 -0
  285. package/lib/utils.util.js.82cd8447.mjs +424 -0
  286. package/lib/view.build.b44fd7d7.js +1 -0
  287. package/lib/view.build.f2a9fcfb.mjs +2727 -0
  288. package/lib/viewList.5a25c4b6.mjs +346 -0
  289. package/lib/viewList.be5a5ec5.js +1 -0
  290. package/locale/en_US.js +48 -23
  291. package/locale/id_ID.js +32 -7
  292. package/locale/vi_VN.js +1973 -1948
  293. package/locale/zh_CN.js +53 -29
  294. package/package.json +106 -105
  295. package/lib/chartbi.0d1d3b58.mjs +0 -27639
  296. package/lib/chartbi.d3f580d6.js +0 -60
  297. package/lib/main.0088ac99.js +0 -1
  298. package/lib/main.34c14bdb.js +0 -1
  299. package/lib/main.4b9adacf.js +0 -1
  300. package/lib/main.d1239940.js +0 -1
  301. package/lib/messages.add7c391.js +0 -9
  302. package/lib/system.account.00b82418.mjs +0 -2552
  303. package/lib/system.account.04cb26b6.js +0 -216
  304. package/lib/system.config.6244fa9b.js +0 -1
  305. package/lib/system.datasource.32878f5f.js +0 -1
  306. package/lib/system.dict.d25839ec.js +0 -1
  307. package/lib/system.duplicatechecking.4ed8c391.mjs +0 -2142
  308. package/lib/system.duplicatechecking.670ee24a.js +0 -1
  309. package/lib/system.email.52671629.mjs +0 -7432
  310. package/lib/system.email.dd537fd0.js +0 -41
  311. package/lib/system.fieldsecurity.4947c737.js +0 -1
  312. package/lib/system.file.93d65d16.js +0 -1
  313. package/lib/system.log.252cce0b.js +0 -1
  314. package/lib/system.machine.4e393981.js +0 -1
  315. package/lib/system.notice.ab23c15b.js +0 -1
  316. package/lib/system.noticereceived.123b764e.js +0 -1
  317. package/lib/system.onlineuser.295ad7f5.js +0 -1
  318. package/lib/system.org.c3bb51ff.js +0 -1
  319. package/lib/system.permissions.967200f1.js +0 -9
  320. package/lib/system.plugin.f8da8731.js +0 -1
  321. package/lib/system.pos.22fabf30.js +0 -1
  322. package/lib/system.promptmanagement.639a98e1.js +0 -1
  323. package/lib/system.role.4cf72743.js +0 -1
  324. package/lib/system.sumberrules.1a5b80df.js +0 -1
  325. package/lib/system.team.777feecf.mjs +0 -1000
  326. package/lib/system.team.ad10fc96.js +0 -1
  327. package/lib/system.teammembers.b193dd23.js +0 -1
  328. package/lib/system.timers.e31fe5fd.js +0 -38
  329. package/lib/system.translation.d3ed3d35.js +0 -1
  330. package/lib/system.useraffiliation.593c9ad4.js +0 -1
  331. package/lib/system.webresource.25e56654.js +0 -1
  332. package/lib/system.welcome.ec4e941f.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const p=require("./components.chartbi.e4680eaa.js"),h=require("./http.main.2f8a6936.js"),u=require("./http.syscodegenerateconfigmanage.840f1136.js");const y={props:{effectType:{type:String,defaule:"input"}},computed:{icon(){let t="gd-icon-ziti";return this.effectType==="double"?t="gd-icon-fudianshu":this.effectType==="fk"?t="gd-icon-waijian":this.effectType==="datepicker"?t="gd-icon-riqi":this.effectType==="switch"?t="gd-icon-anniu_kaiqi":this.effectType==="currency"?t="gd-icon-huobi":this.effectType==="select"?t="gd-icon-xiala":this.effectType==="textarea"?t="gd-icon-duohangwenben":this.effectType==="inputnumber"?t="gd-icon-shuzi":this.effectType==="radio"?t="gd-icon-danxuan_xuanzhong":this.effectType==="checkbox"?t="gd-icon-xuanzhong":this.effectType==="about"?t="gd-icon-guanyu":this.effectType==="participants"?t="gd-icon-canyu":this.effectType==="image"?t="gd-icon-tupian":this.effectType==="file"?t="gd-icon-wenjian":this.effectType==="editor"?t="gd-icon-fuwenbenkuang":this.effectType==="user"&&(t="gd-icon-user"),t}},data(){return{}},methods:{}};var b=function(){var e=this,i=e._self._c;return i("span",{staticClass:"gd-icons",class:e.icon})},k=[],D=p.normalizeComponent(y,b,k,!1,null,"674ea292",null,null);const m=D.exports;const x={props:{configData:{type:Array,default:()=>[]}},components:{EffectTypeIcon:m},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"800px",record:{},columns:[{type:"selection-radio",width:"60",fixed:!0,fieIdType:[3,5,6]},{transKey:"gd.xlsxImport.field",prop:"columnComment",label:"\u5B57\u6BB5",align:"left",type:"slot",slotType:"columnComment",fieIdType:[3]},{transKey:"gd.xlsxImport.type",prop:"effectType",label:"\u5B57\u6BB5\u7C7B\u578B",align:"left",type:"slot",slotType:"effectType",fieIdType:[3]},{transKey:"gd.xlsxImport.importValues",prop:"rawValued",label:"\u5BFC\u5165\u503C",align:"left",fieIdType:[2,7]},{transKey:"gd.xlsxImport.systemOptions",prop:"replaceValue",label:"\u7CFB\u7EDF\u9009\u9879",align:"left",type:"slot",slotType:"replaceValue",fieIdType:[2,7]},{transKey:"gd.xlsxImport.associatedTable",prop:"busName",label:"\u5173\u8054\u8868\u540D",align:"left",type:"slot",slotType:"busName",fieIdType:[5,6]},{transKey:"gd.xlsxImport.lookUpField",prop:"columnSlots",label:"\u67E5\u627E\u5B57\u6BB5",align:"left",type:"slot",slotType:"columnSlots",fieIdType:[5,6],showTooltip:!1}],selectedRowKeys:[],selectedRows:[],loadSoData:t=>new Promise((e,i)=>{e({pageNo:1,pageSize:200,totalRows:0,rows:this.loadData})}),loadData:[],dictList:[]}},computed:{rowKey(){return this.record.fieIdType===2||this.record.fieIdType===7?"index":this.record.fieIdType===5||this.record.fieIdType===6?"tablename":"columnname"},getColumns(){return this.columns.filter(t=>t.fieIdType.includes(this.record.fieIdType))},title(){return this.record.fieIdType===2||this.record.fieIdType===7?this.$i18nt("gd.xlsxImport.dictMapping","\u5B57\u5178\u6620\u5C04"):this.record.fieIdType===5||this.record.fieIdType===6?this.$i18nt("gd.xlsxImport.associatedFieldsTip","\u9009\u62E9\u5173\u8054\u5B57\u6BB5:")+` (${this.record.aboutName})`:this.$i18nt("gd.xlsxImport.foreignTable","\u5916\u952E\u8868:")+` (${this.record.fkEntityName})`},height(){return this.screenHeight-(this.fullscreen?130:290)},...p.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize"])},methods:{fkSearch(t,e){(t&&t.configList?t.configList:[]).length>0||this.sysCodeGenerateConfigList(t.id).then(a=>{if(a.code===200){const s=a.data.filter(n=>n.columnname==="name")[0];t.configList=[...a.data],this.$nextTick(()=>{setTimeout(()=>{t.aboutField=s?s.columnname:a.data[0].columnname},0)})}})},handleSubmit(){if(this.loadData.filter(e=>this.selectedRowKeys.includes(e[this.rowKey]))[0]===void 0&&this.rowKey!=="index"){this.$message.error(this.$i18nt("gd.field.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}this.$emit("ok",{loadData:this.loadData,data:this.record,selectedRowKeys:this.selectedRowKeys}),this.closed()},getAboutListByEntity(){return u.getAboutListByEntity({entityName:this.record.fkEntityName}).then(t=>{if(t.code===200){let e=[],i=this.record.abouts?this.record.abouts:[];i.forEach(s=>{e.push(s.aboutTable)});let a=t.data;a.forEach((s,n)=>{let l=i.filter(o=>o.aboutTable==s.tablename)[0];a[n].aboutField=l?l.aboutField:"",a[n].enabled=!!l,a[n].configList=l?l.configList:[]}),this.loadData=[...a]}return t})},sysCodeGenerateConfigList(t){return u.sysCodeGenerateConfigList({codeGenId:t}).then(e=>e)},getAboutInit(){this.confirmLoading=!0;let t=this.record.fkEntityName.split(","),e=this.tableLists.filter(i=>i.tablename===t[0])[0];Promise.all([this.getAboutListByEntity(),this.sysCodeGenerateConfigList(e.id)]).then(i=>{this.confirmLoading=!1;let a=i[1];if(a.code===200){const s=a.data.filter(l=>l.columnname==="name")[0];let n=[...this.loadData];n.forEach((l,o)=>{l.tablename===e.tablename&&(n[o].configList=a.data,n[o].aboutField=s?s.columnname:a.data[0].columnname)}),this.loadData=[...n],this.selectedRowKeys=this.selectedRowKeys.length===0?[e.tableName]:this.selectedRowKeys}this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)})})},openFk(t){this.record=JSON.parse(JSON.stringify(t)),this.fullscreen=!1,this.visible=!0},open(t){this.record=JSON.parse(JSON.stringify(t)),this.fullscreen=!1,this.visible=!0;let e=!0;if([2,7].includes(t.fieIdType)){let i=this.configData.filter(a=>a.id==t.checkzd)[0];this.dictList=i.dicttypecode?this.$options.filters.dictData(i.dicttypecode):[],this.loadData=[...t.dictionarys]}else if([3].includes(t.fieIdType))this.loadData=[...t.fkData],this.selectedRowKeys=t.fkFilid?[t.fkFilid]:[];else if([5,6].includes(t.fieIdType)){e=t.fkData.length===0?!1:e;let i=t.abouts&&t.abouts.length>0?t.abouts:[],a=[];i.forEach(s=>{a.push(s.aboutTable)}),this.selectedRowKeys=a,this.loadData=[...t.fkData],!e&&this.getAboutInit()}this.$nextTick(()=>{setTimeout(()=>{e&&this.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,this.rowKey!=="tablename")return;let i=this.$refs.table.tableData,a={};i.forEach((s,n)=>{s.tablename===t[0]&&(a={ind:n,data:s})}),a.data&&this.fkSearch(a.data,a.ind)},refresh(t=!0){this.$refs.table?this.$refs.table.refresh(t):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var T=function(){var e=this,i=e._self._c;return i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.closed}},[i("template",{slot:"title"},[i("gd-modal-title",{attrs:{title:e.title,fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),e.visible?i("div",[i("gd-tables",{ref:"table",attrs:{dataSource:e.loadSoData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getColumns,filtering:!1,height:e.height,initialLoading:!1,showPagination:!1,rowKey:e.rowKey,selectedKeep:!0,disabledRefresh:"",disabledColumnSettings:"",selectedRowKeys:e.selectedRowKeys},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"replaceValue",fn:function({column:a,row:s}){return[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.xlsxImport.mapFieldsTip","\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5")},model:{value:s.replaceValue,callback:function(n){e.$set(s,"replaceValue",n)},expression:"row.replaceValue"}},[e._l(e.dictList,function(n){return i("el-option",{key:n.code,attrs:{label:e.$i18nt(`Dynamics.${n.transkey}`,n.name),value:n.code}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),i("el-option",{attrs:{label:e.$i18nt("gd.placeholder.ignore","\u5FFD\u7565"),value:"@-1"}},[i("span",{staticStyle:{color:"#faad14"}},[e._v(" "+e._s(e.$i18nt("gd.placeholder.ignore","\u5FFD\u7565"))+" ")])])],2)]}},{key:"columnComment",fn:function({column:a,row:s}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ")]}},{key:"effectType",fn:function({column:a,row:s}){return[e._v(" "+e._s(e._f("dictType")("code_gen_effect_type",s.effecttype))+" ")]}},{key:"busName",fn:function({column:a,row:s}){return[e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+e._s(s.tablename)+" ")]}},{key:"columnSlots",fn:function({column:a,row:s,index:n}){return[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.xlsxImport.lookUpFieldTip","\u8BF7\u9009\u62E9\u67E5\u627E\u5B57\u6BB5"),filterable:""},on:{focus:function(l){return e.fkSearch(s,n)}},model:{value:s.aboutField,callback:function(l){e.$set(s,"aboutField",l)},expression:"row.aboutField"}},[e._l(s.configList,function(l){return[i("el-option",{attrs:{label:e.$i18nt(`Dynamics.${l.transkey}`,l.columncomment),value:l.columnname}},[i("EffectTypeIcon",{attrs:{effectType:l.effecttype}}),e._v(" "+e._s(e.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" ("+e._s(l.columnname)+") ")],1)]})],2)]}}],null,!1,1203945507)})],1):e._e()],2)},$=[],v=p.normalizeComponent(x,T,$,!1,null,"3d5059a2",null,null);const _=v.exports;const I={name:"GdXlsxImport",props:{tableData:{type:Object,default:()=>({})},typeImport:{type:[String,Number],default:1}},components:{EffectTypeIcon:m,FieldMapping:_},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,selectedRowKeys:[],selectedRows:[],width:"90%",ruleFormData:{serviceConsultant:"",entityValue:""},rules:{serviceConsultant:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],entityValue:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},excelFielData:{excelName:"",excelSize:""},excelData:[],loading:!1,autoInputOver:!1,serviceData:[],fileId:0,loadData:[],configData:[],excelImportData:[],selItem:{},loadSoData:t=>new Promise((e,i)=>{setTimeout(()=>{this.confirmLoading=!1,e({pageNo:1,pageSize:200,totalRows:0,rows:this.loadData})},200)}),columns:[{transKey:"gd.xlsxImport.importInformation",prop:"importName",label:"\u5BFC\u5165\u4FE1\u606F",align:"left"},{transKey:"gd.xlsxImport.mappingEntityFields",prop:"checkzd",label:"\u6620\u5C04\u5B9E\u4F53\u5B57\u6BB5",align:"left",type:"slot",slotType:"checkzd",showTooltip:!1},{transKey:"gd.xlsxImport.foreignField",prop:"fkname",label:"\u5916\u952E\u5B57\u6BB5",align:"left"},{transKey:"gd.xlsxImport.type",prop:"zdtype",label:"\u5B57\u6BB5\u7C7B\u578B",align:"left"}]}},computed:{entityData(){return this.typeImport!=1?this.tableLists:this.tableLists.filter(t=>t.id===this.tableData.id)},excelName(){return`${this.excelFielData.excelName} ${this.excelFielData.excelSize}`},title(){return this.typeImport==2?this.$i18nt("gd.menu.universalImport","\u901A\u7528\u5BFC\u5165"):`${this.$i18nt(`Dynamics.${this.tableData.transkey}`,this.tableData.busname)} (${this.tableData.tablename}) ${this.$i18nt("gd.btn.import","\u5BFC\u5165")}`},height(){return this.screenHeight-(this.fullscreen?120:310)},...p.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize","language"])},methods:{lookup(){this.$refs.viewSearch.open({fkEntityName:"sys_user",effectType:"fk",val:this.ruleFormData.serviceConsultant})},lookupSeled(t){this.serviceData=[...t.fkData],this.ruleFormData.serviceConsultant=t.data[0]?t.data[0]:""},handleSubmit(){let t=this.$refs.table.tableData;if(this.fileId===""){this.$message.error(this.$i18nt("gd.xlsxImport.uploadExcel","\u4E0A\u4F20excel\u6587\u4EF6"));return}if(this.ruleFormData.entityValue===""){this.$message.error(this.$i18nt("gd.xlsxImport.entityTableTip","\u8BF7\u9009\u62E9\u5B9E\u4F53\u8868"));return}if(t.length==0){this.$message.error(this.$i18nt("gd.xlsxImport.entityFileTip","\u8BF7\u5BFC\u5165\u5B8C\u6574\u7684\u6587\u4EF6"));return}if(this.ruleFormData.serviceConsultant===""){this.$message.error(this.$i18nt("gd.xlsxImport.owner","\u8BB0\u5F55\u8D1F\u8D23\u4EBA"));return}this.confirmLoading=!0,this.$refs.ruleForm.validate(e=>{const i=this.tableLists.filter(a=>a.id===this.ruleFormData.entityValue)[0];if(e){let a={people:this.ruleFormData.serviceConsultant,tableName:i.tablename,fileId:this.fileId,fieIds:[]},s=t.filter(o=>o.show);const n=s.filter(o=>o.checkzd===""),l=s.filter(o=>!!(o.fieIdType===3&&!o.fkFilid||(o.fieIdType===5||o.fieIdType===6)&&this.hiatusAbout(o)));if(n.length>0||l.length>0){this.$message.error(this.$i18nt("gd.field.replenishData","\u8BF7\u8865\u5145\u6570\u636E")),this.confirmLoading=!1;return}s.forEach(o=>{let d=[],r=[];o.abouts&&o.abouts.length>0&&o.abouts.forEach(f=>{d.push({aboutTable:f.aboutTable,aboutField:f.aboutField}),r.push({partTable:f.aboutTable,partField:f.aboutField})});let c={execlName:o.importName,insinuate:o.insinuate,fieIdType:o.fieIdType,partiRefTables:o.fieIdType==6?r:[],abouts:o.fieIdType==5?d:[]};(o.fieIdType===2||o.fieIdType===7)&&Object.assign(c,{dictionarys:o.dictionarys.filter(f=>f.replaceValue!=="@-1")}),o.fieIdType===3&&Object.assign(c,{fkTable:o.fkTable,fkFilid:o.fkFilid}),o.fieIdType!=-1&&a.fieIds.push(c)}),h.baseImport(a).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.confirmLoading=!1,this.$emit("ok"),this.closed()):(this.confirmLoading=!1,this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message))}).catch(o=>{this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")),this.confirmLoading=!1})}else this.confirmLoading=!1})},handleChangeZd(t,e){let i=this.$refs.table.tableData;const a=this.configData.filter(o=>o.id===t)[0];if(t===0){i[e.ind]=Object.assign({...i[e.ind]},{fieIdType:-1,checkzd:t}),this.loadData=[...i],this.$refs.table.setLoadData(this.loadData);return}let s={insinuate:a.columnname,fkEntityName:a.fkentityname,fkData:[],abouts:[],dictionarys:[]},n="";const l=this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment);["fk","user"].includes(a.effecttype)?(Object.assign(s,{fieIdType:3,fkname:l,fkTable:a.fkentityname}),n="fk"):["about","participants"].includes(a.effecttype)?(Object.assign(s,{fieIdType:a.effecttype==="about"?5:6,aboutName:l,abouts:[]}),n="about"):a.dicttypecode?(Object.assign(s,{fieIdType:a.effecttype==="checkbox"?7:2,fkname:l,dictionarys:this.dictionarysP(a,e.index),zdtype:a.nettype}),n="dictTypeCode"):Object.assign(s,{fieIdType:a.nettype.indexOf("datetime")>-1?4:1,fkname:l,zdtype:a.nettype}),i[e.ind]=Object.assign({...i[e.ind]},{...s}),this.loadData=[...i],this.$refs.table.setLoadData(this.loadData),n!==""&&this.$nextTick(()=>{setTimeout(()=>{n!=="fk"?this.editColumn(i[e.ind]):this.editColumnFk(i[e.ind],e.ind)},0)})},okFieldMapping({loadData:t,data:e,selectedRowKeys:i}){let a=this.$refs.table.tableData;if(e.fieIdType===2||e.fieIdType===7)a[e.ind]=Object.assign(a[e.ind],{dictionarys:[...t]});else if(e.fieIdType===5||e.fieIdType===6){let s=t.filter(l=>i.includes(l.tablename))[0],n=s.configList.filter(l=>l.columnname===s.aboutField)[0];a[e.ind]=Object.assign(a[e.ind],{abouts:[{aboutTable:s.tablename,aboutField:s.aboutField,configList:s.configList}],fkname:s.busname+"-"+this.$i18nt(`Dynamics.${n.transkey}`,n.columncomment),zdtype:n.netType,fkData:[...t]})}else{let s=t.filter(n=>i.includes(n.columnname))[0];a[e.ind]=Object.assign(a[e.ind],{zdtype:s.nettype,fkFilid:s.columnname,fkname:this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),fieIdType:3})}this.loadData=[...a],this.$refs.table.setLoadData(this.loadData)},editColumn(t){const e=this.configData.filter(i=>i.id===t.checkzd)[0];if(["fk","user"].includes(e.effecttype)&&t.fkFilid===void 0){let i=this.$refs.table.tableData;this.editColumnFk(i[t.ind],t.ind);return}this.selItem=t,this.$refs.fieldMapping.open(t)},editColumnFk(t,e){!t.fkTable||(this.$refs.fieldMapping.openFk(t),this.$refs.table.tableData,u.getCodeByEntity({entityName:t.fkTable}).then(i=>{if(i.code===200){const a=i.data.filter(l=>l.columnname=="name")[0],s={zdtype:a.nettype,fkFilid:a.columnname,fkname:this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)};let n=this.$refs.table.tableData;n[e]=Object.assign(n[e],s,{fkData:i.data}),this.loadData=[...n],this.$refs.table.setLoadData(this.loadData),this.selItem=n[e],this.$refs.fieldMapping.open(n[e])}}))},getFk(t,e,i=!0){i&&this.editColumn(this.loadData[e]),t.fkEntityName&&u.getCodeByEntity({entityName:t.fkEntityName}).then(a=>{if(a.code===200){const s=a.data.filter(o=>o.columnname=="name")[0],n={zdtype:s.nettype,fkFilid:s.columnname,fkname:this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),fieIdType:3,insinuate:t.columnname,fkTable:t.fkentityname};let l=this.$refs.table.tableData;l[e]=Object.assign(l[e],s&&!l[e].fkFilid?n:{},{fkData:a.data}),this.loadData=[...l],this.$refs.table.setLoadData(this.loadData)}})},autoInput(){let t=new Map;this.excelImportData.forEach((i,a)=>{t.set(i.importName,a)});let e=[];this.configData.forEach((i,a)=>{const s=this.isCheckedName(t,i.langs);let n=null;s&&(n=this.autoInputData(s,i,a)),n&&e.push(n)}),this.autoInputOver=!0,this.$nextTick(()=>{this.refresh(),setTimeout(()=>{e.forEach(i=>{this.getFk(i.ele,i.tableidx,i.statu)})},200)})},autoInputData(t,e,i){const a=t.ind;let s={checkzd:e.id,configindex:i,insinuate:e.columnname,fkData:[],aboutName:"",fkname:"",fkEntityName:e.fkentityname,abouts:[],dictionarys:[]};const n=this.$i18nt(`Dynamics.${e.transkey}`,e.columncomment);if(!e.dicttypecode&&!["fk","about","user","participants"].includes(e.effecttype))Object.assign(s,{fieIdType:e.nettype.indexOf("datetime")>-1?4:1,fkname:n,zdtype:e.nettype});else if(["about","participants"].includes(e.effecttype))Object.assign(s,{fieIdType:e.effecttype==="about"?5:6,aboutName:n});else{const l=this.configData.filter(r=>r.id==e.id)[0],o=l&&!["fk","user"].includes(e.effecttype)?{insinuate:l.columnname,fieIdType:l.effecttype==="checkbox"?7:2,dictionarys:this.dictionarysP(l,t.i)}:{},d=["fk","user"].includes(e.effecttype)?{fieIdType:3,oldCheckzd:e.id,fkname:n,zdtype:e.nettype,fkTable:e.fkentityname}:{};Object.assign(s,d,o)}return this.loadData[a]=Object.assign({...this.loadData[a]},{...s}),["fk","user"].includes(e.effectType)?{ele:e,tableidx:a,statu:!1}:null},isCheckedName(t,e,i){if(e.length===0)return!1;e.forEach(n=>{n.hasName=t.has(n.val),n.i=t.get(n.val);let l=this.loadData.filter(o=>o.index===n.i)[0];n.ind=l?l.ind:n.i});let a=e.filter(n=>n.hasName);if(a[0]===void 0)return!1;if(a.length==1)return a[0];let s=a.filter(n=>n.code==this.language)[0];return s||a[0]},handleSelect(t){if(this.excelImportData.length==0)return;this.confirmLoading=!0,this.$refs.table.setLoadData([]);let e=[...this.loadData];e.map(i=>(i.checkzd="",i)),this.loadData=[...e],this.getEntutityConfig()},getEntutityConfig(t){if(this.ruleFormData.entityValue===""){this.autoInputOver=!0;return}u.sysCodeGenerateConfigList({codeGenId:this.ruleFormData.entityValue}).then(e=>{if(e.code===200){const i=["sysorgid","createdtime","updateduserid","createduserid","updatedtime"];let a=e.data.map(s=>(s.langs=this.getLangs(s),s)).filter(s=>!i.includes(s.columnname));this.configData=[...a],this.autoInput()}})},checkFile(){this.confirmLoading||(this.autoInputOver=!1,this.$excelAction.importExcel((t,e,i,a,s)=>{this.confirmLoading=!0;let n=[];this.excelFielData={excelName:i,excelSize:a/1024/1024>1?(a/1024/1024).toFixed(2)+"mb":(a/1024).toFixed(2)+"kb"};let l=["\u90E8\u95E8","\u521B\u5EFA\u65F6\u95F4","\u521B\u5EFA\u8005","\u66F4\u65B0\u65F6\u95F4","\u66F4\u65B0\u8005","\u4FEE\u6539\u65F6\u95F4","\u4FEE\u6539\u8005","Department","Creation time","Creator by","Update time","Updated by","Trang ch\u1EE7","Th\u1EDDi gian t\u1EA1o","Th\u1EDDi gian c\u1EADp nh\u1EADt","C\u1EADp nh\u1EADt"],o=[];t[0].forEach((r,c)=>{n.push({index:c,importName:r,checkzd:"",zdtype:"",id:0,show:r.indexOf("(\u7528\u4E8E\u5BFC\u5165\u66F4\u65B0)")==-1?!l.includes(r):!1}),o.push({importName:r})}),this.excelImportData=[...o],this.loadData=n.filter(r=>l.includes(r.importName)?!1:r.show).map((r,c)=>(r.ind=c,r)),t.shift(),this.excelData=t;let d=new FormData;d.append("file",s[0]),h.sysFileUpload(d).then(r=>{if(!r.success){this.$message.error(this.$i18nt("gd.https.uploadFail","\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")+` ${r.message}`),this.excelImportData=[],this.loadData=[],this.excelData=[],this.excelFielData={excelName:"",excelSize:""},this.confirmLoading=!1;return}this.getEntutityConfig(),this.confirmLoading=this.autoInputOver?!1:this.confirmLoading,this.fileId=r.data;const c=document.getElementById("file");c&&c.remove()})},t=>{this.confirmLoading=t.statu!=="rejected"}))},open(){this.fullscreen=!1,this.visible=!0,this.serviceData=[],this.searchData(""),this.excelFielData={excelName:"",excelSize:""},this.excelImportData=[],this.fileId="",this.ruleFormData={serviceConsultant:"",entityValue:this.typeImport==1?this.tableData.id:""},this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.resetFields()},0)})},searchData(t){this.loading=!0;const e=this.serviceData.filter(i=>this.ruleFormData.serviceConsultant===i.id);this.serviceData=[],h.baseFkList({name:t,fkEntityName:"sys_user"}).then(i=>{if(this.loading=!1,i.code===200){const a=i.data.filter(s=>this.ruleFormData.serviceConsultant!==s.id);this.serviceData=e.concat(a)}})},getLangs(t,e){const i=this.$i18n.messages;let a=[{code:"default",val:t.columncomment||t.name,name:""}];for(let s in i)a.push({code:s,val:this.$i18n.t(`Dynamics.${t.transkey}`,s),name:""});return a},dictionarysP(t,e){if(!t.dicttypecode)return[];let i=t.dicttypecode,a=this.$options.filters.dictData(i),s=new Map,n=[],l=[];return this.excelData.forEach(o=>{s.has(o[e])||(s.set(o[e],1),(o[e]?String(o[e]).split(","):[]).forEach(r=>{l.filter(f=>f==r)[0]===void 0&&(l.push(r),n.push({rawValue:r,rawValued:r,replaceValue:this.dictListFilter(a,r,t)}))}))}),n},dictListFilter(t,e,i){if(t.map(n=>(n.langs=this.getLangs(n,n.name),n)),i.effectType!=="checkbox"){let n=this.hasDict(t,e);return n===!1?null:String(n.code)}let a=e==null?[]:e.split(","),s=[];return a.forEach(n=>{let l=this.hasDict(t,n);l&&s.push(String(l.code))}),s.length==0?null:s.join(",")},hasDict(t,e){t.forEach((s,n)=>{let l=s.langs.filter(o=>o.val==e)[0];s.hasName=!!l});let i=t.filter(s=>s.hasName);if(i[0]===void 0)return!1;if(i.length==1)return i[0];let a=i.filter(s=>!!s.langs.filter(l=>l.code==this.language)[0])[0];return a||i[0]},hiatusAbout(t){return(t.abouts?t.abouts:[]).length==0},hiatusDict(t){return!!(t.dictionarys?t.dictionarys:[]).filter(a=>a.replaceValue===null)[0]},refresh(t=!0){this.$refs.table?this.$refs.table.refresh(t):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName,i=t.key?t:t.item;if(this[e]===void 0&&this.func===void 0){console.log("\u8BF7\u5B9A\u4E49 "+e+" \u65B9\u6CD5");return}this[e]&&this[e](i)}}};var F=function(){var e=this,i=e._self._c;return i("div",[i("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.closed}},[i("template",{slot:"title"},[i("gd-modal-title",{attrs:{title:e.title,fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"import-container"},[i("div",{staticClass:"excel-table"},[e.visible?i("gd-tables",{ref:"table",attrs:{dataSource:e.loadSoData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,height:e.height,filtering:!1,initialLoading:!1,showPagination:!1,rowKey:"index",disabledRefresh:"",disabledColumnSettings:""},scopedSlots:e._u([{key:"operator",fn:function(){return[i("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,"label-width":"130px",rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:8}},[i("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:e.$i18nt("gd.xlsxImport.file","\u6587\u4EF6"),"label-width":e.excelName?"86px":"130px"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.checkFile}},[e._v(" "+e._s(e.$i18nt("gd.xlsxImport.title","\u5BFC\u5165"))+" ")]),i("span",{staticStyle:{"padding-left":"6px"}},[e._v(e._s(e.excelName))])],1)],1),i("el-col",{attrs:{span:8}},[i("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:e.$i18nt("gd.xlsxImport.entityTable","\u5B9E\u4F53\u8868"),prop:"entityValue"}},[i("el-select",{ref:"refTable",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:e.typeImport==1},on:{change:e.handleSelect},model:{value:e.ruleFormData.entityValue,callback:function(a){e.$set(e.ruleFormData,"entityValue",a)},expression:"ruleFormData.entityValue"}},e._l(e.entityData,function(a){return i("el-option",{key:a.id,attrs:{label:e.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.id}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+e._s(a.tablename)+" ")])}),1)],1)],1),i("el-col",{attrs:{span:8}},[i("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:e.$i18nt("gd.xlsxImport.owner","\u8BB0\u5F55\u8D1F\u8D23\u4EBA"),prop:"serviceConsultant"}},[i("div",{staticClass:"cao_about"},[i("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:e.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":e.searchData,"collapse-tags":!0},model:{value:e.ruleFormData.serviceConsultant,callback:function(a){e.$set(e.ruleFormData,"serviceConsultant",a)},expression:"ruleFormData.serviceConsultant"}},e._l(e.serviceData,function(a){return i("el-option",{key:a.id,attrs:{label:a.name,value:a.id}})}),1),i("div",{staticClass:"cao_setting",on:{click:e.lookup}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1)])],1)],1)],1)]},proxy:!0},{key:"checkzd",fn:function({column:a,row:s}){return[i("div",{staticClass:"flex-between",class:s.checkzd===0?"flex-between-ignore":""},[i("el-select",{style:(e.record.fieIdType===2||e.record.fieIdType===3||e.record.fieIdType===5||e.record.fieIdType===6||e.record.fieIdType===7,"width:70%"),attrs:{placeholder:e.$i18nt("gd.xlsxImport.mapFieldsTip","\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5"),filterable:""},on:{change:function(n){return e.handleChangeZd(n,s)}},model:{value:s.checkzd,callback:function(n){e.$set(s,"checkzd",n)},expression:"row.checkzd"}},[e._l(e.configData,function(n){return i("el-option",{key:n.id,attrs:{label:e.$i18nt(`Dynamics.${n.transkey}`,n.columncomment),value:n.id}},[i("EffectTypeIcon",{attrs:{effectType:n.effecttype}}),e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.columncomment))+" ("+e._s(n.columnname)+") ")],1)}),i("el-option",{attrs:{label:e.$i18nt("gd.placeholder.ignore","\u5FFD\u7565"),value:0}},[i("span",{staticStyle:{color:"#faad14"}},[e._v(" "+e._s(e.$i18nt("gd.placeholder.ignore","\u5FFD\u7565"))+" ")])])],2),s.fieIdType===2||s.fieIdType===7?[e.hiatusDict(s,s.index)?i("i",{staticClass:"el-icon-info",staticStyle:{color:"#1890ff","font-size":"17px",margin:"0 6px"}}):e._e(),i("el-button",{staticStyle:{padding:"4px 9px",margin:"0 6px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(n){return e.editColumn(s)}}})]:e._e(),s.fieIdType===3?[s.fkFilid?e._e():i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#faad14","font-size":"17px",margin:"0 6px"}}),i("el-button",{staticStyle:{padding:"4px 9px",margin:"0 6px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(n){return e.editColumn(s)}}})]:e._e(),s.fieIdType===5||s.fieIdType===6?[e.hiatusAbout(s)?i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#faad14","font-size":"17px",margin:"0 6px"}}):e._e(),i("el-button",{staticStyle:{padding:"4px 9px",margin:"0 6px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(n){return e.editColumn(s)}}})]:e._e()],2)]}}],null,!1,1297833159)}):e._e(),i("div",{staticClass:"description"},[i("div",{staticClass:"l"},[e._v(" "+e._s(e.$i18nt("gd.xlsxImport.iconDescription","\u56FE\u6807\u8BF4\u660E"))+" ")]),i("div",{staticClass:"r"},[i("div",{staticClass:"icon-explain"},[i("i",{staticClass:"el-icon-info",staticStyle:{color:"#1890ff","font-size":"16px",margin:"0 2px"}}),i("div",[e._v(" "+e._s(e.$i18nt("gd.icon.info","\u6B64\u56FE\u6807\u4E3A\u4FE1\u606F\u7F3A\u5931\u6216\u7F3A\u5C11\u63D0\u793A\uFF0C\u53EF\u5FFD\u7565\uFF1B"))+" ")]),i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#faad14","font-size":"16px",margin:"0 2px"}}),i("div",[e._v(" "+e._s(e.$i18nt("gd.icon.err","\u6B64\u56FE\u6807\u4E3A\u8B66\u544A\u63D0\u793A\uFF0C\u9700\u7528\u6237\u91CD\u65B0\u64CD\u4F5C\u3002"))+" ")])])])])],1)])],2),i("FieldMapping",{ref:"fieldMapping",attrs:{configData:e.configData},on:{ok:e.okFieldMapping}}),i("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},C=[],S=p.normalizeComponent(I,F,C,!1,null,"8daaff5f",null,null);const g=S.exports,L=Object.freeze(Object.defineProperty({__proto__:null,default:g},Symbol.toStringTag,{value:"Module"}));exports.EffectTypeIcon=m;exports.XlsxImport=g;exports.main=L;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./http.filedocument.7c656b91.js"),c=require("./components.uploadfile.5a9b6cc1.js"),n=require("./components.chartbi.e4680eaa.js");require("./http.filemanage.7e6e3e1a.js");require("./utils.util.js.50d1ec9c.js");require("./utils.echarts.js.461a74e7.js");const u={props:{limit:{type:Number,default:12},fileAccept:{type:String,default:""},fileSize:{type:Number,default:1024}},data(){return{ruleFormRecord:{options:{fileName:"file",drag:!0}},record:null,width:"700px",confirmLoading:!1,visible:!1,fullscreen:!1,parentId:0,parentList:[],buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleForm:{file:"",fileList:[]},rules:{name:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:["change","blur"]},{pattern:/^((?!\\|\/|:|\*|\?|<|>|\||'|%|\!|"|').){1,50}$/,message:this.$i18nt("gd.fileDocument.addNameTip",'\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u4EE5\u4E0B\u5B57\u7B26\uFF1A<>:"/|?*%!')}],file:[{required:!0,message:this.$i18nt("gd.web.selectFileTip","\u8BF7\u9009\u62E9\u6587\u4EF6!"),trigger:["change","blur"]}]},rulesName:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:["change","blur"]},{pattern:/^((?!\\|\/|:|\*|\?|<|>|\||'|%|\!|"|').){1,50}$/,message:this.$i18nt("gd.fileDocument.addNameTip",'\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u4EE5\u4E0B\u5B57\u7B26\uFF1A<>:"/|?*%!')}],fileList:[],fileData:[]}},components:{UploadFile:c.UploadFile},computed:{...n.mapGetters(["primaryColor"])},methods:{saveFail(l){l.forEach(e=>{e.res.success&&this.delItem(e.data)}),this.$nextTick(()=>{setTimeout(()=>{this.ruleForm.fileList=this.ruleForm.fileList.map(e=>{const t=l.filter(i=>i.data.fileId===e.fileId)[0];return Object.assign({...e},{tip:t?t.res.message:""})})},0)})},inputName(l,e){e.name=l.replace(/\s+/g,"")},save(){this.confirmLoading=!0;let l=[];this.ruleForm.fileList.forEach((e,t)=>{let i=this.add(e,t).then(r=>({data:e,res:r}));l.push(i)}),Promise.all(l).then(e=>{this.confirmLoading=!1;const t=e.filter(r=>!r.res.success);if(t.length===0){this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok");return}t.length<e.length&&this.$emit("ok");let i="";t.forEach(r=>{i+=`<p>${r.data.name} ${r.res.message}</p>`}),this.saveFail(e),this.$message({message:`${this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")}${i}`,type:"error",dangerouslyUseHTMLString:!0})})},add(l){const e={name:l.name,parentid:this.ruleForm.parentid,type:2,inheritpermissions:l.inheritpermissions,filetype:l.filetype,filesize:l.filesize,file:l.fileId,version:l.version,description:l.description};return d.sysDocObjectsAdd(e).then(t=>t)},handleSubmit(){if((this.ruleFormRecord.uidUploading?this.ruleFormRecord.uidUploading:[]).length>0){this.$message.error(`${this.$i18nt("gd.https.uidUploading","\u6587\u4EF6\u6B63\u5728\u4E0A\u4F20\u4E2D,\u8BF7\u7B49\u5F85..")}`);return}this.$refs.ruleForm.validate(e=>{e&&this.save()})},delItem(l){this.ruleForm.fileList=this.ruleForm.fileList.filter(e=>e.fileId!==l.fileId),this.$refs.uploadFile.removeFileManual(l.fileId)},handleChange(l){this.confirmLoading=!0;const e=JSON.parse(l.sourceData);let t=[];e.forEach(i=>{const r=i.name.substr(i.name.lastIndexOf(".")+1),s=this.fileList.filter(a=>a.fileId===i.fileId)[0];if(s)t.push(s);else{const a=this.fileData.filter(o=>o.uid===i.ouid)[0];t.push({fileoriginname:i.fileoriginname,name:i.name,filetype:r,filesize:a?a.size:0,inheritpermissions:1,fileId:i.fileId,ouid:i.ouid,tip:"",version:"",description:""})}}),this.ruleForm.fileList=t,setTimeout(()=>{this.confirmLoading=!1},100)},uploadFile(l){const e=this.fileData.filter(t=>t.uid!==l.file.uid);this.fileData=e.concat([l.file])},open(l){this.parentId=l?l.id:0,this.parentList=[{name:l.name,id:l.id}],this.record=l,this.ruleForm={parentid:l.id,file:"",fileList:[]},this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm&&this.$refs.ruleForm.clearValidate()},100)})},closed(){this.ruleForm={fileList:[]},this.fullscreen=!1,this.visible=!1},getDictionary(l){return this.$options.filters.dictData(l)},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(l){let e=l.item.functionName;this[e]&&this[e]()}}};var f=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.btn.createfile","\u521B\u5EFA\u6587\u4EF6"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("el-form",{ref:"ruleForm",staticClass:"gd-form",staticStyle:{width:"100%",margin:"0 auto"},attrs:{model:e.ruleForm,"label-width":"120px",rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[t("el-form-item",{staticStyle:{width:"90%"},attrs:{label:e.$i18nt("gd.fileDocument.parentDirectory","\u4E0A\u7EA7\u76EE\u5F55")}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),disabled:""},model:{value:e.ruleForm.parentid,callback:function(i){e.$set(e.ruleForm,"parentid",i)},expression:"ruleForm.parentid"}},e._l(e.parentList,function(i){return t("el-option",{key:i.id,attrs:{label:i.name,value:i.id}})}),1)],1),t("el-form-item",{staticStyle:{width:"90%"},attrs:{label:e.$i18nt("gd.page.uploadFile","\u4E0A\u4F20\u6587\u4EF6"),prop:"file"}},[t("UploadFile",{ref:"uploadFile",attrs:{record:e.ruleFormRecord,model:e.ruleForm,limit:e.limit,prop:"file",accept:e.fileAccept,size:e.fileSize},on:{change:e.handleChange,uploadFile:e.uploadFile}})],1),e._l(e.ruleForm.fileList,function(i,r){return[t("div",{staticClass:"list"},[t("el-alert",{staticStyle:{"margin-bottom":"12px"},attrs:{title:i.fileoriginname,type:"info",closable:!1}}),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:16}},[t("el-form-item",{key:i.fileId,attrs:{label:e.$i18nt("gd.translation.name","\u540D\u79F0"),prop:"fileList."+r+".name",rules:e.rulesName}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),maxlength:50},on:{input:s=>e.inputName(s,i)},model:{value:i.name,callback:function(s){e.$set(i,"name",s)},expression:"item.name"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.fileDocument.inheritedPermissions","\u7EE7\u627F\u6743\u9650"),"label-width":"100px"}},[t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":e.primaryColor},model:{value:i.inheritpermissions,callback:function(s){e.$set(i,"inheritpermissions",s)},expression:"item.inheritpermissions"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:16}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.directory.remark","\u5907\u6CE8")}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:1},model:{value:i.description,callback:function(s){e.$set(i,"description",s)},expression:"item.description"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.solution.version","\u7248\u672C"),"label-width":"100px"}},[t("el-input",{staticStyle:{width:"90%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:i.version,callback:function(s){e.$set(i,"version",s)},expression:"item.version"}})],1)],1)],1),t("div",{staticClass:"item-del"},[t("i",{staticClass:"el-icon-close",on:{click:function(s){return e.delItem(i)}}})]),i.tip?t("el-tooltip",{staticClass:"item-tooltip",attrs:{effect:"dark",placement:"top-start"}},[t("i",{staticClass:"el-icon-warning",staticStyle:{color:"red"}}),t("div",{staticClass:"list-tip",attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.tip))])]):e._e()],1)]})],2):e._e()],1)],1)],1)},p=[],m=n.normalizeComponent(u,f,p,!1,null,"1fbf4ff0",null,null);const h=m.exports;exports.default=h;
@@ -0,0 +1,239 @@
1
+ import { h as o } from "./http.filedocument.d456d26a.mjs";
2
+ import { U as d } from "./components.uploadfile.10f6cb2a.mjs";
3
+ import { m as c, n as u } from "./components.chartbi.b043dcdc.mjs";
4
+ import "./http.filemanage.c0de21d6.mjs";
5
+ import "./utils.util.js.82cd8447.mjs";
6
+ import "./utils.echarts.js.d1bb8ac6.mjs";
7
+ const f = {
8
+ props: {
9
+ limit: {
10
+ type: Number,
11
+ default: 12
12
+ },
13
+ fileAccept: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ fileSize: {
18
+ type: Number,
19
+ default: 1024
20
+ }
21
+ },
22
+ data() {
23
+ return {
24
+ ruleFormRecord: {
25
+ options: {
26
+ fileName: "file",
27
+ drag: !0
28
+ }
29
+ },
30
+ record: null,
31
+ width: "700px",
32
+ confirmLoading: !1,
33
+ visible: !1,
34
+ fullscreen: !1,
35
+ parentId: 0,
36
+ parentList: [],
37
+ buttons: [
38
+ {
39
+ displayName: "\u786E\u5B9A",
40
+ functionName: "handleSubmit",
41
+ show: !0,
42
+ transKey: "gd.btn.confirm",
43
+ icon: "el-icon-document-checked"
44
+ }
45
+ ],
46
+ ruleForm: {
47
+ file: "",
48
+ fileList: []
49
+ },
50
+ rules: {
51
+ name: [
52
+ { required: !0, message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: ["change", "blur"] },
53
+ {
54
+ pattern: /^((?!\\|\/|:|\*|\?|<|>|\||'|%|\!|"|').){1,50}$/,
55
+ message: this.$i18nt("gd.fileDocument.addNameTip", '\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u4EE5\u4E0B\u5B57\u7B26\uFF1A<>:"/|?*%!')
56
+ }
57
+ ],
58
+ file: [{ required: !0, message: this.$i18nt("gd.web.selectFileTip", "\u8BF7\u9009\u62E9\u6587\u4EF6!"), trigger: ["change", "blur"] }]
59
+ },
60
+ rulesName: [
61
+ { required: !0, message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: ["change", "blur"] },
62
+ {
63
+ pattern: /^((?!\\|\/|:|\*|\?|<|>|\||'|%|\!|"|').){1,50}$/,
64
+ message: this.$i18nt("gd.fileDocument.addNameTip", '\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u4EE5\u4E0B\u5B57\u7B26\uFF1A<>:"/|?*%!')
65
+ }
66
+ ],
67
+ fileList: [],
68
+ fileData: []
69
+ };
70
+ },
71
+ components: { UploadFile: d },
72
+ computed: {
73
+ ...c(["primaryColor"])
74
+ },
75
+ methods: {
76
+ saveFail(l) {
77
+ l.forEach((e) => {
78
+ e.res.success && this.delItem(e.data);
79
+ }), this.$nextTick(() => {
80
+ setTimeout(() => {
81
+ this.ruleForm.fileList = this.ruleForm.fileList.map((e) => {
82
+ const t = l.filter((i) => i.data.fileId === e.fileId)[0];
83
+ return Object.assign(
84
+ { ...e },
85
+ {
86
+ tip: t ? t.res.message : ""
87
+ }
88
+ );
89
+ });
90
+ }, 0);
91
+ });
92
+ },
93
+ inputName(l, e) {
94
+ e.name = l.replace(/\s+/g, "");
95
+ },
96
+ save() {
97
+ this.confirmLoading = !0;
98
+ let l = [];
99
+ this.ruleForm.fileList.forEach((e, t) => {
100
+ let i = this.add(e, t).then((r) => ({ data: e, res: r }));
101
+ l.push(i);
102
+ }), Promise.all(l).then((e) => {
103
+ this.confirmLoading = !1;
104
+ const t = e.filter((r) => !r.res.success);
105
+ if (t.length === 0) {
106
+ this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.closed(), this.$emit("ok");
107
+ return;
108
+ }
109
+ t.length < e.length && this.$emit("ok");
110
+ let i = "";
111
+ t.forEach((r) => {
112
+ i += `<p>${r.data.name} ${r.res.message}</p>`;
113
+ }), this.saveFail(e), this.$message({
114
+ message: `${this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25")}${i}`,
115
+ type: "error",
116
+ dangerouslyUseHTMLString: !0
117
+ });
118
+ });
119
+ },
120
+ add(l) {
121
+ const e = {
122
+ name: l.name,
123
+ parentid: this.ruleForm.parentid,
124
+ type: 2,
125
+ inheritpermissions: l.inheritpermissions,
126
+ filetype: l.filetype,
127
+ filesize: l.filesize,
128
+ file: l.fileId,
129
+ version: l.version,
130
+ description: l.description
131
+ };
132
+ return o(e).then((t) => t);
133
+ },
134
+ handleSubmit() {
135
+ if ((this.ruleFormRecord.uidUploading ? this.ruleFormRecord.uidUploading : []).length > 0) {
136
+ this.$message.error(`${this.$i18nt("gd.https.uidUploading", "\u6587\u4EF6\u6B63\u5728\u4E0A\u4F20\u4E2D,\u8BF7\u7B49\u5F85..")}`);
137
+ return;
138
+ }
139
+ this.$refs.ruleForm.validate((e) => {
140
+ e && this.save();
141
+ });
142
+ },
143
+ delItem(l) {
144
+ this.ruleForm.fileList = this.ruleForm.fileList.filter((e) => e.fileId !== l.fileId), this.$refs.uploadFile.removeFileManual(l.fileId);
145
+ },
146
+ handleChange(l) {
147
+ this.confirmLoading = !0;
148
+ const e = JSON.parse(l.sourceData);
149
+ let t = [];
150
+ e.forEach((i) => {
151
+ const r = i.name.substr(i.name.lastIndexOf(".") + 1), s = this.fileList.filter((a) => a.fileId === i.fileId)[0];
152
+ if (s)
153
+ t.push(s);
154
+ else {
155
+ const a = this.fileData.filter((n) => n.uid === i.ouid)[0];
156
+ t.push({
157
+ fileoriginname: i.fileoriginname,
158
+ name: i.name,
159
+ filetype: r,
160
+ filesize: a ? a.size : 0,
161
+ inheritpermissions: 1,
162
+ fileId: i.fileId,
163
+ ouid: i.ouid,
164
+ tip: "",
165
+ version: "",
166
+ description: ""
167
+ });
168
+ }
169
+ }), this.ruleForm.fileList = t, setTimeout(() => {
170
+ this.confirmLoading = !1;
171
+ }, 100);
172
+ },
173
+ uploadFile(l) {
174
+ const e = this.fileData.filter((t) => t.uid !== l.file.uid);
175
+ this.fileData = e.concat([l.file]);
176
+ },
177
+ open(l) {
178
+ this.parentId = l ? l.id : 0, this.parentList = [{ name: l.name, id: l.id }], this.record = l, this.ruleForm = {
179
+ parentid: l.id,
180
+ file: "",
181
+ fileList: []
182
+ }, this.visible = !0, this.$nextTick(() => {
183
+ setTimeout(() => {
184
+ this.$refs.ruleForm && this.$refs.ruleForm.clearValidate();
185
+ }, 100);
186
+ });
187
+ },
188
+ closed() {
189
+ this.ruleForm = { fileList: [] }, this.fullscreen = !1, this.visible = !1;
190
+ },
191
+ getDictionary(l) {
192
+ return this.$options.filters.dictData(l);
193
+ },
194
+ toggleFullscreen() {
195
+ this.fullscreen = !this.fullscreen;
196
+ },
197
+ doEvent(l) {
198
+ let e = l.item.functionName;
199
+ this[e] && this[e]();
200
+ }
201
+ }
202
+ };
203
+ var p = function() {
204
+ var e = this, t = e._self._c;
205
+ return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
206
+ e.visible = i;
207
+ }, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.$i18nt("gd.btn.createfile", "\u521B\u5EFA\u6587\u4EF6"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("el-form", { ref: "ruleForm", staticClass: "gd-form", staticStyle: { width: "100%", margin: "0 auto" }, attrs: { model: e.ruleForm, "label-width": "120px", rules: e.rules }, nativeOn: { submit: function(i) {
208
+ i.preventDefault();
209
+ } } }, [t("el-form-item", { staticStyle: { width: "90%" }, attrs: { label: e.$i18nt("gd.fileDocument.parentDirectory", "\u4E0A\u7EA7\u76EE\u5F55") } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.ruleForm.parentid, callback: function(i) {
210
+ e.$set(e.ruleForm, "parentid", i);
211
+ }, expression: "ruleForm.parentid" } }, e._l(e.parentList, function(i) {
212
+ return t("el-option", { key: i.id, attrs: { label: i.name, value: i.id } });
213
+ }), 1)], 1), t("el-form-item", { staticStyle: { width: "90%" }, attrs: { label: e.$i18nt("gd.page.uploadFile", "\u4E0A\u4F20\u6587\u4EF6"), prop: "file" } }, [t("UploadFile", { ref: "uploadFile", attrs: { record: e.ruleFormRecord, model: e.ruleForm, limit: e.limit, prop: "file", accept: e.fileAccept, size: e.fileSize }, on: { change: e.handleChange, uploadFile: e.uploadFile } })], 1), e._l(e.ruleForm.fileList, function(i, r) {
214
+ return [t("div", { staticClass: "list" }, [t("el-alert", { staticStyle: { "margin-bottom": "12px" }, attrs: { title: i.fileoriginname, type: "info", closable: !1 } }), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 16 } }, [t("el-form-item", { key: i.fileId, attrs: { label: e.$i18nt("gd.translation.name", "\u540D\u79F0"), prop: "fileList." + r + ".name", rules: e.rulesName } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), maxlength: 50 }, on: { input: (s) => e.inputName(s, i) }, model: { value: i.name, callback: function(s) {
215
+ e.$set(i, "name", s);
216
+ }, expression: "item.name" } })], 1)], 1), t("el-col", { attrs: { span: 8 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.fileDocument.inheritedPermissions", "\u7EE7\u627F\u6743\u9650"), "label-width": "100px" } }, [t("el-switch", { attrs: { "active-value": 1, "inactive-value": 0, "active-color": e.primaryColor }, model: { value: i.inheritpermissions, callback: function(s) {
217
+ e.$set(i, "inheritpermissions", s);
218
+ }, expression: "item.inheritpermissions" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 16 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.directory.remark", "\u5907\u6CE8") } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), type: "textarea", rows: 1 }, model: { value: i.description, callback: function(s) {
219
+ e.$set(i, "description", s);
220
+ }, expression: "item.description" } })], 1)], 1), t("el-col", { attrs: { span: 8 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.solution.version", "\u7248\u672C"), "label-width": "100px" } }, [t("el-input", { staticStyle: { width: "90%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: i.version, callback: function(s) {
221
+ e.$set(i, "version", s);
222
+ }, expression: "item.version" } })], 1)], 1)], 1), t("div", { staticClass: "item-del" }, [t("i", { staticClass: "el-icon-close", on: { click: function(s) {
223
+ return e.delItem(i);
224
+ } } })]), i.tip ? t("el-tooltip", { staticClass: "item-tooltip", attrs: { effect: "dark", placement: "top-start" } }, [t("i", { staticClass: "el-icon-warning", staticStyle: { color: "red" } }), t("div", { staticClass: "list-tip", attrs: { slot: "content" }, slot: "content" }, [e._v(e._s(i.tip))])]) : e._e()], 1)];
225
+ })], 2) : e._e()], 1)], 1)], 1);
226
+ }, m = [], h = /* @__PURE__ */ u(
227
+ f,
228
+ p,
229
+ m,
230
+ !1,
231
+ null,
232
+ "1fbf4ff0",
233
+ null,
234
+ null
235
+ );
236
+ const _ = h.exports;
237
+ export {
238
+ _ as default
239
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./components.chartbi.e4680eaa.js"),s=require("./http.filedocument.7c656b91.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.50d1ec9c.js");const a={data(){return{type:"",record:null,width:"700px",confirmLoading:!1,visible:!1,fullscreen:!1,parentId:0,parentList:[],buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleForm:{},rules:{name:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:["change","blur"]},{pattern:/^((?!\\|\/|:|\*|\?|<|>|\||'|%|\!|"|').){1,50}$/,message:this.$i18nt("gd.fileDocument.addNameTip",'\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u4EE5\u4E0B\u5B57\u7B26\uFF1A<>:"/|?*%!')},{validator:this.validateName,trigger:["change","blur"]}]}}},computed:{disabled(){return!0},title(){return this.type==="rename"?this.$i18nt("gd.btn.rename","\u91CD\u547D\u540D"):this.$i18nt("gd.btn.createSubfolders","\u521B\u5EFA\u6587\u4EF6\u5939")},fileName(){return this.type==="rename"?this.$i18nt("gd.fileDocument.newFileName","\u65B0\u540D\u79F0"):this.$i18nt("gd.translation.name","\u540D\u79F0")},...l.mapGetters(["primaryColor"])},methods:{validateName(t,e,r){if(e){if(this.type==="rename"&&e===this.ruleForm.oname)return r(new Error(this.$i18nt("gd.fileDocument.renameTip","\u65B0\u540D\u79F0\u4E0D\u80FD\u4E0E\u5F53\u524D\u540D\u79F0\u91CD\u590D")));r()}else return r(new Error(this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")))},inputName(t){this.ruleForm.name=t.replace(/\s+/g,"")},add(){let t={name:this.ruleForm.name,parentid:this.ruleForm.parentid,type:this.ruleForm.type,inheritpermissions:this.ruleForm.inheritpermissions};this.confirmLoading=!0,s.sysDocObjectsAdd(t).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok",t),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.confirmLoading=!1})},edit(){this.confirmLoading=!0;const t=this.type==="rename"?{docId:this.record.id,newName:this.ruleForm.name}:Object.assign({},this.record,this.ruleForm);(this.type==="rename"?s.sysDocObjectsRename:s.sysDocObjectsEdit)(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok",t),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message),this.confirmLoading=!1})},handleSubmit(){this.$refs.ruleForm.validate(t=>{if(t){if(["createsubfolder","createrootdirectory"].includes(this.type)){this.add();return}this.edit()}})},open(t,e){console.log(t,e),this.type=e,this.record=t,this.visible=!0;let r={},i="",n={parentid:t?t.parentid:0,name:"",type:t?String(t.type):"1",inheritpermissions:t?t.inheritpermissions:1};e==="createsubfolder"?(this.parentId=t?t.id:0,this.parentList=[{name:t.name,id:t.id}],r={parentid:this.parentId},i="ruleFormName"):e==="rename"?(r={oname:t.name,name:""},i="ruleFormName"):e==="createrootdirectory"&&(i="ruleFormName"),this.ruleForm=Object.assign(n,r),this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm&&this.$refs.ruleForm.clearValidate(),i&&this.$refs[i].focus()},0)})},closed(){this.ruleForm={},this.fullscreen=!1,this.visible=!1},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var o=function(){var e=this,r=e._self._c;return r("div",[r("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[r("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?r("el-form",{ref:"ruleForm",staticClass:"gd-form",staticStyle:{width:"90%",margin:"0 auto"},attrs:{model:e.ruleForm,"label-width":"140px",rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[["createsubfolder"].includes(e.type)?r("el-form-item",{attrs:{label:e.$i18nt("gd.fileDocument.parentDirectory","\u4E0A\u7EA7\u76EE\u5F55")}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),disabled:e.disabled},model:{value:e.ruleForm.parentid,callback:function(i){e.$set(e.ruleForm,"parentid",i)},expression:"ruleForm.parentid"}},e._l(e.parentList,function(i){return r("el-option",{key:i.id,attrs:{label:i.name,value:i.id}})}),1)],1):e._e(),["rename"].includes(e.type)?r("el-form-item",{attrs:{label:e.$i18nt("gd.fileDocument.currentFileName","\u5F53\u524D\u540D\u79F0")}},[r("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:""},model:{value:e.ruleForm.oname,callback:function(i){e.$set(e.ruleForm,"oname",i)},expression:"ruleForm.oname"}})],1):e._e(),r("el-form-item",{attrs:{label:e.fileName,prop:"name"}},[r("el-input",{ref:"ruleFormName",attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),maxlength:50},on:{input:e.inputName},model:{value:e.ruleForm.name,callback:function(i){e.$set(e.ruleForm,"name",i)},expression:"ruleForm.name"}})],1),["createsubfolder","createrootdirectory"].includes(e.type)?r("el-form-item",{attrs:{label:e.$i18nt("gd.file.fileAccept","\u6587\u4EF6\u7C7B\u578B"),prop:"type"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),disabled:""},model:{value:e.ruleForm.type,callback:function(i){e.$set(e.ruleForm,"type",i)},expression:"ruleForm.type"}},e._l(e.getDictionary("sys_doc_objects_type"),function(i){return r("el-option",{key:i.code,attrs:{label:e.$i18nt(`Dynamics.${i.transkey}`,i.name),value:i.code}})}),1)],1):e._e(),["createsubfolder"].includes(e.type)?r("el-form-item",{attrs:{label:e.$i18nt("gd.fileDocument.inheritedPermissions","\u7EE7\u627F\u6743\u9650")}},[r("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":e.primaryColor},model:{value:e.ruleForm.inheritpermissions,callback:function(i){e.$set(e.ruleForm,"inheritpermissions",i)},expression:"ruleForm.inheritpermissions"}})],1):e._e()],1):e._e()],1)],1)],1)},c=[],d=l.normalizeComponent(a,o,c,!1,null,"8085615b",null,null);const u=d.exports;exports.default=u;
@@ -0,0 +1,154 @@
1
+ import { m as l, n } from "./components.chartbi.b043dcdc.mjs";
2
+ import { h as a, i as o, j as d } from "./http.filedocument.d456d26a.mjs";
3
+ import "./utils.echarts.js.d1bb8ac6.mjs";
4
+ import "./utils.util.js.82cd8447.mjs";
5
+ const m = {
6
+ data() {
7
+ return {
8
+ type: "",
9
+ record: null,
10
+ width: "700px",
11
+ confirmLoading: !1,
12
+ visible: !1,
13
+ fullscreen: !1,
14
+ parentId: 0,
15
+ parentList: [],
16
+ buttons: [
17
+ {
18
+ displayName: "\u786E\u5B9A",
19
+ functionName: "handleSubmit",
20
+ show: !0,
21
+ transKey: "gd.btn.confirm",
22
+ icon: "el-icon-document-checked"
23
+ }
24
+ ],
25
+ ruleForm: {},
26
+ rules: {
27
+ name: [
28
+ { required: !0, message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: ["change", "blur"] },
29
+ {
30
+ pattern: /^((?!\\|\/|:|\*|\?|<|>|\||'|%|\!|"|').){1,50}$/,
31
+ message: this.$i18nt("gd.fileDocument.addNameTip", '\u540D\u79F0\u4E0D\u80FD\u5305\u542B\u4EE5\u4E0B\u5B57\u7B26\uFF1A<>:"/|?*%!')
32
+ },
33
+ { validator: this.validateName, trigger: ["change", "blur"] }
34
+ ]
35
+ }
36
+ };
37
+ },
38
+ computed: {
39
+ disabled() {
40
+ return !0;
41
+ },
42
+ title() {
43
+ return this.type === "rename" ? this.$i18nt("gd.btn.rename", "\u91CD\u547D\u540D") : this.$i18nt("gd.btn.createSubfolders", "\u521B\u5EFA\u6587\u4EF6\u5939");
44
+ },
45
+ fileName() {
46
+ return this.type === "rename" ? this.$i18nt("gd.fileDocument.newFileName", "\u65B0\u540D\u79F0") : this.$i18nt("gd.translation.name", "\u540D\u79F0");
47
+ },
48
+ ...l(["primaryColor"])
49
+ },
50
+ methods: {
51
+ validateName(t, e, r) {
52
+ if (e) {
53
+ if (this.type === "rename" && e === this.ruleForm.oname)
54
+ return r(new Error(this.$i18nt("gd.fileDocument.renameTip", "\u65B0\u540D\u79F0\u4E0D\u80FD\u4E0E\u5F53\u524D\u540D\u79F0\u91CD\u590D")));
55
+ r();
56
+ } else
57
+ return r(new Error(this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")));
58
+ },
59
+ inputName(t) {
60
+ this.ruleForm.name = t.replace(/\s+/g, "");
61
+ },
62
+ add() {
63
+ let t = {
64
+ name: this.ruleForm.name,
65
+ parentid: this.ruleForm.parentid,
66
+ type: this.ruleForm.type,
67
+ inheritpermissions: this.ruleForm.inheritpermissions
68
+ };
69
+ this.confirmLoading = !0, a(t).then((e) => {
70
+ e.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok", t), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message), this.confirmLoading = !1;
71
+ });
72
+ },
73
+ edit() {
74
+ this.confirmLoading = !0;
75
+ const t = this.type === "rename" ? { docId: this.record.id, newName: this.ruleForm.name } : Object.assign({}, this.record, this.ruleForm);
76
+ (this.type === "rename" ? o : d)(t).then((r) => {
77
+ r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok", t), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.confirmLoading = !1;
78
+ });
79
+ },
80
+ handleSubmit() {
81
+ this.$refs.ruleForm.validate((t) => {
82
+ if (t) {
83
+ if (["createsubfolder", "createrootdirectory"].includes(this.type)) {
84
+ this.add();
85
+ return;
86
+ }
87
+ this.edit();
88
+ }
89
+ });
90
+ },
91
+ open(t, e) {
92
+ console.log(t, e), this.type = e, this.record = t, this.visible = !0;
93
+ let r = {}, i = "", s = {
94
+ parentid: t ? t.parentid : 0,
95
+ name: "",
96
+ type: t ? String(t.type) : "1",
97
+ inheritpermissions: t ? t.inheritpermissions : 1
98
+ };
99
+ e === "createsubfolder" ? (this.parentId = t ? t.id : 0, this.parentList = [{ name: t.name, id: t.id }], r = { parentid: this.parentId }, i = "ruleFormName") : e === "rename" ? (r = { oname: t.name, name: "" }, i = "ruleFormName") : e === "createrootdirectory" && (i = "ruleFormName"), this.ruleForm = Object.assign(s, r), this.$nextTick(() => {
100
+ setTimeout(() => {
101
+ this.$refs.ruleForm && this.$refs.ruleForm.clearValidate(), i && this.$refs[i].focus();
102
+ }, 0);
103
+ });
104
+ },
105
+ closed() {
106
+ this.ruleForm = {}, this.fullscreen = !1, this.visible = !1;
107
+ },
108
+ getDictionary(t) {
109
+ return this.$options.filters.dictData(t);
110
+ },
111
+ toggleFullscreen() {
112
+ this.fullscreen = !this.fullscreen;
113
+ },
114
+ doEvent(t) {
115
+ let e = t.item.functionName;
116
+ this[e] && this[e]();
117
+ }
118
+ }
119
+ };
120
+ var c = function() {
121
+ var e = this, r = e._self._c;
122
+ return r("div", [r("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
123
+ e.visible = i;
124
+ }, closed: e.closed } }, [r("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), r("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? r("el-form", { ref: "ruleForm", staticClass: "gd-form", staticStyle: { width: "90%", margin: "0 auto" }, attrs: { model: e.ruleForm, "label-width": "140px", rules: e.rules }, nativeOn: { submit: function(i) {
125
+ i.preventDefault();
126
+ } } }, [["createsubfolder"].includes(e.type) ? r("el-form-item", { attrs: { label: e.$i18nt("gd.fileDocument.parentDirectory", "\u4E0A\u7EA7\u76EE\u5F55") } }, [r("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"), disabled: e.disabled }, model: { value: e.ruleForm.parentid, callback: function(i) {
127
+ e.$set(e.ruleForm, "parentid", i);
128
+ }, expression: "ruleForm.parentid" } }, e._l(e.parentList, function(i) {
129
+ return r("el-option", { key: i.id, attrs: { label: i.name, value: i.id } });
130
+ }), 1)], 1) : e._e(), ["rename"].includes(e.type) ? r("el-form-item", { attrs: { label: e.$i18nt("gd.fileDocument.currentFileName", "\u5F53\u524D\u540D\u79F0") } }, [r("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: "" }, model: { value: e.ruleForm.oname, callback: function(i) {
131
+ e.$set(e.ruleForm, "oname", i);
132
+ }, expression: "ruleForm.oname" } })], 1) : e._e(), r("el-form-item", { attrs: { label: e.fileName, prop: "name" } }, [r("el-input", { ref: "ruleFormName", attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), maxlength: 50 }, on: { input: e.inputName }, model: { value: e.ruleForm.name, callback: function(i) {
133
+ e.$set(e.ruleForm, "name", i);
134
+ }, expression: "ruleForm.name" } })], 1), ["createsubfolder", "createrootdirectory"].includes(e.type) ? r("el-form-item", { attrs: { label: e.$i18nt("gd.file.fileAccept", "\u6587\u4EF6\u7C7B\u578B"), prop: "type" } }, [r("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.ruleForm.type, callback: function(i) {
135
+ e.$set(e.ruleForm, "type", i);
136
+ }, expression: "ruleForm.type" } }, e._l(e.getDictionary("sys_doc_objects_type"), function(i) {
137
+ return r("el-option", { key: i.code, attrs: { label: e.$i18nt(`Dynamics.${i.transkey}`, i.name), value: i.code } });
138
+ }), 1)], 1) : e._e(), ["createsubfolder"].includes(e.type) ? r("el-form-item", { attrs: { label: e.$i18nt("gd.fileDocument.inheritedPermissions", "\u7EE7\u627F\u6743\u9650") } }, [r("el-switch", { attrs: { "active-value": 1, "inactive-value": 0, "active-color": e.primaryColor }, model: { value: e.ruleForm.inheritpermissions, callback: function(i) {
139
+ e.$set(e.ruleForm, "inheritpermissions", i);
140
+ }, expression: "ruleForm.inheritpermissions" } })], 1) : e._e()], 1) : e._e()], 1)], 1)], 1);
141
+ }, u = [], p = /* @__PURE__ */ n(
142
+ m,
143
+ c,
144
+ u,
145
+ !1,
146
+ null,
147
+ "8085615b",
148
+ null,
149
+ null
150
+ );
151
+ const y = p.exports;
152
+ export {
153
+ y as default
154
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./components.chartbi.e4680eaa.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.50d1ec9c.js");const l={props:{record:{type:Object,required:!0}},data(){return{visible:!1,fullscreen:!1,contentHeight:0,headHeight:0,callbackFun:[],parameterData:null}},computed:{showList(){return this.record.interactive.filter(t=>t.type==="show")},hideList(){return this.record.interactive.filter(t=>t.type==="hide")},stationHeight(){const e=this.options.openTop!==void 0?this.options.openTop:80;return this.fullscreen?this.headHeight:e*2+this.headHeight},getClass(){const e=this.record.customClass?`${this.record.customClass}`:"";return this.fullscreen?`gd-dialog-build gd-dialog-fullscreen ${e}`:`gd-dialog-build ${e}`},style(){const e=this.record.customCss?this.record.customCss:"",t=this.fullscreen?0:this.openTop;return`--stationHeight:${this.stationHeight}px; --openTop: ${t};${e}`},width(){return`${this.options.flexWidth}${this.options.flexUnit}`},openTop(){return`${this.options.openTop!==void 0?this.options.openTop:80}px`},options(){return this.record.options},...i.mapGetters(["screenHeight"])},methods:{executeEvent(e){const t=e.functionName?e.functionName:"";t&&this[t]!==void 0?this[t](e):console.log("\u6267\u884C\u9519\u8BEF")},getStationHeight(){this.$nextTick(()=>{setTimeout(()=>{const e=this.$refs.dialogHead,t=this.$refs.dialogFooter,s=this.$refs.dialogFooter,o=e&&e[0]?e[0].clientHeight:0,n=t&&t[0]?t[0].clientHeight:0,c=s&&s[0]?s[0].clientHeight:0;this.contentHeight=c===0?this.screenHeight-o-n:c,this.headHeight=o},0)})},toggleFullscreen(e){this.fullscreen=!this.fullscreen,e.toggleFullscreen&&e.toggleFullscreen(this.fullscreen)},open(e){this.parameterData=e,this.fullscreen=!1,this.visible=!0,this.getStationHeight(),this.showList.length!==0&&this.$nextTick(()=>{setTimeout(()=>{this.showList.forEach(t=>{t.componentKey!==""&&t.componentFunction!==""&&this.record.doEvent({key:t.componentKey,functionName:t.componentFunction,data:e&&e.data,id:null,source:e&&e.source?e.source:this.record,transfer:this.record,parameterData:this.parameterData,callback:t.callbackTwo?t.callbackTwo:!1,callbackComponents:t.callbackTwo?t.callbackComponents:"",callbackFunction:t.callbackTwo?t.callbackFunction:""})})},0)})},closed(e){this.visible=!1,this.hideList.length!==0&&this.$nextTick(()=>{setTimeout(()=>{this.hideList.forEach(t=>{t.componentKey!==""&&t.componentFunction!==""&&this.record.doEvent({key:t.componentKey,functionName:t.componentFunction,data:e&&e.data,id:null,source:e&&e.source?e.source:this.record,transfer:this.record,parameterData:this.parameterData,callback:t.callbackTwo?t.callbackTwo:!1,callbackComponents:t.callbackTwo?t.callbackComponents:"",callbackFunction:t.callbackTwo?t.callbackFunction:""})})},0)})},centralizedCallback(e){let t=[...this.callbackFun];t.push(e),this.callbackFun=[...t]}},mounted(){this.record.executeEvent=this.executeEvent}};var a=function(){var t=this,s=t._self._c;return t.visible?s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.getClass,style:t.style,attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-press-escape":t.options.closePressEscape,"close-on-click-modal":t.options.closeClickModal,"append-to-body":t.options.appendToBody,"modal-append-to-body":t.options.modalAppendToDody,"show-close":!1,top:t.openTop},on:{"update:visible":function(o){t.visible=o}}},[t._l(t.record.columns,function(o){return[o.code==="title"&&o.show?s("div",{ref:"dialogHead",refInFor:!0,staticClass:"dialog-head",attrs:{slot:"title"},slot:"title"},[s("div",{staticClass:"dialog-head-title"},[t._t("title",null,{recordItem:o})],2),t.options.showClose?s("div",{staticClass:"dialog-head-closed"},[s("i",{staticClass:"el-icon-close",on:{click:function(n){return t.closed(null)}}})]):t._e()]):t._e(),o.code==="content"?s("div",{ref:"dialogContent",refInFor:!0,staticClass:"dialog-content"},[t._t("content",null,{recordItem:o,contentHeight:t.contentHeight})],2):t._e(),o.code==="footer"&&o.show?s("div",{ref:"dialogFooter",refInFor:!0,staticClass:"dialog-footer"},[t._t("footer",null,{recordItem:o})],2):t._e()]})],2)],1):t._e()},r=[],d=i.normalizeComponent(l,a,r,!1,null,"bfc05715",null,null);const h=d.exports;exports.default=h;