gds-plus-design-vue 1.2.6 → 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 -91087
  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.f0045877.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.c41228a0.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.b5a3be02.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.3caa11e1.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.a739f4fc.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.d2ad8c97.mjs → system.config.35b13003.mjs} +7 -6
  238. package/lib/system.datasource.4243937d.js +1 -0
  239. package/lib/{system.datasource.a77831ab.mjs → system.datasource.7f582bef.mjs} +15 -64
  240. package/lib/{system.dict.cb276470.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.9d40595f.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
  250. package/lib/{system.file.8064c8e9.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.2b2fc11a.mjs → system.log.aad4ff54.mjs} +31 -93
  254. package/lib/system.machine.379beacb.js +1 -0
  255. package/lib/{system.machine.0130e762.mjs → system.machine.c47be0cc.mjs} +5 -25
  256. package/lib/{system.notice.5f8cd020.mjs → system.notice.dc1b67cc.mjs} +1075 -1255
  257. package/lib/system.notice.fb151c45.js +1 -0
  258. package/lib/system.noticereceived.3a29d891.js +1 -0
  259. package/lib/{system.noticereceived.51b6353a.mjs → system.noticereceived.e75bf358.mjs} +19 -27
  260. package/lib/{system.onlineuser.c0a69360.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.1169fe47.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.502a69d8.mjs → system.plugin.4b80cd95.mjs} +503 -552
  268. package/lib/system.pos.5a1663d8.js +1 -0
  269. package/lib/{system.pos.8c44c029.mjs → system.pos.a3bafaaa.mjs} +31 -62
  270. package/lib/system.promptmanagement.53c301a3.js +1 -0
  271. package/lib/{system.promptmanagement.d8565db4.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
  272. package/lib/{system.role.19959d7f.mjs → system.role.9edb5922.mjs} +512 -486
  273. package/lib/system.role.e164f059.js +1 -0
  274. package/lib/{system.sumberrules.087015a4.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.4056d586.mjs → system.teammembers.b8e53d99.mjs} +257 -199
  280. package/lib/system.timers.2f884e41.js +38 -0
  281. package/lib/{system.timers.6f61bfe1.mjs → system.timers.551c4a4b.mjs} +2202 -2278
  282. package/lib/system.translation.6e99c852.js +1 -0
  283. package/lib/{system.translation.9b88fbf2.mjs → system.translation.c2c1f40c.mjs} +437 -431
  284. package/lib/{system.user.bdf2613e.mjs → system.user.b99911de.mjs} +1082 -1025
  285. package/lib/system.user.dffc2543.js +14 -0
  286. package/lib/{system.useraffiliation.63b6bb36.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.c36d6792.mjs → system.webresource.8a8d856b.mjs} +177 -219
  290. package/lib/{system.welcome.14785b50.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 +92 -28
  325. package/locale/id_ID.js +76 -12
  326. package/locale/vi_VN.js +2012 -1948
  327. package/locale/zh_CN.js +97 -33
  328. package/package.json +106 -105
  329. package/lib/chartbi.114d32d7.js +0 -60
  330. package/lib/chartbi.eb4dd0af.mjs +0 -27639
  331. package/lib/main.03984fed.js +0 -1
  332. package/lib/main.1050afb3.js +0 -1
  333. package/lib/main.64122541.js +0 -1
  334. package/lib/main.b7d2c6ee.js +0 -1
  335. package/lib/messages.828b6ed8.js +0 -9
  336. package/lib/system.account.3181bcd6.js +0 -216
  337. package/lib/system.account.7c6ea20c.mjs +0 -2552
  338. package/lib/system.config.10f57fa2.js +0 -1
  339. package/lib/system.datasource.d5eea7f2.js +0 -1
  340. package/lib/system.dict.d73658f1.js +0 -1
  341. package/lib/system.duplicatechecking.5c8a3eef.mjs +0 -2142
  342. package/lib/system.duplicatechecking.d24ba6ea.js +0 -1
  343. package/lib/system.email.4bf52f2d.js +0 -41
  344. package/lib/system.email.db5da8d7.mjs +0 -7432
  345. package/lib/system.fieldsecurity.eb217079.js +0 -1
  346. package/lib/system.file.c1884db7.js +0 -1
  347. package/lib/system.log.389af80d.js +0 -1
  348. package/lib/system.machine.49fc6405.js +0 -1
  349. package/lib/system.notice.a89f4826.js +0 -1
  350. package/lib/system.noticereceived.5e0773c3.js +0 -1
  351. package/lib/system.onlineuser.67733846.js +0 -1
  352. package/lib/system.org.ff54d620.js +0 -1
  353. package/lib/system.permissions.cc9a9866.mjs +0 -212
  354. package/lib/system.permissions.e6317c5a.js +0 -9
  355. package/lib/system.plugin.3467d572.js +0 -1
  356. package/lib/system.pos.4aadf86e.js +0 -1
  357. package/lib/system.promptmanagement.9ba710d6.js +0 -1
  358. package/lib/system.role.890c8ca2.js +0 -1
  359. package/lib/system.sumberrules.068ebe4a.js +0 -1
  360. package/lib/system.team.27cd57f7.mjs +0 -1000
  361. package/lib/system.team.2b28502b.js +0 -1
  362. package/lib/system.teammembers.e3baf783.js +0 -1
  363. package/lib/system.timers.cb0a3bd0.js +0 -38
  364. package/lib/system.translation.f3884a0a.js +0 -1
  365. package/lib/system.user.3bd95871.js +0 -14
  366. package/lib/system.useraffiliation.7db6e13c.js +0 -1
  367. package/lib/system.webresource.ede248a8.js +0 -1
  368. package/lib/system.welcome.c9eefa06.js +0 -1
@@ -1,9 +1,12 @@
1
- import { s as T, b as S, d as R, c as L, e as I, f as x, h as v, i as D, j as P, g as N, k as B, l as A, m as F, n as M } from "./system.fieldsecurity.9d40595f.mjs";
2
- import { m as f, n as g, u as p } from "./chartbi.eb4dd0af.mjs";
3
- import { t as k } from "./messages.a739f4fc.mjs";
4
- import { a as w, e as E, f as O } from "./system.notice.5f8cd020.mjs";
5
- import { S as z, b as j, d as q, e as G, p as V, f as H, h as _ } from "./system.account.7c6ea20c.mjs";
6
- const U = {
1
+ import { g as C, f as T, s as S, a as R, b as L, h as I, i as x, j as P, d as D, k as N, l as B, m as M, n as A, p as _ } from "./http.rolemanage.da5c40e9.mjs";
2
+ import { m as f, n as g } from "./components.chartbi.470b96af.mjs";
3
+ import { t as k } from "./utils.mixins.js.be01e599.mjs";
4
+ import { g as v, i as F, p as O, j as E } from "./http.usermanage.f5491144.mjs";
5
+ import { e as z, d as j, a as w } from "./http.orgmanage.0b1df8d5.mjs";
6
+ import { S as q, c as V } from "./http.menumanage.09fffb7d.mjs";
7
+ import { g as G } from "./http.appmanage.9b22ff82.mjs";
8
+ import { u as p } from "./utils.util.js.885de913.mjs";
9
+ const H = {
7
10
  data() {
8
11
  return {
9
12
  tableColumns: [
@@ -213,83 +216,258 @@ const U = {
213
216
  }
214
217
  };
215
218
  const J = {
219
+ name: "GdRole",
220
+ props: {
221
+ height: {
222
+ type: Number,
223
+ default: 100
224
+ },
225
+ openMode: {
226
+ type: String,
227
+ default: "page"
228
+ },
229
+ openSelecteKeys: {
230
+ type: Array,
231
+ default: () => []
232
+ }
233
+ },
234
+ mixins: [k, H],
216
235
  data() {
217
236
  return {
218
- defaultProps: {
219
- children: "children",
220
- label: "title"
221
- },
222
- buttons: [
223
- {
224
- displayName: "\u786E\u5B9A",
225
- functionName: "handleSubmit",
226
- show: !0,
227
- transKey: "gd.btn.confirm",
228
- icon: "el-icon-document-checked"
229
- }
230
- ],
231
- record: {},
232
- visible: !1,
233
- confirmLoading: !1,
234
- fullscreen: !1,
235
- width: "800px",
236
- orgTreeData: [],
237
- checkedKeys: []
237
+ appsId: "",
238
+ transKey: "gd.btn.add",
239
+ formLoading: !1,
240
+ loading: !0,
241
+ selectedRowKeys: [],
242
+ selectedRows: [],
243
+ queryParam: {},
244
+ allRowData: [],
245
+ loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), C(Object.assign(s, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data))),
246
+ isDoc: ""
238
247
  };
239
248
  },
249
+ components: {
250
+ RoleGrant: () => Promise.resolve().then(() => se),
251
+ RoleMenu: () => Promise.resolve().then(() => ue),
252
+ RoleMenuViewForm: () => Promise.resolve().then(() => be),
253
+ UserAuthorization: () => Promise.resolve().then(() => Le),
254
+ DocumentAuthorization: () => Promise.resolve().then(() => Be)
255
+ },
240
256
  computed: {
241
- ...f(["screenHeight", "tableLists"])
257
+ getTableButtons() {
258
+ return this.tableButtons.filter((s) => s.functionName === "grantRoleAppMenu" ? !!this.appsId : s.functionName === "documentAuthorizationMenu" ? this.isDoc == 1 : !0);
259
+ },
260
+ initialLoading() {
261
+ return this.openMode === "page";
262
+ },
263
+ selectedKeep() {
264
+ return this.openMode !== "page";
265
+ },
266
+ getFormColumns() {
267
+ return this.formColumns.filter((s) => (s.prop === "code" && (s.disabled = this.transKey !== "gd.btn.add"), !(this.transKey === "gd.https.copy" && s.prop === "code")));
268
+ },
269
+ getHeight() {
270
+ return this.height;
271
+ },
272
+ ...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
242
273
  },
243
274
  methods: {
244
- handleSubmit() {
245
- const s = this.$refs.tree.getCheckedKeys();
246
- this.$emit(
247
- "ok",
248
- Object.assign(
249
- { ...this.record },
250
- {
251
- checkedKeys: s
252
- }
253
- )
254
- ), this.closed();
275
+ getConfigInfo() {
276
+ v({
277
+ code: "GDS_Enable_Doc_Premissions"
278
+ }).then((e) => {
279
+ e.code === 200 && (this.isDoc = e.data.value);
280
+ });
255
281
  },
256
- getOrgData() {
257
- this.confirmLoading = !0, w().then((s) => {
258
- s.success && (this.orgTreeData = s.data, this.confirmLoading = !1);
282
+ getAppId() {
283
+ v({ code: "App_Id" }).then((s) => {
284
+ s.code === 200 && (this.appsId = s.data ? s.data.value : "");
259
285
  });
260
286
  },
261
- open(s) {
262
- this.record = s, this.checkedKeys = s.checkedKeys, this.visible = !0, this.getOrgData();
287
+ documentAuthorizationMenu() {
288
+ if (this.selectedRowKeys.length === 0) {
289
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
290
+ return;
291
+ }
292
+ if (this.selectedRowKeys.length > 1) {
293
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
294
+ return;
295
+ }
296
+ this.$refs.documentAuthorization.open(this.selectedRows[0]);
263
297
  },
264
- closed() {
265
- this.fullscreen = !1, this.visible = !1;
298
+ userAuthorizationMenu() {
299
+ if (this.selectedRowKeys.length === 0) {
300
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
301
+ return;
302
+ }
303
+ if (this.selectedRowKeys.length > 1) {
304
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
305
+ return;
306
+ }
307
+ this.$refs.userAuthorization.open(this.selectedRows[0]);
266
308
  },
267
- toggleFullscreen() {
268
- this.fullscreen = !this.fullscreen;
309
+ grantRoleMenu() {
310
+ if (this.selectedRowKeys.length === 0) {
311
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
312
+ return;
313
+ }
314
+ if (this.selectedRowKeys.length > 1) {
315
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
316
+ return;
317
+ }
318
+ this.$refs.roleMenu.open(this.selectedRows[0]);
319
+ },
320
+ grantRoleAppMenu() {
321
+ if (this.selectedRowKeys.length === 0) {
322
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
323
+ return;
324
+ }
325
+ if (this.selectedRowKeys.length > 1) {
326
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
327
+ return;
328
+ }
329
+ this.$refs.roleMenu.open(this.selectedRows[0], this.appsId);
330
+ },
331
+ grantRoleGrant() {
332
+ if (this.selectedRowKeys.length === 0) {
333
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
334
+ return;
335
+ }
336
+ if (this.selectedRowKeys.length > 1) {
337
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
338
+ return;
339
+ }
340
+ this.$refs.roleGrant.open(this.selectedRows[0]);
341
+ },
342
+ grantRoleVF() {
343
+ if (this.selectedRowKeys.length === 0) {
344
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
345
+ return;
346
+ }
347
+ if (this.selectedRowKeys.length > 1) {
348
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
349
+ return;
350
+ }
351
+ this.$refs.roleMenuViewForm.open(this.selectedRows[0]);
352
+ },
353
+ saveQueries(s) {
354
+ this.queryParam = { ...s }, this.refresh();
355
+ },
356
+ refresh() {
357
+ this.$refs.table.refresh();
358
+ },
359
+ editForm(s) {
360
+ this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
361
+ },
362
+ del() {
363
+ if (this.selectedRowKeys.length === 0) {
364
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
365
+ return;
366
+ }
367
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
368
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
369
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
370
+ showClose: !1,
371
+ confirmButtonLoading: !1,
372
+ cancelButtonLoading: !1,
373
+ closeOnClickModal: !1,
374
+ type: "warning",
375
+ confirmButtonClass: "el-button--danger",
376
+ customClass: "custom-alert",
377
+ callback: () => {
378
+ },
379
+ beforeClose: (s, e, t) => {
380
+ this.delHand(s, e, t);
381
+ }
382
+ });
383
+ },
384
+ delHand(s, e, t) {
385
+ if (s !== "confirm") {
386
+ t();
387
+ return;
388
+ }
389
+ let i = [];
390
+ this.selectedRows.forEach((n) => {
391
+ let a = T(n).then((l) => l);
392
+ i.push(a);
393
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
394
+ const a = n.filter((l) => !l.success);
395
+ a.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") + a[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
396
+ });
397
+ },
398
+ add() {
399
+ this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
400
+ },
401
+ edit() {
402
+ if (this.selectedRowKeys.length === 0) {
403
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
404
+ return;
405
+ }
406
+ if (this.selectedRowKeys.length > 1) {
407
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
408
+ return;
409
+ }
410
+ this.editForm(this.selectedRows[0]);
411
+ },
412
+ copy() {
413
+ if (this.selectedRowKeys.length === 0) {
414
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
415
+ return;
416
+ }
417
+ if (this.selectedRowKeys.length > 1) {
418
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
419
+ return;
420
+ }
421
+ this.transKey = "gd.https.copy", this.$refs.editForm.open(Object.assign({ ...this.selectedRows[0] }, { roleId: this.selectedRows[0].id }));
422
+ },
423
+ sbumit({ data: s, record: e, btn: t }, i, n) {
424
+ this.formLoading = !0;
425
+ let a = e ? this.transKey === "gd.https.copy" ? S : R : L;
426
+ const l = this.transKey !== "gd.https.edit" ? Object.assign(s, { sysappsid: window.$systemInfo.id }) : s;
427
+ a(l).then((r) => {
428
+ r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), n(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.formLoading = !1;
429
+ });
430
+ },
431
+ onSelectChange(s, e) {
432
+ this.selectedRowKeys = s, this.selectedRows = e, this.$emit("onSelectChange", s, e, this.allRowData);
269
433
  },
270
434
  doEvent(s) {
271
- const e = s.item.functionName;
435
+ let e = s.item.functionName;
272
436
  this[e] && this[e]();
273
437
  }
438
+ },
439
+ created() {
440
+ this.getAppId(), this.getConfigInfo();
274
441
  }
275
442
  };
276
- var Q = function() {
443
+ var U = function() {
277
444
  var e = this, t = e._self._c;
278
- return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
279
- e.visible = i;
280
- }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.rangeRole", "\u6388\u6743\u8303\u56F4"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("el-tree", { ref: "tree", attrs: { data: e.orgTreeData, "show-checkbox": "", "node-key": "id", "default-expand-all": "", "default-checked-keys": e.checkedKeys, props: e.defaultProps } }) : e._e()], 1)], 2)], 1);
281
- }, W = [], X = /* @__PURE__ */ g(
445
+ return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("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, selectedKeep: e.selectedKeep, initialLoading: e.initialLoading }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: i, row: n }) {
446
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
447
+ } }, { key: "operator", fn: function() {
448
+ return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.user.roleName", "\u89D2\u8272\u540D"), clearable: "" }, nativeOn: { keyup: function(i) {
449
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
450
+ } }, model: { value: e.queryParam.name, callback: function(i) {
451
+ e.$set(e.queryParam, "name", i);
452
+ }, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [e.openMode === "page" ? t("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } }) : e._e()], 1)])];
453
+ }, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: n }) {
454
+ return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
455
+ } }]) })], 1), t("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 } }), t("RoleGrant", { ref: "roleGrant", on: { ok: e.refresh } }), t("RoleMenu", { ref: "roleMenu", on: { ok: e.refresh } }), t("RoleMenuViewForm", { ref: "roleMenuViewForm", on: { ok: e.refresh } }), t("UserAuthorization", { ref: "userAuthorization", on: { ok: e.refresh } }), t("DocumentAuthorization", { ref: "documentAuthorization", on: { ok: e.refresh } })], 1);
456
+ }, Q = [], W = /* @__PURE__ */ g(
282
457
  J,
458
+ U,
283
459
  Q,
284
- W,
285
460
  !1,
286
461
  null,
287
- "2b164094",
462
+ "60edeedc",
288
463
  null,
289
464
  null
290
465
  );
291
- const Y = X.exports;
292
- const Z = {
466
+ const m = W.exports;
467
+ m.install = function(s) {
468
+ s.component(m.name, m);
469
+ };
470
+ const X = {
293
471
  data() {
294
472
  return {
295
473
  buttons: [
@@ -385,7 +563,7 @@ const Z = {
385
563
  currentList: {}
386
564
  };
387
565
  },
388
- components: { RoleScope: Y },
566
+ components: { RoleScope: () => Promise.resolve().then(() => ze) },
389
567
  computed: {
390
568
  height() {
391
569
  return this.screenHeight - (this.fullscreen ? 120 : 310);
@@ -396,7 +574,7 @@ const Z = {
396
574
  handleSubmit() {
397
575
  this.confirmLoading = !0;
398
576
  let s = this.$refs.table.tableData;
399
- s.map((e) => (e.addgrant = e.addgrantd.length > 0 ? e.addgrantd.join(",") : null, e.delgrant = e.delgrantd.length > 0 ? e.delgrantd.join(",") : null, e.editgrant = e.editgrantd.length > 0 ? e.editgrantd.join(",") : null, e.getgrant = e.getgrantd.length > 0 ? e.getgrantd.join(",") : null, e.sharegrant = e.sharegrantd.length > 0 ? e.sharegrantd.join(",") : null, e.allocationgrant = e.allocationgrantd.length > 0 ? e.allocationgrantd.join(",") : null, e)), E(
577
+ s.map((e) => (e.addgrant = e.addgrantd.length > 0 ? e.addgrantd.join(",") : null, e.delgrant = e.delgrantd.length > 0 ? e.delgrantd.join(",") : null, e.editgrant = e.editgrantd.length > 0 ? e.editgrantd.join(",") : null, e.getgrant = e.getgrantd.length > 0 ? e.getgrantd.join(",") : null, e.sharegrant = e.sharegrantd.length > 0 ? e.sharegrantd.join(",") : null, e.allocationgrant = e.allocationgrantd.length > 0 ? e.allocationgrantd.join(",") : null, e)), z(
400
578
  Object.assign(
401
579
  { ...this.submitData },
402
580
  {
@@ -417,7 +595,7 @@ const Z = {
417
595
  this.$refs.roleScope.open({ index: t, item: s, checkedKeys: l, data: e, name: n });
418
596
  },
419
597
  getUserControlData() {
420
- this.confirmLoading = !0, O({ roleId: this.record.id }).then((s) => {
598
+ this.confirmLoading = !0, j({ roleId: this.record.id }).then((s) => {
421
599
  s.success ? (s.data.grants.map((e) => (e.addgrantd = e.addgrant ? e.addgrant.split(",") : [], e.delgrantd = e.delgrant ? e.delgrant.split(",") : [], e.editgrantd = e.editgrant ? e.editgrant.split(",") : [], e.getgrantd = e.getgrant ? e.getgrant.split(",") : [], e.sharegrantd = e.sharegrant ? e.sharegrant.split(",") : [], e.allocationgrantd = e.allocationgrant ? e.allocationgrant.split(",") : [], e)), this.loadData = s.data.grants, this.submitData = s.data, this.$nextTick(() => {
422
600
  setTimeout(() => {
423
601
  this.refresh(), this.confirmLoading = !0;
@@ -448,7 +626,7 @@ const Z = {
448
626
  }
449
627
  }
450
628
  };
451
- var ee = function() {
629
+ var Y = function() {
452
630
  var e = this, t = e._self._c;
453
631
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
454
632
  e.visible = i;
@@ -463,18 +641,21 @@ var ee = function() {
463
641
  } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.view", "\u67E5\u770B")) + " ")]) : e._e()], 1)];
464
642
  } };
465
643
  })], null, !0) }) : e._e()], 1)], 2), t("RoleScope", { ref: "roleScope", on: { ok: e.setRoleScop } })], 1);
466
- }, te = [], se = /* @__PURE__ */ g(
644
+ }, Z = [], ee = /* @__PURE__ */ g(
645
+ X,
646
+ Y,
467
647
  Z,
468
- ee,
469
- te,
470
648
  !1,
471
649
  null,
472
- "39b91bb5",
650
+ "5e6737e8",
473
651
  null,
474
652
  null
475
653
  );
476
- const ie = se.exports;
477
- const ne = {
654
+ const te = ee.exports, se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
655
+ __proto__: null,
656
+ default: te
657
+ }, Symbol.toStringTag, { value: "Module" }));
658
+ const ie = {
478
659
  name: "LayoutItem",
479
660
  props: {
480
661
  record: {
@@ -520,7 +701,7 @@ const ne = {
520
701
  }
521
702
  }
522
703
  };
523
- var ae = function() {
704
+ var ne = function() {
524
705
  var e = this, t = e._self._c;
525
706
  return t("div", { style: { "--fadecolor": e.fadeColord } }, [e._l(e.record, function(i) {
526
707
  return [t("div", { staticClass: "list-item" }, [i.menusType !== 1 && i.children && i.children.length > 0 ? t("i", { class: i.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
@@ -529,7 +710,7 @@ var ae = function() {
529
710
  return e.change(n, [i.id]);
530
711
  } }, model: { value: i.checked, callback: function(n) {
531
712
  e.$set(i, "checked", n);
532
- }, expression: "item.checked" } }, [i.iconClass ? t("i", { staticClass: "gd-icons", class: i.iconClass, staticStyle: { "font-size": "15px" } }) : e._e(), e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.title)) + " ")]), i.children && i.children.length > 0 && e.menusType === 1 ? t("el-button", { staticStyle: { "margin-left": "12px", padding: "5px 15px" }, attrs: { size: "mini" } }, [e.hasAll(i) ? t("span", { on: { click: function(n) {
713
+ }, expression: "item.checked" } }, [i.iconClass ? t("i", { staticClass: "gd-icons", class: i.iconClass, staticStyle: { "font-size": "15px" } }) : e._e(), e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.title)) + " ")]), i.children && i.children.length > 0 && i.menusType === 1 ? t("el-button", { staticStyle: { "margin-left": "12px", padding: "5px 15px" }, attrs: { size: "mini" } }, [e.hasAll(i) ? t("span", { on: { click: function(n) {
533
714
  return e.checkedBtn(i, 1);
534
715
  } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")]) : t("span", { on: { click: function(n) {
535
716
  return e.checkedBtn(i, 0);
@@ -539,18 +720,18 @@ var ae = function() {
539
720
  } } }, [n.checked ? t("i", { staticClass: "gd-icons gd-icon-quanxuan active-color" }) : t("div", { staticClass: "item-named-kuang" }), t("div", { staticClass: "item-named-title", class: n.checked ? "active-color" : "" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.title)) + " ")])])];
540
721
  })], 2) : e._e()])]), i.children && i.children.length > 0 && i.children[0].menusType !== 2 ? t("div", { staticClass: "list-more" }, [i.open ? t("LayoutItem", { attrs: { record: i.children, checkedKeys: e.checkedKeys }, on: { open: e.open, change: e.change, checkedBtn: e.checkedBtn } }) : e._e()], 1) : e._e()];
541
722
  })], 2);
542
- }, re = [], le = /* @__PURE__ */ g(
723
+ }, ae = [], re = /* @__PURE__ */ g(
724
+ ie,
543
725
  ne,
544
726
  ae,
545
- re,
546
727
  !1,
547
728
  null,
548
- "c10ba764",
729
+ "ecf30395",
549
730
  null,
550
731
  null
551
732
  );
552
- const $ = le.exports;
553
- const oe = {
733
+ const $ = re.exports;
734
+ const le = {
554
735
  data() {
555
736
  return {
556
737
  buttons: [
@@ -605,7 +786,7 @@ const oe = {
605
786
  t[s].open = !t[s].open, this.menuTreeData = [...t];
606
787
  },
607
788
  handleSubmit() {
608
- this.confirmLoading = !0, T({
789
+ this.confirmLoading = !0, I({
609
790
  id: this.record.id,
610
791
  grantmenuidlist: this.checkedKeys
611
792
  }).then((s) => {
@@ -666,7 +847,7 @@ const oe = {
666
847
  let a = [];
667
848
  t.forEach((d, c) => {
668
849
  const h = this.getMenuIds(d);
669
- t[c].menuIds = h.arr, t[c].menuBtnIds = h.btn, !(this.checkedKeys.filter((C) => h.arr.includes(C)).length === h.arr.length) && h.arr.length > 0 && a.push(d.id);
850
+ t[c].menuIds = h.arr, t[c].menuBtnIds = h.btn, !(this.checkedKeys.filter((K) => h.arr.includes(K)).length === h.arr.length) && h.arr.length > 0 && a.push(d.id);
670
851
  }), this.list = t;
671
852
  const l = this.checkedKeys.filter((d) => e.includes(d)).filter((d) => !a.includes(d)).filter((d, c, h) => h.indexOf(d) === c);
672
853
  this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0;
@@ -682,26 +863,26 @@ const oe = {
682
863
  activeShow: !0,
683
864
  open: !0,
684
865
  uuid: `${p(12)}`
685
- }), this.menuTreeData = [...u], this.handleItem(), this.confirmLoading = !1;
866
+ }), this.menuTreeData = JSON.parse(JSON.stringify(u)), this.handleItem(), this.confirmLoading = !1;
686
867
  });
687
868
  },
688
869
  open(s, e) {
689
870
  this.record = s, this.appsId = e || window.$systemInfo.id, this.visible = !0, this.init();
690
871
  },
691
872
  getMenuTree() {
692
- return z({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
873
+ return q({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
693
874
  },
694
875
  expandedMenuKeys() {
695
- return S({
876
+ return x({
696
877
  id: this.record.id
697
878
  }).then((s) => (s.code === 200 && (this.checkedKeys = s.data), s));
698
879
  },
699
880
  getMenuList() {
700
881
  let s = { AppsId: this.appsId };
701
- return j(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
882
+ return V(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
702
883
  },
703
884
  getAppListByAppsId() {
704
- return q({ appsId: this.appsId }).then((s) => (s.code === 200 && (this.appList = s.data), s));
885
+ return G({ appsId: this.appsId }).then((s) => (s.code === 200 && (this.appList = s.data), s));
705
886
  },
706
887
  getMenuIds(s) {
707
888
  let e = [], t = [];
@@ -730,7 +911,7 @@ const oe = {
730
911
  }
731
912
  }
732
913
  };
733
- var de = function() {
914
+ var oe = function() {
734
915
  var e = this, t = e._self._c;
735
916
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1, "custom-class": e.customClass }, on: { "update:visible": function(i) {
736
917
  e.visible = i;
@@ -745,20 +926,188 @@ var de = function() {
745
926
  })], 2)]), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
746
927
  e.allClose = i;
747
928
  }, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
748
- }, ce = [], he = /* @__PURE__ */ g(
929
+ }, de = [], ce = /* @__PURE__ */ g(
930
+ le,
749
931
  oe,
750
932
  de,
751
- ce,
752
933
  !1,
753
934
  null,
754
- "1e20ac45",
935
+ "948c6f08",
755
936
  null,
756
937
  null
757
938
  );
758
- const ue = he.exports;
939
+ const he = ce.exports, ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
940
+ __proto__: null,
941
+ default: he
942
+ }, Symbol.toStringTag, { value: "Module" }));
759
943
  const fe = {
760
- name: "GdUserRole",
761
- props: {
944
+ data() {
945
+ return {
946
+ buttons: [
947
+ {
948
+ displayName: "\u786E\u5B9A",
949
+ functionName: "handleSubmit",
950
+ show: !0,
951
+ transKey: "gd.btn.confirm",
952
+ icon: "el-icon-document-checked"
953
+ }
954
+ ],
955
+ record: {},
956
+ visible: !1,
957
+ confirmLoading: !1,
958
+ fullscreen: !1,
959
+ width: "94%",
960
+ menuTreeData: [],
961
+ menuTreeDatad: [],
962
+ checkedKeys: [],
963
+ list: [],
964
+ allClose: !1,
965
+ menuAll: [],
966
+ systemMenuAll: [],
967
+ allCheckedKeys: []
968
+ };
969
+ },
970
+ computed: {
971
+ isIndeterminate() {
972
+ return this.allClose ? !1 : this.checkedKeys.length > 0;
973
+ },
974
+ ...f(["screenHeight", "tableLists"])
975
+ },
976
+ components: { LayoutItem: $ },
977
+ methods: {
978
+ async handleSubmit() {
979
+ const s = (e) => (e = e.filter((t, i) => {
980
+ const n = this.checkedKeys.filter((a) => t.id === a)[0];
981
+ return t.type = n ? 1 : 0, t.formlist && t.formlist.length > 0 && (t.formlist = s(t.formlist)), t.viewlist && t.viewlist.length > 0 && (t.viewlist = s(t.viewlist)), t.btnlist && t.btnlist.length > 0 && (t.btnlist = s(t.btnlist)), !0;
982
+ }), e);
983
+ this.confirmLoading = !0, await s(this.menuAll), P({
984
+ roleid: this.record.id,
985
+ list: this.menuAll
986
+ }).then((e) => {
987
+ e.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
988
+ this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message
989
+ ), this.confirmLoading = !1;
990
+ });
991
+ },
992
+ checkedItemBtn(s, e) {
993
+ let t = [...this.checkedKeys].filter((i) => !s.menuBtnIds.includes(i));
994
+ e === 1 && (t = t.concat(s.menuBtnIds)), this.checkedKeys = [...t], this.handleItem();
995
+ },
996
+ openItem(s) {
997
+ let e = [...this.menuTreeData];
998
+ const t = (i) => (i = i.filter((n, a) => (n.id === s.id && (n.open = !n.open), n.children && n.children.length > 0 && (n.children = t(n.children)), !0)), i);
999
+ t(e), this.menuTreeData = [...e];
1000
+ },
1001
+ changeItem(s, e, t = !0) {
1002
+ let i = [...this.checkedKeys];
1003
+ this.checkedKeys.filter((o) => e.includes(o))[0];
1004
+ const n = this.list.filter((o) => e.includes(o.id))[0], a = t && n ? n.menuIds : [];
1005
+ if (s ? i = this.checkedKeys.concat(e).concat(a) : i = this.checkedKeys.filter((o) => !e.includes(o)).filter((o) => !a.includes(o)), this.checkedKeys = [...i], this.handleItem(), n.menusType === 2)
1006
+ return;
1007
+ let l = [];
1008
+ this.findParent(this.menuTreeData, n, l);
1009
+ let r = [], u = [];
1010
+ l.forEach((o) => {
1011
+ this.checkedKeys.filter((h) => o.menuIds.includes(h)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : u.push(o.id);
1012
+ }), r.forEach((o) => {
1013
+ this.changeItem(!0, [o], !1);
1014
+ }), u.forEach((o) => {
1015
+ this.changeItem(!1, [o], !1);
1016
+ });
1017
+ },
1018
+ handleItem() {
1019
+ let s = [...this.menuTreeData];
1020
+ const e = (t) => (t = t.filter((i, n) => {
1021
+ const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
1022
+ return this.checkedKeys.includes(i.id) ? (i.checked = !0, i.isIndeterminate = !1) : (i.checked = !1, i.isIndeterminate = a.length > 0 && i.menuIds.length > 0), i.children && i.children.length > 0 && (i.children = e(i.children)), !0;
1023
+ }), t);
1024
+ e(s), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
1025
+ },
1026
+ changeAll(s) {
1027
+ s ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
1028
+ },
1029
+ init() {
1030
+ this.confirmLoading = !0, Promise.all([this.getList()]).then(async (s) => {
1031
+ this.confirmLoading = !1;
1032
+ let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), t = [];
1033
+ const i = (a) => (a = a.filter((l, r) => {
1034
+ const u = this.checkedKeys.filter((o) => l.id === o)[0];
1035
+ return l.open = !0, l.checked = l.menusType === 1 ? !!u : !1, l.isIndeterminate = !1, t.push(l), l.children && l.children.length > 0 && (l.children = i(l.children)), !0;
1036
+ }), a);
1037
+ await i(e);
1038
+ let n = [];
1039
+ t.forEach((a, l) => {
1040
+ const r = this.getMenuIds(a);
1041
+ t[l].menuIds = r.arr, t[l].menuBtnIds = r.btn, !(this.checkedKeys.filter((d) => r.arr.includes(d)).length === r.arr.length) && r.arr.length > 0 && n.push(a.id);
1042
+ }), this.list = t, this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0, this.menuTreeData = [...e], this.handleItem(), console.log(this.menuAll, "123");
1043
+ });
1044
+ },
1045
+ getList() {
1046
+ return D({ roleId: this.record.id }).then((s) => {
1047
+ if (s.code === 200) {
1048
+ let e = [], t = [];
1049
+ const i = (a, l) => (a = a.filter((r, u) => {
1050
+ r.parentId = l, r.open = !0, r.checked = !1, r.isIndeterminate = !1, r.transkey = r.transkey ? r.transkey : null, r.title = r.name, r.menusType = r.formlist && r.viewlist ? 0 : r.btnlist ? 1 : 2, t.push(r.id), r.type === 1 && e.push(r.id);
1051
+ let o = [];
1052
+ return r.viewlist && r.viewlist.length > 0 && (r.viewlist.map((d) => (d.iconClass = "gd-icon-shitumoshi", d)), o = o.concat(r.viewlist)), r.formlist && r.formlist.length > 0 && (r.formlist.map((d) => (d.iconClass = "gd-icon-biaodanmoshi", d)), o = o.concat(r.formlist)), r.btnlist && r.btnlist.length > 0 && (o = o.concat(r.btnlist)), o.length > 0 && (r.children = i(o, r.id)), !0;
1053
+ }), a);
1054
+ this.menuAll = s.data.list;
1055
+ let n = JSON.parse(JSON.stringify(this.menuAll));
1056
+ i(n, 0), this.checkedKeys = e, this.allCheckedKeys = t, this.menuTreeDatad = [...n];
1057
+ }
1058
+ return s;
1059
+ });
1060
+ },
1061
+ getMenuIds(s) {
1062
+ let e = [], t = [];
1063
+ const i = (n) => (n = n.filter((a, l) => (a.menusType !== 2 ? e.push(a.id) : t.push(a.id), a.children && a.children.length > 0 && (a.children = i(a.children)), !0)), n);
1064
+ return s.children && i(s.children), { arr: e, btn: t };
1065
+ },
1066
+ findParent(s, e, t) {
1067
+ for (let i of s)
1068
+ if (i.id === e.parentId || i.children && i.children.length > 0 && this.findParent(i.children, e, t))
1069
+ return t.unshift(i), !0;
1070
+ return !1;
1071
+ },
1072
+ open(s) {
1073
+ this.record = s, this.visible = !0, this.init();
1074
+ },
1075
+ closed() {
1076
+ this.fullscreen = !1, this.visible = !1, this.menuTreeData = [], this.checkedKeys = [];
1077
+ },
1078
+ toggleFullscreen() {
1079
+ this.fullscreen = !this.fullscreen;
1080
+ },
1081
+ doEvent(s) {
1082
+ const e = s.item.functionName;
1083
+ this[e] && this[e]();
1084
+ }
1085
+ }
1086
+ };
1087
+ var ge = function() {
1088
+ var e = this, t = e._self._c;
1089
+ return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
1090
+ e.visible = i;
1091
+ }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [e.visible ? t("LayoutItem", { attrs: { record: e.menuTreeData, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
1092
+ e.allClose = i;
1093
+ }, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
1094
+ }, pe = [], me = /* @__PURE__ */ g(
1095
+ fe,
1096
+ ge,
1097
+ pe,
1098
+ !1,
1099
+ null,
1100
+ "e6593396",
1101
+ null,
1102
+ null
1103
+ );
1104
+ const ye = me.exports, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1105
+ __proto__: null,
1106
+ default: ye
1107
+ }, Symbol.toStringTag, { value: "Module" }));
1108
+ const _e = {
1109
+ name: "GdUserRole",
1110
+ props: {
762
1111
  height: {
763
1112
  type: Number,
764
1113
  default: 100
@@ -789,7 +1138,7 @@ const fe = {
789
1138
  value: "value"
790
1139
  },
791
1140
  defaultExpandedKeys: "",
792
- loadData: (s) => G({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
1141
+ loadData: (s) => F({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
793
1142
  disableBtn: [],
794
1143
  fileList: [],
795
1144
  needLoad: !1,
@@ -1071,7 +1420,7 @@ const fe = {
1071
1420
  this.$refs.engineSearch.closed();
1072
1421
  return;
1073
1422
  }
1074
- this.$refs.engineSearch.confirmLoading = !0, V({
1423
+ this.$refs.engineSearch.confirmLoading = !0, O({
1075
1424
  roleId: this.openSelecteKeys[0],
1076
1425
  userIdList: s.data
1077
1426
  }).then((e) => {
@@ -1109,7 +1458,7 @@ const fe = {
1109
1458
  i();
1110
1459
  return;
1111
1460
  }
1112
- t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, H({
1461
+ t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, E({
1113
1462
  roleId: s.openSelecteKeys[0],
1114
1463
  userIdList: s.selectedRowKeys
1115
1464
  }).then((n) => {
@@ -1122,7 +1471,7 @@ const fe = {
1122
1471
  created() {
1123
1472
  }
1124
1473
  };
1125
- var ge = function() {
1474
+ var ve = function() {
1126
1475
  var e = this, t = e._self._c;
1127
1476
  return t("div", { staticClass: "gd-page-view", staticStyle: { display: "flex", background: "rgb(245, 245, 245)" } }, [t("div", { staticClass: "page-view-list" }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, showPagination: !1, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
1128
1477
  return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
@@ -1137,18 +1486,18 @@ var ge = function() {
1137
1486
  } }, { key: "status", fn: function({ column: i, row: n }) {
1138
1487
  return [t("span", [e._v(" " + e._s(e._f("dictType")("state_code", n.statecodes)) + " ")])];
1139
1488
  } }]) }), t("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1)]);
1140
- }, pe = [], me = /* @__PURE__ */ g(
1141
- fe,
1142
- ge,
1143
- pe,
1489
+ }, ke = [], we = /* @__PURE__ */ g(
1490
+ _e,
1491
+ ve,
1492
+ ke,
1144
1493
  !1,
1145
1494
  null,
1146
1495
  "e9dd56ab",
1147
1496
  null,
1148
1497
  null
1149
1498
  );
1150
- const K = me.exports;
1151
- const ye = {
1499
+ const $e = we.exports;
1500
+ const Ke = {
1152
1501
  data() {
1153
1502
  return {
1154
1503
  buttons: [],
@@ -1160,7 +1509,7 @@ const ye = {
1160
1509
  selectedRowKeys: []
1161
1510
  };
1162
1511
  },
1163
- components: { UserFormDate: K },
1512
+ components: { UserFormDate: $e },
1164
1513
  computed: {
1165
1514
  height() {
1166
1515
  return this.screenHeight - (this.fullscreen ? 160 : 340);
@@ -1193,23 +1542,26 @@ const ye = {
1193
1542
  }
1194
1543
  }
1195
1544
  };
1196
- var be = function() {
1545
+ var Ce = function() {
1197
1546
  var e = this, t = e._self._c;
1198
1547
  return t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
1199
1548
  e.visible = i;
1200
1549
  }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.userAuthorization", "\u6388\u6743\u7528\u6237"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("UserFormDate", { ref: "userForm", attrs: { height: e.height, openMode: "components", openSelecteKeys: e.selectedRowKeys }, on: { onSelectChange: e.onSelectChange } }) : e._e()], 1)], 2);
1201
- }, ve = [], _e = /* @__PURE__ */ g(
1202
- ye,
1203
- be,
1204
- ve,
1550
+ }, Te = [], Se = /* @__PURE__ */ g(
1551
+ Ke,
1552
+ Ce,
1553
+ Te,
1205
1554
  !1,
1206
1555
  null,
1207
1556
  "46b57430",
1208
1557
  null,
1209
1558
  null
1210
1559
  );
1211
- const ke = _e.exports;
1212
- const we = {
1560
+ const Re = Se.exports, Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1561
+ __proto__: null,
1562
+ default: Re
1563
+ }, Symbol.toStringTag, { value: "Module" }));
1564
+ const Ie = {
1213
1565
  data() {
1214
1566
  return {
1215
1567
  defaultKey: [],
@@ -1324,7 +1676,6 @@ const we = {
1324
1676
  id: ""
1325
1677
  };
1326
1678
  },
1327
- components: { UserFormDate: K },
1328
1679
  computed: {
1329
1680
  height() {
1330
1681
  return this.screenHeight - (this.fullscreen ? 160 : 340);
@@ -1380,7 +1731,7 @@ const we = {
1380
1731
  ...i
1381
1732
  };
1382
1733
  }).map(({ list: t, ...i }) => i);
1383
- this.confirmLoading = !0, R(e).then((t) => {
1734
+ this.confirmLoading = !0, N(e).then((t) => {
1384
1735
  t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
1385
1736
  });
1386
1737
  },
@@ -1392,7 +1743,7 @@ const we = {
1392
1743
  ...i
1393
1744
  };
1394
1745
  }).map(({ list: t, ...i }) => i);
1395
- this.confirmLoading = !0, L(e).then((t) => {
1746
+ this.confirmLoading = !0, B(e).then((t) => {
1396
1747
  t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
1397
1748
  });
1398
1749
  },
@@ -1400,7 +1751,7 @@ const we = {
1400
1751
  this.record = s, this.visible = !0, this.getallTree(), this.getDetail(s);
1401
1752
  },
1402
1753
  getDetail(s) {
1403
- I({ roleId: s.id }).then((e) => {
1754
+ M({ roleId: s.id }).then((e) => {
1404
1755
  if (e.code == 200 && (this.currentPermissions = [], this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys([]), e.data.length > 0)) {
1405
1756
  this.id = e.data[0].id, this.currentPermissions = [];
1406
1757
  const t = e.data.map((n) => {
@@ -1430,7 +1781,7 @@ const we = {
1430
1781
  });
1431
1782
  },
1432
1783
  getallTree() {
1433
- x().then((s) => {
1784
+ A().then((s) => {
1434
1785
  if (s.code == 200) {
1435
1786
  this.restaurants = JSON.parse(JSON.stringify(s.data));
1436
1787
  const e = this.buildTree(JSON.parse(JSON.stringify(s.data)));
@@ -1475,7 +1826,7 @@ const we = {
1475
1826
  n();
1476
1827
  return;
1477
1828
  }
1478
- i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : v({
1829
+ i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : _({
1479
1830
  ids: s.id
1480
1831
  }).then((l) => {
1481
1832
  i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, l.success ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : e.$message.error(e.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + l.message);
@@ -1588,7 +1939,7 @@ const we = {
1588
1939
  });
1589
1940
  return;
1590
1941
  }
1591
- r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, n[0].id === 0 ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : v({
1942
+ r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, n[0].id === 0 ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : _({
1592
1943
  ids: n[0].id
1593
1944
  }).then((o) => {
1594
1945
  r.confirmButtonLoading = !1, r.cancelButtonLoading = !1, r.showCancelButton = !0, o.success ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : a.$message.error(a.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + o.message);
@@ -1656,7 +2007,7 @@ const we = {
1656
2007
  }
1657
2008
  }
1658
2009
  };
1659
- var $e = function() {
2010
+ var xe = function() {
1660
2011
  var e = this, t = e._self._c;
1661
2012
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
1662
2013
  e.visible = i;
@@ -1677,20 +2028,27 @@ var $e = function() {
1677
2028
  }, expression: "items.value" } }, [t("el-radio", { attrs: { label: "1" } }, [t("span", { staticStyle: { color: "rgb(82, 196, 26)" } }, [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))])]), t("el-radio", { attrs: { label: "2" } }, [t("span", { staticStyle: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))])])], 1)], 1)]);
1678
2029
  }), 1)])]);
1679
2030
  }), 0)], 1)])])], 2)], 1);
1680
- }, Ke = [], Ce = /* @__PURE__ */ g(
1681
- we,
1682
- $e,
1683
- Ke,
2031
+ }, Pe = [], De = /* @__PURE__ */ g(
2032
+ Ie,
2033
+ xe,
2034
+ Pe,
1684
2035
  !1,
1685
2036
  null,
1686
- "b1dc77ce",
2037
+ "6afc0af9",
1687
2038
  null,
1688
2039
  null
1689
2040
  );
1690
- const Te = Ce.exports;
1691
- const Se = {
2041
+ const Ne = De.exports, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2042
+ __proto__: null,
2043
+ default: Ne
2044
+ }, Symbol.toStringTag, { value: "Module" }));
2045
+ const Me = {
1692
2046
  data() {
1693
2047
  return {
2048
+ defaultProps: {
2049
+ children: "children",
2050
+ label: "title"
2051
+ },
1694
2052
  buttons: [
1695
2053
  {
1696
2054
  displayName: "\u786E\u5B9A",
@@ -1704,124 +2062,37 @@ const Se = {
1704
2062
  visible: !1,
1705
2063
  confirmLoading: !1,
1706
2064
  fullscreen: !1,
1707
- width: "94%",
1708
- menuTreeData: [],
1709
- menuTreeDatad: [],
1710
- checkedKeys: [],
1711
- list: [],
1712
- allClose: !1,
1713
- menuAll: [],
1714
- systemMenuAll: [],
1715
- allCheckedKeys: []
2065
+ width: "800px",
2066
+ orgTreeData: [],
2067
+ checkedKeys: []
1716
2068
  };
1717
2069
  },
1718
2070
  computed: {
1719
- isIndeterminate() {
1720
- return this.allClose ? !1 : this.checkedKeys.length > 0;
1721
- },
1722
2071
  ...f(["screenHeight", "tableLists"])
1723
2072
  },
1724
- components: { LayoutItem: $ },
1725
2073
  methods: {
1726
- async handleSubmit() {
1727
- const s = (e) => (e = e.filter((t, i) => {
1728
- const n = this.checkedKeys.filter((a) => t.id === a)[0];
1729
- return t.type = n ? 1 : 0, t.formlist && t.formlist.length > 0 && (t.formlist = s(t.formlist)), t.viewlist && t.viewlist.length > 0 && (t.viewlist = s(t.viewlist)), t.btnlist && t.btnlist.length > 0 && (t.btnlist = s(t.btnlist)), !0;
1730
- }), e);
1731
- this.confirmLoading = !0, await s(this.menuAll), D({
1732
- roleid: this.record.id,
1733
- list: this.menuAll
1734
- }).then((e) => {
1735
- e.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
1736
- this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message
1737
- ), this.confirmLoading = !1;
1738
- });
1739
- },
1740
- checkedItemBtn(s, e) {
1741
- let t = [...this.checkedKeys].filter((i) => !s.menuBtnIds.includes(i));
1742
- e === 1 && (t = t.concat(s.menuBtnIds)), this.checkedKeys = [...t], this.handleItem();
1743
- },
1744
- openItem(s) {
1745
- let e = [...this.menuTreeData];
1746
- const t = (i) => (i = i.filter((n, a) => (n.id === s.id && (n.open = !n.open), n.children && n.children.length > 0 && (n.children = t(n.children)), !0)), i);
1747
- t(e), this.menuTreeData = [...e];
2074
+ handleSubmit() {
2075
+ const s = this.$refs.tree.getCheckedKeys();
2076
+ this.$emit(
2077
+ "ok",
2078
+ Object.assign(
2079
+ { ...this.record },
2080
+ {
2081
+ checkedKeys: s
2082
+ }
2083
+ )
2084
+ ), this.closed();
1748
2085
  },
1749
- changeItem(s, e, t = !0) {
1750
- let i = [...this.checkedKeys];
1751
- this.checkedKeys.filter((o) => e.includes(o))[0];
1752
- const n = this.list.filter((o) => e.includes(o.id))[0], a = t && n ? n.menuIds : [];
1753
- if (s ? i = this.checkedKeys.concat(e).concat(a) : i = this.checkedKeys.filter((o) => !e.includes(o)).filter((o) => !a.includes(o)), this.checkedKeys = [...i], this.handleItem(), n.menusType === 2)
1754
- return;
1755
- let l = [];
1756
- this.findParent(this.menuTreeData, n, l);
1757
- let r = [], u = [];
1758
- l.forEach((o) => {
1759
- this.checkedKeys.filter((h) => o.menuIds.includes(h)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : u.push(o.id);
1760
- }), r.forEach((o) => {
1761
- this.changeItem(!0, [o], !1);
1762
- }), u.forEach((o) => {
1763
- this.changeItem(!1, [o], !1);
2086
+ getOrgData() {
2087
+ this.confirmLoading = !0, w().then((s) => {
2088
+ s.success && (this.orgTreeData = s.data, this.confirmLoading = !1);
1764
2089
  });
1765
2090
  },
1766
- handleItem() {
1767
- let s = [...this.menuTreeData];
1768
- const e = (t) => (t = t.filter((i, n) => {
1769
- const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
1770
- return this.checkedKeys.includes(i.id) ? (i.checked = !0, i.isIndeterminate = !1) : (i.checked = !1, i.isIndeterminate = a.length > 0 && i.menuIds.length > 0), i.children && i.children.length > 0 && (i.children = e(i.children)), !0;
1771
- }), t);
1772
- e(s), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
2091
+ open(s) {
2092
+ this.record = s, this.checkedKeys = s.checkedKeys, this.visible = !0, this.getOrgData();
1773
2093
  },
1774
- changeAll(s) {
1775
- s ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
1776
- },
1777
- init() {
1778
- this.confirmLoading = !0, Promise.all([this.getList()]).then(async (s) => {
1779
- this.confirmLoading = !1;
1780
- let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), t = [];
1781
- const i = (a) => (a = a.filter((l, r) => {
1782
- const u = this.checkedKeys.filter((o) => l.id === o)[0];
1783
- return l.open = !0, l.checked = l.menusType === 1 ? !!u : !1, l.isIndeterminate = !1, t.push(l), l.children && l.children.length > 0 && (l.children = i(l.children)), !0;
1784
- }), a);
1785
- await i(e);
1786
- let n = [];
1787
- t.forEach((a, l) => {
1788
- const r = this.getMenuIds(a);
1789
- t[l].menuIds = r.arr, t[l].menuBtnIds = r.btn, !(this.checkedKeys.filter((d) => r.arr.includes(d)).length === r.arr.length) && r.arr.length > 0 && n.push(a.id);
1790
- }), this.list = t, this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0, this.menuTreeData = [...e], this.handleItem(), console.log(this.menuAll, "123");
1791
- });
1792
- },
1793
- getList() {
1794
- return P({ roleId: this.record.id }).then((s) => {
1795
- if (s.code === 200) {
1796
- let e = [], t = [];
1797
- const i = (a, l) => (a = a.filter((r, u) => {
1798
- r.parentId = l, r.open = !0, r.checked = !1, r.isIndeterminate = !1, r.transkey = r.transkey ? r.transkey : null, r.title = r.name, r.menusType = r.formlist && r.viewlist ? 0 : r.btnlist ? 1 : 2, t.push(r.id), r.type === 1 && e.push(r.id);
1799
- let o = [];
1800
- return r.viewlist && r.viewlist.length > 0 && (r.viewlist.map((d) => (d.iconClass = "gd-icon-shitumoshi", d)), o = o.concat(r.viewlist)), r.formlist && r.formlist.length > 0 && (r.formlist.map((d) => (d.iconClass = "gd-icon-biaodanmoshi", d)), o = o.concat(r.formlist)), r.btnlist && r.btnlist.length > 0 && (o = o.concat(r.btnlist)), o.length > 0 && (r.children = i(o, r.id)), !0;
1801
- }), a);
1802
- this.menuAll = s.data.list;
1803
- let n = JSON.parse(JSON.stringify(this.menuAll));
1804
- i(n, 0), this.checkedKeys = e, this.allCheckedKeys = t, this.menuTreeDatad = [...n];
1805
- }
1806
- return s;
1807
- });
1808
- },
1809
- getMenuIds(s) {
1810
- let e = [], t = [];
1811
- const i = (n) => (n = n.filter((a, l) => (a.menusType !== 2 ? e.push(a.id) : t.push(a.id), a.children && a.children.length > 0 && (a.children = i(a.children)), !0)), n);
1812
- return s.children && i(s.children), { arr: e, btn: t };
1813
- },
1814
- findParent(s, e, t) {
1815
- for (let i of s)
1816
- if (i.id === e.parentId || i.children && i.children.length > 0 && this.findParent(i.children, e, t))
1817
- return t.unshift(i), !0;
1818
- return !1;
1819
- },
1820
- open(s) {
1821
- this.record = s, this.visible = !0, this.init();
1822
- },
1823
- closed() {
1824
- this.fullscreen = !1, this.visible = !1, this.menuTreeData = [], this.checkedKeys = [];
2094
+ closed() {
2095
+ this.fullscreen = !1, this.visible = !1;
1825
2096
  },
1826
2097
  toggleFullscreen() {
1827
2098
  this.fullscreen = !this.fullscreen;
@@ -1832,270 +2103,25 @@ const Se = {
1832
2103
  }
1833
2104
  }
1834
2105
  };
1835
- var Re = function() {
2106
+ var Ae = function() {
1836
2107
  var e = this, t = e._self._c;
1837
2108
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
1838
2109
  e.visible = i;
1839
- }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [e.visible ? t("LayoutItem", { attrs: { record: e.menuTreeData, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
1840
- e.allClose = i;
1841
- }, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
1842
- }, Le = [], Ie = /* @__PURE__ */ g(
1843
- Se,
1844
- Re,
1845
- Le,
1846
- !1,
1847
- null,
1848
- "e6593396",
1849
- null,
1850
- null
1851
- );
1852
- const xe = Ie.exports;
1853
- const De = {
1854
- name: "GdRole",
1855
- props: {
1856
- height: {
1857
- type: Number,
1858
- default: 100
1859
- },
1860
- openMode: {
1861
- type: String,
1862
- default: "page"
1863
- },
1864
- openSelecteKeys: {
1865
- type: Array,
1866
- default: () => []
1867
- }
1868
- },
1869
- mixins: [k, U],
1870
- data() {
1871
- return {
1872
- appsId: "",
1873
- transKey: "gd.btn.add",
1874
- formLoading: !1,
1875
- loading: !0,
1876
- selectedRowKeys: [],
1877
- selectedRows: [],
1878
- queryParam: {},
1879
- allRowData: [],
1880
- loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), N(Object.assign(s, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data))),
1881
- isDoc: ""
1882
- };
1883
- },
1884
- components: { RoleGrant: ie, RoleMenu: ue, RoleMenuViewForm: xe, UserAuthorization: ke, DocumentAuthorization: Te },
1885
- computed: {
1886
- getTableButtons() {
1887
- return this.tableButtons.filter((s) => s.functionName === "grantRoleAppMenu" ? !!this.appsId : s.functionName === "documentAuthorizationMenu" ? this.isDoc == 1 : !0);
1888
- },
1889
- initialLoading() {
1890
- return this.openMode === "page";
1891
- },
1892
- selectedKeep() {
1893
- return this.openMode !== "page";
1894
- },
1895
- getFormColumns() {
1896
- return this.formColumns.filter((s) => (s.prop === "code" && (s.disabled = this.transKey !== "gd.btn.add"), !(this.transKey === "gd.https.copy" && s.prop === "code")));
1897
- },
1898
- getHeight() {
1899
- return this.height;
1900
- },
1901
- ...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
1902
- },
1903
- methods: {
1904
- getConfigInfo() {
1905
- _({
1906
- code: "GDS_Enable_Doc_Premissions"
1907
- }).then((e) => {
1908
- e.code === 200 && (this.isDoc = e.data.value);
1909
- });
1910
- },
1911
- getAppId() {
1912
- _({ code: "App_Id" }).then((s) => {
1913
- s.code === 200 && (this.appsId = s.data ? s.data.value : "");
1914
- });
1915
- },
1916
- documentAuthorizationMenu() {
1917
- if (this.selectedRowKeys.length === 0) {
1918
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1919
- return;
1920
- }
1921
- if (this.selectedRowKeys.length > 1) {
1922
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
1923
- return;
1924
- }
1925
- this.$refs.documentAuthorization.open(this.selectedRows[0]);
1926
- },
1927
- userAuthorizationMenu() {
1928
- if (this.selectedRowKeys.length === 0) {
1929
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1930
- return;
1931
- }
1932
- if (this.selectedRowKeys.length > 1) {
1933
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
1934
- return;
1935
- }
1936
- this.$refs.userAuthorization.open(this.selectedRows[0]);
1937
- },
1938
- grantRoleMenu() {
1939
- if (this.selectedRowKeys.length === 0) {
1940
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1941
- return;
1942
- }
1943
- if (this.selectedRowKeys.length > 1) {
1944
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
1945
- return;
1946
- }
1947
- this.$refs.roleMenu.open(this.selectedRows[0]);
1948
- },
1949
- grantRoleAppMenu() {
1950
- if (this.selectedRowKeys.length === 0) {
1951
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1952
- return;
1953
- }
1954
- if (this.selectedRowKeys.length > 1) {
1955
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
1956
- return;
1957
- }
1958
- this.$refs.roleMenu.open(this.selectedRows[0], this.appsId);
1959
- },
1960
- grantRoleGrant() {
1961
- if (this.selectedRowKeys.length === 0) {
1962
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1963
- return;
1964
- }
1965
- if (this.selectedRowKeys.length > 1) {
1966
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
1967
- return;
1968
- }
1969
- this.$refs.roleGrant.open(this.selectedRows[0]);
1970
- },
1971
- grantRoleVF() {
1972
- if (this.selectedRowKeys.length === 0) {
1973
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
1974
- return;
1975
- }
1976
- if (this.selectedRowKeys.length > 1) {
1977
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
1978
- return;
1979
- }
1980
- this.$refs.roleMenuViewForm.open(this.selectedRows[0]);
1981
- },
1982
- saveQueries(s) {
1983
- this.queryParam = { ...s }, this.refresh();
1984
- },
1985
- refresh() {
1986
- this.$refs.table.refresh();
1987
- },
1988
- editForm(s) {
1989
- this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
1990
- },
1991
- del() {
1992
- if (this.selectedRowKeys.length === 0) {
1993
- this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
1994
- return;
1995
- }
1996
- this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
1997
- confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
1998
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1999
- showClose: !1,
2000
- confirmButtonLoading: !1,
2001
- cancelButtonLoading: !1,
2002
- closeOnClickModal: !1,
2003
- type: "warning",
2004
- confirmButtonClass: "el-button--danger",
2005
- customClass: "custom-alert",
2006
- callback: () => {
2007
- },
2008
- beforeClose: (s, e, t) => {
2009
- this.delHand(s, e, t);
2010
- }
2011
- });
2012
- },
2013
- delHand(s, e, t) {
2014
- if (s !== "confirm") {
2015
- t();
2016
- return;
2017
- }
2018
- let i = [];
2019
- this.selectedRows.forEach((n) => {
2020
- let a = B(n).then((l) => l);
2021
- i.push(a);
2022
- }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
2023
- const a = n.filter((l) => !l.success);
2024
- a.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") + a[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
2025
- });
2026
- },
2027
- add() {
2028
- this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
2029
- },
2030
- edit() {
2031
- if (this.selectedRowKeys.length === 0) {
2032
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
2033
- return;
2034
- }
2035
- if (this.selectedRowKeys.length > 1) {
2036
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2037
- return;
2038
- }
2039
- this.editForm(this.selectedRows[0]);
2040
- },
2041
- copy() {
2042
- if (this.selectedRowKeys.length === 0) {
2043
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
2044
- return;
2045
- }
2046
- if (this.selectedRowKeys.length > 1) {
2047
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
2048
- return;
2049
- }
2050
- this.transKey = "gd.https.copy", this.$refs.editForm.open(Object.assign({ ...this.selectedRows[0] }, { roleId: this.selectedRows[0].id }));
2051
- },
2052
- sbumit({ data: s, record: e, btn: t }, i, n) {
2053
- this.formLoading = !0;
2054
- let a = e ? this.transKey === "gd.https.copy" ? A : F : M;
2055
- const l = this.transKey !== "gd.https.edit" ? Object.assign(s, { sysappsid: window.$systemInfo.id }) : s;
2056
- a(l).then((r) => {
2057
- r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), n(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.formLoading = !1;
2058
- });
2059
- },
2060
- onSelectChange(s, e) {
2061
- this.selectedRowKeys = s, this.selectedRows = e, this.$emit("onSelectChange", s, e, this.allRowData);
2062
- },
2063
- doEvent(s) {
2064
- let e = s.item.functionName;
2065
- this[e] && this[e]();
2066
- }
2067
- },
2068
- created() {
2069
- this.getAppId(), this.getConfigInfo();
2070
- }
2071
- };
2072
- var Pe = function() {
2073
- var e = this, t = e._self._c;
2074
- return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("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, selectedKeep: e.selectedKeep, initialLoading: e.initialLoading }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: i, row: n }) {
2075
- return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
2076
- } }, { key: "operator", fn: function() {
2077
- return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.user.roleName", "\u89D2\u8272\u540D"), clearable: "" }, nativeOn: { keyup: function(i) {
2078
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
2079
- } }, model: { value: e.queryParam.name, callback: function(i) {
2080
- e.$set(e.queryParam, "name", i);
2081
- }, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [e.openMode === "page" ? t("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } }) : e._e()], 1)])];
2082
- }, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: n }) {
2083
- return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
2084
- } }]) })], 1), t("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 } }), t("RoleGrant", { ref: "roleGrant", on: { ok: e.refresh } }), t("RoleMenu", { ref: "roleMenu", on: { ok: e.refresh } }), t("RoleMenuViewForm", { ref: "roleMenuViewForm", on: { ok: e.refresh } }), t("UserAuthorization", { ref: "userAuthorization", on: { ok: e.refresh } }), t("DocumentAuthorization", { ref: "documentAuthorization", on: { ok: e.refresh } })], 1);
2085
- }, Ne = [], Be = /* @__PURE__ */ g(
2086
- De,
2087
- Pe,
2088
- Ne,
2110
+ }, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.rangeRole", "\u6388\u6743\u8303\u56F4"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("el-tree", { ref: "tree", attrs: { data: e.orgTreeData, "show-checkbox": "", "node-key": "id", "default-expand-all": "", "default-checked-keys": e.checkedKeys, props: e.defaultProps } }) : e._e()], 1)], 2)], 1);
2111
+ }, Fe = [], Oe = /* @__PURE__ */ g(
2112
+ Me,
2113
+ Ae,
2114
+ Fe,
2089
2115
  !1,
2090
2116
  null,
2091
- "00f39bc6",
2117
+ "2b164094",
2092
2118
  null,
2093
2119
  null
2094
2120
  );
2095
- const m = Be.exports;
2096
- m.install = function(s) {
2097
- s.component(m.name, m);
2098
- };
2121
+ const Ee = Oe.exports, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2122
+ __proto__: null,
2123
+ default: Ee
2124
+ }, Symbol.toStringTag, { value: "Module" }));
2099
2125
  export {
2100
- m as G
2126
+ m as R
2101
2127
  };