gds-plus-design-vue 1.2.71 → 1.2.72

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 (279) hide show
  1. package/lib/{addPermission.c72ebbe0.js → addPermission.e559c495.js} +1 -1
  2. package/lib/{addPermission.179a09f4.mjs → addPermission.f2eb7564.mjs} +92 -92
  3. package/lib/{approvalModel.7cfcac3c.js → approvalModel.2b97fdf8.js} +1 -1
  4. package/lib/{approvalModel.7b550187.mjs → approvalModel.7b3cb5c5.mjs} +3 -3
  5. package/lib/{attribute.e9a8faa1.mjs → attribute.4f814780.mjs} +93 -93
  6. package/lib/{attribute.3fed1dd9.js → attribute.7b4971f5.js} +1 -1
  7. package/lib/{businessRules.cf106f09.js → businessRules.4f7349f3.js} +1 -1
  8. package/lib/{businessRules.d7d35011.mjs → businessRules.7ca458f8.mjs} +2 -2
  9. package/lib/{buttonRule.2afe380d.mjs → buttonRule.4aa9cfd8.mjs} +2 -2
  10. package/lib/{buttonRule.737e8e3f.js → buttonRule.ba9528ab.js} +1 -1
  11. package/lib/{chartDisplayRules.c9162f81.js → chartDisplayRules.25489412.js} +1 -1
  12. package/lib/{chartDisplayRules.370065e8.mjs → chartDisplayRules.63e53aa7.mjs} +1 -1
  13. package/lib/{components.chartbi.3bbac955.js → components.chartbi.13a8a7b5.js} +3 -3
  14. package/lib/{components.chartbi.571c5ff5.mjs → components.chartbi.7356b244.mjs} +4 -4
  15. package/lib/{components.coloreditor.06cf0433.mjs → components.coloreditor.20f8b336.mjs} +1 -1
  16. package/lib/{components.coloreditor.f81d322a.js → components.coloreditor.8afc4731.js} +1 -1
  17. package/lib/{components.dataassign.565d22c0.js → components.dataassign.59a87bfd.js} +1 -1
  18. package/lib/{components.dataassign.21d3938b.mjs → components.dataassign.e398cc99.mjs} +1 -1
  19. package/lib/{components.echarts.490abdfa.mjs → components.echarts.17e42353.mjs} +1 -1
  20. package/lib/{components.echarts.fe84f881.js → components.echarts.5dea23f6.js} +1 -1
  21. package/lib/{components.exception.ee1c4f83.mjs → components.exception.8689aba2.mjs} +1 -1
  22. package/lib/{components.exception.374f2ad9.js → components.exception.b4ddeaba.js} +1 -1
  23. package/lib/{components.form.5533a8c3.js → components.form.14ed3374.js} +2 -2
  24. package/lib/{components.form.db8af727.mjs → components.form.8047a9c3.mjs} +2 -2
  25. package/lib/{components.globalheader.2eb787a4.js → components.globalheader.5418b5ec.js} +1 -1
  26. package/lib/{components.globalheader.b3b35343.mjs → components.globalheader.bc91e6fe.mjs} +3 -3
  27. package/lib/{components.iconselector.f5a58033.js → components.iconselector.4b5b7901.js} +1 -1
  28. package/lib/{components.iconselector.8940b1a9.mjs → components.iconselector.d2d970ba.mjs} +1 -1
  29. package/lib/{components.imgpreview.f05b3e06.mjs → components.imgpreview.0563c338.mjs} +1 -1
  30. package/lib/{components.imgpreview.d97cf25c.js → components.imgpreview.5fe318f7.js} +1 -1
  31. package/lib/{components.lunccalendar.2a097955.mjs → components.lunccalendar.9a41ea40.mjs} +1 -1
  32. package/lib/{components.lunccalendar.18f84642.js → components.lunccalendar.f18b2da3.js} +1 -1
  33. package/lib/{components.middleware.de012955.mjs → components.middleware.24511f17.mjs} +2 -2
  34. package/lib/{components.middleware.43b9b264.js → components.middleware.64b6a988.js} +1 -1
  35. package/lib/{components.modaltitle.5060623f.mjs → components.modaltitle.4f454200.mjs} +1 -1
  36. package/lib/{components.modaltitle.957cab33.js → components.modaltitle.d7ef34cb.js} +1 -1
  37. package/lib/{components.multitab.5eb6edff.mjs → components.multitab.15b91668.mjs} +1 -1
  38. package/lib/{components.multitab.80eeb3ae.js → components.multitab.92eb4b1e.js} +1 -1
  39. package/lib/{components.selecttree.756c4d22.mjs → components.selecttree.c615fe3e.mjs} +1 -1
  40. package/lib/{components.selecttree.2fe70d88.js → components.selecttree.ce4fbb44.js} +1 -1
  41. package/lib/{components.settingdrawer.8c12650b.js → components.settingdrawer.4581f5b1.js} +1 -1
  42. package/lib/{components.settingdrawer.29dbc31e.mjs → components.settingdrawer.bdd68e73.mjs} +1 -1
  43. package/lib/{components.sidemenu.0673fe0a.mjs → components.sidemenu.c40eee2e.mjs} +1 -1
  44. package/lib/{components.sidemenu.240dfde7.js → components.sidemenu.cd6d0301.js} +1 -1
  45. package/lib/{components.sidenavmenu.b1330d69.js → components.sidenavmenu.1f0bbfca.js} +1 -1
  46. package/lib/{components.sidenavmenu.fa81ff82.mjs → components.sidenavmenu.47d7f44a.mjs} +3 -3
  47. package/lib/{components.statuschange.858b72e8.js → components.statuschange.190f14ff.js} +1 -1
  48. package/lib/{components.statuschange.fae4adba.mjs → components.statuschange.85956695.mjs} +1 -1
  49. package/lib/{components.table.9ed77207.mjs → components.table.389ab22a.mjs} +2 -2
  50. package/lib/{components.table.1e338902.js → components.table.d016f609.js} +1 -1
  51. package/lib/{components.tableumy.3e1c9a5b.mjs → components.tableumy.750ec792.mjs} +1 -1
  52. package/lib/{components.tableumy.1d804d70.js → components.tableumy.aa73378d.js} +1 -1
  53. package/lib/{components.tablevirtual.8e21a6e7.js → components.tablevirtual.879ff28f.js} +1 -1
  54. package/lib/{components.tablevirtual.66890b2c.mjs → components.tablevirtual.9bf87b78.mjs} +1 -1
  55. package/lib/{components.teamsharing.3a17ddc0.mjs → components.teamsharing.b9f112cf.mjs} +1 -1
  56. package/lib/{components.teamsharing.89e668fd.js → components.teamsharing.efe58448.js} +1 -1
  57. package/lib/{components.tooltip.376d95fe.mjs → components.tooltip.065f3dee.mjs} +1 -1
  58. package/lib/{components.tooltip.0ea7e2b1.js → components.tooltip.edf8e4ca.js} +1 -1
  59. package/lib/{components.uploadfile.0a5a1608.mjs → components.uploadfile.0439b870.mjs} +1 -1
  60. package/lib/{components.uploadfile.8e0e702c.js → components.uploadfile.586aca36.js} +1 -1
  61. package/lib/{components.uploadimg.bc160e00.js → components.uploadimg.2324089d.js} +1 -1
  62. package/lib/{components.uploadimg.decb0360.mjs → components.uploadimg.5f2194ff.mjs} +1 -1
  63. package/lib/{components.verificationcode.140533c7.js → components.verificationcode.863ff11e.js} +1 -1
  64. package/lib/{components.verificationcode.7091b10b.mjs → components.verificationcode.d8893ff6.mjs} +1 -1
  65. package/lib/{components.viewformdetails.d241c652.mjs → components.viewformdetails.1236a66e.mjs} +3 -3
  66. package/lib/{components.viewformdetails.940addba.js → components.viewformdetails.328c8642.js} +1 -1
  67. package/lib/{components.viewloading.aae3aab4.mjs → components.viewloading.5761b277.mjs} +1 -1
  68. package/lib/{components.viewloading.1e9f4b3c.js → components.viewloading.5b9c8fee.js} +1 -1
  69. package/lib/{components.watermark.d9ec8130.js → components.watermark.af8b5718.js} +1 -1
  70. package/lib/{components.watermark.2ec3260c.mjs → components.watermark.d3638d63.mjs} +1 -1
  71. package/lib/{components.xlsxexport.0d1553b1.js → components.xlsxexport.8c121797.js} +1 -1
  72. package/lib/{components.xlsxexport.c33f83ca.mjs → components.xlsxexport.a1b7b087.mjs} +2 -2
  73. package/lib/{components.xlsximport.8c209857.js → components.xlsximport.c53c50f6.js} +1 -1
  74. package/lib/{components.xlsximport.81df7841.mjs → components.xlsximport.d39bfeaa.mjs} +1 -1
  75. package/lib/{copy.8db86d9f.mjs → copy.3b06d60f.mjs} +1 -1
  76. package/lib/{copy.a8753f38.js → copy.fa2fcb22.js} +1 -1
  77. package/lib/{createFile.04a6b293.js → createFile.526dd6db.js} +1 -1
  78. package/lib/{createFile.4cac1673.mjs → createFile.c8d65b52.mjs} +93 -93
  79. package/lib/{createSubfolders.e105fa86.js → createSubfolders.51df8fcd.js} +1 -1
  80. package/lib/{createSubfolders.eac5ccae.mjs → createSubfolders.f8cad77f.mjs} +1 -1
  81. package/lib/{dialogLayout.bf435838.mjs → dialogLayout.539feafb.mjs} +1 -1
  82. package/lib/{dialogLayout.f0779aed.js → dialogLayout.621a3d40.js} +1 -1
  83. package/lib/{drawerContainer.6ab3df46.mjs → drawerContainer.790b0ee6.mjs} +7 -7
  84. package/lib/{drawerContainer.8f9df583.js → drawerContainer.c971d22d.js} +1 -1
  85. package/lib/{drawerLayout.b6c7c3c6.js → drawerLayout.accd44be.js} +1 -1
  86. package/lib/{drawerLayout.e3c0164d.mjs → drawerLayout.c52b8374.mjs} +1 -1
  87. package/lib/{editForm.aef93ed0.mjs → editForm.83d10fae.mjs} +1 -1
  88. package/lib/{editForm.0f3fd3b0.js → editForm.e284e5ec.js} +1 -1
  89. package/lib/{extendedAttributes.ef3ead02.js → extendedAttributes.bfff1926.js} +1 -1
  90. package/lib/{extendedAttributes.ea93dbaa.mjs → extendedAttributes.e6b11c68.mjs} +93 -93
  91. package/lib/{fileSearch.5c8a883d.mjs → fileSearch.423b64a3.mjs} +92 -92
  92. package/lib/{fileSearch.43465e1c.js → fileSearch.e849491c.js} +1 -1
  93. package/lib/{flow.designer.81c29f62.mjs → flow.designer.5feba43c.mjs} +6 -6
  94. package/lib/{flow.designer.ffd0aa8b.js → flow.designer.85d0054b.js} +1 -1
  95. package/lib/{flow.list.ab420927.mjs → flow.list.82131d80.mjs} +3 -3
  96. package/lib/{flow.list.4c05f2f0.js → flow.list.e001d91a.js} +1 -1
  97. package/lib/form.build.19f0c882.js +1 -0
  98. package/lib/{form.build.d04773f0.mjs → form.build.33cc213e.mjs} +2 -2
  99. package/lib/{form.designer.build.dac501fa.js → form.designer.build.2bcc355d.js} +1 -1
  100. package/lib/{form.designer.build.c82cb559.mjs → form.designer.build.7dc12e87.mjs} +16 -16
  101. package/lib/{formFiled.4b5062d7.js → formFiled.40284ed9.js} +1 -1
  102. package/lib/{formFiled.c949a27f.mjs → formFiled.5a1c8f7f.mjs} +7 -7
  103. package/lib/gd-initial.js +1 -1
  104. package/lib/gd-initial.mjs +92 -92
  105. package/lib/{index.d95c407c.js → index.07adebf0.js} +2 -2
  106. package/lib/{index.9deaa991.mjs → index.340d6f00.mjs} +110 -110
  107. package/lib/{layoutBlocks.26e1b57b.js → layoutBlocks.756e4b57.js} +1 -1
  108. package/lib/{layoutBlocks.31454610.mjs → layoutBlocks.816b49a7.mjs} +100 -100
  109. package/lib/{layoutItem.cf18143e.mjs → layoutItem.051495bc.mjs} +2 -2
  110. package/lib/{layoutItem.c1c836a1.js → layoutItem.6f6017a5.js} +1 -1
  111. package/lib/{layouts.3b383d04.mjs → layouts.1852e8e4.mjs} +4 -4
  112. package/lib/{layouts.2d06f3e9.js → layouts.2030bf01.js} +1 -1
  113. package/lib/{main.c71e5b11.js → main.0dc447c8.js} +1 -1
  114. package/lib/{main.643d21a0.mjs → main.12118407.mjs} +92 -92
  115. package/lib/{main.edc0b23b.js → main.1551de4d.js} +1 -1
  116. package/lib/{main.09d48801.js → main.1611bb43.js} +1 -1
  117. package/lib/{main.60329866.mjs → main.26d3511c.mjs} +2 -2
  118. package/lib/{main.3e886f21.mjs → main.2f9312bb.mjs} +2 -2
  119. package/lib/{main.28b7c398.js → main.316ac1b8.js} +1 -1
  120. package/lib/{main.33443996.mjs → main.48dc325f.mjs} +2 -2
  121. package/lib/{main.64ddb5f6.mjs → main.54ac9faa.mjs} +1 -1
  122. package/lib/{main.29e204f9.mjs → main.69a2b457.mjs} +2 -2
  123. package/lib/{main.60c2a1a2.js → main.6df74fe7.js} +1 -1
  124. package/lib/{main.728eaf53.js → main.72c15ab0.js} +1 -1
  125. package/lib/{main.892caa37.js → main.736883a9.js} +1 -1
  126. package/lib/{main.357c50d2.js → main.9b2769b1.js} +1 -1
  127. package/lib/{main.aea9b6a8.mjs → main.b2314767.mjs} +3 -3
  128. package/lib/{main.419a7b42.mjs → main.ca46939e.mjs} +1 -1
  129. package/lib/{main.4a38d5f8.js → main.e1cf9798.js} +1 -1
  130. package/lib/{main.f520fcf5.mjs → main.efc8dc7b.mjs} +1 -1
  131. package/lib/{main.61c9e5c6.mjs → main.fc38c7c8.mjs} +2 -2
  132. package/lib/{main.b7a5a02b.js → main.fcb67463.js} +1 -1
  133. package/lib/{manage.f4000654.mjs → manage.1bc511ff.mjs} +93 -93
  134. package/lib/{manage.101f1aa9.js → manage.eb0a6c8c.js} +1 -1
  135. package/lib/{messages.fieldconfiguration.ad4d11cf.js → messages.fieldconfiguration.092bb027.js} +1 -1
  136. package/lib/{messages.fieldconfiguration.0d98a290.mjs → messages.fieldconfiguration.7fd9ceb0.mjs} +5 -5
  137. package/lib/{messages.messagetemplate.7adbbc58.mjs → messages.messagetemplate.0935e5a3.mjs} +4 -4
  138. package/lib/{messages.messagetemplate.32273e00.js → messages.messagetemplate.50334e5f.js} +4 -4
  139. package/lib/{messages.sendplan.fbac188d.js → messages.sendplan.60929f46.js} +1 -1
  140. package/lib/{messages.sendplan.7d0097c2.mjs → messages.sendplan.61edcc7f.mjs} +2 -2
  141. package/lib/{messages.sendrecord.ef80d44a.js → messages.sendrecord.09a1d1cd.js} +1 -1
  142. package/lib/{messages.sendrecord.f0d2fd54.mjs → messages.sendrecord.1c48aa6e.mjs} +1 -1
  143. package/lib/{messages.templatelibrary.ff151513.mjs → messages.templatelibrary.f31e8d58.mjs} +1 -1
  144. package/lib/{messages.templatelibrary.ec512390.js → messages.templatelibrary.f5952edd.js} +1 -1
  145. package/lib/{mobile.designer.componentstree.03f61105.js → mobile.designer.componentstree.365945a3.js} +1 -1
  146. package/lib/{mobile.designer.componentstree.4a1442dc.mjs → mobile.designer.componentstree.9439895e.mjs} +2 -2
  147. package/lib/{mobile.designer.menutree.97bb4046.js → mobile.designer.menutree.4d4e059b.js} +1 -1
  148. package/lib/{mobile.designer.menutree.0a2f7911.mjs → mobile.designer.menutree.7d3b783d.mjs} +3 -3
  149. package/lib/{moveFile.d71c0824.mjs → moveFile.3dc1dc37.mjs} +92 -92
  150. package/lib/{moveFile.335ebc8d.js → moveFile.f70bbff7.js} +1 -1
  151. package/lib/{page.build.37b26617.js → page.build.7ac1ee9b.js} +2 -2
  152. package/lib/{page.build.376104d5.mjs → page.build.ae61a39b.mjs} +4 -4
  153. package/lib/{page.designer.componentstree.0ffc933d.js → page.designer.componentstree.74a3a114.js} +1 -1
  154. package/lib/{page.designer.componentstree.b0ecddd8.mjs → page.designer.componentstree.cdabec2d.mjs} +2 -2
  155. package/lib/{page.designer.fieldfiltering.1ecd65a3.mjs → page.designer.fieldfiltering.e341aa60.mjs} +2 -2
  156. package/lib/{page.designer.fieldfiltering.7e913256.js → page.designer.fieldfiltering.f2d1b6e4.js} +1 -1
  157. package/lib/{page.designer.menutree.c49d9ee6.js → page.designer.menutree.71c18258.js} +1 -1
  158. package/lib/{page.designer.menutree.2c1846bc.mjs → page.designer.menutree.e4ce1e90.mjs} +2 -2
  159. package/lib/{page.designer.operation.6179b661.js → page.designer.operation.1d435e6e.js} +1 -1
  160. package/lib/{page.designer.operation.80b1a5d1.mjs → page.designer.operation.fe808988.mjs} +1 -1
  161. package/lib/{page.designer.page.09402332.js → page.designer.page.654634aa.js} +1 -1
  162. package/lib/{page.designer.page.6d8232c7.mjs → page.designer.page.821f8994.mjs} +12 -12
  163. package/lib/{personal.echarts.414b7e3d.mjs → personal.echarts.118bcafb.mjs} +3 -3
  164. package/lib/{personal.echarts.b7ee86f4.js → personal.echarts.e5915542.js} +1 -1
  165. package/lib/{result.9282a717.js → result.4d4039ea.js} +1 -1
  166. package/lib/{result.0c089066.mjs → result.a87217ae.mjs} +93 -93
  167. package/lib/{router.config.68077a12.js → router.config.a09f29e7.js} +1 -1
  168. package/lib/{router.config.86225b11.mjs → router.config.f0ad16fd.mjs} +14 -14
  169. package/lib/{solution.application.d459e382.js → solution.application.8d6c84e8.js} +1 -1
  170. package/lib/{solution.application.e0d58df1.mjs → solution.application.e6b5dc4f.mjs} +1 -1
  171. package/lib/{solution.applicationmenu.ae295083.js → solution.applicationmenu.c6cd2b59.js} +1 -1
  172. package/lib/{solution.applicationmenu.71ef6b8e.mjs → solution.applicationmenu.e878c41a.mjs} +1 -1
  173. package/lib/{solution.approvalflow.436b3502.js → solution.approvalflow.79da028c.js} +1 -1
  174. package/lib/{solution.approvalflow.bef7fbdd.mjs → solution.approvalflow.eb1c0607.mjs} +2 -2
  175. package/lib/{solution.dict.ef98b194.mjs → solution.dict.088a1e72.mjs} +1 -1
  176. package/lib/{solution.dict.acbe9c55.js → solution.dict.1d5195d0.js} +1 -1
  177. package/lib/{solution.menu.5c17348f.mjs → solution.menu.e58922fe.mjs} +2 -2
  178. package/lib/{solution.menu.cca5e1f9.js → solution.menu.fa48a7e8.js} +1 -1
  179. package/lib/{solution.plugin.f9a8063f.js → solution.plugin.5d6d29cf.js} +1 -1
  180. package/lib/{solution.plugin.90f8dcc1.mjs → solution.plugin.ae6df926.mjs} +2 -2
  181. package/lib/{solution.processflow.c1544b05.mjs → solution.processflow.62936f1c.mjs} +2 -2
  182. package/lib/{solution.processflow.2692dac6.js → solution.processflow.aa1e808b.js} +1 -1
  183. package/lib/{solution.role.b28c4dbe.js → solution.role.2eff83a1.js} +1 -1
  184. package/lib/{solution.role.b1ab40dd.mjs → solution.role.7b3e7030.mjs} +1 -1
  185. package/lib/{solution.webresources.0b51beba.mjs → solution.webresources.88c4483b.mjs} +2 -2
  186. package/lib/{solution.webresources.6961cc68.js → solution.webresources.bc00603d.js} +1 -1
  187. package/lib/{solution.workflow.11e49e25.js → solution.workflow.0ed2cb24.js} +1 -1
  188. package/lib/{solution.workflow.c48545d1.mjs → solution.workflow.85de0ae5.mjs} +2 -2
  189. package/lib/style.css +2 -2
  190. package/lib/{system.account.1cadbf03.mjs → system.account.3d7480ba.mjs} +2 -2
  191. package/lib/{system.account.5cc9fe8d.js → system.account.93ad722e.js} +1 -1
  192. package/lib/{system.config.a9a1ee96.mjs → system.config.6084ad21.mjs} +1 -1
  193. package/lib/{system.config.a0b94e40.js → system.config.9520e7f9.js} +1 -1
  194. package/lib/{system.datasource.6c30ce25.js → system.datasource.76c0ccdb.js} +1 -1
  195. package/lib/{system.datasource.c103a9c2.mjs → system.datasource.d74df021.mjs} +1 -1
  196. package/lib/{system.dict.6b000092.js → system.dict.ab148847.js} +1 -1
  197. package/lib/{system.dict.0c229d1c.mjs → system.dict.caad4d66.mjs} +1 -1
  198. package/lib/{system.document.f8fd7af0.js → system.document.0e46ff8c.js} +1 -1
  199. package/lib/{system.document.f67c2994.mjs → system.document.cbdf25a9.mjs} +2 -2
  200. package/lib/{system.duplicatechecking.94c7ce17.mjs → system.duplicatechecking.46e182d7.mjs} +2 -2
  201. package/lib/{system.duplicatechecking.f4cab147.js → system.duplicatechecking.a217fc52.js} +1 -1
  202. package/lib/{system.email.11ab6f31.js → system.email.1db14214.js} +1 -1
  203. package/lib/{system.email.13823361.mjs → system.email.c1ad6598.mjs} +2 -2
  204. package/lib/{system.fieldsecurity.d35acd97.mjs → system.fieldsecurity.2e55e839.mjs} +1 -1
  205. package/lib/{system.fieldsecurity.2ef2881c.js → system.fieldsecurity.40b4f48a.js} +1 -1
  206. package/lib/{system.file.b9f8320c.js → system.file.6a6bd77c.js} +1 -1
  207. package/lib/{system.file.30d3e7bc.mjs → system.file.80aa0809.mjs} +1 -1
  208. package/lib/{system.log.815840d8.mjs → system.log.3986a8ca.mjs} +1 -1
  209. package/lib/{system.log.470d3efd.js → system.log.9d394678.js} +1 -1
  210. package/lib/{system.machine.1665954f.mjs → system.machine.395c67c2.mjs} +1 -1
  211. package/lib/{system.machine.f8aff893.js → system.machine.d33b0b6e.js} +1 -1
  212. package/lib/{system.notice.db26f308.js → system.notice.2090c130.js} +1 -1
  213. package/lib/{system.notice.bef6c23c.mjs → system.notice.51880df6.mjs} +2 -2
  214. package/lib/{system.noticereceived.84b88b9a.js → system.noticereceived.0b79642e.js} +1 -1
  215. package/lib/{system.noticereceived.0d293a87.mjs → system.noticereceived.55f276ab.mjs} +2 -2
  216. package/lib/{system.onlineuser.bccb1cd9.mjs → system.onlineuser.71034956.mjs} +1 -1
  217. package/lib/{system.onlineuser.985621a6.js → system.onlineuser.e74f010d.js} +1 -1
  218. package/lib/{system.org.92f4d7f1.mjs → system.org.e1e156c6.mjs} +1 -1
  219. package/lib/{system.org.9f87a010.js → system.org.f6d58d0f.js} +1 -1
  220. package/lib/{system.permissions.be9238ee.mjs → system.permissions.4090552f.mjs} +1 -1
  221. package/lib/{system.permissions.15e6b8b7.js → system.permissions.fdb64929.js} +1 -1
  222. package/lib/{system.plugin.af27d7ac.mjs → system.plugin.8a9a6448.mjs} +1 -1
  223. package/lib/{system.plugin.0bccfec4.js → system.plugin.a0f25733.js} +1 -1
  224. package/lib/{system.pos.fe067063.mjs → system.pos.0ad80a53.mjs} +1 -1
  225. package/lib/{system.pos.61e58a92.js → system.pos.71f3eba7.js} +1 -1
  226. package/lib/{system.promptmanagement.0b9083c5.mjs → system.promptmanagement.39607ddb.mjs} +1 -1
  227. package/lib/{system.promptmanagement.e750de82.js → system.promptmanagement.9718aa24.js} +1 -1
  228. package/lib/{system.role.e86b60f1.js → system.role.321c48d3.js} +1 -1
  229. package/lib/{system.role.67f62146.mjs → system.role.3b533a3e.mjs} +1 -1
  230. package/lib/{system.sumberrules.810f7b55.js → system.sumberrules.6e8d208e.js} +1 -1
  231. package/lib/{system.sumberrules.093d998e.mjs → system.sumberrules.c2b8c5e7.mjs} +1 -1
  232. package/lib/{system.team.8911fd95.mjs → system.team.367bf5e7.mjs} +2 -2
  233. package/lib/{system.team.58ee701b.js → system.team.cf1c1558.js} +1 -1
  234. package/lib/{system.teammembers.1880f962.js → system.teammembers.63f21557.js} +1 -1
  235. package/lib/{system.teammembers.35564a00.mjs → system.teammembers.851ce63b.mjs} +1 -1
  236. package/lib/{system.timers.9e956553.js → system.timers.51bedf97.js} +1 -1
  237. package/lib/{system.timers.4b2d509f.mjs → system.timers.5e735567.mjs} +1 -1
  238. package/lib/{system.translation.60ec676c.mjs → system.translation.61765713.mjs} +1 -1
  239. package/lib/{system.translation.26b6bb39.js → system.translation.c9f1b505.js} +1 -1
  240. package/lib/{system.user.9a02295e.mjs → system.user.254bbe85.mjs} +4 -4
  241. package/lib/{system.user.134a3988.js → system.user.475d7391.js} +1 -1
  242. package/lib/{system.useraffiliation.96695aeb.mjs → system.useraffiliation.b96c984a.mjs} +1 -1
  243. package/lib/{system.useraffiliation.c2421c7e.js → system.useraffiliation.fe1e1d39.js} +1 -1
  244. package/lib/{system.webresource.016d0000.mjs → system.webresource.2c6cf4a7.mjs} +1 -1
  245. package/lib/{system.webresource.e92e8a8f.js → system.webresource.81cfa690.js} +1 -1
  246. package/lib/{system.welcome.127b5dd4.mjs → system.welcome.72da74ae.mjs} +1 -1
  247. package/lib/{system.welcome.ff0c85e2.js → system.welcome.d86a3cdb.js} +1 -1
  248. package/lib/{table.definition..btnconfig.9847cac5.mjs → table.definition..btnconfig.24402bf0.mjs} +2 -2
  249. package/lib/{table.definition..btnconfig.ce57ed41.js → table.definition..btnconfig.add3d840.js} +1 -1
  250. package/lib/{table.definition..echartsconfig.d2b65881.js → table.definition..echartsconfig.4310b5a2.js} +1 -1
  251. package/lib/{table.definition..echartsconfig.625bce88.mjs → table.definition..echartsconfig.9c3c88f6.mjs} +6 -6
  252. package/lib/{tableDescriptions.b9b0d7fa.js → tableDescriptions.143d8e67.js} +1 -1
  253. package/lib/{tableDescriptions.a4196776.mjs → tableDescriptions.60a07f7c.mjs} +1 -1
  254. package/lib/{tcheckboxs.7ea99d35.js → tcheckboxs.e4d387ff.js} +1 -1
  255. package/lib/{tcheckboxs.999b7c2e.mjs → tcheckboxs.ee4adb9e.mjs} +1 -1
  256. package/lib/{tcurrency.4afb9192.mjs → tcurrency.0360c142.mjs} +1 -1
  257. package/lib/{tcurrency.8a2361f2.js → tcurrency.233f4e63.js} +1 -1
  258. package/lib/{tdatepicker.606214fa.mjs → tdatepicker.9e5d99f4.mjs} +1 -1
  259. package/lib/{tdatepicker.8e94a60c.js → tdatepicker.b10536fd.js} +1 -1
  260. package/lib/{tdictSwitch.ccbdd153.js → tdictSwitch.10d64c18.js} +1 -1
  261. package/lib/{tdictSwitch.e016d4cf.mjs → tdictSwitch.eed5a945.mjs} +1 -1
  262. package/lib/{tfile.3f39223d.mjs → tfile.7c635ee4.mjs} +1 -1
  263. package/lib/{tfile.b3ebdc71.js → tfile.e183d25f.js} +1 -1
  264. package/lib/{tparticipants.5fe27540.mjs → tparticipants.04280449.mjs} +1 -1
  265. package/lib/{tparticipants.78c8c175.js → tparticipants.f732d245.js} +1 -1
  266. package/lib/{translation.mains.2688be5b.mjs → translation.mains.0df71304.mjs} +2 -2
  267. package/lib/{translation.mains.a6f19343.js → translation.mains.6f941967.js} +1 -1
  268. package/lib/{versionControl.46a7f31a.js → versionControl.97590ce8.js} +1 -1
  269. package/lib/{versionControl.c53bfb5d.mjs → versionControl.d1b2b0da.mjs} +93 -93
  270. package/lib/{versionEdit.5a8292ec.mjs → versionEdit.c51606e4.mjs} +93 -93
  271. package/lib/{versionEdit.4246d5db.js → versionEdit.f710d0bb.js} +1 -1
  272. package/lib/{view.build.e43a2077.js → view.build.5789a6eb.js} +1 -1
  273. package/lib/{view.build.85732408.mjs → view.build.9976c958.mjs} +14 -14
  274. package/lib/{viewList.978b72c5.mjs → viewList.3ca52f0c.mjs} +23 -23
  275. package/lib/{viewList.868edcd7.js → viewList.6e181715.js} +1 -1
  276. package/lib/{viewTree.7497ff90.js → viewTree.9bdf96f0.js} +1 -1
  277. package/lib/{viewTree.bde43a3b.mjs → viewTree.c2e11b7f.mjs} +1 -1
  278. package/package.json +1 -1
  279. package/lib/form.build.724d3357.js +0 -1
@@ -1 +1 @@
1
- "use strict";const o=require("./components.chartbi.3bbac955.js"),l=require("./http.noticemanage.2507d094.js"),m=require("./http.usermanage.6dcbc7de.js"),h=require("./utils.mixins.js.750ca50e.js"),f=require("./http.filemanage.7e6e3e1a.js");require("./components.form.5533a8c3.js");const b=require("./http.orgmanage.5162fd7a.js"),w=require("./http.rolemanage.4d1101dd.js"),_=require("./http.sysapps.469d47f7.js"),v=require("./http.tabledevelopment.a880bb76.js"),$={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],formColumns:[{transKey:"gd.notice.title",effectType:"input",prop:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",effectType:"radio",dictTypeCode:"notice_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"notice_type"},{transKey:"gd.notice.noticeBucket",effectType:"editor",prop:"content",label:"\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.attachment",effectType:"file",prop:"fileList",label:"\u9644\u4EF6",accept:".pdf",placeholder:"\u8BF7\u4E0A\u4F20",fileTitle:"\u4E0A\u4F20PDF\u6587\u4EF6",limit:1,rules:[],type:"slot",slotType:"fileList"},{transKey:"gd.notice.notifyTo",effectType:"notifyingPerson",prop:"notifyingPerson",label:"\u6536\u5230\u901A\u77E5\u4EBA",type:"slot",slotType:"notifyingPerson",rules:[],disabled:!1}],noticeFormColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysNotice:add"},{displayName:"\u901A\u77E5\u4EBA",functionName:"notifyingPerson",show:!0,transKey:"gd.notice.notifyingPerson",icon:"el-icon-bell",name:"sysNotice:notifyingPerson"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysNotice:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysNotice:delete"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",name:"sysNotice:changeStatus"},{displayName:"\u64A4\u56DE",functionName:"rollback",show:!0,transKey:"gd.btn.withdraw",icon:"el-icon-refresh-left",btnType:"danger",name:"sysNotice:changeStatus"},{displayName:"\u67E5\u770B",functionName:"read",show:!0,transKey:"gd.btn.view",icon:"el-icon-reading",name:"sysNotice:detail"}],formButtons:[{displayName:"\u5B58\u4E3A\u8349\u7A3F",functionName:"saveDraft",show:!0,transKey:"gd.btn.saveDraft",icon:"el-icon-tickets",validate:!0},{displayName:"\u53D1\u5E03",functionName:"releaseTip",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",validate:!0}],noticeFormButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const T={name:"GdNotice",props:{height:{type:Number,default:100}},mixins:[h.tablesFilter,$],data(){return{transKey:"gd.btn.add",loadData:t=>l.sysNoticePage(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),allData:[],selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,mockData:[],targetKeys:[],noticeUserIdList:[],status:0,type:"noticeUser",confirmLoading:!1,fileType:"pdf",style:"width: 100%; height: 580px;",headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:"",ruleFormData:{fileList:"",name:"",notifyingPerson:[],fileid:""},record:{},allEmpty:!0,noticeType:"",fileAccept:["application/pdf"]}},components:{detailForm:()=>Promise.resolve().then(()=>y),editNoticeForm:()=>Promise.resolve().then(()=>re)},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(e=>!(e.prop==="notifyingPerson"&&this.transKey==="gd.btn.add"||(this.noticeType==3&&e.prop==="content"?e.rules=[]:this.noticeType!=3&&e.prop==="content"&&(e.rules=[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]),(this.noticeType==1||this.noticeType==2)&&e.prop==="fileList")))},getButtons(){return this.formButtons.filter(t=>!(this.transKey==="gd.btn.add"&&t.functionName==="releaseTip"))},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))},methods:{onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u5220\u9664","\u53D1\u5E03","\u64A4\u56DE","\u7F16\u8F91"],2);return}let s=[],i=e.filter(r=>r.status==0),n=e.filter(r=>r.status==1),a=e.filter(r=>r.status==2);i.length==e.length?s=["\u64A4\u56DE"]:n.length==e.length?s=["\u5220\u9664","\u53D1\u5E03","\u7F16\u8F91"]:a.length==e.length&&(s=["\u64A4\u56DE","\u53D1\u5E03","\u7F16\u8F91"]),this.baseHideBtns(s,2)},baseHideBtns(t,e=1){let s=[...this.tableButtons];s.map(i=>(e===1?i.show=!t.includes(i.id):i.show=!t.includes(i.displayName),i)),this.tableButtons=[...s]},add(){this.transKey="gd.btn.add",this.fileListFile=[],this.ruleFormData={fileList:"",name:"",notifyingPerson:[],fileid:""},this.$refs.editForm.open(null)},noticePerson(t){this.$refs.editNoticeFormRef.init(t.id,"2")},notifyingPerson(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.editNoticeFormRef.init(this.selectedRowKeys,"1")},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.sysNoticeDetail(this.selectedRows[0].id),this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{type:String(this.selectedRows[0].type),content:this.selectedRows[0].content,fileid:this.selectedRows[0].attachment}))},editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},handleOk(t){this.ruleFormData.notifyingPerson=[],this.ruleFormData.notifyingPerson=t,this.allEmpty=Array.isArray(t)?t.every(e=>!e.receiverIdList||e.receiverIdList.length===0):!0},sbumit({data:t,record:e,btn:s},i,n){if(this.status=s.item.functionName=="releaseTip"?1:0,e!=null){let a={id:t.id,content:t.content,status:this.status,title:t.title,type:t.type,receivergroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,l.sysNoticeEdit(Object.assign(this.noticeDetail,a)).then(r=>{r.success?(this.status==1&&n(),this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+r.message),this.formLoading=!1,this.refresh()})}else{let a={content:t.content,status:this.status,title:t.title,type:t.type,receiverGroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,l.sysNoticeAdd(a).then(r=>{r.success?(this.refresh(),this.status==1?(this.formLoading=!1,n()):setTimeout(()=>{this.$nextTick(()=>{l.sysNoticePage({pageNo:1,pageSize:50}).then(c=>{this.allData=c.data.rows;const d=this.allData.filter(g=>g.title==t.title&&g.content==t.content);d.length>0&&(this.transKey="gd.btn.edit",this.sysNoticeDetail(d[0].id),this.$refs.editForm.open(Object.assign({...d[0]},{type:String(d[0].type),content:d[0].content,fileid:d[0].attachment}))),this.formLoading=!1})})},10),this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F"))):(this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+r.message),this.refresh(),this.formLoading=!1)})}},saveQueries(t){this.queryParam=t,this.refresh()},read(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.readTip","\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.detailForm.open(this.selectedRows[0])},rollback(){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.$confirm(this.$i18nt("gd.https.withdrawContent","\u786E\u8BA4\u64A4\u56DE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.withdrawOk","\u7ACB\u5373\u64A4\u56DE!"),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,e,s)=>{this.rollbackHand(t,e,s)}})},rollbackHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeChangeStatus({id:n.id,status:2}).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a[0].message),this.refresh()})},release(){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.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03!"),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,e,s)=>{this.releaseHand(t,e,s)}})},releaseHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeChangeStatus({id:n.id,status:1}).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a[0].message),this.refresh()})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}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,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeDelete(n).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{s();const a=n.filter(r=>!r.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),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sysNoticeDetail(t){l.sysNoticeDetail({id:t}).then(e=>{this.noticeDetail=e.data,e.data.attachment&&(this.ruleFormData.fileid=e.data.attachment,this.infoDownLoad(e.data.attachment)),this.ruleFormData.notifyingPerson=e.data.receivergroups,this.allEmpty=Array.isArray(this.ruleFormData.notifyingPerson)?this.ruleFormData.notifyingPerson.every(s=>!s.receiverIdList||s.receiverIdList.length===0):!0,this.noticeType=e.data.type})},getMock(t){const e=[],s=[];m.sysUserSelector().then(i=>{this.confirmLoading=!1;for(let n=0;n<i.data.length;n++){const a=i.data[n],r={key:a.id.toString(),label:a.name,description:`description of ${a.name}`};if(t)for(let c=0;c<t.noticeuseridlist.length;c++)r.key===t.noticeuseridlist[c]&&e.push(t.noticeuseridlist[c]);s.push(r)}this.mockData=s,this.targetKeys=e})},handleChange(t){this.targetKeys=t},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},handleFile(t){if(!!["image"].includes("file")&&!t){this.fileList=[];return}},uploadFile(t){if(!this.fileAccept.includes(t.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),t.onError();return}new FormData().append("file",t.file),f.sysFileInfoUploadShop(t).then(i=>{if(i.code===200){const n=i.data.url,r=(this.ruleFormData&&this.ruleFormData.fileList?this.ruleFormData.fileList.split(","):[]).concat([n]);return this.ruleFormData.fileList=r.join(","),this.ruleFormData.name=i.data.fileoriginname.substring(0,i.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=i.data.id.toString(),t.onSuccess(i.data),i.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+i.message),t.onError()}).catch(i=>{t.onError(i)})},successFile(t,e,s){},removeFile(t,e){let s=[];e.forEach(i=>{i.response&&i.response.id?s.push(i.response.id):s.push(i.url)}),this.ruleFormData.fileList=s.join(","),this.ruleFormData.name="",this.ruleFormData.fileid=""},previewFile(t){let e="";t.response&&t.response.fileOriginName?(e=t.response.fileOriginName,t.response.url):(e=t.name,t.url);const s=e.substr(e.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(s)?this.imgPreview(t.response.id):this.downFile(t)},imgPreview(t){f.sysFileInfoPreview({id:t}).then(e=>{const s=window.URL.createObjectURL(new Blob([e]));this.imgList=[s],this.currentImg=s,this.$refs.imgPreview.open()})},downFile(t){this.$refs.filePreview.open(Object.assign(t,{fileId:t.response&&t.response.fileoriginname?t.response.id:t.fileId}))},getBlobType(t){let e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";return this.fileType==="pdf"?e="application/pdf":this.fileType==="docx"&&(e="application/msword"),e},infoDownLoad(t){return f.sysFileInfoDetail({id:t}).then(e=>{this.ruleFormData.fileList=e.data.url,this.ruleFormData.name=e.data.fileoriginname.substring(0,e.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=e.data.id.toString(),this.fileListFile=[{name:e.data.fileoriginname,url:e.data.url,response:{id:e.data.id,url:e.data.url,fileoriginname:e.data.fileoriginname}}]})},getDictionary(t){return this.$options.filters.dictData(t)},changeMode(t){this.noticeType=t}}};var R=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("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},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.SearchValue,callback:function(i){e.$set(e.queryParam,"SearchValue",i)},expression:"queryParam.SearchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"title",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"title",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",i.row.type))+" ")])]}},{key:"status",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_status",i.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",i.row.status))+" ")])]}},{key:"filtering",fn:function({colse:i,visible:n}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:n},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"100%",transKey:e.transKey,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,buttons:e.getButtons,loading:e.formLoading},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"targetKeys",fn:function({data:i,column:n}){return[s("el-transfer",{attrs:{data:e.mockData,titles:["\u672A\u9009","\u5DF2\u9009"],filterable:""},on:{change:e.handleChange},model:{value:e.targetKeys,callback:function(a){e.targetKeys=a},expression:"targetKeys"}})]}},{key:"notifyingPerson",fn:function({data:i,column:n}){return[s("el-button",{attrs:{type:e.allEmpty?"danger":"primary"},on:{click:function(a){return e.noticePerson(i)}}},[s("i",{staticClass:"gd-icons el-icon-bell"}),e._v(" "+e._s(e.$i18nt("gd.notice.notice","\u901A\u77E5"))+" ")])]}},{key:"notice_type",fn:function({data:i,column:n}){return[s("el-radio-group",{on:{change:e.changeMode},model:{value:i.type,callback:function(a){e.$set(i,"type",a)},expression:"data.type"}},e._l(e.getDictionary("notice_type"),function(a,r){return s("el-radio",{key:a.code,attrs:{label:a.code}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)]}},{key:"fileList",fn:function({data:i,column:n}){return[s("el-upload",{attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:n.limit,accept:n.accept,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile}},[s("el-button",{attrs:{size:"mini",type:"primary"}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),e._v(" "+e._s(e.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]}}])}),s("detailForm",{ref:"detailForm"}),s("editNoticeForm",{ref:"editNoticeFormRef",on:{ok:e.handleOk}}),s("gd-file-preview",{ref:"filePreview"}),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}})],1)},C=[],S=o.normalizeComponent(T,R,C,!1,null,"efad110b",null,null);const p=S.exports;p.install=function(t){t.component(p.name,p)};const K={name:"GdNoticeDetails",props:{modeType:{type:String,default:"dialog"}},data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"80%",confirmLoading:!1,contentRecord:{},sysViewButtons:[],type:"pdf"}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`height:${this.fullscreen?this.screenHeight-80:this.screenHeight-240}px;`},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(t.id)},sysNoticeDetail(t){this.fullscreen=!1,l.sysNoticeDetail({id:t}).then(e=>{e.code===200?(this.contentRecord=e.data,this.$emit("onLoadCompleted"),e.data.attachment&&this.$nextTick(()=>{setTimeout(()=>{let s={name:`${e.data.title}.${this.type}`,fileId:e.data.attachment,fullscreen:!1};this.$refs.filePreview.open(s)},0)})):this.$message.error(e.message),this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,s=e._self._c;return s("div",[e.modeType==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{formMode:e.formMode,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",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],class:e.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1):s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1)},P=[],k=o.normalizeComponent(K,L,P,!1,null,"9aab64a3",null,null);const u=k.exports,y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"}));u.install=function(t){t.component(u.name,u)};const F={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const N={props:{height:{type:Number,default:0},selectOrgRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,F],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>b.getOrgPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectOrgRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var x=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}},{key:"orgType",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("org_type",i.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",i.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:n}})]}}])})],1)])},D=[],O=o.normalizeComponent(N,x,D,!1,null,"5f8fe789",null,null);const B=O.exports,z={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,showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",showOverflowTooltip:!0}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const q={props:{height:{type:Number,default:0},selectRoleRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,z],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{sysAppsId:""},loadData:t=>w.getRolePage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectRoleRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{getSysAppsPage(){_.sysAppsPage().then(t=>{t.success&&(this.queryParam.sysAppsId=t.data.rows[0].id)})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getSysAppsPage()}};var H=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}}])})],1)])},j=[],I=o.normalizeComponent(q,H,j,!1,null,"af7b4faa",null,null);const E=I.exports,M={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.teamType",prop:"teamType",label:"\u56E2\u961F\u7C7B\u578B",align:"left",type:"slot",slotType:"teamType",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",type:"slot",slotType:"description",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const A={props:{height:{type:Number,default:0},selectTeamRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,M],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>v.getSysTeamPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectTeamRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var U=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.name)+" ")])]}},{key:"teamType",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(e._f("dictType")("TeamType",n.teamtype))+" ")])]}},{key:"description",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.description)+" ")]}}])})],1)])},V=[],G=o.normalizeComponent(A,U,V,!1,null,"6f5c581d",null,null);const Q=G.exports,J={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],tableQueries:[{transKey:"gd.application.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};const W={props:{height:{type:Number,default:300},selectUserRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,J],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{searchValue:""},loadData:t=>{let e=JSON.parse(JSON.stringify(this.selectUserRow));return m.getUserPage(Object.assign(t,this.queryParam)).then(s=>{let i=[];return e.length>0?i=[...JSON.parse(JSON.stringify(e))].map(String):i=[...JSON.parse(JSON.stringify(this.selectUserRow))].map(String),this.$nextTick(()=>{this.selectedRowKeys=[...i],this.onSelectChange(i,[])}),s.data})},detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},init(t){this.queryParam.searchValue="",this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){}};var X=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!1,height:e.height,initialLoading:!0,showPagination:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""}})]}},{key:"gender",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[s("el-tag",{style:e._f("dictColor")("gender",i.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",i.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[i.row.statecodes==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(i){e.$set(e.queryParam,"searchValue",i)},expression:"queryParam.searchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}])})],1)])},Y=[],Z=o.normalizeComponent(W,X,Y,!1,null,"e622f086",null,null);const ee=Z.exports;const te={data(){return{confirmLoading:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:"noticeuser",fullScreen:!1,width:"90%",visible:!1,userRowList:[],teamRowList:[],roleRowList:[],orgRowList:[],recordData:"",enterType:""}},components:{noticeUser:ee,notcieOrg:B,noticeRole:E,noticeTeam:Q},computed:{getHeight(){console.log(this.fullScreen,this.screenHeight);const t=this.fullScreen?210:370;return this.screenHeight-t},getButtons(){return this.sysViewButtons.filter(t=>!(this.enterType=="1"&&t.functionName==="handleSubmit"))},...o.mapGetters(["screenHeight","tableLists","primaryColor"])},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},init(t,e){this.recordData=t,this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type="noticeuser",this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[],this.enterType=e,t&&(this.getData(t,e),setTimeout(()=>{this.$refs.noticeuserRef.init(this.userRowList)},100))},getData(t,e){l.sysNoticeReceiversByTypes({id:e=="1"?t[0]:t}).then(s=>{s.data.receivergroups.forEach(n=>{n.receivertype=="1"&&(this.userRowList=n.receiveridlist),n.receivertype=="2"&&(this.roleRowList=n.receiveridlist),n.receivertype=="3"&&(this.teamRowList=n.receiveridlist),n.receivertype=="4"&&(this.orgRowList=n.receiveridlist)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},tabChange(t){this.$nextTick(()=>{setTimeout(()=>{},0)})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[]},handleSubmit(){let t=[{receiverType:"1",receiverIdList:this.userRowList.map(Number)},{receiverType:"2",receiverIdList:this.roleRowList.map(Number)},{receiverType:"3",receiverIdList:this.teamRowList.map(Number)},{receiverType:"4",receiverIdList:this.orgRowList.map(Number)}];this.handleCancel(),this.$emit("ok",t)},selectUser(t){this.userRowList=t},selectTeam(t){this.teamRowList=t},selectRole(t){this.roleRowList=t},selectOrg(t){this.orgRowList=t}}};var se=function(){var e=this,s=e._self._c;return s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","append-to-body":"","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:`${e.$i18nt("gd.notice.notifyingPerson","\u901A\u77E5")}`,fullscreen:e.fullScreen,buttons:e.getButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.tabChange},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[s("el-tab-pane",{attrs:{name:"noticeuser",label:e.$i18nt("gd.fieldSecurity.user","\u7528\u6237")}},[e.type=="noticeuser"?s("noticeUser",{ref:"noticeuserRef",attrs:{selectUserRow:e.userRowList,height:e.getHeight},on:{ok:e.selectUser}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeteam",label:e.$i18nt("gd.fieldSecurity.team","\u56E2\u961F")}},[e.type=="noticeteam"?s("noticeTeam",{ref:"noticeteamRef",attrs:{selectTeamRow:e.teamRowList,height:e.getHeight},on:{ok:e.selectTeam}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticerole",label:e.$i18nt("gd.fieldSecurity.role","\u89D2\u8272")}},[e.type=="noticerole"?s("noticeRole",{ref:"noticeroleRef",attrs:{selectRoleRow:e.roleRowList,height:e.getHeight},on:{ok:e.selectRole}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeorg",label:e.$i18nt("gd.pagecomponents.institution","\u673A\u6784")}},[e.type=="noticeorg"?s("notcieOrg",{ref:"noticeorgRef",attrs:{selectOrgRow:e.orgRowList,height:e.getHeight},on:{ok:e.selectOrg}}):e._e()],1)],1)],1)])],1)},ie=[],ne=o.normalizeComponent(te,se,ie,!1,null,"ee7d37db",null,null);const ae=ne.exports,re=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=p;exports.main=y;exports.noticeItem=u;
1
+ "use strict";const o=require("./components.chartbi.13a8a7b5.js"),l=require("./http.noticemanage.2507d094.js"),m=require("./http.usermanage.6dcbc7de.js"),h=require("./utils.mixins.js.750ca50e.js"),f=require("./http.filemanage.7e6e3e1a.js");require("./components.form.14ed3374.js");const b=require("./http.orgmanage.5162fd7a.js"),w=require("./http.rolemanage.4d1101dd.js"),_=require("./http.sysapps.469d47f7.js"),v=require("./http.tabledevelopment.a880bb76.js"),$={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.createdTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],formColumns:[{transKey:"gd.notice.title",effectType:"input",prop:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.type",prop:"type",label:"\u7C7B\u578B",effectType:"radio",dictTypeCode:"notice_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"notice_type"},{transKey:"gd.notice.noticeBucket",effectType:"editor",prop:"content",label:"\u5185\u5BB9",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.notice.attachment",effectType:"file",prop:"fileList",label:"\u9644\u4EF6",accept:".pdf",placeholder:"\u8BF7\u4E0A\u4F20",fileTitle:"\u4E0A\u4F20PDF\u6587\u4EF6",limit:1,rules:[],type:"slot",slotType:"fileList"},{transKey:"gd.notice.notifyTo",effectType:"notifyingPerson",prop:"notifyingPerson",label:"\u6536\u5230\u901A\u77E5\u4EBA",type:"slot",slotType:"notifyingPerson",rules:[],disabled:!1}],noticeFormColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysNotice:add"},{displayName:"\u901A\u77E5\u4EBA",functionName:"notifyingPerson",show:!0,transKey:"gd.notice.notifyingPerson",icon:"el-icon-bell",name:"sysNotice:notifyingPerson"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysNotice:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysNotice:delete"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",name:"sysNotice:changeStatus"},{displayName:"\u64A4\u56DE",functionName:"rollback",show:!0,transKey:"gd.btn.withdraw",icon:"el-icon-refresh-left",btnType:"danger",name:"sysNotice:changeStatus"},{displayName:"\u67E5\u770B",functionName:"read",show:!0,transKey:"gd.btn.view",icon:"el-icon-reading",name:"sysNotice:detail"}],formButtons:[{displayName:"\u5B58\u4E3A\u8349\u7A3F",functionName:"saveDraft",show:!0,transKey:"gd.btn.saveDraft",icon:"el-icon-tickets",validate:!0},{displayName:"\u53D1\u5E03",functionName:"releaseTip",show:!0,btnType:"danger",transKey:"gd.btn.release",icon:"el-icon-s-promotion",validate:!0}],noticeFormButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const T={name:"GdNotice",props:{height:{type:Number,default:100}},mixins:[h.tablesFilter,$],data(){return{transKey:"gd.btn.add",loadData:t=>l.sysNoticePage(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),allData:[],selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,mockData:[],targetKeys:[],noticeUserIdList:[],status:0,type:"noticeUser",confirmLoading:!1,fileType:"pdf",style:"width: 100%; height: 580px;",headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:"",ruleFormData:{fileList:"",name:"",notifyingPerson:[],fileid:""},record:{},allEmpty:!0,noticeType:"",fileAccept:["application/pdf"]}},components:{detailForm:()=>Promise.resolve().then(()=>y),editNoticeForm:()=>Promise.resolve().then(()=>re)},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(e=>!(e.prop==="notifyingPerson"&&this.transKey==="gd.btn.add"||(this.noticeType==3&&e.prop==="content"?e.rules=[]:this.noticeType!=3&&e.prop==="content"&&(e.rules=[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]),(this.noticeType==1||this.noticeType==2)&&e.prop==="fileList")))},getButtons(){return this.formButtons.filter(t=>!(this.transKey==="gd.btn.add"&&t.functionName==="releaseTip"))},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))},methods:{onSelectChange(t,e){if(this.selectedRowKeys=t,this.selectedRows=e,e.length==0){this.baseHideBtns([],2);return}if(e.length>1){this.baseHideBtns(["\u5220\u9664","\u53D1\u5E03","\u64A4\u56DE","\u7F16\u8F91"],2);return}let s=[],i=e.filter(r=>r.status==0),n=e.filter(r=>r.status==1),a=e.filter(r=>r.status==2);i.length==e.length?s=["\u64A4\u56DE"]:n.length==e.length?s=["\u5220\u9664","\u53D1\u5E03","\u7F16\u8F91"]:a.length==e.length&&(s=["\u64A4\u56DE","\u53D1\u5E03","\u7F16\u8F91"]),this.baseHideBtns(s,2)},baseHideBtns(t,e=1){let s=[...this.tableButtons];s.map(i=>(e===1?i.show=!t.includes(i.id):i.show=!t.includes(i.displayName),i)),this.tableButtons=[...s]},add(){this.transKey="gd.btn.add",this.fileListFile=[],this.ruleFormData={fileList:"",name:"",notifyingPerson:[],fileid:""},this.$refs.editForm.open(null)},noticePerson(t){this.$refs.editNoticeFormRef.init(t.id,"2")},notifyingPerson(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.operateTip","\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.editNoticeFormRef.init(this.selectedRowKeys,"1")},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.sysNoticeDetail(this.selectedRows[0].id),this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...this.selectedRows[0]},{type:String(this.selectedRows[0].type),content:this.selectedRows[0].content,fileid:this.selectedRows[0].attachment}))},editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},handleOk(t){this.ruleFormData.notifyingPerson=[],this.ruleFormData.notifyingPerson=t,this.allEmpty=Array.isArray(t)?t.every(e=>!e.receiverIdList||e.receiverIdList.length===0):!0},sbumit({data:t,record:e,btn:s},i,n){if(this.status=s.item.functionName=="releaseTip"?1:0,e!=null){let a={id:t.id,content:t.content,status:this.status,title:t.title,type:t.type,receivergroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,l.sysNoticeEdit(Object.assign(this.noticeDetail,a)).then(r=>{r.success?(this.status==1&&n(),this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+r.message),this.formLoading=!1,this.refresh()})}else{let a={content:t.content,status:this.status,title:t.title,type:t.type,receiverGroups:this.ruleFormData.notifyingPerson,attachment:this.ruleFormData.fileid};this.formLoading=!0,l.sysNoticeAdd(a).then(r=>{r.success?(this.refresh(),this.status==1?(this.formLoading=!1,n()):setTimeout(()=>{this.$nextTick(()=>{l.sysNoticePage({pageNo:1,pageSize:50}).then(c=>{this.allData=c.data.rows;const d=this.allData.filter(g=>g.title==t.title&&g.content==t.content);d.length>0&&(this.transKey="gd.btn.edit",this.sysNoticeDetail(d[0].id),this.$refs.editForm.open(Object.assign({...d[0]},{type:String(d[0].type),content:d[0].content,fileid:d[0].attachment}))),this.formLoading=!1})})},10),this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F"))):(this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+r.message),this.refresh(),this.formLoading=!1)})}},saveQueries(t){this.queryParam=t,this.refresh()},read(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.readTip","\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.readTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E"));return}this.$refs.detailForm.open(this.selectedRows[0])},rollback(){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.$confirm(this.$i18nt("gd.https.withdrawContent","\u786E\u8BA4\u64A4\u56DE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.withdrawOk","\u7ACB\u5373\u64A4\u56DE!"),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,e,s)=>{this.rollbackHand(t,e,s)}})},rollbackHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeChangeStatus({id:n.id,status:2}).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a[0].message),this.refresh()})},release(){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.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03!"),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,e,s)=>{this.releaseHand(t,e,s)}})},releaseHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeChangeStatus({id:n.id,status:1}).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,s();const a=n.filter(r=>!r.success);a.length===0?this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a[0].message),this.refresh()})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}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,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[];this.selectedRows.forEach(n=>{let a=l.sysNoticeDelete(n).then(r=>r);i.push(a)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(n=>{s();const a=n.filter(r=>!r.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),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sysNoticeDetail(t){l.sysNoticeDetail({id:t}).then(e=>{this.noticeDetail=e.data,e.data.attachment&&(this.ruleFormData.fileid=e.data.attachment,this.infoDownLoad(e.data.attachment)),this.ruleFormData.notifyingPerson=e.data.receivergroups,this.allEmpty=Array.isArray(this.ruleFormData.notifyingPerson)?this.ruleFormData.notifyingPerson.every(s=>!s.receiverIdList||s.receiverIdList.length===0):!0,this.noticeType=e.data.type})},getMock(t){const e=[],s=[];m.sysUserSelector().then(i=>{this.confirmLoading=!1;for(let n=0;n<i.data.length;n++){const a=i.data[n],r={key:a.id.toString(),label:a.name,description:`description of ${a.name}`};if(t)for(let c=0;c<t.noticeuseridlist.length;c++)r.key===t.noticeuseridlist[c]&&e.push(t.noticeuseridlist[c]);s.push(r)}this.mockData=s,this.targetKeys=e})},handleChange(t){this.targetKeys=t},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},handleFile(t){if(!!["image"].includes("file")&&!t){this.fileList=[];return}},uploadFile(t){if(!this.fileAccept.includes(t.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),t.onError();return}new FormData().append("file",t.file),f.sysFileInfoUploadShop(t).then(i=>{if(i.code===200){const n=i.data.url,r=(this.ruleFormData&&this.ruleFormData.fileList?this.ruleFormData.fileList.split(","):[]).concat([n]);return this.ruleFormData.fileList=r.join(","),this.ruleFormData.name=i.data.fileoriginname.substring(0,i.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=i.data.id.toString(),t.onSuccess(i.data),i.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+i.message),t.onError()}).catch(i=>{t.onError(i)})},successFile(t,e,s){},removeFile(t,e){let s=[];e.forEach(i=>{i.response&&i.response.id?s.push(i.response.id):s.push(i.url)}),this.ruleFormData.fileList=s.join(","),this.ruleFormData.name="",this.ruleFormData.fileid=""},previewFile(t){let e="";t.response&&t.response.fileOriginName?(e=t.response.fileOriginName,t.response.url):(e=t.name,t.url);const s=e.substr(e.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(s)?this.imgPreview(t.response.id):this.downFile(t)},imgPreview(t){f.sysFileInfoPreview({id:t}).then(e=>{const s=window.URL.createObjectURL(new Blob([e]));this.imgList=[s],this.currentImg=s,this.$refs.imgPreview.open()})},downFile(t){this.$refs.filePreview.open(Object.assign(t,{fileId:t.response&&t.response.fileoriginname?t.response.id:t.fileId}))},getBlobType(t){let e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";return this.fileType==="pdf"?e="application/pdf":this.fileType==="docx"&&(e="application/msword"),e},infoDownLoad(t){return f.sysFileInfoDetail({id:t}).then(e=>{this.ruleFormData.fileList=e.data.url,this.ruleFormData.name=e.data.fileoriginname.substring(0,e.data.fileoriginname.lastIndexOf(".")),this.ruleFormData.fileid=e.data.id.toString(),this.fileListFile=[{name:e.data.fileoriginname,url:e.data.url,response:{id:e.data.id,url:e.data.url,fileoriginname:e.data.fileoriginname}}]})},getDictionary(t){return this.$options.filters.dictData(t)},changeMode(t){this.noticeType=t}}};var R=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("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},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.SearchValue,callback:function(i){e.$set(e.queryParam,"SearchValue",i)},expression:"queryParam.SearchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"title",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"title",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_type",i.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",i.row.type))+" ")])]}},{key:"status",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("notice_status",i.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",i.row.status))+" ")])]}},{key:"filtering",fn:function({colse:i,visible:n}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:n},on:{save:e.saveQueries}})]}}])})],1),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"100%",transKey:e.transKey,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,buttons:e.getButtons,loading:e.formLoading},on:{sbumit:e.sbumit},scopedSlots:e._u([{key:"targetKeys",fn:function({data:i,column:n}){return[s("el-transfer",{attrs:{data:e.mockData,titles:["\u672A\u9009","\u5DF2\u9009"],filterable:""},on:{change:e.handleChange},model:{value:e.targetKeys,callback:function(a){e.targetKeys=a},expression:"targetKeys"}})]}},{key:"notifyingPerson",fn:function({data:i,column:n}){return[s("el-button",{attrs:{type:e.allEmpty?"danger":"primary"},on:{click:function(a){return e.noticePerson(i)}}},[s("i",{staticClass:"gd-icons el-icon-bell"}),e._v(" "+e._s(e.$i18nt("gd.notice.notice","\u901A\u77E5"))+" ")])]}},{key:"notice_type",fn:function({data:i,column:n}){return[s("el-radio-group",{on:{change:e.changeMode},model:{value:i.type,callback:function(a){e.$set(i,"type",a)},expression:"data.type"}},e._l(e.getDictionary("notice_type"),function(a,r){return s("el-radio",{key:a.code,attrs:{label:a.code}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)]}},{key:"fileList",fn:function({data:i,column:n}){return[s("el-upload",{attrs:{action:"","on-preview":e.previewFile,"on-remove":e.removeFile,multiple:"",limit:n.limit,accept:n.accept,"http-request":e.uploadFile,"file-list":e.fileListFile,"on-success":e.successFile}},[s("el-button",{attrs:{size:"mini",type:"primary"}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),e._v(" "+e._s(e.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]}}])}),s("detailForm",{ref:"detailForm"}),s("editNoticeForm",{ref:"editNoticeFormRef",on:{ok:e.handleOk}}),s("gd-file-preview",{ref:"filePreview"}),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:e.imgList.length>0,imgList:e.imgList,currentImg:e.currentImg}})],1)},C=[],S=o.normalizeComponent(T,R,C,!1,null,"efad110b",null,null);const p=S.exports;p.install=function(t){t.component(p.name,p)};const K={name:"GdNoticeDetails",props:{modeType:{type:String,default:"dialog"}},data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"80%",confirmLoading:!1,contentRecord:{},sysViewButtons:[],type:"pdf"}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`height:${this.fullscreen?this.screenHeight-80:this.screenHeight-240}px;`},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(t){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(t.id)},sysNoticeDetail(t){this.fullscreen=!1,l.sysNoticeDetail({id:t}).then(e=>{e.code===200?(this.contentRecord=e.data,this.$emit("onLoadCompleted"),e.data.attachment&&this.$nextTick(()=>{setTimeout(()=>{let s={name:`${e.data.title}.${this.type}`,fileId:e.data.attachment,fullscreen:!1};this.$refs.filePreview.open(s)},0)})):this.$message.error(e.message),this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,s=e._self._c;return s("div",[e.modeType==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{formMode:e.formMode,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",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],class:e.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1):s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[s("div",{staticStyle:{"text-align":"center","font-size":"28px"}},[e._v(e._s(this.contentRecord.title))]),s("div",{staticStyle:{"text-align":"right","font-size":"12px",color:":#999"}},[s("span",[e._v(e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername))]),s("span",{staticStyle:{"padding-left":"12px"}},[e._v(" "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),s("el-divider"),s("div",[s("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?s("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1)},P=[],k=o.normalizeComponent(K,L,P,!1,null,"9aab64a3",null,null);const u=k.exports,y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"}));u.install=function(t){t.component(u.name,u)};const F={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const N={props:{height:{type:Number,default:0},selectOrgRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,F],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>b.getOrgPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectOrgRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var x=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}},{key:"orgType",fn:function(i){return[s("el-tag",{style:e._f("dictColor")("org_type",i.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",i.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:n}})]}}])})],1)])},D=[],O=o.normalizeComponent(N,x,D,!1,null,"5f8fe789",null,null);const B=O.exports,z={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,showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",showOverflowTooltip:!0}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const q={props:{height:{type:Number,default:0},selectRoleRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,z],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{sysAppsId:""},loadData:t=>w.getRolePage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectRoleRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{getSysAppsPage(){_.sysAppsPage().then(t=>{t.success&&(this.queryParam.sysAppsId=t.data.rows[0].id)})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getSysAppsPage()}};var H=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:n,highlight:""}})]}}])})],1)])},j=[],I=o.normalizeComponent(q,H,j,!1,null,"af7b4faa",null,null);const E=I.exports,M={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.fieldSecurity.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.teamType",prop:"teamType",label:"\u56E2\u961F\u7C7B\u578B",align:"left",type:"slot",slotType:"teamType",showOverflowTooltip:!0},{transKey:"gd.fieldSecurity.description",prop:"description",label:"\u8BF4\u660E",type:"slot",slotType:"description",align:"left"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}};const A={props:{height:{type:Number,default:0},selectTeamRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,M],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:t=>v.getSysTeamPage(Object.assign(t,this.queryParam)).then(e=>(setTimeout(()=>{let s=[...this.selectTeamRow];this.selectedRowKeys=[...s],this.onSelectChange(s,[])},10),e.data)),detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var U=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!1,height:e.height,initialLoading:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(n.name)+" ")])]}},{key:"teamType",fn:function({column:i,row:n}){return[s("span",[e._v(" "+e._s(e._f("dictType")("TeamType",n.teamtype))+" ")])]}},{key:"description",fn:function({column:i,row:n}){return[e._v(" "+e._s(n.description)+" ")]}}])})],1)])},V=[],G=o.normalizeComponent(A,U,V,!1,null,"6f5c581d",null,null);const Q=G.exports,J={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],tableQueries:[{transKey:"gd.application.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}};const W={props:{height:{type:Number,default:300},selectUserRow:{type:Array,default:()=>[]}},mixins:[h.tablesFilter,J],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{searchValue:""},loadData:t=>{let e=JSON.parse(JSON.stringify(this.selectUserRow));return m.getUserPage(Object.assign(t,this.queryParam)).then(s=>{let i=[];return e.length>0?i=[...JSON.parse(JSON.stringify(e))].map(String):i=[...JSON.parse(JSON.stringify(this.selectUserRow))].map(String),this.$nextTick(()=>{this.selectedRowKeys=[...i],this.onSelectChange(i,[])}),s.data})},detail:{}}},computed:{styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...o.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{},methods:{onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("ok",this.selectedRowKeys)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},init(t){this.queryParam.searchValue="",this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){}};var X=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,filtering:!1,height:e.height,initialLoading:!0,showPagination:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:i,row:n}){return[s("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""}})]}},{key:"gender",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[s("el-tag",{style:e._f("dictColor")("gender",i.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",i.row.gender))+" ")])],1)]}},{key:"statecodes",fn:function(i){return[s("div",{staticStyle:{cursor:"pointer"}},[i.row.statecodes==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(i){e.$set(e.queryParam,"searchValue",i)},expression:"queryParam.searchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}])})],1)])},Y=[],Z=o.normalizeComponent(W,X,Y,!1,null,"e622f086",null,null);const ee=Z.exports;const te={data(){return{confirmLoading:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:"noticeuser",fullScreen:!1,width:"90%",visible:!1,userRowList:[],teamRowList:[],roleRowList:[],orgRowList:[],recordData:"",enterType:""}},components:{noticeUser:ee,notcieOrg:B,noticeRole:E,noticeTeam:Q},computed:{getHeight(){console.log(this.fullScreen,this.screenHeight);const t=this.fullScreen?210:370;return this.screenHeight-t},getButtons(){return this.sysViewButtons.filter(t=>!(this.enterType=="1"&&t.functionName==="handleSubmit"))},...o.mapGetters(["screenHeight","tableLists","primaryColor"])},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},init(t,e){this.recordData=t,this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type="noticeuser",this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[],this.enterType=e,t&&(this.getData(t,e),setTimeout(()=>{this.$refs.noticeuserRef.init(this.userRowList)},100))},getData(t,e){l.sysNoticeReceiversByTypes({id:e=="1"?t[0]:t}).then(s=>{s.data.receivergroups.forEach(n=>{n.receivertype=="1"&&(this.userRowList=n.receiveridlist),n.receivertype=="2"&&(this.roleRowList=n.receiveridlist),n.receivertype=="3"&&(this.teamRowList=n.receiveridlist),n.receivertype=="4"&&(this.orgRowList=n.receiveridlist)})})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},tabChange(t){this.$nextTick(()=>{setTimeout(()=>{},0)})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.userRowList=[],this.teamRowList=[],this.roleRowList=[],this.orgRowList=[]},handleSubmit(){let t=[{receiverType:"1",receiverIdList:this.userRowList.map(Number)},{receiverType:"2",receiverIdList:this.roleRowList.map(Number)},{receiverType:"3",receiverIdList:this.teamRowList.map(Number)},{receiverType:"4",receiverIdList:this.orgRowList.map(Number)}];this.handleCancel(),this.$emit("ok",t)},selectUser(t){this.userRowList=t},selectTeam(t){this.teamRowList=t},selectRole(t){this.roleRowList=t},selectOrg(t){this.orgRowList=t}}};var se=function(){var e=this,s=e._self._c;return s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","append-to-body":"","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:`${e.$i18nt("gd.notice.notifyingPerson","\u901A\u77E5")}`,fullscreen:e.fullScreen,buttons:e.getButtons,confirmLoading:e.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.tabChange},model:{value:e.type,callback:function(i){e.type=i},expression:"type"}},[s("el-tab-pane",{attrs:{name:"noticeuser",label:e.$i18nt("gd.fieldSecurity.user","\u7528\u6237")}},[e.type=="noticeuser"?s("noticeUser",{ref:"noticeuserRef",attrs:{selectUserRow:e.userRowList,height:e.getHeight},on:{ok:e.selectUser}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeteam",label:e.$i18nt("gd.fieldSecurity.team","\u56E2\u961F")}},[e.type=="noticeteam"?s("noticeTeam",{ref:"noticeteamRef",attrs:{selectTeamRow:e.teamRowList,height:e.getHeight},on:{ok:e.selectTeam}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticerole",label:e.$i18nt("gd.fieldSecurity.role","\u89D2\u8272")}},[e.type=="noticerole"?s("noticeRole",{ref:"noticeroleRef",attrs:{selectRoleRow:e.roleRowList,height:e.getHeight},on:{ok:e.selectRole}}):e._e()],1),s("el-tab-pane",{attrs:{name:"noticeorg",label:e.$i18nt("gd.pagecomponents.institution","\u673A\u6784")}},[e.type=="noticeorg"?s("notcieOrg",{ref:"noticeorgRef",attrs:{selectOrgRow:e.orgRowList,height:e.getHeight},on:{ok:e.selectOrg}}):e._e()],1)],1)],1)])],1)},ie=[],ne=o.normalizeComponent(te,se,ie,!1,null,"ee7d37db",null,null);const ae=ne.exports,re=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=p;exports.main=y;exports.noticeItem=u;
@@ -1,9 +1,9 @@
1
- import { m as o, n as l } from "./components.chartbi.571c5ff5.mjs";
1
+ import { m as o, n as l } from "./components.chartbi.7356b244.mjs";
2
2
  import { b as g, c as b, d as w, e as m, f as _, g as y, h as v } from "./http.noticemanage.2cdb23b8.mjs";
3
3
  import { e as $, f as T } from "./http.usermanage.f5491144.mjs";
4
4
  import { t as u } from "./utils.mixins.js.be01e599.mjs";
5
5
  import { s as R, a as S, g as C } from "./http.filemanage.c0de21d6.mjs";
6
- import "./components.form.db8af727.mjs";
6
+ import "./components.form.8047a9c3.mjs";
7
7
  import { g as K } from "./http.orgmanage.0b1df8d5.mjs";
8
8
  import { g as L } from "./http.rolemanage.da5c40e9.mjs";
9
9
  import { s as P } from "./http.sysapps.932ba43b.mjs";
@@ -1 +1 @@
1
- "use strict";const n=require("./components.chartbi.3bbac955.js"),l=require("./http.noticereceivedmanage.e8ec9c9d.js"),o=require("./utils.mixins.js.750ca50e.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const u={name:"GdNoticeReceived",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,c],data(){return{transKey:"gd.btn.add",loadData:t=>l.sysNoticeReceived(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,allData:[]}},components:{detailForm:()=>Promise.resolve().then(()=>require("./system.notice.db26f308.js")).then(t=>t.main)},computed:{getHeight(){return this.height},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},saveQueries(t){this.queryParam=t,this.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))}};var d=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-page-view"},[i("div",{staticClass:"page-view-list"},[i("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},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[i("div",{staticClass:"gd-table-operator"},[i("div",{staticClass:"gd-table-operatorl"},[i("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.SearchValue,callback:function(a){e.$set(e.queryParam,"SearchValue",a)},expression:"queryParam.SearchValue"}}),i("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0},{key:"title",fn:function({column:a,row:r}){return[i("gd-tooltip",{attrs:{rowKey:"title",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(a){return[i("el-tag",{style:e._f("dictColor")("notice_type",a.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",a.row.type))+" ")])]}},{key:"status",fn:function(a){return[i("el-tag",{style:e._f("dictColor")("notice_status",a.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",a.row.status))+" ")])]}},{key:"filtering",fn:function({colse:a,visible:r}){return[i("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:r},on:{save:e.saveQueries}})]}}])})],1),i("detailForm",{ref:"detailForm"})],1)},p=[],y=n.normalizeComponent(u,d,p,!1,null,"48775a9c",null,null);const s=y.exports;s.install=function(t){t.component(s.name,s)};exports.GDpackage=s;
1
+ "use strict";const n=require("./components.chartbi.13a8a7b5.js"),l=require("./http.noticereceivedmanage.e8ec9c9d.js"),o=require("./utils.mixins.js.750ca50e.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.notice.title",prop:"title",label:"\u6807\u9898",width:"260",type:"slot",slotType:"title",align:"left",fixed:!0},{transKey:"gd.notice.type",prop:"type",width:"120",label:"\u7C7B\u578B",align:"left",type:"slot",slotType:"type"},{transKey:"gd.notice.status",prop:"status",width:"120",label:"\u72B6\u6001",align:"left",type:"slot",slotType:"status"},{transKey:"gd.notice.publicTime",prop:"publictime",width:"180",label:"\u53D1\u5E03\u65F6\u95F4",align:"center"},{transKey:"gd.notice.publicUserName",prop:"publicusername",width:"200",label:"\u53D1\u5E03\u4EBA",align:"left"}],tableQueries:[{transKey:"gd.notice.noticeOriginName",prop:"searchValue",label:"\u5173\u952E\u8BCD",effectType:"input",rules:[]},{transKey:"gd.sysConfig.type",prop:"type",label:"\u7C7B\u578B",effectType:"select",dictTypeCode:"notice_type",rules:[]}]}}};const u={name:"GdNoticeReceived",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,c],data(){return{transKey:"gd.btn.add",loadData:t=>l.sysNoticeReceived(Object.assign(t,this.queryParam)).then(e=>(this.allData=e.data.rows,e.data)),selectedRowKeys:[],selectedRows:[],queryParam:{},formLoading:!1,allData:[]}},components:{detailForm:()=>Promise.resolve().then(()=>require("./system.notice.2090c130.js")).then(t=>t.main)},computed:{getHeight(){return this.height},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{editForm(t){this.transKey="gd.notice.detail",this.$refs.detailForm.open(t)},saveQueries(t){this.queryParam=t,this.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},refresh(){this.$refs.table.refresh()},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},mounted(){(this.$route.params.id||this.$route.query.id)&&(this.transKey="gd.notice.detail",setTimeout(()=>{this.allData.forEach(t=>{(t.id==this.$route.params.id||t.id==this.$route.query.id)&&this.$refs.detailForm.open(t)})},1e3))}};var d=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gd-page-view"},[i("div",{staticClass:"page-view-list"},[i("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},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[i("div",{staticClass:"gd-table-operator"},[i("div",{staticClass:"gd-table-operatorl"},[i("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.notice.title","\u6807\u9898"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.SearchValue,callback:function(a){e.$set(e.queryParam,"SearchValue",a)},expression:"queryParam.SearchValue"}}),i("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[i("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0},{key:"title",fn:function({column:a,row:r}){return[i("gd-tooltip",{attrs:{rowKey:"title",row:r,highlight:""},on:{click:e.editForm}})]}},{key:"type",fn:function(a){return[i("el-tag",{style:e._f("dictColor")("notice_type",a.row.type),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_type",a.row.type))+" ")])]}},{key:"status",fn:function(a){return[i("el-tag",{style:e._f("dictColor")("notice_status",a.row.status),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("notice_status",a.row.status))+" ")])]}},{key:"filtering",fn:function({colse:a,visible:r}){return[i("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:r},on:{save:e.saveQueries}})]}}])})],1),i("detailForm",{ref:"detailForm"})],1)},p=[],y=n.normalizeComponent(u,d,p,!1,null,"48775a9c",null,null);const s=y.exports;s.install=function(t){t.component(s.name,s)};exports.GDpackage=s;
@@ -1,4 +1,4 @@
1
- import { m as l, n as o } from "./components.chartbi.571c5ff5.mjs";
1
+ import { m as l, n as o } from "./components.chartbi.7356b244.mjs";
2
2
  import { s as n } from "./http.noticereceivedmanage.50797be1.mjs";
3
3
  import { t as c } from "./utils.mixins.js.be01e599.mjs";
4
4
  const u = {
@@ -91,7 +91,7 @@ const d = {
91
91
  };
92
92
  },
93
93
  components: {
94
- detailForm: () => import("./system.notice.bef6c23c.mjs").then((t) => t.m)
94
+ detailForm: () => import("./system.notice.51880df6.mjs").then((t) => t.m)
95
95
  },
96
96
  computed: {
97
97
  getHeight() {
@@ -1,4 +1,4 @@
1
- import { m as l, n as i } from "./components.chartbi.571c5ff5.mjs";
1
+ import { m as l, n as i } from "./components.chartbi.7356b244.mjs";
2
2
  import { s as o, a as c } from "./http.onlineusermanage.c8d84337.mjs";
3
3
  import { t as d } from "./utils.mixins.js.be01e599.mjs";
4
4
  const u = {
@@ -1 +1 @@
1
- "use strict";const l=require("./components.chartbi.3bbac955.js"),i=require("./http.onlineusermanage.3893f897.js"),o=require("./utils.mixins.js.750ca50e.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.onlineUser.account",prop:"account",width:"200",label:"\u8D26\u53F7",align:"left",fixed:!0},{transKey:"gd.onlineUser.name",prop:"name",width:"200",label:"\u59D3\u540D",align:"left"},{transKey:"gd.onlineUser.lastLoginIp",prop:"lastloginip",width:"160",label:"\u767B\u5F55IP",align:"left"},{transKey:"gd.onlineUser.lastTime",prop:"lasttime",width:"180",label:"\u767B\u5F55\u65F6\u95F4",align:"center"},{transKey:"gd.onlineUser.lastLoginBrowser",prop:"lastloginbrowser",width:"200",label:"\u6D4F\u89C8\u5668",align:"left"},{transKey:"gd.onlineUser.lastLoginOs",prop:"lastloginos",width:"160",label:"\u64CD\u4F5C\u7CFB\u7EDF",align:"left"}],tableButtons:[{displayName:"\u5F3A\u5236\u4E0B\u7EBF",functionName:"forceExist",show:!0,transKey:"gd.onlineUser.forceExist",icon:"el-icon-delete",btnType:"danger",name:"sysOnlineUser:forceExist"}],tableQueries:[{transKey:"gd.onlineUser.keywordTip",effectType:"input",prop:"code",label:"\u5173\u952E\u8BCD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.keywordTip",rules:[]}]}}};const u={name:"GdOnlineUser",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,c],data(){return{selectedRowKeys:[],selectedRows:[],queryParam:{},isShow:!1,loadData:t=>i.sysOnlineUserPage(Object.assign(t,this.queryParam)).then(e=>{let s=[];return e.code===200&&(s=e.data.rows.map(n=>Object.assign(n,{id:n.connectionid}))),Object.assign(e.data,{rows:s})})}},computed:{getHeight(){return this.height},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(t,e){this.selectedRows=e,this.selectedRowKeys=t},refresh(){this.$refs.table.refresh()},saveQueries(t){this.queryParam={...t},this.refresh()},forceExist(){let t=this;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}t.$confirm(t.$i18nt("gd.onlineUser.forceExistTip","\u662F\u5426\u5F3A\u5236\u4E0B\u7EBF\u8BE5\u7528\u6237?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.onlineUser.forceExist","\u5F3A\u5236\u4E0B\u7EBF"),cancelButtonText:t.$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,s,n)=>{if(e!=="confirm"){n();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,i.sysOnlineUserForceExist(t.selectedRows[0]).then(a=>{s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,n(),a.success?(t.$message.success(t.$i18nt("gd.https.operateSucc")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail")+a.message)}).catch(a=>{t.$message.error(t.$i18nt("gd.error.error")+a.message)})}})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var d=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.onlineUser.keywordTip","\u8BF7\u8F93\u5165\u8D26\u53F7\u6216\u59D3\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.searchValue,callback:function(n){e.$set(e.queryParam,"searchValue",n)},expression:"queryParam.searchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},e.isShow?{key:"filtering",fn:function({colse:n,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:n,visible:a},on:{save:e.saveQueries}})]}}:null],null,!0)})],1)])},g=[],p=l.normalizeComponent(u,d,g,!1,null,null,null,null);const r=p.exports;r.install=function(t){t.component(r.name,r)};exports.GDpackage=r;
1
+ "use strict";const l=require("./components.chartbi.13a8a7b5.js"),i=require("./http.onlineusermanage.3893f897.js"),o=require("./utils.mixins.js.750ca50e.js"),c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.onlineUser.account",prop:"account",width:"200",label:"\u8D26\u53F7",align:"left",fixed:!0},{transKey:"gd.onlineUser.name",prop:"name",width:"200",label:"\u59D3\u540D",align:"left"},{transKey:"gd.onlineUser.lastLoginIp",prop:"lastloginip",width:"160",label:"\u767B\u5F55IP",align:"left"},{transKey:"gd.onlineUser.lastTime",prop:"lasttime",width:"180",label:"\u767B\u5F55\u65F6\u95F4",align:"center"},{transKey:"gd.onlineUser.lastLoginBrowser",prop:"lastloginbrowser",width:"200",label:"\u6D4F\u89C8\u5668",align:"left"},{transKey:"gd.onlineUser.lastLoginOs",prop:"lastloginos",width:"160",label:"\u64CD\u4F5C\u7CFB\u7EDF",align:"left"}],tableButtons:[{displayName:"\u5F3A\u5236\u4E0B\u7EBF",functionName:"forceExist",show:!0,transKey:"gd.onlineUser.forceExist",icon:"el-icon-delete",btnType:"danger",name:"sysOnlineUser:forceExist"}],tableQueries:[{transKey:"gd.onlineUser.keywordTip",effectType:"input",prop:"code",label:"\u5173\u952E\u8BCD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.keywordTip",rules:[]}]}}};const u={name:"GdOnlineUser",props:{height:{type:Number,default:100}},mixins:[o.tablesFilter,c],data(){return{selectedRowKeys:[],selectedRows:[],queryParam:{},isShow:!1,loadData:t=>i.sysOnlineUserPage(Object.assign(t,this.queryParam)).then(e=>{let s=[];return e.code===200&&(s=e.data.rows.map(n=>Object.assign(n,{id:n.connectionid}))),Object.assign(e.data,{rows:s})})}},computed:{getHeight(){return this.height},...l.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(t,e){this.selectedRows=e,this.selectedRowKeys=t},refresh(){this.$refs.table.refresh()},saveQueries(t){this.queryParam={...t},this.refresh()},forceExist(){let t=this;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}t.$confirm(t.$i18nt("gd.onlineUser.forceExistTip","\u662F\u5426\u5F3A\u5236\u4E0B\u7EBF\u8BE5\u7528\u6237?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:t.$i18nt("gd.onlineUser.forceExist","\u5F3A\u5236\u4E0B\u7EBF"),cancelButtonText:t.$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,s,n)=>{if(e!=="confirm"){n();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,i.sysOnlineUserForceExist(t.selectedRows[0]).then(a=>{s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,n(),a.success?(t.$message.success(t.$i18nt("gd.https.operateSucc")),t.$refs.table.refresh(!0)):t.$message.error(t.$i18nt("gd.https.operateFail")+a.message)}).catch(a=>{t.$message.error(t.$i18nt("gd.error.error")+a.message)})}})},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var d=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.onlineUser.keywordTip","\u8BF7\u8F93\u5165\u8D26\u53F7\u6216\u59D3\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.searchValue,callback:function(n){e.$set(e.queryParam,"searchValue",n)},expression:"queryParam.searchValue"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},e.isShow?{key:"filtering",fn:function({colse:n,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:n,visible:a},on:{save:e.saveQueries}})]}}:null],null,!0)})],1)])},g=[],p=l.normalizeComponent(u,d,g,!1,null,null,null,null);const r=p.exports;r.install=function(t){t.component(r.name,r)};exports.GDpackage=r;
@@ -1,5 +1,5 @@
1
1
  import { g as o, a as d, s as g, b as u, c } from "./http.orgmanage.0b1df8d5.mjs";
2
- import { m as p, n as h } from "./components.chartbi.571c5ff5.mjs";
2
+ import { m as p, n as h } from "./components.chartbi.7356b244.mjs";
3
3
  import { t as f } from "./utils.mixins.js.be01e599.mjs";
4
4
  const m = {
5
5
  data() {
@@ -1 +1 @@
1
- "use strict";const l=require("./http.orgmanage.5162fd7a.js"),d=require("./components.chartbi.3bbac955.js"),c=require("./utils.mixins.js.750ca50e.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.org.type",effectType:"radio",prop:"orgtype",label:"\u673A\u6784\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"org_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.org.displayName",effectType:"input",prop:"name",label:"\u673A\u6784\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",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.parentBody",prop:"pid",effectType:"selectTree",label:"\u4E0A\u7EA7\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.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:"sysOrg:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysOrg:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysOrg:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",effectType:"input",rules:[]}]}}};const g={name:"GdOrg",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,u],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:t=>l.getOrgPage(Object.assign(t,this.queryParam)).then(e=>e.data),isFilterWithValue:!0}},computed:{getFormColumns(){let t=[{id:"-1",parentId:"0",title:this.$i18nt("gd.org.topLevel","\u9876\u7EA7"),value:"0",pid:"0",children:[...this.orgTree]}];return this.formColumns.filter(r=>(r.prop==="pid"&&(r.treeOptions=[...t]),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...t},{pid:String(t.pid)}))},getOrgTree(){l.getOrgTree({}).then(t=>{if(t.code===200){const e=r=>(r=r.filter((s,a)=>(s.value=String(s.value),s.children&&s.children.length>0&&(s.children=e(s.children)),!0)),r);this.orgTree=e(t.data)}this.loading=!1})},handleNodeClick(t){this.queryParam.pid===t.id?(delete this.queryParam.pid,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{pid:t.id}),this.$refs.table.refresh(!0)},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:(t,e,r)=>{this.delHand(t,e,r)}})},delHand(t,e,r){if(t!=="confirm"){r();return}let s=[];this.selectedRows.forEach(a=>{let n=l.sysOrgDelete(a).then(i=>i);s.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,r(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const n=a.filter(i=>!i.success);n.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")+n[0].message),this.handleOk()})},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])},sbumit({data:t,record:e,btn:r},s,a){this.formLoading=!0,(e?l.sysOrgEdit:l.sysOrgAdd)(t).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var p=function(){var e=this,r=e._self._c;return r("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[r("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),r("div",{staticClass:"page-view-list"},[r("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"orgType",fn:function(s){return[r("el-tag",{style:e._f("dictColor")("org_type",s.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",s.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"operator",fn:function(){return[r("div",{staticClass:"gd-table-operator"},[r("div",{staticClass:"gd-table-operatorl"},[r("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.org.displayName","\u673A\u6784\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(s){e.$set(e.queryParam,"name",s)},expression:"queryParam.name"}}),r("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[r("i",{staticClass:"el-input__icon el-icon-search"})])],1),r("div",{staticClass:"gd-table-operatorr"},[r("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:a}){return[r("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:s,visible:a},on:{save:e.saveQueries}})]}}])})],1),r("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}})],1)},h=[],f=d.normalizeComponent(g,p,h,!1,null,"1dfd3a31",null,null);const o=f.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
1
+ "use strict";const l=require("./http.orgmanage.5162fd7a.js"),d=require("./components.chartbi.13a8a7b5.js"),c=require("./utils.mixins.js.750ca50e.js"),u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",minWidth:"260",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.org.type",prop:"orgType",label:"\u673A\u6784\u7C7B\u578B",minWidth:"220",type:"slot",slotType:"orgType",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",minWidth:"300",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],formColumns:[{transKey:"gd.org.type",effectType:"radio",prop:"orgtype",label:"\u673A\u6784\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"org_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.org.displayName",effectType:"input",prop:"name",label:"\u673A\u6784\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",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.org.parentBody",prop:"pid",effectType:"selectTree",label:"\u4E0A\u7EA7\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.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:"sysOrg:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysOrg:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysOrg:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.org.displayName",prop:"name",label:"\u673A\u6784\u540D\u79F0",effectType:"input",rules:[]}]}}};const g={name:"GdOrg",props:{height:{type:Number,default:100}},mixins:[c.tablesFilter,u],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:t=>l.getOrgPage(Object.assign(t,this.queryParam)).then(e=>e.data),isFilterWithValue:!0}},computed:{getFormColumns(){let t=[{id:"-1",parentId:"0",title:this.$i18nt("gd.org.topLevel","\u9876\u7EA7"),value:"0",pid:"0",children:[...this.orgTree]}];return this.formColumns.filter(r=>(r.prop==="pid"&&(r.treeOptions=[...t]),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...t},{pid:String(t.pid)}))},getOrgTree(){l.getOrgTree({}).then(t=>{if(t.code===200){const e=r=>(r=r.filter((s,a)=>(s.value=String(s.value),s.children&&s.children.length>0&&(s.children=e(s.children)),!0)),r);this.orgTree=e(t.data)}this.loading=!1})},handleNodeClick(t){this.queryParam.pid===t.id?(delete this.queryParam.pid,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{pid:t.id}),this.$refs.table.refresh(!0)},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:(t,e,r)=>{this.delHand(t,e,r)}})},delHand(t,e,r){if(t!=="confirm"){r();return}let s=[];this.selectedRows.forEach(a=>{let n=l.sysOrgDelete(a).then(i=>i);s.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(s).then(a=>{e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0,r(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0;const n=a.filter(i=>!i.success);n.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")+n[0].message),this.handleOk()})},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])},sbumit({data:t,record:e,btn:r},s,a){this.formLoading=!0,(e?l.sysOrgEdit:l.sysOrgAdd)(t).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var p=function(){var e=this,r=e._self._c;return r("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[r("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),r("div",{staticClass:"page-view-list"},[r("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.height,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"orgType",fn:function(s){return[r("el-tag",{style:e._f("dictColor")("org_type",s.row.orgtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("org_type",s.row.orgtype))+" ")])]}},{key:"remark",fn:function({column:s,row:a}){return[r("gd-tooltip",{attrs:{rowKey:"remark",row:a}})]}},{key:"operator",fn:function(){return[r("div",{staticClass:"gd-table-operator"},[r("div",{staticClass:"gd-table-operatorl"},[r("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.org.displayName","\u673A\u6784\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(s){e.$set(e.queryParam,"name",s)},expression:"queryParam.name"}}),r("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[r("i",{staticClass:"el-input__icon el-icon-search"})])],1),r("div",{staticClass:"gd-table-operatorr"},[r("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:a}){return[r("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:s,visible:a},on:{save:e.saveQueries}})]}}])})],1),r("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}})],1)},h=[],f=d.normalizeComponent(g,p,h,!1,null,"1dfd3a31",null,null);const o=f.exports;o.install=function(t){t.component(o.name,o)};exports.GDpackage=o;
@@ -1,4 +1,4 @@
1
- import { n as c, m as u } from "./components.chartbi.571c5ff5.mjs";
1
+ import { n as c, m as u } from "./components.chartbi.7356b244.mjs";
2
2
  import { h as R, g as D } from "./http.usermanage.f5491144.mjs";
3
3
  import { o as f, c as x, d as $, v as C, e as L, g as K } from "./http.rolemanage.da5c40e9.mjs";
4
4
  import { a as I } from "./http.main.aefea27d.mjs";
@@ -1 +1 @@
1
- "use strict";const d=require("./components.chartbi.3bbac955.js"),f=require("./http.usermanage.6dcbc7de.js"),h=require("./http.rolemanage.4d1101dd.js"),D=require("./http.main.2f8a6936.js"),m=require("./http.appmanage.b998818f.js"),_=require("./http.menumanage.6d740f2c.js"),R=require("./http.orgmanage.5162fd7a.js");const C={name:"dataItem",props:{record:{type:Array,default:()=>[]}},mounted(){},methods:{open(i){console.log(this.record,this.exists),this.$emit("open",i)}}};var $=function(){var e=this,t=e._self._c;return t("div",[e._l(e.record,function(a){return[t("div",{staticClass:"list-item"},[a.menusType!==2?t("div",{staticClass:"item-name"},[a.menusType!==1&&a.children&&a.children.length>0?t("i",{class:a.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(s){return e.open(a)}}}):e._e(),a.iconClass?t("i",{staticClass:"gd-icons",class:a.iconClass,staticStyle:{"font-size":"15px"}}):e._e(),e._v(" "+e._s(a.name)+" ")]):e._e(),a.menusType!==0?t("div",{class:a.exists?"item-activet":"item-actives"},[a.hasExists.length>0?t("el-tooltip",{attrs:{placement:"left"}},[e._l(a.hasExists,function(s){return t("template",{slot:"content"},[e._v(" "+e._s(s.name)+" ")])}),t("div",{staticClass:"btn-list-item"},[e._v(" "+e._s(a.exists?e.$i18nt("gd.user.havePermission","\u6709\u6743\u9650"):e.$i18nt("gd.user.NoPermission","\u65E0\u6743\u9650"))+" ")])],2):t("div",{staticClass:"btn-list-item"},[e._v(" "+e._s(a.exists?e.$i18nt("gd.user.havePermission","\u6709\u6743\u9650"):e.$i18nt("gd.user.NoPermission","\u65E0\u6743\u9650"))+" ")])],1):e._e()]),t("div",{staticClass:"item-data"},[a.children&&a.children.length>0&&a.children[0].menusType===2?t("div",{staticClass:"item-data-list"},[e._l(a.children,function(s){return[t("div",{staticClass:"item-name item-named"},[s.hasExists.length>0?t("el-tooltip",{attrs:{placement:"right"}},[e._l(s.hasExists,function(n){return t("template",{slot:"content"},[e._v(" "+e._s(n.name)+" ")])}),t("div",{class:s.exists?"item-named-title":"item-named-title-err"},[e._v(" "+e._s(s.name)+" "),t("i",{class:s.exists?"gd-icons gd-icon-zhengque":"gd-icons gd-icon-cuowu"})])],2):t("div",{class:s.exists?"item-named-title":"item-named-title-err"},[e._v(" "+e._s(s.name)+" "),t("i",{class:s.exists?"gd-icons gd-icon-zhengque":"gd-icons gd-icon-cuowu"})])],1)]})],2):e._e()]),a.children&&a.children.length>0&&a.children[0].menusType!==2?t("div",{staticClass:"list-more"},[a.open?t("dataItem",{attrs:{record:a.children},on:{open:e.open}}):e._e()],1):e._e()]})],2)},x=[],L=d.normalizeComponent(C,$,x,!1,null,"fbb86dac",null,null);const p=L.exports;const K={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400}},data(){return{applicationList:[],menuData:null,defaultProps:{children:"children",label:"title"},systemMenuAll:[],haveMenu:[],exists:!1,menuDatas:null,confirmLoading:!1,isPlanSaving:!1}},components:{dataItem:p},computed:{treeHeight(){return`${this.height}px`}},watch:{selectedRowKeys:{handler(i){i.length!==0&&this.init()},deep:!0,immediate:!0}},mounted(){this.init()},methods:{openItem(i){let e=[...this.menuData];const t=a=>(a=a.filter((s,n)=>(s.id===i.id&&(s.open=!s.open),s.children&&s.children.length>0&&(s.children=t(s.children)),!0)),a);t(e),this.menuData=[...e],console.log(this.menuData)},appOpen(i,e){let t=[...this.menuData];t[i].open=!t[i].open,this.menuData=[...t]},refresh(){},init(){this.isPlanSaving||(this.confirmLoading=!0,this.isPlanSaving=!0,Promise.all([this.getMenuList(),this.getApplicationList(),this.ownMenuInfo()]).then(i=>{const e=s=>(s=s.filter((n,r)=>(n.open=!0,n.exists=!1,n.hasExists=[],n.menusType=n.type,n.children&&n.children.length>0&&(n.children=e(n.children)),!0)),s);e(this.systemMenuAll);let t=[],a=this.applicationList.filter(s=>{const n=this.systemMenuAll.filter(r=>r.application===s.code);return n.length>0?(t=t.concat([...n]),s.children=[...n],s.open=!0,!0):!1});this.menuData=a,this.compareMenuData(a)}))},async compareMenuData(i){let e=this.haveMenu,t=this.selectedRows.map(a=>{let s=[];for(let n in e)n==a.id&&(s=e[n]);return{...a,children:s}});if(!this.haveMenu){console.log("\u6570\u636E\u7ED3\u6784\u4E0D\u5B8C\u6574");return}this.compareMenuNodes(i,t),this.confirmLoading=!1},async compareMenuNodes(i,e){!Array.isArray(i)||(i.map(t=>{let a=[];e.forEach(s=>{s.children.filter(r=>r.id==t.id)[0]&&a.push({id:s.id,name:s.name})}),t.exists=a.length>0,t.hasExists=a,t.children&&Array.isArray(t.children)&&this.compareMenuNodes(t.children,e)}),this.isPlanSaving=!1)},ownMenuInfo(){if(this.selectedRowKeys.length!==0)return this.selectedRowKeys.map(i=>i).join(","),h.ownMenuInfo({roleids:this.selectedRowKeys}).then(i=>(this.haveMenu=i.data,i))},getMenuList(){let i={AppsId:window.$systemInfo.id};return _.sysMenuListByAppsId(i).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getApplicationList(){if(this.selectedRowKeys.length!==0)return m.getAppListByAppsId({appsId:window.$systemInfo.id}).then(i=>(i.code===200&&(this.applicationList=i.data),i))}}};var I=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"trees-list",style:{height:e.treeHeight}},[e.menuData?t("div",[e._l(e.menuData,function(a,s){return[t("div",{staticClass:"app-list-name"},[a.children&&a.children.length>0?t("i",{class:a.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(n){return e.appOpen(s,a)}}}):e._e(),e._v(" "+e._s(a.name)+" ")]),a.open?t("div",{staticStyle:{"padding-left":"20px"}},[t("dataItem",{attrs:{record:a.children},on:{open:e.openItem}})],1):e._e()]})],2):e._e()])])},P=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],M=d.normalizeComponent(K,I,P,!1,null,"add4290b",null,null);const S=M.exports;const A={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400}},watch:{selectedRowKeys:{handler(i){this.init()},deep:!0,immediate:!0}},data(){return{confirmLoading:!1,loadData:[],treeData:[],hasData:[],rolePermissionMap:{},list:[{getgrantd:["1","2"],name:["\u7528\u6237\u89D2\u8272","\u7CFB\u7EDF\u7BA1\u7406\u5458"]}],dict:{},isPlanSaving:!1}},computed:{treeHeight(){return`${this.height}px`},dicts(){return this.getDictionary("data_scope_type")},columns(){return[{transKey:"gd.btn.query",prop:"getgrant",label:"\u67E5\u8BE2"},{transKey:"gd.btn.add",prop:"addgrant",label:"\u65B0\u589E"},{transKey:"gd.btn.edit",prop:"editgrant",label:"\u7F16\u8F91"},{transKey:"gd.btn.del",prop:"delgrant",label:"\u5220\u9664"},{transKey:"gd.relation.assignment",prop:"allocationgrant",label:"\u5206\u6D3E"},{transKey:"gd.btn.share",prop:"sharegrant",label:"\u5171\u4EAB"}]},...d.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{refresh(){},init(){this.isPlanSaving||(this.confirmLoading=!0,this.isPlanSaving=!0,this.loadData.length==0?Promise.all([this.getOrgDetail(),this.ownMenuInfo()]).then(i=>{this.getData()}):Promise.all([this.ownMenuInfo()]).then(i=>{this.getData()}))},getData(){this.treeData=this.loadData.map(i=>{let e=this.getViewData(i),t=new Map,a={};return this.columns.forEach(s=>{let n=this.getTypePermission(e,s),r=this.getTypeDict(n,s);t.set(s.prop,n.result),Object.assign(a,r)}),Object.assign(i,Object.fromEntries(t),a)}),this.confirmLoading=!1,this.isPlanSaving=!1},getTypeDict(i,e){let t=new Map;return this.dicts.forEach(a=>{const s=i.ids.filter(n=>n.data.includes(a.code));t.set(`${e.prop}${a.code}Role`,s)}),Object.fromEntries(t)},getTypePermission(i,e){let t=[],a=[];return i.forEach(n=>{const r=n[e.prop]&&n[e.prop].length>0?n[e.prop]:[];t=t.concat(r),a.push({roleid:n.roleid,data:r,rolename:n.rolename})}),{result:t.filter((n,r,l)=>l.indexOf(n)===r),ids:a}},getViewData(i){let e=[];return this.hasData.forEach((t,a)=>{let s=t.grants.filter(r=>r.syscodegenid==i.syscodegenid)[0],n=this.selectedRows.filter(r=>r.id==t.roleid)[0];s&&e.push(Object.assign({},{...s},{roleid:t.roleid,rolename:n.name,getgrant:s.getgrant?s.getgrant.split(","):[],addgrant:s.addgrant?s.addgrant.split(","):[],editgrant:s.editgrant?s.editgrant.split(","):[],delgrant:s.delgrant?s.delgrant.split(","):[],allocationgrant:s.allocationgrant?s.allocationgrant.split(","):[],sharegrant:s.sharegrant?s.sharegrant.split(","):[]}))}),e},getOrgDetail(){return R.getOrgDetail({roleId:this.selectedRowKeys[0]}).then(i=>{let e=i.data.grants.map(t=>Object.assign(t,{getgrant:[],addgrant:[],editgrant:[],delgrant:[],allocationgrant:[],sharegrant:[]}));this.loadData=[...e]})},ownMenuInfo(){if(this.selectedRowKeys.length!==0)return h.sysRoleDataControlDetailRoles({roleids:this.selectedRowKeys.join(",")}).then(i=>{this.hasData=i.data})},getDictionary(i){return this.dict=this.$options.filters.dictData(i),this.dict}}};var N=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"trees-list",style:{height:e.treeHeight}},[e._l(e.treeData,function(a){return[t("div",{staticClass:"list-item"},[t("div",{staticClass:"item-name"},[t("i",{staticClass:"el-icon-menu"}),e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.syscodegenname))+" ")])]),t("div",{staticStyle:{"padding-left":"23px"}},e._l(e.columns,function(s){return t("div",{staticClass:"item-name"},[t("div",[t("i",{staticClass:"gd-icons gd-icon-xiangqing_shujuxiangqing"}),e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transKey}`,s.label))+" ")]),t("div",{staticClass:"item-data"},[t("div",{staticClass:"item-data-list"},[e._l(e.dicts,function(n){return[t("div",{staticClass:"item-name item-named"},[a[`${s.prop}${n.code}Role`].length>0?t("el-tooltip",{attrs:{placement:"right"}},[e._l(a[`${s.prop}${n.code}Role`],function(r){return t("template",{slot:"content"},[e._v(" "+e._s(r.rolename)+" ")])}),t("div",{class:a[s.prop].includes(n.code)?"item-named-title":"item-named-title-err"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transKey}`,n.name))+" "),t("i",{class:a[s.prop].includes(n.code)?"gd-icons gd-icon-zhengque":"gd-icons gd-icon-cuowu"})])],2):t("div",{class:a[s.prop].includes(n.code)?"item-named-title":"item-named-title-err"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transKey}`,n.name))+" "),t("i",{class:a[s.prop].includes(n.code)?"gd-icons gd-icon-zhengque":"gd-icons gd-icon-cuowu"})])],1)]})],2)])])}),0)]})],2)])},j=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],E=d.normalizeComponent(A,N,j,!1,null,"684c74a0",null,null);const O=E.exports;const z={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400}},data(){return{confirmLoading:!1,viewData:[],viewDatas:[],hasData:[],isPlanSaving:!1}},computed:{treeHeight(){return`${this.height}px`},selArr(){}},components:{dataItem:p},watch:{selectedRowKeys:{handler(i){i.length!==0&&this.init()},deep:!0,immediate:!0}},methods:{openItem(i){let e=[...this.viewData];const t=a=>(a=a.filter((s,n)=>(s.id===i.id&&(s.open=!s.open),s.children&&s.children.length>0&&(s.children=t(s.children)),!0)),a);t(e),this.viewData=[...e]},appOpen(i,e){let t=[...this.viewData];t[i].open=!t[i].open,this.viewData=[...t]},init(i){if(!this.isPlanSaving){if(this.confirmLoading=!0,this.isPlanSaving=!0,this.viewDatas.length==0){Promise.all([this.getList(),this.getLists(i)]).then(e=>{this.compareViewData()});return}Promise.all([this.getLists(i)]).then(e=>{this.compareViewData()})}},compareViewData(i){let e=[];this.hasData=this.hasData.map((s,n)=>{let r=this.getViewData(s.list);return this.selectedRowKeys.includes(s.roleid)&&(e=e.concat(r)),Object.assign(s,{arr:r,name:this.selectedRows[n].name})});let t=this.viewDatas;const a=s=>(s=s.filter((n,r)=>{let l=[];return this.hasData.forEach(o=>{o.arr.includes(n.id)&&l.push({id:o.roleid,name:o.name})}),n.open=!0,n.exists=e.includes(n.id),n.hasExists=l,n.children&&n.children.length>0&&(n.children=a(n.children)),!0}),s);a(t),this.confirmLoading=!1,this.viewData=t,this.isPlanSaving=!1},getViewData(i){let e=[];const t=a=>(a=a.filter((s,n)=>(s.type==1&&e.push(s.id),s.viewlist&&s.viewlist.length>0&&(s.viewlist=t(s.viewlist)),s.formlist&&s.formlist.length>0&&(s.formlist=t(s.formlist)),s.btnlist&&s.btnlist.length>0&&(s.btnlist=t(s.btnlist)),!0)),a);return t(i),e},getList(){return h.sysRoleViewOnBtnList({roleId:this.selectedRowKeys[0]}).then(i=>{if(i.code==200){const e=(a,s)=>(a=a.filter((n,r)=>{n.parentId=s,n.open=!0,n.transkey=n.transkey?n.transkey:null,n.menusType=n.formlist&&n.viewlist?0:n.btnlist?1:2;let l=[];return n.viewlist&&n.viewlist.length>0&&(n.viewlist.map(o=>(o.iconClass="gd-icon-shitumoshi",o)),l=l.concat(n.viewlist)),n.formlist&&n.formlist.length>0&&(n.formlist.map(o=>(o.iconClass="gd-icon-biaodanmoshi",o)),l=l.concat(n.formlist)),n.btnlist&&n.btnlist.length>0&&(l=l.concat(n.btnlist)),l.length>0&&(n.children=e(l,n.id)),!0}),a);let t=JSON.parse(JSON.stringify(i.data.list));e(t,0),this.viewDatas=[...t]}return i})},getLists(i){return h.viewOnBtnRoleLists({roleIds:i?i.join(","):this.selectedRowKeys.join(",")}).then(e=>{let t=[];for(let a in e.data)t.push(e.data[a]);this.hasData=t})},refresh(){}}};var k=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"trees-list",style:{height:e.treeHeight}},[e.viewData?t("div",[t("dataItem",{attrs:{record:e.viewData,selArr:e.selArr},on:{open:e.openItem}})],1):e._e()])])},q=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],T=d.normalizeComponent(z,k,q,!1,null,"1d2b29c4",null,null);const H=T.exports;const V={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400},appsId:{type:String,default:""}},data(){return{applicationList:[],menuData:[],defaultProps:{children:"children",label:"title"},systemMenuAll:[],haveMenu:[],exists:!1,menuDatas:null,confirmLoading:!1,isPlanSaving:!1,isShow:!1}},components:{dataItem:p},computed:{treeHeight(){return`${this.height}px`}},watch:{selectedRowKeys:{handler(i){i.length!==0&&this.init()},deep:!0,immediate:!0}},mounted(){this.init()},methods:{openItem(i){let e=[...this.menuData];const t=a=>(a=a.filter((s,n)=>(s.id===i.id&&(s.open=!s.open),s.children&&s.children.length>0&&(s.children=t(s.children)),!0)),a);t(e),this.menuData=[...e]},appOpen(i,e){let t=[...this.menuData];t[i].open=!t[i].open,this.menuData=[...t]},refresh(){},init(){this.isPlanSaving||(this.confirmLoading=!0,this.isPlanSaving=!0,Promise.all([this.getMenuList(),this.getApplicationList(),this.ownMenuInfo()]).then(i=>{if(this.systemMenuAll.length==0&&this.applicationList.length==0){this.isShow=!0,this.confirmLoading=!1;return}const e=s=>(s=s.filter((n,r)=>(n.open=!0,n.exists=!1,n.hasExists=[],n.menusType=n.type,n.children&&n.children.length>0&&(n.children=e(n.children)),!0)),s);e(this.systemMenuAll);let t=[],a=this.applicationList.filter(s=>{const n=this.systemMenuAll.filter(r=>r.application===s.code);return n.length>0?(t=t.concat([...n]),s.children=[...n],s.open=!0,!0):!1});this.menuData=a,this.isShow=!1,this.compareMenuData(a)}))},async compareMenuData(i){let e=this.haveMenu,t=this.selectedRows.map(a=>{let s=[];for(let n in e)n==a.id&&(s=e[n]);return{...a,children:s}});if(!this.haveMenu){console.log("\u6570\u636E\u7ED3\u6784\u4E0D\u5B8C\u6574");return}this.compareMenuNodes(i,t),this.confirmLoading=!1},async compareMenuNodes(i,e){!Array.isArray(i)||(i.map(t=>{let a=[];e.forEach(s=>{s.children.filter(r=>r.id==t.id)[0]&&a.push({id:s.id,name:s.name})}),t.exists=a.length>0,t.hasExists=a,t.children&&Array.isArray(t.children)&&this.compareMenuNodes(t.children,e)}),this.isPlanSaving=!1)},ownMenuInfo(){if(this.selectedRowKeys.length!==0)return this.selectedRowKeys.map(i=>i).join(","),h.ownMenuInfo({roleids:this.selectedRowKeys}).then(i=>(this.haveMenu=i.data,i))},getMenuList(){let i={AppsId:this.appsId};return _.sysMenuListByAppsId(i).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getApplicationList(){if(this.selectedRowKeys.length!==0)return m.getAppListByAppsId({appsId:this.appsId}).then(i=>(i.code===200&&(this.applicationList=i.data),i))}}};var B=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"trees-list",style:{height:e.treeHeight}},[e.menuData.length>0?t("div",[e._l(e.menuData,function(a,s){return[t("div",{staticClass:"app-list-name"},[a.children&&a.children.length>0?t("i",{class:a.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(n){return e.appOpen(s,a)}}}):e._e(),e._v(" "+e._s(a.name)+" ")]),a.open?t("div",{staticStyle:{"padding-left":"20px"}},[t("dataItem",{attrs:{record:a.children},on:{open:e.openItem}})],1):e._e()]})],2):e.isShow?t("div",{staticClass:"empty"},[e._m(1),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):e._e()])])},F=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])},function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],G=d.normalizeComponent(V,B,F,!1,null,"b0971196",null,null);const U=G.exports;const J={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400}},data(){return{hasData:[],confirmLoading:!1,isPlanSaving:!1}},watch:{selectedRowKeys:{handler(i){this.init()},deep:!0,immediate:!0}},computed:{treeHeight(){return`${this.height}px`},columns(){return[{transKey:"gd.btn.view",prop:"readmetadata",label:"\u67E5\u770B"},{transKey:"gd.btn.rename",prop:"rename",label:"\u91CD\u547D\u540D"},{transKey:"gd.btn.del",prop:"delete",label:"\u5220\u9664"},{transKey:"gd.btn.administrativePermissions",prop:"manageprem",label:"\u7BA1\u7406\u6743\u9650"},{transKey:"gd.btn.move",prop:"move",label:"\u79FB\u52A8"},{transKey:"gd.btn.createfile",prop:"createfile",label:"\u521B\u5EFA\u6587\u4EF6"},{transKey:"gd.btn.createSubfolders",prop:"createsubfolder",label:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939"},{transKey:"gd.btn.download",prop:"download",label:"\u4E0B\u8F7D"}]},...d.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{refresh(){},init(){this.selectedRowKeys.length!=0&&(this.isPlanSaving||(this.confirmLoading=!0,this.isPlanSaving=!0,h.docObjectsRolesGetByRoles({roleIds:this.selectedRowKeys.join(",")}).then(i=>{let e=[],t=new Set,a=new Map;this.selectedRows.forEach(s=>{let n=i.data[s.id];n.length>0&&n.forEach(r=>{if(this.columns.forEach(l=>{let o=this.getData(r,l,s);a.set(`${l.prop}Role`,o.ids)}),t.has(r.sysdocobjectid)){let l=e.find(o=>o.sysdocobjectid===r.sysdocobjectid);l&&this.columns.forEach(o=>{let c=`${o.prop}Role`,g=Object.fromEntries(a)[c];l[c]?(l[c]=[...l[c],...g],l[c]=l[c].filter((v,y,w)=>y===w.findIndex(b=>b.roleid===v.roleid))):l[c]=g})}else{t.add(r.sysdocobjectid);let l=Object.assign({},r,Object.fromEntries(a));e.push(l)}})}),this.confirmLoading=!1,this.isPlanSaving=!1,this.hasData=e})))},getData(i,e,t){let a=[],s=[],n=i[e.prop];return a=a.concat(n),s.push({roleid:t.id,data:n,rolename:t.name}),{result:a.filter((l,o,c)=>c.indexOf(l)===o),ids:s}}}};var Q=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"doc-pemissions"},e._l(e.hasData,function(a){return t("div",[t("div",{staticClass:"lists"},[e._v(" "+e._s(a.name)+" ")]),t("div",{staticClass:"doc-item"},e._l(e.columns,function(s){return t("div",{staticClass:"doc-item-col"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transKey}`,s.label))+" "),t("div",{staticClass:"doc-tool"},[a[`${s.prop}Role`].length>0?t("el-tooltip",{attrs:{placement:"right"}},[e._l(a[`${s.prop}Role`],function(n){return t("template",{slot:"content"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[n.data?t("span",[e._v(e._s(n.rolename))]):e._e(),n.data===1?t("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(e.$i18nt("gd.user.allow","\u5141\u8BB8")))]):n.data===2?t("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(e.$i18nt("gd.user.refuse","\u62D2\u7EDD")))]):e._e()])])}),t("div",[a[`${s.prop}Role`].some(n=>n.data=="2")?t("el-tag",{attrs:{type:"danger",size:"small"}},[e._v(" "+e._s(e.$i18nt("gd.user.refuse","\u62D2\u7EDD"))+" ")]):a[`${s.prop}Role`].some(n=>n.data=="1")?t("el-tag",{attrs:{size:"small"}},[e._v(" "+e._s(e.$i18nt("gd.user.allow","\u5141\u8BB8"))+" ")]):e._e()],1)],2):e._e()],1)])}),0)])}),0)])},W=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],X=d.normalizeComponent(J,Q,W,!1,null,"397d5998",null,null);const Y=X.exports;const Z={name:"GdUserPermissions",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},components:{MenuPermissions:S,DataPermissions:O,ViewOnBtnPermissions:H,AppPermissions:U,DccPermissions:Y},data(){return{searcLoading:!1,loading:!1,userId:"",userList:[],fkEntityName:"sys_user",activeName:"first",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left"}],allRowData:[],queryParam:{},disabledRowId:[],loadData:async i=>h.getRolePage(Object.assign(i,this.queryParam,{sysAppsId:window.$systemInfo.id})).then(async e=>{let t=await this.getUseRole();if(!t||t.length===0)return{rows:[],total:0};console.log(t);let a=e.data&&e.data.rows?e.data.rows:Array.isArray(e.data)?e.data:[];const s=t.map(r=>r),n=a.filter(r=>s.includes(r.id));return this.selectedRowKeys=s,this.selectedRows=n,{rows:n,total:n.length}}),listData:[],appsId:null}},computed:{styled(){return`height:${this.height+76}px`},getHeight(){return this.height+20},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},mounted(){this.activeName="first",this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName].refresh()},0)})},methods:{handleClick(i){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName].refresh(this.selectedRowKeys)},0)})},query(){this.refresh()},refresh(){this.$refs.table.refresh(!0)},searchData(i){this.searcLoading=!0,D.baseFkList({name:i,fkEntityName:this.fkEntityName}).then(e=>{e.code===200&&(this.userList=e.data),this.searcLoading=!1})},change(i){i!==""&&this.refresh()},getUseRole(){return this.loading=!0,this.userId?f.sysUserOwnRole({id:this.userId}).then(i=>(this.loading=!1,this.listData=i.data,i.data)):(this.loading=!1,[])},onSelectChange(i,e){this.selectedRowKeys=i,this.selectedRows=e},getAppId(){f.getConfigInfoByCode({code:"App_Id"}).then(i=>{console.log(i),i.code===200&&(this.appsId=i.data?i.data.value:"")})}},created(){this.getAppId(),this.searchData("")}};var ee=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex"}},[t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[t("div",{staticClass:"page-view-trees",style:e.styled},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"trees-operatorl"},[t("el-select",{staticClass:"treesr-input",attrs:{placeholder:e.$i18nt("gd.teamSharing.name","\u89D2\u8272\u540D"),clearable:"",filterable:"",loading:e.searcLoading,"remote-method":e.searchData,clearable:"",remote:""},on:{change:e.change},model:{value:e.userId,callback:function(a){e.userId=a},expression:"userId"}},e._l(e.userList,function(a){return t("el-option",{key:a.id,attrs:{label:a.name,value:a.id}})}),1),t("div",{staticClass:"treesr-search",on:{click:e.query}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"trees-list"},[t("gd-tables",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,filtering:!1,height:e.getHeight,disabledColumnSettings:!0,disabledRefresh:!0,density:!1,selectedRowKeys:e.selectedRowKeys,initialLoading:!1,showPagination:!1,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:a,row:s}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""}})]}}])})],1)])]),t("div",{staticClass:"page-view-list",staticStyle:{"margin-left":"20px",flex:"1"}},[t("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(a){e.activeName=a},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.menuRole","\u83DC\u5355\u6743\u9650"),name:"first",lazy:!0}},[e.activeName=="first"?t("MenuPermissions",{ref:"first",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.dataRole","\u6570\u636E\u6743\u9650"),name:"second",lazy:!0}},[e.activeName=="second"?t("DataPermissions",{ref:"second",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.viewOnBtnRole","\u89C6\u56FE/\u8868\u5355\u6743\u9650"),name:"third",lazy:!0}},[e.activeName=="third"?t("ViewOnBtnPermissions",{ref:"third",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.appRole","APP\u6743\u9650"),name:"fourth",lazy:!0}},[e.activeName=="fourth"?t("AppPermissions",{ref:"fourth",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height,appsId:e.appsId}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.documentRole","\u6587\u6863\u89D2\u8272\u6743\u9650"),name:"five",lazy:!0}},[e.activeName=="five"?t("DccPermissions",{ref:"five",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height}}):e._e()],1)],1)],1)])},te=[],se=d.normalizeComponent(Z,ee,te,!1,null,"7f548407",null,null);const u=se.exports;u.install=function(i){i.component(u.name,u)};exports.GDpackage=u;
1
+ "use strict";const d=require("./components.chartbi.13a8a7b5.js"),f=require("./http.usermanage.6dcbc7de.js"),h=require("./http.rolemanage.4d1101dd.js"),D=require("./http.main.2f8a6936.js"),m=require("./http.appmanage.b998818f.js"),_=require("./http.menumanage.6d740f2c.js"),R=require("./http.orgmanage.5162fd7a.js");const C={name:"dataItem",props:{record:{type:Array,default:()=>[]}},mounted(){},methods:{open(i){console.log(this.record,this.exists),this.$emit("open",i)}}};var $=function(){var e=this,t=e._self._c;return t("div",[e._l(e.record,function(a){return[t("div",{staticClass:"list-item"},[a.menusType!==2?t("div",{staticClass:"item-name"},[a.menusType!==1&&a.children&&a.children.length>0?t("i",{class:a.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(s){return e.open(a)}}}):e._e(),a.iconClass?t("i",{staticClass:"gd-icons",class:a.iconClass,staticStyle:{"font-size":"15px"}}):e._e(),e._v(" "+e._s(a.name)+" ")]):e._e(),a.menusType!==0?t("div",{class:a.exists?"item-activet":"item-actives"},[a.hasExists.length>0?t("el-tooltip",{attrs:{placement:"left"}},[e._l(a.hasExists,function(s){return t("template",{slot:"content"},[e._v(" "+e._s(s.name)+" ")])}),t("div",{staticClass:"btn-list-item"},[e._v(" "+e._s(a.exists?e.$i18nt("gd.user.havePermission","\u6709\u6743\u9650"):e.$i18nt("gd.user.NoPermission","\u65E0\u6743\u9650"))+" ")])],2):t("div",{staticClass:"btn-list-item"},[e._v(" "+e._s(a.exists?e.$i18nt("gd.user.havePermission","\u6709\u6743\u9650"):e.$i18nt("gd.user.NoPermission","\u65E0\u6743\u9650"))+" ")])],1):e._e()]),t("div",{staticClass:"item-data"},[a.children&&a.children.length>0&&a.children[0].menusType===2?t("div",{staticClass:"item-data-list"},[e._l(a.children,function(s){return[t("div",{staticClass:"item-name item-named"},[s.hasExists.length>0?t("el-tooltip",{attrs:{placement:"right"}},[e._l(s.hasExists,function(n){return t("template",{slot:"content"},[e._v(" "+e._s(n.name)+" ")])}),t("div",{class:s.exists?"item-named-title":"item-named-title-err"},[e._v(" "+e._s(s.name)+" "),t("i",{class:s.exists?"gd-icons gd-icon-zhengque":"gd-icons gd-icon-cuowu"})])],2):t("div",{class:s.exists?"item-named-title":"item-named-title-err"},[e._v(" "+e._s(s.name)+" "),t("i",{class:s.exists?"gd-icons gd-icon-zhengque":"gd-icons gd-icon-cuowu"})])],1)]})],2):e._e()]),a.children&&a.children.length>0&&a.children[0].menusType!==2?t("div",{staticClass:"list-more"},[a.open?t("dataItem",{attrs:{record:a.children},on:{open:e.open}}):e._e()],1):e._e()]})],2)},x=[],L=d.normalizeComponent(C,$,x,!1,null,"fbb86dac",null,null);const p=L.exports;const K={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400}},data(){return{applicationList:[],menuData:null,defaultProps:{children:"children",label:"title"},systemMenuAll:[],haveMenu:[],exists:!1,menuDatas:null,confirmLoading:!1,isPlanSaving:!1}},components:{dataItem:p},computed:{treeHeight(){return`${this.height}px`}},watch:{selectedRowKeys:{handler(i){i.length!==0&&this.init()},deep:!0,immediate:!0}},mounted(){this.init()},methods:{openItem(i){let e=[...this.menuData];const t=a=>(a=a.filter((s,n)=>(s.id===i.id&&(s.open=!s.open),s.children&&s.children.length>0&&(s.children=t(s.children)),!0)),a);t(e),this.menuData=[...e],console.log(this.menuData)},appOpen(i,e){let t=[...this.menuData];t[i].open=!t[i].open,this.menuData=[...t]},refresh(){},init(){this.isPlanSaving||(this.confirmLoading=!0,this.isPlanSaving=!0,Promise.all([this.getMenuList(),this.getApplicationList(),this.ownMenuInfo()]).then(i=>{const e=s=>(s=s.filter((n,r)=>(n.open=!0,n.exists=!1,n.hasExists=[],n.menusType=n.type,n.children&&n.children.length>0&&(n.children=e(n.children)),!0)),s);e(this.systemMenuAll);let t=[],a=this.applicationList.filter(s=>{const n=this.systemMenuAll.filter(r=>r.application===s.code);return n.length>0?(t=t.concat([...n]),s.children=[...n],s.open=!0,!0):!1});this.menuData=a,this.compareMenuData(a)}))},async compareMenuData(i){let e=this.haveMenu,t=this.selectedRows.map(a=>{let s=[];for(let n in e)n==a.id&&(s=e[n]);return{...a,children:s}});if(!this.haveMenu){console.log("\u6570\u636E\u7ED3\u6784\u4E0D\u5B8C\u6574");return}this.compareMenuNodes(i,t),this.confirmLoading=!1},async compareMenuNodes(i,e){!Array.isArray(i)||(i.map(t=>{let a=[];e.forEach(s=>{s.children.filter(r=>r.id==t.id)[0]&&a.push({id:s.id,name:s.name})}),t.exists=a.length>0,t.hasExists=a,t.children&&Array.isArray(t.children)&&this.compareMenuNodes(t.children,e)}),this.isPlanSaving=!1)},ownMenuInfo(){if(this.selectedRowKeys.length!==0)return this.selectedRowKeys.map(i=>i).join(","),h.ownMenuInfo({roleids:this.selectedRowKeys}).then(i=>(this.haveMenu=i.data,i))},getMenuList(){let i={AppsId:window.$systemInfo.id};return _.sysMenuListByAppsId(i).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getApplicationList(){if(this.selectedRowKeys.length!==0)return m.getAppListByAppsId({appsId:window.$systemInfo.id}).then(i=>(i.code===200&&(this.applicationList=i.data),i))}}};var I=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"trees-list",style:{height:e.treeHeight}},[e.menuData?t("div",[e._l(e.menuData,function(a,s){return[t("div",{staticClass:"app-list-name"},[a.children&&a.children.length>0?t("i",{class:a.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(n){return e.appOpen(s,a)}}}):e._e(),e._v(" "+e._s(a.name)+" ")]),a.open?t("div",{staticStyle:{"padding-left":"20px"}},[t("dataItem",{attrs:{record:a.children},on:{open:e.openItem}})],1):e._e()]})],2):e._e()])])},P=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],M=d.normalizeComponent(K,I,P,!1,null,"add4290b",null,null);const S=M.exports;const A={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400}},watch:{selectedRowKeys:{handler(i){this.init()},deep:!0,immediate:!0}},data(){return{confirmLoading:!1,loadData:[],treeData:[],hasData:[],rolePermissionMap:{},list:[{getgrantd:["1","2"],name:["\u7528\u6237\u89D2\u8272","\u7CFB\u7EDF\u7BA1\u7406\u5458"]}],dict:{},isPlanSaving:!1}},computed:{treeHeight(){return`${this.height}px`},dicts(){return this.getDictionary("data_scope_type")},columns(){return[{transKey:"gd.btn.query",prop:"getgrant",label:"\u67E5\u8BE2"},{transKey:"gd.btn.add",prop:"addgrant",label:"\u65B0\u589E"},{transKey:"gd.btn.edit",prop:"editgrant",label:"\u7F16\u8F91"},{transKey:"gd.btn.del",prop:"delgrant",label:"\u5220\u9664"},{transKey:"gd.relation.assignment",prop:"allocationgrant",label:"\u5206\u6D3E"},{transKey:"gd.btn.share",prop:"sharegrant",label:"\u5171\u4EAB"}]},...d.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{refresh(){},init(){this.isPlanSaving||(this.confirmLoading=!0,this.isPlanSaving=!0,this.loadData.length==0?Promise.all([this.getOrgDetail(),this.ownMenuInfo()]).then(i=>{this.getData()}):Promise.all([this.ownMenuInfo()]).then(i=>{this.getData()}))},getData(){this.treeData=this.loadData.map(i=>{let e=this.getViewData(i),t=new Map,a={};return this.columns.forEach(s=>{let n=this.getTypePermission(e,s),r=this.getTypeDict(n,s);t.set(s.prop,n.result),Object.assign(a,r)}),Object.assign(i,Object.fromEntries(t),a)}),this.confirmLoading=!1,this.isPlanSaving=!1},getTypeDict(i,e){let t=new Map;return this.dicts.forEach(a=>{const s=i.ids.filter(n=>n.data.includes(a.code));t.set(`${e.prop}${a.code}Role`,s)}),Object.fromEntries(t)},getTypePermission(i,e){let t=[],a=[];return i.forEach(n=>{const r=n[e.prop]&&n[e.prop].length>0?n[e.prop]:[];t=t.concat(r),a.push({roleid:n.roleid,data:r,rolename:n.rolename})}),{result:t.filter((n,r,l)=>l.indexOf(n)===r),ids:a}},getViewData(i){let e=[];return this.hasData.forEach((t,a)=>{let s=t.grants.filter(r=>r.syscodegenid==i.syscodegenid)[0],n=this.selectedRows.filter(r=>r.id==t.roleid)[0];s&&e.push(Object.assign({},{...s},{roleid:t.roleid,rolename:n.name,getgrant:s.getgrant?s.getgrant.split(","):[],addgrant:s.addgrant?s.addgrant.split(","):[],editgrant:s.editgrant?s.editgrant.split(","):[],delgrant:s.delgrant?s.delgrant.split(","):[],allocationgrant:s.allocationgrant?s.allocationgrant.split(","):[],sharegrant:s.sharegrant?s.sharegrant.split(","):[]}))}),e},getOrgDetail(){return R.getOrgDetail({roleId:this.selectedRowKeys[0]}).then(i=>{let e=i.data.grants.map(t=>Object.assign(t,{getgrant:[],addgrant:[],editgrant:[],delgrant:[],allocationgrant:[],sharegrant:[]}));this.loadData=[...e]})},ownMenuInfo(){if(this.selectedRowKeys.length!==0)return h.sysRoleDataControlDetailRoles({roleids:this.selectedRowKeys.join(",")}).then(i=>{this.hasData=i.data})},getDictionary(i){return this.dict=this.$options.filters.dictData(i),this.dict}}};var N=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"trees-list",style:{height:e.treeHeight}},[e._l(e.treeData,function(a){return[t("div",{staticClass:"list-item"},[t("div",{staticClass:"item-name"},[t("i",{staticClass:"el-icon-menu"}),e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.syscodegenname))+" ")])]),t("div",{staticStyle:{"padding-left":"23px"}},e._l(e.columns,function(s){return t("div",{staticClass:"item-name"},[t("div",[t("i",{staticClass:"gd-icons gd-icon-xiangqing_shujuxiangqing"}),e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transKey}`,s.label))+" ")]),t("div",{staticClass:"item-data"},[t("div",{staticClass:"item-data-list"},[e._l(e.dicts,function(n){return[t("div",{staticClass:"item-name item-named"},[a[`${s.prop}${n.code}Role`].length>0?t("el-tooltip",{attrs:{placement:"right"}},[e._l(a[`${s.prop}${n.code}Role`],function(r){return t("template",{slot:"content"},[e._v(" "+e._s(r.rolename)+" ")])}),t("div",{class:a[s.prop].includes(n.code)?"item-named-title":"item-named-title-err"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transKey}`,n.name))+" "),t("i",{class:a[s.prop].includes(n.code)?"gd-icons gd-icon-zhengque":"gd-icons gd-icon-cuowu"})])],2):t("div",{class:a[s.prop].includes(n.code)?"item-named-title":"item-named-title-err"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${n.transKey}`,n.name))+" "),t("i",{class:a[s.prop].includes(n.code)?"gd-icons gd-icon-zhengque":"gd-icons gd-icon-cuowu"})])],1)]})],2)])])}),0)]})],2)])},j=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],E=d.normalizeComponent(A,N,j,!1,null,"684c74a0",null,null);const O=E.exports;const z={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400}},data(){return{confirmLoading:!1,viewData:[],viewDatas:[],hasData:[],isPlanSaving:!1}},computed:{treeHeight(){return`${this.height}px`},selArr(){}},components:{dataItem:p},watch:{selectedRowKeys:{handler(i){i.length!==0&&this.init()},deep:!0,immediate:!0}},methods:{openItem(i){let e=[...this.viewData];const t=a=>(a=a.filter((s,n)=>(s.id===i.id&&(s.open=!s.open),s.children&&s.children.length>0&&(s.children=t(s.children)),!0)),a);t(e),this.viewData=[...e]},appOpen(i,e){let t=[...this.viewData];t[i].open=!t[i].open,this.viewData=[...t]},init(i){if(!this.isPlanSaving){if(this.confirmLoading=!0,this.isPlanSaving=!0,this.viewDatas.length==0){Promise.all([this.getList(),this.getLists(i)]).then(e=>{this.compareViewData()});return}Promise.all([this.getLists(i)]).then(e=>{this.compareViewData()})}},compareViewData(i){let e=[];this.hasData=this.hasData.map((s,n)=>{let r=this.getViewData(s.list);return this.selectedRowKeys.includes(s.roleid)&&(e=e.concat(r)),Object.assign(s,{arr:r,name:this.selectedRows[n].name})});let t=this.viewDatas;const a=s=>(s=s.filter((n,r)=>{let l=[];return this.hasData.forEach(o=>{o.arr.includes(n.id)&&l.push({id:o.roleid,name:o.name})}),n.open=!0,n.exists=e.includes(n.id),n.hasExists=l,n.children&&n.children.length>0&&(n.children=a(n.children)),!0}),s);a(t),this.confirmLoading=!1,this.viewData=t,this.isPlanSaving=!1},getViewData(i){let e=[];const t=a=>(a=a.filter((s,n)=>(s.type==1&&e.push(s.id),s.viewlist&&s.viewlist.length>0&&(s.viewlist=t(s.viewlist)),s.formlist&&s.formlist.length>0&&(s.formlist=t(s.formlist)),s.btnlist&&s.btnlist.length>0&&(s.btnlist=t(s.btnlist)),!0)),a);return t(i),e},getList(){return h.sysRoleViewOnBtnList({roleId:this.selectedRowKeys[0]}).then(i=>{if(i.code==200){const e=(a,s)=>(a=a.filter((n,r)=>{n.parentId=s,n.open=!0,n.transkey=n.transkey?n.transkey:null,n.menusType=n.formlist&&n.viewlist?0:n.btnlist?1:2;let l=[];return n.viewlist&&n.viewlist.length>0&&(n.viewlist.map(o=>(o.iconClass="gd-icon-shitumoshi",o)),l=l.concat(n.viewlist)),n.formlist&&n.formlist.length>0&&(n.formlist.map(o=>(o.iconClass="gd-icon-biaodanmoshi",o)),l=l.concat(n.formlist)),n.btnlist&&n.btnlist.length>0&&(l=l.concat(n.btnlist)),l.length>0&&(n.children=e(l,n.id)),!0}),a);let t=JSON.parse(JSON.stringify(i.data.list));e(t,0),this.viewDatas=[...t]}return i})},getLists(i){return h.viewOnBtnRoleLists({roleIds:i?i.join(","):this.selectedRowKeys.join(",")}).then(e=>{let t=[];for(let a in e.data)t.push(e.data[a]);this.hasData=t})},refresh(){}}};var k=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"trees-list",style:{height:e.treeHeight}},[e.viewData?t("div",[t("dataItem",{attrs:{record:e.viewData,selArr:e.selArr},on:{open:e.openItem}})],1):e._e()])])},q=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],T=d.normalizeComponent(z,k,q,!1,null,"1d2b29c4",null,null);const H=T.exports;const V={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400},appsId:{type:String,default:""}},data(){return{applicationList:[],menuData:[],defaultProps:{children:"children",label:"title"},systemMenuAll:[],haveMenu:[],exists:!1,menuDatas:null,confirmLoading:!1,isPlanSaving:!1,isShow:!1}},components:{dataItem:p},computed:{treeHeight(){return`${this.height}px`}},watch:{selectedRowKeys:{handler(i){i.length!==0&&this.init()},deep:!0,immediate:!0}},mounted(){this.init()},methods:{openItem(i){let e=[...this.menuData];const t=a=>(a=a.filter((s,n)=>(s.id===i.id&&(s.open=!s.open),s.children&&s.children.length>0&&(s.children=t(s.children)),!0)),a);t(e),this.menuData=[...e]},appOpen(i,e){let t=[...this.menuData];t[i].open=!t[i].open,this.menuData=[...t]},refresh(){},init(){this.isPlanSaving||(this.confirmLoading=!0,this.isPlanSaving=!0,Promise.all([this.getMenuList(),this.getApplicationList(),this.ownMenuInfo()]).then(i=>{if(this.systemMenuAll.length==0&&this.applicationList.length==0){this.isShow=!0,this.confirmLoading=!1;return}const e=s=>(s=s.filter((n,r)=>(n.open=!0,n.exists=!1,n.hasExists=[],n.menusType=n.type,n.children&&n.children.length>0&&(n.children=e(n.children)),!0)),s);e(this.systemMenuAll);let t=[],a=this.applicationList.filter(s=>{const n=this.systemMenuAll.filter(r=>r.application===s.code);return n.length>0?(t=t.concat([...n]),s.children=[...n],s.open=!0,!0):!1});this.menuData=a,this.isShow=!1,this.compareMenuData(a)}))},async compareMenuData(i){let e=this.haveMenu,t=this.selectedRows.map(a=>{let s=[];for(let n in e)n==a.id&&(s=e[n]);return{...a,children:s}});if(!this.haveMenu){console.log("\u6570\u636E\u7ED3\u6784\u4E0D\u5B8C\u6574");return}this.compareMenuNodes(i,t),this.confirmLoading=!1},async compareMenuNodes(i,e){!Array.isArray(i)||(i.map(t=>{let a=[];e.forEach(s=>{s.children.filter(r=>r.id==t.id)[0]&&a.push({id:s.id,name:s.name})}),t.exists=a.length>0,t.hasExists=a,t.children&&Array.isArray(t.children)&&this.compareMenuNodes(t.children,e)}),this.isPlanSaving=!1)},ownMenuInfo(){if(this.selectedRowKeys.length!==0)return this.selectedRowKeys.map(i=>i).join(","),h.ownMenuInfo({roleids:this.selectedRowKeys}).then(i=>(this.haveMenu=i.data,i))},getMenuList(){let i={AppsId:this.appsId};return _.sysMenuListByAppsId(i).then(e=>(e.code===200&&(this.systemMenuAll=e.data),e))},getApplicationList(){if(this.selectedRowKeys.length!==0)return m.getAppListByAppsId({appsId:this.appsId}).then(i=>(i.code===200&&(this.applicationList=i.data),i))}}};var B=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"trees-list",style:{height:e.treeHeight}},[e.menuData.length>0?t("div",[e._l(e.menuData,function(a,s){return[t("div",{staticClass:"app-list-name"},[a.children&&a.children.length>0?t("i",{class:a.open?"el-icon-caret-bottom":"el-icon-caret-right",on:{click:function(n){return e.appOpen(s,a)}}}):e._e(),e._v(" "+e._s(a.name)+" ")]),a.open?t("div",{staticStyle:{"padding-left":"20px"}},[t("dataItem",{attrs:{record:a.children},on:{open:e.openItem}})],1):e._e()]})],2):e.isShow?t("div",{staticClass:"empty"},[e._m(1),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):e._e()])])},F=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])},function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],G=d.normalizeComponent(V,B,F,!1,null,"b0971196",null,null);const U=G.exports;const J={props:{selectedRows:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},height:{type:Number,default:400}},data(){return{hasData:[],confirmLoading:!1,isPlanSaving:!1}},watch:{selectedRowKeys:{handler(i){this.init()},deep:!0,immediate:!0}},computed:{treeHeight(){return`${this.height}px`},columns(){return[{transKey:"gd.btn.view",prop:"readmetadata",label:"\u67E5\u770B"},{transKey:"gd.btn.rename",prop:"rename",label:"\u91CD\u547D\u540D"},{transKey:"gd.btn.del",prop:"delete",label:"\u5220\u9664"},{transKey:"gd.btn.administrativePermissions",prop:"manageprem",label:"\u7BA1\u7406\u6743\u9650"},{transKey:"gd.btn.move",prop:"move",label:"\u79FB\u52A8"},{transKey:"gd.btn.createfile",prop:"createfile",label:"\u521B\u5EFA\u6587\u4EF6"},{transKey:"gd.btn.createSubfolders",prop:"createsubfolder",label:"\u521B\u5EFA\u5B50\u6587\u4EF6\u5939"},{transKey:"gd.btn.download",prop:"download",label:"\u4E0B\u8F7D"}]},...d.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{refresh(){},init(){this.selectedRowKeys.length!=0&&(this.isPlanSaving||(this.confirmLoading=!0,this.isPlanSaving=!0,h.docObjectsRolesGetByRoles({roleIds:this.selectedRowKeys.join(",")}).then(i=>{let e=[],t=new Set,a=new Map;this.selectedRows.forEach(s=>{let n=i.data[s.id];n.length>0&&n.forEach(r=>{if(this.columns.forEach(l=>{let o=this.getData(r,l,s);a.set(`${l.prop}Role`,o.ids)}),t.has(r.sysdocobjectid)){let l=e.find(o=>o.sysdocobjectid===r.sysdocobjectid);l&&this.columns.forEach(o=>{let c=`${o.prop}Role`,g=Object.fromEntries(a)[c];l[c]?(l[c]=[...l[c],...g],l[c]=l[c].filter((v,y,w)=>y===w.findIndex(b=>b.roleid===v.roleid))):l[c]=g})}else{t.add(r.sysdocobjectid);let l=Object.assign({},r,Object.fromEntries(a));e.push(l)}})}),this.confirmLoading=!1,this.isPlanSaving=!1,this.hasData=e})))},getData(i,e,t){let a=[],s=[],n=i[e.prop];return a=a.concat(n),s.push({roleid:t.id,data:n,rolename:t.name}),{result:a.filter((l,o,c)=>c.indexOf(l)===o),ids:s}}}};var Q=function(){var e=this,t=e._self._c;return t("div",{ref:"treesList"},[e.selectedRows.length===0?t("div",{staticClass:"empty"},[e._m(0),t("div",{staticClass:"empty-title"},[t("span",[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]):t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"doc-pemissions"},e._l(e.hasData,function(a){return t("div",[t("div",{staticClass:"lists"},[e._v(" "+e._s(a.name)+" ")]),t("div",{staticClass:"doc-item"},e._l(e.columns,function(s){return t("div",{staticClass:"doc-item-col"},[e._v(" "+e._s(e.$i18nt(`Dynamics.${s.transKey}`,s.label))+" "),t("div",{staticClass:"doc-tool"},[a[`${s.prop}Role`].length>0?t("el-tooltip",{attrs:{placement:"right"}},[e._l(a[`${s.prop}Role`],function(n){return t("template",{slot:"content"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[n.data?t("span",[e._v(e._s(n.rolename))]):e._e(),n.data===1?t("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(e.$i18nt("gd.user.allow","\u5141\u8BB8")))]):n.data===2?t("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(e.$i18nt("gd.user.refuse","\u62D2\u7EDD")))]):e._e()])])}),t("div",[a[`${s.prop}Role`].some(n=>n.data=="2")?t("el-tag",{attrs:{type:"danger",size:"small"}},[e._v(" "+e._s(e.$i18nt("gd.user.refuse","\u62D2\u7EDD"))+" ")]):a[`${s.prop}Role`].some(n=>n.data=="1")?t("el-tag",{attrs:{size:"small"}},[e._v(" "+e._s(e.$i18nt("gd.user.allow","\u5141\u8BB8"))+" ")]):e._e()],1)],2):e._e()],1)])}),0)])}),0)])},W=[function(){var i=this,e=i._self._c;return e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})])}],X=d.normalizeComponent(J,Q,W,!1,null,"397d5998",null,null);const Y=X.exports;const Z={name:"GdUserPermissions",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},components:{MenuPermissions:S,DataPermissions:O,ViewOnBtnPermissions:H,AppPermissions:U,DccPermissions:Y},data(){return{searcLoading:!1,loading:!1,userId:"",userList:[],fkEntityName:"sys_user",activeName:"first",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left"}],allRowData:[],queryParam:{},disabledRowId:[],loadData:async i=>h.getRolePage(Object.assign(i,this.queryParam,{sysAppsId:window.$systemInfo.id})).then(async e=>{let t=await this.getUseRole();if(!t||t.length===0)return{rows:[],total:0};console.log(t);let a=e.data&&e.data.rows?e.data.rows:Array.isArray(e.data)?e.data:[];const s=t.map(r=>r),n=a.filter(r=>s.includes(r.id));return this.selectedRowKeys=s,this.selectedRows=n,{rows:n,total:n.length}}),listData:[],appsId:null}},computed:{styled(){return`height:${this.height+76}px`},getHeight(){return this.height+20},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...d.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},mounted(){this.activeName="first",this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName].refresh()},0)})},methods:{handleClick(i){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName].refresh(this.selectedRowKeys)},0)})},query(){this.refresh()},refresh(){this.$refs.table.refresh(!0)},searchData(i){this.searcLoading=!0,D.baseFkList({name:i,fkEntityName:this.fkEntityName}).then(e=>{e.code===200&&(this.userList=e.data),this.searcLoading=!1})},change(i){i!==""&&this.refresh()},getUseRole(){return this.loading=!0,this.userId?f.sysUserOwnRole({id:this.userId}).then(i=>(this.loading=!1,this.listData=i.data,i.data)):(this.loading=!1,[])},onSelectChange(i,e){this.selectedRowKeys=i,this.selectedRows=e},getAppId(){f.getConfigInfoByCode({code:"App_Id"}).then(i=>{console.log(i),i.code===200&&(this.appsId=i.data?i.data.value:"")})}},created(){this.getAppId(),this.searchData("")}};var ee=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex"}},[t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[t("div",{staticClass:"page-view-trees",style:e.styled},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"trees-operatorl"},[t("el-select",{staticClass:"treesr-input",attrs:{placeholder:e.$i18nt("gd.teamSharing.name","\u89D2\u8272\u540D"),clearable:"",filterable:"",loading:e.searcLoading,"remote-method":e.searchData,clearable:"",remote:""},on:{change:e.change},model:{value:e.userId,callback:function(a){e.userId=a},expression:"userId"}},e._l(e.userList,function(a){return t("el-option",{key:a.id,attrs:{label:a.name,value:a.id}})}),1),t("div",{staticClass:"treesr-search",on:{click:e.query}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"trees-list"},[t("gd-tables",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,filtering:!1,height:e.getHeight,disabledColumnSettings:!0,disabledRefresh:!0,density:!1,selectedRowKeys:e.selectedRowKeys,initialLoading:!1,showPagination:!1,disabledRowId:e.disabledRowId},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:a,row:s}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:s,highlight:""}})]}}])})],1)])]),t("div",{staticClass:"page-view-list",staticStyle:{"margin-left":"20px",flex:"1"}},[t("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(a){e.activeName=a},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.menuRole","\u83DC\u5355\u6743\u9650"),name:"first",lazy:!0}},[e.activeName=="first"?t("MenuPermissions",{ref:"first",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.dataRole","\u6570\u636E\u6743\u9650"),name:"second",lazy:!0}},[e.activeName=="second"?t("DataPermissions",{ref:"second",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.viewOnBtnRole","\u89C6\u56FE/\u8868\u5355\u6743\u9650"),name:"third",lazy:!0}},[e.activeName=="third"?t("ViewOnBtnPermissions",{ref:"third",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.appRole","APP\u6743\u9650"),name:"fourth",lazy:!0}},[e.activeName=="fourth"?t("AppPermissions",{ref:"fourth",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height,appsId:e.appsId}}):e._e()],1),t("el-tab-pane",{attrs:{label:e.$i18nt("gd.permissions.documentRole","\u6587\u6863\u89D2\u8272\u6743\u9650"),name:"five",lazy:!0}},[e.activeName=="five"?t("DccPermissions",{ref:"five",attrs:{selectedRows:e.selectedRows,selectedRowKeys:e.selectedRowKeys,height:e.height}}):e._e()],1)],1)],1)])},te=[],se=d.normalizeComponent(Z,ee,te,!1,null,"7f548407",null,null);const u=se.exports;u.install=function(i){i.component(u.name,u)};exports.GDpackage=u;
@@ -1,4 +1,4 @@
1
- import { m as n, n as r } from "./components.chartbi.571c5ff5.mjs";
1
+ import { m as n, n as r } from "./components.chartbi.7356b244.mjs";
2
2
  import { a as u, b as g, s as m, c as h, d as p, e as f, f as y, g as b, h as v, i as $ } from "./http.pluginmanage.54720675.mjs";
3
3
  import { t as c } from "./utils.mixins.js.be01e599.mjs";
4
4
  const w = {