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 +0,0 @@
1
- "use strict";const f=require("./system.fieldsecurity.eb217079.js"),h=require("./chartbi.114d32d7.js"),v=require("./messages.828b6ed8.js"),y=require("./system.notice.a89f4826.js"),p=require("./system.account.3181bcd6.js"),K={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,width:"200",renderHeader:(s,...e)=>this.renderHeader(s,...e,{effectType:"input"})},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",width:"200",renderHeader:(s,...e)=>this.renderHeader(s,...e,{effectType:"input"})},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",width:"260"}],formColumns:[{transKey:"gd.user.roleName",effectType:"input",prop:"name",label:"\u89D2\u8272\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.org.code",prop:"code",effectType:"input",label:"\u552F\u4E00\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.sort",prop:"sort",effectType:"inputnumber",label:"\u6392\u5E8F",defaultValue:100,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",type:"number"}]},{transKey:"gd.org.remark",effectType:"textarea",prop:"remark",label:"\u5907\u6CE8",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:"sysRole:add"},{displayName:"\u590D\u5236\u89D2\u8272",functionName:"copy",show:!0,transKey:"gd.user.copyRole",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysRole:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userAuthorizationMenu",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-user",name:"sysRole:userMenu"},{displayName:"\u6388\u6743\u6587\u6863",functionName:"documentAuthorizationMenu",show:!0,transKey:"gd.user.documentAuthorization",icon:"el-icon-document",name:"sysRole:documentMenu"},{displayName:"\u6388\u6743\u83DC\u5355",functionName:"grantRoleMenu",show:!0,transKey:"gd.user.menuRole",icon:"el-icon-monitor",name:"sysRole:grantMenu"},{displayName:"\u6388\u6743APP\u83DC\u5355",functionName:"grantRoleAppMenu",show:!0,transKey:"gd.user.menuRoleApp",icon:"el-icon-mobile-phone",name:"sysRole:grantMenu"},{displayName:"\u6388\u6743\u6570\u636E",functionName:"grantRoleGrant",show:!0,transKey:"gd.user.dataRole",icon:"el-icon-tickets",name:"sysRole:grantData"},{displayName:"\u6388\u6743\u89C6\u56FE/\u8868\u5355",functionName:"grantRoleVF",show:!0,transKey:"gd.user.menuRolevf",icon:"el-icon-setting",name:"sysRole:grantMenu"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"input",rules:[]}]}}};const C={data(){return{defaultProps:{children:"children",label:"title"},buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"800px",orgTreeData:[],checkedKeys:[]}},computed:{...h.mapGetters(["screenHeight","tableLists"])},methods:{handleSubmit(){const s=this.$refs.tree.getCheckedKeys();this.$emit("ok",Object.assign({...this.record},{checkedKeys:s})),this.closed()},getOrgData(){this.confirmLoading=!0,y.getOrgTree().then(s=>{s.success&&(this.orgTreeData=s.data,this.confirmLoading=!1)})},open(s){this.record=s,this.checkedKeys=s.checkedKeys,this.visible=!0,this.getOrgData()},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var T=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("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)},R=[],S=h.normalizeComponent(C,T,R,!1,null,"2b164094",null,null);const L=S.exports;const I={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"94%",loadData:[],submitData:{},loadSoData:s=>(this.confirmLoading=!0,new Promise((e,t)=>{this.confirmLoading=!1,e({pageNo:1,pageSize:500,totalRows:0,rows:this.loadData})})),columns:[{transKey:"gd.btn.entity",prop:"sysCodeGenName",label:"\u5B9E\u4F53",align:"left",type:"slot",slotType:"sysCodeGenName",width:120},{transKey:"gd.btn.query",prop:"getgrantd",label:"\u67E5\u8BE2",align:"left",type:"slot",slotType:"getgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.add",prop:"addgrantd",label:"\u65B0\u589E",align:"left",type:"slot",slotType:"addgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.edit",prop:"editgrantd",label:"\u7F16\u8F91",align:"left",type:"slot",slotType:"editgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.del",prop:"delgrantd",label:"\u5220\u9664",align:"left",type:"slot",slotType:"delgrantd",width:270,showTooltip:!1},{transKey:"gd.relation.assignment",prop:"allocationgrantd",label:"\u5206\u6D3E",align:"left",type:"slot",slotType:"allocationgrantd",width:270,showTooltip:!1},{transKey:"gd.btn.share",prop:"sharegrantd",label:"\u5171\u4EAB",align:"left",type:"slot",slotType:"sharegrantd",width:270,showTooltip:!1}],currentList:{}}},components:{RoleScope:L},computed:{height(){return this.screenHeight-(this.fullscreen?120:310)},...h.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){this.confirmLoading=!0;let s=this.$refs.table.tableData;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)),y.saveOrgDetail(Object.assign({...this.submitData},{grants:s})).then(e=>{this.confirmLoading=!1,e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message)})},setRoleScop(s){this.confirmLoading=!0;const e=this.$refs.table.tableData;e[s.index][s.name]=[...s.checkedKeys].join(","),this.loadData=[...e],this.refresh(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F"))},openList(s,e,t){const i=this.$refs.table.tableData,n=`${s.prop.replace("grantd","")}custom`,a=i[t][n],l=a?a.split(",").map(Number):[];this.$refs.roleScope.open({index:t,item:s,checkedKeys:l,data:e,name:n})},getUserControlData(){this.confirmLoading=!0,y.getOrgDetail({roleId:this.record.id}).then(s=>{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(()=>{setTimeout(()=>{this.refresh(),this.confirmLoading=!0},1e3),setTimeout(()=>{this.confirmLoading=!1},1200)})):(this.$message.error(s.message),this.confirmLoading=!1)})},open(s){this.record=s,this.visible=!0,this.getUserControlData()},closed(){this.fullscreen=!1,this.visible=!1},refresh(s=!0){this.$refs.table?this.$refs.table.refresh(s):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},getDictionary(s){return this.$options.filters.dictData(s)},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var x=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.dataRole","\u6388\u6743\u6570\u636E"),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"}],staticStyle:{"margin-top":"-12px"}},[e.visible?t("gd-tables",{ref:"table",attrs:{dataSource:e.loadSoData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.columns,height:e.height,filtering:!1,initialLoading:!1,showPagination:!1,rowKey:"sysCodeGenId",disabledRefresh:"",disabledColumnSettings:""},scopedSlots:e._u([e._l(e.columns,function(i){return{key:i.prop,fn:function({column:n,row:a,index:l}){return[i.prop==="sysCodeGenName"?t("div",[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.syscodegenname))+" ")]):t("div",{staticClass:"grant-select"},[t("el-select",{staticStyle:{flex:"1"},attrs:{placeholder:e.$i18nt("gd.xlsxImport.mapFieldsTip","\u8BF7\u9009\u62E9\u6620\u5C04\u5B57\u6BB5"),filterable:"",clearable:"",multiple:""},model:{value:a[i.prop],callback:function(r){e.$set(a,i.prop,r)},expression:"row[item.prop]"}},[e._l(e.getDictionary("data_scope_type"),function(r){return[t("el-option",{attrs:{label:e.$i18nt(`Dynamics.${r.transkey}`,r.name),value:r.code}})]})],2),a[i.prop].includes("5")?t("el-button",{staticClass:"active-color flex-center",attrs:{type:"text"},on:{click:function(r){return e.openList(i,a,l)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.view","\u67E5\u770B"))+" ")]):e._e()],1)]}}})],null,!0)}):e._e()],1)],2),t("RoleScope",{ref:"roleScope",on:{ok:e.setRoleScop}})],1)},D=[],P=h.normalizeComponent(I,x,D,!1,null,"39b91bb5",null,null);const N=P.exports;const B={name:"LayoutItem",props:{record:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]}},data(){return{}},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.1)},menusType(){return this.record[0]?this.record[0].menusType:0},...h.mapGetters(["primaryColor"])},methods:{hasAll(s){return!(this.checkedKeys.filter(t=>s.menuBtnIds.includes(t)).length>=s.menuBtnIds.length)},checkedBtn(s,e){this.$emit("checkedBtn",s,e)},change(s,e){this.$emit("change",s,e)},open(s){this.$emit("open",s)},checked(s){return!!this.checkedKeys.filter(t=>t===s.id)[0]},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),n=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${n},${e})`}}};var F=function(){var e=this,t=e._self._c;return t("div",{style:{"--fadecolor":e.fadeColord}},[e._l(e.record,function(i){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){return e.open(i)}}}):e._e(),e.menusType!==2?t("div",{staticClass:"item-name"},[t("el-checkbox",{attrs:{indeterminate:i.isIndeterminate},on:{change:function(n){return e.change(n,[i.id])}},model:{value:i.checked,callback:function(n){e.$set(i,"checked",n)},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){return e.checkedBtn(i,1)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")]):t("span",{on:{click:function(n){return e.checkedBtn(i,0)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")])]):e._e()],1):e._e(),t("div",{staticClass:"item-data"},[i.children&&i.children.length>0&&i.children[0].menusType===2?t("div",{staticClass:"item-data-list"},[e._l(i.children,function(n){return[t("div",{staticClass:"item-name item-named",on:{click:function(a){return e.change(!n.checked,[n.id])}}},[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))+" ")])])]})],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()]})],2)},A=[],M=h.normalizeComponent(B,F,A,!1,null,"c10ba764",null,null);const k=M.exports;const E={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"94%",menuTreeData:[],checkedKeys:[],list:[],allClose:!1,menuAll:[],systemMenuAll:[],allCheckedKeys:[],appsId:"",appList:[]}},computed:{customClass(){return`role_${h.uuid(12)}`},isIndeterminate(){return this.allClose?!1:this.checkedKeys.length>0},fadeColord(){return this.fadeColor(this.primaryColor,.1)},...h.mapGetters(["screenHeight","tableLists","primaryColor"])},components:{LayoutItem:k},methods:{elScrollIntoView(s){this.$nextTick(()=>{setTimeout(()=>{const e=document.querySelector(`.${this.customClass} .${s}`);e&&e.scrollIntoView({behavior:"smooth"})},100)})},appOpen(s,e){let t=[...this.menuTreeData];t[s].open=!t[s].open,this.menuTreeData=[...t]},handleSubmit(){this.confirmLoading=!0,f.sysRoleGrantMenu({id:this.record.id,grantmenuidlist:this.checkedKeys}).then(s=>{s.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")+s.message),this.confirmLoading=!1})},checkedItemBtn(s,e){let t=[...this.checkedKeys].filter(i=>!s.menuBtnIds.includes(i));e===1&&(t=t.concat(s.menuBtnIds)),this.checkedKeys=[...t],this.handleItem()},openItem(s){let e=[...this.menuTreeData];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);t(e),this.menuTreeData=[...e]},changeItem(s,e,t=!0){let i=[...this.checkedKeys];this.checkedKeys.filter(o=>e.includes(o))[0];const n=this.list.filter(o=>e.includes(o.id))[0],a=t&&n?n.menuIds:[];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)return;let l=[];this.findParent(this.menuTreeData,n,l);let r=[],g=[];l.forEach(o=>{this.checkedKeys.filter(u=>o.menuIds.includes(u)).length===o.menuIds.length&&o.menuIds.length>0&&!o.checked?r.push(o.id):g.push(o.id)}),r.forEach(o=>{this.changeItem(!0,[o],!1)}),g.forEach(o=>{this.changeItem(!1,[o],!1)})},handleItem(){let s=[...this.menuTreeData];const e=t=>(t=t.filter((i,n)=>{const a=this.checkedKeys.filter(l=>i.menuIds.includes(l));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}),t);s.forEach(t=>{e(t.children)}),this.menuTreeData=[...s],this.allClose=this.checkedKeys.length===this.allCheckedKeys.length&&this.allCheckedKeys.length>0},changeAll(s){s?this.checkedKeys=[...this.allCheckedKeys]:this.checkedKeys=[],this.handleItem()},init(){this.confirmLoading=!0,Promise.all([this.getMenuTree(),this.expandedMenuKeys(),this.getMenuList(),this.getAppListByAppsId()]).then(async s=>{let e=[],t=[];const i=d=>(d=d.filter((c,u)=>{const b=this.checkedKeys.filter(_=>c.id===_)[0];return c.open=!0,c.checked=c.type===1?!!b:!1,c.isIndeterminate=!1,c.menusType=c.type,e.push(c.id),t.push(c),c.children&&c.children.length>0&&(c.children=i(c.children)),!0}),d);let n=this.menuAll.filter(d=>{const c=this.systemMenuAll.filter(u=>u.id===d.id)[0];return c&&(d.application=c.application),!!c});await i(n),this.allCheckedKeys=e;let a=[];t.forEach((d,c)=>{const u=this.getMenuIds(d);t[c].menuIds=u.arr,t[c].menuBtnIds=u.btn,!(this.checkedKeys.filter($=>u.arr.includes($)).length===u.arr.length)&&u.arr.length>0&&a.push(d.id)}),this.list=t;const l=this.checkedKeys.filter(d=>e.includes(d)).filter(d=>!a.includes(d)).filter((d,c,u)=>u.indexOf(d)===c);this.checkedKeys=l,this.allClose=this.checkedKeys.length===e.length&&e.length>0;let r=[],g=this.appList.filter(d=>{const c=n.filter(u=>u.application===d.code);return c.length>0?(r=r.concat([...c]),d.children=[...c],d.open=!0,d.uuid=`${h.uuid(12)}`,!0):!1});const o=n.filter(d=>!r.filter(u=>u.id===d.id));o.length>0&&g.push({name:"\u7A7A\u767D",transkey:"gd.echarts.none",children:o,activeShow:!0,open:!0,uuid:`${h.uuid(12)}`}),this.menuTreeData=[...g],this.handleItem(),this.confirmLoading=!1})},open(s,e){this.record=s,this.appsId=e||window.$systemInfo.id,this.visible=!0,this.init()},getMenuTree(){return p.SysMenuTreeForGrant({roleId:this.record.id}).then(s=>(s.code===200&&(this.menuAll=s.data),s))},expandedMenuKeys(){return f.sysRoleOwnMenu({id:this.record.id}).then(s=>(s.code===200&&(this.checkedKeys=s.data),s))},getMenuList(){let s={AppsId:this.appsId};return p.sysMenuListByAppsId(s).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getAppListByAppsId(){return p.getAppListByAppsId({appsId:this.appsId}).then(s=>(s.code===200&&(this.appList=s.data),s))},getMenuIds(s){let e=[],t=[];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);return s.children&&i(s.children),{arr:e,btn:t}},findParent(s,e,t){for(let i of s)if(i.id===e.parentId||i.children&&i.children.length>0&&this.findParent(i.children,e,t))return t.unshift(i),!0;return!1},closed(){this.fullscreen=!1,this.visible=!1,this.menuTreeData=[],this.checkedKeys=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen},fadeColor(s,e){let t=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),n=parseInt(s.substring(5,7),16);return`rgba(${t},${i},${n},${e})`},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var O=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1,"custom-class":e.customClass},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.dataRole","\u6388\u6743\u6570\u636E"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0,btnFlex:"width:auto"},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},scopedSlots:e._u([{key:"operator",fn:function(){return[t("el-dropdown",{attrs:{placement:"bottom"},on:{command:e.elScrollIntoView}},[t("el-button",{staticStyle:{margin:"0 1px 0 0",padding:"6px 8px","font-size":"13px"},attrs:{type:"primary"}},[t("i",{staticClass:"gd-icons gd-icon-dingwei1",staticStyle:{"font-size":"14px"}}),e._v(" "+e._s(e.$i18nt("gd.web.location","\u5B9A\u4F4D"))+" "),t("i",{staticClass:"el-icon-arrow-down"})]),t("el-dropdown-menu",{style:{"--dilute":e.fadeColord,minWidth:"120px"},attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.menuTreeData,function(i){return t("el-dropdown-item",{key:i.uuid,attrs:{command:i.uuid}},[t("i",{staticClass:"gd-icons el-icon-right",staticStyle:{"font-size":"14px"}}),i.activeShow?t("span",[e._v(e._s(e.$i18nt(i.transkey,i.name)))]):t("span",[e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.name)))])])}),1)],1)]},proxy:!0}])})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"400px"}},[t("div",{staticClass:"app-list"},[e._l(e.menuTreeData,function(i,n){return[n!=0?t("el-divider"):e._e(),t("div",{staticClass:"app-list-item",class:i.uuid},[t("div",{staticClass:"app-list-name"},[i.children&&i.children.length>0?t("i",{class:i.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(a){return e.appOpen(n,i)}}}):e._e(),e._v(" "+e._s(i.name)+" ")]),i.open?t("div",{staticStyle:{"padding-left":"20px"}},[e.visible?t("LayoutItem",{attrs:{record:i.children,checkedKeys:e.checkedKeys},on:{open:e.openItem,change:e.changeItem,checkedBtn:e.checkedItemBtn}}):e._e()],1):e._e()])]})],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){e.allClose=i},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},z=[],j=h.normalizeComponent(E,O,z,!1,null,"1e20ac45",null,null);const q=j.exports;const G={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},openMode:{type:String,default:"page"}},mixins:[v.tablesFilter],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:s=>p.getUserManage({roleId:this.openSelecteKeys[0]}).then(e=>(this.getRowId(e.data),{pageNo:1,pageSize:1e3,totalRows:0,rows:e.data})),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.nickname",prop:"nickname",label:"\u6635\u79F0",align:"left",type:"slot",slotType:"nickname",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"sex",label:"\u6027\u522B",align:"left",type:"slot",slotType:"sex",showOverflowTooltip:!0},{transKey:"gd.user.organization",prop:"orgname",label:"\u6240\u5C5E\u673A\u6784",align:"left",type:"slot",slotType:"orgname",showOverflowTooltip:!0},{transKey:"gd.user.status",prop:"status",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status",showOverflowTooltip:!0}],formColumnsuser:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\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.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"}],disabledRowId:[],sysCodeGenName:"sys_user"}},components:{},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getQueryParam(){let s=new Map;for(let e in this.queryParam)s.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(s)},getFormColumns(){return this.formColumnsuser.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(s=>(s.show=!this.disableBtn.includes(s.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...h.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(s){let e=[];s.filter(t=>!this.disabledRowId.includes(t.id)).forEach(t=>{e.push(t.id)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(s){this.queryParam={...s},this.refresh()},refresh(){this.$refs.table.refresh()},getOrgTree(){y.getOrgTree({}).then(s=>{if(s.code===200){const e=t=>(t=t.filter((i,n)=>(i.value=String(i.value),i.children&&i.children.length>0&&(i.children=e(i.children)),!0)),t);this.orgTree=e(s.data)}this.loading=!1})},handleNodeClick(s){this.queryParam.orgId===s.id?(delete this.queryParam.orgId,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{orgId:s.id}),this.refresh()},handleOk(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()},lookupSeled(s){if(s.fkData.length===0){this.$refs.engineSearch.closed();return}this.$refs.engineSearch.confirmLoading=!0,p.postbindUsersToRole({roleId:this.openSelecteKeys[0],userIdList:s.data}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let s=this;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:(e,t,i)=>{if(e!=="confirm"){i();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,p.postunbindUsersFromRole({roleId:s.openSelecteKeys[0],userIdList:s.selectedRowKeys}).then(n=>{n.success?(s.$message.success(s.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),s.disabledRowId=s.disabledRowId.filter(a=>!s.selectedRows.filter(r=>r.id===a)[0]),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,i(),s.refresh()):s.$message.error(s.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n.message)})}})}},created(){}};var V=function(){var e=this,t=e._self._c;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(){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)])]},proxy:!0},{key:"name",fn:function({column:i,row:n}){return[t("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.name)+" ")])]}},{key:"nickname",fn:function({column:i,row:n}){return[t("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.nickname)+" ")])]}},{key:"orgname",fn:function({column:i,row:n}){return[t("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(n.orgname)+" ")])]}},{key:"sex",fn:function({column:i,row:n}){return[t("span",[e._v(" "+e._s(e._f("dictType")("gender",n.gender))+" ")])]}},{key:"status",fn:function({column:i,row:n}){return[t("span",[e._v(" "+e._s(e._f("dictType")("state_code",n.statecodes))+" ")])]}}])}),t("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},H=[],U=h.normalizeComponent(G,V,H,!1,null,"e9dd56ab",null,null);const w=U.exports;const J={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserFormDate:w},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...h.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed(),this.$emit("ok")},open(s){this.record=s,this.visible=!0,this.selectedRowKeys=[s.id],this.$nextTick(()=>{setTimeout(()=>{this.$refs.userForm.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(s){this.selectedRowKeys=s},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var Q=function(){var e=this,t=e._self._c;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){e.visible=i},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)},W=[],X=h.normalizeComponent(J,Q,W,!1,null,"46b57430",null,null);const Y=X.exports;const Z={data(){return{defaultKey:[],buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedPath:"/",pathDialogVisible:!1,tempSelectedPath:"",folderTree:[],treeProps:{label:"name",children:"children"},permissions:{ReadMetaData:"allow",ManagePrem:"deny"},cardList:[{name:"\u901A\u7528\u6743\u9650",transkey:"gd.user.generalPermissions",id:"1",list:[{value:"",name:"\u67E5\u770B",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_readmetadata_Name",code:"readmetadata",icon:"el-icon-view"},{value:"",name:"\u91CD\u547D\u540D",code:"rename",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_rename_Name",icon:"el-icon-edit"},{value:"",name:"\u5220\u9664",code:"delete",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_delete_Name",icon:"el-icon-delete-solid"},{value:"",name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_manageprem_Name",icon:"el-icon-user-solid"},{value:"",name:"\u79FB\u52A8",code:"move",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_move_Name",icon:"el-icon-rank"}]},{name:"\u6587\u4EF6\u5939\u7279\u6B8A\u6743\u9650",transkey:"gd.user.folderSpecialPermissions",id:"2",list:[{value:"",name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_createfile_Name",icon:"el-icon-document-add"},{value:"",name:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",code:"createsubfolder",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_createsubfolder_Name",icon:"el-icon-folder-add"}]},{name:"\u6587\u4EF6\u7279\u6B8A\u6743\u9650",transkey:"gd.user.fileSpecialPermissions",id:"3",list:[{value:"",name:"\u4E0B\u8F7D",code:"download",transkey:"Sys_Tables_sys_doc_role_premissions_Fields_download_Name",icon:"el-icon-download"}]}],restaurants:[],objectId:"0",currentPermissions:[],id:""}},components:{UserFormDate:w},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...h.mapGetters(["screenHeight"])},methods:{querySearch(s,e){},createFilter(s){return e=>e.name.toLowerCase().indexOf(s.toLowerCase())===0},handleSelect(s){console.log(s)},keyuprefresh(){},buildTree(s){const e=s.find(a=>a.parentid===null);if(!e)throw new Error("No root node found (parentid: null)");const t={};s.forEach(a=>{t[a.id]={name:a.name,id:a.id,children:[]}}),s.forEach(a=>{if(a.parentid===null)return;const l=t[a.parentid];l?l.children.some(r=>r.id===a.id)||l.children.push(t[a.id]):t[e.id].children.push(t[a.id])});function i(a){a.children&&a.children.length>0&&(a.children.sort((l,r)=>l.name.localeCompare(r.name)),a.children.forEach(l=>i(l)))}const n={name:e.name,id:e.id,children:t[e.id].children};return i(n),[n]},handleSubmit(){this.id!=""?this.edit():this.add()},add(){const e=this.currentPermissions.map(t=>{const i=t.list.reduce((n,a)=>(n[a.code]=a.value,n),{});return{...t,...i}}).map(({list:t,...i})=>i);this.confirmLoading=!0,f.docObjectsRolesGrantDocsPermission(e).then(t=>{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})},edit(){const e=this.currentPermissions.map(t=>{const i=t.list.reduce((n,a)=>(n[a.code]=a.value,n),{});return{...t,...i}}).map(({list:t,...i})=>i);this.confirmLoading=!0,f.docObjectsRolesBatchEdit(e).then(t=>{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})},open(s){this.record=s,this.visible=!0,this.getallTree(),this.getDetail(s)},getDetail(s){f.sysDocObjectsRolesGetByRoleId({roleId:s.id}).then(e=>{if(e.code==200&&(this.currentPermissions=[],this.$refs.elTreeRef&&this.$refs.elTreeRef.setCheckedKeys([]),e.data.length>0)){this.id=e.data[0].id,this.currentPermissions=[];const t=e.data.map(n=>{const a=[{name:"\u67E5\u770B",code:"readmetadata",value:n.readmetadata},{name:"\u91CD\u547D\u540D",code:"rename",value:n.rename},{name:"\u5220\u9664",code:"delete",value:n.delete},{name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",value:n.manageprem},{name:"\u79FB\u52A8",code:"move",value:n.move},{name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",value:n.createfile},{name:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",code:"createsubfolder",value:n.createsubfolder},{name:"\u4E0B\u8F7D",code:"download",value:n.download}];return{id:n.id,name:n.name,ischeck:!1,sysdocobjectid:n.sysdocobjectid,sysroleid:n.sysroleid,list:a}});this.currentPermissions=t,this.handlePermissionClick(this.currentPermissions[0]);const i=t.map(n=>n.sysdocobjectid);this.$refs.elTreeRef&&this.$refs.elTreeRef.setCheckedKeys(i)}})},getallTree(){f.sysDocObjectsAllDocList().then(s=>{if(s.code==200){this.restaurants=JSON.parse(JSON.stringify(s.data));const e=this.buildTree(JSON.parse(JSON.stringify(s.data)));let t=[];e[0]&&e[0].children&&t.push(e[0].id),this.defaultKey=t,this.folderTree=e,console.log(t),this.selectedPath="/"+s.data[0].name}})},closed(){this.cardList.forEach(s=>{Array.isArray(s.list)&&s.list.forEach(e=>{e.value=""})}),this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()},openPathDialog(){this.pathDialogVisible=!0,this.tempSelectedPath=this.selectedPath},delList(s){let e=this;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,i,n)=>{if(t!=="confirm"){n();return}i.confirmButtonLoading=!0,i.cancelButtonLoading=!0,i.showCancelButton=!1,s.id===0?e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):f.docObjectsRolesDel({ids:s.id}).then(l=>{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)}),n();let a=0;for(let l=0;l<e.currentPermissions.length;l++)e.currentPermissions[l].sysdocobjectid===s.sysdocobjectid&&(a=l);console.log(a),e.currentPermissions=e.currentPermissions.filter(l=>l.sysdocobjectid!==s.sysdocobjectid),e.currentPermissions.length==0&&e.cardList.forEach(l=>{Array.isArray(l.list)&&l.list.forEach(r=>{r.value=""})}),e.currentPermissions.length>0&&e.currentPermissions[a-1]?this.handlePermissionClick(e.currentPermissions[a-1]):e.currentPermissions.length>0&&e.currentPermissions[a]&&this.handlePermissionClick(e.currentPermissions[a]),e.cancelNodeCheck(s.sysdocobjectid)}})},cancelNodeCheck(s){const e=this.$refs.elTreeRef;e&&e.setChecked(s,!1)},handlecheck(s){console.log(s)},handleDirectoryCheck(s,e){let t=s.name;if(e){const a=this.restaurants.find(r=>r.id===s.id);let l=a?a.parentid:"";(l!=""||l==0)&&this.restaurants.forEach(r=>{r.id==l&&(t=r.name+"/"+s.name)})}const i=s.id,n=JSON.parse(JSON.stringify(this.currentPermissions)).filter(a=>a.sysdocobjectid===s.id);if(e&&n.length===0){const a={sysdocobjectid:i,sysroleid:this.record.id,name:t,ischeck:!0,id:0,list:[{name:"\u67E5\u770B",code:"readmetadata",value:""},{name:"\u91CD\u547D\u540D",code:"rename",value:""},{name:"\u5220\u9664",code:"delete",value:""},{name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",value:""},{name:"\u79FB\u52A8",code:"move",value:""},{name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",value:""},{name:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",code:"createsubfolder",value:""},{name:"\u4E0B\u8F7D",code:"download",value:""}]};this.currentPermissions.push(a),this.currentPermissions.forEach(l=>{l.ischeck=!1,l.sysdocobjectid===i&&(l.ischeck=!0)}),this.cardList.forEach(l=>{Array.isArray(l.list)&&l.list.forEach(r=>{r.value=""})})}else if(!e&&n.length>0&&this.currentPermissions.length>0){let a=this;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:(l,r,g)=>{if(l!=="confirm"){g(),setTimeout(()=>{this.$nextTick(()=>{this.$refs.elTreeRef.setChecked(s.id,!0)})});return}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")):f.docObjectsRolesDel({ids:n[0].id}).then(o=>{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)}),g(),this.nextclickdel(i)}})}},nextclickdel(s){this.currentPermissions=this.currentPermissions.filter(t=>t.sysdocobjectid!==s),this.currentPermissions.forEach(t=>{t.ischeck=!1}),this.currentPermissions[this.currentPermissions.length-1].ischeck=!0;const e={};this.currentPermissions[this.currentPermissions.length-1].list.forEach(t=>{e[t.name]=t.value}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(i=>{i.value=""})}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(i=>{const n=e[i.name];n!==void 0&&n!==""&&n!==null&&(i.value=n.toString())})})},handleNodeClick(s,e){this.objectId=s.id;let t=[],i=e;for(;i;)t.unshift(i.data.name),i=i.parent;this.tempSelectedPath=""+t.join("/")},handlePermissionClick(s){this.currentPermissions.forEach(t=>{t.ischeck=!1}),s.ischeck=!0;const e={};s.list.forEach(t=>{e[t.name]=t.value}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(i=>{i.value=""})}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(i=>{const n=e[i.name];n!=null&&(i.value=n.toString())})})},confirmPath(){this.selectedPath=this.tempSelectedPath,this.pathDialogVisible=!1},handleReadMetaDataChange(s,e){s.target.tagName==="INPUT"&&s.target.type==="radio"&&(e.value===""?e.value=s.target.value:e.value=null,setTimeout(()=>{if(this.currentPermissions.length>0){const t=this.currentPermissions.find(i=>i.ischeck);if(t){const i=t.list.find(n=>n.name===e.name);i&&(i.value=e.value)}}},10))}}};var ee=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.documentAuthorization","\u6388\u6743\u6587\u6863"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{staticClass:"main-layout"},[t("div",{staticClass:"directory-tree-section"},[t("div",{staticClass:"section-header"},[e._v(e._s(e.$i18nt("gd.user.selectDirectory","\u9009\u62E9\u76EE\u5F55")))]),t("div",{staticClass:"tree-list"},[t("el-tree",{ref:"elTreeRef",attrs:{"check-strictly":"",data:e.folderTree,"node-key":"id","default-expanded-keys":e.defaultKey,"show-checkbox":"",props:e.treeProps},on:{"check-change":e.handleDirectoryCheck,"node-click":e.handleNodeClick}})],1)]),t("div",{staticClass:"directory-list"},[t("div",{staticClass:"preview-card"},[t("el-alert",{attrs:{title:e.$i18nt("gd.user.permissionPreview","\u6743\u9650\u9884\u89C8"),type:"info","show-icon":"",effect:"dark",closable:!1}}),e.currentPermissions.length>0?t("div",{staticClass:"permission-tags"},e._l(e.currentPermissions,function(i){return t("div",{key:i.sysdocobjectid,staticClass:"permission-tags-item",class:{checked:i.ischeck},on:{click:function(n){return e.handlePermissionClick(i)}}},[t("div",{staticClass:"item-name"},[e._v(e._s(i.name))]),t("div",{staticClass:"permission-tags-item-content"},e._l(i.list,function(n,a){return t("div",{key:a},[t("span",[e._v(e._s(n.name))]),n.value=="1"?t("el-tag",{attrs:{type:"success",effect:"dark",size:"mini"}},[e._v(e._s(e.$i18nt("gd.user.allow","\u5141\u8BB8")))]):e._e(),n.value=="2"?t("el-tag",{attrs:{type:"danger",effect:"dark",size:"mini"}},[e._v(e._s(e.$i18nt("gd.user.refuse","\u62D2\u7EDD")))]):e._e()],1)}),0),t("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return e.delList(i)}}})])}),0):t("div",{staticClass:"empty"},[t("div",{staticClass:"empty-item"},[t("div",{staticClass:"empty-icon"},[t("i",{staticClass:"el-icon-receiving"})]),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])])],1),t("div",{staticClass:"permission-section"},[t("el-alert",{attrs:{title:e.$i18nt("gd.user.setOperationPermissions","\u8BBE\u7F6E\u64CD\u4F5C\u6743\u9650"),type:"info","show-icon":"",effect:"dark",closable:!1}}),t("div",{staticClass:"kuang"},e._l(e.cardList,function(i,n){return t("div",{key:n},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("h4",[e._v(e._s(e.$i18nt(i.transkey,i.name)))])]),t("div",{staticClass:"permission-list"},[t("div",{staticClass:"permission-category"},e._l(i.list,function(a,l){return t("el-card",{key:l,staticClass:"permission-item",attrs:{shadow:"hover"}},[t("div",{staticClass:"perm-info"},[t("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px","margin-right":"6px"}}),t("div",{staticClass:"perm-name"},[e._v(e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.name)))])]),t("div",{staticClass:"perm-actions"},[t("el-radio-group",{nativeOn:{click:function(r){return e.handleReadMetaDataChange(r,a)}},model:{value:a.value,callback:function(r){e.$set(a,"value",r)},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)])}),1)])])}),0)],1)])])],2)],1)},te=[],se=h.normalizeComponent(Z,ee,te,!1,null,"b1dc77ce",null,null);const ie=se.exports;const ne={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"94%",menuTreeData:[],menuTreeDatad:[],checkedKeys:[],list:[],allClose:!1,menuAll:[],systemMenuAll:[],allCheckedKeys:[]}},computed:{isIndeterminate(){return this.allClose?!1:this.checkedKeys.length>0},...h.mapGetters(["screenHeight","tableLists"])},components:{LayoutItem:k},methods:{async handleSubmit(){const s=e=>(e=e.filter((t,i)=>{const n=this.checkedKeys.filter(a=>t.id===a)[0];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}),e);this.confirmLoading=!0,await s(this.menuAll),f.sysRoleRoleBindViewOnBtn({roleid:this.record.id,list:this.menuAll}).then(e=>{e.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")+e.message),this.confirmLoading=!1})},checkedItemBtn(s,e){let t=[...this.checkedKeys].filter(i=>!s.menuBtnIds.includes(i));e===1&&(t=t.concat(s.menuBtnIds)),this.checkedKeys=[...t],this.handleItem()},openItem(s){let e=[...this.menuTreeData];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);t(e),this.menuTreeData=[...e]},changeItem(s,e,t=!0){let i=[...this.checkedKeys];this.checkedKeys.filter(o=>e.includes(o))[0];const n=this.list.filter(o=>e.includes(o.id))[0],a=t&&n?n.menuIds:[];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)return;let l=[];this.findParent(this.menuTreeData,n,l);let r=[],g=[];l.forEach(o=>{this.checkedKeys.filter(u=>o.menuIds.includes(u)).length===o.menuIds.length&&o.menuIds.length>0&&!o.checked?r.push(o.id):g.push(o.id)}),r.forEach(o=>{this.changeItem(!0,[o],!1)}),g.forEach(o=>{this.changeItem(!1,[o],!1)})},handleItem(){let s=[...this.menuTreeData];const e=t=>(t=t.filter((i,n)=>{const a=this.checkedKeys.filter(l=>i.menuIds.includes(l));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}),t);e(s),this.menuTreeData=[...s],this.allClose=this.checkedKeys.length===this.allCheckedKeys.length&&this.allCheckedKeys.length>0},changeAll(s){s?this.checkedKeys=[...this.allCheckedKeys]:this.checkedKeys=[],this.handleItem()},init(){this.confirmLoading=!0,Promise.all([this.getList()]).then(async s=>{this.confirmLoading=!1;let e=JSON.parse(JSON.stringify(this.menuTreeDatad)),t=[];const i=a=>(a=a.filter((l,r)=>{const g=this.checkedKeys.filter(o=>l.id===o)[0];return l.open=!0,l.checked=l.menusType===1?!!g:!1,l.isIndeterminate=!1,t.push(l),l.children&&l.children.length>0&&(l.children=i(l.children)),!0}),a);await i(e);let n=[];t.forEach((a,l)=>{const r=this.getMenuIds(a);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)}),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")})},getList(){return f.sysRoleViewOnBtnList({roleId:this.record.id}).then(s=>{if(s.code===200){let e=[],t=[];const i=(a,l)=>(a=a.filter((r,g)=>{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);let o=[];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}),a);this.menuAll=s.data.list;let n=JSON.parse(JSON.stringify(this.menuAll));i(n,0),this.checkedKeys=e,this.allCheckedKeys=t,this.menuTreeDatad=[...n]}return s})},getMenuIds(s){let e=[],t=[];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);return s.children&&i(s.children),{arr:e,btn:t}},findParent(s,e,t){for(let i of s)if(i.id===e.parentId||i.children&&i.children.length>0&&this.findParent(i.children,e,t))return t.unshift(i),!0;return!1},open(s){this.record=s,this.visible=!0,this.init()},closed(){this.fullscreen=!1,this.visible=!1,this.menuTreeData=[],this.checkedKeys=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var ae=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("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){e.allClose=i},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},re=[],le=h.normalizeComponent(ne,ae,re,!1,null,"e6593396",null,null);const oe=le.exports;const de={name:"GdRole",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[v.tablesFilter,K],data(){return{appsId:"",transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},allRowData:[],loadData:s=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),f.getRolePage(Object.assign(s,this.queryParam,{sysAppsId:window.$systemInfo.id})).then(e=>(this.allRowData=e.data,e.data))),isDoc:""}},components:{RoleGrant:N,RoleMenu:q,RoleMenuViewForm:oe,UserAuthorization:Y,DocumentAuthorization:ie},computed:{getTableButtons(){return this.tableButtons.filter(s=>s.functionName==="grantRoleAppMenu"?!!this.appsId:s.functionName==="documentAuthorizationMenu"?this.isDoc==1:!0)},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getFormColumns(){return this.formColumns.filter(s=>(s.prop==="code"&&(s.disabled=this.transKey!=="gd.btn.add"),!(this.transKey==="gd.https.copy"&&s.prop==="code")))},getHeight(){return this.height},...h.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getConfigInfo(){let s={code:"GDS_Enable_Doc_Premissions"};p.getConfigInfoByCode(s).then(e=>{e.code===200&&(this.isDoc=e.data.value)})},getAppId(){p.getConfigInfoByCode({code:"App_Id"}).then(s=>{s.code===200&&(this.appsId=s.data?s.data.value:"")})},documentAuthorizationMenu(){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.$refs.documentAuthorization.open(this.selectedRows[0])},userAuthorizationMenu(){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.$refs.userAuthorization.open(this.selectedRows[0])},grantRoleMenu(){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.$refs.roleMenu.open(this.selectedRows[0])},grantRoleAppMenu(){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.$refs.roleMenu.open(this.selectedRows[0],this.appsId)},grantRoleGrant(){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.$refs.roleGrant.open(this.selectedRows[0])},grantRoleVF(){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.$refs.roleMenuViewForm.open(this.selectedRows[0])},saveQueries(s){this.queryParam={...s},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(s)},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:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}let i=[];this.selectedRows.forEach(n=>{let a=f.sysRoleDelete(n).then(l=>l);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{const a=n.filter(l=>!l.success);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})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},copy(){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.transKey="gd.https.copy",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{roleId:this.selectedRows[0].id}))},sbumit({data:s,record:e,btn:t},i,n){this.formLoading=!0;let a=e?this.transKey==="gd.https.copy"?f.sysRoleCopyRole:f.sysRoleEdit:f.sysRoleAddV2;const l=this.transKey!=="gd.https.edit"?Object.assign(s,{sysappsid:window.$systemInfo.id}):s;a(l).then(r=>{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})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e,this.$emit("onSelectChange",s,e,this.allRowData)},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}},created(){this.getAppId(),this.getConfigInfo()}};var ce=function(){var e=this,t=e._self._c;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}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){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){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"}}),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)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:n}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:n},on:{save:e.saveQueries}})]}}])})],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)},he=[],ue=h.normalizeComponent(de,ce,he,!1,null,"00f39bc6",null,null);const m=ue.exports;m.install=function(s){s.component(m.name,m)};exports.GDpackage=m;
@@ -1 +0,0 @@
1
- "use strict";const o=require("./chartbi.114d32d7.js"),d=require("./messages.828b6ed8.js");function c(a){return window.axios({url:"/SysNumberRules/page",method:"get",params:a})}function u(a){return window.axios({url:"/sysNumberRules/add",method:"post",data:a})}function p(a){return window.axios({url:"/sysNumberRules/edit",method:"post",data:a})}function m(a){return window.axios({url:"/sysNumberRules/delete",method:"post",data:a})}const g={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.msg.sendRecord.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.process.tableSort",prop:"sysCodeGenId",label:"\u8868\u540D\u79F0",type:"slot",slotType:"sysCodeGenId",align:"left"},{transKey:"gd.process.tableSort",prop:"columnid",label:"\u5B57\u6BB5",type:"slot",slotType:"columnid",align:"left"},{transKey:"gd.process.tableSort",prop:"nextseqno",label:"\u4E0B\u4E00\u6D41\u6C34\u53F7",align:"left"},{transKey:"gd.flow.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"}],formColumns:[{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.msg.sendRecord.msgTemplate",effectType:"selectFkMultiple",prop:"syscodegenid",label:"\u7F16\u53F7\u8868",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",fkEntityName:"sys_code_gen",disabled:!1,multiple:!1,rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSumberrules:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysSumberrules:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSumberrules:delete"}],tableQueries:[{transKey:"gd.org.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}]}}};const f={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{confirmLoading:!1,visible:!1,fullScreen:!1,title:"",width:"50%",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],prefixtype:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],nextseqno:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{id:"",name:"",prefixtype:"",prefix:"",dateformat:"",seqtype:"",seqrange:"",seqlength:void 0,postfixtype:"",postfix:"",nextseqno:"",separatorch:"",syscodegenid:"",columnid:""},dataList:[],columnList:[],disabled:!0,type:1}},methods:{lookup(){this.disabled},open(a){this.visible=!0,this.fullScreen=!1,this.title=a?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.type=a?2:1,a&&this.getSetData(a)},getSetData(a){let e={id:a.id,name:a.name,prefixtype:a.prefixtype.toString(),prefix:a.prefix,dateformat:a.dateformat||a.dateformat==0?a.dateformat.toString():"",seqtype:a.seqtype||a.seqtype==0?a.seqtype.toString():"",seqrange:a.seqrange?a.seqrange.toString():"",seqlength:a.seqlength,postfixtype:a.postfixtype||a.postfixtype==0?a.postfixtype.toString():"",postfix:a.postfix,nextseqno:a.nextseqno?a.nextseqno.toString():"",separatorch:a.separatorch||a.separatorch==0?a.separatorch.toString():"",syscodegenid:a.syscodegen?a.syscodegenid:"",columnid:a.syscodegenconfig?a.columnid:""};this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=e},0)}),this.getFkDada(a)},getFkDada(a){let e=[];if(a.syscodegenid){let t=this.searchData({id:a.syscodegenid,fkEntityName:"sys_code_gen"},"syscodegenid");e.push(t)}if(a.columnid){let t=this.searchData({id:a.columnid,fkEntityName:"sys_code_gen_config"},"columnid");e.push(t)}Promise.all(e).then(t=>{t.forEach(s=>{s.prop=="syscodegenid"&&(this.dataList=s.res.data?s.res.data:[]),s.prop=="columnid"&&(this.columnList=s.res.data?s.res.data:[])})})},searchData(a,e){return d.baseFkList(a).then(t=>({res:t,data:a,prop:e}))},handleSubmit(){this.$refs.ruleForm.validate(a=>{if(a){let e={...this.ruleFormData};this.type==1?this.add(e):this.edit(e)}})},add(a){this.confirmLoading=!0,delete a.id,u(a).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(a){this.confirmLoading=!0,p(a).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},getDictionary(a){return this.$options.filters.dictData(a)},toggleFullscreen(){this.fullScreen=!this.fullScreen},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={name:"",prefixtype:"",prefix:"",dateformat:"",seqtype:"",seqrange:"",seqlength:void 0,postfixtype:"",postfix:"",nextseqno:"",separatorch:"",syscodegenid:"",columnid:""}},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var h=function(){var e=this,t=e._self._c;return t("el-dialog",{class:e.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","modal-append-to-body":e.modalAppendToBody,"append-to-body":e.appendToBody,"close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.handleCancel}},[t("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,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(s){s.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(s){e.$set(e.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.prefixType","\u524D\u7F00\u7C7B\u578B"),prop:"prefixtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.prefixtype,callback:function(s){e.$set(e.ruleFormData,"prefixtype",s)},expression:"ruleFormData.prefixtype"}},e._l(e.getDictionary("prefix_type"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.prefix","\u524D\u7F00"),prop:"prefix"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.prefix,callback:function(s){e.$set(e.ruleFormData,"prefix",s)},expression:"ruleFormData.prefix"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.dateFormat","\u65E5\u671F\u683C\u5F0F"),prop:"dateformat"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.dateformat,callback:function(s){e.$set(e.ruleFormData,"dateformat",s)},expression:"ruleFormData.dateformat"}},e._l(e.getDictionary("dateformat"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.seqType","\u6D41\u6C34\u53F7\u7C7B\u578B"),prop:"seqtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.seqtype,callback:function(s){e.$set(e.ruleFormData,"seqtype",s)},expression:"ruleFormData.seqtype"}},e._l(e.getDictionary("seqtype"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.seqRange","\u6D41\u6C34\u53F7\u8303\u56F4"),prop:"seqrange"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.seqrange,callback:function(s){e.$set(e.ruleFormData,"seqrange",s)},expression:"ruleFormData.seqrange"}},e._l(e.getDictionary("seqrange"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.seqLength","\u6D41\u6C34\u53F7\u957F\u5EA6"),prop:"seqlength"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input"),"controls-position":"right",min:0,max:10},model:{value:e.ruleFormData.seqlength,callback:function(s){e.$set(e.ruleFormData,"seqlength",s)},expression:"ruleFormData.seqlength"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.postfixType","\u540E\u7F00\u7C7B\u578B"),prop:"postfixtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.postfixtype,callback:function(s){e.$set(e.ruleFormData,"postfixtype",s)},expression:"ruleFormData.postfixtype"}},e._l(e.getDictionary("postfix_type"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.postfix","\u540E\u7F00"),prop:"postfix"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input")},model:{value:e.ruleFormData.postfix,callback:function(s){e.$set(e.ruleFormData,"postfix",s)},expression:"ruleFormData.postfix"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.nextSeqNo","\u4E0B\u4E00\u6D41\u6C34\u53F7"),prop:"nextseqno"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.nextseqno,callback:function(s){e.$set(e.ruleFormData,"nextseqno",s)},expression:"ruleFormData.nextseqno"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.separatorCh","\u5206\u9694\u7B26"),prop:"separatorch"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.separatorch,callback:function(s){e.$set(e.ruleFormData,"separatorch",s)},expression:"ruleFormData.separatorch"}},e._l(e.getDictionary("separator"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.sysCodeGenId","\u7F16\u53F7\u8868"),prop:"syscodegenid"}},[t("div",{staticClass:"cao_about"},[t("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,disabled:e.disabled},model:{value:e.ruleFormData.syscodegenid,callback:function(s){e.$set(e.ruleFormData,"syscodegenid",s)},expression:"ruleFormData.syscodegenid"}},e._l(e.dataList,function(s){return t("el-option",{key:s.id,attrs:{label:s.name,value:s.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search cao_setting-disabled",on:{click:function(s){return e.lookup("syscodegenid",e.ruleFormData.syscodegenid)}}})])],1)])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.columnId","\u7F16\u53F7\u5B57\u6BB5"),prop:"columnid"}},[t("div",{staticClass:"cao_about"},[t("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,disabled:e.disabled},model:{value:e.ruleFormData.columnid,callback:function(s){e.$set(e.ruleFormData,"columnid",s)},expression:"ruleFormData.columnid"}},e._l(e.columnList,function(s){return t("el-option",{key:s.id,attrs:{label:s.name,value:s.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search cao_setting-disabled",on:{click:function(s){return e.lookup("columnid",e.ruleFormData.columnid)}}})])],1)])],1)],1)],1),t("el-divider"),t("div",{staticClass:"remarks_title"},[e._v(" "+e._s(e.$i18nt("gd.numberingRules.remarks","\u793A\u4F8B:{\u56FA\u5B9A\u524D\u7F00/ \u968F\u673A\u524D\u7F00}{ \u5E74\u6708\u65E5 }{ \u6D41\u6C34\u53F7, \u6D41\u6C34\u53F7\u7C7B\u578B(\u4E3B/ \u5B50, \u5B9E\u4F53 /), \u6D41\u6C34\u53F7\u8303\u56F4(\u5168\u5C40 / \u65E5\u671F\u5185)}{ \u56FA\u5B9A\u540E\u7F00 / \u968F\u673A\u540E\u7F00 } Acc202206130001zzz"))+" ")])],1)])],1)},y=[],b=o.normalizeComponent(f,h,y,!1,null,"c510bf8e",null,null);const $=b.exports;const _={name:"GdSumberrules",mixins:[d.tablesFilter,g],props:{height:{type:Number,default:100}},data(){return{formLoading:!1,transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:a=>c(this.getQueryParam).then(e=>({pageNo:1,pageSize:100,totalRows:0,rows:e.map(s=>{let l=this.tableLists.filter(r=>r.id===s.syscodegenid)[0];return Object.assign(s,{syscodegen:l})})}))}},computed:{getQueryParam(){let a=new Map;for(let e in this.queryParam)this.queryParam[e]!==""&&a.set(e,this.queryParam[e]);return Object.fromEntries(a)},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","tableLists"])},components:{editForm:$},methods:{saveQueries(a){this.queryParam={...a},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(a){this.transKey="gd.btn.edit",this.$refs.editForm.open(a)},add(){this.$refs.editForm.open()},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])},handleOk(){this.refresh()},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.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,e,t)=>{this.delHand(a,e,t)}})},delHand(a,e,t){if(a!=="confirm"){t();return}let s=[];this.selectedRows.forEach(l=>{let r=m(l).then(i=>i);s.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(l=>{const r=l.filter(i=>!i.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),t(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(a,e){this.selectedRowKeys=a,this.selectedRows=e},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()},dictSwitch(a,e){let t=this.$options.filters.dictData(e).filter(s=>s.code==a)[0];return t!=null&&t.colour?t.colour:null}}};var x=function(){var e=this,t=e._self._c;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,showPagination:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){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)])]},proxy:!0},{key:"name",fn:function({column:s,row:l}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:e.editForm}})]}},{key:"sysCodeGenId",fn:function({column:s,row:l}){return[l.syscodegen?t("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${l.syscodegen.transkey}`,l.syscodegen.busname))+" ")]):e._e()]}},{key:"columnid",fn:function({column:s,row:l}){return[l.syscodegenconfig?t("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${l.syscodegenconfig.transkey}`,l.syscodegenconfig.name))+" ")]):e._e()]}},{key:"statecodes",fn:function(s){return[e.dictSwitch(s.row.statecodes,"state_code")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.row.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.row.statecodes))+" ")]):t("span",[e._v(e._s(e._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"filtering",fn:function({colse:s,visible:l}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:s,visible:l},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},v=[],w=o.normalizeComponent(_,x,v,!1,null,"4481d39a",null,null);const n=w.exports;n.install=function(a){a.component(n.name,n)};exports.GDpackage=n;