gds-plus-design-vue 1.2.63 → 1.2.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/lib/{addPermission.9fc97a47.mjs → addPermission.179a09f4.mjs} +127 -105
  2. package/lib/addPermission.c72ebbe0.js +1 -0
  3. package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b550187.mjs} +7 -7
  4. package/lib/approvalModel.7cfcac3c.js +1 -0
  5. package/lib/attribute.3fed1dd9.js +1 -0
  6. package/lib/attribute.e9a8faa1.mjs +367 -0
  7. package/lib/businessRules.cf106f09.js +1 -0
  8. package/lib/{businessRules.db6ba874.mjs → businessRules.d7d35011.mjs} +191 -190
  9. package/lib/buttonRule.2afe380d.mjs +396 -0
  10. package/lib/buttonRule.737e8e3f.js +1 -0
  11. package/lib/chartDisplayRules.370065e8.mjs +288 -0
  12. package/lib/chartDisplayRules.c9162f81.js +1 -0
  13. package/lib/components.chartbi.3bbac955.js +8 -0
  14. package/lib/components.chartbi.571c5ff5.mjs +1813 -0
  15. package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.06cf0433.mjs} +2 -2
  16. package/lib/{components.coloreditor.779a9419.js → components.coloreditor.f81d322a.js} +1 -1
  17. package/lib/{components.dataassign.56632583.mjs → components.dataassign.21d3938b.mjs} +3 -3
  18. package/lib/{components.dataassign.1853ed5c.js → components.dataassign.565d22c0.js} +1 -1
  19. package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.490abdfa.mjs} +416 -399
  20. package/lib/components.echarts.fe84f881.js +4 -0
  21. package/lib/{components.exception.3cc33e29.js → components.exception.374f2ad9.js} +1 -1
  22. package/lib/{components.exception.cc2f4ca3.mjs → components.exception.ee1c4f83.mjs} +1 -1
  23. package/lib/{components.form.91d5ed3e.js → components.form.5533a8c3.js} +19 -19
  24. package/lib/{components.form.3344c817.mjs → components.form.db8af727.mjs} +1118 -1090
  25. package/lib/{components.globalheader.07a90c4b.js → components.globalheader.2eb787a4.js} +1 -1
  26. package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.b3b35343.mjs} +3 -3
  27. package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.8940b1a9.mjs} +7 -3
  28. package/lib/components.iconselector.f5a58033.js +1 -0
  29. package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.d97cf25c.js} +1 -1
  30. package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.f05b3e06.mjs} +4 -4
  31. package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.18f84642.js} +1 -1
  32. package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.2a097955.mjs} +1 -1
  33. package/lib/components.middleware.43b9b264.js +1 -0
  34. package/lib/{components.middleware.457b1182.mjs → components.middleware.de012955.mjs} +5 -4
  35. package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.5060623f.mjs} +1 -1
  36. package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.957cab33.js} +1 -1
  37. package/lib/{components.multitab.8441aa6b.mjs → components.multitab.5eb6edff.mjs} +1 -1
  38. package/lib/{components.multitab.82fd0544.js → components.multitab.80eeb3ae.js} +1 -1
  39. package/lib/{components.selecttree.d710a362.js → components.selecttree.2fe70d88.js} +1 -1
  40. package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.756c4d22.mjs} +1 -1
  41. package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.29dbc31e.mjs} +21 -21
  42. package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.8c12650b.js} +1 -1
  43. package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.0673fe0a.mjs} +2 -2
  44. package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.240dfde7.js} +1 -1
  45. package/lib/components.sidenavmenu.b1330d69.js +1 -0
  46. package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.fa81ff82.mjs} +448 -632
  47. package/lib/{components.statuschange.ed1218a4.js → components.statuschange.858b72e8.js} +1 -1
  48. package/lib/{components.statuschange.15938660.mjs → components.statuschange.fae4adba.mjs} +3 -3
  49. package/lib/{components.table.17c02054.js → components.table.1e338902.js} +3 -3
  50. package/lib/{components.table.e3e5e3bc.mjs → components.table.9ed77207.mjs} +331 -316
  51. package/lib/components.tableumy.1d804d70.js +1 -0
  52. package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.3e1c9a5b.mjs} +7 -4
  53. package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.66890b2c.mjs} +7 -4
  54. package/lib/components.tablevirtual.8e21a6e7.js +1 -0
  55. package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.3a17ddc0.mjs} +3 -3
  56. package/lib/{components.teamsharing.05503821.js → components.teamsharing.89e668fd.js} +1 -1
  57. package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.0ea7e2b1.js} +1 -1
  58. package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.376d95fe.mjs} +1 -1
  59. package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0a5a1608.mjs} +2 -2
  60. package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.8e0e702c.js} +1 -1
  61. package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.bc160e00.js} +1 -1
  62. package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.decb0360.mjs} +2 -2
  63. package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.140533c7.js} +1 -1
  64. package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.7091b10b.mjs} +1 -1
  65. package/lib/components.viewformdetails.940addba.js +1 -0
  66. package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.d241c652.mjs} +94 -61
  67. package/lib/components.viewloading.1e9f4b3c.js +1 -0
  68. package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.aae3aab4.mjs} +54 -51
  69. package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.2ec3260c.mjs} +1 -1
  70. package/lib/{components.watermark.da3d7220.js → components.watermark.d9ec8130.js} +1 -1
  71. package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.0d1553b1.js} +1 -1
  72. package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.c33f83ca.mjs} +4 -4
  73. package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.81df7841.mjs} +541 -532
  74. package/lib/components.xlsximport.8c209857.js +1 -0
  75. package/lib/copy.8db86d9f.mjs +572 -0
  76. package/lib/copy.a8753f38.js +1 -0
  77. package/lib/createFile.04a6b293.js +1 -0
  78. package/lib/createFile.4cac1673.mjs +439 -0
  79. package/lib/createSubfolders.e105fa86.js +1 -0
  80. package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.eac5ccae.mjs} +7 -7
  81. package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.bf435838.mjs} +2 -2
  82. package/lib/{dialogLayout.08823bb7.js → dialogLayout.f0779aed.js} +1 -1
  83. package/lib/drawerContainer.6ab3df46.mjs +163 -0
  84. package/lib/drawerContainer.8f9df583.js +1 -0
  85. package/lib/{drawerLayout.36cf4d05.js → drawerLayout.b6c7c3c6.js} +1 -1
  86. package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.e3c0164d.mjs} +2 -2
  87. package/lib/editForm.0f3fd3b0.js +1 -0
  88. package/lib/editForm.aef93ed0.mjs +434 -0
  89. package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
  90. package/lib/extendedAttributes.ef3ead02.js +1 -0
  91. package/lib/fileSearch.43465e1c.js +1 -0
  92. package/lib/{fileSearch.86c356fe.mjs → fileSearch.5c8a883d.mjs} +140 -115
  93. package/lib/{flow.designer.6da03949.mjs → flow.designer.81c29f62.mjs} +3184 -3197
  94. package/lib/flow.designer.ffd0aa8b.js +1 -0
  95. package/lib/flow.list.4c05f2f0.js +1 -0
  96. package/lib/{flow.list.03694808.mjs → flow.list.ab420927.mjs} +234 -232
  97. package/lib/form.build.724d3357.js +1 -0
  98. package/lib/{form.build.b768d613.mjs → form.build.d04773f0.mjs} +22 -14
  99. package/lib/form.designer.build.c82cb559.mjs +2529 -0
  100. package/lib/form.designer.build.dac501fa.js +1 -0
  101. package/lib/formFiled.4b5062d7.js +1 -0
  102. package/lib/{formFiled.fe7d9df3.mjs → formFiled.c949a27f.mjs} +15 -13
  103. package/lib/gd-initial.js +1 -1
  104. package/lib/gd-initial.mjs +231 -207
  105. package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
  106. package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
  107. package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
  108. package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
  109. package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
  110. package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
  111. package/lib/http.filedocument.6fdfc693.js +1 -0
  112. package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
  113. package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
  114. package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
  115. package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
  116. package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
  117. package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
  118. package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
  119. package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
  120. package/lib/http.rolemanage.4d1101dd.js +1 -0
  121. package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
  122. package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
  123. package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
  124. package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
  125. package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
  126. package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
  127. package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
  128. package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
  129. package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
  130. package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
  131. package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
  132. package/lib/index.9deaa991.mjs +25906 -0
  133. package/lib/index.d95c407c.js +8 -0
  134. package/lib/layoutBlocks.26e1b57b.js +1 -0
  135. package/lib/layoutBlocks.31454610.mjs +413 -0
  136. package/lib/layoutItem.c1c836a1.js +1 -0
  137. package/lib/layoutItem.cf18143e.mjs +71 -0
  138. package/lib/{layouts.a6a36612.js → layouts.2d06f3e9.js} +2 -2
  139. package/lib/{layouts.051a0bba.mjs → layouts.3b383d04.mjs} +19 -22
  140. package/lib/main.09d48801.js +1 -0
  141. package/lib/main.28b7c398.js +1 -0
  142. package/lib/main.29e204f9.mjs +166 -0
  143. package/lib/main.33443996.mjs +231 -0
  144. package/lib/main.357c50d2.js +1 -0
  145. package/lib/{main.7f44e3bf.mjs → main.3e886f21.mjs} +40 -50
  146. package/lib/{main.c1df94d8.mjs → main.419a7b42.mjs} +2 -2
  147. package/lib/main.4a38d5f8.js +1 -0
  148. package/lib/{main.70357352.mjs → main.60329866.mjs} +6 -6
  149. package/lib/{main.ad1e8d4d.js → main.60c2a1a2.js} +1 -1
  150. package/lib/main.61c9e5c6.mjs +537 -0
  151. package/lib/main.643d21a0.mjs +552 -0
  152. package/lib/main.64ddb5f6.mjs +189 -0
  153. package/lib/main.728eaf53.js +1 -0
  154. package/lib/{main.8a2a590d.js → main.892caa37.js} +1 -1
  155. package/lib/main.aea9b6a8.mjs +323 -0
  156. package/lib/main.b7a5a02b.js +1 -0
  157. package/lib/main.c71e5b11.js +1 -0
  158. package/lib/main.edc0b23b.js +1 -0
  159. package/lib/{main.b0e5e1b0.mjs → main.f520fcf5.mjs} +2 -2
  160. package/lib/manage.101f1aa9.js +1 -0
  161. package/lib/{manage.a1df9b88.mjs → manage.f4000654.mjs} +162 -140
  162. package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
  163. package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
  164. package/lib/messages.messagetemplate.32273e00.js +7 -0
  165. package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
  166. package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
  167. package/lib/messages.sendplan.fbac188d.js +1 -0
  168. package/lib/messages.sendrecord.ef80d44a.js +2 -0
  169. package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
  170. package/lib/messages.templatelibrary.ec512390.js +2 -0
  171. package/lib/messages.templatelibrary.ff151513.mjs +808 -0
  172. package/lib/mobile.designer.componentstree.03f61105.js +1 -0
  173. package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
  174. package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
  175. package/lib/mobile.designer.menutree.97bb4046.js +1 -0
  176. package/lib/moveFile.335ebc8d.js +1 -0
  177. package/lib/moveFile.d71c0824.mjs +276 -0
  178. package/lib/{page.build.685c1e15.mjs → page.build.376104d5.mjs} +607 -601
  179. package/lib/{page.build.846096e6.js → page.build.37b26617.js} +3 -3
  180. package/lib/page.designer.componentstree.0ffc933d.js +1 -0
  181. package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
  182. package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
  183. package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
  184. package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
  185. package/lib/page.designer.menutree.c49d9ee6.js +1 -0
  186. package/lib/page.designer.operation.6179b661.js +1 -0
  187. package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
  188. package/lib/page.designer.page.09402332.js +1 -0
  189. package/lib/page.designer.page.6d8232c7.mjs +10638 -0
  190. package/lib/personal.echarts.414b7e3d.mjs +268 -0
  191. package/lib/personal.echarts.b7ee86f4.js +1 -0
  192. package/lib/result.0c089066.mjs +639 -0
  193. package/lib/result.9282a717.js +1 -0
  194. package/lib/router.config.68077a12.js +1 -0
  195. package/lib/router.config.86225b11.mjs +1424 -0
  196. package/lib/solution.application.d459e382.js +1 -0
  197. package/lib/solution.application.e0d58df1.mjs +548 -0
  198. package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
  199. package/lib/solution.applicationmenu.ae295083.js +1 -0
  200. package/lib/solution.approvalflow.436b3502.js +1 -0
  201. package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
  202. package/lib/solution.dict.acbe9c55.js +1 -0
  203. package/lib/solution.dict.ef98b194.mjs +769 -0
  204. package/lib/solution.menu.5c17348f.mjs +432 -0
  205. package/lib/solution.menu.cca5e1f9.js +1 -0
  206. package/lib/solution.plugin.90f8dcc1.mjs +347 -0
  207. package/lib/solution.plugin.f9a8063f.js +1 -0
  208. package/lib/solution.processflow.2692dac6.js +1 -0
  209. package/lib/solution.processflow.c1544b05.mjs +392 -0
  210. package/lib/solution.role.b1ab40dd.mjs +456 -0
  211. package/lib/solution.role.b28c4dbe.js +1 -0
  212. package/lib/solution.webresources.0b51beba.mjs +379 -0
  213. package/lib/solution.webresources.6961cc68.js +1 -0
  214. package/lib/solution.workflow.11e49e25.js +1 -0
  215. package/lib/solution.workflow.c48545d1.mjs +395 -0
  216. package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
  217. package/lib/store.config.556bd56b.js +1 -0
  218. package/lib/style.css +3 -3
  219. package/lib/{system.account.014f3e0b.mjs → system.account.1cadbf03.mjs} +877 -881
  220. package/lib/{system.account.0d4f1fdc.js → system.account.5cc9fe8d.js} +7 -7
  221. package/lib/{system.config.210f516c.js → system.config.a0b94e40.js} +1 -1
  222. package/lib/{system.config.0899edb8.mjs → system.config.a9a1ee96.mjs} +1 -1
  223. package/lib/{system.datasource.82492d27.js → system.datasource.6c30ce25.js} +1 -1
  224. package/lib/{system.datasource.986768c9.mjs → system.datasource.c103a9c2.mjs} +1 -1
  225. package/lib/{system.dict.ef24873d.mjs → system.dict.0c229d1c.mjs} +264 -260
  226. package/lib/system.dict.6b000092.js +1 -0
  227. package/lib/system.document.f67c2994.mjs +667 -0
  228. package/lib/system.document.f8fd7af0.js +1 -0
  229. package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.94c7ce17.mjs} +245 -265
  230. package/lib/system.duplicatechecking.f4cab147.js +1 -0
  231. package/lib/system.email.11ab6f31.js +1 -0
  232. package/lib/{system.email.252fd642.mjs → system.email.13823361.mjs} +10 -15
  233. package/lib/system.fieldsecurity.2ef2881c.js +1 -0
  234. package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.d35acd97.mjs} +370 -361
  235. package/lib/{system.file.73eeb731.mjs → system.file.30d3e7bc.mjs} +81 -149
  236. package/lib/system.file.b9f8320c.js +1 -0
  237. package/lib/{system.log.fc60f5e6.js → system.log.470d3efd.js} +1 -1
  238. package/lib/{system.log.b86cf57f.mjs → system.log.815840d8.mjs} +1 -1
  239. package/lib/{system.machine.0114001b.mjs → system.machine.1665954f.mjs} +1 -1
  240. package/lib/{system.machine.f1d95c86.js → system.machine.f8aff893.js} +1 -1
  241. package/lib/{system.notice.25ea8dca.mjs → system.notice.bef6c23c.mjs} +994 -992
  242. package/lib/system.notice.db26f308.js +1 -0
  243. package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.0d293a87.mjs} +10 -11
  244. package/lib/system.noticereceived.84b88b9a.js +1 -0
  245. package/lib/system.onlineuser.985621a6.js +1 -0
  246. package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.bccb1cd9.mjs} +37 -26
  247. package/lib/{system.org.c20fe6b2.mjs → system.org.92f4d7f1.mjs} +2 -2
  248. package/lib/{system.org.79ee5bd6.js → system.org.9f87a010.js} +1 -1
  249. package/lib/system.permissions.15e6b8b7.js +1 -0
  250. package/lib/system.permissions.be9238ee.mjs +972 -0
  251. package/lib/system.plugin.0bccfec4.js +1 -0
  252. package/lib/{system.plugin.45a0f530.mjs → system.plugin.af27d7ac.mjs} +500 -479
  253. package/lib/{system.pos.0a3d2a37.js → system.pos.61e58a92.js} +1 -1
  254. package/lib/{system.pos.7946a99c.mjs → system.pos.fe067063.mjs} +1 -1
  255. package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.0b9083c5.mjs} +246 -243
  256. package/lib/system.promptmanagement.e750de82.js +1 -0
  257. package/lib/{system.role.75da7929.mjs → system.role.67f62146.mjs} +511 -488
  258. package/lib/system.role.e86b60f1.js +1 -0
  259. package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.093d998e.mjs} +168 -165
  260. package/lib/system.sumberrules.810f7b55.js +1 -0
  261. package/lib/system.team.58ee701b.js +1 -0
  262. package/lib/{system.team.e6a9608e.mjs → system.team.8911fd95.mjs} +163 -161
  263. package/lib/system.teammembers.1880f962.js +1 -0
  264. package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.35564a00.mjs} +203 -198
  265. package/lib/{system.timers.eb0b6f3e.mjs → system.timers.4b2d509f.mjs} +2261 -2213
  266. package/lib/system.timers.9e956553.js +38 -0
  267. package/lib/system.translation.26b6bb39.js +1 -0
  268. package/lib/{system.translation.e34f0891.mjs → system.translation.60ec676c.mjs} +435 -429
  269. package/lib/system.user.134a3988.js +14 -0
  270. package/lib/{system.user.fa2d2997.mjs → system.user.9a02295e.mjs} +1082 -1026
  271. package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.96695aeb.mjs} +418 -412
  272. package/lib/system.useraffiliation.c2421c7e.js +1 -0
  273. package/lib/{system.webresource.469db736.mjs → system.webresource.016d0000.mjs} +179 -179
  274. package/lib/system.webresource.e92e8a8f.js +1 -0
  275. package/lib/{system.welcome.191e98f5.mjs → system.welcome.127b5dd4.mjs} +1 -1
  276. package/lib/{system.welcome.f64e49f8.js → system.welcome.ff0c85e2.js} +1 -1
  277. package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
  278. package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
  279. package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
  280. package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
  281. package/lib/tableDescriptions.a4196776.mjs +80 -0
  282. package/lib/tableDescriptions.b9b0d7fa.js +1 -0
  283. package/lib/tcheckboxs.7ea99d35.js +1 -0
  284. package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.999b7c2e.mjs} +2 -2
  285. package/lib/tcurrency.4afb9192.mjs +85 -0
  286. package/lib/tcurrency.8a2361f2.js +1 -0
  287. package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.606214fa.mjs} +2 -2
  288. package/lib/{tdatepicker.b19e689d.js → tdatepicker.8e94a60c.js} +1 -1
  289. package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.ccbdd153.js} +1 -1
  290. package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.e016d4cf.mjs} +2 -2
  291. package/lib/{tfile.72925615.mjs → tfile.3f39223d.mjs} +2 -2
  292. package/lib/{tfile.1bc381f9.js → tfile.b3ebdc71.js} +1 -1
  293. package/lib/{tparticipants.ca5b556c.mjs → tparticipants.5fe27540.mjs} +2 -2
  294. package/lib/{tparticipants.77b876e2.js → tparticipants.78c8c175.js} +1 -1
  295. package/lib/{translation.mains.278e4ba6.mjs → translation.mains.2688be5b.mjs} +7 -7
  296. package/lib/{translation.mains.1ce7e110.js → translation.mains.a6f19343.js} +1 -1
  297. package/lib/utils.datepicker.js.0a5a699e.js +1 -0
  298. package/lib/utils.datepicker.js.5549a741.mjs +70 -0
  299. package/lib/utils.plug.js.9313aead.mjs +31 -0
  300. package/lib/utils.plug.js.f62510ce.js +1 -0
  301. package/lib/utils.util.js.333daba2.mjs +439 -0
  302. package/lib/utils.util.js.c0ba699b.js +1 -0
  303. package/lib/versionControl.46a7f31a.js +1 -0
  304. package/lib/versionControl.c53bfb5d.mjs +488 -0
  305. package/lib/versionEdit.4246d5db.js +1 -0
  306. package/lib/versionEdit.5a8292ec.mjs +452 -0
  307. package/lib/view.build.85732408.mjs +1578 -0
  308. package/lib/view.build.e43a2077.js +1 -0
  309. package/lib/viewList.868edcd7.js +1 -0
  310. package/lib/{viewList.5a25c4b6.mjs → viewList.978b72c5.mjs} +70 -92
  311. package/lib/viewTree.7497ff90.js +1 -0
  312. package/lib/viewTree.bde43a3b.mjs +409 -0
  313. package/locale/en_US.js +45 -6
  314. package/locale/id_ID.js +45 -6
  315. package/locale/vi_VN.js +45 -6
  316. package/locale/zh_CN.js +45 -5
  317. package/package.json +1 -1
  318. package/lib/addPermission.5036013c.js +0 -1
  319. package/lib/approvalModel.66f49dfb.js +0 -1
  320. package/lib/attribute.318f485c.js +0 -1
  321. package/lib/attribute.a06ac9e7.mjs +0 -237
  322. package/lib/buildItem.6a834227.js +0 -1
  323. package/lib/buildItem.fd8634ab.mjs +0 -205
  324. package/lib/businessRules.0e4dbb3a.js +0 -1
  325. package/lib/components.chartbi.b043dcdc.mjs +0 -1729
  326. package/lib/components.chartbi.e4680eaa.js +0 -7
  327. package/lib/components.echarts.e4d6b13e.js +0 -3
  328. package/lib/components.iconselector.d712170f.js +0 -1
  329. package/lib/components.middleware.3bad5748.js +0 -1
  330. package/lib/components.sidenavmenu.b9bb9304.js +0 -1
  331. package/lib/components.tableumy.9cf33062.js +0 -1
  332. package/lib/components.tablevirtual.38d4d3d8.js +0 -1
  333. package/lib/components.viewformdetails.1621bc18.js +0 -1
  334. package/lib/components.viewloading.807bbf68.js +0 -1
  335. package/lib/components.xlsximport.dbd826bb.js +0 -1
  336. package/lib/createFile.6b37ecf2.js +0 -1
  337. package/lib/createFile.82d6e415.mjs +0 -239
  338. package/lib/createSubfolders.47af629c.js +0 -1
  339. package/lib/drawerContainer.604a1271.mjs +0 -146
  340. package/lib/drawerContainer.6a9813ce.js +0 -1
  341. package/lib/fileSearch.65311ded.js +0 -1
  342. package/lib/flow.designer.1ba3a90d.js +0 -1
  343. package/lib/flow.list.4eb10554.js +0 -1
  344. package/lib/form.build.51bd261e.js +0 -1
  345. package/lib/form.designer.build.5a950455.js +0 -1
  346. package/lib/form.designer.build.e521c9c6.mjs +0 -5091
  347. package/lib/formFiled.464856f5.js +0 -1
  348. package/lib/http.filedocument.7c656b91.js +0 -1
  349. package/lib/http.filedocument.d456d26a.mjs +0 -156
  350. package/lib/http.rolemanage.03363732.js +0 -1
  351. package/lib/index.69ad4631.mjs +0 -44291
  352. package/lib/index.cca024bf.js +0 -8
  353. package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
  354. package/lib/layoutBlocks.5e6be06f.js +0 -1
  355. package/lib/main.457f4326.js +0 -1
  356. package/lib/main.4fff412e.js +0 -1
  357. package/lib/main.77373aa4.mjs +0 -441
  358. package/lib/main.c3726602.js +0 -1
  359. package/lib/manage.5bb4f719.js +0 -1
  360. package/lib/messages.7b74736f.js +0 -9
  361. package/lib/messages.ad082386.mjs +0 -4889
  362. package/lib/moveFile.0ce803e0.js +0 -1
  363. package/lib/moveFile.8310ea94.mjs +0 -254
  364. package/lib/personal.echarts.b22fba61.mjs +0 -701
  365. package/lib/personal.echarts.f77bfc9e.js +0 -1
  366. package/lib/result.19351665.mjs +0 -526
  367. package/lib/result.e59c0e40.js +0 -1
  368. package/lib/router.config.2501ec51.js +0 -1
  369. package/lib/router.config.98a73167.mjs +0 -3172
  370. package/lib/solution.58580123.js +0 -1
  371. package/lib/solution.890ff164.mjs +0 -6942
  372. package/lib/store.config.3cb11578.js +0 -1
  373. package/lib/system.dict.f5708400.js +0 -1
  374. package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
  375. package/lib/system.email.070ab2be.js +0 -1
  376. package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
  377. package/lib/system.file.17a7f2ed.js +0 -1
  378. package/lib/system.notice.96c770a6.js +0 -1
  379. package/lib/system.noticereceived.dfe4ecc7.js +0 -1
  380. package/lib/system.onlineuser.e2e39bdc.js +0 -1
  381. package/lib/system.permissions.90f73461.js +0 -9
  382. package/lib/system.permissions.c3d34921.mjs +0 -213
  383. package/lib/system.plugin.b34a3b47.js +0 -1
  384. package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
  385. package/lib/system.role.03be0982.js +0 -1
  386. package/lib/system.sumberrules.bb228fce.js +0 -1
  387. package/lib/system.team.32183b63.js +0 -1
  388. package/lib/system.teammembers.847d8ea7.js +0 -1
  389. package/lib/system.timers.28691ce4.js +0 -38
  390. package/lib/system.translation.6237f071.js +0 -1
  391. package/lib/system.user.fca3f2d6.js +0 -14
  392. package/lib/system.useraffiliation.7547b9c7.js +0 -1
  393. package/lib/system.webresource.12712b90.js +0 -1
  394. package/lib/tcheckboxs.99361be3.js +0 -1
  395. package/lib/tcurrency.0ddac2f8.mjs +0 -92
  396. package/lib/tcurrency.62763c6d.js +0 -1
  397. package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
  398. package/lib/utils.datepicker.js.8576e2fc.js +0 -1
  399. package/lib/utils.util.js.50d1ec9c.js +0 -1
  400. package/lib/utils.util.js.82cd8447.mjs +0 -424
  401. package/lib/view.build.b44fd7d7.js +0 -1
  402. package/lib/view.build.f2a9fcfb.mjs +0 -2727
  403. package/lib/viewList.be5a5ec5.js +0 -1
@@ -0,0 +1 @@
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,7 +1,7 @@
1
- import { n as o, m as d } from "./components.chartbi.b043dcdc.mjs";
2
- import { n as c, a as u, b as p, c as m } from "./http.sumberrules.608a06d6.mjs";
1
+ import { m as d, n as o } from "./components.chartbi.571c5ff5.mjs";
2
+ import { n as c, a as u, b as p, c as m } from "./http.sumberrules.176d3d06.mjs";
3
3
  import { t as g } from "./utils.mixins.js.be01e599.mjs";
4
- import { a as f } from "./http.main.40657f51.mjs";
4
+ import { a as f } from "./http.main.aefea27d.mjs";
5
5
  const h = {
6
6
  data() {
7
7
  return {
@@ -121,6 +121,161 @@ const h = {
121
121
  }
122
122
  };
123
123
  const y = {
124
+ name: "GdSumberrules",
125
+ mixins: [g, h],
126
+ props: {
127
+ height: {
128
+ type: Number,
129
+ default: 100
130
+ }
131
+ },
132
+ data() {
133
+ return {
134
+ formLoading: !1,
135
+ transKey: "gd.btn.add",
136
+ selectedRowKeys: [],
137
+ selectedRows: [],
138
+ queryParam: {},
139
+ loadData: (a) => c(this.getQueryParam).then((e) => ({
140
+ pageNo: 1,
141
+ pageSize: 100,
142
+ totalRows: 0,
143
+ rows: e.map((s) => {
144
+ let l = this.tableLists.filter((r) => r.id === s.syscodegenid)[0];
145
+ return Object.assign(s, {
146
+ syscodegen: l
147
+ });
148
+ })
149
+ }))
150
+ };
151
+ },
152
+ computed: {
153
+ getQueryParam() {
154
+ let a = /* @__PURE__ */ new Map();
155
+ for (let e in this.queryParam)
156
+ this.queryParam[e] !== "" && a.set(e, this.queryParam[e]);
157
+ return Object.fromEntries(a);
158
+ },
159
+ getHeight() {
160
+ return this.height;
161
+ },
162
+ ...d(["tablePageSize", "tableSize", "labelPosition", "formMode", "tableLists"])
163
+ },
164
+ components: {
165
+ editForm: () => Promise.resolve().then(() => k)
166
+ },
167
+ methods: {
168
+ saveQueries(a) {
169
+ this.queryParam = {
170
+ ...a
171
+ }, this.refresh();
172
+ },
173
+ refresh() {
174
+ this.$refs.table.refresh();
175
+ },
176
+ editForm(a) {
177
+ this.transKey = "gd.btn.edit", this.$refs.editForm.open(a);
178
+ },
179
+ add() {
180
+ this.$refs.editForm.open();
181
+ },
182
+ edit() {
183
+ if (this.selectedRowKeys.length === 0) {
184
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
185
+ return;
186
+ }
187
+ if (this.selectedRowKeys.length > 1) {
188
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
189
+ return;
190
+ }
191
+ this.editForm(this.selectedRows[0]);
192
+ },
193
+ handleOk() {
194
+ this.refresh();
195
+ },
196
+ del() {
197
+ if (this.selectedRowKeys.length === 0) {
198
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
199
+ return;
200
+ }
201
+ if (this.selectedRowKeys.length > 1) {
202
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
203
+ return;
204
+ }
205
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
206
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
207
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
208
+ showClose: !1,
209
+ confirmButtonLoading: !1,
210
+ cancelButtonLoading: !1,
211
+ closeOnClickModal: !1,
212
+ type: "warning",
213
+ confirmButtonClass: "el-button--danger",
214
+ customClass: "custom-alert",
215
+ callback: () => {
216
+ },
217
+ beforeClose: (a, e, t) => {
218
+ this.delHand(a, e, t);
219
+ }
220
+ });
221
+ },
222
+ delHand(a, e, t) {
223
+ if (a !== "confirm") {
224
+ t();
225
+ return;
226
+ }
227
+ let s = [];
228
+ this.selectedRows.forEach((l) => {
229
+ let r = u(l).then((n) => n);
230
+ s.push(r);
231
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
232
+ const r = l.filter((n) => !n.success);
233
+ r.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + r[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
234
+ });
235
+ },
236
+ onSelectChange(a, e) {
237
+ this.selectedRowKeys = a, this.selectedRows = e;
238
+ },
239
+ doEvent(a) {
240
+ let e = a.item.functionName;
241
+ this[e] && this[e]();
242
+ },
243
+ dictSwitch(a, e) {
244
+ let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
245
+ return t != null && t.colour ? t.colour : null;
246
+ }
247
+ }
248
+ };
249
+ var b = function() {
250
+ var e = this, t = e._self._c;
251
+ return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0, showPagination: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
252
+ 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)])];
253
+ }, proxy: !0 }, { key: "name", fn: function({ column: s, row: l }) {
254
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: e.editForm } })];
255
+ } }, { key: "sysCodeGenId", fn: function({ column: s, row: l }) {
256
+ return [l.syscodegen ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.syscodegen.transkey}`, l.syscodegen.busname)) + " ")]) : e._e()];
257
+ } }, { key: "columnid", fn: function({ column: s, row: l }) {
258
+ return [l.syscodegenconfig ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.syscodegenconfig.transkey}`, l.syscodegenconfig.name)) + " ")]) : e._e()];
259
+ } }, { key: "statecodes", fn: function(s) {
260
+ return [e.dictSwitch(s.row.statecodes, "state_code") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
261
+ } }, { key: "filtering", fn: function({ colse: s, visible: l }) {
262
+ return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: s, visible: l }, on: { save: e.saveQueries } })];
263
+ } }]) })], 1), t("editForm", { ref: "editForm", attrs: { openPermissions: !0 }, on: { ok: e.handleOk } })], 1);
264
+ }, $ = [], _ = /* @__PURE__ */ o(
265
+ y,
266
+ b,
267
+ $,
268
+ !1,
269
+ null,
270
+ "49e82fa0",
271
+ null,
272
+ null
273
+ );
274
+ const i = _.exports;
275
+ i.install = function(a) {
276
+ a.component(i.name, i);
277
+ };
278
+ const v = {
124
279
  props: {
125
280
  modalAppendToBody: {
126
281
  type: Boolean,
@@ -261,14 +416,14 @@ const y = {
261
416
  });
262
417
  },
263
418
  add(a) {
264
- this.confirmLoading = !0, delete a.id, c(a).then((e) => {
419
+ this.confirmLoading = !0, delete a.id, p(a).then((e) => {
265
420
  e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25: ") + e.message);
266
421
  }).finally((e) => {
267
422
  this.confirmLoading = !1;
268
423
  });
269
424
  },
270
425
  edit(a) {
271
- this.confirmLoading = !0, u(a).then((e) => {
426
+ this.confirmLoading = !0, m(a).then((e) => {
272
427
  e.success ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25: ") + e.message);
273
428
  }).finally((e) => {
274
429
  this.confirmLoading = !1;
@@ -303,7 +458,7 @@ const y = {
303
458
  }
304
459
  }
305
460
  };
306
- var b = function() {
461
+ var x = function() {
307
462
  var e = this, t = e._self._c;
308
463
  return t("el-dialog", { class: e.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { width: e.width, visible: e.visible, fullscreen: e.fullScreen, footer: null, top: "80px", "modal-append-to-body": e.modalAppendToBody, "append-to-body": e.appendToBody, "close-on-click-modal": !1, "show-close": !1 }, on: { "update:visible": function(s) {
309
464
  e.visible = s;
@@ -356,172 +511,20 @@ var b = function() {
356
511
  }), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search cao_setting-disabled", on: { click: function(s) {
357
512
  return e.lookup("columnid", e.ruleFormData.columnid);
358
513
  } } })])], 1)])], 1)], 1)], 1), t("el-divider"), t("div", { staticClass: "remarks_title" }, [e._v(" " + e._s(e.$i18nt("gd.numberingRules.remarks", "\u793A\u4F8B:{\u56FA\u5B9A\u524D\u7F00/ \u968F\u673A\u524D\u7F00}{ \u5E74\u6708\u65E5 }{ \u6D41\u6C34\u53F7, \u6D41\u6C34\u53F7\u7C7B\u578B(\u4E3B/ \u5B50, \u5B9E\u4F53 /), \u6D41\u6C34\u53F7\u8303\u56F4(\u5168\u5C40 / \u65E5\u671F\u5185)}{ \u56FA\u5B9A\u540E\u7F00 / \u968F\u673A\u540E\u7F00 } Acc202206130001zzz")) + " ")])], 1)])], 1);
359
- }, $ = [], _ = /* @__PURE__ */ o(
360
- y,
361
- b,
362
- $,
363
- !1,
364
- null,
365
- "c510bf8e",
366
- null,
367
- null
368
- );
369
- const x = _.exports;
370
- const v = {
371
- name: "GdSumberrules",
372
- mixins: [g, h],
373
- props: {
374
- height: {
375
- type: Number,
376
- default: 100
377
- }
378
- },
379
- data() {
380
- return {
381
- formLoading: !1,
382
- transKey: "gd.btn.add",
383
- selectedRowKeys: [],
384
- selectedRows: [],
385
- queryParam: {},
386
- loadData: (a) => p(this.getQueryParam).then((e) => ({
387
- pageNo: 1,
388
- pageSize: 100,
389
- totalRows: 0,
390
- rows: e.map((s) => {
391
- let l = this.tableLists.filter((r) => r.id === s.syscodegenid)[0];
392
- return Object.assign(s, {
393
- syscodegen: l
394
- });
395
- })
396
- }))
397
- };
398
- },
399
- computed: {
400
- getQueryParam() {
401
- let a = /* @__PURE__ */ new Map();
402
- for (let e in this.queryParam)
403
- this.queryParam[e] !== "" && a.set(e, this.queryParam[e]);
404
- return Object.fromEntries(a);
405
- },
406
- getHeight() {
407
- return this.height;
408
- },
409
- ...d(["tablePageSize", "tableSize", "labelPosition", "formMode", "tableLists"])
410
- },
411
- components: {
412
- editForm: x
413
- },
414
- methods: {
415
- saveQueries(a) {
416
- this.queryParam = {
417
- ...a
418
- }, this.refresh();
419
- },
420
- refresh() {
421
- this.$refs.table.refresh();
422
- },
423
- editForm(a) {
424
- this.transKey = "gd.btn.edit", this.$refs.editForm.open(a);
425
- },
426
- add() {
427
- this.$refs.editForm.open();
428
- },
429
- edit() {
430
- if (this.selectedRowKeys.length === 0) {
431
- this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
432
- return;
433
- }
434
- if (this.selectedRowKeys.length > 1) {
435
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
436
- return;
437
- }
438
- this.editForm(this.selectedRows[0]);
439
- },
440
- handleOk() {
441
- this.refresh();
442
- },
443
- del() {
444
- if (this.selectedRowKeys.length === 0) {
445
- this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
446
- return;
447
- }
448
- if (this.selectedRowKeys.length > 1) {
449
- this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
450
- return;
451
- }
452
- this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
453
- confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
454
- cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
455
- showClose: !1,
456
- confirmButtonLoading: !1,
457
- cancelButtonLoading: !1,
458
- closeOnClickModal: !1,
459
- type: "warning",
460
- confirmButtonClass: "el-button--danger",
461
- customClass: "custom-alert",
462
- callback: () => {
463
- },
464
- beforeClose: (a, e, t) => {
465
- this.delHand(a, e, t);
466
- }
467
- });
468
- },
469
- delHand(a, e, t) {
470
- if (a !== "confirm") {
471
- t();
472
- return;
473
- }
474
- let s = [];
475
- this.selectedRows.forEach((l) => {
476
- let r = m(l).then((n) => n);
477
- s.push(r);
478
- }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
479
- const r = l.filter((n) => !n.success);
480
- r.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + r[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
481
- });
482
- },
483
- onSelectChange(a, e) {
484
- this.selectedRowKeys = a, this.selectedRows = e;
485
- },
486
- doEvent(a) {
487
- let e = a.item.functionName;
488
- this[e] && this[e]();
489
- },
490
- dictSwitch(a, e) {
491
- let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
492
- return t != null && t.colour ? t.colour : null;
493
- }
494
- }
495
- };
496
- var D = function() {
497
- var e = this, t = e._self._c;
498
- return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0, showPagination: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
499
- 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)])];
500
- }, proxy: !0 }, { key: "name", fn: function({ column: s, row: l }) {
501
- return [t("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: e.editForm } })];
502
- } }, { key: "sysCodeGenId", fn: function({ column: s, row: l }) {
503
- return [l.syscodegen ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.syscodegen.transkey}`, l.syscodegen.busname)) + " ")]) : e._e()];
504
- } }, { key: "columnid", fn: function({ column: s, row: l }) {
505
- return [l.syscodegenconfig ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.syscodegenconfig.transkey}`, l.syscodegenconfig.name)) + " ")]) : e._e()];
506
- } }, { key: "statecodes", fn: function(s) {
507
- return [e.dictSwitch(s.row.statecodes, "state_code") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
508
- } }, { key: "filtering", fn: function({ colse: s, visible: l }) {
509
- return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: s, visible: l }, on: { save: e.saveQueries } })];
510
- } }]) })], 1), t("editForm", { ref: "editForm", attrs: { openPermissions: !0 }, on: { ok: e.handleOk } })], 1);
511
- }, F = [], w = /* @__PURE__ */ o(
514
+ }, D = [], F = /* @__PURE__ */ o(
512
515
  v,
516
+ x,
513
517
  D,
514
- F,
515
518
  !1,
516
519
  null,
517
- "4481d39a",
520
+ "c510bf8e",
518
521
  null,
519
522
  null
520
523
  );
521
- const i = w.exports;
522
- i.install = function(a) {
523
- a.component(i.name, i);
524
- };
524
+ const w = F.exports, k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
525
+ __proto__: null,
526
+ default: w
527
+ }, Symbol.toStringTag, { value: "Module" }));
525
528
  export {
526
529
  i as G
527
530
  };
@@ -0,0 +1 @@
1
+ "use strict";const d=require("./components.chartbi.3bbac955.js"),i=require("./http.sumberrules.0b68ce6d.js"),c=require("./utils.mixins.js.750ca50e.js"),u=require("./http.main.2f8a6936.js"),p={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.msg.sendRecord.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.process.tableSort",prop:"sysCodeGenId",label:"\u8868\u540D\u79F0",type:"slot",slotType:"sysCodeGenId",align:"left"},{transKey:"gd.process.tableSort",prop:"columnid",label:"\u5B57\u6BB5",type:"slot",slotType:"columnid",align:"left"},{transKey:"gd.process.tableSort",prop:"nextseqno",label:"\u4E0B\u4E00\u6D41\u6C34\u53F7",align:"left"},{transKey:"gd.flow.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"}],formColumns:[{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.msg.sendRecord.msgTemplate",effectType:"selectFkMultiple",prop:"syscodegenid",label:"\u7F16\u53F7\u8868",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",fkEntityName:"sys_code_gen",disabled:!1,multiple:!1,rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSumberrules:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysSumberrules:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSumberrules:delete"}],tableQueries:[{transKey:"gd.org.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}]}}};const m={name:"GdSumberrules",mixins:[c.tablesFilter,p],props:{height:{type:Number,default:100}},data(){return{formLoading:!1,transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:a=>i.numberRulesList(this.getQueryParam).then(e=>({pageNo:1,pageSize:100,totalRows:0,rows:e.map(s=>{let l=this.tableLists.filter(r=>r.id===s.syscodegenid)[0];return Object.assign(s,{syscodegen:l})})}))}},computed:{getQueryParam(){let a=new Map;for(let e in this.queryParam)this.queryParam[e]!==""&&a.set(e,this.queryParam[e]);return Object.fromEntries(a)},getHeight(){return this.height},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","tableLists"])},components:{editForm:()=>Promise.resolve().then(()=>v)},methods:{saveQueries(a){this.queryParam={...a},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(a){this.transKey="gd.btn.edit",this.$refs.editForm.open(a)},add(){this.$refs.editForm.open()},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},handleOk(){this.refresh()},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,e,t)=>{this.delHand(a,e,t)}})},delHand(a,e,t){if(a!=="confirm"){t();return}let s=[];this.selectedRows.forEach(l=>{let r=i.numberDel(l).then(o=>o);s.push(r)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(l=>{const r=l.filter(o=>!o.success);r.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+r[0].message),t(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(a,e){this.selectedRowKeys=a,this.selectedRows=e},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()},dictSwitch(a,e){let t=this.$options.filters.dictData(e).filter(s=>s.code==a)[0];return t!=null&&t.colour?t.colour:null}}};var g=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0,showPagination:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:s,row:l}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:e.editForm}})]}},{key:"sysCodeGenId",fn:function({column:s,row:l}){return[l.syscodegen?t("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${l.syscodegen.transkey}`,l.syscodegen.busname))+" ")]):e._e()]}},{key:"columnid",fn:function({column:s,row:l}){return[l.syscodegenconfig?t("span",[e._v(" "+e._s(e.$i18nt(`Dynamics.${l.syscodegenconfig.transkey}`,l.syscodegenconfig.name))+" ")]):e._e()]}},{key:"statecodes",fn:function(s){return[e.dictSwitch(s.row.statecodes,"state_code")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:e.dictSwitch(s.row.statecodes,"state_code")}},[e._v(" "+e._s(e._f("dictType")("state_code",s.row.statecodes))+" ")]):t("span",[e._v(e._s(e._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"filtering",fn:function({colse:s,visible:l}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:s,visible:l},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},f=[],h=d.normalizeComponent(m,g,f,!1,null,"49e82fa0",null,null);const n=h.exports;n.install=function(a){a.component(n.name,n)};const y={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{confirmLoading:!1,visible:!1,fullScreen:!1,title:"",width:"50%",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],prefixtype:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],nextseqno:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{id:"",name:"",prefixtype:"",prefix:"",dateformat:"",seqtype:"",seqrange:"",seqlength:void 0,postfixtype:"",postfix:"",nextseqno:"",separatorch:"",syscodegenid:"",columnid:""},dataList:[],columnList:[],disabled:!0,type:1}},methods:{lookup(){this.disabled},open(a){this.visible=!0,this.fullScreen=!1,this.title=a?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.type=a?2:1,a&&this.getSetData(a)},getSetData(a){let e={id:a.id,name:a.name,prefixtype:a.prefixtype.toString(),prefix:a.prefix,dateformat:a.dateformat||a.dateformat==0?a.dateformat.toString():"",seqtype:a.seqtype||a.seqtype==0?a.seqtype.toString():"",seqrange:a.seqrange?a.seqrange.toString():"",seqlength:a.seqlength,postfixtype:a.postfixtype||a.postfixtype==0?a.postfixtype.toString():"",postfix:a.postfix,nextseqno:a.nextseqno?a.nextseqno.toString():"",separatorch:a.separatorch||a.separatorch==0?a.separatorch.toString():"",syscodegenid:a.syscodegen?a.syscodegenid:"",columnid:a.syscodegenconfig?a.columnid:""};this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=e},0)}),this.getFkDada(a)},getFkDada(a){let e=[];if(a.syscodegenid){let t=this.searchData({id:a.syscodegenid,fkEntityName:"sys_code_gen"},"syscodegenid");e.push(t)}if(a.columnid){let t=this.searchData({id:a.columnid,fkEntityName:"sys_code_gen_config"},"columnid");e.push(t)}Promise.all(e).then(t=>{t.forEach(s=>{s.prop=="syscodegenid"&&(this.dataList=s.res.data?s.res.data:[]),s.prop=="columnid"&&(this.columnList=s.res.data?s.res.data:[])})})},searchData(a,e){return u.baseFkList(a).then(t=>({res:t,data:a,prop:e}))},handleSubmit(){this.$refs.ruleForm.validate(a=>{if(a){let e={...this.ruleFormData};this.type==1?this.add(e):this.edit(e)}})},add(a){this.confirmLoading=!0,delete a.id,i.numberAdd(a).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(a){this.confirmLoading=!0,i.numberEdit(a).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},getDictionary(a){return this.$options.filters.dictData(a)},toggleFullscreen(){this.fullScreen=!this.fullScreen},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={name:"",prefixtype:"",prefix:"",dateformat:"",seqtype:"",seqrange:"",seqlength:void 0,postfixtype:"",postfix:"",nextseqno:"",separatorch:"",syscodegenid:"",columnid:""}},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var b=function(){var e=this,t=e._self._c;return t("el-dialog",{class:e.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","modal-append-to-body":e.modalAppendToBody,"append-to-body":e.appendToBody,"close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(s){s.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(s){e.$set(e.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.prefixType","\u524D\u7F00\u7C7B\u578B"),prop:"prefixtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.prefixtype,callback:function(s){e.$set(e.ruleFormData,"prefixtype",s)},expression:"ruleFormData.prefixtype"}},e._l(e.getDictionary("prefix_type"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.prefix","\u524D\u7F00"),prop:"prefix"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.prefix,callback:function(s){e.$set(e.ruleFormData,"prefix",s)},expression:"ruleFormData.prefix"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.dateFormat","\u65E5\u671F\u683C\u5F0F"),prop:"dateformat"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.dateformat,callback:function(s){e.$set(e.ruleFormData,"dateformat",s)},expression:"ruleFormData.dateformat"}},e._l(e.getDictionary("dateformat"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.seqType","\u6D41\u6C34\u53F7\u7C7B\u578B"),prop:"seqtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.seqtype,callback:function(s){e.$set(e.ruleFormData,"seqtype",s)},expression:"ruleFormData.seqtype"}},e._l(e.getDictionary("seqtype"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.seqRange","\u6D41\u6C34\u53F7\u8303\u56F4"),prop:"seqrange"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.seqrange,callback:function(s){e.$set(e.ruleFormData,"seqrange",s)},expression:"ruleFormData.seqrange"}},e._l(e.getDictionary("seqrange"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.seqLength","\u6D41\u6C34\u53F7\u957F\u5EA6"),prop:"seqlength"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input"),"controls-position":"right",min:0,max:10},model:{value:e.ruleFormData.seqlength,callback:function(s){e.$set(e.ruleFormData,"seqlength",s)},expression:"ruleFormData.seqlength"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.postfixType","\u540E\u7F00\u7C7B\u578B"),prop:"postfixtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.postfixtype,callback:function(s){e.$set(e.ruleFormData,"postfixtype",s)},expression:"ruleFormData.postfixtype"}},e._l(e.getDictionary("postfix_type"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.postfix","\u540E\u7F00"),prop:"postfix"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input")},model:{value:e.ruleFormData.postfix,callback:function(s){e.$set(e.ruleFormData,"postfix",s)},expression:"ruleFormData.postfix"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.nextSeqNo","\u4E0B\u4E00\u6D41\u6C34\u53F7"),prop:"nextseqno"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.nextseqno,callback:function(s){e.$set(e.ruleFormData,"nextseqno",s)},expression:"ruleFormData.nextseqno"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.separatorCh","\u5206\u9694\u7B26"),prop:"separatorch"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.separatorch,callback:function(s){e.$set(e.ruleFormData,"separatorch",s)},expression:"ruleFormData.separatorch"}},e._l(e.getDictionary("separator"),function(s,l){return t("el-option",{key:l,attrs:{value:s.code,label:e.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.sysCodeGenId","\u7F16\u53F7\u8868"),prop:"syscodegenid"}},[t("div",{staticClass:"cao_about"},[t("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,disabled:e.disabled},model:{value:e.ruleFormData.syscodegenid,callback:function(s){e.$set(e.ruleFormData,"syscodegenid",s)},expression:"ruleFormData.syscodegenid"}},e._l(e.dataList,function(s){return t("el-option",{key:s.id,attrs:{label:s.name,value:s.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search cao_setting-disabled",on:{click:function(s){return e.lookup("syscodegenid",e.ruleFormData.syscodegenid)}}})])],1)])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.numberingRules.columnId","\u7F16\u53F7\u5B57\u6BB5"),prop:"columnid"}},[t("div",{staticClass:"cao_about"},[t("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,disabled:e.disabled},model:{value:e.ruleFormData.columnid,callback:function(s){e.$set(e.ruleFormData,"columnid",s)},expression:"ruleFormData.columnid"}},e._l(e.columnList,function(s){return t("el-option",{key:s.id,attrs:{label:s.name,value:s.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search cao_setting-disabled",on:{click:function(s){return e.lookup("columnid",e.ruleFormData.columnid)}}})])],1)])],1)],1)],1),t("el-divider"),t("div",{staticClass:"remarks_title"},[e._v(" "+e._s(e.$i18nt("gd.numberingRules.remarks","\u793A\u4F8B:{\u56FA\u5B9A\u524D\u7F00/ \u968F\u673A\u524D\u7F00}{ \u5E74\u6708\u65E5 }{ \u6D41\u6C34\u53F7, \u6D41\u6C34\u53F7\u7C7B\u578B(\u4E3B/ \u5B50, \u5B9E\u4F53 /), \u6D41\u6C34\u53F7\u8303\u56F4(\u5168\u5C40 / \u65E5\u671F\u5185)}{ \u56FA\u5B9A\u540E\u7F00 / \u968F\u673A\u540E\u7F00 } Acc202206130001zzz"))+" ")])],1)])],1)},_=[],$=d.normalizeComponent(y,b,_,!1,null,"c510bf8e",null,null);const x=$.exports,v=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=n;