gds-plus-design-vue 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/approvalModel.a26e8ff6.mjs +340 -0
- package/lib/approvalModel.cfd81971.js +1 -0
- package/lib/btnFunctionName.9aabfed0.js +1 -0
- package/lib/btnFunctionName.d08627cb.mjs +254 -0
- package/lib/btnRelation.8e608261.mjs +156 -0
- package/lib/btnRelation.cb3dc022.js +1 -0
- package/lib/businessRules.754cc398.mjs +539 -0
- package/lib/businessRules.f41f7035.js +1 -0
- package/lib/buttonRule.4483314f.mjs +396 -0
- package/lib/buttonRule.645de1d3.js +1 -0
- package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
- package/lib/chartDisplayRules.fedfefe8.js +1 -0
- package/lib/components.chartbi.470b96af.mjs +1798 -0
- package/lib/components.chartbi.e9459775.js +8 -0
- package/lib/components.coloreditor.affa0400.mjs +1505 -0
- package/lib/components.coloreditor.dbec8da6.js +6 -0
- package/lib/components.dataassign.39281072.mjs +147 -0
- package/lib/components.dataassign.b6a1bffb.js +1 -0
- package/lib/components.echarts.95ffc3b3.mjs +811 -0
- package/lib/components.echarts.d09e9850.js +4 -0
- package/lib/components.exception.11315db5.js +1 -0
- package/lib/components.exception.facf9df9.mjs +61 -0
- package/lib/components.form.56ea8f98.js +41 -0
- package/lib/components.form.a7b3ea37.mjs +7813 -0
- package/lib/components.globalheader.0a7ce959.js +1 -0
- package/lib/components.globalheader.4a5f7225.mjs +54 -0
- package/lib/components.iconselector.0c03cfc7.js +1 -0
- package/lib/components.iconselector.251c29b9.mjs +1169 -0
- package/lib/components.imgpreview.5546e541.mjs +213 -0
- package/lib/components.imgpreview.706a89f0.js +1 -0
- package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
- package/lib/components.lunccalendar.fe7db238.js +1 -0
- package/lib/components.middleware.01601349.js +1 -0
- package/lib/components.middleware.f5f4ac0f.mjs +148 -0
- package/lib/components.modaltitle.5ded43f9.mjs +127 -0
- package/lib/components.modaltitle.cc9ba616.js +1 -0
- package/lib/components.multitab.0f9da9f3.mjs +140 -0
- package/lib/components.multitab.726cff2f.js +1 -0
- package/lib/components.selecttree.1a71c963.mjs +170 -0
- package/lib/components.selecttree.2fadffca.js +1 -0
- package/lib/components.settingdrawer.1af86231.js +1 -0
- package/lib/components.settingdrawer.adc262cf.mjs +237 -0
- package/lib/components.sidemenu.03442146.mjs +277 -0
- package/lib/components.sidemenu.5107c7e3.js +1 -0
- package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
- package/lib/components.sidenavmenu.ef33de39.js +1 -0
- package/lib/components.statuschange.805a751b.mjs +116 -0
- package/lib/components.statuschange.83646c5d.js +1 -0
- package/lib/components.table.61eb5d81.js +8 -0
- package/lib/components.table.c986e58d.mjs +4650 -0
- package/lib/components.tableumy.35b465f9.mjs +453 -0
- package/lib/components.tableumy.eba43953.js +1 -0
- package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
- package/lib/components.tablevirtual.6af04c44.js +1 -0
- package/lib/components.teamsharing.68865424.js +1 -0
- package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
- package/lib/components.tooltip.ccb1717d.mjs +86 -0
- package/lib/components.tooltip.e2e21e66.js +1 -0
- package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
- package/lib/components.uploadfile.e93b500d.js +1 -0
- package/lib/components.uploadimg.3804913e.js +1 -0
- package/lib/components.uploadimg.e49707d9.mjs +192 -0
- package/lib/components.verificationcode.5a9c0220.js +1 -0
- package/lib/components.verificationcode.ead74922.mjs +71 -0
- package/lib/components.viewformdetails.3c1596ad.js +1 -0
- package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
- package/lib/components.viewloading.5b178ec5.js +1 -0
- package/lib/components.viewloading.cb7917b7.mjs +99 -0
- package/lib/components.watermark.849409ca.js +2 -0
- package/lib/components.watermark.a2521d0c.mjs +53 -0
- package/lib/components.xlsxexport.3405a00b.js +1 -0
- package/lib/components.xlsxexport.871f87d1.mjs +263 -0
- package/lib/components.xlsximport.85ce77cf.mjs +922 -0
- package/lib/components.xlsximport.e3bcb07d.js +1 -0
- package/lib/copy.b09a6d38.js +1 -0
- package/lib/copy.c0a2f16d.mjs +572 -0
- package/lib/dialogLayout.059ee256.mjs +138 -0
- package/lib/dialogLayout.cedf2865.js +1 -0
- package/lib/drawerContainer.38d7b530.mjs +154 -0
- package/lib/drawerContainer.ea7722d7.js +1 -0
- package/lib/drawerLayout.454e4921.js +1 -0
- package/lib/drawerLayout.fad843ee.mjs +119 -0
- package/lib/editForm.c199538f.mjs +434 -0
- package/lib/editForm.f9dc93ef.js +1 -0
- package/lib/flow.designer.4c83c0d3.js +1 -0
- package/lib/flow.designer.9442a995.mjs +7673 -0
- package/lib/flow.list.4a31969e.mjs +3032 -0
- package/lib/flow.list.f41ee531.js +1 -0
- package/lib/form.build.c38bf362.js +1 -0
- package/lib/form.build.fb9f905b.mjs +259 -0
- package/lib/form.designer.build.3fdf8007.js +1 -0
- package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
- package/lib/formFiled.624b8dd3.js +1 -0
- package/lib/formFiled.94fb1dce.mjs +498 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +233 -91087
- package/lib/http.appmanage.9b22ff82.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
- package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
- package/lib/http.configmanage.6cfb8ae7.js +1 -0
- package/lib/http.configmanage.c23c7fa8.mjs +34 -0
- package/lib/http.currencymanage.37ab5ced.js +1 -0
- package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
- package/lib/http.datasource.294b01e2.js +1 -0
- package/lib/http.datasource.aa5cd0d1.mjs +58 -0
- package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
- package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
- package/lib/http.duplicatechecking.ee5c414c.js +1 -0
- package/lib/http.emailmanage.1ddaa8b5.js +1 -0
- package/lib/http.emailmanage.64fd611f.mjs +18 -0
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.d3a4afd9.mjs +293 -0
- package/lib/http.filemanage.7e6e3e1a.js +1 -0
- package/lib/http.filemanage.c0de21d6.mjs +71 -0
- package/lib/http.languagemanage.2ef16159.mjs +10 -0
- package/lib/http.languagemanage.e2c098ec.js +1 -0
- package/lib/http.loginmanage.05500c29.mjs +74 -0
- package/lib/http.loginmanage.326984c3.js +1 -0
- package/lib/http.logmanage.1e12a9bd.js +1 -0
- package/lib/http.logmanage.8ba72635.mjs +82 -0
- package/lib/http.machinemanage.29d72a65.js +1 -0
- package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
- package/lib/http.main.1af1e119.mjs +517 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.menumanage.09fffb7d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.1d68e914.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
- package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
- package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
- package/lib/http.onlineusermanage.3893f897.js +1 -0
- package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
- package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.pluginmanage.54720675.mjs +82 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/http.rolemanage.da5c40e9.mjs +146 -0
- package/lib/http.solution.b10d9197.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.176d3d06.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.932ba43b.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.7adf4910.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.a9c609d5.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timersmanage.c79afb66.mjs +146 -0
- package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
- package/lib/http.timezonemanage.e0aa212f.js +1 -0
- package/lib/http.translationmanage.1f9dce46.js +1 -0
- package/lib/http.translationmanage.f8694b51.mjs +104 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.usermanage.f5491144.mjs +219 -0
- package/lib/http.webresource.1a1a768f.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.3fa2dc66.mjs +40154 -0
- package/lib/index.fe757a98.js +8 -0
- package/lib/layoutBlocks.14c77a02.js +1 -0
- package/lib/layoutBlocks.5d71a03b.mjs +401 -0
- package/lib/layouts.a662f681.js +2 -0
- package/lib/layouts.ec4f20a2.mjs +376 -0
- package/lib/main.092a2ac8.js +1 -0
- package/lib/{main.f0045877.mjs → main.15237e71.mjs} +12 -10
- package/lib/main.29769f01.js +1 -0
- package/lib/main.401059c6.mjs +189 -0
- package/lib/main.447be615.js +1 -0
- package/lib/main.4e507685.mjs +231 -0
- package/lib/main.72cafa63.mjs +540 -0
- package/lib/{main.c41228a0.mjs → main.73f22d9e.mjs} +9 -8
- package/lib/main.7601bd3d.mjs +166 -0
- package/lib/main.79199ac2.js +1 -0
- package/lib/main.821d081b.js +1 -0
- package/lib/main.8627466a.mjs +537 -0
- package/lib/{main.b5a3be02.mjs → main.88e9be9d.mjs} +4 -4
- package/lib/main.8e6f6cba.mjs +323 -0
- package/lib/main.a9a54af9.js +1 -0
- package/lib/main.e033a376.js +1 -0
- package/lib/main.e2e4ba74.js +1 -0
- package/lib/{main.3caa11e1.mjs → main.e79d9e56.mjs} +113 -188
- package/lib/main.ea3a04f4.js +1 -0
- package/lib/main.f44d8279.js +1 -0
- package/lib/messages.5f54a62e.js +9 -0
- package/lib/{messages.a739f4fc.mjs → messages.d4354532.mjs} +4321 -5268
- package/lib/packages.filedocument.8418d852.mjs +4039 -0
- package/lib/packages.filedocument.9b8eda0d.js +1 -0
- package/lib/page.build.4d28df9a.js +12 -0
- package/lib/page.build.78cc7396.mjs +3020 -0
- package/lib/personal.echarts.940f1cc9.mjs +696 -0
- package/lib/personal.echarts.b5a7f574.js +1 -0
- package/lib/result.0161b0e0.js +1 -0
- package/lib/result.5a9330d7.mjs +627 -0
- package/lib/router.config.79a98ab8.mjs +3105 -0
- package/lib/router.config.7fd04c30.js +1 -0
- package/lib/solution.application.3ae7c0c5.js +1 -0
- package/lib/solution.application.fdc15ffc.mjs +548 -0
- package/lib/solution.applicationmenu.67aba620.js +1 -0
- package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
- package/lib/solution.approvalflow.81b7cfb7.js +1 -0
- package/lib/solution.approvalflow.a541adcc.mjs +436 -0
- package/lib/solution.dict.addbce33.mjs +769 -0
- package/lib/solution.dict.f1c9bae6.js +1 -0
- package/lib/solution.menu.2033fa37.mjs +5834 -0
- package/lib/solution.menu.6512047f.js +1 -0
- package/lib/solution.plugin.7094dbfd.js +1 -0
- package/lib/solution.plugin.d8f057cb.mjs +347 -0
- package/lib/solution.processflow.0adf4f55.js +1 -0
- package/lib/solution.processflow.a779bd58.mjs +392 -0
- package/lib/solution.role.d35cb00d.js +1 -0
- package/lib/solution.role.d9a4b25a.mjs +456 -0
- package/lib/solution.webresources.e1421655.mjs +379 -0
- package/lib/solution.webresources.e817757c.js +1 -0
- package/lib/solution.workflow.59552b8c.mjs +395 -0
- package/lib/solution.workflow.985e1f4d.js +1 -0
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/store.config.5e5cb48a.mjs +547 -0
- package/lib/style.css +3 -3
- package/lib/system.account.1b281679.js +216 -0
- package/lib/system.account.96d5bc17.mjs +2093 -0
- package/lib/system.config.0ff45e62.js +1 -0
- package/lib/{system.config.d2ad8c97.mjs → system.config.35b13003.mjs} +7 -6
- package/lib/system.datasource.4243937d.js +1 -0
- package/lib/{system.datasource.a77831ab.mjs → system.datasource.7f582bef.mjs} +15 -64
- package/lib/{system.dict.cb276470.mjs → system.dict.3697546d.mjs} +269 -344
- package/lib/system.dict.8e4fe6b0.js +1 -0
- package/lib/system.document.69e534a6.js +1 -0
- package/lib/system.document.8e4dbe5e.mjs +667 -0
- package/lib/system.duplicatechecking.1083eb1e.js +1 -0
- package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
- package/lib/system.email.06bb7cc1.mjs +133 -0
- package/lib/system.email.41036a31.js +1 -0
- package/lib/system.fieldsecurity.3ea880d8.js +1 -0
- package/lib/{system.fieldsecurity.9d40595f.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
- package/lib/{system.file.8064c8e9.mjs → system.file.8ccc4569.mjs} +84 -151
- package/lib/system.file.b8e4e6a1.js +1 -0
- package/lib/system.log.14c22a7a.js +1 -0
- package/lib/{system.log.2b2fc11a.mjs → system.log.aad4ff54.mjs} +31 -93
- package/lib/system.machine.379beacb.js +1 -0
- package/lib/{system.machine.0130e762.mjs → system.machine.c47be0cc.mjs} +5 -25
- package/lib/{system.notice.5f8cd020.mjs → system.notice.dc1b67cc.mjs} +1075 -1255
- package/lib/system.notice.fb151c45.js +1 -0
- package/lib/system.noticereceived.3a29d891.js +1 -0
- package/lib/{system.noticereceived.51b6353a.mjs → system.noticereceived.e75bf358.mjs} +19 -27
- package/lib/{system.onlineuser.c0a69360.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
- package/lib/system.onlineuser.fc26aff9.js +1 -0
- package/lib/system.org.b6f826e8.js +1 -0
- package/lib/{system.org.1169fe47.mjs → system.org.dd710a91.mjs} +3 -3
- package/lib/system.permissions.75406743.mjs +972 -0
- package/lib/system.permissions.97f68887.js +1 -0
- package/lib/system.plugin.3fcf7b0b.js +1 -0
- package/lib/{system.plugin.502a69d8.mjs → system.plugin.4b80cd95.mjs} +503 -552
- package/lib/system.pos.5a1663d8.js +1 -0
- package/lib/{system.pos.8c44c029.mjs → system.pos.a3bafaaa.mjs} +31 -62
- package/lib/system.promptmanagement.53c301a3.js +1 -0
- package/lib/{system.promptmanagement.d8565db4.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
- package/lib/{system.role.19959d7f.mjs → system.role.9edb5922.mjs} +512 -486
- package/lib/system.role.e164f059.js +1 -0
- package/lib/{system.sumberrules.087015a4.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
- package/lib/system.sumberrules.5e9cd262.js +1 -0
- package/lib/system.team.3e605266.js +1 -0
- package/lib/system.team.bb1fb40e.mjs +452 -0
- package/lib/system.teammembers.a098883b.js +1 -0
- package/lib/{system.teammembers.4056d586.mjs → system.teammembers.b8e53d99.mjs} +257 -199
- package/lib/system.timers.2f884e41.js +38 -0
- package/lib/{system.timers.6f61bfe1.mjs → system.timers.551c4a4b.mjs} +2202 -2278
- package/lib/system.translation.6e99c852.js +1 -0
- package/lib/{system.translation.9b88fbf2.mjs → system.translation.c2c1f40c.mjs} +437 -431
- package/lib/{system.user.bdf2613e.mjs → system.user.b99911de.mjs} +1082 -1025
- package/lib/system.user.dffc2543.js +14 -0
- package/lib/{system.useraffiliation.63b6bb36.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
- package/lib/system.useraffiliation.f8b33def.js +1 -0
- package/lib/system.webresource.1d3ed352.js +1 -0
- package/lib/{system.webresource.c36d6792.mjs → system.webresource.8a8d856b.mjs} +177 -219
- package/lib/{system.welcome.14785b50.mjs → system.welcome.573a76db.mjs} +10 -3
- package/lib/system.welcome.eedf1db2.js +1 -0
- package/lib/tableDescriptions.923c4ef1.mjs +80 -0
- package/lib/tableDescriptions.b12679b0.js +1 -0
- package/lib/tcheckboxs.887d733c.mjs +52 -0
- package/lib/tcheckboxs.fe7e574a.js +1 -0
- package/lib/tcurrency.10ac9aa7.mjs +85 -0
- package/lib/tcurrency.20e959c0.js +1 -0
- package/lib/tdatepicker.54036bba.js +1 -0
- package/lib/tdatepicker.a08ad382.mjs +52 -0
- package/lib/tdictSwitch.274e9f86.js +1 -0
- package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
- package/lib/tfile.5c897827.js +1 -0
- package/lib/tfile.f63b73b9.mjs +62 -0
- package/lib/tparticipants.4698962b.mjs +56 -0
- package/lib/tparticipants.b6fb4545.js +1 -0
- package/lib/translation.mains.5cfc7a2f.js +1 -0
- package/lib/translation.mains.e6cb610b.mjs +383 -0
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.echarts.js.461a74e7.js +54 -0
- package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
- package/lib/utils.mixins.js.750ca50e.js +1 -0
- package/lib/utils.mixins.js.be01e599.mjs +41 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.885de913.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/view.build.051553d8.mjs +1578 -0
- package/lib/view.build.9af3087b.js +1 -0
- package/lib/viewList.209956c3.js +1 -0
- package/lib/viewList.c05c92be.mjs +318 -0
- package/lib/viewTree.0cd9f1a2.js +1 -0
- package/lib/viewTree.c5290360.mjs +409 -0
- package/locale/en_US.js +92 -28
- package/locale/id_ID.js +76 -12
- package/locale/vi_VN.js +2012 -1948
- package/locale/zh_CN.js +97 -33
- package/package.json +106 -105
- package/lib/chartbi.114d32d7.js +0 -60
- package/lib/chartbi.eb4dd0af.mjs +0 -27639
- package/lib/main.03984fed.js +0 -1
- package/lib/main.1050afb3.js +0 -1
- package/lib/main.64122541.js +0 -1
- package/lib/main.b7d2c6ee.js +0 -1
- package/lib/messages.828b6ed8.js +0 -9
- package/lib/system.account.3181bcd6.js +0 -216
- package/lib/system.account.7c6ea20c.mjs +0 -2552
- package/lib/system.config.10f57fa2.js +0 -1
- package/lib/system.datasource.d5eea7f2.js +0 -1
- package/lib/system.dict.d73658f1.js +0 -1
- package/lib/system.duplicatechecking.5c8a3eef.mjs +0 -2142
- package/lib/system.duplicatechecking.d24ba6ea.js +0 -1
- package/lib/system.email.4bf52f2d.js +0 -41
- package/lib/system.email.db5da8d7.mjs +0 -7432
- package/lib/system.fieldsecurity.eb217079.js +0 -1
- package/lib/system.file.c1884db7.js +0 -1
- package/lib/system.log.389af80d.js +0 -1
- package/lib/system.machine.49fc6405.js +0 -1
- package/lib/system.notice.a89f4826.js +0 -1
- package/lib/system.noticereceived.5e0773c3.js +0 -1
- package/lib/system.onlineuser.67733846.js +0 -1
- package/lib/system.org.ff54d620.js +0 -1
- package/lib/system.permissions.cc9a9866.mjs +0 -212
- package/lib/system.permissions.e6317c5a.js +0 -9
- package/lib/system.plugin.3467d572.js +0 -1
- package/lib/system.pos.4aadf86e.js +0 -1
- package/lib/system.promptmanagement.9ba710d6.js +0 -1
- package/lib/system.role.890c8ca2.js +0 -1
- package/lib/system.sumberrules.068ebe4a.js +0 -1
- package/lib/system.team.27cd57f7.mjs +0 -1000
- package/lib/system.team.2b28502b.js +0 -1
- package/lib/system.teammembers.e3baf783.js +0 -1
- package/lib/system.timers.cb0a3bd0.js +0 -38
- package/lib/system.translation.f3884a0a.js +0 -1
- package/lib/system.user.3bd95871.js +0 -14
- package/lib/system.useraffiliation.7db6e13c.js +0 -1
- package/lib/system.webresource.ede248a8.js +0 -1
- package/lib/system.welcome.c9eefa06.js +0 -1
|
@@ -1,2142 +0,0 @@
|
|
|
1
|
-
import { m as f, u as h, n as u } from "./chartbi.eb4dd0af.mjs";
|
|
2
|
-
import { E as b, f as $, o as p, g as _, h as y, t as D } from "./messages.a739f4fc.mjs";
|
|
3
|
-
function oe(i) {
|
|
4
|
-
return window.axios({
|
|
5
|
-
url: "/sysUserAffiliation/page",
|
|
6
|
-
method: "get",
|
|
7
|
-
params: i
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
function ce(i) {
|
|
11
|
-
return window.axios({
|
|
12
|
-
url: "/sysUserAffiliation/add",
|
|
13
|
-
method: "post",
|
|
14
|
-
data: i
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function de(i) {
|
|
18
|
-
return window.axios({
|
|
19
|
-
url: "/sysUserAffiliation/edit",
|
|
20
|
-
method: "post",
|
|
21
|
-
data: i
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function ue(i) {
|
|
25
|
-
return window.axios({
|
|
26
|
-
url: "/sysUserAffiliation/delete",
|
|
27
|
-
method: "post",
|
|
28
|
-
data: i
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function he(i) {
|
|
32
|
-
return window.axios({
|
|
33
|
-
url: "/sysUserAffiliationRelation/batchAdd",
|
|
34
|
-
method: "post",
|
|
35
|
-
data: i
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function fe(i) {
|
|
39
|
-
return window.axios({
|
|
40
|
-
url: "/sysUserAffiliationRelation/batchDelete",
|
|
41
|
-
method: "post",
|
|
42
|
-
data: i
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function pe(i) {
|
|
46
|
-
return window.axios({
|
|
47
|
-
url: "/sysUserAffiliationRelation/byUserAffiliationId",
|
|
48
|
-
method: "get",
|
|
49
|
-
params: i
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function C(i) {
|
|
53
|
-
return window.axios({
|
|
54
|
-
url: "/sysUserAffiliationType/page",
|
|
55
|
-
method: "get",
|
|
56
|
-
params: i
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function me(i) {
|
|
60
|
-
return window.axios({
|
|
61
|
-
url: "/sysUserAffiliationType/add",
|
|
62
|
-
method: "post",
|
|
63
|
-
data: i
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function ge(i) {
|
|
67
|
-
return window.axios({
|
|
68
|
-
url: "/sysUserAffiliationType/edit",
|
|
69
|
-
method: "post",
|
|
70
|
-
data: i
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function be(i) {
|
|
74
|
-
return window.axios({
|
|
75
|
-
url: "/sysUserAffiliationType/delete",
|
|
76
|
-
method: "post",
|
|
77
|
-
data: i
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
const S = {
|
|
81
|
-
name: "composeFilter",
|
|
82
|
-
props: {
|
|
83
|
-
record: {
|
|
84
|
-
type: Object,
|
|
85
|
-
required: !0
|
|
86
|
-
},
|
|
87
|
-
rulesList: {
|
|
88
|
-
type: Array,
|
|
89
|
-
default: () => []
|
|
90
|
-
},
|
|
91
|
-
loadData: {
|
|
92
|
-
type: Array,
|
|
93
|
-
default: () => []
|
|
94
|
-
},
|
|
95
|
-
fkTableList: {
|
|
96
|
-
type: Array,
|
|
97
|
-
default: () => []
|
|
98
|
-
},
|
|
99
|
-
choiceDisabled: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
default: !1
|
|
102
|
-
},
|
|
103
|
-
type: {
|
|
104
|
-
type: [Number, String],
|
|
105
|
-
default: "1"
|
|
106
|
-
},
|
|
107
|
-
disableContain: {
|
|
108
|
-
type: Boolean,
|
|
109
|
-
default: !1
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
data() {
|
|
113
|
-
return {
|
|
114
|
-
fetching: !1,
|
|
115
|
-
fieldFormat: [],
|
|
116
|
-
fkData: [],
|
|
117
|
-
lookupItem: {},
|
|
118
|
-
UserAffiliationType: []
|
|
119
|
-
};
|
|
120
|
-
},
|
|
121
|
-
computed: {
|
|
122
|
-
hasTimePicker() {
|
|
123
|
-
const i = this.record.fieldformat ? this.record.fieldformat : "yyyy-MM-dd";
|
|
124
|
-
return ["hh:mm:ss", "hh:mm", "mm:ss", "HH:mm:ss", "HH:mm"].includes(i);
|
|
125
|
-
},
|
|
126
|
-
pickerType() {
|
|
127
|
-
const i = this.record.fieldformat ? this.record.fieldformat : "yyyy-MM-dd";
|
|
128
|
-
let e = "date";
|
|
129
|
-
return i === "yyyy-MM-dd hh:mm:ss" || i === "yyyy-MM-dd HH:mm:ss" ? e = "datetime" : i === "yyyy-MM" ? e = "month" : i === "yyyy" && (e = "year"), e;
|
|
130
|
-
},
|
|
131
|
-
precision() {
|
|
132
|
-
const i = this.loadData.filter((e) => e.id === this.record.columnid)[0];
|
|
133
|
-
return i ? i.effecttype === "inputnumber" ? 0 : i.filedsize : 0;
|
|
134
|
-
},
|
|
135
|
-
getDatepickerShow() {
|
|
136
|
-
if (typeof this.record.ruleslist == "string")
|
|
137
|
-
return;
|
|
138
|
-
let i = this.record.ruleslist.filter((t) => t.code == this.record.operators)[0], e = i.name.indexOf("*") != -1 || i.name.indexOf("X") != -1 || i.name.indexOf("x") != -1 ? 3 : 2;
|
|
139
|
-
return this.record.operators < 12 && (e = 1), e;
|
|
140
|
-
},
|
|
141
|
-
showTime() {
|
|
142
|
-
return this.record.fieldformat.length > 10;
|
|
143
|
-
},
|
|
144
|
-
getDict() {
|
|
145
|
-
const i = this.loadData.filter((e) => e.id === this.record.columnid)[0];
|
|
146
|
-
return i === void 0 ? [] : i.dicttypecode === null ? [] : this.getDictionary(i.dicttypecode);
|
|
147
|
-
},
|
|
148
|
-
styled() {
|
|
149
|
-
return `padding-left:4px;color:${this.primaryColor};`;
|
|
150
|
-
},
|
|
151
|
-
...f(["primaryColor", "tableLists"])
|
|
152
|
-
},
|
|
153
|
-
components: {
|
|
154
|
-
EffectTypeIcon: b
|
|
155
|
-
},
|
|
156
|
-
methods: {
|
|
157
|
-
selectDataMore(i) {
|
|
158
|
-
this.$nextTick(() => {
|
|
159
|
-
setTimeout(() => {
|
|
160
|
-
let e = this.fkData.filter((t) => i.includes(t.id)).filter((t) => !this.record.fkdata.filter((a) => a.id === t.id)[0]);
|
|
161
|
-
this.record.fkdata = this.record.fkdata.concat(e);
|
|
162
|
-
}, 10);
|
|
163
|
-
});
|
|
164
|
-
},
|
|
165
|
-
selectData(i) {
|
|
166
|
-
let e = this.fkData.filter((t) => t.id === i);
|
|
167
|
-
this.record.fkdata = e;
|
|
168
|
-
},
|
|
169
|
-
searchData(i) {
|
|
170
|
-
let t = this.loadData.filter((s) => s.id === this.record.columnid)[0].fkentityname.split(",")[0];
|
|
171
|
-
this.fetching = !0, this.fkData = [], $({
|
|
172
|
-
name: i,
|
|
173
|
-
fkEntityName: t
|
|
174
|
-
}).then((s) => {
|
|
175
|
-
if (s.success) {
|
|
176
|
-
let a = s.data.filter((l) => (l.fkEntityName = t, !this.record.fkdata.filter((r) => r.id === l.id)[0]));
|
|
177
|
-
this.fkData = this.record.fkdata.concat(a);
|
|
178
|
-
}
|
|
179
|
-
this.fetching = !1;
|
|
180
|
-
});
|
|
181
|
-
},
|
|
182
|
-
lookup() {
|
|
183
|
-
let i = this.loadData.filter((s) => s.id == this.record.columnid)[0];
|
|
184
|
-
i.options === void 0 && (i = Object.assign(i, {
|
|
185
|
-
options: {}
|
|
186
|
-
})), this.lookupItem = i;
|
|
187
|
-
let e = ["3", "4"].includes(this.record.operators) ? this.record.values : this.record.value, t = ["3", "4"].includes(this.record.operators) ? "participants" : i.effecttype;
|
|
188
|
-
i.effecttype === "user" && ["11", "12"].includes(this.record.operators) && (t = "participants"), this.$refs.engineSearch.open(
|
|
189
|
-
Object.assign(
|
|
190
|
-
{
|
|
191
|
-
...i
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
fkData: this.record.fkdata,
|
|
195
|
-
val: e,
|
|
196
|
-
effectType: t
|
|
197
|
-
}
|
|
198
|
-
)
|
|
199
|
-
);
|
|
200
|
-
},
|
|
201
|
-
lookupSeled(i) {
|
|
202
|
-
let e = String(this.record.operators);
|
|
203
|
-
if (this.lookupItem.effecttype == "fk") {
|
|
204
|
-
this.record.value = ["3", "4"].includes(e) ? "" : i.data[0], this.record.values = ["3", "4"].includes(e) ? [...i.data] : [];
|
|
205
|
-
let t = ["3", "4"].includes(e) ? [...i.fkData] : this.isChecked(i.data[0]) ? this.fkData.concat([...i.fkData]) : this.fkData;
|
|
206
|
-
this.fkData = t, this.record.fkdata = t;
|
|
207
|
-
}
|
|
208
|
-
if (this.lookupItem.effecttype == "about") {
|
|
209
|
-
this.record.value = ["3", "4"].includes(e) ? "" : i.data[0], this.record.values = ["3", "4"].includes(e) ? [...i.data] : [];
|
|
210
|
-
let t = ["3", "4"].includes(e) ? [...i.fkData] : this.isChecked(i.data[0]) ? this.fkData.concat([...i.fkData]) : this.fkData;
|
|
211
|
-
this.fkData = t, this.record.fkdata = t;
|
|
212
|
-
}
|
|
213
|
-
if (this.lookupItem.effecttype == "user") {
|
|
214
|
-
this.record.value = ["3", "4", "11", "12"].includes(e) ? "" : i.data[0], this.record.values = ["3", "4", "11", "12"].includes(e) ? [...i.data] : [];
|
|
215
|
-
let t = ["3", "4", "11", "12"].includes(e) ? [...i.fkData] : this.isChecked(i.data[0]) ? this.fkData.concat([...i.fkData]) : this.fkData;
|
|
216
|
-
this.fkData = t, this.record.fkdata = t;
|
|
217
|
-
}
|
|
218
|
-
if (this.lookupItem.effecttype == "participants") {
|
|
219
|
-
this.record.value = ["3", "4", "41", "42"].includes(e) ? "" : i.data[0], this.record.values = ["3", "4", "41", "42"].includes(e) ? [...i.data] : [];
|
|
220
|
-
let t = ["3", "4", "41", "42"].includes(e) ? [...i.fkData] : this.isChecked(i.data[0]) ? this.fkData.concat([...i.fkData]) : this.fkData;
|
|
221
|
-
this.fkData = t, this.record.fkdata = t;
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
isChecked(i) {
|
|
225
|
-
return this.fkData.every((e, t, s) => e.id !== i);
|
|
226
|
-
},
|
|
227
|
-
changeColumn(i) {
|
|
228
|
-
const e = this.loadData.filter((t) => t.id === i)[0];
|
|
229
|
-
this.conditionColumn(this.record, e);
|
|
230
|
-
},
|
|
231
|
-
conditionColumn(i, e) {
|
|
232
|
-
this.$nextTick(() => {
|
|
233
|
-
setTimeout(() => {
|
|
234
|
-
let t = this.loadData.filter((r) => r.id == i.columnid)[0], s = this.rulesList.filter((r) => r.remark.split(",").includes(e.effecttype));
|
|
235
|
-
if (t.fieldformat) {
|
|
236
|
-
const r = this.fieldFormat.filter((o) => String(o.code) === String(this.record.fieldformat))[0];
|
|
237
|
-
i.fieldformat = r ? r.name : "yyyy-MM-dd HH:mm:ss";
|
|
238
|
-
}
|
|
239
|
-
let a = this.tableLists.filter((r) => r.id == t.codegenid)[0];
|
|
240
|
-
const n = (a.isvirtualtable !== void 0 ? a.isvirtualtable : 0) == 1 && t.virtualcolumn !== void 0 ? t.virtualcolumn : t.columnname;
|
|
241
|
-
i.columntype = t.effecttype, i.columnname = n, i.value = "", i.values = [], i.ruleslist = [...s], i.operators = s[0].code, i.fkdata = [], ["fk", "about", "user", "participants"].includes(t.effecttype) && this.searchData("");
|
|
242
|
-
}, 0);
|
|
243
|
-
});
|
|
244
|
-
},
|
|
245
|
-
selectRules(i) {
|
|
246
|
-
this.record.fkdata = [], this.fkData = [], this.record.columntype == "datepicker" ? this.record.value = "" : ["fk", "user", "about", "participants"].includes(this.record.columntype) && (this.record.value = "", this.record.values = [], this.searchData("")), i == 45 && (this.getSysUserAffiliationType(), this.record.value = "", this.record.values = []);
|
|
247
|
-
},
|
|
248
|
-
delList(i) {
|
|
249
|
-
this.$emit("delList", i);
|
|
250
|
-
},
|
|
251
|
-
addItem() {
|
|
252
|
-
let i = [
|
|
253
|
-
{
|
|
254
|
-
type: "1",
|
|
255
|
-
operators: "1",
|
|
256
|
-
columnid: "",
|
|
257
|
-
columnname: "",
|
|
258
|
-
value: "",
|
|
259
|
-
values: [],
|
|
260
|
-
columntype: "input",
|
|
261
|
-
ruleslist: [...this.rulesList],
|
|
262
|
-
fkData: [],
|
|
263
|
-
id: h(),
|
|
264
|
-
fieldformat: null,
|
|
265
|
-
list: [],
|
|
266
|
-
checked: !1,
|
|
267
|
-
pid: this.record.id
|
|
268
|
-
}
|
|
269
|
-
];
|
|
270
|
-
this.record.list = this.record.list.concat(i);
|
|
271
|
-
},
|
|
272
|
-
getSysUserAffiliationType() {
|
|
273
|
-
C().then((i) => {
|
|
274
|
-
i.code === 200 && (this.UserAffiliationType = i.data.rows);
|
|
275
|
-
});
|
|
276
|
-
},
|
|
277
|
-
cancelItem(i) {
|
|
278
|
-
this.$emit("cancelItem", i);
|
|
279
|
-
},
|
|
280
|
-
getDictionary(i) {
|
|
281
|
-
return this.$options.filters.dictData(i);
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
created() {
|
|
285
|
-
this.fieldFormat = this.getDictionary("time_longshort"), this.fkData = [], this.fkData = [...this.record.fkdata], ["fk", "about", "user", "participants"].includes(this.record.columntype) && this.record.fkdata.length == 0 ? this.searchData("") : ["select", "radio", "checkbox", "switch"].includes(this.record.columntype) && this.record.operators == 45 && this.getSysUserAffiliationType("");
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
var L = function() {
|
|
289
|
-
var e = this, t = e._self._c;
|
|
290
|
-
return t("div", [t("div", { staticClass: "lists" }, [e.choiceDisabled ? e._e() : t("div", { staticClass: "rg" }, [t("el-checkbox", { attrs: { disabled: e.choiceDisabled }, model: { value: e.record.checked, callback: function(s) {
|
|
291
|
-
e.$set(e.record, "checked", s);
|
|
292
|
-
}, expression: "record.checked" } })], 1), t("div", { staticClass: "zd" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.choiceDisabled, clearable: "" }, on: { change: e.changeColumn }, model: { value: e.record.columnid, callback: function(s) {
|
|
293
|
-
e.$set(e.record, "columnid", s);
|
|
294
|
-
}, expression: "record.columnid" } }, [e._l(e.loadData, function(s, a) {
|
|
295
|
-
return [t("el-option", { attrs: { value: s.id, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1)];
|
|
296
|
-
})], 2)], 1), t("div", { staticClass: "tj" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.choiceDisabled }, on: { change: e.selectRules }, model: { value: e.record.operators, callback: function(s) {
|
|
297
|
-
e.$set(e.record, "operators", s);
|
|
298
|
-
}, expression: "record.operators" } }, [e._l(e.record.ruleslist, function(s) {
|
|
299
|
-
return [!e.disableContain || s.code != 43 && s.code != 44 ? t("el-option", { attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } }) : e._e()];
|
|
300
|
-
})], 2)], 1), t("div", { staticClass: "jg" }, [e.record.operators == 5 || e.record.operators == 6 || e.record.operators == 43 || e.record.operators == 44 ? t("div") : e.record.operators == 45 ? t("div", [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled, clearable: "" }, model: { value: e.record.value, callback: function(s) {
|
|
301
|
-
e.$set(e.record, "value", s);
|
|
302
|
-
}, expression: "record.value" } }, e._l(e.UserAffiliationType, function(s) {
|
|
303
|
-
return t("el-option", { key: s.id, attrs: { value: s.id, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
304
|
-
}), 1)], 1) : t("div", { staticStyle: { width: "100%" } }, [["input", "textarea"].includes(e.record.columntype) ? t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: e.choiceDisabled, clearable: "" }, model: { value: e.record.value, callback: function(s) {
|
|
305
|
-
e.$set(e.record, "value", s);
|
|
306
|
-
}, expression: "record.value" } }) : ["select", "radio", "checkbox", "switch"].includes(e.record.columntype) ? t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled, clearable: "" }, model: { value: e.record.value, callback: function(s) {
|
|
307
|
-
e.$set(e.record, "value", s);
|
|
308
|
-
}, expression: "record.value" } }, e._l(e.getDict, function(s) {
|
|
309
|
-
return t("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
310
|
-
}), 1) : ["inputnumber", "double", "currency"].includes(e.record.columntype) ? t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), "controls-position": "right", step: 1, min: e.record.columntype === "currency" ? 0 : -1 / 0, precision: e.precision, disabled: e.choiceDisabled }, model: { value: e.record.value, callback: function(s) {
|
|
311
|
-
e.$set(e.record, "value", s);
|
|
312
|
-
}, expression: "record.value" } }) : e.record.columntype == "datepicker" ? [e.getDatepickerShow === 3 ? t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), step: 1, min: 1, max: 999, "controls-position": "right", disabled: e.choiceDisabled, clearable: "" }, model: { value: e.record.value, callback: function(s) {
|
|
313
|
-
e.$set(e.record, "value", s);
|
|
314
|
-
}, expression: "record.value" } }) : e._e(), e.getDatepickerShow === 1 ? [e.hasTimePicker ? t("el-time-picker", { staticStyle: { width: "100%" }, attrs: { "value-format": e.record.fieldformat, format: e.record.fieldformat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled, clearable: "" }, model: { value: e.record.value, callback: function(s) {
|
|
315
|
-
e.$set(e.record, "value", s);
|
|
316
|
-
}, expression: "record.value" } }) : t("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: e.pickerType, "value-format": e.record.fieldformat, format: e.record.fieldformat, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled, clearable: "" }, model: { value: e.record.value, callback: function(s) {
|
|
317
|
-
e.$set(e.record, "value", s);
|
|
318
|
-
}, expression: "record.value" } })] : e._e()] : ["fk", "about"].includes(e.record.columntype) ? [e.record.operators != 11 && e.record.operators != 12 ? t("div", { staticClass: "cao_about" }, [t("el-select", { directives: [{ name: "show", rawName: "v-show", value: e.record.operators != 3 && e.record.operators != 4, expression: "record.operators != 3 && record.operators != 4" }], staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "remote-method": e.searchData, loading: e.fetching, disabled: e.choiceDisabled, clearable: "", filterable: "", remote: "", "reserve-keyword": "" }, on: { change: e.selectData }, model: { value: e.record.value, callback: function(s) {
|
|
319
|
-
e.$set(e.record, "value", s);
|
|
320
|
-
}, expression: "record.value" } }, [e._l(e.fkData, function(s, a) {
|
|
321
|
-
return [t("el-option", { attrs: { value: s.id, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } })];
|
|
322
|
-
})], 2), t("el-select", { directives: [{ name: "show", rawName: "v-show", value: e.record.operators == 3 || e.record.operators == 4, expression: "record.operators == 3 || record.operators == 4" }], staticStyle: { flex: "1", overflow: "hidden" }, attrs: { multiple: "", disabled: e.choiceDisabled, "multiple-limit": 8, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.fetching, "remote-method": e.searchData, filterable: "", remote: "", clearable: "", "collapse-tags": "", "reserve-keyword": "" }, on: { change: e.selectDataMore }, model: { value: e.record.values, callback: function(s) {
|
|
323
|
-
e.$set(e.record, "values", s);
|
|
324
|
-
}, expression: "record.values" } }, [e._l(e.fkData, function(s, a) {
|
|
325
|
-
return [t("el-option", { attrs: { value: s.id, label: e.$i18nt(`Dynamics.${s.transKey}`, s.name) } })];
|
|
326
|
-
})], 2), e.choiceDisabled ? e._e() : t("i", { staticClass: "el-icon-search cao_setting", on: { click: function(s) {
|
|
327
|
-
return e.lookup(e.record);
|
|
328
|
-
} } })], 1) : e._e()] : e.record.columntype === "user" ? [e.record.operators != 11 && e.record.operators != 12 ? t("div", { staticClass: "cao_about" }, [t("el-select", { directives: [{ name: "show", rawName: "v-show", value: e.record.operators != 3 && e.record.operators != 4, expression: "record.operators != 3 && record.operators != 4" }], staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled, "remote-method": e.searchData, loading: e.fetching, clearable: "", filterable: "", remote: "", "reserve-keyword": "" }, on: { change: e.selectData }, model: { value: e.record.value, callback: function(s) {
|
|
329
|
-
e.$set(e.record, "value", s);
|
|
330
|
-
}, expression: "record.value" } }, [e._l(e.fkData, function(s, a) {
|
|
331
|
-
return [t("el-option", { attrs: { value: s.id, label: e.$i18nt(`Dynamics.${s.transKey}`, s.name) } })];
|
|
332
|
-
})], 2), t("el-select", { directives: [{ name: "show", rawName: "v-show", value: e.record.operators == 3 || e.record.operators == 4, expression: "record.operators == 3 || record.operators == 4" }], staticStyle: { flex: "1", overflow: "hidden" }, attrs: { multiple: "", "multiple-limit": 8, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled, "remote-method": e.searchData, loading: e.fetching, clearable: "", filterable: "", remote: "", "collapse-tags": "", "reserve-keyword": "" }, on: { change: e.selectDataMore }, model: { value: e.record.values, callback: function(s) {
|
|
333
|
-
e.$set(e.record, "values", s);
|
|
334
|
-
}, expression: "record.values" } }, [e._l(e.fkData, function(s, a) {
|
|
335
|
-
return [t("el-option", { key: a, attrs: { value: s.id, label: e.$i18nt(`Dynamics.${s.transKey}`, s.name) } })];
|
|
336
|
-
})], 2), e.choiceDisabled ? e._e() : t("i", { staticClass: "el-icon-search cao_setting", on: { click: function(s) {
|
|
337
|
-
return e.lookup(e.record);
|
|
338
|
-
} } })], 1) : e._e()] : e.record.columntype === "participants" ? [e.record.operators != 41 && e.record.operators != 42 ? t("div", { staticClass: "cao_about" }, [t("el-select", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { multiple: "", "multiple-limit": 8, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "remote-method": e.searchData, loading: e.fetching, clearable: "", filterable: "", remote: "", "collapse-tags": "", "reserve-keyword": "", disabled: e.choiceDisabled }, on: { change: e.selectDataMore }, model: { value: e.record.values, callback: function(s) {
|
|
339
|
-
e.$set(e.record, "values", s);
|
|
340
|
-
}, expression: "record.values" } }, [e._l(e.fkData, function(s, a) {
|
|
341
|
-
return [t("el-option", { attrs: { value: s.id, label: s.name } })];
|
|
342
|
-
})], 2), e.choiceDisabled ? e._e() : t("i", { staticClass: "el-icon-search cao_setting", on: { click: e.lookup } })], 1) : e._e()] : e._e()], 2)]), t("div", { staticClass: "sc" }, [e.choiceDisabled ? e._e() : t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "16px", color: "#ff4d4f" }, on: { click: function(s) {
|
|
343
|
-
return e.delList(e.record);
|
|
344
|
-
} } })])]), t("gd-search", { ref: "engineSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
345
|
-
}, x = [], T = /* @__PURE__ */ u(
|
|
346
|
-
S,
|
|
347
|
-
L,
|
|
348
|
-
x,
|
|
349
|
-
!1,
|
|
350
|
-
null,
|
|
351
|
-
"5f27449d",
|
|
352
|
-
null,
|
|
353
|
-
null
|
|
354
|
-
);
|
|
355
|
-
const F = T.exports;
|
|
356
|
-
const N = {
|
|
357
|
-
props: {
|
|
358
|
-
record: {
|
|
359
|
-
type: Object,
|
|
360
|
-
required: !0
|
|
361
|
-
},
|
|
362
|
-
relevantList: {
|
|
363
|
-
type: Array,
|
|
364
|
-
default: () => []
|
|
365
|
-
},
|
|
366
|
-
tableLists: {
|
|
367
|
-
type: Array,
|
|
368
|
-
default: () => []
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
data() {
|
|
372
|
-
return {
|
|
373
|
-
loadOptions: [],
|
|
374
|
-
options: [],
|
|
375
|
-
loadOptionsOld: [],
|
|
376
|
-
cascaderValue: [],
|
|
377
|
-
isLoad: !1
|
|
378
|
-
};
|
|
379
|
-
},
|
|
380
|
-
watch: {
|
|
381
|
-
record: {
|
|
382
|
-
handler(i, e) {
|
|
383
|
-
if (e !== void 0) {
|
|
384
|
-
if (i.dynamicreferencefield === "" && i.dynamicreferencetable === "") {
|
|
385
|
-
this.$refs.cascader.checkedValue = "", this.options = JSON.parse(this.loadOptionsOld);
|
|
386
|
-
return;
|
|
387
|
-
}
|
|
388
|
-
i.dynamicreferencefield !== "" && i.dynamicreferencetable !== "" && !this.isLoad && (this.isLoad = !0, this.onlineFormGetCodeGenerateList(i.dynamicreferencetable).then((t) => {
|
|
389
|
-
const s = JSON.parse(this.loadOptionsOld);
|
|
390
|
-
s.map((a) => (a.children = null, a.tablename === i.dynamicreferencetable && (a.children = t), a)), this.options = [...s], this.cascaderValue = [i.dynamicreferencetable, i.dynamicreferencefield], this.$refs.cascader.checkedValue = this.cascaderValue;
|
|
391
|
-
}));
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
deep: !0,
|
|
395
|
-
immediate: !0
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
methods: {
|
|
399
|
-
change(i) {
|
|
400
|
-
let e = "";
|
|
401
|
-
this.record.referencetable = i[0] ? i[0] : "", this.record.dynamicreferencetable = i[0] ? i[0] : "", this.record.dynamicreferencefield = i[1] ? i[1] : "", i[0] && (e = this.loadOptions.filter((s) => s.value === i[0])[0].referencefiled), this.record.referencefiled = e, i[1] && (this.record.list = []), this.record.show = i.length === 2;
|
|
402
|
-
},
|
|
403
|
-
lazyLoad(i, e) {
|
|
404
|
-
const { level: t, value: s } = i;
|
|
405
|
-
if (this.loadOptions.length === 0) {
|
|
406
|
-
this.getLoadOptions().then(() => {
|
|
407
|
-
e(this.loadOptions);
|
|
408
|
-
});
|
|
409
|
-
return;
|
|
410
|
-
}
|
|
411
|
-
this.onlineFormGetCodeGenerateList(s).then((a) => {
|
|
412
|
-
e(a);
|
|
413
|
-
});
|
|
414
|
-
},
|
|
415
|
-
onlineFormGetCodeGenerateList(i) {
|
|
416
|
-
const e = this.tableLists.filter((t) => t.tablename === i)[0];
|
|
417
|
-
return p({
|
|
418
|
-
codeGenId: e.id
|
|
419
|
-
}).then((t) => {
|
|
420
|
-
if (t.code == 200) {
|
|
421
|
-
let s = [];
|
|
422
|
-
return t.data.map((a) => {
|
|
423
|
-
let l = this.$i18nt(`Dynamics.${a.transkey}`, a.columncomment);
|
|
424
|
-
return a.effecttype === this.record.columntype && s.push({
|
|
425
|
-
value: a.columnname,
|
|
426
|
-
label: `${l} (${a.effecttype})`,
|
|
427
|
-
leaf: !0
|
|
428
|
-
}), a;
|
|
429
|
-
}), s;
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
},
|
|
433
|
-
getLoadOptions() {
|
|
434
|
-
let i = [];
|
|
435
|
-
this.relevantList.map((t) => {
|
|
436
|
-
t.item7 === "parental" && i.push(t.item2);
|
|
437
|
-
});
|
|
438
|
-
let e = [...this.tableLists].filter((t) => i.includes(t.tablename));
|
|
439
|
-
return e.map((t) => {
|
|
440
|
-
let s = this.relevantList.filter((a) => a.item2 === t.tablename)[0];
|
|
441
|
-
return t.referencefiled = s.item5, t.leaf = !1, t.value = t.tablename, t.label = this.$i18nt(`Dynamics.${t.transkey}`, t.busname), t.loading = !1, t;
|
|
442
|
-
}), this.loadOptions = [...e], this.loadOptionsOld = JSON.stringify(e), new Promise((t) => {
|
|
443
|
-
t();
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
var O = function() {
|
|
449
|
-
var e = this, t = e._self._c;
|
|
450
|
-
return t("el-cascader", { ref: "cascader", staticStyle: { width: "280px" }, attrs: { options: e.options, props: { lazy: !0, lazyLoad: e.lazyLoad } }, on: { change: e.change }, model: { value: e.cascaderValue, callback: function(s) {
|
|
451
|
-
e.cascaderValue = s;
|
|
452
|
-
}, expression: "cascaderValue" } });
|
|
453
|
-
}, R = [], B = /* @__PURE__ */ u(
|
|
454
|
-
N,
|
|
455
|
-
O,
|
|
456
|
-
R,
|
|
457
|
-
!1,
|
|
458
|
-
null,
|
|
459
|
-
"5a7f55d8",
|
|
460
|
-
null,
|
|
461
|
-
null
|
|
462
|
-
);
|
|
463
|
-
const A = B.exports;
|
|
464
|
-
const I = {
|
|
465
|
-
name: "composeMiddle",
|
|
466
|
-
props: {
|
|
467
|
-
source: {
|
|
468
|
-
type: String,
|
|
469
|
-
default: "none"
|
|
470
|
-
},
|
|
471
|
-
record: {
|
|
472
|
-
type: Object,
|
|
473
|
-
required: !0
|
|
474
|
-
},
|
|
475
|
-
tableNameAllData: {
|
|
476
|
-
type: Array,
|
|
477
|
-
default: () => []
|
|
478
|
-
},
|
|
479
|
-
type: {
|
|
480
|
-
type: [Number, String],
|
|
481
|
-
default: "1"
|
|
482
|
-
},
|
|
483
|
-
choiceDisabled: {
|
|
484
|
-
type: Boolean,
|
|
485
|
-
default: !1
|
|
486
|
-
},
|
|
487
|
-
disableContain: {
|
|
488
|
-
type: Boolean,
|
|
489
|
-
default: !1
|
|
490
|
-
},
|
|
491
|
-
rulesListed: {
|
|
492
|
-
type: Array,
|
|
493
|
-
default: () => []
|
|
494
|
-
},
|
|
495
|
-
loadDataed: {
|
|
496
|
-
type: Array,
|
|
497
|
-
default: () => []
|
|
498
|
-
},
|
|
499
|
-
fkTableListed: {
|
|
500
|
-
type: Array,
|
|
501
|
-
default: () => []
|
|
502
|
-
},
|
|
503
|
-
relevantListed: {
|
|
504
|
-
type: Array,
|
|
505
|
-
default: () => []
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
data() {
|
|
509
|
-
return {
|
|
510
|
-
fieldFormat: [],
|
|
511
|
-
visible: !1,
|
|
512
|
-
spinning: !1,
|
|
513
|
-
confirmLoading: !1,
|
|
514
|
-
loadData: [],
|
|
515
|
-
rulesList: [],
|
|
516
|
-
list: [],
|
|
517
|
-
fkTableList: [],
|
|
518
|
-
relevantList: [],
|
|
519
|
-
show: !0,
|
|
520
|
-
selShow: !0,
|
|
521
|
-
relevant: "",
|
|
522
|
-
fetching: !1,
|
|
523
|
-
loadOptions: [],
|
|
524
|
-
itemReselect: {}
|
|
525
|
-
};
|
|
526
|
-
},
|
|
527
|
-
computed: {
|
|
528
|
-
styled() {
|
|
529
|
-
return `padding-left:4px;color:${this.primaryColor};`;
|
|
530
|
-
},
|
|
531
|
-
...f(["primaryColor", "tableLists"])
|
|
532
|
-
},
|
|
533
|
-
components: {
|
|
534
|
-
ComposeFilter: F,
|
|
535
|
-
EffectTypeIcon: b,
|
|
536
|
-
ChildCascader: A
|
|
537
|
-
},
|
|
538
|
-
methods: {
|
|
539
|
-
sbumitDel(i) {
|
|
540
|
-
let e = null;
|
|
541
|
-
const t = (a) => (a = a.filter((l, n) => (l.list.length > 0 && (l.list = t(l.list)), l.id == i.pid && (e = l), l.id != i.id)), a);
|
|
542
|
-
let s = t([...this.record.list]);
|
|
543
|
-
if (e && e.list.length == 1) {
|
|
544
|
-
let a = e.pid, l = e.list[0];
|
|
545
|
-
e.list = [], e = Object.assign(e, l, {
|
|
546
|
-
pid: a
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
this.record.list = [...s];
|
|
550
|
-
},
|
|
551
|
-
delList(i) {
|
|
552
|
-
this.$emit("change");
|
|
553
|
-
let e = this;
|
|
554
|
-
if (i.list.length < 2) {
|
|
555
|
-
e.sbumitDel(i);
|
|
556
|
-
return;
|
|
557
|
-
}
|
|
558
|
-
this.$confirm(this.$i18nt("gd.filter.mergeDelTip", "\u662F\u5426\u5220\u9664\u8BE5\u5B50\u53E5?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
559
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
560
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
561
|
-
showClose: !1,
|
|
562
|
-
confirmButtonLoading: !1,
|
|
563
|
-
cancelButtonLoading: !1,
|
|
564
|
-
closeOnClickModal: !1,
|
|
565
|
-
type: "warning",
|
|
566
|
-
confirmButtonClass: "el-button--danger",
|
|
567
|
-
customClass: "custom-alert",
|
|
568
|
-
callback: () => {
|
|
569
|
-
},
|
|
570
|
-
beforeClose: (t, s, a) => {
|
|
571
|
-
if (t !== "confirm") {
|
|
572
|
-
a();
|
|
573
|
-
return;
|
|
574
|
-
}
|
|
575
|
-
e.sbumitDel(i), a();
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
},
|
|
579
|
-
addItem() {
|
|
580
|
-
let i = [
|
|
581
|
-
{
|
|
582
|
-
referencefiled: "",
|
|
583
|
-
referencetable: "",
|
|
584
|
-
checked: !1,
|
|
585
|
-
columnid: "",
|
|
586
|
-
columnname: "",
|
|
587
|
-
columntype: "input",
|
|
588
|
-
dynamicreferencefield: "",
|
|
589
|
-
dynamicreferencetable: "",
|
|
590
|
-
fieldformat: null,
|
|
591
|
-
fkdata: [],
|
|
592
|
-
id: h(),
|
|
593
|
-
operators: "1",
|
|
594
|
-
optionsdata: [],
|
|
595
|
-
pid: this.record.id,
|
|
596
|
-
recordid: null,
|
|
597
|
-
ruleslist: [...this.rulesList],
|
|
598
|
-
show: !0,
|
|
599
|
-
tablename: "",
|
|
600
|
-
type: "1",
|
|
601
|
-
value: "",
|
|
602
|
-
values: [],
|
|
603
|
-
list: []
|
|
604
|
-
}
|
|
605
|
-
];
|
|
606
|
-
this.record.list = this.record.list.concat(i);
|
|
607
|
-
},
|
|
608
|
-
cancelItem(i) {
|
|
609
|
-
this.$emit("cancelItem", i);
|
|
610
|
-
},
|
|
611
|
-
changeCascader(i, e) {
|
|
612
|
-
const t = this.loadData.filter((s) => s.id === i)[0];
|
|
613
|
-
e.columnname = t.columnname, e.columntype = t.effecttype, e.list = [], e.recordid = t.id, e.referencetable = "", e.dynamicreferencetable = "", e.dynamicreferencefield = "", e.referencefiled = "", e.show = !1;
|
|
614
|
-
},
|
|
615
|
-
changeRelevant(i) {
|
|
616
|
-
const e = this.relevantList.filter((s) => `${s.item4}@${s.item7}` === i)[0], t = this.loadData.filter((s) => s.id === i)[0];
|
|
617
|
-
if (t) {
|
|
618
|
-
this.conditionColumn(t);
|
|
619
|
-
return;
|
|
620
|
-
}
|
|
621
|
-
this.conditionRelevant(e);
|
|
622
|
-
},
|
|
623
|
-
conditionColumn(i) {
|
|
624
|
-
this.$emit("change");
|
|
625
|
-
let e = this.loadData.filter((c) => c.id === i.id)[0], t = this.rulesList.filter((c) => c.remark.split(",").includes(i.effecttype)), s = null;
|
|
626
|
-
e.fieldformat && (s = this.fieldFormat.filter((c) => c.code == e.fieldformat)[0].name);
|
|
627
|
-
let a = this.tableNameAllData.filter((c) => c.id == e.codegenid)[0];
|
|
628
|
-
const n = (a.isvirtualtable !== void 0 ? a.isvirtualtable : 0) == 1 && e.virtualcolumn !== void 0 ? e.virtualcolumn : e.columnname;
|
|
629
|
-
let r = [
|
|
630
|
-
{
|
|
631
|
-
type: "1",
|
|
632
|
-
operators: t[0].code,
|
|
633
|
-
columnid: e.id,
|
|
634
|
-
columnname: n,
|
|
635
|
-
value: "",
|
|
636
|
-
values: [],
|
|
637
|
-
columntype: e.effecttype,
|
|
638
|
-
ruleslist: [...t],
|
|
639
|
-
fkdata: [],
|
|
640
|
-
id: h(),
|
|
641
|
-
fieldformat: s,
|
|
642
|
-
list: [],
|
|
643
|
-
checked: !1,
|
|
644
|
-
pid: this.record.id,
|
|
645
|
-
referencefiled: "",
|
|
646
|
-
referencetable: "",
|
|
647
|
-
show: !0,
|
|
648
|
-
tablename: a.tablename,
|
|
649
|
-
recordid: e.id,
|
|
650
|
-
dynamicreferencetable: "",
|
|
651
|
-
dynamicreferencefield: "",
|
|
652
|
-
optionsdata: []
|
|
653
|
-
}
|
|
654
|
-
], o = this.record.list.filter((c) => !["relevant", "parental"].includes(c.columntype)), d = this.record.list.filter((c) => ["relevant", "parental"].includes(c.columntype));
|
|
655
|
-
o = o.concat(r), this.record.list = o.concat(d), this.selShow = !0, this.$nextTick(() => {
|
|
656
|
-
setTimeout(() => {
|
|
657
|
-
this.relevant = "";
|
|
658
|
-
}, 0);
|
|
659
|
-
});
|
|
660
|
-
},
|
|
661
|
-
conditionRelevant(i) {
|
|
662
|
-
this.$emit("change");
|
|
663
|
-
let e = this.rulesList.filter((r) => ["5", "6"].includes(String(r.code))), t = this.record.list.filter((r) => !["relevant", "parental"].includes(r.columntype)), s = this.record.list.filter((r) => ["relevant", "parental"].includes(r.columntype));
|
|
664
|
-
s.filter((r) => r.recordid == i.item4 + "@" + i.item7)[0];
|
|
665
|
-
let a = this.record.referencetable || this.record.tablename, l = this.tableNameAllData.filter((r) => r.tablename == a)[0], n = [
|
|
666
|
-
{
|
|
667
|
-
type: "1",
|
|
668
|
-
operators: "5",
|
|
669
|
-
columnid: i.item4,
|
|
670
|
-
columnname: `${i.item5}`,
|
|
671
|
-
value: "",
|
|
672
|
-
values: [],
|
|
673
|
-
columntype: i.item7 ? i.item7 : "relevant",
|
|
674
|
-
ruleslist: [...e],
|
|
675
|
-
fkdata: [],
|
|
676
|
-
id: h(),
|
|
677
|
-
fieldformat: null,
|
|
678
|
-
list: [],
|
|
679
|
-
checked: !1,
|
|
680
|
-
pid: this.record.id,
|
|
681
|
-
referencefiled: i.item5,
|
|
682
|
-
referencetable: i.item2,
|
|
683
|
-
show: !0,
|
|
684
|
-
tablename: l.tablename,
|
|
685
|
-
recordid: i.item4 + "@" + i.item7,
|
|
686
|
-
dynamicreferencetable: "",
|
|
687
|
-
dynamicreferencefield: "",
|
|
688
|
-
optionsdata: []
|
|
689
|
-
}
|
|
690
|
-
];
|
|
691
|
-
s = s.concat(n), this.record.list = t.concat(s), this.selShow = !0, this.$nextTick(() => {
|
|
692
|
-
setTimeout(() => {
|
|
693
|
-
this.relevant = "";
|
|
694
|
-
}, 0);
|
|
695
|
-
});
|
|
696
|
-
},
|
|
697
|
-
visibleReselect(i, e) {
|
|
698
|
-
this.itemReselect = i ? JSON.parse(JSON.stringify(e)) : {};
|
|
699
|
-
},
|
|
700
|
-
changeReselect(i, e, t) {
|
|
701
|
-
const s = this.relevantList.filter((a) => `${a.item4}@${a.item7}` === i)[0];
|
|
702
|
-
this.reselectRelevant(s, e, this.itemReselect.recordid, this.itemReselect.columnid);
|
|
703
|
-
},
|
|
704
|
-
reselectRelevant(i, e, t, s) {
|
|
705
|
-
this.$emit("change");
|
|
706
|
-
let a = this, l = t, n = [...this.record.list];
|
|
707
|
-
this.$confirm(
|
|
708
|
-
this.$i18nt("gd.filter.cleanAllTip", "\u6240\u6709\u5B57\u6BB5\u53CA\u8BE5\u5B9E\u4F53\u7684\u76F8\u5173\u5B9E\u4F53\u5C06\u4F1A\u6E05\u9664,\u662F\u5426\u7EE7\u7EED?"),
|
|
709
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
710
|
-
{
|
|
711
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
712
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
713
|
-
showClose: !1,
|
|
714
|
-
confirmButtonLoading: !1,
|
|
715
|
-
cancelButtonLoading: !1,
|
|
716
|
-
closeOnClickModal: !1,
|
|
717
|
-
type: "warning",
|
|
718
|
-
confirmButtonClass: "el-button--danger",
|
|
719
|
-
customClass: "custom-alert",
|
|
720
|
-
callback: () => {
|
|
721
|
-
},
|
|
722
|
-
beforeClose: (r, o, d) => {
|
|
723
|
-
if (r !== "confirm") {
|
|
724
|
-
a.$nextTick(() => {
|
|
725
|
-
setTimeout(() => {
|
|
726
|
-
n[e].columnid = s, n[e].recordid = l, a.record.list = [...n];
|
|
727
|
-
}, 0);
|
|
728
|
-
}), d();
|
|
729
|
-
return;
|
|
730
|
-
}
|
|
731
|
-
let c = a.record.referencetable || a.record.tablename, m = a.tableNameAllData.filter((w) => w.tablename == c)[0], k = n[e].type;
|
|
732
|
-
n[e].operators = "5", n[e].columnid = i.item4, n[e].recordid = i.item4 + "@" + i.item7, n[e].columnname = `${i.item5}`, n[e].columntype = `${i.item7}`, n[e].referencefiled = i.item5, n[e].referencetable = i.item2, n[e].list = [], n[e].type = "-1", n[e].tablename = m.tablename, a.$nextTick(() => {
|
|
733
|
-
setTimeout(() => {
|
|
734
|
-
a.record.list = [...n];
|
|
735
|
-
}, 0), setTimeout(() => {
|
|
736
|
-
n[e].type = k, a.record.list = [...n];
|
|
737
|
-
}, 10);
|
|
738
|
-
}), d();
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
);
|
|
742
|
-
},
|
|
743
|
-
mouseover() {
|
|
744
|
-
this.selShow = !1;
|
|
745
|
-
},
|
|
746
|
-
delItem(i) {
|
|
747
|
-
this.$emit("change");
|
|
748
|
-
let e = this;
|
|
749
|
-
this.$confirm(
|
|
750
|
-
this.$i18nt("gd.filter.delSubClause", "\u662F\u5426\u5220\u9664\u76F8\u5173\u5B9E\u4F53\u53CA\u5176\u6240\u6709\u5B50\u4ECE\u53E5?"),
|
|
751
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
752
|
-
{
|
|
753
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
754
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
755
|
-
showClose: !1,
|
|
756
|
-
confirmButtonLoading: !1,
|
|
757
|
-
cancelButtonLoading: !1,
|
|
758
|
-
closeOnClickModal: !1,
|
|
759
|
-
type: "warning",
|
|
760
|
-
confirmButtonClass: "el-button--danger",
|
|
761
|
-
customClass: "custom-alert",
|
|
762
|
-
callback: () => {
|
|
763
|
-
},
|
|
764
|
-
beforeClose: (t, s, a) => {
|
|
765
|
-
if (t !== "confirm") {
|
|
766
|
-
a();
|
|
767
|
-
return;
|
|
768
|
-
}
|
|
769
|
-
let l = e.record.list.filter((n) => n.id !== i.id);
|
|
770
|
-
e.record.list = [...l], a();
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
);
|
|
774
|
-
},
|
|
775
|
-
selectRules(i, e) {
|
|
776
|
-
this.$emit("change");
|
|
777
|
-
let t = this;
|
|
778
|
-
if (i == 5) {
|
|
779
|
-
let s = this.record.list;
|
|
780
|
-
s[e].list = [], this.record.list = [...s];
|
|
781
|
-
return;
|
|
782
|
-
}
|
|
783
|
-
this.$confirm(
|
|
784
|
-
this.$i18nt("gd.filter.delCondition", "\u6B64\u64CD\u4F5C\u5C06\u5220\u9664\u4E0E\u8BE5\u5B9E\u4F53\u76F8\u5173\u7684\u6240\u6709\u7B5B\u9009\u6761\u4EF6?"),
|
|
785
|
-
this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
|
|
786
|
-
{
|
|
787
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
788
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
789
|
-
showClose: !1,
|
|
790
|
-
confirmButtonLoading: !1,
|
|
791
|
-
cancelButtonLoading: !1,
|
|
792
|
-
closeOnClickModal: !1,
|
|
793
|
-
type: "warning",
|
|
794
|
-
confirmButtonClass: "el-button--danger",
|
|
795
|
-
customClass: "custom-alert",
|
|
796
|
-
callback: () => {
|
|
797
|
-
},
|
|
798
|
-
beforeClose: (s, a, l) => {
|
|
799
|
-
if (s !== "confirm") {
|
|
800
|
-
let r = t.record.list;
|
|
801
|
-
r[e].operators = "5", t.record.list = [...r], l();
|
|
802
|
-
return;
|
|
803
|
-
}
|
|
804
|
-
let n = t.record.list;
|
|
805
|
-
n[e].list = [], t.record.list = [...n], l();
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
);
|
|
809
|
-
},
|
|
810
|
-
async init(i) {
|
|
811
|
-
const e = (s) => (s = s.filter((a, l) => {
|
|
812
|
-
if (a.type = String(a.type), a.operators = String(a.operators), a.list.length > 0)
|
|
813
|
-
a.list = e(a.list);
|
|
814
|
-
else {
|
|
815
|
-
let n = this.getItemVal(a, 2);
|
|
816
|
-
a.value = typeof n == "number" ? n : a.value, a.values = typeof n == "object" ? n.map((r) => Number(r)) : [];
|
|
817
|
-
}
|
|
818
|
-
return a.fkdata !== void 0 && typeof a.fkdata == "string" && (a.fkdata = JSON.parse(a.fkdata)), a.ruleslist !== void 0 && typeof a.ruleslist == "string" && (a.ruleslist = JSON.parse(a.ruleslist)), !0;
|
|
819
|
-
}), s);
|
|
820
|
-
let t = await e(this.record.list);
|
|
821
|
-
this.record.list = t, this.visible = !0;
|
|
822
|
-
},
|
|
823
|
-
getList() {
|
|
824
|
-
const i = this.record.dynamicreferencetable ? this.record.dynamicreferencetable : this.record.referencetable, e = this.tableNameAllData.filter((t) => t.tablename == i)[0];
|
|
825
|
-
return p({
|
|
826
|
-
codeGenId: e.id
|
|
827
|
-
}).then((t) => {
|
|
828
|
-
let s = t.data.filter((a) => a.effecttype == "about" && a.columnname == (a.relations + "_AboutTable").toLowerCase() || a.effecttype == "currency" && a.columnname == (a.relations + "_Currency_Base").toLowerCase() ? !1 : a.effecttype != "editor");
|
|
829
|
-
return this.loadData = [...s], t;
|
|
830
|
-
});
|
|
831
|
-
},
|
|
832
|
-
baseReference() {
|
|
833
|
-
let i = this.tableNameAllData.filter((e) => e.tablename == this.record.referencetable)[0];
|
|
834
|
-
return _({
|
|
835
|
-
tableId: i.id
|
|
836
|
-
}).then((e) => (e.code == 200 && (this.relevantList = e.data.map((t) => {
|
|
837
|
-
const s = this.tableLists.filter((a) => a.tablename === t.item2)[0];
|
|
838
|
-
return t.tableTranskey = s ? `Dynamics.${s.transkey}` : null, t.columnnameTranskey = t.rest && t.rest.item1 ? `Dynamics.${t.rest.item1}` : null, t;
|
|
839
|
-
}), this.getLoadOptions()), e.data));
|
|
840
|
-
},
|
|
841
|
-
fkListOnView() {
|
|
842
|
-
const i = this.tableNameAllData.filter((e) => e.tablename == this.record.referencetable)[0];
|
|
843
|
-
y({
|
|
844
|
-
codeGenId: i.id
|
|
845
|
-
}).then((e) => {
|
|
846
|
-
this.fkTableList = e.data;
|
|
847
|
-
});
|
|
848
|
-
},
|
|
849
|
-
getLoadOptions() {
|
|
850
|
-
let i = [];
|
|
851
|
-
this.relevantList.map((t) => {
|
|
852
|
-
t.item7 === "parental" && i.push(t.item2);
|
|
853
|
-
});
|
|
854
|
-
let e = [...this.tableLists].filter((t) => i.includes(t.tablename));
|
|
855
|
-
e.map((t) => {
|
|
856
|
-
let s = this.$i18nt(`Dynamics.${t.transkey}`, t.name), a = this.relevantList.filter((l) => l.item2 === t.tablename)[0];
|
|
857
|
-
return t.referencefiled = a.item5, t.isleaf = !1, t.value = t.tablename, t.label = s, t.loading = !1, t;
|
|
858
|
-
}), this.loadOptions = [...e];
|
|
859
|
-
},
|
|
860
|
-
async sbumitCancelItem(i) {
|
|
861
|
-
let e = null;
|
|
862
|
-
const t = (a) => (a = a.filter((l, n) => (l.list.length > 0 && (l.list = t(l.list)), l.id == i.pid && (e = l), !0)), a);
|
|
863
|
-
let s = await t([...this.record.list]);
|
|
864
|
-
if (e)
|
|
865
|
-
e.list = this.upList(e.list, i);
|
|
866
|
-
else {
|
|
867
|
-
e = this.upList(s, i), this.record.list = [...e];
|
|
868
|
-
return;
|
|
869
|
-
}
|
|
870
|
-
this.record.list = [...s];
|
|
871
|
-
},
|
|
872
|
-
cancelItem(i) {
|
|
873
|
-
this.$emit("change");
|
|
874
|
-
let e = this;
|
|
875
|
-
this.$confirm(this.$i18nt("gd.filter.mergeCancelTip", "\u662F\u5426\u53D6\u6D88\u7EC4\u5408\u8BE5\u5B50\u53E5?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
876
|
-
confirmButtonText: this.$i18nt("gd.https.cancelOk", "\u786E\u8BA4\u53D6\u6D88"),
|
|
877
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
878
|
-
showClose: !1,
|
|
879
|
-
confirmButtonLoading: !1,
|
|
880
|
-
cancelButtonLoading: !1,
|
|
881
|
-
closeOnClickModal: !1,
|
|
882
|
-
type: "warning",
|
|
883
|
-
confirmButtonClass: "el-button--danger",
|
|
884
|
-
customClass: "custom-alert",
|
|
885
|
-
callback: () => {
|
|
886
|
-
},
|
|
887
|
-
beforeClose: (t, s, a) => {
|
|
888
|
-
if (t !== "confirm") {
|
|
889
|
-
a();
|
|
890
|
-
return;
|
|
891
|
-
}
|
|
892
|
-
e.sbumitCancelItem(i), a();
|
|
893
|
-
}
|
|
894
|
-
});
|
|
895
|
-
},
|
|
896
|
-
upList(i, e) {
|
|
897
|
-
let t = [], s = [], a = i.findIndex((n) => n.id === e.id), l = e.pid;
|
|
898
|
-
return i.forEach((n, r) => {
|
|
899
|
-
r < a && t.push(n), r == a && n.list.map((o) => (o.pid = l, o)), r > a && s.push(n);
|
|
900
|
-
}), t.concat(e.list).concat(s);
|
|
901
|
-
},
|
|
902
|
-
getItemVal(i, e = 1) {
|
|
903
|
-
let t = "";
|
|
904
|
-
const s = String(i.operators);
|
|
905
|
-
if (["fk", "about"].includes(i.columntype)) {
|
|
906
|
-
let a = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
|
|
907
|
-
t = ["3", "4"].includes(s) ? a : i.value === "" ? "" : Number(i.value);
|
|
908
|
-
} else if (i.columntype == "user") {
|
|
909
|
-
let a = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
|
|
910
|
-
t = ["3", "4"].includes(s) ? a : i.value === "" ? "" : Number(i.value);
|
|
911
|
-
} else if (i.columntype == "participants") {
|
|
912
|
-
let a = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
|
|
913
|
-
t = ["3", "4"].includes(s) ? a : i.value === "" ? "" : Number(i.value);
|
|
914
|
-
} else
|
|
915
|
-
t = i.value;
|
|
916
|
-
return t;
|
|
917
|
-
},
|
|
918
|
-
getDictionary(i) {
|
|
919
|
-
return this.$options.filters.dictData(i);
|
|
920
|
-
}
|
|
921
|
-
},
|
|
922
|
-
mounted() {
|
|
923
|
-
let i = this.getDictionary("table_lookup_rules");
|
|
924
|
-
i.forEach((e, t) => {
|
|
925
|
-
i[t].sysdicttype = {};
|
|
926
|
-
}), this.rulesList = [...i], this.effectType = this.getDictionary("code_gen_effect_type"), this.fieldFormat = this.getDictionary("time_longshort"), this.fetching = !0, this.$nextTick(() => {
|
|
927
|
-
setTimeout(() => {
|
|
928
|
-
if (this.source === "children") {
|
|
929
|
-
this.visible = !0, this.rulesList = [...this.rulesListed], this.loadData = [...this.loadDataed], this.fkTableList = [...this.fkTableListed], this.relevantList = [...this.relevantListed];
|
|
930
|
-
return;
|
|
931
|
-
}
|
|
932
|
-
Promise.all([this.getList(), this.baseReference()]).then((e) => {
|
|
933
|
-
setTimeout(() => {
|
|
934
|
-
this.init();
|
|
935
|
-
}, 100);
|
|
936
|
-
}), this.fkListOnView();
|
|
937
|
-
}, 10);
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
|
-
var M = function() {
|
|
942
|
-
var e = this, t = e._self._c;
|
|
943
|
-
return t("div", { staticStyle: { padding: "1px 0" } }, [e.visible ? t("div", [e._l(e.record.list, function(s, a) {
|
|
944
|
-
return [s.columntype != "relevant" && s.columntype != "parental" ? t("div", [s.operators != 43 && s.operators != 44 ? [s.list.length == 0 ? t("composeFilter", { attrs: { record: s, rulesList: e.rulesList, relevantList: e.relevantList, loadData: e.loadData, fkTableList: e.fkTableList, choiceDisabled: e.choiceDisabled, type: e.type, disableContain: e.disableContain, tableNameAllData: e.tableNameAllData }, on: { delList: e.delList, cancelItem: e.cancelItem } }) : t("div", { staticClass: "compose" }, [t("div", { staticClass: "t" }, [t("el-checkbox", { attrs: { disabled: e.choiceDisabled }, model: { value: s.checked, callback: function(l) {
|
|
945
|
-
e.$set(s, "checked", l);
|
|
946
|
-
}, expression: "item.checked" } }), t("div", { staticClass: "ts tsl" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled }, model: { value: s.type, callback: function(l) {
|
|
947
|
-
e.$set(s, "type", l);
|
|
948
|
-
}, expression: "item.type" } }, [t("el-option", { attrs: { value: "1", label: e.$i18nt("gd.filter.and", "\u548C") } }), t("el-option", { attrs: { value: "2", label: e.$i18nt("gd.filter.or", "\u6216") } })], 1)], 1), e.choiceDisabled ? e._e() : t("div", { staticClass: "ts active-color", on: { click: e.addItem } }, [t("i", { staticClass: "el-icon-circle-plus-outline", staticStyle: { "font-size": "16px" } }), e._v(" " + e._s(e.$i18nt("gd.btn.addTo", "\u6DFB\u52A0")) + " ")]), e.choiceDisabled ? e._e() : t("div", { staticClass: "ts active-color", on: { click: function(l) {
|
|
949
|
-
return e.cancelItem(s);
|
|
950
|
-
} } }, [t("i", { staticClass: "el-icon-circle-close", staticStyle: { "font-size": "16px" } }), e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")]), e.choiceDisabled ? e._e() : t("div", { staticClass: "ts", staticStyle: { color: "#ff4d4f" }, on: { click: function(l) {
|
|
951
|
-
return e.delList(s);
|
|
952
|
-
} } }, [t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "16px" } }), e._v(" " + e._s(e.$i18nt("gd.btn.del", "\u5220\u9664")) + " ")])], 1), t("div", { staticClass: "b" }, [t("div", { staticClass: "bl" }, [t("div", { staticClass: "bls" })]), t("div", { staticClass: "bc" }, [t("div", { staticClass: "bcs" })]), t("div", { staticClass: "br" }, [t("composeMiddle", { attrs: { record: s, tableNameAllData: e.tableNameAllData, type: e.type, rulesListed: e.rulesList, relevantListed: e.relevantList, loadDataed: e.loadData, fkTableListed: e.fkTableList, disableContain: !0, choiceDisabled: e.choiceDisabled, source: "children" }, on: { change: function(l) {
|
|
953
|
-
return e.$emit("change");
|
|
954
|
-
} } })], 1)])])] : e._e()], 2) : e._e()];
|
|
955
|
-
})], 2) : e._e(), e.record.operators != 6 && !e.choiceDisabled ? t("div", { staticClass: "add" }, [e.selShow ? t("div", { staticClass: "active-color", on: { mouseover: e.mouseover } }, [e._v(e._s(e.$i18nt("gd.btn.choice", "\u9009\u62E9")))]) : t("div", [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "" }, on: { change: e.changeRelevant }, model: { value: e.relevant, callback: function(s) {
|
|
956
|
-
e.relevant = s;
|
|
957
|
-
}, expression: "relevant" } }, [t("el-option-group", { staticStyle: { "font-size": "14px" }, attrs: { label: e.$i18nt("gd.field.field", "\u5B57\u6BB5") } }, [e._l(e.loadData, function(s, a) {
|
|
958
|
-
return [t("el-option", { attrs: { value: s.id, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1)];
|
|
959
|
-
})], 2), e.type == 2 ? t("el-option-group", { staticStyle: { "font-size": "14px" }, attrs: { label: e.$i18nt("gd.filter.relevant", "\u76F8\u5173") } }, [e._l(e.relevantList, function(s, a) {
|
|
960
|
-
return [t("el-option", { attrs: { value: s.item4 + "@" + s.item7, label: `${e.$i18nt(s.columnnameTranskey, s.item6)} (${e.$i18nt(s.tableTranskey, s.item3)})` } }, [t("span", { staticClass: "gd-icons", class: s.item7 == "parental" ? "gd-icon-icon_shangxiaji" : "gd-icon-xiaji" }), t("span", { staticStyle: { "margin-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(s.columnnameTranskey, s.item6)) + " (" + e._s(e.$i18nt(s.tableTranskey, s.item3)) + ") ")])])];
|
|
961
|
-
})], 2) : e._e()], 1)], 1)]) : e._e(), e.record.operators == 6 ? t("div", { staticStyle: { width: "600px" } }, [t("el-alert", { staticStyle: { margin: "6px 0", width: "80%" }, attrs: { title: e.$i18nt("gd.filter.noAddCondition", "\u65E0\u6CD5\u5728\u6B64\u9879\u7684\u4E0B\u65B9\u6DFB\u52A0\u6761\u4EF6"), type: "warning", "show-icon": "", closable: !1 } })], 1) : e._e(), e.visible ? t("div", { staticStyle: { position: "relative" } }, [e._l(e.record.list, function(s, a) {
|
|
962
|
-
return [s.columntype == "relevant" || s.columntype == "parental" ? t("div", { staticStyle: { position: "relative" } }, [e.source === "children" ? [t("div", { staticClass: "covering-box" }, [t("el-checkbox", { attrs: { disabled: e.choiceDisabled }, model: { value: s.checked, callback: function(l) {
|
|
963
|
-
e.$set(s, "checked", l);
|
|
964
|
-
}, expression: "item.checked" } })], 1), s.show ? t("div", { staticClass: "covering-xian" }) : e._e()] : e._e(), t("div", { staticClass: "relevant" }, [e.choiceDisabled ? e._e() : t("div", { staticClass: "rg", class: e.source === "children" ? "rgs" : "rg" }, [e.source === "none" ? t("el-checkbox", { attrs: { disabled: e.choiceDisabled }, model: { value: s.checked, callback: function(l) {
|
|
965
|
-
e.$set(s, "checked", l);
|
|
966
|
-
}, expression: "item.checked" } }) : e._e()], 1), t("div", { staticClass: "l" }, [t("i", { class: s.show ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(l) {
|
|
967
|
-
s.show = !s.show;
|
|
968
|
-
} } })]), t("div", { staticClass: "c" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled }, on: { change: function(l) {
|
|
969
|
-
return e.changeReselect(l, a, s);
|
|
970
|
-
}, "visible-change": function(l) {
|
|
971
|
-
return e.visibleReselect(l, s);
|
|
972
|
-
} }, model: { value: s.recordid, callback: function(l) {
|
|
973
|
-
e.$set(s, "recordid", l);
|
|
974
|
-
}, expression: "item.recordid" } }, [e._l(e.relevantList, function(l) {
|
|
975
|
-
return [t("el-option", { attrs: { value: l.item4 + "@" + l.item7, label: `${e.$i18nt(l.columnnameTranskey, l.item6)} (${e.$i18nt(l.tableTranskey, l.item3)})` } }, [t("span", { staticClass: "gd-icons", class: l.item7 == "parental" ? "gd-icon-icon_shangxiaji" : "gd-icon-xiaji" }), t("span", { staticStyle: { "margin-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(l.columnnameTranskey, l.item6)) + " (" + e._s(e.$i18nt(l.tableTranskey, l.item3)) + ") ")])])];
|
|
976
|
-
})], 2)], 1), t("div", { staticClass: "r" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.choiceDisabled }, on: { select: function(l) {
|
|
977
|
-
return e.selectRules(l, a);
|
|
978
|
-
} }, model: { value: s.operators, callback: function(l) {
|
|
979
|
-
e.$set(s, "operators", l);
|
|
980
|
-
}, expression: "item.operators" } }, [e._l(s.ruleslist, function(l) {
|
|
981
|
-
return [t("el-option", { attrs: { value: l.code, label: e.$i18nt(`Dynamics.${l.transkey}`, l.name) } })];
|
|
982
|
-
})], 2)], 1), t("div", { staticClass: "l" }, [e.choiceDisabled ? e._e() : t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "16px", color: "#ff4d4f" }, on: { click: function(l) {
|
|
983
|
-
return e.delItem(s);
|
|
984
|
-
} } })])]), t("div", { directives: [{ name: "show", rawName: "v-show", value: s.show, expression: "item.show" }], staticStyle: { "padding-left": "34px" } }, [s.type != "-1" ? t("composeMiddle", { attrs: { record: s, tableNameAllData: e.tableNameAllData, type: e.type, disableContain: !0, choiceDisabled: e.choiceDisabled }, on: { change: function(l) {
|
|
985
|
-
return e.$emit("change");
|
|
986
|
-
} } }) : e._e()], 1)], 2) : e._e(), s.operators == 43 || s.operators == 44 ? t("div", [e.source === "children" ? [t("div", { staticClass: "covering-box" }, [t("el-checkbox", { attrs: { disabled: e.choiceDisabled }, model: { value: s.checked, callback: function(l) {
|
|
987
|
-
e.$set(s, "checked", l);
|
|
988
|
-
}, expression: "item.checked" } })], 1), s.show ? t("div", { staticClass: "covering-xian" }) : e._e()] : e._e(), t("div", { staticClass: "relevant", class: s.dynamicreferencefield == "" ? "relevants" : "" }, [e.choiceDisabled ? e._e() : t("div", { staticClass: "rg", class: e.source === "children" ? "rgs" : "rg" }, [e.source === "none" ? t("el-checkbox", { attrs: { disabled: e.choiceDisabled }, model: { value: s.checked, callback: function(l) {
|
|
989
|
-
e.$set(s, "checked", l);
|
|
990
|
-
}, expression: "item.checked" } }) : e._e()], 1), t("div", { staticClass: "l" }, [t("i", { class: s.show ? "el-icon-caret-bottom" : "el-icon-caret-right", on: { click: function(l) {
|
|
991
|
-
s.show = !s.show;
|
|
992
|
-
} } })]), t("div", { staticClass: "c" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.choiceDisabled }, on: { change: function(l) {
|
|
993
|
-
return e.changeCascader(l, s);
|
|
994
|
-
} }, model: { value: s.columnid, callback: function(l) {
|
|
995
|
-
e.$set(s, "columnid", l);
|
|
996
|
-
}, expression: "item.columnid" } }, [e._l(e.loadData, function(l, n) {
|
|
997
|
-
return [t("el-option", { attrs: { value: l.id, label: e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment) } }, [t("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)) + " (" + e._s(l.columnName) + ") ")])], 1)];
|
|
998
|
-
})], 2)], 1), t("div", { staticClass: "r" }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.choiceDisabled }, model: { value: s.operators, callback: function(l) {
|
|
999
|
-
e.$set(s, "operators", l);
|
|
1000
|
-
}, expression: "item.operators" } }, [e._l(s.ruleslist, function(l) {
|
|
1001
|
-
return [l.code == 43 || l.code == 44 ? t("el-option", { attrs: { value: l.code, label: e.$i18nt(`Dynamics.${l.transkey}`, l.name) } }) : e._e()];
|
|
1002
|
-
})], 2)], 1), t("div", { staticClass: "c cs" }, [t("ChildCascader", { attrs: { record: s, relevantList: e.relevantList, tableLists: e.tableLists } })], 1), t("div", { staticClass: "l" }, [e.choiceDisabled ? e._e() : t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "16px", color: "#ff4d4f" }, on: { click: function(l) {
|
|
1003
|
-
return e.delItem(s);
|
|
1004
|
-
} } })])]), t("div", { directives: [{ name: "show", rawName: "v-show", value: s.show && s.dynamicreferencefield, expression: "item.show && item.dynamicreferencefield" }], staticStyle: { "padding-left": "34px" } }, [e._m(0, !0), t("div", { staticClass: "trendsb" }, [e._m(1, !0), s.list.length > 0 ? t("div", { staticClass: "bc" }, [t("div", { staticClass: "bcs" })]) : e._e(), t("div", { staticClass: "br" }, [s.dynamicreferencefield != "" ? t("composeMiddle", { attrs: { record: s, tableNameAllData: e.tableNameAllData, type: e.type, disableContain: !0, choiceDisabled: e.choiceDisabled }, on: { change: function(l) {
|
|
1005
|
-
return e.$emit("change");
|
|
1006
|
-
} } }) : e._e()], 1)])])], 2) : e._e()];
|
|
1007
|
-
})], 2) : e._e()]);
|
|
1008
|
-
}, G = [function() {
|
|
1009
|
-
var i = this, e = i._self._c;
|
|
1010
|
-
return e("div", { staticClass: "trendst" }, [e("div", { staticClass: "shu" }), e("div", { staticClass: "heng" })]);
|
|
1011
|
-
}, function() {
|
|
1012
|
-
var i = this, e = i._self._c;
|
|
1013
|
-
return e("div", { staticClass: "bl" }, [e("div", { staticClass: "bls" })]);
|
|
1014
|
-
}], V = /* @__PURE__ */ u(
|
|
1015
|
-
I,
|
|
1016
|
-
M,
|
|
1017
|
-
G,
|
|
1018
|
-
!1,
|
|
1019
|
-
null,
|
|
1020
|
-
"6749cad6",
|
|
1021
|
-
null,
|
|
1022
|
-
null
|
|
1023
|
-
);
|
|
1024
|
-
const E = V.exports;
|
|
1025
|
-
const K = {
|
|
1026
|
-
name: "GdFindFilter",
|
|
1027
|
-
props: {
|
|
1028
|
-
table: {
|
|
1029
|
-
type: Object,
|
|
1030
|
-
default: () => ({})
|
|
1031
|
-
},
|
|
1032
|
-
type: {
|
|
1033
|
-
type: [Number, String],
|
|
1034
|
-
default: "1"
|
|
1035
|
-
},
|
|
1036
|
-
mode: {
|
|
1037
|
-
type: String,
|
|
1038
|
-
default: "dialog"
|
|
1039
|
-
},
|
|
1040
|
-
choiceDisabled: {
|
|
1041
|
-
type: Boolean,
|
|
1042
|
-
default: !1
|
|
1043
|
-
},
|
|
1044
|
-
modalAppendToBody: {
|
|
1045
|
-
type: Boolean,
|
|
1046
|
-
default: !1
|
|
1047
|
-
},
|
|
1048
|
-
appendToBody: {
|
|
1049
|
-
type: Boolean,
|
|
1050
|
-
default: !0
|
|
1051
|
-
}
|
|
1052
|
-
},
|
|
1053
|
-
data() {
|
|
1054
|
-
return {
|
|
1055
|
-
buttons: [
|
|
1056
|
-
{
|
|
1057
|
-
displayName: '\u7EC4\u5408"\u548C"',
|
|
1058
|
-
functionName: "mergeAnd",
|
|
1059
|
-
show: !0,
|
|
1060
|
-
icon: "el-icon-connection",
|
|
1061
|
-
transKey: "gd.filter.ands",
|
|
1062
|
-
tipI18n: "gd.filter.andsTip",
|
|
1063
|
-
tip: "\u4F7F\u7528AND\u5C06\u67E5\u8BE2\u884C\u7EC4\u5408\u5728\u4E00\u8D77\uFF0C\u7ED3\u679C\u5C06\u4EC5\u5305\u542B\u5339\u914D\u6240\u6709\u7EC4\u5408\u884C\u7684\u8BB0\u5F55\u6216\u64CD\u4F5C",
|
|
1064
|
-
btnType: "tooltip"
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
displayName: '\u7EC4\u5408"\u6216"',
|
|
1068
|
-
functionName: "mergeOr",
|
|
1069
|
-
show: !0,
|
|
1070
|
-
icon: "el-icon-connection",
|
|
1071
|
-
transKey: "gd.filter.ors",
|
|
1072
|
-
tipI18n: "gd.filter.orsTip",
|
|
1073
|
-
tip: "\u4F7F\u7528OR\u5C06\u67E5\u8BE2\u884C\u7EC4\u5408\u5728\u4E00\u8D77\uFF0C\u7ED3\u679C\u5C06\u4EC5\u5305\u542B\u5339\u914D\u6240\u6709\u7EC4\u5408\u884C\u7684\u8BB0\u5F55\u6216\u64CD\u4F5C",
|
|
1074
|
-
btnType: "tooltip"
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
displayName: "\u6E05\u7A7A",
|
|
1078
|
-
functionName: "empty",
|
|
1079
|
-
show: !0,
|
|
1080
|
-
icon: "el-icon-delete",
|
|
1081
|
-
transKey: "gd.btn.empty",
|
|
1082
|
-
btnType: "danger"
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
displayName: "\u786E\u5B9A",
|
|
1086
|
-
functionName: "handleSubmit",
|
|
1087
|
-
show: !0,
|
|
1088
|
-
transKey: "gd.btn.confirm",
|
|
1089
|
-
icon: "el-icon-document-checked"
|
|
1090
|
-
}
|
|
1091
|
-
],
|
|
1092
|
-
sysViewFilters: {},
|
|
1093
|
-
fullscreen: !1,
|
|
1094
|
-
width: "86%",
|
|
1095
|
-
visible: !1,
|
|
1096
|
-
visibled: !1,
|
|
1097
|
-
confirmLoading: !1,
|
|
1098
|
-
loadData: [],
|
|
1099
|
-
fkTableList: []
|
|
1100
|
-
};
|
|
1101
|
-
},
|
|
1102
|
-
computed: {
|
|
1103
|
-
...f(["tableLists"])
|
|
1104
|
-
},
|
|
1105
|
-
components: {
|
|
1106
|
-
ComposeMiddle: E
|
|
1107
|
-
},
|
|
1108
|
-
methods: {
|
|
1109
|
-
mergeAnd() {
|
|
1110
|
-
this.merge(1);
|
|
1111
|
-
},
|
|
1112
|
-
mergeOr() {
|
|
1113
|
-
this.merge(2);
|
|
1114
|
-
},
|
|
1115
|
-
merge(i) {
|
|
1116
|
-
let e = [];
|
|
1117
|
-
e.push(this.checkTraverseAll(this.sysViewFilters.list));
|
|
1118
|
-
let t = [0];
|
|
1119
|
-
const s = (a) => (a = a.filter((l, n) => (l.list.length > 0 && (l.list = s(l.list)), ["relevant", "parental"].includes(l.columntype) && l.list.length > 0 ? (e.push(this.checkTraverseAll(l.list)), t.push(l.id)) : ["43", "44"].includes(String(l.operators)) && l.list.length > 0 && t.push(l.id), !0)), a);
|
|
1120
|
-
if (s([...this.sysViewFilters.list]), e = e.filter((a) => a.checkAll.length != 0), e.length != 0) {
|
|
1121
|
-
if (!this.checkLength(e)) {
|
|
1122
|
-
this.$message.error(this.$i18nt("gd.filter.mergeTip", "\u7EC4\u5408\u6700\u5C112\u6761\u6570\u636E\u4EE5\u4E0A!"));
|
|
1123
|
-
return;
|
|
1124
|
-
}
|
|
1125
|
-
if (!this.checkEqual(e)) {
|
|
1126
|
-
this.$message.error(this.$i18nt("gd.filter.mergeIllegal", "\u975E\u6CD5\u7EC4\u5408\uFF01"));
|
|
1127
|
-
return;
|
|
1128
|
-
}
|
|
1129
|
-
if (this.checkRepeat(e, t)) {
|
|
1130
|
-
this.$message.error(this.$i18nt("gd.filter.mergeAgainTip", "\u4E0D\u53EF\u518D\u6B21\u7EC4\u5408\uFF01"));
|
|
1131
|
-
return;
|
|
1132
|
-
}
|
|
1133
|
-
e.forEach((a) => {
|
|
1134
|
-
this.result(i, a.checkAll);
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
},
|
|
1138
|
-
checkTraverseAll(i) {
|
|
1139
|
-
let e = [], t = [];
|
|
1140
|
-
const s = (a) => (a = a.filter((l, n) => {
|
|
1141
|
-
if (!["relevant", "parental"].includes(l.columntype) && l.list.length > 0 && (l.list = s(l.list)), l.checked) {
|
|
1142
|
-
let r = {
|
|
1143
|
-
...l
|
|
1144
|
-
};
|
|
1145
|
-
return e.push(r), t = a, !0;
|
|
1146
|
-
} else
|
|
1147
|
-
return !0;
|
|
1148
|
-
}), a);
|
|
1149
|
-
return s(i), {
|
|
1150
|
-
checkAll: e,
|
|
1151
|
-
arr: t
|
|
1152
|
-
};
|
|
1153
|
-
},
|
|
1154
|
-
checkLength(i) {
|
|
1155
|
-
return i.every((e, t, s) => e.checkAll.length > 1);
|
|
1156
|
-
},
|
|
1157
|
-
checkEqual(i) {
|
|
1158
|
-
let e = [];
|
|
1159
|
-
return i.forEach((s) => {
|
|
1160
|
-
e.push(this.isAllEqual(s.checkAll));
|
|
1161
|
-
}), e.filter((s) => !s)[0] === void 0;
|
|
1162
|
-
},
|
|
1163
|
-
checkRepeat(i, e) {
|
|
1164
|
-
let t = [];
|
|
1165
|
-
return i.forEach((a) => {
|
|
1166
|
-
let l = a.checkAll.length == a.arr.length && !e.includes(a.arr[0].pid);
|
|
1167
|
-
t.push(l);
|
|
1168
|
-
}), t.filter((a) => a)[0] !== void 0;
|
|
1169
|
-
},
|
|
1170
|
-
result(i, e) {
|
|
1171
|
-
let t = [], s = h();
|
|
1172
|
-
e[0].pid, e.forEach((n, r) => {
|
|
1173
|
-
r > 0 && t.push(n.id);
|
|
1174
|
-
});
|
|
1175
|
-
const a = (n) => (n = n.filter((r, o) => (r.list.length > 0 && (r.list = a(r.list)), r.checked && e[0].id === r.id ? (r.checked = !1, r.value = "", r.values = [], r.id = s, r.type = String(i), r.referencefiled = "", r.referencetable = "", r.columnid = 0, r.columntype = "input", r.columnname = "", r.list = e.map((d) => (d.checked = !1, d.pid = s, d)), !0) : t.includes(r.id) ? (r.checked = !1, !1) : !0)), n);
|
|
1176
|
-
let l = a([...this.sysViewFilters.list]);
|
|
1177
|
-
this.sysViewFilters.list = [...l];
|
|
1178
|
-
},
|
|
1179
|
-
empty() {
|
|
1180
|
-
let i = this;
|
|
1181
|
-
this.$confirm(this.$i18nt("gd.https.emptyContent", "\u662F\u5426\u6E05\u7A7A\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1182
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
1183
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1184
|
-
showClose: !1,
|
|
1185
|
-
confirmButtonLoading: !1,
|
|
1186
|
-
cancelButtonLoading: !1,
|
|
1187
|
-
closeOnClickModal: !1,
|
|
1188
|
-
type: "warning",
|
|
1189
|
-
confirmButtonClass: "el-button--danger",
|
|
1190
|
-
customClass: "custom-alert",
|
|
1191
|
-
callback: () => {
|
|
1192
|
-
},
|
|
1193
|
-
beforeClose: (e, t, s) => {
|
|
1194
|
-
if (e !== "confirm") {
|
|
1195
|
-
s();
|
|
1196
|
-
return;
|
|
1197
|
-
}
|
|
1198
|
-
i.list = [], Object.assign(i.sysViewFilters, {
|
|
1199
|
-
list: [],
|
|
1200
|
-
id: 0
|
|
1201
|
-
}), s();
|
|
1202
|
-
}
|
|
1203
|
-
});
|
|
1204
|
-
},
|
|
1205
|
-
getItemVal(i, e = 1) {
|
|
1206
|
-
let t = "";
|
|
1207
|
-
const s = String(i.operators);
|
|
1208
|
-
if (["fk", "about"].includes(i.columntype)) {
|
|
1209
|
-
let a = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
|
|
1210
|
-
t = ["3", "4"].includes(s) ? a : i.value;
|
|
1211
|
-
} else if (i.columntype == "user") {
|
|
1212
|
-
let a = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
|
|
1213
|
-
t = ["3", "4"].includes(s) ? a : i.value;
|
|
1214
|
-
} else if (i.columntype == "participants") {
|
|
1215
|
-
let a = e == 1 && i.values !== void 0 ? i.values.join(",") : String(i.value).split(",");
|
|
1216
|
-
t = ["3", "4"].includes(s) ? a : i.value;
|
|
1217
|
-
} else
|
|
1218
|
-
t = i.value;
|
|
1219
|
-
return t;
|
|
1220
|
-
},
|
|
1221
|
-
isChecked(i) {
|
|
1222
|
-
return i.every((e, t, s) => {
|
|
1223
|
-
const a = String(e.operators);
|
|
1224
|
-
let l = ["5", "6", "45"].includes(a) ? e.columnid : this.getItemVal(e);
|
|
1225
|
-
return ["43", "44"].includes(a) ? l = e.dynamicreferencefiled : (e.columntype == "about" && ["11", "12"].includes(a) || e.columntype == "fk" && ["11", "12"].includes(a) || e.columntype == "user" && ["11", "12"].includes(a) || e.columntype == "participants" && ["41", "42"].includes(a) || e.columntype == "datepicker" && e.operators > 12 && e.operators < 25) && (l = e.columnid), e.columnid !== "" && l !== "" && l !== void 0;
|
|
1226
|
-
});
|
|
1227
|
-
},
|
|
1228
|
-
isAllEqual(i) {
|
|
1229
|
-
return i.length > 0 ? !i.some((e, t) => e.pid !== i[0].pid) : !1;
|
|
1230
|
-
},
|
|
1231
|
-
async handleSubmit() {
|
|
1232
|
-
this.confirmLoading = !0;
|
|
1233
|
-
let i = [];
|
|
1234
|
-
const e = (t) => (t = t.filter((s, a) => (s.list.length > 0 && (s.list = e(s.list)), (s.columntype != "relevant" || s.columntype != "parental") && s.list.length == 0 && i.push(s), s.fkdata !== void 0 && typeof s.fkdata != "string" && (s.fkdata = JSON.stringify(s.fkdata)), s.ruleslist !== void 0 && typeof s.ruleslist != "string" && (s.ruleslist = JSON.stringify(s.ruleslist)), s.value = this.getItemVal(s), !0)), t);
|
|
1235
|
-
if (await e(this.sysViewFilters.list), !this.isChecked(i)) {
|
|
1236
|
-
this.$message.warning(this.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E")), this.listConversion(), this.confirmLoading = !1;
|
|
1237
|
-
return;
|
|
1238
|
-
}
|
|
1239
|
-
this.$emit("ok", this.sysViewFilters), this.cancel(), setTimeout(() => {
|
|
1240
|
-
this.confirmLoading = !1;
|
|
1241
|
-
}, 300);
|
|
1242
|
-
},
|
|
1243
|
-
listConversion() {
|
|
1244
|
-
const i = (e) => (e = e.filter((t, s) => (t.list.length > 0 && (t.list = i(t.list)), t.fkdata !== void 0 && typeof t.fkdata == "string" && (t.fkdata = JSON.parse(t.fkdata)), t.ruleslist !== void 0 && typeof t.ruleslist == "string" && (t.ruleslist = JSON.parse(t.ruleslist)), t.value = this.getItemVal(t), !0)), e);
|
|
1245
|
-
i(this.sysViewFilters.list);
|
|
1246
|
-
},
|
|
1247
|
-
async init(i) {
|
|
1248
|
-
const e = (s) => (s = s.filter((a, l) => {
|
|
1249
|
-
if (a.type = String(a.type), a.operators = String(a.operators), a.list && a.list.length > 0)
|
|
1250
|
-
a.list = e(a.list);
|
|
1251
|
-
else {
|
|
1252
|
-
let n = this.getItemVal(a, 2);
|
|
1253
|
-
a.values = typeof n == "object" && n !== null ? n.map((r) => Number(r)) : [], ["select", "radio", "checkbox", "switch"].includes(a.columntype) && (a.value = a.value !== void 0 && a.value !== "" && a.value !== null ? a.operators == 45 ? Number(a.value) : String(a.value) : "");
|
|
1254
|
-
}
|
|
1255
|
-
return a.recordid === void 0 && ["relevant", "parental"].includes(a.columntype) && (a.recordid = a.columnid + "@" + a.columntype), a.show === void 0 && (a.show = !0, a.checked = !1), a.fkdata != null && typeof a.fkdata == "string" && (a.fkdata = JSON.parse(a.fkdata)), a.ruleslist != null && typeof a.ruleslist == "string" && (a.ruleslist = JSON.parse(a.ruleslist)), !0;
|
|
1256
|
-
}), s);
|
|
1257
|
-
let t = await e(JSON.parse(JSON.stringify(i.list)));
|
|
1258
|
-
this.sysViewFilters = Object.assign(
|
|
1259
|
-
{ ...this.getLowerCase(this.sysViewFilters) },
|
|
1260
|
-
{ ...this.getLowerCase(i) },
|
|
1261
|
-
{
|
|
1262
|
-
list: t,
|
|
1263
|
-
referencetable: this.table.tablename,
|
|
1264
|
-
tablename: this.table.tablename
|
|
1265
|
-
}
|
|
1266
|
-
), this.fullscreen = !1, this.visible = !0;
|
|
1267
|
-
},
|
|
1268
|
-
async initComponents(i) {
|
|
1269
|
-
this.visibled = !1;
|
|
1270
|
-
const e = (s) => (s = s.filter((a, l) => {
|
|
1271
|
-
if (a.type = String(a.type), a.operators = String(a.operators), a.list.length > 0)
|
|
1272
|
-
a.list = e(a.list);
|
|
1273
|
-
else {
|
|
1274
|
-
let n = this.getItemVal(a, 2);
|
|
1275
|
-
a.values = typeof n == "object" && n !== null ? n.map((r) => Number(r)) : [], ["select", "radio", "checkbox", "switch"].includes(a.columntype) && (a.value = a.value !== void 0 && a.value !== "" && a.value !== null ? a.operators == 45 ? Number(a.value) : String(a.value) : "");
|
|
1276
|
-
}
|
|
1277
|
-
return a.recordid === void 0 && ["relevant", "parental"].includes(a.columntype) && (a.recordid = a.columnid + "@" + a.columntype), a.show === void 0 && (a.show = !0, a.checked = !1), a.fkdata != null && typeof a.fkdata == "string" && (a.fkdata = JSON.parse(a.fkdata)), a.ruleslist != null && typeof a.ruleslist == "string" && (a.ruleslist = JSON.parse(a.ruleslist)), !0;
|
|
1278
|
-
}), s);
|
|
1279
|
-
let t = await e(JSON.parse(JSON.stringify(i.list)));
|
|
1280
|
-
this.sysViewFilters = Object.assign(
|
|
1281
|
-
{ ...this.getLowerCase(this.sysViewFilters) },
|
|
1282
|
-
{ ...this.getLowerCase(i) },
|
|
1283
|
-
{
|
|
1284
|
-
list: t,
|
|
1285
|
-
referencetable: this.table.tablename,
|
|
1286
|
-
tablename: this.table.tablename
|
|
1287
|
-
}
|
|
1288
|
-
), this.$nextTick(() => {
|
|
1289
|
-
setTimeout(() => {
|
|
1290
|
-
this.visibled = !0;
|
|
1291
|
-
}, 100);
|
|
1292
|
-
});
|
|
1293
|
-
},
|
|
1294
|
-
getFieldList() {
|
|
1295
|
-
return p({
|
|
1296
|
-
codeGenId: this.table.id
|
|
1297
|
-
}).then((i) => {
|
|
1298
|
-
let e = i.data.filter((t) => t.effecttype == "about" && t.columnname == (t.relations + "_AboutTable").toLowerCase() || t.effecttype == "currency" && t.columnname == (t.relations + "_Currency_Base").toLowerCase() ? !1 : t.effecttype != "editor");
|
|
1299
|
-
return this.loadData = [...e], i;
|
|
1300
|
-
});
|
|
1301
|
-
},
|
|
1302
|
-
getLowerCase(i) {
|
|
1303
|
-
let e = /* @__PURE__ */ new Map();
|
|
1304
|
-
for (let t in i)
|
|
1305
|
-
e.set(t.toLowerCase(), i[t]);
|
|
1306
|
-
return Object.fromEntries(e);
|
|
1307
|
-
},
|
|
1308
|
-
fkListOnView() {
|
|
1309
|
-
y({
|
|
1310
|
-
codeGenId: this.table.id
|
|
1311
|
-
}).then((i) => {
|
|
1312
|
-
this.fkTableList = i.data;
|
|
1313
|
-
});
|
|
1314
|
-
},
|
|
1315
|
-
toggleFullscreen() {
|
|
1316
|
-
this.fullscreen = !this.fullscreen;
|
|
1317
|
-
},
|
|
1318
|
-
cancel() {
|
|
1319
|
-
this.visible = !1, this.$emit("closed");
|
|
1320
|
-
},
|
|
1321
|
-
doEvent(i) {
|
|
1322
|
-
let e = i.item.functionName;
|
|
1323
|
-
this[e] && this[e]();
|
|
1324
|
-
},
|
|
1325
|
-
getDictionary(i) {
|
|
1326
|
-
return this.$options.filters.dictData(i);
|
|
1327
|
-
}
|
|
1328
|
-
},
|
|
1329
|
-
mounted() {
|
|
1330
|
-
this.rulesList = this.getDictionary("table_lookup_rules"), this.effectType = this.getDictionary("code_gen_effect_type"), this.getFieldList(), this.fkListOnView();
|
|
1331
|
-
}
|
|
1332
|
-
};
|
|
1333
|
-
var j = function() {
|
|
1334
|
-
var e = this, t = e._self._c;
|
|
1335
|
-
return t("div", [e.mode === "dialog" ? t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": e.appendToBody, "modal-append-to-body": e.modalAppendToBody, top: "80px", "show-close": !1 }, on: { "update:visible": function(s) {
|
|
1336
|
-
e.visible = s;
|
|
1337
|
-
}, closed: e.cancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.$i18nt("gd.filter.condition", "\u6761\u4EF6"), fullscreen: e.fullscreen, buttons: e.buttons, confirmLoading: e.confirmLoading, showClose: !0, closed: "cancel" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("composeMiddle", { attrs: { record: e.sysViewFilters, tableNameAllData: e.tableLists, type: e.type, choiceDisabled: e.choiceDisabled } })], 1)], 1) : [e.visibled ? t("composeMiddle", { attrs: { record: e.sysViewFilters, tableNameAllData: e.tableLists, type: e.type, choiceDisabled: e.choiceDisabled }, on: { change: function(s) {
|
|
1338
|
-
return e.$emit("change");
|
|
1339
|
-
} } }) : e._e()]], 2);
|
|
1340
|
-
}, P = [], J = /* @__PURE__ */ u(
|
|
1341
|
-
K,
|
|
1342
|
-
j,
|
|
1343
|
-
P,
|
|
1344
|
-
!1,
|
|
1345
|
-
null,
|
|
1346
|
-
"9a77a519",
|
|
1347
|
-
null,
|
|
1348
|
-
null
|
|
1349
|
-
);
|
|
1350
|
-
const U = J.exports;
|
|
1351
|
-
function z(i) {
|
|
1352
|
-
return window.axios({
|
|
1353
|
-
url: "/SysDupRules/add",
|
|
1354
|
-
method: "post",
|
|
1355
|
-
data: i
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
|
-
function v(i) {
|
|
1359
|
-
return window.axios({
|
|
1360
|
-
url: "/SysDupRules/edit",
|
|
1361
|
-
method: "post",
|
|
1362
|
-
data: i
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
function q(i) {
|
|
1366
|
-
return window.axios({
|
|
1367
|
-
url: "/SysDupRules/detail",
|
|
1368
|
-
method: "get",
|
|
1369
|
-
params: i
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
function H(i) {
|
|
1373
|
-
return window.axios({
|
|
1374
|
-
url: "/SysDupRules/del",
|
|
1375
|
-
method: "get",
|
|
1376
|
-
params: i
|
|
1377
|
-
});
|
|
1378
|
-
}
|
|
1379
|
-
function Q(i) {
|
|
1380
|
-
return window.axios({
|
|
1381
|
-
url: "/SysDupRules/list",
|
|
1382
|
-
method: "post",
|
|
1383
|
-
data: i
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
function ye(i) {
|
|
1387
|
-
return window.axios({
|
|
1388
|
-
url: "/SysDupRules/GetDupRecords",
|
|
1389
|
-
method: "post",
|
|
1390
|
-
data: i
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
const X = {
|
|
1394
|
-
data() {
|
|
1395
|
-
return {
|
|
1396
|
-
tableColumns: [
|
|
1397
|
-
{
|
|
1398
|
-
type: "selection",
|
|
1399
|
-
width: "60",
|
|
1400
|
-
fixed: !0
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
transKey: "gd.duplicatechecking.name",
|
|
1404
|
-
prop: "name",
|
|
1405
|
-
label: "\u540D\u79F0",
|
|
1406
|
-
width: "260",
|
|
1407
|
-
type: "slot",
|
|
1408
|
-
slotType: "name",
|
|
1409
|
-
align: "left",
|
|
1410
|
-
fixed: !0,
|
|
1411
|
-
showOverflowTooltip: !0
|
|
1412
|
-
},
|
|
1413
|
-
{
|
|
1414
|
-
transKey: "gd.duplicatechecking.basicTable",
|
|
1415
|
-
prop: "basicrecordtablename",
|
|
1416
|
-
width: "220",
|
|
1417
|
-
label: "\u57FA\u672C\u8868",
|
|
1418
|
-
align: "left"
|
|
1419
|
-
},
|
|
1420
|
-
{
|
|
1421
|
-
transKey: "gd.duplicatechecking.matchingTable",
|
|
1422
|
-
prop: "matchingrecordtablename",
|
|
1423
|
-
width: "220",
|
|
1424
|
-
label: "\u5339\u914D\u8868",
|
|
1425
|
-
align: "left"
|
|
1426
|
-
},
|
|
1427
|
-
{
|
|
1428
|
-
transKey: "gd.duplicatechecking.isSave",
|
|
1429
|
-
prop: "issave",
|
|
1430
|
-
width: "120",
|
|
1431
|
-
label: "\u662F\u5426\u4FDD\u5B58",
|
|
1432
|
-
type: "slot",
|
|
1433
|
-
slotType: "issave",
|
|
1434
|
-
align: "left"
|
|
1435
|
-
},
|
|
1436
|
-
{
|
|
1437
|
-
transKey: "gd.duplicatechecking.status",
|
|
1438
|
-
prop: "stateCodes",
|
|
1439
|
-
width: "120",
|
|
1440
|
-
label: "\u72B6\u6001",
|
|
1441
|
-
type: "slot",
|
|
1442
|
-
slotType: "stateCodes",
|
|
1443
|
-
align: "left"
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
transKey: "gd.duplicatechecking.explain",
|
|
1447
|
-
prop: "remark",
|
|
1448
|
-
width: "260",
|
|
1449
|
-
label: "\u8BF4\u660E",
|
|
1450
|
-
align: "left"
|
|
1451
|
-
}
|
|
1452
|
-
],
|
|
1453
|
-
formColumns: [],
|
|
1454
|
-
tableButtons: [
|
|
1455
|
-
{
|
|
1456
|
-
displayName: "\u65B0\u589E",
|
|
1457
|
-
functionName: "add",
|
|
1458
|
-
show: !0,
|
|
1459
|
-
transKey: "gd.btn.add",
|
|
1460
|
-
icon: "el-icon-plus",
|
|
1461
|
-
name: "duplicatechecking:add"
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
displayName: "\u7F16\u8F91",
|
|
1465
|
-
functionName: "edit",
|
|
1466
|
-
show: !0,
|
|
1467
|
-
transKey: "gd.btn.edit",
|
|
1468
|
-
icon: "el-icon-edit",
|
|
1469
|
-
name: "duplicatechecking:edit"
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
displayName: "\u5220\u9664",
|
|
1473
|
-
functionName: "del",
|
|
1474
|
-
show: !0,
|
|
1475
|
-
transKey: "gd.btn.del",
|
|
1476
|
-
icon: "el-icon-delete",
|
|
1477
|
-
btnType: "danger",
|
|
1478
|
-
name: "duplicatechecking:delete"
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
displayName: "\u542F\u7528",
|
|
1482
|
-
functionName: "enable",
|
|
1483
|
-
show: !0,
|
|
1484
|
-
transKey: "gd.btn.enable",
|
|
1485
|
-
icon: "el-icon-video-play",
|
|
1486
|
-
name: "duplicatechecking:changeStatus"
|
|
1487
|
-
},
|
|
1488
|
-
{
|
|
1489
|
-
displayName: "\u505C\u7528",
|
|
1490
|
-
functionName: "deactivated",
|
|
1491
|
-
show: !0,
|
|
1492
|
-
btnType: "danger",
|
|
1493
|
-
icon: "el-icon-discover",
|
|
1494
|
-
transKey: "gd.btn.deactivate",
|
|
1495
|
-
name: "duplicatechecking:changeStatus"
|
|
1496
|
-
}
|
|
1497
|
-
],
|
|
1498
|
-
formButtons: [],
|
|
1499
|
-
tableQueries: [
|
|
1500
|
-
{
|
|
1501
|
-
transKey: "gd.msg.temPlate.state",
|
|
1502
|
-
prop: "stateCodes",
|
|
1503
|
-
label: "\u72B6\u6001",
|
|
1504
|
-
effectType: "select",
|
|
1505
|
-
dictTypeCode: "state_code",
|
|
1506
|
-
rules: []
|
|
1507
|
-
},
|
|
1508
|
-
{
|
|
1509
|
-
transKey: "gd.duplicatechecking.isSave",
|
|
1510
|
-
prop: "isSave",
|
|
1511
|
-
label: "\u662F\u5426\u4FDD\u5B58",
|
|
1512
|
-
effectType: "select",
|
|
1513
|
-
dictTypeCode: "yes_or_no",
|
|
1514
|
-
rules: []
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
transKey: "gd.duplicatechecking.basicTable",
|
|
1518
|
-
prop: "baseRecordTable",
|
|
1519
|
-
label: "\u57FA\u672C\u8868",
|
|
1520
|
-
effectType: "selectMultiple",
|
|
1521
|
-
fkEntityName: "sys_code_gen",
|
|
1522
|
-
rules: [],
|
|
1523
|
-
fkData: [],
|
|
1524
|
-
dictData: []
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
transKey: "gd.duplicatechecking.matchingTable",
|
|
1528
|
-
prop: "matchingRecordTable",
|
|
1529
|
-
label: "\u5339\u914D\u8868",
|
|
1530
|
-
effectType: "selectMultiple",
|
|
1531
|
-
fkEntityName: "sys_code_gen",
|
|
1532
|
-
fkData: [],
|
|
1533
|
-
rules: [],
|
|
1534
|
-
dictData: []
|
|
1535
|
-
}
|
|
1536
|
-
]
|
|
1537
|
-
};
|
|
1538
|
-
}
|
|
1539
|
-
};
|
|
1540
|
-
const W = {
|
|
1541
|
-
data() {
|
|
1542
|
-
return {
|
|
1543
|
-
confirmLoading: !0,
|
|
1544
|
-
title: "",
|
|
1545
|
-
sysViewButtons: [
|
|
1546
|
-
{
|
|
1547
|
-
displayName: "\u786E\u5B9A",
|
|
1548
|
-
functionName: "handleSubmit",
|
|
1549
|
-
show: !1,
|
|
1550
|
-
transKey: "gd.btn.confirm",
|
|
1551
|
-
icon: "el-icon-document-checked"
|
|
1552
|
-
}
|
|
1553
|
-
],
|
|
1554
|
-
type: 1,
|
|
1555
|
-
fullScreen: !1,
|
|
1556
|
-
width: "1000px",
|
|
1557
|
-
ruleFormData: {
|
|
1558
|
-
stateCodes: "0",
|
|
1559
|
-
name: "",
|
|
1560
|
-
explain: "",
|
|
1561
|
-
issave: !1
|
|
1562
|
-
},
|
|
1563
|
-
rules: {
|
|
1564
|
-
status: [
|
|
1565
|
-
{
|
|
1566
|
-
required: !0,
|
|
1567
|
-
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
1568
|
-
trigger: "change"
|
|
1569
|
-
}
|
|
1570
|
-
],
|
|
1571
|
-
name: [
|
|
1572
|
-
{
|
|
1573
|
-
required: !0,
|
|
1574
|
-
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
1575
|
-
trigger: "change"
|
|
1576
|
-
}
|
|
1577
|
-
]
|
|
1578
|
-
},
|
|
1579
|
-
tableData: [],
|
|
1580
|
-
visible: !1,
|
|
1581
|
-
matchingsysCodeGenId: "",
|
|
1582
|
-
sysCodeGenId: "",
|
|
1583
|
-
sysCodeGenoId: "",
|
|
1584
|
-
viewId: "0",
|
|
1585
|
-
viewoId: "0",
|
|
1586
|
-
filterList: {},
|
|
1587
|
-
isAll: !1,
|
|
1588
|
-
viewListData: [],
|
|
1589
|
-
viewPersonalData: [],
|
|
1590
|
-
loadData: [],
|
|
1591
|
-
ruleslists: [],
|
|
1592
|
-
selShow: !0,
|
|
1593
|
-
tableMode: "basic",
|
|
1594
|
-
isflows: !1,
|
|
1595
|
-
rulesList: [],
|
|
1596
|
-
fieldloadData: [],
|
|
1597
|
-
matchFieldloadData: [],
|
|
1598
|
-
tabledisabled: !1,
|
|
1599
|
-
filteredList: []
|
|
1600
|
-
};
|
|
1601
|
-
},
|
|
1602
|
-
components: { FlowsFilter: U },
|
|
1603
|
-
computed: {
|
|
1604
|
-
table() {
|
|
1605
|
-
return this.tableLists.filter((i) => i.id === this.matchingsysCodeGenId)[0];
|
|
1606
|
-
},
|
|
1607
|
-
processedTableData() {
|
|
1608
|
-
return [
|
|
1609
|
-
...this.tableData,
|
|
1610
|
-
{ isPlaceholder: !0 }
|
|
1611
|
-
];
|
|
1612
|
-
},
|
|
1613
|
-
fieldProp() {
|
|
1614
|
-
return this.tableMode === "basic" ? "field" : "baseField";
|
|
1615
|
-
},
|
|
1616
|
-
plugFilters() {
|
|
1617
|
-
return {
|
|
1618
|
-
referencefiled: "",
|
|
1619
|
-
referencetable: "",
|
|
1620
|
-
checked: !1,
|
|
1621
|
-
columnid: 0,
|
|
1622
|
-
columnname: "",
|
|
1623
|
-
columntype: "",
|
|
1624
|
-
dynamicreferencefield: "",
|
|
1625
|
-
dynamicreferencetable: "",
|
|
1626
|
-
fieldformat: null,
|
|
1627
|
-
fkdata: [],
|
|
1628
|
-
id: 0,
|
|
1629
|
-
operators: "1",
|
|
1630
|
-
optionsdata: [],
|
|
1631
|
-
pid: null,
|
|
1632
|
-
recordid: null,
|
|
1633
|
-
ruleslist: [],
|
|
1634
|
-
show: !0,
|
|
1635
|
-
tablename: "",
|
|
1636
|
-
type: "1",
|
|
1637
|
-
value: "",
|
|
1638
|
-
values: [],
|
|
1639
|
-
list: []
|
|
1640
|
-
};
|
|
1641
|
-
},
|
|
1642
|
-
...f(["screenHeight", "tableLists", "primaryColor"])
|
|
1643
|
-
},
|
|
1644
|
-
methods: {
|
|
1645
|
-
okFilter(i) {
|
|
1646
|
-
this.filterList = { ...i };
|
|
1647
|
-
},
|
|
1648
|
-
toggleFullscreen() {
|
|
1649
|
-
this.fullScreen = !this.fullScreen;
|
|
1650
|
-
},
|
|
1651
|
-
getDictionary(i) {
|
|
1652
|
-
return this.$options.filters.dictData(i);
|
|
1653
|
-
},
|
|
1654
|
-
selectRules(i) {
|
|
1655
|
-
},
|
|
1656
|
-
changeRelevant(i, e) {
|
|
1657
|
-
i.condition = "", this.tabledisabled = !0;
|
|
1658
|
-
let t = null;
|
|
1659
|
-
if (e == "field" ? (this.selShow = !0, t = this.fieldloadData.filter((s) => s.columnname === i.basicField)[0], i.fieldeffecttype = t.effecttype) : (t = this.matchFieldloadData.filter((s) => s.columnname === i.matchingField)[0], i.mactheffecttype = t.effecttype, i.mactheffecttype !== i.fieldeffecttype && this.$message.warning(this.$i18nt("gd.duplicatechecking.pleaseBasicTableandmach", "\u57FA\u672C\u5B57\u6BB5\u9700\u4E0E\u5339\u914D\u5B57\u6BB5\u4FDD\u6301\u4E00\u81F4"))), t) {
|
|
1660
|
-
i.type = t.effecttype, this.conditionColumn(i, t);
|
|
1661
|
-
return;
|
|
1662
|
-
}
|
|
1663
|
-
},
|
|
1664
|
-
conditionColumn(i, e) {
|
|
1665
|
-
let t = this.rulesList.filter((s) => s.remark.split(",").includes(e.effecttype));
|
|
1666
|
-
i.ruleslists = [...t];
|
|
1667
|
-
},
|
|
1668
|
-
getList(i, e) {
|
|
1669
|
-
return p({
|
|
1670
|
-
codeGenId: i
|
|
1671
|
-
}).then((t) => {
|
|
1672
|
-
let a = [...t.data.filter((r) => r.effecttype == "about" && r.columnname == (r.relations + "_AboutTable").toLowerCase() || r.effecttype == "currency" && r.columnname == (r.relations + "_Currency_Base").toLowerCase() ? !1 : r.effecttype != "editor")];
|
|
1673
|
-
const l = this.rulesList.map((r) => ({
|
|
1674
|
-
...r,
|
|
1675
|
-
remarkTypes: r.remark.split(",").map((o) => o.trim())
|
|
1676
|
-
})), n = a.filter((r) => l.some((o) => o.remarkTypes.includes(r.effecttype)));
|
|
1677
|
-
return e == "basicTable" ? this.fieldloadData = n : e == "matchingTable" && (this.matchFieldloadData = n), this.type == 2 && this.tableData.forEach((r) => {
|
|
1678
|
-
let o = null;
|
|
1679
|
-
if (o = this.fieldloadData.filter((d) => d.columnname === r.basicField)[0], o) {
|
|
1680
|
-
let d = this.rulesList.filter((c) => c.remark.split(",").includes(o.effecttype));
|
|
1681
|
-
r.ruleslists = [...d];
|
|
1682
|
-
}
|
|
1683
|
-
}), t;
|
|
1684
|
-
});
|
|
1685
|
-
},
|
|
1686
|
-
init(i) {
|
|
1687
|
-
this.fullScreen = !1, this.confirmLoading = !1, this.visible = !0, this.type = i ? 2 : 1, this.title = i ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), this.$nextTick(() => {
|
|
1688
|
-
this.filterList = JSON.parse(JSON.stringify(this.plugFilters));
|
|
1689
|
-
let e = this.getDictionary("table_dup_rule");
|
|
1690
|
-
e.forEach((t, s) => {
|
|
1691
|
-
e[s].sysdicttype = {};
|
|
1692
|
-
}), this.rulesList = [...e];
|
|
1693
|
-
}), this.sysViewButtons = [
|
|
1694
|
-
{
|
|
1695
|
-
displayName: "\u786E\u5B9A",
|
|
1696
|
-
functionName: "handleSubmit",
|
|
1697
|
-
show: !0,
|
|
1698
|
-
transKey: "gd.btn.confirm",
|
|
1699
|
-
icon: "el-icon-document-checked"
|
|
1700
|
-
}
|
|
1701
|
-
], this.isflows = !0, i && this.sysTranslationDetail(i.id), this.filteredList = [], this.filteredList = this.tableLists.filter((e) => e.ischeckduplicate === 1);
|
|
1702
|
-
},
|
|
1703
|
-
sysTranslationDetail(i) {
|
|
1704
|
-
this.confirmLoading = !0, q({
|
|
1705
|
-
id: i
|
|
1706
|
-
}).then((e) => {
|
|
1707
|
-
this.ruleFormData.name = e.data.name, this.ruleFormData.stateCodes = String(e.data.statecodes), this.ruleFormData.id = e.data.id, this.ruleFormData.explain = e.data.explain, this.ruleFormData.issave = e.data.issave === 1, this.tableData = JSON.parse(e.data.matchingrules), this.filterList = e.data.filterconfig ? JSON.parse(e.data.filterconfig) : JSON.parse(JSON.stringify(this.plugfilters)), this.sysCodeGenId = Number(e.data.basicrecordtable), this.getList(e.data.basicrecordtable, "basicTable"), this.tableMode = "basic", this.matchingsysCodeGenId = Number(e.data.matchingrecordtable), this.matchingsysCodeGenId && this.matchingsysCodeGenId != this.sysCodeGenId && (this.getList(this.matchingsysCodeGenId, "matchingTable"), this.tableMode = "match"), this.ruleFormData.stateCodes == 1 && (this.sysViewButtons = []), this.confirmLoading = !1;
|
|
1708
|
-
});
|
|
1709
|
-
},
|
|
1710
|
-
add(i) {
|
|
1711
|
-
this.confirmLoading = !0, delete i.id, z(i).then((e) => {
|
|
1712
|
-
e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc")), this.$emit("ok", i), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail") + e.message);
|
|
1713
|
-
}).finally((e) => {
|
|
1714
|
-
this.confirmLoading = !1;
|
|
1715
|
-
});
|
|
1716
|
-
},
|
|
1717
|
-
edit(i) {
|
|
1718
|
-
this.confirmLoading = !0, delete i.basicRecordTable, delete i.matchingRecordTable, v(i).then((e) => {
|
|
1719
|
-
e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc")), this.$emit("ok", i), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail") + e.message);
|
|
1720
|
-
}).finally((e) => {
|
|
1721
|
-
this.confirmLoading = !1;
|
|
1722
|
-
});
|
|
1723
|
-
},
|
|
1724
|
-
handleSubmit() {
|
|
1725
|
-
this.$refs.ruleForm.validate((i) => {
|
|
1726
|
-
this.tableData.forEach((l) => {
|
|
1727
|
-
l.charactorcount = l.charactorcount ? Number(l.charactorcount) : "", l.basicField = l.basicField ? l.basicField : "", l.matchingField = this.tableMode === "match" ? l.matchingField : l.basicField;
|
|
1728
|
-
});
|
|
1729
|
-
let e = JSON.parse(JSON.stringify(this.tableData));
|
|
1730
|
-
e.forEach((l) => {
|
|
1731
|
-
delete l.isPlaceholder, delete l.ruleslists, delete l.fieldeffecttype, delete l.mactheffecttype;
|
|
1732
|
-
});
|
|
1733
|
-
let t = this.filterList.list[0], s = 0;
|
|
1734
|
-
this.filterList.list.forEach((l) => {
|
|
1735
|
-
s += l.list.length;
|
|
1736
|
-
});
|
|
1737
|
-
let a = t && this.filterList.list.length === 1 && t.referencefiled === "" && t.referencetable === "" && t.list.length > 0 ? Object.assign(t, {
|
|
1738
|
-
columnid: 0
|
|
1739
|
-
}) : this.filterList;
|
|
1740
|
-
if (i) {
|
|
1741
|
-
const l = {
|
|
1742
|
-
...this.ruleFormData,
|
|
1743
|
-
basicRecordTable: this.sysCodeGenId,
|
|
1744
|
-
matchingRecordTable: this.matchingsysCodeGenId,
|
|
1745
|
-
filterConfig: JSON.stringify(a),
|
|
1746
|
-
matchingRules: JSON.stringify(e)
|
|
1747
|
-
};
|
|
1748
|
-
this.type == 1 ? this.add(l) : this.edit(l);
|
|
1749
|
-
}
|
|
1750
|
-
});
|
|
1751
|
-
},
|
|
1752
|
-
handleModeChange(i) {
|
|
1753
|
-
this.tableData = [], this.selShow = !0, this.sysCodeGenId == this.matchingsysCodeGenId ? this.tableMode = "basic" : this.tableMode = "match", this.flowsFilterInit(), this.getList(i, "matchingTable");
|
|
1754
|
-
},
|
|
1755
|
-
handleCancel() {
|
|
1756
|
-
this.visible = !1, this.confirmLoading = !1, this.tabledisabled = !1, this.$refs.ruleForm.resetFields(), this.ruleFormData = {
|
|
1757
|
-
stateCodes: "0",
|
|
1758
|
-
name: "",
|
|
1759
|
-
explain: "",
|
|
1760
|
-
issave: !1
|
|
1761
|
-
}, this.sysCodeGenId = "", this.matchingsysCodeGenId = "", this.tableData = [], this.fieldloadData = [], this.matchFieldloadData = [], this.selShow = !0, this.tableMode = "basic";
|
|
1762
|
-
},
|
|
1763
|
-
doEvent(i) {
|
|
1764
|
-
let e = i.item.functionName;
|
|
1765
|
-
this[e] && this[e]();
|
|
1766
|
-
},
|
|
1767
|
-
shouldShowCharCount(i) {
|
|
1768
|
-
return ["2", "3"].includes(i.condition);
|
|
1769
|
-
},
|
|
1770
|
-
selectTable(i) {
|
|
1771
|
-
this.tableData = [], this.selShow = !0, this.matchingsysCodeGenId === "" && (this.matchingsysCodeGenId = i), this.sysCodeGenId == this.matchingsysCodeGenId ? this.tableMode = "basic" : this.tableMode = "match", this.flowsFilterInit(), this.getList(i, "basicTable");
|
|
1772
|
-
},
|
|
1773
|
-
addNewRow(i) {
|
|
1774
|
-
this.selShow = !1;
|
|
1775
|
-
const e = {
|
|
1776
|
-
basicField: "",
|
|
1777
|
-
matchingField: "",
|
|
1778
|
-
condition: "",
|
|
1779
|
-
charactorcount: "",
|
|
1780
|
-
isPlaceholder: !1,
|
|
1781
|
-
ruleslists: "",
|
|
1782
|
-
type: ""
|
|
1783
|
-
};
|
|
1784
|
-
this.tableData.push(e);
|
|
1785
|
-
},
|
|
1786
|
-
shouldShowAddButton(i) {
|
|
1787
|
-
const e = i === this.processedTableData.length - 1, t = this.tableData.some((s) => !s.field);
|
|
1788
|
-
return e && !t;
|
|
1789
|
-
},
|
|
1790
|
-
removeRow(i) {
|
|
1791
|
-
let e = this;
|
|
1792
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
1793
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
1794
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
1795
|
-
showClose: !1,
|
|
1796
|
-
confirmButtonLoading: !1,
|
|
1797
|
-
cancelButtonLoading: !1,
|
|
1798
|
-
closeOnClickModal: !1,
|
|
1799
|
-
type: "warning",
|
|
1800
|
-
confirmButtonClass: "el-button--danger",
|
|
1801
|
-
customClass: "custom-alert",
|
|
1802
|
-
callback: () => {
|
|
1803
|
-
},
|
|
1804
|
-
beforeClose: (t, s, a) => {
|
|
1805
|
-
if (t !== "confirm") {
|
|
1806
|
-
a();
|
|
1807
|
-
return;
|
|
1808
|
-
}
|
|
1809
|
-
this.tableData.splice(i, 1), this.tabledisabled = !1, this.selShow = !0, e.$message.success(e.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), a();
|
|
1810
|
-
}
|
|
1811
|
-
});
|
|
1812
|
-
},
|
|
1813
|
-
tableRowClassName({ row: i }) {
|
|
1814
|
-
return i.isPlaceholder ? "placeholder-row" : "";
|
|
1815
|
-
},
|
|
1816
|
-
handleCellHover(i, e, t) {
|
|
1817
|
-
},
|
|
1818
|
-
handleAddRow(i) {
|
|
1819
|
-
this.selShow = !0;
|
|
1820
|
-
},
|
|
1821
|
-
flowsFilterInit() {
|
|
1822
|
-
this.$nextTick(() => {
|
|
1823
|
-
this.$refs.flowsFilter.initComponents(this.plugFilters);
|
|
1824
|
-
});
|
|
1825
|
-
},
|
|
1826
|
-
selFilter() {
|
|
1827
|
-
if (!(this.type == 2 && this.ruleFormData.stateCodes == 1)) {
|
|
1828
|
-
if (this.matchingsysCodeGenId == "") {
|
|
1829
|
-
this.$message.warning(this.$i18nt("gd.duplicatechecking.pleaseSelectBasicTable", "\u8BF7\u9009\u62E9\u5339\u914D\u8868"));
|
|
1830
|
-
return;
|
|
1831
|
-
}
|
|
1832
|
-
console.log(this.filterList), this.$refs.flowsFilter.init(this.filterList);
|
|
1833
|
-
}
|
|
1834
|
-
},
|
|
1835
|
-
isselect() {
|
|
1836
|
-
return this.type == 2 ? this.ruleFormData.stateCodes != 1 : !0;
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
};
|
|
1840
|
-
var Y = function() {
|
|
1841
|
-
var e = this, t = e._self._c;
|
|
1842
|
-
return t("el-dialog", { class: e.fullScreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { width: e.width, visible: e.visible, fullscreen: e.fullScreen, footer: null, top: "80px", "append-to-body": "", "show-close": !1 }, on: { "update:visible": function(s) {
|
|
1843
|
-
e.visible = s;
|
|
1844
|
-
}, closed: e.handleCancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: `${e.title}${e.$i18nt("gd.duplicatechecking.checkConfigurationRetryRule", "\u67E5\u91CD\u89C4\u5219\u914D\u7F6E")}`, fullscreen: e.fullScreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, closed: "handleCancel", showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("div", { staticClass: "setting-navs", class: e.fullScreen ? "modal-bodyq" : "modal-body" }, [t("el-form", { ref: "ruleForm", attrs: { model: e.ruleFormData, rules: e.rules, "label-width": "120px" }, nativeOn: { submit: function(s) {
|
|
1845
|
-
s.preventDefault();
|
|
1846
|
-
} } }, [t("el-row", { attrs: { gutter: 20 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.duplicatechecking.name", "\u540D\u79F0"), prop: "name" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: e.type == 2 && e.ruleFormData.stateCodes == 1 }, model: { value: e.ruleFormData.name, callback: function(s) {
|
|
1847
|
-
e.$set(e.ruleFormData, "name", s);
|
|
1848
|
-
}, expression: "ruleFormData['name']" } })], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.duplicatechecking.status", "\u72B6\u6001") } }, [t("el-select", { ref: "refView", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: "" }, model: { value: e.ruleFormData.stateCodes, callback: function(s) {
|
|
1849
|
-
e.$set(e.ruleFormData, "stateCodes", s);
|
|
1850
|
-
}, expression: "ruleFormData['stateCodes']" } }, [t("el-option", { attrs: { value: "1", label: e.$i18nt("gd.duplicatechecking.enable", "\u542F\u7528]") } }), t("el-option", { attrs: { value: "0", label: e.$i18nt("gd.duplicatechecking.deactivate", "\u7981\u7528]") } })], 1)], 1)], 1), t("el-col", { attrs: { span: 24 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.duplicatechecking.explain", "\u8BF4\u660E") } }, [t("el-input", { attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.inputcontent", "\u8BF7\u8F93\u5165\u5185\u5BB9"), autosize: { minRows: 4, maxRows: 6 }, disabled: e.type == 2 && e.ruleFormData.stateCodes == 1 }, model: { value: e.ruleFormData.explain, callback: function(s) {
|
|
1851
|
-
e.$set(e.ruleFormData, "explain", s);
|
|
1852
|
-
}, expression: "ruleFormData['explain']" } })], 1)], 1), t("el-col", { staticClass: "setting-navs-btn", attrs: { source: 24 } }, [t("span", [e._v(e._s(e.$i18nt("gd.duplicatechecking.repeatDetectionRuleCondition", "\u91CD\u590D\u68C0\u6D4B\u89C4\u5219\u6761\u4EF6")))])]), t("el-col", { attrs: { span: 10 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.duplicatechecking.basicTable", "\u57FA\u672C\u8868") } }, [t("el-select", { ref: "refTable", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.type == 2 && e.ruleFormData.stateCodes == 1 }, on: { change: e.selectTable }, model: { value: e.sysCodeGenId, callback: function(s) {
|
|
1853
|
-
e.sysCodeGenId = s;
|
|
1854
|
-
}, expression: "sysCodeGenId" } }, e._l(e.filteredList, function(s) {
|
|
1855
|
-
return t("el-option", { key: s.id, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname), value: s.id } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
1856
|
-
}), 1)], 1)], 1), t("el-col", { attrs: { span: 10 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.duplicatechecking.matchingTable", "\u5339\u914D\u8868") } }, [t("el-select", { ref: "refTable", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.type == 2 && e.ruleFormData.stateCodes == 1 }, on: { change: e.handleModeChange }, model: { value: e.matchingsysCodeGenId, callback: function(s) {
|
|
1857
|
-
e.matchingsysCodeGenId = s;
|
|
1858
|
-
}, expression: "matchingsysCodeGenId" } }, e._l(e.tableLists, function(s) {
|
|
1859
|
-
return t("el-option", { key: s.id, attrs: { label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname), value: s.id } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
1860
|
-
}), 1)], 1)], 1), t("el-col", { attrs: { span: 4 } }, [t("el-button", { attrs: { type: "primary" }, on: { click: e.selFilter } }, [e._v(e._s(e.$i18nt("gd.view.filterConditions", "\u8FC7\u6EE4\u6761\u4EF6")))])], 1), t("el-col", { attrs: { span: 10 } }, [t("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.duplicatechecking.allowSave", "\u5141\u8BB8\u4FDD\u5B58") } }, [t("el-switch", { attrs: { disabled: e.type == 2 && e.ruleFormData.stateCodes == 1, "active-color": e.primaryColor }, model: { value: e.ruleFormData.issave, callback: function(s) {
|
|
1861
|
-
e.$set(e.ruleFormData, "issave", s);
|
|
1862
|
-
}, expression: "ruleFormData['issave']" } })], 1)], 1)], 1)], 1), t("div", { staticClass: "setting-conter" }, [t("div", { staticClass: "config-table-container" }, [t("el-table", { staticStyle: { width: "100%" }, attrs: { data: e.processedTableData, border: "", "header-cell-class-name": "table-header", "row-class-name": e.tableRowClassName }, on: { "cell-mouse-enter": e.handleCellHover } }, [t("el-table-column", { attrs: { prop: e.fieldProp, label: e.tableMode === "basic" ? e.$i18nt("gd.duplicatechecking.field", "\u5B57\u6BB5") : e.$i18nt("gd.duplicatechecking.basicField", "\u57FA\u672C\u5B57\u6BB5"), width: "170" }, scopedSlots: e._u([{ key: "default", fn: function(s) {
|
|
1863
|
-
return [s.row.isPlaceholder ? e._e() : t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.type == 2 && e.ruleFormData.stateCodes == 1 }, on: { change: function(a) {
|
|
1864
|
-
return e.changeRelevant(s.row, "field");
|
|
1865
|
-
} }, model: { value: s.row.basicField, callback: function(a) {
|
|
1866
|
-
e.$set(s.row, "basicField", a);
|
|
1867
|
-
}, expression: "scope.row.basicField" } }, e._l(e.fieldloadData, function(a, l) {
|
|
1868
|
-
return t("el-option", { key: a.id, attrs: { value: a.columnname, label: e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment), clearable: "" } }, [t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)) + " " + e._s(a.columnname) + " ")])]);
|
|
1869
|
-
}), 1), e.selShow && s.row.isPlaceholder && e.isselect() ? t("div", { staticClass: "select-placeholder", on: { click: function(a) {
|
|
1870
|
-
return e.addNewRow(s.row);
|
|
1871
|
-
} } }, [t("span", { staticClass: "blue-text active-color" }, [e._v(e._s(e.$i18nt("gd.btn.choice", "\u9009\u62E9")))])]) : e._e()];
|
|
1872
|
-
} }]) }), e.tableMode === "match" ? t("el-table-column", { attrs: { prop: "matchingField", label: e.$i18nt("gd.duplicatechecking.matchingField", "\u5339\u914D\u5B57\u6BB5"), width: "170" }, scopedSlots: e._u([{ key: "default", fn: function(s) {
|
|
1873
|
-
return [s.row.isPlaceholder ? e._e() : t("el-select", { attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: !s.row.basicField || e.type == 2 && e.ruleFormData.stateCodes == 1 }, on: { change: function(a) {
|
|
1874
|
-
return e.changeRelevant(s.row, "mactch");
|
|
1875
|
-
} }, model: { value: s.row.matchingField, callback: function(a) {
|
|
1876
|
-
e.$set(s.row, "matchingField", a);
|
|
1877
|
-
}, expression: "scope.row.matchingField" } }, e._l(e.matchFieldloadData, function(a, l) {
|
|
1878
|
-
return t("el-option", { key: a.id, attrs: { value: a.columnname, label: e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment) } }, [t("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${a.transkey}`, a.columncomment)) + " " + e._s(a.columnname) + " ")])]);
|
|
1879
|
-
}), 1)];
|
|
1880
|
-
} }], null, !1, 2082435928) }) : e._e(), t("el-table-column", { attrs: { prop: "condition", label: e.$i18nt("gd.duplicatechecking.condition", "\u6761\u4EF6"), width: "170" }, scopedSlots: e._u([{ key: "default", fn: function(s) {
|
|
1881
|
-
return [!s.row.isPlaceholder && s.row.ruleslists && s.row.ruleslists.length > 0 ? t("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.type == 2 && e.ruleFormData.stateCodes == 1 }, on: { change: e.selectRules }, model: { value: s.row.condition, callback: function(a) {
|
|
1882
|
-
e.$set(s.row, "condition", a);
|
|
1883
|
-
}, expression: "scope.row.condition" } }, [e._l(s.row.ruleslists, function(a) {
|
|
1884
|
-
return [t("el-option", { attrs: { value: a.code, label: e.$i18nt(`Dynamics.${a.transkey}`, a.name) } })];
|
|
1885
|
-
})], 2) : e._e()];
|
|
1886
|
-
} }]) }), t("el-table-column", { staticClass: "charactorcount", attrs: { prop: "charactorcount", label: e.$i18nt("gd.duplicatechecking.numberCharacters", "\u5B57\u7B26\u6570"), width: "160" }, scopedSlots: e._u([{ key: "default", fn: function(s) {
|
|
1887
|
-
return [e.shouldShowCharCount(s.row) ? t("el-input-number", { staticStyle: { width: "100%" }, attrs: { disabled: e.type == 2 && e.ruleFormData.stateCodes == 1, min: 0 }, model: { value: s.row.charactorcount, callback: function(a) {
|
|
1888
|
-
e.$set(s.row, "charactorcount", a);
|
|
1889
|
-
}, expression: "scope.row.charactorcount" } }) : e._e()];
|
|
1890
|
-
} }]) }), t("el-table-column", { attrs: { label: e.$i18nt("gd.duplicatechecking.handle", "\u64CD\u4F5C") }, scopedSlots: e._u([{ key: "default", fn: function(s) {
|
|
1891
|
-
return !s.row.isPlaceholder && e.isselect() ? [t("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "16px", color: "#ff4d4f" }, on: { click: function(a) {
|
|
1892
|
-
return e.removeRow(s.$index);
|
|
1893
|
-
} } })] : void 0;
|
|
1894
|
-
} }], null, !0) })], 1)], 1)]), e.visible && e.isflows && e.matchingsysCodeGenId ? t("FlowsFilter", { ref: "flowsFilter", attrs: { type: 2, table: e.table }, on: { ok: e.okFilter } }) : e._e()], 1)])], 1);
|
|
1895
|
-
}, Z = [], ee = /* @__PURE__ */ u(
|
|
1896
|
-
W,
|
|
1897
|
-
Y,
|
|
1898
|
-
Z,
|
|
1899
|
-
!1,
|
|
1900
|
-
null,
|
|
1901
|
-
"080bf7cf",
|
|
1902
|
-
null,
|
|
1903
|
-
null
|
|
1904
|
-
);
|
|
1905
|
-
const te = ee.exports;
|
|
1906
|
-
const ie = {
|
|
1907
|
-
props: {
|
|
1908
|
-
height: {
|
|
1909
|
-
type: Number,
|
|
1910
|
-
default: 100
|
|
1911
|
-
}
|
|
1912
|
-
},
|
|
1913
|
-
name: "GdDuplicateChecking",
|
|
1914
|
-
mixins: [D, X],
|
|
1915
|
-
components: {
|
|
1916
|
-
editForm: te
|
|
1917
|
-
},
|
|
1918
|
-
data() {
|
|
1919
|
-
return {
|
|
1920
|
-
selectedRowKeys: [],
|
|
1921
|
-
selectedRows: [],
|
|
1922
|
-
disableBtn: [],
|
|
1923
|
-
transKey: "gd.duplicatechecking.checkConfigurationRetryRule",
|
|
1924
|
-
formLoading: !1,
|
|
1925
|
-
currentNode: null,
|
|
1926
|
-
loadData: (i) => Q(Object.assign(i, this.getQueryParam)).then((e) => e.data),
|
|
1927
|
-
record: {},
|
|
1928
|
-
queryParam: {}
|
|
1929
|
-
};
|
|
1930
|
-
},
|
|
1931
|
-
computed: {
|
|
1932
|
-
getTableLists() {
|
|
1933
|
-
let i = [...this.tableLists];
|
|
1934
|
-
return i.forEach((e, t) => {
|
|
1935
|
-
i[t].name = e.busname, i[t].code = e.id;
|
|
1936
|
-
}), i;
|
|
1937
|
-
},
|
|
1938
|
-
getTableQueries() {
|
|
1939
|
-
return this.tableQueries.forEach((i, e) => {
|
|
1940
|
-
if (i.prop === "matchingRecordTable")
|
|
1941
|
-
this.tableQueries[e].dictData = [...this.getTableLists];
|
|
1942
|
-
else if (i.prop === "baseRecordTable") {
|
|
1943
|
-
const t = this.getTableLists.filter((s) => s.ischeckduplicate === 1);
|
|
1944
|
-
this.tableQueries[e].dictData = [...t];
|
|
1945
|
-
}
|
|
1946
|
-
}), this.tableQueries;
|
|
1947
|
-
},
|
|
1948
|
-
getHeight() {
|
|
1949
|
-
return this.height;
|
|
1950
|
-
},
|
|
1951
|
-
getTableButtons() {
|
|
1952
|
-
return this.tableButtons.filter((i) => (i.show = !this.disableBtn.includes(i.displayName), !0));
|
|
1953
|
-
},
|
|
1954
|
-
getQueryParam() {
|
|
1955
|
-
let i = /* @__PURE__ */ new Map();
|
|
1956
|
-
for (let e in this.queryParam)
|
|
1957
|
-
this.queryParam[e] && e === "baseRecordTable" || e === "matchingRecordTable" ? i.set(e, this.queryParam[e].join(",")) : i.set(e, this.queryParam[e]);
|
|
1958
|
-
return Object.fromEntries(i);
|
|
1959
|
-
},
|
|
1960
|
-
...f(["tablePageSize", "tableSize", "labelPosition", "formMode", "tableLists"])
|
|
1961
|
-
},
|
|
1962
|
-
methods: {
|
|
1963
|
-
onSelectChange(i, e) {
|
|
1964
|
-
if (this.selectedRows = e, this.selectedRowKeys = i, i.length === 0) {
|
|
1965
|
-
this.disableBtn = [];
|
|
1966
|
-
return;
|
|
1967
|
-
}
|
|
1968
|
-
const t = e.filter((a) => a.statecodes === 1)[0];
|
|
1969
|
-
this.disableBtn = t ? ["\u5220\u9664", "\u542F\u7528"] : [], e.filter((a) => a.statecodes === 0)[0] && this.disableBtn.push("\u505C\u7528");
|
|
1970
|
-
},
|
|
1971
|
-
refresh() {
|
|
1972
|
-
this.$refs.table.refresh();
|
|
1973
|
-
},
|
|
1974
|
-
edit() {
|
|
1975
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1976
|
-
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
1977
|
-
return;
|
|
1978
|
-
}
|
|
1979
|
-
if (this.selectedRowKeys.length > 1) {
|
|
1980
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
1981
|
-
return;
|
|
1982
|
-
}
|
|
1983
|
-
this.editForms(this.selectedRows[0]);
|
|
1984
|
-
},
|
|
1985
|
-
editForms(i) {
|
|
1986
|
-
this.$refs.editForm.init(i);
|
|
1987
|
-
},
|
|
1988
|
-
saveQueries(i) {
|
|
1989
|
-
this.queryParam = { ...i }, this.refresh();
|
|
1990
|
-
},
|
|
1991
|
-
add() {
|
|
1992
|
-
this.$refs.editForm.init(null);
|
|
1993
|
-
},
|
|
1994
|
-
del() {
|
|
1995
|
-
if (this.selectedRowKeys.length === 0) {
|
|
1996
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
1997
|
-
return;
|
|
1998
|
-
}
|
|
1999
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
2000
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
2001
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2002
|
-
showClose: !1,
|
|
2003
|
-
confirmButtonLoading: !1,
|
|
2004
|
-
cancelButtonLoading: !1,
|
|
2005
|
-
closeOnClickModal: !1,
|
|
2006
|
-
type: "warning",
|
|
2007
|
-
confirmButtonClass: "el-button--danger",
|
|
2008
|
-
customClass: "custom-alert",
|
|
2009
|
-
callback: () => {
|
|
2010
|
-
},
|
|
2011
|
-
beforeClose: (i, e, t) => {
|
|
2012
|
-
this.delHand(i, e, t);
|
|
2013
|
-
}
|
|
2014
|
-
});
|
|
2015
|
-
},
|
|
2016
|
-
delHand(i, e, t) {
|
|
2017
|
-
if (i !== "confirm") {
|
|
2018
|
-
t();
|
|
2019
|
-
return;
|
|
2020
|
-
}
|
|
2021
|
-
let s = [], a = H({
|
|
2022
|
-
ids: this.selectedRowKeys.join(",")
|
|
2023
|
-
}).then((l) => l);
|
|
2024
|
-
s.push(a), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
2025
|
-
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, t();
|
|
2026
|
-
const n = l.filter((r) => !r.success);
|
|
2027
|
-
n.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + n[0].message), this.refresh();
|
|
2028
|
-
});
|
|
2029
|
-
},
|
|
2030
|
-
doEvent(i) {
|
|
2031
|
-
let e = i.item.functionName;
|
|
2032
|
-
this[e] && this[e]();
|
|
2033
|
-
},
|
|
2034
|
-
handleOk() {
|
|
2035
|
-
this.$refs.table.refresh();
|
|
2036
|
-
},
|
|
2037
|
-
dictSwitch(i, e) {
|
|
2038
|
-
let t = this.$options.filters.dictData(e).filter((s) => s.code == i)[0];
|
|
2039
|
-
return t != null && t.colour ? t.colour : null;
|
|
2040
|
-
},
|
|
2041
|
-
enable() {
|
|
2042
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2043
|
-
this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
|
|
2044
|
-
return;
|
|
2045
|
-
}
|
|
2046
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2047
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
2048
|
-
return;
|
|
2049
|
-
}
|
|
2050
|
-
this.editStateCodes({ row: this.selectedRows[0] });
|
|
2051
|
-
},
|
|
2052
|
-
deactivated() {
|
|
2053
|
-
if (this.selectedRowKeys.length === 0) {
|
|
2054
|
-
this.$message.warning(this.$i18nt("gd.https.operateTip", "\u8BF7\u9009\u62E9\u8981\u64CD\u4F5C\u7684\u6570\u636E!"));
|
|
2055
|
-
return;
|
|
2056
|
-
}
|
|
2057
|
-
if (this.selectedRowKeys.length > 1) {
|
|
2058
|
-
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
2059
|
-
return;
|
|
2060
|
-
}
|
|
2061
|
-
this.editStateCodes({ row: this.selectedRows[0] });
|
|
2062
|
-
},
|
|
2063
|
-
editStateCodes({ column: i, row: e }) {
|
|
2064
|
-
if (e.dict_type == 1) {
|
|
2065
|
-
this.$message.error(this.$i18nt("gd.https.operableNoTip", "\u4E0D\u53EF\u64CD\u4F5C!"));
|
|
2066
|
-
return;
|
|
2067
|
-
}
|
|
2068
|
-
const t = e.statecodes != 1 ? this.$i18nt("gd.https.enableContent", "\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?") : this.$i18nt("gd.https.deactivateContent", "\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"), s = e.statecodes != 1 ? this.$i18nt("gd.https.enableOk", "\u786E\u8BA4\u505C\u7528") : this.$i18nt("gd.https.deactivateOk", "\u786E\u8BA4\u542F\u7528");
|
|
2069
|
-
this.$confirm(t, this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
2070
|
-
confirmButtonText: s,
|
|
2071
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
2072
|
-
showClose: !1,
|
|
2073
|
-
confirmButtonLoading: !1,
|
|
2074
|
-
cancelButtonLoading: !1,
|
|
2075
|
-
closeOnClickModal: !1,
|
|
2076
|
-
type: "warning",
|
|
2077
|
-
confirmButtonClass: "el-button--danger",
|
|
2078
|
-
customClass: "custom-alert",
|
|
2079
|
-
callback: () => {
|
|
2080
|
-
},
|
|
2081
|
-
beforeClose: (a, l, n) => {
|
|
2082
|
-
if (a !== "confirm") {
|
|
2083
|
-
n();
|
|
2084
|
-
return;
|
|
2085
|
-
}
|
|
2086
|
-
l.confirmButtonLoading = !0, l.cancelButtonLoading = !0, l.showCancelButton = !1, v({ id: e.id, stateCodes: e.statecodes == 1 ? 0 : 1 }).then((r) => {
|
|
2087
|
-
n(), l.confirmButtonLoading = !1, l.cancelButtonLoading = !1, l.showCancelButton = !0, r.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.handleOk()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message);
|
|
2088
|
-
});
|
|
2089
|
-
}
|
|
2090
|
-
});
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
};
|
|
2094
|
-
var se = function() {
|
|
2095
|
-
var e = this, t = e._self._c;
|
|
2096
|
-
return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, filtering: !0, height: e.getHeight }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "name", fn: function({ column: s, row: a }) {
|
|
2097
|
-
return [t("gd-tooltip", { attrs: { rowKey: "name", row: a, highlight: "" }, on: { click: e.editForms } })];
|
|
2098
|
-
} }, { key: "basicrecordtablename", fn: function({ column: s, row: a }) {
|
|
2099
|
-
return [t("gd-tooltip", { attrs: { rowKey: "basicrecordtable", row: a } })];
|
|
2100
|
-
} }, { key: "matchingrecordtablename", fn: function({ column: s, row: a }) {
|
|
2101
|
-
return [t("gd-tooltip", { attrs: { rowKey: "matchingrecordtable", row: a } })];
|
|
2102
|
-
} }, { key: "issave", fn: function(s) {
|
|
2103
|
-
return [e.dictSwitch(s.row.issave, "yes_or_no") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.issave, "yes_or_no") } }, [e._v(" " + e._s(e._f("dictType")("yes_or_no", s.row.issave)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("yes_or_no", s.row.issave)))])];
|
|
2104
|
-
} }, { key: "remark", fn: function({ column: s, row: a }) {
|
|
2105
|
-
return [t("gd-tooltip", { attrs: { rowKey: "remark", row: a } })];
|
|
2106
|
-
} }, { key: "stateCodes", fn: function(s) {
|
|
2107
|
-
return [e.dictSwitch(s.row.statecodes, "state_code") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
|
|
2108
|
-
} }, { key: "operator", fn: function() {
|
|
2109
|
-
return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.getTableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
2110
|
-
}, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: a }) {
|
|
2111
|
-
return [t("gd-table-queries-field", { attrs: { columns: e.getTableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: a }, on: { save: e.saveQueries } })];
|
|
2112
|
-
} }]) })], 1), t("editForm", { ref: "editForm", attrs: { table: e.record }, on: { ok: e.handleOk } })], 1);
|
|
2113
|
-
}, ae = [], le = /* @__PURE__ */ u(
|
|
2114
|
-
ie,
|
|
2115
|
-
se,
|
|
2116
|
-
ae,
|
|
2117
|
-
!1,
|
|
2118
|
-
null,
|
|
2119
|
-
"db17f1d6",
|
|
2120
|
-
null,
|
|
2121
|
-
null
|
|
2122
|
-
);
|
|
2123
|
-
const g = le.exports;
|
|
2124
|
-
g.install = function(i) {
|
|
2125
|
-
i.component(g.name, g);
|
|
2126
|
-
};
|
|
2127
|
-
export {
|
|
2128
|
-
U as F,
|
|
2129
|
-
g as G,
|
|
2130
|
-
fe as a,
|
|
2131
|
-
oe as b,
|
|
2132
|
-
C as c,
|
|
2133
|
-
ue as d,
|
|
2134
|
-
me as e,
|
|
2135
|
-
ge as f,
|
|
2136
|
-
pe as g,
|
|
2137
|
-
de as h,
|
|
2138
|
-
ce as i,
|
|
2139
|
-
be as j,
|
|
2140
|
-
ye as k,
|
|
2141
|
-
he as s
|
|
2142
|
-
};
|