gds-plus-design-vue 1.2.63 → 1.2.71

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 (403) hide show
  1. package/lib/{addPermission.9fc97a47.mjs → addPermission.179a09f4.mjs} +127 -105
  2. package/lib/addPermission.c72ebbe0.js +1 -0
  3. package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b550187.mjs} +7 -7
  4. package/lib/approvalModel.7cfcac3c.js +1 -0
  5. package/lib/attribute.3fed1dd9.js +1 -0
  6. package/lib/attribute.e9a8faa1.mjs +367 -0
  7. package/lib/businessRules.cf106f09.js +1 -0
  8. package/lib/{businessRules.db6ba874.mjs → businessRules.d7d35011.mjs} +191 -190
  9. package/lib/buttonRule.2afe380d.mjs +396 -0
  10. package/lib/buttonRule.737e8e3f.js +1 -0
  11. package/lib/chartDisplayRules.370065e8.mjs +288 -0
  12. package/lib/chartDisplayRules.c9162f81.js +1 -0
  13. package/lib/components.chartbi.3bbac955.js +8 -0
  14. package/lib/components.chartbi.571c5ff5.mjs +1813 -0
  15. package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.06cf0433.mjs} +2 -2
  16. package/lib/{components.coloreditor.779a9419.js → components.coloreditor.f81d322a.js} +1 -1
  17. package/lib/{components.dataassign.56632583.mjs → components.dataassign.21d3938b.mjs} +3 -3
  18. package/lib/{components.dataassign.1853ed5c.js → components.dataassign.565d22c0.js} +1 -1
  19. package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.490abdfa.mjs} +416 -399
  20. package/lib/components.echarts.fe84f881.js +4 -0
  21. package/lib/{components.exception.3cc33e29.js → components.exception.374f2ad9.js} +1 -1
  22. package/lib/{components.exception.cc2f4ca3.mjs → components.exception.ee1c4f83.mjs} +1 -1
  23. package/lib/{components.form.91d5ed3e.js → components.form.5533a8c3.js} +19 -19
  24. package/lib/{components.form.3344c817.mjs → components.form.db8af727.mjs} +1118 -1090
  25. package/lib/{components.globalheader.07a90c4b.js → components.globalheader.2eb787a4.js} +1 -1
  26. package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.b3b35343.mjs} +3 -3
  27. package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.8940b1a9.mjs} +7 -3
  28. package/lib/components.iconselector.f5a58033.js +1 -0
  29. package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.d97cf25c.js} +1 -1
  30. package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.f05b3e06.mjs} +4 -4
  31. package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.18f84642.js} +1 -1
  32. package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.2a097955.mjs} +1 -1
  33. package/lib/components.middleware.43b9b264.js +1 -0
  34. package/lib/{components.middleware.457b1182.mjs → components.middleware.de012955.mjs} +5 -4
  35. package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.5060623f.mjs} +1 -1
  36. package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.957cab33.js} +1 -1
  37. package/lib/{components.multitab.8441aa6b.mjs → components.multitab.5eb6edff.mjs} +1 -1
  38. package/lib/{components.multitab.82fd0544.js → components.multitab.80eeb3ae.js} +1 -1
  39. package/lib/{components.selecttree.d710a362.js → components.selecttree.2fe70d88.js} +1 -1
  40. package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.756c4d22.mjs} +1 -1
  41. package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.29dbc31e.mjs} +21 -21
  42. package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.8c12650b.js} +1 -1
  43. package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.0673fe0a.mjs} +2 -2
  44. package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.240dfde7.js} +1 -1
  45. package/lib/components.sidenavmenu.b1330d69.js +1 -0
  46. package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.fa81ff82.mjs} +448 -632
  47. package/lib/{components.statuschange.ed1218a4.js → components.statuschange.858b72e8.js} +1 -1
  48. package/lib/{components.statuschange.15938660.mjs → components.statuschange.fae4adba.mjs} +3 -3
  49. package/lib/{components.table.17c02054.js → components.table.1e338902.js} +3 -3
  50. package/lib/{components.table.e3e5e3bc.mjs → components.table.9ed77207.mjs} +331 -316
  51. package/lib/components.tableumy.1d804d70.js +1 -0
  52. package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.3e1c9a5b.mjs} +7 -4
  53. package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.66890b2c.mjs} +7 -4
  54. package/lib/components.tablevirtual.8e21a6e7.js +1 -0
  55. package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.3a17ddc0.mjs} +3 -3
  56. package/lib/{components.teamsharing.05503821.js → components.teamsharing.89e668fd.js} +1 -1
  57. package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.0ea7e2b1.js} +1 -1
  58. package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.376d95fe.mjs} +1 -1
  59. package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0a5a1608.mjs} +2 -2
  60. package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.8e0e702c.js} +1 -1
  61. package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.bc160e00.js} +1 -1
  62. package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.decb0360.mjs} +2 -2
  63. package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.140533c7.js} +1 -1
  64. package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.7091b10b.mjs} +1 -1
  65. package/lib/components.viewformdetails.940addba.js +1 -0
  66. package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.d241c652.mjs} +94 -61
  67. package/lib/components.viewloading.1e9f4b3c.js +1 -0
  68. package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.aae3aab4.mjs} +54 -51
  69. package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.2ec3260c.mjs} +1 -1
  70. package/lib/{components.watermark.da3d7220.js → components.watermark.d9ec8130.js} +1 -1
  71. package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.0d1553b1.js} +1 -1
  72. package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.c33f83ca.mjs} +4 -4
  73. package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.81df7841.mjs} +541 -532
  74. package/lib/components.xlsximport.8c209857.js +1 -0
  75. package/lib/copy.8db86d9f.mjs +572 -0
  76. package/lib/copy.a8753f38.js +1 -0
  77. package/lib/createFile.04a6b293.js +1 -0
  78. package/lib/createFile.4cac1673.mjs +439 -0
  79. package/lib/createSubfolders.e105fa86.js +1 -0
  80. package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.eac5ccae.mjs} +7 -7
  81. package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.bf435838.mjs} +2 -2
  82. package/lib/{dialogLayout.08823bb7.js → dialogLayout.f0779aed.js} +1 -1
  83. package/lib/drawerContainer.6ab3df46.mjs +163 -0
  84. package/lib/drawerContainer.8f9df583.js +1 -0
  85. package/lib/{drawerLayout.36cf4d05.js → drawerLayout.b6c7c3c6.js} +1 -1
  86. package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.e3c0164d.mjs} +2 -2
  87. package/lib/editForm.0f3fd3b0.js +1 -0
  88. package/lib/editForm.aef93ed0.mjs +434 -0
  89. package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
  90. package/lib/extendedAttributes.ef3ead02.js +1 -0
  91. package/lib/fileSearch.43465e1c.js +1 -0
  92. package/lib/{fileSearch.86c356fe.mjs → fileSearch.5c8a883d.mjs} +140 -115
  93. package/lib/{flow.designer.6da03949.mjs → flow.designer.81c29f62.mjs} +3184 -3197
  94. package/lib/flow.designer.ffd0aa8b.js +1 -0
  95. package/lib/flow.list.4c05f2f0.js +1 -0
  96. package/lib/{flow.list.03694808.mjs → flow.list.ab420927.mjs} +234 -232
  97. package/lib/form.build.724d3357.js +1 -0
  98. package/lib/{form.build.b768d613.mjs → form.build.d04773f0.mjs} +22 -14
  99. package/lib/form.designer.build.c82cb559.mjs +2529 -0
  100. package/lib/form.designer.build.dac501fa.js +1 -0
  101. package/lib/formFiled.4b5062d7.js +1 -0
  102. package/lib/{formFiled.fe7d9df3.mjs → formFiled.c949a27f.mjs} +15 -13
  103. package/lib/gd-initial.js +1 -1
  104. package/lib/gd-initial.mjs +231 -207
  105. package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
  106. package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
  107. package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
  108. package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
  109. package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
  110. package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
  111. package/lib/http.filedocument.6fdfc693.js +1 -0
  112. package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
  113. package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
  114. package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
  115. package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
  116. package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
  117. package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
  118. package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
  119. package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
  120. package/lib/http.rolemanage.4d1101dd.js +1 -0
  121. package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
  122. package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
  123. package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
  124. package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
  125. package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
  126. package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
  127. package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
  128. package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
  129. package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
  130. package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
  131. package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
  132. package/lib/index.9deaa991.mjs +25906 -0
  133. package/lib/index.d95c407c.js +8 -0
  134. package/lib/layoutBlocks.26e1b57b.js +1 -0
  135. package/lib/layoutBlocks.31454610.mjs +413 -0
  136. package/lib/layoutItem.c1c836a1.js +1 -0
  137. package/lib/layoutItem.cf18143e.mjs +71 -0
  138. package/lib/{layouts.a6a36612.js → layouts.2d06f3e9.js} +2 -2
  139. package/lib/{layouts.051a0bba.mjs → layouts.3b383d04.mjs} +19 -22
  140. package/lib/main.09d48801.js +1 -0
  141. package/lib/main.28b7c398.js +1 -0
  142. package/lib/main.29e204f9.mjs +166 -0
  143. package/lib/main.33443996.mjs +231 -0
  144. package/lib/main.357c50d2.js +1 -0
  145. package/lib/{main.7f44e3bf.mjs → main.3e886f21.mjs} +40 -50
  146. package/lib/{main.c1df94d8.mjs → main.419a7b42.mjs} +2 -2
  147. package/lib/main.4a38d5f8.js +1 -0
  148. package/lib/{main.70357352.mjs → main.60329866.mjs} +6 -6
  149. package/lib/{main.ad1e8d4d.js → main.60c2a1a2.js} +1 -1
  150. package/lib/main.61c9e5c6.mjs +537 -0
  151. package/lib/main.643d21a0.mjs +552 -0
  152. package/lib/main.64ddb5f6.mjs +189 -0
  153. package/lib/main.728eaf53.js +1 -0
  154. package/lib/{main.8a2a590d.js → main.892caa37.js} +1 -1
  155. package/lib/main.aea9b6a8.mjs +323 -0
  156. package/lib/main.b7a5a02b.js +1 -0
  157. package/lib/main.c71e5b11.js +1 -0
  158. package/lib/main.edc0b23b.js +1 -0
  159. package/lib/{main.b0e5e1b0.mjs → main.f520fcf5.mjs} +2 -2
  160. package/lib/manage.101f1aa9.js +1 -0
  161. package/lib/{manage.a1df9b88.mjs → manage.f4000654.mjs} +162 -140
  162. package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
  163. package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
  164. package/lib/messages.messagetemplate.32273e00.js +7 -0
  165. package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
  166. package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
  167. package/lib/messages.sendplan.fbac188d.js +1 -0
  168. package/lib/messages.sendrecord.ef80d44a.js +2 -0
  169. package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
  170. package/lib/messages.templatelibrary.ec512390.js +2 -0
  171. package/lib/messages.templatelibrary.ff151513.mjs +808 -0
  172. package/lib/mobile.designer.componentstree.03f61105.js +1 -0
  173. package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
  174. package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
  175. package/lib/mobile.designer.menutree.97bb4046.js +1 -0
  176. package/lib/moveFile.335ebc8d.js +1 -0
  177. package/lib/moveFile.d71c0824.mjs +276 -0
  178. package/lib/{page.build.685c1e15.mjs → page.build.376104d5.mjs} +607 -601
  179. package/lib/{page.build.846096e6.js → page.build.37b26617.js} +3 -3
  180. package/lib/page.designer.componentstree.0ffc933d.js +1 -0
  181. package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
  182. package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
  183. package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
  184. package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
  185. package/lib/page.designer.menutree.c49d9ee6.js +1 -0
  186. package/lib/page.designer.operation.6179b661.js +1 -0
  187. package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
  188. package/lib/page.designer.page.09402332.js +1 -0
  189. package/lib/page.designer.page.6d8232c7.mjs +10638 -0
  190. package/lib/personal.echarts.414b7e3d.mjs +268 -0
  191. package/lib/personal.echarts.b7ee86f4.js +1 -0
  192. package/lib/result.0c089066.mjs +639 -0
  193. package/lib/result.9282a717.js +1 -0
  194. package/lib/router.config.68077a12.js +1 -0
  195. package/lib/router.config.86225b11.mjs +1424 -0
  196. package/lib/solution.application.d459e382.js +1 -0
  197. package/lib/solution.application.e0d58df1.mjs +548 -0
  198. package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
  199. package/lib/solution.applicationmenu.ae295083.js +1 -0
  200. package/lib/solution.approvalflow.436b3502.js +1 -0
  201. package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
  202. package/lib/solution.dict.acbe9c55.js +1 -0
  203. package/lib/solution.dict.ef98b194.mjs +769 -0
  204. package/lib/solution.menu.5c17348f.mjs +432 -0
  205. package/lib/solution.menu.cca5e1f9.js +1 -0
  206. package/lib/solution.plugin.90f8dcc1.mjs +347 -0
  207. package/lib/solution.plugin.f9a8063f.js +1 -0
  208. package/lib/solution.processflow.2692dac6.js +1 -0
  209. package/lib/solution.processflow.c1544b05.mjs +392 -0
  210. package/lib/solution.role.b1ab40dd.mjs +456 -0
  211. package/lib/solution.role.b28c4dbe.js +1 -0
  212. package/lib/solution.webresources.0b51beba.mjs +379 -0
  213. package/lib/solution.webresources.6961cc68.js +1 -0
  214. package/lib/solution.workflow.11e49e25.js +1 -0
  215. package/lib/solution.workflow.c48545d1.mjs +395 -0
  216. package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
  217. package/lib/store.config.556bd56b.js +1 -0
  218. package/lib/style.css +3 -3
  219. package/lib/{system.account.014f3e0b.mjs → system.account.1cadbf03.mjs} +877 -881
  220. package/lib/{system.account.0d4f1fdc.js → system.account.5cc9fe8d.js} +7 -7
  221. package/lib/{system.config.210f516c.js → system.config.a0b94e40.js} +1 -1
  222. package/lib/{system.config.0899edb8.mjs → system.config.a9a1ee96.mjs} +1 -1
  223. package/lib/{system.datasource.82492d27.js → system.datasource.6c30ce25.js} +1 -1
  224. package/lib/{system.datasource.986768c9.mjs → system.datasource.c103a9c2.mjs} +1 -1
  225. package/lib/{system.dict.ef24873d.mjs → system.dict.0c229d1c.mjs} +264 -260
  226. package/lib/system.dict.6b000092.js +1 -0
  227. package/lib/system.document.f67c2994.mjs +667 -0
  228. package/lib/system.document.f8fd7af0.js +1 -0
  229. package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.94c7ce17.mjs} +245 -265
  230. package/lib/system.duplicatechecking.f4cab147.js +1 -0
  231. package/lib/system.email.11ab6f31.js +1 -0
  232. package/lib/{system.email.252fd642.mjs → system.email.13823361.mjs} +10 -15
  233. package/lib/system.fieldsecurity.2ef2881c.js +1 -0
  234. package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.d35acd97.mjs} +370 -361
  235. package/lib/{system.file.73eeb731.mjs → system.file.30d3e7bc.mjs} +81 -149
  236. package/lib/system.file.b9f8320c.js +1 -0
  237. package/lib/{system.log.fc60f5e6.js → system.log.470d3efd.js} +1 -1
  238. package/lib/{system.log.b86cf57f.mjs → system.log.815840d8.mjs} +1 -1
  239. package/lib/{system.machine.0114001b.mjs → system.machine.1665954f.mjs} +1 -1
  240. package/lib/{system.machine.f1d95c86.js → system.machine.f8aff893.js} +1 -1
  241. package/lib/{system.notice.25ea8dca.mjs → system.notice.bef6c23c.mjs} +994 -992
  242. package/lib/system.notice.db26f308.js +1 -0
  243. package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.0d293a87.mjs} +10 -11
  244. package/lib/system.noticereceived.84b88b9a.js +1 -0
  245. package/lib/system.onlineuser.985621a6.js +1 -0
  246. package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.bccb1cd9.mjs} +37 -26
  247. package/lib/{system.org.c20fe6b2.mjs → system.org.92f4d7f1.mjs} +2 -2
  248. package/lib/{system.org.79ee5bd6.js → system.org.9f87a010.js} +1 -1
  249. package/lib/system.permissions.15e6b8b7.js +1 -0
  250. package/lib/system.permissions.be9238ee.mjs +972 -0
  251. package/lib/system.plugin.0bccfec4.js +1 -0
  252. package/lib/{system.plugin.45a0f530.mjs → system.plugin.af27d7ac.mjs} +500 -479
  253. package/lib/{system.pos.0a3d2a37.js → system.pos.61e58a92.js} +1 -1
  254. package/lib/{system.pos.7946a99c.mjs → system.pos.fe067063.mjs} +1 -1
  255. package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.0b9083c5.mjs} +246 -243
  256. package/lib/system.promptmanagement.e750de82.js +1 -0
  257. package/lib/{system.role.75da7929.mjs → system.role.67f62146.mjs} +511 -488
  258. package/lib/system.role.e86b60f1.js +1 -0
  259. package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.093d998e.mjs} +168 -165
  260. package/lib/system.sumberrules.810f7b55.js +1 -0
  261. package/lib/system.team.58ee701b.js +1 -0
  262. package/lib/{system.team.e6a9608e.mjs → system.team.8911fd95.mjs} +163 -161
  263. package/lib/system.teammembers.1880f962.js +1 -0
  264. package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.35564a00.mjs} +203 -198
  265. package/lib/{system.timers.eb0b6f3e.mjs → system.timers.4b2d509f.mjs} +2261 -2213
  266. package/lib/system.timers.9e956553.js +38 -0
  267. package/lib/system.translation.26b6bb39.js +1 -0
  268. package/lib/{system.translation.e34f0891.mjs → system.translation.60ec676c.mjs} +435 -429
  269. package/lib/system.user.134a3988.js +14 -0
  270. package/lib/{system.user.fa2d2997.mjs → system.user.9a02295e.mjs} +1082 -1026
  271. package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.96695aeb.mjs} +418 -412
  272. package/lib/system.useraffiliation.c2421c7e.js +1 -0
  273. package/lib/{system.webresource.469db736.mjs → system.webresource.016d0000.mjs} +179 -179
  274. package/lib/system.webresource.e92e8a8f.js +1 -0
  275. package/lib/{system.welcome.191e98f5.mjs → system.welcome.127b5dd4.mjs} +1 -1
  276. package/lib/{system.welcome.f64e49f8.js → system.welcome.ff0c85e2.js} +1 -1
  277. package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
  278. package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
  279. package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
  280. package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
  281. package/lib/tableDescriptions.a4196776.mjs +80 -0
  282. package/lib/tableDescriptions.b9b0d7fa.js +1 -0
  283. package/lib/tcheckboxs.7ea99d35.js +1 -0
  284. package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.999b7c2e.mjs} +2 -2
  285. package/lib/tcurrency.4afb9192.mjs +85 -0
  286. package/lib/tcurrency.8a2361f2.js +1 -0
  287. package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.606214fa.mjs} +2 -2
  288. package/lib/{tdatepicker.b19e689d.js → tdatepicker.8e94a60c.js} +1 -1
  289. package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.ccbdd153.js} +1 -1
  290. package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.e016d4cf.mjs} +2 -2
  291. package/lib/{tfile.72925615.mjs → tfile.3f39223d.mjs} +2 -2
  292. package/lib/{tfile.1bc381f9.js → tfile.b3ebdc71.js} +1 -1
  293. package/lib/{tparticipants.ca5b556c.mjs → tparticipants.5fe27540.mjs} +2 -2
  294. package/lib/{tparticipants.77b876e2.js → tparticipants.78c8c175.js} +1 -1
  295. package/lib/{translation.mains.278e4ba6.mjs → translation.mains.2688be5b.mjs} +7 -7
  296. package/lib/{translation.mains.1ce7e110.js → translation.mains.a6f19343.js} +1 -1
  297. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  298. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  299. package/lib/utils.plug.js.9313aead.mjs +31 -0
  300. package/lib/utils.plug.js.f62510ce.js +1 -0
  301. package/lib/utils.util.js.333daba2.mjs +439 -0
  302. package/lib/utils.util.js.c0ba699b.js +1 -0
  303. package/lib/versionControl.46a7f31a.js +1 -0
  304. package/lib/versionControl.c53bfb5d.mjs +488 -0
  305. package/lib/versionEdit.4246d5db.js +1 -0
  306. package/lib/versionEdit.5a8292ec.mjs +452 -0
  307. package/lib/view.build.85732408.mjs +1578 -0
  308. package/lib/view.build.e43a2077.js +1 -0
  309. package/lib/viewList.868edcd7.js +1 -0
  310. package/lib/{viewList.5a25c4b6.mjs → viewList.978b72c5.mjs} +70 -92
  311. package/lib/viewTree.7497ff90.js +1 -0
  312. package/lib/viewTree.bde43a3b.mjs +409 -0
  313. package/locale/en_US.js +45 -6
  314. package/locale/id_ID.js +45 -6
  315. package/locale/vi_VN.js +45 -6
  316. package/locale/zh_CN.js +45 -5
  317. package/package.json +1 -1
  318. package/lib/addPermission.5036013c.js +0 -1
  319. package/lib/approvalModel.66f49dfb.js +0 -1
  320. package/lib/attribute.318f485c.js +0 -1
  321. package/lib/attribute.a06ac9e7.mjs +0 -237
  322. package/lib/buildItem.6a834227.js +0 -1
  323. package/lib/buildItem.fd8634ab.mjs +0 -205
  324. package/lib/businessRules.0e4dbb3a.js +0 -1
  325. package/lib/components.chartbi.b043dcdc.mjs +0 -1729
  326. package/lib/components.chartbi.e4680eaa.js +0 -7
  327. package/lib/components.echarts.e4d6b13e.js +0 -3
  328. package/lib/components.iconselector.d712170f.js +0 -1
  329. package/lib/components.middleware.3bad5748.js +0 -1
  330. package/lib/components.sidenavmenu.b9bb9304.js +0 -1
  331. package/lib/components.tableumy.9cf33062.js +0 -1
  332. package/lib/components.tablevirtual.38d4d3d8.js +0 -1
  333. package/lib/components.viewformdetails.1621bc18.js +0 -1
  334. package/lib/components.viewloading.807bbf68.js +0 -1
  335. package/lib/components.xlsximport.dbd826bb.js +0 -1
  336. package/lib/createFile.6b37ecf2.js +0 -1
  337. package/lib/createFile.82d6e415.mjs +0 -239
  338. package/lib/createSubfolders.47af629c.js +0 -1
  339. package/lib/drawerContainer.604a1271.mjs +0 -146
  340. package/lib/drawerContainer.6a9813ce.js +0 -1
  341. package/lib/fileSearch.65311ded.js +0 -1
  342. package/lib/flow.designer.1ba3a90d.js +0 -1
  343. package/lib/flow.list.4eb10554.js +0 -1
  344. package/lib/form.build.51bd261e.js +0 -1
  345. package/lib/form.designer.build.5a950455.js +0 -1
  346. package/lib/form.designer.build.e521c9c6.mjs +0 -5091
  347. package/lib/formFiled.464856f5.js +0 -1
  348. package/lib/http.filedocument.7c656b91.js +0 -1
  349. package/lib/http.filedocument.d456d26a.mjs +0 -156
  350. package/lib/http.rolemanage.03363732.js +0 -1
  351. package/lib/index.69ad4631.mjs +0 -44291
  352. package/lib/index.cca024bf.js +0 -8
  353. package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
  354. package/lib/layoutBlocks.5e6be06f.js +0 -1
  355. package/lib/main.457f4326.js +0 -1
  356. package/lib/main.4fff412e.js +0 -1
  357. package/lib/main.77373aa4.mjs +0 -441
  358. package/lib/main.c3726602.js +0 -1
  359. package/lib/manage.5bb4f719.js +0 -1
  360. package/lib/messages.7b74736f.js +0 -9
  361. package/lib/messages.ad082386.mjs +0 -4889
  362. package/lib/moveFile.0ce803e0.js +0 -1
  363. package/lib/moveFile.8310ea94.mjs +0 -254
  364. package/lib/personal.echarts.b22fba61.mjs +0 -701
  365. package/lib/personal.echarts.f77bfc9e.js +0 -1
  366. package/lib/result.19351665.mjs +0 -526
  367. package/lib/result.e59c0e40.js +0 -1
  368. package/lib/router.config.2501ec51.js +0 -1
  369. package/lib/router.config.98a73167.mjs +0 -3172
  370. package/lib/solution.58580123.js +0 -1
  371. package/lib/solution.890ff164.mjs +0 -6942
  372. package/lib/store.config.3cb11578.js +0 -1
  373. package/lib/system.dict.f5708400.js +0 -1
  374. package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
  375. package/lib/system.email.070ab2be.js +0 -1
  376. package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
  377. package/lib/system.file.17a7f2ed.js +0 -1
  378. package/lib/system.notice.96c770a6.js +0 -1
  379. package/lib/system.noticereceived.dfe4ecc7.js +0 -1
  380. package/lib/system.onlineuser.e2e39bdc.js +0 -1
  381. package/lib/system.permissions.90f73461.js +0 -9
  382. package/lib/system.permissions.c3d34921.mjs +0 -213
  383. package/lib/system.plugin.b34a3b47.js +0 -1
  384. package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
  385. package/lib/system.role.03be0982.js +0 -1
  386. package/lib/system.sumberrules.bb228fce.js +0 -1
  387. package/lib/system.team.32183b63.js +0 -1
  388. package/lib/system.teammembers.847d8ea7.js +0 -1
  389. package/lib/system.timers.28691ce4.js +0 -38
  390. package/lib/system.translation.6237f071.js +0 -1
  391. package/lib/system.user.fca3f2d6.js +0 -14
  392. package/lib/system.useraffiliation.7547b9c7.js +0 -1
  393. package/lib/system.webresource.12712b90.js +0 -1
  394. package/lib/tcheckboxs.99361be3.js +0 -1
  395. package/lib/tcurrency.0ddac2f8.mjs +0 -92
  396. package/lib/tcurrency.62763c6d.js +0 -1
  397. package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
  398. package/lib/utils.datepicker.js.8576e2fc.js +0 -1
  399. package/lib/utils.util.js.50d1ec9c.js +0 -1
  400. package/lib/utils.util.js.82cd8447.mjs +0 -424
  401. package/lib/view.build.b44fd7d7.js +0 -1
  402. package/lib/view.build.f2a9fcfb.mjs +0 -2727
  403. package/lib/viewList.be5a5ec5.js +0 -1
@@ -0,0 +1,972 @@
1
+ import { n as c, m as u } from "./components.chartbi.571c5ff5.mjs";
2
+ import { h as R, g as D } from "./http.usermanage.f5491144.mjs";
3
+ import { o as f, c as x, d as $, v as C, e as L, g as K } from "./http.rolemanage.da5c40e9.mjs";
4
+ import { a as I } from "./http.main.aefea27d.mjs";
5
+ import { g as m } from "./http.appmanage.e389782d.mjs";
6
+ import { c as _ } from "./http.menumanage.3060f4c7.mjs";
7
+ import { d as P } from "./http.orgmanage.0b1df8d5.mjs";
8
+ const S = {
9
+ name: "dataItem",
10
+ props: {
11
+ record: {
12
+ type: Array,
13
+ default: () => []
14
+ }
15
+ },
16
+ mounted() {
17
+ },
18
+ methods: {
19
+ open(i) {
20
+ console.log(this.record, this.exists), this.$emit("open", i);
21
+ }
22
+ }
23
+ };
24
+ var M = function() {
25
+ var e = this, t = e._self._c;
26
+ return t("div", [e._l(e.record, function(a) {
27
+ return [t("div", { staticClass: "list-item" }, [a.menusType !== 2 ? t("div", { staticClass: "item-name" }, [a.menusType !== 1 && a.children && a.children.length > 0 ? t("i", { class: a.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(s) {
28
+ return e.open(a);
29
+ } } }) : e._e(), a.iconClass ? t("i", { staticClass: "gd-icons", class: a.iconClass, staticStyle: { "font-size": "15px" } }) : e._e(), e._v(" " + e._s(a.name) + " ")]) : e._e(), a.menusType !== 0 ? t("div", { class: a.exists ? "item-activet" : "item-actives" }, [a.hasExists.length > 0 ? t("el-tooltip", { attrs: { placement: "left" } }, [e._l(a.hasExists, function(s) {
30
+ return t("template", { slot: "content" }, [e._v(" " + e._s(s.name) + " ")]);
31
+ }), t("div", { staticClass: "btn-list-item" }, [e._v(" " + e._s(a.exists ? e.$i18nt("gd.user.havePermission", "\u6709\u6743\u9650") : e.$i18nt("gd.user.NoPermission", "\u65E0\u6743\u9650")) + " ")])], 2) : t("div", { staticClass: "btn-list-item" }, [e._v(" " + e._s(a.exists ? e.$i18nt("gd.user.havePermission", "\u6709\u6743\u9650") : e.$i18nt("gd.user.NoPermission", "\u65E0\u6743\u9650")) + " ")])], 1) : e._e()]), t("div", { staticClass: "item-data" }, [a.children && a.children.length > 0 && a.children[0].menusType === 2 ? t("div", { staticClass: "item-data-list" }, [e._l(a.children, function(s) {
32
+ return [t("div", { staticClass: "item-name item-named" }, [s.hasExists.length > 0 ? t("el-tooltip", { attrs: { placement: "right" } }, [e._l(s.hasExists, function(n) {
33
+ return t("template", { slot: "content" }, [e._v(" " + e._s(n.name) + " ")]);
34
+ }), t("div", { class: s.exists ? "item-named-title" : "item-named-title-err" }, [e._v(" " + e._s(s.name) + " "), t("i", { class: s.exists ? "gd-icons gd-icon-zhengque" : "gd-icons gd-icon-cuowu" })])], 2) : t("div", { class: s.exists ? "item-named-title" : "item-named-title-err" }, [e._v(" " + e._s(s.name) + " "), t("i", { class: s.exists ? "gd-icons gd-icon-zhengque" : "gd-icons gd-icon-cuowu" })])], 1)];
35
+ })], 2) : e._e()]), a.children && a.children.length > 0 && a.children[0].menusType !== 2 ? t("div", { staticClass: "list-more" }, [a.open ? t("dataItem", { attrs: { record: a.children }, on: { open: e.open } }) : e._e()], 1) : e._e()];
36
+ })], 2);
37
+ }, A = [], N = /* @__PURE__ */ c(
38
+ S,
39
+ M,
40
+ A,
41
+ !1,
42
+ null,
43
+ "fbb86dac",
44
+ null,
45
+ null
46
+ );
47
+ const p = N.exports;
48
+ const E = {
49
+ props: {
50
+ selectedRows: {
51
+ type: Array,
52
+ default: () => []
53
+ },
54
+ selectedRowKeys: {
55
+ type: Array,
56
+ default: () => []
57
+ },
58
+ height: {
59
+ type: Number,
60
+ default: 400
61
+ }
62
+ },
63
+ data() {
64
+ return {
65
+ applicationList: [],
66
+ menuData: null,
67
+ defaultProps: {
68
+ children: "children",
69
+ label: "title"
70
+ },
71
+ systemMenuAll: [],
72
+ haveMenu: [],
73
+ exists: !1,
74
+ menuDatas: null,
75
+ confirmLoading: !1,
76
+ isPlanSaving: !1
77
+ };
78
+ },
79
+ components: {
80
+ dataItem: p
81
+ },
82
+ computed: {
83
+ treeHeight() {
84
+ return `${this.height}px`;
85
+ }
86
+ },
87
+ watch: {
88
+ selectedRowKeys: {
89
+ handler(i) {
90
+ i.length !== 0 && this.init();
91
+ },
92
+ deep: !0,
93
+ immediate: !0
94
+ }
95
+ },
96
+ mounted() {
97
+ this.init();
98
+ },
99
+ methods: {
100
+ openItem(i) {
101
+ let e = [...this.menuData];
102
+ const t = (a) => (a = a.filter((s, n) => (s.id === i.id && (s.open = !s.open), s.children && s.children.length > 0 && (s.children = t(s.children)), !0)), a);
103
+ t(e), this.menuData = [...e], console.log(this.menuData);
104
+ },
105
+ appOpen(i, e) {
106
+ let t = [...this.menuData];
107
+ t[i].open = !t[i].open, this.menuData = [...t];
108
+ },
109
+ refresh() {
110
+ },
111
+ init() {
112
+ this.isPlanSaving || (this.confirmLoading = !0, this.isPlanSaving = !0, Promise.all([this.getMenuList(), this.getApplicationList(), this.ownMenuInfo()]).then((i) => {
113
+ const e = (s) => (s = s.filter((n, r) => (n.open = !0, n.exists = !1, n.hasExists = [], n.menusType = n.type, n.children && n.children.length > 0 && (n.children = e(n.children)), !0)), s);
114
+ e(this.systemMenuAll);
115
+ let t = [], a = this.applicationList.filter((s) => {
116
+ const n = this.systemMenuAll.filter((r) => r.application === s.code);
117
+ return n.length > 0 ? (t = t.concat([...n]), s.children = [...n], s.open = !0, !0) : !1;
118
+ });
119
+ this.menuData = a, this.compareMenuData(a);
120
+ }));
121
+ },
122
+ async compareMenuData(i) {
123
+ let e = this.haveMenu, t = this.selectedRows.map((a) => {
124
+ let s = [];
125
+ for (let n in e)
126
+ n == a.id && (s = e[n]);
127
+ return {
128
+ ...a,
129
+ children: s
130
+ };
131
+ });
132
+ if (!this.haveMenu) {
133
+ console.log("\u6570\u636E\u7ED3\u6784\u4E0D\u5B8C\u6574");
134
+ return;
135
+ }
136
+ this.compareMenuNodes(i, t), this.confirmLoading = !1;
137
+ },
138
+ async compareMenuNodes(i, e) {
139
+ !Array.isArray(i) || (i.map((t) => {
140
+ let a = [];
141
+ e.forEach((s) => {
142
+ s.children.filter((r) => r.id == t.id)[0] && a.push({
143
+ id: s.id,
144
+ name: s.name
145
+ });
146
+ }), t.exists = a.length > 0, t.hasExists = a, t.children && Array.isArray(t.children) && this.compareMenuNodes(t.children, e);
147
+ }), this.isPlanSaving = !1);
148
+ },
149
+ ownMenuInfo() {
150
+ if (this.selectedRowKeys.length !== 0)
151
+ return this.selectedRowKeys.map((i) => i).join(","), f({
152
+ roleids: this.selectedRowKeys
153
+ }).then((i) => (this.haveMenu = i.data, i));
154
+ },
155
+ getMenuList() {
156
+ let i = { AppsId: window.$systemInfo.id };
157
+ return _(i).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
158
+ },
159
+ getApplicationList() {
160
+ if (this.selectedRowKeys.length !== 0)
161
+ return m({ appsId: window.$systemInfo.id }).then((i) => (i.code === 200 && (this.applicationList = i.data), i));
162
+ }
163
+ }
164
+ };
165
+ var O = function() {
166
+ var e = this, t = e._self._c;
167
+ return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "trees-list", style: { height: e.treeHeight } }, [e.menuData ? t("div", [e._l(e.menuData, function(a, s) {
168
+ return [t("div", { staticClass: "app-list-name" }, [a.children && a.children.length > 0 ? t("i", { class: a.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
169
+ return e.appOpen(s, a);
170
+ } } }) : e._e(), e._v(" " + e._s(a.name) + " ")]), a.open ? t("div", { staticStyle: { "padding-left": "20px" } }, [t("dataItem", { attrs: { record: a.children }, on: { open: e.openItem } })], 1) : e._e()];
171
+ })], 2) : e._e()])]);
172
+ }, k = [function() {
173
+ var i = this, e = i._self._c;
174
+ return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
175
+ }], j = /* @__PURE__ */ c(
176
+ E,
177
+ O,
178
+ k,
179
+ !1,
180
+ null,
181
+ "add4290b",
182
+ null,
183
+ null
184
+ );
185
+ const z = j.exports;
186
+ const T = {
187
+ props: {
188
+ selectedRows: {
189
+ type: Array,
190
+ default: () => []
191
+ },
192
+ selectedRowKeys: {
193
+ type: Array,
194
+ default: () => []
195
+ },
196
+ height: {
197
+ type: Number,
198
+ default: 400
199
+ }
200
+ },
201
+ watch: {
202
+ selectedRowKeys: {
203
+ handler(i) {
204
+ this.init();
205
+ },
206
+ deep: !0,
207
+ immediate: !0
208
+ }
209
+ },
210
+ data() {
211
+ return {
212
+ confirmLoading: !1,
213
+ loadData: [],
214
+ treeData: [],
215
+ hasData: [],
216
+ rolePermissionMap: {},
217
+ list: [{
218
+ getgrantd: ["1", "2"],
219
+ name: ["\u7528\u6237\u89D2\u8272", "\u7CFB\u7EDF\u7BA1\u7406\u5458"]
220
+ }],
221
+ dict: {},
222
+ isPlanSaving: !1
223
+ };
224
+ },
225
+ computed: {
226
+ treeHeight() {
227
+ return `${this.height}px`;
228
+ },
229
+ dicts() {
230
+ return this.getDictionary("data_scope_type");
231
+ },
232
+ columns() {
233
+ return [
234
+ {
235
+ transKey: "gd.btn.query",
236
+ prop: "getgrant",
237
+ label: "\u67E5\u8BE2"
238
+ },
239
+ {
240
+ transKey: "gd.btn.add",
241
+ prop: "addgrant",
242
+ label: "\u65B0\u589E"
243
+ },
244
+ {
245
+ transKey: "gd.btn.edit",
246
+ prop: "editgrant",
247
+ label: "\u7F16\u8F91"
248
+ },
249
+ {
250
+ transKey: "gd.btn.del",
251
+ prop: "delgrant",
252
+ label: "\u5220\u9664"
253
+ },
254
+ {
255
+ transKey: "gd.relation.assignment",
256
+ prop: "allocationgrant",
257
+ label: "\u5206\u6D3E"
258
+ },
259
+ {
260
+ transKey: "gd.btn.share",
261
+ prop: "sharegrant",
262
+ label: "\u5171\u4EAB"
263
+ }
264
+ ];
265
+ },
266
+ ...u(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
267
+ },
268
+ methods: {
269
+ refresh() {
270
+ },
271
+ init() {
272
+ this.isPlanSaving || (this.confirmLoading = !0, this.isPlanSaving = !0, this.loadData.length == 0 ? Promise.all([this.getOrgDetail(), this.ownMenuInfo()]).then((i) => {
273
+ this.getData();
274
+ }) : Promise.all([this.ownMenuInfo()]).then((i) => {
275
+ this.getData();
276
+ }));
277
+ },
278
+ getData() {
279
+ this.treeData = this.loadData.map((i) => {
280
+ let e = this.getViewData(i), t = /* @__PURE__ */ new Map(), a = {};
281
+ return this.columns.forEach((s) => {
282
+ let n = this.getTypePermission(e, s), r = this.getTypeDict(n, s);
283
+ t.set(s.prop, n.result), Object.assign(a, r);
284
+ }), Object.assign(i, Object.fromEntries(t), a);
285
+ }), this.confirmLoading = !1, this.isPlanSaving = !1;
286
+ },
287
+ getTypeDict(i, e) {
288
+ let t = /* @__PURE__ */ new Map();
289
+ return this.dicts.forEach((a) => {
290
+ const s = i.ids.filter((n) => n.data.includes(a.code));
291
+ t.set(`${e.prop}${a.code}Role`, s);
292
+ }), Object.fromEntries(t);
293
+ },
294
+ getTypePermission(i, e) {
295
+ let t = [], a = [];
296
+ return i.forEach((n) => {
297
+ const r = n[e.prop] && n[e.prop].length > 0 ? n[e.prop] : [];
298
+ t = t.concat(r), a.push({
299
+ roleid: n.roleid,
300
+ data: r,
301
+ rolename: n.rolename
302
+ });
303
+ }), {
304
+ result: t.filter((n, r, l) => l.indexOf(n) === r),
305
+ ids: a
306
+ };
307
+ },
308
+ getViewData(i) {
309
+ let e = [];
310
+ return this.hasData.forEach((t, a) => {
311
+ let s = t.grants.filter((r) => r.syscodegenid == i.syscodegenid)[0], n = this.selectedRows.filter((r) => r.id == t.roleid)[0];
312
+ s && e.push(
313
+ Object.assign({}, {
314
+ ...s
315
+ }, {
316
+ roleid: t.roleid,
317
+ rolename: n.name,
318
+ getgrant: s.getgrant ? s.getgrant.split(",") : [],
319
+ addgrant: s.addgrant ? s.addgrant.split(",") : [],
320
+ editgrant: s.editgrant ? s.editgrant.split(",") : [],
321
+ delgrant: s.delgrant ? s.delgrant.split(",") : [],
322
+ allocationgrant: s.allocationgrant ? s.allocationgrant.split(",") : [],
323
+ sharegrant: s.sharegrant ? s.sharegrant.split(",") : []
324
+ })
325
+ );
326
+ }), e;
327
+ },
328
+ getOrgDetail() {
329
+ return P({
330
+ roleId: this.selectedRowKeys[0]
331
+ }).then((i) => {
332
+ let e = i.data.grants.map((t) => Object.assign(t, {
333
+ getgrant: [],
334
+ addgrant: [],
335
+ editgrant: [],
336
+ delgrant: [],
337
+ allocationgrant: [],
338
+ sharegrant: []
339
+ }));
340
+ this.loadData = [...e];
341
+ });
342
+ },
343
+ ownMenuInfo() {
344
+ if (this.selectedRowKeys.length !== 0)
345
+ return x({
346
+ roleids: this.selectedRowKeys.join(",")
347
+ }).then((i) => {
348
+ this.hasData = i.data;
349
+ });
350
+ },
351
+ getDictionary(i) {
352
+ return this.dict = this.$options.filters.dictData(i), this.dict;
353
+ }
354
+ }
355
+ };
356
+ var H = function() {
357
+ var e = this, t = e._self._c;
358
+ return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "trees-list", style: { height: e.treeHeight } }, [e._l(e.treeData, function(a) {
359
+ return [t("div", { staticClass: "list-item" }, [t("div", { staticClass: "item-name" }, [t("i", { staticClass: "el-icon-menu" }), e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.syscodegenname)) + " ")])]), t("div", { staticStyle: { "padding-left": "23px" } }, e._l(e.columns, function(s) {
360
+ return t("div", { staticClass: "item-name" }, [t("div", [t("i", { staticClass: "gd-icons gd-icon-xiangqing_shujuxiangqing" }), e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transKey}`, s.label)) + " ")]), t("div", { staticClass: "item-data" }, [t("div", { staticClass: "item-data-list" }, [e._l(e.dicts, function(n) {
361
+ return [t("div", { staticClass: "item-name item-named" }, [a[`${s.prop}${n.code}Role`].length > 0 ? t("el-tooltip", { attrs: { placement: "right" } }, [e._l(a[`${s.prop}${n.code}Role`], function(r) {
362
+ return t("template", { slot: "content" }, [e._v(" " + e._s(r.rolename) + " ")]);
363
+ }), t("div", { class: a[s.prop].includes(n.code) ? "item-named-title" : "item-named-title-err" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transKey}`, n.name)) + " "), t("i", { class: a[s.prop].includes(n.code) ? "gd-icons gd-icon-zhengque" : "gd-icons gd-icon-cuowu" })])], 2) : t("div", { class: a[s.prop].includes(n.code) ? "item-named-title" : "item-named-title-err" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transKey}`, n.name)) + " "), t("i", { class: a[s.prop].includes(n.code) ? "gd-icons gd-icon-zhengque" : "gd-icons gd-icon-cuowu" })])], 1)];
364
+ })], 2)])]);
365
+ }), 0)];
366
+ })], 2)]);
367
+ }, q = [function() {
368
+ var i = this, e = i._self._c;
369
+ return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
370
+ }], V = /* @__PURE__ */ c(
371
+ T,
372
+ H,
373
+ q,
374
+ !1,
375
+ null,
376
+ "684c74a0",
377
+ null,
378
+ null
379
+ );
380
+ const B = V.exports;
381
+ const F = {
382
+ props: {
383
+ selectedRows: {
384
+ type: Array,
385
+ default: () => []
386
+ },
387
+ selectedRowKeys: {
388
+ type: Array,
389
+ default: () => []
390
+ },
391
+ height: {
392
+ type: Number,
393
+ default: 400
394
+ }
395
+ },
396
+ data() {
397
+ return {
398
+ confirmLoading: !1,
399
+ viewData: [],
400
+ viewDatas: [],
401
+ hasData: [],
402
+ isPlanSaving: !1
403
+ };
404
+ },
405
+ computed: {
406
+ treeHeight() {
407
+ return `${this.height}px`;
408
+ },
409
+ selArr() {
410
+ }
411
+ },
412
+ components: {
413
+ dataItem: p
414
+ },
415
+ watch: {
416
+ selectedRowKeys: {
417
+ handler(i) {
418
+ i.length !== 0 && this.init();
419
+ },
420
+ deep: !0,
421
+ immediate: !0
422
+ }
423
+ },
424
+ methods: {
425
+ openItem(i) {
426
+ let e = [...this.viewData];
427
+ const t = (a) => (a = a.filter((s, n) => (s.id === i.id && (s.open = !s.open), s.children && s.children.length > 0 && (s.children = t(s.children)), !0)), a);
428
+ t(e), this.viewData = [...e];
429
+ },
430
+ appOpen(i, e) {
431
+ let t = [...this.viewData];
432
+ t[i].open = !t[i].open, this.viewData = [...t];
433
+ },
434
+ init(i) {
435
+ if (!this.isPlanSaving) {
436
+ if (this.confirmLoading = !0, this.isPlanSaving = !0, this.viewDatas.length == 0) {
437
+ Promise.all([this.getList(), this.getLists(i)]).then((e) => {
438
+ this.compareViewData();
439
+ });
440
+ return;
441
+ }
442
+ Promise.all([this.getLists(i)]).then((e) => {
443
+ this.compareViewData();
444
+ });
445
+ }
446
+ },
447
+ compareViewData(i) {
448
+ let e = [];
449
+ this.hasData = this.hasData.map((s, n) => {
450
+ let r = this.getViewData(s.list);
451
+ return this.selectedRowKeys.includes(s.roleid) && (e = e.concat(r)), Object.assign(s, {
452
+ arr: r,
453
+ name: this.selectedRows[n].name
454
+ });
455
+ });
456
+ let t = this.viewDatas;
457
+ const a = (s) => (s = s.filter((n, r) => {
458
+ let l = [];
459
+ return this.hasData.forEach((o) => {
460
+ o.arr.includes(n.id) && l.push({
461
+ id: o.roleid,
462
+ name: o.name
463
+ });
464
+ }), n.open = !0, n.exists = e.includes(n.id), n.hasExists = l, n.children && n.children.length > 0 && (n.children = a(n.children)), !0;
465
+ }), s);
466
+ a(t), this.confirmLoading = !1, this.viewData = t, this.isPlanSaving = !1;
467
+ },
468
+ getViewData(i) {
469
+ let e = [];
470
+ const t = (a) => (a = a.filter((s, n) => (s.type == 1 && e.push(s.id), s.viewlist && s.viewlist.length > 0 && (s.viewlist = t(s.viewlist)), s.formlist && s.formlist.length > 0 && (s.formlist = t(s.formlist)), s.btnlist && s.btnlist.length > 0 && (s.btnlist = t(s.btnlist)), !0)), a);
471
+ return t(i), e;
472
+ },
473
+ getList() {
474
+ return $({
475
+ roleId: this.selectedRowKeys[0]
476
+ }).then((i) => {
477
+ if (i.code == 200) {
478
+ const e = (a, s) => (a = a.filter((n, r) => {
479
+ n.parentId = s, n.open = !0, n.transkey = n.transkey ? n.transkey : null, n.menusType = n.formlist && n.viewlist ? 0 : n.btnlist ? 1 : 2;
480
+ let l = [];
481
+ return n.viewlist && n.viewlist.length > 0 && (n.viewlist.map((o) => (o.iconClass = "gd-icon-shitumoshi", o)), l = l.concat(n.viewlist)), n.formlist && n.formlist.length > 0 && (n.formlist.map((o) => (o.iconClass = "gd-icon-biaodanmoshi", o)), l = l.concat(n.formlist)), n.btnlist && n.btnlist.length > 0 && (l = l.concat(n.btnlist)), l.length > 0 && (n.children = e(l, n.id)), !0;
482
+ }), a);
483
+ let t = JSON.parse(JSON.stringify(i.data.list));
484
+ e(t, 0), this.viewDatas = [...t];
485
+ }
486
+ return i;
487
+ });
488
+ },
489
+ getLists(i) {
490
+ return C({
491
+ roleIds: i ? i.join(",") : this.selectedRowKeys.join(",")
492
+ }).then((e) => {
493
+ let t = [];
494
+ for (let a in e.data)
495
+ t.push(e.data[a]);
496
+ this.hasData = t;
497
+ });
498
+ },
499
+ refresh() {
500
+ }
501
+ }
502
+ };
503
+ var G = function() {
504
+ var e = this, t = e._self._c;
505
+ return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "trees-list", style: { height: e.treeHeight } }, [e.viewData ? t("div", [t("dataItem", { attrs: { record: e.viewData, selArr: e.selArr }, on: { open: e.openItem } })], 1) : e._e()])]);
506
+ }, U = [function() {
507
+ var i = this, e = i._self._c;
508
+ return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
509
+ }], J = /* @__PURE__ */ c(
510
+ F,
511
+ G,
512
+ U,
513
+ !1,
514
+ null,
515
+ "1d2b29c4",
516
+ null,
517
+ null
518
+ );
519
+ const Q = J.exports;
520
+ const W = {
521
+ props: {
522
+ selectedRows: {
523
+ type: Array,
524
+ default: () => []
525
+ },
526
+ selectedRowKeys: {
527
+ type: Array,
528
+ default: () => []
529
+ },
530
+ height: {
531
+ type: Number,
532
+ default: 400
533
+ },
534
+ appsId: {
535
+ type: String,
536
+ default: ""
537
+ }
538
+ },
539
+ data() {
540
+ return {
541
+ applicationList: [],
542
+ menuData: [],
543
+ defaultProps: {
544
+ children: "children",
545
+ label: "title"
546
+ },
547
+ systemMenuAll: [],
548
+ haveMenu: [],
549
+ exists: !1,
550
+ menuDatas: null,
551
+ confirmLoading: !1,
552
+ isPlanSaving: !1,
553
+ isShow: !1
554
+ };
555
+ },
556
+ components: {
557
+ dataItem: p
558
+ },
559
+ computed: {
560
+ treeHeight() {
561
+ return `${this.height}px`;
562
+ }
563
+ },
564
+ watch: {
565
+ selectedRowKeys: {
566
+ handler(i) {
567
+ i.length !== 0 && this.init();
568
+ },
569
+ deep: !0,
570
+ immediate: !0
571
+ }
572
+ },
573
+ mounted() {
574
+ this.init();
575
+ },
576
+ methods: {
577
+ openItem(i) {
578
+ let e = [...this.menuData];
579
+ const t = (a) => (a = a.filter((s, n) => (s.id === i.id && (s.open = !s.open), s.children && s.children.length > 0 && (s.children = t(s.children)), !0)), a);
580
+ t(e), this.menuData = [...e];
581
+ },
582
+ appOpen(i, e) {
583
+ let t = [...this.menuData];
584
+ t[i].open = !t[i].open, this.menuData = [...t];
585
+ },
586
+ refresh() {
587
+ },
588
+ init() {
589
+ this.isPlanSaving || (this.confirmLoading = !0, this.isPlanSaving = !0, Promise.all([this.getMenuList(), this.getApplicationList(), this.ownMenuInfo()]).then((i) => {
590
+ if (this.systemMenuAll.length == 0 && this.applicationList.length == 0) {
591
+ this.isShow = !0, this.confirmLoading = !1;
592
+ return;
593
+ }
594
+ const e = (s) => (s = s.filter((n, r) => (n.open = !0, n.exists = !1, n.hasExists = [], n.menusType = n.type, n.children && n.children.length > 0 && (n.children = e(n.children)), !0)), s);
595
+ e(this.systemMenuAll);
596
+ let t = [], a = this.applicationList.filter((s) => {
597
+ const n = this.systemMenuAll.filter((r) => r.application === s.code);
598
+ return n.length > 0 ? (t = t.concat([...n]), s.children = [...n], s.open = !0, !0) : !1;
599
+ });
600
+ this.menuData = a, this.isShow = !1, this.compareMenuData(a);
601
+ }));
602
+ },
603
+ async compareMenuData(i) {
604
+ let e = this.haveMenu, t = this.selectedRows.map((a) => {
605
+ let s = [];
606
+ for (let n in e)
607
+ n == a.id && (s = e[n]);
608
+ return {
609
+ ...a,
610
+ children: s
611
+ };
612
+ });
613
+ if (!this.haveMenu) {
614
+ console.log("\u6570\u636E\u7ED3\u6784\u4E0D\u5B8C\u6574");
615
+ return;
616
+ }
617
+ this.compareMenuNodes(i, t), this.confirmLoading = !1;
618
+ },
619
+ async compareMenuNodes(i, e) {
620
+ !Array.isArray(i) || (i.map((t) => {
621
+ let a = [];
622
+ e.forEach((s) => {
623
+ s.children.filter((r) => r.id == t.id)[0] && a.push({
624
+ id: s.id,
625
+ name: s.name
626
+ });
627
+ }), t.exists = a.length > 0, t.hasExists = a, t.children && Array.isArray(t.children) && this.compareMenuNodes(t.children, e);
628
+ }), this.isPlanSaving = !1);
629
+ },
630
+ ownMenuInfo() {
631
+ if (this.selectedRowKeys.length !== 0)
632
+ return this.selectedRowKeys.map((i) => i).join(","), f({
633
+ roleids: this.selectedRowKeys
634
+ }).then((i) => (this.haveMenu = i.data, i));
635
+ },
636
+ getMenuList() {
637
+ let i = { AppsId: this.appsId };
638
+ return _(i).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
639
+ },
640
+ getApplicationList() {
641
+ if (this.selectedRowKeys.length !== 0)
642
+ return m({ appsId: this.appsId }).then((i) => (i.code === 200 && (this.applicationList = i.data), i));
643
+ }
644
+ }
645
+ };
646
+ var X = function() {
647
+ var e = this, t = e._self._c;
648
+ return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "trees-list", style: { height: e.treeHeight } }, [e.menuData.length > 0 ? t("div", [e._l(e.menuData, function(a, s) {
649
+ return [t("div", { staticClass: "app-list-name" }, [a.children && a.children.length > 0 ? t("i", { class: a.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
650
+ return e.appOpen(s, a);
651
+ } } }) : e._e(), e._v(" " + e._s(a.name) + " ")]), a.open ? t("div", { staticStyle: { "padding-left": "20px" } }, [t("dataItem", { attrs: { record: a.children }, on: { open: e.openItem } })], 1) : e._e()];
652
+ })], 2) : e.isShow ? t("div", { staticClass: "empty" }, [e._m(1), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : e._e()])]);
653
+ }, Y = [function() {
654
+ var i = this, e = i._self._c;
655
+ return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
656
+ }, function() {
657
+ var i = this, e = i._self._c;
658
+ return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
659
+ }], Z = /* @__PURE__ */ c(
660
+ W,
661
+ X,
662
+ Y,
663
+ !1,
664
+ null,
665
+ "b0971196",
666
+ null,
667
+ null
668
+ );
669
+ const ee = Z.exports;
670
+ const te = {
671
+ props: {
672
+ selectedRows: {
673
+ type: Array,
674
+ default: () => []
675
+ },
676
+ selectedRowKeys: {
677
+ type: Array,
678
+ default: () => []
679
+ },
680
+ height: {
681
+ type: Number,
682
+ default: 400
683
+ }
684
+ },
685
+ data() {
686
+ return {
687
+ hasData: [],
688
+ confirmLoading: !1,
689
+ isPlanSaving: !1
690
+ };
691
+ },
692
+ watch: {
693
+ selectedRowKeys: {
694
+ handler(i) {
695
+ this.init();
696
+ },
697
+ deep: !0,
698
+ immediate: !0
699
+ }
700
+ },
701
+ computed: {
702
+ treeHeight() {
703
+ return `${this.height}px`;
704
+ },
705
+ columns() {
706
+ return [
707
+ {
708
+ transKey: "gd.btn.view",
709
+ prop: "readmetadata",
710
+ label: "\u67E5\u770B"
711
+ },
712
+ {
713
+ transKey: "gd.btn.rename",
714
+ prop: "rename",
715
+ label: "\u91CD\u547D\u540D"
716
+ },
717
+ {
718
+ transKey: "gd.btn.del",
719
+ prop: "delete",
720
+ label: "\u5220\u9664"
721
+ },
722
+ {
723
+ transKey: "gd.btn.administrativePermissions",
724
+ prop: "manageprem",
725
+ label: "\u7BA1\u7406\u6743\u9650"
726
+ },
727
+ {
728
+ transKey: "gd.btn.move",
729
+ prop: "move",
730
+ label: "\u79FB\u52A8"
731
+ },
732
+ {
733
+ transKey: "gd.btn.createfile",
734
+ prop: "createfile",
735
+ label: "\u521B\u5EFA\u6587\u4EF6"
736
+ },
737
+ {
738
+ transKey: "gd.btn.createSubfolders",
739
+ prop: "createsubfolder",
740
+ label: "\u521B\u5EFA\u5B50\u6587\u4EF6\u5939"
741
+ },
742
+ {
743
+ transKey: "gd.btn.download",
744
+ prop: "download",
745
+ label: "\u4E0B\u8F7D"
746
+ }
747
+ ];
748
+ },
749
+ ...u(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
750
+ },
751
+ methods: {
752
+ refresh() {
753
+ },
754
+ init() {
755
+ this.selectedRowKeys.length != 0 && (this.isPlanSaving || (this.confirmLoading = !0, this.isPlanSaving = !0, L({
756
+ roleIds: this.selectedRowKeys.join(",")
757
+ }).then((i) => {
758
+ let e = [], t = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
759
+ this.selectedRows.forEach((s) => {
760
+ let n = i.data[s.id];
761
+ n.length > 0 && n.forEach((r) => {
762
+ if (this.columns.forEach((l) => {
763
+ let o = this.getData(r, l, s);
764
+ a.set(`${l.prop}Role`, o.ids);
765
+ }), t.has(r.sysdocobjectid)) {
766
+ let l = e.find((o) => o.sysdocobjectid === r.sysdocobjectid);
767
+ l && this.columns.forEach((o) => {
768
+ let d = `${o.prop}Role`, g = Object.fromEntries(a)[d];
769
+ l[d] ? (l[d] = [...l[d], ...g], l[d] = l[d].filter(
770
+ (v, y, w) => y === w.findIndex((b) => b.roleid === v.roleid)
771
+ )) : l[d] = g;
772
+ });
773
+ } else {
774
+ t.add(r.sysdocobjectid);
775
+ let l = Object.assign({}, r, Object.fromEntries(a));
776
+ e.push(l);
777
+ }
778
+ });
779
+ }), this.confirmLoading = !1, this.isPlanSaving = !1, this.hasData = e;
780
+ })));
781
+ },
782
+ getData(i, e, t) {
783
+ let a = [], s = [], n = i[e.prop];
784
+ return a = a.concat(n), s.push({
785
+ roleid: t.id,
786
+ data: n,
787
+ rolename: t.name
788
+ }), {
789
+ result: a.filter((l, o, d) => d.indexOf(l) === o),
790
+ ids: s
791
+ };
792
+ }
793
+ }
794
+ };
795
+ var se = function() {
796
+ var e = this, t = e._self._c;
797
+ return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "doc-pemissions" }, e._l(e.hasData, function(a) {
798
+ return t("div", [t("div", { staticClass: "lists" }, [e._v(" " + e._s(a.name) + " ")]), t("div", { staticClass: "doc-item" }, e._l(e.columns, function(s) {
799
+ return t("div", { staticClass: "doc-item-col" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transKey}`, s.label)) + " "), t("div", { staticClass: "doc-tool" }, [a[`${s.prop}Role`].length > 0 ? t("el-tooltip", { attrs: { placement: "right" } }, [e._l(a[`${s.prop}Role`], function(n) {
800
+ return t("template", { slot: "content" }, [t("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [n.data ? t("span", [e._v(e._s(n.rolename))]) : e._e(), n.data === 1 ? t("span", { staticStyle: { "margin-left": "10px" } }, [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))]) : n.data === 2 ? t("span", { staticStyle: { "margin-left": "10px" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))]) : e._e()])]);
801
+ }), t("div", [a[`${s.prop}Role`].some((n) => n.data == "2") ? t("el-tag", { attrs: { type: "danger", size: "small" } }, [e._v(" " + e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")) + " ")]) : a[`${s.prop}Role`].some((n) => n.data == "1") ? t("el-tag", { attrs: { size: "small" } }, [e._v(" " + e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")) + " ")]) : e._e()], 1)], 2) : e._e()], 1)]);
802
+ }), 0)]);
803
+ }), 0)]);
804
+ }, ie = [function() {
805
+ var i = this, e = i._self._c;
806
+ return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
807
+ }], ae = /* @__PURE__ */ c(
808
+ te,
809
+ se,
810
+ ie,
811
+ !1,
812
+ null,
813
+ "397d5998",
814
+ null,
815
+ null
816
+ );
817
+ const ne = ae.exports;
818
+ const re = {
819
+ name: "GdUserPermissions",
820
+ props: {
821
+ height: {
822
+ type: Number,
823
+ default: 100
824
+ },
825
+ openMode: {
826
+ type: String,
827
+ default: "page"
828
+ },
829
+ openSelecteKeys: {
830
+ type: Array,
831
+ default: () => []
832
+ }
833
+ },
834
+ components: {
835
+ MenuPermissions: z,
836
+ DataPermissions: B,
837
+ ViewOnBtnPermissions: Q,
838
+ AppPermissions: ee,
839
+ DccPermissions: ne
840
+ },
841
+ data() {
842
+ return {
843
+ searcLoading: !1,
844
+ loading: !1,
845
+ userId: "",
846
+ userList: [],
847
+ fkEntityName: "sys_user",
848
+ activeName: "first",
849
+ selectedRowKeys: [],
850
+ selectedRows: [],
851
+ tableColumns: [
852
+ {
853
+ type: "selection",
854
+ width: "60",
855
+ fixed: !0
856
+ },
857
+ {
858
+ transKey: "gd.user.roleName",
859
+ prop: "name",
860
+ label: "\u89D2\u8272\u540D\u79F0",
861
+ type: "slot",
862
+ slotType: "name",
863
+ align: "left"
864
+ }
865
+ ],
866
+ allRowData: [],
867
+ queryParam: {},
868
+ disabledRowId: [],
869
+ loadData: async (i) => K(Object.assign(i, this.queryParam, { sysAppsId: window.$systemInfo.id })).then(async (e) => {
870
+ let t = await this.getUseRole();
871
+ if (!t || t.length === 0)
872
+ return { rows: [], total: 0 };
873
+ console.log(t);
874
+ let a = e.data && e.data.rows ? e.data.rows : Array.isArray(e.data) ? e.data : [];
875
+ const s = t.map((r) => r), n = a.filter((r) => s.includes(r.id));
876
+ return this.selectedRowKeys = s, this.selectedRows = n, {
877
+ rows: n,
878
+ total: n.length
879
+ };
880
+ }),
881
+ listData: [],
882
+ appsId: null
883
+ };
884
+ },
885
+ computed: {
886
+ styled() {
887
+ return `height:${this.height + 76}px`;
888
+ },
889
+ getHeight() {
890
+ return this.height + 20;
891
+ },
892
+ initialLoading() {
893
+ return this.openMode === "page";
894
+ },
895
+ selectedKeep() {
896
+ return this.openMode !== "page";
897
+ },
898
+ ...u(["tablePageSize", "tableSize", "labelPosition", "formMode"])
899
+ },
900
+ mounted() {
901
+ this.activeName = "first", this.$nextTick(() => {
902
+ setTimeout(() => {
903
+ this.$refs[this.activeName].refresh();
904
+ }, 0);
905
+ });
906
+ },
907
+ methods: {
908
+ handleClick(i) {
909
+ this.$nextTick(() => {
910
+ setTimeout(() => {
911
+ this.$refs[this.activeName].refresh(this.selectedRowKeys);
912
+ }, 0);
913
+ });
914
+ },
915
+ query() {
916
+ this.refresh();
917
+ },
918
+ refresh() {
919
+ this.$refs.table.refresh(!0);
920
+ },
921
+ searchData(i) {
922
+ this.searcLoading = !0, I({ name: i, fkEntityName: this.fkEntityName }).then((e) => {
923
+ e.code === 200 && (this.userList = e.data), this.searcLoading = !1;
924
+ });
925
+ },
926
+ change(i) {
927
+ i !== "" && this.refresh();
928
+ },
929
+ getUseRole() {
930
+ return this.loading = !0, this.userId ? R({ id: this.userId }).then((i) => (this.loading = !1, this.listData = i.data, i.data)) : (this.loading = !1, []);
931
+ },
932
+ onSelectChange(i, e) {
933
+ this.selectedRowKeys = i, this.selectedRows = e;
934
+ },
935
+ getAppId() {
936
+ D({ code: "App_Id" }).then((i) => {
937
+ console.log(i), i.code === 200 && (this.appsId = i.data ? i.data.value : "");
938
+ });
939
+ }
940
+ },
941
+ created() {
942
+ this.getAppId(), this.searchData("");
943
+ }
944
+ };
945
+ var le = function() {
946
+ var e = this, t = e._self._c;
947
+ return t("div", { staticClass: "gd-page-view", staticStyle: { display: "flex" } }, [t("div", { staticClass: "gd-page-view", staticStyle: { display: "flex", background: "rgb(245, 245, 245)" } }, [t("div", { staticClass: "page-view-trees", style: e.styled }, [t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], staticClass: "trees-operatorl" }, [t("el-select", { staticClass: "treesr-input", attrs: { placeholder: e.$i18nt("gd.teamSharing.name", "\u89D2\u8272\u540D"), clearable: "", filterable: "", loading: e.searcLoading, "remote-method": e.searchData, clearable: "", remote: "" }, on: { change: e.change }, model: { value: e.userId, callback: function(a) {
948
+ e.userId = a;
949
+ }, expression: "userId" } }, e._l(e.userList, function(a) {
950
+ return t("el-option", { key: a.id, attrs: { label: a.name, value: a.id } });
951
+ }), 1), t("div", { staticClass: "treesr-search", on: { click: e.query } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "trees-list" }, [t("gd-tables", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, filtering: !1, height: e.getHeight, disabledColumnSettings: !0, disabledRefresh: !0, density: !1, selectedRowKeys: e.selectedRowKeys, initialLoading: !1, showPagination: !1, disabledRowId: e.disabledRowId }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: a, row: s }) {
952
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: s, highlight: "" } })];
953
+ } }]) })], 1)])]), t("div", { staticClass: "page-view-list", staticStyle: { "margin-left": "20px", flex: "1" } }, [t("el-tabs", { attrs: { type: "card" }, on: { "tab-click": e.handleClick }, model: { value: e.activeName, callback: function(a) {
954
+ e.activeName = a;
955
+ }, expression: "activeName" } }, [t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.menuRole", "\u83DC\u5355\u6743\u9650"), name: "first", lazy: !0 } }, [e.activeName == "first" ? t("MenuPermissions", { ref: "first", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height } }) : e._e()], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.dataRole", "\u6570\u636E\u6743\u9650"), name: "second", lazy: !0 } }, [e.activeName == "second" ? t("DataPermissions", { ref: "second", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height } }) : e._e()], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.viewOnBtnRole", "\u89C6\u56FE/\u8868\u5355\u6743\u9650"), name: "third", lazy: !0 } }, [e.activeName == "third" ? t("ViewOnBtnPermissions", { ref: "third", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height } }) : e._e()], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.appRole", "APP\u6743\u9650"), name: "fourth", lazy: !0 } }, [e.activeName == "fourth" ? t("AppPermissions", { ref: "fourth", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height, appsId: e.appsId } }) : e._e()], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.documentRole", "\u6587\u6863\u89D2\u8272\u6743\u9650"), name: "five", lazy: !0 } }, [e.activeName == "five" ? t("DccPermissions", { ref: "five", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height } }) : e._e()], 1)], 1)], 1)]);
956
+ }, oe = [], de = /* @__PURE__ */ c(
957
+ re,
958
+ le,
959
+ oe,
960
+ !1,
961
+ null,
962
+ "7f548407",
963
+ null,
964
+ null
965
+ );
966
+ const h = de.exports;
967
+ h.install = function(i) {
968
+ i.component(h.name, h);
969
+ };
970
+ export {
971
+ h as G
972
+ };