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,1048 @@
1
+ import { m as l, n as a, a as f } from "./components.chartbi.b043dcdc.mjs";
2
+ import { g as n, i as L } from "./utils.util.js.82cd8447.mjs";
3
+ import { d as y, i as D, p as h } from "./http.main.40657f51.mjs";
4
+ import { o as C, c as I } from "./http.loginmanage.05500c29.mjs";
5
+ import { o as g } from "./http.syscodegenerateconfigmanage.6d2e5da0.mjs";
6
+ import { F as b } from "./form.build.b768d613.mjs";
7
+ import { c as _ } from "./http.codegeneratemanage.2f925b10.mjs";
8
+ import { n as x } from "./system.notice.25ea8dca.mjs";
9
+ const F = {
10
+ props: {
11
+ record: {
12
+ type: Object,
13
+ default: () => ({})
14
+ },
15
+ recordoperations: {
16
+ type: Object,
17
+ default: () => ({})
18
+ },
19
+ develop: {
20
+ type: [Number, String],
21
+ default: 1
22
+ },
23
+ openMode: {
24
+ type: [String, Number],
25
+ default: 1
26
+ },
27
+ height: {
28
+ type: Number,
29
+ default: 100
30
+ },
31
+ foreign: {
32
+ type: Object,
33
+ default: () => ({})
34
+ },
35
+ disabledRowId: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ istable: {
40
+ type: Boolean,
41
+ default: !1
42
+ }
43
+ },
44
+ data() {
45
+ return {
46
+ statu: !1,
47
+ viewRecord: {},
48
+ formList: [],
49
+ tableData: {},
50
+ sysViewList: [],
51
+ personalViewList: [],
52
+ sysViewButtons: [],
53
+ selectedRowKeys: [],
54
+ selectedRows: [],
55
+ defaultViewId: 0,
56
+ excludeButtons: [],
57
+ fieldData: [],
58
+ tableDataSource: [],
59
+ componentList: [],
60
+ lineQuickView: (t) => {
61
+ const e = "baseQuickView";
62
+ return this[e] === void 0 && this.func === void 0 ? new Promise((i) => i(t)) : this[e](t);
63
+ }
64
+ };
65
+ },
66
+ computed: {
67
+ componentForm() {
68
+ const t = this.$importViewFiles();
69
+ let i = `../views/main/${this.options.table.tableName || this.options.table.tablename}/editForm.vue`;
70
+ const s = t[i];
71
+ return s ? s.default : b;
72
+ },
73
+ viewList() {
74
+ return this.sysViewList.concat(this.personalViewList);
75
+ },
76
+ formCode() {
77
+ return this.options.form.id;
78
+ },
79
+ options() {
80
+ return this.record.options;
81
+ },
82
+ ...l(["tableLists"])
83
+ },
84
+ methods: {
85
+ showLoading() {
86
+ this.statu = !0, this.$refs.table.showLoading();
87
+ },
88
+ hideLoading(t = 1500) {
89
+ this.$refs.table.hideLoading(t), setTimeout(() => {
90
+ this.statu = !1;
91
+ }, t);
92
+ },
93
+ add(t) {
94
+ this.baseAdd();
95
+ },
96
+ edit(t) {
97
+ this.baseEdit();
98
+ },
99
+ del(t) {
100
+ this.baseDel();
101
+ },
102
+ deactivateData() {
103
+ this.baseEnable(0);
104
+ },
105
+ enableData() {
106
+ this.baseEnable();
107
+ },
108
+ assign(t) {
109
+ this.baseAssign(t);
110
+ },
111
+ batchUpdate(t) {
112
+ this.baseBatchUpdate();
113
+ },
114
+ teamSharing(t) {
115
+ this.baseTeamSharing(t);
116
+ },
117
+ statusChange() {
118
+ this.baseStatusChange();
119
+ },
120
+ importData() {
121
+ this.baseImportData();
122
+ },
123
+ exportData(t) {
124
+ this.baseExportData(t);
125
+ },
126
+ open(t) {
127
+ console.log(t), this.$nextTick(() => {
128
+ setTimeout(() => {
129
+ this.$refs.editForm ? this.tableData.isvirtualtable === 1 ? this.$refs.editForm.openDisplay(t) : this.$refs.editForm.open(t) : console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
130
+ }, 0);
131
+ });
132
+ },
133
+ refresh(t = !0) {
134
+ 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");
135
+ },
136
+ init() {
137
+ this.record.hasLoad && this.record.hasLoad(this.record.key), Promise.all([
138
+ this.baseGetTableView(),
139
+ this.baseGetPersonalView(!0),
140
+ this.baseGetLoadData()
141
+ ]).then((t) => {
142
+ this.$nextTick(() => {
143
+ setTimeout(() => {
144
+ this.$refs.table && (this.$refs.table.init({
145
+ fieldData: this.fieldData,
146
+ tableData: this.tableData,
147
+ sysViewList: this.sysViewList,
148
+ personalViewList: this.personalViewList,
149
+ defaultViewId: this.defaultViewId
150
+ }), this.$refs.table.baseCustomComponents(this.componentList));
151
+ let e = this.formList.filter((i) => i.id === this.formCode)[0];
152
+ e || (e = this.formList.filter((i) => i.type === 1)[0]), this.$refs.editForm && e && this.$refs.editForm.setFormRecord(e), this.beaseLoadComplete();
153
+ }, 0);
154
+ });
155
+ });
156
+ },
157
+ onChangeBtn(t) {
158
+ this.sysViewButtons = t;
159
+ },
160
+ onChangeView(t) {
161
+ this.viewRecord = t;
162
+ },
163
+ onChangeData(t) {
164
+ this.tableDataSource = [...t], this.$emit("changeData", t);
165
+ },
166
+ onChangeSelect(t, e) {
167
+ this.selectedRowKeys = t, this.selectedRows = e, this.$emit("onChangeSelect", t, e);
168
+ const i = "baseChangeSelect";
169
+ this[i] && this[i](t, e);
170
+ },
171
+ beaseLoadComplete() {
172
+ const t = "onLoadCompleted";
173
+ this[t] === void 0 && this.func === void 0 || this[t] && this[t]();
174
+ },
175
+ baseGetTableView() {
176
+ const t = this.tableLists.filter((e) => {
177
+ const i = this.options.table.tableName || this.options.table.tablename;
178
+ return e.tablename.toLowerCase() === i.toLowerCase();
179
+ })[0];
180
+ return t ? y({
181
+ tableId: t.id
182
+ }).then((e) => (e.code === 200 ? (e.data.viewlist.map((i) => (i.mode = 1, i)), this.formList = e.data.formlist, this.tableData = e.data.table, this.sysViewList = e.data.viewlist) : this.$message.error(e.message), e)) : (console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"), new Promise((e, i) => {
183
+ e({});
184
+ }));
185
+ },
186
+ baseGetPersonalView(t) {
187
+ if (t && this.openMode != 1)
188
+ return new Promise((i, s) => {
189
+ i();
190
+ });
191
+ const e = this.tableLists.filter((i) => {
192
+ const s = this.options.table.tableName || this.options.table.tablename;
193
+ return i.tablename.toLowerCase() === s.toLowerCase();
194
+ })[0];
195
+ return e === void 0 ? (console.log("\u8868\u4E0D\u5B58\u5728"), new Promise((i, s) => {
196
+ i();
197
+ })) : D({
198
+ tableId: e.id
199
+ }).then((i) => {
200
+ if (i.code === 200) {
201
+ const s = this.options.layoutConfig !== void 0 ? this.options.layoutConfig : !1;
202
+ this.defaultViewId = s ? 0 : i.data.defaultqueryid, this.personalViewList = i.data.savedquerylist;
203
+ } else
204
+ console.log(i.message);
205
+ return i.data;
206
+ });
207
+ },
208
+ baseGetLoadData() {
209
+ const t = this.tableLists.filter((e) => {
210
+ const i = this.options.table.tableName || this.options.table.tablename;
211
+ return e.tablename.toLowerCase() === i.toLowerCase();
212
+ })[0];
213
+ return t ? g({
214
+ codeGenId: t.id
215
+ }).then((e) => {
216
+ e.code === 200 && (this.fieldData = e.data, this.$emit("fieldData", e.data));
217
+ }) : (console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"), new Promise((e, i) => {
218
+ e({});
219
+ }));
220
+ },
221
+ baseAdd() {
222
+ this.$nextTick(() => {
223
+ setTimeout(() => {
224
+ this.$refs.editForm ? this.$refs.editForm.open({
225
+ title: this.$i18nt("gd.https.add", "\u65B0\u589E")
226
+ }) : console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
227
+ }, 0);
228
+ });
229
+ },
230
+ baseEdit() {
231
+ if (this.selectedRowKeys.length === 0) {
232
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
233
+ return;
234
+ }
235
+ if (this.selectedRowKeys.length > 1) {
236
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
237
+ return;
238
+ }
239
+ let t = {
240
+ title: this.$i18nt("gd.https.edit", "\u7F16\u8F91")
241
+ };
242
+ this.openMode == 3 ? Object.assign(t, {
243
+ data: this.selectedRows[0]
244
+ }) : Object.assign(t, {
245
+ id: this.selectedRowKeys[0]
246
+ }), this.open(t);
247
+ },
248
+ baseCopyData() {
249
+ if (this.selectedRowKeys.length === 0) {
250
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
251
+ return;
252
+ }
253
+ if (this.selectedRowKeys.length > 1) {
254
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
255
+ return;
256
+ }
257
+ const t = this.tableDataSource.filter((e) => this.selectedRowKeys.includes(e.id))[0];
258
+ this.$refs.editForm.openCopyData({
259
+ title: this.$i18nt("gd.advancedFind.anotherSave", "\u53E6\u5B58\u4E3A"),
260
+ data: t
261
+ });
262
+ },
263
+ baseDel() {
264
+ this.$refs.table.baseDel();
265
+ },
266
+ baseEnable(t = 1) {
267
+ return this.$refs.table.baseEnable(t);
268
+ },
269
+ baseRelationOk(t) {
270
+ this.$refs.table.baseRelationOk(t);
271
+ },
272
+ baseBatchUpdate() {
273
+ this.$refs.table.baseBatchUpdate();
274
+ },
275
+ baseTeamSharing(t) {
276
+ this.$refs.table.baseTeamSharing(t);
277
+ },
278
+ baseStatusChange() {
279
+ this.$refs.table.baseStatusChange();
280
+ },
281
+ baseAssign(t) {
282
+ this.$refs.table.baseAssign(t);
283
+ },
284
+ baseImportData() {
285
+ this.$refs.table.baseImportData();
286
+ },
287
+ baseExportData(t) {
288
+ this.$refs.table.baseExportData(t);
289
+ },
290
+ baseGetParentFormData(t) {
291
+ if (this.openMode != 3)
292
+ return new Promise((i, s) => {
293
+ i({});
294
+ });
295
+ let e = t === void 0 ? !1 : t;
296
+ return this.record.getFormAllData(e, !0).then((i) => i);
297
+ },
298
+ baseRelationRefresh(t = !0, e, i = {}) {
299
+ this.openMode == 3 && this.record.refresh(t, e, i);
300
+ },
301
+ baseBtnsStatus(t) {
302
+ this.$refs.table.baseBtnsStatus(t);
303
+ },
304
+ baseForceShowBtns(t) {
305
+ this.$refs.table.baseForceShowBtns(t);
306
+ },
307
+ baseComponentsInit(t) {
308
+ this.$refs.table.baseComponentsInit(t);
309
+ },
310
+ baseSetTableData(t) {
311
+ this.$refs.table.baseSetTableData(t);
312
+ },
313
+ getDictionary(t) {
314
+ return this.$options.filters.dictData(t);
315
+ },
316
+ baseTriggerFilter(t) {
317
+ this.$refs.table.baseTriggerFilter(t);
318
+ },
319
+ doEvent(t) {
320
+ const e = t.item.functionName || t.item.functionname, i = t.key ? t : t.item;
321
+ if (this[e] === void 0) {
322
+ console.log("\u8BF7\u5B9A\u4E49 " + e + " \u65B9\u6CD5");
323
+ return;
324
+ }
325
+ this.showLoading(), this[e] && this[e](i), this.hideLoading();
326
+ },
327
+ executeEvent(t) {
328
+ const e = t.functionName ? t.functionName : "";
329
+ e && this[e] !== void 0 ? this.$nextTick(() => {
330
+ setTimeout(() => {
331
+ this[e](t);
332
+ }, 100);
333
+ }) : console.log("\u6267\u884C\u9519\u8BEF");
334
+ }
335
+ },
336
+ created() {
337
+ this.init(), this.develop == 2 && (this.record.executeEvent = this.executeEvent);
338
+ },
339
+ beforeDestroy() {
340
+ console.log("\u89C6\u56FE\u5378\u8F7D", this.tableData.busname), this.sysViewList = [], this.personalViewList = [], this.selectedRows = [], this.sysViewButtons = [], this.fieldData = [], this.componentList = [], this.tableDataSource = [];
341
+ }
342
+ };
343
+ const k = {
344
+ mixins: [F],
345
+ methods: {}
346
+ };
347
+ var B = function() {
348
+ var e = this, i = e._self._c;
349
+ return i("div", [i("gd-view-build-designer", { ref: "table", attrs: { record: e.record, develop: e.develop, openMode: e.openMode, height: e.height, foreign: e.foreign, disabledRowId: e.disabledRowId, excludeButtons: e.excludeButtons, lineQuickView: e.lineQuickView }, on: { baseOpen: e.open, changeBtn: e.onChangeBtn, changeView: e.onChangeView, changeData: e.onChangeData, changeSelect: e.onChangeSelect, doEvent: e.doEvent } }), i(e.componentForm, { ref: "editForm", tag: "component", attrs: { fieldData: e.fieldData, tableData: e.tableData, recordRelation: e.record, openMode: e.openMode }, on: { ok: e.refresh, relationOk: e.baseRelationOk } })], 1);
350
+ }, O = [], R = /* @__PURE__ */ a(
351
+ k,
352
+ B,
353
+ O,
354
+ !1,
355
+ null,
356
+ "ca0b408e",
357
+ null,
358
+ null
359
+ );
360
+ const S = R.exports;
361
+ const V = {
362
+ name: "GdViewFormDetails",
363
+ props: {
364
+ modalAppendToBody: {
365
+ type: Boolean,
366
+ default: !0
367
+ },
368
+ appendToBody: {
369
+ type: Boolean,
370
+ default: !0
371
+ }
372
+ },
373
+ data() {
374
+ return {
375
+ record: "",
376
+ query: {},
377
+ openType: "",
378
+ modeType: "",
379
+ popupType: "dialog",
380
+ iframeUri: "",
381
+ showPopup: !1,
382
+ statu: !1
383
+ };
384
+ },
385
+ computed: {
386
+ hig() {
387
+ return `${this.screenHeight}px`;
388
+ },
389
+ istyle() {
390
+ return `width:100%;overflow:hidden;height:${this.hig};`;
391
+ },
392
+ ...l(["primaryColor", "screenHeight"])
393
+ },
394
+ components: {
395
+ PopupDetails: () => Promise.resolve().then(() => G),
396
+ ViewDetails: () => Promise.resolve().then(() => X)
397
+ },
398
+ methods: {
399
+ open(t, e = !1) {
400
+ console.log(t), this.record = t;
401
+ const i = n(t);
402
+ this.query = i, this.modeType = e ? this.modeType : i.mode_type ? i.mode_type : "", this.openType = e ? this.openType : i.open_type ? i.open_type : "popup";
403
+ const s = this.query.redirect_uri ? this.query.redirect_uri : "";
404
+ if (this.modeType === "request") {
405
+ this.getRequestDetail();
406
+ return;
407
+ }
408
+ if (["authorize_view", "authorize_form", "authorize_details"].includes(this.modeType)) {
409
+ this.getAuthorizeCode();
410
+ return;
411
+ }
412
+ if (this.openType === "iframe") {
413
+ this.getIframeUri(s);
414
+ return;
415
+ }
416
+ if (["redirect_self", "redirect_blank"].includes(this.openType)) {
417
+ this.goRedirectUri(s);
418
+ return;
419
+ }
420
+ this.showPopup = !0, this.$nextTick(() => {
421
+ setTimeout(() => {
422
+ const o = `${this.openType}Details`;
423
+ this.$refs[o] && this.$refs[o].init();
424
+ }, 0);
425
+ });
426
+ },
427
+ getRequestDetail() {
428
+ if (this.statu)
429
+ return;
430
+ const t = this.query.request_url ? this.query.request_url : "";
431
+ if (t === "")
432
+ return;
433
+ const e = decodeURIComponent(t), i = e.indexOf("?") === -1 ? e : e.slice(0, e.indexOf("?")), s = n(e);
434
+ this.statu = !0, h(i, s).then((o) => {
435
+ if (this.statu = !1, o.code !== 200) {
436
+ this.$message.error(o.message);
437
+ return;
438
+ }
439
+ if (["redirect_self", "redirect_blank"].includes(this.openType)) {
440
+ this.goRedirectUri(o.data), this.beaseLoadComplete();
441
+ return;
442
+ }
443
+ if (["iframe"].includes(this.openType)) {
444
+ this.getIframeUri(o.data), this.beaseLoadComplete();
445
+ return;
446
+ }
447
+ this.open(o.data, !0);
448
+ });
449
+ },
450
+ getAuthorizeCode() {
451
+ const t = this.query.code ? this.query.code : "";
452
+ if (t) {
453
+ this.Logout().then((e) => {
454
+ this.getCode(t);
455
+ });
456
+ return;
457
+ }
458
+ this.oauthAuthorize();
459
+ },
460
+ oauthAuthorize() {
461
+ const t = this.query.client_id ? this.query.client_id : "";
462
+ this.query.response_type && this.query.response_type, C({ client_id: t, response_type: "code" }).then((e) => {
463
+ if (e.code !== 200) {
464
+ this.$message.error(e.message);
465
+ return;
466
+ }
467
+ const i = this.query.redirect_uri ? this.query.redirect_uri : "";
468
+ if (i === "")
469
+ return;
470
+ const s = decodeURIComponent(i);
471
+ s.indexOf("?") === -1 || s.slice(0, s.indexOf("?"));
472
+ const o = s.indexOf("?") === -1 ? [] : s.slice(s.indexOf("?") + 1).split("&").map((r) => r.split("=")).map(([r, q]) => ({
473
+ key: r,
474
+ value: q
475
+ })).concat([{ key: "code", value: e.data.code }]);
476
+ if (["redirect_self", "redirect_blank"].includes(this.openType)) {
477
+ this.oauthAuthorizeRedirect(o);
478
+ return;
479
+ }
480
+ const u = this.modeType.replace("authorize_", "");
481
+ let d = `?authorize_type=${this.modeType}&mode_type=${u}`, m = `?authorize_type=${this.modeType}&mode_type=${u}&open_type=view`;
482
+ for (let r = 0; r < o.length; r++)
483
+ d += `&${o[r].key}=${o[r].value}`, o[r].key !== "open_type" && (m += `&${o[r].key}=${o[r].value}`);
484
+ const p = encodeURIComponent(s.slice(0, s.indexOf("?")) + m);
485
+ d += d === "" ? `?redirect_uri=${p}` : `&redirect_uri=${p}`, this.query.complete_request && (d += `&complete_request=${this.query.complete_request}`);
486
+ const T = n(d);
487
+ this.query = T, this.showPopup = !0, this.$nextTick(() => {
488
+ setTimeout(() => {
489
+ const r = `${this.openType}Details`;
490
+ this.$refs[r] && this.$refs[r].init();
491
+ }, 0);
492
+ });
493
+ });
494
+ },
495
+ oauthAuthorizeRedirect(t) {
496
+ let e = "";
497
+ for (let s = 0; s < t.length; s++)
498
+ e += `${s === 0 ? "?" : "&"}${t[s].key}=${t[s].value}`;
499
+ const i = this.openType === "redirect_self" ? "_self" : this.openType === "redirect_blank" ? "_blank" : "_self";
500
+ window.open(`${url}${e}`, i);
501
+ },
502
+ getCode(t) {
503
+ I({ code: t }).then((e) => {
504
+ if (e.code !== 200) {
505
+ this.$message.error(e.message);
506
+ return;
507
+ }
508
+ this.loginSuccess(e.data), this.loginOther();
509
+ });
510
+ },
511
+ goRedirectUri(t) {
512
+ if (t === "")
513
+ return;
514
+ const e = decodeURIComponent(t), i = this.openType === "redirect_self" ? "_self" : this.openType === "redirect_blank" ? "_blank" : "";
515
+ window.open(e, i);
516
+ },
517
+ getIframeUri(t) {
518
+ t !== "" && (this.iframeUri = decodeURIComponent(t));
519
+ },
520
+ beaseLoadComplete() {
521
+ const t = this.query.complete_request ? this.query.complete_request : "";
522
+ if (t === "")
523
+ return;
524
+ const e = decodeURIComponent(t), i = e.indexOf("?") === -1 ? e : e.slice(0, e.indexOf("?")), s = n(e);
525
+ h(i, s);
526
+ },
527
+ loginSuccess(t) {
528
+ Vue.ls.set("ACCESS_TOKEN", t.accesstoken), this.$store.commit("SET_TOKEN", t.accesstoken);
529
+ let e = "";
530
+ for (let i in this.query)
531
+ ["authorize_view", "authorize_form", "authorize_details"].includes(i) ? e += `${e === "" ? "?" : "&"}${i}=${this.query[i].replace("authorize_", "")}` : e += `${e === "" ? "?" : "&"}${i}=${this.query[i]}`;
532
+ this.open(e, !0);
533
+ },
534
+ loginOther() {
535
+ this.dictTypeData().then((e) => {
536
+ });
537
+ const t = new BroadcastChannel("gd-channel-msg");
538
+ t.postMessage({
539
+ type: "login",
540
+ data: { gdTagName: window.gdTagName }
541
+ }), t.close();
542
+ },
543
+ close() {
544
+ this.modeType = "", this.openType = "", this.$nextTick(() => {
545
+ setTimeout(() => {
546
+ this.$emit("close");
547
+ }, 300);
548
+ });
549
+ },
550
+ doEvent(t) {
551
+ const e = `${this.openType}Details`;
552
+ this.$refs[e] && this.$refs[e].doEvent && this.$refs[e].doEvent(t);
553
+ },
554
+ ...f(["Logout", "dictTypeData"])
555
+ }
556
+ };
557
+ var N = function() {
558
+ var e = this, i = e._self._c;
559
+ return i("div", { staticClass: "gd-vf-details" }, [e.showPopup && e.openType === "popup" ? i("PopupDetails", { ref: "popupDetails", attrs: { record: e.record, query: e.query, modalAppendToBody: e.modalAppendToBody, appendToBody: e.appendToBody }, on: { ok: function(s) {
560
+ return e.$emit("ok");
561
+ }, beaseLoadComplete: function(s) {
562
+ return e.$emit("beaseLoadComplete");
563
+ }, closed: e.close } }) : e.openType === "view" ? i("ViewDetails", { ref: "viewDetails", attrs: { record: e.record, query: e.query }, on: { ok: function(s) {
564
+ return e.$emit("ok");
565
+ }, closed: e.close, onChangeBtn: (s) => e.$emit("changeBtn", s), beaseLoadComplete: function(s) {
566
+ return e.$emit("beaseLoadComplete");
567
+ } } }) : e.openType === "iframe" ? i("iframe", { style: e.istyle, attrs: { id: "iframe", height: e.hig, src: e.iframeUri, frameBorder: "0" } }) : e._e()], 1);
568
+ }, U = [], E = /* @__PURE__ */ a(
569
+ V,
570
+ N,
571
+ U,
572
+ !1,
573
+ null,
574
+ "127122b3",
575
+ null,
576
+ null
577
+ );
578
+ const c = E.exports;
579
+ c.install = function(t) {
580
+ t.component(c.name, c);
581
+ };
582
+ const P = {
583
+ props: {
584
+ record: {
585
+ type: String,
586
+ default: ""
587
+ },
588
+ query: {
589
+ type: Object,
590
+ default: () => {
591
+ }
592
+ },
593
+ modalAppendToBody: {
594
+ type: Boolean,
595
+ default: !0
596
+ },
597
+ appendToBody: {
598
+ type: Boolean,
599
+ default: !0
600
+ }
601
+ },
602
+ data() {
603
+ return {
604
+ modeType: "",
605
+ popupMode: "drawer",
606
+ fullscreen: !1,
607
+ confirmLoading: !1,
608
+ visible: !1,
609
+ width: "80%",
610
+ iframeUri: "",
611
+ sysViewButtons: []
612
+ };
613
+ },
614
+ components: {
615
+ ViewItem: () => Promise.resolve().then(() => v),
616
+ FormItem: () => Promise.resolve().then(() => $),
617
+ DetailsItem: () => Promise.resolve().then(() => w)
618
+ },
619
+ computed: {
620
+ urls() {
621
+ return this.iframeUri.indexOf("?") === -1 ? this.iframeUri : this.iframeUri.slice(0, this.iframeUri.indexOf("?"));
622
+ },
623
+ title() {
624
+ return "";
625
+ },
626
+ hig() {
627
+ return `${this.height - 24}px`;
628
+ },
629
+ istyle() {
630
+ return `width:100%;overflow:hidden;height:${this.hig};`;
631
+ },
632
+ height() {
633
+ return this.popupMode === "drawer" ? this.screenHeight - 48 : this.fullscreen ? this.screenHeight - 72 : this.screenHeight - 230;
634
+ },
635
+ ...l(["formMode", "screenHeight"])
636
+ },
637
+ methods: {
638
+ onChangeBtn(t) {
639
+ this.sysViewButtons = t;
640
+ },
641
+ init() {
642
+ const t = this.query.popup_wid ? this.query.popup_wid : "80%", e = this.query.popup_fullscreen ? this.query.popup_fullscreen : "";
643
+ this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.fullscreen = e === "true";
644
+ let i = this.query.popup_type ? this.query.popup_type : "drawer";
645
+ i === "followSystem" && (i = this.formMode), this.popupMode = i, this.modeType = this.query.mode_type ? this.query.mode_type : "form";
646
+ let s = this.query.redirect_uri ? decodeURIComponent(this.query.redirect_uri) : "";
647
+ this.iframeUri = s, console.log(this.iframeUri), this.visible = !0, this.query.open_type && this.query.open_type !== "popup" && (this.modeType = this.query.open_type), this.modeType === "iframe" && window.addEventListener("message", this.monitorIframe), this.$nextTick(() => {
648
+ const o = `${this.modeType}Item`;
649
+ this.$refs[o] && this.$refs[o].init();
650
+ });
651
+ },
652
+ toggleFullscreen() {
653
+ this.fullscreen = !this.fullscreen;
654
+ },
655
+ closed() {
656
+ this.modeType = "", this.fullscreen = !1, this.visible = !1, this.$emit("closed");
657
+ },
658
+ doEvent(t) {
659
+ if (this.modeType === "iframe") {
660
+ document.getElementById("gd-view-iframe").contentWindow.postMessage({ data: JSON.stringify(t), eventType: "btn-click" }, this.urls);
661
+ return;
662
+ }
663
+ const e = `${this.modeType}Item`;
664
+ this.$refs[e] && this.$refs[e].doEvent(t);
665
+ },
666
+ monitorIframe(t) {
667
+ if (t.data.eventType === "form-btn") {
668
+ this.onChangeBtn(t.data.data && L(t.data.data) ? JSON.parse(t.data.data) : []);
669
+ return;
670
+ }
671
+ if (t.data.eventType === "load-complete") {
672
+ this.beaseLoadComplete();
673
+ return;
674
+ }
675
+ t.data.eventType === "close-drawer" && this.closed();
676
+ },
677
+ beaseLoadComplete(t) {
678
+ console.log(this.query);
679
+ const e = this.query.complete_request ? this.query.complete_request : "";
680
+ if (e === "")
681
+ return;
682
+ const i = decodeURIComponent(e), s = i.indexOf("?") === -1 ? i : i.slice(0, i.indexOf("?")), o = n(i);
683
+ h(s, o);
684
+ }
685
+ },
686
+ beforeDestory() {
687
+ window.removeEventListener("message", this.monitorIframe);
688
+ }
689
+ };
690
+ var M = function() {
691
+ var e = this, i = e._self._c;
692
+ return i("div", [e.popupMode === "dialog" ? 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": e.appendToBody, "modal-append-to-body": e.modalAppendToBody, top: "80px", "show-close": !1 }, on: { "update:visible": function(s) {
693
+ e.visible = s;
694
+ }, closed: e.closed } }, [i("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, emitFun: !0, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen, close: e.closed }, slot: "title" }), e.visible ? i("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "30vh" } }, [e.modeType === "view" ? i("ViewItem", { ref: "viewItem", attrs: { query: e.query, height: e.height } }) : e.modeType === "form" ? i("FormItem", { ref: "formItem", attrs: { query: e.query, height: e.height }, on: { onChangeBtn: e.onChangeBtn, closed: e.closed, ok: function(s) {
695
+ return e.$emit("ok");
696
+ }, beaseLoadComplete: function(s) {
697
+ return e.$emit("beaseLoadComplete");
698
+ } } }) : e.modeType === "details" ? i("DetailsItem", { ref: "detailsItem", attrs: { query: e.query, height: e.height } }) : e.modeType === "iframe" ? i("iframe", { style: e.istyle, attrs: { id: "gd-view-iframe", height: e.hig, src: e.iframeUri, frameBorder: "0" } }) : e._e()], 1) : e._e()], 1) : i("el-drawer", { attrs: { visible: e.visible, "close-on-press-escape": !1, "append-to-body": e.appendToBody, "modal-append-to-body": e.modalAppendToBody, size: e.width, "custom-class": "gd-drawer-form", "show-close": !1 }, on: { "update:visible": function(s) {
699
+ e.visible = s;
700
+ } } }, [i("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, emitFun: !0, showFullscreen: !1, showClose: !0 }, on: { changeEvent: e.doEvent, close: e.closed }, slot: "title" }), e.visible ? i("div", { staticStyle: { height: "100%" } }, [e.modeType === "view" ? i("ViewItem", { ref: "viewItem", attrs: { query: e.query, height: e.height } }) : e.modeType === "form" ? i("FormItem", { ref: "formItem", attrs: { query: e.query, height: e.height }, on: { onChangeBtn: e.onChangeBtn, closed: e.closed, ok: function(s) {
701
+ return e.$emit("ok");
702
+ }, beaseLoadComplete: function(s) {
703
+ return e.$emit("beaseLoadComplete");
704
+ } } }) : e.modeType === "details" ? i("DetailsItem", { ref: "detailsItem", attrs: { query: e.query, height: e.height } }) : e.modeType === "iframe" ? i("iframe", { style: e.istyle, attrs: { id: "gd-view-iframe", height: e.hig, src: e.iframeUri, frameBorder: "0" } }) : e._e()], 1) : e._e()], 1)], 1);
705
+ }, j = [], A = /* @__PURE__ */ a(
706
+ P,
707
+ M,
708
+ j,
709
+ !1,
710
+ null,
711
+ "1aaea733",
712
+ null,
713
+ null
714
+ );
715
+ const z = A.exports, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
716
+ __proto__: null,
717
+ default: z
718
+ }, Symbol.toStringTag, { value: "Module" }));
719
+ const H = {
720
+ props: {
721
+ record: {
722
+ type: String,
723
+ default: ""
724
+ },
725
+ query: {
726
+ type: Object,
727
+ default: () => {
728
+ }
729
+ }
730
+ },
731
+ data() {
732
+ return {
733
+ modeType: ""
734
+ };
735
+ },
736
+ components: {
737
+ ViewItem: () => Promise.resolve().then(() => v),
738
+ FormItem: () => Promise.resolve().then(() => $),
739
+ DetailsItem: () => Promise.resolve().then(() => w)
740
+ },
741
+ computed: {
742
+ height() {
743
+ return this.screenHeight - 72;
744
+ },
745
+ ...l(["screenHeight"])
746
+ },
747
+ methods: {
748
+ init() {
749
+ this.modeType = this.query.mode_type ? this.query.mode_type : "form", this.visible = !0, this.$nextTick(() => {
750
+ const t = `${this.modeType}Item`;
751
+ this.$refs[t] && this.$refs[t].init();
752
+ });
753
+ },
754
+ doEvent(t) {
755
+ const e = `${this.modeType}Item`;
756
+ this.$refs[e] && this.$refs[e].doEvent && this.$refs[e].doEvent(t);
757
+ }
758
+ }
759
+ };
760
+ var K = function() {
761
+ var e = this, i = e._self._c;
762
+ return i("div", [e.modeType === "view" ? i("ViewItem", { ref: "viewItem", attrs: { query: e.query, height: e.height } }) : e.modeType === "form" ? i("FormItem", { ref: "formItem", attrs: { query: e.query, height: e.height, modeType: "component" }, on: { ok: function(s) {
763
+ return e.$emit("ok");
764
+ }, onChangeBtn: (s) => e.$emit("onChangeBtn", s), closed: function(s) {
765
+ return e.$emit("closed");
766
+ }, beaseLoadComplete: function(s) {
767
+ return e.$emit("beaseLoadComplete");
768
+ } } }) : e.modeType === "details" ? i("DetailsItem", { ref: "detailsItem", attrs: { query: e.query, height: e.height } }) : e._e()], 1);
769
+ }, Q = [], J = /* @__PURE__ */ a(
770
+ H,
771
+ K,
772
+ Q,
773
+ !1,
774
+ null,
775
+ "dd2e4515",
776
+ null,
777
+ null
778
+ );
779
+ const W = J.exports, X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
780
+ __proto__: null,
781
+ default: W
782
+ }, Symbol.toStringTag, { value: "Module" }));
783
+ const Y = {
784
+ props: {
785
+ height: {
786
+ type: Number,
787
+ default: 600
788
+ },
789
+ query: {
790
+ type: Object,
791
+ default: () => {
792
+ }
793
+ }
794
+ },
795
+ data() {
796
+ return {
797
+ record: {},
798
+ openMode: 1,
799
+ viewId: "",
800
+ tableId: "",
801
+ formId: "",
802
+ show: !1,
803
+ confirmLoading: !1
804
+ };
805
+ },
806
+ computed: {
807
+ table() {
808
+ const t = this.tableLists.filter((e) => e.id === this.tableId)[0];
809
+ return t || {};
810
+ },
811
+ getHeight() {
812
+ return this.height - 24;
813
+ },
814
+ componentItem() {
815
+ const t = this.$importViewFiles();
816
+ let e = `../views/main/${this.table.tablename}/index.vue`, i = t[e];
817
+ return i ? i.default : S;
818
+ },
819
+ ...l(["tableLists"])
820
+ },
821
+ methods: {
822
+ init() {
823
+ this.viewId = this.query.view_id ? Number(this.query.view_id) : "", this.tableId = this.query.table_id ? Number(this.query.table_id) : "", this.formId = this.query.form_id ? Number(this.query.form_id) : "", this.tableId !== "" && this.getAllTable().then((t) => {
824
+ this.record = {
825
+ options: {
826
+ table: this.table,
827
+ form: { id: this.formId },
828
+ view: { id: this.viewId },
829
+ viewWeights: "1"
830
+ }
831
+ }, this.$nextTick(() => {
832
+ setTimeout(() => {
833
+ this.show = !0;
834
+ }, 0);
835
+ });
836
+ });
837
+ },
838
+ getAllTable() {
839
+ return this.tableLists.length > 0 ? new Promise((t) => {
840
+ t();
841
+ }) : _({
842
+ busName: ""
843
+ }).then((t) => (t.success && this.TableLists(t.data), t.data));
844
+ }
845
+ }
846
+ };
847
+ var Z = function() {
848
+ var e = this, i = e._self._c;
849
+ return i("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "300px" } }, [e.show ? i(e.componentItem, { ref: "lookuptable", tag: "component", attrs: { record: e.record, height: e.getHeight, develop: 2, openMode: e.openMode } }) : e._e()], 1);
850
+ }, ee = [], te = /* @__PURE__ */ a(
851
+ Y,
852
+ Z,
853
+ ee,
854
+ !1,
855
+ null,
856
+ "5b928d29",
857
+ null,
858
+ null
859
+ );
860
+ const ie = te.exports, v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
861
+ __proto__: null,
862
+ default: ie
863
+ }, Symbol.toStringTag, { value: "Module" }));
864
+ const se = {
865
+ props: {
866
+ query: {
867
+ type: Object,
868
+ default: () => {
869
+ }
870
+ },
871
+ modeType: {
872
+ type: String,
873
+ default: "component"
874
+ }
875
+ },
876
+ data() {
877
+ return {
878
+ record: {},
879
+ openMode: 1,
880
+ tableId: "",
881
+ formId: "",
882
+ show: !1,
883
+ formData: {},
884
+ fieldData: {},
885
+ sysViewButtons: [],
886
+ confirmLoading: !1
887
+ };
888
+ },
889
+ computed: {
890
+ table() {
891
+ const t = this.tableLists.filter((e) => e.id === this.tableId)[0];
892
+ return t || {};
893
+ },
894
+ getHeight() {
895
+ return this.height - 24;
896
+ },
897
+ componentItem() {
898
+ const t = this.$importViewFiles();
899
+ let e = `../views/main/${this.table.tablename}/editForm.vue`, i = t[e];
900
+ return i ? i.default : b;
901
+ },
902
+ ...l(["tableLists"])
903
+ },
904
+ methods: {
905
+ beaseLoadComplete(t) {
906
+ console.log(this.query), this.$emit("beaseLoadComplete");
907
+ const e = this.query.complete_request ? this.query.complete_request : "";
908
+ if (e === "")
909
+ return;
910
+ const i = decodeURIComponent(e), s = i.indexOf("?") === -1 ? i : i.slice(0, i.indexOf("?")), o = n(i);
911
+ h(s, o);
912
+ },
913
+ onChangeBtn(t) {
914
+ this.sysViewButtons = t, this.$emit("onChangeBtn", t);
915
+ },
916
+ init() {
917
+ this.confirmLoading = !0, this.tableId = this.query.table_id ? Number(this.query.table_id) : "", this.formId = this.query.form_id ? Number(this.query.form_id) : "", this.id = this.query.id ? Number(this.query.id) : "", this.tableId !== "" && Promise.all([this.sysFormDetails(), this.getLoadData(), this.getAllTable()]).then((t) => {
918
+ this.record = {
919
+ options: {
920
+ table: this.table,
921
+ form: { id: this.formId }
922
+ }
923
+ }, this.show = !0, this.confirmLoading = !1, this.$nextTick(() => {
924
+ setTimeout(() => {
925
+ this.$refs.editForm && this.$refs.editForm.setFormRecord(this.formData).then(() => {
926
+ this.$refs.editForm.open({ id: this.id, title: "" });
927
+ });
928
+ }, 0);
929
+ });
930
+ });
931
+ },
932
+ getLoadData() {
933
+ return g({
934
+ codeGenId: this.tableId
935
+ }).then((t) => (this.fieldData = t.data, t.data));
936
+ },
937
+ sysFormDetails() {
938
+ return y({ tableId: this.tableId }).then((t) => {
939
+ if (t.code === 200) {
940
+ const e = t.data.formlist.filter((i) => i.id === this.formId)[0];
941
+ console.log(e), this.formData = e;
942
+ }
943
+ return t.data;
944
+ });
945
+ },
946
+ getAllTable() {
947
+ return this.tableLists.length > 0 ? new Promise((t) => {
948
+ t();
949
+ }) : _({
950
+ busName: ""
951
+ }).then((t) => (t.success && this.TableLists(t.data), t.data));
952
+ },
953
+ doEvent(t) {
954
+ this.$refs.editForm && this.$refs.editForm.doEvent(t);
955
+ },
956
+ closed() {
957
+ console.log("\u5173\u95ED"), this.$emit("closed");
958
+ },
959
+ ...f(["TableLists"])
960
+ }
961
+ };
962
+ var oe = function() {
963
+ var e = this, i = e._self._c;
964
+ return i("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "300px", height: "100%" } }, [e.show ? i(e.componentItem, { ref: "editForm", tag: "component", attrs: { recordRelation: e.record, openMode: e.openMode, tableData: e.table, fieldData: e.fieldData, modeType: e.modeType }, on: { onChangeBtn: e.onChangeBtn, closed: e.closed, ok: function(s) {
965
+ return e.$emit("ok");
966
+ }, onLoadCompleted: e.beaseLoadComplete } }) : e._e()], 1);
967
+ }, re = [], ne = /* @__PURE__ */ a(
968
+ se,
969
+ oe,
970
+ re,
971
+ !1,
972
+ null,
973
+ "b8e777c7",
974
+ null,
975
+ null
976
+ );
977
+ const ae = ne.exports, $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
978
+ __proto__: null,
979
+ default: ae
980
+ }, Symbol.toStringTag, { value: "Module" }));
981
+ const le = {
982
+ props: {
983
+ query: {
984
+ type: Object,
985
+ default: () => {
986
+ }
987
+ }
988
+ },
989
+ data() {
990
+ return {
991
+ dictCode: "messagetype",
992
+ messageType: "",
993
+ componentItem: ""
994
+ };
995
+ },
996
+ computed: {
997
+ componentForm() {
998
+ return this.componentItem === "GdNoticeDetails" ? x : "";
999
+ }
1000
+ },
1001
+ methods: {
1002
+ onLoadCompleted() {
1003
+ const t = this.query.complete_request ? this.query.complete_request : "";
1004
+ if (t === "")
1005
+ return;
1006
+ const e = decodeURIComponent(t), i = e.indexOf("?") === -1 ? e : e.slice(0, e.indexOf("?")), s = n(e);
1007
+ h(i, s);
1008
+ },
1009
+ init() {
1010
+ if (this.messageType = this.query.message_type ? this.query.message_type : "", this.messageType === "")
1011
+ return;
1012
+ const e = this.getDictionary(this.dictCode).filter((s) => s.code === this.messageType)[0];
1013
+ if (!e)
1014
+ return;
1015
+ const i = this.query.id ? this.query.id : "";
1016
+ this.componentItem = e.remark, this.$nextTick(() => {
1017
+ setTimeout(() => {
1018
+ this.$refs.editForm && this.$refs.editForm.open({ id: i });
1019
+ }, 0);
1020
+ });
1021
+ },
1022
+ getDictionary(t) {
1023
+ return this.$options.filters.dictData(t);
1024
+ }
1025
+ }
1026
+ };
1027
+ var de = function() {
1028
+ var e = this, i = e._self._c;
1029
+ return e.componentForm ? i(e.componentForm, { ref: "editForm", tag: "component", attrs: { modeType: "component" }, on: { onLoadCompleted: e.onLoadCompleted } }) : e._e();
1030
+ }, he = [], ce = /* @__PURE__ */ a(
1031
+ le,
1032
+ de,
1033
+ he,
1034
+ !1,
1035
+ null,
1036
+ "2e905682",
1037
+ null,
1038
+ null
1039
+ );
1040
+ const ue = ce.exports, w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1041
+ __proto__: null,
1042
+ default: ue
1043
+ }, Symbol.toStringTag, { value: "Module" }));
1044
+ export {
1045
+ c as G,
1046
+ S as V,
1047
+ F as v
1048
+ };