gds-plus-design-vue 1.2.71 → 1.2.73

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 (287) hide show
  1. package/lib/{addPermission.179a09f4.mjs → addPermission.1eb97ee3.mjs} +92 -92
  2. package/lib/{addPermission.c72ebbe0.js → addPermission.5bfc7e11.js} +1 -1
  3. package/lib/{approvalModel.7cfcac3c.js → approvalModel.63fa8914.js} +1 -1
  4. package/lib/{approvalModel.7b550187.mjs → approvalModel.c09cbf86.mjs} +3 -3
  5. package/lib/{attribute.e9a8faa1.mjs → attribute.88d41b0f.mjs} +93 -93
  6. package/lib/{attribute.3fed1dd9.js → attribute.919cb93e.js} +1 -1
  7. package/lib/{businessRules.cf106f09.js → businessRules.4f7349f3.js} +1 -1
  8. package/lib/{businessRules.d7d35011.mjs → businessRules.7ca458f8.mjs} +2 -2
  9. package/lib/{buttonRule.2afe380d.mjs → buttonRule.4aa9cfd8.mjs} +2 -2
  10. package/lib/{buttonRule.737e8e3f.js → buttonRule.ba9528ab.js} +1 -1
  11. package/lib/{chartDisplayRules.c9162f81.js → chartDisplayRules.25489412.js} +1 -1
  12. package/lib/{chartDisplayRules.370065e8.mjs → chartDisplayRules.63e53aa7.mjs} +1 -1
  13. package/lib/{components.chartbi.3bbac955.js → components.chartbi.13a8a7b5.js} +3 -3
  14. package/lib/{components.chartbi.571c5ff5.mjs → components.chartbi.7356b244.mjs} +4 -4
  15. package/lib/{components.coloreditor.06cf0433.mjs → components.coloreditor.20f8b336.mjs} +1 -1
  16. package/lib/{components.coloreditor.f81d322a.js → components.coloreditor.8afc4731.js} +1 -1
  17. package/lib/{components.dataassign.565d22c0.js → components.dataassign.59a87bfd.js} +1 -1
  18. package/lib/{components.dataassign.21d3938b.mjs → components.dataassign.e398cc99.mjs} +1 -1
  19. package/lib/{components.echarts.490abdfa.mjs → components.echarts.17e42353.mjs} +1 -1
  20. package/lib/{components.echarts.fe84f881.js → components.echarts.5dea23f6.js} +1 -1
  21. package/lib/{components.exception.ee1c4f83.mjs → components.exception.8689aba2.mjs} +1 -1
  22. package/lib/{components.exception.374f2ad9.js → components.exception.b4ddeaba.js} +1 -1
  23. package/lib/{components.form.5533a8c3.js → components.form.14ed3374.js} +2 -2
  24. package/lib/{components.form.db8af727.mjs → components.form.8047a9c3.mjs} +2 -2
  25. package/lib/{components.globalheader.2eb787a4.js → components.globalheader.28b38c3a.js} +1 -1
  26. package/lib/{components.globalheader.b3b35343.mjs → components.globalheader.9471ef9d.mjs} +3 -3
  27. package/lib/{components.iconselector.f5a58033.js → components.iconselector.4b5b7901.js} +1 -1
  28. package/lib/{components.iconselector.8940b1a9.mjs → components.iconselector.d2d970ba.mjs} +1 -1
  29. package/lib/{components.imgpreview.f05b3e06.mjs → components.imgpreview.0563c338.mjs} +1 -1
  30. package/lib/{components.imgpreview.d97cf25c.js → components.imgpreview.5fe318f7.js} +1 -1
  31. package/lib/{components.lunccalendar.2a097955.mjs → components.lunccalendar.9a41ea40.mjs} +1 -1
  32. package/lib/{components.lunccalendar.18f84642.js → components.lunccalendar.f18b2da3.js} +1 -1
  33. package/lib/components.middleware.7b760b95.mjs +148 -0
  34. package/lib/components.middleware.b2e156ea.js +1 -0
  35. package/lib/{components.modaltitle.957cab33.js → components.modaltitle.179b6da1.js} +1 -1
  36. package/lib/{components.modaltitle.5060623f.mjs → components.modaltitle.2c1011c5.mjs} +3 -3
  37. package/lib/{components.multitab.5eb6edff.mjs → components.multitab.15b91668.mjs} +1 -1
  38. package/lib/{components.multitab.80eeb3ae.js → components.multitab.92eb4b1e.js} +1 -1
  39. package/lib/{components.selecttree.756c4d22.mjs → components.selecttree.c615fe3e.mjs} +1 -1
  40. package/lib/{components.selecttree.2fe70d88.js → components.selecttree.ce4fbb44.js} +1 -1
  41. package/lib/{components.settingdrawer.8c12650b.js → components.settingdrawer.4581f5b1.js} +1 -1
  42. package/lib/{components.settingdrawer.29dbc31e.mjs → components.settingdrawer.bdd68e73.mjs} +1 -1
  43. package/lib/{components.sidemenu.0673fe0a.mjs → components.sidemenu.c40eee2e.mjs} +1 -1
  44. package/lib/{components.sidemenu.240dfde7.js → components.sidemenu.cd6d0301.js} +1 -1
  45. package/lib/{components.sidenavmenu.fa81ff82.mjs → components.sidenavmenu.91e996c4.mjs} +11 -11
  46. package/lib/{components.sidenavmenu.b1330d69.js → components.sidenavmenu.a3de1659.js} +1 -1
  47. package/lib/{components.statuschange.858b72e8.js → components.statuschange.190f14ff.js} +1 -1
  48. package/lib/{components.statuschange.fae4adba.mjs → components.statuschange.85956695.mjs} +1 -1
  49. package/lib/{components.table.1e338902.js → components.table.a0ac819e.js} +2 -2
  50. package/lib/{components.table.9ed77207.mjs → components.table.d79f5fa3.mjs} +6 -6
  51. package/lib/{components.tableumy.3e1c9a5b.mjs → components.tableumy.750ec792.mjs} +1 -1
  52. package/lib/{components.tableumy.1d804d70.js → components.tableumy.aa73378d.js} +1 -1
  53. package/lib/{components.tablevirtual.8e21a6e7.js → components.tablevirtual.879ff28f.js} +1 -1
  54. package/lib/{components.tablevirtual.66890b2c.mjs → components.tablevirtual.9bf87b78.mjs} +1 -1
  55. package/lib/{components.teamsharing.3a17ddc0.mjs → components.teamsharing.b9f112cf.mjs} +1 -1
  56. package/lib/{components.teamsharing.89e668fd.js → components.teamsharing.efe58448.js} +1 -1
  57. package/lib/{components.tooltip.376d95fe.mjs → components.tooltip.065f3dee.mjs} +1 -1
  58. package/lib/{components.tooltip.0ea7e2b1.js → components.tooltip.edf8e4ca.js} +1 -1
  59. package/lib/{components.uploadfile.0a5a1608.mjs → components.uploadfile.0439b870.mjs} +1 -1
  60. package/lib/{components.uploadfile.8e0e702c.js → components.uploadfile.586aca36.js} +1 -1
  61. package/lib/{components.uploadimg.bc160e00.js → components.uploadimg.2324089d.js} +1 -1
  62. package/lib/{components.uploadimg.decb0360.mjs → components.uploadimg.5f2194ff.mjs} +1 -1
  63. package/lib/{components.verificationcode.140533c7.js → components.verificationcode.863ff11e.js} +1 -1
  64. package/lib/{components.verificationcode.7091b10b.mjs → components.verificationcode.d8893ff6.mjs} +1 -1
  65. package/lib/{components.viewformdetails.d241c652.mjs → components.viewformdetails.4e40579f.mjs} +42 -26
  66. package/lib/components.viewformdetails.6e66cc83.js +1 -0
  67. package/lib/{components.viewloading.aae3aab4.mjs → components.viewloading.5761b277.mjs} +1 -1
  68. package/lib/{components.viewloading.1e9f4b3c.js → components.viewloading.5b9c8fee.js} +1 -1
  69. package/lib/{components.watermark.d9ec8130.js → components.watermark.af8b5718.js} +1 -1
  70. package/lib/{components.watermark.2ec3260c.mjs → components.watermark.d3638d63.mjs} +1 -1
  71. package/lib/{components.xlsxexport.0d1553b1.js → components.xlsxexport.8c121797.js} +1 -1
  72. package/lib/{components.xlsxexport.c33f83ca.mjs → components.xlsxexport.a1b7b087.mjs} +2 -2
  73. package/lib/{components.xlsximport.8c209857.js → components.xlsximport.c53c50f6.js} +1 -1
  74. package/lib/{components.xlsximport.81df7841.mjs → components.xlsximport.d39bfeaa.mjs} +1 -1
  75. package/lib/{copy.8db86d9f.mjs → copy.3b06d60f.mjs} +1 -1
  76. package/lib/{copy.a8753f38.js → copy.fa2fcb22.js} +1 -1
  77. package/lib/{createFile.04a6b293.js → createFile.94329169.js} +1 -1
  78. package/lib/{createFile.4cac1673.mjs → createFile.ca811a30.mjs} +93 -93
  79. package/lib/{createSubfolders.e105fa86.js → createSubfolders.51df8fcd.js} +1 -1
  80. package/lib/{createSubfolders.eac5ccae.mjs → createSubfolders.f8cad77f.mjs} +1 -1
  81. package/lib/{dialogLayout.bf435838.mjs → dialogLayout.539feafb.mjs} +1 -1
  82. package/lib/{dialogLayout.f0779aed.js → dialogLayout.621a3d40.js} +1 -1
  83. package/lib/{drawerLayout.b6c7c3c6.js → drawerLayout.accd44be.js} +1 -1
  84. package/lib/{drawerLayout.e3c0164d.mjs → drawerLayout.c52b8374.mjs} +1 -1
  85. package/lib/{editForm.aef93ed0.mjs → editForm.83d10fae.mjs} +1 -1
  86. package/lib/{editForm.0f3fd3b0.js → editForm.e284e5ec.js} +1 -1
  87. package/lib/{extendedAttributes.ea93dbaa.mjs → extendedAttributes.a3ee9bde.mjs} +93 -93
  88. package/lib/{extendedAttributes.ef3ead02.js → extendedAttributes.b1107f6c.js} +1 -1
  89. package/lib/{fileSearch.43465e1c.js → fileSearch.4722ac3b.js} +1 -1
  90. package/lib/{fileSearch.5c8a883d.mjs → fileSearch.d7abc086.mjs} +92 -92
  91. package/lib/{flow.designer.ffd0aa8b.js → flow.designer.7d58bc2c.js} +1 -1
  92. package/lib/{flow.designer.81c29f62.mjs → flow.designer.b066df02.mjs} +6 -6
  93. package/lib/{flow.list.ab420927.mjs → flow.list.a9afdd93.mjs} +3 -3
  94. package/lib/{flow.list.4c05f2f0.js → flow.list.d288de5e.js} +1 -1
  95. package/lib/{form.build.d04773f0.mjs → form.build.16110b90.mjs} +21 -17
  96. package/lib/form.build.5461409b.js +1 -0
  97. package/lib/{form.designer.build.c82cb559.mjs → form.designer.build.2bd26973.mjs} +24 -38
  98. package/lib/{form.designer.build.dac501fa.js → form.designer.build.67b316e1.js} +1 -1
  99. package/lib/{formFiled.c949a27f.mjs → formFiled.3763ebff.mjs} +7 -7
  100. package/lib/{formFiled.4b5062d7.js → formFiled.ef26328d.js} +1 -1
  101. package/lib/gd-initial.js +1 -1
  102. package/lib/gd-initial.mjs +92 -92
  103. package/lib/{index.9deaa991.mjs → index.606ef358.mjs} +835 -828
  104. package/lib/index.fe18e32c.js +8 -0
  105. package/lib/layoutBlocks.0784592a.mjs +570 -0
  106. package/lib/layoutBlocks.1b71d988.js +1 -0
  107. package/lib/{layoutItem.cf18143e.mjs → layoutItem.051495bc.mjs} +2 -2
  108. package/lib/{layoutItem.c1c836a1.js → layoutItem.6f6017a5.js} +1 -1
  109. package/lib/{layouts.3b383d04.mjs → layouts.915931be.mjs} +4 -4
  110. package/lib/{layouts.2d06f3e9.js → layouts.ae25c583.js} +1 -1
  111. package/lib/{main.edc0b23b.js → main.0326119e.js} +1 -1
  112. package/lib/{main.aea9b6a8.mjs → main.034638bb.mjs} +3 -3
  113. package/lib/{main.c71e5b11.js → main.0dc447c8.js} +1 -1
  114. package/lib/{main.60329866.mjs → main.26d3511c.mjs} +2 -2
  115. package/lib/{main.3e886f21.mjs → main.2f9312bb.mjs} +2 -2
  116. package/lib/{main.28b7c398.js → main.316ac1b8.js} +1 -1
  117. package/lib/{main.09d48801.js → main.44d72b90.js} +1 -1
  118. package/lib/{main.643d21a0.mjs → main.44efe912.mjs} +92 -92
  119. package/lib/{main.b7a5a02b.js → main.47957168.js} +1 -1
  120. package/lib/{main.64ddb5f6.mjs → main.54ac9faa.mjs} +1 -1
  121. package/lib/{main.29e204f9.mjs → main.69a2b457.mjs} +2 -2
  122. package/lib/{main.60c2a1a2.js → main.6df74fe7.js} +1 -1
  123. package/lib/{main.728eaf53.js → main.72c15ab0.js} +1 -1
  124. package/lib/{main.892caa37.js → main.736883a9.js} +1 -1
  125. package/lib/{main.357c50d2.js → main.9b2769b1.js} +1 -1
  126. package/lib/{main.33443996.mjs → main.adcedcee.mjs} +2 -2
  127. package/lib/{main.419a7b42.mjs → main.ca46939e.mjs} +1 -1
  128. package/lib/{main.4a38d5f8.js → main.e1cf9798.js} +1 -1
  129. package/lib/{main.f520fcf5.mjs → main.efc8dc7b.mjs} +1 -1
  130. package/lib/{main.61c9e5c6.mjs → main.fc38c7c8.mjs} +2 -2
  131. package/lib/{manage.f4000654.mjs → manage.63cd038d.mjs} +93 -93
  132. package/lib/{manage.101f1aa9.js → manage.80871daf.js} +1 -1
  133. package/lib/{messages.fieldconfiguration.ad4d11cf.js → messages.fieldconfiguration.092bb027.js} +1 -1
  134. package/lib/{messages.fieldconfiguration.0d98a290.mjs → messages.fieldconfiguration.7fd9ceb0.mjs} +5 -5
  135. package/lib/{messages.messagetemplate.7adbbc58.mjs → messages.messagetemplate.0935e5a3.mjs} +4 -4
  136. package/lib/{messages.messagetemplate.32273e00.js → messages.messagetemplate.50334e5f.js} +4 -4
  137. package/lib/{messages.sendplan.fbac188d.js → messages.sendplan.60929f46.js} +1 -1
  138. package/lib/{messages.sendplan.7d0097c2.mjs → messages.sendplan.61edcc7f.mjs} +2 -2
  139. package/lib/{messages.sendrecord.ef80d44a.js → messages.sendrecord.09a1d1cd.js} +1 -1
  140. package/lib/{messages.sendrecord.f0d2fd54.mjs → messages.sendrecord.1c48aa6e.mjs} +1 -1
  141. package/lib/{messages.templatelibrary.ff151513.mjs → messages.templatelibrary.f31e8d58.mjs} +1 -1
  142. package/lib/{messages.templatelibrary.ec512390.js → messages.templatelibrary.f5952edd.js} +1 -1
  143. package/lib/{mobile.designer.componentstree.4a1442dc.mjs → mobile.designer.componentstree.70fd4c93.mjs} +2 -2
  144. package/lib/{mobile.designer.componentstree.03f61105.js → mobile.designer.componentstree.f4a901e4.js} +1 -1
  145. package/lib/{mobile.designer.menutree.97bb4046.js → mobile.designer.menutree.4d4e059b.js} +1 -1
  146. package/lib/{mobile.designer.menutree.0a2f7911.mjs → mobile.designer.menutree.7d3b783d.mjs} +3 -3
  147. package/lib/{moveFile.d71c0824.mjs → moveFile.b66805f8.mjs} +92 -92
  148. package/lib/{moveFile.335ebc8d.js → moveFile.d79f7fd9.js} +1 -1
  149. package/lib/{page.build.376104d5.mjs → page.build.09137386.mjs} +4 -4
  150. package/lib/{page.build.37b26617.js → page.build.1b771761.js} +2 -2
  151. package/lib/{page.designer.componentstree.0ffc933d.js → page.designer.componentstree.341908b2.js} +1 -1
  152. package/lib/{page.designer.componentstree.b0ecddd8.mjs → page.designer.componentstree.a256ff7a.mjs} +2 -2
  153. package/lib/{page.designer.fieldfiltering.1ecd65a3.mjs → page.designer.fieldfiltering.e341aa60.mjs} +2 -2
  154. package/lib/{page.designer.fieldfiltering.7e913256.js → page.designer.fieldfiltering.f2d1b6e4.js} +1 -1
  155. package/lib/{page.designer.menutree.c49d9ee6.js → page.designer.menutree.71c18258.js} +1 -1
  156. package/lib/{page.designer.menutree.2c1846bc.mjs → page.designer.menutree.e4ce1e90.mjs} +2 -2
  157. package/lib/{page.designer.operation.6179b661.js → page.designer.operation.1d435e6e.js} +1 -1
  158. package/lib/{page.designer.operation.80b1a5d1.mjs → page.designer.operation.fe808988.mjs} +1 -1
  159. package/lib/{page.designer.page.6d8232c7.mjs → page.designer.page.559113a9.mjs} +47 -43
  160. package/lib/page.designer.page.d2d6b614.js +1 -0
  161. package/lib/{personal.echarts.414b7e3d.mjs → personal.echarts.118bcafb.mjs} +3 -3
  162. package/lib/{personal.echarts.b7ee86f4.js → personal.echarts.e5915542.js} +1 -1
  163. package/lib/{result.0c089066.mjs → result.16da7693.mjs} +93 -93
  164. package/lib/{result.9282a717.js → result.9cb6c2f1.js} +1 -1
  165. package/lib/{router.config.68077a12.js → router.config.1e67a1c3.js} +1 -1
  166. package/lib/{router.config.86225b11.mjs → router.config.70680261.mjs} +14 -14
  167. package/lib/{solution.application.d459e382.js → solution.application.8d6c84e8.js} +1 -1
  168. package/lib/{solution.application.e0d58df1.mjs → solution.application.e6b5dc4f.mjs} +1 -1
  169. package/lib/{solution.applicationmenu.ae295083.js → solution.applicationmenu.c6cd2b59.js} +1 -1
  170. package/lib/{solution.applicationmenu.71ef6b8e.mjs → solution.applicationmenu.e878c41a.mjs} +1 -1
  171. package/lib/{solution.approvalflow.bef7fbdd.mjs → solution.approvalflow.8572122d.mjs} +2 -2
  172. package/lib/{solution.approvalflow.436b3502.js → solution.approvalflow.cce2f064.js} +1 -1
  173. package/lib/{solution.dict.ef98b194.mjs → solution.dict.088a1e72.mjs} +1 -1
  174. package/lib/{solution.dict.acbe9c55.js → solution.dict.1d5195d0.js} +1 -1
  175. package/lib/{solution.menu.5c17348f.mjs → solution.menu.e58922fe.mjs} +2 -2
  176. package/lib/{solution.menu.cca5e1f9.js → solution.menu.fa48a7e8.js} +1 -1
  177. package/lib/{solution.plugin.f9a8063f.js → solution.plugin.5d6d29cf.js} +1 -1
  178. package/lib/{solution.plugin.90f8dcc1.mjs → solution.plugin.ae6df926.mjs} +2 -2
  179. package/lib/{solution.processflow.c1544b05.mjs → solution.processflow.a52fd47c.mjs} +2 -2
  180. package/lib/{solution.processflow.2692dac6.js → solution.processflow.bfa4897c.js} +1 -1
  181. package/lib/{solution.role.b28c4dbe.js → solution.role.2eff83a1.js} +1 -1
  182. package/lib/{solution.role.b1ab40dd.mjs → solution.role.7b3e7030.mjs} +1 -1
  183. package/lib/{solution.webresources.0b51beba.mjs → solution.webresources.88c4483b.mjs} +2 -2
  184. package/lib/{solution.webresources.6961cc68.js → solution.webresources.bc00603d.js} +1 -1
  185. package/lib/{solution.workflow.c48545d1.mjs → solution.workflow.2530073b.mjs} +2 -2
  186. package/lib/{solution.workflow.11e49e25.js → solution.workflow.59e0e697.js} +1 -1
  187. package/lib/style.css +3 -3
  188. package/lib/{system.account.1cadbf03.mjs → system.account.3d7480ba.mjs} +2 -2
  189. package/lib/{system.account.5cc9fe8d.js → system.account.93ad722e.js} +1 -1
  190. package/lib/{system.config.a9a1ee96.mjs → system.config.6084ad21.mjs} +1 -1
  191. package/lib/{system.config.a0b94e40.js → system.config.9520e7f9.js} +1 -1
  192. package/lib/{system.datasource.6c30ce25.js → system.datasource.76c0ccdb.js} +1 -1
  193. package/lib/{system.datasource.c103a9c2.mjs → system.datasource.d74df021.mjs} +1 -1
  194. package/lib/{system.dict.6b000092.js → system.dict.ab148847.js} +1 -1
  195. package/lib/{system.dict.0c229d1c.mjs → system.dict.caad4d66.mjs} +1 -1
  196. package/lib/{system.document.f8fd7af0.js → system.document.0e46ff8c.js} +1 -1
  197. package/lib/{system.document.f67c2994.mjs → system.document.cbdf25a9.mjs} +2 -2
  198. package/lib/{system.duplicatechecking.94c7ce17.mjs → system.duplicatechecking.a0da805e.mjs} +2 -2
  199. package/lib/{system.duplicatechecking.f4cab147.js → system.duplicatechecking.bef2b20c.js} +1 -1
  200. package/lib/{system.email.11ab6f31.js → system.email.1db14214.js} +1 -1
  201. package/lib/{system.email.13823361.mjs → system.email.c1ad6598.mjs} +2 -2
  202. package/lib/{system.fieldsecurity.d35acd97.mjs → system.fieldsecurity.2e55e839.mjs} +1 -1
  203. package/lib/{system.fieldsecurity.2ef2881c.js → system.fieldsecurity.40b4f48a.js} +1 -1
  204. package/lib/{system.file.b9f8320c.js → system.file.6a6bd77c.js} +1 -1
  205. package/lib/{system.file.30d3e7bc.mjs → system.file.80aa0809.mjs} +1 -1
  206. package/lib/{system.log.815840d8.mjs → system.log.3986a8ca.mjs} +1 -1
  207. package/lib/{system.log.470d3efd.js → system.log.9d394678.js} +1 -1
  208. package/lib/{system.machine.1665954f.mjs → system.machine.395c67c2.mjs} +1 -1
  209. package/lib/{system.machine.f8aff893.js → system.machine.d33b0b6e.js} +1 -1
  210. package/lib/system.notice.72e0615f.js +1 -0
  211. package/lib/{system.notice.bef6c23c.mjs → system.notice.da2c944c.mjs} +220 -217
  212. package/lib/{system.noticereceived.0d293a87.mjs → system.noticereceived.30dab7d1.mjs} +2 -2
  213. package/lib/{system.noticereceived.84b88b9a.js → system.noticereceived.54c17b73.js} +1 -1
  214. package/lib/{system.onlineuser.bccb1cd9.mjs → system.onlineuser.71034956.mjs} +1 -1
  215. package/lib/{system.onlineuser.985621a6.js → system.onlineuser.e74f010d.js} +1 -1
  216. package/lib/{system.org.92f4d7f1.mjs → system.org.e1e156c6.mjs} +1 -1
  217. package/lib/{system.org.9f87a010.js → system.org.f6d58d0f.js} +1 -1
  218. package/lib/{system.permissions.be9238ee.mjs → system.permissions.4090552f.mjs} +1 -1
  219. package/lib/{system.permissions.15e6b8b7.js → system.permissions.fdb64929.js} +1 -1
  220. package/lib/{system.plugin.af27d7ac.mjs → system.plugin.8a9a6448.mjs} +1 -1
  221. package/lib/{system.plugin.0bccfec4.js → system.plugin.a0f25733.js} +1 -1
  222. package/lib/{system.pos.fe067063.mjs → system.pos.0ad80a53.mjs} +1 -1
  223. package/lib/{system.pos.61e58a92.js → system.pos.71f3eba7.js} +1 -1
  224. package/lib/{system.promptmanagement.0b9083c5.mjs → system.promptmanagement.39607ddb.mjs} +1 -1
  225. package/lib/{system.promptmanagement.e750de82.js → system.promptmanagement.9718aa24.js} +1 -1
  226. package/lib/{system.role.e86b60f1.js → system.role.321c48d3.js} +1 -1
  227. package/lib/{system.role.67f62146.mjs → system.role.3b533a3e.mjs} +1 -1
  228. package/lib/{system.sumberrules.810f7b55.js → system.sumberrules.6e8d208e.js} +1 -1
  229. package/lib/{system.sumberrules.093d998e.mjs → system.sumberrules.c2b8c5e7.mjs} +1 -1
  230. package/lib/{system.team.8911fd95.mjs → system.team.367bf5e7.mjs} +2 -2
  231. package/lib/{system.team.58ee701b.js → system.team.cf1c1558.js} +1 -1
  232. package/lib/{system.teammembers.1880f962.js → system.teammembers.63f21557.js} +1 -1
  233. package/lib/{system.teammembers.35564a00.mjs → system.teammembers.851ce63b.mjs} +1 -1
  234. package/lib/{system.timers.9e956553.js → system.timers.51bedf97.js} +1 -1
  235. package/lib/{system.timers.4b2d509f.mjs → system.timers.5e735567.mjs} +1 -1
  236. package/lib/{system.translation.60ec676c.mjs → system.translation.61765713.mjs} +1 -1
  237. package/lib/{system.translation.26b6bb39.js → system.translation.c9f1b505.js} +1 -1
  238. package/lib/{system.user.9a02295e.mjs → system.user.a1ff367b.mjs} +4 -4
  239. package/lib/{system.user.134a3988.js → system.user.bff7cc2f.js} +1 -1
  240. package/lib/{system.useraffiliation.96695aeb.mjs → system.useraffiliation.b96c984a.mjs} +1 -1
  241. package/lib/{system.useraffiliation.c2421c7e.js → system.useraffiliation.fe1e1d39.js} +1 -1
  242. package/lib/{system.webresource.016d0000.mjs → system.webresource.2c6cf4a7.mjs} +1 -1
  243. package/lib/{system.webresource.e92e8a8f.js → system.webresource.81cfa690.js} +1 -1
  244. package/lib/{system.welcome.127b5dd4.mjs → system.welcome.72da74ae.mjs} +1 -1
  245. package/lib/{system.welcome.ff0c85e2.js → system.welcome.d86a3cdb.js} +1 -1
  246. package/lib/{table.definition..btnconfig.9847cac5.mjs → table.definition..btnconfig.24402bf0.mjs} +2 -2
  247. package/lib/{table.definition..btnconfig.ce57ed41.js → table.definition..btnconfig.add3d840.js} +1 -1
  248. package/lib/{table.definition..echartsconfig.d2b65881.js → table.definition..echartsconfig.4310b5a2.js} +1 -1
  249. package/lib/{table.definition..echartsconfig.625bce88.mjs → table.definition..echartsconfig.9c3c88f6.mjs} +6 -6
  250. package/lib/{tableDescriptions.b9b0d7fa.js → tableDescriptions.143d8e67.js} +1 -1
  251. package/lib/{tableDescriptions.a4196776.mjs → tableDescriptions.60a07f7c.mjs} +1 -1
  252. package/lib/{tcheckboxs.7ea99d35.js → tcheckboxs.e4d387ff.js} +1 -1
  253. package/lib/{tcheckboxs.999b7c2e.mjs → tcheckboxs.ee4adb9e.mjs} +1 -1
  254. package/lib/{tcurrency.4afb9192.mjs → tcurrency.0360c142.mjs} +1 -1
  255. package/lib/{tcurrency.8a2361f2.js → tcurrency.233f4e63.js} +1 -1
  256. package/lib/{tdatepicker.606214fa.mjs → tdatepicker.9e5d99f4.mjs} +1 -1
  257. package/lib/{tdatepicker.8e94a60c.js → tdatepicker.b10536fd.js} +1 -1
  258. package/lib/{tdictSwitch.ccbdd153.js → tdictSwitch.10d64c18.js} +1 -1
  259. package/lib/{tdictSwitch.e016d4cf.mjs → tdictSwitch.eed5a945.mjs} +1 -1
  260. package/lib/{tfile.3f39223d.mjs → tfile.7c635ee4.mjs} +1 -1
  261. package/lib/{tfile.b3ebdc71.js → tfile.e183d25f.js} +1 -1
  262. package/lib/{tparticipants.5fe27540.mjs → tparticipants.04280449.mjs} +1 -1
  263. package/lib/{tparticipants.78c8c175.js → tparticipants.f732d245.js} +1 -1
  264. package/lib/{translation.mains.2688be5b.mjs → translation.mains.0df71304.mjs} +2 -2
  265. package/lib/{translation.mains.a6f19343.js → translation.mains.6f941967.js} +1 -1
  266. package/lib/{versionControl.46a7f31a.js → versionControl.47cc1330.js} +1 -1
  267. package/lib/{versionControl.c53bfb5d.mjs → versionControl.6cd18867.mjs} +98 -98
  268. package/lib/{versionEdit.5a8292ec.mjs → versionEdit.910d2e2f.mjs} +93 -93
  269. package/lib/{versionEdit.4246d5db.js → versionEdit.977faa93.js} +1 -1
  270. package/lib/{view.build.85732408.mjs → view.build.20e9aec0.mjs} +14 -14
  271. package/lib/{view.build.e43a2077.js → view.build.a48a14b0.js} +1 -1
  272. package/lib/{viewList.868edcd7.js → viewList.71f866da.js} +1 -1
  273. package/lib/{viewList.978b72c5.mjs → viewList.a4909732.mjs} +23 -23
  274. package/lib/{viewTree.7497ff90.js → viewTree.9bdf96f0.js} +1 -1
  275. package/lib/{viewTree.bde43a3b.mjs → viewTree.c2e11b7f.mjs} +1 -1
  276. package/package.json +1 -1
  277. package/lib/components.middleware.43b9b264.js +0 -1
  278. package/lib/components.middleware.de012955.mjs +0 -148
  279. package/lib/components.viewformdetails.940addba.js +0 -1
  280. package/lib/drawerContainer.6ab3df46.mjs +0 -163
  281. package/lib/drawerContainer.8f9df583.js +0 -1
  282. package/lib/form.build.724d3357.js +0 -1
  283. package/lib/index.d95c407c.js +0 -8
  284. package/lib/layoutBlocks.26e1b57b.js +0 -1
  285. package/lib/layoutBlocks.31454610.mjs +0 -413
  286. package/lib/page.designer.page.09402332.js +0 -1
  287. package/lib/system.notice.db26f308.js +0 -1
@@ -1 +1 @@
1
- "use strict";const r=require("./http.promptmanagement.d115c4b0.js"),c=require("./components.chartbi.3bbac955.js"),u=require("./utils.mixins.js.750ca50e.js"),m=require("./http.translationmanage.1f9dce46.js"),p=require("./utils.util.js.c0ba699b.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.promptManagement.hintInfo",prop:"name",label:"\u63D0\u793A\u4FE1\u606F",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.promptManagement.hintCode",prop:"hintcode",width:"260",label:"\u63D0\u793A\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.promptManagement.hintSeverity",prop:"hintseverity",width:"160",label:"\u4E25\u91CD\u7A0B\u5EA6",type:"slot",slotType:"hintseverity",align:"left"},{transKey:"gd.promptManagement.systemCode",prop:"systemcode",width:"160",label:"\u6240\u5C5E\u7CFB\u7EDF",type:"slot",slotType:"systemcode",align:"left"},{transKey:"gd.promptManagement.typeCode",prop:"typecode",width:"160",label:"\u6240\u5C5E\u5206\u7C7B",type:"slot",slotType:"typecode",align:"left"},{transKey:"gd.promptManagement.moduleCode",prop:"modulecode",width:"160",label:"\u6240\u5C5E\u6A21\u5757",type:"slot",slotType:"modulecode",align:"left"},{transKey:"gd.promptManagement.hintDescription",prop:"hintdescription",width:"260",label:"\u63D0\u793A\u63CF\u8FF0",align:"left"},{transKey:"gd.promptManagement.parameters",prop:"parameters",width:"160",label:"\u53C2\u6570",align:"left"},{transKey:"gd.msg.sendRecord.updatedTime",prop:"updatedtime",width:"180",label:"\u66F4\u65B0\u65F6\u95F4",align:"center"},{transKey:"gd.msg.sendRecord.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],formColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"promptManagement:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"promptManagement:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"promptManagement:delete"}],formButtons:[],tableQueries:[{transKey:"gd.promptManagement.hintInfo",prop:"name",label:"\u63D0\u793A\u4FE1\u606F",effectType:"input",rules:[],fkData:[]},{transKey:"gd.promptManagement.hintCode",prop:"hintcode",label:"\u63D0\u793A\u7F16\u7801",effectType:"input",rules:[],fkData:[]},{transKey:"gd.promptManagement.hintSeverity",prop:"hintseverity",label:"\u4E25\u91CD\u7A0B\u5EA6",effectType:"select",dictTypeCode:"severity_level",rules:[],fkData:[]},{transKey:"gd.promptManagement.systemCode",prop:"systemcode",label:"\u6240\u5C5E\u7CFB\u7EDF",effectType:"select",dictTypeCode:"source_system",rules:[],fkData:[]},{transKey:"gd.promptManagement.typeCode",prop:"typecode",label:"\u6240\u5C5E\u5206\u7C7B",effectType:"select",dictTypeCode:"source_category",rules:[],fkData:[]},{transKey:"gd.promptManagement.moduleCode",prop:"modulecode",label:"\u6240\u5C5E\u6A21\u5757",effectType:"select",dictTypeCode:"source_module",rules:[],fkData:[]}]}}};const g={props:{height:{type:Number,default:100}},name:"GdPromptManagement",mixins:[u.tablesFilter,h],components:{editForm:()=>Promise.resolve().then(()=>C)},data(){return{selectedRowKeys:[],selectedRows:[],disableBtn:[],transKey:"gd.promptManagement.checkConfigurationRetryRule",formLoading:!1,currentNode:null,loadData:s=>r.listSysPrompt(Object.assign(s,this.getQueryParam)).then(e=>e.data),record:{},queryParam:{}}},computed:{getTableLists(){let s=[...this.tableLists];return s.forEach((e,t)=>{s[t].name=e.busname,s[t].code=e.id}),s},getTableQueries(){return this.tableQueries.forEach((s,e)=>{}),this.tableQueries},getHeight(){return this.height},getTableButtons(){return this.tableButtons.filter(s=>(s.show=!this.disableBtn.includes(s.displayName),!0))},getQueryParam(){let s=new Map;for(let e in this.queryParam)s.set(e,this.queryParam[e]);return Object.fromEntries(s)},...c.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","tableLists"])},methods:{onSelectChange(s,e){if(this.selectedRows=e,this.selectedRowKeys=s,s.length===0){this.disableBtn=[];return}},query(){this.$refs.table.refresh(!0)},refresh(){this.$refs.table.refresh()},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.editForms(this.selectedRows[0])},editForms(s){this.$refs.editForm.init(s)},saveQueries(s){this.queryParam={...s},this.refresh()},add(){this.$refs.editForm.init(null)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\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 a=[],i=r.delSysHintcatalog({id:this.selectedRowKeys.join(",")}).then(n=>n);a.push(i),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,t();const o=n.filter(l=>!l.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh()})},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()},handleOk(){this.$refs.table.refresh()},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(a=>a.code==s)[0];return t!=null&&t.colour?t.colour:null},enable(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\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.editStateCodes({row:this.selectedRows[0]})},deactivated(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\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.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:s,row:e}){if(e.dict_type==1){this.$message.error(this.$i18nt("gd.https.operableNoTip","\u4E0D\u53EF\u64CD\u4F5C!"));return}const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),a=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:a,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:(i,n,o)=>{if(i!=="confirm"){o();return}n.confirmButtonLoading=!0,n.cancelButtonLoading=!0,n.showCancelButton=!1,r.editSysHintcatalog({id:e.id,stateCodes:e.statecodes==1?0:1}).then(l=>{o(),n.confirmButtonLoading=!1,n.cancelButtonLoading=!1,n.showCancelButton=!0,l.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message)})}})}}};var y=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,filtering:!0,height:e.getHeight},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForms}})]}},{key:"createdtime",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"createdtime",row:i}})]}},{key:"updatedtime",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"updatedtime",row:i}})]}},{key:"hintseverity",fn:function(a){return[e.dictSwitch(a.row.hintseverity,"severity_level")?t("el-tag",{attrs:{color:e.dictSwitch(a.row.hintseverity,"severity_level")}},[e._v(" "+e._s(e._f("dictType")("severity_level",a.row.hintseverity))+" ")]):t("span",[e._v(e._s(e._f("dictType")("severity_level",a.row.hintseverity)))])]}},{key:"systemcode",fn:function(a){return[e.dictSwitch(a.row.systemcode,"source_system")?t("el-tag",{attrs:{color:e.dictSwitch(a.row.systemcode,"source_system")}},[e._v(" "+e._s(e._f("dictType")("source_system",a.row.systemcode))+" ")]):t("span",[e._v(e._s(e._f("dictType")("source_system",a.row.systemcode)))])]}},{key:"typecode",fn:function(a){return[e.dictSwitch(a.row.typecode,"source_category")?t("el-tag",{attrs:{color:e.dictSwitch(a.row.typecode,"source_category")}},[e._v(" "+e._s(e._f("dictType")("source_category",a.row.typecode))+" ")]):t("span",[e._v(e._s(e._f("dictType")("source_category",a.row.typecode)))])]}},{key:"modulecode",fn:function(a){return[e.dictSwitch(a.row.modulecode,"source_module")?t("el-tag",{attrs:{color:e.dictSwitch(a.row.modulecode,"source_module")}},[e._v(" "+e._s(e._f("dictType")("source_module",a.row.modulecode))+" ")]):t("span",[e._v(e._s(e._f("dictType")("source_module",a.row.modulecode)))])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl",staticStyle:{"margin-right":"12px"}},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.promptManagement.hintCode","\u63D0\u793A\u7F16\u7801"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.query.apply(null,arguments)}},model:{value:e.queryParam.hintcode,callback:function(a){e.$set(e.queryParam,"hintcode",a)},expression:"queryParam.hintcode"}}),t("div",{staticClass:"table-operator-search",on:{click:e.query}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorl"},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.promptManagement.hintInfo","\u63D0\u793A\u4FE1\u606F"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.query.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(a){e.$set(e.queryParam,"name",a)},expression:"queryParam.name"}}),t("div",{staticClass:"table-operator-search",on:{click:e.query}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:a,visible:i}){return[t("gd-table-queries-field",{attrs:{columns:e.getTableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:i},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},f=[],b=c.normalizeComponent(g,y,f,!1,null,"65b8f5e8",null,null);const d=b.exports;d.install=function(s){s.component(d.name,d)};const _={data(){return{confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:"",hintseverity:"",hintcode:"",systemcode:"",typecode:"",modulecode:"",parameters:"",hintdescription:"",langs:""},rules:{hintcode:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],hintseverity:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],systemcode:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],typecode:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],modulecode:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},visible:!1,addData:null,viewId:"0",translationDetail:{name:"",langs:[]},sourcecategory:[],sourcemodule:[]}},components:{},computed:{modalStyle(){return this.fullScreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"30px"}}},...c.mapGetters(["screenHeight","tableLists"])},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},copyData(){p.copyTextToClipboard(this.ruleFormData.hintcode,()=>{this.$message.success(this.$i18nt("gd.https.beenCopied","\u6570\u636E\u5DF2\u590D\u5236"))})},changeText(s){let e=[...this.translationDetail.langs];e.map(t=>(t.description=t.languagecode.replace(/-/g,"_")==="zh_CN"?s:t.description,t)),this.translationDetail.langs=[...e]},changeLanguage(s,e){e.languagecode.replace(/-/g,"_")==="zh_CN"&&(this.ruleFormData.name=s)},getAllLanguage(){this.confirmLoading=!0,m.GetAllLanguage().then(s=>{let e=s.data;this.addData&&e.map(t=>{let a=this.addData.langs.filter(i=>i.code==t.languagecode)[0];return t.languagecode=t.languagecode.replace(/-/g,"_"),t.description=a===void 0?"":a.val,t}),this.translationDetail.langs=e,this.confirmLoading=!1})},getDictionary(s){return this.$options.filters.dictData(s)},getsourcecategory(s){this.sourcecategory=this.$options.filters.dictData("source_category").filter(e=>s.split(",").includes(e.name))},getsourcemodule(s){this.sourcemodule=this.$options.filters.dictData("source_module").filter(e=>s.split(",").includes(e.name))},changecode(s){let e=this.getDictionary("source_system"),t="";e.forEach(a=>{a.code==s&&(t=a.remark)}),this.sourcecategory=[],this.sourcemodule=[],this.ruleFormData.typecode="",this.ruleFormData.modulecode="",this.getsourcecategory(t)},changetypecode(s){let e="";this.sourcecategory.forEach(t=>{t.code==s&&(e=t.remark)}),this.getsourcemodule(e)},init(s){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=s?2:1,this.title=s?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sysViewButtons=[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],this.getAllLanguage(),s&&this.$nextTick(()=>{setTimeout(()=>{this.sysTranslationDetail(s.id)})})},sysTranslationDetail(s){this.confirmLoading=!0,r.detailSysHintcatalog({id:s}).then(e=>{this.ruleFormData.name=e.data.name,this.ruleFormData.id=e.data.id,this.ruleFormData.hintseverity=String(e.data.hintseverity),this.ruleFormData.hintcode=e.data.hintcode,this.ruleFormData.hintdescription=e.data.hintdescription,this.ruleFormData.parameters=e.data.parameters,this.ruleFormData.systemcode=e.data.systemcode,this.changecode(this.ruleFormData.systemcode),this.ruleFormData.typecode=e.data.typecode,this.changetypecode(this.ruleFormData.typecode),this.ruleFormData.modulecode=e.data.modulecode;let t=e.data&&e.data.langs?e.data.langs:[];t.map(a=>(a.languagecode=a.languagecode.replace(/-/g,"_"),a)),this.translationDetail=Object.assign(e.data,{langs:t}),this.confirmLoading=!1})},add(s){this.confirmLoading=!0,delete s.id,r.addSysHintcatalog(s).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",s),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(s){this.confirmLoading=!0,delete s.basicRecordTable,delete s.matchingRecordTable,r.editSysHintcatalog(s).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",s),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+e.message)}).finally(e=>{this.confirmLoading=!1})},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){const e={...this.ruleFormData,langs:this.translationDetail.langs||[],name:this.ruleFormData.name||this.translationDetail.name};this.type==1?this.add(e):this.edit(e)}})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={name:"",hintseverity:"",hintcode:"",systemcode:"",typecode:"",modulecode:"",parameters:"",hintdescription:"",langs:""},this.sourcecategory=[],this.sourcemodule=[],this.addData=null},doEvent(s){let e=s.item.functionName;this[e]()}}};var w=function(){var e=this,t=e._self._c;return t("el-dialog",{class:e.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:`${e.title}${e.$i18nt("gd.promptManagement.hintInfo","\u63D0\u793A\u4FE1\u606F")}`,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-row",{attrs:{gutter:24}},[e.type==2?t("el-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:12}},[t("div",{staticClass:"copy-flex"},[t("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:e.$i18nt("gd.promptManagement.hintCode","\u63D0\u793A\u7F16\u7801"),prop:"hintcode"}},[t("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.hintcode,callback:function(a){e.$set(e.ruleFormData,"hintcode",a)},expression:"ruleFormData['hintcode']"}})],1),t("el-button",{staticClass:"active-color",attrs:{type:"text"},on:{click:e.copyData}},[e._v(" "+e._s(e.$i18nt("gd.btn.copy","\u590D\u5236"))+" ")])],1)]):e._e(),t("el-col",{attrs:{span:12}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.hintSeverity","\u4E25\u91CD\u7A0B\u5EA6"),prop:"hintseverity"}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:""},model:{value:e.ruleFormData.hintseverity,callback:function(a){e.$set(e.ruleFormData,"hintseverity",a)},expression:"ruleFormData['hintseverity']"}},e._l(e.getDictionary("severity_level"),function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.hintInfo","\u63D0\u793A\u4FE1\u606F"),prop:"name"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},on:{input:e.changeText},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData['name']"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:8}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.systemCode","\u6240\u5C5E\u7CFB\u7EDF"),prop:"systemcode"}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:""},on:{change:e.changecode},model:{value:e.ruleFormData.systemcode,callback:function(a){e.$set(e.ruleFormData,"systemcode",a)},expression:"ruleFormData['systemcode']"}},e._l(e.getDictionary("source_system"),function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.typeCode","\u6240\u5C5E\u5206\u7C7B"),prop:"typecode"}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:!e.ruleFormData.systemcode},on:{change:e.changetypecode},model:{value:e.ruleFormData.typecode,callback:function(a){e.$set(e.ruleFormData,"typecode",a)},expression:"ruleFormData['typecode']"}},e._l(e.sourcecategory,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.moduleCode","\u6240\u5C5E\u6A21\u5757"),prop:"modulecode"}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:!e.ruleFormData.typecode},model:{value:e.ruleFormData.modulecode,callback:function(a){e.$set(e.ruleFormData,"modulecode",a)},expression:"ruleFormData['modulecode']"}},e._l(e.sourcemodule,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.parameters","\u53C2\u6570"),prop:"parameters"}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.inputcontent","\u8BF7\u8F93\u5165\u5185\u5BB9"),autosize:{minRows:3,maxRows:20}},model:{value:e.ruleFormData.parameters,callback:function(a){e.$set(e.ruleFormData,"parameters",a)},expression:"ruleFormData['parameters']"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{staticStyle:{"margin-bottom":"0px !important"},attrs:{label:e.$i18nt("gd.promptManagement.hintDescription","\u63D0\u793A\u63CF\u8FF0")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.inputcontent","\u8BF7\u8F93\u5165\u5185\u5BB9"),autosize:{minRows:3,maxRows:20}},model:{value:e.ruleFormData.hintdescription,callback:function(a){e.$set(e.ruleFormData,"hintdescription",a)},expression:"ruleFormData['hintdescription']"}})],1)],1)],1),t("el-divider",{attrs:{dashed:""}}),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[e._l(this.translationDetail.langs,function(a){return[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:a.languagename}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",autosize:""},on:{input:function(i){return e.changeLanguage(i,a)}},model:{value:a.description,callback:function(i){e.$set(a,"description",i)},expression:"item.description"}})],1)]})],2)],1)],1)],1)])],1)},$=[],v=c.normalizeComponent(_,w,$,!1,null,"1970493c",null,null);const D=v.exports,C=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=d;
1
+ "use strict";const r=require("./http.promptmanagement.d115c4b0.js"),c=require("./components.chartbi.13a8a7b5.js"),u=require("./utils.mixins.js.750ca50e.js"),m=require("./http.translationmanage.1f9dce46.js"),p=require("./utils.util.js.c0ba699b.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.promptManagement.hintInfo",prop:"name",label:"\u63D0\u793A\u4FE1\u606F",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.promptManagement.hintCode",prop:"hintcode",width:"260",label:"\u63D0\u793A\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.promptManagement.hintSeverity",prop:"hintseverity",width:"160",label:"\u4E25\u91CD\u7A0B\u5EA6",type:"slot",slotType:"hintseverity",align:"left"},{transKey:"gd.promptManagement.systemCode",prop:"systemcode",width:"160",label:"\u6240\u5C5E\u7CFB\u7EDF",type:"slot",slotType:"systemcode",align:"left"},{transKey:"gd.promptManagement.typeCode",prop:"typecode",width:"160",label:"\u6240\u5C5E\u5206\u7C7B",type:"slot",slotType:"typecode",align:"left"},{transKey:"gd.promptManagement.moduleCode",prop:"modulecode",width:"160",label:"\u6240\u5C5E\u6A21\u5757",type:"slot",slotType:"modulecode",align:"left"},{transKey:"gd.promptManagement.hintDescription",prop:"hintdescription",width:"260",label:"\u63D0\u793A\u63CF\u8FF0",align:"left"},{transKey:"gd.promptManagement.parameters",prop:"parameters",width:"160",label:"\u53C2\u6570",align:"left"},{transKey:"gd.msg.sendRecord.updatedTime",prop:"updatedtime",width:"180",label:"\u66F4\u65B0\u65F6\u95F4",align:"center"},{transKey:"gd.msg.sendRecord.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],formColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"promptManagement:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"promptManagement:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"promptManagement:delete"}],formButtons:[],tableQueries:[{transKey:"gd.promptManagement.hintInfo",prop:"name",label:"\u63D0\u793A\u4FE1\u606F",effectType:"input",rules:[],fkData:[]},{transKey:"gd.promptManagement.hintCode",prop:"hintcode",label:"\u63D0\u793A\u7F16\u7801",effectType:"input",rules:[],fkData:[]},{transKey:"gd.promptManagement.hintSeverity",prop:"hintseverity",label:"\u4E25\u91CD\u7A0B\u5EA6",effectType:"select",dictTypeCode:"severity_level",rules:[],fkData:[]},{transKey:"gd.promptManagement.systemCode",prop:"systemcode",label:"\u6240\u5C5E\u7CFB\u7EDF",effectType:"select",dictTypeCode:"source_system",rules:[],fkData:[]},{transKey:"gd.promptManagement.typeCode",prop:"typecode",label:"\u6240\u5C5E\u5206\u7C7B",effectType:"select",dictTypeCode:"source_category",rules:[],fkData:[]},{transKey:"gd.promptManagement.moduleCode",prop:"modulecode",label:"\u6240\u5C5E\u6A21\u5757",effectType:"select",dictTypeCode:"source_module",rules:[],fkData:[]}]}}};const g={props:{height:{type:Number,default:100}},name:"GdPromptManagement",mixins:[u.tablesFilter,h],components:{editForm:()=>Promise.resolve().then(()=>C)},data(){return{selectedRowKeys:[],selectedRows:[],disableBtn:[],transKey:"gd.promptManagement.checkConfigurationRetryRule",formLoading:!1,currentNode:null,loadData:s=>r.listSysPrompt(Object.assign(s,this.getQueryParam)).then(e=>e.data),record:{},queryParam:{}}},computed:{getTableLists(){let s=[...this.tableLists];return s.forEach((e,t)=>{s[t].name=e.busname,s[t].code=e.id}),s},getTableQueries(){return this.tableQueries.forEach((s,e)=>{}),this.tableQueries},getHeight(){return this.height},getTableButtons(){return this.tableButtons.filter(s=>(s.show=!this.disableBtn.includes(s.displayName),!0))},getQueryParam(){let s=new Map;for(let e in this.queryParam)s.set(e,this.queryParam[e]);return Object.fromEntries(s)},...c.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","tableLists"])},methods:{onSelectChange(s,e){if(this.selectedRows=e,this.selectedRowKeys=s,s.length===0){this.disableBtn=[];return}},query(){this.$refs.table.refresh(!0)},refresh(){this.$refs.table.refresh()},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.editForms(this.selectedRows[0])},editForms(s){this.$refs.editForm.init(s)},saveQueries(s){this.queryParam={...s},this.refresh()},add(){this.$refs.editForm.init(null)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\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 a=[],i=r.delSysHintcatalog({id:this.selectedRowKeys.join(",")}).then(n=>n);a.push(i),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,t();const o=n.filter(l=>!l.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh()})},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()},handleOk(){this.$refs.table.refresh()},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(a=>a.code==s)[0];return t!=null&&t.colour?t.colour:null},enable(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\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.editStateCodes({row:this.selectedRows[0]})},deactivated(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\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.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:s,row:e}){if(e.dict_type==1){this.$message.error(this.$i18nt("gd.https.operableNoTip","\u4E0D\u53EF\u64CD\u4F5C!"));return}const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),a=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:a,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:(i,n,o)=>{if(i!=="confirm"){o();return}n.confirmButtonLoading=!0,n.cancelButtonLoading=!0,n.showCancelButton=!1,r.editSysHintcatalog({id:e.id,stateCodes:e.statecodes==1?0:1}).then(l=>{o(),n.confirmButtonLoading=!1,n.cancelButtonLoading=!1,n.showCancelButton=!0,l.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message)})}})}}};var y=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,filtering:!0,height:e.getHeight},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForms}})]}},{key:"createdtime",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"createdtime",row:i}})]}},{key:"updatedtime",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"updatedtime",row:i}})]}},{key:"hintseverity",fn:function(a){return[e.dictSwitch(a.row.hintseverity,"severity_level")?t("el-tag",{attrs:{color:e.dictSwitch(a.row.hintseverity,"severity_level")}},[e._v(" "+e._s(e._f("dictType")("severity_level",a.row.hintseverity))+" ")]):t("span",[e._v(e._s(e._f("dictType")("severity_level",a.row.hintseverity)))])]}},{key:"systemcode",fn:function(a){return[e.dictSwitch(a.row.systemcode,"source_system")?t("el-tag",{attrs:{color:e.dictSwitch(a.row.systemcode,"source_system")}},[e._v(" "+e._s(e._f("dictType")("source_system",a.row.systemcode))+" ")]):t("span",[e._v(e._s(e._f("dictType")("source_system",a.row.systemcode)))])]}},{key:"typecode",fn:function(a){return[e.dictSwitch(a.row.typecode,"source_category")?t("el-tag",{attrs:{color:e.dictSwitch(a.row.typecode,"source_category")}},[e._v(" "+e._s(e._f("dictType")("source_category",a.row.typecode))+" ")]):t("span",[e._v(e._s(e._f("dictType")("source_category",a.row.typecode)))])]}},{key:"modulecode",fn:function(a){return[e.dictSwitch(a.row.modulecode,"source_module")?t("el-tag",{attrs:{color:e.dictSwitch(a.row.modulecode,"source_module")}},[e._v(" "+e._s(e._f("dictType")("source_module",a.row.modulecode))+" ")]):t("span",[e._v(e._s(e._f("dictType")("source_module",a.row.modulecode)))])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl",staticStyle:{"margin-right":"12px"}},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.promptManagement.hintCode","\u63D0\u793A\u7F16\u7801"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.query.apply(null,arguments)}},model:{value:e.queryParam.hintcode,callback:function(a){e.$set(e.queryParam,"hintcode",a)},expression:"queryParam.hintcode"}}),t("div",{staticClass:"table-operator-search",on:{click:e.query}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorl"},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.promptManagement.hintInfo","\u63D0\u793A\u4FE1\u606F"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.query.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(a){e.$set(e.queryParam,"name",a)},expression:"queryParam.name"}}),t("div",{staticClass:"table-operator-search",on:{click:e.query}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:a,visible:i}){return[t("gd-table-queries-field",{attrs:{columns:e.getTableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:i},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},f=[],b=c.normalizeComponent(g,y,f,!1,null,"65b8f5e8",null,null);const d=b.exports;d.install=function(s){s.component(d.name,d)};const _={data(){return{confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:"",hintseverity:"",hintcode:"",systemcode:"",typecode:"",modulecode:"",parameters:"",hintdescription:"",langs:""},rules:{hintcode:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],hintseverity:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],systemcode:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],typecode:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],modulecode:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},visible:!1,addData:null,viewId:"0",translationDetail:{name:"",langs:[]},sourcecategory:[],sourcemodule:[]}},components:{},computed:{modalStyle(){return this.fullScreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"30px"}}},...c.mapGetters(["screenHeight","tableLists"])},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},copyData(){p.copyTextToClipboard(this.ruleFormData.hintcode,()=>{this.$message.success(this.$i18nt("gd.https.beenCopied","\u6570\u636E\u5DF2\u590D\u5236"))})},changeText(s){let e=[...this.translationDetail.langs];e.map(t=>(t.description=t.languagecode.replace(/-/g,"_")==="zh_CN"?s:t.description,t)),this.translationDetail.langs=[...e]},changeLanguage(s,e){e.languagecode.replace(/-/g,"_")==="zh_CN"&&(this.ruleFormData.name=s)},getAllLanguage(){this.confirmLoading=!0,m.GetAllLanguage().then(s=>{let e=s.data;this.addData&&e.map(t=>{let a=this.addData.langs.filter(i=>i.code==t.languagecode)[0];return t.languagecode=t.languagecode.replace(/-/g,"_"),t.description=a===void 0?"":a.val,t}),this.translationDetail.langs=e,this.confirmLoading=!1})},getDictionary(s){return this.$options.filters.dictData(s)},getsourcecategory(s){this.sourcecategory=this.$options.filters.dictData("source_category").filter(e=>s.split(",").includes(e.name))},getsourcemodule(s){this.sourcemodule=this.$options.filters.dictData("source_module").filter(e=>s.split(",").includes(e.name))},changecode(s){let e=this.getDictionary("source_system"),t="";e.forEach(a=>{a.code==s&&(t=a.remark)}),this.sourcecategory=[],this.sourcemodule=[],this.ruleFormData.typecode="",this.ruleFormData.modulecode="",this.getsourcecategory(t)},changetypecode(s){let e="";this.sourcecategory.forEach(t=>{t.code==s&&(e=t.remark)}),this.getsourcemodule(e)},init(s){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=s?2:1,this.title=s?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sysViewButtons=[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],this.getAllLanguage(),s&&this.$nextTick(()=>{setTimeout(()=>{this.sysTranslationDetail(s.id)})})},sysTranslationDetail(s){this.confirmLoading=!0,r.detailSysHintcatalog({id:s}).then(e=>{this.ruleFormData.name=e.data.name,this.ruleFormData.id=e.data.id,this.ruleFormData.hintseverity=String(e.data.hintseverity),this.ruleFormData.hintcode=e.data.hintcode,this.ruleFormData.hintdescription=e.data.hintdescription,this.ruleFormData.parameters=e.data.parameters,this.ruleFormData.systemcode=e.data.systemcode,this.changecode(this.ruleFormData.systemcode),this.ruleFormData.typecode=e.data.typecode,this.changetypecode(this.ruleFormData.typecode),this.ruleFormData.modulecode=e.data.modulecode;let t=e.data&&e.data.langs?e.data.langs:[];t.map(a=>(a.languagecode=a.languagecode.replace(/-/g,"_"),a)),this.translationDetail=Object.assign(e.data,{langs:t}),this.confirmLoading=!1})},add(s){this.confirmLoading=!0,delete s.id,r.addSysHintcatalog(s).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",s),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(s){this.confirmLoading=!0,delete s.basicRecordTable,delete s.matchingRecordTable,r.editSysHintcatalog(s).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",s),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+e.message)}).finally(e=>{this.confirmLoading=!1})},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){const e={...this.ruleFormData,langs:this.translationDetail.langs||[],name:this.ruleFormData.name||this.translationDetail.name};this.type==1?this.add(e):this.edit(e)}})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={name:"",hintseverity:"",hintcode:"",systemcode:"",typecode:"",modulecode:"",parameters:"",hintdescription:"",langs:""},this.sourcecategory=[],this.sourcemodule=[],this.addData=null},doEvent(s){let e=s.item.functionName;this[e]()}}};var w=function(){var e=this,t=e._self._c;return t("el-dialog",{class:e.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:`${e.title}${e.$i18nt("gd.promptManagement.hintInfo","\u63D0\u793A\u4FE1\u606F")}`,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-row",{attrs:{gutter:24}},[e.type==2?t("el-col",{staticStyle:{display:"flex","align-items":"center"},attrs:{span:12}},[t("div",{staticClass:"copy-flex"},[t("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:e.$i18nt("gd.promptManagement.hintCode","\u63D0\u793A\u7F16\u7801"),prop:"hintcode"}},[t("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.hintcode,callback:function(a){e.$set(e.ruleFormData,"hintcode",a)},expression:"ruleFormData['hintcode']"}})],1),t("el-button",{staticClass:"active-color",attrs:{type:"text"},on:{click:e.copyData}},[e._v(" "+e._s(e.$i18nt("gd.btn.copy","\u590D\u5236"))+" ")])],1)]):e._e(),t("el-col",{attrs:{span:12}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.hintSeverity","\u4E25\u91CD\u7A0B\u5EA6"),prop:"hintseverity"}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:""},model:{value:e.ruleFormData.hintseverity,callback:function(a){e.$set(e.ruleFormData,"hintseverity",a)},expression:"ruleFormData['hintseverity']"}},e._l(e.getDictionary("severity_level"),function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.hintInfo","\u63D0\u793A\u4FE1\u606F"),prop:"name"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},on:{input:e.changeText},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData['name']"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:8}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.systemCode","\u6240\u5C5E\u7CFB\u7EDF"),prop:"systemcode"}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:""},on:{change:e.changecode},model:{value:e.ruleFormData.systemcode,callback:function(a){e.$set(e.ruleFormData,"systemcode",a)},expression:"ruleFormData['systemcode']"}},e._l(e.getDictionary("source_system"),function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.typeCode","\u6240\u5C5E\u5206\u7C7B"),prop:"typecode"}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:!e.ruleFormData.systemcode},on:{change:e.changetypecode},model:{value:e.ruleFormData.typecode,callback:function(a){e.$set(e.ruleFormData,"typecode",a)},expression:"ruleFormData['typecode']"}},e._l(e.sourcecategory,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.moduleCode","\u6240\u5C5E\u6A21\u5757"),prop:"modulecode"}},[t("el-select",{ref:"refView",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:!e.ruleFormData.typecode},model:{value:e.ruleFormData.modulecode,callback:function(a){e.$set(e.ruleFormData,"modulecode",a)},expression:"ruleFormData['modulecode']"}},e._l(e.sourcemodule,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.promptManagement.parameters","\u53C2\u6570"),prop:"parameters"}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.inputcontent","\u8BF7\u8F93\u5165\u5185\u5BB9"),autosize:{minRows:3,maxRows:20}},model:{value:e.ruleFormData.parameters,callback:function(a){e.$set(e.ruleFormData,"parameters",a)},expression:"ruleFormData['parameters']"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{staticStyle:{"margin-bottom":"0px !important"},attrs:{label:e.$i18nt("gd.promptManagement.hintDescription","\u63D0\u793A\u63CF\u8FF0")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.inputcontent","\u8BF7\u8F93\u5165\u5185\u5BB9"),autosize:{minRows:3,maxRows:20}},model:{value:e.ruleFormData.hintdescription,callback:function(a){e.$set(e.ruleFormData,"hintdescription",a)},expression:"ruleFormData['hintdescription']"}})],1)],1)],1),t("el-divider",{attrs:{dashed:""}}),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[e._l(this.translationDetail.langs,function(a){return[t("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:a.languagename}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",autosize:""},on:{input:function(i){return e.changeLanguage(i,a)}},model:{value:a.description,callback:function(i){e.$set(a,"description",i)},expression:"item.description"}})],1)]})],2)],1)],1)],1)])],1)},$=[],v=c.normalizeComponent(_,w,$,!1,null,"1970493c",null,null);const D=v.exports,C=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=d;
@@ -1 +1 @@
1
- "use strict";const f=require("./http.rolemanage.4d1101dd.js"),u=require("./components.chartbi.3bbac955.js"),w=require("./utils.mixins.js.750ca50e.js"),p=require("./http.usermanage.6dcbc7de.js"),y=require("./http.orgmanage.5162fd7a.js"),k=require("./http.menumanage.6d740f2c.js"),C=require("./http.appmanage.b998818f.js"),b=require("./utils.util.js.c0ba699b.js"),T={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 S={name:"GdRole",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[w.tablesFilter,T],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:()=>Promise.resolve().then(()=>F),RoleMenu:()=>Promise.resolve().then(()=>H),RoleMenuViewForm:()=>Promise.resolve().then(()=>Y),UserAuthorization:()=>Promise.resolve().then(()=>de),DocumentAuthorization:()=>Promise.resolve().then(()=>pe)},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},...u.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 n=[];this.selectedRows.forEach(i=>{let a=f.sysRoleDelete(i).then(l=>l);n.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(n).then(i=>{const a=i.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},n,i){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")),i(),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 R=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:n,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,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(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(n){e.$set(e.queryParam,"name",n)},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:n,visible:i}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:n,visible:i},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)},L=[],I=u.normalizeComponent(S,R,L,!1,null,"60edeedc",null,null);const m=I.exports;m.install=function(s){s.component(m.name,m)};const x={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:()=>Promise.resolve().then(()=>ke)},computed:{height(){return this.screenHeight-(this.fullscreen?120:310)},...u.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 n=this.$refs.table.tableData,i=`${s.prop.replace("grantd","")}custom`,a=n[t][i],l=a?a.split(",").map(Number):[];this.$refs.roleScope.open({index:t,item:s,checkedKeys:l,data:e,name:i})},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 P=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(n){e.visible=n},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(n){return{key:n.prop,fn:function({column:i,row:a,index:l}){return[n.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[n.prop],callback:function(r){e.$set(a,n.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[n.prop].includes("5")?t("el-button",{staticClass:"active-color flex-center",attrs:{type:"text"},on:{click:function(r){return e.openList(n,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=[],N=u.normalizeComponent(x,P,D,!1,null,"5e6737e8",null,null);const B=N.exports,F=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"}));const M={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},...u.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),n=parseInt(s.substring(3,5),16),i=parseInt(s.substring(5,7),16);return`rgba(${t},${n},${i},${e})`}}};var A=function(){var e=this,t=e._self._c;return t("div",{style:{"--fadecolor":e.fadeColord}},[e._l(e.record,function(n){return[t("div",{staticClass:"list-item"},[n.menusType!==1&&n.children&&n.children.length>0?t("i",{class:n.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(i){return e.open(n)}}}):e._e(),e.menusType!==2?t("div",{staticClass:"item-name"},[t("el-checkbox",{attrs:{indeterminate:n.isIndeterminate},on:{change:function(i){return e.change(i,[n.id])}},model:{value:n.checked,callback:function(i){e.$set(n,"checked",i)},expression:"item.checked"}},[n.iconClass?t("i",{staticClass:"gd-icons",class:n.iconClass,staticStyle:{"font-size":"15px"}}):e._e(),e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.title))+" ")]),n.children&&n.children.length>0&&n.menusType===1?t("el-button",{staticStyle:{"margin-left":"12px",padding:"5px 15px"},attrs:{size:"mini"}},[e.hasAll(n)?t("span",{on:{click:function(i){return e.checkedBtn(n,1)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")]):t("span",{on:{click:function(i){return e.checkedBtn(n,0)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")])]):e._e()],1):e._e(),t("div",{staticClass:"item-data"},[n.children&&n.children.length>0&&n.children[0].menusType===2?t("div",{staticClass:"item-data-list"},[e._l(n.children,function(i){return[t("div",{staticClass:"item-name item-named",on:{click:function(a){return e.change(!i.checked,[i.id])}}},[i.checked?t("i",{staticClass:"gd-icons gd-icon-quanxuan active-color"}):t("div",{staticClass:"item-named-kuang"}),t("div",{staticClass:"item-named-title",class:i.checked?"active-color":""},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.title))+" ")])])]})],2):e._e()])]),n.children&&n.children.length>0&&n.children[0].menusType!==2?t("div",{staticClass:"list-more"},[n.open?t("LayoutItem",{attrs:{record:n.children,checkedKeys:e.checkedKeys},on:{open:e.open,change:e.change,checkedBtn:e.checkedBtn}}):e._e()],1):e._e()]})],2)},O=[],z=u.normalizeComponent(M,A,O,!1,null,"ecf30395",null,null);const $=z.exports;const j={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_${b.uuid(12)}`},isIndeterminate(){return this.allClose?!1:this.checkedKeys.length>0},fadeColord(){return this.fadeColor(this.primaryColor,.1)},...u.mapGetters(["screenHeight","tableLists","primaryColor"])},components:{LayoutItem:$},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(n=>!s.menuBtnIds.includes(n));e===1&&(t=t.concat(s.menuBtnIds)),this.checkedKeys=[...t],this.handleItem()},openItem(s){let e=[...this.menuTreeData];const t=n=>(n=n.filter((i,a)=>(i.id===s.id&&(i.open=!i.open),i.children&&i.children.length>0&&(i.children=t(i.children)),!0)),n);t(e),this.menuTreeData=[...e]},changeItem(s,e,t=!0){let n=[...this.checkedKeys];this.checkedKeys.filter(o=>e.includes(o))[0];const i=this.list.filter(o=>e.includes(o.id))[0],a=t&&i?i.menuIds:[];if(s?n=this.checkedKeys.concat(e).concat(a):n=this.checkedKeys.filter(o=>!e.includes(o)).filter(o=>!a.includes(o)),this.checkedKeys=[...n],this.handleItem(),i.menusType===2)return;let l=[];this.findParent(this.menuTreeData,i,l);let r=[],g=[];l.forEach(o=>{this.checkedKeys.filter(h=>o.menuIds.includes(h)).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((n,i)=>{const a=this.checkedKeys.filter(l=>n.menuIds.includes(l));return this.checkedKeys.includes(n.id)?(n.checked=!0,n.isIndeterminate=!1):(n.checked=!1,n.isIndeterminate=a.length>0&&n.menuIds.length>0),n.children&&n.children.length>0&&(n.children=e(n.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 n=d=>(d=d.filter((c,h)=>{const _=this.checkedKeys.filter(v=>c.id===v)[0];return c.open=!0,c.checked=c.type===1?!!_:!1,c.isIndeterminate=!1,c.menusType=c.type,e.push(c.id),t.push(c),c.children&&c.children.length>0&&(c.children=n(c.children)),!0}),d);let i=this.menuAll.filter(d=>{const c=this.systemMenuAll.filter(h=>h.id===d.id)[0];return c&&(d.application=c.application),!!c});await n(i),this.allCheckedKeys=e;let a=[];t.forEach((d,c)=>{const h=this.getMenuIds(d);t[c].menuIds=h.arr,t[c].menuBtnIds=h.btn,!(this.checkedKeys.filter(K=>h.arr.includes(K)).length===h.arr.length)&&h.arr.length>0&&a.push(d.id)}),this.list=t;const l=this.checkedKeys.filter(d=>e.includes(d)).filter(d=>!a.includes(d)).filter((d,c,h)=>h.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=i.filter(h=>h.application===d.code);return c.length>0?(r=r.concat([...c]),d.children=[...c],d.open=!0,d.uuid=`${b.uuid(12)}`,!0):!1});const o=i.filter(d=>!r.filter(h=>h.id===d.id));o.length>0&&g.push({name:"\u7A7A\u767D",transkey:"gd.echarts.none",children:o,activeShow:!0,open:!0,uuid:`${b.uuid(12)}`}),this.menuTreeData=JSON.parse(JSON.stringify(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 k.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 k.sysMenuListByAppsId(s).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getAppListByAppsId(){return C.getAppListByAppsId({appsId:this.appsId}).then(s=>(s.code===200&&(this.appList=s.data),s))},getMenuIds(s){let e=[],t=[];const n=i=>(i=i.filter((a,l)=>(a.menusType!==2?e.push(a.id):t.push(a.id),a.children&&a.children.length>0&&(a.children=n(a.children)),!0)),i);return s.children&&n(s.children),{arr:e,btn:t}},findParent(s,e,t){for(let n of s)if(n.id===e.parentId||n.children&&n.children.length>0&&this.findParent(n.children,e,t))return t.unshift(n),!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),n=parseInt(s.substring(3,5),16),i=parseInt(s.substring(5,7),16);return`rgba(${t},${n},${i},${e})`},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var E=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(n){e.visible=n},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(n){return t("el-dropdown-item",{key:n.uuid,attrs:{command:n.uuid}},[t("i",{staticClass:"gd-icons el-icon-right",staticStyle:{"font-size":"14px"}}),n.activeShow?t("span",[e._v(e._s(e.$i18nt(n.transkey,n.name)))]):t("span",[e._v(e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.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(n,i){return[i!=0?t("el-divider"):e._e(),t("div",{staticClass:"app-list-item",class:n.uuid},[t("div",{staticClass:"app-list-name"},[n.children&&n.children.length>0?t("i",{class:n.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(a){return e.appOpen(i,n)}}}):e._e(),e._v(" "+e._s(n.name)+" ")]),n.open?t("div",{staticStyle:{"padding-left":"20px"}},[e.visible?t("LayoutItem",{attrs:{record:n.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(n){e.allClose=n},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},q=[],G=u.normalizeComponent(j,E,q,!1,null,"948c6f08",null,null);const V=G.exports,H=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));const J={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},...u.mapGetters(["screenHeight","tableLists"])},components:{LayoutItem:$},methods:{async handleSubmit(){const s=e=>(e=e.filter((t,n)=>{const i=this.checkedKeys.filter(a=>t.id===a)[0];return t.type=i?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(n=>!s.menuBtnIds.includes(n));e===1&&(t=t.concat(s.menuBtnIds)),this.checkedKeys=[...t],this.handleItem()},openItem(s){let e=[...this.menuTreeData];const t=n=>(n=n.filter((i,a)=>(i.id===s.id&&(i.open=!i.open),i.children&&i.children.length>0&&(i.children=t(i.children)),!0)),n);t(e),this.menuTreeData=[...e]},changeItem(s,e,t=!0){let n=[...this.checkedKeys];this.checkedKeys.filter(o=>e.includes(o))[0];const i=this.list.filter(o=>e.includes(o.id))[0],a=t&&i?i.menuIds:[];if(s?n=this.checkedKeys.concat(e).concat(a):n=this.checkedKeys.filter(o=>!e.includes(o)).filter(o=>!a.includes(o)),this.checkedKeys=[...n],this.handleItem(),i.menusType===2)return;let l=[];this.findParent(this.menuTreeData,i,l);let r=[],g=[];l.forEach(o=>{this.checkedKeys.filter(h=>o.menuIds.includes(h)).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((n,i)=>{const a=this.checkedKeys.filter(l=>n.menuIds.includes(l));return this.checkedKeys.includes(n.id)?(n.checked=!0,n.isIndeterminate=!1):(n.checked=!1,n.isIndeterminate=a.length>0&&n.menuIds.length>0),n.children&&n.children.length>0&&(n.children=e(n.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 n=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=n(l.children)),!0}),a);await n(e);let i=[];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&&i.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 n=(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=n(o,r.id)),!0}),a);this.menuAll=s.data.list;let i=JSON.parse(JSON.stringify(this.menuAll));n(i,0),this.checkedKeys=e,this.allCheckedKeys=t,this.menuTreeDatad=[...i]}return s})},getMenuIds(s){let e=[],t=[];const n=i=>(i=i.filter((a,l)=>(a.menusType!==2?e.push(a.id):t.push(a.id),a.children&&a.children.length>0&&(a.children=n(a.children)),!0)),i);return s.children&&n(s.children),{arr:e,btn:t}},findParent(s,e,t){for(let n of s)if(n.id===e.parentId||n.children&&n.children.length>0&&this.findParent(n.children,e,t))return t.unshift(n),!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 U=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(n){e.visible=n},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(n){e.allClose=n},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},Q=[],W=u.normalizeComponent(J,U,Q,!1,null,"e6593396",null,null);const X=W.exports,Y=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));const Z={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},openMode:{type:String,default:"page"}},mixins:[w.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`},...u.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((n,i)=>(n.value=String(n.value),n.children&&n.children.length>0&&(n.children=e(n.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,n)=>{if(e!=="confirm"){n();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,p.postunbindUsersFromRole({roleId:s.openSelecteKeys[0],userIdList:s.selectedRowKeys}).then(i=>{i.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,n(),s.refresh()):s.$message.error(s.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message)})}})}},created(){}};var ee=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:n,row:i}){return[t("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.name)+" ")])]}},{key:"nickname",fn:function({column:n,row:i}){return[t("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.nickname)+" ")])]}},{key:"orgname",fn:function({column:n,row:i}){return[t("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.orgname)+" ")])]}},{key:"sex",fn:function({column:n,row:i}){return[t("span",[e._v(" "+e._s(e._f("dictType")("gender",i.gender))+" ")])]}},{key:"status",fn:function({column:n,row:i}){return[t("span",[e._v(" "+e._s(e._f("dictType")("state_code",i.statecodes))+" ")])]}}])}),t("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},te=[],se=u.normalizeComponent(Z,ee,te,!1,null,"e9dd56ab",null,null);const ne=se.exports;const ie={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserFormDate:ne},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...u.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 ae=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(n){e.visible=n},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)},re=[],le=u.normalizeComponent(ie,ae,re,!1,null,"46b57430",null,null);const oe=le.exports,de=Object.freeze(Object.defineProperty({__proto__:null,default:oe},Symbol.toStringTag,{value:"Module"}));const ce={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:""}},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...u.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 n(a){a.children&&a.children.length>0&&(a.children.sort((l,r)=>l.name.localeCompare(r.name)),a.children.forEach(l=>n(l)))}const i={name:e.name,id:e.id,children:t[e.id].children};return n(i),[i]},handleSubmit(){this.id!=""?this.edit():this.add()},add(){const e=this.currentPermissions.map(t=>{const n=t.list.reduce((i,a)=>(i[a.code]=a.value,i),{});return{...t,...n}}).map(({list:t,...n})=>n);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 n=t.list.reduce((i,a)=>(i[a.code]=a.value,i),{});return{...t,...n}}).map(({list:t,...n})=>n);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(i=>{const a=[{name:"\u67E5\u770B",code:"readmetadata",value:i.readmetadata},{name:"\u91CD\u547D\u540D",code:"rename",value:i.rename},{name:"\u5220\u9664",code:"delete",value:i.delete},{name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",value:i.manageprem},{name:"\u79FB\u52A8",code:"move",value:i.move},{name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",value:i.createfile},{name:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",code:"createsubfolder",value:i.createsubfolder},{name:"\u4E0B\u8F7D",code:"download",value:i.download}];return{id:i.id,name:i.name,ischeck:!1,sysdocobjectid:i.sysdocobjectid,sysroleid:i.sysroleid,list:a}});this.currentPermissions=t,this.handlePermissionClick(this.currentPermissions[0]);const n=t.map(i=>i.sysdocobjectid);this.$refs.elTreeRef&&this.$refs.elTreeRef.setCheckedKeys(n)}})},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,n,i)=>{if(t!=="confirm"){i();return}n.confirmButtonLoading=!0,n.cancelButtonLoading=!0,n.showCancelButton=!1,s.id===0?e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):f.docObjectsRolesDel({ids:s.id}).then(l=>{n.confirmButtonLoading=!1,n.cancelButtonLoading=!1,n.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)}),i();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 n=s.id,i=JSON.parse(JSON.stringify(this.currentPermissions)).filter(a=>a.sysdocobjectid===s.id);if(e&&i.length===0){const a={sysdocobjectid:n,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===n&&(l.ischeck=!0)}),this.cardList.forEach(l=>{Array.isArray(l.list)&&l.list.forEach(r=>{r.value=""})})}else if(!e&&i.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,i[0].id===0?a.$message.success(a.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):f.docObjectsRolesDel({ids:i[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(n)}})}},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(n=>{n.value=""})}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(n=>{const i=e[n.name];i!==void 0&&i!==""&&i!==null&&(n.value=i.toString())})})},handleNodeClick(s,e){this.objectId=s.id;let t=[],n=e;for(;n;)t.unshift(n.data.name),n=n.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(n=>{n.value=""})}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(n=>{const i=e[n.name];i!=null&&(n.value=i.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(n=>n.ischeck);if(t){const n=t.list.find(i=>i.name===e.name);n&&(n.value=e.value)}}},10))}}};var he=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(n){e.visible=n},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(n){return t("div",{key:n.sysdocobjectid,staticClass:"permission-tags-item",class:{checked:n.ischeck},on:{click:function(i){return e.handlePermissionClick(n)}}},[t("div",{staticClass:"item-name"},[e._v(e._s(n.name))]),t("div",{staticClass:"permission-tags-item-content"},e._l(n.list,function(i,a){return t("div",{key:a},[t("span",[e._v(e._s(i.name))]),i.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(),i.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(i){return e.delList(n)}}})])}),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(n,i){return t("div",{key:i},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("h4",[e._v(e._s(e.$i18nt(n.transkey,n.name)))])]),t("div",{staticClass:"permission-list"},[t("div",{staticClass:"permission-category"},e._l(n.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)},ue=[],ge=u.normalizeComponent(ce,he,ue,!1,null,"6afc0af9",null,null);const fe=ge.exports,pe=Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"}));const me={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:{...u.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 ye=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(n){e.visible=n},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)},be=[],_e=u.normalizeComponent(me,ye,be,!1,null,"2b164094",null,null);const ve=_e.exports,ke=Object.freeze(Object.defineProperty({__proto__:null,default:ve},Symbol.toStringTag,{value:"Module"}));exports.RoleForm=m;
1
+ "use strict";const f=require("./http.rolemanage.4d1101dd.js"),u=require("./components.chartbi.13a8a7b5.js"),w=require("./utils.mixins.js.750ca50e.js"),p=require("./http.usermanage.6dcbc7de.js"),y=require("./http.orgmanage.5162fd7a.js"),k=require("./http.menumanage.6d740f2c.js"),C=require("./http.appmanage.b998818f.js"),_=require("./utils.util.js.c0ba699b.js"),T={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 S={name:"GdRole",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[w.tablesFilter,T],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:()=>Promise.resolve().then(()=>F),RoleMenu:()=>Promise.resolve().then(()=>H),RoleMenuViewForm:()=>Promise.resolve().then(()=>Y),UserAuthorization:()=>Promise.resolve().then(()=>de),DocumentAuthorization:()=>Promise.resolve().then(()=>pe)},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},...u.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 n=[];this.selectedRows.forEach(i=>{let a=f.sysRoleDelete(i).then(l=>l);n.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(n).then(i=>{const a=i.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},n,i){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")),i(),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 R=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:n,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,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(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(n){e.$set(e.queryParam,"name",n)},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:n,visible:i}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:n,visible:i},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)},L=[],I=u.normalizeComponent(S,R,L,!1,null,"60edeedc",null,null);const m=I.exports;m.install=function(s){s.component(m.name,m)};const x={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:()=>Promise.resolve().then(()=>ke)},computed:{height(){return this.screenHeight-(this.fullscreen?120:310)},...u.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 n=this.$refs.table.tableData,i=`${s.prop.replace("grantd","")}custom`,a=n[t][i],l=a?a.split(",").map(Number):[];this.$refs.roleScope.open({index:t,item:s,checkedKeys:l,data:e,name:i})},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 P=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(n){e.visible=n},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(n){return{key:n.prop,fn:function({column:i,row:a,index:l}){return[n.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[n.prop],callback:function(r){e.$set(a,n.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[n.prop].includes("5")?t("el-button",{staticClass:"active-color flex-center",attrs:{type:"text"},on:{click:function(r){return e.openList(n,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=[],N=u.normalizeComponent(x,P,D,!1,null,"5e6737e8",null,null);const B=N.exports,F=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"}));const M={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},...u.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),n=parseInt(s.substring(3,5),16),i=parseInt(s.substring(5,7),16);return`rgba(${t},${n},${i},${e})`}}};var A=function(){var e=this,t=e._self._c;return t("div",{style:{"--fadecolor":e.fadeColord}},[e._l(e.record,function(n){return[t("div",{staticClass:"list-item"},[n.menusType!==1&&n.children&&n.children.length>0?t("i",{class:n.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(i){return e.open(n)}}}):e._e(),e.menusType!==2?t("div",{staticClass:"item-name"},[t("el-checkbox",{attrs:{indeterminate:n.isIndeterminate},on:{change:function(i){return e.change(i,[n.id])}},model:{value:n.checked,callback:function(i){e.$set(n,"checked",i)},expression:"item.checked"}},[n.iconClass?t("i",{staticClass:"gd-icons",class:n.iconClass,staticStyle:{"font-size":"15px"}}):e._e(),e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.title))+" ")]),n.children&&n.children.length>0&&n.menusType===1?t("el-button",{staticStyle:{"margin-left":"12px",padding:"5px 15px"},attrs:{size:"mini"}},[e.hasAll(n)?t("span",{on:{click:function(i){return e.checkedBtn(n,1)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")]):t("span",{on:{click:function(i){return e.checkedBtn(n,0)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")])]):e._e()],1):e._e(),t("div",{staticClass:"item-data"},[n.children&&n.children.length>0&&n.children[0].menusType===2?t("div",{staticClass:"item-data-list"},[e._l(n.children,function(i){return[t("div",{staticClass:"item-name item-named",on:{click:function(a){return e.change(!i.checked,[i.id])}}},[i.checked?t("i",{staticClass:"gd-icons gd-icon-quanxuan active-color"}):t("div",{staticClass:"item-named-kuang"}),t("div",{staticClass:"item-named-title",class:i.checked?"active-color":""},[e._v(" "+e._s(e.$i18nt(`Dynamics.${i.transkey}`,i.title))+" ")])])]})],2):e._e()])]),n.children&&n.children.length>0&&n.children[0].menusType!==2?t("div",{staticClass:"list-more"},[n.open?t("LayoutItem",{attrs:{record:n.children,checkedKeys:e.checkedKeys},on:{open:e.open,change:e.change,checkedBtn:e.checkedBtn}}):e._e()],1):e._e()]})],2)},O=[],z=u.normalizeComponent(M,A,O,!1,null,"ecf30395",null,null);const $=z.exports;const j={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_${_.uuid(12)}`},isIndeterminate(){return this.allClose?!1:this.checkedKeys.length>0},fadeColord(){return this.fadeColor(this.primaryColor,.1)},...u.mapGetters(["screenHeight","tableLists","primaryColor"])},components:{LayoutItem:$},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(n=>!s.menuBtnIds.includes(n));e===1&&(t=t.concat(s.menuBtnIds)),this.checkedKeys=[...t],this.handleItem()},openItem(s){let e=[...this.menuTreeData];const t=n=>(n=n.filter((i,a)=>(i.id===s.id&&(i.open=!i.open),i.children&&i.children.length>0&&(i.children=t(i.children)),!0)),n);t(e),this.menuTreeData=[...e]},changeItem(s,e,t=!0){let n=[...this.checkedKeys];this.checkedKeys.filter(o=>e.includes(o))[0];const i=this.list.filter(o=>e.includes(o.id))[0],a=t&&i?i.menuIds:[];if(s?n=this.checkedKeys.concat(e).concat(a):n=this.checkedKeys.filter(o=>!e.includes(o)).filter(o=>!a.includes(o)),this.checkedKeys=[...n],this.handleItem(),i.menusType===2)return;let l=[];this.findParent(this.menuTreeData,i,l);let r=[],g=[];l.forEach(o=>{this.checkedKeys.filter(h=>o.menuIds.includes(h)).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((n,i)=>{const a=this.checkedKeys.filter(l=>n.menuIds.includes(l));return this.checkedKeys.includes(n.id)?(n.checked=!0,n.isIndeterminate=!1):(n.checked=!1,n.isIndeterminate=a.length>0&&n.menuIds.length>0),n.children&&n.children.length>0&&(n.children=e(n.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 n=d=>(d=d.filter((c,h)=>{const b=this.checkedKeys.filter(v=>c.id===v)[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=n(c.children)),!0}),d);let i=this.menuAll.filter(d=>{const c=this.systemMenuAll.filter(h=>h.id===d.id)[0];return c&&(d.application=c.application),!!c});await n(i),this.allCheckedKeys=e;let a=[];t.forEach((d,c)=>{const h=this.getMenuIds(d);t[c].menuIds=h.arr,t[c].menuBtnIds=h.btn,!(this.checkedKeys.filter(K=>h.arr.includes(K)).length===h.arr.length)&&h.arr.length>0&&a.push(d.id)}),this.list=t;const l=this.checkedKeys.filter(d=>e.includes(d)).filter(d=>!a.includes(d)).filter((d,c,h)=>h.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=i.filter(h=>h.application===d.code);return c.length>0?(r=r.concat([...c]),d.children=[...c],d.open=!0,d.uuid=`${_.uuid(12)}`,!0):!1});const o=i.filter(d=>!r.filter(h=>h.id===d.id));o.length>0&&g.push({name:"\u7A7A\u767D",transkey:"gd.echarts.none",children:o,activeShow:!0,open:!0,uuid:`${_.uuid(12)}`}),this.menuTreeData=JSON.parse(JSON.stringify(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 k.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 k.sysMenuListByAppsId(s).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getAppListByAppsId(){return C.getAppListByAppsId({appsId:this.appsId}).then(s=>(s.code===200&&(this.appList=s.data),s))},getMenuIds(s){let e=[],t=[];const n=i=>(i=i.filter((a,l)=>(a.menusType!==2?e.push(a.id):t.push(a.id),a.children&&a.children.length>0&&(a.children=n(a.children)),!0)),i);return s.children&&n(s.children),{arr:e,btn:t}},findParent(s,e,t){for(let n of s)if(n.id===e.parentId||n.children&&n.children.length>0&&this.findParent(n.children,e,t))return t.unshift(n),!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),n=parseInt(s.substring(3,5),16),i=parseInt(s.substring(5,7),16);return`rgba(${t},${n},${i},${e})`},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var E=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(n){e.visible=n},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(n){return t("el-dropdown-item",{key:n.uuid,attrs:{command:n.uuid}},[t("i",{staticClass:"gd-icons el-icon-right",staticStyle:{"font-size":"14px"}}),n.activeShow?t("span",[e._v(e._s(e.$i18nt(n.transkey,n.name)))]):t("span",[e._v(e._s(e.$i18nt(`Dynamics.${n.transkey}`,n.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(n,i){return[i!=0?t("el-divider"):e._e(),t("div",{staticClass:"app-list-item",class:n.uuid},[t("div",{staticClass:"app-list-name"},[n.children&&n.children.length>0?t("i",{class:n.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(a){return e.appOpen(i,n)}}}):e._e(),e._v(" "+e._s(n.name)+" ")]),n.open?t("div",{staticStyle:{"padding-left":"20px"}},[e.visible?t("LayoutItem",{attrs:{record:n.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(n){e.allClose=n},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},q=[],G=u.normalizeComponent(j,E,q,!1,null,"948c6f08",null,null);const V=G.exports,H=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));const J={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},...u.mapGetters(["screenHeight","tableLists"])},components:{LayoutItem:$},methods:{async handleSubmit(){const s=e=>(e=e.filter((t,n)=>{const i=this.checkedKeys.filter(a=>t.id===a)[0];return t.type=i?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(n=>!s.menuBtnIds.includes(n));e===1&&(t=t.concat(s.menuBtnIds)),this.checkedKeys=[...t],this.handleItem()},openItem(s){let e=[...this.menuTreeData];const t=n=>(n=n.filter((i,a)=>(i.id===s.id&&(i.open=!i.open),i.children&&i.children.length>0&&(i.children=t(i.children)),!0)),n);t(e),this.menuTreeData=[...e]},changeItem(s,e,t=!0){let n=[...this.checkedKeys];this.checkedKeys.filter(o=>e.includes(o))[0];const i=this.list.filter(o=>e.includes(o.id))[0],a=t&&i?i.menuIds:[];if(s?n=this.checkedKeys.concat(e).concat(a):n=this.checkedKeys.filter(o=>!e.includes(o)).filter(o=>!a.includes(o)),this.checkedKeys=[...n],this.handleItem(),i.menusType===2)return;let l=[];this.findParent(this.menuTreeData,i,l);let r=[],g=[];l.forEach(o=>{this.checkedKeys.filter(h=>o.menuIds.includes(h)).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((n,i)=>{const a=this.checkedKeys.filter(l=>n.menuIds.includes(l));return this.checkedKeys.includes(n.id)?(n.checked=!0,n.isIndeterminate=!1):(n.checked=!1,n.isIndeterminate=a.length>0&&n.menuIds.length>0),n.children&&n.children.length>0&&(n.children=e(n.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 n=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=n(l.children)),!0}),a);await n(e);let i=[];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&&i.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 n=(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=n(o,r.id)),!0}),a);this.menuAll=s.data.list;let i=JSON.parse(JSON.stringify(this.menuAll));n(i,0),this.checkedKeys=e,this.allCheckedKeys=t,this.menuTreeDatad=[...i]}return s})},getMenuIds(s){let e=[],t=[];const n=i=>(i=i.filter((a,l)=>(a.menusType!==2?e.push(a.id):t.push(a.id),a.children&&a.children.length>0&&(a.children=n(a.children)),!0)),i);return s.children&&n(s.children),{arr:e,btn:t}},findParent(s,e,t){for(let n of s)if(n.id===e.parentId||n.children&&n.children.length>0&&this.findParent(n.children,e,t))return t.unshift(n),!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 U=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(n){e.visible=n},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(n){e.allClose=n},expression:"allClose"}},[e._v(" "+e._s(e.$i18nt("gd.btn.selectAll","\u5168\u9009"))+" ")])],1)])],2)],1)},Q=[],W=u.normalizeComponent(J,U,Q,!1,null,"e6593396",null,null);const X=W.exports,Y=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));const Z={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},openMode:{type:String,default:"page"}},mixins:[w.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`},...u.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((n,i)=>(n.value=String(n.value),n.children&&n.children.length>0&&(n.children=e(n.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,n)=>{if(e!=="confirm"){n();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,p.postunbindUsersFromRole({roleId:s.openSelecteKeys[0],userIdList:s.selectedRowKeys}).then(i=>{i.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,n(),s.refresh()):s.$message.error(s.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+i.message)})}})}},created(){}};var ee=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:n,row:i}){return[t("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.name)+" ")])]}},{key:"nickname",fn:function({column:n,row:i}){return[t("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.nickname)+" ")])]}},{key:"orgname",fn:function({column:n,row:i}){return[t("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(i.orgname)+" ")])]}},{key:"sex",fn:function({column:n,row:i}){return[t("span",[e._v(" "+e._s(e._f("dictType")("gender",i.gender))+" ")])]}},{key:"status",fn:function({column:n,row:i}){return[t("span",[e._v(" "+e._s(e._f("dictType")("state_code",i.statecodes))+" ")])]}}])}),t("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},te=[],se=u.normalizeComponent(Z,ee,te,!1,null,"e9dd56ab",null,null);const ne=se.exports;const ie={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserFormDate:ne},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...u.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 ae=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(n){e.visible=n},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)},re=[],le=u.normalizeComponent(ie,ae,re,!1,null,"46b57430",null,null);const oe=le.exports,de=Object.freeze(Object.defineProperty({__proto__:null,default:oe},Symbol.toStringTag,{value:"Module"}));const ce={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:""}},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...u.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 n(a){a.children&&a.children.length>0&&(a.children.sort((l,r)=>l.name.localeCompare(r.name)),a.children.forEach(l=>n(l)))}const i={name:e.name,id:e.id,children:t[e.id].children};return n(i),[i]},handleSubmit(){this.id!=""?this.edit():this.add()},add(){const e=this.currentPermissions.map(t=>{const n=t.list.reduce((i,a)=>(i[a.code]=a.value,i),{});return{...t,...n}}).map(({list:t,...n})=>n);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 n=t.list.reduce((i,a)=>(i[a.code]=a.value,i),{});return{...t,...n}}).map(({list:t,...n})=>n);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(i=>{const a=[{name:"\u67E5\u770B",code:"readmetadata",value:i.readmetadata},{name:"\u91CD\u547D\u540D",code:"rename",value:i.rename},{name:"\u5220\u9664",code:"delete",value:i.delete},{name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",value:i.manageprem},{name:"\u79FB\u52A8",code:"move",value:i.move},{name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",value:i.createfile},{name:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939",code:"createsubfolder",value:i.createsubfolder},{name:"\u4E0B\u8F7D",code:"download",value:i.download}];return{id:i.id,name:i.name,ischeck:!1,sysdocobjectid:i.sysdocobjectid,sysroleid:i.sysroleid,list:a}});this.currentPermissions=t,this.handlePermissionClick(this.currentPermissions[0]);const n=t.map(i=>i.sysdocobjectid);this.$refs.elTreeRef&&this.$refs.elTreeRef.setCheckedKeys(n)}})},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,n,i)=>{if(t!=="confirm"){i();return}n.confirmButtonLoading=!0,n.cancelButtonLoading=!0,n.showCancelButton=!1,s.id===0?e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):f.docObjectsRolesDel({ids:s.id}).then(l=>{n.confirmButtonLoading=!1,n.cancelButtonLoading=!1,n.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)}),i();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 n=s.id,i=JSON.parse(JSON.stringify(this.currentPermissions)).filter(a=>a.sysdocobjectid===s.id);if(e&&i.length===0){const a={sysdocobjectid:n,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===n&&(l.ischeck=!0)}),this.cardList.forEach(l=>{Array.isArray(l.list)&&l.list.forEach(r=>{r.value=""})})}else if(!e&&i.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,i[0].id===0?a.$message.success(a.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):f.docObjectsRolesDel({ids:i[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(n)}})}},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(n=>{n.value=""})}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(n=>{const i=e[n.name];i!==void 0&&i!==""&&i!==null&&(n.value=i.toString())})})},handleNodeClick(s,e){this.objectId=s.id;let t=[],n=e;for(;n;)t.unshift(n.data.name),n=n.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(n=>{n.value=""})}),this.cardList.forEach(t=>{Array.isArray(t.list)&&t.list.forEach(n=>{const i=e[n.name];i!=null&&(n.value=i.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(n=>n.ischeck);if(t){const n=t.list.find(i=>i.name===e.name);n&&(n.value=e.value)}}},10))}}};var he=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(n){e.visible=n},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(n){return t("div",{key:n.sysdocobjectid,staticClass:"permission-tags-item",class:{checked:n.ischeck},on:{click:function(i){return e.handlePermissionClick(n)}}},[t("div",{staticClass:"item-name"},[e._v(e._s(n.name))]),t("div",{staticClass:"permission-tags-item-content"},e._l(n.list,function(i,a){return t("div",{key:a},[t("span",[e._v(e._s(i.name))]),i.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(),i.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(i){return e.delList(n)}}})])}),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(n,i){return t("div",{key:i},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("h4",[e._v(e._s(e.$i18nt(n.transkey,n.name)))])]),t("div",{staticClass:"permission-list"},[t("div",{staticClass:"permission-category"},e._l(n.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)},ue=[],ge=u.normalizeComponent(ce,he,ue,!1,null,"6afc0af9",null,null);const fe=ge.exports,pe=Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"}));const me={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:{...u.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 ye=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(n){e.visible=n},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)},_e=[],be=u.normalizeComponent(me,ye,_e,!1,null,"2b164094",null,null);const ve=be.exports,ke=Object.freeze(Object.defineProperty({__proto__:null,default:ve},Symbol.toStringTag,{value:"Module"}));exports.RoleForm=m;
@@ -1,5 +1,5 @@
1
1
  import { g as C, f as T, s as S, a as R, b as L, h as I, i as x, j as P, d as D, k as N, l as B, m as M, n as A, p as _ } from "./http.rolemanage.da5c40e9.mjs";
2
- import { m as f, n as g } from "./components.chartbi.571c5ff5.mjs";
2
+ import { m as f, n as g } from "./components.chartbi.7356b244.mjs";
3
3
  import { t as k } from "./utils.mixins.js.be01e599.mjs";
4
4
  import { g as v, i as F, p as O, j as E } from "./http.usermanage.f5491144.mjs";
5
5
  import { e as z, d as j, a as w } from "./http.orgmanage.0b1df8d5.mjs";