gds-plus-design-vue 1.2.5 → 1.2.7

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 (368) hide show
  1. package/lib/approvalModel.a26e8ff6.mjs +340 -0
  2. package/lib/approvalModel.cfd81971.js +1 -0
  3. package/lib/btnFunctionName.9aabfed0.js +1 -0
  4. package/lib/btnFunctionName.d08627cb.mjs +254 -0
  5. package/lib/btnRelation.8e608261.mjs +156 -0
  6. package/lib/btnRelation.cb3dc022.js +1 -0
  7. package/lib/businessRules.754cc398.mjs +539 -0
  8. package/lib/businessRules.f41f7035.js +1 -0
  9. package/lib/buttonRule.4483314f.mjs +396 -0
  10. package/lib/buttonRule.645de1d3.js +1 -0
  11. package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
  12. package/lib/chartDisplayRules.fedfefe8.js +1 -0
  13. package/lib/components.chartbi.470b96af.mjs +1798 -0
  14. package/lib/components.chartbi.e9459775.js +8 -0
  15. package/lib/components.coloreditor.affa0400.mjs +1505 -0
  16. package/lib/components.coloreditor.dbec8da6.js +6 -0
  17. package/lib/components.dataassign.39281072.mjs +147 -0
  18. package/lib/components.dataassign.b6a1bffb.js +1 -0
  19. package/lib/components.echarts.95ffc3b3.mjs +811 -0
  20. package/lib/components.echarts.d09e9850.js +4 -0
  21. package/lib/components.exception.11315db5.js +1 -0
  22. package/lib/components.exception.facf9df9.mjs +61 -0
  23. package/lib/components.form.56ea8f98.js +41 -0
  24. package/lib/components.form.a7b3ea37.mjs +7813 -0
  25. package/lib/components.globalheader.0a7ce959.js +1 -0
  26. package/lib/components.globalheader.4a5f7225.mjs +54 -0
  27. package/lib/components.iconselector.0c03cfc7.js +1 -0
  28. package/lib/components.iconselector.251c29b9.mjs +1169 -0
  29. package/lib/components.imgpreview.5546e541.mjs +213 -0
  30. package/lib/components.imgpreview.706a89f0.js +1 -0
  31. package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
  32. package/lib/components.lunccalendar.fe7db238.js +1 -0
  33. package/lib/components.middleware.01601349.js +1 -0
  34. package/lib/components.middleware.f5f4ac0f.mjs +148 -0
  35. package/lib/components.modaltitle.5ded43f9.mjs +127 -0
  36. package/lib/components.modaltitle.cc9ba616.js +1 -0
  37. package/lib/components.multitab.0f9da9f3.mjs +140 -0
  38. package/lib/components.multitab.726cff2f.js +1 -0
  39. package/lib/components.selecttree.1a71c963.mjs +170 -0
  40. package/lib/components.selecttree.2fadffca.js +1 -0
  41. package/lib/components.settingdrawer.1af86231.js +1 -0
  42. package/lib/components.settingdrawer.adc262cf.mjs +237 -0
  43. package/lib/components.sidemenu.03442146.mjs +277 -0
  44. package/lib/components.sidemenu.5107c7e3.js +1 -0
  45. package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
  46. package/lib/components.sidenavmenu.ef33de39.js +1 -0
  47. package/lib/components.statuschange.805a751b.mjs +116 -0
  48. package/lib/components.statuschange.83646c5d.js +1 -0
  49. package/lib/components.table.61eb5d81.js +8 -0
  50. package/lib/components.table.c986e58d.mjs +4650 -0
  51. package/lib/components.tableumy.35b465f9.mjs +453 -0
  52. package/lib/components.tableumy.eba43953.js +1 -0
  53. package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
  54. package/lib/components.tablevirtual.6af04c44.js +1 -0
  55. package/lib/components.teamsharing.68865424.js +1 -0
  56. package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
  57. package/lib/components.tooltip.ccb1717d.mjs +86 -0
  58. package/lib/components.tooltip.e2e21e66.js +1 -0
  59. package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
  60. package/lib/components.uploadfile.e93b500d.js +1 -0
  61. package/lib/components.uploadimg.3804913e.js +1 -0
  62. package/lib/components.uploadimg.e49707d9.mjs +192 -0
  63. package/lib/components.verificationcode.5a9c0220.js +1 -0
  64. package/lib/components.verificationcode.ead74922.mjs +71 -0
  65. package/lib/components.viewformdetails.3c1596ad.js +1 -0
  66. package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
  67. package/lib/components.viewloading.5b178ec5.js +1 -0
  68. package/lib/components.viewloading.cb7917b7.mjs +99 -0
  69. package/lib/components.watermark.849409ca.js +2 -0
  70. package/lib/components.watermark.a2521d0c.mjs +53 -0
  71. package/lib/components.xlsxexport.3405a00b.js +1 -0
  72. package/lib/components.xlsxexport.871f87d1.mjs +263 -0
  73. package/lib/components.xlsximport.85ce77cf.mjs +922 -0
  74. package/lib/components.xlsximport.e3bcb07d.js +1 -0
  75. package/lib/copy.b09a6d38.js +1 -0
  76. package/lib/copy.c0a2f16d.mjs +572 -0
  77. package/lib/dialogLayout.059ee256.mjs +138 -0
  78. package/lib/dialogLayout.cedf2865.js +1 -0
  79. package/lib/drawerContainer.38d7b530.mjs +154 -0
  80. package/lib/drawerContainer.ea7722d7.js +1 -0
  81. package/lib/drawerLayout.454e4921.js +1 -0
  82. package/lib/drawerLayout.fad843ee.mjs +119 -0
  83. package/lib/editForm.c199538f.mjs +434 -0
  84. package/lib/editForm.f9dc93ef.js +1 -0
  85. package/lib/flow.designer.4c83c0d3.js +1 -0
  86. package/lib/flow.designer.9442a995.mjs +7673 -0
  87. package/lib/flow.list.4a31969e.mjs +3032 -0
  88. package/lib/flow.list.f41ee531.js +1 -0
  89. package/lib/form.build.c38bf362.js +1 -0
  90. package/lib/form.build.fb9f905b.mjs +259 -0
  91. package/lib/form.designer.build.3fdf8007.js +1 -0
  92. package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
  93. package/lib/formFiled.624b8dd3.js +1 -0
  94. package/lib/formFiled.94fb1dce.mjs +498 -0
  95. package/lib/gd-initial.js +1 -35
  96. package/lib/gd-initial.mjs +233 -91033
  97. package/lib/http.appmanage.9b22ff82.mjs +50 -0
  98. package/lib/http.appmanage.b998818f.js +1 -0
  99. package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
  100. package/lib/http.codegeneratemanage.e3db2f09.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.2583b5ae.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.d8fe18dc.mjs +50 -0
  111. package/lib/http.duplicatechecking.9b79ce21.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.6fdfc693.js +1 -0
  116. package/lib/http.filedocument.d3a4afd9.mjs +293 -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.1af1e119.mjs +517 -0
  128. package/lib/http.main.2f8a6936.js +1 -0
  129. package/lib/http.menumanage.09fffb7d.mjs +66 -0
  130. package/lib/http.menumanage.6d740f2c.js +1 -0
  131. package/lib/http.message.1d68e914.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.2cdb23b8.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.0b1df8d5.mjs +58 -0
  140. package/lib/http.orgmanage.5162fd7a.js +1 -0
  141. package/lib/http.pluginmanage.54720675.mjs +82 -0
  142. package/lib/http.pluginmanage.6a876040.js +1 -0
  143. package/lib/http.posmanage.c0f80aec.js +1 -0
  144. package/lib/http.posmanage.ee6a7613.mjs +34 -0
  145. package/lib/http.promptmanagement.d115c4b0.js +1 -0
  146. package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
  147. package/lib/http.rolemanage.4d1101dd.js +1 -0
  148. package/lib/http.rolemanage.da5c40e9.mjs +146 -0
  149. package/lib/http.solution.b10d9197.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.176d3d06.mjs +34 -0
  153. package/lib/http.sysapps.469d47f7.js +1 -0
  154. package/lib/http.sysapps.932ba43b.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.7adf4910.mjs +362 -0
  158. package/lib/http.tabledevelopment.a880bb76.js +1 -0
  159. package/lib/http.team.a9c609d5.mjs +90 -0
  160. package/lib/http.team.e45400d5.js +1 -0
  161. package/lib/http.timersmanage.6e894942.js +1 -0
  162. package/lib/http.timersmanage.c79afb66.mjs +146 -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.f8694b51.mjs +104 -0
  167. package/lib/http.useraffiliation.af2013ad.js +1 -0
  168. package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
  169. package/lib/http.usermanage.6dcbc7de.js +1 -0
  170. package/lib/http.usermanage.f5491144.mjs +219 -0
  171. package/lib/http.webresource.1a1a768f.mjs +50 -0
  172. package/lib/http.webresource.7c01b9cd.js +1 -0
  173. package/lib/index.3fa2dc66.mjs +40154 -0
  174. package/lib/index.fe757a98.js +8 -0
  175. package/lib/layoutBlocks.14c77a02.js +1 -0
  176. package/lib/layoutBlocks.5d71a03b.mjs +401 -0
  177. package/lib/layouts.a662f681.js +2 -0
  178. package/lib/layouts.ec4f20a2.mjs +376 -0
  179. package/lib/main.092a2ac8.js +1 -0
  180. package/lib/{main.c59fc1e8.mjs → main.15237e71.mjs} +12 -10
  181. package/lib/main.29769f01.js +1 -0
  182. package/lib/main.401059c6.mjs +189 -0
  183. package/lib/main.447be615.js +1 -0
  184. package/lib/main.4e507685.mjs +231 -0
  185. package/lib/main.72cafa63.mjs +540 -0
  186. package/lib/{main.4e325110.mjs → main.73f22d9e.mjs} +9 -8
  187. package/lib/main.7601bd3d.mjs +166 -0
  188. package/lib/main.79199ac2.js +1 -0
  189. package/lib/main.821d081b.js +1 -0
  190. package/lib/main.8627466a.mjs +537 -0
  191. package/lib/{main.955f770e.mjs → main.88e9be9d.mjs} +4 -4
  192. package/lib/main.8e6f6cba.mjs +323 -0
  193. package/lib/main.a9a54af9.js +1 -0
  194. package/lib/main.e033a376.js +1 -0
  195. package/lib/main.e2e4ba74.js +1 -0
  196. package/lib/{main.be62e9a4.mjs → main.e79d9e56.mjs} +113 -188
  197. package/lib/main.ea3a04f4.js +1 -0
  198. package/lib/main.f44d8279.js +1 -0
  199. package/lib/messages.5f54a62e.js +9 -0
  200. package/lib/{messages.7e418640.mjs → messages.d4354532.mjs} +4321 -5268
  201. package/lib/packages.filedocument.8418d852.mjs +4039 -0
  202. package/lib/packages.filedocument.9b8eda0d.js +1 -0
  203. package/lib/page.build.4d28df9a.js +12 -0
  204. package/lib/page.build.78cc7396.mjs +3020 -0
  205. package/lib/personal.echarts.940f1cc9.mjs +696 -0
  206. package/lib/personal.echarts.b5a7f574.js +1 -0
  207. package/lib/result.0161b0e0.js +1 -0
  208. package/lib/result.5a9330d7.mjs +627 -0
  209. package/lib/router.config.79a98ab8.mjs +3105 -0
  210. package/lib/router.config.7fd04c30.js +1 -0
  211. package/lib/solution.application.3ae7c0c5.js +1 -0
  212. package/lib/solution.application.fdc15ffc.mjs +548 -0
  213. package/lib/solution.applicationmenu.67aba620.js +1 -0
  214. package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
  215. package/lib/solution.approvalflow.81b7cfb7.js +1 -0
  216. package/lib/solution.approvalflow.a541adcc.mjs +436 -0
  217. package/lib/solution.dict.addbce33.mjs +769 -0
  218. package/lib/solution.dict.f1c9bae6.js +1 -0
  219. package/lib/solution.menu.2033fa37.mjs +5834 -0
  220. package/lib/solution.menu.6512047f.js +1 -0
  221. package/lib/solution.plugin.7094dbfd.js +1 -0
  222. package/lib/solution.plugin.d8f057cb.mjs +347 -0
  223. package/lib/solution.processflow.0adf4f55.js +1 -0
  224. package/lib/solution.processflow.a779bd58.mjs +392 -0
  225. package/lib/solution.role.d35cb00d.js +1 -0
  226. package/lib/solution.role.d9a4b25a.mjs +456 -0
  227. package/lib/solution.webresources.e1421655.mjs +379 -0
  228. package/lib/solution.webresources.e817757c.js +1 -0
  229. package/lib/solution.workflow.59552b8c.mjs +395 -0
  230. package/lib/solution.workflow.985e1f4d.js +1 -0
  231. package/lib/store.config.556bd56b.js +1 -0
  232. package/lib/store.config.5e5cb48a.mjs +547 -0
  233. package/lib/style.css +3 -3
  234. package/lib/system.account.1b281679.js +216 -0
  235. package/lib/system.account.96d5bc17.mjs +2093 -0
  236. package/lib/system.config.0ff45e62.js +1 -0
  237. package/lib/{system.config.f0d2d130.mjs → system.config.35b13003.mjs} +7 -6
  238. package/lib/system.datasource.4243937d.js +1 -0
  239. package/lib/{system.datasource.61ff56ec.mjs → system.datasource.7f582bef.mjs} +15 -64
  240. package/lib/{system.dict.a817cf68.mjs → system.dict.3697546d.mjs} +269 -344
  241. package/lib/system.dict.8e4fe6b0.js +1 -0
  242. package/lib/system.document.69e534a6.js +1 -0
  243. package/lib/system.document.8e4dbe5e.mjs +667 -0
  244. package/lib/system.duplicatechecking.1083eb1e.js +1 -0
  245. package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
  246. package/lib/system.email.06bb7cc1.mjs +133 -0
  247. package/lib/system.email.41036a31.js +1 -0
  248. package/lib/system.fieldsecurity.3ea880d8.js +1 -0
  249. package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
  250. package/lib/{system.file.1930d109.mjs → system.file.8ccc4569.mjs} +84 -151
  251. package/lib/system.file.b8e4e6a1.js +1 -0
  252. package/lib/system.log.14c22a7a.js +1 -0
  253. package/lib/{system.log.61d303bd.mjs → system.log.aad4ff54.mjs} +31 -93
  254. package/lib/system.machine.379beacb.js +1 -0
  255. package/lib/{system.machine.ed69ec93.mjs → system.machine.c47be0cc.mjs} +5 -25
  256. package/lib/{system.notice.bd18554e.mjs → system.notice.dc1b67cc.mjs} +1075 -1263
  257. package/lib/system.notice.fb151c45.js +1 -0
  258. package/lib/system.noticereceived.3a29d891.js +1 -0
  259. package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.e75bf358.mjs} +19 -27
  260. package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
  261. package/lib/system.onlineuser.fc26aff9.js +1 -0
  262. package/lib/system.org.b6f826e8.js +1 -0
  263. package/lib/{system.org.6e858bf3.mjs → system.org.dd710a91.mjs} +3 -3
  264. package/lib/system.permissions.75406743.mjs +972 -0
  265. package/lib/system.permissions.97f68887.js +1 -0
  266. package/lib/system.plugin.3fcf7b0b.js +1 -0
  267. package/lib/{system.plugin.a1f1c194.mjs → system.plugin.4b80cd95.mjs} +503 -552
  268. package/lib/system.pos.5a1663d8.js +1 -0
  269. package/lib/{system.pos.eb8fd7dd.mjs → system.pos.a3bafaaa.mjs} +31 -62
  270. package/lib/system.promptmanagement.53c301a3.js +1 -0
  271. package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
  272. package/lib/{system.role.d2195303.mjs → system.role.9edb5922.mjs} +601 -523
  273. package/lib/system.role.e164f059.js +1 -0
  274. package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
  275. package/lib/system.sumberrules.5e9cd262.js +1 -0
  276. package/lib/system.team.3e605266.js +1 -0
  277. package/lib/system.team.bb1fb40e.mjs +452 -0
  278. package/lib/system.teammembers.a098883b.js +1 -0
  279. package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.b8e53d99.mjs} +257 -199
  280. package/lib/system.timers.2f884e41.js +38 -0
  281. package/lib/{system.timers.4a3dd57d.mjs → system.timers.551c4a4b.mjs} +2202 -2278
  282. package/lib/system.translation.6e99c852.js +1 -0
  283. package/lib/{system.translation.d9488c23.mjs → system.translation.c2c1f40c.mjs} +437 -431
  284. package/lib/{system.user.6874aa87.mjs → system.user.b99911de.mjs} +1082 -1025
  285. package/lib/system.user.dffc2543.js +14 -0
  286. package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
  287. package/lib/system.useraffiliation.f8b33def.js +1 -0
  288. package/lib/system.webresource.1d3ed352.js +1 -0
  289. package/lib/{system.webresource.204911b7.mjs → system.webresource.8a8d856b.mjs} +177 -219
  290. package/lib/{system.welcome.79e15015.mjs → system.welcome.573a76db.mjs} +10 -3
  291. package/lib/system.welcome.eedf1db2.js +1 -0
  292. package/lib/tableDescriptions.923c4ef1.mjs +80 -0
  293. package/lib/tableDescriptions.b12679b0.js +1 -0
  294. package/lib/tcheckboxs.887d733c.mjs +52 -0
  295. package/lib/tcheckboxs.fe7e574a.js +1 -0
  296. package/lib/tcurrency.10ac9aa7.mjs +85 -0
  297. package/lib/tcurrency.20e959c0.js +1 -0
  298. package/lib/tdatepicker.54036bba.js +1 -0
  299. package/lib/tdatepicker.a08ad382.mjs +52 -0
  300. package/lib/tdictSwitch.274e9f86.js +1 -0
  301. package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
  302. package/lib/tfile.5c897827.js +1 -0
  303. package/lib/tfile.f63b73b9.mjs +62 -0
  304. package/lib/tparticipants.4698962b.mjs +56 -0
  305. package/lib/tparticipants.b6fb4545.js +1 -0
  306. package/lib/translation.mains.5cfc7a2f.js +1 -0
  307. package/lib/translation.mains.e6cb610b.mjs +383 -0
  308. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  309. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  310. package/lib/utils.echarts.js.461a74e7.js +54 -0
  311. package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
  312. package/lib/utils.mixins.js.750ca50e.js +1 -0
  313. package/lib/utils.mixins.js.be01e599.mjs +41 -0
  314. package/lib/utils.plug.js.9313aead.mjs +31 -0
  315. package/lib/utils.plug.js.f62510ce.js +1 -0
  316. package/lib/utils.util.js.885de913.mjs +439 -0
  317. package/lib/utils.util.js.c0ba699b.js +1 -0
  318. package/lib/view.build.051553d8.mjs +1578 -0
  319. package/lib/view.build.9af3087b.js +1 -0
  320. package/lib/viewList.209956c3.js +1 -0
  321. package/lib/viewList.c05c92be.mjs +318 -0
  322. package/lib/viewTree.0cd9f1a2.js +1 -0
  323. package/lib/viewTree.c5290360.mjs +409 -0
  324. package/locale/en_US.js +96 -29
  325. package/locale/id_ID.js +80 -13
  326. package/locale/vi_VN.js +2015 -1948
  327. package/locale/zh_CN.js +100 -33
  328. package/package.json +106 -105
  329. package/lib/chartbi.b5b6fdab.js +0 -60
  330. package/lib/chartbi.b6818e8e.mjs +0 -27604
  331. package/lib/main.6713b76c.js +0 -1
  332. package/lib/main.a28f67df.js +0 -1
  333. package/lib/main.b4a303dc.js +0 -1
  334. package/lib/main.f3ae0933.js +0 -1
  335. package/lib/messages.1346558e.js +0 -9
  336. package/lib/system.account.64fbdaeb.mjs +0 -2552
  337. package/lib/system.account.7c43a95e.js +0 -216
  338. package/lib/system.config.93d6cb7d.js +0 -1
  339. package/lib/system.datasource.4bb39222.js +0 -1
  340. package/lib/system.dict.5a2e60fe.js +0 -1
  341. package/lib/system.duplicatechecking.65b77e64.js +0 -1
  342. package/lib/system.duplicatechecking.751664ba.mjs +0 -2142
  343. package/lib/system.email.2f53252e.mjs +0 -7432
  344. package/lib/system.email.fec5ae26.js +0 -41
  345. package/lib/system.fieldsecurity.920adca4.js +0 -1
  346. package/lib/system.file.5a9a5e0e.js +0 -1
  347. package/lib/system.log.b309c0e0.js +0 -1
  348. package/lib/system.machine.9368e508.js +0 -1
  349. package/lib/system.notice.ff62c06a.js +0 -1
  350. package/lib/system.noticereceived.9550818b.js +0 -1
  351. package/lib/system.onlineuser.6cf4fe24.js +0 -1
  352. package/lib/system.org.0c67131d.js +0 -1
  353. package/lib/system.permissions.af548a3b.js +0 -9
  354. package/lib/system.permissions.cc5ac7ac.mjs +0 -212
  355. package/lib/system.plugin.83d03fb2.js +0 -1
  356. package/lib/system.pos.eae2051e.js +0 -1
  357. package/lib/system.promptmanagement.04501417.js +0 -1
  358. package/lib/system.role.e623c50b.js +0 -1
  359. package/lib/system.sumberrules.a01e1805.js +0 -1
  360. package/lib/system.team.0cebcde7.js +0 -1
  361. package/lib/system.team.27a6d5d5.mjs +0 -1000
  362. package/lib/system.teammembers.b67f003f.js +0 -1
  363. package/lib/system.timers.b27fcb6d.js +0 -38
  364. package/lib/system.translation.d2c982ed.js +0 -1
  365. package/lib/system.user.0664c21c.js +0 -14
  366. package/lib/system.useraffiliation.6b7a1612.js +0 -1
  367. package/lib/system.webresource.5de18052.js +0 -1
  368. package/lib/system.welcome.ec7aa744.js +0 -1
@@ -1,216 +0,0 @@
1
- "use strict";const M=require("./chartbi.b5b6fdab.js"),q=require("vue"),R=require("./messages.1346558e.js"),Z=r=>r&&typeof r=="object"&&"default"in r?r:{default:r},J=Z(q);function K(r){return window.axios({url:"/login",method:"post",data:r})}function Q(r){return window.axios({url:"/logout",method:"get",params:r})}function ee(r){return window.axios({url:"/getLoginUser",method:"get",params:r})}function te(r){return window.axios({url:"/sysBookmark/page",method:"post",data:r})}function ne(r){return window.axios({url:"/sysBookmark/delete",method:"post",data:r})}function oe(r){return window.axios({url:"/sysBookmark/add",method:"post",data:r})}function re(r){return window.axios({url:"/getLoginUser2",method:"get",params:r})}function se(r){return window.axios({url:"/OAuth2/authorize2",method:"post",data:r})}function ie(r){return window.axios({url:"/OAuth2/login",method:"post",data:r})}function ae(r){return window.axios({url:"/sysUser/page",method:"get",params:r})}function ce(r){return window.axios({url:"/sysUser/add",method:"post",data:r})}function le(r){return window.axios({url:"/sysUser/edit",method:"post",data:r})}function ue(r){return window.axios({url:"/sysUser/ownRole",method:"get",params:r})}function de(r){return window.axios({url:"/sysUser/changeRole",method:"post",data:r})}function he(r){return window.axios({url:"/sysUser/changeStatus",method:"post",data:r})}function pe(r){return window.axios({url:"/sysUser/resetPwd",method:"post",data:r})}function ge(r){return window.axios({url:"/sysUser/selector",method:"get",params:r})}function fe(r){return window.axios({url:"/sysUser/updateAvatar",method:"post",data:r})}function me(r){return window.axios({url:"/sysUser/updateInfo",method:"post",data:r})}function ve(r){return window.axios({url:"/sysUser/export",method:"get",data:r,responseType:"blob"})}function we(r){return window.axios({url:"/sysUser/import",method:"post",data:r})}function ye(r){return window.axios({url:"/sysUser/updateConfigTheme",method:"post",data:r})}function Y(r){return window.axios({url:"/sysConfig/GetPasswordRules",method:"get",params:r})}function z(r){return window.axios({url:"/sysUser/updatePwdByAccount",method:"post",data:r})}function xe(r){return window.axios({url:"/sysUser/resetPwdByAccount",method:"post",data:r})}function N(r){return window.axios({url:"/sysConfig/GetConfigInfoByCode",method:"get",params:r})}function Ce(r){return window.axios({url:"/sysUser/ApplyResetPassword",method:"post",data:r})}function be(r){return window.axios({url:"/sysUserPRC/CheckPRCValidation",method:"post",data:r})}function _e(r){return window.axios({url:"/wechatwork/LoginByWeChatWork",method:"get",params:r})}function $e(r){return window.axios({url:"/wechatwork/BindWechatWorkAccount",method:"get",params:r})}function Ie(r){return window.axios({url:"/wechatwork/BindWechatWorkAccountByCode",method:"get",params:r})}function D(r){return window.axios({url:"/sysConfig/GetConfigsByCode",method:"get",params:r})}function Se(r){return window.axios({url:"/sysUser/ChangeUserBUJob",method:"post",data:r})}function ke(r){return window.axios({url:"/getUserListByRoleId",method:"get",params:r})}function Ae(r){return window.axios({url:"/bindUsersToRole",method:"post",data:r})}function Le(r){return window.axios({url:"/unbindUsersFromRole",method:"post",data:r})}function Te(r){return window.axios({url:"/sysApp/list",method:"get",params:r})}function Ee(r){return window.axios({url:"/sysApp/listByAppsId",method:"get",params:r})}function Oe(r){return window.axios({url:"/sysApp/add",method:"post",data:r})}function Me(r){return window.axios({url:"/sysApp/edit",method:"post",data:r})}function Ue(r){return window.axios({url:"/sysApp/delete",method:"post",data:r})}function We(r){return window.axios({url:"/sysApp/changeStatus",method:"post",data:r})}const F=[{key:"gd.theme.twilight",color:"#F5222D"},{key:"gd.theme.volcano",color:"#FA541C"},{key:"gd.theme.nightfall",color:"#FAAD14"},{key:"gd.theme.mingQing",color:"#13C2C2"},{key:"gd.theme.auroragreen",color:"#52C41A"},{key:"gd.theme.dawnBlue",color:"#1890FF"},{key:"gd.theme.soypurple",color:"#722ED1"}];const Pe={props:{keepAlive:{type:Boolean,default:!0},height:{type:Number,default:0}},name:"GdAccountSettings",data(){return{mode:"inline",openKeys:[],selectedKeys:[],activeIndex:"/account/settings/base",preview:{},option:{img:"/avatar2.jpg",info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1]},pageTitle:""}},components:{},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.1)},style(){return this.crumbsState?"margin:0 4px 4px;height: 100%;":"margin: 4px;height: 100%;"},getHeight(){return"overflow:auto;height:"+(this.screenHeight-24-20-10-5)+"px;"},getTitle(){let r="",e=this.$route.meta.title;return e==="\u57FA\u672C\u8BBE\u7F6E"?r="basicSettings":e==="\u5B89\u5168\u8BBE\u7F6E"?r="securitySetting":e==="\u4E2A\u6027\u5316\u8BBE\u7F6E"?r="personalization":e==="\u65B0\u6D88\u606F\u901A\u77E5"?r="notify":e==="\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"&&(r="bindenterpriseWechat"),r===""?e:this.$i18nt("gd.account."+r)},...M.mapGetters(["userInfo","screenHeight","primaryColor","multiTab"])},mounted(){this.updateMenu()},methods:{onOpenChange(r,e){this.openKeys=openKeys},updateMenu(){const r=this.$route.matched.concat();this.activeIndex=r.pop().path},clickWx(r,e){const o=this.$route.matched.concat();this.activeIndex=o.pop().path},fadeColor(r,e){let o=parseInt(r.substring(1,3),16),a=parseInt(r.substring(3,5),16),d=parseInt(r.substring(5,7),16);return`rgba(${o},${a},${d},${e})`}},watch:{$route(r){this.updateMenu()}}};var He=function(){var e=this,o=e._self._c;return o("div",{staticClass:"page-header-index-wide",style:e.style},[o("el-card",{style:e.getHeight,attrs:{bordered:!1,bodyStyle:{padding:"16px 0",height:e.getHeight+"px"}}},[o("div",{staticClass:"account-settings-info-main"},[o("div",{staticClass:"account-settings-info-left",style:{"--dilute":e.fadeColord}},[o("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{router:"","default-active":e.$route.path,mode:"vertical"},on:{select:e.clickWx}},[o("el-menu-item",{attrs:{index:"/account/settings/base"}},[e._v(e._s(e.$i18nt("gd.account.basicSettings")))]),o("el-menu-item",{attrs:{index:"/account/settings/security"}},[e._v(e._s(e.$i18nt("gd.account.securitySetting")))]),o("el-menu-item",{attrs:{index:"/account/settings/custom"}},[e._v(e._s(e.$i18nt("gd.account.personalization")))])],1)],1),o("div",{staticClass:"account-settings-info-right"},[o("div",{staticClass:"account-settings-info-title"},[o("span",[e._v(e._s(e.getTitle))])]),e.multiTab?o("keep-alive",[o("router-view",{key:e.$route.fullPath})],1):o("router-view",{key:e.$route.fullPath})],1)])])],1)},Be=[],Re=M.normalizeComponent(Pe,He,Be,!1,null,"0ab9cb32",null,null);const W=Re.exports;W.install=function(r){r.component(W.name,W)};var Fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ye(r){var e=r.default;if(typeof e=="function"){var o=function(){return e.apply(this,arguments)};o.prototype=e.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var d=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(o,a,d.get?d:{enumerable:!0,get:function(){return r[a]}})}),o}var j={exports:{}};(function(r,e){(function(o,a){r.exports=a()})(window,function(){return function(o){var a={};function d(h){if(a[h])return a[h].exports;var y=a[h]={i:h,l:!1,exports:{}};return o[h].call(y.exports,y,y.exports,d),y.l=!0,y.exports}return d.m=o,d.c=a,d.d=function(h,y,$){d.o(h,y)||Object.defineProperty(h,y,{enumerable:!0,get:$})},d.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},d.t=function(h,y){if(1&y&&(h=d(h)),8&y||4&y&&typeof h=="object"&&h&&h.__esModule)return h;var $=Object.create(null);if(d.r($),Object.defineProperty($,"default",{enumerable:!0,value:h}),2&y&&typeof h!="string")for(var I in h)d.d($,I,function(A){return h[A]}.bind(null,I));return $},d.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return d.d(y,"a",y),y},d.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)},d.p="",d(d.s=6)}([function(o,a,d){var h=d(2);typeof h=="string"&&(h=[[o.i,h,""]]);var y={hmr:!0,transform:void 0,insertInto:void 0};d(4)(h,y),h.locals&&(o.exports=h.locals)},function(o,a,d){var h=d(0);d.n(h).a},function(o,a,d){(o.exports=d(3)(!1)).push([o.i,`
2
- .vue-cropper[data-v-6dae58fd] {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- box-sizing: border-box;
7
- user-select: none;
8
- -webkit-user-select: none;
9
- -moz-user-select: none;
10
- -ms-user-select: none;
11
- direction: ltr;
12
- touch-action: none;
13
- text-align: left;
14
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
15
- }
16
- .cropper-box[data-v-6dae58fd],
17
- .cropper-box-canvas[data-v-6dae58fd],
18
- .cropper-drag-box[data-v-6dae58fd],
19
- .cropper-crop-box[data-v-6dae58fd],
20
- .cropper-face[data-v-6dae58fd] {
21
- position: absolute;
22
- top: 0;
23
- right: 0;
24
- bottom: 0;
25
- left: 0;
26
- user-select: none;
27
- }
28
- .cropper-box-canvas img[data-v-6dae58fd] {
29
- position: relative;
30
- text-align: left;
31
- user-select: none;
32
- transform: none;
33
- max-width: none;
34
- max-height: none;
35
- }
36
- .cropper-box[data-v-6dae58fd] {
37
- overflow: hidden;
38
- }
39
- .cropper-move[data-v-6dae58fd] {
40
- cursor: move;
41
- }
42
- .cropper-crop[data-v-6dae58fd] {
43
- cursor: crosshair;
44
- }
45
- .cropper-modal[data-v-6dae58fd] {
46
- background: rgba(0, 0, 0, 0.5);
47
- }
48
- .cropper-crop-box[data-v-6dae58fd] {
49
- /*border: 2px solid #39f;*/
50
- }
51
- .cropper-view-box[data-v-6dae58fd] {
52
- display: block;
53
- overflow: hidden;
54
- width: 100%;
55
- height: 100%;
56
- outline: 1px solid #39f;
57
- outline-color: rgba(51, 153, 255, 0.75);
58
- user-select: none;
59
- }
60
- .cropper-view-box img[data-v-6dae58fd] {
61
- user-select: none;
62
- text-align: left;
63
- max-width: none;
64
- max-height: none;
65
- }
66
- .cropper-face[data-v-6dae58fd] {
67
- top: 0;
68
- left: 0;
69
- background-color: #fff;
70
- opacity: 0.1;
71
- }
72
- .crop-info[data-v-6dae58fd] {
73
- position: absolute;
74
- left: 0px;
75
- min-width: 65px;
76
- text-align: center;
77
- color: white;
78
- line-height: 20px;
79
- background-color: rgba(0, 0, 0, 0.8);
80
- font-size: 12px;
81
- }
82
- .crop-line[data-v-6dae58fd] {
83
- position: absolute;
84
- display: block;
85
- width: 100%;
86
- height: 100%;
87
- opacity: 0.1;
88
- }
89
- .line-w[data-v-6dae58fd] {
90
- top: -3px;
91
- left: 0;
92
- height: 5px;
93
- cursor: n-resize;
94
- }
95
- .line-a[data-v-6dae58fd] {
96
- top: 0;
97
- left: -3px;
98
- width: 5px;
99
- cursor: w-resize;
100
- }
101
- .line-s[data-v-6dae58fd] {
102
- bottom: -3px;
103
- left: 0;
104
- height: 5px;
105
- cursor: s-resize;
106
- }
107
- .line-d[data-v-6dae58fd] {
108
- top: 0;
109
- right: -3px;
110
- width: 5px;
111
- cursor: e-resize;
112
- }
113
- .crop-point[data-v-6dae58fd] {
114
- position: absolute;
115
- width: 8px;
116
- height: 8px;
117
- opacity: 0.75;
118
- background-color: #39f;
119
- border-radius: 100%;
120
- }
121
- .point1[data-v-6dae58fd] {
122
- top: -4px;
123
- left: -4px;
124
- cursor: nw-resize;
125
- }
126
- .point2[data-v-6dae58fd] {
127
- top: -5px;
128
- left: 50%;
129
- margin-left: -3px;
130
- cursor: n-resize;
131
- }
132
- .point3[data-v-6dae58fd] {
133
- top: -4px;
134
- right: -4px;
135
- cursor: ne-resize;
136
- }
137
- .point4[data-v-6dae58fd] {
138
- top: 50%;
139
- left: -4px;
140
- margin-top: -3px;
141
- cursor: w-resize;
142
- }
143
- .point5[data-v-6dae58fd] {
144
- top: 50%;
145
- right: -4px;
146
- margin-top: -3px;
147
- cursor: e-resize;
148
- }
149
- .point6[data-v-6dae58fd] {
150
- bottom: -5px;
151
- left: -4px;
152
- cursor: sw-resize;
153
- }
154
- .point7[data-v-6dae58fd] {
155
- bottom: -5px;
156
- left: 50%;
157
- margin-left: -3px;
158
- cursor: s-resize;
159
- }
160
- .point8[data-v-6dae58fd] {
161
- bottom: -5px;
162
- right: -4px;
163
- cursor: se-resize;
164
- }
165
- @media screen and (max-width: 500px) {
166
- .crop-point[data-v-6dae58fd] {
167
- position: absolute;
168
- width: 20px;
169
- height: 20px;
170
- opacity: 0.45;
171
- background-color: #39f;
172
- border-radius: 100%;
173
- }
174
- .point1[data-v-6dae58fd] {
175
- top: -10px;
176
- left: -10px;
177
- }
178
- .point2[data-v-6dae58fd],
179
- .point4[data-v-6dae58fd],
180
- .point5[data-v-6dae58fd],
181
- .point7[data-v-6dae58fd] {
182
- display: none;
183
- }
184
- .point3[data-v-6dae58fd] {
185
- top: -10px;
186
- right: -10px;
187
- }
188
- .point4[data-v-6dae58fd] {
189
- top: 0;
190
- left: 0;
191
- }
192
- .point6[data-v-6dae58fd] {
193
- bottom: -10px;
194
- left: -10px;
195
- }
196
- .point8[data-v-6dae58fd] {
197
- bottom: -10px;
198
- right: -10px;
199
- }
200
- }
201
- `,""])},function(o,a){o.exports=function(d){var h=[];return h.toString=function(){return this.map(function(y){var $=function(I,A){var k=I[1]||"",L=I[3];if(!L)return k;if(A&&typeof btoa=="function"){var n=function(i){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"}(L),t=L.sources.map(function(i){return"/*# sourceURL="+L.sourceRoot+i+" */"});return[k].concat(t).concat([n]).join(`
202
- `)}return[k].join(`
203
- `)}(y,d);return y[2]?"@media "+y[2]+"{"+$+"}":$}).join("")},h.i=function(y,$){typeof y=="string"&&(y=[[null,y,""]]);for(var I={},A=0;A<this.length;A++){var k=this[A][0];typeof k=="number"&&(I[k]=!0)}for(A=0;A<y.length;A++){var L=y[A];typeof L[0]=="number"&&I[L[0]]||($&&!L[2]?L[2]=$:$&&(L[2]="("+L[2]+") and ("+$+")"),h.push(L))}},h}},function(o,a,d){var h={},y=function(c){var u;return function(){return u===void 0&&(u=c.apply(this,arguments)),u}}(function(){return window&&document&&document.all&&!window.atob}),$=function(c){var u={};return function(p,g){if(typeof p=="function")return p();if(u[p]===void 0){var w=function(v,C){return C?C.querySelector(v):document.querySelector(v)}.call(this,p,g);if(window.HTMLIFrameElement&&w instanceof window.HTMLIFrameElement)try{w=w.contentDocument.head}catch{w=null}u[p]=w}return u[p]}}(),I=null,A=0,k=[],L=d(5);function n(c,u){for(var p=0;p<c.length;p++){var g=c[p],w=h[g.id];if(w){w.refs++;for(var v=0;v<w.parts.length;v++)w.parts[v](g.parts[v]);for(;v<g.parts.length;v++)w.parts.push(m(g.parts[v],u))}else{var C=[];for(v=0;v<g.parts.length;v++)C.push(m(g.parts[v],u));h[g.id]={id:g.id,refs:1,parts:C}}}}function t(c,u){for(var p=[],g={},w=0;w<c.length;w++){var v=c[w],C=u.base?v[0]+u.base:v[0],_={css:v[1],media:v[2],sourceMap:v[3]};g[C]?g[C].parts.push(_):p.push(g[C]={id:C,parts:[_]})}return p}function i(c,u){var p=$(c.insertInto);if(!p)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var g=k[k.length-1];if(c.insertAt==="top")g?g.nextSibling?p.insertBefore(u,g.nextSibling):p.appendChild(u):p.insertBefore(u,p.firstChild),k.push(u);else if(c.insertAt==="bottom")p.appendChild(u);else{if(typeof c.insertAt!="object"||!c.insertAt.before)throw new Error(`[Style Loader]
204
-
205
- Invalid value for parameter 'insertAt' ('options.insertAt') found.
206
- Must be 'top', 'bottom', or Object.
207
- (https://github.com/webpack-contrib/style-loader#insertat)
208
- `);var w=$(c.insertAt.before,p);p.insertBefore(u,w)}}function s(c){if(c.parentNode===null)return!1;c.parentNode.removeChild(c);var u=k.indexOf(c);u>=0&&k.splice(u,1)}function l(c){var u=document.createElement("style");if(c.attrs.type===void 0&&(c.attrs.type="text/css"),c.attrs.nonce===void 0){var p=function(){return d.nc}();p&&(c.attrs.nonce=p)}return f(u,c.attrs),i(c,u),u}function f(c,u){Object.keys(u).forEach(function(p){c.setAttribute(p,u[p])})}function m(c,u){var p,g,w,v;if(u.transform&&c.css){if(!(v=typeof u.transform=="function"?u.transform(c.css):u.transform.default(c.css)))return function(){};c.css=v}if(u.singleton){var C=A++;p=I||(I=l(u)),g=x.bind(null,p,C,!1),w=x.bind(null,p,C,!0)}else c.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(p=function(_){var S=document.createElement("link");return _.attrs.type===void 0&&(_.attrs.type="text/css"),_.attrs.rel="stylesheet",f(S,_.attrs),i(_,S),S}(u),g=function(_,S,E){var T=E.css,O=E.sourceMap,U=S.convertToAbsoluteUrls===void 0&&O;(S.convertToAbsoluteUrls||U)&&(T=L(T)),O&&(T+=`
209
- /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(O))))+" */");var V=new Blob([T],{type:"text/css"}),X=_.href;_.href=URL.createObjectURL(V),X&&URL.revokeObjectURL(X)}.bind(null,p,u),w=function(){s(p),p.href&&URL.revokeObjectURL(p.href)}):(p=l(u),g=function(_,S){var E=S.css,T=S.media;if(T&&_.setAttribute("media",T),_.styleSheet)_.styleSheet.cssText=E;else{for(;_.firstChild;)_.removeChild(_.firstChild);_.appendChild(document.createTextNode(E))}}.bind(null,p),w=function(){s(p)});return g(c),function(_){if(_){if(_.css===c.css&&_.media===c.media&&_.sourceMap===c.sourceMap)return;g(c=_)}else w()}}o.exports=function(c,u){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(u=u||{}).attrs=typeof u.attrs=="object"?u.attrs:{},u.singleton||typeof u.singleton=="boolean"||(u.singleton=y()),u.insertInto||(u.insertInto="head"),u.insertAt||(u.insertAt="bottom");var p=t(c,u);return n(p,u),function(g){for(var w=[],v=0;v<p.length;v++){var C=p[v];(_=h[C.id]).refs--,w.push(_)}for(g&&n(t(g,u),u),v=0;v<w.length;v++){var _;if((_=w[v]).refs===0){for(var S=0;S<_.parts.length;S++)_.parts[S]();delete h[_.id]}}}};var b=function(){var c=[];return function(u,p){return c[u]=p,c.filter(Boolean).join(`
210
- `)}}();function x(c,u,p,g){var w=p?"":g.css;if(c.styleSheet)c.styleSheet.cssText=b(u,w);else{var v=document.createTextNode(w),C=c.childNodes;C[u]&&c.removeChild(C[u]),C.length?c.insertBefore(v,C[u]):c.appendChild(v)}}},function(o,a){o.exports=function(d){var h=typeof window<"u"&&window.location;if(!h)throw new Error("fixUrls requires window.location");if(!d||typeof d!="string")return d;var y=h.protocol+"//"+h.host,$=y+h.pathname.replace(/\/[^\/]*$/,"/");return d.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(I,A){var k,L=A.trim().replace(/^"(.*)"$/,function(n,t){return t}).replace(/^'(.*)'$/,function(n,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(L)?I:(k=L.indexOf("//")===0?L:L.indexOf("/")===0?y+L:$+L.replace(/^\.\//,""),"url("+JSON.stringify(k)+")")})}},function(o,a,d){d.r(a);var h=function(){var n=this,t=n.$createElement,i=n._self._c||t;return i("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:n.scaleImg,mouseout:n.cancelScale}},[n.imgs?i("div",{staticClass:"cropper-box"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!n.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+n.x/n.scale+"px,"+n.y/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"}},[i("img",{ref:"cropperImg",attrs:{src:n.imgs,alt:"cropper-img"}})])]):n._e(),n._v(" "),i("div",{staticClass:"cropper-drag-box",class:{"cropper-move":n.move&&!n.crop,"cropper-crop":n.crop,"cropper-modal":n.cropping},on:{mousedown:n.startMove,touchstart:n.startMove}}),n._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:n.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:n.cropW+"px",height:n.cropH+"px",transform:"translate3d("+n.cropOffsertX+"px,"+n.cropOffsertY+"px,0)"}},[i("span",{staticClass:"cropper-view-box"},[i("img",{style:{width:n.trueWidth+"px",height:n.trueHeight+"px",transform:"scale("+n.scale+","+n.scale+") translate3d("+(n.x-n.cropOffsertX)/n.scale+"px,"+(n.y-n.cropOffsertY)/n.scale+"px,0)rotateZ("+90*n.rotate+"deg)"},attrs:{src:n.imgs,alt:"cropper-img"}})]),n._v(" "),i("span",{staticClass:"cropper-face cropper-move",on:{mousedown:n.cropMove,touchstart:n.cropMove}}),n._v(" "),n.info?i("span",{staticClass:"crop-info",style:{top:n.cropInfo.top}},[n._v(n._s(this.cropInfo.width)+" \xD7 "+n._s(this.cropInfo.height))]):n._e(),n._v(" "),n.fixedBox?n._e():i("span",[i("span",{staticClass:"crop-line line-w",on:{mousedown:function(s){n.changeCropSize(s,!1,!0,0,1)},touchstart:function(s){n.changeCropSize(s,!1,!0,0,1)}}}),n._v(" "),i("span",{staticClass:"crop-line line-a",on:{mousedown:function(s){n.changeCropSize(s,!0,!1,1,0)},touchstart:function(s){n.changeCropSize(s,!0,!1,1,0)}}}),n._v(" "),i("span",{staticClass:"crop-line line-s",on:{mousedown:function(s){n.changeCropSize(s,!1,!0,0,2)},touchstart:function(s){n.changeCropSize(s,!1,!0,0,2)}}}),n._v(" "),i("span",{staticClass:"crop-line line-d",on:{mousedown:function(s){n.changeCropSize(s,!0,!1,2,0)},touchstart:function(s){n.changeCropSize(s,!0,!1,2,0)}}}),n._v(" "),i("span",{staticClass:"crop-point point1",on:{mousedown:function(s){n.changeCropSize(s,!0,!0,1,1)},touchstart:function(s){n.changeCropSize(s,!0,!0,1,1)}}}),n._v(" "),i("span",{staticClass:"crop-point point2",on:{mousedown:function(s){n.changeCropSize(s,!1,!0,0,1)},touchstart:function(s){n.changeCropSize(s,!1,!0,0,1)}}}),n._v(" "),i("span",{staticClass:"crop-point point3",on:{mousedown:function(s){n.changeCropSize(s,!0,!0,2,1)},touchstart:function(s){n.changeCropSize(s,!0,!0,2,1)}}}),n._v(" "),i("span",{staticClass:"crop-point point4",on:{mousedown:function(s){n.changeCropSize(s,!0,!1,1,0)},touchstart:function(s){n.changeCropSize(s,!0,!1,1,0)}}}),n._v(" "),i("span",{staticClass:"crop-point point5",on:{mousedown:function(s){n.changeCropSize(s,!0,!1,2,0)},touchstart:function(s){n.changeCropSize(s,!0,!1,2,0)}}}),n._v(" "),i("span",{staticClass:"crop-point point6",on:{mousedown:function(s){n.changeCropSize(s,!0,!0,1,2)},touchstart:function(s){n.changeCropSize(s,!0,!0,1,2)}}}),n._v(" "),i("span",{staticClass:"crop-point point7",on:{mousedown:function(s){n.changeCropSize(s,!1,!0,0,2)},touchstart:function(s){n.changeCropSize(s,!1,!0,0,2)}}}),n._v(" "),i("span",{staticClass:"crop-point point8",on:{mousedown:function(s){n.changeCropSize(s,!0,!0,2,2)},touchstart:function(s){n.changeCropSize(s,!0,!0,2,2)}}})])])])};h._withStripped=!0;var y={};y.getData=function(n){return new Promise(function(t,i){var s={};(function(l){var f=null;return new Promise(function(m,b){if(l.src)if(/^data\:/i.test(l.src))f=function(u){u=u.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var p=atob(u),g=p.length,w=new ArrayBuffer(g),v=new Uint8Array(w),C=0;C<g;C++)v[C]=p.charCodeAt(C);return w}(l.src),m(f);else if(/^blob\:/i.test(l.src)){var x=new FileReader;x.onload=function(u){f=u.target.result,m(f)},function(u,p){var g=new XMLHttpRequest;g.open("GET",u,!0),g.responseType="blob",g.onload=function(w){this.status!=200&&this.status!==0||p(this.response)},g.send()}(l.src,function(u){x.readAsArrayBuffer(u)})}else{var c=new XMLHttpRequest;c.onload=function(){if(this.status!=200&&this.status!==0)throw"Could not load image";f=c.response,m(f),c=null},c.open("GET",l.src,!0),c.responseType="arraybuffer",c.send(null)}else b("img error")})})(n).then(function(l){s.arrayBuffer=l,s.orientation=function(f){var m,b,x,c,u,p,g,w,v,C=new DataView(f),_=C.byteLength;if(C.getUint8(0)===255&&C.getUint8(1)===216)for(w=2;w<_;){if(C.getUint8(w)===255&&C.getUint8(w+1)===225){p=w;break}w++}if(p&&(b=p+10,function(S,E,T){var O,U="";for(O=E,T+=E;O<T;O++)U+=String.fromCharCode(S.getUint8(O));return U}(C,p+4,4)==="Exif"&&(u=C.getUint16(b),((c=u===18761)||u===19789)&&C.getUint16(b+2,c)===42&&(x=C.getUint32(b+4,c))>=8&&(g=b+x))),g){for(_=C.getUint16(g,c),v=0;v<_;v++)if(w=g+12*v+2,C.getUint16(w,c)===274){w+=8,m=C.getUint16(w,c);break}}return m}(l),t(s)}).catch(function(l){i(l)})})};var $=y,I={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var n={};if(n.top=this.cropOffsertY>21?"-21px":"0px",n.width=this.cropW>0?this.cropW:0,n.height=this.cropH>0?this.cropH:0,this.infoTrue){var t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),n.width=n.width*t,n.height=n.height*t,this.full&&(n.width=n.width/this.scale,n.height=n.height/this.scale)}return n.width=n.width.toFixed(0),n.height=n.height.toFixed(0),n},isIE:function(){var n=!!window.ActiveXObject||"ActiveXObject"in window;return n},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(n){n!==""&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(n,t){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(n){n&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(n){for(var t=navigator.userAgent.split(" "),i="",s=new RegExp(n,"i"),l=0;l<t.length;l++)s.test(t[l])&&(i=t[l]);return i?i.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(n,t,i,s){var l=this;if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){var f=this.getVersion("version");f[0]>13&&f[1]>1&&(t=-1)}else{var m=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(m){var b=m[1];((b=b.split("_"))[0]>13||b[0]>=13&&b[1]>=4)&&(t=-1)}}var x=document.createElement("canvas"),c=x.getContext("2d");switch(c.save(),t){case 2:x.width=i,x.height=s,c.translate(i,0),c.scale(-1,1);break;case 3:x.width=i,x.height=s,c.translate(i/2,s/2),c.rotate(180*Math.PI/180),c.translate(-i/2,-s/2);break;case 4:x.width=i,x.height=s,c.translate(0,s),c.scale(1,-1);break;case 5:x.height=i,x.width=s,c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:x.width=s,x.height=i,c.translate(s/2,i/2),c.rotate(90*Math.PI/180),c.translate(-i/2,-s/2);break;case 7:x.height=i,x.width=s,c.rotate(.5*Math.PI),c.translate(i,-s),c.scale(-1,1);break;case 8:x.height=i,x.width=s,c.translate(s/2,i/2),c.rotate(-90*Math.PI/180),c.translate(-i/2,-s/2);break;default:x.width=i,x.height=s}c.drawImage(n,0,0,i,s),c.restore(),x.toBlob(function(u){var p=URL.createObjectURL(u);URL.revokeObjectURL(l.imgs),l.imgs=p},"image/"+this.outputType,1)},checkedImg:function(){var n=this;if(this.img===null||this.img==="")return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var t=new Image;if(t.onload=function(){if(n.img==="")return n.$emit("imgLoad","error"),n.$emit("img-load","error"),!1;var s=t.width,l=t.height;$.getData(t).then(function(f){n.orientation=f.orientation||1;var m=n.maxImgSize;!n.orientation&&s<m&l<m?n.imgs=n.img:(s>m&&(l=l/s*m,s=m),l>m&&(s=s/l*m,l=m),n.checkOrientationImage(t,n.orientation,s,l))})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(t.crossOrigin=""),this.isIE){var i=new XMLHttpRequest;i.onload=function(){var s=URL.createObjectURL(this.response);t.src=s},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else t.src=this.img},startMove:function(n){if(n.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(n.clientX?n.clientX:n.touches[0].clientX)-this.x,this.moveY=(n.clientY?n.clientY:n.touches[0].clientY)-this.y,n.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),n.touches.length==2&&(this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=n.offsetX?n.offsetX:n.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=n.offsetY?n.offsetY:n.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(n){var t=this;n.preventDefault();var i=this.scale,s=this.touches[0].clientX,l=this.touches[0].clientY,f=n.touches[0].clientX,m=n.touches[0].clientY,b=this.touches[1].clientX,x=this.touches[1].clientY,c=n.touches[1].clientX,u=n.touches[1].clientY,p=Math.sqrt(Math.pow(s-b,2)+Math.pow(l-x,2)),g=Math.sqrt(Math.pow(f-c,2)+Math.pow(m-u,2))-p,w=1,v=(w=(w=w/this.trueWidth>w/this.trueHeight?w/this.trueHeight:w/this.trueWidth)>.1?.1:w)*g;if(!this.touchNow){if(this.touchNow=!0,g>0?i+=Math.abs(v):g<0&&i>Math.abs(v)&&(i-=Math.abs(v)),this.touches=n.touches,setTimeout(function(){t.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,i))return!1;this.scale=i}},cancelTouchScale:function(n){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(n){var t=this;if(n.preventDefault(),n.touches&&n.touches.length===2)return this.touches=n.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var i,s,l=n.clientX?n.clientX:n.touches[0].clientX,f=n.clientY?n.clientY:n.touches[0].clientY;i=l-this.moveX,s=f-this.moveY,this.$nextTick(function(){if(t.centerBox){var m,b,x,c,u=t.getImgAxis(i,s,t.scale),p=t.getCropAxis(),g=t.trueHeight*t.scale,w=t.trueWidth*t.scale;switch(t.rotate){case 1:case-1:case 3:case-3:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2+(g-w)/2,b=t.cropOffsertY-t.trueHeight*(1-t.scale)/2+(w-g)/2,x=m-g+t.cropW,c=b-w+t.cropH;break;default:m=t.cropOffsertX-t.trueWidth*(1-t.scale)/2,b=t.cropOffsertY-t.trueHeight*(1-t.scale)/2,x=m-w+t.cropW,c=b-g+t.cropH}u.x1>=p.x1&&(i=m),u.y1>=p.y1&&(s=b),u.x2<=p.x2&&(i=x),u.y2<=p.y2&&(s=c)}t.x=i,t.y=s,t.$emit("imgMoving",{moving:!0,axis:t.getImgAxis()}),t.$emit("img-moving",{moving:!0,axis:t.getImgAxis()})})},leaveImg:function(n){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(n){var t=this;n.preventDefault();var i=this.scale,s=n.deltaY||n.wheelDelta;s=navigator.userAgent.indexOf("Firefox")>0?30*s:s,this.isIE&&(s=-s);var l=this.coe,f=(l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth)*s;f<0?i+=Math.abs(f):i>Math.abs(f)&&(i-=Math.abs(f));var m=f<0?"add":"reduce";if(m!==this.coeStatus&&(this.coeStatus=m,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){t.scaling=!1,t.coe=t.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,i))return!1;this.scale=i},changeScale:function(n){var t=this.scale;n=n||1;var i=20;if((n*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?t+=Math.abs(n):t>Math.abs(n)&&(t-=Math.abs(n)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop:function(n){var t=this;n.preventDefault();var i=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,s=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0;this.$nextTick(function(){var l=i-t.cropX,f=s-t.cropY;if(l>0?(t.cropW=l+t.cropChangeX>t.w?t.w-t.cropChangeX:l,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(l)>t.w?t.cropChangeX:Math.abs(l),t.cropOffsertX=t.cropChangeX+l>0?t.cropChangeX+l:0),t.fixed){var m=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];m+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],t.cropOffsertX=l>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=m,t.cropOffsertY=t.cropOffsertY}else f>0?(t.cropH=f+t.cropChangeY>t.h?t.h-t.cropChangeY:f,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(f)>t.h?t.cropChangeY:Math.abs(f),t.cropOffsertY=t.cropChangeY+f>0?t.cropChangeY+f:0)})},changeCropSize:function(n,t,i,s,l){n.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=i,this.changeCropTypeX=s,this.changeCropTypeY=l,this.cropX=n.clientX?n.clientX:n.touches[0].clientX,this.cropY=n.clientY?n.clientY:n.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(n){var t=this;n.preventDefault();var i=n.clientX?n.clientX:n.touches?n.touches[0].clientX:0,s=n.clientY?n.clientY:n.touches?n.touches[0].clientY:0,l=this.w,f=this.h,m=0,b=0;if(this.centerBox){var x=this.getImgAxis(),c=x.x2,u=x.y2;m=x.x1>0?x.x1:0,b=x.y1>0?x.y1:0,l>c&&(l=c),f>u&&(f=u)}this.$nextTick(function(){var p=i-t.cropX,g=s-t.cropY;if(t.canChangeX&&(t.changeCropTypeX===1?t.cropOldW-p>0?(t.cropW=l-t.cropChangeX-p<=l-m?t.cropOldW-p:t.cropOldW+t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX-p<=l-m?t.cropChangeX+p:m):(t.cropW=Math.abs(p)+t.cropChangeX<=l?Math.abs(p)-t.cropOldW:l-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):t.changeCropTypeX===2&&(t.cropOldW+p>0?(t.cropW=t.cropOldW+p+t.cropOffsertX<=l?t.cropOldW+p:l-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?Math.abs(p+t.cropOldW):t.cropChangeX-m,t.cropOffsertX=l-t.cropChangeX+Math.abs(p+t.cropOldW)<=l-m?t.cropChangeX-Math.abs(p+t.cropOldW):m))),t.canChangeY&&(t.changeCropTypeY===1?t.cropOldH-g>0?(t.cropH=f-t.cropChangeY-g<=f-b?t.cropOldH-g:t.cropOldH+t.cropChangeY-b,t.cropOffsertY=f-t.cropChangeY-g<=f-b?t.cropChangeY+g:b):(t.cropH=Math.abs(g)+t.cropChangeY<=f?Math.abs(g)-t.cropOldH:f-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):t.changeCropTypeY===2&&(t.cropOldH+g>0?(t.cropH=t.cropOldH+g+t.cropOffsertY<=f?t.cropOldH+g:f-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-b?Math.abs(g+t.cropOldH):t.cropChangeY-b,t.cropOffsertY=f-t.cropChangeY+Math.abs(g+t.cropOldH)<=f-b?t.cropChangeY-Math.abs(g+t.cropOldH):b))),t.canChangeX&&t.fixed){var w=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];w+t.cropOffsertY>f?(t.cropH=f-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0]):t.cropH=w}if(t.canChangeY&&t.fixed){var v=t.cropH/t.fixedNumber[1]*t.fixedNumber[0];v+t.cropOffsertX>l?(t.cropW=l-t.cropOffsertX,t.cropH=t.cropW/t.fixedNumber[0]*t.fixedNumber[1]):t.cropW=v}})},checkCropLimitSize:function(){this.cropW,this.cropH;var n=this.limitMinSize,t=new Array;return t=Array.isArray[n]?n:[n,n],[parseFloat(t[0]),parseFloat(t[1])]},changeCropEnd:function(n){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(n){if(n.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(n),!1;if(n.touches&&n.touches.length===2)return this.crop=!1,this.startMove(n),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var t,i,s=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY;t=s-this.cropOffsertX,i=l-this.cropOffsertY,this.cropX=t,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(n,t){var i=this,s=0,l=0;n&&(n.preventDefault(),s=n.clientX?n.clientX:n.touches[0].clientX,l=n.clientY?n.clientY:n.touches[0].clientY),this.$nextTick(function(){var f,m,b=s-i.cropX,x=l-i.cropY;if(t&&(b=i.cropOffsertX,x=i.cropOffsertY),f=b<=0?0:b+i.cropW>i.w?i.w-i.cropW:b,m=x<=0?0:x+i.cropH>i.h?i.h-i.cropH:x,i.centerBox){var c=i.getImgAxis();f<=c.x1&&(f=c.x1),f+i.cropW>c.x2&&(f=c.x2-i.cropW),m<=c.y1&&(m=c.y1),m+i.cropH>c.y2&&(m=c.y2-i.cropH)}i.cropOffsertX=f,i.cropOffsertY=m,i.$emit("cropMoving",{moving:!0,axis:i.getCropAxis()}),i.$emit("crop-moving",{moving:!0,axis:i.getCropAxis()})})},getImgAxis:function(n,t,i){n=n||this.x,t=t||this.y,i=i||this.scale;var s={x1:0,x2:0,y1:0,y2:0},l=this.trueWidth*i,f=this.trueHeight*i;switch(this.rotate){case 0:s.x1=n+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:s.x1=n+this.trueWidth*(1-i)/2+(l-f)/2,s.x2=s.x1+this.trueHeight*i,s.y1=t+this.trueHeight*(1-i)/2+(f-l)/2,s.y2=s.y1+this.trueWidth*i;break;default:s.x1=n+this.trueWidth*(1-i)/2,s.x2=s.x1+this.trueWidth*i,s.y1=t+this.trueHeight*(1-i)/2,s.y2=s.y1+this.trueHeight*i}return s},getCropAxis:function(){var n={x1:0,x2:0,y1:0,y2:0};return n.x1=this.cropOffsertX,n.x2=n.x1+this.cropW,n.y1=this.cropOffsertY,n.y2=n.y1+this.cropH,n},leaveCrop:function(n){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(n){var t=this,i=document.createElement("canvas"),s=new Image,l=this.rotate,f=this.trueWidth,m=this.trueHeight,b=this.cropOffsertX,x=this.cropOffsertY;function c(u,p){i.width=Math.round(u),i.height=Math.round(p)}s.onload=function(){if(t.cropW!==0){var u=i.getContext("2d"),p=1;t.high&!t.full&&(p=window.devicePixelRatio),t.enlarge!==1&!t.full&&(p=Math.abs(Number(t.enlarge)));var g=t.cropW*p,w=t.cropH*p,v=f*t.scale*p,C=m*t.scale*p,_=(t.x-b+t.trueWidth*(1-t.scale)/2)*p,S=(t.y-x+t.trueHeight*(1-t.scale)/2)*p;switch(c(g,w),u.save(),l){case 0:t.full?(c(g/t.scale,w/t.scale),u.drawImage(s,_/t.scale,S/t.scale,v/t.scale,C/t.scale)):u.drawImage(s,_,S,v,C);break;case 1:case-3:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-C/t.scale)/2,S=S/t.scale+(C/t.scale-v/t.scale)/2,u.rotate(90*l*Math.PI/180),u.drawImage(s,S,-_-C/t.scale,v/t.scale,C/t.scale)):(_+=(v-C)/2,S+=(C-v)/2,u.rotate(90*l*Math.PI/180),u.drawImage(s,S,-_-C,v,C));break;case 2:case-2:t.full?(c(g/t.scale,w/t.scale),u.rotate(90*l*Math.PI/180),_/=t.scale,S/=t.scale,u.drawImage(s,-_-v/t.scale,-S-C/t.scale,v/t.scale,C/t.scale)):(u.rotate(90*l*Math.PI/180),u.drawImage(s,-_-v,-S-C,v,C));break;case 3:case-1:t.full?(c(g/t.scale,w/t.scale),_=_/t.scale+(v/t.scale-C/t.scale)/2,S=S/t.scale+(C/t.scale-v/t.scale)/2,u.rotate(90*l*Math.PI/180),u.drawImage(s,-S-v/t.scale,_,v/t.scale,C/t.scale)):(_+=(v-C)/2,S+=(C-v)/2,u.rotate(90*l*Math.PI/180),u.drawImage(s,-S-v,_,v,C));break;default:t.full?(c(g/t.scale,w/t.scale),u.drawImage(s,_/t.scale,S/t.scale,v/t.scale,C/t.scale)):u.drawImage(s,_,S,v,C)}u.restore()}else{var E=f*t.scale,T=m*t.scale,O=i.getContext("2d");switch(O.save(),l){case 0:c(E,T),O.drawImage(s,0,0,E,T);break;case 1:case-3:c(T,E),O.rotate(90*l*Math.PI/180),O.drawImage(s,0,-T,E,T);break;case 2:case-2:c(E,T),O.rotate(90*l*Math.PI/180),O.drawImage(s,-E,-T,E,T);break;case 3:case-1:c(T,E),O.rotate(90*l*Math.PI/180),O.drawImage(s,-E,0,E,T);break;default:c(E,T),O.drawImage(s,0,0,E,T)}O.restore()}n(i)},this.img.substr(0,4)!=="data"&&(s.crossOrigin="Anonymous"),s.src=this.imgs},getCropData:function(n){var t=this;this.getCropChecked(function(i){n(i.toDataURL("image/"+t.outputType,t.outputSize))})},getCropBlob:function(n){var t=this;this.getCropChecked(function(i){i.toBlob(function(s){return n(s)},"image/"+t.outputType,t.outputSize)})},showPreview:function(){var n=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){n.isCanShow=!0},16);var t=this.cropW,i=this.cropH,s=this.scale,l={};l.div={width:"".concat(t,"px"),height:"".concat(i,"px")};var f=(this.x-this.cropOffsertX)/s,m=(this.y-this.cropOffsertY)/s;l.w=t,l.h=i,l.url=this.imgs,l.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(s,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},l.html=`
211
- <div class="show-preview" style="width: `.concat(l.w,"px; height: ").concat(l.h,`px,; overflow: hidden">
212
- <div style="width: `).concat(t,"px; height: ").concat(i,`px">
213
- <img src=`).concat(l.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,`px; transform:
214
- scale(`).concat(s,")translate3d(").concat(f,"px, ").concat(m,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,`deg)">
215
- </div>
216
- </div>`),this.$emit("realTime",l),this.$emit("real-time",l)},reload:function(){var n=this,t=new Image;t.onload=function(){n.w=parseFloat(window.getComputedStyle(n.$refs.cropper).width),n.h=parseFloat(window.getComputedStyle(n.$refs.cropper).height),n.trueWidth=t.width,n.trueHeight=t.height,n.original?n.scale=1:n.scale=n.checkedMode(),n.$nextTick(function(){n.x=-(n.trueWidth-n.trueWidth*n.scale)/2+(n.w-n.trueWidth*n.scale)/2,n.y=-(n.trueHeight-n.trueHeight*n.scale)/2+(n.h-n.trueHeight*n.scale)/2,n.loading=!1,n.autoCrop&&n.goAutoCrop(),n.$emit("img-load","success"),n.$emit("imgLoad","success"),setTimeout(function(){n.showPreview()},20)})},t.onerror=function(){n.$emit("imgLoad","error"),n.$emit("img-load","error")},t.src=this.imgs},checkedMode:function(){var n=1,t=(this.trueWidth,this.trueHeight),i=this.mode.split(" ");switch(i[0]){case"contain":this.trueWidth>this.w&&(n=this.w/this.trueWidth),this.trueHeight*n>this.h&&(n=this.h/this.trueHeight);break;case"cover":(t*=n=this.w/this.trueWidth)<this.h&&(n=(t=this.h)/this.trueHeight);break;default:try{var s=i[0];if(s.search("px")!==-1&&(s=s.replace("px",""),n=parseFloat(s)/this.trueWidth),s.search("%")!==-1&&(s=s.replace("%",""),n=parseFloat(s)/100*this.w/this.trueWidth),i.length===2&&s==="auto"){var l=i[1];l.search("px")!==-1&&(l=l.replace("px",""),n=(t=parseFloat(l))/this.trueHeight),l.search("%")!==-1&&(l=l.replace("%",""),n=(t=parseFloat(l)/100*this.h)/this.trueHeight)}}catch{n=1}}return n},goAutoCrop:function(n,t){if(this.imgs!==""&&this.imgs!==null){this.clearCrop(),this.cropping=!0;var i=this.w,s=this.h;if(this.centerBox){var l=this.trueWidth*this.scale,f=this.trueHeight*this.scale;i=l<i?l:i,s=f<s?f:s}var m=n||parseFloat(this.autoCropWidth),b=t||parseFloat(this.autoCropHeight);m!==0&&b!==0||(m=.8*i,b=.8*s),m=m>i?i:m,b=b>s?s:b,this.fixed&&(b=m/this.fixedNumber[0]*this.fixedNumber[1]),b>this.h&&(m=(b=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(m,b)}},changeCrop:function(n,t){var i=this;if(this.centerBox){var s=this.getImgAxis();n>s.x2-s.x1&&(t=(n=s.x2-s.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>s.y2-s.y1&&(n=(t=s.y2-s.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=n,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(function(){i.cropOffsertX=(i.w-i.cropW)/2,i.cropOffsertY=(i.h-i.cropH)/2,i.centerBox&&i.moveCrop(null,!0)})},refresh:function(){var n=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){n.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(n,t,i){n=n||this.x,t=t||this.y,i=i||this.scale;var s=!0;if(this.centerBox){var l=this.getImgAxis(n,t,i),f=this.getCropAxis();l.x1>=f.x1&&(s=!1),l.x2<=f.x2&&(s=!1),l.y1>=f.y1&&(s=!1),l.y2<=f.y2&&(s=!1)}return s}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";var n=this,t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(i,s,l){for(var f=atob(this.toDataURL(s,l).split(",")[1]),m=f.length,b=new Uint8Array(m),x=0;x<m;x++)b[x]=f.charCodeAt(x);i(new Blob([b],{type:n.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}};d(1);var A=function(n,t,i,s,l,f,m,b){var x,c=typeof n=="function"?n.options:n;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),s&&(c.functional=!0),f&&(c._scopeId="data-v-"+f),m?(x=function(g){(g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(g=__VUE_SSR_CONTEXT__),l&&l.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(m)},c._ssrRegister=x):l&&(x=b?function(){l.call(this,this.$root.$options.shadowRoot)}:l),x)if(c.functional){c._injectStyles=x;var u=c.render;c.render=function(g,w){return x.call(w),u(g,w)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,x):[x]}return{exports:n,options:c}}(I,h,[],!1,null,"6dae58fd",null);A.options.__file="src/vue-cropper.vue";var k=A.exports;d.d(a,"VueCropper",function(){return k});var L=function(n){n.component("VueCropper",k)};typeof window<"u"&&window.Vue&&L(window.Vue),a.default={version:"0.5.5",install:L,VueCropper:k,vueCropper:k}}])})})(j);const ze={data(){return{width:"800px",visible:!1,id:null,confirmLoading:!1,fileList:[],uploading:!1,options:{img:"",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},previews:{},fullscreen:!1}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}}},components:{VueCropper:j.exports.VueCropper},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},edit(r){this.fullscreen=!1,this.visible=!0,this.id=r},close(){this.id=null,this.visible=!1},cancelHandel(){this.close()},changeScale(r){r=r||1,this.$refs.cropper.changeScale(r)},rotateLeft(){this.$refs.cropper.rotateLeft()},rotateRight(){this.$refs.cropper.rotateRight()},beforeUpload(r){this.fileList=r;const e=new FileReader;return e.readAsDataURL(r),e.onload=()=>{this.options.img=e.result},!1},finish(r){r==="blob"?(this.uploading=!0,this.$refs.cropper.getCropBlob(e=>{const o=new window.File([e],this.fileList.name,{type:this.fileList.type}),a=new FormData;a.append("file",o),R.sysFileInfoUploadAvatar(a).then(d=>{d.success?this.updateAvatar(d.data):(this.uploading=!1,this.$message.error(d.message))})})):this.$refs.cropper.getCropData(e=>{})},updateAvatar(r){const e={id:this.id,avatar:r};fe(e).then(o=>{this.uploading=!1,o.success?(this.visible=!1,this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.$emit("ok",r)}).catch(o=>{this.$emit("ok",r)})},realTime(r){this.previews=r},doEvent(r){let e=r.item.functionName;this[e]&&this[e]()}}};var Ne=function(){var e=this,o=e._self._c;return o("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.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.cancelHandel}},[o("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.account.modifyavatar","\u4FEE\u6539\u5934\u50CF"),fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0,closed:"cancelHandel"},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body"},[o("el-row",[o("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[o("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),o("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[o("div",{staticClass:"avatar-upload-preview"},[o("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),o("br"),o("el-row",[o("el-col",{attrs:{lg:3,md:3}},[o("el-upload",{attrs:{name:"file",action:"",beforeUpload:e.beforeUpload,showUploadList:!1}},[o("el-button",{staticClass:"el-icon-upload2"},[e._v(e._s(e.$i18nt("gd.account.selectPicture","\u9009\u62E9\u56FE\u7247")))])],1)],1),o("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[o("el-button",{staticClass:"el-icon-plus",on:{click:function(a){return e.changeScale(1)}}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-minus",on:{click:function(a){return e.changeScale(-1)}}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-refresh-left",on:{click:e.rotateLeft}})],1),o("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[o("el-button",{staticClass:"el-icon-refresh-right",on:{click:e.rotateRight}})],1),o("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[o("el-button",{attrs:{type:"primary",loading:e.uploading},on:{click:function(a){return e.finish("blob")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.save"))+" ")])],1)],1)],1)],1)},De=[],je=M.normalizeComponent(ze,Ne,De,!1,null,"1fe51f00",null,null);const Ge=je.exports;function Ve(r){return window.axios({url:"/sysLanguage/page",method:"get",params:r})}function qe(r){return window.axios({url:"/sysCurrency/page",method:"get",params:r})}function Ze(r){return window.axios({url:"/sysTimezone/page",method:"get",params:r})}const Je={props:{height:{type:Number,default:100}},name:"GdBaseSettings",components:{AvatarModal:Ge},data(){return{preview:{},sexData:[],langData:[{id:1,name:"\u7B80\u4F53\u4E2D\u6587",transKey:"gd.settings.chineseLanguage"},{id:2,name:"\u82F1\u8BED(\u7F8E\u56FD)",transKey:"gd.settings.englishLanguage"}],timezoneData:[],currencyData:[],option:{img:null,info:!0,size:1,outputType:"jpeg",canScale:!1,autoCrop:!0,autoCropWidth:180,autoCropHeight:180,fixedBox:!0,fixed:!0,fixedNumber:[1,1],birthdayString:""},spinning:!1,ruleForm:{},rules:{}}},computed:{getHeight(){return this.height},...M.mapGetters(["userInfo","locale","language"])},mounted(){this.initUserInfo()},methods:{changeLanguage(r){let e=this.langData.filter(o=>o.id==r)[0];this.$store.dispatch("Language",e.code)},initUserInfo(){this.spinning=!0,setTimeout(()=>{this.languageChange(),this.timezoneChange(),this.currencyChange(),this.ruleForm={birthday:this.userInfo.birthday?this.userInfo.birthday:void 0,nickName:this.userInfo.nickname,gender:this.userInfo.gender.toString(),email:this.userInfo.email,phone:this.userInfo.phone,tel:this.userInfo.tel,languageId:this.userInfo.languageid,currencyId:this.userInfo.currencyid,timezoneId:this.userInfo.timezoneid},this.birthdayString=this.userInfo.birthday,this.userInfo.avatar!=null?R.sysFileInfoPreview({id:this.userInfo.avatar}).then(r=>{this.option.img=window.URL.createObjectURL(new Blob([r]))}).catch(r=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+r.message)}):this.option.img="/avatar2.jpg",this.getSexData(),this.spinning=!1},100)},onChange(r,e){console.log(r),this.birthdayString=r},currencyChange(){qe().then(r=>{r.success&&(this.currencyData=r.data.rows,J.default.ls.set("currencyData",r.data.rows))})},timezoneChange(){Ze().then(r=>{r.success&&(this.timezoneData=r.data.rows)})},languageChange(){Ve().then(r=>{r.success&&(this.langData=r.data.rows)})},submitUserInfo(){this.spinning||this.$refs.ruleForm.validate(r=>{r&&(this.spinning=!0,this.ruleForm.birthday=this.birthdayString,this.ruleForm.id=this.userInfo.id,me(this.ruleForm).then(e=>{if(e.success){let o=this.langData.filter(a=>a.id==this.ruleForm.languageId)[0];this.$store.dispatch("Language",o.code),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),setTimeout(()=>{this.$store.dispatch("GetInfo").then(()=>{})},500)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message);this.spinning=!1}))})},getSexData(){this.sexData=this.$options.filters.dictData("gender")},setavatar(r){R.sysFileInfoPreview({id:r}).then(e=>{this.option.img=window.URL.createObjectURL(new Blob([e]))}).catch(e=>{this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A"+e.message)}),this.$store.dispatch("GetInfo").then(()=>{})}}};var Ke=function(){var e=this,o=e._self._c;return o("div",{staticClass:"account-settings-info-view",staticStyle:{height:"100px"}},[o("el-row",{attrs:{gutter:16}},[o("el-col",{attrs:{md:24,lg:16}},[o("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[o("el-form-item",{attrs:{label:e.$i18nt("gd.account.nickname","\u6635\u79F0"),prop:"nickName"}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.nickName,callback:function(a){e.$set(e.ruleForm,"nickName",a)},expression:"ruleForm.nickName"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.birthday","\u751F\u65E5"),prop:"birthday",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onChange},model:{value:e.ruleForm.birthday,callback:function(a){e.$set(e.ruleForm,"birthday",a)},expression:"ruleForm.birthday"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.sex","\u6027\u522B"),prop:"gender",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-radio-group",{model:{value:e.ruleForm.gender,callback:function(a){e.$set(e.ruleForm,"gender",a)},expression:"ruleForm.gender"}},e._l(e.sexData,function(a,d){return o("el-radio",{key:d,attrs:{label:a.code}},[e._v(" "+e._s(a.name)+" ")])}),1)],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.phone","\u624B\u673A\u53F7"),prop:"phone",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},{pattern:/^1[3-9]\d{9}$/,message:this.$i18nt("gd.account.phoneInvalid","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),trigger:"blur"}]}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.phone,callback:function(a){e.$set(e.ruleForm,"phone",a)},expression:"ruleForm.phone"}})],1),o("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.account.tel","\u7535\u8BDD"),prop:"tel"}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.tel,callback:function(a){e.$set(e.ruleForm,"tel",a)},expression:"ruleForm.tel"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.email","\u7535\u5B50\u90AE\u4EF6"),prop:"email",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"blur"},{type:"email",message:e.$i18nt("gd.account.emailTip","\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"),trigger:["blur","change"]}]}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.email,callback:function(a){e.$set(e.ruleForm,"email",a)},expression:"ruleForm.email"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.language","\u9ED8\u8BA4\u8BED\u8A00"),prop:"languageId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{select:e.changeLanguage},model:{value:e.ruleForm.languageId,callback:function(a){e.$set(e.ruleForm,"languageId",a)},expression:"ruleForm.languageId"}},e._l(e.langData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.currency","\u9ED8\u8BA4\u8D27\u5E01"),prop:"currencyId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.currencyId,callback:function(a){e.$set(e.ruleForm,"currencyId",a)},expression:"ruleForm.currencyId"}},e._l(e.currencyData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.timeZone","\u9ED8\u8BA4\u65F6\u533A"),prop:"timezoneId",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")}]}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleForm.timezoneId,callback:function(a){e.$set(e.ruleForm,"timezoneId",a)},expression:"ruleForm.timezoneId"}},e._l(e.timezoneData,function(a,d){return o("el-option",{key:d,attrs:{value:a.id,label:a.name}})}),1)],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.submitUserInfo}},[e._v(" "+e._s(e.$i18nt("gd.account.updateInformation","\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"))+" ")])],1)],1)],1),o("el-col",{style:{minHeight:"180px"},attrs:{md:24,lg:8}},[o("div",{staticClass:"ant-upload-preview",on:{click:function(a){return e.$refs.modal.edit(e.userInfo.id)}}},[o("i",{staticClass:"el-icon-upload upload-icon"}),o("div",{staticClass:"mask"},[o("i",{staticClass:"el-icon-plus"})]),o("img",{attrs:{src:e.option.img}})])])],1),o("avatar-modal",{ref:"modal",on:{ok:e.setavatar}})],1)},Qe=[],et=M.normalizeComponent(Je,Ke,Qe,!1,null,"685efc26",null,null);const P=et.exports;P.install=function(r){r.component(P.name,P)};function tt(r){return window.axios({url:"/sysMenu/list",method:"get",params:r})}function nt(r){return window.axios({url:"/sysMenu/v2/add",method:"post",data:r})}function ot(r){return window.axios({url:"/sysMenu/delete",method:"post",data:r})}function rt(r){return window.axios({url:"/sysMenu/detail",method:"post",data:r})}function st(r){return window.axios({url:"/sysMenu/edit",method:"post",data:r})}function it(r){return window.axios({url:"/sysMenu/treeForGrant",method:"get",params:r})}function at(r){return window.axios({url:"/sysMenu/change",method:"post",data:r})}function ct(r){return window.axios({url:"/sysMenu/listByAppsId",method:"post",params:r})}const lt={name:"GdCustomSettings",data(){return{colorList:F,options:[],homePage:["uvgsxjpu","ujhmcamph","uwcscihbx"],account:"",echartsList:[],value:0,primaryColors:this.primaryColor,propOptions:[],propOptionsOld:[],list:null,listOptions:[],listOptionsOld:[],presentText:[]}},computed:{predefine(){let r=[];return F.forEach(e=>{r.push(e.color)}),r},...M.mapGetters(["userInfo","addRouters","theme","primaryColor","echartsColor","systemInfo"])},watch:{primaryColor(){this.primaryColors=this.primaryColor}},methods:{okColor(r){this.$store.dispatch("EchartsColor",r),this.echartsList=[...r]},getColor(){this.echartsList=[...this.echartsColor]},renew(){let r=this,e=this.homePage,o=!1;if(e.length==0&&(o=!0),e.length>1&&(o=!0),!o){r.$message.error(r.$i18nt("gd.field.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}this.$confirm(this.$i18nt("gd.https.configThemeContent","\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u5B9A\u4FDD\u5B58"),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,d,h)=>{this.renewHand(a,d,h,this.homePage)}})},renewHand(r,e,o,a){if(r!=="confirm"){o();return}let d=[],h=ye({configTheme:a.join(",")}).then(y=>y);d.push(h),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(d).then(y=>{o(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const $=y.filter(I=>!I.success);$.length===0?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$store.dispatch("GetInfo").then(()=>{})):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+$[0].message)})},init(){this.value=this.theme=="dark"?1:0,this.homePage=this.userInfo.configtheme?this.userInfo.configtheme.split(","):[],this.systemInfo.id?this.systemInfo:window.$systemInfo},lazyLoad(r,e){const{level:o,value:a}=r;if(this.options.length===0){this.geData().then(()=>{if(this.presentText.length<this.homePage.length){const d=this.options.filter(h=>h.code===this.homePage[0])[0];this.presentText=d?this.presentText.concat([d.label]):this.presentText}e(this.options)});return}this.getMenuListAll(a).then(d=>{if(this.presentText.length<this.homePage.length&&o===2){this.presentText=this.presentText.concat([r.label]);const y=r.children.filter($=>$.value===this.homePage[o])[0];this.presentText=y?this.presentText.concat([y.label]):this.presentText}const h=this.$refs.cascader.presentText;this.presentText.length===this.homePage.length&&h===null&&(this.$refs.cascader.presentText=this.presentText.join(" / ")),e(d)})},geData(){return Te({}).then(r=>{if(r.success){let e=r.data.map(o=>{let a=this.userInfo.apps.filter(d=>d.code==o.code)[0];if(a!=null)return o.leaf=a==null,o.value=o.code,o.label=this.$i18nt(`Dynamics.${o.transkey}`,o.name),o.loading=!1,o});return e=e.filter(o=>o!==void 0),this.options=[...e],this.listOptionsOld=JSON.stringify(e),new Promise(o=>{o()})}})},getMenuListAll(r){return Promise.all([this.getMenuList({application:r}),this.sysMenuChange({application:r})]).then(e=>{let o=e[0].data,a=e[1].data;return o.map((d,h)=>{let y=a.filter($=>$.path==d.router);return o[h].value=d.router,o[h].label=this.$i18nt(`Dynamics.${d.transkey}`,d.name),o[h].leaf=d.children.length==0,o[h].disabled=y.length==0,d.children.length==0?o[h].children=null:d.children.map(($,I)=>{let A=a.filter(k=>k.path==$.router);o[h].children[I].value=$.router,o[h].children[I].label=this.$i18nt(`Dynamics.${$.transkey}`,$.name),o[h].children[I].children=[],o[h].children[I].leaf=!0,o[h].children[I].disabled=A.length==0}),d}),o.map(d=>{d.children=d.children?d.children.filter(h=>h.disabled==!1):[]}),o})},getMenuList(r){return tt(r).then(e=>e)},sysMenuChange(r){return at(r).then(e=>e)},onChangeCascader(r){const e=this.$refs.cascader.presentText;this.presentText=e!==null?e.split(" / "):[]},onChange(r){r?this.$store.dispatch("ToggleTheme","dark"):this.$store.dispatch("ToggleTheme","light")},async changeColor(r){const e=this,o=this.primaryColor;if(typeof r!="string")return;const a=this.$message({message:e.$i18nt("gd.theme.switchingTopics"),duration:0,iconClass:"el-icon-loading"}),d=this.getThemeCluster(r.replace("#","")),h=this.getThemeCluster(o.replace("#","")),y=(A,k)=>()=>{const L=this.getThemeCluster(this.primaryColor.replace("#","")),n=this.updateStyle(this[A],L,d);let t=document.getElementById(k);t||(t=document.createElement("style"),t.setAttribute("id",k),document.head.appendChild(t)),t.innerText=n};this.chalk||await Promise.resolve().then(()=>require("./element-theme-chalk.dee12271.js")).then(A=>{this.chalk=A.default}),y("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(A=>{const k=A.innerText;return new RegExp(o,"i").test(k)&&!/Chalk Variables/.test(k)}).forEach(A=>{const{innerText:k}=A;typeof k=="string"&&(A.innerText=this.updateStyle(k,h,d))}),this.$store.dispatch("ToggleColor",r),window.document.body.style=`--color:${r}`,this.$nextTick(()=>{setTimeout(()=>{a.close()},200)})},updateStyle(r,e,o){let a=r;return e.forEach((d,h)=>{a=a.replace(new RegExp(d,"ig"),o[h])}),a},getThemeCluster(r){const e=(d,h)=>{let y=parseInt(d.slice(0,2),16),$=parseInt(d.slice(2,4),16),I=parseInt(d.slice(4,6),16);return h===0?[y,$,I].join(","):(y+=Math.round(h*(255-y)),$+=Math.round(h*(255-$)),I+=Math.round(h*(255-I)),y=y.toString(16),$=$.toString(16),I=I.toString(16),`#${y}${$}${I}`)},o=(d,h)=>{let y=parseInt(d.slice(0,2),16),$=parseInt(d.slice(2,4),16),I=parseInt(d.slice(4,6),16);return y=Math.round((1-h)*y),$=Math.round((1-h)*$),I=Math.round((1-h)*I),y=y.toString(16),$=$.toString(16),I=I.toString(16),`#${y}${$}${I}`},a=[r];for(let d=0;d<=9;d++)a.push(e(r,Number((d/10).toFixed(2))));return a.push(o(r,.1)),a},traverse(r,e){let o=null;const a=d=>(d=d.filter((h,y)=>(h.children&&h.children.length>0&&a(h.children),h.value==r&&(o={...h}),!0)),d);return a(this.propOptions),o}},mounted(){this.getColor(),this.init(),this.primaryColor&&(this.primaryColors=this.primaryColor)}};var ut=function(){var e=this,o=e._self._c;return o("div",{staticStyle:{"padding-top":"12px"}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.overallStyle","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.overallStyleTip","\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("el-switch",{attrs:{"active-text":e.$i18nt("gd.settings.darkness","\u767D\u8272"),"active-color":e.primaryColor,"inactive-text":e.$i18nt("gd.settings.white","\u6697\u8272"),"active-value":1,"inactive-value":0},on:{change:e.onChange},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}})],1)])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.theme","\u4E3B\u9898\u8272")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.themeTip","\u9875\u9762\u4E3B\u9898\u914D\u8272"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:e.predefine,"popper-class":"theme-picker-dropdown"},on:{change:e.changeColor},model:{value:e.primaryColors,callback:function(a){e.primaryColors=a},expression:"primaryColors"}})],1)])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u8272")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.echartsColorStyle","\u56FE\u8868\u98CE\u683C\u914D\u8272"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-flex"},[e._l(e.echartsList,function(a,d){return[o("el-tooltip",{staticClass:"setting-drawer-theme-color-colorBlock",attrs:{content:a===0?e.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):a}},[o("el-tag",{attrs:{color:a===0?e.primaryColor:a}})],1)]}),o("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(a){return e.$refs.echartsTheme.open()}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")])],2)])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",[e._v(e._s(e.$i18nt("gd.settings.homepage","\u4E2A\u4EBA\u9996\u9875")))])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, 0.45)"}},[e._v(" "+e._s(e.$i18nt("gd.settings.homepageTip","\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-flex"},[o("el-cascader",{ref:"cascader",staticStyle:{width:"240px"},attrs:{clearable:"",props:{lazy:!0,lazyLoad:e.lazyLoad}},on:{change:e.onChangeCascader},model:{value:e.homePage,callback:function(a){e.homePage=a},expression:"homePage"}}),o("span",{staticClass:"active-color",staticStyle:{"margin-left":"10px",cursor:"pointer"},on:{click:e.renew}},[e._v(" "+e._s(e.$i18nt("gd.btn.update","\u66F4\u65B0"))+" ")])],1)])],1),o("el-divider"),o("gd-color-editor",{ref:"echartsTheme",on:{ok:e.okColor}})],1)},dt=[],ht=M.normalizeComponent(lt,ut,dt,!1,null,"b784faab",null,null);const H=ht.exports;H.install=function(r){r.component(H.name,H)};const pt={props:{isShow:{type:Boolean,default(){return!1}}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],confirmLoading:!1,visible:!1,userId:"",width:"600px",min:0,messageTip:"",messageTipErr:"",lenMax:0,lenMin:0,maskValue:"",pattern:null,fullscreen:!1,disabled:!0,code:"",num:0,ruleForm:{}}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}},title(){return this.num==1?this.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"):this.$i18nt("gd.account.userBinding","\u7528\u6237\u7ED1\u5B9A")},...M.mapGetters(["labelPosition"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(r,e,o){this.fullscreen=!1,this.userId=r,this.code=e,this.num=o,this.num==1?this.getConfigInfo():this.$nextTick(()=>{this.formUpdPwd.setFieldsValue({account:this.userId})}),this.visible=!0},getConfigInfo(r){Y().then(e=>{this.min=parseInt(e.data.lengthrule.value),this.lenMin=parseInt(e.data.lengthrule.value),this.messageTip=e.data.lengthrule.remark,this.maskValue=e.data.combinationrule.value,this.lenMax=16,this.maskValue.includes("AL")&&this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp(`^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`):this.maskValue.includes("AL")&&this.maskValue.includes("NU")?this.pattern=new RegExp("(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("AL")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*[~!@#$%^&*])(?=.*?[a-z])(?=.*?[A-Z]))"):this.maskValue.includes("NU")&&this.maskValue.includes("SC")?this.pattern=new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])"):this.maskValue.includes("AL")?this.pattern=new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])"):this.maskValue.includes("NU")?this.pattern=new RegExp("\\d"):this.maskValue.includes("SC")&&(this.pattern=new RegExp("[^a-zA-Z0-9]")),this.messageTipErr=e.data.combinationrule.remark})},handleSubmit(){this.$refs.ruleForm.validate(r=>{if(r){this.confirmLoading=!0;let e;this.num==1?e={accountName:this.userId,passWord:this.ruleForm.password,newPassword:this.ruleForm.newPassword}:e={account:this.ruleForm.account,password:this.ruleForm.password,corpCode:this.code},(this.num==1?z:Ie)(e).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message)}).finally(a=>{this.confirmLoading=!1})}})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},compareToFirstPassword(r,e,o){e&&e!==this.ruleForm.newPassword?o(this.$i18nt("gd.account.repeatPawTiperr"," \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")):o()},oldtPassword(r,e,o){e&&e===this.ruleForm.password?o(this.$i18nt("gd.account.repeatPawTipodl","\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")):o()},doEvent(r){let e=r.item.functionName;this[e]&&this[e]()}}};var gt=function(){var e=this,o=e._self._c;return o("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.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[o("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent},slot:"title"}),o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-model-body",class:e.fullscreen?"modal-bodyq":"modal-body",staticStyle:{margin:"10px 10px 10px"}},[o("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,"label-width":"110px","label-position":e.labelPosition},nativeOn:{submit:function(a){a.preventDefault()}}},[e.num==1?o("div",[o("el-form-item",{attrs:{label:e.$i18nt("gd.account.originalPaw","\u539F\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input")}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.newPaw","\u65B0\u5BC6\u7801"),prop:"newPassword",rules:[{required:!0,min:e.min,message:e.messageTip},{pattern:e.pattern,message:e.messageTipErr},{validator:e.oldtPassword}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.newPassword,callback:function(a){e.$set(e.ruleForm,"newPassword",a)},expression:"ruleForm.newPassword"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.account.repeatPaw","\u91CD\u590D\u65B0\u5BC6\u7801"),prop:"confirm",rules:[{required:!0,message:e.$i18nt("gd.account.repeatPawTip","\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801")},{validator:e.compareToFirstPassword}]}},[o("el-input",{attrs:{maxlength:18,"show-password":"",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleForm.confirm,callback:function(a){e.$set(e.ruleForm,"confirm",a)},expression:"ruleForm.confirm"}})],1)],1):o("div",[o("el-form-item",{attrs:{label:e.$i18nt("gd.account.loginID","\u8D26\u53F7"),prop:"account",rules:[{required:!0,message:this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[o("el-input",{attrs:{placeholder:e.$i18nt("gd.login.account","\u8BF7\u8F93\u5165\u8D26\u53F7"),disabled:e.disabled},model:{value:e.ruleForm.account,callback:function(a){e.$set(e.ruleForm,"account",a)},expression:"ruleForm.account"}})],1),o("el-form-item",{attrs:{label:e.$i18nt("gd.login.password","\u5BC6\u7801"),prop:"password",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[o("el-input",{attrs:{maxlength:18,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"show-password":""},model:{value:e.ruleForm.password,callback:function(a){e.$set(e.ruleForm,"password",a)},expression:"ruleForm.password"}})],1)],1)])],1)],1)},ft=[],mt=M.normalizeComponent(pt,gt,ft,!1,null,"1d4e1c11",null,null);const G=mt.exports;const vt={props:{isClear:{type:Number,default:1}},components:{UpdPwd:G},data(){return{visible:!1,qrCodeUrl:"//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",code:"",logTitle:"",num:1,wwLogin:null,confirmLoading:!1,isInitialize:null,pwdExpiration:"",setDate:void 0,currentTime:void 0,diff:void 0,diffDate:void 0,state:"",isWeComLogin:!1,wxUserId:null,appId:"",agentId:"",redirectURL:"",titleWidth:"504px",num1:0}},computed:{style(){return{"--color":this.primaryColor}},titleTip(){return this.num==1?$i18nt("gd.account.loading"):""},...M.mapGetters(["userInfo","language","primaryColor"])},mounted(){},methods:{open(r,e){this.num=e,this.visible=!0,this.titleWidth=this.language=="zh_CN"?350+"px":504+"px",this.num==1&&this.getWeChat(r)},getWeChat(r){let e=this;r.data.forEach((o,a)=>{o.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(e.appId=o.value),o.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(e.agentId=o.value),o.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(e.redirectURL=o.value)}),setTimeout(()=>{e.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:e.appId,agentid:e.agentId,redirect_uri:e.redirectURL,state:"loginState",redirect_type:"callback",panel_size:e.language=="zh_CN"?"small":"middle",lang:e.language=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:o}){e.isWeComLogin=o,e.num1=e.isWeComLogin==!0?1:0},onLoginSuccess({code:o}){e.code=o,e.$refs.updPwd.open(e.userInfo.account,o,2),e.visible=!1},onLoginFail(o){}})},500)},handleCancel(){this.confirmLoading=!1,this.visible=!1,this.$refs.wx_qrcode.innerHTML=""}}};var wt=function(){var e=this,o=e._self._c;return o("div",[o("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",attrs:{visible:e.visible,width:e.titleWidth,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[o("div",{staticClass:"main",style:e.style},[e.num==1?o("div",[o("div",{ref:"wx_qrcode",style:e.num1==0?"height: 290px;":"height: 290px",attrs:{id:"wx_qrcode"}}),o("div",{class:e.num1==0?"div_top":"div_topno"}),o("div",{class:e.num1==0?"div_bottom":""})]):e._e()])]),o("upd-pwd",{ref:"updPwd"})],1)},yt=[],xt=M.normalizeComponent(vt,wt,yt,!1,null,"55ede8aa",null,null);const Ct=xt.exports;const bt={name:"GdSecuritySettings",components:{UpdPwd:G,weChatBind:Ct},data(){return{isShow:!1,num:0,wxUserId:null,obj:{},appId:"",agentId:"",redirectURL:"",enterpriseNum:0,bindTitle:"\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",dicsTitle:""}},watch:{language(r,e){this.changeLanguage()},userInfo(r,e){this.changUserInfo()}},created(){this.init()},mounted(){},computed:{...M.mapGetters(["userInfo","language"])},methods:{updPwd(){this.$refs.updPwd.open(this.userInfo.account,null,1)},bind(){this.$refs.weChatBind.open(this.obj,1)},getConfigInfo(){N({code:"GDS_ENTERPRISE_WECHAT_LOGIN"}).then(e=>{this.enterpriseNum=e.data.value})},getConfigsBy(){D({strCodes:"GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"}).then(e=>{e.success&&(this.obj=e)})},getData(){ee().then(r=>{this.wxuserid=r.data.wxuserid})},changeLanguage(){this.init()},changUserInfo(){this.init()},init(){this.wxuserid=this.userInfo.wxuserid,this.getConfigInfo(),this.getData(),this.getConfigsBy()},getWeChat(r,e){let o=this;r.data.forEach((a,d)=>{a.code=="GDS_ENTERPRISE_WECHAT_CropID"&&(o.appId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_AgentId"&&(o.agentId=a.value),a.code=="GDS_ENTERPRISE_WECHAT_Redirect_URL"&&(o.redirectURL=a.value)}),setTimeout(()=>{o.wwLogin=ww.createWWLoginPanel({el:"#wx_qrcode",params:{login_type:"CorpApp",appid:o.appId,agentid:o.agentId,redirect_uri:o.redirectURL,state:"loginState",redirect_type:"callback",panel_size:"middle",lang:e=="zh_CN"?"zh":"en"},onCheckWeComLogin({isWeComLogin:a}){console.log(a)},onLoginSuccess({code:a}){o.code=a,o.$refs.updPwd.open(o.userInfo.account,a,2),console.log(a)},onLoginFail(a){}})},500)},bindCode(r){r==1||r==0?this.getData():r==-1?this.getConfigsBy():r==2&&this.getConfigsBy()}}};var _t=function(){var e=this,o=e._self._c;return o("div",{staticStyle:{"padding-top":"12px"}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",{staticClass:"grid-content bg-purple"},[e._v(" "+e._s(e.$i18nt("gd.account.passWord","\u8D26\u6237\u5BC6\u7801"))+" ")])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content strength",staticStyle:{color:"rgba(0, 0, 0, .45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.strength","\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6"))+":"+e._s(e.$i18nt("gd.account.strong","\u5F3A"))+" ")])]),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.updPwd}},[e._v(" "+e._s(e.$i18nt("gd.account.changePaw","\u4FEE\u6539\u5BC6\u7801"))+" ")])])])],1),o("el-divider"),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:24}},[o("div",{staticClass:"grid-content bd",staticStyle:{color:"rgba(0, 0, 0, .45)"}},[e._v(" "+e._s(e.$i18nt("gd.account.bindenterpriseWechat","\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1"))+" ")])])],1),o("el-row",{staticStyle:{"margin-top":"6px"},attrs:{gutter:20}},[o("el-col",{attrs:{span:8}},[o("div",{staticClass:"grid-content state"},[e._v(" "+e._s(e.$i18nt("gd.account.currentState","\u5F53\u524D\u72B6\u6001"))+":"+e._s(e.wxUserId==null||e.wxUserId==""?e.$i18nt("gd.state.no","\u5426"):e.$i18nt("gd.state.yes","\u662F"))+" ")])]),e.wxUserId==null||e.wxUserId==""?o("el-col",{attrs:{span:16}},[o("div",{staticClass:"grid-content paw grid-flex"},[o("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:e.bind}},[e._v(e._s(e.$i18nt("gd.account.bind","\u7ED1\u5B9A")))])])]):e._e()],1),o("upd-pwd",{ref:"updPwd",attrs:{isShow:e.isShow},on:{bindCode:e.bindCode}}),o("weChatBind",{ref:"weChatBind",on:{bindCode:e.bindCode}})],1)},$t=[],It=M.normalizeComponent(bt,_t,$t,!1,null,"bab5209a",null,null);const B=It.exports;B.install=function(r){r.component(B.name,B)};exports.GDpackage=W;exports.GDpackage$1=P;exports.GDpackage$2=B;exports.GDpackage$3=H;exports.SysMenuTreeForGrant=it;exports.applyResetPassword=Ce;exports.bindWechatWorkAccount=$e;exports.changeUserBUJob=Se;exports.checkPRCValidation=be;exports.colorList=F;exports.commonjsGlobal=Fe;exports.getAppListByAppsId=Ee;exports.getAugmentedNamespace=Ye;exports.getConfigInfoByCode=N;exports.getConfigsByCode=D;exports.getDefaultExportFromCjs=Xe;exports.getLoginUserV2=re;exports.getPasswordRules=Y;exports.getUserManage=ke;exports.getUserPage=ae;exports.login=K;exports.loginByWeChatWork=_e;exports.logout=Q;exports.oauthAuthorize=se;exports.oauthCodeLogin=ie;exports.postbindUsersToRole=Ae;exports.postunbindUsersFromRole=Le;exports.resetPwdByAccount=xe;exports.sysAppAdd=Oe;exports.sysAppChangeStatus=We;exports.sysAppDelete=Ue;exports.sysAppEdit=Me;exports.sysBookmarkAdd=oe;exports.sysBookmarkDelete=ne;exports.sysBookmarkPage=te;exports.sysMenuAddV2=nt;exports.sysMenuDelete=ot;exports.sysMenuDetail=rt;exports.sysMenuEdit=st;exports.sysMenuListByAppsId=ct;exports.sysUserAdd=ce;exports.sysUserChangeRole=de;exports.sysUserChangeStatus=he;exports.sysUserEdit=le;exports.sysUserExport=ve;exports.sysUserImport=we;exports.sysUserOwnRole=ue;exports.sysUserResetPwd=pe;exports.sysUserSelector=ge;exports.updatePwdByAccount=z;
@@ -1 +0,0 @@
1
- "use strict";const d=require("./chartbi.b5b6fdab.js"),l=require("./messages.1346558e.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.sysConfig.name",prop:"name",label:"\u53C2\u6570\u540D\u79F0",width:"280",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.sysConfig.code",prop:"code",width:"280",label:"\u552F\u4E00\u7F16\u7801",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.sysConfig.value",prop:"value",width:"260",label:"\u53C2\u6570\u503C",align:"left"},{transKey:"gd.sysConfig.groupCode",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",width:"160",type:"slot",slotType:"groupcode",align:"left",showOverflowTooltip:!0},{transKey:"gd.sysConfig.remark",prop:"remark",width:"260",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.sysConfig.name",effectType:"input",prop:"name",label:"\u53C2\u6570\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.code",effectType:"input",prop:"code",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.systemParameter",prop:"sysflag",label:"\u7CFB\u7EDF\u53C2\u6570",effectType:"radio",disabled:!1,dictData:[{name:"\u662F",code:"Y",transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:"N",transKey:"placeholder.no",prefix:"gd"}],rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.groupCode",effectType:"select",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"consts_type",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.sysConfig.value",effectType:"input",prop:"value",label:"\u53C2\u6570\u503C",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.sysConfig.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysConfig:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysConfig:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysConfig:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.sysConfig.name",effectType:"input",prop:"name",label:"\u53C2\u6570\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.sysConfig.code",effectType:"input",prop:"code",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.sysConfig.groupCode",prop:"groupcode",label:"\u6240\u5C5E\u5206\u7C7B",effectType:"select",dictTypeCode:"consts_type",rules:[]}]}}};const u={name:"GdConfig",props:{height:{type:Number,default:100}},mixins:[l.tablesFilter,c],data(){return{selectedRowKeys:[],selectedRows:[],transKey:"gd.btn.add",formLoading:!1,currentNode:null,loadData:t=>l.sysConfigPage(Object.assign(t,this.queryParam)).then(e=>e.data),queryParam:{},sysFlag:{}}},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(t=>(["\u552F\u4E00\u7F16\u7801","\u6240\u5C5E\u5206\u7C7B","\u7CFB\u7EDF\u53C2\u6570"].includes(t.label)&&(t.disabled=this.sysFlag.sysflag==="Y"),t))},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},mounted(){},methods:{onSelectChange(t,e){this.selectedRows=e,this.selectedRowKeys=t},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.sysFlag=t,this.$refs.editForm.open(Object.assign({...t},{groupcode:String(t.groupcode)}))},saveQueries(t){this.queryParam=t,this.refresh()},add(){this.transKey="gd.btn.add",this.sysFlag={},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])},sbumit({data:t,record:e,btn:s},r,a){this.formLoading=!0,(e?l.sysConfigEdit:l.sysConfigAdd)(t).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\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:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let r=[];this.selectedRows.forEach(a=>{let o=l.sysConfigDelete(a).then(n=>n);r.push(o)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const o=a.filter(n=>!n.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh()})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var g=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"code",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"code",row:a}})]}},{key:"value",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"value",row:a}})]}},{key:"remark",fn:function({column:r,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"groupcode",fn:function(r){return[s("el-tag",{style:e._f("dictColor")("consts_type",r.row.groupcode),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("consts_type",r.row.groupcode))+" ")])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.sysConfig.name","\u53C2\u6570\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),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},{key:"filtering",fn:function({colse:r,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}})],1)},p=[],f=d.normalizeComponent(u,g,p,!1,null,"00d35378",null,null);const i=f.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;
@@ -1 +0,0 @@
1
- "use strict";const l=require("./chartbi.b5b6fdab.js"),d=require("./messages.1346558e.js");function c(t){return window.axios({url:"/sysDataSource/page",method:"get",params:t})}function u(t){return window.axios({url:"/sysDataSource/add",method:"post",data:t})}function p(t){return window.axios({url:"/sysDataSource/delete",method:"post",data:t})}function h(t){return window.axios({url:"/sysDataSource/edit",method:"post",data:t})}function g(t){return window.axios({url:"/sysDataSource/testConnection",method:"post",data:t})}function y(t){return window.axios({url:"/sysDataSource/detail",method:"get",params:t})}function f(t){return window.axios({url:"/sysDataSource/getTableColumns",method:"post",data:t})}const m={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{type:"selection-radio",width:"60",fixed:!0},{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",width:"180",type:"slot",slotType:"datasourcetype",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"selectMultiple",dictTypeCode:"datasourcetype"})},{transKey:"gd.dataSource.host",prop:"host",width:"200",label:"\u4E3B\u673A",align:"left"},{transKey:"gd.dataSource.port",prop:"port",width:"120",label:"\u7AEF\u53E3",align:"left"},{transKey:"gd.dataSource.database",prop:"database",width:"180",label:"\u6570\u636E\u5E93",align:"left"},{transKey:"gd.user.status",prop:"statecodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.dataSource.connectionString",prop:"connectstring",width:"260",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.task.description",prop:"description",width:"260",label:"\u63CF\u8FF0",align:"left"}],formColumns:[{transKey:"gd.dataSource.name",effectType:"input",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",effectType:"select",label:"\u6570\u636E\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"datasourcetype",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.dataSource.host",effectType:"input",prop:"host",label:"\u4E3B\u673A",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.port",effectType:"input",prop:"port",label:"\u7AEF\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.database",effectType:"input",prop:"database",label:"\u6570\u636E\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.userName",effectType:"input",prop:"userid",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.paw",effectType:"input",prop:"password",label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}],type:"slot",slotType:"password"},{transKey:"gd.dataSource.extend",effectType:"input",prop:"extraparm",label:"\u6269\u5C55",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.dataSource.connectionString",effectType:"textarea",prop:"connectstring",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.task.description",effectType:"textarea",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDataSource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDataSource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDataSource:delete"}],formButtons:[{displayName:"\u6D4B\u8BD5\u8FDE\u63A5",functionName:"handleConnection",show:!0,transKey:"gd.dataSource.testConnection",icon:"el-icon-connection",validate:!0},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",effectType:"selectMultiple",dictTypeCode:"datasourcetype",rules:[]}]}}};const b={name:"GdDataSource",props:{height:{type:Number,default:100},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},mixins:[d.tablesFilter,m],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},type:"password",loadData:t=>c(Object.assign(t,this.queryParam)).then(e=>(e.success&&this.openMode==2&&this.$emit("changeData",e.data.rows),e.data))}},computed:{getTableColumns(){return this.tableColumns.filter(t=>t.type==="selection"?this.openMode==1:t.type==="selection-radio"?this.openMode!=1:!0)},getHeight(){const t=this.openMode==2?80:0;return this.height-t},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{swichType(){this.type=this.type==="password"?"text":"password"},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(t).then(e=>{const a=y({id:t.id});e.done(a),this.formLoading=!1})},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:(t,e,a)=>{this.delHand(t,e,a)}})},delHand(t,e,a){if(t!=="confirm"){a();return}let r=[];this.selectedRows.forEach(s=>{let o=p(s).then(n=>n);r.push(o)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(s=>{a();const o=s.filter(n=>!n.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},async 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])},sbumit({data:t,record:e,btn:a},r,s){let o=a.item.functionName;this[o]&&this[o]({data:t,record:e,btn:a},r,s)},handleSubmit({data:t,record:e,btn:a},r,s){this.formLoading=!0,(e?h:u)(t).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),s(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},handleConnection({data:t,record:e,btn:a},r,s){this.formLoading=!0,g(t).then(o=>{o.code===400?this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message):this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.formLoading=!1})},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},dictSwitch(t,e){let a=this.$options.filters.dictData(e).filter(r=>r.code==t)[0];return a!=null&&a.colour?a.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const t=typeof this.record.options.val;let e=t==="string"||t==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=e.filter(a=>a!=="")}}};var w=function(){var e=this,a=e._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.getTableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:r,row:s}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"datasourcetype",fn:function({column:r,row:s}){return[e.dictSwitch(s.datasourcetype,"datasourcetype")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.datasourcetype,"datasourcetype")}},[e._v(" "+e._s(e._f("dictType")("datasourcetype",s.datasourcetype))+" ")]):a("span",[e._v(e._s(e._f("dictType")("datasourcetype",s.datasourcetype)))])]}},{key:"statecodes",fn:function({column:r,row:s}){return[e.dictSwitch(s.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.statecodes))+" ")]):a("span",[e._v(e._s(e._f("dictType")("state_code",s.statecodes)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.dataSource.name","\u8FDE\u63A5\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(r){e.$set(e.queryParam,"name",r)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:s}){return[a("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:r,visible:s},on:{save:e.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.formColumns,labelPosition:e.labelPosition,formMode:e.formMode,needLoad:!0},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"password",fn:function({data:r,column:s}){return[a("el-input",{attrs:{type:e.type,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:r[s.prop],callback:function(o){e.$set(r,s.prop,o)},expression:"data[column.prop]"}},[a("i",{staticClass:"el-input__icon gd-icons",class:e.type==="password"?"gd-icon-icon-test2":"gd-icon-icon-test1",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.swichType},slot:"suffix"})])]}}])})],1)},S=[],K=l.normalizeComponent(b,w,S,!1,null,"608adc74",null,null);const i=K.exports;i.install=function(t){t.component(i.name,i)};exports.GDpackage=i;exports.sysDataSourceColumns=f;
@@ -1 +0,0 @@
1
- "use strict";const d=require("./chartbi.b5b6fdab.js"),c=require("./messages.1346558e.js");function u(t){return window.axios({url:"/sysDictType/page",method:"get",params:t})}function h(t){return window.axios({url:"/sysDictType/add",method:"post",data:t})}function g(t){return window.axios({url:"/sysDictType/edit",method:"post",data:t})}function f(t){return window.axios({url:"/sysDictType/delete",method:"post",data:t})}function m(t){return window.axios({url:"/sysDictType/dropDown",method:"get",params:t})}function y(t){return window.axios({url:"/sysDictType/changeStatus",method:"post",data:t})}const b={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.dict.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",width:"300",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dict.code",prop:"code",width:"240",label:"\u552F\u4E00\u7F16\u7801",align:"left",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dict.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.dict.type",prop:"dictType",label:"\u6240\u5C5E\u7C7B\u578B",width:"180",type:"slot",slotType:"dictType",align:"left",dictTypeCode:null,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"radio",dictData:[{name:"\u7CFB\u7EDF\u7C7B\u578B",code:1,transKey:"dict.systemType",prefix:"gd"},{name:"\u4E1A\u52A1\u7C7B\u578B",code:0,transKey:"dict.businessType",prefix:"gd"}]})},{transKey:"gd.dict.state",prop:"stateCodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"stateCodes",align:"center",dictTypeCode:"state_code",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"radio",dictTypeCode:"state_code"})},{transKey:"gd.org.remark",prop:"remark",width:"360",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.dict.displayName",effectType:"input",prop:"name",label:"\u663E\u793A\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,type:"slot",slotType:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dict.code",prop:"code",effectType:"input",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dict.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"blur",type:"number"}]},{transKey:"gd.org.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDictType:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDictType:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDictType:delete"},{displayName:"\u542F\u7528",functionName:"enable",show:!0,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"sysDictType:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!0,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"sysDictType:changeStatus"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dict.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"input",rules:[]},{transKey:"gd.dict.type",prop:"dictType",label:"\u6240\u5C5E\u7C7B\u578B",effectType:"radio",dictData:[{name:"\u7CFB\u7EDF\u7C7B\u578B",code:1,transKey:"dict.systemType",prefix:"gd"},{name:"\u4E1A\u52A1\u7C7B\u578B",code:0,transKey:"dict.businessType",prefix:"gd"}],rules:[]},{transKey:"gd.dict.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"radio",dictTypeCode:"state_code",rules:[]}]}}};function p(t){return window.axios({url:"/sysDictData/page",method:"get",params:t})}function w(t){return window.axios({url:"/sysDictData/add",method:"post",data:t})}function T(t){return window.axios({url:"/sysDictData/edit",method:"post",data:t})}function C(t){return window.axios({url:"/sysDictData/delete",method:"post",data:t})}function k(t){return window.axios({url:"/sysDictData/changeStatus",method:"post",data:t})}const $={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.dict.dictValue",prop:"value",label:"\u5B57\u5178\u503C",width:"300",type:"slot",slotType:"values",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),effectType:"input"},{transKey:"gd.dict.code",prop:"code",width:"120",label:"\u552F\u4E00\u7F16\u7801",align:"left",effectType:"input",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"})},{transKey:"gd.dict.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.dict.colour",prop:"colour",width:"180",label:"\u989C\u8272",align:"left",type:"slot",slotType:"colour"},{transKey:"gd.dict.state",prop:"stateCodes",width:"120",label:"\u72B6\u6001",align:"center",type:"slot",slotType:"stateCodes"},{transKey:"gd.dict.remark",prop:"remark",width:"400",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.dict.dictValue",effectType:"input",prop:"value",label:"\u5B57\u5178\u503C",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,type:"slot",slotType:"value",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dict.code",prop:"code",effectType:"inputnumber",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,defaultValue:"undefined",type:"slot",slotType:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"blur"}]},{transKey:"gd.dict.colour",prop:"colour",effectType:"colorPicker",label:"\u989C\u8272",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]},{transKey:"gd.dict.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"blur",type:"number"}]},{transKey:"gd.dict.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDictData:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDictData:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDictData:delete"},{displayName:"\u542F\u7528",functionName:"enable",show:!0,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"sysDictData:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!0,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"sysDictData:changeStatus"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dict.dictValue",prop:"value",label:"\u5B57\u5178\u503C",effectType:"input",rules:[]},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"inputnumber",rules:[]}]}}};const v={props:{typeId:{type:[String,Number],default:""},record:{type:Object,default:()=>({})},height:{type:Number,default:100}},mixins:[c.tablesFilter,$],data(){return{translationType:"dict",transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>this.typeId===""?new Promise((e,s)=>{this.disableBtn=["\u7F16\u8F91","\u65B0\u589E","\u5220\u9664","\u542F\u7528","\u505C\u7528"],e({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):p(Object.assign(t,this.queryParam,{typeId:this.typeId})).then(e=>(this.disableBtn=this.record.dict_type==1?["\u65B0\u589E","\u5220\u9664","\u542F\u7528","\u505C\u7528"]:[],e.data)),disableBtn:[],disableFormBtn:[],codeRules:!0}},computed:{getFormColumns(){const t={required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"blur"};return this.formColumns.filter(e=>(e.disabled=this.disableFormBtn.length!==0,["\u989C\u8272","\u6392\u5E8F"].includes(e.label)&&(e.disabled=!1),e.prop==="code"&&(e.rules=[this.codeRules?Object.assign({},t,{type:"number"}):t]),e))},getFormButtons(){return this.formButtons},getTableButtons(){return this.tableButtons.filter(t=>(t.show=!this.disableBtn.includes(t.displayName),!0))},...d.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{getInputType(t,e,s){if(!s)return!0;const i=typeof t[e.prop]=="number",a=isNaN(Number(t[e.prop]));return i||!a},lookupSeled(t,e,s){e[s.prop]=t.defaulttext},saveQueries(t){this.queryParam={...t},this.refresh()},enable(){this.editStateCodes({row:this.selectedRows[0]})},deactivated(){this.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:t,row:e}){if(this.record.dict_type==1){this.$message.error(this.$i18nt("gd.https.operableNoTip","\u4E0D\u53EF\u64CD\u4F5C!"));return}const s=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),i=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(s,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:i,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,r,n)=>{if(a!=="confirm"){n();return}r.confirmButtonLoading=!0,r.cancelButtonLoading=!0,r.showCancelButton=!1,k({id:e.id,statecodes:e.statecodes==1?0:1}).then(o=>{r.confirmButtonLoading=!1,r.cancelButtonLoading=!1,r.showCancelButton=!0,n(),o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message)})}})},refreshInit(){this.disableBtn=this.record.dict_type==1?["\u65B0\u589E","\u5220\u9664","\u542F\u7528","\u505C\u7528"]:[],this.disableFormBtn=this.record.dict_type==1?["\u786E\u5B9A"]:[],this.queryParam={},this.refresh()},refresh(){this.$refs.tableManage.refresh()},editForm(t){const e=this.formColumns.filter(s=>s.prop==="code")[0];this.codeRules=this.getInputType(t,e,t),this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},del(){if(this.record.dict_type==1){this.$message.error(this.$i18nt("gd.https.operableNoTip","\u4E0D\u53EF\u64CD\u4F5C!"));return}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:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(a=>{let r=C(a).then(n=>n);i.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const r=a.filter(n=>!n.success);r.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+r[0].message),this.handleOk()})},add(){const t=this.formColumns.filter(e=>e.prop==="code")[0];this.codeRules=this.getInputType({},t,null),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])},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0,(e?T:w)(Object.assign({...t},{typeid:this.typeId})).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},handleOk(){this.$refs.tableManage.refresh()},onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,this.record.dict_type==1){this.disableBtn=["\u65B0\u589E","\u5220\u9664","\u542F\u7528","\u505C\u7528"];return}if(t.length===0){this.disableBtn=[];return}let s=["\u5220\u9664","\u542F\u7528","\u505C\u7528"];if(e.length>1){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}let i=e.filter(r=>r.statecodes==1),a=e.filter(r=>r.statecodes==0);i.length==e.length?s=["\u542F\u7528"]:a.length==e.length&&(s=["\u505C\u7528"]),this.disableBtn=s},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var K=function(){var e=this,s=e._self._c;return s("div",[s("el-divider",{staticClass:"setting-divider"}),s("div",{staticStyle:{"font-size":"16px","font-weight":"700",color:"#303133","margin-bottom":"6px"}},[e._v(" "+e._s(e.$i18nt("gd.dict.dictManagement","\u5B57\u5178\u503C\u7BA1\u7406"))+" ")]),s("el-divider",{staticClass:"setting-divider"}),s("gd-tables",{ref:"tableManage",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"values",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"value",row:a,transKey:`Dynamics.${a.transkey}`,highlight:""},on:{click:e.editForm}})]}},{key:"stateCodes",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"},on:{click:function(a){return a.stopPropagation(),e.editStateCodes(i)}}},[i.row.statecodes?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"colour",fn:function(i){return[i.row.colour?s("el-tag",{style:`background-color:${i.row.colour};border-color:${i.row.colour}`,attrs:{effect:"dark"}},[e._v(" "+e._s(i.row.colour)+" ")]):e._e()]}},{key:"remark",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.dict.dictValue","\u5B57\u5178\u503C"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.value,callback:function(i){e.$set(e.queryParam,"value",i)},expression:"queryParam.value"}}),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.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])}),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.getFormButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,translationType:e.translationType},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"value",fn:function({data:i,column:a,record:r}){return[s("el-input",{directives:[{name:"show",rawName:"v-show",value:!r,expression:"!record"}],attrs:{disabled:a.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:i[a.prop],callback:function(n){e.$set(i,a.prop,n)},expression:"data[column.prop]"}}),r?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:i,name:"value",type:2},on:{lookupSeled:n=>e.lookupSeled(n,i,a)}}):e._e()]}},{key:"code",fn:function({data:i,column:a,record:r}){return[e.getInputType(i,a,r)?s("el-input-number",{attrs:{disabled:a.disabled,type:"number",min:a.min||a.min===0?a.min:-1/0,max:a.max||a.max===0?a.max:1/0,step:a.step||1,precision:a.precision||0,placeholder:e.$i18nt(a.placeholderTransKey,a.placeholder),"controls-position":"right"},model:{value:i[a.prop],callback:function(n){e.$set(i,a.prop,n)},expression:"data[column.prop]"}}):s("el-input",{attrs:{disabled:a.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:i[a.prop],callback:function(n){e.$set(i,a.prop,n)},expression:"data[column.prop]"}})]}}])})],1)},B=[],_=d.normalizeComponent(v,K,B,!1,null,"55b2f52b",null,null);const D=_.exports;const x={props:{height:{type:Number,default:0}},name:"GdDict",mixins:[c.tablesFilter,b],components:{dictColumn:D},data(){return{translationType:"dict",transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},typeId:"",loadData:t=>u(Object.assign(t,this.getQueryParam)).then(e=>e.data),disableBtn:["\u542F\u7528","\u505C\u7528"],disableFormBtn:[],record:{}}},computed:{getQueryParam(){let t=new Map;for(let e in this.queryParam)this.queryParam[e]!==""&&t.set(e,this.queryParam[e]);return Object.fromEntries(t)},labelWidth(){return this.language==="id_ID"?"146px":"120px"},getFormColumns(){return this.formColumns.filter(t=>(t.disabled=this.disableFormBtn.length!==0,this.transKey==="gd.btn.edit"&&t.prop==="code"&&(t.disabled=!0),t))},getFormButtons(){return this.formButtons.filter(t=>(t.show=!this.disableFormBtn.includes(t.displayName),!0))},getTableButtons(){return this.tableButtons.filter(t=>(t.show=!this.disableBtn.includes(t.displayName),!0))},heighted(){return this.height/5},getHeight(){return this.heighted*3-76},heightd(){return this.heighted*2-52},...d.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode","language"])},methods:{lookupSeled(t,e,s){e[s.prop]=t.defaulttext},saveQueries(t){this.queryParam={...t},this.refresh()},enable(){this.editStateCodes({row:this.selectedRows[0]})},deactivated(){this.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:t,row:e}){if(e.dict_type==1){this.$message.error(this.$i18nt("gd.https.operableNoTip","\u4E0D\u53EF\u64CD\u4F5C!"));return}const s=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),i=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(s,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:i,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,r,n)=>{if(a!=="confirm"){n();return}r.confirmButtonLoading=!0,r.cancelButtonLoading=!0,r.showCancelButton=!1,y({id:e.id,statecodes:e.statecodes==1?0:1}).then(o=>{n(),r.confirmButtonLoading=!1,r.cancelButtonLoading=!1,r.showCancelButton=!0,o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message)})}})},rowClick(t,e){this.typeId=t?t.id:"",this.record=t||{},this.$nextTick(()=>{setTimeout(()=>{this.$refs.dictColumn.refreshInit()},0)})},onRowSelect(t,e){let s=0,i=t[t.length-1];i!=null&&(t.length>e.length?s=t.filter(a=>!e.includes(a))[0]:s=e.length>0?e.filter(a=>a.id==i)[0].id:0,s!==0&&(this.typeId=s,this.record=e.filter(a=>a.id==i)[0],this.$nextTick(()=>{setTimeout(()=>{this.$refs.dictColumn.refreshInit()},0)})))},refresh(){this.$refs.table.refresh()},editForm(t,e){this.transKey="gd.btn.edit",this.disableFormBtn=[],this.$refs.editForm.open(t),this.rowClick(t,e)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRows.filter(e=>e.dict_type==1).length>0){this.$message.error(this.$i18nt("gd.https.operableNoTip","\u4E0D\u53EF\u64CD\u4F5C!"));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:(e,s,i)=>{this.delHand(e,s,i)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(r=>{let n=f(r).then(o=>o);i.push(n)});const a=this.selectedRowKeys.filter(r=>r===this.typeId)[0];e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(r=>{s();const n=r.filter(o=>!o.success);n.length===0?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a&&this.rowClick(null)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),this.handleOk()})},add(){this.disableFormBtn=[],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])},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0,(e?g:h)(t).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.formLoading=!1})},cellClassName({row:t,rowIndex:e}){return t.id===this.typeId?"gd-select-row":""},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){if(this.onRowSelect(t,e),this.selectedRowKeys=t,this.selectedRows=e,t.length===0){this.disableBtn=[];return}let s=e.filter(o=>o.dict_type==1),i=["\u5220\u9664","\u542F\u7528","\u505C\u7528"];if(e.length>1){this.disableBtn=s.length>0?i:["\u542F\u7528","\u505C\u7528"];return}let a=[],r=e.filter(o=>o.statecodes==1),n=e.filter(o=>o.statecodes==0);r.length==e.length?a=s.length>0?i:["\u542F\u7528"]:n.length==e.length&&(a=s.length>0?i:["\u505C\u7528"]),this.disableBtn=s.length>0?i:a},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var S=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,cellClassName:e.cellClassName,filtering:!0},on:{onChange:e.onSelectChange,rowClick:e.rowClick},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,transKey:`Dynamics.${a.transKey}`,highlight:""},on:{click:function(r){return e.editForm(a,i)}}})]}},{key:"dictType",fn:function(i){return[i.row.dict_type===1?s("el-tag",{staticStyle:{"background-color":"red","border-color":"red"},attrs:{effect:"dark"}},[e._v(" "+e._s(e.$i18nt("gd.dict.systemType","\u7CFB\u7EDF\u7C7B\u578B"))+" ")]):s("el-tag",{staticStyle:{"background-color":"#52c41a","border-color":"#52c41a"},attrs:{effect:"dark"}},[e._v(" "+e._s(e.$i18nt("gd.dict.businessType","\u4E1A\u52A1\u7C7B\u578B"))+" ")])]}},{key:"stateCodes",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"},on:{click:function(a){return a.stopPropagation(),e.editStateCodes(i)}}},[i.row.statecodes?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"remark",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:a,prevent:!1}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.dict.displayName","\u663E\u793A\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},expression:"queryParam.name"}}),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.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{key:"tfiltering",attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])}),s("dict-column",{ref:"dictColumn",attrs:{typeId:e.typeId,record:e.record,height:e.heightd}})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",labelWidth:e.labelWidth,loading:e.formLoading,transKey:e.transKey,buttons:e.getFormButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,translationType:e.translationType},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"name",fn:function({data:i,column:a,record:r}){return[s("el-input",{directives:[{name:"show",rawName:"v-show",value:!r,expression:"!record"}],attrs:{disabled:a.disabled,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:i[a.prop],callback:function(n){e.$set(i,a.prop,n)},expression:"data[column.prop]"}}),r?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:i,type:2},on:{lookupSeled:n=>e.lookupSeled(n,i,a)}}):e._e()]}}])})],1)},N=[],P=d.normalizeComponent(x,S,N,!1,null,"8ca29825",null,null);const l=P.exports;l.install=function(t){t.component(l.name,l)};exports.GDpackage=l;exports.sysDictDataPage=p;exports.sysDictTypeDropDown=m;exports.sysDictTypePage=u;