gds-plus-design-vue 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/approvalModel.a26e8ff6.mjs +340 -0
- package/lib/approvalModel.cfd81971.js +1 -0
- package/lib/btnFunctionName.9aabfed0.js +1 -0
- package/lib/btnFunctionName.d08627cb.mjs +254 -0
- package/lib/btnRelation.8e608261.mjs +156 -0
- package/lib/btnRelation.cb3dc022.js +1 -0
- package/lib/businessRules.754cc398.mjs +539 -0
- package/lib/businessRules.f41f7035.js +1 -0
- package/lib/buttonRule.4483314f.mjs +396 -0
- package/lib/buttonRule.645de1d3.js +1 -0
- package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
- package/lib/chartDisplayRules.fedfefe8.js +1 -0
- package/lib/components.chartbi.470b96af.mjs +1798 -0
- package/lib/components.chartbi.e9459775.js +8 -0
- package/lib/components.coloreditor.affa0400.mjs +1505 -0
- package/lib/components.coloreditor.dbec8da6.js +6 -0
- package/lib/components.dataassign.39281072.mjs +147 -0
- package/lib/components.dataassign.b6a1bffb.js +1 -0
- package/lib/components.echarts.95ffc3b3.mjs +811 -0
- package/lib/components.echarts.d09e9850.js +4 -0
- package/lib/components.exception.11315db5.js +1 -0
- package/lib/components.exception.facf9df9.mjs +61 -0
- package/lib/components.form.56ea8f98.js +41 -0
- package/lib/components.form.a7b3ea37.mjs +7813 -0
- package/lib/components.globalheader.0a7ce959.js +1 -0
- package/lib/components.globalheader.4a5f7225.mjs +54 -0
- package/lib/components.iconselector.0c03cfc7.js +1 -0
- package/lib/components.iconselector.251c29b9.mjs +1169 -0
- package/lib/components.imgpreview.5546e541.mjs +213 -0
- package/lib/components.imgpreview.706a89f0.js +1 -0
- package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
- package/lib/components.lunccalendar.fe7db238.js +1 -0
- package/lib/components.middleware.01601349.js +1 -0
- package/lib/components.middleware.f5f4ac0f.mjs +148 -0
- package/lib/components.modaltitle.5ded43f9.mjs +127 -0
- package/lib/components.modaltitle.cc9ba616.js +1 -0
- package/lib/components.multitab.0f9da9f3.mjs +140 -0
- package/lib/components.multitab.726cff2f.js +1 -0
- package/lib/components.selecttree.1a71c963.mjs +170 -0
- package/lib/components.selecttree.2fadffca.js +1 -0
- package/lib/components.settingdrawer.1af86231.js +1 -0
- package/lib/components.settingdrawer.adc262cf.mjs +237 -0
- package/lib/components.sidemenu.03442146.mjs +277 -0
- package/lib/components.sidemenu.5107c7e3.js +1 -0
- package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
- package/lib/components.sidenavmenu.ef33de39.js +1 -0
- package/lib/components.statuschange.805a751b.mjs +116 -0
- package/lib/components.statuschange.83646c5d.js +1 -0
- package/lib/components.table.61eb5d81.js +8 -0
- package/lib/components.table.c986e58d.mjs +4650 -0
- package/lib/components.tableumy.35b465f9.mjs +453 -0
- package/lib/components.tableumy.eba43953.js +1 -0
- package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
- package/lib/components.tablevirtual.6af04c44.js +1 -0
- package/lib/components.teamsharing.68865424.js +1 -0
- package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
- package/lib/components.tooltip.ccb1717d.mjs +86 -0
- package/lib/components.tooltip.e2e21e66.js +1 -0
- package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
- package/lib/components.uploadfile.e93b500d.js +1 -0
- package/lib/components.uploadimg.3804913e.js +1 -0
- package/lib/components.uploadimg.e49707d9.mjs +192 -0
- package/lib/components.verificationcode.5a9c0220.js +1 -0
- package/lib/components.verificationcode.ead74922.mjs +71 -0
- package/lib/components.viewformdetails.3c1596ad.js +1 -0
- package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
- package/lib/components.viewloading.5b178ec5.js +1 -0
- package/lib/components.viewloading.cb7917b7.mjs +99 -0
- package/lib/components.watermark.849409ca.js +2 -0
- package/lib/components.watermark.a2521d0c.mjs +53 -0
- package/lib/components.xlsxexport.3405a00b.js +1 -0
- package/lib/components.xlsxexport.871f87d1.mjs +263 -0
- package/lib/components.xlsximport.85ce77cf.mjs +922 -0
- package/lib/components.xlsximport.e3bcb07d.js +1 -0
- package/lib/copy.b09a6d38.js +1 -0
- package/lib/copy.c0a2f16d.mjs +572 -0
- package/lib/dialogLayout.059ee256.mjs +138 -0
- package/lib/dialogLayout.cedf2865.js +1 -0
- package/lib/drawerContainer.38d7b530.mjs +154 -0
- package/lib/drawerContainer.ea7722d7.js +1 -0
- package/lib/drawerLayout.454e4921.js +1 -0
- package/lib/drawerLayout.fad843ee.mjs +119 -0
- package/lib/editForm.c199538f.mjs +434 -0
- package/lib/editForm.f9dc93ef.js +1 -0
- package/lib/flow.designer.4c83c0d3.js +1 -0
- package/lib/flow.designer.9442a995.mjs +7673 -0
- package/lib/flow.list.4a31969e.mjs +3032 -0
- package/lib/flow.list.f41ee531.js +1 -0
- package/lib/form.build.c38bf362.js +1 -0
- package/lib/form.build.fb9f905b.mjs +259 -0
- package/lib/form.designer.build.3fdf8007.js +1 -0
- package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
- package/lib/formFiled.624b8dd3.js +1 -0
- package/lib/formFiled.94fb1dce.mjs +498 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +233 -91033
- package/lib/http.appmanage.9b22ff82.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
- package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
- package/lib/http.configmanage.6cfb8ae7.js +1 -0
- package/lib/http.configmanage.c23c7fa8.mjs +34 -0
- package/lib/http.currencymanage.37ab5ced.js +1 -0
- package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
- package/lib/http.datasource.294b01e2.js +1 -0
- package/lib/http.datasource.aa5cd0d1.mjs +58 -0
- package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
- package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
- package/lib/http.duplicatechecking.ee5c414c.js +1 -0
- package/lib/http.emailmanage.1ddaa8b5.js +1 -0
- package/lib/http.emailmanage.64fd611f.mjs +18 -0
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.d3a4afd9.mjs +293 -0
- package/lib/http.filemanage.7e6e3e1a.js +1 -0
- package/lib/http.filemanage.c0de21d6.mjs +71 -0
- package/lib/http.languagemanage.2ef16159.mjs +10 -0
- package/lib/http.languagemanage.e2c098ec.js +1 -0
- package/lib/http.loginmanage.05500c29.mjs +74 -0
- package/lib/http.loginmanage.326984c3.js +1 -0
- package/lib/http.logmanage.1e12a9bd.js +1 -0
- package/lib/http.logmanage.8ba72635.mjs +82 -0
- package/lib/http.machinemanage.29d72a65.js +1 -0
- package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
- package/lib/http.main.1af1e119.mjs +517 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.menumanage.09fffb7d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.1d68e914.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
- package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
- package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
- package/lib/http.onlineusermanage.3893f897.js +1 -0
- package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
- package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.pluginmanage.54720675.mjs +82 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/http.rolemanage.da5c40e9.mjs +146 -0
- package/lib/http.solution.b10d9197.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.176d3d06.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.932ba43b.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.7adf4910.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.a9c609d5.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timersmanage.c79afb66.mjs +146 -0
- package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
- package/lib/http.timezonemanage.e0aa212f.js +1 -0
- package/lib/http.translationmanage.1f9dce46.js +1 -0
- package/lib/http.translationmanage.f8694b51.mjs +104 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.usermanage.f5491144.mjs +219 -0
- package/lib/http.webresource.1a1a768f.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.3fa2dc66.mjs +40154 -0
- package/lib/index.fe757a98.js +8 -0
- package/lib/layoutBlocks.14c77a02.js +1 -0
- package/lib/layoutBlocks.5d71a03b.mjs +401 -0
- package/lib/layouts.a662f681.js +2 -0
- package/lib/layouts.ec4f20a2.mjs +376 -0
- package/lib/main.092a2ac8.js +1 -0
- package/lib/{main.c59fc1e8.mjs → main.15237e71.mjs} +12 -10
- package/lib/main.29769f01.js +1 -0
- package/lib/main.401059c6.mjs +189 -0
- package/lib/main.447be615.js +1 -0
- package/lib/main.4e507685.mjs +231 -0
- package/lib/main.72cafa63.mjs +540 -0
- package/lib/{main.4e325110.mjs → main.73f22d9e.mjs} +9 -8
- package/lib/main.7601bd3d.mjs +166 -0
- package/lib/main.79199ac2.js +1 -0
- package/lib/main.821d081b.js +1 -0
- package/lib/main.8627466a.mjs +537 -0
- package/lib/{main.955f770e.mjs → main.88e9be9d.mjs} +4 -4
- package/lib/main.8e6f6cba.mjs +323 -0
- package/lib/main.a9a54af9.js +1 -0
- package/lib/main.e033a376.js +1 -0
- package/lib/main.e2e4ba74.js +1 -0
- package/lib/{main.be62e9a4.mjs → main.e79d9e56.mjs} +113 -188
- package/lib/main.ea3a04f4.js +1 -0
- package/lib/main.f44d8279.js +1 -0
- package/lib/messages.5f54a62e.js +9 -0
- package/lib/{messages.7e418640.mjs → messages.d4354532.mjs} +4321 -5268
- package/lib/packages.filedocument.8418d852.mjs +4039 -0
- package/lib/packages.filedocument.9b8eda0d.js +1 -0
- package/lib/page.build.4d28df9a.js +12 -0
- package/lib/page.build.78cc7396.mjs +3020 -0
- package/lib/personal.echarts.940f1cc9.mjs +696 -0
- package/lib/personal.echarts.b5a7f574.js +1 -0
- package/lib/result.0161b0e0.js +1 -0
- package/lib/result.5a9330d7.mjs +627 -0
- package/lib/router.config.79a98ab8.mjs +3105 -0
- package/lib/router.config.7fd04c30.js +1 -0
- package/lib/solution.application.3ae7c0c5.js +1 -0
- package/lib/solution.application.fdc15ffc.mjs +548 -0
- package/lib/solution.applicationmenu.67aba620.js +1 -0
- package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
- package/lib/solution.approvalflow.81b7cfb7.js +1 -0
- package/lib/solution.approvalflow.a541adcc.mjs +436 -0
- package/lib/solution.dict.addbce33.mjs +769 -0
- package/lib/solution.dict.f1c9bae6.js +1 -0
- package/lib/solution.menu.2033fa37.mjs +5834 -0
- package/lib/solution.menu.6512047f.js +1 -0
- package/lib/solution.plugin.7094dbfd.js +1 -0
- package/lib/solution.plugin.d8f057cb.mjs +347 -0
- package/lib/solution.processflow.0adf4f55.js +1 -0
- package/lib/solution.processflow.a779bd58.mjs +392 -0
- package/lib/solution.role.d35cb00d.js +1 -0
- package/lib/solution.role.d9a4b25a.mjs +456 -0
- package/lib/solution.webresources.e1421655.mjs +379 -0
- package/lib/solution.webresources.e817757c.js +1 -0
- package/lib/solution.workflow.59552b8c.mjs +395 -0
- package/lib/solution.workflow.985e1f4d.js +1 -0
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/store.config.5e5cb48a.mjs +547 -0
- package/lib/style.css +3 -3
- package/lib/system.account.1b281679.js +216 -0
- package/lib/system.account.96d5bc17.mjs +2093 -0
- package/lib/system.config.0ff45e62.js +1 -0
- package/lib/{system.config.f0d2d130.mjs → system.config.35b13003.mjs} +7 -6
- package/lib/system.datasource.4243937d.js +1 -0
- package/lib/{system.datasource.61ff56ec.mjs → system.datasource.7f582bef.mjs} +15 -64
- package/lib/{system.dict.a817cf68.mjs → system.dict.3697546d.mjs} +269 -344
- package/lib/system.dict.8e4fe6b0.js +1 -0
- package/lib/system.document.69e534a6.js +1 -0
- package/lib/system.document.8e4dbe5e.mjs +667 -0
- package/lib/system.duplicatechecking.1083eb1e.js +1 -0
- package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
- package/lib/system.email.06bb7cc1.mjs +133 -0
- package/lib/system.email.41036a31.js +1 -0
- package/lib/system.fieldsecurity.3ea880d8.js +1 -0
- package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
- package/lib/{system.file.1930d109.mjs → system.file.8ccc4569.mjs} +84 -151
- package/lib/system.file.b8e4e6a1.js +1 -0
- package/lib/system.log.14c22a7a.js +1 -0
- package/lib/{system.log.61d303bd.mjs → system.log.aad4ff54.mjs} +31 -93
- package/lib/system.machine.379beacb.js +1 -0
- package/lib/{system.machine.ed69ec93.mjs → system.machine.c47be0cc.mjs} +5 -25
- package/lib/{system.notice.bd18554e.mjs → system.notice.dc1b67cc.mjs} +1075 -1263
- package/lib/system.notice.fb151c45.js +1 -0
- package/lib/system.noticereceived.3a29d891.js +1 -0
- package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.e75bf358.mjs} +19 -27
- package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
- package/lib/system.onlineuser.fc26aff9.js +1 -0
- package/lib/system.org.b6f826e8.js +1 -0
- package/lib/{system.org.6e858bf3.mjs → system.org.dd710a91.mjs} +3 -3
- package/lib/system.permissions.75406743.mjs +972 -0
- package/lib/system.permissions.97f68887.js +1 -0
- package/lib/system.plugin.3fcf7b0b.js +1 -0
- package/lib/{system.plugin.a1f1c194.mjs → system.plugin.4b80cd95.mjs} +503 -552
- package/lib/system.pos.5a1663d8.js +1 -0
- package/lib/{system.pos.eb8fd7dd.mjs → system.pos.a3bafaaa.mjs} +31 -62
- package/lib/system.promptmanagement.53c301a3.js +1 -0
- package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
- package/lib/{system.role.d2195303.mjs → system.role.9edb5922.mjs} +601 -523
- package/lib/system.role.e164f059.js +1 -0
- package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
- package/lib/system.sumberrules.5e9cd262.js +1 -0
- package/lib/system.team.3e605266.js +1 -0
- package/lib/system.team.bb1fb40e.mjs +452 -0
- package/lib/system.teammembers.a098883b.js +1 -0
- package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.b8e53d99.mjs} +257 -199
- package/lib/system.timers.2f884e41.js +38 -0
- package/lib/{system.timers.4a3dd57d.mjs → system.timers.551c4a4b.mjs} +2202 -2278
- package/lib/system.translation.6e99c852.js +1 -0
- package/lib/{system.translation.d9488c23.mjs → system.translation.c2c1f40c.mjs} +437 -431
- package/lib/{system.user.6874aa87.mjs → system.user.b99911de.mjs} +1082 -1025
- package/lib/system.user.dffc2543.js +14 -0
- package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
- package/lib/system.useraffiliation.f8b33def.js +1 -0
- package/lib/system.webresource.1d3ed352.js +1 -0
- package/lib/{system.webresource.204911b7.mjs → system.webresource.8a8d856b.mjs} +177 -219
- package/lib/{system.welcome.79e15015.mjs → system.welcome.573a76db.mjs} +10 -3
- package/lib/system.welcome.eedf1db2.js +1 -0
- package/lib/tableDescriptions.923c4ef1.mjs +80 -0
- package/lib/tableDescriptions.b12679b0.js +1 -0
- package/lib/tcheckboxs.887d733c.mjs +52 -0
- package/lib/tcheckboxs.fe7e574a.js +1 -0
- package/lib/tcurrency.10ac9aa7.mjs +85 -0
- package/lib/tcurrency.20e959c0.js +1 -0
- package/lib/tdatepicker.54036bba.js +1 -0
- package/lib/tdatepicker.a08ad382.mjs +52 -0
- package/lib/tdictSwitch.274e9f86.js +1 -0
- package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
- package/lib/tfile.5c897827.js +1 -0
- package/lib/tfile.f63b73b9.mjs +62 -0
- package/lib/tparticipants.4698962b.mjs +56 -0
- package/lib/tparticipants.b6fb4545.js +1 -0
- package/lib/translation.mains.5cfc7a2f.js +1 -0
- package/lib/translation.mains.e6cb610b.mjs +383 -0
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.echarts.js.461a74e7.js +54 -0
- package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
- package/lib/utils.mixins.js.750ca50e.js +1 -0
- package/lib/utils.mixins.js.be01e599.mjs +41 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.885de913.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/view.build.051553d8.mjs +1578 -0
- package/lib/view.build.9af3087b.js +1 -0
- package/lib/viewList.209956c3.js +1 -0
- package/lib/viewList.c05c92be.mjs +318 -0
- package/lib/viewTree.0cd9f1a2.js +1 -0
- package/lib/viewTree.c5290360.mjs +409 -0
- package/locale/en_US.js +96 -29
- package/locale/id_ID.js +80 -13
- package/locale/vi_VN.js +2015 -1948
- package/locale/zh_CN.js +100 -33
- package/package.json +106 -105
- package/lib/chartbi.b5b6fdab.js +0 -60
- package/lib/chartbi.b6818e8e.mjs +0 -27604
- package/lib/main.6713b76c.js +0 -1
- package/lib/main.a28f67df.js +0 -1
- package/lib/main.b4a303dc.js +0 -1
- package/lib/main.f3ae0933.js +0 -1
- package/lib/messages.1346558e.js +0 -9
- package/lib/system.account.64fbdaeb.mjs +0 -2552
- package/lib/system.account.7c43a95e.js +0 -216
- package/lib/system.config.93d6cb7d.js +0 -1
- package/lib/system.datasource.4bb39222.js +0 -1
- package/lib/system.dict.5a2e60fe.js +0 -1
- package/lib/system.duplicatechecking.65b77e64.js +0 -1
- package/lib/system.duplicatechecking.751664ba.mjs +0 -2142
- package/lib/system.email.2f53252e.mjs +0 -7432
- package/lib/system.email.fec5ae26.js +0 -41
- package/lib/system.fieldsecurity.920adca4.js +0 -1
- package/lib/system.file.5a9a5e0e.js +0 -1
- package/lib/system.log.b309c0e0.js +0 -1
- package/lib/system.machine.9368e508.js +0 -1
- package/lib/system.notice.ff62c06a.js +0 -1
- package/lib/system.noticereceived.9550818b.js +0 -1
- package/lib/system.onlineuser.6cf4fe24.js +0 -1
- package/lib/system.org.0c67131d.js +0 -1
- package/lib/system.permissions.af548a3b.js +0 -9
- package/lib/system.permissions.cc5ac7ac.mjs +0 -212
- package/lib/system.plugin.83d03fb2.js +0 -1
- package/lib/system.pos.eae2051e.js +0 -1
- package/lib/system.promptmanagement.04501417.js +0 -1
- package/lib/system.role.e623c50b.js +0 -1
- package/lib/system.sumberrules.a01e1805.js +0 -1
- package/lib/system.team.0cebcde7.js +0 -1
- package/lib/system.team.27a6d5d5.mjs +0 -1000
- package/lib/system.teammembers.b67f003f.js +0 -1
- package/lib/system.timers.b27fcb6d.js +0 -38
- package/lib/system.translation.d2c982ed.js +0 -1
- package/lib/system.user.0664c21c.js +0 -14
- package/lib/system.useraffiliation.6b7a1612.js +0 -1
- package/lib/system.webresource.5de18052.js +0 -1
- package/lib/system.welcome.ec7aa744.js +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { g as C, f as T, s as S, a as R, b as L, h as I, i as x, j as P, d as D, k as N, l as B, m as M, n as A, p as _ } from "./http.rolemanage.da5c40e9.mjs";
|
|
2
|
+
import { m as f, n as g } from "./components.chartbi.470b96af.mjs";
|
|
3
|
+
import { t as k } from "./utils.mixins.js.be01e599.mjs";
|
|
4
|
+
import { g as v, i as F, p as O, j as E } from "./http.usermanage.f5491144.mjs";
|
|
5
|
+
import { e as z, d as j, a as w } from "./http.orgmanage.0b1df8d5.mjs";
|
|
6
|
+
import { S as q, c as V } from "./http.menumanage.09fffb7d.mjs";
|
|
7
|
+
import { g as G } from "./http.appmanage.9b22ff82.mjs";
|
|
8
|
+
import { u as p } from "./utils.util.js.885de913.mjs";
|
|
9
|
+
const H = {
|
|
7
10
|
data() {
|
|
8
11
|
return {
|
|
9
12
|
tableColumns: [
|
|
@@ -212,84 +215,259 @@ const j = {
|
|
|
212
215
|
};
|
|
213
216
|
}
|
|
214
217
|
};
|
|
215
|
-
const
|
|
218
|
+
const J = {
|
|
219
|
+
name: "GdRole",
|
|
220
|
+
props: {
|
|
221
|
+
height: {
|
|
222
|
+
type: Number,
|
|
223
|
+
default: 100
|
|
224
|
+
},
|
|
225
|
+
openMode: {
|
|
226
|
+
type: String,
|
|
227
|
+
default: "page"
|
|
228
|
+
},
|
|
229
|
+
openSelecteKeys: {
|
|
230
|
+
type: Array,
|
|
231
|
+
default: () => []
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
mixins: [k, H],
|
|
216
235
|
data() {
|
|
217
236
|
return {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
icon: "el-icon-document-checked"
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
record: {},
|
|
232
|
-
visible: !1,
|
|
233
|
-
confirmLoading: !1,
|
|
234
|
-
fullscreen: !1,
|
|
235
|
-
width: "800px",
|
|
236
|
-
orgTreeData: [],
|
|
237
|
-
checkedKeys: []
|
|
237
|
+
appsId: "",
|
|
238
|
+
transKey: "gd.btn.add",
|
|
239
|
+
formLoading: !1,
|
|
240
|
+
loading: !0,
|
|
241
|
+
selectedRowKeys: [],
|
|
242
|
+
selectedRows: [],
|
|
243
|
+
queryParam: {},
|
|
244
|
+
allRowData: [],
|
|
245
|
+
loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), C(Object.assign(s, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data))),
|
|
246
|
+
isDoc: ""
|
|
238
247
|
};
|
|
239
248
|
},
|
|
249
|
+
components: {
|
|
250
|
+
RoleGrant: () => Promise.resolve().then(() => se),
|
|
251
|
+
RoleMenu: () => Promise.resolve().then(() => ue),
|
|
252
|
+
RoleMenuViewForm: () => Promise.resolve().then(() => be),
|
|
253
|
+
UserAuthorization: () => Promise.resolve().then(() => Le),
|
|
254
|
+
DocumentAuthorization: () => Promise.resolve().then(() => Be)
|
|
255
|
+
},
|
|
240
256
|
computed: {
|
|
241
|
-
|
|
257
|
+
getTableButtons() {
|
|
258
|
+
return this.tableButtons.filter((s) => s.functionName === "grantRoleAppMenu" ? !!this.appsId : s.functionName === "documentAuthorizationMenu" ? this.isDoc == 1 : !0);
|
|
259
|
+
},
|
|
260
|
+
initialLoading() {
|
|
261
|
+
return this.openMode === "page";
|
|
262
|
+
},
|
|
263
|
+
selectedKeep() {
|
|
264
|
+
return this.openMode !== "page";
|
|
265
|
+
},
|
|
266
|
+
getFormColumns() {
|
|
267
|
+
return this.formColumns.filter((s) => (s.prop === "code" && (s.disabled = this.transKey !== "gd.btn.add"), !(this.transKey === "gd.https.copy" && s.prop === "code")));
|
|
268
|
+
},
|
|
269
|
+
getHeight() {
|
|
270
|
+
return this.height;
|
|
271
|
+
},
|
|
272
|
+
...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
242
273
|
},
|
|
243
274
|
methods: {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
{
|
|
251
|
-
checkedKeys: s
|
|
252
|
-
}
|
|
253
|
-
)
|
|
254
|
-
), this.closed();
|
|
275
|
+
getConfigInfo() {
|
|
276
|
+
v({
|
|
277
|
+
code: "GDS_Enable_Doc_Premissions"
|
|
278
|
+
}).then((e) => {
|
|
279
|
+
e.code === 200 && (this.isDoc = e.data.value);
|
|
280
|
+
});
|
|
255
281
|
},
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
s.
|
|
282
|
+
getAppId() {
|
|
283
|
+
v({ code: "App_Id" }).then((s) => {
|
|
284
|
+
s.code === 200 && (this.appsId = s.data ? s.data.value : "");
|
|
259
285
|
});
|
|
260
286
|
},
|
|
261
|
-
|
|
262
|
-
|
|
287
|
+
documentAuthorizationMenu() {
|
|
288
|
+
if (this.selectedRowKeys.length === 0) {
|
|
289
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
if (this.selectedRowKeys.length > 1) {
|
|
293
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
this.$refs.documentAuthorization.open(this.selectedRows[0]);
|
|
263
297
|
},
|
|
264
|
-
|
|
265
|
-
this.
|
|
298
|
+
userAuthorizationMenu() {
|
|
299
|
+
if (this.selectedRowKeys.length === 0) {
|
|
300
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
if (this.selectedRowKeys.length > 1) {
|
|
304
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
this.$refs.userAuthorization.open(this.selectedRows[0]);
|
|
266
308
|
},
|
|
267
|
-
|
|
268
|
-
this.
|
|
309
|
+
grantRoleMenu() {
|
|
310
|
+
if (this.selectedRowKeys.length === 0) {
|
|
311
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
if (this.selectedRowKeys.length > 1) {
|
|
315
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
this.$refs.roleMenu.open(this.selectedRows[0]);
|
|
319
|
+
},
|
|
320
|
+
grantRoleAppMenu() {
|
|
321
|
+
if (this.selectedRowKeys.length === 0) {
|
|
322
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
if (this.selectedRowKeys.length > 1) {
|
|
326
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
this.$refs.roleMenu.open(this.selectedRows[0], this.appsId);
|
|
330
|
+
},
|
|
331
|
+
grantRoleGrant() {
|
|
332
|
+
if (this.selectedRowKeys.length === 0) {
|
|
333
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
if (this.selectedRowKeys.length > 1) {
|
|
337
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
this.$refs.roleGrant.open(this.selectedRows[0]);
|
|
341
|
+
},
|
|
342
|
+
grantRoleVF() {
|
|
343
|
+
if (this.selectedRowKeys.length === 0) {
|
|
344
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
if (this.selectedRowKeys.length > 1) {
|
|
348
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
this.$refs.roleMenuViewForm.open(this.selectedRows[0]);
|
|
352
|
+
},
|
|
353
|
+
saveQueries(s) {
|
|
354
|
+
this.queryParam = { ...s }, this.refresh();
|
|
355
|
+
},
|
|
356
|
+
refresh() {
|
|
357
|
+
this.$refs.table.refresh();
|
|
358
|
+
},
|
|
359
|
+
editForm(s) {
|
|
360
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
|
|
361
|
+
},
|
|
362
|
+
del() {
|
|
363
|
+
if (this.selectedRowKeys.length === 0) {
|
|
364
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
368
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
369
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
370
|
+
showClose: !1,
|
|
371
|
+
confirmButtonLoading: !1,
|
|
372
|
+
cancelButtonLoading: !1,
|
|
373
|
+
closeOnClickModal: !1,
|
|
374
|
+
type: "warning",
|
|
375
|
+
confirmButtonClass: "el-button--danger",
|
|
376
|
+
customClass: "custom-alert",
|
|
377
|
+
callback: () => {
|
|
378
|
+
},
|
|
379
|
+
beforeClose: (s, e, t) => {
|
|
380
|
+
this.delHand(s, e, t);
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
},
|
|
384
|
+
delHand(s, e, t) {
|
|
385
|
+
if (s !== "confirm") {
|
|
386
|
+
t();
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
let i = [];
|
|
390
|
+
this.selectedRows.forEach((n) => {
|
|
391
|
+
let a = T(n).then((l) => l);
|
|
392
|
+
i.push(a);
|
|
393
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
|
|
394
|
+
const a = n.filter((l) => !l.success);
|
|
395
|
+
a.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + a[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
396
|
+
});
|
|
397
|
+
},
|
|
398
|
+
add() {
|
|
399
|
+
this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
400
|
+
},
|
|
401
|
+
edit() {
|
|
402
|
+
if (this.selectedRowKeys.length === 0) {
|
|
403
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
if (this.selectedRowKeys.length > 1) {
|
|
407
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
this.editForm(this.selectedRows[0]);
|
|
411
|
+
},
|
|
412
|
+
copy() {
|
|
413
|
+
if (this.selectedRowKeys.length === 0) {
|
|
414
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
if (this.selectedRowKeys.length > 1) {
|
|
418
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
this.transKey = "gd.https.copy", this.$refs.editForm.open(Object.assign({ ...this.selectedRows[0] }, { roleId: this.selectedRows[0].id }));
|
|
422
|
+
},
|
|
423
|
+
sbumit({ data: s, record: e, btn: t }, i, n) {
|
|
424
|
+
this.formLoading = !0;
|
|
425
|
+
let a = e ? this.transKey === "gd.https.copy" ? S : R : L;
|
|
426
|
+
const l = this.transKey !== "gd.https.edit" ? Object.assign(s, { sysappsid: window.$systemInfo.id }) : s;
|
|
427
|
+
a(l).then((r) => {
|
|
428
|
+
r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), n(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.formLoading = !1;
|
|
429
|
+
});
|
|
430
|
+
},
|
|
431
|
+
onSelectChange(s, e) {
|
|
432
|
+
this.selectedRowKeys = s, this.selectedRows = e, this.$emit("onSelectChange", s, e, this.allRowData);
|
|
269
433
|
},
|
|
270
434
|
doEvent(s) {
|
|
271
|
-
|
|
435
|
+
let e = s.item.functionName;
|
|
272
436
|
this[e] && this[e]();
|
|
273
437
|
}
|
|
438
|
+
},
|
|
439
|
+
created() {
|
|
440
|
+
this.getAppId(), this.getConfigInfo();
|
|
274
441
|
}
|
|
275
442
|
};
|
|
276
|
-
var
|
|
443
|
+
var U = function() {
|
|
277
444
|
var e = this, t = e._self._c;
|
|
278
|
-
return t("div", [t("
|
|
279
|
-
e.
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
445
|
+
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0, selectedKeep: e.selectedKeep, initialLoading: e.initialLoading }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: i, row: n }) {
|
|
446
|
+
return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
|
|
447
|
+
} }, { key: "operator", fn: function() {
|
|
448
|
+
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.user.roleName", "\u89D2\u8272\u540D"), clearable: "" }, nativeOn: { keyup: function(i) {
|
|
449
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
450
|
+
} }, model: { value: e.queryParam.name, callback: function(i) {
|
|
451
|
+
e.$set(e.queryParam, "name", i);
|
|
452
|
+
}, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [e.openMode === "page" ? t("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } }) : e._e()], 1)])];
|
|
453
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: n }) {
|
|
454
|
+
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
|
|
455
|
+
} }]) })], 1), t("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.formButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode }, on: { sbumit: e.sbumit } }), t("RoleGrant", { ref: "roleGrant", on: { ok: e.refresh } }), t("RoleMenu", { ref: "roleMenu", on: { ok: e.refresh } }), t("RoleMenuViewForm", { ref: "roleMenuViewForm", on: { ok: e.refresh } }), t("UserAuthorization", { ref: "userAuthorization", on: { ok: e.refresh } }), t("DocumentAuthorization", { ref: "documentAuthorization", on: { ok: e.refresh } })], 1);
|
|
456
|
+
}, Q = [], W = /* @__PURE__ */ g(
|
|
457
|
+
J,
|
|
458
|
+
U,
|
|
459
|
+
Q,
|
|
285
460
|
!1,
|
|
286
461
|
null,
|
|
287
|
-
"
|
|
462
|
+
"60edeedc",
|
|
288
463
|
null,
|
|
289
464
|
null
|
|
290
465
|
);
|
|
291
|
-
const
|
|
292
|
-
|
|
466
|
+
const m = W.exports;
|
|
467
|
+
m.install = function(s) {
|
|
468
|
+
s.component(m.name, m);
|
|
469
|
+
};
|
|
470
|
+
const X = {
|
|
293
471
|
data() {
|
|
294
472
|
return {
|
|
295
473
|
buttons: [
|
|
@@ -385,18 +563,18 @@ const J = {
|
|
|
385
563
|
currentList: {}
|
|
386
564
|
};
|
|
387
565
|
},
|
|
388
|
-
components: { RoleScope:
|
|
566
|
+
components: { RoleScope: () => Promise.resolve().then(() => ze) },
|
|
389
567
|
computed: {
|
|
390
568
|
height() {
|
|
391
569
|
return this.screenHeight - (this.fullscreen ? 120 : 310);
|
|
392
570
|
},
|
|
393
|
-
...
|
|
571
|
+
...f(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
394
572
|
},
|
|
395
573
|
methods: {
|
|
396
574
|
handleSubmit() {
|
|
397
575
|
this.confirmLoading = !0;
|
|
398
576
|
let s = this.$refs.table.tableData;
|
|
399
|
-
s.map((e) => (e.addgrant = e.addgrantd.length > 0 ? e.addgrantd.join(",") : null, e.delgrant = e.delgrantd.length > 0 ? e.delgrantd.join(",") : null, e.editgrant = e.editgrantd.length > 0 ? e.editgrantd.join(",") : null, e.getgrant = e.getgrantd.length > 0 ? e.getgrantd.join(",") : null, e.sharegrant = e.sharegrantd.length > 0 ? e.sharegrantd.join(",") : null, e.allocationgrant = e.allocationgrantd.length > 0 ? e.allocationgrantd.join(",") : null, e)),
|
|
577
|
+
s.map((e) => (e.addgrant = e.addgrantd.length > 0 ? e.addgrantd.join(",") : null, e.delgrant = e.delgrantd.length > 0 ? e.delgrantd.join(",") : null, e.editgrant = e.editgrantd.length > 0 ? e.editgrantd.join(",") : null, e.getgrant = e.getgrantd.length > 0 ? e.getgrantd.join(",") : null, e.sharegrant = e.sharegrantd.length > 0 ? e.sharegrantd.join(",") : null, e.allocationgrant = e.allocationgrantd.length > 0 ? e.allocationgrantd.join(",") : null, e)), z(
|
|
400
578
|
Object.assign(
|
|
401
579
|
{ ...this.submitData },
|
|
402
580
|
{
|
|
@@ -417,7 +595,7 @@ const J = {
|
|
|
417
595
|
this.$refs.roleScope.open({ index: t, item: s, checkedKeys: l, data: e, name: n });
|
|
418
596
|
},
|
|
419
597
|
getUserControlData() {
|
|
420
|
-
this.confirmLoading = !0,
|
|
598
|
+
this.confirmLoading = !0, j({ roleId: this.record.id }).then((s) => {
|
|
421
599
|
s.success ? (s.data.grants.map((e) => (e.addgrantd = e.addgrant ? e.addgrant.split(",") : [], e.delgrantd = e.delgrant ? e.delgrant.split(",") : [], e.editgrantd = e.editgrant ? e.editgrant.split(",") : [], e.getgrantd = e.getgrant ? e.getgrant.split(",") : [], e.sharegrantd = e.sharegrant ? e.sharegrant.split(",") : [], e.allocationgrantd = e.allocationgrant ? e.allocationgrant.split(",") : [], e)), this.loadData = s.data.grants, this.submitData = s.data, this.$nextTick(() => {
|
|
422
600
|
setTimeout(() => {
|
|
423
601
|
this.refresh(), this.confirmLoading = !0;
|
|
@@ -448,7 +626,7 @@ const J = {
|
|
|
448
626
|
}
|
|
449
627
|
}
|
|
450
628
|
};
|
|
451
|
-
var
|
|
629
|
+
var Y = function() {
|
|
452
630
|
var e = this, t = e._self._c;
|
|
453
631
|
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
454
632
|
e.visible = i;
|
|
@@ -463,18 +641,21 @@ var Q = function() {
|
|
|
463
641
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.view", "\u67E5\u770B")) + " ")]) : e._e()], 1)];
|
|
464
642
|
} };
|
|
465
643
|
})], null, !0) }) : e._e()], 1)], 2), t("RoleScope", { ref: "roleScope", on: { ok: e.setRoleScop } })], 1);
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
644
|
+
}, Z = [], ee = /* @__PURE__ */ g(
|
|
645
|
+
X,
|
|
646
|
+
Y,
|
|
647
|
+
Z,
|
|
470
648
|
!1,
|
|
471
649
|
null,
|
|
472
|
-
"
|
|
650
|
+
"5e6737e8",
|
|
473
651
|
null,
|
|
474
652
|
null
|
|
475
653
|
);
|
|
476
|
-
const
|
|
477
|
-
|
|
654
|
+
const te = ee.exports, se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
655
|
+
__proto__: null,
|
|
656
|
+
default: te
|
|
657
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
658
|
+
const ie = {
|
|
478
659
|
name: "LayoutItem",
|
|
479
660
|
props: {
|
|
480
661
|
record: {
|
|
@@ -496,7 +677,7 @@ const Z = {
|
|
|
496
677
|
menusType() {
|
|
497
678
|
return this.record[0] ? this.record[0].menusType : 0;
|
|
498
679
|
},
|
|
499
|
-
...
|
|
680
|
+
...f(["primaryColor"])
|
|
500
681
|
},
|
|
501
682
|
methods: {
|
|
502
683
|
hasAll(s) {
|
|
@@ -520,16 +701,16 @@ const Z = {
|
|
|
520
701
|
}
|
|
521
702
|
}
|
|
522
703
|
};
|
|
523
|
-
var
|
|
704
|
+
var ne = function() {
|
|
524
705
|
var e = this, t = e._self._c;
|
|
525
706
|
return t("div", { style: { "--fadecolor": e.fadeColord } }, [e._l(e.record, function(i) {
|
|
526
|
-
return [t("div", { staticClass: "list-item" }, [
|
|
707
|
+
return [t("div", { staticClass: "list-item" }, [i.menusType !== 1 && i.children && i.children.length > 0 ? t("i", { class: i.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
|
|
527
708
|
return e.open(i);
|
|
528
709
|
} } }) : e._e(), e.menusType !== 2 ? t("div", { staticClass: "item-name" }, [t("el-checkbox", { attrs: { indeterminate: i.isIndeterminate }, on: { change: function(n) {
|
|
529
710
|
return e.change(n, [i.id]);
|
|
530
711
|
} }, model: { value: i.checked, callback: function(n) {
|
|
531
712
|
e.$set(i, "checked", n);
|
|
532
|
-
}, expression: "item.checked" } }, [i.iconClass ? t("i", { staticClass: "gd-icons", class: i.iconClass, staticStyle: { "font-size": "15px" } }) : e._e(), e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.title)) + " ")]), i.children && i.children.length > 0 &&
|
|
713
|
+
}, expression: "item.checked" } }, [i.iconClass ? t("i", { staticClass: "gd-icons", class: i.iconClass, staticStyle: { "font-size": "15px" } }) : e._e(), e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.title)) + " ")]), i.children && i.children.length > 0 && i.menusType === 1 ? t("el-button", { staticStyle: { "margin-left": "12px", padding: "5px 15px" }, attrs: { size: "mini" } }, [e.hasAll(i) ? t("span", { on: { click: function(n) {
|
|
533
714
|
return e.checkedBtn(i, 1);
|
|
534
715
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")]) : t("span", { on: { click: function(n) {
|
|
535
716
|
return e.checkedBtn(i, 0);
|
|
@@ -539,18 +720,18 @@ var ee = function() {
|
|
|
539
720
|
} } }, [n.checked ? t("i", { staticClass: "gd-icons gd-icon-quanxuan active-color" }) : t("div", { staticClass: "item-named-kuang" }), t("div", { staticClass: "item-named-title", class: n.checked ? "active-color" : "" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transkey}`, n.title)) + " ")])])];
|
|
540
721
|
})], 2) : e._e()])]), i.children && i.children.length > 0 && i.children[0].menusType !== 2 ? t("div", { staticClass: "list-more" }, [i.open ? t("LayoutItem", { attrs: { record: i.children, checkedKeys: e.checkedKeys }, on: { open: e.open, change: e.change, checkedBtn: e.checkedBtn } }) : e._e()], 1) : e._e()];
|
|
541
722
|
})], 2);
|
|
542
|
-
},
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
723
|
+
}, ae = [], re = /* @__PURE__ */ g(
|
|
724
|
+
ie,
|
|
725
|
+
ne,
|
|
726
|
+
ae,
|
|
546
727
|
!1,
|
|
547
728
|
null,
|
|
548
|
-
"
|
|
729
|
+
"ecf30395",
|
|
549
730
|
null,
|
|
550
731
|
null
|
|
551
732
|
);
|
|
552
|
-
const
|
|
553
|
-
const
|
|
733
|
+
const $ = re.exports;
|
|
734
|
+
const le = {
|
|
554
735
|
data() {
|
|
555
736
|
return {
|
|
556
737
|
buttons: [
|
|
@@ -574,19 +755,38 @@ const ie = {
|
|
|
574
755
|
menuAll: [],
|
|
575
756
|
systemMenuAll: [],
|
|
576
757
|
allCheckedKeys: [],
|
|
577
|
-
appsId: ""
|
|
758
|
+
appsId: "",
|
|
759
|
+
appList: []
|
|
578
760
|
};
|
|
579
761
|
},
|
|
580
762
|
computed: {
|
|
763
|
+
customClass() {
|
|
764
|
+
return `role_${p(12)}`;
|
|
765
|
+
},
|
|
581
766
|
isIndeterminate() {
|
|
582
767
|
return this.allClose ? !1 : this.checkedKeys.length > 0;
|
|
583
768
|
},
|
|
584
|
-
|
|
769
|
+
fadeColord() {
|
|
770
|
+
return this.fadeColor(this.primaryColor, 0.1);
|
|
771
|
+
},
|
|
772
|
+
...f(["screenHeight", "tableLists", "primaryColor"])
|
|
585
773
|
},
|
|
586
|
-
components: { LayoutItem:
|
|
774
|
+
components: { LayoutItem: $ },
|
|
587
775
|
methods: {
|
|
776
|
+
elScrollIntoView(s) {
|
|
777
|
+
this.$nextTick(() => {
|
|
778
|
+
setTimeout(() => {
|
|
779
|
+
const e = document.querySelector(`.${this.customClass} .${s}`);
|
|
780
|
+
e && e.scrollIntoView({ behavior: "smooth" });
|
|
781
|
+
}, 100);
|
|
782
|
+
});
|
|
783
|
+
},
|
|
784
|
+
appOpen(s, e) {
|
|
785
|
+
let t = [...this.menuTreeData];
|
|
786
|
+
t[s].open = !t[s].open, this.menuTreeData = [...t];
|
|
787
|
+
},
|
|
588
788
|
handleSubmit() {
|
|
589
|
-
this.confirmLoading = !0,
|
|
789
|
+
this.confirmLoading = !0, I({
|
|
590
790
|
id: this.record.id,
|
|
591
791
|
grantmenuidlist: this.checkedKeys
|
|
592
792
|
}).then((s) => {
|
|
@@ -610,12 +810,12 @@ const ie = {
|
|
|
610
810
|
return;
|
|
611
811
|
let l = [];
|
|
612
812
|
this.findParent(this.menuTreeData, n, l);
|
|
613
|
-
let r = [],
|
|
813
|
+
let r = [], u = [];
|
|
614
814
|
l.forEach((o) => {
|
|
615
|
-
this.checkedKeys.filter((
|
|
815
|
+
this.checkedKeys.filter((h) => o.menuIds.includes(h)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : u.push(o.id);
|
|
616
816
|
}), r.forEach((o) => {
|
|
617
817
|
this.changeItem(!0, [o], !1);
|
|
618
|
-
}),
|
|
818
|
+
}), u.forEach((o) => {
|
|
619
819
|
this.changeItem(!1, [o], !1);
|
|
620
820
|
});
|
|
621
821
|
},
|
|
@@ -625,43 +825,64 @@ const ie = {
|
|
|
625
825
|
const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
|
|
626
826
|
return this.checkedKeys.includes(i.id) ? (i.checked = !0, i.isIndeterminate = !1) : (i.checked = !1, i.isIndeterminate = a.length > 0 && i.menuIds.length > 0), i.children && i.children.length > 0 && (i.children = e(i.children)), !0;
|
|
627
827
|
}), t);
|
|
628
|
-
|
|
828
|
+
s.forEach((t) => {
|
|
829
|
+
e(t.children);
|
|
830
|
+
}), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
|
|
629
831
|
},
|
|
630
832
|
changeAll(s) {
|
|
631
833
|
s ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
|
|
632
834
|
},
|
|
633
835
|
init() {
|
|
634
|
-
this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList()]).then(async (s) => {
|
|
836
|
+
this.confirmLoading = !0, Promise.all([this.getMenuTree(), this.expandedMenuKeys(), this.getMenuList(), this.getAppListByAppsId()]).then(async (s) => {
|
|
635
837
|
let e = [], t = [];
|
|
636
|
-
const i = (
|
|
637
|
-
const
|
|
638
|
-
return
|
|
639
|
-
}),
|
|
640
|
-
let n = this.menuAll.filter((
|
|
838
|
+
const i = (d) => (d = d.filter((c, h) => {
|
|
839
|
+
const y = this.checkedKeys.filter((b) => c.id === b)[0];
|
|
840
|
+
return c.open = !0, c.checked = c.type === 1 ? !!y : !1, c.isIndeterminate = !1, c.menusType = c.type, e.push(c.id), t.push(c), c.children && c.children.length > 0 && (c.children = i(c.children)), !0;
|
|
841
|
+
}), d);
|
|
842
|
+
let n = this.menuAll.filter((d) => {
|
|
843
|
+
const c = this.systemMenuAll.filter((h) => h.id === d.id)[0];
|
|
844
|
+
return c && (d.application = c.application), !!c;
|
|
845
|
+
});
|
|
641
846
|
await i(n), this.allCheckedKeys = e;
|
|
642
847
|
let a = [];
|
|
643
|
-
t.forEach((
|
|
644
|
-
const
|
|
645
|
-
t[
|
|
848
|
+
t.forEach((d, c) => {
|
|
849
|
+
const h = this.getMenuIds(d);
|
|
850
|
+
t[c].menuIds = h.arr, t[c].menuBtnIds = h.btn, !(this.checkedKeys.filter((K) => h.arr.includes(K)).length === h.arr.length) && h.arr.length > 0 && a.push(d.id);
|
|
646
851
|
}), this.list = t;
|
|
647
|
-
const l = this.checkedKeys.filter((
|
|
648
|
-
this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0
|
|
852
|
+
const l = this.checkedKeys.filter((d) => e.includes(d)).filter((d) => !a.includes(d)).filter((d, c, h) => h.indexOf(d) === c);
|
|
853
|
+
this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0;
|
|
854
|
+
let r = [], u = this.appList.filter((d) => {
|
|
855
|
+
const c = n.filter((h) => h.application === d.code);
|
|
856
|
+
return c.length > 0 ? (r = r.concat([...c]), d.children = [...c], d.open = !0, d.uuid = `${p(12)}`, !0) : !1;
|
|
857
|
+
});
|
|
858
|
+
const o = n.filter((d) => !r.filter((h) => h.id === d.id));
|
|
859
|
+
o.length > 0 && u.push({
|
|
860
|
+
name: "\u7A7A\u767D",
|
|
861
|
+
transkey: "gd.echarts.none",
|
|
862
|
+
children: o,
|
|
863
|
+
activeShow: !0,
|
|
864
|
+
open: !0,
|
|
865
|
+
uuid: `${p(12)}`
|
|
866
|
+
}), this.menuTreeData = JSON.parse(JSON.stringify(u)), this.handleItem(), this.confirmLoading = !1;
|
|
649
867
|
});
|
|
650
868
|
},
|
|
651
869
|
open(s, e) {
|
|
652
870
|
this.record = s, this.appsId = e || window.$systemInfo.id, this.visible = !0, this.init();
|
|
653
871
|
},
|
|
654
872
|
getMenuTree() {
|
|
655
|
-
return
|
|
873
|
+
return q({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
|
|
656
874
|
},
|
|
657
875
|
expandedMenuKeys() {
|
|
658
|
-
return
|
|
876
|
+
return x({
|
|
659
877
|
id: this.record.id
|
|
660
878
|
}).then((s) => (s.code === 200 && (this.checkedKeys = s.data), s));
|
|
661
879
|
},
|
|
662
880
|
getMenuList() {
|
|
663
881
|
let s = { AppsId: this.appsId };
|
|
664
|
-
return
|
|
882
|
+
return V(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
|
|
883
|
+
},
|
|
884
|
+
getAppListByAppsId() {
|
|
885
|
+
return G({ appsId: this.appsId }).then((s) => (s.code === 200 && (this.appList = s.data), s));
|
|
665
886
|
},
|
|
666
887
|
getMenuIds(s) {
|
|
667
888
|
let e = [], t = [];
|
|
@@ -680,31 +901,211 @@ const ie = {
|
|
|
680
901
|
toggleFullscreen() {
|
|
681
902
|
this.fullscreen = !this.fullscreen;
|
|
682
903
|
},
|
|
904
|
+
fadeColor(s, e) {
|
|
905
|
+
let t = parseInt(s.substring(1, 3), 16), i = parseInt(s.substring(3, 5), 16), n = parseInt(s.substring(5, 7), 16);
|
|
906
|
+
return `rgba(${t},${i},${n},${e})`;
|
|
907
|
+
},
|
|
683
908
|
doEvent(s) {
|
|
684
909
|
const e = s.item.functionName;
|
|
685
910
|
this[e] && this[e]();
|
|
686
911
|
}
|
|
687
912
|
}
|
|
688
913
|
};
|
|
689
|
-
var
|
|
914
|
+
var oe = function() {
|
|
915
|
+
var e = this, t = e._self._c;
|
|
916
|
+
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1, "custom-class": e.customClass }, on: { "update:visible": function(i) {
|
|
917
|
+
e.visible = i;
|
|
918
|
+
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0, btnFlex: "width:auto" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
919
|
+
return [t("el-dropdown", { attrs: { placement: "bottom" }, on: { command: e.elScrollIntoView } }, [t("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px", "font-size": "13px" }, attrs: { type: "primary" } }, [t("i", { staticClass: "gd-icons gd-icon-dingwei1", staticStyle: { "font-size": "14px" } }), e._v(" " + e._s(e.$i18nt("gd.web.location", "\u5B9A\u4F4D")) + " "), t("i", { staticClass: "el-icon-arrow-down" })]), t("el-dropdown-menu", { style: { "--dilute": e.fadeColord, minWidth: "120px" }, attrs: { slot: "dropdown" }, slot: "dropdown" }, e._l(e.menuTreeData, function(i) {
|
|
920
|
+
return t("el-dropdown-item", { key: i.uuid, attrs: { command: i.uuid } }, [t("i", { staticClass: "gd-icons el-icon-right", staticStyle: { "font-size": "14px" } }), i.activeShow ? t("span", [e._v(e._s(e.$i18nt(i.transkey, i.name)))]) : t("span", [e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.name)))])]);
|
|
921
|
+
}), 1)], 1)];
|
|
922
|
+
}, proxy: !0 }]) })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [t("div", { staticClass: "app-list" }, [e._l(e.menuTreeData, function(i, n) {
|
|
923
|
+
return [n != 0 ? t("el-divider") : e._e(), t("div", { staticClass: "app-list-item", class: i.uuid }, [t("div", { staticClass: "app-list-name" }, [i.children && i.children.length > 0 ? t("i", { class: i.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(a) {
|
|
924
|
+
return e.appOpen(n, i);
|
|
925
|
+
} } }) : e._e(), e._v(" " + e._s(i.name) + " ")]), i.open ? t("div", { staticStyle: { "padding-left": "20px" } }, [e.visible ? t("LayoutItem", { attrs: { record: i.children, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1) : e._e()])];
|
|
926
|
+
})], 2)]), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
|
|
927
|
+
e.allClose = i;
|
|
928
|
+
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
929
|
+
}, de = [], ce = /* @__PURE__ */ g(
|
|
930
|
+
le,
|
|
931
|
+
oe,
|
|
932
|
+
de,
|
|
933
|
+
!1,
|
|
934
|
+
null,
|
|
935
|
+
"948c6f08",
|
|
936
|
+
null,
|
|
937
|
+
null
|
|
938
|
+
);
|
|
939
|
+
const he = ce.exports, ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
940
|
+
__proto__: null,
|
|
941
|
+
default: he
|
|
942
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
943
|
+
const fe = {
|
|
944
|
+
data() {
|
|
945
|
+
return {
|
|
946
|
+
buttons: [
|
|
947
|
+
{
|
|
948
|
+
displayName: "\u786E\u5B9A",
|
|
949
|
+
functionName: "handleSubmit",
|
|
950
|
+
show: !0,
|
|
951
|
+
transKey: "gd.btn.confirm",
|
|
952
|
+
icon: "el-icon-document-checked"
|
|
953
|
+
}
|
|
954
|
+
],
|
|
955
|
+
record: {},
|
|
956
|
+
visible: !1,
|
|
957
|
+
confirmLoading: !1,
|
|
958
|
+
fullscreen: !1,
|
|
959
|
+
width: "94%",
|
|
960
|
+
menuTreeData: [],
|
|
961
|
+
menuTreeDatad: [],
|
|
962
|
+
checkedKeys: [],
|
|
963
|
+
list: [],
|
|
964
|
+
allClose: !1,
|
|
965
|
+
menuAll: [],
|
|
966
|
+
systemMenuAll: [],
|
|
967
|
+
allCheckedKeys: []
|
|
968
|
+
};
|
|
969
|
+
},
|
|
970
|
+
computed: {
|
|
971
|
+
isIndeterminate() {
|
|
972
|
+
return this.allClose ? !1 : this.checkedKeys.length > 0;
|
|
973
|
+
},
|
|
974
|
+
...f(["screenHeight", "tableLists"])
|
|
975
|
+
},
|
|
976
|
+
components: { LayoutItem: $ },
|
|
977
|
+
methods: {
|
|
978
|
+
async handleSubmit() {
|
|
979
|
+
const s = (e) => (e = e.filter((t, i) => {
|
|
980
|
+
const n = this.checkedKeys.filter((a) => t.id === a)[0];
|
|
981
|
+
return t.type = n ? 1 : 0, t.formlist && t.formlist.length > 0 && (t.formlist = s(t.formlist)), t.viewlist && t.viewlist.length > 0 && (t.viewlist = s(t.viewlist)), t.btnlist && t.btnlist.length > 0 && (t.btnlist = s(t.btnlist)), !0;
|
|
982
|
+
}), e);
|
|
983
|
+
this.confirmLoading = !0, await s(this.menuAll), P({
|
|
984
|
+
roleid: this.record.id,
|
|
985
|
+
list: this.menuAll
|
|
986
|
+
}).then((e) => {
|
|
987
|
+
e.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(
|
|
988
|
+
this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message
|
|
989
|
+
), this.confirmLoading = !1;
|
|
990
|
+
});
|
|
991
|
+
},
|
|
992
|
+
checkedItemBtn(s, e) {
|
|
993
|
+
let t = [...this.checkedKeys].filter((i) => !s.menuBtnIds.includes(i));
|
|
994
|
+
e === 1 && (t = t.concat(s.menuBtnIds)), this.checkedKeys = [...t], this.handleItem();
|
|
995
|
+
},
|
|
996
|
+
openItem(s) {
|
|
997
|
+
let e = [...this.menuTreeData];
|
|
998
|
+
const t = (i) => (i = i.filter((n, a) => (n.id === s.id && (n.open = !n.open), n.children && n.children.length > 0 && (n.children = t(n.children)), !0)), i);
|
|
999
|
+
t(e), this.menuTreeData = [...e];
|
|
1000
|
+
},
|
|
1001
|
+
changeItem(s, e, t = !0) {
|
|
1002
|
+
let i = [...this.checkedKeys];
|
|
1003
|
+
this.checkedKeys.filter((o) => e.includes(o))[0];
|
|
1004
|
+
const n = this.list.filter((o) => e.includes(o.id))[0], a = t && n ? n.menuIds : [];
|
|
1005
|
+
if (s ? i = this.checkedKeys.concat(e).concat(a) : i = this.checkedKeys.filter((o) => !e.includes(o)).filter((o) => !a.includes(o)), this.checkedKeys = [...i], this.handleItem(), n.menusType === 2)
|
|
1006
|
+
return;
|
|
1007
|
+
let l = [];
|
|
1008
|
+
this.findParent(this.menuTreeData, n, l);
|
|
1009
|
+
let r = [], u = [];
|
|
1010
|
+
l.forEach((o) => {
|
|
1011
|
+
this.checkedKeys.filter((h) => o.menuIds.includes(h)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : u.push(o.id);
|
|
1012
|
+
}), r.forEach((o) => {
|
|
1013
|
+
this.changeItem(!0, [o], !1);
|
|
1014
|
+
}), u.forEach((o) => {
|
|
1015
|
+
this.changeItem(!1, [o], !1);
|
|
1016
|
+
});
|
|
1017
|
+
},
|
|
1018
|
+
handleItem() {
|
|
1019
|
+
let s = [...this.menuTreeData];
|
|
1020
|
+
const e = (t) => (t = t.filter((i, n) => {
|
|
1021
|
+
const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
|
|
1022
|
+
return this.checkedKeys.includes(i.id) ? (i.checked = !0, i.isIndeterminate = !1) : (i.checked = !1, i.isIndeterminate = a.length > 0 && i.menuIds.length > 0), i.children && i.children.length > 0 && (i.children = e(i.children)), !0;
|
|
1023
|
+
}), t);
|
|
1024
|
+
e(s), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
|
|
1025
|
+
},
|
|
1026
|
+
changeAll(s) {
|
|
1027
|
+
s ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
|
|
1028
|
+
},
|
|
1029
|
+
init() {
|
|
1030
|
+
this.confirmLoading = !0, Promise.all([this.getList()]).then(async (s) => {
|
|
1031
|
+
this.confirmLoading = !1;
|
|
1032
|
+
let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), t = [];
|
|
1033
|
+
const i = (a) => (a = a.filter((l, r) => {
|
|
1034
|
+
const u = this.checkedKeys.filter((o) => l.id === o)[0];
|
|
1035
|
+
return l.open = !0, l.checked = l.menusType === 1 ? !!u : !1, l.isIndeterminate = !1, t.push(l), l.children && l.children.length > 0 && (l.children = i(l.children)), !0;
|
|
1036
|
+
}), a);
|
|
1037
|
+
await i(e);
|
|
1038
|
+
let n = [];
|
|
1039
|
+
t.forEach((a, l) => {
|
|
1040
|
+
const r = this.getMenuIds(a);
|
|
1041
|
+
t[l].menuIds = r.arr, t[l].menuBtnIds = r.btn, !(this.checkedKeys.filter((d) => r.arr.includes(d)).length === r.arr.length) && r.arr.length > 0 && n.push(a.id);
|
|
1042
|
+
}), this.list = t, this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0, this.menuTreeData = [...e], this.handleItem(), console.log(this.menuAll, "123");
|
|
1043
|
+
});
|
|
1044
|
+
},
|
|
1045
|
+
getList() {
|
|
1046
|
+
return D({ roleId: this.record.id }).then((s) => {
|
|
1047
|
+
if (s.code === 200) {
|
|
1048
|
+
let e = [], t = [];
|
|
1049
|
+
const i = (a, l) => (a = a.filter((r, u) => {
|
|
1050
|
+
r.parentId = l, r.open = !0, r.checked = !1, r.isIndeterminate = !1, r.transkey = r.transkey ? r.transkey : null, r.title = r.name, r.menusType = r.formlist && r.viewlist ? 0 : r.btnlist ? 1 : 2, t.push(r.id), r.type === 1 && e.push(r.id);
|
|
1051
|
+
let o = [];
|
|
1052
|
+
return r.viewlist && r.viewlist.length > 0 && (r.viewlist.map((d) => (d.iconClass = "gd-icon-shitumoshi", d)), o = o.concat(r.viewlist)), r.formlist && r.formlist.length > 0 && (r.formlist.map((d) => (d.iconClass = "gd-icon-biaodanmoshi", d)), o = o.concat(r.formlist)), r.btnlist && r.btnlist.length > 0 && (o = o.concat(r.btnlist)), o.length > 0 && (r.children = i(o, r.id)), !0;
|
|
1053
|
+
}), a);
|
|
1054
|
+
this.menuAll = s.data.list;
|
|
1055
|
+
let n = JSON.parse(JSON.stringify(this.menuAll));
|
|
1056
|
+
i(n, 0), this.checkedKeys = e, this.allCheckedKeys = t, this.menuTreeDatad = [...n];
|
|
1057
|
+
}
|
|
1058
|
+
return s;
|
|
1059
|
+
});
|
|
1060
|
+
},
|
|
1061
|
+
getMenuIds(s) {
|
|
1062
|
+
let e = [], t = [];
|
|
1063
|
+
const i = (n) => (n = n.filter((a, l) => (a.menusType !== 2 ? e.push(a.id) : t.push(a.id), a.children && a.children.length > 0 && (a.children = i(a.children)), !0)), n);
|
|
1064
|
+
return s.children && i(s.children), { arr: e, btn: t };
|
|
1065
|
+
},
|
|
1066
|
+
findParent(s, e, t) {
|
|
1067
|
+
for (let i of s)
|
|
1068
|
+
if (i.id === e.parentId || i.children && i.children.length > 0 && this.findParent(i.children, e, t))
|
|
1069
|
+
return t.unshift(i), !0;
|
|
1070
|
+
return !1;
|
|
1071
|
+
},
|
|
1072
|
+
open(s) {
|
|
1073
|
+
this.record = s, this.visible = !0, this.init();
|
|
1074
|
+
},
|
|
1075
|
+
closed() {
|
|
1076
|
+
this.fullscreen = !1, this.visible = !1, this.menuTreeData = [], this.checkedKeys = [];
|
|
1077
|
+
},
|
|
1078
|
+
toggleFullscreen() {
|
|
1079
|
+
this.fullscreen = !this.fullscreen;
|
|
1080
|
+
},
|
|
1081
|
+
doEvent(s) {
|
|
1082
|
+
const e = s.item.functionName;
|
|
1083
|
+
this[e] && this[e]();
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
};
|
|
1087
|
+
var ge = function() {
|
|
690
1088
|
var e = this, t = e._self._c;
|
|
691
1089
|
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
692
1090
|
e.visible = i;
|
|
693
|
-
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"),
|
|
1091
|
+
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.dataRole", "\u6388\u6743\u6570\u636E"), buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { "min-height": "400px" } }, [e.visible ? t("LayoutItem", { attrs: { record: e.menuTreeData, checkedKeys: e.checkedKeys }, on: { open: e.openItem, change: e.changeItem, checkedBtn: e.checkedItemBtn } }) : e._e()], 1), t("template", { slot: "footer" }, [t("div", { staticClass: "btoms" }, [t("el-checkbox", { attrs: { disabled: e.confirmLoading, indeterminate: e.isIndeterminate }, on: { change: e.changeAll }, model: { value: e.allClose, callback: function(i) {
|
|
694
1092
|
e.allClose = i;
|
|
695
1093
|
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
696
|
-
},
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
1094
|
+
}, pe = [], me = /* @__PURE__ */ g(
|
|
1095
|
+
fe,
|
|
1096
|
+
ge,
|
|
1097
|
+
pe,
|
|
700
1098
|
!1,
|
|
701
1099
|
null,
|
|
702
|
-
"
|
|
1100
|
+
"e6593396",
|
|
703
1101
|
null,
|
|
704
1102
|
null
|
|
705
1103
|
);
|
|
706
|
-
const
|
|
707
|
-
|
|
1104
|
+
const ye = me.exports, be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1105
|
+
__proto__: null,
|
|
1106
|
+
default: ye
|
|
1107
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1108
|
+
const _e = {
|
|
708
1109
|
name: "GdUserRole",
|
|
709
1110
|
props: {
|
|
710
1111
|
height: {
|
|
@@ -720,7 +1121,7 @@ const oe = {
|
|
|
720
1121
|
default: "page"
|
|
721
1122
|
}
|
|
722
1123
|
},
|
|
723
|
-
mixins: [
|
|
1124
|
+
mixins: [k],
|
|
724
1125
|
data() {
|
|
725
1126
|
return {
|
|
726
1127
|
transKey: "gd.btn.add",
|
|
@@ -737,7 +1138,7 @@ const oe = {
|
|
|
737
1138
|
value: "value"
|
|
738
1139
|
},
|
|
739
1140
|
defaultExpandedKeys: "",
|
|
740
|
-
loadData: (s) =>
|
|
1141
|
+
loadData: (s) => F({ roleId: this.openSelecteKeys[0] }).then((e) => (this.getRowId(e.data), { pageNo: 1, pageSize: 1e3, totalRows: 0, rows: e.data })),
|
|
741
1142
|
disableBtn: [],
|
|
742
1143
|
fileList: [],
|
|
743
1144
|
needLoad: !1,
|
|
@@ -964,7 +1365,7 @@ const oe = {
|
|
|
964
1365
|
styled() {
|
|
965
1366
|
return `height:${this.height + 76}px`;
|
|
966
1367
|
},
|
|
967
|
-
...
|
|
1368
|
+
...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
968
1369
|
},
|
|
969
1370
|
methods: {
|
|
970
1371
|
getRowId(s) {
|
|
@@ -982,7 +1383,7 @@ const oe = {
|
|
|
982
1383
|
this.$refs.table.refresh();
|
|
983
1384
|
},
|
|
984
1385
|
getOrgTree() {
|
|
985
|
-
|
|
1386
|
+
w({}).then((s) => {
|
|
986
1387
|
if (s.code === 200) {
|
|
987
1388
|
const e = (t) => (t = t.filter((i, n) => (i.value = String(i.value), i.children && i.children.length > 0 && (i.children = e(i.children)), !0)), t);
|
|
988
1389
|
this.orgTree = e(s.data);
|
|
@@ -1057,7 +1458,7 @@ const oe = {
|
|
|
1057
1458
|
i();
|
|
1058
1459
|
return;
|
|
1059
1460
|
}
|
|
1060
|
-
t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1,
|
|
1461
|
+
t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, E({
|
|
1061
1462
|
roleId: s.openSelecteKeys[0],
|
|
1062
1463
|
userIdList: s.selectedRowKeys
|
|
1063
1464
|
}).then((n) => {
|
|
@@ -1070,7 +1471,7 @@ const oe = {
|
|
|
1070
1471
|
created() {
|
|
1071
1472
|
}
|
|
1072
1473
|
};
|
|
1073
|
-
var
|
|
1474
|
+
var ve = function() {
|
|
1074
1475
|
var e = this, t = e._self._c;
|
|
1075
1476
|
return t("div", { staticClass: "gd-page-view", staticStyle: { display: "flex", background: "rgb(245, 245, 245)" } }, [t("div", { staticClass: "page-view-list" }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, showPagination: !1, selectedRowKeys: e.selectedRowKeys, height: e.height, initialLoading: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
1076
1477
|
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
@@ -1085,18 +1486,18 @@ var de = function() {
|
|
|
1085
1486
|
} }, { key: "status", fn: function({ column: i, row: n }) {
|
|
1086
1487
|
return [t("span", [e._v(" " + e._s(e._f("dictType")("state_code", n.statecodes)) + " ")])];
|
|
1087
1488
|
} }]) }), t("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1)]);
|
|
1088
|
-
},
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1489
|
+
}, ke = [], we = /* @__PURE__ */ g(
|
|
1490
|
+
_e,
|
|
1491
|
+
ve,
|
|
1492
|
+
ke,
|
|
1092
1493
|
!1,
|
|
1093
1494
|
null,
|
|
1094
1495
|
"e9dd56ab",
|
|
1095
1496
|
null,
|
|
1096
1497
|
null
|
|
1097
1498
|
);
|
|
1098
|
-
const
|
|
1099
|
-
const
|
|
1499
|
+
const $e = we.exports;
|
|
1500
|
+
const Ke = {
|
|
1100
1501
|
data() {
|
|
1101
1502
|
return {
|
|
1102
1503
|
buttons: [],
|
|
@@ -1108,12 +1509,12 @@ const ue = {
|
|
|
1108
1509
|
selectedRowKeys: []
|
|
1109
1510
|
};
|
|
1110
1511
|
},
|
|
1111
|
-
components: { UserFormDate:
|
|
1512
|
+
components: { UserFormDate: $e },
|
|
1112
1513
|
computed: {
|
|
1113
1514
|
height() {
|
|
1114
1515
|
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
1115
1516
|
},
|
|
1116
|
-
...
|
|
1517
|
+
...f(["screenHeight"])
|
|
1117
1518
|
},
|
|
1118
1519
|
methods: {
|
|
1119
1520
|
handleSubmit() {
|
|
@@ -1141,23 +1542,26 @@ const ue = {
|
|
|
1141
1542
|
}
|
|
1142
1543
|
}
|
|
1143
1544
|
};
|
|
1144
|
-
var
|
|
1545
|
+
var Ce = function() {
|
|
1145
1546
|
var e = this, t = e._self._c;
|
|
1146
1547
|
return t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
1147
1548
|
e.visible = i;
|
|
1148
1549
|
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.userAuthorization", "\u6388\u6743\u7528\u6237"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("UserFormDate", { ref: "userForm", attrs: { height: e.height, openMode: "components", openSelecteKeys: e.selectedRowKeys }, on: { onSelectChange: e.onSelectChange } }) : e._e()], 1)], 2);
|
|
1149
|
-
},
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1550
|
+
}, Te = [], Se = /* @__PURE__ */ g(
|
|
1551
|
+
Ke,
|
|
1552
|
+
Ce,
|
|
1553
|
+
Te,
|
|
1153
1554
|
!1,
|
|
1154
1555
|
null,
|
|
1155
1556
|
"46b57430",
|
|
1156
1557
|
null,
|
|
1157
1558
|
null
|
|
1158
1559
|
);
|
|
1159
|
-
const
|
|
1160
|
-
|
|
1560
|
+
const Re = Se.exports, Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1561
|
+
__proto__: null,
|
|
1562
|
+
default: Re
|
|
1563
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1564
|
+
const Ie = {
|
|
1161
1565
|
data() {
|
|
1162
1566
|
return {
|
|
1163
1567
|
defaultKey: [],
|
|
@@ -1272,12 +1676,11 @@ const ye = {
|
|
|
1272
1676
|
id: ""
|
|
1273
1677
|
};
|
|
1274
1678
|
},
|
|
1275
|
-
components: { UserFormDate: k },
|
|
1276
1679
|
computed: {
|
|
1277
1680
|
height() {
|
|
1278
1681
|
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
1279
1682
|
},
|
|
1280
|
-
...
|
|
1683
|
+
...f(["screenHeight"])
|
|
1281
1684
|
},
|
|
1282
1685
|
methods: {
|
|
1283
1686
|
querySearch(s, e) {
|
|
@@ -1328,7 +1731,7 @@ const ye = {
|
|
|
1328
1731
|
...i
|
|
1329
1732
|
};
|
|
1330
1733
|
}).map(({ list: t, ...i }) => i);
|
|
1331
|
-
this.confirmLoading = !0,
|
|
1734
|
+
this.confirmLoading = !0, N(e).then((t) => {
|
|
1332
1735
|
t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
|
|
1333
1736
|
});
|
|
1334
1737
|
},
|
|
@@ -1340,7 +1743,7 @@ const ye = {
|
|
|
1340
1743
|
...i
|
|
1341
1744
|
};
|
|
1342
1745
|
}).map(({ list: t, ...i }) => i);
|
|
1343
|
-
this.confirmLoading = !0,
|
|
1746
|
+
this.confirmLoading = !0, B(e).then((t) => {
|
|
1344
1747
|
t.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message), this.confirmLoading = !1;
|
|
1345
1748
|
});
|
|
1346
1749
|
},
|
|
@@ -1348,7 +1751,7 @@ const ye = {
|
|
|
1348
1751
|
this.record = s, this.visible = !0, this.getallTree(), this.getDetail(s);
|
|
1349
1752
|
},
|
|
1350
1753
|
getDetail(s) {
|
|
1351
|
-
|
|
1754
|
+
M({ roleId: s.id }).then((e) => {
|
|
1352
1755
|
if (e.code == 200 && (this.currentPermissions = [], this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys([]), e.data.length > 0)) {
|
|
1353
1756
|
this.id = e.data[0].id, this.currentPermissions = [];
|
|
1354
1757
|
const t = e.data.map((n) => {
|
|
@@ -1378,7 +1781,7 @@ const ye = {
|
|
|
1378
1781
|
});
|
|
1379
1782
|
},
|
|
1380
1783
|
getallTree() {
|
|
1381
|
-
|
|
1784
|
+
A().then((s) => {
|
|
1382
1785
|
if (s.code == 200) {
|
|
1383
1786
|
this.restaurants = JSON.parse(JSON.stringify(s.data));
|
|
1384
1787
|
const e = this.buildTree(JSON.parse(JSON.stringify(s.data)));
|
|
@@ -1423,7 +1826,7 @@ const ye = {
|
|
|
1423
1826
|
n();
|
|
1424
1827
|
return;
|
|
1425
1828
|
}
|
|
1426
|
-
i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) :
|
|
1829
|
+
i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, s.id === 0 ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : _({
|
|
1427
1830
|
ids: s.id
|
|
1428
1831
|
}).then((l) => {
|
|
1429
1832
|
i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, l.success ? e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : e.$message.error(e.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + l.message);
|
|
@@ -1527,20 +1930,20 @@ const ye = {
|
|
|
1527
1930
|
customClass: "custom-alert",
|
|
1528
1931
|
callback: () => {
|
|
1529
1932
|
},
|
|
1530
|
-
beforeClose: (l, r,
|
|
1933
|
+
beforeClose: (l, r, u) => {
|
|
1531
1934
|
if (l !== "confirm") {
|
|
1532
|
-
|
|
1935
|
+
u(), setTimeout(() => {
|
|
1533
1936
|
this.$nextTick(() => {
|
|
1534
1937
|
this.$refs.elTreeRef.setChecked(s.id, !0);
|
|
1535
1938
|
});
|
|
1536
1939
|
});
|
|
1537
1940
|
return;
|
|
1538
1941
|
}
|
|
1539
|
-
r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, n[0].id === 0 ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) :
|
|
1942
|
+
r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, n[0].id === 0 ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : _({
|
|
1540
1943
|
ids: n[0].id
|
|
1541
1944
|
}).then((o) => {
|
|
1542
1945
|
r.confirmButtonLoading = !1, r.cancelButtonLoading = !1, r.showCancelButton = !0, o.success ? a.$message.success(a.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : a.$message.error(a.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + o.message);
|
|
1543
|
-
}),
|
|
1946
|
+
}), u(), this.nextclickdel(i);
|
|
1544
1947
|
}
|
|
1545
1948
|
});
|
|
1546
1949
|
}
|
|
@@ -1604,7 +2007,7 @@ const ye = {
|
|
|
1604
2007
|
}
|
|
1605
2008
|
}
|
|
1606
2009
|
};
|
|
1607
|
-
var
|
|
2010
|
+
var xe = function() {
|
|
1608
2011
|
var e = this, t = e._self._c;
|
|
1609
2012
|
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
1610
2013
|
e.visible = i;
|
|
@@ -1625,20 +2028,27 @@ var be = function() {
|
|
|
1625
2028
|
}, expression: "items.value" } }, [t("el-radio", { attrs: { label: "1" } }, [t("span", { staticStyle: { color: "rgb(82, 196, 26)" } }, [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))])]), t("el-radio", { attrs: { label: "2" } }, [t("span", { staticStyle: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))])])], 1)], 1)]);
|
|
1626
2029
|
}), 1)])]);
|
|
1627
2030
|
}), 0)], 1)])])], 2)], 1);
|
|
1628
|
-
},
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
2031
|
+
}, Pe = [], De = /* @__PURE__ */ g(
|
|
2032
|
+
Ie,
|
|
2033
|
+
xe,
|
|
2034
|
+
Pe,
|
|
1632
2035
|
!1,
|
|
1633
2036
|
null,
|
|
1634
|
-
"
|
|
2037
|
+
"6afc0af9",
|
|
1635
2038
|
null,
|
|
1636
2039
|
null
|
|
1637
2040
|
);
|
|
1638
|
-
const
|
|
1639
|
-
|
|
2041
|
+
const Ne = De.exports, Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2042
|
+
__proto__: null,
|
|
2043
|
+
default: Ne
|
|
2044
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2045
|
+
const Me = {
|
|
1640
2046
|
data() {
|
|
1641
2047
|
return {
|
|
2048
|
+
defaultProps: {
|
|
2049
|
+
children: "children",
|
|
2050
|
+
label: "title"
|
|
2051
|
+
},
|
|
1642
2052
|
buttons: [
|
|
1643
2053
|
{
|
|
1644
2054
|
displayName: "\u786E\u5B9A",
|
|
@@ -1652,127 +2062,40 @@ const we = {
|
|
|
1652
2062
|
visible: !1,
|
|
1653
2063
|
confirmLoading: !1,
|
|
1654
2064
|
fullscreen: !1,
|
|
1655
|
-
width: "
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
checkedKeys: [],
|
|
1659
|
-
list: [],
|
|
1660
|
-
allClose: !1,
|
|
1661
|
-
menuAll: [],
|
|
1662
|
-
systemMenuAll: [],
|
|
1663
|
-
allCheckedKeys: []
|
|
2065
|
+
width: "800px",
|
|
2066
|
+
orgTreeData: [],
|
|
2067
|
+
checkedKeys: []
|
|
1664
2068
|
};
|
|
1665
2069
|
},
|
|
1666
2070
|
computed: {
|
|
1667
|
-
|
|
1668
|
-
return this.allClose ? !1 : this.checkedKeys.length > 0;
|
|
1669
|
-
},
|
|
1670
|
-
...h(["screenHeight", "tableLists"])
|
|
2071
|
+
...f(["screenHeight", "tableLists"])
|
|
1671
2072
|
},
|
|
1672
|
-
components: { LayoutItem: _ },
|
|
1673
2073
|
methods: {
|
|
1674
|
-
|
|
1675
|
-
const s =
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
2074
|
+
handleSubmit() {
|
|
2075
|
+
const s = this.$refs.tree.getCheckedKeys();
|
|
2076
|
+
this.$emit(
|
|
2077
|
+
"ok",
|
|
2078
|
+
Object.assign(
|
|
2079
|
+
{ ...this.record },
|
|
2080
|
+
{
|
|
2081
|
+
checkedKeys: s
|
|
2082
|
+
}
|
|
2083
|
+
)
|
|
2084
|
+
), this.closed();
|
|
2085
|
+
},
|
|
2086
|
+
getOrgData() {
|
|
2087
|
+
this.confirmLoading = !0, w().then((s) => {
|
|
2088
|
+
s.success && (this.orgTreeData = s.data, this.confirmLoading = !1);
|
|
1686
2089
|
});
|
|
1687
2090
|
},
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
e === 1 && (t = t.concat(s.menuBtnIds)), this.checkedKeys = [...t], this.handleItem();
|
|
2091
|
+
open(s) {
|
|
2092
|
+
this.record = s, this.checkedKeys = s.checkedKeys, this.visible = !0, this.getOrgData();
|
|
1691
2093
|
},
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
const t = (i) => (i = i.filter((n, a) => (n.id === s.id && (n.open = !n.open), n.children && n.children.length > 0 && (n.children = t(n.children)), !0)), i);
|
|
1695
|
-
t(e), this.menuTreeData = [...e];
|
|
2094
|
+
closed() {
|
|
2095
|
+
this.fullscreen = !1, this.visible = !1;
|
|
1696
2096
|
},
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
this.checkedKeys.filter((o) => e.includes(o))[0];
|
|
1700
|
-
const n = this.list.filter((o) => e.includes(o.id))[0], a = t && n ? n.menuIds : [];
|
|
1701
|
-
if (s ? i = this.checkedKeys.concat(e).concat(a) : i = this.checkedKeys.filter((o) => !e.includes(o)).filter((o) => !a.includes(o)), this.checkedKeys = [...i], this.handleItem(), n.menusType === 2)
|
|
1702
|
-
return;
|
|
1703
|
-
let l = [];
|
|
1704
|
-
this.findParent(this.menuTreeData, n, l);
|
|
1705
|
-
let r = [], d = [];
|
|
1706
|
-
l.forEach((o) => {
|
|
1707
|
-
this.checkedKeys.filter((f) => o.menuIds.includes(f)).length === o.menuIds.length && o.menuIds.length > 0 && !o.checked ? r.push(o.id) : d.push(o.id);
|
|
1708
|
-
}), r.forEach((o) => {
|
|
1709
|
-
this.changeItem(!0, [o], !1);
|
|
1710
|
-
}), d.forEach((o) => {
|
|
1711
|
-
this.changeItem(!1, [o], !1);
|
|
1712
|
-
});
|
|
1713
|
-
},
|
|
1714
|
-
handleItem() {
|
|
1715
|
-
let s = [...this.menuTreeData];
|
|
1716
|
-
const e = (t) => (t = t.filter((i, n) => {
|
|
1717
|
-
const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
|
|
1718
|
-
return this.checkedKeys.includes(i.id) ? (i.checked = !0, i.isIndeterminate = !1) : (i.checked = !1, i.isIndeterminate = a.length > 0 && i.menuIds.length > 0), i.children && i.children.length > 0 && (i.children = e(i.children)), !0;
|
|
1719
|
-
}), t);
|
|
1720
|
-
e(s), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
|
|
1721
|
-
},
|
|
1722
|
-
changeAll(s) {
|
|
1723
|
-
s ? this.checkedKeys = [...this.allCheckedKeys] : this.checkedKeys = [], this.handleItem();
|
|
1724
|
-
},
|
|
1725
|
-
init() {
|
|
1726
|
-
this.confirmLoading = !0, Promise.all([this.getList()]).then(async (s) => {
|
|
1727
|
-
this.confirmLoading = !1;
|
|
1728
|
-
let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), t = [];
|
|
1729
|
-
const i = (a) => (a = a.filter((l, r) => {
|
|
1730
|
-
const d = this.checkedKeys.filter((o) => l.id === o)[0];
|
|
1731
|
-
return l.open = !0, l.checked = l.menusType === 1 ? !!d : !1, l.isIndeterminate = !1, t.push(l), l.children && l.children.length > 0 && (l.children = i(l.children)), !0;
|
|
1732
|
-
}), a);
|
|
1733
|
-
await i(e);
|
|
1734
|
-
let n = [];
|
|
1735
|
-
t.forEach((a, l) => {
|
|
1736
|
-
const r = this.getMenuIds(a);
|
|
1737
|
-
t[l].menuIds = r.arr, t[l].menuBtnIds = r.btn, !(this.checkedKeys.filter((c) => r.arr.includes(c)).length === r.arr.length) && r.arr.length > 0 && n.push(a.id);
|
|
1738
|
-
}), this.list = t, this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0, this.menuTreeData = [...e], this.handleItem(), console.log(this.menuAll, "123");
|
|
1739
|
-
});
|
|
1740
|
-
},
|
|
1741
|
-
getList() {
|
|
1742
|
-
return L({ roleId: this.record.id }).then((s) => {
|
|
1743
|
-
if (s.code === 200) {
|
|
1744
|
-
let e = [], t = [];
|
|
1745
|
-
const i = (a, l) => (a = a.filter((r, d) => {
|
|
1746
|
-
r.parentId = l, r.open = !0, r.checked = !1, r.isIndeterminate = !1, r.transkey = r.transkey ? r.transkey : null, r.title = r.name, r.menusType = r.formlist && r.viewlist ? 0 : r.btnlist ? 1 : 2, t.push(r.id), r.type === 1 && e.push(r.id);
|
|
1747
|
-
let o = [];
|
|
1748
|
-
return r.viewlist && r.viewlist.length > 0 && (r.viewlist.map((c) => (c.iconClass = "gd-icon-shitumoshi", c)), o = o.concat(r.viewlist)), r.formlist && r.formlist.length > 0 && (r.formlist.map((c) => (c.iconClass = "gd-icon-biaodanmoshi", c)), o = o.concat(r.formlist)), r.btnlist && r.btnlist.length > 0 && (o = o.concat(r.btnlist)), o.length > 0 && (r.children = i(o, r.id)), !0;
|
|
1749
|
-
}), a);
|
|
1750
|
-
this.menuAll = s.data.list;
|
|
1751
|
-
let n = JSON.parse(JSON.stringify(this.menuAll));
|
|
1752
|
-
i(n, 0), this.checkedKeys = e, this.allCheckedKeys = t, this.menuTreeDatad = [...n];
|
|
1753
|
-
}
|
|
1754
|
-
return s;
|
|
1755
|
-
});
|
|
1756
|
-
},
|
|
1757
|
-
getMenuIds(s) {
|
|
1758
|
-
let e = [], t = [];
|
|
1759
|
-
const i = (n) => (n = n.filter((a, l) => (a.menusType !== 2 ? e.push(a.id) : t.push(a.id), a.children && a.children.length > 0 && (a.children = i(a.children)), !0)), n);
|
|
1760
|
-
return s.children && i(s.children), { arr: e, btn: t };
|
|
1761
|
-
},
|
|
1762
|
-
findParent(s, e, t) {
|
|
1763
|
-
for (let i of s)
|
|
1764
|
-
if (i.id === e.parentId || i.children && i.children.length > 0 && this.findParent(i.children, e, t))
|
|
1765
|
-
return t.unshift(i), !0;
|
|
1766
|
-
return !1;
|
|
1767
|
-
},
|
|
1768
|
-
open(s) {
|
|
1769
|
-
this.record = s, this.visible = !0, this.init();
|
|
1770
|
-
},
|
|
1771
|
-
closed() {
|
|
1772
|
-
this.fullscreen = !1, this.visible = !1, this.menuTreeData = [], this.checkedKeys = [];
|
|
1773
|
-
},
|
|
1774
|
-
toggleFullscreen() {
|
|
1775
|
-
this.fullscreen = !this.fullscreen;
|
|
2097
|
+
toggleFullscreen() {
|
|
2098
|
+
this.fullscreen = !this.fullscreen;
|
|
1776
2099
|
},
|
|
1777
2100
|
doEvent(s) {
|
|
1778
2101
|
const e = s.item.functionName;
|
|
@@ -1780,270 +2103,25 @@ const we = {
|
|
|
1780
2103
|
}
|
|
1781
2104
|
}
|
|
1782
2105
|
};
|
|
1783
|
-
var
|
|
2106
|
+
var Ae = function() {
|
|
1784
2107
|
var e = this, t = e._self._c;
|
|
1785
2108
|
return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
1786
2109
|
e.visible = i;
|
|
1787
|
-
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
$e,
|
|
1793
|
-
Ke,
|
|
1794
|
-
!1,
|
|
1795
|
-
null,
|
|
1796
|
-
"e6593396",
|
|
1797
|
-
null,
|
|
1798
|
-
null
|
|
1799
|
-
);
|
|
1800
|
-
const Te = Ce.exports;
|
|
1801
|
-
const Re = {
|
|
1802
|
-
name: "GdRole",
|
|
1803
|
-
props: {
|
|
1804
|
-
height: {
|
|
1805
|
-
type: Number,
|
|
1806
|
-
default: 100
|
|
1807
|
-
},
|
|
1808
|
-
openMode: {
|
|
1809
|
-
type: String,
|
|
1810
|
-
default: "page"
|
|
1811
|
-
},
|
|
1812
|
-
openSelecteKeys: {
|
|
1813
|
-
type: Array,
|
|
1814
|
-
default: () => []
|
|
1815
|
-
}
|
|
1816
|
-
},
|
|
1817
|
-
mixins: [b, j],
|
|
1818
|
-
data() {
|
|
1819
|
-
return {
|
|
1820
|
-
appsId: "",
|
|
1821
|
-
transKey: "gd.btn.add",
|
|
1822
|
-
formLoading: !1,
|
|
1823
|
-
loading: !0,
|
|
1824
|
-
selectedRowKeys: [],
|
|
1825
|
-
selectedRows: [],
|
|
1826
|
-
queryParam: {},
|
|
1827
|
-
allRowData: [],
|
|
1828
|
-
loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), I(Object.assign(s, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data))),
|
|
1829
|
-
isDoc: ""
|
|
1830
|
-
};
|
|
1831
|
-
},
|
|
1832
|
-
components: { RoleGrant: Y, RoleMenu: le, RoleMenuViewForm: Te, UserAuthorization: me, DocumentAuthorization: ke },
|
|
1833
|
-
computed: {
|
|
1834
|
-
getTableButtons() {
|
|
1835
|
-
return this.tableButtons.filter((s) => s.functionName === "grantRoleAppMenu" ? !!this.appsId : s.functionName === "documentAuthorizationMenu" ? this.isDoc == 1 : !0);
|
|
1836
|
-
},
|
|
1837
|
-
initialLoading() {
|
|
1838
|
-
return this.openMode === "page";
|
|
1839
|
-
},
|
|
1840
|
-
selectedKeep() {
|
|
1841
|
-
return this.openMode !== "page";
|
|
1842
|
-
},
|
|
1843
|
-
getFormColumns() {
|
|
1844
|
-
return this.formColumns.filter((s) => (s.prop === "code" && (s.disabled = this.transKey !== "gd.btn.add"), !(this.transKey === "gd.https.copy" && s.prop === "code")));
|
|
1845
|
-
},
|
|
1846
|
-
getHeight() {
|
|
1847
|
-
return this.height;
|
|
1848
|
-
},
|
|
1849
|
-
...h(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
1850
|
-
},
|
|
1851
|
-
methods: {
|
|
1852
|
-
getConfigInfo() {
|
|
1853
|
-
y({
|
|
1854
|
-
code: "GDS_Enable_Doc_Premissions"
|
|
1855
|
-
}).then((e) => {
|
|
1856
|
-
e.code === 200 && (this.isDoc = e.data.value);
|
|
1857
|
-
});
|
|
1858
|
-
},
|
|
1859
|
-
getAppId() {
|
|
1860
|
-
y({ code: "App_Id" }).then((s) => {
|
|
1861
|
-
s.code === 200 && (this.appsId = s.data ? s.data.value : "");
|
|
1862
|
-
});
|
|
1863
|
-
},
|
|
1864
|
-
documentAuthorizationMenu() {
|
|
1865
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1866
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1867
|
-
return;
|
|
1868
|
-
}
|
|
1869
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1870
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1871
|
-
return;
|
|
1872
|
-
}
|
|
1873
|
-
this.$refs.documentAuthorization.open(this.selectedRows[0]);
|
|
1874
|
-
},
|
|
1875
|
-
userAuthorizationMenu() {
|
|
1876
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1877
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1878
|
-
return;
|
|
1879
|
-
}
|
|
1880
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1881
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1882
|
-
return;
|
|
1883
|
-
}
|
|
1884
|
-
this.$refs.userAuthorization.open(this.selectedRows[0]);
|
|
1885
|
-
},
|
|
1886
|
-
grantRoleMenu() {
|
|
1887
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1888
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1889
|
-
return;
|
|
1890
|
-
}
|
|
1891
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1892
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1893
|
-
return;
|
|
1894
|
-
}
|
|
1895
|
-
this.$refs.roleMenu.open(this.selectedRows[0]);
|
|
1896
|
-
},
|
|
1897
|
-
grantRoleAppMenu() {
|
|
1898
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1899
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1900
|
-
return;
|
|
1901
|
-
}
|
|
1902
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1903
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1904
|
-
return;
|
|
1905
|
-
}
|
|
1906
|
-
this.$refs.roleMenu.open(this.selectedRows[0], this.appsId);
|
|
1907
|
-
},
|
|
1908
|
-
grantRoleGrant() {
|
|
1909
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1910
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1911
|
-
return;
|
|
1912
|
-
}
|
|
1913
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1914
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1915
|
-
return;
|
|
1916
|
-
}
|
|
1917
|
-
this.$refs.roleGrant.open(this.selectedRows[0]);
|
|
1918
|
-
},
|
|
1919
|
-
grantRoleVF() {
|
|
1920
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1921
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1922
|
-
return;
|
|
1923
|
-
}
|
|
1924
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1925
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1926
|
-
return;
|
|
1927
|
-
}
|
|
1928
|
-
this.$refs.roleMenuViewForm.open(this.selectedRows[0]);
|
|
1929
|
-
},
|
|
1930
|
-
saveQueries(s) {
|
|
1931
|
-
this.queryParam = { ...s }, this.refresh();
|
|
1932
|
-
},
|
|
1933
|
-
refresh() {
|
|
1934
|
-
this.$refs.table.refresh();
|
|
1935
|
-
},
|
|
1936
|
-
editForm(s) {
|
|
1937
|
-
this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
|
|
1938
|
-
},
|
|
1939
|
-
del() {
|
|
1940
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1941
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
1942
|
-
return;
|
|
1943
|
-
}
|
|
1944
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1945
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
1946
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1947
|
-
showClose: !1,
|
|
1948
|
-
confirmButtonLoading: !1,
|
|
1949
|
-
cancelButtonLoading: !1,
|
|
1950
|
-
closeOnClickModal: !1,
|
|
1951
|
-
type: "warning",
|
|
1952
|
-
confirmButtonClass: "el-button--danger",
|
|
1953
|
-
customClass: "custom-alert",
|
|
1954
|
-
callback: () => {
|
|
1955
|
-
},
|
|
1956
|
-
beforeClose: (s, e, t) => {
|
|
1957
|
-
this.delHand(s, e, t);
|
|
1958
|
-
}
|
|
1959
|
-
});
|
|
1960
|
-
},
|
|
1961
|
-
delHand(s, e, t) {
|
|
1962
|
-
if (s !== "confirm") {
|
|
1963
|
-
t();
|
|
1964
|
-
return;
|
|
1965
|
-
}
|
|
1966
|
-
let i = [];
|
|
1967
|
-
this.selectedRows.forEach((n) => {
|
|
1968
|
-
let a = x(n).then((l) => l);
|
|
1969
|
-
i.push(a);
|
|
1970
|
-
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
|
|
1971
|
-
const a = n.filter((l) => !l.success);
|
|
1972
|
-
a.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + a[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
1973
|
-
});
|
|
1974
|
-
},
|
|
1975
|
-
add() {
|
|
1976
|
-
this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
1977
|
-
},
|
|
1978
|
-
edit() {
|
|
1979
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1980
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1981
|
-
return;
|
|
1982
|
-
}
|
|
1983
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1984
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1985
|
-
return;
|
|
1986
|
-
}
|
|
1987
|
-
this.editForm(this.selectedRows[0]);
|
|
1988
|
-
},
|
|
1989
|
-
copy() {
|
|
1990
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1991
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1992
|
-
return;
|
|
1993
|
-
}
|
|
1994
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1995
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1996
|
-
return;
|
|
1997
|
-
}
|
|
1998
|
-
this.transKey = "gd.https.copy", this.$refs.editForm.open(Object.assign({ ...this.selectedRows[0] }, { roleId: this.selectedRows[0].id }));
|
|
1999
|
-
},
|
|
2000
|
-
sbumit({ data: s, record: e, btn: t }, i, n) {
|
|
2001
|
-
this.formLoading = !0;
|
|
2002
|
-
let a = e ? this.transKey === "gd.https.copy" ? P : D : N;
|
|
2003
|
-
const l = this.transKey !== "gd.https.edit" ? Object.assign(s, { sysappsid: window.$systemInfo.id }) : s;
|
|
2004
|
-
a(l).then((r) => {
|
|
2005
|
-
r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), n(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.formLoading = !1;
|
|
2006
|
-
});
|
|
2007
|
-
},
|
|
2008
|
-
onSelectChange(s, e) {
|
|
2009
|
-
this.selectedRowKeys = s, this.selectedRows = e, this.$emit("onSelectChange", s, e, this.allRowData);
|
|
2010
|
-
},
|
|
2011
|
-
doEvent(s) {
|
|
2012
|
-
let e = s.item.functionName;
|
|
2013
|
-
this[e] && this[e]();
|
|
2014
|
-
}
|
|
2015
|
-
},
|
|
2016
|
-
created() {
|
|
2017
|
-
this.getAppId(), this.getConfigInfo();
|
|
2018
|
-
}
|
|
2019
|
-
};
|
|
2020
|
-
var Se = function() {
|
|
2021
|
-
var e = this, t = e._self._c;
|
|
2022
|
-
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0, selectedKeep: e.selectedKeep, initialLoading: e.initialLoading }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: i, row: n }) {
|
|
2023
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
|
|
2024
|
-
} }, { key: "operator", fn: function() {
|
|
2025
|
-
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.user.roleName", "\u89D2\u8272\u540D"), clearable: "" }, nativeOn: { keyup: function(i) {
|
|
2026
|
-
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
2027
|
-
} }, model: { value: e.queryParam.name, callback: function(i) {
|
|
2028
|
-
e.$set(e.queryParam, "name", i);
|
|
2029
|
-
}, expression: "queryParam.name" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [e.openMode === "page" ? t("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } }) : e._e()], 1)])];
|
|
2030
|
-
}, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: n }) {
|
|
2031
|
-
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
|
|
2032
|
-
} }]) })], 1), t("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.formButtons, columns: e.getFormColumns, labelPosition: e.labelPosition, formMode: e.formMode }, on: { sbumit: e.sbumit } }), t("RoleGrant", { ref: "roleGrant", on: { ok: e.refresh } }), t("RoleMenu", { ref: "roleMenu", on: { ok: e.refresh } }), t("RoleMenuViewForm", { ref: "roleMenuViewForm", on: { ok: e.refresh } }), t("UserAuthorization", { ref: "userAuthorization", on: { ok: e.refresh } }), t("DocumentAuthorization", { ref: "documentAuthorization", on: { ok: e.refresh } })], 1);
|
|
2033
|
-
}, Le = [], Ie = /* @__PURE__ */ u(
|
|
2034
|
-
Re,
|
|
2035
|
-
Se,
|
|
2036
|
-
Le,
|
|
2110
|
+
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.rangeRole", "\u6388\u6743\u8303\u56F4"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? t("el-tree", { ref: "tree", attrs: { data: e.orgTreeData, "show-checkbox": "", "node-key": "id", "default-expand-all": "", "default-checked-keys": e.checkedKeys, props: e.defaultProps } }) : e._e()], 1)], 2)], 1);
|
|
2111
|
+
}, Fe = [], Oe = /* @__PURE__ */ g(
|
|
2112
|
+
Me,
|
|
2113
|
+
Ae,
|
|
2114
|
+
Fe,
|
|
2037
2115
|
!1,
|
|
2038
2116
|
null,
|
|
2039
|
-
"
|
|
2117
|
+
"2b164094",
|
|
2040
2118
|
null,
|
|
2041
2119
|
null
|
|
2042
2120
|
);
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
};
|
|
2121
|
+
const Ee = Oe.exports, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2122
|
+
__proto__: null,
|
|
2123
|
+
default: Ee
|
|
2124
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2047
2125
|
export {
|
|
2048
|
-
|
|
2126
|
+
m as R
|
|
2049
2127
|
};
|