gds-plus-design-vue 1.2.63 → 1.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addPermission.e559c495.js +1 -0
- package/lib/{addPermission.9fc97a47.mjs → addPermission.f2eb7564.mjs} +127 -105
- package/lib/approvalModel.2b97fdf8.js +1 -0
- package/lib/{approvalModel.51d07afe.mjs → approvalModel.7b3cb5c5.mjs} +7 -7
- package/lib/attribute.4f814780.mjs +367 -0
- package/lib/attribute.7b4971f5.js +1 -0
- package/lib/businessRules.4f7349f3.js +1 -0
- package/lib/{businessRules.db6ba874.mjs → businessRules.7ca458f8.mjs} +191 -190
- package/lib/buttonRule.4aa9cfd8.mjs +396 -0
- package/lib/buttonRule.ba9528ab.js +1 -0
- package/lib/chartDisplayRules.25489412.js +1 -0
- package/lib/chartDisplayRules.63e53aa7.mjs +288 -0
- package/lib/components.chartbi.13a8a7b5.js +8 -0
- package/lib/components.chartbi.7356b244.mjs +1813 -0
- package/lib/{components.coloreditor.044983d2.mjs → components.coloreditor.20f8b336.mjs} +2 -2
- package/lib/{components.coloreditor.779a9419.js → components.coloreditor.8afc4731.js} +1 -1
- package/lib/{components.dataassign.1853ed5c.js → components.dataassign.59a87bfd.js} +1 -1
- package/lib/{components.dataassign.56632583.mjs → components.dataassign.e398cc99.mjs} +3 -3
- package/lib/{components.echarts.10d3ffe2.mjs → components.echarts.17e42353.mjs} +416 -399
- package/lib/components.echarts.5dea23f6.js +4 -0
- package/lib/{components.exception.cc2f4ca3.mjs → components.exception.8689aba2.mjs} +1 -1
- package/lib/{components.exception.3cc33e29.js → components.exception.b4ddeaba.js} +1 -1
- package/lib/{components.form.91d5ed3e.js → components.form.14ed3374.js} +19 -19
- package/lib/{components.form.3344c817.mjs → components.form.8047a9c3.mjs} +1118 -1090
- package/lib/{components.globalheader.07a90c4b.js → components.globalheader.5418b5ec.js} +1 -1
- package/lib/{components.globalheader.43fafa8c.mjs → components.globalheader.bc91e6fe.mjs} +3 -3
- package/lib/components.iconselector.4b5b7901.js +1 -0
- package/lib/{components.iconselector.8caabeaa.mjs → components.iconselector.d2d970ba.mjs} +7 -3
- package/lib/{components.imgpreview.57290b54.mjs → components.imgpreview.0563c338.mjs} +4 -4
- package/lib/{components.imgpreview.86bf7971.js → components.imgpreview.5fe318f7.js} +1 -1
- package/lib/{components.lunccalendar.f6765c94.mjs → components.lunccalendar.9a41ea40.mjs} +1 -1
- package/lib/{components.lunccalendar.76159d2e.js → components.lunccalendar.f18b2da3.js} +1 -1
- package/lib/{components.middleware.457b1182.mjs → components.middleware.24511f17.mjs} +5 -4
- package/lib/components.middleware.64b6a988.js +1 -0
- package/lib/{components.modaltitle.ae92f96c.mjs → components.modaltitle.4f454200.mjs} +1 -1
- package/lib/{components.modaltitle.e0b34fcb.js → components.modaltitle.d7ef34cb.js} +1 -1
- package/lib/{components.multitab.8441aa6b.mjs → components.multitab.15b91668.mjs} +1 -1
- package/lib/{components.multitab.82fd0544.js → components.multitab.92eb4b1e.js} +1 -1
- package/lib/{components.selecttree.85d940a9.mjs → components.selecttree.c615fe3e.mjs} +1 -1
- package/lib/{components.selecttree.d710a362.js → components.selecttree.ce4fbb44.js} +1 -1
- package/lib/{components.settingdrawer.779f6715.js → components.settingdrawer.4581f5b1.js} +1 -1
- package/lib/{components.settingdrawer.a6693034.mjs → components.settingdrawer.bdd68e73.mjs} +21 -21
- package/lib/{components.sidemenu.725677e3.mjs → components.sidemenu.c40eee2e.mjs} +2 -2
- package/lib/{components.sidemenu.80e46c2d.js → components.sidemenu.cd6d0301.js} +1 -1
- package/lib/components.sidenavmenu.1f0bbfca.js +1 -0
- package/lib/{components.sidenavmenu.23b8edce.mjs → components.sidenavmenu.47d7f44a.mjs} +448 -632
- package/lib/{components.statuschange.ed1218a4.js → components.statuschange.190f14ff.js} +1 -1
- package/lib/{components.statuschange.15938660.mjs → components.statuschange.85956695.mjs} +3 -3
- package/lib/{components.table.e3e5e3bc.mjs → components.table.389ab22a.mjs} +331 -316
- package/lib/{components.table.17c02054.js → components.table.d016f609.js} +3 -3
- package/lib/{components.tableumy.2f5dfa12.mjs → components.tableumy.750ec792.mjs} +7 -4
- package/lib/components.tableumy.aa73378d.js +1 -0
- package/lib/components.tablevirtual.879ff28f.js +1 -0
- package/lib/{components.tablevirtual.ba03746e.mjs → components.tablevirtual.9bf87b78.mjs} +7 -4
- package/lib/{components.teamsharing.fb4351ec.mjs → components.teamsharing.b9f112cf.mjs} +3 -3
- package/lib/{components.teamsharing.05503821.js → components.teamsharing.efe58448.js} +1 -1
- package/lib/{components.tooltip.950dc77b.mjs → components.tooltip.065f3dee.mjs} +1 -1
- package/lib/{components.tooltip.a05d8dd1.js → components.tooltip.edf8e4ca.js} +1 -1
- package/lib/{components.uploadfile.10f6cb2a.mjs → components.uploadfile.0439b870.mjs} +2 -2
- package/lib/{components.uploadfile.5a9b6cc1.js → components.uploadfile.586aca36.js} +1 -1
- package/lib/{components.uploadimg.cce7452a.js → components.uploadimg.2324089d.js} +1 -1
- package/lib/{components.uploadimg.f4fe4e77.mjs → components.uploadimg.5f2194ff.mjs} +2 -2
- package/lib/{components.verificationcode.d1946db4.js → components.verificationcode.863ff11e.js} +1 -1
- package/lib/{components.verificationcode.afb9aa1a.mjs → components.verificationcode.d8893ff6.mjs} +1 -1
- package/lib/{components.viewformdetails.f362d69e.mjs → components.viewformdetails.1236a66e.mjs} +94 -61
- package/lib/components.viewformdetails.328c8642.js +1 -0
- package/lib/{components.viewloading.ea40b244.mjs → components.viewloading.5761b277.mjs} +54 -51
- package/lib/components.viewloading.5b9c8fee.js +1 -0
- package/lib/{components.watermark.da3d7220.js → components.watermark.af8b5718.js} +1 -1
- package/lib/{components.watermark.1ffc66e0.mjs → components.watermark.d3638d63.mjs} +1 -1
- package/lib/{components.xlsxexport.f5ace2cd.js → components.xlsxexport.8c121797.js} +1 -1
- package/lib/{components.xlsxexport.d98572f8.mjs → components.xlsxexport.a1b7b087.mjs} +4 -4
- package/lib/components.xlsximport.c53c50f6.js +1 -0
- package/lib/{components.xlsximport.cffa88fe.mjs → components.xlsximport.d39bfeaa.mjs} +541 -532
- package/lib/copy.3b06d60f.mjs +572 -0
- package/lib/copy.fa2fcb22.js +1 -0
- package/lib/createFile.526dd6db.js +1 -0
- package/lib/createFile.c8d65b52.mjs +439 -0
- package/lib/createSubfolders.51df8fcd.js +1 -0
- package/lib/{createSubfolders.d35b97e9.mjs → createSubfolders.f8cad77f.mjs} +7 -7
- package/lib/{dialogLayout.c4bc3b55.mjs → dialogLayout.539feafb.mjs} +2 -2
- package/lib/{dialogLayout.08823bb7.js → dialogLayout.621a3d40.js} +1 -1
- package/lib/drawerContainer.790b0ee6.mjs +163 -0
- package/lib/drawerContainer.c971d22d.js +1 -0
- package/lib/{drawerLayout.36cf4d05.js → drawerLayout.accd44be.js} +1 -1
- package/lib/{drawerLayout.fb60950f.mjs → drawerLayout.c52b8374.mjs} +2 -2
- package/lib/editForm.83d10fae.mjs +434 -0
- package/lib/editForm.e284e5ec.js +1 -0
- package/lib/extendedAttributes.bfff1926.js +1 -0
- package/lib/extendedAttributes.e6b11c68.mjs +293 -0
- package/lib/{fileSearch.86c356fe.mjs → fileSearch.423b64a3.mjs} +140 -115
- package/lib/fileSearch.e849491c.js +1 -0
- package/lib/{flow.designer.6da03949.mjs → flow.designer.5feba43c.mjs} +3184 -3197
- package/lib/flow.designer.85d0054b.js +1 -0
- package/lib/{flow.list.03694808.mjs → flow.list.82131d80.mjs} +234 -232
- package/lib/flow.list.e001d91a.js +1 -0
- package/lib/form.build.19f0c882.js +1 -0
- package/lib/{form.build.b768d613.mjs → form.build.33cc213e.mjs} +22 -14
- package/lib/form.designer.build.2bcc355d.js +1 -0
- package/lib/form.designer.build.7dc12e87.mjs +2529 -0
- package/lib/formFiled.40284ed9.js +1 -0
- package/lib/{formFiled.fe7d9df3.mjs → formFiled.5a1c8f7f.mjs} +15 -13
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +231 -207
- package/lib/{http.appmanage.4554a629.mjs → http.appmanage.e389782d.mjs} +3 -3
- package/lib/{http.codegeneratemanage.2f925b10.mjs → http.codegeneratemanage.b123bab3.mjs} +19 -11
- package/lib/{http.codegeneratemanage.aecadd5d.js → http.codegeneratemanage.e3db2f09.js} +1 -1
- package/lib/{http.dictdatamanage.4baf16c0.mjs → http.dictdatamanage.2583b5ae.mjs} +4 -4
- package/lib/{http.dictmanage.77c69971.mjs → http.dictmanage.d8fe18dc.mjs} +4 -4
- package/lib/{http.duplicatechecking.31964ce7.mjs → http.duplicatechecking.9b79ce21.mjs} +3 -3
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.8fa3fe2d.mjs +293 -0
- package/lib/{http.main.40657f51.mjs → http.main.aefea27d.mjs} +17 -17
- package/lib/{http.menumanage.3240ba0d.mjs → http.menumanage.3060f4c7.mjs} +5 -5
- package/lib/{http.message.5004bf60.mjs → http.message.ceb0a1c6.mjs} +19 -19
- package/lib/{http.noticemanage.e03bd5f3.mjs → http.noticemanage.2cdb23b8.mjs} +7 -7
- package/lib/{http.orgmanage.84e43edb.mjs → http.orgmanage.0b1df8d5.mjs} +2 -2
- package/lib/{http.pluginmanage.6bc6197f.mjs → http.pluginmanage.54720675.mjs} +7 -7
- package/lib/{http.promptmanagement.c7912f6c.mjs → http.promptmanagement.dad4c6a7.mjs} +3 -3
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/{http.rolemanage.dbf3fda1.mjs → http.rolemanage.da5c40e9.mjs} +51 -19
- package/lib/{http.solution.175d36c8.mjs → http.solution.b10d9197.mjs} +4 -4
- package/lib/{http.sumberrules.608a06d6.mjs → http.sumberrules.176d3d06.mjs} +4 -4
- package/lib/{http.sysapps.e294ceaf.mjs → http.sysapps.932ba43b.mjs} +4 -4
- package/lib/{http.tabledevelopment.1d370398.mjs → http.tabledevelopment.3dcb3e97.mjs} +40 -40
- package/lib/{http.team.c8487c0b.mjs → http.team.a9c609d5.mjs} +11 -11
- package/lib/{http.timersmanage.01dbc1a2.mjs → http.timersmanage.c79afb66.mjs} +18 -18
- package/lib/{http.translationmanage.a4640c9a.mjs → http.translationmanage.f8694b51.mjs} +11 -11
- package/lib/{http.useraffiliation.840741ed.mjs → http.useraffiliation.f2a29f92.mjs} +10 -10
- package/lib/{http.usermanage.3e5eff33.mjs → http.usermanage.f5491144.mjs} +16 -16
- package/lib/{http.webresource.5158b431.mjs → http.webresource.1a1a768f.mjs} +4 -4
- package/lib/index.07adebf0.js +8 -0
- package/lib/index.340d6f00.mjs +25906 -0
- package/lib/layoutBlocks.756e4b57.js +1 -0
- package/lib/layoutBlocks.816b49a7.mjs +413 -0
- package/lib/layoutItem.051495bc.mjs +71 -0
- package/lib/layoutItem.6f6017a5.js +1 -0
- package/lib/{layouts.051a0bba.mjs → layouts.1852e8e4.mjs} +19 -22
- package/lib/{layouts.a6a36612.js → layouts.2030bf01.js} +2 -2
- package/lib/main.0dc447c8.js +1 -0
- package/lib/main.12118407.mjs +552 -0
- package/lib/main.1551de4d.js +1 -0
- package/lib/main.1611bb43.js +1 -0
- package/lib/{main.70357352.mjs → main.26d3511c.mjs} +6 -6
- package/lib/{main.7f44e3bf.mjs → main.2f9312bb.mjs} +40 -50
- package/lib/main.316ac1b8.js +1 -0
- package/lib/main.48dc325f.mjs +231 -0
- package/lib/main.54ac9faa.mjs +189 -0
- package/lib/main.69a2b457.mjs +166 -0
- package/lib/{main.ad1e8d4d.js → main.6df74fe7.js} +1 -1
- package/lib/main.72c15ab0.js +1 -0
- package/lib/{main.8a2a590d.js → main.736883a9.js} +1 -1
- package/lib/main.9b2769b1.js +1 -0
- package/lib/main.b2314767.mjs +323 -0
- package/lib/{main.c1df94d8.mjs → main.ca46939e.mjs} +2 -2
- package/lib/main.e1cf9798.js +1 -0
- package/lib/{main.b0e5e1b0.mjs → main.efc8dc7b.mjs} +2 -2
- package/lib/main.fc38c7c8.mjs +537 -0
- package/lib/main.fcb67463.js +1 -0
- package/lib/{manage.a1df9b88.mjs → manage.1bc511ff.mjs} +162 -140
- package/lib/manage.eb0a6c8c.js +1 -0
- package/lib/messages.fieldconfiguration.092bb027.js +1 -0
- package/lib/messages.fieldconfiguration.7fd9ceb0.mjs +1097 -0
- package/lib/messages.messagetemplate.0935e5a3.mjs +1319 -0
- package/lib/messages.messagetemplate.50334e5f.js +7 -0
- package/lib/messages.sendplan.60929f46.js +1 -0
- package/lib/messages.sendplan.61edcc7f.mjs +1054 -0
- package/lib/messages.sendrecord.09a1d1cd.js +2 -0
- package/lib/messages.sendrecord.1c48aa6e.mjs +651 -0
- package/lib/messages.templatelibrary.f31e8d58.mjs +808 -0
- package/lib/messages.templatelibrary.f5952edd.js +2 -0
- package/lib/mobile.designer.componentstree.365945a3.js +1 -0
- package/lib/mobile.designer.componentstree.9439895e.mjs +2064 -0
- package/lib/mobile.designer.menutree.4d4e059b.js +1 -0
- package/lib/mobile.designer.menutree.7d3b783d.mjs +1036 -0
- package/lib/moveFile.3dc1dc37.mjs +276 -0
- package/lib/moveFile.f70bbff7.js +1 -0
- package/lib/{page.build.846096e6.js → page.build.7ac1ee9b.js} +3 -3
- package/lib/{page.build.685c1e15.mjs → page.build.ae61a39b.mjs} +607 -601
- package/lib/page.designer.componentstree.74a3a114.js +1 -0
- package/lib/page.designer.componentstree.cdabec2d.mjs +2958 -0
- package/lib/page.designer.fieldfiltering.e341aa60.mjs +430 -0
- package/lib/page.designer.fieldfiltering.f2d1b6e4.js +1 -0
- package/lib/page.designer.menutree.71c18258.js +1 -0
- package/lib/page.designer.menutree.e4ce1e90.mjs +5952 -0
- package/lib/page.designer.operation.1d435e6e.js +1 -0
- package/lib/page.designer.operation.fe808988.mjs +44 -0
- package/lib/page.designer.page.654634aa.js +1 -0
- package/lib/page.designer.page.821f8994.mjs +10638 -0
- package/lib/personal.echarts.118bcafb.mjs +268 -0
- package/lib/personal.echarts.e5915542.js +1 -0
- package/lib/result.4d4039ea.js +1 -0
- package/lib/result.a87217ae.mjs +639 -0
- package/lib/router.config.a09f29e7.js +1 -0
- package/lib/router.config.f0ad16fd.mjs +1424 -0
- package/lib/solution.application.8d6c84e8.js +1 -0
- package/lib/solution.application.e6b5dc4f.mjs +548 -0
- package/lib/solution.applicationmenu.c6cd2b59.js +1 -0
- package/lib/solution.applicationmenu.e878c41a.mjs +508 -0
- package/lib/solution.approvalflow.79da028c.js +1 -0
- package/lib/solution.approvalflow.eb1c0607.mjs +436 -0
- package/lib/solution.dict.088a1e72.mjs +769 -0
- package/lib/solution.dict.1d5195d0.js +1 -0
- package/lib/solution.menu.e58922fe.mjs +432 -0
- package/lib/solution.menu.fa48a7e8.js +1 -0
- package/lib/solution.plugin.5d6d29cf.js +1 -0
- package/lib/solution.plugin.ae6df926.mjs +347 -0
- package/lib/solution.processflow.62936f1c.mjs +392 -0
- package/lib/solution.processflow.aa1e808b.js +1 -0
- package/lib/solution.role.2eff83a1.js +1 -0
- package/lib/solution.role.7b3e7030.mjs +456 -0
- package/lib/solution.webresources.88c4483b.mjs +379 -0
- package/lib/solution.webresources.bc00603d.js +1 -0
- package/lib/solution.workflow.0ed2cb24.js +1 -0
- package/lib/solution.workflow.85de0ae5.mjs +395 -0
- package/lib/{store.config.fff8a5a1.mjs → store.config.03dd7b19.mjs} +22 -17
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.014f3e0b.mjs → system.account.3d7480ba.mjs} +877 -881
- package/lib/{system.account.0d4f1fdc.js → system.account.93ad722e.js} +7 -7
- package/lib/{system.config.0899edb8.mjs → system.config.6084ad21.mjs} +1 -1
- package/lib/{system.config.210f516c.js → system.config.9520e7f9.js} +1 -1
- package/lib/{system.datasource.82492d27.js → system.datasource.76c0ccdb.js} +1 -1
- package/lib/{system.datasource.986768c9.mjs → system.datasource.d74df021.mjs} +1 -1
- package/lib/system.dict.ab148847.js +1 -0
- package/lib/{system.dict.ef24873d.mjs → system.dict.caad4d66.mjs} +264 -260
- package/lib/system.document.0e46ff8c.js +1 -0
- package/lib/system.document.cbdf25a9.mjs +667 -0
- package/lib/{system.duplicatechecking.dcf9f86b.mjs → system.duplicatechecking.46e182d7.mjs} +245 -265
- package/lib/system.duplicatechecking.a217fc52.js +1 -0
- package/lib/system.email.1db14214.js +1 -0
- package/lib/{system.email.252fd642.mjs → system.email.c1ad6598.mjs} +10 -15
- package/lib/{system.fieldsecurity.0234d390.mjs → system.fieldsecurity.2e55e839.mjs} +370 -361
- package/lib/system.fieldsecurity.40b4f48a.js +1 -0
- package/lib/system.file.6a6bd77c.js +1 -0
- package/lib/{system.file.73eeb731.mjs → system.file.80aa0809.mjs} +81 -149
- package/lib/{system.log.b86cf57f.mjs → system.log.3986a8ca.mjs} +1 -1
- package/lib/{system.log.fc60f5e6.js → system.log.9d394678.js} +1 -1
- package/lib/{system.machine.0114001b.mjs → system.machine.395c67c2.mjs} +1 -1
- package/lib/{system.machine.f1d95c86.js → system.machine.d33b0b6e.js} +1 -1
- package/lib/system.notice.2090c130.js +1 -0
- package/lib/{system.notice.25ea8dca.mjs → system.notice.51880df6.mjs} +994 -992
- package/lib/system.noticereceived.0b79642e.js +1 -0
- package/lib/{system.noticereceived.369f634c.mjs → system.noticereceived.55f276ab.mjs} +10 -11
- package/lib/{system.onlineuser.2dc284b1.mjs → system.onlineuser.71034956.mjs} +37 -26
- package/lib/system.onlineuser.e74f010d.js +1 -0
- package/lib/{system.org.c20fe6b2.mjs → system.org.e1e156c6.mjs} +2 -2
- package/lib/{system.org.79ee5bd6.js → system.org.f6d58d0f.js} +1 -1
- package/lib/system.permissions.4090552f.mjs +972 -0
- package/lib/system.permissions.fdb64929.js +1 -0
- package/lib/{system.plugin.45a0f530.mjs → system.plugin.8a9a6448.mjs} +500 -479
- package/lib/system.plugin.a0f25733.js +1 -0
- package/lib/{system.pos.7946a99c.mjs → system.pos.0ad80a53.mjs} +1 -1
- package/lib/{system.pos.0a3d2a37.js → system.pos.71f3eba7.js} +1 -1
- package/lib/{system.promptmanagement.d7250932.mjs → system.promptmanagement.39607ddb.mjs} +246 -243
- package/lib/system.promptmanagement.9718aa24.js +1 -0
- package/lib/system.role.321c48d3.js +1 -0
- package/lib/{system.role.75da7929.mjs → system.role.3b533a3e.mjs} +511 -488
- package/lib/system.sumberrules.6e8d208e.js +1 -0
- package/lib/{system.sumberrules.4a1376a6.mjs → system.sumberrules.c2b8c5e7.mjs} +168 -165
- package/lib/{system.team.e6a9608e.mjs → system.team.367bf5e7.mjs} +163 -161
- package/lib/system.team.cf1c1558.js +1 -0
- package/lib/system.teammembers.63f21557.js +1 -0
- package/lib/{system.teammembers.4a7e7339.mjs → system.teammembers.851ce63b.mjs} +203 -198
- package/lib/system.timers.51bedf97.js +38 -0
- package/lib/{system.timers.eb0b6f3e.mjs → system.timers.5e735567.mjs} +2261 -2213
- package/lib/{system.translation.e34f0891.mjs → system.translation.61765713.mjs} +435 -429
- package/lib/system.translation.c9f1b505.js +1 -0
- package/lib/{system.user.fa2d2997.mjs → system.user.254bbe85.mjs} +1082 -1026
- package/lib/system.user.475d7391.js +14 -0
- package/lib/{system.useraffiliation.518e341e.mjs → system.useraffiliation.b96c984a.mjs} +418 -412
- package/lib/system.useraffiliation.fe1e1d39.js +1 -0
- package/lib/{system.webresource.469db736.mjs → system.webresource.2c6cf4a7.mjs} +179 -179
- package/lib/system.webresource.81cfa690.js +1 -0
- package/lib/{system.welcome.191e98f5.mjs → system.welcome.72da74ae.mjs} +1 -1
- package/lib/{system.welcome.f64e49f8.js → system.welcome.d86a3cdb.js} +1 -1
- package/lib/table.definition..btnconfig.24402bf0.mjs +938 -0
- package/lib/table.definition..btnconfig.add3d840.js +1 -0
- package/lib/table.definition..echartsconfig.4310b5a2.js +1 -0
- package/lib/table.definition..echartsconfig.9c3c88f6.mjs +2150 -0
- package/lib/tableDescriptions.143d8e67.js +1 -0
- package/lib/tableDescriptions.60a07f7c.mjs +80 -0
- package/lib/tcheckboxs.e4d387ff.js +1 -0
- package/lib/{tcheckboxs.090e75eb.mjs → tcheckboxs.ee4adb9e.mjs} +2 -2
- package/lib/tcurrency.0360c142.mjs +85 -0
- package/lib/tcurrency.233f4e63.js +1 -0
- package/lib/{tdatepicker.8fe48b1b.mjs → tdatepicker.9e5d99f4.mjs} +2 -2
- package/lib/{tdatepicker.b19e689d.js → tdatepicker.b10536fd.js} +1 -1
- package/lib/{tdictSwitch.2e07dc8a.js → tdictSwitch.10d64c18.js} +1 -1
- package/lib/{tdictSwitch.43d882c7.mjs → tdictSwitch.eed5a945.mjs} +2 -2
- package/lib/{tfile.72925615.mjs → tfile.7c635ee4.mjs} +2 -2
- package/lib/{tfile.1bc381f9.js → tfile.e183d25f.js} +1 -1
- package/lib/{tparticipants.ca5b556c.mjs → tparticipants.04280449.mjs} +2 -2
- package/lib/{tparticipants.77b876e2.js → tparticipants.f732d245.js} +1 -1
- package/lib/{translation.mains.278e4ba6.mjs → translation.mains.0df71304.mjs} +7 -7
- package/lib/{translation.mains.1ce7e110.js → translation.mains.6f941967.js} +1 -1
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.333daba2.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/versionControl.97590ce8.js +1 -0
- package/lib/versionControl.d1b2b0da.mjs +488 -0
- package/lib/versionEdit.c51606e4.mjs +452 -0
- package/lib/versionEdit.f710d0bb.js +1 -0
- package/lib/view.build.5789a6eb.js +1 -0
- package/lib/view.build.9976c958.mjs +1578 -0
- package/lib/{viewList.5a25c4b6.mjs → viewList.3ca52f0c.mjs} +70 -92
- package/lib/viewList.6e181715.js +1 -0
- package/lib/viewTree.9bdf96f0.js +1 -0
- package/lib/viewTree.c2e11b7f.mjs +409 -0
- package/locale/en_US.js +45 -6
- package/locale/id_ID.js +45 -6
- package/locale/vi_VN.js +45 -6
- package/locale/zh_CN.js +45 -5
- package/package.json +1 -1
- package/lib/addPermission.5036013c.js +0 -1
- package/lib/approvalModel.66f49dfb.js +0 -1
- package/lib/attribute.318f485c.js +0 -1
- package/lib/attribute.a06ac9e7.mjs +0 -237
- package/lib/buildItem.6a834227.js +0 -1
- package/lib/buildItem.fd8634ab.mjs +0 -205
- package/lib/businessRules.0e4dbb3a.js +0 -1
- package/lib/components.chartbi.b043dcdc.mjs +0 -1729
- package/lib/components.chartbi.e4680eaa.js +0 -7
- package/lib/components.echarts.e4d6b13e.js +0 -3
- package/lib/components.iconselector.d712170f.js +0 -1
- package/lib/components.middleware.3bad5748.js +0 -1
- package/lib/components.sidenavmenu.b9bb9304.js +0 -1
- package/lib/components.tableumy.9cf33062.js +0 -1
- package/lib/components.tablevirtual.38d4d3d8.js +0 -1
- package/lib/components.viewformdetails.1621bc18.js +0 -1
- package/lib/components.viewloading.807bbf68.js +0 -1
- package/lib/components.xlsximport.dbd826bb.js +0 -1
- package/lib/createFile.6b37ecf2.js +0 -1
- package/lib/createFile.82d6e415.mjs +0 -239
- package/lib/createSubfolders.47af629c.js +0 -1
- package/lib/drawerContainer.604a1271.mjs +0 -146
- package/lib/drawerContainer.6a9813ce.js +0 -1
- package/lib/fileSearch.65311ded.js +0 -1
- package/lib/flow.designer.1ba3a90d.js +0 -1
- package/lib/flow.list.4eb10554.js +0 -1
- package/lib/form.build.51bd261e.js +0 -1
- package/lib/form.designer.build.5a950455.js +0 -1
- package/lib/form.designer.build.e521c9c6.mjs +0 -5091
- package/lib/formFiled.464856f5.js +0 -1
- package/lib/http.filedocument.7c656b91.js +0 -1
- package/lib/http.filedocument.d456d26a.mjs +0 -156
- package/lib/http.rolemanage.03363732.js +0 -1
- package/lib/index.69ad4631.mjs +0 -44291
- package/lib/index.cca024bf.js +0 -8
- package/lib/layoutBlocks.1a9e3e05.mjs +0 -204
- package/lib/layoutBlocks.5e6be06f.js +0 -1
- package/lib/main.457f4326.js +0 -1
- package/lib/main.4fff412e.js +0 -1
- package/lib/main.77373aa4.mjs +0 -441
- package/lib/main.c3726602.js +0 -1
- package/lib/manage.5bb4f719.js +0 -1
- package/lib/messages.7b74736f.js +0 -9
- package/lib/messages.ad082386.mjs +0 -4889
- package/lib/moveFile.0ce803e0.js +0 -1
- package/lib/moveFile.8310ea94.mjs +0 -254
- package/lib/personal.echarts.b22fba61.mjs +0 -701
- package/lib/personal.echarts.f77bfc9e.js +0 -1
- package/lib/result.19351665.mjs +0 -526
- package/lib/result.e59c0e40.js +0 -1
- package/lib/router.config.2501ec51.js +0 -1
- package/lib/router.config.98a73167.mjs +0 -3172
- package/lib/solution.58580123.js +0 -1
- package/lib/solution.890ff164.mjs +0 -6942
- package/lib/store.config.3cb11578.js +0 -1
- package/lib/system.dict.f5708400.js +0 -1
- package/lib/system.duplicatechecking.8e3a37c0.js +0 -1
- package/lib/system.email.070ab2be.js +0 -1
- package/lib/system.fieldsecurity.3ef07bf7.js +0 -1
- package/lib/system.file.17a7f2ed.js +0 -1
- package/lib/system.notice.96c770a6.js +0 -1
- package/lib/system.noticereceived.dfe4ecc7.js +0 -1
- package/lib/system.onlineuser.e2e39bdc.js +0 -1
- package/lib/system.permissions.90f73461.js +0 -9
- package/lib/system.permissions.c3d34921.mjs +0 -213
- package/lib/system.plugin.b34a3b47.js +0 -1
- package/lib/system.promptmanagement.b5fa6b2d.js +0 -1
- package/lib/system.role.03be0982.js +0 -1
- package/lib/system.sumberrules.bb228fce.js +0 -1
- package/lib/system.team.32183b63.js +0 -1
- package/lib/system.teammembers.847d8ea7.js +0 -1
- package/lib/system.timers.28691ce4.js +0 -38
- package/lib/system.translation.6237f071.js +0 -1
- package/lib/system.user.fca3f2d6.js +0 -14
- package/lib/system.useraffiliation.7547b9c7.js +0 -1
- package/lib/system.webresource.12712b90.js +0 -1
- package/lib/tcheckboxs.99361be3.js +0 -1
- package/lib/tcurrency.0ddac2f8.mjs +0 -92
- package/lib/tcurrency.62763c6d.js +0 -1
- package/lib/utils.datepicker.js.2076c2a2.mjs +0 -61
- package/lib/utils.datepicker.js.8576e2fc.js +0 -1
- package/lib/utils.util.js.50d1ec9c.js +0 -1
- package/lib/utils.util.js.82cd8447.mjs +0 -424
- package/lib/view.build.b44fd7d7.js +0 -1
- package/lib/view.build.f2a9fcfb.mjs +0 -2727
- package/lib/viewList.be5a5ec5.js +0 -1
|
@@ -0,0 +1,1578 @@
|
|
|
1
|
+
import { m as O, n as N } from "./components.chartbi.7356b244.mjs";
|
|
2
|
+
import { J as P, F as K } from "./page.build.ae61a39b.mjs";
|
|
3
|
+
import { c as Q, K as b, d as E, i as j, T as D, j as v, f as _, U as z, Q as G, R as H } from "./http.main.aefea27d.mjs";
|
|
4
|
+
import { a as A, b as U } from "./http.filemanage.c0de21d6.mjs";
|
|
5
|
+
import { G as W } from "./http.tabledevelopment.3dcb3e97.mjs";
|
|
6
|
+
import { u as C } from "./form.designer.build.7dc12e87.mjs";
|
|
7
|
+
import { u as L } from "./utils.util.js.333daba2.mjs";
|
|
8
|
+
function J(e, t, s) {
|
|
9
|
+
var u, f, y, p, g;
|
|
10
|
+
if (!e.syscodegenconfig && !e.syscodegenconfigfk)
|
|
11
|
+
return console.log("\u5B57\u6BB5:" + e.name + "\u6570\u636E\u9519\u8BEF!"), null;
|
|
12
|
+
const i = ["fk", "user"].includes(e.syscodegenconfig.effecttype) ? (u = e.syscodegenconfigfk) == null ? void 0 : u.effecttype : e.syscodegenconfig.effecttype, a = e.syscodegenconfig.effecttype, o = B(e).toLowerCase(), r = e.align ? e.align.split("&") : [], n = ["fk", "user"].includes(a) ? (f = e.syscodegenconfigfk) == null ? void 0 : f.fieldformat : e.syscodegenconfig.fieldformat, l = r[7] ? r[7] === "true" : !1, c = i === "inputnumber" ? 0 : ["fk", "user"].includes(e.syscodegenconfig.effecttype) ? (y = e.syscodegenconfigfk) == null ? void 0 : y.filedsize : e.syscodegenconfig.filedsize;
|
|
13
|
+
let h = {
|
|
14
|
+
key: o,
|
|
15
|
+
transKey: `Dynamics.${e.transkey}`,
|
|
16
|
+
prop: o,
|
|
17
|
+
label: e.name,
|
|
18
|
+
width: String(e.width),
|
|
19
|
+
owidth: String(e.width),
|
|
20
|
+
columnName: e.syscodegenconfig.columnname,
|
|
21
|
+
fkEntityName: e.syscodegenconfig.fkentityname,
|
|
22
|
+
id: e.fieldid,
|
|
23
|
+
fkId: ["fk", "about", "user"].includes(a) ? (p = e.syscodegenconfigfk) == null ? void 0 : p.id : null,
|
|
24
|
+
align: r[0] ? r[0] : "center",
|
|
25
|
+
checked: r[1] ? r[1] == 1 : !0,
|
|
26
|
+
effectType: i,
|
|
27
|
+
fieldType: a,
|
|
28
|
+
gatherConfig: e.gatherconfig == 1,
|
|
29
|
+
fieldFormat: r[6] ? r[6] : n,
|
|
30
|
+
dictTypeCode: ["fk", "user"].includes(a) ? (g = e.syscodegenconfigfk) == null ? void 0 : g.dicttypecode : e.syscodegenconfig.dicttypecode,
|
|
31
|
+
dictTypeList: [],
|
|
32
|
+
maxTagCount: e.maxtagcount ? Number(e.maxtagcount) : 2,
|
|
33
|
+
sourceFk: !!["fk", "about", "user"].includes(a),
|
|
34
|
+
displayMode: r[2] ? r[2] : "none",
|
|
35
|
+
displayPrefix: r[3] ? r[3] : "none",
|
|
36
|
+
preview: r[4] ? r[4] === "true" : !0,
|
|
37
|
+
download: r[5] ? r[5] === "true" : !0,
|
|
38
|
+
filedsize: i === "inputnumber" ? 0 : r[8] !== void 0 ? r[8] : c,
|
|
39
|
+
hyperlink: t === 0 || ["fk", "user", "about"].includes(a) ? l : !1
|
|
40
|
+
};
|
|
41
|
+
const d = Y(a, o, e, h.fieldFormat);
|
|
42
|
+
return e.orderconfig === 1 && Object.assign(h, {
|
|
43
|
+
sortable: "custom"
|
|
44
|
+
}), t < s && Object.assign(h, {
|
|
45
|
+
fixed: "left"
|
|
46
|
+
}), ["participants", "file"].includes(a) && Object.assign(h, {
|
|
47
|
+
showTooltip: !1
|
|
48
|
+
}), Object.assign(h, d);
|
|
49
|
+
}
|
|
50
|
+
function B(e) {
|
|
51
|
+
const t = e.syscodegenconfigfk ? e.syscodegenconfigfk.columnname : "";
|
|
52
|
+
switch (e.syscodegenconfig.effecttype) {
|
|
53
|
+
case "fk":
|
|
54
|
+
return t + e.syscodegenconfig.fkentityname + e.syscodegenconfig.columnname;
|
|
55
|
+
case "user":
|
|
56
|
+
return t + e.syscodegenconfig.fkentityname + e.syscodegenconfig.columnname;
|
|
57
|
+
case "about":
|
|
58
|
+
return e.syscodegenconfig.relations.toLowerCase();
|
|
59
|
+
default:
|
|
60
|
+
return e.syscodegenconfig.columnname;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function Y(e, t, s, i) {
|
|
64
|
+
return e == "input" ? {} : ["datepicker"].includes(e) && i === 1 ? {} : {
|
|
65
|
+
type: "slot",
|
|
66
|
+
slotType: t
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function X(e, t, s) {
|
|
70
|
+
if (e.syscodegenconfig == null)
|
|
71
|
+
return !1;
|
|
72
|
+
let i = e.options ? JSON.parse(e.options) : {}, a = {
|
|
73
|
+
required: i.required,
|
|
74
|
+
message: s,
|
|
75
|
+
trigger: "blur"
|
|
76
|
+
};
|
|
77
|
+
["inputnumber", "double", " currency"].includes(e.syscodegenconfig.effecttype) && Object.assign(a, {
|
|
78
|
+
type: "number"
|
|
79
|
+
});
|
|
80
|
+
const o = i.fieldFormat === void 0 ? "1" : i.fieldFormat, r = t.filter((l) => l.code == o)[0];
|
|
81
|
+
return {
|
|
82
|
+
id: e.syscodegenconfig.id,
|
|
83
|
+
transKey: `Dynamics.${e.syscodegenconfig.transkey}`,
|
|
84
|
+
prop: e.syscodegenconfig.columnname,
|
|
85
|
+
label: e.syscodegenconfig.columncomment,
|
|
86
|
+
effectType: q(e.syscodegenconfig.effecttype),
|
|
87
|
+
dictTypeCode: e.syscodegenconfig.dicttypecode,
|
|
88
|
+
fkEntityName: e.syscodegenconfig.fkentityname,
|
|
89
|
+
disabled: e.disabled === void 0 ? !1 : e.disabled,
|
|
90
|
+
options: Object.assign(i, {
|
|
91
|
+
fieldFormat: o
|
|
92
|
+
}),
|
|
93
|
+
min: i.min,
|
|
94
|
+
max: i.max,
|
|
95
|
+
fieldFormat: o,
|
|
96
|
+
valueFormat: M(o, t),
|
|
97
|
+
rules: [a],
|
|
98
|
+
hasFiltered: !1,
|
|
99
|
+
filterList: [],
|
|
100
|
+
filterConfig: i.filterConfig !== void 0 ? i.filterConfig : null,
|
|
101
|
+
viewId: i.viewdeId !== void 0 ? i.viewdeId : "",
|
|
102
|
+
fkData: [],
|
|
103
|
+
hasTimePicker: x(r),
|
|
104
|
+
pickerType: R(r),
|
|
105
|
+
quick: i.quick === void 0 ? !1 : i.quick,
|
|
106
|
+
labelWidth: i.quick === void 0 ? "120px" : i.labelWidth + "px"
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function Z(e, t, s, i) {
|
|
110
|
+
if (t === void 0)
|
|
111
|
+
return !1;
|
|
112
|
+
let a = {
|
|
113
|
+
required: e.required,
|
|
114
|
+
message: i,
|
|
115
|
+
trigger: "blur"
|
|
116
|
+
};
|
|
117
|
+
["inputnumber", "double", " currency"].includes(e.effectType) && Object.assign(a, {
|
|
118
|
+
type: "number"
|
|
119
|
+
});
|
|
120
|
+
const o = e.fieldFormat, r = s.filter((c) => c.code == o)[0], n = q(e.effectType);
|
|
121
|
+
return {
|
|
122
|
+
labelWidth: e.labelWidth ? `${e.labelWidth}px` : "120px",
|
|
123
|
+
transKey: `Dynamics.${t.transkey}`,
|
|
124
|
+
prop: e.columnName,
|
|
125
|
+
label: t.columncomment,
|
|
126
|
+
effectType: n,
|
|
127
|
+
dictTypeCode: e.dictTypeCode,
|
|
128
|
+
fkEntityName: e.fkEntityName,
|
|
129
|
+
disabled: e.disable,
|
|
130
|
+
options: {
|
|
131
|
+
effectType: e.effectType,
|
|
132
|
+
fieldFormat: o,
|
|
133
|
+
displayStyle: e.displayStyle,
|
|
134
|
+
defaultValue: e.defaultValue,
|
|
135
|
+
defaultValueList: e.defaultValueList,
|
|
136
|
+
filterList: e.filterList,
|
|
137
|
+
hidden: e.hidden,
|
|
138
|
+
required: e.required,
|
|
139
|
+
defaultInterval: e.defaultInterval,
|
|
140
|
+
openWidth: e.openWidth ? e.openWidth : 80,
|
|
141
|
+
widthUnit: e.widthUnit ? e.widthUnit : "%"
|
|
142
|
+
},
|
|
143
|
+
min: e.min,
|
|
144
|
+
max: e.max,
|
|
145
|
+
fieldFormat: o,
|
|
146
|
+
valueFormat: M(o, s),
|
|
147
|
+
rules: [a],
|
|
148
|
+
hasFiltered: !1,
|
|
149
|
+
filterList: [],
|
|
150
|
+
filterConfig: e.filterConfig !== void 0 ? e.filterConfig : null,
|
|
151
|
+
viewId: e.viewdeId !== void 0 ? e.viewdeId : "",
|
|
152
|
+
fkData: [],
|
|
153
|
+
hasTimePicker: x(r),
|
|
154
|
+
pickerType: R(r),
|
|
155
|
+
show: !0
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function x(e) {
|
|
159
|
+
const t = e ? e.name : "yyyy-MM-dd";
|
|
160
|
+
return ["hh:mm:ss", "hh:mm", "mm:ss", "HH:mm:ss", "HH:mm"].includes(t);
|
|
161
|
+
}
|
|
162
|
+
function R(e) {
|
|
163
|
+
const t = e ? e.name : "yyyy-MM-dd";
|
|
164
|
+
let s = "date";
|
|
165
|
+
return t === "yyyy-MM-dd hh:mm:ss" || t === "yyyy-MM-dd HH:mm:ss" ? s = "datetime" : t === "yyyy-MM" ? s = "month" : t === "yyyy" && (s = "year"), s;
|
|
166
|
+
}
|
|
167
|
+
function M(e, t) {
|
|
168
|
+
if (e === null)
|
|
169
|
+
return e;
|
|
170
|
+
const s = t.filter((i) => String(i.code) === String(e))[0];
|
|
171
|
+
return s ? s.name.replace("DD", "dd") : "yyyy-MM-dd HH:mm:ss";
|
|
172
|
+
}
|
|
173
|
+
function q(e) {
|
|
174
|
+
let t = e;
|
|
175
|
+
return ["image", "file"].includes(e) ? t = "input" : ["select", "radio", "switch", "checkbox"].includes(e) ? t = "selectMultiple" : ["fk", "about", "participants", "user"].includes(e) && (t = "selectFkMultiple"), t;
|
|
176
|
+
}
|
|
177
|
+
function $(e, t, s, i) {
|
|
178
|
+
let a = /* @__PURE__ */ new Map();
|
|
179
|
+
for (var o in e) {
|
|
180
|
+
let r = e[o] != null && e[o] !== void 0 ? e[o] : "", n = t ? t.filter((c) => c.columnname === o)[0] : null;
|
|
181
|
+
if ((n ? n.effecttype : "input") === "datepicker") {
|
|
182
|
+
let c = ee(r, n, s, i);
|
|
183
|
+
c && (a.set(o + "Start", c[0]), a.set(o + "End", c[1]));
|
|
184
|
+
} else
|
|
185
|
+
Array.isArray(r) ? r.length > 0 && a.set(o, r.join(",")) : typeof r == "number" ? r !== void 0 && a.set(o, r) : !r == "" && a.set(o, r);
|
|
186
|
+
}
|
|
187
|
+
return a.size == 0 ? {} : Object.fromEntries(a);
|
|
188
|
+
}
|
|
189
|
+
function ee(e, t, s, i) {
|
|
190
|
+
if (e === "")
|
|
191
|
+
return !1;
|
|
192
|
+
const a = s.filter((r) => r.prop === t.columnname)[0];
|
|
193
|
+
if (!a)
|
|
194
|
+
return !1;
|
|
195
|
+
const o = i.filter((r) => r.code == a.options.fieldFormat)[0];
|
|
196
|
+
if (typeof e == "array" || typeof e == "object") {
|
|
197
|
+
const r = e[1] ? V(e[1]) : "", n = o.name === "yyyy-MM" ? "-01 00:00:00" : " 00:00:00", l = o.name === "yyyy-MM" ? `-${r} 23:59:59` : " 23:59:59";
|
|
198
|
+
return e[1] ? [e[0].split(" ")[0] + n, e[1].split(" ")[0] + l] : !1;
|
|
199
|
+
}
|
|
200
|
+
if (o.name === "yyyy-MM-dd hh:mm:ss" || o.name === "yyyy-MM-dd HH:mm:ss")
|
|
201
|
+
return [e, e];
|
|
202
|
+
if (o.name === "yyyy-MM-dd")
|
|
203
|
+
return [`${e} 00:00:00`, `${e} 23:59:59`];
|
|
204
|
+
if (o.name === "yyyy-MM") {
|
|
205
|
+
const r = V(e);
|
|
206
|
+
return [`${e}-01 00:00:00`, `${e}-${r} 23:59:59`];
|
|
207
|
+
} else {
|
|
208
|
+
if (o.name === "yyyy")
|
|
209
|
+
return [`${e}-01-01 00:00:00`, `${e}-12-31 23:59:59`];
|
|
210
|
+
if (o.name === "MM-dd") {
|
|
211
|
+
const r = new Date().getFullYear();
|
|
212
|
+
return [`${r}${e} 00:00:00`, `${r}${e} 23:59:59`];
|
|
213
|
+
} else
|
|
214
|
+
return [e, e];
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function T(e) {
|
|
218
|
+
let t = /* @__PURE__ */ new Map(), s = te(e);
|
|
219
|
+
return ["switch", "select", "radio", "checkbox", "selectMultiple"].includes(e.effectType) && e.options.defaultValueList.length > 0 ? t.set(e.prop, e.options.defaultValueList) : ["datepicker"].includes(e.effectType) && s ? t.set(e.prop, s) : (["input", "textarea", "editor"].includes(e.effectType) && e.options.defaultValue !== "" || ["inputnumber", "double", " currency"].includes(e.effectType) && e.options.defaultValue !== "" && e.options.defaultValue !== void 0) && t.set(e.prop, e.options.defaultValue), Object.fromEntries(t);
|
|
220
|
+
}
|
|
221
|
+
function te(e) {
|
|
222
|
+
if (!["datepicker"].includes(e.effectType))
|
|
223
|
+
return !1;
|
|
224
|
+
let t = e.options.displayStyle, s = e.options.defaultInterval.filter((r) => r.type === "interval")[0], i = e.options.defaultInterval.filter((r) => r.type === "equal")[0], a = i.value === "" ? e.options.defaultValue : e.valueFormat === "yyyy-MM" ? F(i, t) : S(
|
|
225
|
+
i,
|
|
226
|
+
t,
|
|
227
|
+
e
|
|
228
|
+
), o = s.value === "" ? e.options.defaultValueList : e.valueFormat === "yyyy-MM" ? F(s, t) : S(s, t, e);
|
|
229
|
+
return t == 1 ? a === "" ? !1 : a : o.length === 0 ? !1 : o;
|
|
230
|
+
}
|
|
231
|
+
function S(e, t, s) {
|
|
232
|
+
let i = Number(e.value), a = new Date().getTime(), o = a - i * 1e3 * 60 * 60 * 24, r = k(a), n = k(o), l = `${r.year}-${r.mon}-${r.day} ${r.hours}:${r.min}:${r.sec}`, c = `${n.year}-${n.mon}-${n.day} ${n.hours}:${n.min}:${n.sec}`;
|
|
233
|
+
return t == 1 ? s.valueFormat.replace("DD", "dd") === "YYYY-MM-dd" ? c.split(" ")[0] : c : [c, l];
|
|
234
|
+
}
|
|
235
|
+
function F(e, t, s) {
|
|
236
|
+
let i = Number(e.value), a = new Date().getTime(), o = k(a), r = o.year, n = Number(o.mon);
|
|
237
|
+
return t == 0 && i === 13 ? [`${r}-01`, `${r}-${m(n)}`] : (n - i < 0 ? (n = n - i + 12, r -= 1) : n - i === 0 ? (n = t == 1 ? 12 : 1, r = t == 1 ? r - 1 : r) : n -= i, t == 1 ? `${r}-${m(n)}` : [
|
|
238
|
+
`${r}-${m(n)}`,
|
|
239
|
+
`${o.year}-${o.mon}`
|
|
240
|
+
]);
|
|
241
|
+
}
|
|
242
|
+
function k(e) {
|
|
243
|
+
let s = e.toString().length == 10 ? parseInt(e) * 1e3 : parseInt(e);
|
|
244
|
+
var i = new Date(s), a = i.getFullYear(), o = i.getMonth() + 1, r = i.getDate(), n = i.getHours(), l = i.getMinutes(), c = i.getSeconds();
|
|
245
|
+
return {
|
|
246
|
+
year: a,
|
|
247
|
+
mon: m(o),
|
|
248
|
+
day: m(r),
|
|
249
|
+
hours: m(n),
|
|
250
|
+
min: m(l),
|
|
251
|
+
sec: m(c)
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
function m(e) {
|
|
255
|
+
return e = e.toString(), e[1] ? e : "0" + e;
|
|
256
|
+
}
|
|
257
|
+
function V(e) {
|
|
258
|
+
const t = e.split("-");
|
|
259
|
+
return new Date(t[0], t[1], 0).getDate();
|
|
260
|
+
}
|
|
261
|
+
var w = null;
|
|
262
|
+
const se = {
|
|
263
|
+
name: "GdViewBuildDesigner",
|
|
264
|
+
props: {
|
|
265
|
+
record: {
|
|
266
|
+
type: Object,
|
|
267
|
+
default: () => ({})
|
|
268
|
+
},
|
|
269
|
+
develop: {
|
|
270
|
+
type: [Number, String],
|
|
271
|
+
default: 1
|
|
272
|
+
},
|
|
273
|
+
openMode: {
|
|
274
|
+
type: [String, Number],
|
|
275
|
+
default: 1
|
|
276
|
+
},
|
|
277
|
+
height: {
|
|
278
|
+
type: Number,
|
|
279
|
+
default: 100
|
|
280
|
+
},
|
|
281
|
+
foreign: {
|
|
282
|
+
type: Object,
|
|
283
|
+
default: () => ({})
|
|
284
|
+
},
|
|
285
|
+
disabledRowId: {
|
|
286
|
+
type: Array,
|
|
287
|
+
default: () => []
|
|
288
|
+
},
|
|
289
|
+
excludeButtons: {
|
|
290
|
+
type: Array,
|
|
291
|
+
default: () => []
|
|
292
|
+
},
|
|
293
|
+
lineQuickView: {
|
|
294
|
+
type: Function
|
|
295
|
+
},
|
|
296
|
+
istable: {
|
|
297
|
+
type: Boolean,
|
|
298
|
+
default: !1
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
data() {
|
|
302
|
+
return {
|
|
303
|
+
statu: !1,
|
|
304
|
+
laoding: !1,
|
|
305
|
+
show: !1,
|
|
306
|
+
queryTable: {},
|
|
307
|
+
queryParam: {},
|
|
308
|
+
formList: [],
|
|
309
|
+
tableData: {},
|
|
310
|
+
sysViewList: [],
|
|
311
|
+
personalViewList: [],
|
|
312
|
+
sysViewButtons: [],
|
|
313
|
+
columns: [],
|
|
314
|
+
columnsSetting: [],
|
|
315
|
+
selectedRowKeys: [],
|
|
316
|
+
selectedRows: [],
|
|
317
|
+
viewCode: "",
|
|
318
|
+
defaultViewId: 0,
|
|
319
|
+
queryCriteria: {},
|
|
320
|
+
showSummary: !1,
|
|
321
|
+
summaryData: {},
|
|
322
|
+
viewRecord: {},
|
|
323
|
+
loadData: (e) => {
|
|
324
|
+
const t = this.triggerFilterData && this.triggerFilterData.fieldData ? this.triggerFilterData.fieldData : this.fieldData, s = this.triggerFilterData && this.triggerFilterData.tableQueries ? this.triggerFilterData.tableQueries : this.tableQueries, i = Object.assign(
|
|
325
|
+
e,
|
|
326
|
+
this.queryTable,
|
|
327
|
+
$(this.queryParam, t, s, this.getDictionary("time_longshort")),
|
|
328
|
+
this.foreign
|
|
329
|
+
);
|
|
330
|
+
return this.queryCriteria = { ...i }, this.openMode == 3 && this.foreign.fkValue != "" && String(this.foreign.fkValue).split("u").length > 1 ? new Promise((a, o) => {
|
|
331
|
+
a({ pageNo: 1, pageSize: 40, totalRows: 0, rows: [] });
|
|
332
|
+
}) : Q(i).then((a) => {
|
|
333
|
+
this.triggerFilterData = null;
|
|
334
|
+
let o = [];
|
|
335
|
+
if (a.code === 200) {
|
|
336
|
+
o = a.data.rows.filter((l) => l.id !== null);
|
|
337
|
+
const n = a.data.rows.filter((l) => l.id === null)[0];
|
|
338
|
+
this.summaryData = n || {}, this.showSummary = !!n, this.$emit("changeData", o), this.$refs.charts && this.$refs.charts.setLoadData(o);
|
|
339
|
+
} else
|
|
340
|
+
this.$message.error(a.message);
|
|
341
|
+
const r = a.data ? a.data : {};
|
|
342
|
+
return Object.assign(r, {
|
|
343
|
+
rows: o
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
},
|
|
347
|
+
amount: ({ columns: e, data: t }) => {
|
|
348
|
+
let s = [];
|
|
349
|
+
return e.forEach((i, a) => {
|
|
350
|
+
if (i.property)
|
|
351
|
+
this.summaryData[i.property] !== null && !this.istable ? s[a] = this.$i18nt("gd.table.subtotal", "\u5C0F\u8BA1") + ": " + this.summaryData[i.property] : s[a] = "";
|
|
352
|
+
else {
|
|
353
|
+
s[a] = "";
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
}), s;
|
|
357
|
+
},
|
|
358
|
+
tableQueries: [],
|
|
359
|
+
imgList: [],
|
|
360
|
+
currentImg: "",
|
|
361
|
+
fieldData: [],
|
|
362
|
+
hideQueryField: [],
|
|
363
|
+
fileOptions: {},
|
|
364
|
+
styled: {},
|
|
365
|
+
componentList: [],
|
|
366
|
+
callbackFun: null,
|
|
367
|
+
renderHeaderList: [],
|
|
368
|
+
triggerFilterData: null,
|
|
369
|
+
showComponent: ""
|
|
370
|
+
};
|
|
371
|
+
},
|
|
372
|
+
watch: {
|
|
373
|
+
selectedRows(e, t) {
|
|
374
|
+
this.baseUsageBtn();
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
components: {
|
|
378
|
+
ViewSelection: () => import("./main.48dc325f.mjs"),
|
|
379
|
+
ChildRenItem: () => import("./index.340d6f00.mjs").then((e) => e.b2),
|
|
380
|
+
ImgPreview: () => import("./components.imgpreview.0563c338.mjs"),
|
|
381
|
+
XlsxExport: () => import("./components.xlsxexport.a1b7b087.mjs"),
|
|
382
|
+
XlsxImport: () => import("./components.xlsximport.d39bfeaa.mjs").then((e) => e.m),
|
|
383
|
+
TeamSharing: () => import("./components.teamsharing.b9f112cf.mjs"),
|
|
384
|
+
BatchUpdate: () => import("./index.340d6f00.mjs").then((e) => e.b3),
|
|
385
|
+
DataAssign: () => import("./components.dataassign.e398cc99.mjs"),
|
|
386
|
+
ViewCharts: () => import("./main.69a2b457.mjs"),
|
|
387
|
+
QuickSearch: () => import("./main.b2314767.mjs"),
|
|
388
|
+
StatusChange: () => import("./components.statuschange.85956695.mjs")
|
|
389
|
+
},
|
|
390
|
+
computed: {
|
|
391
|
+
paginationStyle() {
|
|
392
|
+
const e = this.options.pagerFlex !== void 0 ? this.options.pagerFlex : "";
|
|
393
|
+
return e !== "" ? `justify-content:${e};` : "";
|
|
394
|
+
},
|
|
395
|
+
layoutConfig() {
|
|
396
|
+
let e = {
|
|
397
|
+
viewsGroup: !0,
|
|
398
|
+
butGroup: !0,
|
|
399
|
+
filter: !0,
|
|
400
|
+
chart: !0,
|
|
401
|
+
rfresh: !0,
|
|
402
|
+
tableSize: !0,
|
|
403
|
+
tableColumn: !0,
|
|
404
|
+
pager: !0
|
|
405
|
+
};
|
|
406
|
+
return (this.options.layoutConfig !== void 0 ? this.options.layoutConfig : !0) && this.record.layoutConfig !== void 0 && (e = this.record.layoutConfig), e;
|
|
407
|
+
},
|
|
408
|
+
getQuickQueries() {
|
|
409
|
+
return this.tableQueries.filter((t) => t.quick);
|
|
410
|
+
},
|
|
411
|
+
rowKey() {
|
|
412
|
+
let e = "id";
|
|
413
|
+
if (this.tableData.isvirtualtable === 1) {
|
|
414
|
+
const s = this.fieldData.filter((i) => i.isprimarykey === 1)[0];
|
|
415
|
+
e = s ? s.columnname : e;
|
|
416
|
+
}
|
|
417
|
+
return e;
|
|
418
|
+
},
|
|
419
|
+
disabledRefresh() {
|
|
420
|
+
return this.openMode != 3 ? !1 : this.foreign.fkValue === "";
|
|
421
|
+
},
|
|
422
|
+
tableSized() {
|
|
423
|
+
return this.openMode == 3 ? this.tableSize > 50 ? 50 : this.tableSize : this.tableSize;
|
|
424
|
+
},
|
|
425
|
+
paginationPageSize() {
|
|
426
|
+
return this.openMode == 3 ? [10, 20, 30, 40, 50] : [10, 20, 30, 40, 50, 100, 200, 500];
|
|
427
|
+
},
|
|
428
|
+
formCode() {
|
|
429
|
+
return this.options.form.id;
|
|
430
|
+
},
|
|
431
|
+
selectedKeep() {
|
|
432
|
+
return this.openMode == 2 ? !0 : this.options.selectedKeep !== void 0 ? this.options.selectedKeep : !1;
|
|
433
|
+
},
|
|
434
|
+
viewList() {
|
|
435
|
+
return this.sysViewList.concat(this.personalViewList);
|
|
436
|
+
},
|
|
437
|
+
getFristColumn() {
|
|
438
|
+
const e = this.columnsSetting.filter((t) => t.type !== "selection" && t.checked)[0];
|
|
439
|
+
return e || {};
|
|
440
|
+
},
|
|
441
|
+
getColumnsed() {
|
|
442
|
+
return this.columns.filter((t) => t.type === "slot");
|
|
443
|
+
},
|
|
444
|
+
hig() {
|
|
445
|
+
const e = this.develop === 1 ? 102 : 78, t = this.develop === 1 ? 46 + 24 + 12 : 0, s = this.develop === 1 ? this.screenHeight - 46 - e - t : this.height - e - t;
|
|
446
|
+
if (this.options.heightMode === "percentage")
|
|
447
|
+
return s * (Number(this.options.height) / 100);
|
|
448
|
+
const i = this.options.height === 0 || this.options.height === "" ? s : this.options.height;
|
|
449
|
+
return this.options.heightMode === "custom" ? i : s;
|
|
450
|
+
},
|
|
451
|
+
options() {
|
|
452
|
+
return this.record.options;
|
|
453
|
+
},
|
|
454
|
+
operationuList() {
|
|
455
|
+
return this.record.operationuList;
|
|
456
|
+
},
|
|
457
|
+
tableSetting() {
|
|
458
|
+
return this.record.tableSetting;
|
|
459
|
+
},
|
|
460
|
+
...O(["primaryColor", "screenHeight", "tableLists", "tableSize", "tablePageSize"])
|
|
461
|
+
},
|
|
462
|
+
methods: {
|
|
463
|
+
okAssignSharing(e, t) {
|
|
464
|
+
this.callbackFun && typeof this.callbackFun == "function" && this.callbackFun(e), t === "teamSharing" && this.refresh();
|
|
465
|
+
},
|
|
466
|
+
rowClick(e, t) {
|
|
467
|
+
if (w) {
|
|
468
|
+
clearTimeout(w), w = null;
|
|
469
|
+
const s = this.viewList.filter((a) => a.id === this.viewCode)[0];
|
|
470
|
+
(s && s.isdoubleclick !== void 0 ? s.isdoubleclick : 1) === 1 && this.changeQuickView(e);
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
w = setTimeout(() => {
|
|
474
|
+
w = null;
|
|
475
|
+
const s = this.selectedRowKeys.filter((o) => o === e[this.rowKey])[0], i = this.selectedRowKeys.filter((o) => o !== e[this.rowKey]), a = this.selectedRowKeys.filter((o) => o[this.rowKey] !== e[this.rowKey]);
|
|
476
|
+
this.selectedRowKeys = s ? i : i.concat([e[this.rowKey]]), this.selectedRows = s ? a : a.concat([e]), this.$emit("changeSelect", this.selectedRowKeys, this.selectedRows), this.$refs.table.rowClickSelection(e, !s, t);
|
|
477
|
+
}, 260);
|
|
478
|
+
},
|
|
479
|
+
showLoading() {
|
|
480
|
+
this.statu = !0;
|
|
481
|
+
},
|
|
482
|
+
hideLoading(e = 1500) {
|
|
483
|
+
setTimeout(() => {
|
|
484
|
+
this.statu = !1;
|
|
485
|
+
}, e);
|
|
486
|
+
},
|
|
487
|
+
hideQueryParam(e) {
|
|
488
|
+
this.hideQueryField = [...e];
|
|
489
|
+
},
|
|
490
|
+
setLoadData(e) {
|
|
491
|
+
this.$refs.table.loading = !0, this.$refs.table.setLoadData(e), setTimeout(() => {
|
|
492
|
+
this.$refs.table.loading = !1;
|
|
493
|
+
}, 100);
|
|
494
|
+
},
|
|
495
|
+
baseImportData(e) {
|
|
496
|
+
this.$refs.xlsxImport.open();
|
|
497
|
+
},
|
|
498
|
+
baseExportData(e) {
|
|
499
|
+
if (e.key == 1 || e.key == 2) {
|
|
500
|
+
this.baseExport(e);
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
if (e.key == 4) {
|
|
504
|
+
this.baseExportSel(e);
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
let t = Object.assign(
|
|
508
|
+
{
|
|
509
|
+
type: e.key ? e.key : 0,
|
|
510
|
+
whereS: []
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
...this.queryTable
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
...this.foreign
|
|
517
|
+
}
|
|
518
|
+
);
|
|
519
|
+
this.$refs.xlsxExport.open(t, e);
|
|
520
|
+
},
|
|
521
|
+
hasRowData(e, t, s = "none") {
|
|
522
|
+
if (t === "image")
|
|
523
|
+
return s === "none" ? !!e : e ? e.split(",") : [];
|
|
524
|
+
if (t === "file") {
|
|
525
|
+
const i = e ? JSON.parse(e) : [];
|
|
526
|
+
return s === "none" ? i.length > 0 : i;
|
|
527
|
+
}
|
|
528
|
+
return !1;
|
|
529
|
+
},
|
|
530
|
+
del(e) {
|
|
531
|
+
this.baseDel();
|
|
532
|
+
},
|
|
533
|
+
deactivateData() {
|
|
534
|
+
this.baseEnable(0);
|
|
535
|
+
},
|
|
536
|
+
enableData() {
|
|
537
|
+
this.baseEnable();
|
|
538
|
+
},
|
|
539
|
+
assign(e) {
|
|
540
|
+
this.baseAssign(e);
|
|
541
|
+
},
|
|
542
|
+
batchUpdate(e) {
|
|
543
|
+
this.baseBatchUpdate();
|
|
544
|
+
},
|
|
545
|
+
teamSharing(e) {
|
|
546
|
+
this.baseTeamSharing(e);
|
|
547
|
+
},
|
|
548
|
+
statusChange() {
|
|
549
|
+
this.baseStatusChange();
|
|
550
|
+
},
|
|
551
|
+
open(e) {
|
|
552
|
+
this.$emit("baseOpen", e);
|
|
553
|
+
},
|
|
554
|
+
handleMenuClick(e) {
|
|
555
|
+
e.id != this.viewCode && (this.viewCode = e.id, this.queryParam = {}, this.$refs.table.setTableData([], !1), this.baseGetView());
|
|
556
|
+
},
|
|
557
|
+
showFile(e, t, s) {
|
|
558
|
+
if (this.statu)
|
|
559
|
+
return;
|
|
560
|
+
this.showLoading();
|
|
561
|
+
const i = t[e.prop];
|
|
562
|
+
let a = i;
|
|
563
|
+
typeof i == "string" && (a = JSON.parse(i));
|
|
564
|
+
let o = t.name ? t.name : s.title, r = new P(), n = [], l = {};
|
|
565
|
+
a.forEach((h) => {
|
|
566
|
+
let d = this.getFileBlob(h).then((u) => {
|
|
567
|
+
r.file(h.fileoriginname, u, {
|
|
568
|
+
binary: !0
|
|
569
|
+
}), l[h.fileoriginname] = u;
|
|
570
|
+
});
|
|
571
|
+
n.push(d);
|
|
572
|
+
});
|
|
573
|
+
const c = this.$message({
|
|
574
|
+
message: this.$i18nt("gd.https.downloadingFiles", "\u6587\u4EF6\u6B63\u5728\u538B\u7F29\u4E0B\u8F7D\u4E2D..."),
|
|
575
|
+
duration: 0,
|
|
576
|
+
iconClass: "el-icon-loading"
|
|
577
|
+
});
|
|
578
|
+
Promise.all(n).then(() => {
|
|
579
|
+
r.generateAsync({
|
|
580
|
+
type: "blob"
|
|
581
|
+
}).then((h) => {
|
|
582
|
+
K.saveAs(h, o), this.hideLoading(), c.close();
|
|
583
|
+
});
|
|
584
|
+
}).catch((h) => {
|
|
585
|
+
c.close(), this.hideLoading(), this.$message.error("err!");
|
|
586
|
+
});
|
|
587
|
+
},
|
|
588
|
+
showImg(e, t) {
|
|
589
|
+
this.statu || (this.showLoading(), this.imgList = t, this.currentImg = e, this.$refs.imgPreview.imgListShow = !0, this.$refs.imgPreview.open(), this.hideLoading());
|
|
590
|
+
},
|
|
591
|
+
preview(e, t) {
|
|
592
|
+
if (this.statu)
|
|
593
|
+
return;
|
|
594
|
+
this.showLoading();
|
|
595
|
+
const s = e.fileoriginname.substr(e.fileoriginname.lastIndexOf(".") + 1).toLowerCase();
|
|
596
|
+
if (this.fileOptions = { ...t }, ["gif", "jpeg", "png", "jpg", "JPG", "PNG", "bmp", "BMP"].includes(s)) {
|
|
597
|
+
A({
|
|
598
|
+
id: e.id
|
|
599
|
+
}).then((i) => {
|
|
600
|
+
const a = window.URL.createObjectURL(new Blob([i]));
|
|
601
|
+
this.imgList = [a], this.currentImg = a, this.$refs.imgPreview.open(), this.statu = !1, this.hideLoading();
|
|
602
|
+
}).catch(() => {
|
|
603
|
+
this.hideLoading();
|
|
604
|
+
});
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
this.showComponent = "filePreview", this.$nextTick(() => {
|
|
608
|
+
setTimeout(() => {
|
|
609
|
+
this.$refs.filePreview.open(Object.assign(e, { fileId: e.id || e.Id, name: e.fileoriginname })), this.hideLoading();
|
|
610
|
+
}, 0);
|
|
611
|
+
});
|
|
612
|
+
},
|
|
613
|
+
baseQuickForm(e, t) {
|
|
614
|
+
if (this.statu)
|
|
615
|
+
return;
|
|
616
|
+
if (this.showLoading(), String(e.id).split("u").length > 1) {
|
|
617
|
+
let i = t.fieldType == "about" ? t.prop + "_AboutTable" : t.columnName, a = t.fieldType == "about" ? e[i] : t.fkEntityName, o = this.tableLists.filter((c) => c.tablename == a)[0], r = (t.fieldType == "about", e[t.columnName]), n = {
|
|
618
|
+
tableId: o.id,
|
|
619
|
+
data: [
|
|
620
|
+
{
|
|
621
|
+
id: r
|
|
622
|
+
}
|
|
623
|
+
]
|
|
624
|
+
};
|
|
625
|
+
this.statu = !0;
|
|
626
|
+
const l = this.$message({
|
|
627
|
+
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
628
|
+
duration: 0,
|
|
629
|
+
iconClass: "el-icon-loading"
|
|
630
|
+
});
|
|
631
|
+
this.$refs.middleware.init(n).then((c) => {
|
|
632
|
+
setTimeout(() => {
|
|
633
|
+
this.statu = !1;
|
|
634
|
+
}, 1e3), l.close(), this.hideLoading();
|
|
635
|
+
});
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
638
|
+
if (t.fieldType == "about") {
|
|
639
|
+
this.baseQuickAbout(e, t);
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
if (t.fieldType == "participants") {
|
|
643
|
+
let i = this.tableLists.filter((o) => o.tablename == e.tableName)[0];
|
|
644
|
+
if (i === void 0) {
|
|
645
|
+
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"));
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
this.statu = !0;
|
|
649
|
+
const a = this.$message({
|
|
650
|
+
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
651
|
+
duration: 0,
|
|
652
|
+
iconClass: "el-icon-loading"
|
|
653
|
+
});
|
|
654
|
+
this.$refs.middleware.init({
|
|
655
|
+
tableId: i.id,
|
|
656
|
+
data: [e]
|
|
657
|
+
}).then((o) => {
|
|
658
|
+
setTimeout(() => {
|
|
659
|
+
this.statu = !1;
|
|
660
|
+
}, 1e3), a.close(), this.hideLoading();
|
|
661
|
+
});
|
|
662
|
+
return;
|
|
663
|
+
}
|
|
664
|
+
this.baseQuickFk({ data: e, item: t });
|
|
665
|
+
},
|
|
666
|
+
changeQuickView(e) {
|
|
667
|
+
if (this.statu)
|
|
668
|
+
return;
|
|
669
|
+
this.showLoading();
|
|
670
|
+
const t = this.lineQuickView(e);
|
|
671
|
+
(typeof t == "object" || typeof t == "function") && typeof t.then == "function" ? t.then((s) => {
|
|
672
|
+
this.changeQuickViewOk(s);
|
|
673
|
+
}).catch(() => {
|
|
674
|
+
console.log("\u7528\u6237\u7EC8\u6B62\u64CD\u4F5C"), this.hideLoading();
|
|
675
|
+
}) : this.changeQuickViewOk(e);
|
|
676
|
+
},
|
|
677
|
+
changeQuickViewOk(e) {
|
|
678
|
+
if (this.openMode == 3) {
|
|
679
|
+
this.open({
|
|
680
|
+
title: this.$i18nt("gd.common.https.edit", "\u7F16\u8F91"),
|
|
681
|
+
data: e
|
|
682
|
+
}), this.hideLoading();
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
685
|
+
if (this.tableData.isvirtualtable === 1) {
|
|
686
|
+
this.open(Object.assign({ title: this.$i18nt("gd.common.https.edit", "\u7F16\u8F91") }, { ...e })), this.hideLoading();
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
this.open({
|
|
690
|
+
title: this.$i18nt("gd.common.https.edit", "\u7F16\u8F91"),
|
|
691
|
+
id: e.id
|
|
692
|
+
}), this.hideLoading();
|
|
693
|
+
},
|
|
694
|
+
operatorScope(e, t) {
|
|
695
|
+
const s = e.sourceFk !== void 0 ? e.sourceFk : !(e.fieldType != "fk" && e.fieldType != "about" && e.fieldType != "user");
|
|
696
|
+
if (this.getFristColumn.prop === e.prop && !s) {
|
|
697
|
+
this.changeQuickView(t);
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
s && this.baseQuickForm(t, e);
|
|
701
|
+
},
|
|
702
|
+
columnChange(e) {
|
|
703
|
+
this.columnsSetting = [...e];
|
|
704
|
+
},
|
|
705
|
+
renderHeader(e, { column: t, $index: s }, i) {
|
|
706
|
+
return e(
|
|
707
|
+
"div",
|
|
708
|
+
{
|
|
709
|
+
style: `display:inline-block;width: calc(100% - ${t.sortable ? "26px" : "0px"});`,
|
|
710
|
+
attrs: {
|
|
711
|
+
class: "gd-cell"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
[
|
|
715
|
+
e("gd-tables-filter", {
|
|
716
|
+
style: "cursor:pointer",
|
|
717
|
+
props: {
|
|
718
|
+
column: Object.assign(t, i || {}),
|
|
719
|
+
queryParam: this.queryParam,
|
|
720
|
+
hideQueryField: this.hideQueryField
|
|
721
|
+
},
|
|
722
|
+
on: {
|
|
723
|
+
query: this.queriesRefresh,
|
|
724
|
+
change: this.renderHeaderChange,
|
|
725
|
+
renderHeaderInit: this.renderHeaderInit
|
|
726
|
+
}
|
|
727
|
+
})
|
|
728
|
+
]
|
|
729
|
+
);
|
|
730
|
+
},
|
|
731
|
+
renderHeaderChange(e) {
|
|
732
|
+
const t = this.renderHeaderList.filter((s) => s.renderHeader && s.property !== e.property);
|
|
733
|
+
this.$nextTick(() => {
|
|
734
|
+
setTimeout(() => {
|
|
735
|
+
t.forEach((s) => {
|
|
736
|
+
s.executeEvent && s.executeEvent();
|
|
737
|
+
});
|
|
738
|
+
}, 0);
|
|
739
|
+
});
|
|
740
|
+
},
|
|
741
|
+
renderHeaderInit(e) {
|
|
742
|
+
const t = this.renderHeaderList.filter((s) => s.property !== e.property);
|
|
743
|
+
this.renderHeaderList = t.concat([e]);
|
|
744
|
+
},
|
|
745
|
+
queriesRefresh(e, t, s = 1) {
|
|
746
|
+
this.queryParam = { ...e }, this.tableQueries = this.tableQueries.map((r) => {
|
|
747
|
+
const n = t.filter((l) => (l.property || l.prop) === r.prop)[0];
|
|
748
|
+
return Object.assign({ ...r }, { fkData: n ? n.fkData : r.fkData });
|
|
749
|
+
}), this.refresh(), this.$nextTick(() => {
|
|
750
|
+
setTimeout(() => {
|
|
751
|
+
s === 1 && this.$refs.quickSearch && this.$refs.quickSearch.queriesInit();
|
|
752
|
+
}, 0);
|
|
753
|
+
});
|
|
754
|
+
const a = (this.record.interacList ? this.record.interacList : []).filter((r) => r.triggerAction === "queriesRefresh" && r.componentKey !== "" && r.componentFunction !== ""), o = this.triggerFilterData && this.triggerFilterData.source ? this.triggerFilterData.source.key : "";
|
|
755
|
+
a.forEach((r) => {
|
|
756
|
+
this.record.doEvent && r.componentKey !== o && this.record.doEvent({
|
|
757
|
+
key: r.componentKey,
|
|
758
|
+
functionName: r.componentFunction,
|
|
759
|
+
data: this.queryParam,
|
|
760
|
+
fieldData: this.fieldData,
|
|
761
|
+
tableQueries: this.tableQueries,
|
|
762
|
+
source: this.record,
|
|
763
|
+
callback: !1,
|
|
764
|
+
callbackComponents: "",
|
|
765
|
+
callbackFunction: ""
|
|
766
|
+
});
|
|
767
|
+
});
|
|
768
|
+
},
|
|
769
|
+
triggerRefresh() {
|
|
770
|
+
(this.record.interacList ? this.record.interacList : []).filter((s) => s.triggerAction === "refresh" && s.componentKey !== "" && s.componentFunction !== "").forEach((s) => {
|
|
771
|
+
this.record.doEvent && this.record.doEvent({
|
|
772
|
+
key: s.componentKey,
|
|
773
|
+
functionName: s.componentFunction,
|
|
774
|
+
data: this.queryParam,
|
|
775
|
+
fieldData: this.fieldData,
|
|
776
|
+
tableQueries: this.tableQueries,
|
|
777
|
+
source: this.record,
|
|
778
|
+
callback: !1,
|
|
779
|
+
callbackComponents: "",
|
|
780
|
+
callbackFunction: ""
|
|
781
|
+
});
|
|
782
|
+
});
|
|
783
|
+
},
|
|
784
|
+
baseTriggerFilter(e) {
|
|
785
|
+
const t = e.data && typeof e.data == "object" ? e.data : this.queryParam, s = e.tableQueries ? e.tableQueries : this.tableQueries;
|
|
786
|
+
this.triggerFilterData = {
|
|
787
|
+
fieldData: e.fieldData ? e.fieldData : this.fieldData,
|
|
788
|
+
tableQueries: s,
|
|
789
|
+
source: e.source ? e.source : {}
|
|
790
|
+
}, this.queriesRefresh(t, s);
|
|
791
|
+
},
|
|
792
|
+
handleQueryParam() {
|
|
793
|
+
let e = {};
|
|
794
|
+
(this.options.filterList ? this.options.filterList : []).forEach((s) => {
|
|
795
|
+
const i = this.fieldData.filter((a) => a.columnName === s.fieldName)[0];
|
|
796
|
+
i && ["fk", "about", "participants", "user"].includes(i.effectType) ? e[s.fieldName] = s.fieldValue === "" ? [] : String(s.fieldValue).split(",").map(Number) : i && ["select", "checkbox"].includes(i.effectType) ? e[s.fieldName] = s.fieldValue === "" ? [] : String(s.fieldValue).split(",") : e[s.fieldName] = s.fieldValue;
|
|
797
|
+
}), Object.assign(this.queryParam, {
|
|
798
|
+
...e
|
|
799
|
+
});
|
|
800
|
+
},
|
|
801
|
+
init(e) {
|
|
802
|
+
if (this.fieldData = [...e.fieldData], this.tableData = { ...e.tableData }, this.sysViewList = [...e.sysViewList], this.defaultViewId = e.defaultViewId, this.laoding = !0, this.viewList.length === 0) {
|
|
803
|
+
console.log("\u65E0\u89C6\u56FE\u4FE1\u606F");
|
|
804
|
+
return;
|
|
805
|
+
}
|
|
806
|
+
let t = this.options.view.id ? this.options.view.id : "";
|
|
807
|
+
if (t !== "" && (t = this.viewList.filter((o) => o.id === t)[0] ? t : ""), Number(this.defaultViewId) !== 0 && Number(this.openMode === 1)) {
|
|
808
|
+
const a = this.options.viewWeights ? this.options.viewWeights : "2", o = this.viewList.filter((r) => r.id === Number(this.defaultViewId))[0];
|
|
809
|
+
t = a === "1" ? t : o ? this.defaultViewId : t;
|
|
810
|
+
}
|
|
811
|
+
const s = this.viewList.filter((a) => a.type == this.openMode)[0];
|
|
812
|
+
if (t === "" && (t = s ? s.id : this.viewList[0].id), this.openMode == 2 && this.record.options.val !== void 0) {
|
|
813
|
+
const a = typeof this.record.options.val;
|
|
814
|
+
let o = a === "string" || a === "number" ? [this.record.options.val] : [...this.record.options.val];
|
|
815
|
+
this.selectedRowKeys = o.filter((r) => r !== "");
|
|
816
|
+
}
|
|
817
|
+
this.openMode == 2 && this.handleQueryParam(), this.openMode == 3 && (this.record.baseRelationRefresh = this.refresh, this.record.baseSetTableData = this.baseSetTableData), this.viewCode = t;
|
|
818
|
+
let i = [...e.personalViewList];
|
|
819
|
+
i.filter((a) => {
|
|
820
|
+
let o = this.sysViewList.filter((r) => r.id === a.baseview)[0];
|
|
821
|
+
if (o)
|
|
822
|
+
a.mode = 2, a.permissions = o.permissions, a.sysviewbuttons = o.sysviewbuttons, a.sysviewfields = a.syssavedqueryfields, a.sysviewqueries = a.syssavedqueryquerys, a.buttonrule = o.buttonrule;
|
|
823
|
+
else
|
|
824
|
+
return !1;
|
|
825
|
+
return !0;
|
|
826
|
+
}), this.personalViewList = [...i], this.baseGetView();
|
|
827
|
+
},
|
|
828
|
+
async baseGetView() {
|
|
829
|
+
let e = this.viewList.filter((d) => d.id === this.viewCode)[0];
|
|
830
|
+
if (e === void 0) {
|
|
831
|
+
console.log("\u89C6\u56FE\u4FE1\u606F\u4E0D\u5B58\u5728");
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
const t = this.viewList.filter((d) => this.$hasPerm(d.permissions) && d.mode == 1).concat(this.personalViewList)[0];
|
|
835
|
+
if (!t && this.openMode == 1) {
|
|
836
|
+
this.$message.error(this.$i18nt("gd.https.errViewTip", "\u65E0\u89C6\u56FE\u6743\u9650!"));
|
|
837
|
+
return;
|
|
838
|
+
}
|
|
839
|
+
!(e.mode == 1 ? this.$hasPerm(e.permissions) : !0) && this.openMode == 1 && (e = t, this.viewCode = t.id), this.queryTable = {
|
|
840
|
+
tableId: e.syscodegenid,
|
|
841
|
+
viewId: e.id,
|
|
842
|
+
viewType: e.mode
|
|
843
|
+
};
|
|
844
|
+
let i = [], a = {};
|
|
845
|
+
e.sysviewqueries.forEach((d) => {
|
|
846
|
+
const u = X(d, this.getDictionary("time_longshort"), this.$i18nt("gd.placeholder.required", "\u5FC5\u586B\u9879")), f = this.fieldData.filter((p) => {
|
|
847
|
+
let g = u ? u.prop : "";
|
|
848
|
+
return p.columnname === g;
|
|
849
|
+
})[0], y = f ? f.isquery : !0;
|
|
850
|
+
u && y && i.push(u);
|
|
851
|
+
});
|
|
852
|
+
const o = this.options.filterList ? this.options.filterList : [];
|
|
853
|
+
i.map((d) => {
|
|
854
|
+
const u = o.filter((f) => f.fieldName === d.prop)[0];
|
|
855
|
+
return this.openMode == 2 && u && (d.disabled = !0, d.hasFiltered = !0), !d.disabled && !d.options.hidden && (a = Object.assign(a, T(d))), d;
|
|
856
|
+
}), this.tableQueries = i;
|
|
857
|
+
const r = this.options.queryDefaultKey ? this.options.queryDefaultKey : "";
|
|
858
|
+
r !== "" ? this.queryParam = this.getDefaultParam(r) : this.queryParam = Object.assign(
|
|
859
|
+
{
|
|
860
|
+
...this.queryParam
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
...a
|
|
864
|
+
}
|
|
865
|
+
);
|
|
866
|
+
let n = e.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((u) => (u.transKey = u.transkey ? `Dynamics.${u.transkey}` : null, u.displayName = u.displayname, u)), d.children = d.childbutton), d));
|
|
867
|
+
this.$nextTick(() => {
|
|
868
|
+
setTimeout(async () => {
|
|
869
|
+
const d = this.baseRelationBtnShow();
|
|
870
|
+
this.sysViewButtons = C({
|
|
871
|
+
btn: n,
|
|
872
|
+
view: e,
|
|
873
|
+
statu: d,
|
|
874
|
+
data: this.selectedRows,
|
|
875
|
+
excludeBtn: this.excludeButtons
|
|
876
|
+
}), this.sysViewButtons = await this.baseAddbtn(), this.$emit("changeBtn", this.sysViewButtons);
|
|
877
|
+
}, 200);
|
|
878
|
+
});
|
|
879
|
+
let l = [];
|
|
880
|
+
this.openMode == 2 && this.record.options.effectType != "participants" ? l.push({
|
|
881
|
+
type: "selection-radio",
|
|
882
|
+
width: "60",
|
|
883
|
+
fixed: !0,
|
|
884
|
+
prop: "selection-radio"
|
|
885
|
+
}) : l.push({
|
|
886
|
+
type: "selection",
|
|
887
|
+
width: "60",
|
|
888
|
+
fixed: !0
|
|
889
|
+
});
|
|
890
|
+
let c = 0;
|
|
891
|
+
e.sysviewfields.forEach((d, u) => {
|
|
892
|
+
let f = J(d, u, e.frozencolumn);
|
|
893
|
+
f && f.dictTypeCode && Object.assign(f, {
|
|
894
|
+
dictTypeList: this.getDictionary(f.dictTypeCode)
|
|
895
|
+
}), c === 0 && f && f.checked && (Object.assign(f, {
|
|
896
|
+
type: "slot",
|
|
897
|
+
slotType: f.prop
|
|
898
|
+
}), c += 1);
|
|
899
|
+
const y = f ? f.prop : "", p = i.filter((g) => g.prop === y)[0];
|
|
900
|
+
p && p.effectType !== "selectFkMultiple" && Object.assign(f, {
|
|
901
|
+
renderHeader: (g, ...I) => this.renderHeader(g, ...I, {
|
|
902
|
+
effectType: p.effectType,
|
|
903
|
+
dictTypeCode: p.dictTypeCode,
|
|
904
|
+
fkEntityName: p.fkEntityName,
|
|
905
|
+
options: p.options,
|
|
906
|
+
rules: p.rules,
|
|
907
|
+
fieldFormat: p.fieldFormat,
|
|
908
|
+
valueFormat: p.valueFormat,
|
|
909
|
+
disabled: !!p.hasFiltered,
|
|
910
|
+
displayStyle: p.options.displayStyle,
|
|
911
|
+
hasTimePicker: p.hasTimePicker,
|
|
912
|
+
pickerType: p.pickerType,
|
|
913
|
+
min: p.min,
|
|
914
|
+
max: p.max
|
|
915
|
+
})
|
|
916
|
+
}), f && l.push(f);
|
|
917
|
+
});
|
|
918
|
+
let h = [];
|
|
919
|
+
if (this.istable) {
|
|
920
|
+
const d = this.record.queryList.filter((u) => u.visible);
|
|
921
|
+
h = this.processData(d, l), this.operationuList.length > 0 && (h = h.concat({
|
|
922
|
+
type: "slot",
|
|
923
|
+
prop: "tableGridOperation",
|
|
924
|
+
slotType: "tableGridOperation",
|
|
925
|
+
effectType: "tableGridOperation",
|
|
926
|
+
labelWidth: this.record.operationu.labelWidth || "120",
|
|
927
|
+
width: this.record.operationu.labelWidth || "120",
|
|
928
|
+
hidden: this.record.operationu.hide || !1,
|
|
929
|
+
visible: this.record.operationu.hide || !1,
|
|
930
|
+
fixed: "right",
|
|
931
|
+
textalign: this.record.operationu.align || "center",
|
|
932
|
+
align: this.record.operationu.align || "center",
|
|
933
|
+
label: this.$i18nt("gd.common.https.operation", "\u64CD\u4F5C"),
|
|
934
|
+
operations: this.operationuList
|
|
935
|
+
}), h.forEach((u) => {
|
|
936
|
+
u.sortable = u.orderconfig ? "custom" : !1;
|
|
937
|
+
}));
|
|
938
|
+
} else
|
|
939
|
+
h = l;
|
|
940
|
+
this.viewRecord = { ...e }, this.styled = this.viewRecord ? "" : "padding-left:12px;", this.$emit("changeView", this.viewRecord), this.columns = [...h], await this.$refs.table.loadColumns(), this.show = !0, this.$nextTick(() => {
|
|
941
|
+
this.$refs.queriesField && this.$refs.queriesField.init(), setTimeout(() => {
|
|
942
|
+
this.refresh(), this.laoding = !0, this.record.hideLoad && this.record.hideLoad(this.record.key), this.$refs.quickSearch && this.$refs.quickSearch.init();
|
|
943
|
+
}, 0);
|
|
944
|
+
});
|
|
945
|
+
},
|
|
946
|
+
getDefaultParam(e) {
|
|
947
|
+
const t = this.record.getComponentData ? this.record.getComponentData(e) : null;
|
|
948
|
+
if (!t)
|
|
949
|
+
return {};
|
|
950
|
+
let s = {};
|
|
951
|
+
const i = this.getDictionary("time_longshort");
|
|
952
|
+
let a = t.queryList ? t.queryList : [], o = [], r = [];
|
|
953
|
+
return a.forEach((l) => {
|
|
954
|
+
const c = {
|
|
955
|
+
columncomment: l.columnComment,
|
|
956
|
+
transkey: l.transKey,
|
|
957
|
+
columnname: l.columnName,
|
|
958
|
+
effecttype: l.effectType
|
|
959
|
+
};
|
|
960
|
+
o.push(c);
|
|
961
|
+
const h = Z(l, c, i, this.$i18nt("gd.placeholder.required", "\u5FC5\u586B\u9879"));
|
|
962
|
+
h && !h.disabled && !h.options.hidden && Object.assign(s, T(h)), h && r.push(h);
|
|
963
|
+
}), $(s, o, r, i);
|
|
964
|
+
},
|
|
965
|
+
processData(e, t) {
|
|
966
|
+
const s = e.map((n) => n.fieldid), i = {};
|
|
967
|
+
e.forEach((n) => {
|
|
968
|
+
i[n.fieldid] = n.orderconfig;
|
|
969
|
+
});
|
|
970
|
+
const a = t.filter((n) => n.type === "selection" || n.type === "selection-radio"), o = t.filter((n) => n.type === "selection" || n.type === "selection-radio" ? !1 : s.includes(n.id)).map((n) => ({
|
|
971
|
+
...n,
|
|
972
|
+
sortables: i[n.id] ? "custom" : !1
|
|
973
|
+
})), r = s.map((n) => o.find((l) => l.id === n)).filter((n) => n !== void 0);
|
|
974
|
+
return [...a, ...r];
|
|
975
|
+
},
|
|
976
|
+
baseAddbtn() {
|
|
977
|
+
return b({
|
|
978
|
+
OperationType: "add",
|
|
979
|
+
codeGenId: this.tableData.id,
|
|
980
|
+
DataIds: ""
|
|
981
|
+
}).then((e) => e.data ? this.sysViewButtons : this.sysViewButtons.map((t) => ({
|
|
982
|
+
...t,
|
|
983
|
+
show: t.displayName !== "\u65B0\u589E"
|
|
984
|
+
})));
|
|
985
|
+
},
|
|
986
|
+
baseGetTableView() {
|
|
987
|
+
const e = this.tableLists.filter((t) => {
|
|
988
|
+
const s = this.options.table.tableName || this.options.table.tablename;
|
|
989
|
+
return t.tablename.toLowerCase() === s.toLowerCase();
|
|
990
|
+
})[0];
|
|
991
|
+
return E({ tableId: e.id }).then((t) => (t.code === 200 ? (t.data.viewList.map((s) => (s.mode = 1, s)), this.formList = t.data.formlist, this.tableData = t.data.table, this.sysViewList = t.data.viewlist) : this.$message.error(t.message), t));
|
|
992
|
+
},
|
|
993
|
+
baseGetPersonalView(e) {
|
|
994
|
+
if (e && this.openMode != 1)
|
|
995
|
+
return new Promise((s, i) => {
|
|
996
|
+
s();
|
|
997
|
+
});
|
|
998
|
+
const t = this.tableLists.filter((s) => {
|
|
999
|
+
const i = this.options.table.tableName || this.options.table.tablename;
|
|
1000
|
+
return s.tablename.toLowerCase() === i.toLowerCase();
|
|
1001
|
+
})[0];
|
|
1002
|
+
return j({
|
|
1003
|
+
tableId: t.id
|
|
1004
|
+
}).then((s) => (s.code === 200 && (this.defaultViewId = s.data.defaultqueryid, this.personalViewList = s.data.savedquerylist), s.data));
|
|
1005
|
+
},
|
|
1006
|
+
baseUpdatePersonalView() {
|
|
1007
|
+
this.baseGetPersonalView(!1).then((e) => {
|
|
1008
|
+
let t = this.personalViewList;
|
|
1009
|
+
t.filter((s) => {
|
|
1010
|
+
let i = this.sysViewList.filter((a) => a.id == s.baseview)[0];
|
|
1011
|
+
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;
|
|
1012
|
+
}), this.personalViewList = [...t];
|
|
1013
|
+
});
|
|
1014
|
+
},
|
|
1015
|
+
refresh(e = !0) {
|
|
1016
|
+
this.$refs.table ? this.$refs.table.refresh(e) : console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
|
|
1017
|
+
},
|
|
1018
|
+
isPureNumber(e) {
|
|
1019
|
+
return typeof e == "number" && Number.isFinite(e);
|
|
1020
|
+
},
|
|
1021
|
+
baseDel() {
|
|
1022
|
+
if (this.selectedRowKeys.length === 0) {
|
|
1023
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
this.isPureNumber(this.selectedRowKeys[0]) ? b({
|
|
1027
|
+
OperationType: "delete",
|
|
1028
|
+
codeGenId: this.tableData.id,
|
|
1029
|
+
DataIds: this.selectedRowKeys[0]
|
|
1030
|
+
}).then((e) => {
|
|
1031
|
+
e.data ? this.baseDelBtn() : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
|
|
1032
|
+
}) : this.baseDelBtn();
|
|
1033
|
+
},
|
|
1034
|
+
baseDelBtn() {
|
|
1035
|
+
let e = this;
|
|
1036
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1037
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
1038
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1039
|
+
showClose: !1,
|
|
1040
|
+
confirmButtonLoading: !1,
|
|
1041
|
+
cancelButtonLoading: !1,
|
|
1042
|
+
closeOnClickModal: !1,
|
|
1043
|
+
type: "warning",
|
|
1044
|
+
confirmButtonClass: "el-button--danger",
|
|
1045
|
+
customClass: "custom-alert",
|
|
1046
|
+
callback: () => {
|
|
1047
|
+
},
|
|
1048
|
+
beforeClose: (t, s, i) => {
|
|
1049
|
+
if (t !== "confirm") {
|
|
1050
|
+
i();
|
|
1051
|
+
return;
|
|
1052
|
+
}
|
|
1053
|
+
if (e.openMode == 3) {
|
|
1054
|
+
e.baseDelLoadData(s, i);
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, D({
|
|
1058
|
+
tableId: e.tableData.id,
|
|
1059
|
+
ids: e.selectedRowKeys.join(",")
|
|
1060
|
+
}).then((a) => {
|
|
1061
|
+
s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, a.success ? (e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), e.refresh(), i()) : e.$message.error(e.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + a.message);
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
});
|
|
1065
|
+
},
|
|
1066
|
+
baseDelLoadData(e, t) {
|
|
1067
|
+
let s = this, i = !1, a = !1;
|
|
1068
|
+
this.record.options && (i = this.record.options.saved === void 0 ? !1 : this.record.options.saved, a = this.record.options.refreshHost === void 0 ? !1 : this.record.options.refreshHost);
|
|
1069
|
+
let o = [];
|
|
1070
|
+
this.selectedRowKeys.forEach((n) => {
|
|
1071
|
+
String(n).split("u").length === 1 && o.push(n);
|
|
1072
|
+
});
|
|
1073
|
+
const r = this.$refs.table.tableData.filter((n) => !this.selectedRowKeys.includes(n.id));
|
|
1074
|
+
if (o.length > 0) {
|
|
1075
|
+
e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, D({
|
|
1076
|
+
tableId: s.tableData.id,
|
|
1077
|
+
ids: o.join(",")
|
|
1078
|
+
}).then((n) => {
|
|
1079
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, n.success ? (s.$message.success(s.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), t(), s.$refs.table.setTableData(r), s.$emit("changeData", r), i && s.refresh(), a && s.foreign.fkValue !== "" && s.baseRelationRefresh(!0, [])) : s.$message.error(s.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n.message);
|
|
1080
|
+
});
|
|
1081
|
+
return;
|
|
1082
|
+
}
|
|
1083
|
+
this.$message.success(s.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), t(), this.$refs.table.setTableData(r), this.$emit("changeData", r), a && this.foreign.fkValue !== "" && this.baseRelationRefresh(!0, []), t();
|
|
1084
|
+
},
|
|
1085
|
+
tableGriddelete(e) {
|
|
1086
|
+
let t = this;
|
|
1087
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1088
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
1089
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1090
|
+
showClose: !1,
|
|
1091
|
+
confirmButtonLoading: !1,
|
|
1092
|
+
cancelButtonLoading: !1,
|
|
1093
|
+
closeOnClickModal: !1,
|
|
1094
|
+
type: "warning",
|
|
1095
|
+
confirmButtonClass: "el-button--danger",
|
|
1096
|
+
customClass: "custom-alert",
|
|
1097
|
+
callback: () => {
|
|
1098
|
+
},
|
|
1099
|
+
beforeClose: (s, i, a) => {
|
|
1100
|
+
if (s !== "confirm") {
|
|
1101
|
+
a();
|
|
1102
|
+
return;
|
|
1103
|
+
}
|
|
1104
|
+
if (t.openMode == 3) {
|
|
1105
|
+
t.baseDelLoadData(i, a);
|
|
1106
|
+
return;
|
|
1107
|
+
}
|
|
1108
|
+
i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, D({
|
|
1109
|
+
tableId: t.tableData.id,
|
|
1110
|
+
ids: e.id
|
|
1111
|
+
}).then((o) => {
|
|
1112
|
+
i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, o.success ? (t.$message.success(t.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), t.refresh(), a()) : t.$message.error(t.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + o.message);
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
},
|
|
1117
|
+
tableGridpage(e) {
|
|
1118
|
+
e.type == "size" ? this.$refs.table.handleSizeChange(e.pageSize) : e.type == "current" ? this.$refs.table.handleCurrentChange(e.pageNo, e.pageSize) : this.queriesRefresh(e.data, e.fieldData);
|
|
1119
|
+
},
|
|
1120
|
+
gettableGrid() {
|
|
1121
|
+
if (this.selectedRowKeys.length === 0) {
|
|
1122
|
+
this.$message.warning(this.$i18nt("gd.https.readTip", "\u8BF7\u9009\u62E9\u9700\u8981\u67E5\u770B\u7684\u6570\u636E!"));
|
|
1123
|
+
return;
|
|
1124
|
+
}
|
|
1125
|
+
if (this.selectedRowKeys.length > 1) {
|
|
1126
|
+
this.$message.warning(this.$i18nt("gd.https.readTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E!"));
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
this.record.tableGridList = this.selectedRows;
|
|
1130
|
+
},
|
|
1131
|
+
handleMenuClicked(e) {
|
|
1132
|
+
let t = this.$refs.table, s = [];
|
|
1133
|
+
t.columnsSetting.forEach((l) => {
|
|
1134
|
+
(l.checked == null ? !0 : l.checked) && l.id != null && s.push({
|
|
1135
|
+
id: l.id,
|
|
1136
|
+
columnName: l.prop,
|
|
1137
|
+
aliasName: this.$i18nt(l.transKey, l.label),
|
|
1138
|
+
fkId: l.fkId
|
|
1139
|
+
});
|
|
1140
|
+
}), this.viewType == 2 && s.pop();
|
|
1141
|
+
let i = {
|
|
1142
|
+
pageNo: t.currentPage,
|
|
1143
|
+
pageSize: t.pageSized
|
|
1144
|
+
}, a = /* @__PURE__ */ new Map();
|
|
1145
|
+
for (let l in this.queryCriteria)
|
|
1146
|
+
l != "pageNo" && l != "pageSize" && l != "viewType" && a.set(l, this.queryCriteria[l]);
|
|
1147
|
+
const o = this.triggerFilterData && this.triggerFilterData.fieldData ? this.triggerFilterData.fieldData : this.fieldData, r = this.triggerFilterData && this.triggerFilterData.tableQueries ? this.triggerFilterData.tableQueries : this.tableQueries;
|
|
1148
|
+
let n = {
|
|
1149
|
+
displayColumns: s,
|
|
1150
|
+
whereS: [
|
|
1151
|
+
Object.assign(
|
|
1152
|
+
{
|
|
1153
|
+
...i
|
|
1154
|
+
},
|
|
1155
|
+
$(this.queryParam, o, r, this.getDictionary("time_longshort")),
|
|
1156
|
+
Object.fromEntries(a)
|
|
1157
|
+
)
|
|
1158
|
+
],
|
|
1159
|
+
type: e
|
|
1160
|
+
};
|
|
1161
|
+
return Object.assign(Object.fromEntries(a), n, {
|
|
1162
|
+
...i
|
|
1163
|
+
});
|
|
1164
|
+
},
|
|
1165
|
+
baseExport(e) {
|
|
1166
|
+
const t = this.$message({
|
|
1167
|
+
message: this.$i18nt("gd.login.exporting", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
|
|
1168
|
+
duration: 0,
|
|
1169
|
+
iconClass: "el-icon-loading"
|
|
1170
|
+
});
|
|
1171
|
+
let s = this.handleMenuClicked(e.key), i = Object.assign(
|
|
1172
|
+
{
|
|
1173
|
+
...s
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
...this.queryTable
|
|
1177
|
+
},
|
|
1178
|
+
this.foreign
|
|
1179
|
+
), a = e.url ? e.url : !1;
|
|
1180
|
+
v(i, a).then((o) => {
|
|
1181
|
+
this.$refs.xlsxExport.exportWay(o, t);
|
|
1182
|
+
}).catch((o) => {
|
|
1183
|
+
t.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"));
|
|
1184
|
+
});
|
|
1185
|
+
},
|
|
1186
|
+
baseExportSel(e) {
|
|
1187
|
+
if (this.selectedRowKeys.length === 0) {
|
|
1188
|
+
this.$message.warning(this.$i18nt("gd.https.exportTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u6570\u636E!"));
|
|
1189
|
+
return;
|
|
1190
|
+
}
|
|
1191
|
+
const t = this.$message({
|
|
1192
|
+
message: this.$i18nt("gd.login.exporting", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
|
|
1193
|
+
duration: 0,
|
|
1194
|
+
iconClass: "el-icon-loading"
|
|
1195
|
+
});
|
|
1196
|
+
let s = this.handleMenuClicked(e.key), i = Object.assign(
|
|
1197
|
+
{
|
|
1198
|
+
...s
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
...this.queryTable
|
|
1202
|
+
},
|
|
1203
|
+
this.foreign,
|
|
1204
|
+
{
|
|
1205
|
+
type: 4,
|
|
1206
|
+
exportIds: this.selectedRowKeys.join(",")
|
|
1207
|
+
}
|
|
1208
|
+
), a = e.url ? e.url : !1;
|
|
1209
|
+
v(i, a).then((o) => {
|
|
1210
|
+
this.$refs.xlsxExport.exportWay(o, t);
|
|
1211
|
+
}).catch((o) => {
|
|
1212
|
+
t.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");
|
|
1213
|
+
});
|
|
1214
|
+
},
|
|
1215
|
+
baseSetDefaultView(e) {
|
|
1216
|
+
let t = this;
|
|
1217
|
+
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"), {
|
|
1218
|
+
confirmButtonText: this.$i18nt("gd.https.defaultViewOk", "\u786E\u5B9A\u8BBE\u7F6E"),
|
|
1219
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1220
|
+
showClose: !1,
|
|
1221
|
+
confirmButtonLoading: !1,
|
|
1222
|
+
cancelButtonLoading: !1,
|
|
1223
|
+
closeOnClickModal: !1,
|
|
1224
|
+
type: "warning",
|
|
1225
|
+
confirmButtonClass: "el-button--danger",
|
|
1226
|
+
customClass: "custom-alert",
|
|
1227
|
+
callback: () => {
|
|
1228
|
+
},
|
|
1229
|
+
beforeClose: (s, i, a) => {
|
|
1230
|
+
if (s !== "confirm") {
|
|
1231
|
+
a();
|
|
1232
|
+
return;
|
|
1233
|
+
}
|
|
1234
|
+
i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, W({
|
|
1235
|
+
defaultQuery: e.id,
|
|
1236
|
+
codeGenId: t.tableData.id,
|
|
1237
|
+
viewType: e.mode
|
|
1238
|
+
}).then((o) => {
|
|
1239
|
+
o.success ? (t.$message.success(t.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), t.defaultViewId = e.id) : t.$message.error(t.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + o.message), a(), i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0;
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
});
|
|
1243
|
+
},
|
|
1244
|
+
baseBatchUpdate() {
|
|
1245
|
+
this.$refs.batchUpdate.open();
|
|
1246
|
+
},
|
|
1247
|
+
baseTeamSharing(e) {
|
|
1248
|
+
if (this.selectedRowKeys.length === 0) {
|
|
1249
|
+
this.$message.warning(this.$i18nt("gd.https.shareTip", "\u8BF7\u9009\u62E9\u8981\u5171\u4EAB\u7684\u6570\u636E!"));
|
|
1250
|
+
return;
|
|
1251
|
+
}
|
|
1252
|
+
if (this.selectedRowKeys.length > 1) {
|
|
1253
|
+
this.$message.warning(this.$i18nt("gd.https.shareTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u5171\u4EAB!"));
|
|
1254
|
+
return;
|
|
1255
|
+
}
|
|
1256
|
+
this.callbackFun = e || null, b({
|
|
1257
|
+
OperationType: "share",
|
|
1258
|
+
codeGenId: this.tableData.id,
|
|
1259
|
+
DataIds: this.selectedRowKeys[0]
|
|
1260
|
+
}).then((t) => {
|
|
1261
|
+
t.data ? this.$refs.teamSharing.open(this.selectedRowKeys[0]) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message);
|
|
1262
|
+
});
|
|
1263
|
+
},
|
|
1264
|
+
baseStatusChange() {
|
|
1265
|
+
if (this.selectedRowKeys.length === 0) {
|
|
1266
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1267
|
+
return;
|
|
1268
|
+
}
|
|
1269
|
+
if (this.selectedRowKeys.length > 1) {
|
|
1270
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1271
|
+
return;
|
|
1272
|
+
}
|
|
1273
|
+
this.$refs.statusChange.open(this.selectedRowKeys[0]);
|
|
1274
|
+
},
|
|
1275
|
+
baseEnable(e = 1) {
|
|
1276
|
+
return this.selectedRowKeys.length === 0 ? (this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!")), Promise.resolve()) : b({
|
|
1277
|
+
OperationType: "disenable",
|
|
1278
|
+
codeGenId: this.tableData.id,
|
|
1279
|
+
DataIds: this.selectedRowKeys[0]
|
|
1280
|
+
}).then((t) => {
|
|
1281
|
+
if (t.data) {
|
|
1282
|
+
let s = this;
|
|
1283
|
+
return new Promise((i, a) => {
|
|
1284
|
+
this.$confirm(
|
|
1285
|
+
e == 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?"),
|
|
1286
|
+
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
1287
|
+
{
|
|
1288
|
+
confirmButtonText: e == 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u542F\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u505C\u7528"),
|
|
1289
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1290
|
+
showClose: !1,
|
|
1291
|
+
confirmButtonLoading: !1,
|
|
1292
|
+
cancelButtonLoading: !1,
|
|
1293
|
+
closeOnClickModal: !1,
|
|
1294
|
+
type: "warning",
|
|
1295
|
+
confirmButtonClass: "el-button--danger",
|
|
1296
|
+
customClass: "custom-alert",
|
|
1297
|
+
callback: () => {
|
|
1298
|
+
},
|
|
1299
|
+
beforeClose: (o, r, n) => {
|
|
1300
|
+
if (o !== "confirm") {
|
|
1301
|
+
n(), i({ action: o, res: null });
|
|
1302
|
+
return;
|
|
1303
|
+
}
|
|
1304
|
+
r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, (e == 1 ? G : H)({
|
|
1305
|
+
tableId: s.tableData.id,
|
|
1306
|
+
ids: s.selectedRowKeys.join(",")
|
|
1307
|
+
}).then((c) => {
|
|
1308
|
+
c.success ? (s.$message.success(s.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), s.refresh(), n()) : s.$message.error(s.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + c.message), r.confirmButtonLoading = !1, r.cancelButtonLoading = !1, r.showCancelButton = !0, i({ action: o, res: c });
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
);
|
|
1313
|
+
});
|
|
1314
|
+
} else
|
|
1315
|
+
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message);
|
|
1316
|
+
});
|
|
1317
|
+
},
|
|
1318
|
+
baseAssign(e) {
|
|
1319
|
+
if (this.selectedRowKeys.length === 0) {
|
|
1320
|
+
this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
|
|
1321
|
+
return;
|
|
1322
|
+
}
|
|
1323
|
+
this.callbackFun = e || null, b({
|
|
1324
|
+
OperationType: "allocation",
|
|
1325
|
+
codeGenId: this.tableData.id,
|
|
1326
|
+
DataIds: this.selectedRowKeys.join(",")
|
|
1327
|
+
}).then((t) => {
|
|
1328
|
+
t.data ? this.$refs.dataAssign.open(this.selectedRowKeys) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message);
|
|
1329
|
+
});
|
|
1330
|
+
},
|
|
1331
|
+
baseQuickAbout(e, t) {
|
|
1332
|
+
const s = this.$message({
|
|
1333
|
+
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
1334
|
+
duration: 0,
|
|
1335
|
+
iconClass: "el-icon-loading"
|
|
1336
|
+
});
|
|
1337
|
+
_({
|
|
1338
|
+
tableId: this.tableData.id,
|
|
1339
|
+
id: e.id
|
|
1340
|
+
}).then((i) => {
|
|
1341
|
+
if (i.success) {
|
|
1342
|
+
let a = t.prop + "_abouttable", o = {
|
|
1343
|
+
data: e,
|
|
1344
|
+
item: Object.assign(t, {
|
|
1345
|
+
fkEntityName: i.data[0][a]
|
|
1346
|
+
})
|
|
1347
|
+
};
|
|
1348
|
+
this.baseQuickFk(o, s);
|
|
1349
|
+
} else
|
|
1350
|
+
s.close(), this.hideLoading(), setTimeout(() => {
|
|
1351
|
+
this.statu = !1;
|
|
1352
|
+
}, 1e3), this.$nextTick(() => {
|
|
1353
|
+
setTimeout(() => {
|
|
1354
|
+
this.$message.error(i.message);
|
|
1355
|
+
}, 0);
|
|
1356
|
+
});
|
|
1357
|
+
}).catch(() => {
|
|
1358
|
+
this.hideLoading();
|
|
1359
|
+
});
|
|
1360
|
+
},
|
|
1361
|
+
baseQuickFk(e, t) {
|
|
1362
|
+
let s = t;
|
|
1363
|
+
e.item.fieldType != "about" && (this.statu = !0, s = this.$message({
|
|
1364
|
+
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
1365
|
+
duration: 0,
|
|
1366
|
+
iconClass: "el-icon-loading"
|
|
1367
|
+
}));
|
|
1368
|
+
let i = {
|
|
1369
|
+
thisTableName: this.tableData.tablename,
|
|
1370
|
+
thisIdValue: e.data.id,
|
|
1371
|
+
thisFiled: e.item.columnName,
|
|
1372
|
+
fkTable: e.item.fkEntityName ? e.item.fkEntityName.toLowerCase() : e.item.fkEntityName
|
|
1373
|
+
};
|
|
1374
|
+
z(i).then((a) => {
|
|
1375
|
+
a.success ? this.$refs.middleware.init(
|
|
1376
|
+
Object.assign(a.data, {
|
|
1377
|
+
fieldType: e.item.fieldType
|
|
1378
|
+
})
|
|
1379
|
+
).then((o) => {
|
|
1380
|
+
setTimeout(() => {
|
|
1381
|
+
this.statu = !1;
|
|
1382
|
+
}, 1e3), s.close(), this.hideLoading();
|
|
1383
|
+
}) : (s.close(), this.hideLoading(), this.$nextTick(() => {
|
|
1384
|
+
setTimeout(() => {
|
|
1385
|
+
this.$message.error(a.message);
|
|
1386
|
+
}, 0);
|
|
1387
|
+
}));
|
|
1388
|
+
}).catch(() => {
|
|
1389
|
+
this.hideLoading();
|
|
1390
|
+
});
|
|
1391
|
+
},
|
|
1392
|
+
baseSeecharts() {
|
|
1393
|
+
this.$refs.charts.open();
|
|
1394
|
+
},
|
|
1395
|
+
baseUsageBtn() {
|
|
1396
|
+
const e = this.viewList.filter((s) => s.id === this.viewCode)[0], t = this.baseRelationBtnShow();
|
|
1397
|
+
this.sysViewButtons = C({
|
|
1398
|
+
btn: this.sysViewButtons,
|
|
1399
|
+
view: e,
|
|
1400
|
+
statu: t,
|
|
1401
|
+
data: this.selectedRows,
|
|
1402
|
+
excludeBtn: this.excludeButtons
|
|
1403
|
+
});
|
|
1404
|
+
},
|
|
1405
|
+
baseRelationBtnShow() {
|
|
1406
|
+
if (String(this.openMode) !== "3" || this.record.getDelevanceData === void 0)
|
|
1407
|
+
return !0;
|
|
1408
|
+
this.record.baseRelationAllBtnHide = this.baseRelationAllBtnHide;
|
|
1409
|
+
const e = this.record.getDelevanceData();
|
|
1410
|
+
if (!(e.formConfig.controlStatu !== void 0 ? e.formConfig.controlStatu : !1))
|
|
1411
|
+
return !0;
|
|
1412
|
+
const s = e.fieldData.filter((r) => r.columnname == e.formConfig.controlField)[0];
|
|
1413
|
+
if (s === void 0)
|
|
1414
|
+
return !0;
|
|
1415
|
+
const i = e.parameterData[s.columnname];
|
|
1416
|
+
return !((e.formConfig.controlValue === void 0 ? [] : e.formConfig.controlValue).filter((r) => String(r) === String(i)).length > 0);
|
|
1417
|
+
},
|
|
1418
|
+
baseRelationAllBtnHide() {
|
|
1419
|
+
const e = this.baseRelationBtnShow();
|
|
1420
|
+
let t = this.sysViewButtons.map((s) => (!this.excludeButtons.includes(s.id) && !this.excludeButtons.includes(s.displayName) && (s.show = e), s));
|
|
1421
|
+
this.sysViewButtons = [...t];
|
|
1422
|
+
},
|
|
1423
|
+
baseRelationOk(e) {
|
|
1424
|
+
const t = e.fkDataList.filter((r) => ["fk", "user"].includes(r.options.effectType));
|
|
1425
|
+
let s = /* @__PURE__ */ new Map();
|
|
1426
|
+
t.forEach((r) => {
|
|
1427
|
+
const n = r.options.columnName, l = e.data[n];
|
|
1428
|
+
let c = this.viewRecord.sysviewfields.filter((h) => h.syscodegenconfig.columnname == n)[0];
|
|
1429
|
+
if (c) {
|
|
1430
|
+
let h = B(c), d = r.fkData.filter((u) => u.id === l)[0];
|
|
1431
|
+
s.set(h, d ? d.name : "");
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
let i = Object.assign(e.data, Object.fromEntries(s)), a = [], o = this.$refs.table.tableData.filter((r) => r.id !== null);
|
|
1435
|
+
i.id ? a = o.map((r) => {
|
|
1436
|
+
let n = String(r.id).split("u");
|
|
1437
|
+
return r.id === i.id && n.length === 1 && (r = Object.assign(
|
|
1438
|
+
{ ...r },
|
|
1439
|
+
{ ...i },
|
|
1440
|
+
{
|
|
1441
|
+
GdSaasTepyName: 2,
|
|
1442
|
+
GdSaasTepyOperation: !0
|
|
1443
|
+
}
|
|
1444
|
+
)), r.id === i.id && n.length > 1 && (r = Object.assign({ ...r }, { ...i })), r;
|
|
1445
|
+
}) : a = [
|
|
1446
|
+
Object.assign(i, {
|
|
1447
|
+
id: L(),
|
|
1448
|
+
GdSaasTepyName: 1,
|
|
1449
|
+
GdSaasTepyOperation: !0
|
|
1450
|
+
})
|
|
1451
|
+
].concat(o), this.$refs.table.setTableData(a), this.$emit("changeData", a);
|
|
1452
|
+
},
|
|
1453
|
+
baseRelationRefresh(e = !0, t) {
|
|
1454
|
+
if (this.openMode != 3)
|
|
1455
|
+
return;
|
|
1456
|
+
const s = this.record.options.refreshFields ? this.record.options.refreshFields : [], i = this.record.options.refreshMode ? this.record.options.refreshMode : 1;
|
|
1457
|
+
this.record.refresh(e, t, { refreshMode: i, list: s });
|
|
1458
|
+
},
|
|
1459
|
+
baseBtnsStatus(e) {
|
|
1460
|
+
const t = e.type ? e.type : "show", s = e.list ? e.list : [], i = e.field ? e.field : "id", a = e.manner ? e.manner : "default", o = e.time !== void 0 ? e.time : 100;
|
|
1461
|
+
this.$nextTick(() => {
|
|
1462
|
+
setTimeout(() => {
|
|
1463
|
+
const r = this.baseRelationBtnShow();
|
|
1464
|
+
let n = JSON.parse(JSON.stringify(this.sysViewButtons));
|
|
1465
|
+
n.forEach((l, c) => {
|
|
1466
|
+
const h = l[i];
|
|
1467
|
+
t === "show" ? n[c].show = this.excludeButtons.includes(h) ? l.show : r ? s.includes(h) ? !0 : a === "default" ? l.show : !1 : !1 : n[c].show = this.excludeButtons.includes(h) ? l.show : r ? s.includes(h) ? !1 : a === "default" ? l.show : !1 : !1;
|
|
1468
|
+
}), this.sysViewButtons = [...n], this.$emit("changeBtn", this.sysViewButtons);
|
|
1469
|
+
}, o);
|
|
1470
|
+
});
|
|
1471
|
+
},
|
|
1472
|
+
baseForceShowBtns(e, t = 1) {
|
|
1473
|
+
let s = JSON.parse(JSON.stringify(this.sysViewButtons));
|
|
1474
|
+
s.map((i) => (t === 1 ? i.show = e.includes(i.id) ? !0 : i.show : i.show = e.includes(i.displayName) ? !0 : i.show, i)), this.sysViewButtons = [...s], this.openMode == 2 && this.$emit("changeBtn", s);
|
|
1475
|
+
},
|
|
1476
|
+
baseComponentsInit(e) {
|
|
1477
|
+
!e.ref || this.$nextTick(() => {
|
|
1478
|
+
setTimeout(() => {
|
|
1479
|
+
const t = e.functionName ? e.functionName : "init";
|
|
1480
|
+
this.$refs[e.ref] && this.$refs[e.ref][0][t](e);
|
|
1481
|
+
}, 0);
|
|
1482
|
+
});
|
|
1483
|
+
},
|
|
1484
|
+
baseCustomComponents(e) {
|
|
1485
|
+
let t = [];
|
|
1486
|
+
e.forEach((s) => {
|
|
1487
|
+
t.push(Object.assign(s, { ref: s.ref ? s.ref : L(8) }));
|
|
1488
|
+
}), this.componentList = [...t];
|
|
1489
|
+
},
|
|
1490
|
+
baseSetTableData(e) {
|
|
1491
|
+
const t = e ? Array.isArray(e) ? e : [] : [];
|
|
1492
|
+
this.$refs.table.setTableData(t), this.$emit("changeData", t);
|
|
1493
|
+
},
|
|
1494
|
+
getFileBlob(e) {
|
|
1495
|
+
return U({
|
|
1496
|
+
id: e.id
|
|
1497
|
+
}).then((t) => t.data);
|
|
1498
|
+
},
|
|
1499
|
+
getDictionary(e) {
|
|
1500
|
+
return this.$options.filters.dictData(e);
|
|
1501
|
+
},
|
|
1502
|
+
onSelectChange(e, t) {
|
|
1503
|
+
this.selectedRowKeys = e, this.selectedRows = t, this.$emit("changeSelect", e, t);
|
|
1504
|
+
},
|
|
1505
|
+
changeViewTree(e) {
|
|
1506
|
+
this.treeID = e;
|
|
1507
|
+
let t = /* @__PURE__ */ new Map();
|
|
1508
|
+
t.set(e.pid, e.data), this.queryParam = Object.assign(
|
|
1509
|
+
{
|
|
1510
|
+
...this.queryParam
|
|
1511
|
+
},
|
|
1512
|
+
Object.fromEntries(t)
|
|
1513
|
+
), this.$nextTick(() => {
|
|
1514
|
+
setTimeout(() => {
|
|
1515
|
+
this.refresh();
|
|
1516
|
+
}, 10);
|
|
1517
|
+
});
|
|
1518
|
+
const s = this.tableQueries.filter((i) => i.prop === e.pid)[0];
|
|
1519
|
+
s && (s.fkData = e.fkData);
|
|
1520
|
+
},
|
|
1521
|
+
doEventComponent(e, t) {
|
|
1522
|
+
const s = e.functionName || e.functionname;
|
|
1523
|
+
s && this.$emit("doEvent", {
|
|
1524
|
+
key: "changeComponent",
|
|
1525
|
+
functionName: s,
|
|
1526
|
+
data: e,
|
|
1527
|
+
item: t
|
|
1528
|
+
});
|
|
1529
|
+
},
|
|
1530
|
+
closedPreview() {
|
|
1531
|
+
this.showComponent = "";
|
|
1532
|
+
},
|
|
1533
|
+
doEvent(e) {
|
|
1534
|
+
this.$emit("doEvent", e);
|
|
1535
|
+
}
|
|
1536
|
+
},
|
|
1537
|
+
beforeDestroy() {
|
|
1538
|
+
this.formList = [], this.sysViewList = [], this.selectedRows = [], this.sysViewButtons = [], this.fieldData = [], this.componentList = [], this.renderHeaderList = [], this.callbackFun = null;
|
|
1539
|
+
}
|
|
1540
|
+
};
|
|
1541
|
+
var ie = function() {
|
|
1542
|
+
var t = this, s = t._self._c;
|
|
1543
|
+
return s("div", [t.istable ? t._e() : s("div", { staticClass: "gd-base-flex-body" }, [s("div", { staticClass: "main-tree" }, [t.laoding && t.viewRecord.viewtree != "{}" ? s("gd-view-tree-left", { ref: "viewTree", attrs: { queryParam: t.queryParam, viewRecord: t.viewRecord, openMode: t.openMode, height: t.hig, record: t.record }, on: { change: t.changeViewTree } }) : t._e()], 1), s("div", { staticClass: "gd-table-box-header", style: t.viewRecord.viewtree != "{}" ? "padding-left:12px;" : "padding-left:0px;" }, [s("gd-tables", { ref: "table", attrs: { dataSource: t.loadData, size: t.tableSized, pageSize: t.tablePageSize, columns: t.columns, selectedRowKeys: t.selectedRowKeys, selectedKeep: t.selectedKeep, height: t.openMode == 3 ? 0 : t.hig, maxHeight: t.hig, filtering: t.layoutConfig.filter ? t.tableQueries.length > 0 : !1, initialLoading: !1, showSummary: t.showSummary, amount: t.amount, disabledRowId: t.disabledRowId, isGather: t.layoutConfig.chart ? t.openMode == 1 : !1, pageSizes: t.paginationPageSize, disabledRefresh: t.layoutConfig.rfresh ? t.disabledRefresh : !0, rowKey: t.rowKey, showPagination: t.layoutConfig.pager, disabledColumnSettings: !t.layoutConfig.tableColumn, density: t.layoutConfig.tableSize, paginationStyle: t.paginationStyle }, on: { onChange: t.onSelectChange, columnChange: t.columnChange, baseSeecharts: t.baseSeecharts, rowClick: t.rowClick, triggerRefresh: t.triggerRefresh }, scopedSlots: t._u([{ key: "operator", fn: function() {
|
|
1544
|
+
return [t.laoding ? s("ViewSelection", { attrs: { record: t.record, sysViewButtons: t.sysViewButtons, sysViewList: t.sysViewList, personalViewList: t.personalViewList, viewCode: t.viewCode, defaultViewId: t.defaultViewId, tableData: t.tableData, selectedRowKeys: t.selectedRowKeys, openMode: t.openMode, confirmLoading: t.statu, maxBtnLength: t.options.maxBtnLength, fieldData: t.fieldData, showView: t.layoutConfig.viewsGroup, showBtn: t.layoutConfig.butGroup }, on: { functionName: t.doEvent, handleMenuClick: t.handleMenuClick, baseSetDefaultView: t.baseSetDefaultView, updatePersonalView: t.baseUpdatePersonalView }, scopedSlots: t._u([t.layoutConfig.filter && t.getQuickQueries.length > 0 ? { key: "quickQueries", fn: function() {
|
|
1545
|
+
return [s("QuickSearch", { ref: "quickSearch", attrs: { viewQueries: t.getQuickQueries, tableData: t.tableData, fieldData: t.fieldData, queryParam: t.queryParam }, on: { save: (i, a) => t.queriesRefresh(i, a, 2) } })];
|
|
1546
|
+
}, proxy: !0 } : null], null, !0) }) : t._e()];
|
|
1547
|
+
}, proxy: !0 }, t._l(t.getColumnsed, function(i) {
|
|
1548
|
+
return { key: i.prop, fn: function({ column: a, row: o }) {
|
|
1549
|
+
return [s("ChildRenItem", { key: i.prop, attrs: { item: i, row: o, getFristColumn: t.getFristColumn, openMode: t.openMode }, on: { operatorScope: t.operatorScope, baseQuickForm: t.baseQuickForm, showFile: t.showFile, showImg: t.showImg, preview: t.preview } })];
|
|
1550
|
+
} };
|
|
1551
|
+
}), { key: "filtering", fn: function({ colse: i, visible: a, changeTrigger: o }) {
|
|
1552
|
+
return [s("gd-table-queries-field", { ref: "queriesField", attrs: { columns: t.tableQueries, height: t.hig, queryParam: t.queryParam, colse: i, visible: a, openMode: t.openMode, recordRelation: t.record, viewRecord: t.viewRecord, openRules: !0, changeTrigger: o }, on: { save: t.queriesRefresh, hideQueryParam: t.hideQueryParam } })];
|
|
1553
|
+
} }], null, !0) })], 1)]), t.istable ? s("div", { staticClass: "gd-base-flex-body" }, [s("div", { staticClass: "gd-table-box-header", style: t.viewRecord.viewtree != "{}" ? "padding-left:12px;" : "padding-left:0px;" }, [s("gd-tables", { ref: "table", attrs: { showPagination: !1, istool: !1, istable: t.istable, stripeColor: t.tableSetting.stripeColor, lineHeight: t.tableSetting.lineHeight, recordoperations: t.record, dataSource: t.loadData, size: t.tableSized, stripe: t.tableSetting.isStripe, border: t.tableSetting.isBorder, pageSize: t.tablePageSize, columns: t.columns, selectedRowKeys: t.selectedRowKeys, selectedKeep: t.selectedKeep, height: t.openMode == 3 ? 0 : t.hig, maxHeight: t.hig, filtering: t.tableQueries.length > 0, initialLoading: !1, showSummary: t.showSummary, amount: t.amount, disabledRowId: t.disabledRowId, isGather: t.openMode == 1, pageSizes: t.paginationPageSize, disabledRefresh: t.disabledRefresh, rowKey: t.rowKey }, on: { onChange: t.onSelectChange, columnChange: t.columnChange, baseSeecharts: t.baseSeecharts }, scopedSlots: t._u([t._l(t.getColumnsed, function(i) {
|
|
1554
|
+
return { key: i.prop, fn: function({ column: a, row: o }) {
|
|
1555
|
+
return [i.prop === "tableGridOperation" ? s("div", [t._t("tableGridOperation", null, { column: a, row: o, item: i })], 2) : s("ChildRenItem", { attrs: { item: i, row: o, getFristColumn: t.getFristColumn }, on: { operatorScope: t.operatorScope, baseQuickForm: t.baseQuickForm, showFile: t.showFile, showImg: t.showImg, preview: t.preview } })];
|
|
1556
|
+
} };
|
|
1557
|
+
})], null, !0) })], 1)]) : t._e(), s("ImgPreview", { ref: "imgPreview", attrs: { filePreviewShow: t.imgList.length > 0, imgList: t.imgList, currentImg: t.currentImg } }), t.showComponent === "filePreview" ? s("gd-file-preview", { ref: "filePreview", attrs: { options: t.fileOptions }, on: { closed: t.closedPreview } }) : t._e(), s("XlsxImport", { ref: "xlsxImport", attrs: { entityName: t.tableData.tableName, tableData: t.tableData }, on: { ok: t.refresh } }), s("XlsxExport", { ref: "xlsxExport", attrs: { entityId: t.tableData.id, queryParam: t.queryParam, tableData: t.tableData } }), s("TeamSharing", { ref: "teamSharing", attrs: { tableData: t.tableData }, on: { ok: (i) => t.okAssignSharing(i, "teamSharing") } }), s("BatchUpdate", { ref: "batchUpdate", attrs: { tableData: t.tableData, queryTable: t.queryTable, columns: t.columns, fieldData: t.fieldData, viewCode: t.viewCode }, on: { ok: t.refresh } }), s("DataAssign", { ref: "dataAssign", attrs: { tableData: t.tableData }, on: { ok: (i) => t.okAssignSharing(i, "dataAssign") } }), s("StatusChange", { ref: "statusChange", attrs: { tableData: t.tableData }, on: { ok: t.refresh } }), s("ViewCharts", { ref: "charts", attrs: { tableData: t.tableData, fieldData: t.fieldData }, on: { setLoadData: t.setLoadData } }), s("gd-middleware", { ref: "middleware", on: { ok: t.refresh } }), t._l(t.componentList, function(i, a) {
|
|
1558
|
+
return [s(i.componentItem, { key: a, ref: i.ref, refInFor: !0, tag: "component", attrs: { record: i, openMode: t.openMode, tableData: t.tableData }, on: { change: (o) => t.doEventComponent(o, i) } })];
|
|
1559
|
+
})], 2);
|
|
1560
|
+
}, ae = [], re = /* @__PURE__ */ N(
|
|
1561
|
+
se,
|
|
1562
|
+
ie,
|
|
1563
|
+
ae,
|
|
1564
|
+
!1,
|
|
1565
|
+
null,
|
|
1566
|
+
"8a9d38fc",
|
|
1567
|
+
null,
|
|
1568
|
+
null
|
|
1569
|
+
);
|
|
1570
|
+
const fe = re.exports;
|
|
1571
|
+
export {
|
|
1572
|
+
fe as G,
|
|
1573
|
+
X as a,
|
|
1574
|
+
J as b,
|
|
1575
|
+
Z as g,
|
|
1576
|
+
T as h,
|
|
1577
|
+
$ as s
|
|
1578
|
+
};
|