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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";const g=require("./components.chartbi.e9459775.js"),h=require("./http.timersmanage.6e894942.js"),E=require("./utils.mixins.js.750ca50e.js"),q=require("./utils.util.js.c0ba699b.js"),H={data(){return{tableColumns:[{type:"expand",width:"60",fixed:!0,slotType:"tableExpand"},{transKey:"gd.task.jobId",prop:"jobId",width:"160",label:"\u4F5C\u4E1A\u7F16\u53F7",align:"left",type:"slot",slotType:"jobId"},{label:"\u7EC4\u540D\u79F0",prop:"groupname",align:"left",transKey:"gd.task.groupName"},{label:"\u7C7B\u578B",align:"left",prop:"jobType",width:120,type:"slot",slotType:"jobType",transKey:"gd.task.type"},{label:"\u63CF\u8FF0",align:"left",prop:"description",type:"slot",slotType:"description",with:200,transKey:"gd.task.description"},{label:"\u6267\u884C\u65B9\u5F0F",align:"left",prop:"concurrent",type:"slot",slotType:"concurrent",transKey:"gd.task.concurrent"},{label:"\u521B\u5EFA\u7C7B\u578B",prop:"createType",align:"left",type:"slot",slotType:"createType",transKey:"gd.task.createType"},{label:"\u989D\u5916\u6570\u636E",align:"left",prop:"properties",type:"slot",slotType:"properties",with:200,transKey:"gd.task.properties"},{label:"\u66F4\u65B0\u65F6\u95F4",align:"center",prop:"updatedTime",type:"slot",slotType:"updatedTime",width:160,transKey:"gd.task.updatedTime"},{label:"\u64CD\u4F5C",width:200,prop:"action",type:"slot",slotType:"action",align:"left",transKey:"gd.task.btn.handle"}],innerColumns:[{label:"\u89E6\u53D1\u5668\u7F16\u53F7",align:"left",prop:"triggerId",fixed:"left",width:160,type:"slot",slotType:"triggerId",transKey:"gd.task.triggerId"},{label:"\u7C7B\u578B",prop:"triggerType",align:"left",type:"slot",slotType:"triggerType",width:210,transKey:"gd.task.type"},{label:"\u53C2\u6570",align:"left",prop:"args",type:"slot",slotType:"args",width:230,transKey:"gd.task.args"},{label:"\u63CF\u8FF0",align:"left",ellipsis:!0,prop:"description",type:"slot",slotType:"description",width:200,transKey:"gd.task.description"},{label:"\u72B6\u6001",align:"left",ellipsis:!0,prop:"status",type:"slot",slotType:"status",width:120,transKey:"gd.task.status"},{label:"\u8D77\u59CB\u65F6\u95F4",prop:"starttime",align:"center",ellipsis:!0,transKey:"gd.task.startTime",width:200},{label:"\u7ED3\u675F\u65F6\u95F4",prop:"endtime",align:"center",ellipsis:!0,transKey:"gd.task.endTime",width:200},{label:"\u6700\u8FD1\u8FD0\u884C\u65F6\u95F4",prop:"lastruntime",align:"center",ellipsis:!0,transKey:"gd.task.lastRunTime",width:200},{label:"\u4E0B\u4E00\u6B21\u8FD0\u884C\u65F6\u95F4",prop:"nextruntime",align:"center",ellipsis:!0,transKey:"gd.task.nextRunTime",width:200},{label:"\u89E6\u53D1\u6B21\u6570",align:"left",ellipsis:!0,prop:"numberofruns",transKey:"gd.task.numberOfRuns"},{label:"\u6700\u5927\u89E6\u53D1\u6B21\u6570",align:"left",ellipsis:!0,prop:"maxnumberofruns",width:160,transKey:"gd.task.maxNumberOfRuns"},{label:"\u51FA\u9519\u6B21\u6570",align:"left",ellipsis:!0,prop:"numberoferrors",width:100,transKey:"gd.task.numberOfErrors"},{label:"\u6700\u5927\u51FA\u9519\u6B21\u6570",align:"left",ellipsis:!0,prop:"maxnumberoferrors",width:160,transKey:"gd.task.maxNumberOfErrors"},{label:"\u91CD\u8BD5\u6B21\u6570",align:"left",ellipsis:!0,prop:"numRetries",width:100,transKey:"gd.task.numRetries"},{label:"\u91CD\u8BD5\u95F4\u9694ms",align:"left",ellipsis:!0,prop:"retrytimeout",width:160,transKey:"gd.task.retryTimeout"},{label:"\u662F\u7ACB\u5373\u542F\u52A8",align:"left",ellipsis:!0,prop:"startNow",type:"slot",slotType:"startNow",width:140,transKey:"gd.task.startNow"},{label:"\u662F\u5426\u542F\u52A8\u65F6\u6267\u884C\u4E00\u6B21",align:"left",ellipsis:!0,prop:"runOnStart",type:"slot",slotType:"runOnStart",width:170,transKey:"gd.task.runOnStart"},{label:"\u662F\u5426\u91CD\u7F6E\u89E6\u53D1\u6B21\u6570",align:"left",ellipsis:!0,prop:"resetOnlyOnce",type:"slot",slotType:"resetOnlyOnce",width:170,transKey:"gd.task.resetOnlyOnce"},{label:"\u66F4\u65B0\u65F6\u95F4",align:"center",ellipsis:!0,prop:"updatedtime",width:200,transKey:"gd.task.updatedTime"},{label:"\u64CD\u4F5C",width:220,fixed:"right",ellipsis:!0,prop:"action",type:"slot",slotType:"action",align:"left",transKey:"gd.btn.handle"}],tableButtons:[{displayName:"\u589E\u52A0\u4F5C\u4E1A",functionName:"add",show:!0,transKey:"gd.task.addJob",icon:"el-icon-plus",name:"sysTimers:add"},{displayName:"\u542F\u52A8\u6240\u6709\u4F5C\u4E1A",functionName:"firingTask",show:!0,transKey:"gd.task.launchAllTask",icon:"el-icon-video-play",name:"sysTimers:start"},{displayName:"\u6682\u505C\u6240\u6709\u4F5C\u4E1A",functionName:"stopTask",show:!0,transKey:"gd.task.stopAllTask",icon:"el-icon-video-pause",btnType:"danger",name:"sysTimers:stop"},{displayName:"\u5F3A\u5236\u4F5C\u4E1A",functionName:"force",show:!0,transKey:"gd.task.forceJob",icon:"exclamation-circle",btnType:"danger",name:"sysTimers:force",children:[{transKey:"\u5F3A\u5236\u5524\u9192\u4F5C\u4E1A\u8C03\u5EA6\u5668",functionName:"wakeJob",show:!0,transKey:"gd.task.wakeJob",icon:"el-icon-bell",key:1},{transKey:"\u5F3A\u5236\u89E6\u53D1\u6240\u6709\u4F5C\u4E1A\u6301\u4E45\u5316",functionName:"triggerJob",show:!0,icon:"block",btnType:"danger",key:2,transKey:"gd.task.triggerJob"}]},{displayName:"\u96C6\u7FA4\u63A7\u5236",functionName:"colony",show:!0,icon:"el-icon-office-building",transKey:"gd.task.colony",name:"sysTimers:colony"}],tableQueries:[{transKey:"gd.task.jobId",effectType:"input",prop:"jobId",label:"\u4F5C\u4E1A\u7F16\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.task.description",effectType:"input",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}]}}};const Y={props:{columns:{type:Array,default:()=>[]},size:{type:String,default:""}},data(){return{jobId:"",customSize:"",innerTableLoadData:a=>h.sysJobTriggerList({JobId:this.jobId}).then(e=>{let t=e.data.map(s=>(s.args=s.args.replace("[","").replace("]",""),s));return{pageNo:1,pageSize:200,totalRows:t.length,rows:t}}),detail:{}}},methods:{changTableSize(a){this.customSize=a},editTriggers(a){this.$emit("editTriggers",Object.assign(a,{uuid:this.detail.uuid}))},del(a,e){this.$emit("del",Object.assign(a,{uuid:this.detail.uuid}),e)},triggersOperate(a,e,t){this.$emit("triggersOperate",a,Object.assign(e,{uuid:this.detail.uuid}),t)},refresh(a){this.detail=a,this.jobId=a.jobid,this.$refs.table.refresh(),this.customSize=this.size},dictSwitch(a,e){let t=this.$options.filters.dictData(e);t=t.length==0?this.dictList:t;let s=t.filter(r=>r.code==a)[0];return s!==void 0&&s.colour?s.colour:null}},mounted(){this.customSize=this.tableSize}};var W=function(){var e=this,t=e._self._c;return t("gd-tables",{ref:"table",staticClass:"inner-table",attrs:{dataSource:e.innerTableLoadData,columns:e.columns,showPagination:!1,size:e.size,initialLoading:!1,rowKey:s=>s.triggerId},on:{changTableSize:e.changTableSize},scopedSlots:e._u([{key:"triggerId",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"triggerid",row:s,highlight:""},on:{click:function(r){return e.editTriggers({row:s})}}})]}},{key:"triggerType",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"triggertype",row:s}})]}},{key:"args",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"args",row:s}})]}},{key:"description",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"description",row:s}})]}},{key:"status",fn:function({row:s}){return[e.dictSwitch(s.status,"table_timers_status")?t("el-tag",{class:[`tag-${e.dictSwitch(s.status,"table_timers_status")}`],attrs:{color:e.dictSwitch(s.status,"table_timers_status")}},[e._v(" "+e._s(e._f("dictType")("table_timers_status",s.status))+" ")]):t("span",[e._v(e._s(e._f("dictType")("table_timers_status",s.status)))])]}},{key:"startNow",fn:function({row:s}){return[s.startnow?t("el-tag",{staticClass:"tag-green",attrs:{color:"green"}},[e._v(e._s(e.$i18nt("gd.state.yes","\u662F")))]):t("el-tag",{staticClass:"tag-red",attrs:{color:"red"}},[e._v(e._s(e.$i18nt("gd.state.no","\u5426")))])]}},{key:"runOnStart",fn:function({row:s}){return[s.runonstart?t("el-tag",{staticClass:"tag-green",attrs:{color:"green"}},[e._v(e._s(e.$i18nt("gd.state.yes","\u662F")))]):t("el-tag",{staticClass:"tag-red",attrs:{color:"red"}},[e._v(e._s(e.$i18nt("gd.state.no","\u5426")))])]}},{key:"resetOnlyOnce",fn:function({row:s}){return[s.resetonlyonce?t("el-tag",{staticClass:"tag-green",attrs:{color:"green"}},[e._v(e._s(e.$i18nt("gd.state.yes","\u662F")))]):t("el-tag",{staticClass:"tag-red",attrs:{color:"red"}},[e._v(e._s(e.$i18nt("gd.state.no","\u5426")))])]}},{key:"action",fn:function(s){return[e.$hasPerm("sysTimersTrigger:edit")?t("el-button",{staticClass:"active-color",attrs:{type:"text",size:e.customSize},on:{click:function(r){return e.editTriggers(s)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")]):e._e(),e.$hasPerm("sysTimersTrigger:delete")?t("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:e.customSize},on:{click:function(r){return e.del(s.row,2)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.del","\u5220\u9664"))+" ")]):e._e(),e.$hasPerm("sysTimersTrigger:start")||e.$hasPerm("sysTimersTrigger:stop")?t("el-dropdown",[t("span",{staticClass:"el-dropdown-link active-color",class:`el-button--${e.customSize}`},[e._v(" "+e._s(e.$i18nt("gd.btn.more","\u66F4\u591A"))+" "),t("i",{staticClass:"el-icon-arrow-down"})]),e.$hasPerm("sysTimersTrigger:start")?t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",[t("span",{class:`el-button--${e.customSize}`,on:{click:function(r){return e.triggersOperate(1,s.row,s.index)}}},[e._v(" "+e._s(e.$i18nt("gd.task.launchTrigger","\u542F\u52A8\u89E6\u53D1\u5668"))+" ")])]),e.$hasPerm("sysTimersTrigger:stop")?t("el-dropdown-item",[t("span",{class:`el-button--${e.customSize}`,on:{click:function(r){return e.triggersOperate(2,s.row,s.index)}}},[e._v(" "+e._s(e.$i18nt("gd.task.stopTrigger","\u6682\u505C\u89E6\u53D1\u5668"))+" ")])]):e._e()],1):e._e()],1):e._e()]}}])})},G=[],U=g.normalizeComponent(Y,W,G,!1,null,"c6249048",null,null);const Q=U.exports;const X={name:"GdTimers",props:{height:{type:Number,default:100}},mixins:[H,E.tablesFilter],components:{editTrigger:()=>Promise.resolve().then(()=>le),editForm:()=>Promise.resolve().then(()=>ge),colony:()=>Promise.resolve().then(()=>ke),childRenTable:Q},data(){return{uuids:"",queryParam:{},sourceData:[],selectedRowKeys:[],currentExpandRow:[],sourceData:[],customSize:this.tableSize,loadData:a=>h.sysJobDetailPage(Object.assign(a,this.queryParam)).then(e=>{let t=[];return e.data.rows.forEach(s=>{t.push(Object.assign(s,{loading:!1,uuid:q.uuid(8)}))}),this.sourceData=t,this.expandedRowKeys=[],Object.assign({...e.data},{rows:t})})}},computed:{getHeight(){return this.height},...g.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{changTableSize(a){this.customSize=a},editForm(a){this.$refs.editForm.init(a)},addTrigger(a,e){this.$refs.editTrigger.init(null,a.jobid)},onExpandChange(a){this.currentExpandRow=a.expanded.map(e=>e.uuid),this.updataTriggerTableData(a.val,0)},dictSwitch(a,e){let t=this.$options.filters.dictData(e);t=t.length==0?this.dictList:t;let s=t.filter(r=>r.code==a)[0];return s!=null&&s.colour?s.colour:null},okTrigger(a){this.updataTriggerTableData(a)},editTriggers(a){this.uuids=a.uuid,this.$refs.editTrigger.init(a.row,a.row.jobid)},refresh(){this.currentExpandRow=[],this.$refs.table.refresh()},doEvent(a){let e=a.item.functionName,t=a.key?a.key:a.item;this[e](t)},add(){this.$refs.editForm.init(null)},del(a,e,t){let s=this;this.$confirm(s.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E\u7684\u6240\u6709\u8BB0\u5F55?"),s.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",confirmButtonText:s.$i18nt("gd.https.delOk","\u786E\u8BA4\u5220\u9664"),cancelButtonText:s.$i18nt("gd.https.delCancel","\u53D6\u6D88"),beforeClose:(r,i,o)=>{if(r!=="confirm"){o();return}i.confirmButtonLoading=!0,i.cancelButtonLoading=!0,i.showCancelButton=!1;let l=e==1?h.sysJobDeleteJobDetail:h.sysJobDeleteJobTrigger,d=e==1?{jobId:a.jobid}:{jobId:a.jobid,triggerId:a.triggerid};l(d).then(_=>{if(o(),i.confirmButtonLoading=!1,i.cancelButtonLoading=!1,i.showCancelButton=!0,!_.success){s.$message.error(s.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25: ")+_.message);return}s.$message.success(s.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),e==1?s.refresh():this.updataTriggerTableData(a)}).catch(_=>{s.$message.error(s.$i18nt("gd.error.error","\u9519\u8BEF")+_.message)})}})},firingTask(){let a=this;this.$confirm(a.$i18nt("gd.task.launchAllTaskTip","\u662F\u5426\u7ACB\u5373\u542F\u52A8\u6240\u6709\u4F5C\u4E1A?"),a.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",confirmButtonText:a.$i18nt("gd.task.launch","\u7ACB\u5373\u542F\u52A8"),cancelButtonText:a.$i18nt("gd.https.delCancel","\u53D6\u6D88"),beforeClose:(e,t,s)=>{if(e!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,h.sysJobStartAllJob().then(r=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,r.success?(a.$message.success(a.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a.refresh()):a.$message.error(a.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message)}).catch(r=>{a.$message.error(a.$i18nt("gd.error.error","\u9519\u8BEF")+r.message)})}})},stopTask(){let a=this;this.$confirm(a.$i18nt("gd.task.stopAllTaskTip","\u662F\u5426\u7ACB\u5373\u6682\u505C\u6240\u6709\u4F5C\u4E1A?"),a.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",confirmButtonText:a.$i18nt("gd.task.stop","\u7ACB\u5373\u505C\u6B62"),cancelButtonText:a.$i18nt("gd.https.delCancel","\u53D6\u6D88"),beforeClose:(e,t,s)=>{if(e!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,h.sysJobPauseAllJob().then(r=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,r.success?(a.$message.success(a.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a.refresh()):a.$message.error(a.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message)}).catch(r=>{a.$message.error(a.$i18nt("gd.error.error","\u9519\u8BEF")+r.message)})}})},wakeJob(){let a=this;this.$confirm(a.$i18nt("gd.task.wakeJobTip","\u662F\u5426\u5F3A\u5236\u5524\u9192\u4F5C\u4E1A\u8C03\u5EA6\u5668?"),a.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",confirmButtonText:a.$i18nt("gd.task.wake","\u7ACB\u5373\u5524\u9192"),cancelButtonText:a.$i18nt("gd.https.delCancel","\u53D6\u6D88"),beforeClose:(e,t,s)=>{if(e!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,h.sysJobCancelSleep().then(r=>{if(s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,!r.success){a.$message.error(a.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message);return}a.$message.success(a.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a.refresh()}).catch(r=>{a.$message.error(a.$i18nt("gd.error.error","\u9519\u8BEF")+r.message)})}})},triggerJob(){let a=this;this.$confirm(a.$i18nt("gd.task.triggerJobTip","\u662F\u5426\u5F3A\u5236\u89E6\u53D1\u6240\u6709\u4F5C\u4E1A\u6301\u4E45\u5316?"),a.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",confirmButtonText:a.$i18nt("gd.task.trigger","\u7ACB\u5373\u89E6\u53D1"),cancelButtonText:a.$i18nt("gd.https.delCancel","\u53D6\u6D88"),beforeClose:(e,t,s)=>{if(e!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,h.sysJobPersistAll().then(r=>{if(s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,!r.success){a.$message.error(a.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+r.message);return}a.$message.success(a.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a.refresh()}).catch(r=>{a.$message.error(a.$i18nt("gd.error.error","\u9519\u8BEF")+r.message)})}})},jobOperate(a,e){let t=this;this.$confirm(a==1?t.$i18nt("gd.task.launchTaskTip","\u662F\u5426\u7ACB\u5373\u542F\u52A8\u6B64\u4F5C\u4E1A?"):t.$i18nt("gd.task.stopTaskTip","\u662F\u5426\u7ACB\u5373\u6682\u505C\u6B64\u4F5C\u4E1A?"),t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",confirmButtonText:a==1?t.$i18nt("gd.task.launch","\u7ACB\u5373\u542F\u52A8"):t.$i18nt("gd.task.stop","\u7ACB\u5373\u505C\u6B62"),cancelButtonText:t.$i18nt("gd.https.delCancel","\u53D6\u6D88"),beforeClose:(s,r,i)=>{if(s!=="confirm"){i();return}r.confirmButtonLoading=!0,r.cancelButtonLoading=!0,r.showCancelButton=!1,(a==1?h.sysJobStartJob:h.sysJobPauseJob)({jobId:e.jobid}).then(l=>{if(i(),r.confirmButtonLoading=!1,r.cancelButtonLoading=!1,r.showCancelButton=!0,!l.success){t.$message.error(t.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message);return}t.$message.success(t.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),t.refresh()}).catch(l=>{t.$message.error(t.$i18nt("gd.error.error","\u9519\u8BEF")+l.message)})}})},triggersOperate(a,e,t){let s=this;this.$confirm(a==1?s.$i18nt("gd.task.launchTriggerTip","\u662F\u5426\u7ACB\u5373\u542F\u52A8\u6B64\u89E6\u53D1\u5668?"):s.$i18nt("gd.task.stopTriggerTip","\u662F\u5426\u7ACB\u5373\u505C\u6B62\u6B64\u89E6\u53D1\u5668?"),s.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",confirmButtonText:a==1?s.$i18nt("gd.task.launch","\u7ACB\u5373\u542F\u52A8"):s.$i18nt("gd.task.stop","\u7ACB\u5373\u505C\u6B62"),cancelButtonText:s.$i18nt("gd.https.delCancel","\u53D6\u6D88"),beforeClose:(r,i,o)=>{if(r!=="confirm"){o();return}i.confirmButtonLoading=!0,i.cancelButtonLoading=!0,i.showCancelButton=!1,(a==1?h.sysJobStartTrigger:h.sysJobPauseTrigger)({jobId:e.jobid,triggerId:e.triggerid}).then(d=>{if(o(),i.confirmButtonLoading=!1,i.cancelButtonLoading=!1,i.showCancelButton=!0,!d.success){s.$message.error(s.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message);return}s.$message.success(s.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.updataTriggerTableData(e)}).catch(d=>{s.$message.error(s.$i18nt("gd.error.error","\u9519\u8BEF")+d.message)})}})},colony(){this.$refs.colony.open()},force(a){a==1?this.wakeJob():this.triggerJob()},jobRun(a){let e=this;this.$confirm(e.$i18nt("gd.task.jobRunTip","\u662F\u5426\u7ACB\u5373\u6267\u884C?"),e.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",confirmButtonText:e.$i18nt("gd.task.jobRun","\u7ACB\u5373\u6267\u884C"),cancelButtonText:e.$i18nt("gd.https.delCancel","\u53D6\u6D88"),beforeClose:(t,s,r)=>{if(t!=="confirm"){r();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,h.sysJobRunJob({jobId:a.jobid}).then(i=>{if(r(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,!i.success){e.$message.error(e.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message);return}e.$message.success(e.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),e.refresh()}).catch(i=>{e.$message.error(e.$i18nt("gd.error.error","\u9519\u8BEF")+i.message)})}})},saveQueries(a){this.queryParam=a,this.refresh()},updataTriggerTableData(a,e=1500){this.$nextTick(()=>{setTimeout(()=>{const t=a.uuid!==void 0?a.uuid:this.uuids;this.uuids=t,this.$refs[`${a.jobid}InnerTableRef${t}`]&&this.$refs[`${a.jobid}InnerTableRef${t}`].refresh(a)},e)})}},mounted(){this.customSize=this.tableSize}};var Z=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list gd-timers",staticStyle:{padding:"0px"}},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0,rowKey:"uuid",tableExpand:e.currentExpandRow},on:{expandChange:e.onExpandChange,changTableSize:e.changTableSize},scopedSlots:e._u([{key:"jobId",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"jobid",row:s,highlight:""},on:{click:e.editForm}})]}},{key:"jobType",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"jobtype",row:s}})]}},{key:"description",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"description",row:s}})]}},{key:"concurrent",fn:function({row:s}){return[s.concurrent?t("el-tag",{staticClass:"tag-green",attrs:{color:"green"}},[e._v(e._s(e.$i18nt("gd.task.parallel","\u5E76\u884C")))]):t("el-tag",{staticClass:"tag-orange",attrs:{color:"orange"}},[e._v(e._s(e.$i18nt("gd.task.serial","serial")))])]}},{key:"createType",fn:function({row:s}){return[s.createtype===0?t("el-tag",{staticClass:"tag-grey",attrs:{color:"grey"}},[e._v(e._s(e.$i18nt("gd.task.builtIn","\u5185\u7F6E")))]):s.createtype===1?t("el-tag",{staticClass:"tag-red",attrs:{color:"red"}},[e._v(e._s(e.$i18nt("gd.task.script","script")))]):t("el-tag",{staticClass:"tag-green",attrs:{color:"green"}},[e._v(e._s(e.$i18nt("gd.task.httpRequest","Http\u8BF7\u6C42")))])]}},{key:"properties",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"properties",row:s}})]}},{key:"updatedTime",fn:function({row:s}){return[t("gd-tooltip",{attrs:{rowKey:"updatedtime",row:s}})]}},{key:"action",fn:function(s){return[e.$hasPerm("sysTimers:edit")?t("el-button",{staticClass:"active-color",attrs:{type:"text",size:e.customSize},on:{click:function(r){return e.editForm(s.row)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")]):e._e(),e.$hasPerm("sysTimers:delete")?t("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:e.customSize},on:{click:function(r){return e.del(s.row,1,s.row)}}},[e._v(" "+e._s(e.$i18nt("gd.btn.del","\u5220\u9664"))+" ")]):e._e(),e.$hasPerm("sysTimersTrigger:add")||e.$hasPerm("sysTimers:start")||e.$hasPerm("sysTimers:stop")?t("el-dropdown",[t("span",{staticClass:"el-dropdown-link active-color",class:`el-button--${e.customSize}`},[e._v(" "+e._s(e.$i18nt("gd.btn.more","\u66F4\u591A"))+" "),t("i",{staticClass:"el-icon-arrow-down"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.$hasPerm("sysTimersTrigger:add")?t("el-dropdown-item",{attrs:{command:"addTrigger"},nativeOn:{click:function(r){return e.addTrigger(s.row,s.index)}}},[t("span",{class:`el-button--${e.customSize}`},[e._v(e._s(e.$i18nt("gd.task.addTrigger","\u589E\u52A0\u89E6\u53D1\u5668")))])]):e._e(),e.$hasPerm("sysTimers:start")?t("el-dropdown-item",{nativeOn:{click:function(r){return e.jobOperate(1,s.row)}}},[t("span",{class:`el-button--${e.customSize}`},[e._v(" "+e._s(e.$i18nt("gd.task.launchTask","\u542F\u52A8\u4F5C\u4E1A"))+" ")])]):e._e(),e.$hasPerm("sysTimers:stop")?t("el-dropdown-item",{nativeOn:{click:function(r){return e.jobOperate(2,s.row)}}},[t("span",{class:`el-button--${e.customSize}`},[e._v(" "+e._s(e.$i18nt("gd.task.stopTask","\u6682\u505C\u4F5C\u4E1A"))+" ")])]):e._e(),e.$hasPerm("sysTimers:edit")?t("el-dropdown-item",{nativeOn:{click:function(r){return e.jobRun(s.row)}}},[t("span",{class:`el-button--${e.customSize}`},[e._v(" "+e._s(e.$i18nt("gd.task.jobRun","\u7ACB\u5373\u6267\u884C"))+" ")])]):e._e()],1)],1):e._e()]}},{key:"tableExpand",fn:function(s){return[t("childRenTable",{ref:`${s.row.jobid}InnerTableRef${s.row.uuid}`,attrs:{columns:e.innerColumns,size:e.tableSize},on:{editTriggers:e.editTriggers,del:e.del,triggersOperate:e.triggersOperate}})]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.task.jobId","\u4F5C\u4E1A\u7F16\u53F7"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.jobId,callback:function(s){e.$set(e.queryParam,"jobId",s)},expression:"queryParam.jobId"}}),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:r}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:s,visible:r},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",on:{ok:e.refresh}}),t("editTrigger",{ref:"editTrigger",on:{ok:e.okTrigger}}),t("colony",{ref:"colony"})],1)},ee=[],te=g.normalizeComponent(X,Z,ee,!1,null,"80809a6e",null,null);const B=te.exports;B.install=function(a){a.component(B.name,B)};const ae={data(){return{fullscreen:!1,width:"70%",confirmLoading:!1,visible:!1,title:"\u89E6\u53D1\u5668",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,keyI18n:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,triggerType:"Furion.Schedule.PeriodTrigger",formData:{},detail:{}}},components:{cronTab:()=>Promise.resolve().then(()=>Te)},computed:{macroData(){return[{key:"@secondly",description:"\u6BCF\u79D2 .0000000",keyI18n:"gd.task.secondly"},{key:"@minutely",description:"\u6BCF\u5206\u949F 00",keyI18n:"gd.task.minutely"},{key:"@hourly",description:"\u6BCF\u5C0F\u65F6 00:00",keyI18n:"gd.task.hourly"},{key:"@daily",description:"\u6BCF\u5929 00:00:00",keyI18n:"gd.task.daily"},{key:"@monthly",description:"\u6BCF\u6708 1 \u53F7 00:00:00",keyI18n:"gd.task.monthlyM"},{key:"@weekly",description:"\u6BCF\u5468\u65E5 00:00:00",keyI18n:"gd.task.weekly"},{key:"@yearly",description:"\u6BCF\u5E74 1 \u6708 1 \u53F7 00:00:00",keyI18n:"gd.task.yearly"},{key:"@workday",description:"\u6BCF\u5468\u4E00\u81F3\u5468\u4E94 00:00:00",keyI18n:"gd.task.workday"}]},endOptions(){let a=this.disabledEnd;return{disabledDate(e){return a(e,"end")}}},startOptions(){let a=this.disabledEnd;return{disabledDate(e){return a(e)}}},requiredCron(){return this.triggerType!="Furion.Schedule.PeriodTrigger"},requiredPeriod(){return this.triggerType=="Furion.Schedule.PeriodTrigger"}},methods:{disabledEnd(a,e="start"){const t=e==="start"?this.formData.endtime:this.formData.starttime;if(!t)return!1;const s=e==="start"?"00:00:00":"23:59:59",r=this.getDictionary("yyyy-MM-dd HH:mm:ss",t),i=this.getDictionary("yyyy-MM-dd",a),o=new Date(r).getTime(),l=new Date(`${i} ${s}`).getTime();return e==="start"?!(o>=l):!(o<=l)},closed(){this.fullscreen=!1,this.visible=!1},init(a,e){this.fullscreen=!1,this.confirmLoading=!!a,this.visible=!0,this.type=a?2:1,this.title=a?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E"),this.triggerType=a?a.triggertype:"Furion.Schedule.PeriodTrigger",this.sysViewButtons=this.sysViewButtons.map(s=>(s.name=a?"sysTimersTrigger:add":"sysTimersTrigger:edit",s));let t={jobid:e,retrytimeout:1e3,startnow:!0,runonstart:!0,resetonlyonce:!0,triggertype:this.triggerType,description:"",maxnumberofruns:0,maxnumberoferrors:0,numretries:0,triggerid:"",cronvalue:"",starttime:"",endtime:"",periodvalue:""};if(a){this.detail={...a};let s=a.args.replace("[","").replace("]","");Object.assign(t,{jobid:e,retrytimeout:a.retrytimeout,startnow:a.startnow,runonstart:a.runonstart,resetonlyonce:a.resetonlyonce,triggertype:this.triggerType,description:a.description,maxnumberofruns:a.maxnumberofruns,maxnumberoferrors:a.maxnumberoferrors,numretries:a.numretries,triggerid:a.triggerid,starttime:a.starttime,endtime:a.endtime,cronvalue:this.triggerType=="Furion.Schedule.PeriodTrigger"?"":this.getCronValue(s),periodvalue:this.triggerType=="Furion.Schedule.PeriodTrigger"?s:""})}this.formData=t,this.$nextTick(()=>{setTimeout(()=>{this.confirmLoading=!1,this.$refs.formRef.resetFields()},300)})},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(a){this.confirmLoading||this.handleSubmit()},getCronValue(a){let e=a.split(",");return e.length!=2?a:e[0].replace(new RegExp('"',"gm"),"").trim()},triggerTypeChange(a){this.triggerType=a},selCronTab(){this.$refs.cronTab.init(this.formData)},selMacroData(a){console.log("selMacroData: ",a),this.formData.cronvalue=a},handleSubmit(){this.$refs.formRef.validate(a=>{if(a){let e="";if(this.triggerType=="Furion.Schedule.PeriodTrigger")e=this.formData.periodvalue+"";else{let t=this.formData.cronvalue.trim(),s=-1;t.startsWith("@")?s=0:t.split(" ").length==6?s=2:s=3,e=`"${t}",${s}`}this.type==1?this.add(Object.assign(this.formData,{args:e})):this.edit(Object.assign(this.formData,{args:e}))}})},add(a){this.confirmLoading=!0,h.sysJobAddJobTrigger(a).then(e=>{e.success?setTimeout(()=>{this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.handleCancel(),this.$emit("ok",a)},1500):(this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+e.message),this.confirmLoading=!1)})},edit(a){this.confirmLoading=!0,h.sysJobUpdateJobTrigger(Object.assign({...this.detail},a)).then(e=>{e.success?setTimeout(()=>{this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.handleCancel(),this.$emit("ok",a)},1500):(this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+e.message),this.confirmLoading=!1)})},handleCancel(){this.confirmLoading=!1,this.visible=!1,this.$refs.formRef.resetFields()},crontabFill(a){this.formData.cronvalue=a},getDictionary(a,e){return this.$options.filters.formatTime(e,a)}}};var se=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen,close:e.closed},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("el-form",{ref:"formRef",attrs:{model:e.formData},nativeOn:{submit:function(s){s.preventDefault()}}},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{prop:"triggerid",label:e.$i18nt("gd.task.triggerId","\u89E6\u53D1\u5668\u7F16\u53F7"),"label-width":"130px",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}},[t("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:e.type!=1},model:{value:e.formData.triggerid,callback:function(s){e.$set(e.formData,"triggerid",s)},expression:"formData.triggerid"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.type","\u7C7B\u578B"),"label-width":"130px",prop:"triggertype",rules:[{required:!0,message:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}},[t("el-radio-group",{on:{change:e.triggerTypeChange},model:{value:e.formData.triggertype,callback:function(s){e.$set(e.formData,"triggertype",s)},expression:"formData.triggertype"}},[t("el-radio",{attrs:{label:"Furion.Schedule.PeriodTrigger"}},[e._v(" "+e._s(e.$i18nt("gd.task.interval","\u95F4\u9694"))+" ")]),t("el-radio",{attrs:{label:"Furion.Schedule.CronTrigger"}},[e._v(" "+e._s(e.$i18nt("gd.task.cronExpression","Cron\u8868\u8FBE\u5F0F"))+" ")])],1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{directives:[{name:"show",rawName:"v-show",value:e.triggerType=="Furion.Schedule.PeriodTrigger",expression:"triggerType == 'Furion.Schedule.PeriodTrigger'"}],attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.intervalTime","\u95F4\u9694\u65F6\u95F4(ms)"),"label-width":"130px",prop:"periodvalue",rules:[{required:e.requiredPeriod,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[t("el-input",{staticStyle:{width:"100%"},attrs:{type:"number",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),min:100,step:100},model:{value:e.formData.periodvalue,callback:function(s){e.$set(e.formData,"periodvalue",s)},expression:"formData.periodvalue"}})],1)],1),t("el-col",{directives:[{name:"show",rawName:"v-show",value:e.triggerType=="Furion.Schedule.CronTrigger",expression:"triggerType == 'Furion.Schedule.CronTrigger'"}],attrs:{md:24,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.cronExpression","Cron\u8868\u8FBE\u5F0F"),"label-width":"130px",prop:"cronvalue",rules:[{required:e.requiredCron,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[t("div",{staticClass:"cao_about"},[t("el-input",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.formData.cronvalue,callback:function(s){e.$set(e.formData,"cronvalue",s)},expression:"formData.cronvalue"}}),t("div",{staticClass:"cao_setting"},[t("el-dropdown",{on:{command:e.selMacroData}},[t("a",{staticClass:"ant-dropdown-link",attrs:{href:"javascript:;"}},[e._v("Macro")]),t("el-dropdown-menu",{attrs:{slot:"dropdown",placement:"bottom"},slot:"dropdown"},e._l(e.macroData,function(s){return t("el-dropdown-item",{key:s.key,staticStyle:{width:"400px"},attrs:{command:s.key}},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:9,sm:7}},[e._v(e._s(s.key))]),t("el-col",{attrs:{md:15,sm:17}},[e._v(" "+e._s(s.keyI18n?e.$i18nt(s.keyI18n,0,s.description):s.description)+" ")])],1)],1)}),1)],1),t("el-divider",{attrs:{direction:"vertical"}}),t("a",{staticClass:"ant-dropdown-link",attrs:{href:"javascript:;"},on:{click:e.selCronTab}},[e._v(" "+e._s(e.$i18nt("gd.task.cronExpression","Cron\u8868\u8FBE\u5F0F"))+" ")])],1)],1)])],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.startTime","\u5F00\u59CB\u65F6\u95F4"),"label-width":"130px"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.startOptions},model:{value:e.formData.starttime,callback:function(s){e.$set(e.formData,"starttime",s)},expression:"formData.starttime"}})],1)],1),t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.endTime","\u7ED3\u675F\u65F6\u95F4"),"label-width":"130px"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.endOptions},model:{value:e.formData.endtime,callback:function(s){e.$set(e.formData,"endtime",s)},expression:"formData.endtime"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.maxNumberOfRuns"),"label-width":"130px",prop:"maxnumberofruns",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}},[t("el-input",{staticStyle:{width:"100%"},attrs:{min:0,type:"number",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.formData.maxnumberofruns,callback:function(s){e.$set(e.formData,"maxnumberofruns",s)},expression:"formData.maxnumberofruns"}})],1)],1),t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.maxNumberOfErrors","\u6700\u5927\u51FA\u9519\u6B21\u6570"),"label-width":"130px",prop:"maxnumberoferrors",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}},[t("el-input",{staticStyle:{width:"100%"},attrs:{min:0,type:"number",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.formData.maxnumberoferrors,callback:function(s){e.$set(e.formData,"maxnumberoferrors",s)},expression:"formData.maxnumberoferrors"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.numRetries","\u91CD\u8BD5\u6B21\u6570"),"label-width":"130px",prop:"numretries",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[t("el-input",{staticStyle:{width:"100%"},attrs:{min:0,type:"number",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.formData.numretries,callback:function(s){e.$set(e.formData,"numretries",s)},expression:"formData.numretries"}})],1)],1),t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.retryTimeout","\u91CD\u8BD5\u95F4\u9694(ms)"),"label-width":"130px",prop:"retrytimeout",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[t("el-input",{staticStyle:{width:"100%"},attrs:{min:0,type:"number",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.formData.retrytimeout,callback:function(s){e.$set(e.formData,"retrytimeout",s)},expression:"formData.retrytimeout"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.startNow","\u7ACB\u5373\u542F\u52A8"),"label-width":"130px",prop:"startNow"}},[t("el-radio-group",{model:{value:e.formData.startnow,callback:function(s){e.$set(e.formData,"startnow",s)},expression:"formData.startnow"}},[t("el-radio",{attrs:{label:!0}},[e._v(e._s(e.$i18nt("gd.state.yes","\u662F")))]),t("el-radio",{attrs:{label:!1}},[e._v(e._s(e.$i18nt("gd.state.no","\u5426")))])],1)],1)],1),t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.runOnStart","\u542F\u52A8\u65F6\u6267\u884C\u4E00\u6B21"),"label-width":"130px",prop:"runOnStart"}},[t("el-radio-group",{model:{value:e.formData.runonstart,callback:function(s){e.$set(e.formData,"runonstart",s)},expression:"formData.runonstart"}},[t("el-radio",{attrs:{label:!0}},[e._v(e._s(e.$i18nt("gd.state.yes","\u662F")))]),t("el-radio",{attrs:{label:!1}},[e._v(e._s(e.$i18nt("gd.state.no","\u5426")))])],1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,sm:12}},[t("el-form-item",{attrs:{"label-width":"130px",prop:"resetOnlyOnce"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(" "+e._s(e.$i18nt("gd.task.resetOnlyOnce","\u91CD\u7F6E\u89E6\u53D1\u6B21\u6570"))+" "),t("el-tooltip",{attrs:{content:e.$i18nt("gd.task.resetOnlyOnceTip","\u662F\u5426\u5728\u542F\u52A8\u65F6\u91CD\u7F6E\u6700\u5927\u89E6\u53D1\u6B21\u6570\u7B49\u4E8E\u4E00\u6B21\u7684\u4F5C\u4E1A; \u89E3\u51B3\u56E0\u6301\u4E45\u5316\u6570\u636E\u5DF2\u5B8C\u6210\u4E00\u6B21\u89E6\u53D1\u4F46\u542F\u52A8\u65F6\u4E0D\u518D\u6267\u884C\u7684\u95EE\u9898")}},[t("i",{staticClass:"el-icon-question"})])],1),t("el-radio-group",{model:{value:e.formData.resetonlyonce,callback:function(s){e.$set(e.formData,"resetonlyonce",s)},expression:"formData.resetonlyonce"}},[t("el-radio",{attrs:{label:!0}},[e._v(e._s(e.$i18nt("gd.state.yes","\u662F")))]),t("el-radio",{attrs:{label:!1}},[e._v(e._s(e.$i18nt("gd.state.no","\u5426")))])],1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:24,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.description","\u63CF\u8FF0"),"label-width":"12.5%",prop:"description"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),rows:5},model:{value:e.formData.description,callback:function(s){e.$set(e.formData,"description",s)},expression:"formData.description"}})],1)],1)],1)],1)],1)],1),e.visible?t("cronTab",{ref:"cronTab",on:{fill:e.crontabFill}}):e._e()],1)},re=[],ie=g.normalizeComponent(ae,se,re,!1,null,"f57b10c3",null,null);const ne=ie.exports,le=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"})),I=`#region
|
|
2
|
+
using Furion;
|
|
3
|
+
using Furion.Logging;
|
|
4
|
+
using Furion.RemoteRequest.Extensions;
|
|
5
|
+
using Furion.Schedule;
|
|
6
|
+
using Microsoft.Extensions.DependencyInjection;
|
|
7
|
+
using System;
|
|
8
|
+
using System.Data;
|
|
9
|
+
using System.Linq.Dynamic.Core;
|
|
10
|
+
using System.Linq.Expressions;
|
|
11
|
+
using System.Text;
|
|
12
|
+
using System.Threading;
|
|
13
|
+
using System.Threading.Tasks;
|
|
14
|
+
using Yitter.IdGenerator;
|
|
15
|
+
using Furion.Schedule;
|
|
16
|
+
#endregion
|
|
17
|
+
|
|
18
|
+
namespace Gds.Core.Jobs;
|
|
19
|
+
|
|
20
|
+
/// <summary>
|
|
21
|
+
/// \u793A\u4F8B\u4F5C\u4E1A
|
|
22
|
+
/// </summary>
|
|
23
|
+
[JobDetail("\u4F60\u7684\u4F5C\u4E1A\u7F16\u53F7", Description = "\u793A\u4F8B\u4F5C\u4E1A\u63CF\u8FF0", GroupName = "default", Concurrent = false)]
|
|
24
|
+
[Daily(TriggerId = "\u4F60\u7684\u89E6\u53D1\u5668\u7F16\u53F7", Description = "\u793A\u4F8B\u4F5C\u4E1A\u63CF\u8FF0")]
|
|
25
|
+
public class JOBCLASS : IJob
|
|
26
|
+
{
|
|
27
|
+
\xA0 \xA0 private readonly IServiceProvider _serviceProvider;
|
|
28
|
+
\xA0 \xA0 public JOBCLASS(IServiceProvider serviceProvider)
|
|
29
|
+
\xA0 \xA0 {
|
|
30
|
+
\xA0 \xA0 \xA0 \xA0 _serviceProvider = serviceProvider;
|
|
31
|
+
\xA0 \xA0 }
|
|
32
|
+
\xA0 \xA0 public async Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken)
|
|
33
|
+
\xA0 \xA0 {
|
|
34
|
+
\xA0 \xA0 \xA0 \xA0 using var serviceScope = _serviceProvider.CreateScope();
|
|
35
|
+
|
|
36
|
+
\xA0 \xA0 }
|
|
37
|
+
}
|
|
38
|
+
`;const oe={data(){return{fullscreen:!1,visible:!1,confirmLoading:!1,JobNameData:[],title:"\u4F5C\u4E1A",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,activeKey:"1",createType:2,disabled:!0,monacoEditor:!1,detail:{},width:"80%",formData:{}}},computed:{getHeight(){return this.height-100},height(){return this.screenHeight-(this.fullScreen?140:210)},...g.mapGetters(["screenHeight"])},methods:{closed(){this.fullscreen=!1,this.visible=!1,this.activeKey="1"},doEvent(a){let e=a.item.functionName;this[e]()},toggleFullscreen(){this.fullscreen=!this.fullscreen},init(a){if(this.fullscreen=!1,this.visible=!0,this.type=a?2:1,this.createType=2,this.disabled=!0,this.title=a?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E"),this.sysViewButtons=this.sysViewButtons.map(e=>(e.name=a?"sysTimers:edit":"sysTimers:add",e)),this.monacoEditor&&(this.monacoEditor=!1,this.$refs.monacoEditorRef.setData(I)),a){this.detail={...a},this.disabled=a.createType!=1;let e=this.getHttpJobMessage(a.properties);this.$nextTick(()=>{setTimeout(()=>{this.formData={jobid:a.jobid,groupname:a.groupname,createtype:a.createtype,concurrent:a.concurrent,httpmethod:e.httpmethod,includeannotations:a.includeannotations,description:a.description,body:e.body,requesturi:e.requesturi}},0)})}else this.$nextTick(()=>{setTimeout(()=>{this.formData={groupname:"default",createtype:2,concurrent:!0,httpmethod:"Get",includeannotations:!0,description:"",body:"",requesturi:""}},100)})},getHttpJobMessage(a){if(a==null||a==="")return{requesturi:"",httpmethod:"Get",body:""};let e=JSON.parse(a);if(e.HttpJob===void 0)return{requesturi:"",httpmethod:"Get",body:""};let t=JSON.parse(e.HttpJob);return{requesturi:t.RequestUri,httpmethod:t.HttpMethod?t.HttpMethod.Method:"Get",body:t.Body}},changeCreateType(a){if(this.createType=a,this.disabled=a!=1,a==1){let e=Object.assign({},this.formData),t=JSON.stringify({RequestUri:e.requestUri,HttpMethod:{Method:e.httpMethod},Body:e.body,ClientName:"HttpJob",EnsureSuccessStatusCode:!0}),s=JSON.stringify({HttpJob:t});this.$nextTick(()=>{setTimeout(()=>{this.formData={...this.formData,properties:s}},100)})}},changeTabs(a,e){a.name==2&&!this.monacoEditor&&this.$nextTick(()=>{setTimeout(()=>{this.monacoEditor=!0,this.$refs.monacoEditorRef.setData(I)},0)})},handleSubmit(){this.$refs.formRef.validate(a=>{if(a){let e=this.createType==1?this.monacoEditor?this.$refs.monacoEditorRef.getData():I:"",t="";if(this.createType==2){let s=JSON.stringify({RequestUri:this.formData.requestUri,HttpMethod:{Method:this.formData.httpMethod},Body:this.formData.body,ClientName:"HttpJob",EnsureSuccessStatusCode:!0});t=JSON.stringify({HttpJob:s})}this.type==1?this.add(Object.assign(this.formData,{scriptCode:e,properties:t})):this.edit(Object.assign(this.formData,{scriptCode:e,properties:t}))}})},add(a){this.confirmLoading=!0,h.sysJobAddJobDetail(a).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.visible=!1,this.confirmLoading=!1,this.$emit("ok",a),this.$refs.formRef.resetFields()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(a){this.confirmLoading=!0,h.sysJobUpdateJobDetail(Object.assign({...this.detail},a)).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.visible=!1,this.confirmLoading=!1,this.$emit("ok",a),this.$refs.formRef.resetFields()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})}}};var ce=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"formRef",attrs:{model:e.formData},nativeOn:{submit:function(s){s.preventDefault()}}},[t("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.changeTabs},model:{value:e.activeKey,callback:function(s){e.activeKey=s},expression:"activeKey"}},[t("el-tab-pane",{attrs:{name:"1",label:e.$i18nt("gd.task.jobInformation","\u4F5C\u4E1A\u4FE1\u606F")}},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.jobId","\u4F5C\u4E1A\u7F16\u53F7"),"label-width":"130px",prop:"jobid",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[t("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:e.type==2},model:{value:e.formData.jobid,callback:function(s){e.$set(e.formData,"jobid",s)},expression:"formData.jobid"}})],1)],1),t("el-col",{attrs:{md:12,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.groupName","\u7EC4\u540D\u79F0"),"label-width":"130px",prop:"groupname",rules:[{required:!0,message:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}]}},[t("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.formData.groupname,callback:function(s){e.$set(e.formData,"groupname",s)},expression:"formData.groupname"}})],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.createType","\u521B\u5EFA\u7C7B\u578B"),"label-width":"130px",prop:"createType"}},[t("el-radio-group",{attrs:{disabled:e.type==2},on:{change:e.changeCreateType},model:{value:e.formData.createtype,callback:function(s){e.$set(e.formData,"createtype",s)},expression:"formData.createtype"}},[e.type!=1?t("el-radio",{attrs:{label:0}},[e._v(" "+e._s(e.$i18nt("gd.task.builtIn","\u5185\u7F6E"))+" ")]):e._e(),t("el-radio",{attrs:{label:1}},[e._v(e._s(e.$i18nt("gd.task.script")))]),t("el-radio",{attrs:{label:2}},[e._v(" "+e._s(e.$i18nt("gd.task.httpRequest","Http\u8BF7\u6C42"))+" ")])],1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:12,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.concurrent","\u6267\u884C\u65B9\u5F0F"),"label-width":"130px",prop:"concurrent"}},[t("el-radio-group",{model:{value:e.formData.concurrent,callback:function(s){e.$set(e.formData,"concurrent",s)},expression:"formData.concurrent"}},[t("el-radio",{attrs:{label:!0}},[e._v(" "+e._s(e.$i18nt("gd.task.parallel","\u5E76\u884C"))+" ")]),t("el-radio",{attrs:{label:!1}},[e._v(" "+e._s(e.$i18nt("gd.task.serial","\u4E32\u884C"))+" ")])],1)],1)],1),t("el-col",{directives:[{name:"show",rawName:"v-show",value:e.type!=2&&e.createType==1,expression:"type != 2 && createType == 1"}],attrs:{md:12,sm:24}},[t("el-form-item",{attrs:{"label-width":"130px",prop:"includeAnnotations"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(" "+e._s(e.$i18nt("gd.task.scanTrigger","\u626B\u63CF\u7279\u6027\u89E6\u53D1\u5668"))+" "),t("el-tooltip",{attrs:{placement:"top",content:e.$i18nt("gd.task.scanTriggerTip","\u6B64\u53C2\u6570\u53EA\u5728\u65B0\u589E\u4F5C\u4E1A\u65F6\u751F\u6548; \u626B\u63CF\u5B9A\u4E49\u5728\u4F5C\u4E1A\u4E0A\u7684\u89E6\u53D1\u5668")}},[t("i",{staticClass:"el-icon-question"})])],1),t("el-radio-group",{model:{value:e.formData.includeannotations,callback:function(s){e.$set(e.formData,"includeannotations",s)},expression:"formData.includeannotations"}},[t("el-radio",{attrs:{label:!0}},[e._v(e._s(e.$i18nt("gd.state.yes","\u662F")))]),t("el-radio",{attrs:{label:!1}},[e._v(e._s(e.$i18nt("gd.state.no","\u5426")))])],1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{md:24,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.description","\u63CF\u8FF0"),"label-width":"12.5%",prop:"description"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),rows:4},model:{value:e.formData.description,callback:function(s){e.$set(e.formData,"description",s)},expression:"formData.description"}})],1)],1)],1),t("el-row",{directives:[{name:"show",rawName:"v-show",value:e.createType==1,expression:"createType == 1"}],attrs:{gutter:24}},[t("el-col",{attrs:{md:24,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.properties","\u989D\u5916\u6570\u636E"),"label-width":"12.5%",prop:"properties"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),rows:4},model:{value:e.formData.properties,callback:function(s){e.$set(e.formData,"properties",s)},expression:"formData.properties"}})],1)],1)],1),t("el-row",{directives:[{name:"show",rawName:"v-show",value:e.createType!=1,expression:"createType != 1"}],attrs:{gutter:24}},[t("el-col",{attrs:{md:24,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.properties","\u989D\u5916\u6570\u636E"),"label-width":"12.5%",prop:"requestUri"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.formData.requesturi,callback:function(s){e.$set(e.formData,"requesturi",s)},expression:"formData.requesturi"}})],1)],1)],1),t("el-row",{directives:[{name:"show",rawName:"v-show",value:e.createType!=1,expression:"createType != 1"}],attrs:{gutter:24}},[t("el-col",{attrs:{md:24,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.requestMethod","\u8BF7\u6C42\u65B9\u6CD5"),"label-width":"12.5%",prop:"httpMethod"}},[t("el-radio-group",{model:{value:e.formData.httpmethod,callback:function(s){e.$set(e.formData,"httpmethod",s)},expression:"formData.httpmethod"}},[t("el-radio",{attrs:{label:"Get"}},[e._v("Get")]),t("el-radio",{attrs:{label:"Post"}},[e._v("Post")]),t("el-radio",{attrs:{label:"Put"}},[e._v("Put")]),t("el-radio",{attrs:{label:"Delete"}},[e._v("Delete")])],1)],1)],1)],1),t("el-row",{directives:[{name:"show",rawName:"v-show",value:e.createType!=1,expression:"createType != 1"}],attrs:{gutter:24}},[t("el-col",{attrs:{md:24,sm:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.task.requestMessage","\u8BF7\u6C42\u62A5\u6587\u4F53"),"label-width":"12.5%",prop:"body"}},[t("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),rows:4},model:{value:e.formData.body,callback:function(s){e.$set(e.formData,"body",s)},expression:"formData.body"}})],1)],1)],1)],1),t("el-tab-pane",{attrs:{name:"2",label:e.$i18nt("gd.task.scriptCode","\u811A\u672C\u4EE3\u7801"),disabled:e.disabled}},[t("gd-monaco-editor-ref",{ref:"monacoEditorRef",attrs:{height:e.getHeight}})],1)],1)],1)],1)],1)],1)},de=[],ue=g.normalizeComponent(oe,ce,de,!1,null,"697194d2",null,null);const he=ue.exports,ge=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"}));const pe={data(){return{visible:!1,columns:[{label:"\u96C6\u7FA4\u7F16\u53F7",align:"left",prop:"clusterid",transKey:"gd.task.clusterNumber"},{label:"\u72B6\u6001",prop:"status",align:"left",type:"slot",slotType:"status",transKey:"gd.task.status"},{label:"\u63CF\u8FF0",align:"left",prop:"description",type:"slot",slotType:"description",width:180,transKey:"gd.task.description"},{label:"\u66F4\u65B0\u65F6\u95F4",align:"center",prop:"updatedtime",transKey:"gd.task.updatedTime"}],loadData:a=>h.sysJobClusterList(Object.assign(a,this.queryParam)).then(e=>(this.load=!0,{pageNo:1,pageSize:10,rows:e.data,totalPage:0,totalRows:e.data.length})),load:!1}},computed:{...g.mapGetters(["tableSize"])},methods:{open(a){this.visible=!0,this.load&&this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)})},handleCancel(){this.visible=!1},refresh(){this.$refs.table.refresh()},doEvent(a){let e=a.item.functionName;this[e]&&this[e]()}}};var me=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:e.$i18nt("gd.task.jobCluster","\u4F5C\u4E1A\u96C6\u7FA4"),size:700,visible:e.visible,"show-close":!1},on:{"update:visible":function(s){e.visible=s},close:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.task.jobCluster","\u4F5C\u4E1A\u96C6\u7FA4"),modalType:"drawer",buttons:[],emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:e.doEvent,close:e.handleCancel},slot:"title"}),t("gd-tables",{ref:"table",attrs:{columns:e.columns,dataSource:e.loadData,alert:!0,rowKey:s=>s.id,showPagination:!1,size:e.tableSize},scopedSlots:e._u([{key:"status",fn:function({row:s}){return[s.status===0?t("el-tag",{staticClass:"tag-red",attrs:{color:"red"}},[e._v(e._s(e.$i18nt("gd.colony.crash","\u5B95\u673A")))]):e._e(),s.status===1?t("el-tag",{staticClass:"tag-red",attrs:{color:"red"}},[e._v(e._s(e.$i18nt("gd.colony.working","\u5DE5\u4F5C\u4E2D")))]):e._e(),s.status===2?t("el-tag",{staticClass:"tag-red",attrs:{color:"red"}},[e._v(" "+e._s(e.$i18nt("gd.colony.waitingToBeAwakened","\u7B49\u5F85\u88AB\u5524\u9192"))+" ")]):e._e()]}},{key:"description",fn:function({row:s}){return[t("el-tooltip",{attrs:{placement:"top",content:s.description}},[t("span",{staticClass:"line1"},[e._v(e._s(s.description))])])]}}])})],1)},fe=[],ye=g.normalizeComponent(pe,me,fe,!1,null,"70798320",null,null);const be=ye.exports,ke=Object.freeze(Object.defineProperty({__proto__:null,default:be},Symbol.toStringTag,{value:"Module"}));const _e={name:"CronTab",components:{result:()=>Promise.resolve().then(()=>je),min:()=>Promise.resolve().then(()=>Fe),second:()=>Promise.resolve().then(()=>Je),hour:()=>Promise.resolve().then(()=>Ge),day:()=>Promise.resolve().then(()=>tt),month:()=>Promise.resolve().then(()=>ot),week:()=>Promise.resolve().then(()=>mt),year:()=>Promise.resolve().then(()=>vt)},data(){return{visible:!1,fullscreen:!1,sysViewButtons:[{displayName:"\u91CD\u7F6E",functionName:"clearCron",show:!0,keyI18n:"gd.btn.reset",icon:"el-icon-refresh-left",btnType:"danger"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,keyI18n:"gd.btn.confirm",icon:"el-icon-document-checked"}],crontabValueObj:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""},confirmLoading:!1,formData:{},activeKey:"second",checkNumber:(a,e,t)=>(a=Math.floor(a),a<e?a=e:a>t&&(a=t),a)}},computed:{style(){return"margin-left: 0px;margin-right: 0px;"},crontabValueString(){const a=this.crontabValueObj;return a.second+" "+a.min+" "+a.hour+" "+a.day+" "+a.month+" "+a.week+(a.year===""?"":" "+a.year)}},methods:{updateCrontabValue(a,e){this.crontabValueObj[a]=e},init(a){if(a.cronValue){let e=a.cronValue.split(/\s+/);if(e.length>=6){let t={second:e[0],min:e[1],hour:e[2],day:e[3],month:e[4],week:e[5],year:e[6]?e[6]:""};this.crontabValueObj={...t}}console.log(e,this.crontabValueObj)}else this.crontabValueObj={second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""};this.visible=!0},toggleFullscreen(){this.fullscreen=!this.fullscreen},closed(){this.fullscreen=!1,this.visible=!1},doEvent(a){let e=a.item.functionName;this[e]()},clearCron(){this.crontabValueObj={second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},handleSubmit(){let a=this.crontabValueObj,e=a.second+" "+a.min+" "+a.hour+" "+a.day+" "+a.month+" "+a.week+(a.year===""?"":" "+a.year);this.$emit("fill",e),this.handleCancel()},handleCancel(){this.$refs.formRef.resetFields(),this.visible=!1}}};var ve=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:"1100",center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,"show-close":!1,top:"80px"},on:{"update:visible":function(s){e.visible=s},closed:e.closed}},[t("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.task.cronExpressionBuilder","Cron\u8868\u8FBE\u5F0F\u751F\u6210\u5668"),fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"formRef",attrs:{model:e.formData},nativeOn:{submit:function(s){s.preventDefault()}}},[t("el-tabs",{attrs:{type:"card"},model:{value:e.activeKey,callback:function(s){e.activeKey=s},expression:"activeKey"}},[t("el-tab-pane",{attrs:{name:"second",label:e.$i18nt("gd.task.second","\u79D2")}},[t("second",{ref:"second",attrs:{check:e.checkNumber,cron:e.crontabValueObj},on:{update:e.updateCrontabValue}})],1),t("el-tab-pane",{attrs:{name:"min",label:e.$i18nt("gd.task.min","\u5206\u949F")}},[t("min",{ref:"min",attrs:{check:e.checkNumber,cron:e.crontabValueObj},on:{update:e.updateCrontabValue}})],1),t("el-tab-pane",{attrs:{name:"hour",label:e.$i18nt("gd.task.hour","\u5C0F\u65F6")}},[t("hour",{ref:"hour",attrs:{check:e.checkNumber,cron:e.crontabValueObj},on:{update:e.updateCrontabValue}})],1),t("el-tab-pane",{attrs:{name:"day",label:e.$i18nt("gd.task.day","\u65E5")}},[t("day",{ref:"day",attrs:{check:e.checkNumber,cron:e.crontabValueObj},on:{update:e.updateCrontabValue}})],1),t("el-tab-pane",{attrs:{name:"month",label:e.$i18nt("gd.task.month","\u6708")}},[t("month",{ref:"month",attrs:{check:e.checkNumber,cron:e.crontabValueObj},on:{update:e.updateCrontabValue}})],1),t("el-tab-pane",{attrs:{name:"week",label:e.$i18nt("gd.task.week","\u5468")}},[t("week",{ref:"week",attrs:{check:e.checkNumber,cron:e.crontabValueObj},on:{update:e.updateCrontabValue}})],1),t("el-tab-pane",{attrs:{name:"year",label:e.$i18nt("gd.task.year","\u5E74")}},[t("year",{ref:"year",attrs:{check:e.checkNumber,cron:e.crontabValueObj},on:{update:e.updateCrontabValue}})],1)],1),t("el-divider",[e._v(e._s(e.$i18nt("gd.task.timeExpression")))]),t("el-row",{style:e.style,attrs:{gutter:24,justify:"space-between",type:"flex"}},[t("el-col",{attrs:{md:2,sm:2}},[e._v(e._s(e.$i18nt("gd.task.second","\u79D2")))]),t("el-col",{attrs:{md:2,sm:2}},[e._v(e._s(e.$i18nt("gd.task.min","\u5206\u949F")))]),t("el-col",{attrs:{md:2,sm:2}},[e._v(e._s(e.$i18nt("gd.task.hour","\u5C0F\u65F6")))]),t("el-col",{attrs:{md:2,sm:2}},[e._v(e._s(e.$i18nt("gd.task.day","\u65E5")))]),t("el-col",{attrs:{md:2,sm:2}},[e._v(e._s(e.$i18nt("gd.task.month","\u6708")))]),t("el-col",{attrs:{md:2,sm:2}},[e._v(e._s(e.$i18nt("gd.task.week","\u5468")))]),t("el-col",{attrs:{md:3,sm:3}},[e._v(e._s(e.$i18nt("gd.task.year","\u5E74")))]),t("el-col",{attrs:{md:8,sm:8}},[e._v(e._s(e.$i18nt("gd.task.cronExpression","Cron\u8868\u8FBE\u5F0F")))])],1),t("el-row",{staticClass:"rowd",style:e.style,attrs:{gutter:24,justify:"space-between",type:"flex"}},[t("el-col",{attrs:{md:2,sm:2}},[t("el-tooltip",{attrs:{placement:"top",content:e.crontabValueObj.second}},[t("span",{staticClass:"line1"},[e._v(e._s(e.crontabValueObj.second))])])],1),t("el-col",{attrs:{md:2,sm:2}},[t("el-tooltip",{attrs:{placement:"top",content:e.crontabValueObj.min}},[t("span",{staticClass:"line1"},[e._v(e._s(e.crontabValueObj.min))])])],1),t("el-col",{attrs:{md:2,sm:2}},[t("el-tooltip",{attrs:{placement:"top",content:e.crontabValueObj.hour}},[t("span",{staticClass:"line1"},[e._v(e._s(e.crontabValueObj.hour))])])],1),t("el-col",{attrs:{md:2,sm:2}},[t("el-tooltip",{attrs:{placement:"top",content:e.crontabValueObj.day}},[t("span",{staticClass:"line1"},[e._v(e._s(e.crontabValueObj.day))])])],1),t("el-col",{attrs:{md:2,sm:2}},[t("el-tooltip",{attrs:{placement:"top",content:e.crontabValueObj.month}},[t("span",{staticClass:"line1"},[e._v(e._s(e.crontabValueObj.month))])])],1),t("el-col",{attrs:{md:2,sm:2}},[t("el-tooltip",{attrs:{placement:"top",content:e.crontabValueObj.week}},[t("span",{staticClass:"line1"},[e._v(e._s(e.crontabValueObj.week))])])],1),t("el-col",{attrs:{md:3,sm:3}},[t("el-tooltip",{attrs:{placement:"top",content:e.crontabValueObj.year}},[t("span",{staticClass:"line1"},[e._v(e._s(e.crontabValueObj.year))])])],1),t("el-col",{attrs:{md:8,sm:8}},[t("el-tooltip",{attrs:{placement:"top",content:e.crontabValueString}},[t("span",{staticClass:"line1"},[e._v(e._s(e.crontabValueString))])])],1)],1),t("el-divider",[e._v(e._s(e.$i18nt("gd.task.lastRunsTime","\u6700\u8FD15\u6B21\u8FD0\u884C\u65F6\u95F4")))]),t("result",{ref:"result",attrs:{ex:e.crontabValueString}})],1)],1)],1)},$e=[],xe=g.normalizeComponent(_e,ve,$e,!1,null,"103c29aa",null,null);const we=xe.exports,Te=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));const Ce={props:{ex:{type:String,default:""}},data(){return{dayRule:"",dayRuleSup:"",dateArr:[],resultList:[],isShow:!1}},watch:{ex(a,e){this.expressionChange()}},methods:{expressionChange(){this.isShow=!1;let a=this.ex.split(" "),e=0,t=[],s=new Date,r=s.getFullYear(),i=s.getMonth()+1,o=s.getDate(),l=s.getHours(),d=s.getMinutes(),_=s.getSeconds();this.getSecondArr(a[0]),this.getMinArr(a[1]),this.getHourArr(a[2]),this.getDayArr(a[3]),this.getMonthArr(a[4]),this.getWeekArr(a[5]),this.getYearArr(a[6],r);let v=this.dateArr[0],k=this.dateArr[1],y=this.dateArr[2],b=this.dateArr[3],m=this.dateArr[4],L=this.dateArr[5],F=this.getIndex(v,_),j=this.getIndex(k,d),V=this.getIndex(y,l),R=this.getIndex(b,o),A=this.getIndex(m,i),z=this.getIndex(L,r);const N=function(){F=0,_=v[F]},O=function(){j=0,d=k[j],N()},S=function(){V=0,l=y[V],O()},$=function(){R=0,o=b[R],S()},w=function(){A=0,i=m[A],$()};r!==L[z]&&w(),i!==m[A]&&$(),o!==b[R]&&S(),l!==y[V]&&O(),d!==k[j]&&N();e:for(let P=z;P<L.length;P++){let f=L[P];if(i>m[m.length-1]){w();continue}t:for(let x=A;x<m.length;x++){let u=m[x];if(u=u<10?"0"+u:u,o>b[b.length-1]){if($(),x===m.length-1){w();continue e}continue}a:for(let T=R;T<b.length;T++){let n=b[T],p=n<10?"0"+n:n;if(l>y[y.length-1]){if(S(),T===b.length-1){if($(),x===m.length-1){w();continue e}continue t}continue}if(this.checkDate(f+"-"+u+"-"+p+" 00:00:00")!==!0&&this.dayRule!=="workDay"&&this.dayRule!=="lastWeek"&&this.dayRule!=="lastDay"){$();continue t}if(this.dayRule==="lastDay"){if(this.checkDate(f+"-"+u+"-"+p+" 00:00:00")!==!0)for(;n>0&&this.checkDate(f+"-"+u+"-"+p+" 00:00:00")!==!0;)n--,p=n<10?"0"+n:n}else if(this.dayRule==="workDay"){if(this.checkDate(f+"-"+u+"-"+p+" 00:00:00")!==!0)for(;n>0&&this.checkDate(f+"-"+u+"-"+p+" 00:00:00")!==!0;)n--,p=n<10?"0"+n:n;let c=this.formatDate(new Date(f+"-"+u+"-"+p+" 00:00:00"),"week");c===1?(n++,p=n<10?"0"+n:n,this.checkDate(f+"-"+u+"-"+p+" 00:00:00")!==!0&&(n-=3)):c===7&&(this.dayRuleSup!==1?n--:n+=2)}else if(this.dayRule==="weekDay"){let c=this.formatDate(new Date(f+"-"+u+"-"+n+" 00:00:00"),"week");if(this.dayRuleSup.indexOf(c)<0){if(T===b.length-1){if($(),x===m.length-1){w();continue e}continue t}continue}}else if(this.dayRule==="assWeek"){let c=formatDate(new Date(f+"-"+u+"-"+n+" 00:00:00"),"week");this.dayRuleSup[1]>=c?n=(this.dayRuleSup[0]-1)*7+this.dayRuleSup[1]-c+1:n=this.dayRuleSup[0]*7+this.dayRuleSup[1]-c+1}else if(this.dayRule==="lastWeek"){if(checkDate(f+"-"+u+"-"+p+" 00:00:00")!==!0)for(;n>0&&checkDate(f+"-"+u+"-"+p+" 00:00:00")!==!0;)n--,p=n<10?"0"+n:n;let c=formatDate(new Date(f+"-"+u+"-"+p+" 00:00:00"),"week");this.dayRuleSup<c?n-=c-this.dayRuleSup:this.dayRuleSup>c&&(n-=7-(this.dayRuleSup-c))}n=n<10?"0"+n:n;s:for(let c=V;c<y.length;c++){let M=y[c]<10?"0"+y[c]:y[c];if(d>k[k.length-1]){if(O(),c===y.length-1){if(S(),T===b.length-1){if($(),x===m.length-1){w();continue e}continue t}continue a}continue}r:for(let C=j;C<k.length;C++){let K=k[C]<10?"0"+k[C]:k[C];if(_>v[v.length-1]){if(N(),C===k.length-1){if(O(),c===y.length-1){if(S(),T===b.length-1){if($(),x===m.length-1){w();continue e}continue t}continue a}continue s}continue}for(let D=F;D<=v.length-1;D++){let J=v[D]<10?"0"+v[D]:v[D];if(u!=="00"&&n!=="00"&&(t.push(f+"-"+u+"-"+n+" "+M+":"+K+":"+J),e++),e===5)break e;if(D===v.length-1){if(N(),C===k.length-1){if(O(),c===y.length-1){if(S(),T===b.length-1){if($(),x===m.length-1){w();continue e}continue t}continue a}continue s}continue r}}}}}}}t.length===0?this.resultList=["\u6CA1\u6709\u8FBE\u5230\u6761\u4EF6\u7684\u7ED3\u679C\uFF01"]:this.resultList=t,this.isShow=!0},getIndex(a,e){if(e<=a[0]||e>a[a.length-1])return 0;for(let t=0;t<a.length-1;t++)if(e>a[t]&&e<=a[t+1])return t+1},getYearArr(a,e){this.dateArr[5]=this.getOrderArr(e,e+100),a!==void 0&&(a.indexOf("-")>=0?this.dateArr[5]=this.getCycleArr(a,e+100,!1):a.indexOf("/")>=0?this.dateArr[5]=this.getAverageArr(a,e+100):a!=="*"&&(this.dateArr[5]=this.getAssignArr(a)))},getMonthArr(a){this.dateArr[4]=this.getOrderArr(1,12),a.indexOf("-")>=0?this.dateArr[4]=this.getCycleArr(a,12,!1):a.indexOf("/")>=0?this.dateArr[4]=this.getAverageArr(a,12):a!=="*"&&(this.dateArr[4]=this.getAssignArr(a))},getWeekArr(a){if(this.dayRule===""&&this.dayRuleSup==="")if(a.indexOf("-")>=0)this.dayRule="weekDay",this.dayRuleSup=this.getCycleArr(a,7,!1);else if(a.indexOf("#")>=0){this.dayRule="assWeek";let e=a.match(/[0-9]{1}/g);this.dayRuleSup=[Number(e[1]),Number(e[0])],this.dateArr[3]=[1],this.dayRuleSup[1]===7&&(this.dayRuleSup[1]=0)}else a.indexOf("L")>=0?(this.dayRule="lastWeek",this.dayRuleSup=Number(a.match(/[0-9]{1,2}/g)[0]),this.dateArr[3]=[31],this.dayRuleSup===7&&(this.dayRuleSup=0)):a!=="*"&&a!=="?"&&(this.dayRule="weekDay",this.dayRuleSup=this.getAssignArr(a))},getDayArr(a){this.dateArr[3]=this.getOrderArr(1,31),this.dayRule="",this.dayRuleSup="",a.indexOf("-")>=0?(this.dateArr[3]=this.getCycleArr(a,31,!1),this.dayRuleSup="null"):a.indexOf("/")>=0?(this.dateArr[3]=this.getAverageArr(a,31),this.dayRuleSup="null"):a.indexOf("W")>=0?(this.dayRule="workDay",this.dayRuleSup=Number(a.match(/[0-9]{1,2}/g)[0]),this.dateArr[3]=[dayRuleSup.value]):a.indexOf("L")>=0?(this.dayRule="lastDay",this.dayRuleSup="null",this.dateArr[3]=[31]):a!=="*"&&a!=="?"?(this.dateArr[3]=this.getAssignArr(a),this.dayRuleSup="null"):a==="*"&&(this.dayRuleSup="null")},getHourArr(a){this.dateArr[2]=this.getOrderArr(0,23),a.indexOf("-")>=0?this.dateArr[2]=this.getCycleArr(a,24,!0):a.indexOf("/")>=0?this.dateArr[2]=this.getAverageArr(a,23):a!=="*"&&(this.dateArr[2]=this.getAssignArr(a))},getMinArr(a){this.dateArr[1]=this.getOrderArr(0,59),a.indexOf("-")>=0?this.dateArr[1]=this.getCycleArr(a,60,!0):a.indexOf("/")>=0?this.dateArr[1]=this.getAverageArr(a,59):a!=="*"&&(this.dateArr[1]=this.getAssignArr(a))},getSecondArr(a){this.dateArr[0]=this.getOrderArr(0,59),a.indexOf("-")>=0?this.dateArr[0]=this.getCycleArr(a,60,!0):a.indexOf("/")>=0?this.dateArr[0]=this.getAverageArr(a,59):a!=="*"&&(this.dateArr[0]=this.getAssignArr(a))},getOrderArr(a,e){let t=[];for(let s=a;s<=e;s++)t.push(s);return t},getAssignArr(a){let e=[],t=a.split(",");for(let s=0;s<t.length;s++)e[s]=Number(t[s]);return e.sort(this.compare),e},getAverageArr(a,e){let t=[],s=a.split("/"),r=Number(s[0]),i=Number(s[1]);for(;r<=e;)t.push(r),r+=i;return t},getCycleArr(a,e,t){let s=[],r=a.split("-"),i=Number(r[0]),o=Number(r[1]);i>o&&(o+=e);for(let l=i;l<=o;l++){let d=0;t===!1&&l%e===0&&(d=e),s.push(Math.round(l%e+d))}return s.sort(this.compare),s},compare(a,e){return e-a>0?-1:1},formatDate(a,e){let t=typeof a=="number"?new Date(a):a,s=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),o=t.getHours(),l=t.getMinutes(),d=t.getSeconds(),_=t.getDay();if(e===void 0)return s+"-"+(r<10?"0"+r:r)+"-"+(i<10?"0"+i:i)+" "+(o<10?"0"+o:o)+":"+(l<10?"0"+l:l)+":"+(d<10?"0"+d:d);if(e==="week")return _+1},checkDate(a){let e=new Date(a),t=this.formatDate(e);return a===t}},mounted(){this.expressionChange()}};var Se=function(){var e=this,t=e._self._c;return t("div",[t("ul",{staticClass:"popup-result-scroll"},[e.isShow?e._l(e.resultList,function(s){return t("li",{key:s},[e._v(e._s(s))])}):t("li",[e._v(e._s(e.$i18nt("gd.task.resultsCount","\u8BA1\u7B97\u7ED3\u679C\u4E2D...")))])],2)])},De=[],Oe=g.normalizeComponent(Ce,Se,De,!1,null,"4a023d7d",null,null);const Le=Oe.exports,je=Object.freeze(Object.defineProperty({__proto__:null,default:Le},Symbol.toStringTag,{value:"Module"}));const Ve={props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},radioStyle:{display:"block",height:"30px",lineHeight:"30px",marginBottom:"12px"},cycle01:0,cycle02:1,average01:0,average02:1,checkboxList:[],radioValue:"1",checkCopy:[0]}},computed:{averageTotal(){let a=this.check(this.average01,0,58),e=this.check(this.average02,1,59-this.average01);return a+"/"+e},cycleTotal(){let a=this.check(this.cycle01,0,58),e=this.check(this.cycle02,this.cycle01+1,59);return a+"-"+e}},watch:{"cron.min"(a,e){this.changeRadioValue(a)}},methods:{onSearch(a){this.$nextTick(()=>{setTimeout(()=>{this.onChange(4)},0)})},onChange(a){switch(Number(a)){case 1:this.$emit("update","min","*","min"),console.log(2);break;case 2:this.$emit("update","min",this.cycleTotal,"min");break;case 3:this.$emit("update","min",this.averageTotal,"min");break;case 4:this.checkboxList.length===0?this.checkboxList.push(this.checkCopy[0]):this.checkCopy=[...this.checkboxList],this.$emit("update","min",this.checkboxList.join(","),"min");break}},changeRadioValue(a){if(a==="*")this.radioValue="1";else if(a.indexOf("-")>-1){const e=a.split("-");this.cycle01=Number(e[0]),this.cycle02=Number(e[1]),this.radioValue="2"}else if(a.indexOf("/")>-1){const e=a.split("/");this.average01=Number(e[0]),this.average02=Number(e[1]),this.radioValue="3"}else this.checkboxList=[...new Set(a.split(",").map(e=>Number(e)))],this.radioValue="4"}},mounted(){this.changeRadioValue(this.cron.min)}};var Re=function(){var e=this,t=e._self._c;return t("div",[t("el-radio-group",{on:{input:e.onChange},model:{value:e.radioValue,callback:function(s){e.radioValue=s},expression:"radioValue"}},[t("el-radio",{style:e.radioStyle,attrs:{label:"1"}},[e._v(" "+e._s(e.$i18nt("gd.task.min","\u5206\u949F"))+"\uFF0C"+e._s(e.$i18nt("gd.task.wildcard","\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]"))+" ")]),t("el-radio",{style:e.radioStyle,attrs:{label:"2"}},[e._v(" "+e._s(e.$i18nt("gd.task.periodFrom","\u5468\u671F\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:0,max:58},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle01,callback:function(s){e.cycle01=s},expression:"cycle01"}}),e._v(" - "),t("el-input",{attrs:{type:"number",min:e.cycle01+1,max:59},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle02,callback:function(s){e.cycle02=s},expression:"cycle02"}}),e._v(" "+e._s(e.$i18nt("gd.task.mins","\u5206\u949F"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"3"}},[e._v(" "+e._s(e.$i18nt("gd.task.follow","\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:0,max:58},on:{input:function(s){return e.onChange(3)}},model:{value:e.average01,callback:function(s){e.average01=s},expression:"average01"}}),e._v(" "+e._s(e.$i18nt("gd.task.minStart","\u5206\u949F\u5F00\u59CB\uFF0C\u6BCF"))+" "),t("el-input",{attrs:{type:"number",min:1,max:59-e.average01},on:{input:function(s){return e.onChange(3)}},model:{value:e.average02,callback:function(s){e.average02=s},expression:"average02"}}),e._v(" "+e._s(e.$i18nt("gd.task.mins","\u5206\u949F"))+"\uFF0C"+e._s(e.$i18nt("gd.task.executeOnce","\u6267\u884C\u4E00\u6B21"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"4"}},[e._v(" "+e._s(e.$i18nt("gd.task.specify","\u6307\u5B9A"))+" "),t("el-select",{attrs:{multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onSearch},model:{value:e.checkboxList,callback:function(s){e.checkboxList=s},expression:"checkboxList"}},e._l(60,function(s,r){return t("el-option",{key:s,attrs:{value:r}},[e._v(" "+e._s(r)+" ")])}),1)],1)],1)],1)},Ae=[],Ne=g.normalizeComponent(Ve,Re,Ae,!1,null,"3d08808c",null,null);const Be=Ne.exports,Fe=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"}));const Pe={props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},radioStyle:{display:"block",height:"30px",lineHeight:"30px",marginBottom:"12px"},cycle01:0,cycle02:1,average01:0,average02:1,checkboxList:[],radioValue:"1",checkCopy:[0]}},computed:{averageTotal(){let a=this.check(this.average01,0,58),e=this.check(this.average02,1,59-this.average01);return a+"/"+e},cycleTotal(){let a=this.check(this.cycle01,0,58),e=this.check(this.cycle02,this.cycle01+1,59);return a+"-"+e}},watch:{"cron.second"(a,e){console.log(a),this.changeRadioValue(a)}},methods:{onSearch(a){this.$nextTick(()=>{setTimeout(()=>{this.onChange(4)},0)})},onChange(a){switch(Number(a)){case 1:this.$emit("update","second","*","second"),console.log(2);break;case 2:this.$emit("update","second",this.cycleTotal,"second");break;case 3:this.$emit("update","second",this.averageTotal,"second");break;case 4:this.checkboxList.length===0?this.checkboxList.push(this.checkCopy[0]):this.checkCopy=[...this.checkboxList],this.$emit("update","second",this.checkboxList.join(","),"second");break}},changeRadioValue(a){if(a==="*")this.radioValue="1";else if(a.indexOf("-")>-1){const e=a.split("-");this.cycle01=Number(e[0]),this.cycle02=Number(e[1]),this.radioValue="2"}else if(a.indexOf("/")>-1){const e=a.split("/");this.average01=Number(e[0]),this.average02=Number(e[1]),this.radioValue="3"}else this.checkboxList=[...new Set(a.split(",").map(e=>Number(e)))],this.radioValue="4"}},mounted(){this.changeRadioValue(this.cron.second)}};var Ie=function(){var e=this,t=e._self._c;return t("div",[t("el-radio-group",{on:{change:e.onChange},model:{value:e.radioValue,callback:function(s){e.radioValue=s},expression:"radioValue"}},[t("el-radio",{style:e.radioStyle,attrs:{label:"1"}},[e._v(" "+e._s(e.$i18nt("gd.task.second","\u79D2"))+"\uFF0C"+e._s(e.$i18nt("gd.task.wildcard","\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]"))+" ")]),t("el-radio",{style:e.radioStyle,attrs:{label:"2"}},[e._v(" "+e._s(e.$i18nt("gd.task.periodFrom","\u5468\u671F\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:0,max:58},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle01,callback:function(s){e.cycle01=s},expression:"cycle01"}}),e._v(" - "),t("el-input",{attrs:{type:"number",min:e.cycle01+1,max:59},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle02,callback:function(s){e.cycle02=s},expression:"cycle02"}}),e._v(" "+e._s(e.$i18nt("gd.task.seconds","\u79D2"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"3"}},[e._v(" "+e._s(e.$i18nt("gd.task.follow","\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:0,max:58},on:{input:function(s){return e.onChange(3)}},model:{value:e.average01,callback:function(s){e.average01=s},expression:"average01"}}),e._v(" "+e._s(e.$i18nt("gd.task.secondsStart","\u79D2\u5F00\u59CB\uFF0C\u6BCF"))+" "),t("el-input",{attrs:{type:"number",min:1,max:59-e.average01},on:{input:function(s){return e.onChange(3)}},model:{value:e.average02,callback:function(s){e.average02=s},expression:"average02"}}),e._v(" "+e._s(e.$i18nt("gd.task.seconds","\u79D2"))+"\uFF0C"+e._s(e.$i18nt("gd.task.executeOnce","\u6267\u884C\u4E00\u6B21"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"4"}},[e._v(" "+e._s(e.$i18nt("gd.task.specify","\u6307\u5B9A"))+" "),t("el-select",{attrs:{multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onSearch},model:{value:e.checkboxList,callback:function(s){e.checkboxList=s},expression:"checkboxList"}},e._l(60,function(s,r){return t("el-option",{key:s,attrs:{value:r}},[e._v(" "+e._s(r)+" ")])}),1)],1)],1)],1)},ze=[],Me=g.normalizeComponent(Pe,Ie,ze,!1,null,"bfb78904",null,null);const Ke=Me.exports,Je=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));const Ee={props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},radioStyle:{display:"block",height:"30px",lineHeight:"30px",marginBottom:"12px"},cycle01:0,cycle02:1,average01:0,average02:1,checkboxList:[],radioValue:"1",checkCopy:[0]}},computed:{averageTotal(){let a=this.check(this.average01,0,22),e=this.check(this.average02,1,23-this.average01);return a+"/"+e},cycleTotal(){let a=this.check(this.cycle01,0,22),e=this.check(this.cycle02,this.cycle01+1,23);return a+"-"+e}},watch:{"cron.hour"(a,e){this.changeRadioValue(a)}},methods:{onSearch(a){this.$nextTick(()=>{setTimeout(()=>{this.onChange(4)},0)})},onChange(a){switch(Number(a)){case 1:this.$emit("update","hour","*","hour"),console.log(2);break;case 2:this.$emit("update","hour",this.cycleTotal,"hour");break;case 3:this.$emit("update","hour",this.averageTotal,"hour");break;case 4:this.checkboxList.length===0?this.checkboxList.push(this.checkCopy[0]):this.checkCopy=[...this.checkboxList],this.$emit("update","hour",this.checkboxList.join(","),"hour");break}},changeRadioValue(a){if(a==="*")this.radioValue="1";else if(a.indexOf("-")>-1){const e=a.split("-");this.cycle01=Number(e[0]),this.cycle02=Number(e[1]),this.radioValue="2"}else if(a.indexOf("/")>-1){const e=a.split("/");this.average01=Number(e[0]),this.average02=Number(e[1]),this.radioValue="3"}else this.checkboxList=[...new Set(a.split(",").map(e=>Number(e)))],this.radioValue="4"}},mounted(){this.changeRadioValue(this.cron.hour)}};var qe=function(){var e=this,t=e._self._c;return t("div",[t("el-radio-group",{on:{change:e.onChange},model:{value:e.radioValue,callback:function(s){e.radioValue=s},expression:"radioValue"}},[t("el-radio",{style:e.radioStyle,attrs:{label:"1"}},[e._v(" "+e._s(e.$i18nt("gd.task.hour","\u5C0F\u65F6"))+"\uFF0C"+e._s(e.$i18nt("gd.task.wildcard","\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]"))+" ")]),t("el-radio",{style:e.radioStyle,attrs:{label:"2"}},[e._v(" "+e._s(e.$i18nt("gd.task.periodFrom","\u5468\u671F\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:0,max:22},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle01,callback:function(s){e.cycle01=s},expression:"cycle01"}}),e._v(" - "),t("el-input",{attrs:{type:"number",min:e.cycle01+1,max:59},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle02,callback:function(s){e.cycle02=s},expression:"cycle02"}}),e._v(" "+e._s(e.$i18nt("gd.task.hours","\u5C0F\u65F6"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"3"}},[e._v(" "+e._s(e.$i18nt("gd.task.follow","\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:0,max:22},on:{input:function(s){return e.onChange(3)}},model:{value:e.average01,callback:function(s){e.average01=s},expression:"average01"}}),e._v(" "+e._s(e.$i18nt("gd.task.hourStart","\u65F6\u5F00\u59CB\uFF0C\u6BCF"))+" "),t("el-input",{attrs:{type:"number",min:1,max:23-e.average01},on:{input:function(s){return e.onChange(3)}},model:{value:e.average02,callback:function(s){e.average02=s},expression:"average02"}}),e._v(" "+e._s(e.$i18nt("gd.task.hours","\u5C0F\u65F6"))+"\uFF0C"+e._s(e.$i18nt("gd.task.executeOnce","\u6267\u884C\u4E00\u6B21"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"4"}},[e._v(" "+e._s(e.$i18nt("gd.task.specify","\u6307\u5B9A"))+" "),t("el-select",{attrs:{multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onSearch},model:{value:e.checkboxList,callback:function(s){e.checkboxList=s},expression:"checkboxList"}},e._l(24,function(s,r){return t("el-option",{key:s,attrs:{value:r}},[e._v(" "+e._s(r)+" ")])}),1)],1)],1)],1)},He=[],Ye=g.normalizeComponent(Ee,qe,He,!1,null,"4689b0bb",null,null);const We=Ye.exports,Ge=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"}));const Ue={props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},radioStyle:{display:"block",height:"30px",lineHeight:"30px",marginBottom:"12px"},cycle01:1,cycle02:2,average01:1,average02:1,checkboxList:[],radioValue:"1",checkCopy:[1],workday:1}},computed:{workdayTotal(){return this.check(this.workday,1,31)+"W"},averageTotal(){let a=this.check(this.average01,1,30),e=this.check(this.average02,1,31-this.average01);return a+"/"+e},cycleTotal(){let a=this.check(this.cycle01,1,30),e=this.check(this.cycle02,this.cycle01+1,31);return a+"-"+e}},watch:{"cron.day"(a,e){this.changeRadioValue(a)}},methods:{onSearch(a){this.$nextTick(()=>{setTimeout(()=>{this.onChange(7)},0)})},onChange(a){switch(Number(a)===2&&this.cron.week==="?"&&this.$emit("update","week","*","day"),Number(a)!==2&&this.cron.week!=="?"&&this.$emit("update","week","?","day"),Number(a)){case 1:this.$emit("update","day","*","day");break;case 2:this.$emit("update","day","?","day");break;case 3:this.$emit("update","day",this.cycleTotal,"day");break;case 4:this.$emit("update","day",this.averageTotal,"day");break;case 5:this.$emit("update","day",this.workdayTotal,"day");break;case 6:this.$emit("update","day","L","day");break;case 7:this.checkboxList.length===0?this.checkboxList.push(this.checkCopy[0]):this.checkCopy=[...this.checkboxList],this.$emit("update","day",this.checkboxList.join(","),"day");break}},changeRadioValue(a){if(a==="*")this.radioValue="1";else if(a==="?")this.radioValue="2";else if(a.indexOf("-")>-1){const e=a.split("-");this.cycle01=Number(e[0]),this.cycle02=Number(e[1]),this.radioValue="3"}else if(a.indexOf("/")>-1){const e=a.split("/");this.average01=Number(e[0]),this.average02=Number(e[1]),this.radioValue="4"}else if(a.indexOf("W")>-1){const e=a.split("W");this.workday=Number(e[0]),this.radioValue="5"}else a==="L"?this.radioValue="6":(this.checkboxList=[...new Set(a.split(",").map(e=>Number(e)))],this.radioValue="7")}},mounted(){this.changeRadioValue(this.cron.day)}};var Qe=function(){var e=this,t=e._self._c;return t("div",[t("el-radio-group",{on:{change:e.onChange},model:{value:e.radioValue,callback:function(s){e.radioValue=s},expression:"radioValue"}},[t("el-radio",{style:e.radioStyle,attrs:{label:"1"}},[e._v(" "+e._s(e.$i18nt("gd.task.day","\u65E5"))+"\uFF0C"+e._s(e.$i18nt("gd.task.wildcard","\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]"))+" ")]),t("el-radio",{style:e.radioStyle,attrs:{label:"2"}},[e._v(e._s(e.$i18nt("gd.task.notSpecified","\u4E0D\u6307\u5B9A")))]),t("el-radio",{style:e.radioStyle,attrs:{label:"3"}},[e._v(" "+e._s(e.$i18nt("gd.task.periodFrom","\u5468\u671F\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:1,max:30},on:{input:function(s){return e.onChange(3)}},model:{value:e.cycle01,callback:function(s){e.cycle01=s},expression:"cycle01"}}),e._v(" - "),t("el-input",{attrs:{type:"number",min:e.cycle01+1,max:31},on:{input:function(s){return e.onChange(3)}},model:{value:e.cycle02,callback:function(s){e.cycle02=s},expression:"cycle02"}}),e._v(" "+e._s(e.$i18nt("gd.task.days","\u65E5"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"4"}},[e._v(" "+e._s(e.$i18nt("gd.task.follow","\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:1,max:30},on:{input:function(s){return e.onChange(4)}},model:{value:e.average01,callback:function(s){e.average01=s},expression:"average01"}}),e._v(" "+e._s(e.$i18nt("gd.task.dayStart","\u53F7\u5F00\u59CB\uFF0C\u6BCF"))+" "),t("el-input",{attrs:{type:"number",min:1,max:31-e.average01},on:{input:function(s){return e.onChange(3)}},model:{value:e.average02,callback:function(s){e.average02=s},expression:"average02"}}),e._v(" "+e._s(e.$i18nt("gd.task.days","\u65E5"))+"\uFF0C"+e._s(e.$i18nt("gd.task.executeOnce","\u6267\u884C\u4E00\u6B21"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"5"}},[e._v(" "+e._s(e.$i18nt("gd.task.monthly","\u6BCF\u6708"))+" "),t("el-input",{attrs:{type:"number",min:1,max:31},on:{input:function(s){return e.onChange(5)}},model:{value:e.workday,callback:function(s){e.workday=s},expression:"workday"}}),e._v(" "+e._s(e.$i18nt("gd.task.workingDay","\u53F7\u6700\u8FD1\u7684\u90A3\u4E2A\u5DE5\u4F5C\u65E5"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"6"}},[e._v(e._s(e.$i18nt("gd.task.lasDay","\u672C\u6708\u6700\u540E\u4E00\u5929")))]),t("el-radio",{style:e.radioStyle,attrs:{label:"7"}},[e._v(" "+e._s(e.$i18nt("gd.task.specify","\u6307\u5B9A"))+" "),t("el-select",{attrs:{multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onSearch},model:{value:e.checkboxList,callback:function(s){e.checkboxList=s},expression:"checkboxList"}},[e._l(32,function(s,r){return[r>0?t("el-option",{key:s,attrs:{value:r}},[e._v(" "+e._s(r)+" ")]):e._e()]})],2)],1)],1)],1)},Xe=[],Ze=g.normalizeComponent(Ue,Qe,Xe,!1,null,"c30b0b78",null,null);const et=Ze.exports,tt=Object.freeze(Object.defineProperty({__proto__:null,default:et},Symbol.toStringTag,{value:"Module"}));const at=[{key:1,value:"\u4E00\u6708"},{key:2,value:"\u4E8C\u6708"},{key:3,value:"\u4E09\u6708"},{key:4,value:"\u56DB\u6708"},{key:5,value:"\u4E94\u6708"},{key:6,value:"\u516D\u6708"},{key:7,value:"\u4E03\u6708"},{key:8,value:"\u516B\u6708"},{key:9,value:"\u4E5D\u6708"},{key:10,value:"\u5341\u6708"},{key:11,value:"\u5341\u4E00\u6708"},{key:12,value:"\u5341\u4E8C\u6708"}],st={props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},radioStyle:{display:"block",height:"30px",lineHeight:"30px",marginBottom:"12px"},cycle01:1,cycle02:2,average01:1,average02:1,checkboxList:[],radioValue:"1",checkCopy:[1],monthList:at}},computed:{averageTotal(){let a=this.check(this.average01,1,11),e=this.check(this.average02,1,12-this.average01);return a+"/"+e},cycleTotal(){let a=this.check(this.cycle01,1,11),e=this.check(this.cycle02,this.cycle01+1,12);return a+"-"+e}},watch:{"cron.month"(a,e){this.changeRadioValue(a)}},methods:{onSearch(a){this.$nextTick(()=>{setTimeout(()=>{this.onChange(4)},0)})},onChange(a){switch(Number(a)){case 1:this.$emit("update","month","*","month"),console.log(2);break;case 2:this.$emit("update","month",this.cycleTotal,"month");break;case 3:this.$emit("update","month",this.averageTotal,"month");break;case 4:this.checkboxList.length===0?this.checkboxList.push(this.checkCopy[0]):this.checkCopy=[...this.checkboxList],this.$emit("update","month",this.checkboxList.join(","),"month");break}},changeRadioValue(a){if(a==="*")this.radioValue="1";else if(a.indexOf("-")>-1){const e=a.split("-");this.cycle01=Number(e[0]),this.cycle02=Number(e[1]),this.radioValue="2"}else if(a.indexOf("/")>-1){const e=a.split("/");this.average01=Number(e[0]),this.average02=Number(e[1]),this.radioValue="3"}else this.checkboxList=[...new Set(a.split(",").map(e=>Number(e)))],this.radioValue="4"}},mounted(){this.changeRadioValue(this.cron.month)}};var rt=function(){var e=this,t=e._self._c;return t("div",[t("el-radio-group",{on:{change:e.onChange},model:{value:e.radioValue,callback:function(s){e.radioValue=s},expression:"radioValue"}},[t("el-radio",{style:e.radioStyle,attrs:{label:"1"}},[e._v(" "+e._s(e.$i18nt("gd.task.month","\u6708"))+"\uFF0C"+e._s(e.$i18nt("gd.task.wildcard","\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]"))+" ")]),t("el-radio",{style:e.radioStyle,attrs:{label:"2"}},[e._v(" "+e._s(e.$i18nt("gd.task.month","\u6708"))+" "),t("el-input",{attrs:{type:"number",min:1,max:11},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle01,callback:function(s){e.cycle01=s},expression:"cycle01"}}),e._v(" - "),t("el-input",{attrs:{type:"number",min:e.cycle01+1,max:12},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle02,callback:function(s){e.cycle02=s},expression:"cycle02"}}),e._v(" "+e._s(e.$i18nt("gd.task.months","\u6708"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"3"}},[e._v(" "+e._s(e.$i18nt("gd.task.follow","\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:1,max:11},on:{input:function(s){return e.onChange(3)}},model:{value:e.average01,callback:function(s){e.average01=s},expression:"average01"}}),e._v(" "+e._s(e.$i18nt("gd.task.monthStart","\u6708\u5F00\u59CB\uFF0C\u6BCF"))+" "),t("el-input",{attrs:{type:"number",min:1,max:12-e.average01},on:{input:function(s){return e.onChange(3)}},model:{value:e.average02,callback:function(s){e.average02=s},expression:"average02"}}),e._v(" "+e._s(e.$i18nt("gd.task.months","\u6708"))+"\uFF0C"+e._s(e.$i18nt("gd.task.executeOnce","\u6267\u884C\u4E00\u6B21"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"4"}},[e._v(" "+e._s(e.$i18nt("gd.task.specify","\u6307\u5B9A"))+" "),t("el-select",{attrs:{multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onSearch},model:{value:e.checkboxList,callback:function(s){e.checkboxList=s},expression:"checkboxList"}},e._l(e.monthList,function(s){return t("el-option",{key:s.key,attrs:{value:s.key,label:s.value}},[e._v(" "+e._s(s.value)+" ")])}),1)],1)],1)],1)},it=[],nt=g.normalizeComponent(st,rt,it,!1,null,"4cdeddda",null,null);const lt=nt.exports,ot=Object.freeze(Object.defineProperty({__proto__:null,default:lt},Symbol.toStringTag,{value:"Module"}));const ct=[{key:1,value:"\u661F\u671F\u65E5",keyI18n:"gd.task.sunday"},{key:2,value:"\u661F\u671F\u4E00",keyI18n:"gd.task.monday"},{key:3,value:"\u661F\u671F\u4E8C",keyI18n:"gd.task.tuesday"},{key:4,value:"\u661F\u671F\u4E09",keyI18n:"gd.task.wednesday"},{key:5,value:"\u661F\u671F\u56DB",keyI18n:"gd.task.thursday"},{key:6,value:"\u661F\u671F\u4E94",keyI18n:"gd.task.friday"},{key:7,value:"\u661F\u671F\u516D",keyI18n:"gd.task.saturday"}],dt={props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},radioStyle:{display:"block",height:"30px",lineHeight:"30px",marginBottom:"12px"},cycle01:2,cycle02:3,average01:1,average02:2,weekday:2,checkboxList:[],radioValue:"2",checkCopy:[2],weekList:ct}},computed:{weekdayTotal(){return this.check(this.weekday,1,7)+"L"},averageTotal(){let a=this.check(this.average01,1,4);return this.check(this.average02,1,7)+"#"+a},cycleTotal(){let a=this.check(this.cycle01,1,6),e=this.check(this.cycle02,this.cycle01+1,7);return a+"-"+e}},watch:{"cron.week"(a,e){this.changeRadioValue(a)}},methods:{onSearch(a,e){this.$nextTick(()=>{setTimeout(()=>{this.onChange(e)},0)})},onChange(a){switch(this.radioValue===2&&this.cron.day==="?"&&this.$emit("update","day","*","week"),this.radioValue!==2&&this.cron.day!=="?"&&this.$emit("update","day","?","week"),Number(a)){case 1:this.$emit("update","week","*","week");break;case 2:this.$emit("update","week","?","week");break;case 3:this.$emit("update","week",this.cycleTotal,"week");break;case 4:this.$emit("update","week",this.averageTotal,"week");break;case 5:this.$emit("update","week",this.weekdayTotal,"week");break;case 6:this.checkboxList.length===0?this.checkboxList.push(this.checkCopy[0]):this.checkCopy=[...this.checkboxList],this.$emit("update","week",this.checkboxList.join(","),"week");break}},changeRadioValue(a){if(a==="*")this.radioValue="1";else if(a==="?")this.radioValue="2";else if(a.indexOf("-")>-1){const e=a.split("-");this.cycle01=Number(e[0]),this.cycle02=Number(e[1]),this.radioValue="3"}else if(a.indexOf("#")>-1){const e=a.split("#");this.average01=Number(e[0]),this.average02=Number(e[1]),this.radioValue="4"}else if(a.indexOf("L")>-1){const e=a.split("L");this.weekday=Number(e[0]),this.radioValue="5"}else this.checkboxList=[...new Set(a.split(",").map(e=>Number(e)))],this.radioValue="6"}},mounted(){this.changeRadioValue(this.cron.week)}};var ut=function(){var e=this,t=e._self._c;return t("div",[t("el-radio-group",{on:{change:e.onChange},model:{value:e.radioValue,callback:function(s){e.radioValue=s},expression:"radioValue"}},[t("el-radio",{style:e.radioStyle,attrs:{label:"1"}},[e._v(" "+e._s(e.$i18nt("gd.task.week","\u5468"))+"\uFF0C"+e._s(e.$i18nt("gd.task.wildcardL","\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * ? / L #]"))+" ")]),t("el-radio",{style:e.radioStyle,attrs:{label:"2"}},[e._v(e._s(e.$i18nt("gd.task.notSpecified","\u4E0D\u6307\u5B9A")))]),t("el-radio",{style:e.radioStyle,attrs:{label:"3"}},[e._v(" "+e._s(e.$i18nt("gd.task.periodFrom","\u5468\u671F\u4ECE"))+" "),t("el-select",{attrs:{clearable:!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(s){return e.onSearch(s,3)}},model:{value:e.cycle01,callback:function(s){e.cycle01=s},expression:"cycle01"}},e._l(e.weekList,function(s,r){return t("el-option",{key:r,attrs:{value:s.key,label:s.value,disabled:s.key===7}},[e._v(" "+e._s(s.keyI18n?e.$i18nt(s.keyI18n,0,s.value):s.value)+" ")])}),1),e._v(" - "),t("el-select",{attrs:{clearable:!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(s){return e.onSearch(s,3)}},model:{value:e.cycle02,callback:function(s){e.cycle02=s},expression:"cycle02"}},e._l(e.weekList,function(s,r){return t("el-option",{key:r,attrs:{value:s.key,label:s.value,disabled:s.key<=e.cycle01}},[e._v(" "+e._s(s.keyI18n?e.$i18nt(s.keyI18n,0,s.value):s.value)+" ")])}),1)],1),t("el-radio",{style:e.radioStyle,attrs:{label:"4"}},[e._v(" "+e._s(e.$i18nt("gd.task.only","\u7B2C"))+" "),t("el-input",{attrs:{type:"number",min:1,max:4},on:{input:function(s){return e.onChange(4)}},model:{value:e.average01,callback:function(s){e.average01=s},expression:"average01"}}),e._v(" "+e._s(e.$i18nt("gd.task.weekIs","\u5468\u7684"))+" "),t("el-select",{attrs:{clearable:!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(s){return e.onSearch(s,4)}},model:{value:e.average02,callback:function(s){e.average02=s},expression:"average02"}},e._l(e.weekList,function(s,r){return t("el-option",{key:r,attrs:{value:s.key,label:s.value,disabled:s.key<=e.cycle01}},[e._v(" "+e._s(s.keyI18n?e.$i18nt(s.keyI18n,0,s.value):s.value)+" ")])}),1)],1),t("el-radio",{style:e.radioStyle,attrs:{label:"5"}},[e._v(" "+e._s(e.$i18nt("gd.task.lasMonth","\u672C\u6708\u6700\u540E\u4E00\u4E2A"))+" "),t("el-select",{attrs:{clearable:!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(s){return e.onSearch(s,5)}},model:{value:e.weekday,callback:function(s){e.weekday=s},expression:"weekday"}},e._l(e.weekList,function(s,r){return t("el-option",{key:r,attrs:{value:s.key,label:s.value}},[e._v(" "+e._s(s.keyI18n?e.$i18nt(s.keyI18n,0,s.value):s.value)+" ")])}),1)],1),t("el-radio",{style:e.radioStyle,attrs:{label:"6"}},[e._v(" "+e._s(e.$i18nt("gd.task.specify","\u6307\u5B9A"))+" "),t("el-select",{attrs:{multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(s){return e.onSearch(s,6)}},model:{value:e.checkboxList,callback:function(s){e.checkboxList=s},expression:"checkboxList"}},e._l(e.weekList,function(s,r){return t("el-option",{key:r,attrs:{value:s.key,label:s.value}},[e._v(" "+e._s(s.keyI18n?e.$i18nt(s.keyI18n,0,s.value):s.value)+" ")])}),1)],1)],1)],1)},ht=[],gt=g.normalizeComponent(dt,ut,ht,!1,null,"63c96e39",null,null);const pt=gt.exports,mt=Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"}));const ft={props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},radioStyle:{display:"block",height:"30px",lineHeight:"30px",marginBottom:"12px"},cycle01:0,cycle02:0,average01:0,average02:1,checkboxList:[],radioValue:"1",checkCopy:[],fullYear:0,maxFullYear:0}},computed:{averageTotal(){let a=this.check(this.average01,this.fullYear,this.maxFullYear-1),e=this.check(this.average02,1,10);return a+"/"+e},cycleTotal(){let a=this.check(this.cycle01,this.fullYear,this.maxFullYear-1),e=this.check(this.cycle02,this.cycle01+1,this.maxFullYear);return a+"-"+e}},watch:{"cron.year"(a,e){this.changeRadioValue(a)}},methods:{onSearch(a){this.$nextTick(()=>{setTimeout(()=>{this.onChange(4)},0)})},onChange(a){switch(Number(a)){case 1:this.$emit("update","year","","year");break;case 2:this.$emit("update","year","*","year");break;case 3:this.$emit("update","year",this.cycleTotal,"year");break;case 4:this.$emit("update","year",this.averageTotal,"year");break;case 5:this.checkboxList.length===0?this.checkboxList.push(this.checkCopy[0]):this.checkCopy=[...this.checkboxList],this.$emit("update","year",this.checkboxList.join(","),"year");break}},changeRadioValue(a){if(a==="")this.radioValue="1";else if(a==="*")this.radioValue="2";else if(a.indexOf("-")>-1){const e=a.split("-");this.cycle01=Number(e[0]),this.cycle02=Number(e[1]),this.radioValue="3"}else if(a.indexOf("/")>-1){const e=a.split("/");this.average01=Number(e[0]),this.average02=Number(e[1]),this.radioValue="4"}else this.checkboxList=[...new Set(a.split(",").map(e=>Number(e)))],this.radioValue="5"}},created(){let a=Number(new Date().getFullYear());this.fullYear=a,this.maxFullYear=a+10,this.cycle01=a,this.cycle02=this.cycle01+1,this.average01=a,this.checkCopy=[a]},mounted(){this.changeRadioValue(this.cron.year)}};var yt=function(){var e=this,t=e._self._c;return t("div",[t("el-radio-group",{on:{change:e.onChange},model:{value:e.radioValue,callback:function(s){e.radioValue=s},expression:"radioValue"}},[t("el-radio",{style:e.radioStyle,attrs:{label:"1"}},[e._v(e._s(e.$i18nt("gd.task.notFilled","\u4E0D\u586B\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]")))]),t("el-radio",{style:e.radioStyle,attrs:{label:"2"}},[e._v(e._s(e.$i18nt("gd.task.annually","\u6BCF\u5E74")))]),t("el-radio",{style:e.radioStyle,attrs:{label:"3"}},[e._v(" "+e._s(e.$i18nt("gd.task.periodFrom","\u5468\u671F\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:e.fullYear,max:e.maxFullYear-1},on:{input:function(s){return e.onChange(3)}},model:{value:e.cycle01,callback:function(s){e.cycle01=s},expression:"cycle01"}}),e._v(" - "),t("el-input",{attrs:{type:"number",min:e.cycle01+1,max:e.maxFullYear},on:{input:function(s){return e.onChange(2)}},model:{value:e.cycle02,callback:function(s){e.cycle02=s},expression:"cycle02"}})],1),t("el-radio",{style:e.radioStyle,attrs:{label:"4"}},[e._v(" "+e._s(e.$i18nt("gd.task.follow","\u4ECE"))+" "),t("el-input",{attrs:{type:"number",min:e.fullYear,max:e.maxFullYear-1},on:{input:function(s){return e.onChange(4)}},model:{value:e.average01,callback:function(s){e.average01=s},expression:"average01"}}),e._v(" "+e._s(e.$i18nt("gd.task.yearStart","\u5E74\u5F00\u59CB\uFF0C\u6BCF"))+" "),t("el-input",{attrs:{type:"number",min:1,max:10},on:{input:function(s){return e.onChange(4)}},model:{value:e.average02,callback:function(s){e.average02=s},expression:"average02"}}),e._v(" "+e._s(e.$i18nt("gd.task.years","\u5E74"))+"\uFF0C"+e._s(e.$i18nt("gd.task.executeOnce","\u6267\u884C\u4E00\u6B21"))+" ")],1),t("el-radio",{style:e.radioStyle,attrs:{label:"5"}},[e._v(" "+e._s(e.$i18nt("gd.task.specify","\u6307\u5B9A"))+" "),t("el-select",{attrs:{multiple:!0,clearable:!0,"collapse-tags":!0,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.onSearch},model:{value:e.checkboxList,callback:function(s){e.checkboxList=s},expression:"checkboxList"}},e._l(10,function(s,r){return t("el-option",{key:s,attrs:{value:r-1+e.fullYear}},[e._v(" "+e._s(r-1+e.fullYear)+" ")])}),1)],1)],1)],1)},bt=[],kt=g.normalizeComponent(ft,yt,bt,!1,null,"c06949e5",null,null);const _t=kt.exports,vt=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"}));exports.GDpackage=B;
|