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 c=require("./components.chartbi.e4680eaa.js"),o=require("./http.tabledevelopment.a880bb76.js"),d=require("./utils.util.js.50d1ec9c.js"),p=require("./http.syscodegenerateconfigmanage.840f1136.js"),g=require("./components.xlsximport.dbd826bb.js"),y=require("./components.teamsharing.05503821.js"),b=require("./utils.mixins.js.750ca50e.js"),w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.echarts.type",prop:"echartsType",width:"160",label:"\u56FE\u8868\u7C7B\u578B",type:"slot",slotType:"echartsType",align:"left",showOverflowTooltip:!0},{transKey:"gd.echarts.mode",prop:"collectWay",width:"160",label:"\u6C47\u603B\u65B9\u5F0F",type:"slot",slotType:"collectWay",align:"left",showOverflowTooltip:!0},{transKey:"gd.settings.echartsColor",prop:"colour",minWidth:"360",label:"\u989C\u8272",type:"slot",slotType:"colour",align:"left",showOverflowTooltip:!0}],formColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysOrg:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysOrg:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysOrg:delete"},{displayName:"\u5171\u4EAB",functionName:"share",title:"\u5171\u4EAB",show:!0,transKey:"gd.btn.share",icon:"el-icon-share",name:"sysOrg:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}]}}};const v={props:{table:{type:Object,default:()=>({})},holderType:{type:[String,Number],default:1}},data(){return{width:"80%",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,show:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{tableName:"",name:"",transKey:"",type:"1",colorList:[],code:"",mode:"",viewId:"",columnName:"",list:""},list:[],viewList:[],loadFieldData:[],loadCountData:[],loadTableData:[],selectedRowKeys:[],selectedRows:[],pid:[],tableShow:!1,transKey:null,loadData:a=>this.getLoadField(),rules:{tableName:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"},{pattern:/^[a-zA-Z]([a-zA-Z0-9]+)?$/,message:this.$i18nt("gd.view.viewNameTip","\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")}],type:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],list:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],viewId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},tableColumns:[{type:"selection",width:"80"},{type:"selection-radio",width:"80"},{transKey:"gd.field.describe",prop:"columncomment",label:"\u663E\u793A\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.field.field",prop:"columnname",label:"\u5B57\u6BB5\u540D",width:"140",align:"left",showOverflowTooltip:!0},{transKey:"gd.field.effectType",prop:"effectType",label:"\u7C7B\u578B",width:"110",align:"left",type:"slot",slotType:"effectType",showOverflowTooltip:!0}]}},components:{EffectTypeIcon:g.EffectTypeIcon},computed:{megs(){let a="";return this.list.forEach((e,s)=>{a+=s==0?e.alias:" ,"+e.alias}),`${this.$i18nt("gd.echarts.selected","\u5DF2\u9009")}: ${a}`},getTableColumns(){return this.tableColumns.filter(a=>{let e=this.ruleFormData.mode==="1"||this.ruleFormData.columnName!==""?"radio":"checkbox";return a.type==="selection"?e==="checkbox":a.type==="selection-radio"?e==="radio":!0})},disabled(){return!!this.record},title(){return this.record?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E")},height(){let a=this.fullscreen?190:340;return this.screenHeight-a},...c.mapGetters(["screenHeight","tableLists","echartsColor","primaryColor","tablePageSize","tableSize"])},methods:{present(){(this.list.length===0?0:this.type)===0?this.$refs.VEcharts.setType():this.seeEcharts()},seeEcharts(){const a=this.tableLists.filter(e=>e.tablename===this.ruleFormData.tableName)[0];this.$nextTick(()=>{setTimeout(()=>{let e={tableId:a.id,view:this.viewList.filter(s=>s.id==this.ruleFormData.viewId)[0],viewId:this.ruleFormData.viewId,mode:this.ruleFormData.mode,type:this.ruleFormData.type,columnName:this.ruleFormData.columnName,list:this.list,name:this.ruleFormData.name,transKey:this.transKey};this.$refs.VEcharts.init(e)},0)})},save(){let a=this.record?this.holderType==2?o.sysEchartsPersonalEdit:o.sysEchartsEdit:o.sysEchartsAdd;const e=this.tableLists.filter(t=>t.tablename===this.ruleFormData.tableName)[0];let s={name:this.ruleFormData.name,syscodegenid:e.id,collectway:this.ruleFormData.mode,echartstype:this.ruleFormData.type,classlabel:JSON.stringify(this.list),echartsorder:this.ruleFormData.columnName!==""?this.ruleFormData.columnName:null,echartspreview:this.ruleFormData.viewId!==""?this.ruleFormData.viewId:null,holdertype:this.holderType,colour:this.ruleFormData.colorList.join(","),code:this.ruleFormData.code};this.record&&(s=Object.assign(this.record,s)),a(s).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25:")+t.message),this.confirmLoading=!1})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(a=>{a?this.save():this.confirmLoading=!1})},hidePopover(){let a=[];this.loadFieldData.forEach(e=>{this.selectedRowKeys.filter(t=>e.id===t)[0]&&a.push({dataIndex:e.dataindex,alias:e.alias,transKey:e.transkey,id:e.id,columnComment:e.columncomment,dictTypeCode:e.dicttypecode}),e.children&&e.children.length>0&&e.children.forEach(t=>{if(this.selectedRowKeys.filter(i=>t.id===i)[0]){let i=this.$i18nt(`Dynamics.${e.transkey}`,e.columncomment),l=this.$i18nt(`Dynamics.${t.transkey}`,t.columncomment);a.push({dataIndex:t.dataindex,alias:t.alias,transKey:t.transkey,id:t.id,columnComment:`${l}(${i})`,dictTypeCode:t.dicttypecode})}})}),this.list=[...a],this.ruleFormData.list=JSON.stringify(a),this.tableShow=!1,this.present()},showPopover(){this.tableShow=!0,this.$nextTick(()=>{setTimeout(()=>{this.refresh(!1)},300)})},getLoadField(){return new Promise((a,e)=>{let s=[...this.loadFieldData].filter(t=>!(t.effecttype=="about"&&t.columnname==(t.relations+"_AboutTable").toLowerCase()));s.forEach((t,r)=>{if(t.children&&t.children.length>0){let i=[];t.children.forEach((l,S)=>{if(l.effecttype!="fk"&&l.effecttype!="about"){let m=this.$i18nt(`Dynamics.${t.transkey}`,t.columncomment),u=this.$i18nt(`Dynamics.${l.transkey}`,l.columncomment),f=Object.assign({...l},{id:l.id+"-"+t.id},{dataindex:d.getEchartColumnName(l,t),alias:`${u}(${m})`,transkey:t.transkey?t.transkey:null,transkeys:l.transkey?l.transkey:null,columncommentd:`${u}`});i.push(f)}}),i=i.filter(l=>!(l.effecttype=="about"&&l.columnname==(l.relations+"_AboutTable").toLowerCase())),this.ruleFormData.mode!=="1"&&this.ruleFormData.columnName===""&&(i=i.filter(l=>l.effecttype=="currency"||l.effecttype=="inputnumber"||l.effecttype=="double")),s[r].children=i.length==0?null:[...i]}s[r].alias=this.$i18nt(`Dynamics.${t.transkey}`,t.columncomment),s[r].dataindex=d.getEchartColumnName(t,t),s[r].transkey=t.transkey?t.transkey:null,s[r].transkeys=null,s[r].columncommentd=this.$i18nt(`Dynamics.${t.transkey}`,t.columncomment)}),this.ruleFormData.mode!=="1"&&this.ruleFormData.columnName===""&&(s=s.filter(t=>t.effecttype=="currency"||t.effecttype=="inputnumber"||t.effecttype=="double"?!0:!!((t.effecttype=="fk"||t.effecttype=="about")&&t.children&&t.children.length>0))),this.loadTableData=[...s],a({pageNo:1,pageSize:200,totalRows:0,rows:this.loadTableData})})},changeMode(){let a=this.show;this.show=this.ruleFormData.mode!=="1",a!=this.show&&(this.ruleFormData.columnName="",this.ruleFormData.list="",this.list=[],this.selectedRowKeys=[],this.selectedRows=[]),this.present()},changeColumnName(){this.list.length>1&&(this.list=[],this.selectedRowKeys=[],this.selectedRows=[]),this.present()},changeTable(){this.ruleFormData=Object.assign(this.ruleFormData,{viewId:"",columnName:"",list:""}),this.list=[],this.selectedRowKeys=[],this.selectedRows=[],this.init()},okColor(a){this.ruleFormData.colorList=[...a]},editEchartsTheme(){this.$refs.echartsTheme.open(this.ruleFormData.colorList)},init(){this.confirmLoading=!0,Promise.all([this.getLoadData(),this.getViewList()]).then(a=>{this.confirmLoading=!1,this.present()})},open(a){this.record=a,this.visible=!0;const e=this.tableLists.filter(s=>s.tablename===this.table.tablename)[0];if(this.transKey=a&&a.transkey?a.transkey:null,this.list=a&&a.classlabel?JSON.parse(a.classlabel):[],this.list.length>0){let s=[];this.list.forEach(t=>{s.push(t.id)}),this.selectedRowKeys=s}this.ruleFormData={tableName:e?e.tablename:"",name:a?a.name:"",type:a?String(a.echartstype):"1",colorList:a&&a.colour?a.colour.split(","):[...this.echartsColor],code:a?a.code?a.code:"":d.uuid(8),columnName:a&&a.echartsorder?a.echartsorder:"",list:a?JSON.parse(a.classlabel):"",viewId:a?Number(a.echartspreview):"",mode:a?String(a.collectway):"1",transKey:a?a.transkey:""},this.show=this.ruleFormData.mode!=="1",this.$nextTick(()=>{this.$refs.ruleForm.clearValidate(),this.init()})},getViewList(){const a=this.tableLists.filter(e=>e.tablename===this.ruleFormData.tableName)[0];if(!a)return new Promise((e,s)=>{e()});o.sysViewList({SysCodeGenId:a.id}).then(e=>{if(e.success){let s=e.data.filter(t=>t.type==1);this.viewList=s}})},getLoadData(){const a=this.tableLists.filter(e=>e.tablename===this.ruleFormData.tableName)[0];return a?p.onlineFormGetCodeGenerateList({codeGenId:a.id}).then(e=>{let s=[],t=e.data.filter(l=>(l.children&&l.children.length>0&&s.push(l.id),l.effecttype=="about"&&l.columnname==(l.relations+"_AboutTable").toLowerCase()?!1:!(l.effecttype=="currency"&&l.columnname==(l.relations+"_Currency_Base").toLowerCase())));this.pid=s,this.loadFieldData=[...e.data];let r=t.filter(l=>l.effecttype=="currency"||l.effecttype=="inputnumber"||l.effecttype=="double"),i=t.filter(l=>l.dicttypecode).filter(l=>!!this.isChecked(l.dicttypecode));return this.loadCountData=r.concat(i),e.data}):new Promise((e,s)=>{e()})},isChecked(a){return this.$options.filters.dictData(a).every((s,t,r)=>!isNaN(Number(s.name)))},refresh(a=!0){this.$refs.table.refresh(a)},closed(){this.fullscreen=!1,this.visible=!1,this.selectedRowKeys=[],this.selectedRows=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.present()},onSelectChange(a,e){this.selectedRowKeys=a,this.selectedRows=e},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()},getDictionary(a){return this.$options.filters.dictData(a)},lookupSeled(a){this.ruleFormData.name=a.defaulttext}}};var $=function(){var e=this,s=e._self._c;return s("div",[s("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(t){e.visible=t},closed:e.closed}},[s("template",{slot:"title"},[s("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),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[s("div",{staticClass:"view-config"},[s("div",{staticClass:"config-item"},[e.visible?s("gd-echarts",{ref:"VEcharts",attrs:{loadData:e.loadFieldData,color:e.ruleFormData.colorList}}):e._e()],1),s("div",{staticClass:"config-item config-items"},[s("div",{staticClass:"b"},[s("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:e.ruleFormData,size:"mini",rules:e.rules},nativeOn:{submit:function(t){t.preventDefault()}}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.view.sourceTable","\u6765\u6E90\u8868"),prop:"tableName"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:!!e.table.tablename},on:{change:e.changeTable},model:{value:e.ruleFormData.tableName,callback:function(t){e.$set(e.ruleFormData,"tableName",t)},expression:"ruleFormData.tableName"}},e._l(e.tableLists,function(t,r){return s("el-option",{key:t.tablename,attrs:{value:t.tablename,label:e.$i18nt(`Dynamics.${t.transkey}`,t.busname)}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.busname))+" ("+e._s(t.tablename)+") ")])}),1)],1),s("el-form-item",{attrs:{label:e.$i18nt("gd.echarts.name","\u540D\u79F0"),prop:"name"}},[e.record?e._e():s("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(t){e.$set(e.ruleFormData,"name",t)},expression:"ruleFormData.name"}}),e.record&&e.visible?s("gd-translation",{ref:"gdTranslation",attrs:{keyI18n:"transKey",recordData:e.ruleFormData,type:2},on:{lookupSeled:e.lookupSeled}}):e._e()],1),s("el-form-item",{attrs:{label:e.$i18nt("gd.approval.code","\u7F16\u7801"),prop:"code"}},[s("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:e.disabled},model:{value:e.ruleFormData.code,callback:function(t){e.$set(e.ruleFormData,"code",t)},expression:"ruleFormData.code"}})],1),s("el-form-item",{attrs:{label:e.$i18nt("gd.echarts.viewId","\u7528\u4E8E\u56FE\u8868\u9884\u89C8\u7684\u89C6\u56FE"),prop:"viewId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.present},model:{value:e.ruleFormData.viewId,callback:function(t){e.$set(e.ruleFormData,"viewId",t)},expression:"ruleFormData.viewId"}},e._l(e.viewList,function(t,r){return s("el-option",{key:t.id,attrs:{value:t.id,label:e.$i18nt(`Dynamics.${t.transkey}`,t.name)}})}),1)],1),s("el-form-item",{attrs:{label:e.$i18nt("gd.echarts.type","\u56FE\u8868\u7C7B\u578B"),prop:"type"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.present},model:{value:e.ruleFormData.type,callback:function(t){e.$set(e.ruleFormData,"type",t)},expression:"ruleFormData.type"}},e._l(e.getDictionary("table_echarts_type"),function(t,r){return s("el-option",{key:t.code,attrs:{value:t.code,label:e.$i18nt(`Dynamics.${t.transkey}`,t.name)}},[s("span",[t.code==="1"?s("i",{staticClass:"gd-icons gd-icon-zhuzhuangtu"}):e._e(),t.code==="2"?s("i",{staticClass:"gd-icons gd-icon-bingtu"}):e._e(),t.code==="3"?s("i",{staticClass:"gd-icons gd-icon-loudoutu"}):e._e(),t.code==="4"?s("i",{staticClass:"gd-icons gd-icon-zhexiantu"}):e._e()]),s("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.name))+" ")])])}),1)],1),s("el-form-item",{attrs:{label:e.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u989C\u8272")}},[s("div",{staticClass:"echarts-color"},[e._l(e.ruleFormData.colorList,function(t){return[t==0?s("div",{staticClass:"echarts-color-item",style:`background:${e.primaryColor}`}):s("div",{staticClass:"echarts-color-item",style:`background:${t}`})]}),s("div",{staticClass:"echarts-color-btn active-color",on:{click:e.editEchartsTheme}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")])],2)]),s("el-form-item",{attrs:{label:e.$i18nt("gd.echarts.mode","\u6C47\u603B\u65B9\u5F0F"),prop:"mode"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.changeMode},model:{value:e.ruleFormData.mode,callback:function(t){e.$set(e.ruleFormData,"mode",t)},expression:"ruleFormData.mode"}},e._l(e.getDictionary("table_echarts_mode"),function(t,r){return s("el-option",{key:t.code,attrs:{value:t.code,label:e.$i18nt(`Dynamics.${t.transkey}`,t.name)}})}),1)],1),e.show?s("el-form-item",{attrs:{label:e.$i18nt("gd.echarts.columnName","\u56FE\u4F8B\u6761\u76EE(\u5E8F\u5217)"),prop:"columnName"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.changeColumnName},model:{value:e.ruleFormData.columnName,callback:function(t){e.$set(e.ruleFormData,"columnName",t)},expression:"ruleFormData.columnName"}},e._l(e.loadCountData,function(t,r){return s("el-option",{key:t.columnname,attrs:{value:t.columnname,label:e.$i18nt(`Dynamics.${t.transkey}`,t.columncomment)}},[s("EffectTypeIcon",{attrs:{effectType:t.effecttype}}),s("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.columncomment))+" ("+e._s(t.columnname)+") ")])],1)}),1),s("el-alert",{staticStyle:{"margin-top":"6px"},attrs:{title:e.$i18nt("gd.echarts.columnNameTip","\u53EF\u9009\u62E9\u8BA1\u7B97\u5B57\u6BB5(\u6309\u9009\u62E9\u5B57\u6BB5\u8FD0\u7B97)\uFF1B\u5982\u9700\u9009\u62E9\u5B57\u6BB5\u542B\u6709\u5B57\u5178,\u8BF7\u6309\u5B57\u5178\u540D\u79F0\u8BBE\u7F6E\u503C(\u6309\u5B57\u5178\u503C\u540D\u79F0\u8FD0\u7B97)\u3002"),type:"info","show-icon":"",closable:!1}})],1):e._e(),s("el-form-item",{attrs:{label:e.$i18nt("gd.echarts.label","\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"),prop:"list"}},[s("el-popover",{attrs:{placement:"top-end",trigger:"click"},on:{hide:e.hidePopover,show:e.showPopover}},[s("span",{staticClass:"el-dropdown-link",attrs:{slot:"reference"},slot:"reference"},[s("el-button",{attrs:{type:"primary",disabled:e.ruleFormData.tableName===""}},[e._v(" "+e._s(e.$i18nt("gd.echarts.addLabel","\u6DFB\u52A0\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"))+" ")])],1),s("div",[e.tableShow?s("gd-table-umy",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getTableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,showPagination:!1,disabledRowId:e.pid,initialLoading:!1,disabledRefresh:!0,tableTree:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"effectType",fn:function({column:t,row:r}){return[e._v(" "+e._s(e._f("dictType")("code_gen_effect_type",r.effecttype))+" ")]}}],null,!1,4060202120)}):e._e()],1)]),e.list.length==0?s("el-alert",{staticStyle:{"margin-top":"6px"},attrs:{title:e.$i18nt("gd.echarts.addsLabel","\u8BF7\u6DFB\u52A0\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"),type:"warning","show-icon":"",closable:!1}}):s("el-alert",{staticStyle:{"margin-top":"6px"},attrs:{title:e.megs,type:"success","show-icon":"",closable:!1}})],1)],1)],1)])])])],2),s("gd-color-editor",{ref:"echartsTheme",on:{ok:e.okColor}})],1)},_=[],D=c.normalizeComponent(v,$,_,!1,null,"f8244293",null,null);const h=D.exports,C=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"}));const k={name:"GdPersonalEcharts",mixins:[b.tablesFilter,w],data(){return{height:0,transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{tableId:""},loadData:a=>this.queryParam.tableId===""?new Promise((e,s)=>{e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):o.sysEchartsPersonalPage({sysCodeGenId:this.queryParam.tableId,holderType:2}).then(e=>({pageNo:1,pageSize:40,totalRows:0,rows:e.data})),tableNames:"sys_user,sys_team"}},components:{EditForm:h,TeamSharing:y.default},watch:{screenHeight(){this.getHeight()}},computed:{tableData(){return this.tableLists.filter(a=>this.queryParam.tableId===a.id)[0]},style(){return`min-height:${this.height==0?600:this.height}px`},getHig(){return this.height-24},...c.mapGetters(["tablePageSize","tableSize","echartsColor","primaryColor","tableLists","screenHeight","seekTableId"])},methods:{share(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.shareTip","\u8BF7\u9009\u62E9\u8981\u5171\u4EAB\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.shareTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u5171\u4EAB!"));return}this.$refs.teamSharing.open(this.selectedRowKeys[0])},getHeight(){const a=document.getElementById("gd-layout-head-height"),e=a?a.offsetHeight:0,s=80;this.height=this.screenHeight-e-s,this.queryParam.tableId===""&&(this.queryParam.tableId=this.seekTableId?Number(this.seekTableId):this.tableLists[0].id),this.refresh()},getColor(a){return a.colour?a.colour.split(","):[...this.echartsColor]},refresh(){this.$refs.table.refresh()},editForm(a){this.transKey="gd.btn.edit",this.$refs.editForm.open(a)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,e,s)=>{this.delHand(a,e,s)}})},delHand(a,e,s){if(a!=="confirm"){s();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,o.sysEchartsPersonalDel({ids:this.selectedRowKeys.join(",")}).then(t=>{s(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,t.success?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+t.message),this.refresh()})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},refresh(){this.$refs.table.refresh()},onSelectChange(a,e){this.selectedRowKeys=a,this.selectedRows=e},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}},mounted(){this.getHeight()}};var F=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-personal-echarts",style:e.style},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,showPagination:!1,initialLoading:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:t,row:r}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:r,highlight:"",transKey:`Dynamics.${r.transKey}`},on:{click:e.editForm}})]}},{key:"echartsType",fn:function({column:t,row:r}){return[r.echartstype==1?s("i",{staticClass:"active-color gd-icons gd-icon-zhuzhuangtu"}):r.echartstype==2?s("i",{staticClass:"active-color gd-icons gd-icon-bingtu"}):r.echartstype==3?s("i",{staticClass:"active-color gd-icons gd-icon-loudoutu"}):r.echartstype==4?s("i",{staticClass:"active-color gd-icons gd-icon-zhexiantu"}):e._e(),e._v(" "+e._s(e._f("dictType")("table_echarts_type",r.echartstype))+" ")]}},{key:"collectWay",fn:function(t){return[e._v(" "+e._s(e._f("dictType")("table_echarts_mode",t.row.collectway))+" ")]}},{key:"colour",fn:function({column:t,row:r}){return[s("div",{staticClass:"follow-theme"},[e._l(e.getColor(r),function(i,l){return[s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:i==="0"?e.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):i,placement:"top","open-delay":50}},[i==="0"?s("div",{style:`background:${e.primaryColor};width: 15px;height: 15px;margin-right: 4px;`}):s("div",{style:`background:${i};width: 15px;height: 15px;margin-right: 4px;`})])]})],2)]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"260px"}},[s("el-select",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.fieldSecurity.table","\u8868"),"reserve-keyword":"",filterable:"",remote:""},on:{change:e.refresh},model:{value:e.queryParam.tableId,callback:function(t){e.$set(e.queryParam,"tableId",t)},expression:"queryParam.tableId"}},e._l(e.tableLists,function(t){return s("el-option",{key:t.id,attrs:{label:e.$i18nt(`Dynamics.${t.transkey}`,t.busname),value:t.id}},[s("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${t.transkey}`,t.busname))+" "+e._s(t.tablename)+" ")])])}),1),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0}])}),s("EditForm",{ref:"editForm",attrs:{table:e.tableData,holderType:2},on:{ok:e.refresh}}),s("TeamSharing",{ref:"teamSharing",attrs:{tableData:{tablename:"sys_echarts"},tableNames:e.tableNames},on:{ok:e.refresh}})],1)},T=[],N=c.normalizeComponent(k,F,T,!1,null,"9714184f",null,null);const n=N.exports;n.install=function(a){a.component(n.name,n)};exports.GDpackage=n;exports.edit=C;exports.editEchaetsConfig=h;
@@ -0,0 +1,526 @@
1
+ import { m as f, n as g } from "./components.chartbi.b043dcdc.mjs";
2
+ import { J as m, F as y } from "./page.build.685c1e15.mjs";
3
+ import { C as b } from "./view.build.f2a9fcfb.mjs";
4
+ import { a9 as w, f as k, U as x, j as p } from "./http.main.40657f51.mjs";
5
+ import { b as v } from "./http.filemanage.c0de21d6.mjs";
6
+ import F from "./components.imgpreview.57290b54.mjs";
7
+ import C from "./components.xlsxexport.d98572f8.mjs";
8
+ import "./utils.echarts.js.d1bb8ac6.mjs";
9
+ import "./utils.util.js.82cd8447.mjs";
10
+ import "./form.designer.build.e521c9c6.mjs";
11
+ import "vue";
12
+ import "./components.table.e3e5e3bc.mjs";
13
+ import "./utils.datepicker.js.2076c2a2.mjs";
14
+ import "./components.form.3344c817.mjs";
15
+ import "./components.iconselector.8caabeaa.mjs";
16
+ import "./http.codegeneratemanage.2f925b10.mjs";
17
+ import "./http.duplicatechecking.31964ce7.mjs";
18
+ import "./http.menumanage.3240ba0d.mjs";
19
+ import "./http.tabledevelopment.1d370398.mjs";
20
+ import "./components.xlsximport.cffa88fe.mjs";
21
+ import "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
22
+ import "./components.teamsharing.fb4351ec.mjs";
23
+ import "./components.dataassign.56632583.mjs";
24
+ import "./components.statuschange.15938660.mjs";
25
+ import "./components.coloreditor.044983d2.mjs";
26
+ const T = {
27
+ props: {
28
+ height: {
29
+ type: Number,
30
+ default: 400
31
+ },
32
+ showTitle: {
33
+ type: Boolean,
34
+ default: !0
35
+ }
36
+ },
37
+ data() {
38
+ return {
39
+ statu: !1,
40
+ viewType: 3,
41
+ imgList: [],
42
+ currentImg: "",
43
+ show: !1,
44
+ spinning: !1,
45
+ sysViewFields: [],
46
+ detail: {
47
+ tableData: {}
48
+ },
49
+ columns: [],
50
+ columnsSetting: [],
51
+ selectedRowKeys: [],
52
+ selectedRows: [],
53
+ queryCriteria: {},
54
+ loadData: (e) => {
55
+ const t = Object.assign(e, this.switchingDate);
56
+ return this.queryCriteria = { ...t }, w(t).then((s) => s.data);
57
+ },
58
+ buttons: [
59
+ {
60
+ displayName: "\u5BFC\u51FA",
61
+ functionName: "exportData",
62
+ show: !0,
63
+ transKey: "gd.btn.export",
64
+ icon: "gd-icon-daoru",
65
+ name: "sysUser:advancedFindExport",
66
+ children: [
67
+ {
68
+ displayName: "\u5F53\u524D\u9759\u6001\u9875",
69
+ functionName: null,
70
+ key: "1",
71
+ transKey: "gd.advancedFind.exportCurrent",
72
+ icon: ""
73
+ },
74
+ {
75
+ displayName: "\u5F53\u524D\u9759\u6001\u9875(\u6240\u6709)",
76
+ functionName: null,
77
+ key: "2",
78
+ transKey: "gd.advancedFind.exportCurrentAll",
79
+ icon: ""
80
+ },
81
+ {
82
+ displayName: "\u9009\u5B9A\u8BB0\u5F55",
83
+ functionName: null,
84
+ key: "4",
85
+ transKey: "gd.advancedFind.exportSelected",
86
+ icon: ""
87
+ },
88
+ {
89
+ displayName: "\u81EA\u5B9A\u4E49",
90
+ functionName: null,
91
+ key: "3",
92
+ transKey: "gd.advancedFind.exportCustom",
93
+ icon: ""
94
+ }
95
+ ]
96
+ }
97
+ ]
98
+ };
99
+ },
100
+ components: {
101
+ ChildRenItem: b,
102
+ ImgPreview: F,
103
+ XlsxExport: C
104
+ },
105
+ computed: {
106
+ switchingDate() {
107
+ if (this.detail.tableData === void 0)
108
+ return {};
109
+ const e = { ...this.detail };
110
+ return {
111
+ tableId: e.tableData.id,
112
+ viewId: e.viewId,
113
+ sysViewFields: this.sysViewFields,
114
+ sysViewFilters: e.sysViewFilters
115
+ };
116
+ },
117
+ getFristColumn() {
118
+ const e = this.columnsSetting.filter((t) => t.type !== "selection" && t.checked)[0];
119
+ return e || {};
120
+ },
121
+ getColumnsed() {
122
+ return this.columns.filter((t) => t.type === "slot");
123
+ },
124
+ hig() {
125
+ const e = this.showTitle ? 32 : 0;
126
+ return this.height - e - 40;
127
+ },
128
+ ...f(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
129
+ },
130
+ methods: {
131
+ refresh(e = !0) {
132
+ this.$refs.table ? this.$refs.table.refresh(e) : console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
133
+ },
134
+ init(e) {
135
+ this.show = !1, this.spinning = !0, this.detail = { ...e };
136
+ let t = [], s = [];
137
+ t.push({
138
+ type: "selection",
139
+ width: "60",
140
+ fixed: !0
141
+ });
142
+ let n = 0;
143
+ e.viewList.sysviewfields.forEach((i, a) => {
144
+ const o = String(i.id).split("-");
145
+ let r = this.getColumns(i, a, e.viewList.frozencolumn);
146
+ n === 0 && r && r.checked && (Object.assign(r, {
147
+ type: "slot",
148
+ slotType: r.prop
149
+ }), n += 1), t.push(r);
150
+ let d = {
151
+ name: i.alias == "" ? i.columncomment : i.alias,
152
+ width: Number(i.num),
153
+ order: a,
154
+ type: o.length > 1 ? 2 : 1,
155
+ fieldid: o.length > 1 ? o[1] : o[0],
156
+ jointableid: i.codegenid,
157
+ joinfieldid: o[0],
158
+ orderconfig: i.orderconfig ? 1 : 0,
159
+ maxtagcount: i.maxtagcount ? Number(i.maxtagcount) : 2
160
+ };
161
+ s.push(d);
162
+ }), this.sysViewFields = [...s], this.columns = [...t], this.columnsSetting = [...t], setTimeout(() => {
163
+ this.show = !0, this.spinning = !1;
164
+ }, 10), this.$nextTick(() => {
165
+ setTimeout(() => {
166
+ this.refresh();
167
+ }, 100);
168
+ });
169
+ },
170
+ getColumns(e, t, s) {
171
+ const n = [...this.detail.loadData];
172
+ let i = [];
173
+ n.forEach((l) => {
174
+ l.children && i.push(l.children);
175
+ });
176
+ const a = String(e.id).split("-");
177
+ let o = {};
178
+ a.length > 1 ? o = n.filter((l) => a[1] == l.id && l.children)[0] : o = n.filter((l) => l.columnname == e.columnname)[0];
179
+ const r = a.length > 1 ? "fk" : o.effecttype, d = this.getColumnName(e, o).toLowerCase(), u = this.getScopedSlots(e.effecttype, d, e, o, r);
180
+ let h = {
181
+ key: d,
182
+ columnName: o.columnname,
183
+ fkEntityName: o.fkentityname,
184
+ transKey: null,
185
+ prop: d,
186
+ label: e.alias != "" ? e.alias : e.columncomment,
187
+ width: Number(e.num),
188
+ id: r == "fk" || r == "user" ? o.id : a[0],
189
+ fkId: r == "fk" || r == "user" ? a[0] : null,
190
+ align: e.align,
191
+ checked: e.visible,
192
+ effectType: e.effecttype,
193
+ fieldType: r,
194
+ fieldFormat: e.format,
195
+ dictTypeCode: e.dicttypecode,
196
+ dictTypeList: e.dicttypecode ? this.getDictionary(e.dicttypecode) : [],
197
+ maxTagCount: e.maxtagcount ? Number(e.maxtagcount) : 2,
198
+ sourceFk: a.length > 1 ? !0 : !(e.effecttype != "fk" && e.effecttype != "about" && e.effecttype != "user"),
199
+ displayMode: e.displaymode,
200
+ displayPrefix: e.displayprefix,
201
+ preview: e.preview,
202
+ download: e.download,
203
+ format: e.format
204
+ };
205
+ return e.operate != "add" && e.alias != "" && e.aliastranskey ? Object.assign(h, {
206
+ transKey: `Dynamics.${e.aliastranskey}`
207
+ }) : e.operate != "add" && e.alias == "" && e.transkey && Object.assign(h, {
208
+ transKey: `Dynamics.${e.transkey}`
209
+ }), t < s && Object.assign(h, {
210
+ fixed: "left"
211
+ }), e.orderConfig == 1 && Object.assign(h, {
212
+ sortable: "custom"
213
+ }), ["participants"].includes(e.effectType) && Object.assign(h, {
214
+ showTooltip: !1
215
+ }), Object.assign(h, u);
216
+ },
217
+ getColumnName(e, t) {
218
+ switch (t.effecttype) {
219
+ case "fk":
220
+ return e.columnname + t.fkentityname + t.columnname;
221
+ case "user":
222
+ return e.columnname + t.fkentityname + t.columnname;
223
+ case "about":
224
+ return e.relations;
225
+ default:
226
+ return t.columnname;
227
+ }
228
+ },
229
+ getScopedSlots(e, t, s, n, i) {
230
+ return i == "input" ? {} : ["datepicker"].includes(i) && s.format === 1 ? {} : {
231
+ type: "slot",
232
+ slotType: t
233
+ };
234
+ },
235
+ onSelectChange(e, t) {
236
+ this.selectedRowKeys = e, this.selectedRows = t;
237
+ },
238
+ columnChange(e) {
239
+ this.columnsSetting = [...e];
240
+ },
241
+ operatorScope(e, t) {
242
+ const s = e.sourceFk !== void 0 ? e.sourceFk : !(e.fieldType != "fk" && e.fieldType != "about" && e.fieldType != "user");
243
+ if (this.getFristColumn.prop === e.prop && !s) {
244
+ this.changeQuickView(t);
245
+ return;
246
+ }
247
+ s && this.baseQuickForm(t, e);
248
+ },
249
+ baseQuickForm(e, t) {
250
+ if (!this.statu) {
251
+ if (t.fieldType == "about") {
252
+ this.baseQuickAbout(e, t);
253
+ return;
254
+ }
255
+ if (t.fieldType == "participants") {
256
+ let s = this.tableLists.filter((i) => i.tablename == e.tableName)[0];
257
+ if (s === void 0) {
258
+ this.$message.error(this.$i18nt("gd.solution.dataErrorTip", "\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));
259
+ return;
260
+ }
261
+ this.statu = !0;
262
+ const n = this.$message({
263
+ message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
264
+ duration: 0,
265
+ iconClass: "el-icon-loading"
266
+ });
267
+ this.$refs.middleware.init({
268
+ tableId: s.id,
269
+ data: [e]
270
+ }).then((i) => {
271
+ setTimeout(() => {
272
+ this.statu = !1;
273
+ }, 1e3), n.close();
274
+ });
275
+ return;
276
+ }
277
+ this.baseQuickFk({ data: e, item: t });
278
+ }
279
+ },
280
+ changeQuickView(e) {
281
+ if (this.statu)
282
+ return;
283
+ this.statu = !0;
284
+ const t = this.$message({
285
+ message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
286
+ duration: 0,
287
+ iconClass: "el-icon-loading"
288
+ });
289
+ this.$refs.middleware.init({
290
+ tableId: this.detail.tableData.id,
291
+ data: [e]
292
+ }).then((s) => {
293
+ setTimeout(() => {
294
+ this.statu = !1;
295
+ }, 1e3), t.close();
296
+ });
297
+ },
298
+ baseQuickAbout(e, t) {
299
+ this.statu = !0;
300
+ const s = this.$message({
301
+ message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
302
+ duration: 0,
303
+ iconClass: "el-icon-loading"
304
+ });
305
+ k({
306
+ tableId: this.detail.tableData.id,
307
+ id: e.id
308
+ }).then((n) => {
309
+ if (n.success) {
310
+ let i = t.prop + "_AboutTable", a = {
311
+ data: e,
312
+ item: Object.assign(t, {
313
+ fkEntityName: n.data[0][i]
314
+ })
315
+ };
316
+ this.baseQuickFk(a, s);
317
+ } else
318
+ s.close(), setTimeout(() => {
319
+ this.statu = !1;
320
+ }, 1e3), this.$nextTick(() => {
321
+ setTimeout(() => {
322
+ this.$message.error(n.message);
323
+ }, 0);
324
+ });
325
+ });
326
+ },
327
+ baseQuickFk(e, t) {
328
+ let s = t;
329
+ e.item.fieldType != "about" && (this.statu = !0, s = this.$message({
330
+ message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
331
+ duration: 0,
332
+ iconClass: "el-icon-loading"
333
+ })), console.log(this.detail, e);
334
+ let n = {
335
+ thisTableName: this.detail.tableData.tablename,
336
+ thisIdValue: e.data.id,
337
+ thisFiled: e.item.columnName,
338
+ fkTable: e.item.fkEntityName
339
+ };
340
+ x(n).then((i) => {
341
+ i.success ? this.$refs.middleware.init(
342
+ Object.assign(i.data, {
343
+ fieldType: e.item.fieldType
344
+ })
345
+ ).then((a) => {
346
+ setTimeout(() => {
347
+ this.statu = !1;
348
+ }, 1e3), s.close();
349
+ }) : (s.close(), setTimeout(() => {
350
+ this.statu = !1;
351
+ }, 1e3), this.$nextTick(() => {
352
+ setTimeout(() => {
353
+ this.$message.error(i.message);
354
+ }, 0);
355
+ }));
356
+ });
357
+ },
358
+ showFile(e, t) {
359
+ const s = t[e.prop];
360
+ let n = s;
361
+ typeof s == "string" && (n = JSON.parse(s));
362
+ let i = t.name !== void 0 ? t.name : c.title, a = new m(), o = [], r = {};
363
+ n.forEach((u) => {
364
+ let h = this.getFileBlob(u).then((l) => {
365
+ a.file(u.FileOriginName, l, {
366
+ binary: !0
367
+ }), r[u.FileOriginName] = l;
368
+ });
369
+ o.push(h);
370
+ });
371
+ const d = this.$message({
372
+ message: this.$i18nt("gd.https.downloadingFiles", "\u6587\u4EF6\u6B63\u5728\u538B\u7F29\u4E0B\u8F7D\u4E2D..."),
373
+ duration: 0,
374
+ iconClass: "el-icon-loading"
375
+ });
376
+ Promise.all(o).then(() => {
377
+ a.generateAsync({
378
+ type: "blob"
379
+ }).then((u) => {
380
+ y.saveAs(u, i);
381
+ }), d.close();
382
+ }).catch((u) => {
383
+ d.close(), this.$message.error("err!");
384
+ });
385
+ },
386
+ showImg(e, t, s) {
387
+ let i = t[e.prop].split(",");
388
+ this.imgList = i, this.currentImg = s || i[0], this.$refs.imgPreview.imgListShow = !0, this.$refs.imgPreview.open();
389
+ },
390
+ getFileBlob(e) {
391
+ return v({
392
+ id: e.Id
393
+ }).then((t) => t.data);
394
+ },
395
+ exportData(e) {
396
+ if (e.key == 1 || e.key == 2) {
397
+ this.baseExport(e);
398
+ return;
399
+ }
400
+ if (e.key == 4) {
401
+ this.baseExportSel(e);
402
+ return;
403
+ }
404
+ let t = Object.assign(
405
+ {
406
+ type: e.key ? e.key : 0,
407
+ whereS: []
408
+ },
409
+ {
410
+ ...this.foreign
411
+ },
412
+ {
413
+ tableId: this.detail.tableData.id,
414
+ viewId: this.detail.viewId,
415
+ viewType: this.viewType,
416
+ filterConfig: this.detail.sysViewFilters
417
+ }
418
+ );
419
+ this.$refs.xlsxExport.open(t, e);
420
+ },
421
+ baseExport(e) {
422
+ const t = this.$message({
423
+ message: this.$i18nt("gd.login.exporting", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
424
+ duration: 0,
425
+ iconClass: "el-icon-loading"
426
+ });
427
+ let s = this.handleMenuClick(e.key), n = Object.assign(
428
+ {
429
+ ...s
430
+ },
431
+ {
432
+ tableId: this.detail.tableData.id,
433
+ viewId: this.detail.viewId,
434
+ viewType: this.viewType,
435
+ filterConfig: this.detail.sysViewFilters
436
+ }
437
+ ), i = e.url ? e.url : !1;
438
+ p(n, i).then((a) => {
439
+ this.$refs.xlsxExport.exportWay(a, t);
440
+ }).catch((a) => {
441
+ t.close(), console.log("\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458");
442
+ });
443
+ },
444
+ baseExportSel(e) {
445
+ if (this.selectedRowKeys.length === 0) {
446
+ this.$message.warning(this.$i18nt("gd.https.exportTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u6570\u636E!"));
447
+ return;
448
+ }
449
+ const t = this.$message({
450
+ message: this.$i18nt("gd.login.exporting", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
451
+ duration: 0,
452
+ iconClass: "el-icon-loading"
453
+ });
454
+ let s = this.handleMenuClick(e.key), n = Object.assign(
455
+ {
456
+ ...s
457
+ },
458
+ {
459
+ tableId: this.detail.tableData.id,
460
+ viewId: this.detail.viewId,
461
+ type: 4,
462
+ exportIds: this.selectedRowKeys.join(","),
463
+ viewType: this.viewType,
464
+ filterConfig: this.sysViewFilters
465
+ }
466
+ ), i = e.url ? e.url : !1;
467
+ p(n, i).then((a) => {
468
+ this.$refs.xlsxExport.exportWay(a, t);
469
+ }).catch((a) => {
470
+ t.close(), console.log("\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458");
471
+ });
472
+ },
473
+ handleMenuClick(e) {
474
+ let t = this.$refs.table, s = [];
475
+ t.columnsSetting.forEach((a) => {
476
+ (a.checked === void 0 ? !0 : a.checked) && a.id && s.push({
477
+ id: a.id,
478
+ columnName: a.prop,
479
+ aliasName: this.$i18nt(a.transKey, a.label),
480
+ fkId: a.fkId
481
+ });
482
+ }), this.viewType == 2 && s.pop();
483
+ let n = {
484
+ pageNo: t.currentPage,
485
+ pageSize: t.pageSized
486
+ };
487
+ return Object.assign({
488
+ displayColumns: s,
489
+ whereS: [],
490
+ type: e
491
+ }, {
492
+ ...n
493
+ });
494
+ },
495
+ getDictionary(e) {
496
+ return this.$options.filters.dictData(e);
497
+ },
498
+ doEvent(e) {
499
+ let t = e.item.functionName;
500
+ this[t](e);
501
+ }
502
+ }
503
+ };
504
+ var S = function() {
505
+ var t = this, s = t._self._c;
506
+ return s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.spinning, expression: "spinning" }] }, [t.show ? s("gd-table-virtual", { ref: "table", attrs: { dataSource: t.loadData, size: t.tableSize, pageSize: t.tablePageSize, columns: t.columns, selectedRowKeys: t.selectedRowKeys, height: t.hig, filtering: !1, initialLoading: !1 }, on: { onChange: t.onSelectChange, columnChange: t.columnChange }, scopedSlots: t._u([{ key: "operator", fn: function() {
507
+ return [s("gd-btn-list", { attrs: { sysViewButtons: t.buttons }, on: { functionName: t.doEvent } })];
508
+ }, proxy: !0 }, t._l(t.getColumnsed, function(n) {
509
+ return { key: n.prop, fn: function({ column: i, row: a }) {
510
+ return [s("ChildRenItem", { attrs: { item: n, row: a, getFristColumn: t.getFristColumn }, on: { operatorScope: t.operatorScope, baseQuickForm: t.baseQuickForm, showFile: t.showFile, showImg: t.showImg } })];
511
+ } };
512
+ })], null, !0) }) : t._e(), s("ImgPreview", { ref: "imgPreview", attrs: { filePreviewShow: t.imgList.length > 0, imgList: t.imgList, currentImg: t.currentImg } }), s("XlsxExport", { ref: "xlsxExport", attrs: { entityId: t.detail.tableData.id, queryParam: {}, tableData: t.detail.tableData } }), s("gd-middleware", { ref: "middleware", on: { ok: t.refresh } })], 1);
513
+ }, $ = [], I = /* @__PURE__ */ g(
514
+ T,
515
+ S,
516
+ $,
517
+ !1,
518
+ null,
519
+ "c817ec1f",
520
+ null,
521
+ null
522
+ );
523
+ const ee = I.exports;
524
+ export {
525
+ ee as default
526
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./components.chartbi.e4680eaa.js"),g=require("./page.build.846096e6.js"),m=require("./view.build.b44fd7d7.js"),p=require("./http.main.2f8a6936.js"),y=require("./http.filemanage.7e6e3e1a.js"),b=require("./components.imgpreview.86bf7971.js"),w=require("./components.xlsxexport.f5ace2cd.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.50d1ec9c.js");require("./form.designer.build.5a950455.js");require("vue");require("./components.table.17c02054.js");require("./utils.datepicker.js.8576e2fc.js");require("./components.form.91d5ed3e.js");require("./components.iconselector.d712170f.js");require("./http.codegeneratemanage.aecadd5d.js");require("./http.duplicatechecking.ee5c414c.js");require("./http.menumanage.6d740f2c.js");require("./http.tabledevelopment.a880bb76.js");require("./components.xlsximport.dbd826bb.js");require("./http.syscodegenerateconfigmanage.840f1136.js");require("./components.teamsharing.05503821.js");require("./components.dataassign.1853ed5c.js");require("./components.statuschange.ed1218a4.js");require("./components.coloreditor.779a9419.js");const k={props:{height:{type:Number,default:400},showTitle:{type:Boolean,default:!0}},data(){return{statu:!1,viewType:3,imgList:[],currentImg:"",show:!1,spinning:!1,sysViewFields:[],detail:{tableData:{}},columns:[],columnsSetting:[],selectedRowKeys:[],selectedRows:[],queryCriteria:{},loadData:e=>{const t=Object.assign(e,this.switchingDate);return this.queryCriteria={...t},p.baseSeniorQuery(t).then(s=>s.data)},buttons:[{displayName:"\u5BFC\u51FA",functionName:"exportData",show:!0,transKey:"gd.btn.export",icon:"gd-icon-daoru",name:"sysUser:advancedFindExport",children:[{displayName:"\u5F53\u524D\u9759\u6001\u9875",functionName:null,key:"1",transKey:"gd.advancedFind.exportCurrent",icon:""},{displayName:"\u5F53\u524D\u9759\u6001\u9875(\u6240\u6709)",functionName:null,key:"2",transKey:"gd.advancedFind.exportCurrentAll",icon:""},{displayName:"\u9009\u5B9A\u8BB0\u5F55",functionName:null,key:"4",transKey:"gd.advancedFind.exportSelected",icon:""},{displayName:"\u81EA\u5B9A\u4E49",functionName:null,key:"3",transKey:"gd.advancedFind.exportCustom",icon:""}]}]}},components:{ChildRenItem:m.ChildRenItem,ImgPreview:b.default,XlsxExport:w.default},computed:{switchingDate(){if(this.detail.tableData===void 0)return{};const e={...this.detail};return{tableId:e.tableData.id,viewId:e.viewId,sysViewFields:this.sysViewFields,sysViewFilters:e.sysViewFilters}},getFristColumn(){const e=this.columnsSetting.filter(t=>t.type!=="selection"&&t.checked)[0];return e||{}},getColumnsed(){return this.columns.filter(t=>t.type==="slot")},hig(){const e=this.showTitle?32:0;return this.height-e-40},...f.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{refresh(e=!0){this.$refs.table?this.$refs.table.refresh(e):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},init(e){this.show=!1,this.spinning=!0,this.detail={...e};let t=[],s=[];t.push({type:"selection",width:"60",fixed:!0});let n=0;e.viewList.sysviewfields.forEach((i,a)=>{const r=String(i.id).split("-");let o=this.getColumns(i,a,e.viewList.frozencolumn);n===0&&o&&o.checked&&(Object.assign(o,{type:"slot",slotType:o.prop}),n+=1),t.push(o);let d={name:i.alias==""?i.columncomment:i.alias,width:Number(i.num),order:a,type:r.length>1?2:1,fieldid:r.length>1?r[1]:r[0],jointableid:i.codegenid,joinfieldid:r[0],orderconfig:i.orderconfig?1:0,maxtagcount:i.maxtagcount?Number(i.maxtagcount):2};s.push(d)}),this.sysViewFields=[...s],this.columns=[...t],this.columnsSetting=[...t],setTimeout(()=>{this.show=!0,this.spinning=!1},10),this.$nextTick(()=>{setTimeout(()=>{this.refresh()},100)})},getColumns(e,t,s){const n=[...this.detail.loadData];let i=[];n.forEach(l=>{l.children&&i.push(l.children)});const a=String(e.id).split("-");let r={};a.length>1?r=n.filter(l=>a[1]==l.id&&l.children)[0]:r=n.filter(l=>l.columnname==e.columnname)[0];const o=a.length>1?"fk":r.effecttype,d=this.getColumnName(e,r).toLowerCase(),u=this.getScopedSlots(e.effecttype,d,e,r,o);let h={key:d,columnName:r.columnname,fkEntityName:r.fkentityname,transKey:null,prop:d,label:e.alias!=""?e.alias:e.columncomment,width:Number(e.num),id:o=="fk"||o=="user"?r.id:a[0],fkId:o=="fk"||o=="user"?a[0]:null,align:e.align,checked:e.visible,effectType:e.effecttype,fieldType:o,fieldFormat:e.format,dictTypeCode:e.dicttypecode,dictTypeList:e.dicttypecode?this.getDictionary(e.dicttypecode):[],maxTagCount:e.maxtagcount?Number(e.maxtagcount):2,sourceFk:a.length>1?!0:!(e.effecttype!="fk"&&e.effecttype!="about"&&e.effecttype!="user"),displayMode:e.displaymode,displayPrefix:e.displayprefix,preview:e.preview,download:e.download,format:e.format};return e.operate!="add"&&e.alias!=""&&e.aliastranskey?Object.assign(h,{transKey:`Dynamics.${e.aliastranskey}`}):e.operate!="add"&&e.alias==""&&e.transkey&&Object.assign(h,{transKey:`Dynamics.${e.transkey}`}),t<s&&Object.assign(h,{fixed:"left"}),e.orderConfig==1&&Object.assign(h,{sortable:"custom"}),["participants"].includes(e.effectType)&&Object.assign(h,{showTooltip:!1}),Object.assign(h,u)},getColumnName(e,t){switch(t.effecttype){case"fk":return e.columnname+t.fkentityname+t.columnname;case"user":return e.columnname+t.fkentityname+t.columnname;case"about":return e.relations;default:return t.columnname}},getScopedSlots(e,t,s,n,i){return i=="input"?{}:["datepicker"].includes(i)&&s.format===1?{}:{type:"slot",slotType:t}},onSelectChange(e,t){this.selectedRowKeys=e,this.selectedRows=t},columnChange(e){this.columnsSetting=[...e]},operatorScope(e,t){const s=e.sourceFk!==void 0?e.sourceFk:!(e.fieldType!="fk"&&e.fieldType!="about"&&e.fieldType!="user");if(this.getFristColumn.prop===e.prop&&!s){this.changeQuickView(t);return}s&&this.baseQuickForm(t,e)},baseQuickForm(e,t){if(!this.statu){if(t.fieldType=="about"){this.baseQuickAbout(e,t);return}if(t.fieldType=="participants"){let s=this.tableLists.filter(i=>i.tablename==e.tableName)[0];if(s===void 0){this.$message.error(this.$i18nt("gd.solution.dataErrorTip","\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));return}this.statu=!0;const n=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init({tableId:s.id,data:[e]}).then(i=>{setTimeout(()=>{this.statu=!1},1e3),n.close()});return}this.baseQuickFk({data:e,item:t})}},changeQuickView(e){if(this.statu)return;this.statu=!0;const t=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init({tableId:this.detail.tableData.id,data:[e]}).then(s=>{setTimeout(()=>{this.statu=!1},1e3),t.close()})},baseQuickAbout(e,t){this.statu=!0;const s=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});p.baseDetails({tableId:this.detail.tableData.id,id:e.id}).then(n=>{if(n.success){let i=t.prop+"_AboutTable",a={data:e,item:Object.assign(t,{fkEntityName:n.data[0][i]})};this.baseQuickFk(a,s)}else s.close(),setTimeout(()=>{this.statu=!1},1e3),this.$nextTick(()=>{setTimeout(()=>{this.$message.error(n.message)},0)})})},baseQuickFk(e,t){let s=t;e.item.fieldType!="about"&&(this.statu=!0,s=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"})),console.log(this.detail,e);let n={thisTableName:this.detail.tableData.tablename,thisIdValue:e.data.id,thisFiled:e.item.columnName,fkTable:e.item.fkEntityName};p.onlineFormGetFkRelation(n).then(i=>{i.success?this.$refs.middleware.init(Object.assign(i.data,{fieldType:e.item.fieldType})).then(a=>{setTimeout(()=>{this.statu=!1},1e3),s.close()}):(s.close(),setTimeout(()=>{this.statu=!1},1e3),this.$nextTick(()=>{setTimeout(()=>{this.$message.error(i.message)},0)}))})},showFile(e,t){const s=t[e.prop];let n=s;typeof s=="string"&&(n=JSON.parse(s));let i=t.name!==void 0?t.name:c.title,a=new g.JSZip,r=[],o={};n.forEach(u=>{let h=this.getFileBlob(u).then(l=>{a.file(u.FileOriginName,l,{binary:!0}),o[u.FileOriginName]=l});r.push(h)});const d=this.$message({message:this.$i18nt("gd.https.downloadingFiles","\u6587\u4EF6\u6B63\u5728\u538B\u7F29\u4E0B\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});Promise.all(r).then(()=>{a.generateAsync({type:"blob"}).then(u=>{g.FileSaver.saveAs(u,i)}),d.close()}).catch(u=>{d.close(),this.$message.error("err!")})},showImg(e,t,s){let i=t[e.prop].split(",");this.imgList=i,this.currentImg=s||i[0],this.$refs.imgPreview.imgListShow=!0,this.$refs.imgPreview.open()},getFileBlob(e){return y.sysFileInfoDownload({id:e.Id}).then(t=>t.data)},exportData(e){if(e.key==1||e.key==2){this.baseExport(e);return}if(e.key==4){this.baseExportSel(e);return}let t=Object.assign({type:e.key?e.key:0,whereS:[]},{...this.foreign},{tableId:this.detail.tableData.id,viewId:this.detail.viewId,viewType:this.viewType,filterConfig:this.detail.sysViewFilters});this.$refs.xlsxExport.open(t,e)},baseExport(e){const t=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});let s=this.handleMenuClick(e.key),n=Object.assign({...s},{tableId:this.detail.tableData.id,viewId:this.detail.viewId,viewType:this.viewType,filterConfig:this.detail.sysViewFilters}),i=e.url?e.url:!1;p.baseExport(n,i).then(a=>{this.$refs.xlsxExport.exportWay(a,t)}).catch(a=>{t.close(),console.log("\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458")})},baseExportSel(e){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.exportTip","\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u6570\u636E!"));return}const t=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});let s=this.handleMenuClick(e.key),n=Object.assign({...s},{tableId:this.detail.tableData.id,viewId:this.detail.viewId,type:4,exportIds:this.selectedRowKeys.join(","),viewType:this.viewType,filterConfig:this.sysViewFilters}),i=e.url?e.url:!1;p.baseExport(n,i).then(a=>{this.$refs.xlsxExport.exportWay(a,t)}).catch(a=>{t.close(),console.log("\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458")})},handleMenuClick(e){let t=this.$refs.table,s=[];t.columnsSetting.forEach(a=>{(a.checked===void 0?!0:a.checked)&&a.id&&s.push({id:a.id,columnName:a.prop,aliasName:this.$i18nt(a.transKey,a.label),fkId:a.fkId})}),this.viewType==2&&s.pop();let n={pageNo:t.currentPage,pageSize:t.pageSized};return Object.assign({displayColumns:s,whereS:[],type:e},{...n})},getDictionary(e){return this.$options.filters.dictData(e)},doEvent(e){let t=e.item.functionName;this[t](e)}}};var x=function(){var t=this,s=t._self._c;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}]},[t.show?s("gd-table-virtual",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.columns,selectedRowKeys:t.selectedRowKeys,height:t.hig,filtering:!1,initialLoading:!1},on:{onChange:t.onSelectChange,columnChange:t.columnChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("gd-btn-list",{attrs:{sysViewButtons:t.buttons},on:{functionName:t.doEvent}})]},proxy:!0},t._l(t.getColumnsed,function(n){return{key:n.prop,fn:function({column:i,row:a}){return[s("ChildRenItem",{attrs:{item:n,row:a,getFristColumn:t.getFristColumn},on:{operatorScope:t.operatorScope,baseQuickForm:t.baseQuickForm,showFile:t.showFile,showImg:t.showImg}})]}}})],null,!0)}):t._e(),s("ImgPreview",{ref:"imgPreview",attrs:{filePreviewShow:t.imgList.length>0,imgList:t.imgList,currentImg:t.currentImg}}),s("XlsxExport",{ref:"xlsxExport",attrs:{entityId:t.detail.tableData.id,queryParam:{},tableData:t.detail.tableData}}),s("gd-middleware",{ref:"middleware",on:{ok:t.refresh}})],1)},v=[],T=f.normalizeComponent(k,x,v,!1,null,"c817ec1f",null,null);const j=T.exports;exports.default=j;