gds-plus-design-vue 1.2.63 → 1.2.71
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.9fc97a47.mjs → addPermission.179a09f4.mjs} +127 -105
- package/lib/addPermission.c72ebbe0.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b550187.mjs} +7 -7
- package/lib/approvalModel.7cfcac3c.js +1 -0
- package/lib/attribute.3fed1dd9.js +1 -0
- package/lib/attribute.e9a8faa1.mjs +367 -0
- package/lib/businessRules.cf106f09.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.d7d35011.mjs} +191 -190
- package/lib/buttonRule.2afe380d.mjs +396 -0
- package/lib/buttonRule.737e8e3f.js +1 -0
- package/lib/chartDisplayRules.370065e8.mjs +288 -0
- package/lib/chartDisplayRules.c9162f81.js +1 -0
- package/lib/components.chartbi.3bbac955.js +8 -0
- package/lib/components.chartbi.571c5ff5.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.06cf0433.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.f81d322a.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.21d3938b.mjs} +3 -3
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.565d22c0.js} +1 -1
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.490abdfa.mjs} +416 -399
- package/lib/components.echarts.fe84f881.js +4 -0
- package/lib/{components.exception.3cc33e29.js → components.exception.374f2ad9.js} +1 -1
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.ee1c4f83.mjs} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.5533a8c3.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.db8af727.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.2eb787a4.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.b3b35343.mjs} +3 -3
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.8940b1a9.mjs} +7 -3
- package/lib/components.iconselector.f5a58033.js +1 -0
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.d97cf25c.js} +1 -1
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.f05b3e06.mjs} +4 -4
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.18f84642.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.2a097955.mjs} +1 -1
- package/lib/components.middleware.43b9b264.js +1 -0
- package/lib/{components.middleware.457b1182.mjs → components.middleware.de012955.mjs} +5 -4
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.5060623f.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.957cab33.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.5eb6edff.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.80eeb3ae.js} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.2fe70d88.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.756c4d22.mjs} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.29dbc31e.mjs} +21 -21
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.8c12650b.js} +1 -1
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.0673fe0a.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.240dfde7.js} +1 -1
- package/lib/components.sidenavmenu.b1330d69.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.fa81ff82.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.858b72e8.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.fae4adba.mjs} +3 -3
- package/lib/{components.table.17c02054.js → components.table.1e338902.js} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.9ed77207.mjs} +331 -316
- package/lib/components.tableumy.1d804d70.js +1 -0
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.3e1c9a5b.mjs} +7 -4
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.66890b2c.mjs} +7 -4
- package/lib/components.tablevirtual.8e21a6e7.js +1 -0
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.3a17ddc0.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.89e668fd.js} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.0ea7e2b1.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.376d95fe.mjs} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0a5a1608.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.8e0e702c.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.bc160e00.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.decb0360.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.140533c7.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.7091b10b.mjs} +1 -1
- package/lib/components.viewformdetails.940addba.js +1 -0
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.d241c652.mjs} +94 -61
- package/lib/components.viewloading.1e9f4b3c.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.aae3aab4.mjs} +54 -51
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.2ec3260c.mjs} +1 -1
- package/lib/{components.watermark.da3d7220.js → components.watermark.d9ec8130.js} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.0d1553b1.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.c33f83ca.mjs} +4 -4
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.81df7841.mjs} +541 -532
- package/lib/components.xlsximport.8c209857.js +1 -0
- package/lib/copy.8db86d9f.mjs +572 -0
- package/lib/copy.a8753f38.js +1 -0
- package/lib/createFile.04a6b293.js +1 -0
- package/lib/createFile.4cac1673.mjs +439 -0
- package/lib/createSubfolders.e105fa86.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.eac5ccae.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.bf435838.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.f0779aed.js} +1 -1
- package/lib/drawerContainer.6ab3df46.mjs +163 -0
- package/lib/drawerContainer.8f9df583.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.b6c7c3c6.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.e3c0164d.mjs} +2 -2
- package/lib/editForm.0f3fd3b0.js +1 -0
- package/lib/editForm.aef93ed0.mjs +434 -0
- package/lib/extendedAttributes.ea93dbaa.mjs +293 -0
- package/lib/extendedAttributes.ef3ead02.js +1 -0
- package/lib/fileSearch.43465e1c.js +1 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.5c8a883d.mjs} +140 -115
- package/lib/{flow.designer.6da03949.mjs → flow.designer.81c29f62.mjs} +3184 -3197
- package/lib/flow.designer.ffd0aa8b.js +1 -0
- package/lib/flow.list.4c05f2f0.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.ab420927.mjs} +234 -232
- package/lib/form.build.724d3357.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.d04773f0.mjs} +22 -14
- package/lib/form.designer.build.c82cb559.mjs +2529 -0
- package/lib/form.designer.build.dac501fa.js +1 -0
- package/lib/formFiled.4b5062d7.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.c949a27f.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.9deaa991.mjs +25906 -0
- package/lib/index.d95c407c.js +8 -0
- package/lib/layoutBlocks.26e1b57b.js +1 -0
- package/lib/layoutBlocks.31454610.mjs +413 -0
- package/lib/layoutItem.c1c836a1.js +1 -0
- package/lib/layoutItem.cf18143e.mjs +71 -0
- package/lib/{layouts.a6a36612.js → layouts.2d06f3e9.js} +2 -2
- package/lib/{layouts.051a0bba.mjs → layouts.3b383d04.mjs} +19 -22
- package/lib/main.09d48801.js +1 -0
- package/lib/main.28b7c398.js +1 -0
- package/lib/main.29e204f9.mjs +166 -0
- package/lib/main.33443996.mjs +231 -0
- package/lib/main.357c50d2.js +1 -0
- package/lib/{main.7f44e3bf.mjs → main.3e886f21.mjs} +40 -50
- package/lib/{main.c1df94d8.mjs → main.419a7b42.mjs} +2 -2
- package/lib/main.4a38d5f8.js +1 -0
- package/lib/{main.70357352.mjs → main.60329866.mjs} +6 -6
- package/lib/{main.ad1e8d4d.js → main.60c2a1a2.js} +1 -1
- package/lib/main.61c9e5c6.mjs +537 -0
- package/lib/main.643d21a0.mjs +552 -0
- package/lib/main.64ddb5f6.mjs +189 -0
- package/lib/main.728eaf53.js +1 -0
- package/lib/{main.8a2a590d.js → main.892caa37.js} +1 -1
- package/lib/main.aea9b6a8.mjs +323 -0
- package/lib/main.b7a5a02b.js +1 -0
- package/lib/main.c71e5b11.js +1 -0
- package/lib/main.edc0b23b.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.f520fcf5.mjs} +2 -2
- package/lib/manage.101f1aa9.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.f4000654.mjs} +162 -140
- package/lib/messages.fieldconfiguration.0d98a290.mjs +1097 -0
- package/lib/messages.fieldconfiguration.ad4d11cf.js +1 -0
- package/lib/messages.messagetemplate.32273e00.js +7 -0
- package/lib/messages.messagetemplate.7adbbc58.mjs +1319 -0
- package/lib/messages.sendplan.7d0097c2.mjs +1054 -0
- package/lib/messages.sendplan.fbac188d.js +1 -0
- package/lib/messages.sendrecord.ef80d44a.js +2 -0
- package/lib/messages.sendrecord.f0d2fd54.mjs +651 -0
- package/lib/messages.templatelibrary.ec512390.js +2 -0
- package/lib/messages.templatelibrary.ff151513.mjs +808 -0
- package/lib/mobile.designer.componentstree.03f61105.js +1 -0
- package/lib/mobile.designer.componentstree.4a1442dc.mjs +2064 -0
- package/lib/mobile.designer.menutree.0a2f7911.mjs +1036 -0
- package/lib/mobile.designer.menutree.97bb4046.js +1 -0
- package/lib/moveFile.335ebc8d.js +1 -0
- package/lib/moveFile.d71c0824.mjs +276 -0
- package/lib/{page.build.685c1e15.mjs → page.build.376104d5.mjs} +607 -601
- package/lib/{page.build.846096e6.js → page.build.37b26617.js} +3 -3
- package/lib/page.designer.componentstree.0ffc933d.js +1 -0
- package/lib/page.designer.componentstree.b0ecddd8.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.1ecd65a3.mjs +430 -0
- package/lib/page.designer.fieldfiltering.7e913256.js +1 -0
- package/lib/page.designer.menutree.2c1846bc.mjs +5952 -0
- package/lib/page.designer.menutree.c49d9ee6.js +1 -0
- package/lib/page.designer.operation.6179b661.js +1 -0
- package/lib/page.designer.operation.80b1a5d1.mjs +44 -0
- package/lib/page.designer.page.09402332.js +1 -0
- package/lib/page.designer.page.6d8232c7.mjs +10638 -0
- package/lib/personal.echarts.414b7e3d.mjs +268 -0
- package/lib/personal.echarts.b7ee86f4.js +1 -0
- package/lib/result.0c089066.mjs +639 -0
- package/lib/result.9282a717.js +1 -0
- package/lib/router.config.68077a12.js +1 -0
- package/lib/router.config.86225b11.mjs +1424 -0
- package/lib/solution.application.d459e382.js +1 -0
- package/lib/solution.application.e0d58df1.mjs +548 -0
- package/lib/solution.applicationmenu.71ef6b8e.mjs +508 -0
- package/lib/solution.applicationmenu.ae295083.js +1 -0
- package/lib/solution.approvalflow.436b3502.js +1 -0
- package/lib/solution.approvalflow.bef7fbdd.mjs +436 -0
- package/lib/solution.dict.acbe9c55.js +1 -0
- package/lib/solution.dict.ef98b194.mjs +769 -0
- package/lib/solution.menu.5c17348f.mjs +432 -0
- package/lib/solution.menu.cca5e1f9.js +1 -0
- package/lib/solution.plugin.90f8dcc1.mjs +347 -0
- package/lib/solution.plugin.f9a8063f.js +1 -0
- package/lib/solution.processflow.2692dac6.js +1 -0
- package/lib/solution.processflow.c1544b05.mjs +392 -0
- package/lib/solution.role.b1ab40dd.mjs +456 -0
- package/lib/solution.role.b28c4dbe.js +1 -0
- package/lib/solution.webresources.0b51beba.mjs +379 -0
- package/lib/solution.webresources.6961cc68.js +1 -0
- package/lib/solution.workflow.11e49e25.js +1 -0
- package/lib/solution.workflow.c48545d1.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.1cadbf03.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.5cc9fe8d.js} +7 -7
- package/lib/{system.config.210f516c.js → system.config.a0b94e40.js} +1 -1
- package/lib/{system.config.0899edb8.mjs → system.config.a9a1ee96.mjs} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.6c30ce25.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.c103a9c2.mjs} +1 -1
- package/lib/{system.dict.ef24873d.mjs → system.dict.0c229d1c.mjs} +264 -260
- package/lib/system.dict.6b000092.js +1 -0
- package/lib/system.document.f67c2994.mjs +667 -0
- package/lib/system.document.f8fd7af0.js +1 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.94c7ce17.mjs} +245 -265
- package/lib/system.duplicatechecking.f4cab147.js +1 -0
- package/lib/system.email.11ab6f31.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.13823361.mjs} +10 -15
- package/lib/system.fieldsecurity.2ef2881c.js +1 -0
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.d35acd97.mjs} +370 -361
- package/lib/{system.file.73eeb731.mjs → system.file.30d3e7bc.mjs} +81 -149
- package/lib/system.file.b9f8320c.js +1 -0
- package/lib/{system.log.fc60f5e6.js → system.log.470d3efd.js} +1 -1
- package/lib/{system.log.b86cf57f.mjs → system.log.815840d8.mjs} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.1665954f.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.f8aff893.js} +1 -1
- package/lib/{system.notice.25ea8dca.mjs → system.notice.bef6c23c.mjs} +994 -992
- package/lib/system.notice.db26f308.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.0d293a87.mjs} +10 -11
- package/lib/system.noticereceived.84b88b9a.js +1 -0
- package/lib/system.onlineuser.985621a6.js +1 -0
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.bccb1cd9.mjs} +37 -26
- package/lib/{system.org.c20fe6b2.mjs → system.org.92f4d7f1.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.9f87a010.js} +1 -1
- package/lib/system.permissions.15e6b8b7.js +1 -0
- package/lib/system.permissions.be9238ee.mjs +972 -0
- package/lib/system.plugin.0bccfec4.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.af27d7ac.mjs} +500 -479
- package/lib/{system.pos.0a3d2a37.js → system.pos.61e58a92.js} +1 -1
- package/lib/{system.pos.7946a99c.mjs → system.pos.fe067063.mjs} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.0b9083c5.mjs} +246 -243
- package/lib/system.promptmanagement.e750de82.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.67f62146.mjs} +511 -488
- package/lib/system.role.e86b60f1.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.093d998e.mjs} +168 -165
- package/lib/system.sumberrules.810f7b55.js +1 -0
- package/lib/system.team.58ee701b.js +1 -0
- package/lib/{system.team.e6a9608e.mjs → system.team.8911fd95.mjs} +163 -161
- package/lib/system.teammembers.1880f962.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.35564a00.mjs} +203 -198
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.4b2d509f.mjs} +2261 -2213
- package/lib/system.timers.9e956553.js +38 -0
- package/lib/system.translation.26b6bb39.js +1 -0
- package/lib/{system.translation.e34f0891.mjs → system.translation.60ec676c.mjs} +435 -429
- package/lib/system.user.134a3988.js +14 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.9a02295e.mjs} +1082 -1026
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.96695aeb.mjs} +418 -412
- package/lib/system.useraffiliation.c2421c7e.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.016d0000.mjs} +179 -179
- package/lib/system.webresource.e92e8a8f.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.127b5dd4.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.ff0c85e2.js} +1 -1
- package/lib/table.definition..btnconfig.9847cac5.mjs +938 -0
- package/lib/table.definition..btnconfig.ce57ed41.js +1 -0
- package/lib/table.definition..echartsconfig.625bce88.mjs +2150 -0
- package/lib/table.definition..echartsconfig.d2b65881.js +1 -0
- package/lib/tableDescriptions.a4196776.mjs +80 -0
- package/lib/tableDescriptions.b9b0d7fa.js +1 -0
- package/lib/tcheckboxs.7ea99d35.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.999b7c2e.mjs} +2 -2
- package/lib/tcurrency.4afb9192.mjs +85 -0
- package/lib/tcurrency.8a2361f2.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.606214fa.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.8e94a60c.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.ccbdd153.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.e016d4cf.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.3f39223d.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.b3ebdc71.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.5fe27540.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.78c8c175.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.2688be5b.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.a6f19343.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.46a7f31a.js +1 -0
- package/lib/versionControl.c53bfb5d.mjs +488 -0
- package/lib/versionEdit.4246d5db.js +1 -0
- package/lib/versionEdit.5a8292ec.mjs +452 -0
- package/lib/view.build.85732408.mjs +1578 -0
- package/lib/view.build.e43a2077.js +1 -0
- package/lib/viewList.868edcd7.js +1 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.978b72c5.mjs} +70 -92
- package/lib/viewTree.7497ff90.js +1 -0
- package/lib/viewTree.bde43a3b.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,2727 +0,0 @@
|
|
|
1
|
-
import { S as E } from "./components.table.e3e5e3bc.mjs";
|
|
2
|
-
import { c as q, l as j, n as Q, a as K, b as z, d as A, e as H, f as G, g as U, y as $ } from "./utils.datepicker.js.2076c2a2.mjs";
|
|
3
|
-
import { n as m, m as w } from "./components.chartbi.b043dcdc.mjs";
|
|
4
|
-
import { J as W, F as J } from "./page.build.685c1e15.mjs";
|
|
5
|
-
import { S as Y, a as X, c as Z, K as y, d as ee, i as te, T as k, j as F, f as se, U as ie, Q as ae, R as re } from "./http.main.40657f51.mjs";
|
|
6
|
-
import { a as ne, b as oe } from "./http.filemanage.c0de21d6.mjs";
|
|
7
|
-
import { n as le, d as de, z as ce } from "./http.tabledevelopment.1d370398.mjs";
|
|
8
|
-
import { u as _ } from "./form.designer.build.e521c9c6.mjs";
|
|
9
|
-
import { s as ue, u as S } from "./utils.util.js.82cd8447.mjs";
|
|
10
|
-
import "./components.imgpreview.57290b54.mjs";
|
|
11
|
-
import "./components.xlsxexport.d98572f8.mjs";
|
|
12
|
-
import { E as he } from "./components.xlsximport.cffa88fe.mjs";
|
|
13
|
-
import "./components.teamsharing.fb4351ec.mjs";
|
|
14
|
-
import "./components.dataassign.56632583.mjs";
|
|
15
|
-
import "./components.statuschange.15938660.mjs";
|
|
16
|
-
const fe = {
|
|
17
|
-
props: {
|
|
18
|
-
item: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default: () => ({})
|
|
21
|
-
},
|
|
22
|
-
row: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default: () => ({})
|
|
25
|
-
},
|
|
26
|
-
getFristColumn: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default: () => ({})
|
|
29
|
-
},
|
|
30
|
-
openMode: {
|
|
31
|
-
type: [String, Number],
|
|
32
|
-
default: 1
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
data() {
|
|
36
|
-
return {};
|
|
37
|
-
},
|
|
38
|
-
computed: {
|
|
39
|
-
imgList() {
|
|
40
|
-
return this.row[this.item.prop] ? this.row[this.item.prop].split(",") : [];
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
components: {
|
|
44
|
-
tcheckboxs: () => import("./tcheckboxs.090e75eb.mjs"),
|
|
45
|
-
tcurrency: () => import("./tcurrency.0ddac2f8.mjs"),
|
|
46
|
-
tdatepicker: () => import("./tdatepicker.8fe48b1b.mjs"),
|
|
47
|
-
tdictSwitch: () => import("./tdictSwitch.43d882c7.mjs"),
|
|
48
|
-
tparticipants: () => import("./tparticipants.ca5b556c.mjs"),
|
|
49
|
-
tfile: () => import("./tfile.72925615.mjs")
|
|
50
|
-
},
|
|
51
|
-
methods: {
|
|
52
|
-
operatorScope(t, e) {
|
|
53
|
-
t.hyperlink && this.$emit("operatorScope", t, e);
|
|
54
|
-
},
|
|
55
|
-
baseQuickForm(t, e) {
|
|
56
|
-
this.$emit("baseQuickForm", t, e);
|
|
57
|
-
},
|
|
58
|
-
showFile(t, e) {
|
|
59
|
-
this.$emit("showFile", t, e, this.item);
|
|
60
|
-
},
|
|
61
|
-
showImg(t, e, s) {
|
|
62
|
-
const r = this.$refs[`img_${s}`][0].dataset.src, a = this.$refs.effectTypeImg.children;
|
|
63
|
-
let n = [];
|
|
64
|
-
for (let o = 0; o < a.length; o++)
|
|
65
|
-
n.push(a[o].dataset.src);
|
|
66
|
-
this.$emit("showImg", r, n);
|
|
67
|
-
},
|
|
68
|
-
hasRowData(t, e, s = "none") {
|
|
69
|
-
if (e === "image")
|
|
70
|
-
return s === "none" ? !!t : t ? t.split(",") : [];
|
|
71
|
-
if (e === "file") {
|
|
72
|
-
const i = t ? JSON.parse(t) : [];
|
|
73
|
-
return s === "none" ? i.length > 0 : i;
|
|
74
|
-
}
|
|
75
|
-
return !1;
|
|
76
|
-
},
|
|
77
|
-
preview(t) {
|
|
78
|
-
this.$emit("preview", t, this.item);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
var pe = function() {
|
|
83
|
-
var e = this, s = e._self._c;
|
|
84
|
-
return s("div", [e.item.effectType == "datepicker" ? s("tdatepicker", { attrs: { item: e.item, row: e.row, getFristColumn: e.getFristColumn }, on: { operatorScope: function(i) {
|
|
85
|
-
return e.operatorScope(e.item, e.row);
|
|
86
|
-
} } }) : ["currency", "inputnumber", "double"].includes(e.item.effectType) ? s("tcurrency", { attrs: { item: e.item, row: e.row, getFristColumn: e.getFristColumn }, on: { operatorScope: function(i) {
|
|
87
|
-
return e.operatorScope(e.item, e.row);
|
|
88
|
-
} } }) : ["select", "radio", "switch"].includes(e.item.effectType) ? s("tdictSwitch", { attrs: { item: e.item, row: e.row, getFristColumn: e.getFristColumn }, on: { operatorScope: function(i) {
|
|
89
|
-
return e.operatorScope(e.item, e.row);
|
|
90
|
-
} } }) : e.item.effectType == "participants" ? s("tparticipants", { attrs: { item: e.item, row: e.row, getFristColumn: e.getFristColumn }, on: { baseQuickForm: (i) => e.baseQuickForm(i, e.item) } }) : e.item.effectType == "checkbox" ? s("tcheckboxs", { attrs: { item: e.item, row: e.row, getFristColumn: e.getFristColumn } }) : e.item.effectType == "file" ? [s("tfile", { attrs: { item: e.item, row: e.row }, on: { showFile: function(i) {
|
|
91
|
-
return e.showFile(e.item, e.row);
|
|
92
|
-
}, preview: e.preview } })] : e.item.effectType == "image" ? s("div", { ref: "effectTypeImg", staticClass: "effectType-img" }, [e._l(e.imgList, function(i) {
|
|
93
|
-
return [s("img", { directives: [{ name: "lazyImg", rawName: "v-lazyImg", value: i, expression: "ite" }], ref: `img_${i}`, refInFor: !0, staticClass: "img-data", staticStyle: { width: "auto", height: "18px" }, attrs: { "data-class": "el-table__body-wrapper", "data-url": i }, on: { click: function(r) {
|
|
94
|
-
return e.showImg(e.item, e.row, i);
|
|
95
|
-
} } })];
|
|
96
|
-
})], 2) : s("div", { staticClass: "line1", class: e.item.hyperlink ? "active-color active-items" : "" }, [s("span", { on: { click: function(i) {
|
|
97
|
-
return i.stopPropagation(), e.operatorScope(e.item, e.row);
|
|
98
|
-
} } }, [e._v(e._s(e.row[e.item.prop]))])])], 2);
|
|
99
|
-
}, ge = [], me = /* @__PURE__ */ m(
|
|
100
|
-
fe,
|
|
101
|
-
pe,
|
|
102
|
-
ge,
|
|
103
|
-
!1,
|
|
104
|
-
null,
|
|
105
|
-
"f20180a6",
|
|
106
|
-
null,
|
|
107
|
-
null
|
|
108
|
-
);
|
|
109
|
-
const I = me.exports, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
110
|
-
__proto__: null,
|
|
111
|
-
default: I
|
|
112
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
113
|
-
const be = {
|
|
114
|
-
name: "GdBatchUpdate",
|
|
115
|
-
props: {
|
|
116
|
-
viewRecord: {
|
|
117
|
-
type: Object,
|
|
118
|
-
default: () => ({})
|
|
119
|
-
},
|
|
120
|
-
columns: {
|
|
121
|
-
type: Array,
|
|
122
|
-
default: () => []
|
|
123
|
-
},
|
|
124
|
-
tableData: {
|
|
125
|
-
type: Object,
|
|
126
|
-
default: () => ({})
|
|
127
|
-
},
|
|
128
|
-
fieldData: {
|
|
129
|
-
type: Array,
|
|
130
|
-
default: () => []
|
|
131
|
-
},
|
|
132
|
-
viewCode: {
|
|
133
|
-
type: [String, Number],
|
|
134
|
-
required: !0
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
data() {
|
|
138
|
-
return {
|
|
139
|
-
ruleFormData: {
|
|
140
|
-
value: "",
|
|
141
|
-
values: "",
|
|
142
|
-
columnName: ""
|
|
143
|
-
},
|
|
144
|
-
rules: {
|
|
145
|
-
value: [
|
|
146
|
-
{
|
|
147
|
-
required: !0,
|
|
148
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
149
|
-
trigger: "change"
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
values: [
|
|
153
|
-
{
|
|
154
|
-
required: !0,
|
|
155
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
156
|
-
trigger: "change"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
columnName: [
|
|
160
|
-
{
|
|
161
|
-
required: !0,
|
|
162
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
163
|
-
trigger: "change"
|
|
164
|
-
}
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
buttons: [
|
|
168
|
-
{
|
|
169
|
-
displayName: "\u786E\u5B9A",
|
|
170
|
-
functionName: "handleSubmit",
|
|
171
|
-
show: !0,
|
|
172
|
-
transKey: "gd.btn.confirm",
|
|
173
|
-
icon: "el-icon-document-checked"
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
operatorButtons: [
|
|
177
|
-
{
|
|
178
|
-
displayName: "\u9009\u62E9\u8BB0\u5F55",
|
|
179
|
-
functionName: "selRecord",
|
|
180
|
-
show: !0,
|
|
181
|
-
transKey: "gd.batchUpdate.selRecords",
|
|
182
|
-
icon: "el-icon-plus"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
displayName: "\u5220\u9664\u5DF2\u9009",
|
|
186
|
-
functionName: "delRecord",
|
|
187
|
-
show: !0,
|
|
188
|
-
transKey: "gd.batchUpdate.delSelected",
|
|
189
|
-
icon: "el-icon-delete",
|
|
190
|
-
btnType: "danger"
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
visible: !1,
|
|
194
|
-
confirmLoading: !1,
|
|
195
|
-
fullscreen: !1,
|
|
196
|
-
selectedRowKeys: [],
|
|
197
|
-
selectedRows: [],
|
|
198
|
-
width: "90%",
|
|
199
|
-
loadDataList: (t) => new Promise((e, s) => {
|
|
200
|
-
e({ pageNo: 1, pageSize: 200, totalRows: 0, rows: this.loadData });
|
|
201
|
-
}),
|
|
202
|
-
loadData: [],
|
|
203
|
-
loading: !1,
|
|
204
|
-
fkData: [],
|
|
205
|
-
show: !0,
|
|
206
|
-
type: 1
|
|
207
|
-
};
|
|
208
|
-
},
|
|
209
|
-
components: { ChildRenItem: I, EffectTypeIcon: he },
|
|
210
|
-
computed: {
|
|
211
|
-
fieldFormat() {
|
|
212
|
-
const e = this.$options.filters.dictData("time_longshort").filter((s) => String(s.code) === String(this.getColumnName.fieldfrmat))[0];
|
|
213
|
-
return e ? e.name.replace("DD", "dd") : "yyyy-MM-dd HH:mm:ss";
|
|
214
|
-
},
|
|
215
|
-
precision() {
|
|
216
|
-
return this.getColumnName.effecttype === "inputnumber" ? 0 : this.getColumnName.filedsize;
|
|
217
|
-
},
|
|
218
|
-
getColumnName() {
|
|
219
|
-
const t = this.fieldData.filter((e) => e.columnname === this.ruleFormData.columnName)[0];
|
|
220
|
-
return t || { effecttype: "input" };
|
|
221
|
-
},
|
|
222
|
-
getColumnsed() {
|
|
223
|
-
return [...this.columns].map((s) => (s.renderHeader && delete s.renderHeader, s)).filter((s) => s.type === "slot");
|
|
224
|
-
},
|
|
225
|
-
getFieldData() {
|
|
226
|
-
return this.fieldData.filter((t) => !(t.effecttype == "about" && t.columnname === (t.relations + "_AboutTable").toLowerCase()));
|
|
227
|
-
},
|
|
228
|
-
height() {
|
|
229
|
-
return this.screenHeight - (this.fullscreen ? 130 : 280);
|
|
230
|
-
},
|
|
231
|
-
...w(["screenHeight", "tableSize", "tablePageSize", "tableLists"])
|
|
232
|
-
},
|
|
233
|
-
methods: {
|
|
234
|
-
save() {
|
|
235
|
-
let t = this;
|
|
236
|
-
this.$confirm(
|
|
237
|
-
this.$i18nt("gd.batchUpdate.confirmUpdateTip", "\u662F\u5426\u786E\u8BA4\u66F4\u65B0\u6240\u9009\u5DF2\u6709\u8BB0\u5F55?"),
|
|
238
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
239
|
-
{
|
|
240
|
-
confirmButtonText: this.$i18nt("gd.batchUpdate.confirmUpdate", "\u786E\u8BA4\u66F4\u65B0"),
|
|
241
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
242
|
-
showClose: !1,
|
|
243
|
-
confirmButtonLoading: !1,
|
|
244
|
-
cancelButtonLoading: !1,
|
|
245
|
-
closeOnClickModal: !1,
|
|
246
|
-
type: "warning",
|
|
247
|
-
confirmButtonClass: "el-button--danger",
|
|
248
|
-
customClass: "custom-alert",
|
|
249
|
-
callback: () => {
|
|
250
|
-
},
|
|
251
|
-
beforeClose: (e, s, i) => {
|
|
252
|
-
if (e !== "confirm") {
|
|
253
|
-
t.confirmLoading = !1, i();
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1;
|
|
257
|
-
const r = t.$refs.table.tableData;
|
|
258
|
-
let a = [];
|
|
259
|
-
r.forEach((c) => {
|
|
260
|
-
a.push(c.id);
|
|
261
|
-
});
|
|
262
|
-
const n = ["select", "radio", "checkbox", "switch", "fk", "user", "about", "participants"].includes(
|
|
263
|
-
t.getColumnName.effecttype
|
|
264
|
-
) ? t.ruleFormData.values : t.ruleFormData.value;
|
|
265
|
-
let o;
|
|
266
|
-
if (["participants"].includes(t.getColumnName.effecttype)) {
|
|
267
|
-
let c = [];
|
|
268
|
-
t.fkData.forEach((u) => {
|
|
269
|
-
n.includes(u.id) && c.push({ name: u.name, id: u.id, tableName: u.tableName });
|
|
270
|
-
}), o = JSON.stringify(c);
|
|
271
|
-
} else
|
|
272
|
-
o = n;
|
|
273
|
-
let l = { filedName: this.ruleFormData.columnName, value: o };
|
|
274
|
-
if (["about"].includes(t.getColumnName.effecttype)) {
|
|
275
|
-
const c = t.fkData.filter((f) => f.id == n)[0], u = t.tableLists.filter((f) => f.tablename === c.tableName)[0];
|
|
276
|
-
Object.assign(l, {
|
|
277
|
-
valueTable: u.id
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
let d = {
|
|
281
|
-
tableName: t.tableData.tablename,
|
|
282
|
-
idValues: a.join(","),
|
|
283
|
-
filedList: [l]
|
|
284
|
-
};
|
|
285
|
-
Y(d).then((c) => {
|
|
286
|
-
s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, c.success ? (t.$message.success(t.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), i(), t.$emit("ok"), t.closed()) : t.$message.error(t.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + c.message), t.confirmLoading = !1;
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
);
|
|
291
|
-
},
|
|
292
|
-
handleSubmit() {
|
|
293
|
-
if (this.$refs.table.tableData.length == 0) {
|
|
294
|
-
this.$message.error(this.$i18nt("gd.batchUpdate.delSelectedTip", "\u8BF7\u9009\u62E9\u5DF2\u6709\u8BB0\u5F55"));
|
|
295
|
-
return;
|
|
296
|
-
}
|
|
297
|
-
if (this.ruleFormData.columnName === "") {
|
|
298
|
-
this.$message.error(this.$i18nt("gd.batchUpdate.updateFieldsTip", "\u8BF7\u9009\u62E9\u66F4\u65B0\u5B57\u6BB5!"));
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
this.confirmLoading = !0, this.$refs.ruleForm.validate((e, s) => {
|
|
302
|
-
e ? this.save() : (this.$message.error(this.$i18nt("gd.batchUpdate.updateValueTip", "\u8BF7\u9009\u62E9\u66F4\u65B0\u503C!")), this.confirmLoading = !1);
|
|
303
|
-
});
|
|
304
|
-
},
|
|
305
|
-
delRecord() {
|
|
306
|
-
this.selectedRowKeys.length !== 0 && this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
307
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
308
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
309
|
-
showClose: !1,
|
|
310
|
-
confirmButtonLoading: !1,
|
|
311
|
-
cancelButtonLoading: !1,
|
|
312
|
-
closeOnClickModal: !1,
|
|
313
|
-
type: "warning",
|
|
314
|
-
confirmButtonClass: "el-button--danger",
|
|
315
|
-
customClass: "custom-alert",
|
|
316
|
-
callback: () => {
|
|
317
|
-
},
|
|
318
|
-
beforeClose: (t, e, s) => {
|
|
319
|
-
if (s(), t !== "confirm")
|
|
320
|
-
return;
|
|
321
|
-
const r = this.$refs.table.tableData.filter((a) => !this.selectedRowKeys.includes(a.id));
|
|
322
|
-
this.loadData = [...r], this.refresh();
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
},
|
|
326
|
-
selRecordBack(t) {
|
|
327
|
-
const s = this.$refs.table.tableData.filter((r) => t.data.includes(r.id)), i = t.fkData.filter((r) => !s.filter((n) => n.id === r.id)[0]);
|
|
328
|
-
this.loadData = s.concat(i), this.refresh();
|
|
329
|
-
},
|
|
330
|
-
selRecord() {
|
|
331
|
-
this.type = 2;
|
|
332
|
-
const t = this.$refs.table.tableData;
|
|
333
|
-
let e = [];
|
|
334
|
-
t.forEach((s) => {
|
|
335
|
-
e.push(s.id);
|
|
336
|
-
}), this.$refs.viewSearch.open({
|
|
337
|
-
fkEntityName: this.tableData.tablename,
|
|
338
|
-
effectType: "participants",
|
|
339
|
-
val: e,
|
|
340
|
-
viewId: this.viewCode
|
|
341
|
-
});
|
|
342
|
-
},
|
|
343
|
-
lookup() {
|
|
344
|
-
this.type = 1, this.$refs.viewSearch.open({
|
|
345
|
-
fkEntityName: this.getColumnName.fkentityname,
|
|
346
|
-
effectType: this.getColumnName.effecttype,
|
|
347
|
-
val: this.ruleFormData.values
|
|
348
|
-
});
|
|
349
|
-
},
|
|
350
|
-
lookupSeled(t) {
|
|
351
|
-
if (console.log(t), this.type === 2) {
|
|
352
|
-
this.selRecordBack(t);
|
|
353
|
-
return;
|
|
354
|
-
}
|
|
355
|
-
this.getColumnName.effecttype === "participants" ? this.ruleFormData.values = t.data : this.ruleFormData.values = t.data[0] ? t.data[0] : "";
|
|
356
|
-
const e = this.ruleFormData.values, i = typeof e == "string" || typeof e == "number" ? String(e).split(",") : e.map((a) => String(a)), r = this.fkData.filter((a) => !i.includes(String(a.id)));
|
|
357
|
-
this.fkData = t.fkData.concat(r);
|
|
358
|
-
},
|
|
359
|
-
searchData(t) {
|
|
360
|
-
let e = this.getColumnName.fkentityname.split(",")[0];
|
|
361
|
-
this.loading = !0;
|
|
362
|
-
const s = this.ruleFormData.values, r = typeof s == "string" || typeof s == "number" ? String(s).split(",") : s.map((n) => String(n)), a = this.fkData.filter((n) => r.includes(String(n.id)));
|
|
363
|
-
this.fkData = [], X({ name: t, fkEntityName: e }).then((n) => {
|
|
364
|
-
if (this.loading = !1, n.code === 200) {
|
|
365
|
-
n.data.map((l) => (l.tableName = e, l));
|
|
366
|
-
const o = n.data.filter((l) => !r.includes(String(l.id)));
|
|
367
|
-
this.fkData = a.concat(o);
|
|
368
|
-
}
|
|
369
|
-
});
|
|
370
|
-
},
|
|
371
|
-
handleSelect() {
|
|
372
|
-
this.ruleFormData.value = "", this.ruleFormData.values = "", this.fkData = [], this.show = !1, ["fk", "about", "participants"].includes(this.getColumnName.effecttype) && this.$nextTick(() => {
|
|
373
|
-
setTimeout(() => {
|
|
374
|
-
this.show = !0, this.searchData("");
|
|
375
|
-
}, 100);
|
|
376
|
-
});
|
|
377
|
-
},
|
|
378
|
-
open() {
|
|
379
|
-
this.visible = !0;
|
|
380
|
-
},
|
|
381
|
-
onSelectChange(t, e) {
|
|
382
|
-
this.selectedRowKeys = t, this.selectedRows = e;
|
|
383
|
-
},
|
|
384
|
-
refresh() {
|
|
385
|
-
this.$refs.table.refresh(!0);
|
|
386
|
-
},
|
|
387
|
-
closed() {
|
|
388
|
-
this.fullscreen = !1, this.visible = !1;
|
|
389
|
-
},
|
|
390
|
-
toggleFullscreen() {
|
|
391
|
-
this.fullscreen = !this.fullscreen;
|
|
392
|
-
},
|
|
393
|
-
getDictionary(t) {
|
|
394
|
-
return this.$options.filters.dictData(t.dicttypecode);
|
|
395
|
-
},
|
|
396
|
-
doEvent(t) {
|
|
397
|
-
const e = t.item.functionName;
|
|
398
|
-
this[e] && this[e]();
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
var ve = function() {
|
|
403
|
-
var e = this, s = e._self._c;
|
|
404
|
-
return s("div", [s("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, appendToBody: !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
405
|
-
e.visible = i;
|
|
406
|
-
}, closed: e.closed } }, [s("template", { slot: "title" }, [s("gd-modal-title", { attrs: { title: e.$i18nt("gd.batchUpdate.title", "\u7EDF\u4E00\u66F4\u65B0\u5DF2\u6709\u8BB0\u5F55"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen } })], 1), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [e.visible ? s("gd-tables", { ref: "table", attrs: { dataSource: e.loadDataList, size: e.tableSize, pageSize: e.tablePageSize, columns: e.columns, selectedRowKeys: e.selectedRowKeys, height: e.height, showPagination: !1, initialLoading: !1, disabledRefresh: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
407
|
-
return [s("div", { staticClass: "operator-flex" }, [s("el-form", { ref: "ruleForm", staticClass: "operator-flexl", attrs: { model: e.ruleFormData, "label-width": "130px", rules: e.rules }, nativeOn: { submit: function(i) {
|
|
408
|
-
i.preventDefault();
|
|
409
|
-
} } }, [s("el-row", { attrs: { gutter: 20 } }, [s("el-col", { attrs: { span: 11 } }, [s("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: e.$i18nt("gd.batchUpdate.updateFields", "\u66F4\u65B0\u5B57\u6BB5"), prop: "columnName" } }, [s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", size: "mini" }, on: { change: e.handleSelect }, model: { value: e.ruleFormData.columnName, callback: function(i) {
|
|
410
|
-
e.$set(e.ruleFormData, "columnName", i);
|
|
411
|
-
}, expression: "ruleFormData.columnName" } }, e._l(e.getFieldData, function(i) {
|
|
412
|
-
return s("el-option", { key: i.columnname, attrs: { label: e.$i18nt(`Dynamics.${i.transkey}`, i.columncomment), value: i.columnname } }, [s("EffectTypeIcon", { attrs: { effectType: i.effecttype } }), s("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.columncomment)) + " (" + e._s(i.columnname) + ") ")])], 1);
|
|
413
|
-
}), 1)], 1)], 1), s("el-col", { attrs: { span: 11 } }, [s("el-form-item", { staticStyle: { "margin-bottom": "0 !important" }, attrs: { label: e.$i18nt("gd.batchUpdate.updateValue", "\u66F4\u65B0\u503C"), prop: ["select", "radio", "checkbox", "switch", "fk", "user", "about", "participants"].includes(
|
|
414
|
-
e.getColumnName.effecttype
|
|
415
|
-
) ? "values" : "value" } }, [["select", "radio", "checkbox", "switch"].includes(e.getColumnName.effecttype) ? s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", size: "mini" }, model: { value: e.ruleFormData.values, callback: function(i) {
|
|
416
|
-
e.$set(e.ruleFormData, "values", i);
|
|
417
|
-
}, expression: "ruleFormData.values" } }, [e._l(e.getDictionary(e.getColumnName), function(i) {
|
|
418
|
-
return [s("el-option", { attrs: { label: e.$i18nt(`Dynamics.${i.transkey}`, i.name), value: i.code } })];
|
|
419
|
-
})], 2) : ["inputnumber", "double", "currency"].includes(e.getColumnName.effecttype) ? s("el-input-number", { attrs: { type: "number", precision: e.precision, placeholder: e.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"), "controls-position": "right" }, model: { value: e.ruleFormData.value, callback: function(i) {
|
|
420
|
-
e.$set(e.ruleFormData, "value", i);
|
|
421
|
-
}, expression: "ruleFormData.value" } }) : ["datepicker"].includes(e.getColumnName.effecttype) ? [e.getColumnName.fieldformat === 3 ? s("el-time-picker", { staticStyle: { width: "100%" }, attrs: { "value-format": e.fieldFormat, format: e.fieldFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleFormData.values, callback: function(i) {
|
|
422
|
-
e.$set(e.ruleFormData, "values", i);
|
|
423
|
-
}, expression: "ruleFormData.values" } }) : s("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: e.getColumnName.fieldformat === 1 ? "date" : "datetime", "value-format": e.fieldFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleFormData.values, callback: function(i) {
|
|
424
|
-
e.$set(e.ruleFormData, "values", i);
|
|
425
|
-
}, expression: "ruleFormData.values" } })] : ["fk", "about", "user"].includes(e.getColumnName.effecttype) ? s("div", { staticClass: "cao_about" }, [s("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.searchData, "collapse-tags": !0, "popper-append-to-body": !1, size: "mini" }, model: { value: e.ruleFormData.values, callback: function(i) {
|
|
426
|
-
e.$set(e.ruleFormData, "values", i);
|
|
427
|
-
}, expression: "ruleFormData.values" } }, [e._l(e.fkData, function(i) {
|
|
428
|
-
return [s("el-option", { attrs: { label: i.name, value: i.id } })];
|
|
429
|
-
})], 2), s("div", { staticClass: "cao_setting", on: { click: e.lookup } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1) : ["participants"].includes(e.getColumnName.effecttype) && e.show ? s("div", { staticClass: "cao_about" }, [s("el-select", { ref: "selectParticipants", staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.searchData, "multiple-limit": 12, multiple: "", "collapse-tags": !0, "popper-append-to-body": !1, size: "mini" }, model: { value: e.ruleFormData.values, callback: function(i) {
|
|
430
|
-
e.$set(e.ruleFormData, "values", i);
|
|
431
|
-
}, expression: "ruleFormData.values" } }, [e._l(e.fkData, function(i) {
|
|
432
|
-
return [s("el-option", { attrs: { label: i.name, value: i.id } })];
|
|
433
|
-
})], 2), s("div", { staticClass: "cao_setting", on: { click: e.lookup } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1) : s("el-input", { attrs: { placeholder: e.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.value, callback: function(i) {
|
|
434
|
-
e.$set(e.ruleFormData, "value", i);
|
|
435
|
-
}, expression: "ruleFormData.value" } })], 2)], 1)], 1)], 1), s("div", { staticClass: "operator-flexr" }, [s("gd-btn-list", { attrs: { sysViewButtons: e.operatorButtons }, on: { functionName: e.doEvent } })], 1)], 1)];
|
|
436
|
-
}, proxy: !0 }, e._l(e.getColumnsed, function(i) {
|
|
437
|
-
return { key: i.prop, fn: function({ column: r, row: a }) {
|
|
438
|
-
return [s("ChildRenItem", { attrs: { item: i, row: a, getFristColumn: {} } })];
|
|
439
|
-
} };
|
|
440
|
-
})], null, !0) }) : e._e()], 1)], 2), s("gd-search", { ref: "viewSearch", on: { lookupSeled: e.lookupSeled } })], 1);
|
|
441
|
-
}, we = [], $e = /* @__PURE__ */ m(
|
|
442
|
-
be,
|
|
443
|
-
ve,
|
|
444
|
-
we,
|
|
445
|
-
!1,
|
|
446
|
-
null,
|
|
447
|
-
"b6031a49",
|
|
448
|
-
null,
|
|
449
|
-
null
|
|
450
|
-
);
|
|
451
|
-
const ke = $e.exports, De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
452
|
-
__proto__: null,
|
|
453
|
-
default: ke
|
|
454
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
455
|
-
function Ce(t, e, s) {
|
|
456
|
-
var f, h, p, v, C;
|
|
457
|
-
if (!t.syscodegenconfig && !t.syscodegenconfigfk)
|
|
458
|
-
return console.log("\u5B57\u6BB5:" + t.name + "\u6570\u636E\u9519\u8BEF!"), null;
|
|
459
|
-
const i = ["fk", "user"].includes(t.syscodegenconfig.effecttype) ? (f = t.syscodegenconfigfk) == null ? void 0 : f.effecttype : t.syscodegenconfig.effecttype, r = t.syscodegenconfig.effecttype, a = B(t).toLowerCase(), n = t.align ? t.align.split("&") : [], o = ["fk", "user"].includes(r) ? (h = t.syscodegenconfigfk) == null ? void 0 : h.fieldformat : t.syscodegenconfig.fieldformat, l = n[7] ? n[7] === "true" : !1, d = i === "inputnumber" ? 0 : ["fk", "user"].includes(t.syscodegenconfig.effecttype) ? (p = t.syscodegenconfigfk) == null ? void 0 : p.filedsize : t.syscodegenconfig.filedsize;
|
|
460
|
-
let c = {
|
|
461
|
-
key: a,
|
|
462
|
-
transKey: `Dynamics.${t.transkey}`,
|
|
463
|
-
prop: a,
|
|
464
|
-
label: t.name,
|
|
465
|
-
width: String(t.width),
|
|
466
|
-
owidth: String(t.width),
|
|
467
|
-
columnName: t.syscodegenconfig.columnname,
|
|
468
|
-
fkEntityName: t.syscodegenconfig.fkentityname,
|
|
469
|
-
id: t.fieldid,
|
|
470
|
-
fkId: ["fk", "about", "user"].includes(r) ? (v = t.syscodegenconfigfk) == null ? void 0 : v.id : null,
|
|
471
|
-
align: n[0] ? n[0] : "center",
|
|
472
|
-
checked: n[1] ? n[1] == 1 : !0,
|
|
473
|
-
effectType: i,
|
|
474
|
-
fieldType: r,
|
|
475
|
-
gatherConfig: t.gatherconfig == 1,
|
|
476
|
-
fieldFormat: n[6] ? n[6] : o,
|
|
477
|
-
dictTypeCode: ["fk", "user"].includes(r) ? (C = t.syscodegenconfigfk) == null ? void 0 : C.dicttypecode : t.syscodegenconfig.dicttypecode,
|
|
478
|
-
dictTypeList: [],
|
|
479
|
-
maxTagCount: t.maxtagcount ? Number(t.maxtagcount) : 2,
|
|
480
|
-
sourceFk: !!["fk", "about", "user"].includes(r),
|
|
481
|
-
displayMode: n[2] ? n[2] : "none",
|
|
482
|
-
displayPrefix: n[3] ? n[3] : "none",
|
|
483
|
-
preview: n[4] ? n[4] === "true" : !0,
|
|
484
|
-
download: n[5] ? n[5] === "true" : !0,
|
|
485
|
-
filedsize: n[8] !== void 0 ? n[8] : d,
|
|
486
|
-
hyperlink: e === 0 || ["fk", "user", "about"].includes(r) ? l : !1
|
|
487
|
-
};
|
|
488
|
-
const u = Fe(r, a, t, c.fieldFormat);
|
|
489
|
-
return t.orderconfig === 1 && Object.assign(c, {
|
|
490
|
-
sortable: "custom"
|
|
491
|
-
}), e < s && Object.assign(c, {
|
|
492
|
-
fixed: "left"
|
|
493
|
-
}), ["participants", "file"].includes(r) && Object.assign(c, {
|
|
494
|
-
showTooltip: !1
|
|
495
|
-
}), Object.assign(c, u);
|
|
496
|
-
}
|
|
497
|
-
function B(t) {
|
|
498
|
-
const e = t.syscodegenconfigfk ? t.syscodegenconfigfk.columnname : "";
|
|
499
|
-
switch (t.syscodegenconfig.effecttype) {
|
|
500
|
-
case "fk":
|
|
501
|
-
return e + t.syscodegenconfig.fkentityname + t.syscodegenconfig.columnname;
|
|
502
|
-
case "user":
|
|
503
|
-
return e + t.syscodegenconfig.fkentityname + t.syscodegenconfig.columnname;
|
|
504
|
-
case "about":
|
|
505
|
-
return t.syscodegenconfig.relations.toLowerCase();
|
|
506
|
-
default:
|
|
507
|
-
return t.syscodegenconfig.columnname;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
function Fe(t, e, s, i) {
|
|
511
|
-
return t == "input" ? {} : ["datepicker"].includes(t) && i === 1 ? {} : {
|
|
512
|
-
type: "slot",
|
|
513
|
-
slotType: e
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
function _e(t, e, s) {
|
|
517
|
-
if (t.syscodegenconfig == null)
|
|
518
|
-
return !1;
|
|
519
|
-
let i = t.options ? JSON.parse(t.options) : {}, r = {
|
|
520
|
-
required: i.required,
|
|
521
|
-
message: s,
|
|
522
|
-
trigger: "blur"
|
|
523
|
-
};
|
|
524
|
-
["inputnumber", "double", " currency"].includes(t.syscodegenconfig.effecttype) && Object.assign(r, {
|
|
525
|
-
type: "number"
|
|
526
|
-
});
|
|
527
|
-
const a = i.fieldFormat === void 0 ? "1" : i.fieldFormat, n = e.filter((l) => l.code == a)[0];
|
|
528
|
-
return {
|
|
529
|
-
id: t.syscodegenconfig.id,
|
|
530
|
-
transKey: `Dynamics.${t.syscodegenconfig.transkey}`,
|
|
531
|
-
prop: t.syscodegenconfig.columnname,
|
|
532
|
-
label: t.syscodegenconfig.columncomment,
|
|
533
|
-
effectType: P(t.syscodegenconfig.effecttype),
|
|
534
|
-
dictTypeCode: t.syscodegenconfig.dicttypecode,
|
|
535
|
-
fkEntityName: t.syscodegenconfig.fkentityname,
|
|
536
|
-
disabled: t.disabled === void 0 ? !1 : t.disabled,
|
|
537
|
-
options: Object.assign(i, {
|
|
538
|
-
fieldFormat: a
|
|
539
|
-
}),
|
|
540
|
-
min: i.min,
|
|
541
|
-
max: i.max,
|
|
542
|
-
fieldFormat: a,
|
|
543
|
-
valueFormat: R(a, e),
|
|
544
|
-
rules: [r],
|
|
545
|
-
hasFiltered: !1,
|
|
546
|
-
filterList: [],
|
|
547
|
-
filterConfig: i.filterConfig !== void 0 ? i.filterConfig : null,
|
|
548
|
-
viewId: i.viewdeId !== void 0 ? i.viewdeId : "",
|
|
549
|
-
fkData: [],
|
|
550
|
-
hasTimePicker: M(n),
|
|
551
|
-
pickerType: O(n),
|
|
552
|
-
quick: i.quick === void 0 ? !1 : i.quick,
|
|
553
|
-
labelWidth: i.quick === void 0 ? "120px" : i.labelWidth + "px"
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
function ft(t, e, s, i) {
|
|
557
|
-
if (e === void 0)
|
|
558
|
-
return !1;
|
|
559
|
-
let r = {
|
|
560
|
-
required: t.required,
|
|
561
|
-
message: i,
|
|
562
|
-
trigger: "blur"
|
|
563
|
-
};
|
|
564
|
-
["inputnumber", "double", " currency"].includes(t.effectType) && Object.assign(r, {
|
|
565
|
-
type: "number"
|
|
566
|
-
});
|
|
567
|
-
const a = t.fieldFormat, n = s.filter((d) => d.code == a)[0], o = P(t.effectType);
|
|
568
|
-
return {
|
|
569
|
-
labelWidth: t.labelWidth ? `${t.labelWidth}px` : "120px",
|
|
570
|
-
transKey: `Dynamics.${e.transkey}`,
|
|
571
|
-
prop: t.columnName,
|
|
572
|
-
label: e.columncomment,
|
|
573
|
-
effectType: o,
|
|
574
|
-
dictTypeCode: t.dictTypeCode,
|
|
575
|
-
fkEntityName: t.fkEntityName,
|
|
576
|
-
disabled: t.disable,
|
|
577
|
-
options: {
|
|
578
|
-
effectType: t.effectType,
|
|
579
|
-
fieldFormat: a,
|
|
580
|
-
displayStyle: t.displayStyle,
|
|
581
|
-
defaultValue: t.defaultValue,
|
|
582
|
-
defaultValueList: t.defaultValueList,
|
|
583
|
-
filterList: t.filterList,
|
|
584
|
-
hidden: t.hidden,
|
|
585
|
-
required: t.required,
|
|
586
|
-
defaultInterval: t.defaultInterval,
|
|
587
|
-
openWidth: t.openWidth ? t.openWidth : 80,
|
|
588
|
-
widthUnit: t.widthUnit ? t.widthUnit : "%"
|
|
589
|
-
},
|
|
590
|
-
min: t.min,
|
|
591
|
-
max: t.max,
|
|
592
|
-
fieldFormat: a,
|
|
593
|
-
valueFormat: R(a, s),
|
|
594
|
-
rules: [r],
|
|
595
|
-
hasFiltered: !1,
|
|
596
|
-
filterList: [],
|
|
597
|
-
filterConfig: t.filterConfig !== void 0 ? t.filterConfig : null,
|
|
598
|
-
viewId: t.viewdeId !== void 0 ? t.viewdeId : "",
|
|
599
|
-
fkData: [],
|
|
600
|
-
hasTimePicker: M(n),
|
|
601
|
-
pickerType: O(n),
|
|
602
|
-
show: !0
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
function M(t) {
|
|
606
|
-
const e = t ? t.name : "yyyy-MM-dd";
|
|
607
|
-
return ["hh:mm:ss", "hh:mm", "mm:ss", "HH:mm:ss", "HH:mm"].includes(e);
|
|
608
|
-
}
|
|
609
|
-
function O(t) {
|
|
610
|
-
const e = t ? t.name : "yyyy-MM-dd";
|
|
611
|
-
let s = "date";
|
|
612
|
-
return e === "yyyy-MM-dd hh:mm:ss" || e === "yyyy-MM-dd HH:mm:ss" ? s = "datetime" : e === "yyyy-MM" ? s = "month" : e === "yyyy" && (s = "year"), s;
|
|
613
|
-
}
|
|
614
|
-
function R(t, e) {
|
|
615
|
-
if (t === null)
|
|
616
|
-
return t;
|
|
617
|
-
const s = e.filter((i) => String(i.code) === String(t))[0];
|
|
618
|
-
return s ? s.name.replace("DD", "dd") : "yyyy-MM-dd HH:mm:ss";
|
|
619
|
-
}
|
|
620
|
-
function P(t) {
|
|
621
|
-
let e = t;
|
|
622
|
-
return ["image", "file"].includes(t) ? e = "input" : ["select", "radio", "switch", "checkbox"].includes(t) ? e = "selectMultiple" : ["fk", "about", "participants", "user"].includes(t) && (e = "selectFkMultiple"), e;
|
|
623
|
-
}
|
|
624
|
-
function T(t, e, s, i) {
|
|
625
|
-
let r = /* @__PURE__ */ new Map();
|
|
626
|
-
for (var a in t) {
|
|
627
|
-
let n = t[a] != null && t[a] !== void 0 ? t[a] : "", o = e ? e.filter((d) => d.columnname === a)[0] : null;
|
|
628
|
-
if ((o ? o.effecttype : "input") === "datepicker") {
|
|
629
|
-
let d = Se(n, o, s, i);
|
|
630
|
-
d && (r.set(a + "Start", d[0]), r.set(a + "End", d[1]));
|
|
631
|
-
} else
|
|
632
|
-
Array.isArray(n) ? n.length > 0 && r.set(a, n.join(",")) : typeof n == "number" ? n !== void 0 && r.set(a, n) : !n == "" && r.set(a, n);
|
|
633
|
-
}
|
|
634
|
-
return r.size == 0 ? {} : Object.fromEntries(r);
|
|
635
|
-
}
|
|
636
|
-
function Se(t, e, s, i) {
|
|
637
|
-
if (t === "")
|
|
638
|
-
return !1;
|
|
639
|
-
const r = s.filter((n) => n.prop === e.columnname)[0];
|
|
640
|
-
if (!r)
|
|
641
|
-
return !1;
|
|
642
|
-
const a = i.filter((n) => n.code == r.options.fieldFormat)[0];
|
|
643
|
-
if (typeof t == "array" || typeof t == "object") {
|
|
644
|
-
const n = t[1] ? N(t[1]) : "", o = a.name === "yyyy-MM" ? "-01 00:00:00" : " 00:00:00", l = a.name === "yyyy-MM" ? `-${n} 23:59:59` : " 23:59:59";
|
|
645
|
-
return t[1] ? [t[0].split(" ")[0] + o, t[1].split(" ")[0] + l] : !1;
|
|
646
|
-
}
|
|
647
|
-
if (a.name === "yyyy-MM-dd hh:mm:ss" || a.name === "yyyy-MM-dd HH:mm:ss")
|
|
648
|
-
return [t, t];
|
|
649
|
-
if (a.name === "yyyy-MM-dd")
|
|
650
|
-
return [`${t} 00:00:00`, `${t} 23:59:59`];
|
|
651
|
-
if (a.name === "yyyy-MM") {
|
|
652
|
-
const n = N(t);
|
|
653
|
-
return [`${t}-01 00:00:00`, `${t}-${n} 23:59:59`];
|
|
654
|
-
} else {
|
|
655
|
-
if (a.name === "yyyy")
|
|
656
|
-
return [`${t}-01-01 00:00:00`, `${t}-12-31 23:59:59`];
|
|
657
|
-
if (a.name === "MM-dd") {
|
|
658
|
-
const n = new Date().getFullYear();
|
|
659
|
-
return [`${n}${t} 00:00:00`, `${n}${t} 23:59:59`];
|
|
660
|
-
} else
|
|
661
|
-
return [t, t];
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
function Te(t) {
|
|
665
|
-
let e = /* @__PURE__ */ new Map(), s = Le(t);
|
|
666
|
-
return ["switch", "select", "radio", "checkbox", "selectMultiple"].includes(t.effectType) && t.options.defaultValueList.length > 0 ? e.set(t.prop, t.options.defaultValueList) : ["datepicker"].includes(t.effectType) && s ? e.set(t.prop, s) : (["input", "textarea", "editor"].includes(t.effectType) && t.options.defaultValue !== "" || ["inputnumber", "double", " currency"].includes(t.effectType) && t.options.defaultValue !== "" && t.options.defaultValue !== void 0) && e.set(t.prop, t.options.defaultValue), Object.fromEntries(e);
|
|
667
|
-
}
|
|
668
|
-
function Le(t) {
|
|
669
|
-
if (!["datepicker"].includes(t.effectType))
|
|
670
|
-
return !1;
|
|
671
|
-
let e = t.options.displayStyle, s = t.options.defaultInterval.filter((n) => n.type === "interval")[0], i = t.options.defaultInterval.filter((n) => n.type === "equal")[0], r = i.value === "" ? t.options.defaultValue : t.valueFormat === "yyyy-MM" ? x(i, e) : L(
|
|
672
|
-
i,
|
|
673
|
-
e,
|
|
674
|
-
t
|
|
675
|
-
), a = s.value === "" ? t.options.defaultValueList : t.valueFormat === "yyyy-MM" ? x(s, e) : L(s, e, t);
|
|
676
|
-
return e == 1 ? r === "" ? !1 : r : a.length === 0 ? !1 : a;
|
|
677
|
-
}
|
|
678
|
-
function L(t, e, s) {
|
|
679
|
-
let i = Number(t.value), r = new Date().getTime(), a = r - i * 1e3 * 60 * 60 * 24, n = D(r), o = D(a), l = `${n.year}-${n.mon}-${n.day} ${n.hours}:${n.min}:${n.sec}`, d = `${o.year}-${o.mon}-${o.day} ${o.hours}:${o.min}:${o.sec}`;
|
|
680
|
-
return e == 1 ? s.valueFormat.replace("DD", "dd") === "YYYY-MM-dd" ? d.split(" ")[0] : d : [d, l];
|
|
681
|
-
}
|
|
682
|
-
function x(t, e, s) {
|
|
683
|
-
let i = Number(t.value), r = new Date().getTime(), a = D(r), n = a.year, o = Number(a.mon);
|
|
684
|
-
return e == 0 && i === 13 ? [`${n}-01`, `${n}-${g(o)}`] : (o - i < 0 ? (o = o - i + 12, n -= 1) : o - i === 0 ? (o = e == 1 ? 12 : 1, n = e == 1 ? n - 1 : n) : o -= i, e == 1 ? `${n}-${g(o)}` : [
|
|
685
|
-
`${n}-${g(o)}`,
|
|
686
|
-
`${a.year}-${a.mon}`
|
|
687
|
-
]);
|
|
688
|
-
}
|
|
689
|
-
function D(t) {
|
|
690
|
-
let s = t.toString().length == 10 ? parseInt(t) * 1e3 : parseInt(t);
|
|
691
|
-
var i = new Date(s), r = i.getFullYear(), a = i.getMonth() + 1, n = i.getDate(), o = i.getHours(), l = i.getMinutes(), d = i.getSeconds();
|
|
692
|
-
return {
|
|
693
|
-
year: r,
|
|
694
|
-
mon: g(a),
|
|
695
|
-
day: g(n),
|
|
696
|
-
hours: g(o),
|
|
697
|
-
min: g(l),
|
|
698
|
-
sec: g(d)
|
|
699
|
-
};
|
|
700
|
-
}
|
|
701
|
-
function g(t) {
|
|
702
|
-
return t = t.toString(), t[1] ? t : "0" + t;
|
|
703
|
-
}
|
|
704
|
-
function N(t) {
|
|
705
|
-
const e = t.split("-");
|
|
706
|
-
return new Date(e[0], e[1], 0).getDate();
|
|
707
|
-
}
|
|
708
|
-
const V = {
|
|
709
|
-
referencefiled: "",
|
|
710
|
-
referencetable: "",
|
|
711
|
-
checked: !1,
|
|
712
|
-
columnid: 0,
|
|
713
|
-
columnname: "",
|
|
714
|
-
columntype: "",
|
|
715
|
-
dynamicreferencefield: "",
|
|
716
|
-
dynamicreferencetable: "",
|
|
717
|
-
fieldformat: null,
|
|
718
|
-
fkdata: [],
|
|
719
|
-
id: 0,
|
|
720
|
-
operators: "1",
|
|
721
|
-
optionsdata: [],
|
|
722
|
-
pid: null,
|
|
723
|
-
recordid: null,
|
|
724
|
-
ruleslist: [],
|
|
725
|
-
show: !0,
|
|
726
|
-
tablename: "",
|
|
727
|
-
type: "1",
|
|
728
|
-
value: "",
|
|
729
|
-
values: [],
|
|
730
|
-
list: []
|
|
731
|
-
}, xe = {
|
|
732
|
-
props: {
|
|
733
|
-
record: {
|
|
734
|
-
type: Object,
|
|
735
|
-
default: () => ({})
|
|
736
|
-
},
|
|
737
|
-
sysViewButtons: {
|
|
738
|
-
type: Array,
|
|
739
|
-
default: () => []
|
|
740
|
-
},
|
|
741
|
-
sysViewList: {
|
|
742
|
-
type: Array,
|
|
743
|
-
default: () => []
|
|
744
|
-
},
|
|
745
|
-
personalViewList: {
|
|
746
|
-
type: Array,
|
|
747
|
-
default: () => []
|
|
748
|
-
},
|
|
749
|
-
viewCode: {
|
|
750
|
-
type: [String, Number],
|
|
751
|
-
required: !0
|
|
752
|
-
},
|
|
753
|
-
defaultViewId: {
|
|
754
|
-
type: [String, Number],
|
|
755
|
-
default: 0
|
|
756
|
-
},
|
|
757
|
-
maxBtnLength: {
|
|
758
|
-
type: Number,
|
|
759
|
-
default: 12
|
|
760
|
-
},
|
|
761
|
-
tableData: {
|
|
762
|
-
type: Object,
|
|
763
|
-
default: () => ({})
|
|
764
|
-
},
|
|
765
|
-
fieldData: {
|
|
766
|
-
type: Array,
|
|
767
|
-
default: () => []
|
|
768
|
-
},
|
|
769
|
-
selectedRowKeys: {
|
|
770
|
-
type: Array,
|
|
771
|
-
default: () => []
|
|
772
|
-
},
|
|
773
|
-
openMode: {
|
|
774
|
-
type: [String, Number],
|
|
775
|
-
default: 1
|
|
776
|
-
},
|
|
777
|
-
confirmLoading: {
|
|
778
|
-
type: Boolean,
|
|
779
|
-
default: !1
|
|
780
|
-
},
|
|
781
|
-
showView: {
|
|
782
|
-
type: Boolean,
|
|
783
|
-
default: !0
|
|
784
|
-
},
|
|
785
|
-
showBtn: {
|
|
786
|
-
type: Boolean,
|
|
787
|
-
default: !0
|
|
788
|
-
}
|
|
789
|
-
},
|
|
790
|
-
data() {
|
|
791
|
-
return {
|
|
792
|
-
viewCodeOld: ""
|
|
793
|
-
};
|
|
794
|
-
},
|
|
795
|
-
components: { EditPerson: () => import("./router.config.98a73167.mjs").then((t) => t.e) },
|
|
796
|
-
computed: {
|
|
797
|
-
getSysViewList() {
|
|
798
|
-
const t = this.viewCodeOld === "" ? this.viewCode : this.viewCodeOld, e = this.sysViewList.filter((r) => r.id === t), s = this.sysViewList.filter((r) => !!(r.id !== t && this.$hasPerm(r.permissions))), i = this.sysViewList.filter((r) => !!s.concat(e).filter((n) => n.id === r.id)[0]);
|
|
799
|
-
return this.showPersonal ? i : e;
|
|
800
|
-
},
|
|
801
|
-
showPersonal() {
|
|
802
|
-
return (this.record.options.viewWeights ? this.record.options.viewWeights : "2") !== "1";
|
|
803
|
-
},
|
|
804
|
-
viewList() {
|
|
805
|
-
return this.sysViewList.concat(this.personalViewList);
|
|
806
|
-
},
|
|
807
|
-
getTitle() {
|
|
808
|
-
const t = this.sysViewList.concat(this.personalViewList).filter((e) => e.id === this.viewCode)[0];
|
|
809
|
-
return t ? this.$i18nt(`Dynamics.${t.transkey}`, t.name) : "--";
|
|
810
|
-
},
|
|
811
|
-
fadeColord() {
|
|
812
|
-
return this.fadeColor(this.primaryColor, 0.1);
|
|
813
|
-
},
|
|
814
|
-
...w(["primaryColor"])
|
|
815
|
-
},
|
|
816
|
-
methods: {
|
|
817
|
-
configOk() {
|
|
818
|
-
this.$emit("updatePersonalView");
|
|
819
|
-
},
|
|
820
|
-
handleMenuClick(t) {
|
|
821
|
-
!this.showPersonal && this.viewCodeOld === "" && (this.viewCodeOld = this.viewCode), this.$refs.popover.doClose(), this.$emit("handleMenuClick", t);
|
|
822
|
-
},
|
|
823
|
-
fadeColor(t, e) {
|
|
824
|
-
let s = parseInt(t.substring(1, 3), 16), i = parseInt(t.substring(3, 5), 16), r = parseInt(t.substring(5, 7), 16);
|
|
825
|
-
return `rgba(${s},${i},${r},${e})`;
|
|
826
|
-
},
|
|
827
|
-
functionName(t) {
|
|
828
|
-
this.$emit("functionName", t);
|
|
829
|
-
},
|
|
830
|
-
personalView() {
|
|
831
|
-
this.$store.dispatch("SeekTableId", this.tableData.id), this.$refs.popover.doClose(), this.$router.push({
|
|
832
|
-
name: "advancedFind"
|
|
833
|
-
});
|
|
834
|
-
},
|
|
835
|
-
copy() {
|
|
836
|
-
let t = this.viewList.filter((i) => i.id == this.viewCode)[0], e = this.getViewFields(t);
|
|
837
|
-
if (e.list.length == 0) {
|
|
838
|
-
this.$message.warning(this.$i18nt("gd.https.needColumnTip", "\u6700\u5C11\u9700\u8981\u4E00\u6761\u8BF7\u8865\u5145!"));
|
|
839
|
-
return;
|
|
840
|
-
}
|
|
841
|
-
let s = {
|
|
842
|
-
viewid: Number(this.viewCode),
|
|
843
|
-
sysviewfilters: this.getFilterConfig(t),
|
|
844
|
-
frozencolumn: t.frozencolumn,
|
|
845
|
-
sysviewfields: [...e.list],
|
|
846
|
-
viewlistdata: this.viewList.filter((i) => i.mode == 1),
|
|
847
|
-
type: 2
|
|
848
|
-
};
|
|
849
|
-
t.mode == 2 && Object.assign(s, {
|
|
850
|
-
viewid: t.baseview,
|
|
851
|
-
data: t
|
|
852
|
-
}), this.$refs.editPerson.open(s);
|
|
853
|
-
},
|
|
854
|
-
setDefault(t) {
|
|
855
|
-
this.$refs.popover.doClose(), this.$emit("baseSetDefaultView", t);
|
|
856
|
-
},
|
|
857
|
-
getFilterConfig(t) {
|
|
858
|
-
const e = (o) => (o = o.filter((l, d) => {
|
|
859
|
-
if (l.type = String(l.type), l.operators = String(l.operators), l.list.length > 0)
|
|
860
|
-
l.list = e(l.list);
|
|
861
|
-
else {
|
|
862
|
-
let c = this.getItemVal(l, 2);
|
|
863
|
-
l.values = typeof c == "object" ? c.map((u) => Number(u)) : [];
|
|
864
|
-
}
|
|
865
|
-
return l.fkdata && typeof l.fkdata == "string" && (l.fkdata = JSON.parse(l.fkdata)), l.ruleslist && typeof l.ruleslist == "string" && (l.ruleslist = JSON.parse(l.ruleslist)), l.recordid === void 0 && (l.columntype == "relevant" || l.columntype == "parental") && (l.recordid = l.columnid + "@" + l.columntype), l.show === void 0 && (l.show = !0, l.checked = !1), !0;
|
|
866
|
-
}), o);
|
|
867
|
-
let i = { ...t.filterconfig ? JSON.parse(t.filterconfig) : V }, r = e(i.pid === null ? i.list : [i]), a = i.pid === null ? i : V;
|
|
868
|
-
return Object.assign(
|
|
869
|
-
{
|
|
870
|
-
...a
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
list: r,
|
|
874
|
-
referencetable: this.tableData.tablename,
|
|
875
|
-
tablename: this.tableData.tablename
|
|
876
|
-
}
|
|
877
|
-
);
|
|
878
|
-
},
|
|
879
|
-
getItemVal(t, e = 1) {
|
|
880
|
-
let s = "";
|
|
881
|
-
const i = String(t.operators);
|
|
882
|
-
if (["fk", "about"].includes(t.columntype)) {
|
|
883
|
-
let r = e == 1 && t.values !== void 0 ? t.values.join(",") : String(t.value).split(",");
|
|
884
|
-
s = ["3", "4"].includes(i) ? r : t.value;
|
|
885
|
-
} else if (t.columntype == "user") {
|
|
886
|
-
let r = e == 1 && t.values !== void 0 ? t.values.join(",") : String(t.value).split(",");
|
|
887
|
-
s = ["3", "4"].includes(i) ? r : t.value;
|
|
888
|
-
} else if (t.columntype == "participants") {
|
|
889
|
-
let r = e == 1 && t.values !== void 0 ? t.values.join(",") : String(t.value).split(",");
|
|
890
|
-
s = ["3", "4"].includes(i) ? r : t.value;
|
|
891
|
-
} else
|
|
892
|
-
s = t.value;
|
|
893
|
-
return s;
|
|
894
|
-
},
|
|
895
|
-
getViewFields(t) {
|
|
896
|
-
let e = [];
|
|
897
|
-
return this.fieldData.forEach((s) => {
|
|
898
|
-
if (!this.isChecked(s.id, t.sysviewfields)) {
|
|
899
|
-
let i = t.sysviewfields.filter((r) => r.fieldid == s.id)[0];
|
|
900
|
-
if (i && i.type == 1) {
|
|
901
|
-
let r = {
|
|
902
|
-
...s
|
|
903
|
-
}, a = this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment), n = this.$i18nt(`Dynamics.${i.transkey}`, i.name);
|
|
904
|
-
r.order = i.order, r.num = i.width, r.aliastranskey = i.transkey ? i.transkey : null, r.alias = a === n ? "" : n, r.orderconfig = i.orderconfig == 1, r.columnname = i.field ? i.field.columnname : s.columnname, r.codegenid = i.field ? i.field.codegenid : s.codegenid, r.gatherconfig = i.gatherconfig == 1, r.maxtagcount = i.maxtagcount ? i.maxtagcount : 2, r.fkrelations = `${a} -- ${s.columnname}`, r.fkEffectType = s.effecttype, r.transkey = s.transkey, r.operate = "edit", r.aliasold = n;
|
|
905
|
-
let o = i.align ? i.align.split("&") : [];
|
|
906
|
-
r.align = o[0] ? o[0] : "left", r.visible = o[1] ? o[1] == 1 : !0, r.displaymode = o[2] ? o[2] : "none", r.displayprefix = o[3] ? o[3] : "none", r.preview = o[4] ? o[4] === "true" : !0, r.download = o[5] ? o[5] === "true" : !0, r.format = o[6] ? o[6] : String(s.fieldformat), r.hyperlink = o[7] ? o[7] === "true" : !1, r.precision = o[8] !== void 0 ? o[8] : s.filedsize, e.push(r);
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
s.children && s.children.length > 0 && s.children.forEach((i) => {
|
|
910
|
-
if (!this.isChecked(i.id + "-" + s.id, t.sysviewfields)) {
|
|
911
|
-
let r = t.sysviewfields.filter((a) => (a.type == 2 ? a.joinfieldid + "-" + a.fieldid : a.fieldid) == i.id + "-" + s.id)[0];
|
|
912
|
-
if (r) {
|
|
913
|
-
let a = {
|
|
914
|
-
...i
|
|
915
|
-
}, n = this.$i18nt(`Dynamics.${s.transkey}`, s.columncomment), o = this.$i18nt(`Dynamics.${i.transkey}`, i.columncomment), l = this.$i18nt(`Dynamics.${r.transkey}`, r.name);
|
|
916
|
-
a.order = r.order, a.num = r.width, a.aliastranskey = r.transkey ? r.transkey : null, a.alias = o === l ? "" : l, a.id = a.id + "-" + s.id, a.orderconfig = r.orderconfig == 1, a.gatherconfig = r.gatherconfig == 1, a.fkrelations = `${n} -- ${s.columnname}`, a.fkEffectType = s.effecttype, a.maxtagcount = r.maxtagcount ? r.maxtagcount : 2, a.transkey = i.transkey, a.operate = "edit", a.aliasold = l;
|
|
917
|
-
let d = r.align ? r.align.split("&") : [];
|
|
918
|
-
a.align = d[0] ? d[0] : "left", a.visible = d[1] ? d[1] == 1 : !0, a.displaymode = d[2] ? d[2] : "none", a.displayprefix = d[3] ? d[3] : "none", a.preview = d[4] ? d[4] === "true" : !0, a.download = d[4] ? d[4] === "true" : !0, a.format = d[6] ? d[6] : String(i.fieldformat), a.hyperlink = d[7] ? d[7] === "true" : !1, a.precision = d[8] !== void 0 ? d[8] : i.filedsize, e.push(a);
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
});
|
|
922
|
-
}), e = ue(e), { list: e };
|
|
923
|
-
},
|
|
924
|
-
isChecked(t, e) {
|
|
925
|
-
return e.every((s, i, r) => (s.type == 2 ? s.joinfieldid + "-" + s.fieldid : s.fieldid) != t);
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
var Ne = function() {
|
|
930
|
-
var e = this, s = e._self._c;
|
|
931
|
-
return s("div", { staticClass: "gd-view-selection" }, [e.showView && e.openMode == 1 ? s("div", { staticClass: "selectionl" }, [s("el-popover", { ref: "popover", attrs: { placement: "bottom-start", trigger: "click" } }, [s("div", { staticClass: "selectionl-popover", style: { "--dilute": e.fadeColord } }, [s("div", { staticClass: "selectionl-popover-name" }, [s("div", { staticClass: "name-title" }, [e._v(e._s(e.$i18nt("gd.view.sysView", "\u7CFB\u7EDF\u89C6\u56FE")))])]), s("div", { staticClass: "popover-dashed" }, [s("el-divider", { attrs: { dashed: "" } })], 1), e._l(e.getSysViewList, function(i) {
|
|
932
|
-
return [i.type === 1 ? s("div", { staticClass: "selectionl-popover-item", on: { click: function(r) {
|
|
933
|
-
return e.handleMenuClick(i);
|
|
934
|
-
} } }, [e.defaultViewId === i.id ? s("i", { staticClass: "el-icon-star-on active-color" }) : e._e(), s("div", { staticClass: "name-title" }, [e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.name)))]), e.defaultViewId !== i.id ? s("i", { staticClass: "el-icon-star-off active-color", on: { click: function(r) {
|
|
935
|
-
return r.stopPropagation(), e.setDefault(i);
|
|
936
|
-
} } }) : e._e(), e.viewCode === i.id ? s("i", { staticClass: "gd-icons gd-icon-a-dingshuding-fill1" }) : e._e()]) : e._e()];
|
|
937
|
-
}), s("div", { staticClass: "popover-solid" }, [s("el-divider")], 1), s("div", { staticClass: "selectionl-popover-name" }, [s("div", { staticClass: "name-title" }, [e._v(e._s(e.$i18nt("gd.view.myView", "\u6211\u7684\u89C6\u56FE")))]), s("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticStyle: { "margin-left": "6px" }, attrs: { placement: "top", "open-delay": 50 } }, [s("template", { slot: "content" }, [e._v(" " + e._s(e.$i18nt("gd.view.presentView", "\u5F53\u524D\u89C6\u56FE\u53E6\u5B58\u4E3A\u4E2A\u4EBA\u89C6\u56FE")) + " ")]), s("i", { staticClass: "el-icon-edit-outline active-color", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: e.copy } })], 2), s("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticStyle: { "margin-left": "6px" }, attrs: { placement: "top", "open-delay": 50 } }, [s("template", { slot: "content" }, [e._v(" " + e._s(e.$i18nt("gd.view.createView", "\u521B\u5EFA\u4E2A\u4EBA\u89C6\u56FE")) + " ")]), s("i", { staticClass: "el-icon-plus active-color", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: e.personalView } })], 2)], 1), s("div", { staticClass: "popover-dashed" }, [s("el-divider", { attrs: { dashed: "" } })], 1), e._l(e.personalViewList, function(i) {
|
|
938
|
-
return [s("div", { staticClass: "selectionl-popover-item", on: { click: function(r) {
|
|
939
|
-
return e.handleMenuClick(i);
|
|
940
|
-
} } }, [e.defaultViewId === i.id ? s("i", { staticClass: "el-icon-star-on active-color" }) : e._e(), s("div", { staticClass: "name-title" }, [e._v(e._s(e.$i18nt(`Dynamics.${i.transkey}`, i.name)))]), e.defaultViewId !== i.id ? s("i", { staticClass: "el-icon-star-off active-color", on: { click: function(r) {
|
|
941
|
-
return r.stopPropagation(), e.setDefault(i);
|
|
942
|
-
} } }) : e._e(), e.viewCode === i.id ? s("i", { staticClass: "gd-icons gd-icon-a-dingshuding-fill1" }) : e._e()])];
|
|
943
|
-
})], 2), s("el-button", { attrs: { slot: "reference", type: "primary" }, slot: "reference" }, [s("div", { staticClass: "selectionl-popover-view" }, [s("div", { staticClass: "selectionl-popover-name line1" }, [e._v(e._s(e.getTitle))]), s("i", { staticClass: "el-icon-arrow-down" })])])], 1)], 1) : s("div", { staticClass: "selectionl" }, [e.openMode == 2 ? s("div", { staticClass: "operatorsel" }, [e._v(" " + e._s(e.$i18nt("gd.basics.selected")) + " "), s("span", [e._v(e._s(e.selectedRowKeys.length))]), e._v(" " + e._s(e.$i18nt("gd.basics.data")) + " ")]) : e._e()]), s("div", { staticClass: "selectionq" }, [e._t("quickQueries")], 2), s("div", { staticClass: "selectionr" }, [e.showBtn ? s("gd-btn-list", { attrs: { sysViewButtons: e.sysViewButtons, max: e.maxBtnLength }, on: { functionName: e.functionName } }) : e._e(), e.confirmLoading ? s("div", { staticClass: "gd-dialog-meng" }) : e._e()], 1), s("EditPerson", { ref: "editPerson", attrs: { table: e.tableData }, on: { ok: e.configOk } })], 1);
|
|
944
|
-
}, Ve = [], Ie = /* @__PURE__ */ m(
|
|
945
|
-
xe,
|
|
946
|
-
Ne,
|
|
947
|
-
Ve,
|
|
948
|
-
!1,
|
|
949
|
-
null,
|
|
950
|
-
"e7b57154",
|
|
951
|
-
null,
|
|
952
|
-
null
|
|
953
|
-
);
|
|
954
|
-
const Be = Ie.exports, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
955
|
-
__proto__: null,
|
|
956
|
-
default: Be
|
|
957
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
958
|
-
const Oe = {
|
|
959
|
-
props: {
|
|
960
|
-
tableData: {
|
|
961
|
-
type: Object,
|
|
962
|
-
default: () => ({})
|
|
963
|
-
},
|
|
964
|
-
fieldData: {
|
|
965
|
-
type: Array,
|
|
966
|
-
default: () => []
|
|
967
|
-
}
|
|
968
|
-
},
|
|
969
|
-
data() {
|
|
970
|
-
return {
|
|
971
|
-
spinning: !1,
|
|
972
|
-
visible: !1,
|
|
973
|
-
width: "506px",
|
|
974
|
-
list: [],
|
|
975
|
-
personalList: [],
|
|
976
|
-
viewId: "",
|
|
977
|
-
loadData: [],
|
|
978
|
-
buttons: [
|
|
979
|
-
{
|
|
980
|
-
displayName: "\u653E\u5927\u67E5\u770B",
|
|
981
|
-
functionName: "amplify",
|
|
982
|
-
show: !0,
|
|
983
|
-
transKey: "gd.echarts.amplify",
|
|
984
|
-
icon: "el-icon-search"
|
|
985
|
-
}
|
|
986
|
-
]
|
|
987
|
-
};
|
|
988
|
-
},
|
|
989
|
-
components: {
|
|
990
|
-
EditEchartsConfig: () => import("./personal.echarts.b22fba61.mjs").then((t) => t.a)
|
|
991
|
-
},
|
|
992
|
-
computed: {
|
|
993
|
-
getButtons() {
|
|
994
|
-
return this.list.concat(this.personalList).length === 0 ? [] : this.buttons;
|
|
995
|
-
},
|
|
996
|
-
getTitle() {
|
|
997
|
-
const t = this.list.concat(this.personalList).filter((e) => e.id === this.viewId)[0];
|
|
998
|
-
return t ? this.$i18nt(`Dynamics.${t.transKey}`, t.name) : this.$i18nt("gd.echarts.noEcharts", "\u6682\u65E0\u56FE\u8868\uFF0C\u8BF7\u5148\u521B\u5EFA...");
|
|
999
|
-
},
|
|
1000
|
-
colorList() {
|
|
1001
|
-
let t = this.list.concat(this.personalList).filter((e) => e.id == this.viewId)[0];
|
|
1002
|
-
return t === void 0 ? [] : t.colour === null ? [] : t.colour.split(",");
|
|
1003
|
-
},
|
|
1004
|
-
fadeColord() {
|
|
1005
|
-
return this.fadeColor(this.primaryColor, 0.1);
|
|
1006
|
-
},
|
|
1007
|
-
...w(["primaryColor"])
|
|
1008
|
-
},
|
|
1009
|
-
methods: {
|
|
1010
|
-
echartsManage() {
|
|
1011
|
-
this.$router.push({
|
|
1012
|
-
name: "echartsManage"
|
|
1013
|
-
});
|
|
1014
|
-
},
|
|
1015
|
-
add() {
|
|
1016
|
-
this.$refs.editEchartsConfig.open(null);
|
|
1017
|
-
},
|
|
1018
|
-
amplify() {
|
|
1019
|
-
this.list.concat(this.personalList).filter((e) => e.id === this.viewId)[0] && this.$refs.refCharts.amplify();
|
|
1020
|
-
},
|
|
1021
|
-
change(t) {
|
|
1022
|
-
let e = this.list.concat(this.personalList).filter((o) => o.id == this.viewId)[0], s = JSON.parse(e.classlabel);
|
|
1023
|
-
if (s.length > 1)
|
|
1024
|
-
return;
|
|
1025
|
-
let i = t.name, r = s[0].dictTypeCode ? s[0].dictTypeCode : "";
|
|
1026
|
-
if (r) {
|
|
1027
|
-
let o = this.getDictionary(r).filter((l) => l.name == t.name)[0];
|
|
1028
|
-
i = o !== void 0 ? o.code : "";
|
|
1029
|
-
}
|
|
1030
|
-
let a = s[0].dataIndex, n = this.loadData.filter((o) => o[a] == i);
|
|
1031
|
-
this.dataSource = [...n], (i === "" || i === `${this.$i18nt("gd.echarts.none", "\u7A7A\u767D")}`) && (n = this.loadData.filter((o) => o[a] === null)), this.$emit("setLoadData", n);
|
|
1032
|
-
},
|
|
1033
|
-
handleMenuClick(t) {
|
|
1034
|
-
t.id !== this.viewId && (this.viewId = t.id, this.$refs.popover.doClose(), this.seeEcharts());
|
|
1035
|
-
},
|
|
1036
|
-
open() {
|
|
1037
|
-
this.visible = !0, this.spinning = !0, this.$nextTick(() => {
|
|
1038
|
-
Promise.all([this.getList(), this.getPersonalList()]).then((t) => {
|
|
1039
|
-
let e = this.list.concat(this.personalList);
|
|
1040
|
-
this.viewId = this.viewId == "" ? e.length > 0 ? e[0].id : this.viewId : this.viewId, this.seeEcharts(), this.spinning = !1;
|
|
1041
|
-
});
|
|
1042
|
-
});
|
|
1043
|
-
},
|
|
1044
|
-
seeEcharts() {
|
|
1045
|
-
this.$nextTick(() => {
|
|
1046
|
-
setTimeout(() => {
|
|
1047
|
-
let t = this.list.concat(this.personalList).filter((s) => s.id == this.viewId)[0];
|
|
1048
|
-
if (t === void 0)
|
|
1049
|
-
return;
|
|
1050
|
-
let e = {
|
|
1051
|
-
tableId: this.tableData.id,
|
|
1052
|
-
mode: t.collectway,
|
|
1053
|
-
type: t.echartstype,
|
|
1054
|
-
columnName: t.echartsorder,
|
|
1055
|
-
list: JSON.parse(t.classlabel),
|
|
1056
|
-
name: t.name,
|
|
1057
|
-
data: this.loadData,
|
|
1058
|
-
transKey: t.transkey
|
|
1059
|
-
};
|
|
1060
|
-
console.log(e), this.$refs.refCharts.open(e);
|
|
1061
|
-
}, 0);
|
|
1062
|
-
});
|
|
1063
|
-
},
|
|
1064
|
-
setLoadData(t) {
|
|
1065
|
-
this.loadData = [...t], this.viewId != "" && this.visible && this.seeEcharts();
|
|
1066
|
-
},
|
|
1067
|
-
getList() {
|
|
1068
|
-
return le({
|
|
1069
|
-
sysCodeGenId: this.tableData.id
|
|
1070
|
-
}).then((t) => (t.code == 200 && (this.list = t.data), this.loading = !0, t.data));
|
|
1071
|
-
},
|
|
1072
|
-
getPersonalList() {
|
|
1073
|
-
return de({
|
|
1074
|
-
sysCodeGenId: this.tableData.id
|
|
1075
|
-
}).then((t) => (t.code == 200 && (this.personalList = t.data), t.data));
|
|
1076
|
-
},
|
|
1077
|
-
closed() {
|
|
1078
|
-
this.visible = !1;
|
|
1079
|
-
},
|
|
1080
|
-
fadeColor(t, e) {
|
|
1081
|
-
let s = parseInt(t.substring(1, 3), 16), i = parseInt(t.substring(3, 5), 16), r = parseInt(t.substring(5, 7), 16);
|
|
1082
|
-
return `rgba(${s},${i},${r},${e})`;
|
|
1083
|
-
},
|
|
1084
|
-
getDictionary(t) {
|
|
1085
|
-
return this.$options.filters.dictData(t);
|
|
1086
|
-
},
|
|
1087
|
-
doEvent(t) {
|
|
1088
|
-
let e = t.item.functionName;
|
|
1089
|
-
this[e] && this[e]();
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
var Re = function() {
|
|
1094
|
-
var e = this, s = e._self._c;
|
|
1095
|
-
return s("div", [s("el-drawer", { attrs: { visible: e.visible, "close-on-press-escape": !1, "append-to-body": !1, "destroy-on-close": !0, "modal-append-to-body": !0, modal: !1, wrapperClosable: !1, size: e.width, "custom-class": "gd-drawer-chart", "show-close": !1 }, on: { "update:visible": function(i) {
|
|
1096
|
-
e.visible = i;
|
|
1097
|
-
} } }, [s("template", { slot: "title" }, [s("div", { staticClass: "gd-charts-head" }, [s("div", { staticClass: "head-list" }, [s("el-popover", { ref: "popover", attrs: { placement: "bottom-start", trigger: "click" } }, [s("div", { staticClass: "selectionl-popover", style: { "--dilute": e.fadeColord } }, [s("div", { staticClass: "selectionl-popover-name" }, [s("div", { staticClass: "name-title" }, [e._v(" " + e._s(e.$i18nt("gd.echarts.sysEcharts", "\u7CFB\u7EDF\u56FE\u8868")) + " ")])]), s("div", { staticClass: "popover-dashed" }, [s("el-divider", { attrs: { dashed: "" } })], 1), e._l(e.list, function(i) {
|
|
1098
|
-
return [s("div", { staticClass: "selectionl-popover-item", on: { click: function(r) {
|
|
1099
|
-
return e.handleMenuClick(i);
|
|
1100
|
-
} } }, [s("div", { staticClass: "name-title" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transKey}`, i.name)) + " ")]), e.viewId === i.id ? s("i", { staticClass: "gd-icons gd-icon-a-dingshuding-fill1" }) : e._e()])];
|
|
1101
|
-
}), e.list.length === 0 && !e.spinning ? s("div", { staticClass: "selectionl-popover-item" }, [s("div", { staticClass: "name-title" }, [e._v(" " + e._s(e.$i18nt("gd.echarts.noSysEcharts", "\u6682\u65E0\u7CFB\u7EDF\u56FE\u8868")) + " ")])]) : e._e(), s("div", { staticClass: "popover-solid" }, [s("el-divider")], 1), s("div", { staticClass: "selectionl-popover-name" }, [s("div", { staticClass: "name-title" }, [e._v(" " + e._s(e.$i18nt("gd.echarts.myEcharts", "\u6211\u7684\u56FE\u8868")) + " ")]), s("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticStyle: { "margin-left": "6px" }, attrs: { placement: "top", "open-delay": 50 } }, [s("template", { slot: "content" }, [e._v(" " + e._s(e.$i18nt("gd.echarts.echartsManage", "\u7BA1\u7406\u4E2A\u4EBA\u56FE\u8868")) + " ")]), s("i", { staticClass: "el-icon-setting active-color", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: e.echartsManage } })], 2), s("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticStyle: { "margin-left": "6px" }, attrs: { placement: "top", "open-delay": 50 } }, [s("template", { slot: "content" }, [e._v(" " + e._s(e.$i18nt("gd.echarts.createEcharts", "\u521B\u5EFA\u4E2A\u4EBA\u56FE\u8868")) + " ")]), s("i", { staticClass: "el-icon-plus active-color", staticStyle: { "font-size": "22px", cursor: "pointer" }, on: { click: e.add } })], 2)], 1), s("div", { staticClass: "popover-dashed" }, [s("el-divider", { attrs: { dashed: "" } })], 1), e._l(e.personalList, function(i) {
|
|
1102
|
-
return [s("div", { staticClass: "selectionl-popover-item", on: { click: function(r) {
|
|
1103
|
-
return e.handleMenuClick(i);
|
|
1104
|
-
} } }, [s("div", { staticClass: "name-title" }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${i.transKey}`, i.name)) + " ")]), e.viewId === i.id ? s("i", { staticClass: "gd-icons gd-icon-a-dingshuding-fill1" }) : e._e()])];
|
|
1105
|
-
})], 2), s("el-button", { attrs: { slot: "reference", type: "text" }, slot: "reference" }, [s("div", { staticClass: "selectionl-popover-view" }, [s("div", { staticClass: "selectionl-popover-name line1" }, [e._v(e._s(e.getTitle))]), s("i", { staticClass: "el-icon-arrow-down", staticStyle: { color: "#606266", "font-size": "17px" } })])])], 1)], 1), s("div", { staticClass: "head-btn" }, [s("gd-modal-title", { attrs: { title: "", buttons: e.getButtons, confirmLoading: e.spinning, showFullscreen: !1, showClose: !0 }, on: { changeEvent: e.doEvent } })], 1)])]), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.spinning, expression: "spinning" }], ref: "chartsDat", staticClass: "gd-charts-data" }, [e.visible ? s("gd-echarts", { ref: "refCharts", attrs: { loadData: e.fieldData, color: e.colorList }, on: { change: e.change } }) : e._e()], 1)], 2), s("EditEchartsConfig", { ref: "editEchartsConfig", attrs: { table: e.tableData, holderType: 2 }, on: { ok: e.open } })], 1);
|
|
1106
|
-
}, Pe = [], Ee = /* @__PURE__ */ m(
|
|
1107
|
-
Oe,
|
|
1108
|
-
Re,
|
|
1109
|
-
Pe,
|
|
1110
|
-
!1,
|
|
1111
|
-
null,
|
|
1112
|
-
"8303a7f0",
|
|
1113
|
-
null,
|
|
1114
|
-
null
|
|
1115
|
-
);
|
|
1116
|
-
const qe = Ee.exports, je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1117
|
-
__proto__: null,
|
|
1118
|
-
default: qe
|
|
1119
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1120
|
-
const Qe = {
|
|
1121
|
-
props: {
|
|
1122
|
-
viewQueries: {
|
|
1123
|
-
type: Array,
|
|
1124
|
-
default: () => []
|
|
1125
|
-
},
|
|
1126
|
-
fieldData: {
|
|
1127
|
-
type: Array,
|
|
1128
|
-
default: () => []
|
|
1129
|
-
},
|
|
1130
|
-
tableData: {
|
|
1131
|
-
type: Object,
|
|
1132
|
-
default: () => ({})
|
|
1133
|
-
},
|
|
1134
|
-
queryParam: {
|
|
1135
|
-
type: Object,
|
|
1136
|
-
default: () => ({})
|
|
1137
|
-
}
|
|
1138
|
-
},
|
|
1139
|
-
data() {
|
|
1140
|
-
return {
|
|
1141
|
-
ruleFormData: {},
|
|
1142
|
-
labelWidth: "120px",
|
|
1143
|
-
list: []
|
|
1144
|
-
};
|
|
1145
|
-
},
|
|
1146
|
-
components: {
|
|
1147
|
-
SelectFkMultiple: E
|
|
1148
|
-
},
|
|
1149
|
-
computed: {
|
|
1150
|
-
getColumns() {
|
|
1151
|
-
return this.list.filter((t) => !t.options.hidden && t.isQuery);
|
|
1152
|
-
},
|
|
1153
|
-
gstyle() {
|
|
1154
|
-
return `display: grid;grid-template-columns: repeat(${this.getColumns.length}, minmax(0, 1fr));`;
|
|
1155
|
-
},
|
|
1156
|
-
pickerIntervalOptions() {
|
|
1157
|
-
return {
|
|
1158
|
-
shortcuts: [
|
|
1159
|
-
{
|
|
1160
|
-
text: this.$i18nt("gd.view.lastWeek", "\u6700\u8FD1\u4E00\u5468"),
|
|
1161
|
-
onClick(t) {
|
|
1162
|
-
const e = new Date(), s = new Date();
|
|
1163
|
-
s.setTime(s.getTime() - 3600 * 1e3 * 24 * 6), t.$emit("pick", [s, e]);
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
{
|
|
1167
|
-
text: this.$i18nt("gd.view.lastMonth", "\u6700\u8FD1\u4E00\u4E2A\u6708"),
|
|
1168
|
-
onClick(t) {
|
|
1169
|
-
const e = new Date(), s = new Date();
|
|
1170
|
-
s.setTime(s.getTime() - 3600 * 1e3 * 24 * 30), t.$emit("pick", [s, e]);
|
|
1171
|
-
}
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
text: this.$i18nt("gd.view.pastThreeMonths", "\u6700\u8FD1\u4E09\u4E2A\u6708"),
|
|
1175
|
-
onClick(t) {
|
|
1176
|
-
const e = new Date(), s = new Date();
|
|
1177
|
-
s.setTime(s.getTime() - 3600 * 1e3 * 24 * 90), t.$emit("pick", [s, e]);
|
|
1178
|
-
}
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
text: this.$i18nt("gd.view.currentWeek", "\u672C\u5468"),
|
|
1182
|
-
onClick(t) {
|
|
1183
|
-
q(t);
|
|
1184
|
-
}
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
text: this.$i18nt("gd.view.lastWeeks", "\u4E0A\u4E00\u5468"),
|
|
1188
|
-
onClick(t) {
|
|
1189
|
-
j(t);
|
|
1190
|
-
}
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
text: this.$i18nt("gd.view.nextWeeks", "\u4E0B\u4E00\u5468"),
|
|
1194
|
-
onClick(t) {
|
|
1195
|
-
Q(t);
|
|
1196
|
-
}
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
text: this.$i18nt("gd.view.thisMonth", "\u672C\u6708"),
|
|
1200
|
-
onClick(t) {
|
|
1201
|
-
K(t);
|
|
1202
|
-
}
|
|
1203
|
-
},
|
|
1204
|
-
{
|
|
1205
|
-
text: this.$i18nt("gd.view.lastMonths", "\u4E0A\u4E2A\u6708"),
|
|
1206
|
-
onClick(t) {
|
|
1207
|
-
z(t);
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
text: this.$i18nt("gd.view.nextMonths", "\u4E0B\u4E2A\u6708"),
|
|
1212
|
-
onClick(t) {
|
|
1213
|
-
A(t);
|
|
1214
|
-
}
|
|
1215
|
-
},
|
|
1216
|
-
{
|
|
1217
|
-
text: this.$i18nt("gd.view.currentQuarter", "\u672C\u5B63\u5EA6"),
|
|
1218
|
-
onClick(t) {
|
|
1219
|
-
H(t);
|
|
1220
|
-
}
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
text: this.$i18nt("gd.view.lastQuarter", "\u4E0A\u5B63\u5EA6"),
|
|
1224
|
-
onClick(t) {
|
|
1225
|
-
G(t);
|
|
1226
|
-
}
|
|
1227
|
-
},
|
|
1228
|
-
{
|
|
1229
|
-
text: this.$i18nt("gd.view.nextQuarter", "\u4E0B\u5B63\u5EA6"),
|
|
1230
|
-
onClick(t) {
|
|
1231
|
-
U(t);
|
|
1232
|
-
}
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
text: this.$i18nt("gd.view.currentYear", "\u672C\u5E74"),
|
|
1236
|
-
onClick(t) {
|
|
1237
|
-
$(t);
|
|
1238
|
-
}
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
text: this.$i18nt("gd.view.lastYear", "\u53BB\u5E74"),
|
|
1242
|
-
onClick(t) {
|
|
1243
|
-
$(t, -1);
|
|
1244
|
-
}
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
text: this.$i18nt("gd.view.nextYear", "\u660E\u5E74"),
|
|
1248
|
-
onClick(t) {
|
|
1249
|
-
$(t, 1);
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
]
|
|
1253
|
-
};
|
|
1254
|
-
},
|
|
1255
|
-
pickerOptions() {
|
|
1256
|
-
return {
|
|
1257
|
-
shortcuts: [
|
|
1258
|
-
{
|
|
1259
|
-
text: this.$i18nt("gd.view.today", "\u4ECA\u5929"),
|
|
1260
|
-
onClick(t) {
|
|
1261
|
-
t.$emit("pick", new Date());
|
|
1262
|
-
}
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
text: this.$i18nt("gd.view.yesterday", "\u6628\u5929"),
|
|
1266
|
-
onClick(t) {
|
|
1267
|
-
const e = new Date();
|
|
1268
|
-
e.setTime(e.getTime() - 3600 * 1e3 * 24), t.$emit("pick", e);
|
|
1269
|
-
}
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
text: this.$i18nt("gd.view.daysAgo3", "3\u5929\u4E4B\u524D"),
|
|
1273
|
-
onClick(t) {
|
|
1274
|
-
const e = new Date();
|
|
1275
|
-
e.setTime(e.getTime() - 3600 * 1e3 * 24 * 3), t.$emit("pick", e);
|
|
1276
|
-
}
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
text: this.$i18nt("gd.view.daysAgo5", "5\u5929\u4E4B\u524D"),
|
|
1280
|
-
onClick(t) {
|
|
1281
|
-
const e = new Date();
|
|
1282
|
-
e.setTime(e.getTime() - 3600 * 1e3 * 24 * 5), t.$emit("pick", e);
|
|
1283
|
-
}
|
|
1284
|
-
},
|
|
1285
|
-
{
|
|
1286
|
-
text: this.$i18nt("gd.view.daysAgo7", "7\u5929\u4E4B\u524D"),
|
|
1287
|
-
onClick(t) {
|
|
1288
|
-
const e = new Date();
|
|
1289
|
-
e.setTime(e.getTime() - 3600 * 1e3 * 24 * 7), t.$emit("pick", e);
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
]
|
|
1293
|
-
};
|
|
1294
|
-
}
|
|
1295
|
-
},
|
|
1296
|
-
methods: {
|
|
1297
|
-
columnFkData(t, e) {
|
|
1298
|
-
this.list = this.list.map((s) => Object.assign({ ...s }, { fkData: s.prop === t.prop ? t.fkData : s.fkData }));
|
|
1299
|
-
},
|
|
1300
|
-
handleChange() {
|
|
1301
|
-
this.$refs.ruleForm.validate((t, e) => {
|
|
1302
|
-
if (t) {
|
|
1303
|
-
let s = /* @__PURE__ */ new Map();
|
|
1304
|
-
for (let i in this.ruleFormData) {
|
|
1305
|
-
let r = this.getColumns.filter((a) => a.prop === i)[0];
|
|
1306
|
-
r && s.set(i, ["checkbox"].includes(r.effectType) ? this.ruleFormData[i].join(",") : this.ruleFormData[i]);
|
|
1307
|
-
}
|
|
1308
|
-
this.$emit("save", Object.fromEntries(s), this.list);
|
|
1309
|
-
}
|
|
1310
|
-
});
|
|
1311
|
-
},
|
|
1312
|
-
queriesInit() {
|
|
1313
|
-
this.init(), this.$nextTick(() => {
|
|
1314
|
-
setTimeout(() => {
|
|
1315
|
-
let t = [];
|
|
1316
|
-
for (let e in this.ruleFormData) {
|
|
1317
|
-
const s = this.list.filter((i) => i.prop === e)[0];
|
|
1318
|
-
["selectFkMultiple"].includes(s.effectType) && this.ruleFormData[e] && this.ruleFormData[e].length > 0 && t.push(s);
|
|
1319
|
-
}
|
|
1320
|
-
t.forEach((e) => {
|
|
1321
|
-
const s = this.getColumns.filter((i) => i.prop === e.prop)[0];
|
|
1322
|
-
if (s) {
|
|
1323
|
-
const i = `fk_${s.prop}`;
|
|
1324
|
-
this.$refs[i][0] && this.$refs[i][0].init();
|
|
1325
|
-
}
|
|
1326
|
-
});
|
|
1327
|
-
}, 0);
|
|
1328
|
-
});
|
|
1329
|
-
},
|
|
1330
|
-
init() {
|
|
1331
|
-
let t = [], e = /* @__PURE__ */ new Map();
|
|
1332
|
-
this.getDictionary({ dictTypeCode: "time_longshort" }), this.viewQueries.forEach((s) => {
|
|
1333
|
-
const i = this.fieldData.filter((a) => a.columnname === s.prop)[0], r = i ? i.isquery : !0;
|
|
1334
|
-
t.push(Object.assign({ ...s }, { isQuery: r, fkData: s.fkData })), ["checkbox", "selectMultiple"].includes(s.effectType) ? e.set(s.prop, []) : ["inputnumber", "double", "currency"].includes(s.effectType) ? e.set(s.prop, void 0) : e.set(s.prop, "");
|
|
1335
|
-
});
|
|
1336
|
-
for (let s in this.queryParam)
|
|
1337
|
-
e.has(s) && e.set(s, this.queryParam[s]);
|
|
1338
|
-
this.ruleFormData = Object.fromEntries(e), this.list = t;
|
|
1339
|
-
},
|
|
1340
|
-
getDict(t) {
|
|
1341
|
-
return t.dictData ? t.dictData : this.getDictionary(t);
|
|
1342
|
-
},
|
|
1343
|
-
getDictionary(t) {
|
|
1344
|
-
return this.$options.filters.dictData(t.dictTypeCode);
|
|
1345
|
-
},
|
|
1346
|
-
changeTrigger() {
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
};
|
|
1350
|
-
var Ke = function() {
|
|
1351
|
-
var e = this, s = e._self._c;
|
|
1352
|
-
return s("div", { staticClass: "gd-quick-search" }, [s("el-form", { ref: "ruleForm", staticClass: "gd-form table-queries-form", attrs: { model: e.ruleFormData, size: "small", "label-position": "right", inline: !1, "label-width": e.labelWidth }, nativeOn: { submit: function(i) {
|
|
1353
|
-
i.preventDefault();
|
|
1354
|
-
} } }, [s("div", { style: e.gstyle }, [e._l(e.getColumns, function(i, r) {
|
|
1355
|
-
return [s("el-form-item", { staticStyle: { width: "100%", margin: "0 auto" }, attrs: { label: e.$i18nt(i.transKey, i.label), prop: i.prop, rules: i.rules, "label-width": i.labelWidth, title: e.$i18nt(i.transKey, i.label) }, nativeOn: { submit: function(a) {
|
|
1356
|
-
a.preventDefault();
|
|
1357
|
-
} } }, [["inputnumber", "double", "currency"].includes(i.effectType) ? [s("el-input-number", { staticStyle: { width: "100%", "text-align": "left" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), clearable: "", disabled: i.disabled, "controls-position": "right" }, on: { change: function(a) {
|
|
1358
|
-
return e.handleChange(i);
|
|
1359
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1360
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1361
|
-
}, expression: "ruleFormData[column.prop]" } })] : i.effectType === "checkbox" ? [e.ruleFormData[i.prop] ? s("el-checkbox-group", { attrs: { disabled: i.disabled }, on: { change: function(a) {
|
|
1362
|
-
return e.handleChange(i);
|
|
1363
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1364
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1365
|
-
}, expression: "ruleFormData[column.prop]" } }, e._l(e.getDict(i), function(a) {
|
|
1366
|
-
return s("el-checkbox", { key: a.code, attrs: { label: a.code, name: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.name)) + " ")]);
|
|
1367
|
-
}), 1) : e._e()] : i.effectType === "radio" ? [s("el-radio-group", { attrs: { disabled: i.disabled }, on: { input: function(a) {
|
|
1368
|
-
return e.handleChange(i);
|
|
1369
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1370
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1371
|
-
}, expression: "ruleFormData[column.prop]" } }, e._l(e.getDict(i), function(a) {
|
|
1372
|
-
return s("el-radio", { key: a.code, attrs: { label: a.code, name: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.name)) + " ")]);
|
|
1373
|
-
}), 1)] : i.effectType === "selectMultiple" ? [s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", clearable: "", multiple: "", filterable: "", "collapse-tags": !0, "popper-append-to-body": !0, disabled: i.disabled }, on: { change: function(a) {
|
|
1374
|
-
return e.handleChange(i);
|
|
1375
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1376
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1377
|
-
}, expression: "ruleFormData[column.prop]" } }, e._l(e.getDict(i), function(a) {
|
|
1378
|
-
return s("el-option", { key: a.code, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.name)) + " ")]);
|
|
1379
|
-
}), 1)] : i.effectType === "select" ? [s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", clearable: "", "collapse-tags": !0, "popper-append-to-body": !0, disabled: i.disabled }, on: { change: function(a) {
|
|
1380
|
-
return e.handleChange(i);
|
|
1381
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1382
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1383
|
-
}, expression: "ruleFormData[column.prop]" } }, e._l(e.getDict(i), function(a) {
|
|
1384
|
-
return s("el-option", { key: a.code, attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.name)) + " ")]);
|
|
1385
|
-
}), 1)] : i.effectType === "selectTable" ? [s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", clearable: "", "collapse-tags": !0, "popper-append-to-body": !0, disabled: i.disabled }, on: { change: function(a) {
|
|
1386
|
-
return e.handleChange(i);
|
|
1387
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1388
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1389
|
-
}, expression: "ruleFormData[column.prop]" } }, e._l(e.tableLists, function(a) {
|
|
1390
|
-
return s("el-option", { key: a.id, attrs: { label: e.$i18nt(`Dynamics.${a.transkey}`, a.busname), value: a.id } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.busname)) + " " + e._s(a.tablename) + " ")]);
|
|
1391
|
-
}), 1)] : i.effectType === "selectFkMultiple" ? [s("SelectFkMultiple", { ref: `fk_${i.prop}`, refInFor: !0, attrs: { column: i, ruleFormData: e.ruleFormData, visible: !0, changeTrigger: e.changeTrigger, tagWidth: "56%" }, on: { change: function(a) {
|
|
1392
|
-
return e.handleChange(i);
|
|
1393
|
-
}, setFkData: e.columnFkData } })] : i.effectType == "datepicker" ? [i.options.displayStyle === 1 ? [i.hasTimePicker ? s("el-time-picker", { staticStyle: { width: "100%" }, attrs: { "value-format": i.valueFormat, format: i.valueFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: i.disabled === void 0 ? !1 : i.disabled }, on: { change: function(a) {
|
|
1394
|
-
return e.handleChange(i);
|
|
1395
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1396
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1397
|
-
}, expression: "ruleFormData[column.prop]" } }) : [i.pickerType === "date" ? s("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: i.pickerType, "value-format": i.valueFormat, format: i.valueFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: i.disabled === void 0 ? !1 : i.disabled, "picker-options": e.pickerOptions }, on: { change: function(a) {
|
|
1398
|
-
return e.handleChange(i);
|
|
1399
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1400
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1401
|
-
}, expression: "ruleFormData[column.prop]" } }) : s("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: i.pickerType, "value-format": i.valueFormat, format: i.valueFormat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: i.disabled === void 0 ? !1 : i.disabled }, on: { change: function(a) {
|
|
1402
|
-
return e.handleChange(i);
|
|
1403
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1404
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1405
|
-
}, expression: "ruleFormData[column.prop]" } })]] : [i.pickerType === "month" ? s("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "monthrange", format: "yyyy-MM", "value-format": "yyyy-MM", "range-separator": "~", "start-placeholder": e.$i18nt("el.datepicker.startDate", "\u5F00\u59CB\u65E5\u671F"), "end-placeholder": e.$i18nt("el.datepicker.endDate", "\u7ED3\u675F\u65E5\u671F"), disabled: i.disabled === void 0 ? !1 : i.disabled }, on: { change: function(a) {
|
|
1406
|
-
return e.handleChange(i);
|
|
1407
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1408
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1409
|
-
}, expression: "ruleFormData[column.prop]" } }) : s("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "daterange", format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", "range-separator": "~", "start-placeholder": e.$i18nt("el.datepicker.startDate", "\u5F00\u59CB\u65E5\u671F"), "end-placeholder": e.$i18nt("el.datepicker.endDate", "\u7ED3\u675F\u65E5\u671F"), disabled: i.disabled === void 0 ? !1 : i.disabled, "picker-options": e.pickerIntervalOptions }, on: { change: function(a) {
|
|
1410
|
-
return e.handleChange(i);
|
|
1411
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1412
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1413
|
-
}, expression: "ruleFormData[column.prop]" } })]] : [s("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), clearable: "", disabled: i.disabled === void 0 ? !1 : i.disabled }, on: { change: function(a) {
|
|
1414
|
-
return e.handleChange(i);
|
|
1415
|
-
} }, model: { value: e.ruleFormData[i.prop], callback: function(a) {
|
|
1416
|
-
e.$set(e.ruleFormData, i.prop, a);
|
|
1417
|
-
}, expression: "ruleFormData[column.prop]" } })]], 2)];
|
|
1418
|
-
})], 2)])], 1);
|
|
1419
|
-
}, ze = [], Ae = /* @__PURE__ */ m(
|
|
1420
|
-
Qe,
|
|
1421
|
-
Ke,
|
|
1422
|
-
ze,
|
|
1423
|
-
!1,
|
|
1424
|
-
null,
|
|
1425
|
-
"ef263c12",
|
|
1426
|
-
null,
|
|
1427
|
-
null
|
|
1428
|
-
);
|
|
1429
|
-
const He = Ae.exports, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1430
|
-
__proto__: null,
|
|
1431
|
-
default: He
|
|
1432
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1433
|
-
var b = null;
|
|
1434
|
-
const Ue = {
|
|
1435
|
-
name: "GdViewBuildDesigner",
|
|
1436
|
-
props: {
|
|
1437
|
-
record: {
|
|
1438
|
-
type: Object,
|
|
1439
|
-
default: () => ({})
|
|
1440
|
-
},
|
|
1441
|
-
develop: {
|
|
1442
|
-
type: [Number, String],
|
|
1443
|
-
default: 1
|
|
1444
|
-
},
|
|
1445
|
-
openMode: {
|
|
1446
|
-
type: [String, Number],
|
|
1447
|
-
default: 1
|
|
1448
|
-
},
|
|
1449
|
-
height: {
|
|
1450
|
-
type: Number,
|
|
1451
|
-
default: 100
|
|
1452
|
-
},
|
|
1453
|
-
foreign: {
|
|
1454
|
-
type: Object,
|
|
1455
|
-
default: () => ({})
|
|
1456
|
-
},
|
|
1457
|
-
disabledRowId: {
|
|
1458
|
-
type: Array,
|
|
1459
|
-
default: () => []
|
|
1460
|
-
},
|
|
1461
|
-
excludeButtons: {
|
|
1462
|
-
type: Array,
|
|
1463
|
-
default: () => []
|
|
1464
|
-
},
|
|
1465
|
-
lineQuickView: {
|
|
1466
|
-
type: Function
|
|
1467
|
-
},
|
|
1468
|
-
istable: {
|
|
1469
|
-
type: Boolean,
|
|
1470
|
-
default: !1
|
|
1471
|
-
}
|
|
1472
|
-
},
|
|
1473
|
-
data() {
|
|
1474
|
-
return {
|
|
1475
|
-
statu: !1,
|
|
1476
|
-
laoding: !1,
|
|
1477
|
-
show: !1,
|
|
1478
|
-
queryTable: {},
|
|
1479
|
-
queryParam: {},
|
|
1480
|
-
formList: [],
|
|
1481
|
-
tableData: {},
|
|
1482
|
-
sysViewList: [],
|
|
1483
|
-
personalViewList: [],
|
|
1484
|
-
sysViewButtons: [],
|
|
1485
|
-
columns: [],
|
|
1486
|
-
columnsSetting: [],
|
|
1487
|
-
selectedRowKeys: [],
|
|
1488
|
-
selectedRows: [],
|
|
1489
|
-
viewCode: "",
|
|
1490
|
-
defaultViewId: 0,
|
|
1491
|
-
queryCriteria: {},
|
|
1492
|
-
showSummary: !1,
|
|
1493
|
-
summaryData: {},
|
|
1494
|
-
viewRecord: {},
|
|
1495
|
-
loadData: (t) => {
|
|
1496
|
-
const e = this.triggerFilterData && this.triggerFilterData.fieldData ? this.triggerFilterData.fieldData : this.fieldData, s = this.triggerFilterData && this.triggerFilterData.tableQueries ? this.triggerFilterData.tableQueries : this.tableQueries, i = Object.assign(
|
|
1497
|
-
t,
|
|
1498
|
-
this.queryTable,
|
|
1499
|
-
T(this.queryParam, e, s, this.getDictionary("time_longshort")),
|
|
1500
|
-
this.foreign
|
|
1501
|
-
);
|
|
1502
|
-
return this.queryCriteria = { ...i }, this.openMode == 3 && this.foreign.fkValue != "" && String(this.foreign.fkValue).split("u").length > 1 ? new Promise((r, a) => {
|
|
1503
|
-
r({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
|
|
1504
|
-
}) : Z(i).then((r) => {
|
|
1505
|
-
this.triggerFilterData = null;
|
|
1506
|
-
let a = [];
|
|
1507
|
-
if (r.code === 200) {
|
|
1508
|
-
a = r.data.rows.filter((l) => l.id !== null);
|
|
1509
|
-
const o = r.data.rows.filter((l) => l.id === null)[0];
|
|
1510
|
-
this.summaryData = o || {}, this.showSummary = !!o, this.$emit("changeData", a), this.$refs.charts && this.$refs.charts.setLoadData(a);
|
|
1511
|
-
} else
|
|
1512
|
-
this.$message.error(r.message);
|
|
1513
|
-
const n = r.data ? r.data : {};
|
|
1514
|
-
return Object.assign(n, {
|
|
1515
|
-
rows: a
|
|
1516
|
-
});
|
|
1517
|
-
});
|
|
1518
|
-
},
|
|
1519
|
-
amount: ({ columns: t, data: e }) => {
|
|
1520
|
-
let s = [];
|
|
1521
|
-
return t.forEach((i, r) => {
|
|
1522
|
-
if (i.property)
|
|
1523
|
-
this.summaryData[i.property] !== null && !this.istable ? s[r] = this.$i18nt("gd.table.subtotal", "\u5C0F\u8BA1") + ": " + this.summaryData[i.property] : s[r] = "";
|
|
1524
|
-
else {
|
|
1525
|
-
s[r] = "";
|
|
1526
|
-
return;
|
|
1527
|
-
}
|
|
1528
|
-
}), s;
|
|
1529
|
-
},
|
|
1530
|
-
tableQueries: [],
|
|
1531
|
-
imgList: [],
|
|
1532
|
-
currentImg: "",
|
|
1533
|
-
fieldData: [],
|
|
1534
|
-
hideQueryField: [],
|
|
1535
|
-
fileOptions: {},
|
|
1536
|
-
styled: {},
|
|
1537
|
-
componentList: [],
|
|
1538
|
-
callbackFun: null,
|
|
1539
|
-
renderHeaderList: [],
|
|
1540
|
-
triggerFilterData: null,
|
|
1541
|
-
showComponent: ""
|
|
1542
|
-
};
|
|
1543
|
-
},
|
|
1544
|
-
watch: {
|
|
1545
|
-
selectedRows(t, e) {
|
|
1546
|
-
this.baseUsageBtn();
|
|
1547
|
-
}
|
|
1548
|
-
},
|
|
1549
|
-
components: {
|
|
1550
|
-
ViewSelection: () => Promise.resolve().then(() => Me),
|
|
1551
|
-
ChildRenItem: () => Promise.resolve().then(() => ye),
|
|
1552
|
-
ImgPreview: () => import("./components.imgpreview.57290b54.mjs"),
|
|
1553
|
-
XlsxExport: () => import("./components.xlsxexport.d98572f8.mjs"),
|
|
1554
|
-
XlsxImport: () => import("./components.xlsximport.cffa88fe.mjs").then((t) => t.m),
|
|
1555
|
-
TeamSharing: () => import("./components.teamsharing.fb4351ec.mjs"),
|
|
1556
|
-
BatchUpdate: () => Promise.resolve().then(() => De),
|
|
1557
|
-
DataAssign: () => import("./components.dataassign.56632583.mjs"),
|
|
1558
|
-
ViewCharts: () => Promise.resolve().then(() => je),
|
|
1559
|
-
QuickSearch: () => Promise.resolve().then(() => Ge),
|
|
1560
|
-
StatusChange: () => import("./components.statuschange.15938660.mjs")
|
|
1561
|
-
},
|
|
1562
|
-
computed: {
|
|
1563
|
-
paginationStyle() {
|
|
1564
|
-
const t = this.options.pagerFlex !== void 0 ? this.options.pagerFlex : "";
|
|
1565
|
-
return t !== "" ? `justify-content:${t};` : "";
|
|
1566
|
-
},
|
|
1567
|
-
layoutConfig() {
|
|
1568
|
-
let t = {
|
|
1569
|
-
viewsGroup: !0,
|
|
1570
|
-
butGroup: !0,
|
|
1571
|
-
filter: !0,
|
|
1572
|
-
chart: !0,
|
|
1573
|
-
rfresh: !0,
|
|
1574
|
-
tableSize: !0,
|
|
1575
|
-
tableColumn: !0,
|
|
1576
|
-
pager: !0
|
|
1577
|
-
};
|
|
1578
|
-
return (this.options.layoutConfig !== void 0 ? this.options.layoutConfig : !0) && this.record.layoutConfig !== void 0 && (t = this.record.layoutConfig), t;
|
|
1579
|
-
},
|
|
1580
|
-
getQuickQueries() {
|
|
1581
|
-
return this.tableQueries.filter((e) => e.quick);
|
|
1582
|
-
},
|
|
1583
|
-
rowKey() {
|
|
1584
|
-
let t = "id";
|
|
1585
|
-
if (this.tableData.isvirtualtable === 1) {
|
|
1586
|
-
const s = this.fieldData.filter((i) => i.isprimarykey === 1)[0];
|
|
1587
|
-
t = s ? s.columnname : t;
|
|
1588
|
-
}
|
|
1589
|
-
return t;
|
|
1590
|
-
},
|
|
1591
|
-
disabledRefresh() {
|
|
1592
|
-
return this.openMode != 3 ? !1 : this.foreign.fkValue === "";
|
|
1593
|
-
},
|
|
1594
|
-
tableSized() {
|
|
1595
|
-
return this.openMode == 3 ? this.tableSize > 50 ? 50 : this.tableSize : this.tableSize;
|
|
1596
|
-
},
|
|
1597
|
-
paginationPageSize() {
|
|
1598
|
-
return this.openMode == 3 ? [10, 20, 30, 40, 50] : [10, 20, 30, 40, 50, 100, 200, 500];
|
|
1599
|
-
},
|
|
1600
|
-
formCode() {
|
|
1601
|
-
return this.options.form.id;
|
|
1602
|
-
},
|
|
1603
|
-
selectedKeep() {
|
|
1604
|
-
return this.openMode == 2;
|
|
1605
|
-
},
|
|
1606
|
-
viewList() {
|
|
1607
|
-
return this.sysViewList.concat(this.personalViewList);
|
|
1608
|
-
},
|
|
1609
|
-
getFristColumn() {
|
|
1610
|
-
const t = this.columnsSetting.filter((e) => e.type !== "selection" && e.checked)[0];
|
|
1611
|
-
return t || {};
|
|
1612
|
-
},
|
|
1613
|
-
getColumnsed() {
|
|
1614
|
-
return this.columns.filter((e) => e.type === "slot");
|
|
1615
|
-
},
|
|
1616
|
-
hig() {
|
|
1617
|
-
const t = this.develop === 1 ? 102 : 78, e = this.develop === 1 ? 46 + 24 + 12 : 0, s = this.develop === 1 ? this.screenHeight - 46 - t - e : this.height - t - e;
|
|
1618
|
-
return this.options.heightMode === "custom" ? this.options.height === 0 || this.options.height === "" ? s : this.options.height : s;
|
|
1619
|
-
},
|
|
1620
|
-
options() {
|
|
1621
|
-
return this.record.options;
|
|
1622
|
-
},
|
|
1623
|
-
operationuList() {
|
|
1624
|
-
return this.record.operationuList;
|
|
1625
|
-
},
|
|
1626
|
-
tableSetting() {
|
|
1627
|
-
return this.record.tableSetting;
|
|
1628
|
-
},
|
|
1629
|
-
...w(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
1630
|
-
},
|
|
1631
|
-
methods: {
|
|
1632
|
-
okAssignSharing(t, e) {
|
|
1633
|
-
this.callbackFun && typeof this.callbackFun == "function" && this.callbackFun(t), e === "teamSharing" && this.refresh();
|
|
1634
|
-
},
|
|
1635
|
-
rowClick(t, e) {
|
|
1636
|
-
if (b) {
|
|
1637
|
-
clearTimeout(b), b = null;
|
|
1638
|
-
const s = this.viewList.filter((r) => r.id === this.viewCode)[0];
|
|
1639
|
-
(s && s.isdoubleclick !== void 0 ? s.isdoubleclick : 1) === 1 && this.changeQuickView(t);
|
|
1640
|
-
return;
|
|
1641
|
-
}
|
|
1642
|
-
b = setTimeout(() => {
|
|
1643
|
-
b = null;
|
|
1644
|
-
const s = this.selectedRowKeys.filter((a) => a === t[this.rowKey])[0], i = this.selectedRowKeys.filter((a) => a !== t[this.rowKey]), r = this.selectedRowKeys.filter((a) => a[this.rowKey] !== t[this.rowKey]);
|
|
1645
|
-
this.selectedRowKeys = s ? i : i.concat([t[this.rowKey]]), this.selectedRows = s ? r : r.concat([t]), this.$emit("changeSelect", this.selectedRowKeys, this.selectedRows), this.$refs.table.rowClickSelection(t, !s, e);
|
|
1646
|
-
}, 260);
|
|
1647
|
-
},
|
|
1648
|
-
showLoading() {
|
|
1649
|
-
this.statu = !0;
|
|
1650
|
-
},
|
|
1651
|
-
hideLoading(t = 1500) {
|
|
1652
|
-
setTimeout(() => {
|
|
1653
|
-
this.statu = !1;
|
|
1654
|
-
}, t);
|
|
1655
|
-
},
|
|
1656
|
-
hideQueryParam(t) {
|
|
1657
|
-
this.hideQueryField = [...t];
|
|
1658
|
-
},
|
|
1659
|
-
setLoadData(t) {
|
|
1660
|
-
this.$refs.table.loading = !0, this.$refs.table.setLoadData(t), setTimeout(() => {
|
|
1661
|
-
this.$refs.table.loading = !1;
|
|
1662
|
-
}, 100);
|
|
1663
|
-
},
|
|
1664
|
-
baseImportData(t) {
|
|
1665
|
-
this.$refs.xlsxImport.open();
|
|
1666
|
-
},
|
|
1667
|
-
baseExportData(t) {
|
|
1668
|
-
if (t.key == 1 || t.key == 2) {
|
|
1669
|
-
this.baseExport(t);
|
|
1670
|
-
return;
|
|
1671
|
-
}
|
|
1672
|
-
if (t.key == 4) {
|
|
1673
|
-
this.baseExportSel(t);
|
|
1674
|
-
return;
|
|
1675
|
-
}
|
|
1676
|
-
let e = Object.assign(
|
|
1677
|
-
{
|
|
1678
|
-
type: t.key ? t.key : 0,
|
|
1679
|
-
whereS: []
|
|
1680
|
-
},
|
|
1681
|
-
{
|
|
1682
|
-
...this.queryTable
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
...this.foreign
|
|
1686
|
-
}
|
|
1687
|
-
);
|
|
1688
|
-
this.$refs.xlsxExport.open(e, t);
|
|
1689
|
-
},
|
|
1690
|
-
hasRowData(t, e, s = "none") {
|
|
1691
|
-
if (e === "image")
|
|
1692
|
-
return s === "none" ? !!t : t ? t.split(",") : [];
|
|
1693
|
-
if (e === "file") {
|
|
1694
|
-
const i = t ? JSON.parse(t) : [];
|
|
1695
|
-
return s === "none" ? i.length > 0 : i;
|
|
1696
|
-
}
|
|
1697
|
-
return !1;
|
|
1698
|
-
},
|
|
1699
|
-
del(t) {
|
|
1700
|
-
this.baseDel();
|
|
1701
|
-
},
|
|
1702
|
-
deactivateData() {
|
|
1703
|
-
this.baseEnable(0);
|
|
1704
|
-
},
|
|
1705
|
-
enableData() {
|
|
1706
|
-
this.baseEnable();
|
|
1707
|
-
},
|
|
1708
|
-
assign(t) {
|
|
1709
|
-
this.baseAssign(t);
|
|
1710
|
-
},
|
|
1711
|
-
batchUpdate(t) {
|
|
1712
|
-
this.baseBatchUpdate();
|
|
1713
|
-
},
|
|
1714
|
-
teamSharing(t) {
|
|
1715
|
-
this.baseTeamSharing(t);
|
|
1716
|
-
},
|
|
1717
|
-
statusChange() {
|
|
1718
|
-
this.baseStatusChange();
|
|
1719
|
-
},
|
|
1720
|
-
open(t) {
|
|
1721
|
-
this.$emit("baseOpen", t);
|
|
1722
|
-
},
|
|
1723
|
-
handleMenuClick(t) {
|
|
1724
|
-
t.id != this.viewCode && (this.viewCode = t.id, this.queryParam = {}, this.$refs.table.setTableData([], !1), this.baseGetView());
|
|
1725
|
-
},
|
|
1726
|
-
showFile(t, e, s) {
|
|
1727
|
-
if (this.statu)
|
|
1728
|
-
return;
|
|
1729
|
-
this.showLoading();
|
|
1730
|
-
const i = e[t.prop];
|
|
1731
|
-
let r = i;
|
|
1732
|
-
typeof i == "string" && (r = JSON.parse(i));
|
|
1733
|
-
let a = e.name ? e.name : s.title, n = new W(), o = [], l = {};
|
|
1734
|
-
r.forEach((c) => {
|
|
1735
|
-
let u = this.getFileBlob(c).then((f) => {
|
|
1736
|
-
n.file(c.fileoriginname, f, {
|
|
1737
|
-
binary: !0
|
|
1738
|
-
}), l[c.fileoriginname] = f;
|
|
1739
|
-
});
|
|
1740
|
-
o.push(u);
|
|
1741
|
-
});
|
|
1742
|
-
const d = this.$message({
|
|
1743
|
-
message: this.$i18nt("gd.https.downloadingFiles", "\u6587\u4EF6\u6B63\u5728\u538B\u7F29\u4E0B\u8F7D\u4E2D..."),
|
|
1744
|
-
duration: 0,
|
|
1745
|
-
iconClass: "el-icon-loading"
|
|
1746
|
-
});
|
|
1747
|
-
Promise.all(o).then(() => {
|
|
1748
|
-
n.generateAsync({
|
|
1749
|
-
type: "blob"
|
|
1750
|
-
}).then((c) => {
|
|
1751
|
-
J.saveAs(c, a), this.hideLoading(), d.close();
|
|
1752
|
-
});
|
|
1753
|
-
}).catch((c) => {
|
|
1754
|
-
d.close(), this.hideLoading(), this.$message.error("err!");
|
|
1755
|
-
});
|
|
1756
|
-
},
|
|
1757
|
-
showImg(t, e) {
|
|
1758
|
-
this.statu || (this.showLoading(), this.imgList = e, this.currentImg = t, this.$refs.imgPreview.imgListShow = !0, this.$refs.imgPreview.open(), this.hideLoading());
|
|
1759
|
-
},
|
|
1760
|
-
preview(t, e) {
|
|
1761
|
-
if (this.statu)
|
|
1762
|
-
return;
|
|
1763
|
-
this.showLoading();
|
|
1764
|
-
const s = t.fileoriginname.substr(t.fileoriginname.lastIndexOf(".") + 1).toLowerCase();
|
|
1765
|
-
if (this.fileOptions = { ...e }, ["gif", "jpeg", "png", "jpg", "JPG", "PNG", "bmp", "BMP"].includes(s)) {
|
|
1766
|
-
ne({
|
|
1767
|
-
id: t.id
|
|
1768
|
-
}).then((i) => {
|
|
1769
|
-
const r = window.URL.createObjectURL(new Blob([i]));
|
|
1770
|
-
this.imgList = [r], this.currentImg = r, this.$refs.imgPreview.open(), this.statu = !1, this.hideLoading();
|
|
1771
|
-
}).catch(() => {
|
|
1772
|
-
this.hideLoading();
|
|
1773
|
-
});
|
|
1774
|
-
return;
|
|
1775
|
-
}
|
|
1776
|
-
this.showComponent = "filePreview", this.$nextTick(() => {
|
|
1777
|
-
setTimeout(() => {
|
|
1778
|
-
this.$refs.filePreview.open(Object.assign(t, { fileId: t.id || t.Id, name: t.fileoriginname })), this.hideLoading();
|
|
1779
|
-
}, 0);
|
|
1780
|
-
});
|
|
1781
|
-
},
|
|
1782
|
-
baseQuickForm(t, e) {
|
|
1783
|
-
if (this.statu)
|
|
1784
|
-
return;
|
|
1785
|
-
if (this.showLoading(), String(t.id).split("u").length > 1) {
|
|
1786
|
-
let i = e.fieldType == "about" ? e.prop + "_AboutTable" : e.columnName, r = e.fieldType == "about" ? t[i] : e.fkEntityName, a = this.tableLists.filter((d) => d.tablename == r)[0], n = (e.fieldType == "about", t[e.columnName]), o = {
|
|
1787
|
-
tableId: a.id,
|
|
1788
|
-
data: [
|
|
1789
|
-
{
|
|
1790
|
-
id: n
|
|
1791
|
-
}
|
|
1792
|
-
]
|
|
1793
|
-
};
|
|
1794
|
-
this.statu = !0;
|
|
1795
|
-
const l = this.$message({
|
|
1796
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
1797
|
-
duration: 0,
|
|
1798
|
-
iconClass: "el-icon-loading"
|
|
1799
|
-
});
|
|
1800
|
-
this.$refs.middleware.init(o).then((d) => {
|
|
1801
|
-
setTimeout(() => {
|
|
1802
|
-
this.statu = !1;
|
|
1803
|
-
}, 1e3), l.close(), this.hideLoading();
|
|
1804
|
-
});
|
|
1805
|
-
return;
|
|
1806
|
-
}
|
|
1807
|
-
if (e.fieldType == "about") {
|
|
1808
|
-
this.baseQuickAbout(t, e);
|
|
1809
|
-
return;
|
|
1810
|
-
}
|
|
1811
|
-
if (e.fieldType == "participants") {
|
|
1812
|
-
let i = this.tableLists.filter((a) => a.tablename == t.tableName)[0];
|
|
1813
|
-
if (i === void 0) {
|
|
1814
|
-
this.$message.error(this.$i18nt("gd.solution.dataErrorTip", "\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));
|
|
1815
|
-
return;
|
|
1816
|
-
}
|
|
1817
|
-
this.statu = !0;
|
|
1818
|
-
const r = this.$message({
|
|
1819
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
1820
|
-
duration: 0,
|
|
1821
|
-
iconClass: "el-icon-loading"
|
|
1822
|
-
});
|
|
1823
|
-
this.$refs.middleware.init({
|
|
1824
|
-
tableId: i.id,
|
|
1825
|
-
data: [t]
|
|
1826
|
-
}).then((a) => {
|
|
1827
|
-
setTimeout(() => {
|
|
1828
|
-
this.statu = !1;
|
|
1829
|
-
}, 1e3), r.close(), this.hideLoading();
|
|
1830
|
-
});
|
|
1831
|
-
return;
|
|
1832
|
-
}
|
|
1833
|
-
this.baseQuickFk({ data: t, item: e });
|
|
1834
|
-
},
|
|
1835
|
-
changeQuickView(t) {
|
|
1836
|
-
if (this.statu)
|
|
1837
|
-
return;
|
|
1838
|
-
this.showLoading();
|
|
1839
|
-
const e = this.lineQuickView(t);
|
|
1840
|
-
(typeof e == "object" || typeof e == "function") && typeof e.then == "function" ? e.then((s) => {
|
|
1841
|
-
this.changeQuickViewOk(s);
|
|
1842
|
-
}).catch(() => {
|
|
1843
|
-
console.log("\u7528\u6237\u7EC8\u6B62\u64CD\u4F5C"), this.hideLoading();
|
|
1844
|
-
}) : this.changeQuickViewOk(t);
|
|
1845
|
-
},
|
|
1846
|
-
changeQuickViewOk(t) {
|
|
1847
|
-
if (this.openMode == 3) {
|
|
1848
|
-
this.open({
|
|
1849
|
-
title: this.$i18nt("gd.common.https.edit", "\u7F16\u8F91"),
|
|
1850
|
-
data: t
|
|
1851
|
-
}), this.hideLoading();
|
|
1852
|
-
return;
|
|
1853
|
-
}
|
|
1854
|
-
if (this.tableData.isvirtualtable === 1) {
|
|
1855
|
-
this.open(Object.assign({ title: this.$i18nt("gd.common.https.edit", "\u7F16\u8F91") }, { ...t })), this.hideLoading();
|
|
1856
|
-
return;
|
|
1857
|
-
}
|
|
1858
|
-
this.open({
|
|
1859
|
-
title: this.$i18nt("gd.common.https.edit", "\u7F16\u8F91"),
|
|
1860
|
-
id: t.id
|
|
1861
|
-
}), this.hideLoading();
|
|
1862
|
-
},
|
|
1863
|
-
operatorScope(t, e) {
|
|
1864
|
-
const s = t.sourceFk !== void 0 ? t.sourceFk : !(t.fieldType != "fk" && t.fieldType != "about" && t.fieldType != "user");
|
|
1865
|
-
if (this.getFristColumn.prop === t.prop && !s) {
|
|
1866
|
-
this.changeQuickView(e);
|
|
1867
|
-
return;
|
|
1868
|
-
}
|
|
1869
|
-
s && this.baseQuickForm(e, t);
|
|
1870
|
-
},
|
|
1871
|
-
columnChange(t) {
|
|
1872
|
-
this.columnsSetting = [...t];
|
|
1873
|
-
},
|
|
1874
|
-
renderHeader(t, { column: e, $index: s }, i) {
|
|
1875
|
-
return t(
|
|
1876
|
-
"div",
|
|
1877
|
-
{
|
|
1878
|
-
style: `display:inline-block;width: calc(100% - ${e.sortable ? "26px" : "0px"});`,
|
|
1879
|
-
attrs: {
|
|
1880
|
-
class: "gd-cell"
|
|
1881
|
-
}
|
|
1882
|
-
},
|
|
1883
|
-
[
|
|
1884
|
-
t("gd-tables-filter", {
|
|
1885
|
-
style: "cursor:pointer",
|
|
1886
|
-
props: {
|
|
1887
|
-
column: Object.assign(e, i || {}),
|
|
1888
|
-
queryParam: this.queryParam,
|
|
1889
|
-
hideQueryField: this.hideQueryField
|
|
1890
|
-
},
|
|
1891
|
-
on: {
|
|
1892
|
-
query: this.queriesRefresh,
|
|
1893
|
-
change: this.renderHeaderChange,
|
|
1894
|
-
renderHeaderInit: this.renderHeaderInit
|
|
1895
|
-
}
|
|
1896
|
-
})
|
|
1897
|
-
]
|
|
1898
|
-
);
|
|
1899
|
-
},
|
|
1900
|
-
renderHeaderChange(t) {
|
|
1901
|
-
const e = this.renderHeaderList.filter((s) => s.renderHeader && s.property !== t.property);
|
|
1902
|
-
this.$nextTick(() => {
|
|
1903
|
-
setTimeout(() => {
|
|
1904
|
-
e.forEach((s) => {
|
|
1905
|
-
s.executeEvent && s.executeEvent();
|
|
1906
|
-
});
|
|
1907
|
-
}, 0);
|
|
1908
|
-
});
|
|
1909
|
-
},
|
|
1910
|
-
renderHeaderInit(t) {
|
|
1911
|
-
const e = this.renderHeaderList.filter((s) => s.property !== t.property);
|
|
1912
|
-
this.renderHeaderList = e.concat([t]);
|
|
1913
|
-
},
|
|
1914
|
-
queriesRefresh(t, e, s = 1) {
|
|
1915
|
-
this.queryParam = { ...t }, this.tableQueries = this.tableQueries.map((n) => {
|
|
1916
|
-
const o = e.filter((l) => (l.property || l.prop) === n.prop)[0];
|
|
1917
|
-
return Object.assign({ ...n }, { fkData: o ? o.fkData : n.fkData });
|
|
1918
|
-
}), this.refresh(), this.$nextTick(() => {
|
|
1919
|
-
setTimeout(() => {
|
|
1920
|
-
s === 1 && this.$refs.quickSearch && this.$refs.quickSearch.queriesInit();
|
|
1921
|
-
}, 0);
|
|
1922
|
-
});
|
|
1923
|
-
const r = (this.record.interacList ? this.record.interacList : []).filter((n) => n.triggerAction === "queriesRefresh" && n.componentKey !== "" && n.componentFunction !== ""), a = this.triggerFilterData && this.triggerFilterData.source ? this.triggerFilterData.source.key : "";
|
|
1924
|
-
r.forEach((n) => {
|
|
1925
|
-
this.record.doEvent && n.componentKey !== a && this.record.doEvent({
|
|
1926
|
-
key: n.componentKey,
|
|
1927
|
-
functionName: n.componentFunction,
|
|
1928
|
-
data: this.queryParam,
|
|
1929
|
-
fieldData: this.fieldData,
|
|
1930
|
-
tableQueries: this.tableQueries,
|
|
1931
|
-
source: this.record,
|
|
1932
|
-
callback: !1,
|
|
1933
|
-
callbackComponents: "",
|
|
1934
|
-
callbackFunction: ""
|
|
1935
|
-
});
|
|
1936
|
-
});
|
|
1937
|
-
},
|
|
1938
|
-
triggerRefresh() {
|
|
1939
|
-
(this.record.interacList ? this.record.interacList : []).filter((s) => s.triggerAction === "refresh" && s.componentKey !== "" && s.componentFunction !== "").forEach((s) => {
|
|
1940
|
-
this.record.doEvent && this.record.doEvent({
|
|
1941
|
-
key: s.componentKey,
|
|
1942
|
-
functionName: s.componentFunction,
|
|
1943
|
-
data: this.queryParam,
|
|
1944
|
-
fieldData: this.fieldData,
|
|
1945
|
-
tableQueries: this.tableQueries,
|
|
1946
|
-
source: this.record,
|
|
1947
|
-
callback: !1,
|
|
1948
|
-
callbackComponents: "",
|
|
1949
|
-
callbackFunction: ""
|
|
1950
|
-
});
|
|
1951
|
-
});
|
|
1952
|
-
},
|
|
1953
|
-
baseTriggerFilter(t) {
|
|
1954
|
-
const e = t.data && typeof t.data == "object" ? t.data : this.queryParam, s = t.tableQueries ? t.tableQueries : this.tableQueries;
|
|
1955
|
-
this.triggerFilterData = {
|
|
1956
|
-
fieldData: t.fieldData ? t.fieldData : this.fieldData,
|
|
1957
|
-
tableQueries: s,
|
|
1958
|
-
source: t.source ? t.source : {}
|
|
1959
|
-
}, this.queriesRefresh(e, s);
|
|
1960
|
-
},
|
|
1961
|
-
handleQueryParam() {
|
|
1962
|
-
let t = {};
|
|
1963
|
-
(this.options.filterList ? this.options.filterList : []).forEach((s) => {
|
|
1964
|
-
const i = this.fieldData.filter((r) => r.columnName === s.fieldName)[0];
|
|
1965
|
-
i && ["fk", "about", "participants", "user"].includes(i.effectType) ? t[s.fieldName] = s.fieldValue === "" ? [] : String(s.fieldValue).split(",").map(Number) : i && ["select", "checkbox"].includes(i.effectType) ? t[s.fieldName] = s.fieldValue === "" ? [] : String(s.fieldValue).split(",") : t[s.fieldName] = s.fieldValue;
|
|
1966
|
-
}), Object.assign(this.queryParam, {
|
|
1967
|
-
...t
|
|
1968
|
-
});
|
|
1969
|
-
},
|
|
1970
|
-
init(t) {
|
|
1971
|
-
if (this.fieldData = [...t.fieldData], this.tableData = { ...t.tableData }, this.sysViewList = [...t.sysViewList], this.defaultViewId = t.defaultViewId, this.laoding = !0, this.viewList.length === 0) {
|
|
1972
|
-
console.log("\u65E0\u89C6\u56FE\u4FE1\u606F");
|
|
1973
|
-
return;
|
|
1974
|
-
}
|
|
1975
|
-
let e = this.options.view.id ? this.options.view.id : "";
|
|
1976
|
-
if (e !== "" && (e = this.viewList.filter((a) => a.id === e)[0] ? e : ""), Number(this.defaultViewId) !== 0 && Number(this.openMode === 1)) {
|
|
1977
|
-
const r = this.options.viewWeights ? this.options.viewWeights : "2", a = this.viewList.filter((n) => n.id === Number(this.defaultViewId))[0];
|
|
1978
|
-
e = r === "1" ? e : a ? this.defaultViewId : e;
|
|
1979
|
-
}
|
|
1980
|
-
const s = this.viewList.filter((r) => r.type == this.openMode)[0];
|
|
1981
|
-
if (e === "" && (e = s ? s.id : this.viewList[0].id), this.openMode == 2 && this.record.options.val !== void 0) {
|
|
1982
|
-
const r = typeof this.record.options.val;
|
|
1983
|
-
let a = r === "string" || r === "number" ? [this.record.options.val] : [...this.record.options.val];
|
|
1984
|
-
this.selectedRowKeys = a.filter((n) => n !== "");
|
|
1985
|
-
}
|
|
1986
|
-
this.openMode == 2 && this.handleQueryParam(), this.openMode == 3 && (this.record.baseRelationRefresh = this.refresh, this.record.baseSetTableData = this.baseSetTableData), this.viewCode = e;
|
|
1987
|
-
let i = [...t.personalViewList];
|
|
1988
|
-
i.filter((r) => {
|
|
1989
|
-
let a = this.sysViewList.filter((n) => n.id === r.baseview)[0];
|
|
1990
|
-
if (a)
|
|
1991
|
-
r.mode = 2, r.permissions = a.permissions, r.sysviewbuttons = a.sysviewbuttons, r.sysviewfields = r.syssavedqueryfields, r.sysviewqueries = r.syssavedqueryquerys, r.buttonrule = a.buttonrule;
|
|
1992
|
-
else
|
|
1993
|
-
return !1;
|
|
1994
|
-
return !0;
|
|
1995
|
-
}), this.personalViewList = [...i], this.baseGetView();
|
|
1996
|
-
},
|
|
1997
|
-
async baseGetView() {
|
|
1998
|
-
const t = this.viewList.filter((d) => d.id === this.viewCode)[0];
|
|
1999
|
-
if (t === void 0) {
|
|
2000
|
-
console.log("\u89C6\u56FE\u4FE1\u606F\u4E0D\u5B58\u5728");
|
|
2001
|
-
return;
|
|
2002
|
-
}
|
|
2003
|
-
if (!(t.mode == 1 ? this.$hasPerm(t.permissions) : !0) && this.openMode == 1) {
|
|
2004
|
-
this.$message.error(this.$i18nt("gd.https.errViewTip", "\u65E0\u89C6\u56FE\u6743\u9650!"));
|
|
2005
|
-
return;
|
|
2006
|
-
}
|
|
2007
|
-
this.queryTable = {
|
|
2008
|
-
tableId: t.syscodegenid,
|
|
2009
|
-
viewId: t.id,
|
|
2010
|
-
viewType: t.mode
|
|
2011
|
-
};
|
|
2012
|
-
let s = [], i = {};
|
|
2013
|
-
t.sysviewqueries.forEach((d) => {
|
|
2014
|
-
const c = _e(d, this.getDictionary("time_longshort"), this.$i18nt("gd.placeholder.required", "\u5FC5\u586B\u9879")), u = this.fieldData.filter((h) => {
|
|
2015
|
-
let p = c ? c.prop : "";
|
|
2016
|
-
return h.columnname === p;
|
|
2017
|
-
})[0], f = u ? u.isquery : !0;
|
|
2018
|
-
c && f && s.push(c);
|
|
2019
|
-
});
|
|
2020
|
-
const r = this.options.filterList ? this.options.filterList : [];
|
|
2021
|
-
s.map((d) => {
|
|
2022
|
-
const c = r.filter((u) => u.fieldName === d.prop)[0];
|
|
2023
|
-
return this.openMode == 2 && c && (d.disabled = !0, d.hasFiltered = !0), !d.disabled && !d.options.hidden && (i = Object.assign(i, Te(d))), d;
|
|
2024
|
-
}), this.tableQueries = s, this.queryParam = Object.assign(
|
|
2025
|
-
{
|
|
2026
|
-
...this.queryParam
|
|
2027
|
-
},
|
|
2028
|
-
{
|
|
2029
|
-
...i
|
|
2030
|
-
}
|
|
2031
|
-
);
|
|
2032
|
-
let a = t.sysviewbuttons.map((d) => (d.show = !0, d.transKey = d.transkey ? `Dynamics.${d.transkey}` : null, d.displayName = d.displayname, (d.functionname === "del" || d.functionname === "deactivateData") && (d.btnType = "danger"), d.childbutton && d.childbutton.length > 0 && (d.childbutton.map((c) => (c.transKey = c.transkey ? `Dynamics.${c.transkey}` : null, c.displayName = c.displayname, c)), d.children = d.childbutton), d));
|
|
2033
|
-
this.$nextTick(() => {
|
|
2034
|
-
setTimeout(async () => {
|
|
2035
|
-
const d = this.baseRelationBtnShow();
|
|
2036
|
-
this.sysViewButtons = _({
|
|
2037
|
-
btn: a,
|
|
2038
|
-
view: t,
|
|
2039
|
-
statu: d,
|
|
2040
|
-
data: this.selectedRows,
|
|
2041
|
-
excludeBtn: this.excludeButtons
|
|
2042
|
-
}), this.sysViewButtons = await this.baseAddbtn(), this.$emit("changeBtn", this.sysViewButtons);
|
|
2043
|
-
}, 200);
|
|
2044
|
-
});
|
|
2045
|
-
let n = [];
|
|
2046
|
-
this.openMode == 2 && this.record.options.effectType != "participants" ? n.push({
|
|
2047
|
-
type: "selection-radio",
|
|
2048
|
-
width: "60",
|
|
2049
|
-
fixed: !0,
|
|
2050
|
-
prop: "selection-radio"
|
|
2051
|
-
}) : n.push({
|
|
2052
|
-
type: "selection",
|
|
2053
|
-
width: "60",
|
|
2054
|
-
fixed: !0
|
|
2055
|
-
});
|
|
2056
|
-
let o = 0;
|
|
2057
|
-
t.sysviewfields.forEach((d, c) => {
|
|
2058
|
-
let u = Ce(d, c, t.frozencolumn);
|
|
2059
|
-
u && u.dictTypeCode && Object.assign(u, {
|
|
2060
|
-
dictTypeList: this.getDictionary(u.dictTypeCode)
|
|
2061
|
-
}), o === 0 && u && u.checked && (Object.assign(u, {
|
|
2062
|
-
type: "slot",
|
|
2063
|
-
slotType: u.prop
|
|
2064
|
-
}), o += 1);
|
|
2065
|
-
const f = u ? u.prop : "", h = s.filter((p) => p.prop === f)[0];
|
|
2066
|
-
h && h.effectType !== "selectFkMultiple" && Object.assign(u, {
|
|
2067
|
-
renderHeader: (p, ...v) => this.renderHeader(p, ...v, {
|
|
2068
|
-
effectType: h.effectType,
|
|
2069
|
-
dictTypeCode: h.dictTypeCode,
|
|
2070
|
-
fkEntityName: h.fkEntityName,
|
|
2071
|
-
options: h.options,
|
|
2072
|
-
rules: h.rules,
|
|
2073
|
-
fieldFormat: h.fieldFormat,
|
|
2074
|
-
valueFormat: h.valueFormat,
|
|
2075
|
-
disabled: !!h.hasFiltered,
|
|
2076
|
-
displayStyle: h.options.displayStyle,
|
|
2077
|
-
hasTimePicker: h.hasTimePicker,
|
|
2078
|
-
pickerType: h.pickerType,
|
|
2079
|
-
min: h.min,
|
|
2080
|
-
max: h.max
|
|
2081
|
-
})
|
|
2082
|
-
}), u && n.push(u);
|
|
2083
|
-
});
|
|
2084
|
-
let l = [];
|
|
2085
|
-
if (this.istable) {
|
|
2086
|
-
const d = this.record.queryList.filter((c) => c.visible);
|
|
2087
|
-
l = this.processData(d, n), this.operationuList.length > 0 && (l = l.concat({
|
|
2088
|
-
type: "slot",
|
|
2089
|
-
prop: "tableGridOperation",
|
|
2090
|
-
slotType: "tableGridOperation",
|
|
2091
|
-
effectType: "tableGridOperation",
|
|
2092
|
-
labelWidth: this.record.operationu.labelWidth || "120",
|
|
2093
|
-
width: this.record.operationu.labelWidth || "120",
|
|
2094
|
-
hidden: this.record.operationu.hide || !1,
|
|
2095
|
-
visible: this.record.operationu.hide || !1,
|
|
2096
|
-
fixed: "right",
|
|
2097
|
-
textalign: this.record.operationu.align || "center",
|
|
2098
|
-
align: this.record.operationu.align || "center",
|
|
2099
|
-
label: this.$i18nt("gd.common.https.operation", "\u64CD\u4F5C"),
|
|
2100
|
-
operations: this.operationuList
|
|
2101
|
-
}), l.forEach((c) => {
|
|
2102
|
-
c.sortable = c.orderconfig ? "custom" : !1;
|
|
2103
|
-
}));
|
|
2104
|
-
} else
|
|
2105
|
-
l = n;
|
|
2106
|
-
this.viewRecord = { ...t }, this.styled = this.viewRecord ? "" : "padding-left:12px;", this.$emit("changeView", this.viewRecord), this.columns = [...l], await this.$refs.table.loadColumns(), this.show = !0, this.$nextTick(() => {
|
|
2107
|
-
this.$refs.queriesField && this.$refs.queriesField.init(), setTimeout(() => {
|
|
2108
|
-
this.refresh(), this.laoding = !0, this.record.hideLoad && this.record.hideLoad(this.record.key), this.$refs.quickSearch && this.$refs.quickSearch.init();
|
|
2109
|
-
}, 0);
|
|
2110
|
-
});
|
|
2111
|
-
},
|
|
2112
|
-
processData(t, e) {
|
|
2113
|
-
const s = t.map((o) => o.fieldid), i = {};
|
|
2114
|
-
t.forEach((o) => {
|
|
2115
|
-
i[o.fieldid] = o.orderconfig;
|
|
2116
|
-
});
|
|
2117
|
-
const r = e.filter((o) => o.type === "selection" || o.type === "selection-radio"), a = e.filter((o) => o.type === "selection" || o.type === "selection-radio" ? !1 : s.includes(o.id)).map((o) => ({
|
|
2118
|
-
...o,
|
|
2119
|
-
sortables: i[o.id] ? "custom" : !1
|
|
2120
|
-
})), n = s.map((o) => a.find((l) => l.id === o)).filter((o) => o !== void 0);
|
|
2121
|
-
return [...r, ...n];
|
|
2122
|
-
},
|
|
2123
|
-
baseAddbtn() {
|
|
2124
|
-
return y({
|
|
2125
|
-
OperationType: "add",
|
|
2126
|
-
codeGenId: this.tableData.id,
|
|
2127
|
-
DataIds: ""
|
|
2128
|
-
}).then((t) => t.data ? this.sysViewButtons : this.sysViewButtons.map((e) => ({
|
|
2129
|
-
...e,
|
|
2130
|
-
show: e.displayName !== "\u65B0\u589E"
|
|
2131
|
-
})));
|
|
2132
|
-
},
|
|
2133
|
-
baseGetTableView() {
|
|
2134
|
-
const t = this.tableLists.filter((e) => {
|
|
2135
|
-
const s = this.options.table.tableName || this.options.table.tablename;
|
|
2136
|
-
return e.tablename.toLowerCase() === s.toLowerCase();
|
|
2137
|
-
})[0];
|
|
2138
|
-
return ee({ tableId: t.id }).then((e) => (e.code === 200 ? (e.data.viewList.map((s) => (s.mode = 1, s)), this.formList = e.data.formlist, this.tableData = e.data.table, this.sysViewList = e.data.viewlist) : this.$message.error(e.message), e));
|
|
2139
|
-
},
|
|
2140
|
-
baseGetPersonalView(t) {
|
|
2141
|
-
if (t && this.openMode != 1)
|
|
2142
|
-
return new Promise((s, i) => {
|
|
2143
|
-
s();
|
|
2144
|
-
});
|
|
2145
|
-
const e = this.tableLists.filter((s) => {
|
|
2146
|
-
const i = this.options.table.tableName || this.options.table.tablename;
|
|
2147
|
-
return s.tablename.toLowerCase() === i.toLowerCase();
|
|
2148
|
-
})[0];
|
|
2149
|
-
return te({
|
|
2150
|
-
tableId: e.id
|
|
2151
|
-
}).then((s) => (s.code === 200 ? (this.defaultViewId = s.data.defaultqueryid, this.personalViewList = s.data.savedquerylist) : console.log(s.message), s.data));
|
|
2152
|
-
},
|
|
2153
|
-
baseUpdatePersonalView() {
|
|
2154
|
-
this.baseGetPersonalView(!1).then((t) => {
|
|
2155
|
-
let e = this.personalViewList;
|
|
2156
|
-
e.filter((s) => {
|
|
2157
|
-
let i = this.sysViewList.filter((r) => r.id == s.baseview)[0];
|
|
2158
|
-
return i ? (s.mode = 2, s.permissions = i.permissions, s.sysviewbuttons = i.sysviewbuttons, s.sysviewfields = s.syssavedqueryfields, s.sysviewqueries = s.syssavedqueryquerys, s.buttonrule = i.buttonrule, !0) : !1;
|
|
2159
|
-
}), this.personalViewList = [...e];
|
|
2160
|
-
});
|
|
2161
|
-
},
|
|
2162
|
-
refresh(t = !0) {
|
|
2163
|
-
this.$refs.table ? this.$refs.table.refresh(t) : console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
|
|
2164
|
-
},
|
|
2165
|
-
isPureNumber(t) {
|
|
2166
|
-
return typeof t == "number" && Number.isFinite(t);
|
|
2167
|
-
},
|
|
2168
|
-
baseDel() {
|
|
2169
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2170
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
2171
|
-
return;
|
|
2172
|
-
}
|
|
2173
|
-
this.isPureNumber(this.selectedRowKeys[0]) ? y({
|
|
2174
|
-
OperationType: "delete",
|
|
2175
|
-
codeGenId: this.tableData.id,
|
|
2176
|
-
DataIds: this.selectedRowKeys[0]
|
|
2177
|
-
}).then((t) => {
|
|
2178
|
-
t.data ? this.baseDelBtn() : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message);
|
|
2179
|
-
}) : this.baseDelBtn();
|
|
2180
|
-
},
|
|
2181
|
-
baseDelBtn() {
|
|
2182
|
-
let t = this;
|
|
2183
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
2184
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
2185
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2186
|
-
showClose: !1,
|
|
2187
|
-
confirmButtonLoading: !1,
|
|
2188
|
-
cancelButtonLoading: !1,
|
|
2189
|
-
closeOnClickModal: !1,
|
|
2190
|
-
type: "warning",
|
|
2191
|
-
confirmButtonClass: "el-button--danger",
|
|
2192
|
-
customClass: "custom-alert",
|
|
2193
|
-
callback: () => {
|
|
2194
|
-
},
|
|
2195
|
-
beforeClose: (e, s, i) => {
|
|
2196
|
-
if (e !== "confirm") {
|
|
2197
|
-
i();
|
|
2198
|
-
return;
|
|
2199
|
-
}
|
|
2200
|
-
if (t.openMode == 3) {
|
|
2201
|
-
t.baseDelLoadData(s, i);
|
|
2202
|
-
return;
|
|
2203
|
-
}
|
|
2204
|
-
s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, k({
|
|
2205
|
-
tableId: t.tableData.id,
|
|
2206
|
-
ids: t.selectedRowKeys.join(",")
|
|
2207
|
-
}).then((r) => {
|
|
2208
|
-
s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, r.success ? (t.$message.success(t.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), t.refresh(), i()) : t.$message.error(t.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + r.message);
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
});
|
|
2212
|
-
},
|
|
2213
|
-
baseDelLoadData(t, e) {
|
|
2214
|
-
let s = this, i = !1, r = !1;
|
|
2215
|
-
this.record.options && (i = this.record.options.saved === void 0 ? !1 : this.record.options.saved, r = this.record.options.refreshHost === void 0 ? !1 : this.record.options.refreshHost);
|
|
2216
|
-
let a = [];
|
|
2217
|
-
this.selectedRowKeys.forEach((o) => {
|
|
2218
|
-
String(o).split("u").length === 1 && a.push(o);
|
|
2219
|
-
});
|
|
2220
|
-
const n = this.$refs.table.tableData.filter((o) => !this.selectedRowKeys.includes(o.id));
|
|
2221
|
-
if (a.length > 0) {
|
|
2222
|
-
t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, k({
|
|
2223
|
-
tableId: s.tableData.id,
|
|
2224
|
-
ids: a.join(",")
|
|
2225
|
-
}).then((o) => {
|
|
2226
|
-
t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, o.success ? (s.$message.success(s.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), e(), s.$refs.table.setTableData(n), s.$emit("changeData", n), i && s.refresh(), r && s.foreign.fkValue !== "" && s.baseRelationRefresh(!0, [])) : s.$message.error(s.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + o.message);
|
|
2227
|
-
});
|
|
2228
|
-
return;
|
|
2229
|
-
}
|
|
2230
|
-
this.$message.success(s.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), e(), this.$refs.table.setTableData(n), this.$emit("changeData", n), r && this.foreign.fkValue !== "" && this.baseRelationRefresh(!0, []), e();
|
|
2231
|
-
},
|
|
2232
|
-
tableGriddelete(t) {
|
|
2233
|
-
let e = this;
|
|
2234
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
2235
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
2236
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2237
|
-
showClose: !1,
|
|
2238
|
-
confirmButtonLoading: !1,
|
|
2239
|
-
cancelButtonLoading: !1,
|
|
2240
|
-
closeOnClickModal: !1,
|
|
2241
|
-
type: "warning",
|
|
2242
|
-
confirmButtonClass: "el-button--danger",
|
|
2243
|
-
customClass: "custom-alert",
|
|
2244
|
-
callback: () => {
|
|
2245
|
-
},
|
|
2246
|
-
beforeClose: (s, i, r) => {
|
|
2247
|
-
if (s !== "confirm") {
|
|
2248
|
-
r();
|
|
2249
|
-
return;
|
|
2250
|
-
}
|
|
2251
|
-
if (e.openMode == 3) {
|
|
2252
|
-
e.baseDelLoadData(i, r);
|
|
2253
|
-
return;
|
|
2254
|
-
}
|
|
2255
|
-
i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, k({
|
|
2256
|
-
tableId: e.tableData.id,
|
|
2257
|
-
ids: t.id
|
|
2258
|
-
}).then((a) => {
|
|
2259
|
-
i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, a.success ? (e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), e.refresh(), r()) : e.$message.error(e.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + a.message);
|
|
2260
|
-
});
|
|
2261
|
-
}
|
|
2262
|
-
});
|
|
2263
|
-
},
|
|
2264
|
-
tableGridpage(t) {
|
|
2265
|
-
t.type == "size" ? this.$refs.table.handleSizeChange(t.pageSize) : t.type == "current" ? this.$refs.table.handleCurrentChange(t.pageNo, t.pageSize) : this.queriesRefresh(t.data, t.fieldData);
|
|
2266
|
-
},
|
|
2267
|
-
gettableGrid() {
|
|
2268
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2269
|
-
this.$message.warning(this.$i18nt("gd.https.readTip", "\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E!"));
|
|
2270
|
-
return;
|
|
2271
|
-
}
|
|
2272
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2273
|
-
this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E!"));
|
|
2274
|
-
return;
|
|
2275
|
-
}
|
|
2276
|
-
this.record.tableGridList = this.selectedRows;
|
|
2277
|
-
},
|
|
2278
|
-
handleMenuClicked(t) {
|
|
2279
|
-
let e = this.$refs.table, s = [];
|
|
2280
|
-
e.columnsSetting.forEach((l) => {
|
|
2281
|
-
(l.checked == null ? !0 : l.checked) && l.id != null && s.push({
|
|
2282
|
-
id: l.id,
|
|
2283
|
-
columnName: l.prop,
|
|
2284
|
-
aliasName: this.$i18nt(l.transKey, l.label),
|
|
2285
|
-
fkId: l.fkId
|
|
2286
|
-
});
|
|
2287
|
-
}), this.viewType == 2 && s.pop();
|
|
2288
|
-
let i = {
|
|
2289
|
-
pageNo: e.currentPage,
|
|
2290
|
-
pageSize: e.pageSized
|
|
2291
|
-
}, r = /* @__PURE__ */ new Map();
|
|
2292
|
-
for (let l in this.queryCriteria)
|
|
2293
|
-
l != "pageNo" && l != "pageSize" && l != "viewType" && r.set(l, this.queryCriteria[l]);
|
|
2294
|
-
const a = this.triggerFilterData && this.triggerFilterData.fieldData ? this.triggerFilterData.fieldData : this.fieldData, n = this.triggerFilterData && this.triggerFilterData.tableQueries ? this.triggerFilterData.tableQueries : this.tableQueries;
|
|
2295
|
-
let o = {
|
|
2296
|
-
displayColumns: s,
|
|
2297
|
-
whereS: [
|
|
2298
|
-
Object.assign(
|
|
2299
|
-
{
|
|
2300
|
-
...i
|
|
2301
|
-
},
|
|
2302
|
-
T(this.queryParam, a, n, this.getDictionary("time_longshort")),
|
|
2303
|
-
Object.fromEntries(r)
|
|
2304
|
-
)
|
|
2305
|
-
],
|
|
2306
|
-
type: t
|
|
2307
|
-
};
|
|
2308
|
-
return Object.assign(Object.fromEntries(r), o, {
|
|
2309
|
-
...i
|
|
2310
|
-
});
|
|
2311
|
-
},
|
|
2312
|
-
baseExport(t) {
|
|
2313
|
-
const e = this.$message({
|
|
2314
|
-
message: this.$i18nt("gd.login.exporting", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
|
|
2315
|
-
duration: 0,
|
|
2316
|
-
iconClass: "el-icon-loading"
|
|
2317
|
-
});
|
|
2318
|
-
let s = this.handleMenuClicked(t.key), i = Object.assign(
|
|
2319
|
-
{
|
|
2320
|
-
...s
|
|
2321
|
-
},
|
|
2322
|
-
{
|
|
2323
|
-
...this.queryTable
|
|
2324
|
-
},
|
|
2325
|
-
this.foreign
|
|
2326
|
-
), r = t.url ? t.url : !1;
|
|
2327
|
-
F(i, r).then((a) => {
|
|
2328
|
-
this.$refs.xlsxExport.exportWay(a, e);
|
|
2329
|
-
}).catch((a) => {
|
|
2330
|
-
e.close(), console.log("\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458"), this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25"));
|
|
2331
|
-
});
|
|
2332
|
-
},
|
|
2333
|
-
baseExportSel(t) {
|
|
2334
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2335
|
-
this.$message.warning(this.$i18nt("gd.https.exportTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u6570\u636E!"));
|
|
2336
|
-
return;
|
|
2337
|
-
}
|
|
2338
|
-
const e = this.$message({
|
|
2339
|
-
message: this.$i18nt("gd.login.exporting", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
|
|
2340
|
-
duration: 0,
|
|
2341
|
-
iconClass: "el-icon-loading"
|
|
2342
|
-
});
|
|
2343
|
-
let s = this.handleMenuClicked(t.key), i = Object.assign(
|
|
2344
|
-
{
|
|
2345
|
-
...s
|
|
2346
|
-
},
|
|
2347
|
-
{
|
|
2348
|
-
...this.queryTable
|
|
2349
|
-
},
|
|
2350
|
-
this.foreign,
|
|
2351
|
-
{
|
|
2352
|
-
type: 4,
|
|
2353
|
-
exportIds: this.selectedRowKeys.join(",")
|
|
2354
|
-
}
|
|
2355
|
-
), r = t.url ? t.url : !1;
|
|
2356
|
-
F(i, r).then((a) => {
|
|
2357
|
-
this.$refs.xlsxExport.exportWay(a, e);
|
|
2358
|
-
}).catch((a) => {
|
|
2359
|
-
e.close(), this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25")), console.log("\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458");
|
|
2360
|
-
});
|
|
2361
|
-
},
|
|
2362
|
-
baseSetDefaultView(t) {
|
|
2363
|
-
let e = this;
|
|
2364
|
-
this.$confirm(this.$i18nt("gd.https.defaultViewContent", "\u662F\u5426\u8BBE\u7F6E\u6B64\u6570\u636E\u4E3A\u9ED8\u8BA4\u89C6\u56FE?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
2365
|
-
confirmButtonText: this.$i18nt("gd.https.defaultViewOk", "\u786E\u5B9A\u8BBE\u7F6E"),
|
|
2366
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2367
|
-
showClose: !1,
|
|
2368
|
-
confirmButtonLoading: !1,
|
|
2369
|
-
cancelButtonLoading: !1,
|
|
2370
|
-
closeOnClickModal: !1,
|
|
2371
|
-
type: "warning",
|
|
2372
|
-
confirmButtonClass: "el-button--danger",
|
|
2373
|
-
customClass: "custom-alert",
|
|
2374
|
-
callback: () => {
|
|
2375
|
-
},
|
|
2376
|
-
beforeClose: (s, i, r) => {
|
|
2377
|
-
if (s !== "confirm") {
|
|
2378
|
-
r();
|
|
2379
|
-
return;
|
|
2380
|
-
}
|
|
2381
|
-
i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, ce({
|
|
2382
|
-
defaultQuery: t.id,
|
|
2383
|
-
codeGenId: e.tableData.id,
|
|
2384
|
-
viewType: t.mode
|
|
2385
|
-
}).then((a) => {
|
|
2386
|
-
a.success ? (e.$message.success(e.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), e.defaultViewId = t.id) : e.$message.error(e.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + a.message), r(), i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0;
|
|
2387
|
-
});
|
|
2388
|
-
}
|
|
2389
|
-
});
|
|
2390
|
-
},
|
|
2391
|
-
baseBatchUpdate() {
|
|
2392
|
-
this.$refs.batchUpdate.open();
|
|
2393
|
-
},
|
|
2394
|
-
baseTeamSharing(t) {
|
|
2395
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2396
|
-
this.$message.warning(this.$i18nt("gd.https.shareTip", "\u8BF7\u9009\u62E9\u8981\u5171\u4EAB\u7684\u6570\u636E!"));
|
|
2397
|
-
return;
|
|
2398
|
-
}
|
|
2399
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2400
|
-
this.$message.warning(this.$i18nt("gd.https.shareTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u5171\u4EAB!"));
|
|
2401
|
-
return;
|
|
2402
|
-
}
|
|
2403
|
-
this.callbackFun = t || null, y({
|
|
2404
|
-
OperationType: "share",
|
|
2405
|
-
codeGenId: this.tableData.id,
|
|
2406
|
-
DataIds: this.selectedRowKeys[0]
|
|
2407
|
-
}).then((e) => {
|
|
2408
|
-
e.data ? this.$refs.teamSharing.open(this.selectedRowKeys[0]) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
|
|
2409
|
-
});
|
|
2410
|
-
},
|
|
2411
|
-
baseStatusChange() {
|
|
2412
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2413
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
2414
|
-
return;
|
|
2415
|
-
}
|
|
2416
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2417
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
2418
|
-
return;
|
|
2419
|
-
}
|
|
2420
|
-
this.$refs.statusChange.open(this.selectedRowKeys[0]);
|
|
2421
|
-
},
|
|
2422
|
-
baseEnable(t = 1) {
|
|
2423
|
-
return this.selectedRowKeys.length === 0 ? (this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!")), Promise.resolve()) : y({
|
|
2424
|
-
OperationType: "disenable",
|
|
2425
|
-
codeGenId: this.tableData.id,
|
|
2426
|
-
DataIds: this.selectedRowKeys[0]
|
|
2427
|
-
}).then((e) => {
|
|
2428
|
-
if (e.data) {
|
|
2429
|
-
let s = this;
|
|
2430
|
-
return new Promise((i, r) => {
|
|
2431
|
-
this.$confirm(
|
|
2432
|
-
t == 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"),
|
|
2433
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
2434
|
-
{
|
|
2435
|
-
confirmButtonText: t == 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u542F\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u505C\u7528"),
|
|
2436
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2437
|
-
showClose: !1,
|
|
2438
|
-
confirmButtonLoading: !1,
|
|
2439
|
-
cancelButtonLoading: !1,
|
|
2440
|
-
closeOnClickModal: !1,
|
|
2441
|
-
type: "warning",
|
|
2442
|
-
confirmButtonClass: "el-button--danger",
|
|
2443
|
-
customClass: "custom-alert",
|
|
2444
|
-
callback: () => {
|
|
2445
|
-
},
|
|
2446
|
-
beforeClose: (a, n, o) => {
|
|
2447
|
-
if (a !== "confirm") {
|
|
2448
|
-
o(), i({ action: a, res: null });
|
|
2449
|
-
return;
|
|
2450
|
-
}
|
|
2451
|
-
n.confirmButtonLoading = !0, n.cancelButtonLoading = !0, n.showCancelButton = !1, (t == 1 ? ae : re)({
|
|
2452
|
-
tableId: s.tableData.id,
|
|
2453
|
-
ids: s.selectedRowKeys.join(",")
|
|
2454
|
-
}).then((d) => {
|
|
2455
|
-
d.success ? (s.$message.success(s.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), s.refresh(), o()) : s.$message.error(s.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + d.message), n.confirmButtonLoading = !1, n.cancelButtonLoading = !1, n.showCancelButton = !0, i({ action: a, res: d });
|
|
2456
|
-
});
|
|
2457
|
-
}
|
|
2458
|
-
}
|
|
2459
|
-
);
|
|
2460
|
-
});
|
|
2461
|
-
} else
|
|
2462
|
-
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
|
|
2463
|
-
});
|
|
2464
|
-
},
|
|
2465
|
-
baseAssign(t) {
|
|
2466
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2467
|
-
this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
|
|
2468
|
-
return;
|
|
2469
|
-
}
|
|
2470
|
-
this.callbackFun = t || null, y({
|
|
2471
|
-
OperationType: "allocation",
|
|
2472
|
-
codeGenId: this.tableData.id,
|
|
2473
|
-
DataIds: this.selectedRowKeys.join(",")
|
|
2474
|
-
}).then((e) => {
|
|
2475
|
-
e.data ? this.$refs.dataAssign.open(this.selectedRowKeys) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
|
|
2476
|
-
});
|
|
2477
|
-
},
|
|
2478
|
-
baseQuickAbout(t, e) {
|
|
2479
|
-
const s = this.$message({
|
|
2480
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
2481
|
-
duration: 0,
|
|
2482
|
-
iconClass: "el-icon-loading"
|
|
2483
|
-
});
|
|
2484
|
-
se({
|
|
2485
|
-
tableId: this.tableData.id,
|
|
2486
|
-
id: t.id
|
|
2487
|
-
}).then((i) => {
|
|
2488
|
-
if (i.success) {
|
|
2489
|
-
let r = e.prop + "_abouttable", a = {
|
|
2490
|
-
data: t,
|
|
2491
|
-
item: Object.assign(e, {
|
|
2492
|
-
fkEntityName: i.data[0][r]
|
|
2493
|
-
})
|
|
2494
|
-
};
|
|
2495
|
-
this.baseQuickFk(a, s);
|
|
2496
|
-
} else
|
|
2497
|
-
s.close(), this.hideLoading(), setTimeout(() => {
|
|
2498
|
-
this.statu = !1;
|
|
2499
|
-
}, 1e3), this.$nextTick(() => {
|
|
2500
|
-
setTimeout(() => {
|
|
2501
|
-
this.$message.error(i.message);
|
|
2502
|
-
}, 0);
|
|
2503
|
-
});
|
|
2504
|
-
}).catch(() => {
|
|
2505
|
-
this.hideLoading();
|
|
2506
|
-
});
|
|
2507
|
-
},
|
|
2508
|
-
baseQuickFk(t, e) {
|
|
2509
|
-
let s = e;
|
|
2510
|
-
t.item.fieldType != "about" && (this.statu = !0, s = this.$message({
|
|
2511
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
2512
|
-
duration: 0,
|
|
2513
|
-
iconClass: "el-icon-loading"
|
|
2514
|
-
}));
|
|
2515
|
-
let i = {
|
|
2516
|
-
thisTableName: this.tableData.tablename,
|
|
2517
|
-
thisIdValue: t.data.id,
|
|
2518
|
-
thisFiled: t.item.columnName,
|
|
2519
|
-
fkTable: t.item.fkEntityName ? t.item.fkEntityName.toLowerCase() : t.item.fkEntityName
|
|
2520
|
-
};
|
|
2521
|
-
ie(i).then((r) => {
|
|
2522
|
-
r.success ? this.$refs.middleware.init(
|
|
2523
|
-
Object.assign(r.data, {
|
|
2524
|
-
fieldType: t.item.fieldType
|
|
2525
|
-
})
|
|
2526
|
-
).then((a) => {
|
|
2527
|
-
setTimeout(() => {
|
|
2528
|
-
this.statu = !1;
|
|
2529
|
-
}, 1e3), s.close(), this.hideLoading();
|
|
2530
|
-
}) : (s.close(), this.hideLoading(), this.$nextTick(() => {
|
|
2531
|
-
setTimeout(() => {
|
|
2532
|
-
this.$message.error(r.message);
|
|
2533
|
-
}, 0);
|
|
2534
|
-
}));
|
|
2535
|
-
}).catch(() => {
|
|
2536
|
-
this.hideLoading();
|
|
2537
|
-
});
|
|
2538
|
-
},
|
|
2539
|
-
baseSeecharts() {
|
|
2540
|
-
this.$refs.charts.open();
|
|
2541
|
-
},
|
|
2542
|
-
baseUsageBtn() {
|
|
2543
|
-
const t = this.viewList.filter((s) => s.id === this.viewCode)[0], e = this.baseRelationBtnShow();
|
|
2544
|
-
this.sysViewButtons = _({
|
|
2545
|
-
btn: this.sysViewButtons,
|
|
2546
|
-
view: t,
|
|
2547
|
-
statu: e,
|
|
2548
|
-
data: this.selectedRows,
|
|
2549
|
-
excludeBtn: this.excludeButtons
|
|
2550
|
-
});
|
|
2551
|
-
},
|
|
2552
|
-
baseRelationBtnShow() {
|
|
2553
|
-
if (String(this.openMode) !== "3" || this.record.getDelevanceData === void 0)
|
|
2554
|
-
return !0;
|
|
2555
|
-
this.record.baseRelationAllBtnHide = this.baseRelationAllBtnHide;
|
|
2556
|
-
const t = this.record.getDelevanceData();
|
|
2557
|
-
if (!(t.formConfig.controlStatu !== void 0 ? t.formConfig.controlStatu : !1))
|
|
2558
|
-
return !0;
|
|
2559
|
-
const s = t.fieldData.filter((n) => n.columnname == t.formConfig.controlField)[0];
|
|
2560
|
-
if (s === void 0)
|
|
2561
|
-
return !0;
|
|
2562
|
-
const i = t.parameterData[s.columnname];
|
|
2563
|
-
return !((t.formConfig.controlValue === void 0 ? [] : t.formConfig.controlValue).filter((n) => String(n) === String(i)).length > 0);
|
|
2564
|
-
},
|
|
2565
|
-
baseRelationAllBtnHide() {
|
|
2566
|
-
const t = this.baseRelationBtnShow();
|
|
2567
|
-
let e = this.sysViewButtons.map((s) => (!this.excludeButtons.includes(s.id) && !this.excludeButtons.includes(s.displayName) && (s.show = t), s));
|
|
2568
|
-
this.sysViewButtons = [...e];
|
|
2569
|
-
},
|
|
2570
|
-
baseRelationOk(t) {
|
|
2571
|
-
const e = t.fkDataList.filter((n) => ["fk", "user"].includes(n.options.effectType));
|
|
2572
|
-
let s = /* @__PURE__ */ new Map();
|
|
2573
|
-
e.forEach((n) => {
|
|
2574
|
-
const o = n.options.columnName, l = t.data[o];
|
|
2575
|
-
let d = this.viewRecord.sysviewfields.filter((c) => c.syscodegenconfig.columnname == o)[0];
|
|
2576
|
-
if (d) {
|
|
2577
|
-
let c = B(d), u = n.fkData.filter((f) => f.id === l)[0];
|
|
2578
|
-
s.set(c, u ? u.name : "");
|
|
2579
|
-
}
|
|
2580
|
-
});
|
|
2581
|
-
let i = Object.assign(t.data, Object.fromEntries(s)), r = [], a = this.$refs.table.tableData.filter((n) => n.id !== null);
|
|
2582
|
-
i.id ? r = a.map((n) => {
|
|
2583
|
-
let o = String(n.id).split("u");
|
|
2584
|
-
return n.id === i.id && o.length === 1 && (n = Object.assign(
|
|
2585
|
-
{ ...n },
|
|
2586
|
-
{ ...i },
|
|
2587
|
-
{
|
|
2588
|
-
GdSaasTepyName: 2,
|
|
2589
|
-
GdSaasTepyOperation: !0
|
|
2590
|
-
}
|
|
2591
|
-
)), n.id === i.id && o.length > 1 && (n = Object.assign({ ...n }, { ...i })), n;
|
|
2592
|
-
}) : r = [
|
|
2593
|
-
Object.assign(i, {
|
|
2594
|
-
id: S(),
|
|
2595
|
-
GdSaasTepyName: 1,
|
|
2596
|
-
GdSaasTepyOperation: !0
|
|
2597
|
-
})
|
|
2598
|
-
].concat(a), this.$refs.table.setTableData(r), this.$emit("changeData", r);
|
|
2599
|
-
},
|
|
2600
|
-
baseRelationRefresh(t = !0, e) {
|
|
2601
|
-
if (this.openMode != 3)
|
|
2602
|
-
return;
|
|
2603
|
-
const s = this.record.options.refreshFields ? this.record.options.refreshFields : [], i = this.record.options.refreshMode ? this.record.options.refreshMode : 1;
|
|
2604
|
-
this.record.refresh(t, e, { refreshMode: i, list: s });
|
|
2605
|
-
},
|
|
2606
|
-
baseBtnsStatus(t) {
|
|
2607
|
-
const e = t.type ? t.type : "show", s = t.list ? t.list : [], i = t.field ? t.field : "id", r = t.manner ? t.manner : "default", a = t.time !== void 0 ? t.time : 100;
|
|
2608
|
-
this.$nextTick(() => {
|
|
2609
|
-
setTimeout(() => {
|
|
2610
|
-
const n = this.baseRelationBtnShow();
|
|
2611
|
-
let o = JSON.parse(JSON.stringify(this.sysViewButtons));
|
|
2612
|
-
o.forEach((l, d) => {
|
|
2613
|
-
const c = l[i];
|
|
2614
|
-
e === "show" ? o[d].show = this.excludeButtons.includes(c) ? l.show : n ? s.includes(c) ? !0 : r === "default" ? l.show : !1 : !1 : o[d].show = this.excludeButtons.includes(c) ? l.show : n ? s.includes(c) ? !1 : r === "default" ? l.show : !1 : !1;
|
|
2615
|
-
}), this.sysViewButtons = [...o], this.$emit("changeBtn", this.sysViewButtons);
|
|
2616
|
-
}, a);
|
|
2617
|
-
});
|
|
2618
|
-
},
|
|
2619
|
-
baseForceShowBtns(t, e = 1) {
|
|
2620
|
-
let s = JSON.parse(JSON.stringify(this.sysViewButtons));
|
|
2621
|
-
s.map((i) => (e === 1 ? i.show = t.includes(i.id) ? !0 : i.show : i.show = t.includes(i.displayName) ? !0 : i.show, i)), this.sysViewButtons = [...s], this.openMode == 2 && this.$emit("changeBtn", s);
|
|
2622
|
-
},
|
|
2623
|
-
baseComponentsInit(t) {
|
|
2624
|
-
!t.ref || this.$nextTick(() => {
|
|
2625
|
-
setTimeout(() => {
|
|
2626
|
-
const e = t.functionName ? t.functionName : "init";
|
|
2627
|
-
this.$refs[t.ref] && this.$refs[t.ref][0][e](t);
|
|
2628
|
-
}, 0);
|
|
2629
|
-
});
|
|
2630
|
-
},
|
|
2631
|
-
baseCustomComponents(t) {
|
|
2632
|
-
let e = [];
|
|
2633
|
-
t.forEach((s) => {
|
|
2634
|
-
e.push(Object.assign(s, { ref: s.ref ? s.ref : S(8) }));
|
|
2635
|
-
}), this.componentList = [...e];
|
|
2636
|
-
},
|
|
2637
|
-
baseSetTableData(t) {
|
|
2638
|
-
const e = t ? Array.isArray(t) ? t : [] : [];
|
|
2639
|
-
this.$refs.table.setTableData(e), this.$emit("changeData", e);
|
|
2640
|
-
},
|
|
2641
|
-
getFileBlob(t) {
|
|
2642
|
-
return oe({
|
|
2643
|
-
id: t.id
|
|
2644
|
-
}).then((e) => e.data);
|
|
2645
|
-
},
|
|
2646
|
-
getDictionary(t) {
|
|
2647
|
-
return this.$options.filters.dictData(t);
|
|
2648
|
-
},
|
|
2649
|
-
onSelectChange(t, e) {
|
|
2650
|
-
this.selectedRowKeys = t, this.selectedRows = e, this.$emit("changeSelect", t, e);
|
|
2651
|
-
},
|
|
2652
|
-
changeViewTree(t) {
|
|
2653
|
-
this.treeID = t;
|
|
2654
|
-
let e = /* @__PURE__ */ new Map();
|
|
2655
|
-
e.set(t.pid, t.data), this.queryParam = Object.assign(
|
|
2656
|
-
{
|
|
2657
|
-
...this.queryParam
|
|
2658
|
-
},
|
|
2659
|
-
Object.fromEntries(e)
|
|
2660
|
-
), this.$nextTick(() => {
|
|
2661
|
-
setTimeout(() => {
|
|
2662
|
-
this.refresh();
|
|
2663
|
-
}, 10);
|
|
2664
|
-
});
|
|
2665
|
-
const s = this.tableQueries.filter((i) => i.prop === t.pid)[0];
|
|
2666
|
-
s && (s.fkData = t.fkData);
|
|
2667
|
-
},
|
|
2668
|
-
doEventComponent(t, e) {
|
|
2669
|
-
const s = t.functionName || t.functionname;
|
|
2670
|
-
s && this.$emit("doEvent", {
|
|
2671
|
-
key: "changeComponent",
|
|
2672
|
-
functionName: s,
|
|
2673
|
-
data: t,
|
|
2674
|
-
item: e
|
|
2675
|
-
});
|
|
2676
|
-
},
|
|
2677
|
-
closedPreview() {
|
|
2678
|
-
this.showComponent = "";
|
|
2679
|
-
},
|
|
2680
|
-
doEvent(t) {
|
|
2681
|
-
this.$emit("doEvent", t);
|
|
2682
|
-
}
|
|
2683
|
-
},
|
|
2684
|
-
beforeDestroy() {
|
|
2685
|
-
this.formList = [], this.sysViewList = [], this.selectedRows = [], this.sysViewButtons = [], this.fieldData = [], this.componentList = [], this.renderHeaderList = [], this.callbackFun = null;
|
|
2686
|
-
}
|
|
2687
|
-
};
|
|
2688
|
-
var We = function() {
|
|
2689
|
-
var e = this, s = e._self._c;
|
|
2690
|
-
return s("div", [e.istable ? e._e() : s("div", { staticClass: "gd-base-flex-body" }, [s("div", { staticClass: "main-tree" }, [e.laoding && e.viewRecord.viewtree != "{}" ? s("gd-view-tree-left", { ref: "viewTree", attrs: { queryParam: e.queryParam, viewRecord: e.viewRecord, openMode: e.openMode, height: e.hig, record: e.record }, on: { change: e.changeViewTree } }) : e._e()], 1), s("div", { staticClass: "gd-table-box-header", style: e.viewRecord.viewtree != "{}" ? "padding-left:12px;" : "padding-left:0px;" }, [s("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSized, pageSize: e.tablePageSize, columns: e.columns, selectedRowKeys: e.selectedRowKeys, selectedKeep: e.selectedKeep, height: e.openMode == 3 ? 0 : e.hig, maxHeight: e.hig, filtering: e.layoutConfig.filter ? e.tableQueries.length > 0 : !1, initialLoading: !1, showSummary: e.showSummary, amount: e.amount, disabledRowId: e.disabledRowId, isGather: e.layoutConfig.chart ? e.openMode == 1 : !1, pageSizes: e.paginationPageSize, disabledRefresh: e.layoutConfig.rfresh ? e.disabledRefresh : !0, rowKey: e.rowKey, showPagination: e.layoutConfig.pager, disabledColumnSettings: !e.layoutConfig.tableColumn, density: e.layoutConfig.tableSize, paginationStyle: e.paginationStyle }, on: { onChange: e.onSelectChange, columnChange: e.columnChange, baseSeecharts: e.baseSeecharts, rowClick: e.rowClick, triggerRefresh: e.triggerRefresh }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
2691
|
-
return [e.laoding ? s("ViewSelection", { attrs: { record: e.record, sysViewButtons: e.sysViewButtons, sysViewList: e.sysViewList, personalViewList: e.personalViewList, viewCode: e.viewCode, defaultViewId: e.defaultViewId, tableData: e.tableData, selectedRowKeys: e.selectedRowKeys, openMode: e.openMode, confirmLoading: e.statu, maxBtnLength: e.options.maxBtnLength, fieldData: e.fieldData, showView: e.layoutConfig.viewsGroup, showBtn: e.layoutConfig.butGroup }, on: { functionName: e.doEvent, handleMenuClick: e.handleMenuClick, baseSetDefaultView: e.baseSetDefaultView, updatePersonalView: e.baseUpdatePersonalView }, scopedSlots: e._u([e.layoutConfig.filter && e.getQuickQueries.length > 0 ? { key: "quickQueries", fn: function() {
|
|
2692
|
-
return [s("QuickSearch", { ref: "quickSearch", attrs: { viewQueries: e.getQuickQueries, tableData: e.tableData, fieldData: e.fieldData, queryParam: e.queryParam }, on: { save: (i, r) => e.queriesRefresh(i, r, 2) } })];
|
|
2693
|
-
}, proxy: !0 } : null], null, !0) }) : e._e()];
|
|
2694
|
-
}, proxy: !0 }, e._l(e.getColumnsed, function(i) {
|
|
2695
|
-
return { key: i.prop, fn: function({ column: r, row: a }) {
|
|
2696
|
-
return [s("ChildRenItem", { key: i.prop, attrs: { item: i, row: a, getFristColumn: e.getFristColumn, openMode: e.openMode }, on: { operatorScope: e.operatorScope, baseQuickForm: e.baseQuickForm, showFile: e.showFile, showImg: e.showImg, preview: e.preview } })];
|
|
2697
|
-
} };
|
|
2698
|
-
}), { key: "filtering", fn: function({ colse: i, visible: r, changeTrigger: a }) {
|
|
2699
|
-
return [s("gd-table-queries-field", { ref: "queriesField", attrs: { columns: e.tableQueries, height: e.hig, queryParam: e.queryParam, colse: i, visible: r, openMode: e.openMode, recordRelation: e.record, viewRecord: e.viewRecord, openRules: !0, changeTrigger: a }, on: { save: e.queriesRefresh, hideQueryParam: e.hideQueryParam } })];
|
|
2700
|
-
} }], null, !0) })], 1)]), e.istable ? s("div", { staticClass: "gd-base-flex-body" }, [s("div", { staticClass: "gd-table-box-header", style: e.viewRecord.viewtree != "{}" ? "padding-left:12px;" : "padding-left:0px;" }, [s("gd-tables", { ref: "table", attrs: { showPagination: !1, istool: !1, istable: e.istable, stripeColor: e.tableSetting.stripeColor, lineHeight: e.tableSetting.lineHeight, recordoperations: e.record, dataSource: e.loadData, size: e.tableSized, stripe: e.tableSetting.isStripe, border: e.tableSetting.isBorder, pageSize: e.tablePageSize, columns: e.columns, selectedRowKeys: e.selectedRowKeys, selectedKeep: e.selectedKeep, height: e.openMode == 3 ? 0 : e.hig, maxHeight: e.hig, filtering: e.tableQueries.length > 0, initialLoading: !1, showSummary: e.showSummary, amount: e.amount, disabledRowId: e.disabledRowId, isGather: e.openMode == 1, pageSizes: e.paginationPageSize, disabledRefresh: e.disabledRefresh, rowKey: e.rowKey }, on: { onChange: e.onSelectChange, columnChange: e.columnChange, baseSeecharts: e.baseSeecharts }, scopedSlots: e._u([e._l(e.getColumnsed, function(i) {
|
|
2701
|
-
return { key: i.prop, fn: function({ column: r, row: a }) {
|
|
2702
|
-
return [i.prop === "tableGridOperation" ? s("div", [e._t("tableGridOperation", null, { column: r, row: a, item: i })], 2) : s("ChildRenItem", { attrs: { item: i, row: a, getFristColumn: e.getFristColumn }, on: { operatorScope: e.operatorScope, baseQuickForm: e.baseQuickForm, showFile: e.showFile, showImg: e.showImg, preview: e.preview } })];
|
|
2703
|
-
} };
|
|
2704
|
-
})], null, !0) })], 1)]) : e._e(), s("ImgPreview", { ref: "imgPreview", attrs: { filePreviewShow: e.imgList.length > 0, imgList: e.imgList, currentImg: e.currentImg } }), e.showComponent === "filePreview" ? s("gd-file-preview", { ref: "filePreview", attrs: { options: e.fileOptions }, on: { closed: e.closedPreview } }) : e._e(), s("XlsxImport", { ref: "xlsxImport", attrs: { entityName: e.tableData.tableName, tableData: e.tableData }, on: { ok: e.refresh } }), s("XlsxExport", { ref: "xlsxExport", attrs: { entityId: e.tableData.id, queryParam: e.queryParam, tableData: e.tableData } }), s("TeamSharing", { ref: "teamSharing", attrs: { tableData: e.tableData }, on: { ok: (i) => e.okAssignSharing(i, "teamSharing") } }), s("BatchUpdate", { ref: "batchUpdate", attrs: { tableData: e.tableData, queryTable: e.queryTable, columns: e.columns, fieldData: e.fieldData, viewCode: e.viewCode }, on: { ok: e.refresh } }), s("DataAssign", { ref: "dataAssign", attrs: { tableData: e.tableData }, on: { ok: (i) => e.okAssignSharing(i, "dataAssign") } }), s("StatusChange", { ref: "statusChange", attrs: { tableData: e.tableData }, on: { ok: e.refresh } }), s("ViewCharts", { ref: "charts", attrs: { tableData: e.tableData, fieldData: e.fieldData }, on: { setLoadData: e.setLoadData } }), s("gd-middleware", { ref: "middleware", on: { ok: e.refresh } }), e._l(e.componentList, function(i, r) {
|
|
2705
|
-
return [s(i.componentItem, { key: r, ref: i.ref, refInFor: !0, tag: "component", attrs: { record: i, openMode: e.openMode, tableData: e.tableData }, on: { change: (a) => e.doEventComponent(a, i) } })];
|
|
2706
|
-
})], 2);
|
|
2707
|
-
}, Je = [], Ye = /* @__PURE__ */ m(
|
|
2708
|
-
Ue,
|
|
2709
|
-
We,
|
|
2710
|
-
Je,
|
|
2711
|
-
!1,
|
|
2712
|
-
null,
|
|
2713
|
-
"d78a7e89",
|
|
2714
|
-
null,
|
|
2715
|
-
null
|
|
2716
|
-
);
|
|
2717
|
-
const pt = Ye.exports;
|
|
2718
|
-
export {
|
|
2719
|
-
I as C,
|
|
2720
|
-
ke as G,
|
|
2721
|
-
_e as a,
|
|
2722
|
-
pt as b,
|
|
2723
|
-
Ce as c,
|
|
2724
|
-
ft as g,
|
|
2725
|
-
Te as h,
|
|
2726
|
-
T as s
|
|
2727
|
-
};
|