gds-plus-design-vue 1.2.63 → 1.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addPermission.e559c495.js +1 -0
- package/lib/{addPermission.9fc97a47.mjs → addPermission.f2eb7564.mjs} +127 -105
- package/lib/approvalModel.2b97fdf8.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b3cb5c5.mjs} +7 -7
- package/lib/attribute.4f814780.mjs +367 -0
- package/lib/attribute.7b4971f5.js +1 -0
- package/lib/businessRules.4f7349f3.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.7ca458f8.mjs} +191 -190
- package/lib/buttonRule.4aa9cfd8.mjs +396 -0
- package/lib/buttonRule.ba9528ab.js +1 -0
- package/lib/chartDisplayRules.25489412.js +1 -0
- package/lib/chartDisplayRules.63e53aa7.mjs +288 -0
- package/lib/components.chartbi.13a8a7b5.js +8 -0
- package/lib/components.chartbi.7356b244.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.20f8b336.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.8afc4731.js} +1 -1
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.59a87bfd.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.e398cc99.mjs} +3 -3
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.17e42353.mjs} +416 -399
- package/lib/components.echarts.5dea23f6.js +4 -0
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.8689aba2.mjs} +1 -1
- package/lib/{components.exception.3cc33e29.js → components.exception.b4ddeaba.js} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.14ed3374.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.8047a9c3.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.5418b5ec.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.bc91e6fe.mjs} +3 -3
- package/lib/components.iconselector.4b5b7901.js +1 -0
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.d2d970ba.mjs} +7 -3
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.0563c338.mjs} +4 -4
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.5fe318f7.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.9a41ea40.mjs} +1 -1
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.f18b2da3.js} +1 -1
- package/lib/{components.middleware.457b1182.mjs → components.middleware.24511f17.mjs} +5 -4
- package/lib/components.middleware.64b6a988.js +1 -0
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.4f454200.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.d7ef34cb.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.15b91668.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.92eb4b1e.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.c615fe3e.mjs} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.ce4fbb44.js} +1 -1
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.4581f5b1.js} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.bdd68e73.mjs} +21 -21
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.c40eee2e.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.cd6d0301.js} +1 -1
- package/lib/components.sidenavmenu.1f0bbfca.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.47d7f44a.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.190f14ff.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.85956695.mjs} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.389ab22a.mjs} +331 -316
- package/lib/{components.table.17c02054.js → components.table.d016f609.js} +3 -3
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.750ec792.mjs} +7 -4
- package/lib/components.tableumy.aa73378d.js +1 -0
- package/lib/components.tablevirtual.879ff28f.js +1 -0
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.9bf87b78.mjs} +7 -4
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.b9f112cf.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.efe58448.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.065f3dee.mjs} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.edf8e4ca.js} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0439b870.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.586aca36.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.2324089d.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.5f2194ff.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.863ff11e.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.d8893ff6.mjs} +1 -1
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.1236a66e.mjs} +94 -61
- package/lib/components.viewformdetails.328c8642.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.5761b277.mjs} +54 -51
- package/lib/components.viewloading.5b9c8fee.js +1 -0
- package/lib/{components.watermark.da3d7220.js → components.watermark.af8b5718.js} +1 -1
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.d3638d63.mjs} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.8c121797.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.a1b7b087.mjs} +4 -4
- package/lib/components.xlsximport.c53c50f6.js +1 -0
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.d39bfeaa.mjs} +541 -532
- package/lib/copy.3b06d60f.mjs +572 -0
- package/lib/copy.fa2fcb22.js +1 -0
- package/lib/createFile.526dd6db.js +1 -0
- package/lib/createFile.c8d65b52.mjs +439 -0
- package/lib/createSubfolders.51df8fcd.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.f8cad77f.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.539feafb.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.621a3d40.js} +1 -1
- package/lib/drawerContainer.790b0ee6.mjs +163 -0
- package/lib/drawerContainer.c971d22d.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.accd44be.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.c52b8374.mjs} +2 -2
- package/lib/editForm.83d10fae.mjs +434 -0
- package/lib/editForm.e284e5ec.js +1 -0
- package/lib/extendedAttributes.bfff1926.js +1 -0
- package/lib/extendedAttributes.e6b11c68.mjs +293 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.423b64a3.mjs} +140 -115
- package/lib/fileSearch.e849491c.js +1 -0
- package/lib/{flow.designer.6da03949.mjs → flow.designer.5feba43c.mjs} +3184 -3197
- package/lib/flow.designer.85d0054b.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.82131d80.mjs} +234 -232
- package/lib/flow.list.e001d91a.js +1 -0
- package/lib/form.build.19f0c882.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.33cc213e.mjs} +22 -14
- package/lib/form.designer.build.2bcc355d.js +1 -0
- package/lib/form.designer.build.7dc12e87.mjs +2529 -0
- package/lib/formFiled.40284ed9.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.5a1c8f7f.mjs} +15 -13
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +231 -207
- package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
- package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
- package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
- package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
- package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
- package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
- package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
- package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
- package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
- package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
- package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
- package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
- package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
- package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
- package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
- package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
- package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
- package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
- package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
- package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
- package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
- package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
- package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
- package/lib/index.07adebf0.js +8 -0
- package/lib/index.340d6f00.mjs +25906 -0
- package/lib/layoutBlocks.756e4b57.js +1 -0
- package/lib/layoutBlocks.816b49a7.mjs +413 -0
- package/lib/layoutItem.051495bc.mjs +71 -0
- package/lib/layoutItem.6f6017a5.js +1 -0
- package/lib/{layouts.051a0bba.mjs → layouts.1852e8e4.mjs} +19 -22
- package/lib/{layouts.a6a36612.js → layouts.2030bf01.js} +2 -2
- package/lib/main.0dc447c8.js +1 -0
- package/lib/main.12118407.mjs +552 -0
- package/lib/main.1551de4d.js +1 -0
- package/lib/main.1611bb43.js +1 -0
- package/lib/{main.70357352.mjs → main.26d3511c.mjs} +6 -6
- package/lib/{main.7f44e3bf.mjs → main.2f9312bb.mjs} +40 -50
- package/lib/main.316ac1b8.js +1 -0
- package/lib/main.48dc325f.mjs +231 -0
- package/lib/main.54ac9faa.mjs +189 -0
- package/lib/main.69a2b457.mjs +166 -0
- package/lib/{main.ad1e8d4d.js → main.6df74fe7.js} +1 -1
- package/lib/main.72c15ab0.js +1 -0
- package/lib/{main.8a2a590d.js → main.736883a9.js} +1 -1
- package/lib/main.9b2769b1.js +1 -0
- package/lib/main.b2314767.mjs +323 -0
- package/lib/{main.c1df94d8.mjs → main.ca46939e.mjs} +2 -2
- package/lib/main.e1cf9798.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.efc8dc7b.mjs} +2 -2
- package/lib/main.fc38c7c8.mjs +537 -0
- package/lib/main.fcb67463.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.1bc511ff.mjs} +162 -140
- package/lib/manage.eb0a6c8c.js +1 -0
- package/lib/messages.fieldconfiguration.092bb027.js +1 -0
- package/lib/messages.fieldconfiguration.7fd9ceb0.mjs +1097 -0
- package/lib/messages.messagetemplate.0935e5a3.mjs +1319 -0
- package/lib/messages.messagetemplate.50334e5f.js +7 -0
- package/lib/messages.sendplan.60929f46.js +1 -0
- package/lib/messages.sendplan.61edcc7f.mjs +1054 -0
- package/lib/messages.sendrecord.09a1d1cd.js +2 -0
- package/lib/messages.sendrecord.1c48aa6e.mjs +651 -0
- package/lib/messages.templatelibrary.f31e8d58.mjs +808 -0
- package/lib/messages.templatelibrary.f5952edd.js +2 -0
- package/lib/mobile.designer.componentstree.365945a3.js +1 -0
- package/lib/mobile.designer.componentstree.9439895e.mjs +2064 -0
- package/lib/mobile.designer.menutree.4d4e059b.js +1 -0
- package/lib/mobile.designer.menutree.7d3b783d.mjs +1036 -0
- package/lib/moveFile.3dc1dc37.mjs +276 -0
- package/lib/moveFile.f70bbff7.js +1 -0
- package/lib/{page.build.846096e6.js → page.build.7ac1ee9b.js} +3 -3
- package/lib/{page.build.685c1e15.mjs → page.build.ae61a39b.mjs} +607 -601
- package/lib/page.designer.componentstree.74a3a114.js +1 -0
- package/lib/page.designer.componentstree.cdabec2d.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.e341aa60.mjs +430 -0
- package/lib/page.designer.fieldfiltering.f2d1b6e4.js +1 -0
- package/lib/page.designer.menutree.71c18258.js +1 -0
- package/lib/page.designer.menutree.e4ce1e90.mjs +5952 -0
- package/lib/page.designer.operation.1d435e6e.js +1 -0
- package/lib/page.designer.operation.fe808988.mjs +44 -0
- package/lib/page.designer.page.654634aa.js +1 -0
- package/lib/page.designer.page.821f8994.mjs +10638 -0
- package/lib/personal.echarts.118bcafb.mjs +268 -0
- package/lib/personal.echarts.e5915542.js +1 -0
- package/lib/result.4d4039ea.js +1 -0
- package/lib/result.a87217ae.mjs +639 -0
- package/lib/router.config.a09f29e7.js +1 -0
- package/lib/router.config.f0ad16fd.mjs +1424 -0
- package/lib/solution.application.8d6c84e8.js +1 -0
- package/lib/solution.application.e6b5dc4f.mjs +548 -0
- package/lib/solution.applicationmenu.c6cd2b59.js +1 -0
- package/lib/solution.applicationmenu.e878c41a.mjs +508 -0
- package/lib/solution.approvalflow.79da028c.js +1 -0
- package/lib/solution.approvalflow.eb1c0607.mjs +436 -0
- package/lib/solution.dict.088a1e72.mjs +769 -0
- package/lib/solution.dict.1d5195d0.js +1 -0
- package/lib/solution.menu.e58922fe.mjs +432 -0
- package/lib/solution.menu.fa48a7e8.js +1 -0
- package/lib/solution.plugin.5d6d29cf.js +1 -0
- package/lib/solution.plugin.ae6df926.mjs +347 -0
- package/lib/solution.processflow.62936f1c.mjs +392 -0
- package/lib/solution.processflow.aa1e808b.js +1 -0
- package/lib/solution.role.2eff83a1.js +1 -0
- package/lib/solution.role.7b3e7030.mjs +456 -0
- package/lib/solution.webresources.88c4483b.mjs +379 -0
- package/lib/solution.webresources.bc00603d.js +1 -0
- package/lib/solution.workflow.0ed2cb24.js +1 -0
- package/lib/solution.workflow.85de0ae5.mjs +395 -0
- package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.014f3e0b.mjs → system.account.3d7480ba.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.93ad722e.js} +7 -7
- package/lib/{system.config.0899edb8.mjs → system.config.6084ad21.mjs} +1 -1
- package/lib/{system.config.210f516c.js → system.config.9520e7f9.js} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.76c0ccdb.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.d74df021.mjs} +1 -1
- package/lib/system.dict.ab148847.js +1 -0
- package/lib/{system.dict.ef24873d.mjs → system.dict.caad4d66.mjs} +264 -260
- package/lib/system.document.0e46ff8c.js +1 -0
- package/lib/system.document.cbdf25a9.mjs +667 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.46e182d7.mjs} +245 -265
- package/lib/system.duplicatechecking.a217fc52.js +1 -0
- package/lib/system.email.1db14214.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.c1ad6598.mjs} +10 -15
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.2e55e839.mjs} +370 -361
- package/lib/system.fieldsecurity.40b4f48a.js +1 -0
- package/lib/system.file.6a6bd77c.js +1 -0
- package/lib/{system.file.73eeb731.mjs → system.file.80aa0809.mjs} +81 -149
- package/lib/{system.log.b86cf57f.mjs → system.log.3986a8ca.mjs} +1 -1
- package/lib/{system.log.fc60f5e6.js → system.log.9d394678.js} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.395c67c2.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.d33b0b6e.js} +1 -1
- package/lib/system.notice.2090c130.js +1 -0
- package/lib/{system.notice.25ea8dca.mjs → system.notice.51880df6.mjs} +994 -992
- package/lib/system.noticereceived.0b79642e.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.55f276ab.mjs} +10 -11
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.71034956.mjs} +37 -26
- package/lib/system.onlineuser.e74f010d.js +1 -0
- package/lib/{system.org.c20fe6b2.mjs → system.org.e1e156c6.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.f6d58d0f.js} +1 -1
- package/lib/system.permissions.4090552f.mjs +972 -0
- package/lib/system.permissions.fdb64929.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.8a9a6448.mjs} +500 -479
- package/lib/system.plugin.a0f25733.js +1 -0
- package/lib/{system.pos.7946a99c.mjs → system.pos.0ad80a53.mjs} +1 -1
- package/lib/{system.pos.0a3d2a37.js → system.pos.71f3eba7.js} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.39607ddb.mjs} +246 -243
- package/lib/system.promptmanagement.9718aa24.js +1 -0
- package/lib/system.role.321c48d3.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.3b533a3e.mjs} +511 -488
- package/lib/system.sumberrules.6e8d208e.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.c2b8c5e7.mjs} +168 -165
- package/lib/{system.team.e6a9608e.mjs → system.team.367bf5e7.mjs} +163 -161
- package/lib/system.team.cf1c1558.js +1 -0
- package/lib/system.teammembers.63f21557.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.851ce63b.mjs} +203 -198
- package/lib/system.timers.51bedf97.js +38 -0
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.5e735567.mjs} +2261 -2213
- package/lib/{system.translation.e34f0891.mjs → system.translation.61765713.mjs} +435 -429
- package/lib/system.translation.c9f1b505.js +1 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.254bbe85.mjs} +1082 -1026
- package/lib/system.user.475d7391.js +14 -0
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.b96c984a.mjs} +418 -412
- package/lib/system.useraffiliation.fe1e1d39.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.2c6cf4a7.mjs} +179 -179
- package/lib/system.webresource.81cfa690.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.72da74ae.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.d86a3cdb.js} +1 -1
- package/lib/table.definition..btnconfig.24402bf0.mjs +938 -0
- package/lib/table.definition..btnconfig.add3d840.js +1 -0
- package/lib/table.definition..echartsconfig.4310b5a2.js +1 -0
- package/lib/table.definition..echartsconfig.9c3c88f6.mjs +2150 -0
- package/lib/tableDescriptions.143d8e67.js +1 -0
- package/lib/tableDescriptions.60a07f7c.mjs +80 -0
- package/lib/tcheckboxs.e4d387ff.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.ee4adb9e.mjs} +2 -2
- package/lib/tcurrency.0360c142.mjs +85 -0
- package/lib/tcurrency.233f4e63.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.9e5d99f4.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.b10536fd.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.10d64c18.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.eed5a945.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.7c635ee4.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.e183d25f.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.04280449.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.f732d245.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.0df71304.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.6f941967.js} +1 -1
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.333daba2.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/versionControl.97590ce8.js +1 -0
- package/lib/versionControl.d1b2b0da.mjs +488 -0
- package/lib/versionEdit.c51606e4.mjs +452 -0
- package/lib/versionEdit.f710d0bb.js +1 -0
- package/lib/view.build.5789a6eb.js +1 -0
- package/lib/view.build.9976c958.mjs +1578 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.3ca52f0c.mjs} +70 -92
- package/lib/viewList.6e181715.js +1 -0
- package/lib/viewTree.9bdf96f0.js +1 -0
- package/lib/viewTree.c2e11b7f.mjs +409 -0
- package/locale/en_US.js +45 -6
- package/locale/id_ID.js +45 -6
- package/locale/vi_VN.js +45 -6
- package/locale/zh_CN.js +45 -5
- package/package.json +1 -1
- package/lib/addPermission.5036013c.js +0 -1
- package/lib/approvalModel.66f49dfb.js +0 -1
- package/lib/attribute.318f485c.js +0 -1
- package/lib/attribute.a06ac9e7.mjs +0 -237
- package/lib/buildItem.6a834227.js +0 -1
- package/lib/buildItem.fd8634ab.mjs +0 -205
- package/lib/businessRules.0e4dbb3a.js +0 -1
- package/lib/components.chartbi.b043dcdc.mjs +0 -1729
- package/lib/components.chartbi.e4680eaa.js +0 -7
- package/lib/components.echarts.e4d6b13e.js +0 -3
- package/lib/components.iconselector.d712170f.js +0 -1
- package/lib/components.middleware.3bad5748.js +0 -1
- package/lib/components.sidenavmenu.b9bb9304.js +0 -1
- package/lib/components.tableumy.9cf33062.js +0 -1
- package/lib/components.tablevirtual.38d4d3d8.js +0 -1
- package/lib/components.viewformdetails.1621bc18.js +0 -1
- package/lib/components.viewloading.807bbf68.js +0 -1
- package/lib/components.xlsximport.dbd826bb.js +0 -1
- package/lib/createFile.6b37ecf2.js +0 -1
- package/lib/createFile.82d6e415.mjs +0 -239
- package/lib/createSubfolders.47af629c.js +0 -1
- package/lib/drawerContainer.604a1271.mjs +0 -146
- package/lib/drawerContainer.6a9813ce.js +0 -1
- package/lib/fileSearch.65311ded.js +0 -1
- package/lib/flow.designer.1ba3a90d.js +0 -1
- package/lib/flow.list.4eb10554.js +0 -1
- package/lib/form.build.51bd261e.js +0 -1
- package/lib/form.designer.build.5a950455.js +0 -1
- package/lib/form.designer.build.e521c9c6.mjs +0 -5091
- package/lib/formFiled.464856f5.js +0 -1
- package/lib/http.filedocument.7c656b91.js +0 -1
- package/lib/http.filedocument.d456d26a.mjs +0 -156
- package/lib/http.rolemanage.03363732.js +0 -1
- package/lib/index.69ad4631.mjs +0 -44291
- package/lib/index.cca024bf.js +0 -8
- package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
- package/lib/layoutBlocks.5e6be06f.js +0 -1
- package/lib/main.457f4326.js +0 -1
- package/lib/main.4fff412e.js +0 -1
- package/lib/main.77373aa4.mjs +0 -441
- package/lib/main.c3726602.js +0 -1
- package/lib/manage.5bb4f719.js +0 -1
- package/lib/messages.7b74736f.js +0 -9
- package/lib/messages.ad082386.mjs +0 -4889
- package/lib/moveFile.0ce803e0.js +0 -1
- package/lib/moveFile.8310ea94.mjs +0 -254
- package/lib/personal.echarts.b22fba61.mjs +0 -701
- package/lib/personal.echarts.f77bfc9e.js +0 -1
- package/lib/result.19351665.mjs +0 -526
- package/lib/result.e59c0e40.js +0 -1
- package/lib/router.config.2501ec51.js +0 -1
- package/lib/router.config.98a73167.mjs +0 -3172
- package/lib/solution.58580123.js +0 -1
- package/lib/solution.890ff164.mjs +0 -6942
- package/lib/store.config.3cb11578.js +0 -1
- package/lib/system.dict.f5708400.js +0 -1
- package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
- package/lib/system.email.070ab2be.js +0 -1
- package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
- package/lib/system.file.17a7f2ed.js +0 -1
- package/lib/system.notice.96c770a6.js +0 -1
- package/lib/system.noticereceived.dfe4ecc7.js +0 -1
- package/lib/system.onlineuser.e2e39bdc.js +0 -1
- package/lib/system.permissions.90f73461.js +0 -9
- package/lib/system.permissions.c3d34921.mjs +0 -213
- package/lib/system.plugin.b34a3b47.js +0 -1
- package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
- package/lib/system.role.03be0982.js +0 -1
- package/lib/system.sumberrules.bb228fce.js +0 -1
- package/lib/system.team.32183b63.js +0 -1
- package/lib/system.teammembers.847d8ea7.js +0 -1
- package/lib/system.timers.28691ce4.js +0 -38
- package/lib/system.translation.6237f071.js +0 -1
- package/lib/system.user.fca3f2d6.js +0 -14
- package/lib/system.useraffiliation.7547b9c7.js +0 -1
- package/lib/system.webresource.12712b90.js +0 -1
- package/lib/tcheckboxs.99361be3.js +0 -1
- package/lib/tcurrency.0ddac2f8.mjs +0 -92
- package/lib/tcurrency.62763c6d.js +0 -1
- package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
- package/lib/utils.datepicker.js.8576e2fc.js +0 -1
- package/lib/utils.util.js.50d1ec9c.js +0 -1
- package/lib/utils.util.js.82cd8447.mjs +0 -424
- package/lib/view.build.b44fd7d7.js +0 -1
- package/lib/view.build.f2a9fcfb.mjs +0 -2727
- package/lib/viewList.be5a5ec5.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as f, n as g } from "./components.chartbi.
|
|
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.7356b244.mjs";
|
|
3
3
|
import { t as k } from "./utils.mixins.js.be01e599.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
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.3060f4c7.mjs";
|
|
7
|
+
import { g as G } from "./http.appmanage.e389782d.mjs";
|
|
8
|
+
import { u as p } from "./utils.util.js.333daba2.mjs";
|
|
9
|
+
const H = {
|
|
10
10
|
data() {
|
|
11
11
|
return {
|
|
12
12
|
tableColumns: [
|
|
@@ -216,83 +216,258 @@ const U = {
|
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
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],
|
|
219
235
|
data() {
|
|
220
236
|
return {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
icon: "el-icon-document-checked"
|
|
232
|
-
}
|
|
233
|
-
],
|
|
234
|
-
record: {},
|
|
235
|
-
visible: !1,
|
|
236
|
-
confirmLoading: !1,
|
|
237
|
-
fullscreen: !1,
|
|
238
|
-
width: "800px",
|
|
239
|
-
orgTreeData: [],
|
|
240
|
-
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: ""
|
|
241
247
|
};
|
|
242
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
|
+
},
|
|
243
256
|
computed: {
|
|
244
|
-
|
|
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"])
|
|
245
273
|
},
|
|
246
274
|
methods: {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
{
|
|
254
|
-
checkedKeys: s
|
|
255
|
-
}
|
|
256
|
-
)
|
|
257
|
-
), 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
|
+
});
|
|
258
281
|
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
s.
|
|
282
|
+
getAppId() {
|
|
283
|
+
v({ code: "App_Id" }).then((s) => {
|
|
284
|
+
s.code === 200 && (this.appsId = s.data ? s.data.value : "");
|
|
262
285
|
});
|
|
263
286
|
},
|
|
264
|
-
|
|
265
|
-
|
|
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]);
|
|
266
297
|
},
|
|
267
|
-
|
|
268
|
-
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]);
|
|
269
308
|
},
|
|
270
|
-
|
|
271
|
-
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);
|
|
272
433
|
},
|
|
273
434
|
doEvent(s) {
|
|
274
|
-
|
|
435
|
+
let e = s.item.functionName;
|
|
275
436
|
this[e] && this[e]();
|
|
276
437
|
}
|
|
438
|
+
},
|
|
439
|
+
created() {
|
|
440
|
+
this.getAppId(), this.getConfigInfo();
|
|
277
441
|
}
|
|
278
442
|
};
|
|
279
|
-
var
|
|
443
|
+
var U = function() {
|
|
280
444
|
var e = this, t = e._self._c;
|
|
281
|
-
return t("div", [t("
|
|
282
|
-
e.
|
|
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(
|
|
285
457
|
J,
|
|
458
|
+
U,
|
|
286
459
|
Q,
|
|
287
|
-
W,
|
|
288
460
|
!1,
|
|
289
461
|
null,
|
|
290
|
-
"
|
|
462
|
+
"60edeedc",
|
|
291
463
|
null,
|
|
292
464
|
null
|
|
293
465
|
);
|
|
294
|
-
const
|
|
295
|
-
|
|
466
|
+
const m = W.exports;
|
|
467
|
+
m.install = function(s) {
|
|
468
|
+
s.component(m.name, m);
|
|
469
|
+
};
|
|
470
|
+
const X = {
|
|
296
471
|
data() {
|
|
297
472
|
return {
|
|
298
473
|
buttons: [
|
|
@@ -388,7 +563,7 @@ const Z = {
|
|
|
388
563
|
currentList: {}
|
|
389
564
|
};
|
|
390
565
|
},
|
|
391
|
-
components: { RoleScope:
|
|
566
|
+
components: { RoleScope: () => Promise.resolve().then(() => ze) },
|
|
392
567
|
computed: {
|
|
393
568
|
height() {
|
|
394
569
|
return this.screenHeight - (this.fullscreen ? 120 : 310);
|
|
@@ -399,7 +574,7 @@ const Z = {
|
|
|
399
574
|
handleSubmit() {
|
|
400
575
|
this.confirmLoading = !0;
|
|
401
576
|
let s = this.$refs.table.tableData;
|
|
402
|
-
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(
|
|
403
578
|
Object.assign(
|
|
404
579
|
{ ...this.submitData },
|
|
405
580
|
{
|
|
@@ -420,7 +595,7 @@ const Z = {
|
|
|
420
595
|
this.$refs.roleScope.open({ index: t, item: s, checkedKeys: l, data: e, name: n });
|
|
421
596
|
},
|
|
422
597
|
getUserControlData() {
|
|
423
|
-
this.confirmLoading = !0,
|
|
598
|
+
this.confirmLoading = !0, j({ roleId: this.record.id }).then((s) => {
|
|
424
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(() => {
|
|
425
600
|
setTimeout(() => {
|
|
426
601
|
this.refresh(), this.confirmLoading = !0;
|
|
@@ -451,7 +626,7 @@ const Z = {
|
|
|
451
626
|
}
|
|
452
627
|
}
|
|
453
628
|
};
|
|
454
|
-
var
|
|
629
|
+
var Y = function() {
|
|
455
630
|
var e = this, t = e._self._c;
|
|
456
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) {
|
|
457
632
|
e.visible = i;
|
|
@@ -466,18 +641,21 @@ var ee = function() {
|
|
|
466
641
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.view", "\u67E5\u770B")) + " ")]) : e._e()], 1)];
|
|
467
642
|
} };
|
|
468
643
|
})], null, !0) }) : e._e()], 1)], 2), t("RoleScope", { ref: "roleScope", on: { ok: e.setRoleScop } })], 1);
|
|
469
|
-
},
|
|
644
|
+
}, Z = [], ee = /* @__PURE__ */ g(
|
|
645
|
+
X,
|
|
646
|
+
Y,
|
|
470
647
|
Z,
|
|
471
|
-
ee,
|
|
472
|
-
te,
|
|
473
648
|
!1,
|
|
474
649
|
null,
|
|
475
|
-
"
|
|
650
|
+
"5e6737e8",
|
|
476
651
|
null,
|
|
477
652
|
null
|
|
478
653
|
);
|
|
479
|
-
const
|
|
480
|
-
|
|
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 = {
|
|
481
659
|
name: "LayoutItem",
|
|
482
660
|
props: {
|
|
483
661
|
record: {
|
|
@@ -523,7 +701,7 @@ const ne = {
|
|
|
523
701
|
}
|
|
524
702
|
}
|
|
525
703
|
};
|
|
526
|
-
var
|
|
704
|
+
var ne = function() {
|
|
527
705
|
var e = this, t = e._self._c;
|
|
528
706
|
return t("div", { style: { "--fadecolor": e.fadeColord } }, [e._l(e.record, function(i) {
|
|
529
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) {
|
|
@@ -532,7 +710,7 @@ var ae = function() {
|
|
|
532
710
|
return e.change(n, [i.id]);
|
|
533
711
|
} }, model: { value: i.checked, callback: function(n) {
|
|
534
712
|
e.$set(i, "checked", n);
|
|
535
|
-
}, 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) {
|
|
536
714
|
return e.checkedBtn(i, 1);
|
|
537
715
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")]) : t("span", { on: { click: function(n) {
|
|
538
716
|
return e.checkedBtn(i, 0);
|
|
@@ -542,18 +720,18 @@ var ae = function() {
|
|
|
542
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)) + " ")])])];
|
|
543
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()];
|
|
544
722
|
})], 2);
|
|
545
|
-
},
|
|
723
|
+
}, ae = [], re = /* @__PURE__ */ g(
|
|
724
|
+
ie,
|
|
546
725
|
ne,
|
|
547
726
|
ae,
|
|
548
|
-
re,
|
|
549
727
|
!1,
|
|
550
728
|
null,
|
|
551
|
-
"
|
|
729
|
+
"ecf30395",
|
|
552
730
|
null,
|
|
553
731
|
null
|
|
554
732
|
);
|
|
555
|
-
const $ =
|
|
556
|
-
const
|
|
733
|
+
const $ = re.exports;
|
|
734
|
+
const le = {
|
|
557
735
|
data() {
|
|
558
736
|
return {
|
|
559
737
|
buttons: [
|
|
@@ -608,7 +786,7 @@ const oe = {
|
|
|
608
786
|
t[s].open = !t[s].open, this.menuTreeData = [...t];
|
|
609
787
|
},
|
|
610
788
|
handleSubmit() {
|
|
611
|
-
this.confirmLoading = !0,
|
|
789
|
+
this.confirmLoading = !0, I({
|
|
612
790
|
id: this.record.id,
|
|
613
791
|
grantmenuidlist: this.checkedKeys
|
|
614
792
|
}).then((s) => {
|
|
@@ -669,7 +847,7 @@ const oe = {
|
|
|
669
847
|
let a = [];
|
|
670
848
|
t.forEach((d, c) => {
|
|
671
849
|
const h = this.getMenuIds(d);
|
|
672
|
-
t[c].menuIds = h.arr, t[c].menuBtnIds = h.btn, !(this.checkedKeys.filter((
|
|
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);
|
|
673
851
|
}), this.list = t;
|
|
674
852
|
const l = this.checkedKeys.filter((d) => e.includes(d)).filter((d) => !a.includes(d)).filter((d, c, h) => h.indexOf(d) === c);
|
|
675
853
|
this.checkedKeys = l, this.allClose = this.checkedKeys.length === e.length && e.length > 0;
|
|
@@ -685,26 +863,26 @@ const oe = {
|
|
|
685
863
|
activeShow: !0,
|
|
686
864
|
open: !0,
|
|
687
865
|
uuid: `${p(12)}`
|
|
688
|
-
}), this.menuTreeData =
|
|
866
|
+
}), this.menuTreeData = JSON.parse(JSON.stringify(u)), this.handleItem(), this.confirmLoading = !1;
|
|
689
867
|
});
|
|
690
868
|
},
|
|
691
869
|
open(s, e) {
|
|
692
870
|
this.record = s, this.appsId = e || window.$systemInfo.id, this.visible = !0, this.init();
|
|
693
871
|
},
|
|
694
872
|
getMenuTree() {
|
|
695
|
-
return
|
|
873
|
+
return q({ roleId: this.record.id }).then((s) => (s.code === 200 && (this.menuAll = s.data), s));
|
|
696
874
|
},
|
|
697
875
|
expandedMenuKeys() {
|
|
698
|
-
return
|
|
876
|
+
return x({
|
|
699
877
|
id: this.record.id
|
|
700
878
|
}).then((s) => (s.code === 200 && (this.checkedKeys = s.data), s));
|
|
701
879
|
},
|
|
702
880
|
getMenuList() {
|
|
703
881
|
let s = { AppsId: this.appsId };
|
|
704
|
-
return
|
|
882
|
+
return V(s).then((e) => (e.code === 200 && (this.systemMenuAll = e.data), e));
|
|
705
883
|
},
|
|
706
884
|
getAppListByAppsId() {
|
|
707
|
-
return
|
|
885
|
+
return G({ appsId: this.appsId }).then((s) => (s.code === 200 && (this.appList = s.data), s));
|
|
708
886
|
},
|
|
709
887
|
getMenuIds(s) {
|
|
710
888
|
let e = [], t = [];
|
|
@@ -733,7 +911,7 @@ const oe = {
|
|
|
733
911
|
}
|
|
734
912
|
}
|
|
735
913
|
};
|
|
736
|
-
var
|
|
914
|
+
var oe = function() {
|
|
737
915
|
var e = this, t = e._self._c;
|
|
738
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) {
|
|
739
917
|
e.visible = i;
|
|
@@ -748,20 +926,188 @@ var de = function() {
|
|
|
748
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) {
|
|
749
927
|
e.allClose = i;
|
|
750
928
|
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
751
|
-
},
|
|
929
|
+
}, de = [], ce = /* @__PURE__ */ g(
|
|
930
|
+
le,
|
|
752
931
|
oe,
|
|
753
932
|
de,
|
|
754
|
-
ce,
|
|
755
933
|
!1,
|
|
756
934
|
null,
|
|
757
|
-
"
|
|
935
|
+
"948c6f08",
|
|
758
936
|
null,
|
|
759
937
|
null
|
|
760
938
|
);
|
|
761
|
-
const ue =
|
|
939
|
+
const he = ce.exports, ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
940
|
+
__proto__: null,
|
|
941
|
+
default: he
|
|
942
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
762
943
|
const fe = {
|
|
763
|
-
|
|
764
|
-
|
|
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() {
|
|
1088
|
+
var e = this, t = e._self._c;
|
|
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) {
|
|
1090
|
+
e.visible = i;
|
|
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) {
|
|
1092
|
+
e.allClose = i;
|
|
1093
|
+
}, expression: "allClose" } }, [e._v(" " + e._s(e.$i18nt("gd.btn.selectAll", "\u5168\u9009")) + " ")])], 1)])], 2)], 1);
|
|
1094
|
+
}, pe = [], me = /* @__PURE__ */ g(
|
|
1095
|
+
fe,
|
|
1096
|
+
ge,
|
|
1097
|
+
pe,
|
|
1098
|
+
!1,
|
|
1099
|
+
null,
|
|
1100
|
+
"e6593396",
|
|
1101
|
+
null,
|
|
1102
|
+
null
|
|
1103
|
+
);
|
|
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 = {
|
|
1109
|
+
name: "GdUserRole",
|
|
1110
|
+
props: {
|
|
765
1111
|
height: {
|
|
766
1112
|
type: Number,
|
|
767
1113
|
default: 100
|
|
@@ -792,7 +1138,7 @@ const fe = {
|
|
|
792
1138
|
value: "value"
|
|
793
1139
|
},
|
|
794
1140
|
defaultExpandedKeys: "",
|
|
795
|
-
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 })),
|
|
796
1142
|
disableBtn: [],
|
|
797
1143
|
fileList: [],
|
|
798
1144
|
needLoad: !1,
|
|
@@ -1074,7 +1420,7 @@ const fe = {
|
|
|
1074
1420
|
this.$refs.engineSearch.closed();
|
|
1075
1421
|
return;
|
|
1076
1422
|
}
|
|
1077
|
-
this.$refs.engineSearch.confirmLoading = !0,
|
|
1423
|
+
this.$refs.engineSearch.confirmLoading = !0, O({
|
|
1078
1424
|
roleId: this.openSelecteKeys[0],
|
|
1079
1425
|
userIdList: s.data
|
|
1080
1426
|
}).then((e) => {
|
|
@@ -1112,7 +1458,7 @@ const fe = {
|
|
|
1112
1458
|
i();
|
|
1113
1459
|
return;
|
|
1114
1460
|
}
|
|
1115
|
-
t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1,
|
|
1461
|
+
t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, E({
|
|
1116
1462
|
roleId: s.openSelecteKeys[0],
|
|
1117
1463
|
userIdList: s.selectedRowKeys
|
|
1118
1464
|
}).then((n) => {
|
|
@@ -1125,7 +1471,7 @@ const fe = {
|
|
|
1125
1471
|
created() {
|
|
1126
1472
|
}
|
|
1127
1473
|
};
|
|
1128
|
-
var
|
|
1474
|
+
var ve = function() {
|
|
1129
1475
|
var e = this, t = e._self._c;
|
|
1130
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() {
|
|
1131
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)])];
|
|
@@ -1140,18 +1486,18 @@ var ge = function() {
|
|
|
1140
1486
|
} }, { key: "status", fn: function({ column: i, row: n }) {
|
|
1141
1487
|
return [t("span", [e._v(" " + e._s(e._f("dictType")("state_code", n.statecodes)) + " ")])];
|
|
1142
1488
|
} }]) }), t("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0, disabledRowId: e.disabledRowId }, on: { lookupSeled: e.lookupSeled } })], 1)]);
|
|
1143
|
-
},
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1489
|
+
}, ke = [], we = /* @__PURE__ */ g(
|
|
1490
|
+
_e,
|
|
1491
|
+
ve,
|
|
1492
|
+
ke,
|
|
1147
1493
|
!1,
|
|
1148
1494
|
null,
|
|
1149
1495
|
"e9dd56ab",
|
|
1150
1496
|
null,
|
|
1151
1497
|
null
|
|
1152
1498
|
);
|
|
1153
|
-
const
|
|
1154
|
-
const
|
|
1499
|
+
const $e = we.exports;
|
|
1500
|
+
const Ke = {
|
|
1155
1501
|
data() {
|
|
1156
1502
|
return {
|
|
1157
1503
|
buttons: [],
|
|
@@ -1163,7 +1509,7 @@ const ye = {
|
|
|
1163
1509
|
selectedRowKeys: []
|
|
1164
1510
|
};
|
|
1165
1511
|
},
|
|
1166
|
-
components: { UserFormDate:
|
|
1512
|
+
components: { UserFormDate: $e },
|
|
1167
1513
|
computed: {
|
|
1168
1514
|
height() {
|
|
1169
1515
|
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
@@ -1196,23 +1542,26 @@ const ye = {
|
|
|
1196
1542
|
}
|
|
1197
1543
|
}
|
|
1198
1544
|
};
|
|
1199
|
-
var
|
|
1545
|
+
var Ce = function() {
|
|
1200
1546
|
var e = this, t = e._self._c;
|
|
1201
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) {
|
|
1202
1548
|
e.visible = i;
|
|
1203
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);
|
|
1204
|
-
},
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1550
|
+
}, Te = [], Se = /* @__PURE__ */ g(
|
|
1551
|
+
Ke,
|
|
1552
|
+
Ce,
|
|
1553
|
+
Te,
|
|
1208
1554
|
!1,
|
|
1209
1555
|
null,
|
|
1210
1556
|
"46b57430",
|
|
1211
1557
|
null,
|
|
1212
1558
|
null
|
|
1213
1559
|
);
|
|
1214
|
-
const
|
|
1215
|
-
|
|
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 = {
|
|
1216
1565
|
data() {
|
|
1217
1566
|
return {
|
|
1218
1567
|
defaultKey: [],
|
|
@@ -1327,7 +1676,6 @@ const we = {
|
|
|
1327
1676
|
id: ""
|
|
1328
1677
|
};
|
|
1329
1678
|
},
|
|
1330
|
-
components: { UserFormDate: K },
|
|
1331
1679
|
computed: {
|
|
1332
1680
|
height() {
|
|
1333
1681
|
return this.screenHeight - (this.fullscreen ? 160 : 340);
|
|
@@ -1383,7 +1731,7 @@ const we = {
|
|
|
1383
1731
|
...i
|
|
1384
1732
|
};
|
|
1385
1733
|
}).map(({ list: t, ...i }) => i);
|
|
1386
|
-
this.confirmLoading = !0,
|
|
1734
|
+
this.confirmLoading = !0, N(e).then((t) => {
|
|
1387
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;
|
|
1388
1736
|
});
|
|
1389
1737
|
},
|
|
@@ -1395,7 +1743,7 @@ const we = {
|
|
|
1395
1743
|
...i
|
|
1396
1744
|
};
|
|
1397
1745
|
}).map(({ list: t, ...i }) => i);
|
|
1398
|
-
this.confirmLoading = !0,
|
|
1746
|
+
this.confirmLoading = !0, B(e).then((t) => {
|
|
1399
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;
|
|
1400
1748
|
});
|
|
1401
1749
|
},
|
|
@@ -1403,7 +1751,7 @@ const we = {
|
|
|
1403
1751
|
this.record = s, this.visible = !0, this.getallTree(), this.getDetail(s);
|
|
1404
1752
|
},
|
|
1405
1753
|
getDetail(s) {
|
|
1406
|
-
|
|
1754
|
+
M({ roleId: s.id }).then((e) => {
|
|
1407
1755
|
if (e.code == 200 && (this.currentPermissions = [], this.$refs.elTreeRef && this.$refs.elTreeRef.setCheckedKeys([]), e.data.length > 0)) {
|
|
1408
1756
|
this.id = e.data[0].id, this.currentPermissions = [];
|
|
1409
1757
|
const t = e.data.map((n) => {
|
|
@@ -1433,7 +1781,7 @@ const we = {
|
|
|
1433
1781
|
});
|
|
1434
1782
|
},
|
|
1435
1783
|
getallTree() {
|
|
1436
|
-
|
|
1784
|
+
A().then((s) => {
|
|
1437
1785
|
if (s.code == 200) {
|
|
1438
1786
|
this.restaurants = JSON.parse(JSON.stringify(s.data));
|
|
1439
1787
|
const e = this.buildTree(JSON.parse(JSON.stringify(s.data)));
|
|
@@ -1478,7 +1826,7 @@ const we = {
|
|
|
1478
1826
|
n();
|
|
1479
1827
|
return;
|
|
1480
1828
|
}
|
|
1481
|
-
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")) : _({
|
|
1482
1830
|
ids: s.id
|
|
1483
1831
|
}).then((l) => {
|
|
1484
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);
|
|
@@ -1591,7 +1939,7 @@ const we = {
|
|
|
1591
1939
|
});
|
|
1592
1940
|
return;
|
|
1593
1941
|
}
|
|
1594
|
-
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")) : _({
|
|
1595
1943
|
ids: n[0].id
|
|
1596
1944
|
}).then((o) => {
|
|
1597
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);
|
|
@@ -1659,7 +2007,7 @@ const we = {
|
|
|
1659
2007
|
}
|
|
1660
2008
|
}
|
|
1661
2009
|
};
|
|
1662
|
-
var
|
|
2010
|
+
var xe = function() {
|
|
1663
2011
|
var e = this, t = e._self._c;
|
|
1664
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) {
|
|
1665
2013
|
e.visible = i;
|
|
@@ -1680,20 +2028,27 @@ var $e = function() {
|
|
|
1680
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)]);
|
|
1681
2029
|
}), 1)])]);
|
|
1682
2030
|
}), 0)], 1)])])], 2)], 1);
|
|
1683
|
-
},
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
2031
|
+
}, Pe = [], De = /* @__PURE__ */ g(
|
|
2032
|
+
Ie,
|
|
2033
|
+
xe,
|
|
2034
|
+
Pe,
|
|
1687
2035
|
!1,
|
|
1688
2036
|
null,
|
|
1689
|
-
"
|
|
2037
|
+
"6afc0af9",
|
|
1690
2038
|
null,
|
|
1691
2039
|
null
|
|
1692
2040
|
);
|
|
1693
|
-
const
|
|
1694
|
-
|
|
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 = {
|
|
1695
2046
|
data() {
|
|
1696
2047
|
return {
|
|
2048
|
+
defaultProps: {
|
|
2049
|
+
children: "children",
|
|
2050
|
+
label: "title"
|
|
2051
|
+
},
|
|
1697
2052
|
buttons: [
|
|
1698
2053
|
{
|
|
1699
2054
|
displayName: "\u786E\u5B9A",
|
|
@@ -1707,124 +2062,37 @@ const Se = {
|
|
|
1707
2062
|
visible: !1,
|
|
1708
2063
|
confirmLoading: !1,
|
|
1709
2064
|
fullscreen: !1,
|
|
1710
|
-
width: "
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
checkedKeys: [],
|
|
1714
|
-
list: [],
|
|
1715
|
-
allClose: !1,
|
|
1716
|
-
menuAll: [],
|
|
1717
|
-
systemMenuAll: [],
|
|
1718
|
-
allCheckedKeys: []
|
|
2065
|
+
width: "800px",
|
|
2066
|
+
orgTreeData: [],
|
|
2067
|
+
checkedKeys: []
|
|
1719
2068
|
};
|
|
1720
2069
|
},
|
|
1721
2070
|
computed: {
|
|
1722
|
-
isIndeterminate() {
|
|
1723
|
-
return this.allClose ? !1 : this.checkedKeys.length > 0;
|
|
1724
|
-
},
|
|
1725
2071
|
...f(["screenHeight", "tableLists"])
|
|
1726
2072
|
},
|
|
1727
|
-
components: { LayoutItem: $ },
|
|
1728
2073
|
methods: {
|
|
1729
|
-
|
|
1730
|
-
const s =
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
), this.confirmLoading = !1;
|
|
1741
|
-
});
|
|
1742
|
-
},
|
|
1743
|
-
checkedItemBtn(s, e) {
|
|
1744
|
-
let t = [...this.checkedKeys].filter((i) => !s.menuBtnIds.includes(i));
|
|
1745
|
-
e === 1 && (t = t.concat(s.menuBtnIds)), this.checkedKeys = [...t], this.handleItem();
|
|
1746
|
-
},
|
|
1747
|
-
openItem(s) {
|
|
1748
|
-
let e = [...this.menuTreeData];
|
|
1749
|
-
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);
|
|
1750
|
-
t(e), this.menuTreeData = [...e];
|
|
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();
|
|
1751
2085
|
},
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
const n = this.list.filter((o) => e.includes(o.id))[0], a = t && n ? n.menuIds : [];
|
|
1756
|
-
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)
|
|
1757
|
-
return;
|
|
1758
|
-
let l = [];
|
|
1759
|
-
this.findParent(this.menuTreeData, n, l);
|
|
1760
|
-
let r = [], u = [];
|
|
1761
|
-
l.forEach((o) => {
|
|
1762
|
-
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);
|
|
1763
|
-
}), r.forEach((o) => {
|
|
1764
|
-
this.changeItem(!0, [o], !1);
|
|
1765
|
-
}), u.forEach((o) => {
|
|
1766
|
-
this.changeItem(!1, [o], !1);
|
|
2086
|
+
getOrgData() {
|
|
2087
|
+
this.confirmLoading = !0, w().then((s) => {
|
|
2088
|
+
s.success && (this.orgTreeData = s.data, this.confirmLoading = !1);
|
|
1767
2089
|
});
|
|
1768
2090
|
},
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
const e = (t) => (t = t.filter((i, n) => {
|
|
1772
|
-
const a = this.checkedKeys.filter((l) => i.menuIds.includes(l));
|
|
1773
|
-
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;
|
|
1774
|
-
}), t);
|
|
1775
|
-
e(s), this.menuTreeData = [...s], this.allClose = this.checkedKeys.length === this.allCheckedKeys.length && this.allCheckedKeys.length > 0;
|
|
2091
|
+
open(s) {
|
|
2092
|
+
this.record = s, this.checkedKeys = s.checkedKeys, this.visible = !0, this.getOrgData();
|
|
1776
2093
|
},
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
},
|
|
1780
|
-
init() {
|
|
1781
|
-
this.confirmLoading = !0, Promise.all([this.getList()]).then(async (s) => {
|
|
1782
|
-
this.confirmLoading = !1;
|
|
1783
|
-
let e = JSON.parse(JSON.stringify(this.menuTreeDatad)), t = [];
|
|
1784
|
-
const i = (a) => (a = a.filter((l, r) => {
|
|
1785
|
-
const u = this.checkedKeys.filter((o) => l.id === o)[0];
|
|
1786
|
-
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;
|
|
1787
|
-
}), a);
|
|
1788
|
-
await i(e);
|
|
1789
|
-
let n = [];
|
|
1790
|
-
t.forEach((a, l) => {
|
|
1791
|
-
const r = this.getMenuIds(a);
|
|
1792
|
-
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);
|
|
1793
|
-
}), 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");
|
|
1794
|
-
});
|
|
1795
|
-
},
|
|
1796
|
-
getList() {
|
|
1797
|
-
return P({ roleId: this.record.id }).then((s) => {
|
|
1798
|
-
if (s.code === 200) {
|
|
1799
|
-
let e = [], t = [];
|
|
1800
|
-
const i = (a, l) => (a = a.filter((r, u) => {
|
|
1801
|
-
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);
|
|
1802
|
-
let o = [];
|
|
1803
|
-
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;
|
|
1804
|
-
}), a);
|
|
1805
|
-
this.menuAll = s.data.list;
|
|
1806
|
-
let n = JSON.parse(JSON.stringify(this.menuAll));
|
|
1807
|
-
i(n, 0), this.checkedKeys = e, this.allCheckedKeys = t, this.menuTreeDatad = [...n];
|
|
1808
|
-
}
|
|
1809
|
-
return s;
|
|
1810
|
-
});
|
|
1811
|
-
},
|
|
1812
|
-
getMenuIds(s) {
|
|
1813
|
-
let e = [], t = [];
|
|
1814
|
-
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);
|
|
1815
|
-
return s.children && i(s.children), { arr: e, btn: t };
|
|
1816
|
-
},
|
|
1817
|
-
findParent(s, e, t) {
|
|
1818
|
-
for (let i of s)
|
|
1819
|
-
if (i.id === e.parentId || i.children && i.children.length > 0 && this.findParent(i.children, e, t))
|
|
1820
|
-
return t.unshift(i), !0;
|
|
1821
|
-
return !1;
|
|
1822
|
-
},
|
|
1823
|
-
open(s) {
|
|
1824
|
-
this.record = s, this.visible = !0, this.init();
|
|
1825
|
-
},
|
|
1826
|
-
closed() {
|
|
1827
|
-
this.fullscreen = !1, this.visible = !1, this.menuTreeData = [], this.checkedKeys = [];
|
|
2094
|
+
closed() {
|
|
2095
|
+
this.fullscreen = !1, this.visible = !1;
|
|
1828
2096
|
},
|
|
1829
2097
|
toggleFullscreen() {
|
|
1830
2098
|
this.fullscreen = !this.fullscreen;
|
|
@@ -1835,270 +2103,25 @@ const Se = {
|
|
|
1835
2103
|
}
|
|
1836
2104
|
}
|
|
1837
2105
|
};
|
|
1838
|
-
var
|
|
2106
|
+
var Ae = function() {
|
|
1839
2107
|
var e = this, t = e._self._c;
|
|
1840
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) {
|
|
1841
2109
|
e.visible = i;
|
|
1842
|
-
}, closed: e.closed } }, [t("template", { slot: "title" }, [t("gd-modal-title", { attrs: { title: e.$i18nt("gd.user.
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
Re,
|
|
1848
|
-
Le,
|
|
1849
|
-
!1,
|
|
1850
|
-
null,
|
|
1851
|
-
"e6593396",
|
|
1852
|
-
null,
|
|
1853
|
-
null
|
|
1854
|
-
);
|
|
1855
|
-
const xe = Ie.exports;
|
|
1856
|
-
const De = {
|
|
1857
|
-
name: "GdRole",
|
|
1858
|
-
props: {
|
|
1859
|
-
height: {
|
|
1860
|
-
type: Number,
|
|
1861
|
-
default: 100
|
|
1862
|
-
},
|
|
1863
|
-
openMode: {
|
|
1864
|
-
type: String,
|
|
1865
|
-
default: "page"
|
|
1866
|
-
},
|
|
1867
|
-
openSelecteKeys: {
|
|
1868
|
-
type: Array,
|
|
1869
|
-
default: () => []
|
|
1870
|
-
}
|
|
1871
|
-
},
|
|
1872
|
-
mixins: [k, U],
|
|
1873
|
-
data() {
|
|
1874
|
-
return {
|
|
1875
|
-
appsId: "",
|
|
1876
|
-
transKey: "gd.btn.add",
|
|
1877
|
-
formLoading: !1,
|
|
1878
|
-
loading: !0,
|
|
1879
|
-
selectedRowKeys: [],
|
|
1880
|
-
selectedRows: [],
|
|
1881
|
-
queryParam: {},
|
|
1882
|
-
allRowData: [],
|
|
1883
|
-
loadData: (s) => (this.selectedKeep && (this.selectedRowKeys = [...this.openSelecteKeys]), N(Object.assign(s, this.queryParam, { sysAppsId: window.$systemInfo.id })).then((e) => (this.allRowData = e.data, e.data))),
|
|
1884
|
-
isDoc: ""
|
|
1885
|
-
};
|
|
1886
|
-
},
|
|
1887
|
-
components: { RoleGrant: ie, RoleMenu: ue, RoleMenuViewForm: xe, UserAuthorization: ke, DocumentAuthorization: Te },
|
|
1888
|
-
computed: {
|
|
1889
|
-
getTableButtons() {
|
|
1890
|
-
return this.tableButtons.filter((s) => s.functionName === "grantRoleAppMenu" ? !!this.appsId : s.functionName === "documentAuthorizationMenu" ? this.isDoc == 1 : !0);
|
|
1891
|
-
},
|
|
1892
|
-
initialLoading() {
|
|
1893
|
-
return this.openMode === "page";
|
|
1894
|
-
},
|
|
1895
|
-
selectedKeep() {
|
|
1896
|
-
return this.openMode !== "page";
|
|
1897
|
-
},
|
|
1898
|
-
getFormColumns() {
|
|
1899
|
-
return this.formColumns.filter((s) => (s.prop === "code" && (s.disabled = this.transKey !== "gd.btn.add"), !(this.transKey === "gd.https.copy" && s.prop === "code")));
|
|
1900
|
-
},
|
|
1901
|
-
getHeight() {
|
|
1902
|
-
return this.height;
|
|
1903
|
-
},
|
|
1904
|
-
...f(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
1905
|
-
},
|
|
1906
|
-
methods: {
|
|
1907
|
-
getConfigInfo() {
|
|
1908
|
-
_({
|
|
1909
|
-
code: "GDS_Enable_Doc_Premissions"
|
|
1910
|
-
}).then((e) => {
|
|
1911
|
-
e.code === 200 && (this.isDoc = e.data.value);
|
|
1912
|
-
});
|
|
1913
|
-
},
|
|
1914
|
-
getAppId() {
|
|
1915
|
-
_({ code: "App_Id" }).then((s) => {
|
|
1916
|
-
s.code === 200 && (this.appsId = s.data ? s.data.value : "");
|
|
1917
|
-
});
|
|
1918
|
-
},
|
|
1919
|
-
documentAuthorizationMenu() {
|
|
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.documentAuthorization.open(this.selectedRows[0]);
|
|
1929
|
-
},
|
|
1930
|
-
userAuthorizationMenu() {
|
|
1931
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1932
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1933
|
-
return;
|
|
1934
|
-
}
|
|
1935
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1936
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1937
|
-
return;
|
|
1938
|
-
}
|
|
1939
|
-
this.$refs.userAuthorization.open(this.selectedRows[0]);
|
|
1940
|
-
},
|
|
1941
|
-
grantRoleMenu() {
|
|
1942
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1943
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1944
|
-
return;
|
|
1945
|
-
}
|
|
1946
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1947
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1948
|
-
return;
|
|
1949
|
-
}
|
|
1950
|
-
this.$refs.roleMenu.open(this.selectedRows[0]);
|
|
1951
|
-
},
|
|
1952
|
-
grantRoleAppMenu() {
|
|
1953
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1954
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1955
|
-
return;
|
|
1956
|
-
}
|
|
1957
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1958
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1959
|
-
return;
|
|
1960
|
-
}
|
|
1961
|
-
this.$refs.roleMenu.open(this.selectedRows[0], this.appsId);
|
|
1962
|
-
},
|
|
1963
|
-
grantRoleGrant() {
|
|
1964
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1965
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1966
|
-
return;
|
|
1967
|
-
}
|
|
1968
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1969
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1970
|
-
return;
|
|
1971
|
-
}
|
|
1972
|
-
this.$refs.roleGrant.open(this.selectedRows[0]);
|
|
1973
|
-
},
|
|
1974
|
-
grantRoleVF() {
|
|
1975
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1976
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1977
|
-
return;
|
|
1978
|
-
}
|
|
1979
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1980
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1981
|
-
return;
|
|
1982
|
-
}
|
|
1983
|
-
this.$refs.roleMenuViewForm.open(this.selectedRows[0]);
|
|
1984
|
-
},
|
|
1985
|
-
saveQueries(s) {
|
|
1986
|
-
this.queryParam = { ...s }, this.refresh();
|
|
1987
|
-
},
|
|
1988
|
-
refresh() {
|
|
1989
|
-
this.$refs.table.refresh();
|
|
1990
|
-
},
|
|
1991
|
-
editForm(s) {
|
|
1992
|
-
this.transKey = "gd.btn.edit", this.$refs.editForm.open(s);
|
|
1993
|
-
},
|
|
1994
|
-
del() {
|
|
1995
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1996
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
1997
|
-
return;
|
|
1998
|
-
}
|
|
1999
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
2000
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
2001
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2002
|
-
showClose: !1,
|
|
2003
|
-
confirmButtonLoading: !1,
|
|
2004
|
-
cancelButtonLoading: !1,
|
|
2005
|
-
closeOnClickModal: !1,
|
|
2006
|
-
type: "warning",
|
|
2007
|
-
confirmButtonClass: "el-button--danger",
|
|
2008
|
-
customClass: "custom-alert",
|
|
2009
|
-
callback: () => {
|
|
2010
|
-
},
|
|
2011
|
-
beforeClose: (s, e, t) => {
|
|
2012
|
-
this.delHand(s, e, t);
|
|
2013
|
-
}
|
|
2014
|
-
});
|
|
2015
|
-
},
|
|
2016
|
-
delHand(s, e, t) {
|
|
2017
|
-
if (s !== "confirm") {
|
|
2018
|
-
t();
|
|
2019
|
-
return;
|
|
2020
|
-
}
|
|
2021
|
-
let i = [];
|
|
2022
|
-
this.selectedRows.forEach((n) => {
|
|
2023
|
-
let a = B(n).then((l) => l);
|
|
2024
|
-
i.push(a);
|
|
2025
|
-
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
|
|
2026
|
-
const a = n.filter((l) => !l.success);
|
|
2027
|
-
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;
|
|
2028
|
-
});
|
|
2029
|
-
},
|
|
2030
|
-
add() {
|
|
2031
|
-
this.transKey = "gd.btn.add", this.$refs.editForm.open(null);
|
|
2032
|
-
},
|
|
2033
|
-
edit() {
|
|
2034
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2035
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
2036
|
-
return;
|
|
2037
|
-
}
|
|
2038
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2039
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
2040
|
-
return;
|
|
2041
|
-
}
|
|
2042
|
-
this.editForm(this.selectedRows[0]);
|
|
2043
|
-
},
|
|
2044
|
-
copy() {
|
|
2045
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2046
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
2047
|
-
return;
|
|
2048
|
-
}
|
|
2049
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2050
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
2051
|
-
return;
|
|
2052
|
-
}
|
|
2053
|
-
this.transKey = "gd.https.copy", this.$refs.editForm.open(Object.assign({ ...this.selectedRows[0] }, { roleId: this.selectedRows[0].id }));
|
|
2054
|
-
},
|
|
2055
|
-
sbumit({ data: s, record: e, btn: t }, i, n) {
|
|
2056
|
-
this.formLoading = !0;
|
|
2057
|
-
let a = e ? this.transKey === "gd.https.copy" ? A : F : M;
|
|
2058
|
-
const l = this.transKey !== "gd.https.edit" ? Object.assign(s, { sysappsid: window.$systemInfo.id }) : s;
|
|
2059
|
-
a(l).then((r) => {
|
|
2060
|
-
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;
|
|
2061
|
-
});
|
|
2062
|
-
},
|
|
2063
|
-
onSelectChange(s, e) {
|
|
2064
|
-
this.selectedRowKeys = s, this.selectedRows = e, this.$emit("onSelectChange", s, e, this.allRowData);
|
|
2065
|
-
},
|
|
2066
|
-
doEvent(s) {
|
|
2067
|
-
let e = s.item.functionName;
|
|
2068
|
-
this[e] && this[e]();
|
|
2069
|
-
}
|
|
2070
|
-
},
|
|
2071
|
-
created() {
|
|
2072
|
-
this.getAppId(), this.getConfigInfo();
|
|
2073
|
-
}
|
|
2074
|
-
};
|
|
2075
|
-
var Pe = function() {
|
|
2076
|
-
var e = this, t = e._self._c;
|
|
2077
|
-
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 }) {
|
|
2078
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row: n, highlight: "" }, on: { click: e.editForm } })];
|
|
2079
|
-
} }, { key: "operator", fn: function() {
|
|
2080
|
-
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) {
|
|
2081
|
-
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
2082
|
-
} }, model: { value: e.queryParam.name, callback: function(i) {
|
|
2083
|
-
e.$set(e.queryParam, "name", i);
|
|
2084
|
-
}, 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)])];
|
|
2085
|
-
}, proxy: !0 }, { key: "filtering", fn: function({ colse: i, visible: n }) {
|
|
2086
|
-
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: i, visible: n }, on: { save: e.saveQueries } })];
|
|
2087
|
-
} }]) })], 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);
|
|
2088
|
-
}, Ne = [], Be = /* @__PURE__ */ g(
|
|
2089
|
-
De,
|
|
2090
|
-
Pe,
|
|
2091
|
-
Ne,
|
|
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,
|
|
2092
2115
|
!1,
|
|
2093
2116
|
null,
|
|
2094
|
-
"
|
|
2117
|
+
"2b164094",
|
|
2095
2118
|
null,
|
|
2096
2119
|
null
|
|
2097
2120
|
);
|
|
2098
|
-
const
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
};
|
|
2121
|
+
const Ee = Oe.exports, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2122
|
+
__proto__: null,
|
|
2123
|
+
default: Ee
|
|
2124
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2102
2125
|
export {
|
|
2103
|
-
m as
|
|
2126
|
+
m as R
|
|
2104
2127
|
};
|