gds-plus-design-vue 1.2.7 → 1.2.8
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.44734e9d.mjs +318 -0
- package/lib/addPermission.bf562510.js +1 -0
- package/lib/attribute.3f0f5019.js +1 -0
- package/lib/attribute.76ccdde6.mjs +238 -0
- package/lib/{businessRules.754cc398.mjs → businessRules.5ca5c0e7.mjs} +4 -4
- package/lib/{businessRules.f41f7035.js → businessRules.880c9f2b.js} +1 -1
- package/lib/{buttonRule.645de1d3.js → buttonRule.ccef0e48.js} +1 -1
- package/lib/{buttonRule.4483314f.mjs → buttonRule.e502b1ae.mjs} +4 -4
- package/lib/{chartDisplayRules.1f4d1f29.mjs → chartDisplayRules.1d31faf0.mjs} +2 -2
- package/lib/{chartDisplayRules.fedfefe8.js → chartDisplayRules.a13fd48e.js} +1 -1
- package/lib/components.chartbi.6c030f0f.js +8 -0
- package/lib/{components.chartbi.470b96af.mjs → components.chartbi.6ee50371.mjs} +578 -558
- package/lib/{components.coloreditor.dbec8da6.js → components.coloreditor.37a3fdde.js} +1 -1
- package/lib/{components.coloreditor.affa0400.mjs → components.coloreditor.96579c7c.mjs} +2 -2
- package/lib/components.dataassign.8581a13d.js +1 -0
- package/lib/{components.dataassign.39281072.mjs → components.dataassign.c1e2b55a.mjs} +22 -26
- package/lib/{components.echarts.d09e9850.js → components.echarts.52debcdc.js} +1 -1
- package/lib/{components.echarts.95ffc3b3.mjs → components.echarts.7dc652cb.mjs} +3 -3
- package/lib/{components.exception.facf9df9.mjs → components.exception.052c180b.mjs} +1 -1
- package/lib/{components.exception.11315db5.js → components.exception.6c834aa8.js} +1 -1
- package/lib/{components.form.a7b3ea37.mjs → components.form.0ead4b56.mjs} +56 -50
- package/lib/{components.form.56ea8f98.js → components.form.d8bc80ef.js} +3 -3
- package/lib/{components.globalheader.0a7ce959.js → components.globalheader.822c6dae.js} +1 -1
- package/lib/{components.globalheader.4a5f7225.mjs → components.globalheader.ca080888.mjs} +3 -3
- package/lib/{components.iconselector.251c29b9.mjs → components.iconselector.9938ea4c.mjs} +5 -3
- package/lib/components.iconselector.adb82810.js +1 -0
- package/lib/{components.imgpreview.5546e541.mjs → components.imgpreview.22a86cd8.mjs} +2 -2
- package/lib/{components.imgpreview.706a89f0.js → components.imgpreview.fbd7888e.js} +1 -1
- package/lib/{components.lunccalendar.fe7db238.js → components.lunccalendar.46abeb74.js} +1 -1
- package/lib/{components.lunccalendar.5363cba5.mjs → components.lunccalendar.6553c69b.mjs} +1 -1
- package/lib/components.middleware.b3acec88.mjs +148 -0
- package/lib/components.middleware.ce94e5b4.js +1 -0
- package/lib/{components.modaltitle.cc9ba616.js → components.modaltitle.3f93c4e8.js} +1 -1
- package/lib/{components.modaltitle.5ded43f9.mjs → components.modaltitle.e5fe44d5.mjs} +3 -3
- package/lib/{components.multitab.0f9da9f3.mjs → components.multitab.2b18bdf6.mjs} +1 -1
- package/lib/{components.multitab.726cff2f.js → components.multitab.4a86226d.js} +1 -1
- package/lib/{components.selecttree.2fadffca.js → components.selecttree.087b9745.js} +1 -1
- package/lib/{components.selecttree.1a71c963.mjs → components.selecttree.4c059920.mjs} +1 -1
- package/lib/{components.settingdrawer.adc262cf.mjs → components.settingdrawer.16b851c5.mjs} +5 -5
- package/lib/components.settingdrawer.b2cfb9b8.js +1 -0
- package/lib/{components.sidemenu.03442146.mjs → components.sidemenu.031acc28.mjs} +2 -2
- package/lib/{components.sidemenu.5107c7e3.js → components.sidemenu.8e3a537e.js} +1 -1
- package/lib/{components.sidenavmenu.3d255147.mjs → components.sidenavmenu.0706d953.mjs} +59 -57
- package/lib/components.sidenavmenu.823b4f59.js +1 -0
- package/lib/{components.statuschange.805a751b.mjs → components.statuschange.567b5e11.mjs} +3 -3
- package/lib/{components.statuschange.83646c5d.js → components.statuschange.7196493d.js} +1 -1
- package/lib/components.table.65f063db.mjs +3592 -0
- package/lib/components.table.b8c3c470.js +8 -0
- package/lib/components.table.childheader.7db99198.mjs +327 -0
- package/lib/components.table.childheader.86f374d1.js +1 -0
- package/lib/components.table.queriesfield.219de875.js +1 -0
- package/lib/components.table.queriesfield.a724759d.mjs +760 -0
- package/lib/components.tableumy.56c007b5.js +1 -0
- package/lib/{components.tableumy.35b465f9.mjs → components.tableumy.b40caab4.mjs} +25 -21
- package/lib/components.tablevirtual.6fa9320d.js +1 -0
- package/lib/{components.tablevirtual.14a8dbed.mjs → components.tablevirtual.89a68883.mjs} +64 -60
- package/lib/{components.teamsharing.c4f4f12e.mjs → components.teamsharing.e151d4f4.mjs} +3 -3
- package/lib/{components.teamsharing.68865424.js → components.teamsharing.e968f9bb.js} +1 -1
- package/lib/{components.tooltip.e2e21e66.js → components.tooltip.8372e161.js} +1 -1
- package/lib/{components.tooltip.ccb1717d.mjs → components.tooltip.c757843a.mjs} +1 -1
- package/lib/{components.uploadfile.a0dfedaf.mjs → components.uploadfile.0152727f.mjs} +2 -2
- package/lib/{components.uploadfile.e93b500d.js → components.uploadfile.33ccd11b.js} +1 -1
- package/lib/{components.uploadimg.3804913e.js → components.uploadimg.8b1bf1ea.js} +1 -1
- package/lib/{components.uploadimg.e49707d9.mjs → components.uploadimg.d02cb929.mjs} +2 -2
- package/lib/{components.verificationcode.ead74922.mjs → components.verificationcode.75bf3289.mjs} +1 -1
- package/lib/{components.verificationcode.5a9c0220.js → components.verificationcode.a42a0e18.js} +1 -1
- package/lib/{components.viewformdetails.98be3c0d.mjs → components.viewformdetails.3ada7218.mjs} +61 -38
- package/lib/components.viewformdetails.e7f59d7c.js +1 -0
- package/lib/{components.viewloading.5b178ec5.js → components.viewloading.2f810949.js} +1 -1
- package/lib/{components.viewloading.cb7917b7.mjs → components.viewloading.cd104247.mjs} +1 -1
- package/lib/{components.watermark.a2521d0c.mjs → components.watermark.7e8f0083.mjs} +1 -1
- package/lib/{components.watermark.849409ca.js → components.watermark.d279985e.js} +1 -1
- package/lib/{components.xlsxexport.871f87d1.mjs → components.xlsxexport.0cff4489.mjs} +4 -4
- package/lib/{components.xlsxexport.3405a00b.js → components.xlsxexport.5e1ad46d.js} +1 -1
- package/lib/{components.xlsximport.85ce77cf.mjs → components.xlsximport.8cafe05a.mjs} +36 -31
- package/lib/components.xlsximport.df06bcca.js +1 -0
- package/lib/createFile.5dbb535e.js +1 -0
- package/lib/createFile.6b52ae4a.mjs +313 -0
- package/lib/createSubfolders.a693b60b.js +1 -0
- package/lib/createSubfolders.a7ec5be5.mjs +161 -0
- package/lib/{editForm.c199538f.mjs → editForm.7f53e2c0.mjs} +11 -8
- package/lib/editForm.f9d19fc6.js +1 -0
- package/lib/extendedAttributes.2bae1c67.js +1 -0
- package/lib/extendedAttributes.f3511188.mjs +164 -0
- package/lib/fileSearch.1a0822df.js +1 -0
- package/lib/fileSearch.2925210a.mjs +370 -0
- package/lib/{flow.designer.9442a995.mjs → flow.designer.5691358c.mjs} +695 -675
- package/lib/flow.designer.b867aa28.js +1 -0
- package/lib/{flow.list.f41ee531.js → flow.list.32617f34.js} +1 -1
- package/lib/{flow.list.4a31969e.mjs → flow.list.c7c51336.mjs} +5 -5
- package/lib/form.build.56150ca8.js +1 -0
- package/lib/{form.build.fb9f905b.mjs → form.build.e7d3a429.mjs} +35 -22
- package/lib/form.designer.build.062420a5.js +1 -0
- package/lib/form.designer.build.446085d5.mjs +2570 -0
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +221 -201
- package/lib/{http.appmanage.9b22ff82.mjs → http.appmanage.e389782d.mjs} +4 -4
- package/lib/http.filedocument.c0336daf.js +1 -0
- package/lib/{http.filedocument.d3a4afd9.mjs → http.filedocument.d34b2ab9.mjs} +98 -58
- package/lib/http.main.6af4594d.js +1 -0
- package/lib/{http.main.1af1e119.mjs → http.main.e9bb1f06.mjs} +125 -121
- package/lib/{http.menumanage.09fffb7d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
- package/lib/{http.message.1d68e914.mjs → http.message.00e72e09.mjs} +33 -25
- package/lib/{http.message.87f319d7.js → http.message.73c3ed85.js} +1 -1
- package/lib/{http.sysapps.932ba43b.mjs → http.sysapps.1786b914.mjs} +5 -5
- package/lib/{http.tabledevelopment.7adf4910.mjs → http.tabledevelopment.de861b92.mjs} +44 -44
- package/lib/index.9fb74fce.js +8 -0
- package/lib/index.c7fb3fad.mjs +26186 -0
- package/lib/layoutBlocks.2a9fd4c5.mjs +1315 -0
- package/lib/layoutBlocks.6a4da386.js +1 -0
- package/lib/layoutItem.256598c5.mjs +71 -0
- package/lib/layoutItem.e4885ed5.js +1 -0
- package/lib/{layouts.ec4f20a2.mjs → layouts.1fde07ec.mjs} +86 -59
- package/lib/layouts.bf328153.js +2 -0
- package/lib/{main.88e9be9d.mjs → main.05fd438c.mjs} +2 -2
- package/lib/{main.79199ac2.js → main.0f2bcff6.js} +1 -1
- package/lib/main.1552a904.js +1 -0
- package/lib/{main.e79d9e56.mjs → main.1f4d3f43.mjs} +3 -3
- package/lib/{main.821d081b.js → main.2066dab3.js} +1 -1
- package/lib/{main.092a2ac8.js → main.39edeb2a.js} +1 -1
- package/lib/{main.73f22d9e.mjs → main.5a9e8258.mjs} +2 -2
- package/lib/main.5f9d7aa8.js +1 -0
- package/lib/main.62898cc4.mjs +447 -0
- package/lib/main.64d2ef8c.js +1 -0
- package/lib/{main.8e6f6cba.mjs → main.88ae39aa.mjs} +7 -9
- package/lib/{main.7601bd3d.mjs → main.b4b93a97.mjs} +4 -4
- package/lib/{main.4e507685.mjs → main.c48e4f5f.mjs} +3 -3
- package/lib/main.d04067b3.js +1 -0
- package/lib/main.d359f072.js +1 -0
- package/lib/{main.15237e71.mjs → main.e526a965.mjs} +8 -7
- package/lib/manage.8aaeb1c6.js +1 -0
- package/lib/manage.d1ff64ad.mjs +312 -0
- package/lib/messages.fieldconfiguration.15062d8d.mjs +1097 -0
- package/lib/messages.fieldconfiguration.984a75e3.js +1 -0
- package/lib/messages.messagetemplate.78e89fbf.mjs +1319 -0
- package/lib/messages.messagetemplate.bf867f64.js +7 -0
- package/lib/messages.sendplan.65b1295f.mjs +1126 -0
- package/lib/messages.sendplan.d75f9094.js +1 -0
- package/lib/messages.sendrecord.47241576.js +2 -0
- package/lib/messages.sendrecord.9708e459.mjs +640 -0
- package/lib/messages.templatelibrary.62ea4983.mjs +808 -0
- package/lib/messages.templatelibrary.f66ee730.js +2 -0
- package/lib/mobile.designer.componentstree.5255fd5f.mjs +2064 -0
- package/lib/mobile.designer.componentstree.814241c0.js +1 -0
- package/lib/mobile.designer.menutree.171c6cc9.js +1 -0
- package/lib/mobile.designer.menutree.a249cc5d.mjs +1036 -0
- package/lib/moveFile.4396bab7.js +1 -0
- package/lib/moveFile.da62e3db.mjs +147 -0
- package/lib/page.application.480f9494.mjs +1290 -0
- package/lib/page.application.a69ec83d.js +1 -0
- package/lib/page.build.0ab96a45.mjs +3174 -0
- package/lib/page.build.20336cc7.js +12 -0
- package/lib/page.designer.componentstree.55a042f0.js +1 -0
- package/lib/page.designer.componentstree.be31a11e.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.336795ea.js +1 -0
- package/lib/page.designer.fieldfiltering.dddb11fc.mjs +430 -0
- package/lib/page.designer.menutree.ab8b4503.js +1 -0
- package/lib/{solution.menu.2033fa37.mjs → page.designer.menutree.d70ae1b3.mjs} +677 -544
- package/lib/page.designer.operation.7d51fb35.mjs +44 -0
- package/lib/page.designer.operation.83aa6f6a.js +1 -0
- package/lib/page.designer.page.01716ab3.mjs +10721 -0
- package/lib/page.designer.page.898ff9ad.js +1 -0
- package/lib/personal.echarts.0c77e256.js +1 -0
- package/lib/personal.echarts.1c275870.mjs +268 -0
- package/lib/router.config.405561c6.js +1 -0
- package/lib/router.config.db45c038.mjs +222 -0
- package/lib/search.advanced.1ae41423.js +1 -0
- package/lib/search.advanced.7f41a40b.mjs +2089 -0
- package/lib/solution.application.0fd29267.js +1 -0
- package/lib/{solution.application.fdc15ffc.mjs → solution.application.abae1a39.mjs} +18 -12
- package/lib/{solution.applicationmenu.daaacb07.mjs → solution.applicationmenu.773f3bfa.mjs} +3 -3
- package/lib/{solution.applicationmenu.67aba620.js → solution.applicationmenu.ce3cc0d2.js} +1 -1
- package/lib/{solution.approvalflow.a541adcc.mjs → solution.approvalflow.a717e233.mjs} +21 -15
- package/lib/solution.approvalflow.b97bc1ea.js +1 -0
- package/lib/{solution.dict.addbce33.mjs → solution.dict.49786d64.mjs} +42 -38
- package/lib/solution.dict.9e8c7994.js +1 -0
- package/lib/solution.menu.042ac0a1.mjs +432 -0
- package/lib/solution.menu.224d6798.js +1 -0
- package/lib/{solution.plugin.d8f057cb.mjs → solution.plugin.01aaf06c.mjs} +19 -13
- package/lib/solution.plugin.b69b77ef.js +1 -0
- package/lib/{solution.processflow.a779bd58.mjs → solution.processflow.2299a000.mjs} +17 -11
- package/lib/solution.processflow.c9989a94.js +1 -0
- package/lib/{solution.role.d9a4b25a.mjs → solution.role.6e63d70e.mjs} +20 -14
- package/lib/solution.role.e5464d08.js +1 -0
- package/lib/solution.webresources.4f7ed1a7.js +2 -0
- package/lib/{solution.webresources.e1421655.mjs → solution.webresources.d8915d2c.mjs} +247 -79
- package/lib/{solution.workflow.59552b8c.mjs → solution.workflow.1a82bfb7.mjs} +19 -13
- package/lib/solution.workflow.5a20c27d.js +1 -0
- package/lib/{store.config.5e5cb48a.mjs → store.config.5cf35072.mjs} +30 -20
- package/lib/store.config.c75c7725.js +1 -0
- package/lib/style.css +3 -3
- package/lib/system.account.2cb0721d.js +216 -0
- package/lib/{system.account.96d5bc17.mjs → system.account.ec94a47c.mjs} +324 -309
- package/lib/{system.config.0ff45e62.js → system.config.64037b88.js} +1 -1
- package/lib/{system.config.35b13003.mjs → system.config.d56e285f.mjs} +1 -1
- package/lib/{system.datasource.4243937d.js → system.datasource.5ed32e16.js} +1 -1
- package/lib/{system.datasource.7f582bef.mjs → system.datasource.a155badd.mjs} +1 -1
- package/lib/{system.dict.8e4fe6b0.js → system.dict.c0b37e93.js} +1 -1
- package/lib/{system.dict.3697546d.mjs → system.dict.e02fe0ae.mjs} +1 -1
- package/lib/system.document.3abdc3dd.js +1 -0
- package/lib/system.document.e3488436.mjs +1378 -0
- package/lib/{system.duplicatechecking.1083eb1e.js → system.duplicatechecking.5aa6941b.js} +1 -1
- package/lib/{system.duplicatechecking.c6a8b2b7.mjs → system.duplicatechecking.a217842c.mjs} +2 -2
- package/lib/{system.email.41036a31.js → system.email.25602dc0.js} +1 -1
- package/lib/{system.email.06bb7cc1.mjs → system.email.7bdc8432.mjs} +2 -2
- package/lib/{system.fieldsecurity.dd504643.mjs → system.fieldsecurity.53edcbbd.mjs} +2 -2
- package/lib/{system.fieldsecurity.3ea880d8.js → system.fieldsecurity.e4135e49.js} +1 -1
- package/lib/{system.file.8ccc4569.mjs → system.file.1f130523.mjs} +1 -1
- package/lib/{system.file.b8e4e6a1.js → system.file.2d50278a.js} +1 -1
- package/lib/{system.log.aad4ff54.mjs → system.log.5077a7ad.mjs} +1 -1
- package/lib/{system.log.14c22a7a.js → system.log.50c0047e.js} +1 -1
- package/lib/{system.machine.c47be0cc.mjs → system.machine.371c330f.mjs} +1 -1
- package/lib/{system.machine.379beacb.js → system.machine.3800ef26.js} +1 -1
- package/lib/{system.notice.dc1b67cc.mjs → system.notice.7f1dc4c9.mjs} +223 -220
- package/lib/system.notice.91f015fe.js +1 -0
- package/lib/{system.noticereceived.3a29d891.js → system.noticereceived.6153e2ce.js} +1 -1
- package/lib/{system.noticereceived.e75bf358.mjs → system.noticereceived.742c0412.mjs} +2 -2
- package/lib/{system.onlineuser.ab9c2776.mjs → system.onlineuser.2ad609d4.mjs} +1 -1
- package/lib/{system.onlineuser.fc26aff9.js → system.onlineuser.a51e2a4f.js} +1 -1
- package/lib/{system.org.b6f826e8.js → system.org.469d97ef.js} +1 -1
- package/lib/{system.org.dd710a91.mjs → system.org.eebb3b3c.mjs} +1 -1
- package/lib/{system.permissions.75406743.mjs → system.permissions.a701c89b.mjs} +54 -52
- package/lib/system.permissions.c5ae6f5a.js +1 -0
- package/lib/{system.plugin.4b80cd95.mjs → system.plugin.0c2a59c1.mjs} +1 -1
- package/lib/{system.plugin.3fcf7b0b.js → system.plugin.fb5b87b4.js} +1 -1
- package/lib/{system.pos.a3bafaaa.mjs → system.pos.4a07ee48.mjs} +1 -1
- package/lib/{system.pos.5a1663d8.js → system.pos.9c5c80e4.js} +1 -1
- package/lib/{system.promptmanagement.53c301a3.js → system.promptmanagement.218bf207.js} +1 -1
- package/lib/{system.promptmanagement.fd651c09.mjs → system.promptmanagement.8d07150f.mjs} +2 -2
- package/lib/{system.role.e164f059.js → system.role.70d21d63.js} +1 -1
- package/lib/{system.role.9edb5922.mjs → system.role.94863f39.mjs} +4 -4
- package/lib/{system.sumberrules.5e9cd262.js → system.sumberrules.7e46d49b.js} +1 -1
- package/lib/{system.sumberrules.4bb2c95c.mjs → system.sumberrules.9bcb4bbd.mjs} +2 -2
- package/lib/{system.team.bb1fb40e.mjs → system.team.4a78bf70.mjs} +9 -9
- package/lib/{system.team.3e605266.js → system.team.715cf1a0.js} +1 -1
- package/lib/{system.teammembers.b8e53d99.mjs → system.teammembers.b47e16f6.mjs} +11 -9
- package/lib/system.teammembers.e6af5083.js +1 -0
- package/lib/{system.timers.551c4a4b.mjs → system.timers.69adc41b.mjs} +5 -5
- package/lib/system.timers.d18e69c5.js +38 -0
- package/lib/{system.translation.c2c1f40c.mjs → system.translation.9411e286.mjs} +2 -2
- package/lib/{system.translation.6e99c852.js → system.translation.a664f0d7.js} +1 -1
- package/lib/{system.user.dffc2543.js → system.user.8e77f525.js} +1 -1
- package/lib/{system.user.b99911de.mjs → system.user.f37efc86.mjs} +5 -5
- package/lib/{system.useraffiliation.12cae7ef.mjs → system.useraffiliation.7a63a529.mjs} +2 -2
- package/lib/{system.useraffiliation.f8b33def.js → system.useraffiliation.92672d44.js} +1 -1
- package/lib/{system.webresource.1d3ed352.js → system.webresource.6347bbf9.js} +1 -1
- package/lib/{system.webresource.8a8d856b.mjs → system.webresource.c5df74a9.mjs} +2 -2
- package/lib/{system.welcome.eedf1db2.js → system.welcome.7bc93674.js} +1 -1
- package/lib/{system.welcome.573a76db.mjs → system.welcome.ad7177c1.mjs} +1 -1
- package/lib/table.definition..btnconfig.05e5e6d9.js +1 -0
- package/lib/table.definition..btnconfig.804c82c0.mjs +943 -0
- package/lib/table.definition..echartsconfig.449af1f1.js +1 -0
- package/lib/table.definition..echartsconfig.6668e52b.mjs +2163 -0
- package/lib/{tableDescriptions.b12679b0.js → tableDescriptions.b8736cbe.js} +1 -1
- package/lib/{tableDescriptions.923c4ef1.mjs → tableDescriptions.e511f3fd.mjs} +4 -4
- package/lib/{tcheckboxs.887d733c.mjs → tcheckboxs.931b3af1.mjs} +2 -2
- package/lib/tcheckboxs.a8dffb60.js +1 -0
- package/lib/{tcurrency.20e959c0.js → tcurrency.043f5b00.js} +1 -1
- package/lib/{tcurrency.10ac9aa7.mjs → tcurrency.8da387ae.mjs} +2 -2
- package/lib/{tdatepicker.a08ad382.mjs → tdatepicker.2b3a94c9.mjs} +2 -2
- package/lib/{tdatepicker.54036bba.js → tdatepicker.5d868745.js} +1 -1
- package/lib/{tdictSwitch.274e9f86.js → tdictSwitch.4c589f8b.js} +1 -1
- package/lib/{tdictSwitch.d40f1b4f.mjs → tdictSwitch.d14f58ee.mjs} +2 -2
- package/lib/{tfile.f63b73b9.mjs → tfile.981f5327.mjs} +2 -2
- package/lib/{tfile.5c897827.js → tfile.fc50065f.js} +1 -1
- package/lib/{tparticipants.b6fb4545.js → tparticipants.6db03e93.js} +1 -1
- package/lib/{tparticipants.4698962b.mjs → tparticipants.86cb1855.mjs} +2 -2
- package/lib/{translation.mains.e6cb610b.mjs → translation.mains.624f16ba.mjs} +6 -6
- package/lib/{translation.mains.5cfc7a2f.js → translation.mains.f09be5db.js} +1 -1
- package/lib/utils.axios.js.4fec2453.mjs +1361 -0
- package/lib/utils.axios.js.69442e57.js +5 -0
- package/lib/utils.concurrencyrequest.js.3b4cb0a8.mjs +20 -0
- package/lib/utils.concurrencyrequest.js.cf116d0c.js +1 -0
- package/lib/{utils.util.js.885de913.mjs → utils.util.js.333daba2.mjs} +5 -5
- package/lib/versionControl.b0db799e.mjs +359 -0
- package/lib/versionControl.f9e611b7.js +1 -0
- package/lib/versionEdit.03e6b7b1.js +1 -0
- package/lib/versionEdit.ad608130.mjs +330 -0
- package/lib/view.build.0100d219.js +1 -0
- package/lib/{view.build.051553d8.mjs → view.build.5f025506.mjs} +233 -223
- package/lib/viewTree.1da3a1ae.js +1 -0
- package/lib/{viewTree.c5290360.mjs → viewTree.fa1eab4f.mjs} +24 -19
- package/locale/en_US.js +111 -22
- package/locale/id_ID.js +97 -8
- package/locale/vi_VN.js +98 -9
- package/locale/zh_CN.js +95 -6
- package/package.json +1 -1
- package/lib/approvalModel.a26e8ff6.mjs +0 -340
- package/lib/approvalModel.cfd81971.js +0 -1
- package/lib/btnFunctionName.9aabfed0.js +0 -1
- package/lib/btnFunctionName.d08627cb.mjs +0 -254
- package/lib/btnRelation.8e608261.mjs +0 -156
- package/lib/btnRelation.cb3dc022.js +0 -1
- package/lib/components.chartbi.e9459775.js +0 -8
- package/lib/components.dataassign.b6a1bffb.js +0 -1
- package/lib/components.iconselector.0c03cfc7.js +0 -1
- package/lib/components.middleware.01601349.js +0 -1
- package/lib/components.middleware.f5f4ac0f.mjs +0 -148
- package/lib/components.settingdrawer.1af86231.js +0 -1
- package/lib/components.sidenavmenu.ef33de39.js +0 -1
- package/lib/components.table.61eb5d81.js +0 -8
- package/lib/components.table.c986e58d.mjs +0 -4650
- package/lib/components.tableumy.eba43953.js +0 -1
- package/lib/components.tablevirtual.6af04c44.js +0 -1
- package/lib/components.viewformdetails.3c1596ad.js +0 -1
- package/lib/components.xlsximport.e3bcb07d.js +0 -1
- package/lib/copy.b09a6d38.js +0 -1
- package/lib/copy.c0a2f16d.mjs +0 -572
- package/lib/dialogLayout.059ee256.mjs +0 -138
- package/lib/dialogLayout.cedf2865.js +0 -1
- package/lib/drawerContainer.38d7b530.mjs +0 -154
- package/lib/drawerContainer.ea7722d7.js +0 -1
- package/lib/drawerLayout.454e4921.js +0 -1
- package/lib/drawerLayout.fad843ee.mjs +0 -119
- package/lib/editForm.f9dc93ef.js +0 -1
- package/lib/flow.designer.4c83c0d3.js +0 -1
- package/lib/form.build.c38bf362.js +0 -1
- package/lib/form.designer.build.3fdf8007.js +0 -1
- package/lib/form.designer.build.e1b97dc3.mjs +0 -5135
- package/lib/formFiled.624b8dd3.js +0 -1
- package/lib/formFiled.94fb1dce.mjs +0 -498
- package/lib/http.filedocument.6fdfc693.js +0 -1
- package/lib/http.main.2f8a6936.js +0 -1
- package/lib/index.3fa2dc66.mjs +0 -40154
- package/lib/index.fe757a98.js +0 -8
- package/lib/layoutBlocks.14c77a02.js +0 -1
- package/lib/layoutBlocks.5d71a03b.mjs +0 -401
- package/lib/layouts.a662f681.js +0 -2
- package/lib/main.29769f01.js +0 -1
- package/lib/main.401059c6.mjs +0 -189
- package/lib/main.447be615.js +0 -1
- package/lib/main.72cafa63.mjs +0 -540
- package/lib/main.8627466a.mjs +0 -537
- package/lib/main.a9a54af9.js +0 -1
- package/lib/main.e033a376.js +0 -1
- package/lib/main.e2e4ba74.js +0 -1
- package/lib/main.ea3a04f4.js +0 -1
- package/lib/main.f44d8279.js +0 -1
- package/lib/messages.5f54a62e.js +0 -9
- package/lib/messages.d4354532.mjs +0 -4900
- package/lib/packages.filedocument.8418d852.mjs +0 -4039
- package/lib/packages.filedocument.9b8eda0d.js +0 -1
- package/lib/page.build.4d28df9a.js +0 -12
- package/lib/page.build.78cc7396.mjs +0 -3020
- package/lib/personal.echarts.940f1cc9.mjs +0 -696
- package/lib/personal.echarts.b5a7f574.js +0 -1
- package/lib/result.0161b0e0.js +0 -1
- package/lib/result.5a9330d7.mjs +0 -627
- package/lib/router.config.79a98ab8.mjs +0 -3105
- package/lib/router.config.7fd04c30.js +0 -1
- package/lib/solution.application.3ae7c0c5.js +0 -1
- package/lib/solution.approvalflow.81b7cfb7.js +0 -1
- package/lib/solution.dict.f1c9bae6.js +0 -1
- package/lib/solution.menu.6512047f.js +0 -1
- package/lib/solution.plugin.7094dbfd.js +0 -1
- package/lib/solution.processflow.0adf4f55.js +0 -1
- package/lib/solution.role.d35cb00d.js +0 -1
- package/lib/solution.webresources.e817757c.js +0 -1
- package/lib/solution.workflow.985e1f4d.js +0 -1
- package/lib/store.config.556bd56b.js +0 -1
- package/lib/system.account.1b281679.js +0 -216
- package/lib/system.document.69e534a6.js +0 -1
- package/lib/system.document.8e4dbe5e.mjs +0 -667
- package/lib/system.notice.fb151c45.js +0 -1
- package/lib/system.permissions.97f68887.js +0 -1
- package/lib/system.teammembers.a098883b.js +0 -1
- package/lib/system.timers.2f884e41.js +0 -38
- package/lib/tcheckboxs.fe7e574a.js +0 -1
- package/lib/view.build.9af3087b.js +0 -1
- package/lib/viewList.209956c3.js +0 -1
- package/lib/viewList.c05c92be.mjs +0 -318
- package/lib/viewTree.0cd9f1a2.js +0 -1
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { m as d, n as u } from "./components.chartbi.6ee50371.mjs";
|
|
2
|
+
import { K as p, L as h } from "./http.filedocument.d34b2ab9.mjs";
|
|
3
|
+
import { a as m } from "./http.main.e9bb1f06.mjs";
|
|
4
|
+
import { g as f } from "./utils.axios.js.4fec2453.mjs";
|
|
5
|
+
import { p as b } from "./system.document.e3488436.mjs";
|
|
6
|
+
import "./utils.echarts.js.d1bb8ac6.mjs";
|
|
7
|
+
import "./utils.util.js.333daba2.mjs";
|
|
8
|
+
import "./utils.mixins.js.be01e599.mjs";
|
|
9
|
+
import "./utils.concurrencyrequest.js.3b4cb0a8.mjs";
|
|
10
|
+
import "./http.tabledevelopment.de861b92.mjs";
|
|
11
|
+
const g = {
|
|
12
|
+
props: {
|
|
13
|
+
recordData: {
|
|
14
|
+
type: Object,
|
|
15
|
+
defalt: () => {
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
allIds: {
|
|
19
|
+
type: Array,
|
|
20
|
+
defalt: () => []
|
|
21
|
+
},
|
|
22
|
+
multipleLimit: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 12
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
ruleForm: {
|
|
30
|
+
principalidAboutId: "",
|
|
31
|
+
principalidAboutTable: "",
|
|
32
|
+
principalidAboutIdBatch: [],
|
|
33
|
+
isInherit: !1
|
|
34
|
+
},
|
|
35
|
+
rules: {
|
|
36
|
+
principalidAboutId: [
|
|
37
|
+
{
|
|
38
|
+
required: !0,
|
|
39
|
+
message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"),
|
|
40
|
+
trigger: ["change", "blur"]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
principalidAboutIdBatch: [
|
|
44
|
+
{
|
|
45
|
+
required: !0,
|
|
46
|
+
message: this.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"),
|
|
47
|
+
trigger: ["change", "blur"]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
record: null,
|
|
52
|
+
width: "800px",
|
|
53
|
+
confirmLoading: !1,
|
|
54
|
+
visible: !1,
|
|
55
|
+
fullscreen: !1,
|
|
56
|
+
loading: !1,
|
|
57
|
+
hasRefresh: !1,
|
|
58
|
+
fkData: [],
|
|
59
|
+
fkEntityName: "sys_user,sys_team",
|
|
60
|
+
list: [],
|
|
61
|
+
batchPrincipalid: [],
|
|
62
|
+
permissionList: b,
|
|
63
|
+
source: null
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
computed: {
|
|
67
|
+
maxTip() {
|
|
68
|
+
return `${this.$i18nt("gd.https.exceedMaxiNumber", "\u8D85\u8FC7\u6279\u91CF\u63D0\u4EA4\u6700\u5927\u6570")} :${this.multipleLimit}`;
|
|
69
|
+
},
|
|
70
|
+
docacltemList() {
|
|
71
|
+
const s = this.getDictionary("docacltem");
|
|
72
|
+
return (s || []).map((e) => Object.assign(e, {
|
|
73
|
+
bjcolor: e.colour ? `background:${e.colour};color:#fff;` : ""
|
|
74
|
+
}));
|
|
75
|
+
},
|
|
76
|
+
title() {
|
|
77
|
+
return this.record ? this.$i18nt("gd.btn.edit", "\u7F16\u8F91") : this.$i18nt("gd.btn.add", "\u65B0\u589E");
|
|
78
|
+
},
|
|
79
|
+
fadeColord() {
|
|
80
|
+
return this.fadeColor(this.primaryColor, 0.1);
|
|
81
|
+
},
|
|
82
|
+
disabledRowId() {
|
|
83
|
+
return this.record ? this.allIds.filter((s) => s !== this.record.principalid_aboutid) : this.allIds;
|
|
84
|
+
},
|
|
85
|
+
disabled() {
|
|
86
|
+
return !!(this.record && this.record.isinherit);
|
|
87
|
+
},
|
|
88
|
+
buttons() {
|
|
89
|
+
return this.disabled ? [] : [
|
|
90
|
+
{
|
|
91
|
+
displayName: "\u786E\u5B9A",
|
|
92
|
+
functionName: "handleSubmit",
|
|
93
|
+
show: !0,
|
|
94
|
+
transKey: "gd.btn.confirm",
|
|
95
|
+
icon: "el-icon-document-checked"
|
|
96
|
+
}
|
|
97
|
+
];
|
|
98
|
+
},
|
|
99
|
+
...d(["primaryColor", "tableLists"])
|
|
100
|
+
},
|
|
101
|
+
methods: {
|
|
102
|
+
selDocacltem(s) {
|
|
103
|
+
const t = s.remark ? s.remark.split(",") : [];
|
|
104
|
+
this.list = this.list.map((e) => {
|
|
105
|
+
const i = t.filter((a) => a.toUpperCase() === e.code.toUpperCase())[0];
|
|
106
|
+
return Object.assign(
|
|
107
|
+
{ ...e },
|
|
108
|
+
{
|
|
109
|
+
refuse: 0,
|
|
110
|
+
allow: !!i
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
edit(s) {
|
|
116
|
+
this.confirmLoading = !0;
|
|
117
|
+
const t = this.fkData.filter((i) => i.id === this.ruleForm.principalidAboutId)[0], e = Object.assign(s, {
|
|
118
|
+
sysDocObjectId: this.recordData.id,
|
|
119
|
+
principalId_AboutId: this.ruleForm.principalidAboutId,
|
|
120
|
+
principalId_AboutTable: t.tableName,
|
|
121
|
+
id: this.record.id
|
|
122
|
+
});
|
|
123
|
+
p(e).then((i) => {
|
|
124
|
+
i.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok", e), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message), this.confirmLoading = !1;
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
add(s) {
|
|
128
|
+
if (this.batchPrincipalid.length > this.multipleLimit) {
|
|
129
|
+
this.$message.error(this.maxTip);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
this.confirmLoading = !0;
|
|
133
|
+
let t = [];
|
|
134
|
+
this.batchPrincipalid.forEach((e, i) => {
|
|
135
|
+
let a = Object.assign({}, s, {
|
|
136
|
+
sysDocObjectId: this.recordData.id,
|
|
137
|
+
principalId_AboutId: e.id,
|
|
138
|
+
principalId_AboutTable: e.tableName
|
|
139
|
+
});
|
|
140
|
+
const r = this.sysDocPermissionAdd(a, i * 100).then((l) => ({ res: l, item: e }));
|
|
141
|
+
t.push(r);
|
|
142
|
+
}), Promise.all(t).then((e) => {
|
|
143
|
+
this.hasRefresh = !0, this.confirmLoading = !1;
|
|
144
|
+
const i = e.filter((o) => !o.res.success);
|
|
145
|
+
if (i.length === 0) {
|
|
146
|
+
this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.closed();
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
let a = [], r = `<p>${this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25")}</<p>`, l = [];
|
|
150
|
+
this.batchPrincipalid.forEach((o) => {
|
|
151
|
+
const c = i.filter((n) => n.item.id === o.id)[0];
|
|
152
|
+
c && (a.push(
|
|
153
|
+
Object.assign({}, o, {
|
|
154
|
+
errTip: c.res.message
|
|
155
|
+
})
|
|
156
|
+
), r += `<p>${o.name} (${c.res.message});</p>`, l.push(o.id));
|
|
157
|
+
}), this.batchPrincipalid = a, this.ruleForm.principalidAboutIdBatch = l, this.$message({
|
|
158
|
+
dangerouslyUseHTMLString: !0,
|
|
159
|
+
message: r,
|
|
160
|
+
type: "error"
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
sysDocPermissionAdd(s, t) {
|
|
165
|
+
return new Promise((e) => {
|
|
166
|
+
setTimeout(() => {
|
|
167
|
+
h(s).then((i) => {
|
|
168
|
+
e(i);
|
|
169
|
+
});
|
|
170
|
+
}, t);
|
|
171
|
+
});
|
|
172
|
+
},
|
|
173
|
+
handleSubmit() {
|
|
174
|
+
this.$refs.ruleForm.validate((s) => {
|
|
175
|
+
if (s) {
|
|
176
|
+
let t = /* @__PURE__ */ new Map();
|
|
177
|
+
this.list.forEach((e) => {
|
|
178
|
+
t.set(e.code, e.allow ? 1 : e.refuse ? 2 : 0);
|
|
179
|
+
}), this.record ? this.edit(Object.fromEntries(t)) : this.add(Object.fromEntries(t));
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
},
|
|
183
|
+
changeAllow(s, t) {
|
|
184
|
+
s && (t.refuse = !1);
|
|
185
|
+
},
|
|
186
|
+
changeRefuse(s, t) {
|
|
187
|
+
s && (t.allow = !1);
|
|
188
|
+
},
|
|
189
|
+
delPrincipalid(s) {
|
|
190
|
+
this.ruleForm.principalidAboutIdBatch = this.ruleForm.principalidAboutIdBatch.filter((t) => t !== s.id), this.getBatchPrincipalid();
|
|
191
|
+
},
|
|
192
|
+
getBatchPrincipalid() {
|
|
193
|
+
let s = [];
|
|
194
|
+
this.fkData.forEach((t) => {
|
|
195
|
+
if (this.ruleForm.principalidAboutIdBatch.includes(t.id)) {
|
|
196
|
+
const e = this.tableLists.filter((i) => i.tablename === t.tableName)[0];
|
|
197
|
+
s.push(
|
|
198
|
+
Object.assign({}, t, {
|
|
199
|
+
tableBusName: e ? e.busname : "--",
|
|
200
|
+
tableTransKey: e ? e.transkey : null,
|
|
201
|
+
errTip: ""
|
|
202
|
+
})
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
}), this.batchPrincipalid = s;
|
|
206
|
+
},
|
|
207
|
+
lookup() {
|
|
208
|
+
const s = this.record ? this.ruleForm.principalidAboutId : this.ruleForm.principalidAboutIdBatch;
|
|
209
|
+
this.$refs.viewSearch.open({
|
|
210
|
+
fkEntityName: this.fkEntityName,
|
|
211
|
+
effectType: this.record ? "about" : "participants",
|
|
212
|
+
val: s
|
|
213
|
+
});
|
|
214
|
+
},
|
|
215
|
+
lookupSeled(s) {
|
|
216
|
+
this.fkData = [...s.fkData], Object.assign(this.ruleForm, {
|
|
217
|
+
principalidAboutId: this.record ? s.data[0] : "",
|
|
218
|
+
principalidAboutIdBatch: this.record ? [] : s.data
|
|
219
|
+
}), this.getBatchPrincipalid();
|
|
220
|
+
},
|
|
221
|
+
searchData(s) {
|
|
222
|
+
this.source && this.source.cancel("Operation canceled by the user.");
|
|
223
|
+
const t = this.fkEntityName.split(",")[0], e = { name: s, fkEntityName: t }, i = this.fkData.filter((a) => a.id === this.ruleForm.principalidAboutId);
|
|
224
|
+
this.loading = !0, this.source = f(), m(e, this.source.token).then((a) => {
|
|
225
|
+
if (this.loading = !1, this.source = null, a.code === 200) {
|
|
226
|
+
a.data.map((l) => (l.tableName = t, l));
|
|
227
|
+
const r = a.data.filter((l) => l.id !== this.ruleForm.principalidAboutId).filter((l) => !this.disabledRowId.includes(l.id));
|
|
228
|
+
this.fkData = i.concat(r);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
},
|
|
232
|
+
open(s) {
|
|
233
|
+
this.record = s, this.visible = !0;
|
|
234
|
+
let t = JSON.parse(JSON.stringify(this.permissionList)).map((e) => Object.assign(e, {
|
|
235
|
+
show: ["createfile", "createsubfolder"].includes(e.code) ? this.recordData.type === 1 : !0
|
|
236
|
+
}));
|
|
237
|
+
if (!s) {
|
|
238
|
+
this.list = t, this.searchData("");
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this.ruleForm = {
|
|
242
|
+
principalidAboutId: s.principalid_aboutid,
|
|
243
|
+
principalidAboutTable: s.principalid_abouttable,
|
|
244
|
+
principalidAboutIdBatch: []
|
|
245
|
+
}, this.list = t.map((e) => {
|
|
246
|
+
const i = s[e.code];
|
|
247
|
+
return Object.assign(e, { allow: i === 1, refuse: i === 2 });
|
|
248
|
+
}), this.fkData = [{ tableName: s.principalid_abouttable, id: s.principalid_aboutid, name: s.principalname }];
|
|
249
|
+
},
|
|
250
|
+
closed() {
|
|
251
|
+
this.hasRefresh && (this.$emit("ok"), this.hasRefresh = !1), this.ruleForm = {
|
|
252
|
+
principalidAboutIdBatch: [],
|
|
253
|
+
principalidAboutId: "",
|
|
254
|
+
principalidAboutTable: ""
|
|
255
|
+
}, this.batchPrincipalid = [], this.fullscreen = !1, this.visible = !1;
|
|
256
|
+
},
|
|
257
|
+
onSelectChange(s, t) {
|
|
258
|
+
this.selectedRowKeys = s, this.selectedRows = t;
|
|
259
|
+
},
|
|
260
|
+
getDictionary(s) {
|
|
261
|
+
return this.$options.filters.dictData(s);
|
|
262
|
+
},
|
|
263
|
+
fadeColor(s, t) {
|
|
264
|
+
let e = parseInt(s.substring(1, 3), 16), i = parseInt(s.substring(3, 5), 16), a = parseInt(s.substring(5, 7), 16);
|
|
265
|
+
return `rgba(${e},${i},${a},${t})`;
|
|
266
|
+
},
|
|
267
|
+
toggleFullscreen() {
|
|
268
|
+
this.fullscreen = !this.fullscreen;
|
|
269
|
+
},
|
|
270
|
+
doEvent(s) {
|
|
271
|
+
let t = s.item.functionName;
|
|
272
|
+
this[t] && this[t]();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
var v = function() {
|
|
277
|
+
var t = this, e = t._self._c;
|
|
278
|
+
return e("div", [e("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: t.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: t.fullscreen, visible: t.visible, width: t.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) {
|
|
279
|
+
t.visible = i;
|
|
280
|
+
}, closed: t.closed } }, [e("gd-modal-title", { attrs: { slot: "title", title: t.title, fullscreen: t.fullscreen, buttons: t.buttons, confirmLoading: t.confirmLoading, showClose: !0 }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen }, slot: "title" }), e("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], style: { "--fadecolor": t.fadeColord } }, [t.visible ? e("el-form", { ref: "ruleForm", staticClass: "gd-form", attrs: { model: t.ruleForm, "label-width": "120px", rules: t.rules }, nativeOn: { submit: function(i) {
|
|
281
|
+
i.preventDefault();
|
|
282
|
+
} } }, [e("el-row", { attrs: { gutter: 24 } }, [e("el-col", { attrs: { span: 12 } }, [t.record ? e("el-form-item", { attrs: { label: t.$i18nt("gd.fileDocument.userGroup", "\u7528\u6237/\u7528\u6237\u7EC4"), prop: "principalidAboutId" } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticClass: "cao_input", attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: t.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": t.searchData, disabled: t.disabled }, model: { value: t.ruleForm.principalidAboutId, callback: function(i) {
|
|
283
|
+
t.$set(t.ruleForm, "principalidAboutId", i);
|
|
284
|
+
}, expression: "ruleForm.principalidAboutId" } }, t._l(t.fkData, function(i) {
|
|
285
|
+
return e("el-option", { key: i.id, attrs: { label: i.name, value: i.id } });
|
|
286
|
+
}), 1), e("div", { staticClass: "cao_setting" }, [e("i", { staticClass: "el-input__icon el-icon-search", on: { click: t.lookup } })])], 1)]) : e("el-form-item", { attrs: { label: t.$i18nt("gd.fileDocument.userGroup", "\u7528\u6237/\u7528\u6237\u7EC4"), prop: "principalidAboutIdBatch" } }, [e("div", { staticClass: "cao_about" }, [e("el-select", { staticClass: "cao_input", attrs: { multiple: "", placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: t.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": t.searchData, "collapse-tags": "", "multiple-limit": t.multipleLimit }, on: { change: t.getBatchPrincipalid }, model: { value: t.ruleForm.principalidAboutIdBatch, callback: function(i) {
|
|
287
|
+
t.$set(t.ruleForm, "principalidAboutIdBatch", i);
|
|
288
|
+
}, expression: "ruleForm.principalidAboutIdBatch" } }, t._l(t.fkData, function(i) {
|
|
289
|
+
return e("el-option", { key: i.id, attrs: { label: i.name, value: i.id } });
|
|
290
|
+
}), 1), e("div", { staticClass: "cao_setting" }, [e("i", { staticClass: "el-input__icon el-icon-search", on: { click: t.lookup } })])], 1)])], 1)], 1)], 1) : t._e(), [t.batchPrincipalid.length > 0 ? e("div", { staticClass: "batch-principalid" }, [t._l(t.batchPrincipalid, function(i) {
|
|
291
|
+
return [e("div", { staticClass: "item" }, [i.errTip ? e("el-tooltip", { attrs: { placement: "top", effect: "dark", content: i.errTip } }, [e("i", { staticClass: "el-icon-warning" })]) : t._e(), e("el-tooltip", { staticClass: "name-tooltip", attrs: { effect: "dark", content: `${i.name} (${t.$i18nt(`Dynamics.${i.tableTransKey}`, i.tableBusName)})`, placement: "top" } }, [e("div", { staticClass: "line1" }, [t._v(" " + t._s(i.name) + " ")])]), e("i", { staticClass: "el-icon-error", on: { click: function(a) {
|
|
292
|
+
return t.delPrincipalid(i);
|
|
293
|
+
} } })], 1)];
|
|
294
|
+
})], 2) : t._e(), t.batchPrincipalid.length > t.multipleLimit ? e("div", { staticClass: "max-tip" }, [t._v(t._s(t.maxTip))]) : t._e()], e("el-divider"), e("div", { staticClass: "list" }, [e("div", { staticClass: "list-item list-label" }, [e("div", { staticClass: "item-name" }, [t._v(t._s(t.$i18nt("gd.page.limitsAuthority", "\u6743\u9650")))]), e("div", { staticClass: "item-hand", staticStyle: { color: "#52c41a" } }, [t._v(t._s(t.$i18nt("gd.page.allow", "\u5141\u8BB8")))]), e("div", { staticClass: "item-hand", staticStyle: { color: "red" } }, [t._v(t._s(t.$i18nt("gd.page.refuse", "\u62D2\u7EDD")))])]), e("div", { staticClass: "list-kuang" }, [t._l(t.list, function(i) {
|
|
295
|
+
return [i.show ? e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name" }, [t._v(" " + t._s(t.$i18nt(i.transkey, i.name)) + " ( "), e("span", { staticClass: "active-color" }, [t._v(t._s(i.code))]), t._v(" ) ")]), e("div", { staticClass: "item-hand" }, [e("el-checkbox", { attrs: { disabled: t.disabled }, on: { change: (a) => t.changeAllow(a, i) }, model: { value: i.allow, callback: function(a) {
|
|
296
|
+
t.$set(i, "allow", a);
|
|
297
|
+
}, expression: "item.allow" } })], 1), e("div", { staticClass: "item-hand" }, [e("el-checkbox", { attrs: { disabled: t.disabled }, on: { change: (a) => t.changeRefuse(a, i) }, model: { value: i.refuse, callback: function(a) {
|
|
298
|
+
t.$set(i, "refuse", a);
|
|
299
|
+
}, expression: "item.refuse" } })], 1)]) : t._e()];
|
|
300
|
+
})], 2)]), t.docacltemList.length > 0 ? e("div", { staticClass: "list" }, [e("el-alert", { staticStyle: { "border-radius": "6px 6px 0 0" }, attrs: { "show-icon": "", title: t.$i18nt("gd.fileDocument.quicklyPermission", "\u5FEB\u901F\u9009\u62E9\u6743\u9650\u6A21\u5757"), type: "info", effect: "dark", closable: !1 } }), e("div", { staticClass: "list-kuang" }, [e("div", { staticClass: "list-dict" }, [t._l(t.docacltemList, function(i) {
|
|
301
|
+
return [e("div", { staticClass: "dict-item" }, [e("div", { staticClass: "item-name gdhvr-float-shadow", style: i.bjcolor, on: { click: function(a) {
|
|
302
|
+
return t.selDocacltem(i);
|
|
303
|
+
} } }, [t._v(" " + t._s(t.$i18nt(`Dynamics.${i.transkey}`, i.name)) + " ")])])];
|
|
304
|
+
})], 2)])], 1) : t._e()], 2)], 1), e("gd-search", { ref: "viewSearch", attrs: { appendToBody: !0, disabledRowId: t.disabledRowId }, on: { lookupSeled: t.lookupSeled } })], 1);
|
|
305
|
+
}, _ = [], k = /* @__PURE__ */ u(
|
|
306
|
+
g,
|
|
307
|
+
v,
|
|
308
|
+
_,
|
|
309
|
+
!1,
|
|
310
|
+
null,
|
|
311
|
+
"3dfe1cdc",
|
|
312
|
+
null,
|
|
313
|
+
null
|
|
314
|
+
);
|
|
315
|
+
const B = k.exports;
|
|
316
|
+
export {
|
|
317
|
+
B as default
|
|
318
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./components.chartbi.6c030f0f.js"),n=require("./http.filedocument.c0336daf.js"),p=require("./http.main.6af4594d.js"),h=require("./utils.axios.js.69442e57.js"),f=require("./system.document.3abdc3dd.js");require("./utils.echarts.js.461a74e7.js");require("./utils.util.js.c0ba699b.js");require("./utils.mixins.js.750ca50e.js");require("./utils.concurrencyrequest.js.cf116d0c.js");require("./http.tabledevelopment.a880bb76.js");const m={props:{recordData:{type:Object,defalt:()=>{}},allIds:{type:Array,defalt:()=>[]},multipleLimit:{type:Number,default:12}},data(){return{ruleForm:{principalidAboutId:"",principalidAboutTable:"",principalidAboutIdBatch:[],isInherit:!1},rules:{principalidAboutId:[{required:!0,message:this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),trigger:["change","blur"]}],principalidAboutIdBatch:[{required:!0,message:this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),trigger:["change","blur"]}]},record:null,width:"800px",confirmLoading:!1,visible:!1,fullscreen:!1,loading:!1,hasRefresh:!1,fkData:[],fkEntityName:"sys_user,sys_team",list:[],batchPrincipalid:[],permissionList:f.permissionList,source:null}},computed:{maxTip(){return`${this.$i18nt("gd.https.exceedMaxiNumber","\u8D85\u8FC7\u6279\u91CF\u63D0\u4EA4\u6700\u5927\u6570")} :${this.multipleLimit}`},docacltemList(){const s=this.getDictionary("docacltem");return(s||[]).map(e=>Object.assign(e,{bjcolor:e.colour?`background:${e.colour};color:#fff;`:""}))},title(){return this.record?this.$i18nt("gd.btn.edit","\u7F16\u8F91"):this.$i18nt("gd.btn.add","\u65B0\u589E")},fadeColord(){return this.fadeColor(this.primaryColor,.1)},disabledRowId(){return this.record?this.allIds.filter(s=>s!==this.record.principalid_aboutid):this.allIds},disabled(){return!!(this.record&&this.record.isinherit)},buttons(){return this.disabled?[]:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]},...d.mapGetters(["primaryColor","tableLists"])},methods:{selDocacltem(s){const t=s.remark?s.remark.split(","):[];this.list=this.list.map(e=>{const i=t.filter(a=>a.toUpperCase()===e.code.toUpperCase())[0];return Object.assign({...e},{refuse:0,allow:!!i})})},edit(s){this.confirmLoading=!0;const t=this.fkData.filter(i=>i.id===this.ruleForm.principalidAboutId)[0],e=Object.assign(s,{sysDocObjectId:this.recordData.id,principalId_AboutId:this.ruleForm.principalidAboutId,principalId_AboutTable:t.tableName,id:this.record.id});n.sysDocPermissionEdit(e).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok",e),this.closed()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.confirmLoading=!1})},add(s){if(this.batchPrincipalid.length>this.multipleLimit){this.$message.error(this.maxTip);return}this.confirmLoading=!0;let t=[];this.batchPrincipalid.forEach((e,i)=>{let a=Object.assign({},s,{sysDocObjectId:this.recordData.id,principalId_AboutId:e.id,principalId_AboutTable:e.tableName});const r=this.sysDocPermissionAdd(a,i*100).then(l=>({res:l,item:e}));t.push(r)}),Promise.all(t).then(e=>{this.hasRefresh=!0,this.confirmLoading=!1;const i=e.filter(c=>!c.res.success);if(i.length===0){this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed();return}let a=[],r=`<p>${this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")}</<p>`,l=[];this.batchPrincipalid.forEach(c=>{const o=i.filter(u=>u.item.id===c.id)[0];o&&(a.push(Object.assign({},c,{errTip:o.res.message})),r+=`<p>${c.name} (${o.res.message});</p>`,l.push(c.id))}),this.batchPrincipalid=a,this.ruleForm.principalidAboutIdBatch=l,this.$message({dangerouslyUseHTMLString:!0,message:r,type:"error"})})},sysDocPermissionAdd(s,t){return new Promise(e=>{setTimeout(()=>{n.sysDocPermissionAdd(s).then(i=>{e(i)})},t)})},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){let t=new Map;this.list.forEach(e=>{t.set(e.code,e.allow?1:e.refuse?2:0)}),this.record?this.edit(Object.fromEntries(t)):this.add(Object.fromEntries(t))}})},changeAllow(s,t){s&&(t.refuse=!1)},changeRefuse(s,t){s&&(t.allow=!1)},delPrincipalid(s){this.ruleForm.principalidAboutIdBatch=this.ruleForm.principalidAboutIdBatch.filter(t=>t!==s.id),this.getBatchPrincipalid()},getBatchPrincipalid(){let s=[];this.fkData.forEach(t=>{if(this.ruleForm.principalidAboutIdBatch.includes(t.id)){const e=this.tableLists.filter(i=>i.tablename===t.tableName)[0];s.push(Object.assign({},t,{tableBusName:e?e.busname:"--",tableTransKey:e?e.transkey:null,errTip:""}))}}),this.batchPrincipalid=s},lookup(){const s=this.record?this.ruleForm.principalidAboutId:this.ruleForm.principalidAboutIdBatch;this.$refs.viewSearch.open({fkEntityName:this.fkEntityName,effectType:this.record?"about":"participants",val:s})},lookupSeled(s){this.fkData=[...s.fkData],Object.assign(this.ruleForm,{principalidAboutId:this.record?s.data[0]:"",principalidAboutIdBatch:this.record?[]:s.data}),this.getBatchPrincipalid()},searchData(s){this.source&&this.source.cancel("Operation canceled by the user.");const t=this.fkEntityName.split(",")[0],e={name:s,fkEntityName:t},i=this.fkData.filter(a=>a.id===this.ruleForm.principalidAboutId);this.loading=!0,this.source=h.getCancelToken(),p.baseFkList(e,this.source.token).then(a=>{if(this.loading=!1,this.source=null,a.code===200){a.data.map(l=>(l.tableName=t,l));const r=a.data.filter(l=>l.id!==this.ruleForm.principalidAboutId).filter(l=>!this.disabledRowId.includes(l.id));this.fkData=i.concat(r)}})},open(s){this.record=s,this.visible=!0;let t=JSON.parse(JSON.stringify(this.permissionList)).map(e=>Object.assign(e,{show:["createfile","createsubfolder"].includes(e.code)?this.recordData.type===1:!0}));if(!s){this.list=t,this.searchData("");return}this.ruleForm={principalidAboutId:s.principalid_aboutid,principalidAboutTable:s.principalid_abouttable,principalidAboutIdBatch:[]},this.list=t.map(e=>{const i=s[e.code];return Object.assign(e,{allow:i===1,refuse:i===2})}),this.fkData=[{tableName:s.principalid_abouttable,id:s.principalid_aboutid,name:s.principalname}]},closed(){this.hasRefresh&&(this.$emit("ok"),this.hasRefresh=!1),this.ruleForm={principalidAboutIdBatch:[],principalidAboutId:"",principalidAboutTable:""},this.batchPrincipalid=[],this.fullscreen=!1,this.visible=!1},onSelectChange(s,t){this.selectedRowKeys=s,this.selectedRows=t},getDictionary(s){return this.$options.filters.dictData(s)},fadeColor(s,t){let e=parseInt(s.substring(1,3),16),i=parseInt(s.substring(3,5),16),a=parseInt(s.substring(5,7),16);return`rgba(${e},${i},${a},${t})`},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){let t=s.item.functionName;this[t]&&this[t]()}}};var b=function(){var t=this,e=t._self._c;return e("div",[e("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.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){t.visible=i},closed:t.closed}},[e("gd-modal-title",{attrs:{slot:"title",title:t.title,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen},slot:"title"}),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],style:{"--fadecolor":t.fadeColord}},[t.visible?e("el-form",{ref:"ruleForm",staticClass:"gd-form",attrs:{model:t.ruleForm,"label-width":"120px",rules:t.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:12}},[t.record?e("el-form-item",{attrs:{label:t.$i18nt("gd.fileDocument.userGroup","\u7528\u6237/\u7528\u6237\u7EC4"),prop:"principalidAboutId"}},[e("div",{staticClass:"cao_about"},[e("el-select",{staticClass:"cao_input",attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":t.searchData,disabled:t.disabled},model:{value:t.ruleForm.principalidAboutId,callback:function(i){t.$set(t.ruleForm,"principalidAboutId",i)},expression:"ruleForm.principalidAboutId"}},t._l(t.fkData,function(i){return e("el-option",{key:i.id,attrs:{label:i.name,value:i.id}})}),1),e("div",{staticClass:"cao_setting"},[e("i",{staticClass:"el-input__icon el-icon-search",on:{click:t.lookup}})])],1)]):e("el-form-item",{attrs:{label:t.$i18nt("gd.fileDocument.userGroup","\u7528\u6237/\u7528\u6237\u7EC4"),prop:"principalidAboutIdBatch"}},[e("div",{staticClass:"cao_about"},[e("el-select",{staticClass:"cao_input",attrs:{multiple:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":t.searchData,"collapse-tags":"","multiple-limit":t.multipleLimit},on:{change:t.getBatchPrincipalid},model:{value:t.ruleForm.principalidAboutIdBatch,callback:function(i){t.$set(t.ruleForm,"principalidAboutIdBatch",i)},expression:"ruleForm.principalidAboutIdBatch"}},t._l(t.fkData,function(i){return e("el-option",{key:i.id,attrs:{label:i.name,value:i.id}})}),1),e("div",{staticClass:"cao_setting"},[e("i",{staticClass:"el-input__icon el-icon-search",on:{click:t.lookup}})])],1)])],1)],1)],1):t._e(),[t.batchPrincipalid.length>0?e("div",{staticClass:"batch-principalid"},[t._l(t.batchPrincipalid,function(i){return[e("div",{staticClass:"item"},[i.errTip?e("el-tooltip",{attrs:{placement:"top",effect:"dark",content:i.errTip}},[e("i",{staticClass:"el-icon-warning"})]):t._e(),e("el-tooltip",{staticClass:"name-tooltip",attrs:{effect:"dark",content:`${i.name} (${t.$i18nt(`Dynamics.${i.tableTransKey}`,i.tableBusName)})`,placement:"top"}},[e("div",{staticClass:"line1"},[t._v(" "+t._s(i.name)+" ")])]),e("i",{staticClass:"el-icon-error",on:{click:function(a){return t.delPrincipalid(i)}}})],1)]})],2):t._e(),t.batchPrincipalid.length>t.multipleLimit?e("div",{staticClass:"max-tip"},[t._v(t._s(t.maxTip))]):t._e()],e("el-divider"),e("div",{staticClass:"list"},[e("div",{staticClass:"list-item list-label"},[e("div",{staticClass:"item-name"},[t._v(t._s(t.$i18nt("gd.page.limitsAuthority","\u6743\u9650")))]),e("div",{staticClass:"item-hand",staticStyle:{color:"#52c41a"}},[t._v(t._s(t.$i18nt("gd.page.allow","\u5141\u8BB8")))]),e("div",{staticClass:"item-hand",staticStyle:{color:"red"}},[t._v(t._s(t.$i18nt("gd.page.refuse","\u62D2\u7EDD")))])]),e("div",{staticClass:"list-kuang"},[t._l(t.list,function(i){return[i.show?e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name"},[t._v(" "+t._s(t.$i18nt(i.transkey,i.name))+" ( "),e("span",{staticClass:"active-color"},[t._v(t._s(i.code))]),t._v(" ) ")]),e("div",{staticClass:"item-hand"},[e("el-checkbox",{attrs:{disabled:t.disabled},on:{change:a=>t.changeAllow(a,i)},model:{value:i.allow,callback:function(a){t.$set(i,"allow",a)},expression:"item.allow"}})],1),e("div",{staticClass:"item-hand"},[e("el-checkbox",{attrs:{disabled:t.disabled},on:{change:a=>t.changeRefuse(a,i)},model:{value:i.refuse,callback:function(a){t.$set(i,"refuse",a)},expression:"item.refuse"}})],1)]):t._e()]})],2)]),t.docacltemList.length>0?e("div",{staticClass:"list"},[e("el-alert",{staticStyle:{"border-radius":"6px 6px 0 0"},attrs:{"show-icon":"",title:t.$i18nt("gd.fileDocument.quicklyPermission","\u5FEB\u901F\u9009\u62E9\u6743\u9650\u6A21\u5757"),type:"info",effect:"dark",closable:!1}}),e("div",{staticClass:"list-kuang"},[e("div",{staticClass:"list-dict"},[t._l(t.docacltemList,function(i){return[e("div",{staticClass:"dict-item"},[e("div",{staticClass:"item-name gdhvr-float-shadow",style:i.bjcolor,on:{click:function(a){return t.selDocacltem(i)}}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${i.transkey}`,i.name))+" ")])])]})],2)])],1):t._e()],2)],1),e("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0,disabledRowId:t.disabledRowId},on:{lookupSeled:t.lookupSeled}})],1)},g=[],v=d.normalizeComponent(m,b,g,!1,null,"3dfe1cdc",null,null);const _=v.exports;exports.default=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./http.filedocument.c0336daf.js"),n=require("./system.document.3abdc3dd.js"),o=require("./components.chartbi.6c030f0f.js");require("./utils.util.js.c0ba699b.js");require("./utils.mixins.js.750ca50e.js");require("./utils.concurrencyrequest.js.cf116d0c.js");require("./http.tabledevelopment.a880bb76.js");require("./utils.echarts.js.461a74e7.js");const v={props:{treeData:{type:Array,default:()=>[]},fileAccept:{type:String,default:""},fileSize:{type:Number,default:1024}},data(){return{maxLeg:5,type:2,record:{},statu:!1,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u5237\u65B0",functionName:"init",show:!0,transKey:"gd.basics.refresh",icon:"el-icon-refresh"}],permissionMenus:[],attributesList:[],permissionData:{},docTypeList:[],docTypeData:{},activeName:"attribute"}},components:{ExtendedAttributes:()=>Promise.resolve().then(()=>require("./extendedAttributes.2bae1c67.js"))},computed:{hasRename(){return this.permissionData.rename===1},docTypeName(){const i=this.record.sysdoctypeid?this.record.sysdoctypeid:"",t=this.docTypeList.filter(e=>e.id===i)[0];return t?this.$i18nt(`Dynamics.${t.transkey}`,t.name):""},title(){return this.record.name},getHeight(){const i=this.fullscreen?206:380;return this.screenHeight-i},pathAddress(){let i="";return this.record.path===void 0||(this.record.path.split(".").forEach(e=>{const s=this.treeData.filter(r=>r.id===Number(e))[0];i+=s&&e!=="0"?`/${s.name}`:""}),this.record.type!==1&&(i+=`/${this.record.name}`)),i},fileIcon(){return n.getIcon(this.record)},fileType(){const t=this.getDictionary("sys_doc_objects_type").filter(e=>e.code==this.record.type)[0];return t?this.$i18nt(`Dynamics.${t.transkey}`,t.name):this.record.type},recordFileSize(){if(this.record.type===1)return 0;const i=this.record.filesize?this.record.filesize:0;return this.getFilSize(i)},timeLongshort(){return this.getDictionary("time_longshort")},...o.mapGetters(["primaryColor","tablePageSize","tableSize","screenHeight","tableLists"])},methods:{editExtendedAttributes(){this.$refs.extendedAttributes.open(this.record)},seeFkItem(i){const t=this.tableLists.filter(r=>r.tablename===i.fkentity)[0];this.statu=!0;let e={tableId:t.id,data:[{id:i.fkId}]};const s=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init(e).then(r=>{setTimeout(()=>{this.statu=!1},1e3),s.close()})},getFilSize(i){let t=i/1024;return t<1024?`${Math.ceil(t)}K`:`${(i/1024/1024).toFixed(2)}M`},getFieldFormat(i){if(!["datepicker"].includes(i.datatype))return"";const t=this.timeLongshort.filter(e=>String(e.code)===String(i.fieldformat))[0];return t?t.name.replace("DD","dd"):"yyyy-MM-dd HH:mm:ss"},init(){this.confirmLoading=!0,Promise.all([this.getDetail(),this.getRootPermission(),this.getDocTypePage()]).then(i=>{let t=[];const e=this.record.attributes?this.record.attributes:[],s=this.docTypeList.filter(a=>a.id===this.record.sysdoctypeid)[0];this.docTypeData=s||{},(s?s.sysdoctypeattributes:[]).forEach(a=>{if(a.ishidden!==1){const l=e.filter(m=>m.attrcode===a.attrcode)[0];let d={name:a.name,code:a.attrcode,fkName:"",effectType:a.datatype,dictTypeCode:a.dicttypecode,fieldFormat:this.getFieldFormat(a),transkey:a.transkey?`Dynamics.${a.transkey}`:null,value:"",fieldsize:a.fieldsize,fkentity:a.fkentity,statecodes:a.statecodes};l&&Object.assign(d,{fkName:l.attrname?l.attrname:l.attrvalue,fkId:["fk"].includes(a.datatype)?l.attrvalue:"",value:this.getDefaultvalue(a,l.attrvalue)}),t.push(d)}}),this.attributesList=[...t],this.activeName==="version"&&this.refresh(),this.confirmLoading=!1})},getDefaultvalue(i,t){return["checkbox"].includes(i.datatype)?t.split(","):["double","currency"].includes(i.datatype)?t&&Number(t).toFixed(i.fieldsize):t},open(i){this.type=i.type,this.activeName="attribute",this.record=i,this.visible=!0,this.init()},getDocTypePage(){c.sysDocTypePage({pageno:1,pagesize:1e3}).then(i=>{i.code===200&&(this.docTypeList=i.data.rows)})},getDetail(){return c.sysDocObjectsGetById({id:this.record.id}).then(i=>(i.code!==200||(this.record=i.data),i))},getRootPermission(){return c.getUserDocPrivs({docId:this.record.id}).then(i=>{let t={};i.code===200?t=i.data:this.$message.error(i.message),this.permissionData=t;const e=n.permissionList.filter(s=>s.type.includes(this.record.type));return this.permissionMenus=e.map(s=>{const r=t[s.code];return Object.assign({...s},{allow:r!==void 0?r===1:!1,refuse:r!==void 0?r===2:!1})}),i})},getBlobType(i){let t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";return i==="pdf"?t="application/pdf":i==="docx"&&(t="application/msword"),t},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var u=function(){var t=this,e=t._self._c;return e("div",[e("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:"700px",center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1,"destroy-on-close":!0},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[e("gd-modal-title",{attrs:{slot:"title",title:t.title,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen},slot:"title"}),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-doc-attribute"},[t.visible?e("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(s){t.activeName=s},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:t.$i18nt("gd.fileDocument.properties","\u6587\u6863\u5C5E\u6027"),name:"attribute"}},[e("div",{staticClass:"attribute",staticStyle:{"margin-top":"10px"}},[e("div",{staticClass:"attribute-item"},[e("div",{staticClass:"list"},[e("div",{staticClass:"list-item list-label"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.form.attribute","\u5C5E\u6027")))]),e("div",{staticClass:"item-val"},[t._v(t._s(t.$i18nt("gd.form.value","\u503C")))])]),e("div",{staticClass:"list-kuang"},[e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.translation.name","\u540D\u79F0")))]),e("div",{staticClass:"item-val line1",attrs:{title:t.record.name}},[t._v(t._s(t.record.name))])]),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.fileDocument.pathAddress","\u8DEF\u5F84\u5730\u5740")))]),e("div",{staticClass:"item-val line1",attrs:{title:t.pathAddress}},[t._v(t._s(t.pathAddress))])]),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.file.fileAccept","\u6587\u4EF6\u7C7B\u578B")))]),e("div",{staticClass:"item-val"},[e("i",{staticClass:"gd-icons",class:t.fileIcon})])]),t.record.filesize?[e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.file.fileSize","\u6587\u4EF6\u5927\u5C0F")))]),e("div",{staticClass:"item-val",attrs:{title:t.recordFileSize}},[t._v(t._s(t.recordFileSize))])]),t.record.version!==void 0?e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.fileDocument.currentVersion","\u5F53\u524D\u7248\u672C")))]),e("div",{staticClass:"item-val",attrs:{title:t.record.version}},[t._v(t._s(t.record.version))])]):t._e(),t.record.iseffectiveness!==void 0?e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.fileDocument.iseffectiveness","\u6709\u6548")))]),e("div",{staticClass:"item-val"},[e("el-tag",{style:t._f("dictColor")("yes_or_no",t.record.iseffectiveness),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("yes_or_no",t.record.iseffectiveness))+" ")])],1)]):t._e(),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.fileDocument.classification","\u6587\u6863\u5206\u7C7B")))]),e("div",{staticClass:"item-val",attrs:{title:t.docTypeName}},[t._v(t._s(t.docTypeName))])])]:t._e(),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.fileDocument.inheritedPermissions","\u7EE7\u627F\u6743\u9650")))]),e("div",{staticClass:"item-val",attrs:{title:t._f("dictType")("yes_or_no",t.record.inheritpermissions)}},[e("el-tag",{style:t._f("dictColor")("yes_or_no",t.record.inheritpermissions),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("yes_or_no",t.record.inheritpermissions))+" ")])],1)]),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.fileDocument.uploadTime","\u6700\u540E\u4E0A\u4F20\u65F6\u95F4")))]),e("div",{staticClass:"item-val",attrs:{title:t.record.uploaddate}},[t._v(t._s(t.record.uploaddate))])]),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.fileDocument.mdifyUser","\u4FEE\u6539\u7528\u6237")))]),e("div",{staticClass:"item-val",attrs:{title:t.record.updatedbyname}},[t._v(t._s(t.record.updatedbyname?t.record.updatedbyname:""))])]),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.web.updatedTime","\u4FEE\u6539\u65F6\u95F4")))]),e("div",{staticClass:"item-val",attrs:{title:t.record.updatedtime}},[t._v(t._s(t.record.updatedtime))])]),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.fileDocument.createUser","\u521B\u5EFA\u7528\u6237")))]),e("div",{staticClass:"item-val",attrs:{title:t.record.createdbyname}},[t._v(t._s(t.record.createdbyname?t.record.createdbyname:""))])]),e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.web.creationTime","\u521B\u5EFA\u65F6\u95F4")))]),e("div",{staticClass:"item-val",attrs:{title:t.record.createdtime}},[t._v(t._s(t.record.createdtime))])])],2)])])])]),t.type===2?e("el-tab-pane",{attrs:{label:t.$i18nt("gd.fileDocument.extendedAttributes","\u6269\u5C55\u5C5E\u6027"),name:"extendedAttributes"}},[e("div",{staticClass:"attribute"},[t.type===2?e("div",{staticClass:"attribute-item"},[e("div",{staticClass:"list-title list-title-flex"},[e("div",{staticClass:"list-title-name"}),t.hasRename&&t.docTypeData.statecodes===1&&t.attributesList.length>0?e("div",{staticClass:"list-title-edit active-color",on:{click:t.editExtendedAttributes}},[e("i",{staticClass:"el-icon-edit-outline active-color"}),t._v(" "+t._s(t.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")]):t._e()]),e("div",{staticClass:"list"},[e("div",{staticClass:"list-item list-label"},[e("div",{staticClass:"item-name item-names"},[t._v(t._s(t.$i18nt("gd.form.attribute","\u5C5E\u6027")))]),e("div",{staticClass:"item-val"},[t._v(" "+t._s(t.$i18nt("gd.form.value","\u503C"))+" ")])]),t.attributesList.length>0?e("div",{staticClass:"list-kuang"},t._l(t.attributesList,function(s){return e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name item-names"},[t._v(" "+t._s(t.$i18nt(s.transkey,s.name))+" ")]),["radio","select","switch"].includes(s.effectType)?e("div",{staticClass:"item-val line1",attrs:{title:t._f("dictType")(s.dictTypeCode,s.value)}},[e("el-tag",{style:t._f("dictColor")(s.dictTypeCode,s.value),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")(s.dictTypeCode,s.value))+" ")])],1):["datepicker"].includes(s.effectType)?e("div",{staticClass:"item-val line1",attrs:{title:t._f("formatTime")(s.value,s.fieldFormat)}},[t._v(" "+t._s(t._f("formatTime")(s.value,s.fieldFormat))+" ")]):["checkbox"].includes(s.effectType)?e("div",{staticClass:"item-val line1"},[t._l(s.value,function(r,a){return[a<t.maxLeg?e("el-tag",{style:t._f("dictColor")(s.dictTypeCode,r),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")(s.dictTypeCode,r))+" ")]):t._e(),a===t.maxLeg?e("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{effect:"dark",placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._l(s.value,function(l,d){return[d>=t.maxLeg?e("span",{staticStyle:{"padding-right":"4px"}},[t._v(t._s(t._f("dictType")(s.dictTypeCode,l)))]):t._e()]})],2),e("el-tag",{staticStyle:{"background-color":"#fff","border-color":"#dcdfe2",color:"rgba(0, 0, 0, 0.65)"},attrs:{effect:"dark"}},[t._v(" ... ")])],1):t._e()]})],2):["fk"].includes(s.effectType)?e("div",{staticClass:"item-val line1",attrs:{title:s.fkName}},[s.fkId?e("span",{staticClass:"active-color",on:{click:function(r){return t.seeFkItem(s)}}},[t._v(t._s(s.fkName))]):t._e()]):e("div",{staticClass:"item-val line1",attrs:{title:s.value}},[t._v(t._s(s.value))])])}),0):e("div",{staticClass:"empty"},[e("div",{staticClass:"empty-icon"},[e("i",{staticClass:"el-icon-receiving"})]),e("div",{staticClass:"empty-title"},[e("span",[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])])]):t._e()])]):t._e(),e("el-tab-pane",{attrs:{label:t.$i18nt("gd.page.limitsAuthority","\u6743\u9650"),name:"permission"}},[e("div",{staticClass:"list",staticStyle:{"margin-top":"12px"}},[e("div",{staticClass:"list-item list-label"},[e("div",{staticClass:"item-name"},[t._v(t._s(t.$i18nt("gd.page.limitsAuthority","\u6743\u9650")))]),e("div",{staticClass:"item-hand"},[t._v(t._s(t.$i18nt("gd.fileDocument.allow","\u5141\u8BB8")))]),e("div",{staticClass:"item-hand"},[t._v(t._s(t.$i18nt("gd.fileDocument.refuse","\u62D2\u7EDD")))])]),e("div",{staticClass:"list-kuang"},[t._l(t.permissionMenus,function(s){return[s.show?e("div",{staticClass:"list-item"},[e("div",{staticClass:"item-name"},[t._v(" "+t._s(t.$i18nt(s.transkey,s.name))+" ("+t._s(s.code)+") ")]),e("div",{staticClass:"item-hand"},[s.allow?e("i",{staticClass:"el-icon-check",staticStyle:{color:"#52c41a"}}):t._e()]),e("div",{staticClass:"item-hand"},[s.refuse?e("i",{staticClass:"el-icon-close",staticStyle:{color:"red"}}):t._e()])]):t._e()]})],2)])])],1):t._e()],1)],1),e("ExtendedAttributes",{ref:"extendedAttributes",on:{ok:t.init}}),e("gd-middleware",{ref:"middleware",on:{ok:t.init}})],1)},f=[],p=o.normalizeComponent(v,u,f,!1,null,"c4a2af33",null,null);const _=p.exports;exports.default=_;
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { g as c, C as o, r as m } from "./http.filedocument.d34b2ab9.mjs";
|
|
2
|
+
import { b as v, p as f } from "./system.document.e3488436.mjs";
|
|
3
|
+
import { m as u, n as p } from "./components.chartbi.6ee50371.mjs";
|
|
4
|
+
import "./utils.util.js.333daba2.mjs";
|
|
5
|
+
import "./utils.mixins.js.be01e599.mjs";
|
|
6
|
+
import "./utils.concurrencyrequest.js.3b4cb0a8.mjs";
|
|
7
|
+
import "./http.tabledevelopment.de861b92.mjs";
|
|
8
|
+
import "./utils.echarts.js.d1bb8ac6.mjs";
|
|
9
|
+
const _ = {
|
|
10
|
+
props: {
|
|
11
|
+
treeData: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => []
|
|
14
|
+
},
|
|
15
|
+
fileAccept: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
fileSize: {
|
|
20
|
+
type: Number,
|
|
21
|
+
default: 1024
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
maxLeg: 5,
|
|
27
|
+
type: 2,
|
|
28
|
+
record: {},
|
|
29
|
+
statu: !1,
|
|
30
|
+
confirmLoading: !1,
|
|
31
|
+
visible: !1,
|
|
32
|
+
fullscreen: !1,
|
|
33
|
+
buttons: [
|
|
34
|
+
{
|
|
35
|
+
displayName: "\u5237\u65B0",
|
|
36
|
+
functionName: "init",
|
|
37
|
+
show: !0,
|
|
38
|
+
transKey: "gd.basics.refresh",
|
|
39
|
+
icon: "el-icon-refresh"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
permissionMenus: [],
|
|
43
|
+
attributesList: [],
|
|
44
|
+
permissionData: {},
|
|
45
|
+
docTypeList: [],
|
|
46
|
+
docTypeData: {},
|
|
47
|
+
activeName: "attribute"
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
components: {
|
|
51
|
+
ExtendedAttributes: () => import("./extendedAttributes.f3511188.mjs")
|
|
52
|
+
},
|
|
53
|
+
computed: {
|
|
54
|
+
hasRename() {
|
|
55
|
+
return this.permissionData.rename === 1;
|
|
56
|
+
},
|
|
57
|
+
docTypeName() {
|
|
58
|
+
const s = this.record.sysdoctypeid ? this.record.sysdoctypeid : "", t = this.docTypeList.filter((e) => e.id === s)[0];
|
|
59
|
+
return t ? this.$i18nt(`Dynamics.${t.transkey}`, t.name) : "";
|
|
60
|
+
},
|
|
61
|
+
title() {
|
|
62
|
+
return this.record.name;
|
|
63
|
+
},
|
|
64
|
+
getHeight() {
|
|
65
|
+
const s = this.fullscreen ? 206 : 380;
|
|
66
|
+
return this.screenHeight - s;
|
|
67
|
+
},
|
|
68
|
+
pathAddress() {
|
|
69
|
+
let s = "";
|
|
70
|
+
return this.record.path === void 0 || (this.record.path.split(".").forEach((e) => {
|
|
71
|
+
const i = this.treeData.filter((r) => r.id === Number(e))[0];
|
|
72
|
+
s += i && e !== "0" ? `/${i.name}` : "";
|
|
73
|
+
}), this.record.type !== 1 && (s += `/${this.record.name}`)), s;
|
|
74
|
+
},
|
|
75
|
+
fileIcon() {
|
|
76
|
+
return v(this.record);
|
|
77
|
+
},
|
|
78
|
+
fileType() {
|
|
79
|
+
const t = this.getDictionary("sys_doc_objects_type").filter((e) => e.code == this.record.type)[0];
|
|
80
|
+
return t ? this.$i18nt(`Dynamics.${t.transkey}`, t.name) : this.record.type;
|
|
81
|
+
},
|
|
82
|
+
recordFileSize() {
|
|
83
|
+
if (this.record.type === 1)
|
|
84
|
+
return 0;
|
|
85
|
+
const s = this.record.filesize ? this.record.filesize : 0;
|
|
86
|
+
return this.getFilSize(s);
|
|
87
|
+
},
|
|
88
|
+
timeLongshort() {
|
|
89
|
+
return this.getDictionary("time_longshort");
|
|
90
|
+
},
|
|
91
|
+
...u(["primaryColor", "tablePageSize", "tableSize", "screenHeight", "tableLists"])
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
editExtendedAttributes() {
|
|
95
|
+
this.$refs.extendedAttributes.open(this.record);
|
|
96
|
+
},
|
|
97
|
+
seeFkItem(s) {
|
|
98
|
+
const t = this.tableLists.filter((r) => r.tablename === s.fkentity)[0];
|
|
99
|
+
this.statu = !0;
|
|
100
|
+
let e = {
|
|
101
|
+
tableId: t.id,
|
|
102
|
+
data: [
|
|
103
|
+
{
|
|
104
|
+
id: s.fkId
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
};
|
|
108
|
+
const i = this.$message({
|
|
109
|
+
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
110
|
+
duration: 0,
|
|
111
|
+
iconClass: "el-icon-loading"
|
|
112
|
+
});
|
|
113
|
+
this.$refs.middleware.init(e).then((r) => {
|
|
114
|
+
setTimeout(() => {
|
|
115
|
+
this.statu = !1;
|
|
116
|
+
}, 1e3), i.close();
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
getFilSize(s) {
|
|
120
|
+
let t = s / 1024;
|
|
121
|
+
return t < 1024 ? `${Math.ceil(t)}K` : `${(s / 1024 / 1024).toFixed(2)}M`;
|
|
122
|
+
},
|
|
123
|
+
getFieldFormat(s) {
|
|
124
|
+
if (!["datepicker"].includes(s.datatype))
|
|
125
|
+
return "";
|
|
126
|
+
const t = this.timeLongshort.filter((e) => String(e.code) === String(s.fieldformat))[0];
|
|
127
|
+
return t ? t.name.replace("DD", "dd") : "yyyy-MM-dd HH:mm:ss";
|
|
128
|
+
},
|
|
129
|
+
init() {
|
|
130
|
+
this.confirmLoading = !0, Promise.all([this.getDetail(), this.getRootPermission(), this.getDocTypePage()]).then((s) => {
|
|
131
|
+
let t = [];
|
|
132
|
+
const e = this.record.attributes ? this.record.attributes : [], i = this.docTypeList.filter((a) => a.id === this.record.sysdoctypeid)[0];
|
|
133
|
+
this.docTypeData = i || {}, (i ? i.sysdoctypeattributes : []).forEach((a) => {
|
|
134
|
+
if (a.ishidden !== 1) {
|
|
135
|
+
const l = e.filter((n) => n.attrcode === a.attrcode)[0];
|
|
136
|
+
let d = {
|
|
137
|
+
name: a.name,
|
|
138
|
+
code: a.attrcode,
|
|
139
|
+
fkName: "",
|
|
140
|
+
effectType: a.datatype,
|
|
141
|
+
dictTypeCode: a.dicttypecode,
|
|
142
|
+
fieldFormat: this.getFieldFormat(a),
|
|
143
|
+
transkey: a.transkey ? `Dynamics.${a.transkey}` : null,
|
|
144
|
+
value: "",
|
|
145
|
+
fieldsize: a.fieldsize,
|
|
146
|
+
fkentity: a.fkentity,
|
|
147
|
+
statecodes: a.statecodes
|
|
148
|
+
};
|
|
149
|
+
l && Object.assign(d, {
|
|
150
|
+
fkName: l.attrname ? l.attrname : l.attrvalue,
|
|
151
|
+
fkId: ["fk"].includes(a.datatype) ? l.attrvalue : "",
|
|
152
|
+
value: this.getDefaultvalue(a, l.attrvalue)
|
|
153
|
+
}), t.push(d);
|
|
154
|
+
}
|
|
155
|
+
}), this.attributesList = [...t], this.activeName === "version" && this.refresh(), this.confirmLoading = !1;
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
getDefaultvalue(s, t) {
|
|
159
|
+
return ["checkbox"].includes(s.datatype) ? t.split(",") : ["double", "currency"].includes(s.datatype) ? t && Number(t).toFixed(s.fieldsize) : t;
|
|
160
|
+
},
|
|
161
|
+
open(s) {
|
|
162
|
+
this.type = s.type, this.activeName = "attribute", this.record = s, this.visible = !0, this.init();
|
|
163
|
+
},
|
|
164
|
+
getDocTypePage() {
|
|
165
|
+
c({ pageno: 1, pagesize: 1e3 }).then((s) => {
|
|
166
|
+
s.code === 200 && (this.docTypeList = s.data.rows);
|
|
167
|
+
});
|
|
168
|
+
},
|
|
169
|
+
getDetail() {
|
|
170
|
+
return o({ id: this.record.id }).then((s) => (s.code !== 200 || (this.record = s.data), s));
|
|
171
|
+
},
|
|
172
|
+
getRootPermission() {
|
|
173
|
+
return m({ docId: this.record.id }).then((s) => {
|
|
174
|
+
let t = {};
|
|
175
|
+
s.code === 200 ? t = s.data : this.$message.error(s.message), this.permissionData = t;
|
|
176
|
+
const e = f.filter((i) => i.type.includes(this.record.type));
|
|
177
|
+
return this.permissionMenus = e.map((i) => {
|
|
178
|
+
const r = t[i.code];
|
|
179
|
+
return Object.assign(
|
|
180
|
+
{ ...i },
|
|
181
|
+
{
|
|
182
|
+
allow: r !== void 0 ? r === 1 : !1,
|
|
183
|
+
refuse: r !== void 0 ? r === 2 : !1
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
}), s;
|
|
187
|
+
});
|
|
188
|
+
},
|
|
189
|
+
getBlobType(s) {
|
|
190
|
+
let t = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
191
|
+
return s === "pdf" ? t = "application/pdf" : s === "docx" && (t = "application/msword"), t;
|
|
192
|
+
},
|
|
193
|
+
closed() {
|
|
194
|
+
this.fullscreen = !1, this.visible = !1;
|
|
195
|
+
},
|
|
196
|
+
toggleFullscreen() {
|
|
197
|
+
this.fullscreen = !this.fullscreen;
|
|
198
|
+
},
|
|
199
|
+
getDictionary(s) {
|
|
200
|
+
return this.$options.filters.dictData(s);
|
|
201
|
+
},
|
|
202
|
+
doEvent(s) {
|
|
203
|
+
let t = s.item.functionName;
|
|
204
|
+
this[t] && this[t]();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
var y = function() {
|
|
209
|
+
var t = this, e = t._self._c;
|
|
210
|
+
return e("div", [e("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: t.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: t.fullscreen, visible: t.visible, width: "700px", center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1, "destroy-on-close": !0 }, on: { "update:visible": function(i) {
|
|
211
|
+
t.visible = i;
|
|
212
|
+
}, closed: t.closed } }, [e("gd-modal-title", { attrs: { slot: "title", title: t.title, fullscreen: t.fullscreen, buttons: t.buttons, confirmLoading: t.confirmLoading, showClose: !0 }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen }, slot: "title" }), e("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-doc-attribute" }, [t.visible ? e("el-tabs", { attrs: { type: "card" }, model: { value: t.activeName, callback: function(i) {
|
|
213
|
+
t.activeName = i;
|
|
214
|
+
}, expression: "activeName" } }, [e("el-tab-pane", { attrs: { label: t.$i18nt("gd.fileDocument.properties", "\u6587\u6863\u5C5E\u6027"), name: "attribute" } }, [e("div", { staticClass: "attribute", staticStyle: { "margin-top": "10px" } }, [e("div", { staticClass: "attribute-item" }, [e("div", { staticClass: "list" }, [e("div", { staticClass: "list-item list-label" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.form.attribute", "\u5C5E\u6027")))]), e("div", { staticClass: "item-val" }, [t._v(t._s(t.$i18nt("gd.form.value", "\u503C")))])]), e("div", { staticClass: "list-kuang" }, [e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.translation.name", "\u540D\u79F0")))]), e("div", { staticClass: "item-val line1", attrs: { title: t.record.name } }, [t._v(t._s(t.record.name))])]), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.fileDocument.pathAddress", "\u8DEF\u5F84\u5730\u5740")))]), e("div", { staticClass: "item-val line1", attrs: { title: t.pathAddress } }, [t._v(t._s(t.pathAddress))])]), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.file.fileAccept", "\u6587\u4EF6\u7C7B\u578B")))]), e("div", { staticClass: "item-val" }, [e("i", { staticClass: "gd-icons", class: t.fileIcon })])]), t.record.filesize ? [e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.file.fileSize", "\u6587\u4EF6\u5927\u5C0F")))]), e("div", { staticClass: "item-val", attrs: { title: t.recordFileSize } }, [t._v(t._s(t.recordFileSize))])]), t.record.version !== void 0 ? e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.fileDocument.currentVersion", "\u5F53\u524D\u7248\u672C")))]), e("div", { staticClass: "item-val", attrs: { title: t.record.version } }, [t._v(t._s(t.record.version))])]) : t._e(), t.record.iseffectiveness !== void 0 ? e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.fileDocument.iseffectiveness", "\u6709\u6548")))]), e("div", { staticClass: "item-val" }, [e("el-tag", { style: t._f("dictColor")("yes_or_no", t.record.iseffectiveness), attrs: { effect: "dark" } }, [t._v(" " + t._s(t._f("dictType")("yes_or_no", t.record.iseffectiveness)) + " ")])], 1)]) : t._e(), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.fileDocument.classification", "\u6587\u6863\u5206\u7C7B")))]), e("div", { staticClass: "item-val", attrs: { title: t.docTypeName } }, [t._v(t._s(t.docTypeName))])])] : t._e(), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.fileDocument.inheritedPermissions", "\u7EE7\u627F\u6743\u9650")))]), e("div", { staticClass: "item-val", attrs: { title: t._f("dictType")("yes_or_no", t.record.inheritpermissions) } }, [e("el-tag", { style: t._f("dictColor")("yes_or_no", t.record.inheritpermissions), attrs: { effect: "dark" } }, [t._v(" " + t._s(t._f("dictType")("yes_or_no", t.record.inheritpermissions)) + " ")])], 1)]), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.fileDocument.uploadTime", "\u6700\u540E\u4E0A\u4F20\u65F6\u95F4")))]), e("div", { staticClass: "item-val", attrs: { title: t.record.uploaddate } }, [t._v(t._s(t.record.uploaddate))])]), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.fileDocument.mdifyUser", "\u4FEE\u6539\u7528\u6237")))]), e("div", { staticClass: "item-val", attrs: { title: t.record.updatedbyname } }, [t._v(t._s(t.record.updatedbyname ? t.record.updatedbyname : ""))])]), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.web.updatedTime", "\u4FEE\u6539\u65F6\u95F4")))]), e("div", { staticClass: "item-val", attrs: { title: t.record.updatedtime } }, [t._v(t._s(t.record.updatedtime))])]), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.fileDocument.createUser", "\u521B\u5EFA\u7528\u6237")))]), e("div", { staticClass: "item-val", attrs: { title: t.record.createdbyname } }, [t._v(t._s(t.record.createdbyname ? t.record.createdbyname : ""))])]), e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.web.creationTime", "\u521B\u5EFA\u65F6\u95F4")))]), e("div", { staticClass: "item-val", attrs: { title: t.record.createdtime } }, [t._v(t._s(t.record.createdtime))])])], 2)])])])]), t.type === 2 ? e("el-tab-pane", { attrs: { label: t.$i18nt("gd.fileDocument.extendedAttributes", "\u6269\u5C55\u5C5E\u6027"), name: "extendedAttributes" } }, [e("div", { staticClass: "attribute" }, [t.type === 2 ? e("div", { staticClass: "attribute-item" }, [e("div", { staticClass: "list-title list-title-flex" }, [e("div", { staticClass: "list-title-name" }), t.hasRename && t.docTypeData.statecodes === 1 && t.attributesList.length > 0 ? e("div", { staticClass: "list-title-edit active-color", on: { click: t.editExtendedAttributes } }, [e("i", { staticClass: "el-icon-edit-outline active-color" }), t._v(" " + t._s(t.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]) : t._e()]), e("div", { staticClass: "list" }, [e("div", { staticClass: "list-item list-label" }, [e("div", { staticClass: "item-name item-names" }, [t._v(t._s(t.$i18nt("gd.form.attribute", "\u5C5E\u6027")))]), e("div", { staticClass: "item-val" }, [t._v(" " + t._s(t.$i18nt("gd.form.value", "\u503C")) + " ")])]), t.attributesList.length > 0 ? e("div", { staticClass: "list-kuang" }, t._l(t.attributesList, function(i) {
|
|
215
|
+
return e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name item-names" }, [t._v(" " + t._s(t.$i18nt(i.transkey, i.name)) + " ")]), ["radio", "select", "switch"].includes(i.effectType) ? e("div", { staticClass: "item-val line1", attrs: { title: t._f("dictType")(i.dictTypeCode, i.value) } }, [e("el-tag", { style: t._f("dictColor")(i.dictTypeCode, i.value), attrs: { effect: "dark" } }, [t._v(" " + t._s(t._f("dictType")(i.dictTypeCode, i.value)) + " ")])], 1) : ["datepicker"].includes(i.effectType) ? e("div", { staticClass: "item-val line1", attrs: { title: t._f("formatTime")(i.value, i.fieldFormat) } }, [t._v(" " + t._s(t._f("formatTime")(i.value, i.fieldFormat)) + " ")]) : ["checkbox"].includes(i.effectType) ? e("div", { staticClass: "item-val line1" }, [t._l(i.value, function(r, a) {
|
|
216
|
+
return [a < t.maxLeg ? e("el-tag", { style: t._f("dictColor")(i.dictTypeCode, r), attrs: { effect: "dark" } }, [t._v(" " + t._s(t._f("dictType")(i.dictTypeCode, r)) + " ")]) : t._e(), a === t.maxLeg ? e("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], attrs: { effect: "dark", placement: "top" } }, [e("div", { attrs: { slot: "content" }, slot: "content" }, [t._l(i.value, function(l, d) {
|
|
217
|
+
return [d >= t.maxLeg ? e("span", { staticStyle: { "padding-right": "4px" } }, [t._v(t._s(t._f("dictType")(i.dictTypeCode, l)))]) : t._e()];
|
|
218
|
+
})], 2), e("el-tag", { staticStyle: { "background-color": "#fff", "border-color": "#dcdfe2", color: "rgba(0, 0, 0, 0.65)" }, attrs: { effect: "dark" } }, [t._v(" ... ")])], 1) : t._e()];
|
|
219
|
+
})], 2) : ["fk"].includes(i.effectType) ? e("div", { staticClass: "item-val line1", attrs: { title: i.fkName } }, [i.fkId ? e("span", { staticClass: "active-color", on: { click: function(r) {
|
|
220
|
+
return t.seeFkItem(i);
|
|
221
|
+
} } }, [t._v(t._s(i.fkName))]) : t._e()]) : e("div", { staticClass: "item-val line1", attrs: { title: i.value } }, [t._v(t._s(i.value))])]);
|
|
222
|
+
}), 0) : e("div", { staticClass: "empty" }, [e("div", { staticClass: "empty-icon" }, [e("i", { staticClass: "el-icon-receiving" })]), e("div", { staticClass: "empty-title" }, [e("span", [t._v(t._s(t.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])])]) : t._e()])]) : t._e(), e("el-tab-pane", { attrs: { label: t.$i18nt("gd.page.limitsAuthority", "\u6743\u9650"), name: "permission" } }, [e("div", { staticClass: "list", staticStyle: { "margin-top": "12px" } }, [e("div", { staticClass: "list-item list-label" }, [e("div", { staticClass: "item-name" }, [t._v(t._s(t.$i18nt("gd.page.limitsAuthority", "\u6743\u9650")))]), e("div", { staticClass: "item-hand" }, [t._v(t._s(t.$i18nt("gd.fileDocument.allow", "\u5141\u8BB8")))]), e("div", { staticClass: "item-hand" }, [t._v(t._s(t.$i18nt("gd.fileDocument.refuse", "\u62D2\u7EDD")))])]), e("div", { staticClass: "list-kuang" }, [t._l(t.permissionMenus, function(i) {
|
|
223
|
+
return [i.show ? e("div", { staticClass: "list-item" }, [e("div", { staticClass: "item-name" }, [t._v(" " + t._s(t.$i18nt(i.transkey, i.name)) + " (" + t._s(i.code) + ") ")]), e("div", { staticClass: "item-hand" }, [i.allow ? e("i", { staticClass: "el-icon-check", staticStyle: { color: "#52c41a" } }) : t._e()]), e("div", { staticClass: "item-hand" }, [i.refuse ? e("i", { staticClass: "el-icon-close", staticStyle: { color: "red" } }) : t._e()])]) : t._e()];
|
|
224
|
+
})], 2)])])], 1) : t._e()], 1)], 1), e("ExtendedAttributes", { ref: "extendedAttributes", on: { ok: t.init } }), e("gd-middleware", { ref: "middleware", on: { ok: t.init } })], 1);
|
|
225
|
+
}, g = [], h = /* @__PURE__ */ p(
|
|
226
|
+
_,
|
|
227
|
+
y,
|
|
228
|
+
g,
|
|
229
|
+
!1,
|
|
230
|
+
null,
|
|
231
|
+
"c4a2af33",
|
|
232
|
+
null,
|
|
233
|
+
null
|
|
234
|
+
);
|
|
235
|
+
const N = h.exports;
|
|
236
|
+
export {
|
|
237
|
+
N as default
|
|
238
|
+
};
|