gds-plus-design-vue 1.2.6 → 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 -91087
- 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.f0045877.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.c41228a0.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.b5a3be02.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.3caa11e1.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.a739f4fc.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.d2ad8c97.mjs → system.config.35b13003.mjs} +7 -6
- package/lib/system.datasource.4243937d.js +1 -0
- package/lib/{system.datasource.a77831ab.mjs → system.datasource.7f582bef.mjs} +15 -64
- package/lib/{system.dict.cb276470.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.9d40595f.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
- package/lib/{system.file.8064c8e9.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.2b2fc11a.mjs → system.log.aad4ff54.mjs} +31 -93
- package/lib/system.machine.379beacb.js +1 -0
- package/lib/{system.machine.0130e762.mjs → system.machine.c47be0cc.mjs} +5 -25
- package/lib/{system.notice.5f8cd020.mjs → system.notice.dc1b67cc.mjs} +1075 -1255
- package/lib/system.notice.fb151c45.js +1 -0
- package/lib/system.noticereceived.3a29d891.js +1 -0
- package/lib/{system.noticereceived.51b6353a.mjs → system.noticereceived.e75bf358.mjs} +19 -27
- package/lib/{system.onlineuser.c0a69360.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.1169fe47.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.502a69d8.mjs → system.plugin.4b80cd95.mjs} +503 -552
- package/lib/system.pos.5a1663d8.js +1 -0
- package/lib/{system.pos.8c44c029.mjs → system.pos.a3bafaaa.mjs} +31 -62
- package/lib/system.promptmanagement.53c301a3.js +1 -0
- package/lib/{system.promptmanagement.d8565db4.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
- package/lib/{system.role.19959d7f.mjs → system.role.9edb5922.mjs} +512 -486
- package/lib/system.role.e164f059.js +1 -0
- package/lib/{system.sumberrules.087015a4.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.4056d586.mjs → system.teammembers.b8e53d99.mjs} +257 -199
- package/lib/system.timers.2f884e41.js +38 -0
- package/lib/{system.timers.6f61bfe1.mjs → system.timers.551c4a4b.mjs} +2202 -2278
- package/lib/system.translation.6e99c852.js +1 -0
- package/lib/{system.translation.9b88fbf2.mjs → system.translation.c2c1f40c.mjs} +437 -431
- package/lib/{system.user.bdf2613e.mjs → system.user.b99911de.mjs} +1082 -1025
- package/lib/system.user.dffc2543.js +14 -0
- package/lib/{system.useraffiliation.63b6bb36.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.c36d6792.mjs → system.webresource.8a8d856b.mjs} +177 -219
- package/lib/{system.welcome.14785b50.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 +92 -28
- package/locale/id_ID.js +76 -12
- package/locale/vi_VN.js +2012 -1948
- package/locale/zh_CN.js +97 -33
- package/package.json +106 -105
- package/lib/chartbi.114d32d7.js +0 -60
- package/lib/chartbi.eb4dd0af.mjs +0 -27639
- package/lib/main.03984fed.js +0 -1
- package/lib/main.1050afb3.js +0 -1
- package/lib/main.64122541.js +0 -1
- package/lib/main.b7d2c6ee.js +0 -1
- package/lib/messages.828b6ed8.js +0 -9
- package/lib/system.account.3181bcd6.js +0 -216
- package/lib/system.account.7c6ea20c.mjs +0 -2552
- package/lib/system.config.10f57fa2.js +0 -1
- package/lib/system.datasource.d5eea7f2.js +0 -1
- package/lib/system.dict.d73658f1.js +0 -1
- package/lib/system.duplicatechecking.5c8a3eef.mjs +0 -2142
- package/lib/system.duplicatechecking.d24ba6ea.js +0 -1
- package/lib/system.email.4bf52f2d.js +0 -41
- package/lib/system.email.db5da8d7.mjs +0 -7432
- package/lib/system.fieldsecurity.eb217079.js +0 -1
- package/lib/system.file.c1884db7.js +0 -1
- package/lib/system.log.389af80d.js +0 -1
- package/lib/system.machine.49fc6405.js +0 -1
- package/lib/system.notice.a89f4826.js +0 -1
- package/lib/system.noticereceived.5e0773c3.js +0 -1
- package/lib/system.onlineuser.67733846.js +0 -1
- package/lib/system.org.ff54d620.js +0 -1
- package/lib/system.permissions.cc9a9866.mjs +0 -212
- package/lib/system.permissions.e6317c5a.js +0 -9
- package/lib/system.plugin.3467d572.js +0 -1
- package/lib/system.pos.4aadf86e.js +0 -1
- package/lib/system.promptmanagement.9ba710d6.js +0 -1
- package/lib/system.role.890c8ca2.js +0 -1
- package/lib/system.sumberrules.068ebe4a.js +0 -1
- package/lib/system.team.27cd57f7.mjs +0 -1000
- package/lib/system.team.2b28502b.js +0 -1
- package/lib/system.teammembers.e3baf783.js +0 -1
- package/lib/system.timers.cb0a3bd0.js +0 -38
- package/lib/system.translation.f3884a0a.js +0 -1
- package/lib/system.user.3bd95871.js +0 -14
- package/lib/system.useraffiliation.7db6e13c.js +0 -1
- package/lib/system.webresource.ede248a8.js +0 -1
- package/lib/system.welcome.c9eefa06.js +0 -1
|
@@ -0,0 +1,972 @@
|
|
|
1
|
+
import { n as c, m as u } from "./components.chartbi.470b96af.mjs";
|
|
2
|
+
import { h as R, g as D } from "./http.usermanage.f5491144.mjs";
|
|
3
|
+
import { o as f, c as x, d as $, v as C, e as L, g as K } from "./http.rolemanage.da5c40e9.mjs";
|
|
4
|
+
import { a as I } from "./http.main.1af1e119.mjs";
|
|
5
|
+
import { g as m } from "./http.appmanage.9b22ff82.mjs";
|
|
6
|
+
import { c as _ } from "./http.menumanage.09fffb7d.mjs";
|
|
7
|
+
import { d as P } from "./http.orgmanage.0b1df8d5.mjs";
|
|
8
|
+
const S = {
|
|
9
|
+
name: "dataItem",
|
|
10
|
+
props: {
|
|
11
|
+
record: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => []
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
mounted() {
|
|
17
|
+
},
|
|
18
|
+
methods: {
|
|
19
|
+
open(i) {
|
|
20
|
+
console.log(this.record, this.exists), this.$emit("open", i);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var M = function() {
|
|
25
|
+
var e = this, t = e._self._c;
|
|
26
|
+
return t("div", [e._l(e.record, function(a) {
|
|
27
|
+
return [t("div", { staticClass: "list-item" }, [a.menusType !== 2 ? t("div", { staticClass: "item-name" }, [a.menusType !== 1 && a.children && a.children.length > 0 ? t("i", { class: a.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(s) {
|
|
28
|
+
return e.open(a);
|
|
29
|
+
} } }) : e._e(), a.iconClass ? t("i", { staticClass: "gd-icons", class: a.iconClass, staticStyle: { "font-size": "15px" } }) : e._e(), e._v(" " + e._s(a.name) + " ")]) : e._e(), a.menusType !== 0 ? t("div", { class: a.exists ? "item-activet" : "item-actives" }, [a.hasExists.length > 0 ? t("el-tooltip", { attrs: { placement: "left" } }, [e._l(a.hasExists, function(s) {
|
|
30
|
+
return t("template", { slot: "content" }, [e._v(" " + e._s(s.name) + " ")]);
|
|
31
|
+
}), t("div", { staticClass: "btn-list-item" }, [e._v(" " + e._s(a.exists ? e.$i18nt("gd.user.havePermission", "\u6709\u6743\u9650") : e.$i18nt("gd.user.NoPermission", "\u65E0\u6743\u9650")) + " ")])], 2) : t("div", { staticClass: "btn-list-item" }, [e._v(" " + e._s(a.exists ? e.$i18nt("gd.user.havePermission", "\u6709\u6743\u9650") : e.$i18nt("gd.user.NoPermission", "\u65E0\u6743\u9650")) + " ")])], 1) : e._e()]), t("div", { staticClass: "item-data" }, [a.children && a.children.length > 0 && a.children[0].menusType === 2 ? t("div", { staticClass: "item-data-list" }, [e._l(a.children, function(s) {
|
|
32
|
+
return [t("div", { staticClass: "item-name item-named" }, [s.hasExists.length > 0 ? t("el-tooltip", { attrs: { placement: "right" } }, [e._l(s.hasExists, function(n) {
|
|
33
|
+
return t("template", { slot: "content" }, [e._v(" " + e._s(n.name) + " ")]);
|
|
34
|
+
}), t("div", { class: s.exists ? "item-named-title" : "item-named-title-err" }, [e._v(" " + e._s(s.name) + " "), t("i", { class: s.exists ? "gd-icons gd-icon-zhengque" : "gd-icons gd-icon-cuowu" })])], 2) : t("div", { class: s.exists ? "item-named-title" : "item-named-title-err" }, [e._v(" " + e._s(s.name) + " "), t("i", { class: s.exists ? "gd-icons gd-icon-zhengque" : "gd-icons gd-icon-cuowu" })])], 1)];
|
|
35
|
+
})], 2) : e._e()]), a.children && a.children.length > 0 && a.children[0].menusType !== 2 ? t("div", { staticClass: "list-more" }, [a.open ? t("dataItem", { attrs: { record: a.children }, on: { open: e.open } }) : e._e()], 1) : e._e()];
|
|
36
|
+
})], 2);
|
|
37
|
+
}, A = [], N = /* @__PURE__ */ c(
|
|
38
|
+
S,
|
|
39
|
+
M,
|
|
40
|
+
A,
|
|
41
|
+
!1,
|
|
42
|
+
null,
|
|
43
|
+
"fbb86dac",
|
|
44
|
+
null,
|
|
45
|
+
null
|
|
46
|
+
);
|
|
47
|
+
const p = N.exports;
|
|
48
|
+
const E = {
|
|
49
|
+
props: {
|
|
50
|
+
selectedRows: {
|
|
51
|
+
type: Array,
|
|
52
|
+
default: () => []
|
|
53
|
+
},
|
|
54
|
+
selectedRowKeys: {
|
|
55
|
+
type: Array,
|
|
56
|
+
default: () => []
|
|
57
|
+
},
|
|
58
|
+
height: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 400
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
data() {
|
|
64
|
+
return {
|
|
65
|
+
applicationList: [],
|
|
66
|
+
menuData: null,
|
|
67
|
+
defaultProps: {
|
|
68
|
+
children: "children",
|
|
69
|
+
label: "title"
|
|
70
|
+
},
|
|
71
|
+
systemMenuAll: [],
|
|
72
|
+
haveMenu: [],
|
|
73
|
+
exists: !1,
|
|
74
|
+
menuDatas: null,
|
|
75
|
+
confirmLoading: !1,
|
|
76
|
+
isPlanSaving: !1
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
components: {
|
|
80
|
+
dataItem: p
|
|
81
|
+
},
|
|
82
|
+
computed: {
|
|
83
|
+
treeHeight() {
|
|
84
|
+
return `${this.height}px`;
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
watch: {
|
|
88
|
+
selectedRowKeys: {
|
|
89
|
+
handler(i) {
|
|
90
|
+
i.length !== 0 && this.init();
|
|
91
|
+
},
|
|
92
|
+
deep: !0,
|
|
93
|
+
immediate: !0
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
mounted() {
|
|
97
|
+
this.init();
|
|
98
|
+
},
|
|
99
|
+
methods: {
|
|
100
|
+
openItem(i) {
|
|
101
|
+
let e = [...this.menuData];
|
|
102
|
+
const t = (a) => (a = a.filter((s, n) => (s.id === i.id && (s.open = !s.open), s.children && s.children.length > 0 && (s.children = t(s.children)), !0)), a);
|
|
103
|
+
t(e), this.menuData = [...e], console.log(this.menuData);
|
|
104
|
+
},
|
|
105
|
+
appOpen(i, e) {
|
|
106
|
+
let t = [...this.menuData];
|
|
107
|
+
t[i].open = !t[i].open, this.menuData = [...t];
|
|
108
|
+
},
|
|
109
|
+
refresh() {
|
|
110
|
+
},
|
|
111
|
+
init() {
|
|
112
|
+
this.isPlanSaving || (this.confirmLoading = !0, this.isPlanSaving = !0, Promise.all([this.getMenuList(), this.getApplicationList(), this.ownMenuInfo()]).then((i) => {
|
|
113
|
+
const e = (s) => (s = s.filter((n, r) => (n.open = !0, n.exists = !1, n.hasExists = [], n.menusType = n.type, n.children && n.children.length > 0 && (n.children = e(n.children)), !0)), s);
|
|
114
|
+
e(this.systemMenuAll);
|
|
115
|
+
let t = [], a = this.applicationList.filter((s) => {
|
|
116
|
+
const n = this.systemMenuAll.filter((r) => r.application === s.code);
|
|
117
|
+
return n.length > 0 ? (t = t.concat([...n]), s.children = [...n], s.open = !0, !0) : !1;
|
|
118
|
+
});
|
|
119
|
+
this.menuData = a, this.compareMenuData(a);
|
|
120
|
+
}));
|
|
121
|
+
},
|
|
122
|
+
async compareMenuData(i) {
|
|
123
|
+
let e = this.haveMenu, t = this.selectedRows.map((a) => {
|
|
124
|
+
let s = [];
|
|
125
|
+
for (let n in e)
|
|
126
|
+
n == a.id && (s = e[n]);
|
|
127
|
+
return {
|
|
128
|
+
...a,
|
|
129
|
+
children: s
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
if (!this.haveMenu) {
|
|
133
|
+
console.log("\u6570\u636E\u7ED3\u6784\u4E0D\u5B8C\u6574");
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
this.compareMenuNodes(i, t), this.confirmLoading = !1;
|
|
137
|
+
},
|
|
138
|
+
async compareMenuNodes(i, e) {
|
|
139
|
+
!Array.isArray(i) || (i.map((t) => {
|
|
140
|
+
let a = [];
|
|
141
|
+
e.forEach((s) => {
|
|
142
|
+
s.children.filter((r) => r.id == t.id)[0] && a.push({
|
|
143
|
+
id: s.id,
|
|
144
|
+
name: s.name
|
|
145
|
+
});
|
|
146
|
+
}), t.exists = a.length > 0, t.hasExists = a, t.children && Array.isArray(t.children) && this.compareMenuNodes(t.children, e);
|
|
147
|
+
}), this.isPlanSaving = !1);
|
|
148
|
+
},
|
|
149
|
+
ownMenuInfo() {
|
|
150
|
+
if (this.selectedRowKeys.length !== 0)
|
|
151
|
+
return this.selectedRowKeys.map((i) => i).join(","), f({
|
|
152
|
+
roleids: this.selectedRowKeys
|
|
153
|
+
}).then((i) => (this.haveMenu = i.data, i));
|
|
154
|
+
},
|
|
155
|
+
getMenuList() {
|
|
156
|
+
let i = { AppsId: window.$systemInfo.id };
|
|
157
|
+
return _(i).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
|
|
158
|
+
},
|
|
159
|
+
getApplicationList() {
|
|
160
|
+
if (this.selectedRowKeys.length !== 0)
|
|
161
|
+
return m({ appsId: window.$systemInfo.id }).then((i) => (i.code === 200 && (this.applicationList = i.data), i));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
var O = function() {
|
|
166
|
+
var e = this, t = e._self._c;
|
|
167
|
+
return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "trees-list", style: { height: e.treeHeight } }, [e.menuData ? t("div", [e._l(e.menuData, function(a, s) {
|
|
168
|
+
return [t("div", { staticClass: "app-list-name" }, [a.children && a.children.length > 0 ? t("i", { class: a.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
|
|
169
|
+
return e.appOpen(s, a);
|
|
170
|
+
} } }) : e._e(), e._v(" " + e._s(a.name) + " ")]), a.open ? t("div", { staticStyle: { "padding-left": "20px" } }, [t("dataItem", { attrs: { record: a.children }, on: { open: e.openItem } })], 1) : e._e()];
|
|
171
|
+
})], 2) : e._e()])]);
|
|
172
|
+
}, k = [function() {
|
|
173
|
+
var i = this, e = i._self._c;
|
|
174
|
+
return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
|
|
175
|
+
}], j = /* @__PURE__ */ c(
|
|
176
|
+
E,
|
|
177
|
+
O,
|
|
178
|
+
k,
|
|
179
|
+
!1,
|
|
180
|
+
null,
|
|
181
|
+
"add4290b",
|
|
182
|
+
null,
|
|
183
|
+
null
|
|
184
|
+
);
|
|
185
|
+
const z = j.exports;
|
|
186
|
+
const T = {
|
|
187
|
+
props: {
|
|
188
|
+
selectedRows: {
|
|
189
|
+
type: Array,
|
|
190
|
+
default: () => []
|
|
191
|
+
},
|
|
192
|
+
selectedRowKeys: {
|
|
193
|
+
type: Array,
|
|
194
|
+
default: () => []
|
|
195
|
+
},
|
|
196
|
+
height: {
|
|
197
|
+
type: Number,
|
|
198
|
+
default: 400
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
watch: {
|
|
202
|
+
selectedRowKeys: {
|
|
203
|
+
handler(i) {
|
|
204
|
+
this.init();
|
|
205
|
+
},
|
|
206
|
+
deep: !0,
|
|
207
|
+
immediate: !0
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
data() {
|
|
211
|
+
return {
|
|
212
|
+
confirmLoading: !1,
|
|
213
|
+
loadData: [],
|
|
214
|
+
treeData: [],
|
|
215
|
+
hasData: [],
|
|
216
|
+
rolePermissionMap: {},
|
|
217
|
+
list: [{
|
|
218
|
+
getgrantd: ["1", "2"],
|
|
219
|
+
name: ["\u7528\u6237\u89D2\u8272", "\u7CFB\u7EDF\u7BA1\u7406\u5458"]
|
|
220
|
+
}],
|
|
221
|
+
dict: {},
|
|
222
|
+
isPlanSaving: !1
|
|
223
|
+
};
|
|
224
|
+
},
|
|
225
|
+
computed: {
|
|
226
|
+
treeHeight() {
|
|
227
|
+
return `${this.height}px`;
|
|
228
|
+
},
|
|
229
|
+
dicts() {
|
|
230
|
+
return this.getDictionary("data_scope_type");
|
|
231
|
+
},
|
|
232
|
+
columns() {
|
|
233
|
+
return [
|
|
234
|
+
{
|
|
235
|
+
transKey: "gd.btn.query",
|
|
236
|
+
prop: "getgrant",
|
|
237
|
+
label: "\u67E5\u8BE2"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
transKey: "gd.btn.add",
|
|
241
|
+
prop: "addgrant",
|
|
242
|
+
label: "\u65B0\u589E"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
transKey: "gd.btn.edit",
|
|
246
|
+
prop: "editgrant",
|
|
247
|
+
label: "\u7F16\u8F91"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
transKey: "gd.btn.del",
|
|
251
|
+
prop: "delgrant",
|
|
252
|
+
label: "\u5220\u9664"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
transKey: "gd.relation.assignment",
|
|
256
|
+
prop: "allocationgrant",
|
|
257
|
+
label: "\u5206\u6D3E"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
transKey: "gd.btn.share",
|
|
261
|
+
prop: "sharegrant",
|
|
262
|
+
label: "\u5171\u4EAB"
|
|
263
|
+
}
|
|
264
|
+
];
|
|
265
|
+
},
|
|
266
|
+
...u(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
267
|
+
},
|
|
268
|
+
methods: {
|
|
269
|
+
refresh() {
|
|
270
|
+
},
|
|
271
|
+
init() {
|
|
272
|
+
this.isPlanSaving || (this.confirmLoading = !0, this.isPlanSaving = !0, this.loadData.length == 0 ? Promise.all([this.getOrgDetail(), this.ownMenuInfo()]).then((i) => {
|
|
273
|
+
this.getData();
|
|
274
|
+
}) : Promise.all([this.ownMenuInfo()]).then((i) => {
|
|
275
|
+
this.getData();
|
|
276
|
+
}));
|
|
277
|
+
},
|
|
278
|
+
getData() {
|
|
279
|
+
this.treeData = this.loadData.map((i) => {
|
|
280
|
+
let e = this.getViewData(i), t = /* @__PURE__ */ new Map(), a = {};
|
|
281
|
+
return this.columns.forEach((s) => {
|
|
282
|
+
let n = this.getTypePermission(e, s), r = this.getTypeDict(n, s);
|
|
283
|
+
t.set(s.prop, n.result), Object.assign(a, r);
|
|
284
|
+
}), Object.assign(i, Object.fromEntries(t), a);
|
|
285
|
+
}), this.confirmLoading = !1, this.isPlanSaving = !1;
|
|
286
|
+
},
|
|
287
|
+
getTypeDict(i, e) {
|
|
288
|
+
let t = /* @__PURE__ */ new Map();
|
|
289
|
+
return this.dicts.forEach((a) => {
|
|
290
|
+
const s = i.ids.filter((n) => n.data.includes(a.code));
|
|
291
|
+
t.set(`${e.prop}${a.code}Role`, s);
|
|
292
|
+
}), Object.fromEntries(t);
|
|
293
|
+
},
|
|
294
|
+
getTypePermission(i, e) {
|
|
295
|
+
let t = [], a = [];
|
|
296
|
+
return i.forEach((n) => {
|
|
297
|
+
const r = n[e.prop] && n[e.prop].length > 0 ? n[e.prop] : [];
|
|
298
|
+
t = t.concat(r), a.push({
|
|
299
|
+
roleid: n.roleid,
|
|
300
|
+
data: r,
|
|
301
|
+
rolename: n.rolename
|
|
302
|
+
});
|
|
303
|
+
}), {
|
|
304
|
+
result: t.filter((n, r, l) => l.indexOf(n) === r),
|
|
305
|
+
ids: a
|
|
306
|
+
};
|
|
307
|
+
},
|
|
308
|
+
getViewData(i) {
|
|
309
|
+
let e = [];
|
|
310
|
+
return this.hasData.forEach((t, a) => {
|
|
311
|
+
let s = t.grants.filter((r) => r.syscodegenid == i.syscodegenid)[0], n = this.selectedRows.filter((r) => r.id == t.roleid)[0];
|
|
312
|
+
s && e.push(
|
|
313
|
+
Object.assign({}, {
|
|
314
|
+
...s
|
|
315
|
+
}, {
|
|
316
|
+
roleid: t.roleid,
|
|
317
|
+
rolename: n.name,
|
|
318
|
+
getgrant: s.getgrant ? s.getgrant.split(",") : [],
|
|
319
|
+
addgrant: s.addgrant ? s.addgrant.split(",") : [],
|
|
320
|
+
editgrant: s.editgrant ? s.editgrant.split(",") : [],
|
|
321
|
+
delgrant: s.delgrant ? s.delgrant.split(",") : [],
|
|
322
|
+
allocationgrant: s.allocationgrant ? s.allocationgrant.split(",") : [],
|
|
323
|
+
sharegrant: s.sharegrant ? s.sharegrant.split(",") : []
|
|
324
|
+
})
|
|
325
|
+
);
|
|
326
|
+
}), e;
|
|
327
|
+
},
|
|
328
|
+
getOrgDetail() {
|
|
329
|
+
return P({
|
|
330
|
+
roleId: this.selectedRowKeys[0]
|
|
331
|
+
}).then((i) => {
|
|
332
|
+
let e = i.data.grants.map((t) => Object.assign(t, {
|
|
333
|
+
getgrant: [],
|
|
334
|
+
addgrant: [],
|
|
335
|
+
editgrant: [],
|
|
336
|
+
delgrant: [],
|
|
337
|
+
allocationgrant: [],
|
|
338
|
+
sharegrant: []
|
|
339
|
+
}));
|
|
340
|
+
this.loadData = [...e];
|
|
341
|
+
});
|
|
342
|
+
},
|
|
343
|
+
ownMenuInfo() {
|
|
344
|
+
if (this.selectedRowKeys.length !== 0)
|
|
345
|
+
return x({
|
|
346
|
+
roleids: this.selectedRowKeys.join(",")
|
|
347
|
+
}).then((i) => {
|
|
348
|
+
this.hasData = i.data;
|
|
349
|
+
});
|
|
350
|
+
},
|
|
351
|
+
getDictionary(i) {
|
|
352
|
+
return this.dict = this.$options.filters.dictData(i), this.dict;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
var H = function() {
|
|
357
|
+
var e = this, t = e._self._c;
|
|
358
|
+
return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "trees-list", style: { height: e.treeHeight } }, [e._l(e.treeData, function(a) {
|
|
359
|
+
return [t("div", { staticClass: "list-item" }, [t("div", { staticClass: "item-name" }, [t("i", { staticClass: "el-icon-menu" }), e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.syscodegenname)) + " ")])]), t("div", { staticStyle: { "padding-left": "23px" } }, e._l(e.columns, function(s) {
|
|
360
|
+
return t("div", { staticClass: "item-name" }, [t("div", [t("i", { staticClass: "gd-icons gd-icon-xiangqing_shujuxiangqing" }), e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transKey}`, s.label)) + " ")]), t("div", { staticClass: "item-data" }, [t("div", { staticClass: "item-data-list" }, [e._l(e.dicts, function(n) {
|
|
361
|
+
return [t("div", { staticClass: "item-name item-named" }, [a[`${s.prop}${n.code}Role`].length > 0 ? t("el-tooltip", { attrs: { placement: "right" } }, [e._l(a[`${s.prop}${n.code}Role`], function(r) {
|
|
362
|
+
return t("template", { slot: "content" }, [e._v(" " + e._s(r.rolename) + " ")]);
|
|
363
|
+
}), t("div", { class: a[s.prop].includes(n.code) ? "item-named-title" : "item-named-title-err" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transKey}`, n.name)) + " "), t("i", { class: a[s.prop].includes(n.code) ? "gd-icons gd-icon-zhengque" : "gd-icons gd-icon-cuowu" })])], 2) : t("div", { class: a[s.prop].includes(n.code) ? "item-named-title" : "item-named-title-err" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${n.transKey}`, n.name)) + " "), t("i", { class: a[s.prop].includes(n.code) ? "gd-icons gd-icon-zhengque" : "gd-icons gd-icon-cuowu" })])], 1)];
|
|
364
|
+
})], 2)])]);
|
|
365
|
+
}), 0)];
|
|
366
|
+
})], 2)]);
|
|
367
|
+
}, q = [function() {
|
|
368
|
+
var i = this, e = i._self._c;
|
|
369
|
+
return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
|
|
370
|
+
}], V = /* @__PURE__ */ c(
|
|
371
|
+
T,
|
|
372
|
+
H,
|
|
373
|
+
q,
|
|
374
|
+
!1,
|
|
375
|
+
null,
|
|
376
|
+
"684c74a0",
|
|
377
|
+
null,
|
|
378
|
+
null
|
|
379
|
+
);
|
|
380
|
+
const B = V.exports;
|
|
381
|
+
const F = {
|
|
382
|
+
props: {
|
|
383
|
+
selectedRows: {
|
|
384
|
+
type: Array,
|
|
385
|
+
default: () => []
|
|
386
|
+
},
|
|
387
|
+
selectedRowKeys: {
|
|
388
|
+
type: Array,
|
|
389
|
+
default: () => []
|
|
390
|
+
},
|
|
391
|
+
height: {
|
|
392
|
+
type: Number,
|
|
393
|
+
default: 400
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
data() {
|
|
397
|
+
return {
|
|
398
|
+
confirmLoading: !1,
|
|
399
|
+
viewData: [],
|
|
400
|
+
viewDatas: [],
|
|
401
|
+
hasData: [],
|
|
402
|
+
isPlanSaving: !1
|
|
403
|
+
};
|
|
404
|
+
},
|
|
405
|
+
computed: {
|
|
406
|
+
treeHeight() {
|
|
407
|
+
return `${this.height}px`;
|
|
408
|
+
},
|
|
409
|
+
selArr() {
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
components: {
|
|
413
|
+
dataItem: p
|
|
414
|
+
},
|
|
415
|
+
watch: {
|
|
416
|
+
selectedRowKeys: {
|
|
417
|
+
handler(i) {
|
|
418
|
+
i.length !== 0 && this.init();
|
|
419
|
+
},
|
|
420
|
+
deep: !0,
|
|
421
|
+
immediate: !0
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
methods: {
|
|
425
|
+
openItem(i) {
|
|
426
|
+
let e = [...this.viewData];
|
|
427
|
+
const t = (a) => (a = a.filter((s, n) => (s.id === i.id && (s.open = !s.open), s.children && s.children.length > 0 && (s.children = t(s.children)), !0)), a);
|
|
428
|
+
t(e), this.viewData = [...e];
|
|
429
|
+
},
|
|
430
|
+
appOpen(i, e) {
|
|
431
|
+
let t = [...this.viewData];
|
|
432
|
+
t[i].open = !t[i].open, this.viewData = [...t];
|
|
433
|
+
},
|
|
434
|
+
init(i) {
|
|
435
|
+
if (!this.isPlanSaving) {
|
|
436
|
+
if (this.confirmLoading = !0, this.isPlanSaving = !0, this.viewDatas.length == 0) {
|
|
437
|
+
Promise.all([this.getList(), this.getLists(i)]).then((e) => {
|
|
438
|
+
this.compareViewData();
|
|
439
|
+
});
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
Promise.all([this.getLists(i)]).then((e) => {
|
|
443
|
+
this.compareViewData();
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
compareViewData(i) {
|
|
448
|
+
let e = [];
|
|
449
|
+
this.hasData = this.hasData.map((s, n) => {
|
|
450
|
+
let r = this.getViewData(s.list);
|
|
451
|
+
return this.selectedRowKeys.includes(s.roleid) && (e = e.concat(r)), Object.assign(s, {
|
|
452
|
+
arr: r,
|
|
453
|
+
name: this.selectedRows[n].name
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
let t = this.viewDatas;
|
|
457
|
+
const a = (s) => (s = s.filter((n, r) => {
|
|
458
|
+
let l = [];
|
|
459
|
+
return this.hasData.forEach((o) => {
|
|
460
|
+
o.arr.includes(n.id) && l.push({
|
|
461
|
+
id: o.roleid,
|
|
462
|
+
name: o.name
|
|
463
|
+
});
|
|
464
|
+
}), n.open = !0, n.exists = e.includes(n.id), n.hasExists = l, n.children && n.children.length > 0 && (n.children = a(n.children)), !0;
|
|
465
|
+
}), s);
|
|
466
|
+
a(t), this.confirmLoading = !1, this.viewData = t, this.isPlanSaving = !1;
|
|
467
|
+
},
|
|
468
|
+
getViewData(i) {
|
|
469
|
+
let e = [];
|
|
470
|
+
const t = (a) => (a = a.filter((s, n) => (s.type == 1 && e.push(s.id), s.viewlist && s.viewlist.length > 0 && (s.viewlist = t(s.viewlist)), s.formlist && s.formlist.length > 0 && (s.formlist = t(s.formlist)), s.btnlist && s.btnlist.length > 0 && (s.btnlist = t(s.btnlist)), !0)), a);
|
|
471
|
+
return t(i), e;
|
|
472
|
+
},
|
|
473
|
+
getList() {
|
|
474
|
+
return $({
|
|
475
|
+
roleId: this.selectedRowKeys[0]
|
|
476
|
+
}).then((i) => {
|
|
477
|
+
if (i.code == 200) {
|
|
478
|
+
const e = (a, s) => (a = a.filter((n, r) => {
|
|
479
|
+
n.parentId = s, n.open = !0, n.transkey = n.transkey ? n.transkey : null, n.menusType = n.formlist && n.viewlist ? 0 : n.btnlist ? 1 : 2;
|
|
480
|
+
let l = [];
|
|
481
|
+
return n.viewlist && n.viewlist.length > 0 && (n.viewlist.map((o) => (o.iconClass = "gd-icon-shitumoshi", o)), l = l.concat(n.viewlist)), n.formlist && n.formlist.length > 0 && (n.formlist.map((o) => (o.iconClass = "gd-icon-biaodanmoshi", o)), l = l.concat(n.formlist)), n.btnlist && n.btnlist.length > 0 && (l = l.concat(n.btnlist)), l.length > 0 && (n.children = e(l, n.id)), !0;
|
|
482
|
+
}), a);
|
|
483
|
+
let t = JSON.parse(JSON.stringify(i.data.list));
|
|
484
|
+
e(t, 0), this.viewDatas = [...t];
|
|
485
|
+
}
|
|
486
|
+
return i;
|
|
487
|
+
});
|
|
488
|
+
},
|
|
489
|
+
getLists(i) {
|
|
490
|
+
return C({
|
|
491
|
+
roleIds: i ? i.join(",") : this.selectedRowKeys.join(",")
|
|
492
|
+
}).then((e) => {
|
|
493
|
+
let t = [];
|
|
494
|
+
for (let a in e.data)
|
|
495
|
+
t.push(e.data[a]);
|
|
496
|
+
this.hasData = t;
|
|
497
|
+
});
|
|
498
|
+
},
|
|
499
|
+
refresh() {
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
var G = function() {
|
|
504
|
+
var e = this, t = e._self._c;
|
|
505
|
+
return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "trees-list", style: { height: e.treeHeight } }, [e.viewData ? t("div", [t("dataItem", { attrs: { record: e.viewData, selArr: e.selArr }, on: { open: e.openItem } })], 1) : e._e()])]);
|
|
506
|
+
}, U = [function() {
|
|
507
|
+
var i = this, e = i._self._c;
|
|
508
|
+
return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
|
|
509
|
+
}], J = /* @__PURE__ */ c(
|
|
510
|
+
F,
|
|
511
|
+
G,
|
|
512
|
+
U,
|
|
513
|
+
!1,
|
|
514
|
+
null,
|
|
515
|
+
"1d2b29c4",
|
|
516
|
+
null,
|
|
517
|
+
null
|
|
518
|
+
);
|
|
519
|
+
const Q = J.exports;
|
|
520
|
+
const W = {
|
|
521
|
+
props: {
|
|
522
|
+
selectedRows: {
|
|
523
|
+
type: Array,
|
|
524
|
+
default: () => []
|
|
525
|
+
},
|
|
526
|
+
selectedRowKeys: {
|
|
527
|
+
type: Array,
|
|
528
|
+
default: () => []
|
|
529
|
+
},
|
|
530
|
+
height: {
|
|
531
|
+
type: Number,
|
|
532
|
+
default: 400
|
|
533
|
+
},
|
|
534
|
+
appsId: {
|
|
535
|
+
type: String,
|
|
536
|
+
default: ""
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
data() {
|
|
540
|
+
return {
|
|
541
|
+
applicationList: [],
|
|
542
|
+
menuData: [],
|
|
543
|
+
defaultProps: {
|
|
544
|
+
children: "children",
|
|
545
|
+
label: "title"
|
|
546
|
+
},
|
|
547
|
+
systemMenuAll: [],
|
|
548
|
+
haveMenu: [],
|
|
549
|
+
exists: !1,
|
|
550
|
+
menuDatas: null,
|
|
551
|
+
confirmLoading: !1,
|
|
552
|
+
isPlanSaving: !1,
|
|
553
|
+
isShow: !1
|
|
554
|
+
};
|
|
555
|
+
},
|
|
556
|
+
components: {
|
|
557
|
+
dataItem: p
|
|
558
|
+
},
|
|
559
|
+
computed: {
|
|
560
|
+
treeHeight() {
|
|
561
|
+
return `${this.height}px`;
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
watch: {
|
|
565
|
+
selectedRowKeys: {
|
|
566
|
+
handler(i) {
|
|
567
|
+
i.length !== 0 && this.init();
|
|
568
|
+
},
|
|
569
|
+
deep: !0,
|
|
570
|
+
immediate: !0
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
mounted() {
|
|
574
|
+
this.init();
|
|
575
|
+
},
|
|
576
|
+
methods: {
|
|
577
|
+
openItem(i) {
|
|
578
|
+
let e = [...this.menuData];
|
|
579
|
+
const t = (a) => (a = a.filter((s, n) => (s.id === i.id && (s.open = !s.open), s.children && s.children.length > 0 && (s.children = t(s.children)), !0)), a);
|
|
580
|
+
t(e), this.menuData = [...e];
|
|
581
|
+
},
|
|
582
|
+
appOpen(i, e) {
|
|
583
|
+
let t = [...this.menuData];
|
|
584
|
+
t[i].open = !t[i].open, this.menuData = [...t];
|
|
585
|
+
},
|
|
586
|
+
refresh() {
|
|
587
|
+
},
|
|
588
|
+
init() {
|
|
589
|
+
this.isPlanSaving || (this.confirmLoading = !0, this.isPlanSaving = !0, Promise.all([this.getMenuList(), this.getApplicationList(), this.ownMenuInfo()]).then((i) => {
|
|
590
|
+
if (this.systemMenuAll.length == 0 && this.applicationList.length == 0) {
|
|
591
|
+
this.isShow = !0, this.confirmLoading = !1;
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
const e = (s) => (s = s.filter((n, r) => (n.open = !0, n.exists = !1, n.hasExists = [], n.menusType = n.type, n.children && n.children.length > 0 && (n.children = e(n.children)), !0)), s);
|
|
595
|
+
e(this.systemMenuAll);
|
|
596
|
+
let t = [], a = this.applicationList.filter((s) => {
|
|
597
|
+
const n = this.systemMenuAll.filter((r) => r.application === s.code);
|
|
598
|
+
return n.length > 0 ? (t = t.concat([...n]), s.children = [...n], s.open = !0, !0) : !1;
|
|
599
|
+
});
|
|
600
|
+
this.menuData = a, this.isShow = !1, this.compareMenuData(a);
|
|
601
|
+
}));
|
|
602
|
+
},
|
|
603
|
+
async compareMenuData(i) {
|
|
604
|
+
let e = this.haveMenu, t = this.selectedRows.map((a) => {
|
|
605
|
+
let s = [];
|
|
606
|
+
for (let n in e)
|
|
607
|
+
n == a.id && (s = e[n]);
|
|
608
|
+
return {
|
|
609
|
+
...a,
|
|
610
|
+
children: s
|
|
611
|
+
};
|
|
612
|
+
});
|
|
613
|
+
if (!this.haveMenu) {
|
|
614
|
+
console.log("\u6570\u636E\u7ED3\u6784\u4E0D\u5B8C\u6574");
|
|
615
|
+
return;
|
|
616
|
+
}
|
|
617
|
+
this.compareMenuNodes(i, t), this.confirmLoading = !1;
|
|
618
|
+
},
|
|
619
|
+
async compareMenuNodes(i, e) {
|
|
620
|
+
!Array.isArray(i) || (i.map((t) => {
|
|
621
|
+
let a = [];
|
|
622
|
+
e.forEach((s) => {
|
|
623
|
+
s.children.filter((r) => r.id == t.id)[0] && a.push({
|
|
624
|
+
id: s.id,
|
|
625
|
+
name: s.name
|
|
626
|
+
});
|
|
627
|
+
}), t.exists = a.length > 0, t.hasExists = a, t.children && Array.isArray(t.children) && this.compareMenuNodes(t.children, e);
|
|
628
|
+
}), this.isPlanSaving = !1);
|
|
629
|
+
},
|
|
630
|
+
ownMenuInfo() {
|
|
631
|
+
if (this.selectedRowKeys.length !== 0)
|
|
632
|
+
return this.selectedRowKeys.map((i) => i).join(","), f({
|
|
633
|
+
roleids: this.selectedRowKeys
|
|
634
|
+
}).then((i) => (this.haveMenu = i.data, i));
|
|
635
|
+
},
|
|
636
|
+
getMenuList() {
|
|
637
|
+
let i = { AppsId: this.appsId };
|
|
638
|
+
return _(i).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
|
|
639
|
+
},
|
|
640
|
+
getApplicationList() {
|
|
641
|
+
if (this.selectedRowKeys.length !== 0)
|
|
642
|
+
return m({ appsId: this.appsId }).then((i) => (i.code === 200 && (this.applicationList = i.data), i));
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
var X = function() {
|
|
647
|
+
var e = this, t = e._self._c;
|
|
648
|
+
return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "trees-list", style: { height: e.treeHeight } }, [e.menuData.length > 0 ? t("div", [e._l(e.menuData, function(a, s) {
|
|
649
|
+
return [t("div", { staticClass: "app-list-name" }, [a.children && a.children.length > 0 ? t("i", { class: a.open ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(n) {
|
|
650
|
+
return e.appOpen(s, a);
|
|
651
|
+
} } }) : e._e(), e._v(" " + e._s(a.name) + " ")]), a.open ? t("div", { staticStyle: { "padding-left": "20px" } }, [t("dataItem", { attrs: { record: a.children }, on: { open: e.openItem } })], 1) : e._e()];
|
|
652
|
+
})], 2) : e.isShow ? t("div", { staticClass: "empty" }, [e._m(1), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : e._e()])]);
|
|
653
|
+
}, Y = [function() {
|
|
654
|
+
var i = this, e = i._self._c;
|
|
655
|
+
return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
|
|
656
|
+
}, function() {
|
|
657
|
+
var i = this, e = i._self._c;
|
|
658
|
+
return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
|
|
659
|
+
}], Z = /* @__PURE__ */ c(
|
|
660
|
+
W,
|
|
661
|
+
X,
|
|
662
|
+
Y,
|
|
663
|
+
!1,
|
|
664
|
+
null,
|
|
665
|
+
"b0971196",
|
|
666
|
+
null,
|
|
667
|
+
null
|
|
668
|
+
);
|
|
669
|
+
const ee = Z.exports;
|
|
670
|
+
const te = {
|
|
671
|
+
props: {
|
|
672
|
+
selectedRows: {
|
|
673
|
+
type: Array,
|
|
674
|
+
default: () => []
|
|
675
|
+
},
|
|
676
|
+
selectedRowKeys: {
|
|
677
|
+
type: Array,
|
|
678
|
+
default: () => []
|
|
679
|
+
},
|
|
680
|
+
height: {
|
|
681
|
+
type: Number,
|
|
682
|
+
default: 400
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
data() {
|
|
686
|
+
return {
|
|
687
|
+
hasData: [],
|
|
688
|
+
confirmLoading: !1,
|
|
689
|
+
isPlanSaving: !1
|
|
690
|
+
};
|
|
691
|
+
},
|
|
692
|
+
watch: {
|
|
693
|
+
selectedRowKeys: {
|
|
694
|
+
handler(i) {
|
|
695
|
+
this.init();
|
|
696
|
+
},
|
|
697
|
+
deep: !0,
|
|
698
|
+
immediate: !0
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
computed: {
|
|
702
|
+
treeHeight() {
|
|
703
|
+
return `${this.height}px`;
|
|
704
|
+
},
|
|
705
|
+
columns() {
|
|
706
|
+
return [
|
|
707
|
+
{
|
|
708
|
+
transKey: "gd.btn.view",
|
|
709
|
+
prop: "readmetadata",
|
|
710
|
+
label: "\u67E5\u770B"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
transKey: "gd.btn.rename",
|
|
714
|
+
prop: "rename",
|
|
715
|
+
label: "\u91CD\u547D\u540D"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
transKey: "gd.btn.del",
|
|
719
|
+
prop: "delete",
|
|
720
|
+
label: "\u5220\u9664"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
transKey: "gd.btn.administrativePermissions",
|
|
724
|
+
prop: "manageprem",
|
|
725
|
+
label: "\u7BA1\u7406\u6743\u9650"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
transKey: "gd.btn.move",
|
|
729
|
+
prop: "move",
|
|
730
|
+
label: "\u79FB\u52A8"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
transKey: "gd.btn.createfile",
|
|
734
|
+
prop: "createfile",
|
|
735
|
+
label: "\u521B\u5EFA\u6587\u4EF6"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
transKey: "gd.btn.createSubfolders",
|
|
739
|
+
prop: "createsubfolder",
|
|
740
|
+
label: "\u521B\u5EFA\u5B50\u6587\u4EF6\u5939"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
transKey: "gd.btn.download",
|
|
744
|
+
prop: "download",
|
|
745
|
+
label: "\u4E0B\u8F7D"
|
|
746
|
+
}
|
|
747
|
+
];
|
|
748
|
+
},
|
|
749
|
+
...u(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
750
|
+
},
|
|
751
|
+
methods: {
|
|
752
|
+
refresh() {
|
|
753
|
+
},
|
|
754
|
+
init() {
|
|
755
|
+
this.selectedRowKeys.length != 0 && (this.isPlanSaving || (this.confirmLoading = !0, this.isPlanSaving = !0, L({
|
|
756
|
+
roleIds: this.selectedRowKeys.join(",")
|
|
757
|
+
}).then((i) => {
|
|
758
|
+
let e = [], t = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
759
|
+
this.selectedRows.forEach((s) => {
|
|
760
|
+
let n = i.data[s.id];
|
|
761
|
+
n.length > 0 && n.forEach((r) => {
|
|
762
|
+
if (this.columns.forEach((l) => {
|
|
763
|
+
let o = this.getData(r, l, s);
|
|
764
|
+
a.set(`${l.prop}Role`, o.ids);
|
|
765
|
+
}), t.has(r.sysdocobjectid)) {
|
|
766
|
+
let l = e.find((o) => o.sysdocobjectid === r.sysdocobjectid);
|
|
767
|
+
l && this.columns.forEach((o) => {
|
|
768
|
+
let d = `${o.prop}Role`, g = Object.fromEntries(a)[d];
|
|
769
|
+
l[d] ? (l[d] = [...l[d], ...g], l[d] = l[d].filter(
|
|
770
|
+
(v, y, w) => y === w.findIndex((b) => b.roleid === v.roleid)
|
|
771
|
+
)) : l[d] = g;
|
|
772
|
+
});
|
|
773
|
+
} else {
|
|
774
|
+
t.add(r.sysdocobjectid);
|
|
775
|
+
let l = Object.assign({}, r, Object.fromEntries(a));
|
|
776
|
+
e.push(l);
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
}), this.confirmLoading = !1, this.isPlanSaving = !1, this.hasData = e;
|
|
780
|
+
})));
|
|
781
|
+
},
|
|
782
|
+
getData(i, e, t) {
|
|
783
|
+
let a = [], s = [], n = i[e.prop];
|
|
784
|
+
return a = a.concat(n), s.push({
|
|
785
|
+
roleid: t.id,
|
|
786
|
+
data: n,
|
|
787
|
+
rolename: t.name
|
|
788
|
+
}), {
|
|
789
|
+
result: a.filter((l, o, d) => d.indexOf(l) === o),
|
|
790
|
+
ids: s
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
var se = function() {
|
|
796
|
+
var e = this, t = e._self._c;
|
|
797
|
+
return t("div", { ref: "treesList" }, [e.selectedRows.length === 0 ? t("div", { staticClass: "empty" }, [e._m(0), t("div", { staticClass: "empty-title" }, [t("span", [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])]) : t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "doc-pemissions" }, e._l(e.hasData, function(a) {
|
|
798
|
+
return t("div", [t("div", { staticClass: "lists" }, [e._v(" " + e._s(a.name) + " ")]), t("div", { staticClass: "doc-item" }, e._l(e.columns, function(s) {
|
|
799
|
+
return t("div", { staticClass: "doc-item-col" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transKey}`, s.label)) + " "), t("div", { staticClass: "doc-tool" }, [a[`${s.prop}Role`].length > 0 ? t("el-tooltip", { attrs: { placement: "right" } }, [e._l(a[`${s.prop}Role`], function(n) {
|
|
800
|
+
return t("template", { slot: "content" }, [t("div", { staticStyle: { display: "flex", "justify-content": "space-between" } }, [n.data ? t("span", [e._v(e._s(n.rolename))]) : e._e(), n.data === 1 ? t("span", { staticStyle: { "margin-left": "10px" } }, [e._v(e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")))]) : n.data === 2 ? t("span", { staticStyle: { "margin-left": "10px" } }, [e._v(e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")))]) : e._e()])]);
|
|
801
|
+
}), t("div", [a[`${s.prop}Role`].some((n) => n.data == "2") ? t("el-tag", { attrs: { type: "danger", size: "small" } }, [e._v(" " + e._s(e.$i18nt("gd.user.refuse", "\u62D2\u7EDD")) + " ")]) : a[`${s.prop}Role`].some((n) => n.data == "1") ? t("el-tag", { attrs: { size: "small" } }, [e._v(" " + e._s(e.$i18nt("gd.user.allow", "\u5141\u8BB8")) + " ")]) : e._e()], 1)], 2) : e._e()], 1)]);
|
|
802
|
+
}), 0)]);
|
|
803
|
+
}), 0)]);
|
|
804
|
+
}, ie = [function() {
|
|
805
|
+
var i = this, e = i._self._c;
|
|
806
|
+
return e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]);
|
|
807
|
+
}], ae = /* @__PURE__ */ c(
|
|
808
|
+
te,
|
|
809
|
+
se,
|
|
810
|
+
ie,
|
|
811
|
+
!1,
|
|
812
|
+
null,
|
|
813
|
+
"397d5998",
|
|
814
|
+
null,
|
|
815
|
+
null
|
|
816
|
+
);
|
|
817
|
+
const ne = ae.exports;
|
|
818
|
+
const re = {
|
|
819
|
+
name: "GdUserPermissions",
|
|
820
|
+
props: {
|
|
821
|
+
height: {
|
|
822
|
+
type: Number,
|
|
823
|
+
default: 100
|
|
824
|
+
},
|
|
825
|
+
openMode: {
|
|
826
|
+
type: String,
|
|
827
|
+
default: "page"
|
|
828
|
+
},
|
|
829
|
+
openSelecteKeys: {
|
|
830
|
+
type: Array,
|
|
831
|
+
default: () => []
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
components: {
|
|
835
|
+
MenuPermissions: z,
|
|
836
|
+
DataPermissions: B,
|
|
837
|
+
ViewOnBtnPermissions: Q,
|
|
838
|
+
AppPermissions: ee,
|
|
839
|
+
DccPermissions: ne
|
|
840
|
+
},
|
|
841
|
+
data() {
|
|
842
|
+
return {
|
|
843
|
+
searcLoading: !1,
|
|
844
|
+
loading: !1,
|
|
845
|
+
userId: "",
|
|
846
|
+
userList: [],
|
|
847
|
+
fkEntityName: "sys_user",
|
|
848
|
+
activeName: "first",
|
|
849
|
+
selectedRowKeys: [],
|
|
850
|
+
selectedRows: [],
|
|
851
|
+
tableColumns: [
|
|
852
|
+
{
|
|
853
|
+
type: "selection",
|
|
854
|
+
width: "60",
|
|
855
|
+
fixed: !0
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
transKey: "gd.user.roleName",
|
|
859
|
+
prop: "name",
|
|
860
|
+
label: "\u89D2\u8272\u540D\u79F0",
|
|
861
|
+
type: "slot",
|
|
862
|
+
slotType: "name",
|
|
863
|
+
align: "left"
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
allRowData: [],
|
|
867
|
+
queryParam: {},
|
|
868
|
+
disabledRowId: [],
|
|
869
|
+
loadData: async (i) => K(Object.assign(i, this.queryParam, { sysAppsId: window.$systemInfo.id })).then(async (e) => {
|
|
870
|
+
let t = await this.getUseRole();
|
|
871
|
+
if (!t || t.length === 0)
|
|
872
|
+
return { rows: [], total: 0 };
|
|
873
|
+
console.log(t);
|
|
874
|
+
let a = e.data && e.data.rows ? e.data.rows : Array.isArray(e.data) ? e.data : [];
|
|
875
|
+
const s = t.map((r) => r), n = a.filter((r) => s.includes(r.id));
|
|
876
|
+
return this.selectedRowKeys = s, this.selectedRows = n, {
|
|
877
|
+
rows: n,
|
|
878
|
+
total: n.length
|
|
879
|
+
};
|
|
880
|
+
}),
|
|
881
|
+
listData: [],
|
|
882
|
+
appsId: null
|
|
883
|
+
};
|
|
884
|
+
},
|
|
885
|
+
computed: {
|
|
886
|
+
styled() {
|
|
887
|
+
return `height:${this.height + 76}px`;
|
|
888
|
+
},
|
|
889
|
+
getHeight() {
|
|
890
|
+
return this.height + 20;
|
|
891
|
+
},
|
|
892
|
+
initialLoading() {
|
|
893
|
+
return this.openMode === "page";
|
|
894
|
+
},
|
|
895
|
+
selectedKeep() {
|
|
896
|
+
return this.openMode !== "page";
|
|
897
|
+
},
|
|
898
|
+
...u(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
899
|
+
},
|
|
900
|
+
mounted() {
|
|
901
|
+
this.activeName = "first", this.$nextTick(() => {
|
|
902
|
+
setTimeout(() => {
|
|
903
|
+
this.$refs[this.activeName].refresh();
|
|
904
|
+
}, 0);
|
|
905
|
+
});
|
|
906
|
+
},
|
|
907
|
+
methods: {
|
|
908
|
+
handleClick(i) {
|
|
909
|
+
this.$nextTick(() => {
|
|
910
|
+
setTimeout(() => {
|
|
911
|
+
this.$refs[this.activeName].refresh(this.selectedRowKeys);
|
|
912
|
+
}, 0);
|
|
913
|
+
});
|
|
914
|
+
},
|
|
915
|
+
query() {
|
|
916
|
+
this.refresh();
|
|
917
|
+
},
|
|
918
|
+
refresh() {
|
|
919
|
+
this.$refs.table.refresh(!0);
|
|
920
|
+
},
|
|
921
|
+
searchData(i) {
|
|
922
|
+
this.searcLoading = !0, I({ name: i, fkEntityName: this.fkEntityName }).then((e) => {
|
|
923
|
+
e.code === 200 && (this.userList = e.data), this.searcLoading = !1;
|
|
924
|
+
});
|
|
925
|
+
},
|
|
926
|
+
change(i) {
|
|
927
|
+
i !== "" && this.refresh();
|
|
928
|
+
},
|
|
929
|
+
getUseRole() {
|
|
930
|
+
return this.loading = !0, this.userId ? R({ id: this.userId }).then((i) => (this.loading = !1, this.listData = i.data, i.data)) : (this.loading = !1, []);
|
|
931
|
+
},
|
|
932
|
+
onSelectChange(i, e) {
|
|
933
|
+
this.selectedRowKeys = i, this.selectedRows = e;
|
|
934
|
+
},
|
|
935
|
+
getAppId() {
|
|
936
|
+
D({ code: "App_Id" }).then((i) => {
|
|
937
|
+
console.log(i), i.code === 200 && (this.appsId = i.data ? i.data.value : "");
|
|
938
|
+
});
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
created() {
|
|
942
|
+
this.getAppId(), this.searchData("");
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
var le = function() {
|
|
946
|
+
var e = this, t = e._self._c;
|
|
947
|
+
return t("div", { staticClass: "gd-page-view", staticStyle: { display: "flex" } }, [t("div", { staticClass: "gd-page-view", staticStyle: { display: "flex", background: "rgb(245, 245, 245)" } }, [t("div", { staticClass: "page-view-trees", style: e.styled }, [t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], staticClass: "trees-operatorl" }, [t("el-select", { staticClass: "treesr-input", attrs: { placeholder: e.$i18nt("gd.teamSharing.name", "\u89D2\u8272\u540D"), clearable: "", filterable: "", loading: e.searcLoading, "remote-method": e.searchData, clearable: "", remote: "" }, on: { change: e.change }, model: { value: e.userId, callback: function(a) {
|
|
948
|
+
e.userId = a;
|
|
949
|
+
}, expression: "userId" } }, e._l(e.userList, function(a) {
|
|
950
|
+
return t("el-option", { key: a.id, attrs: { label: a.name, value: a.id } });
|
|
951
|
+
}), 1), t("div", { staticClass: "treesr-search", on: { click: e.query } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "trees-list" }, [t("gd-tables", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, filtering: !1, height: e.getHeight, disabledColumnSettings: !0, disabledRefresh: !0, density: !1, selectedRowKeys: e.selectedRowKeys, initialLoading: !1, showPagination: !1, disabledRowId: e.disabledRowId }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: a, row: s }) {
|
|
952
|
+
return [t("gd-tooltip", { attrs: { rowKey: "name", row: s, highlight: "" } })];
|
|
953
|
+
} }]) })], 1)])]), t("div", { staticClass: "page-view-list", staticStyle: { "margin-left": "20px", flex: "1" } }, [t("el-tabs", { attrs: { type: "card" }, on: { "tab-click": e.handleClick }, model: { value: e.activeName, callback: function(a) {
|
|
954
|
+
e.activeName = a;
|
|
955
|
+
}, expression: "activeName" } }, [t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.menuRole", "\u83DC\u5355\u6743\u9650"), name: "first", lazy: !0 } }, [e.activeName == "first" ? t("MenuPermissions", { ref: "first", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height } }) : e._e()], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.dataRole", "\u6570\u636E\u6743\u9650"), name: "second", lazy: !0 } }, [e.activeName == "second" ? t("DataPermissions", { ref: "second", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height } }) : e._e()], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.viewOnBtnRole", "\u89C6\u56FE/\u8868\u5355\u6743\u9650"), name: "third", lazy: !0 } }, [e.activeName == "third" ? t("ViewOnBtnPermissions", { ref: "third", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height } }) : e._e()], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.appRole", "APP\u6743\u9650"), name: "fourth", lazy: !0 } }, [e.activeName == "fourth" ? t("AppPermissions", { ref: "fourth", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height, appsId: e.appsId } }) : e._e()], 1), t("el-tab-pane", { attrs: { label: e.$i18nt("gd.permissions.documentRole", "\u6587\u6863\u89D2\u8272\u6743\u9650"), name: "five", lazy: !0 } }, [e.activeName == "five" ? t("DccPermissions", { ref: "five", attrs: { selectedRows: e.selectedRows, selectedRowKeys: e.selectedRowKeys, height: e.height } }) : e._e()], 1)], 1)], 1)]);
|
|
956
|
+
}, oe = [], de = /* @__PURE__ */ c(
|
|
957
|
+
re,
|
|
958
|
+
le,
|
|
959
|
+
oe,
|
|
960
|
+
!1,
|
|
961
|
+
null,
|
|
962
|
+
"7f548407",
|
|
963
|
+
null,
|
|
964
|
+
null
|
|
965
|
+
);
|
|
966
|
+
const h = de.exports;
|
|
967
|
+
h.install = function(i) {
|
|
968
|
+
i.component(h.name, h);
|
|
969
|
+
};
|
|
970
|
+
export {
|
|
971
|
+
h as G
|
|
972
|
+
};
|