gds-plus-design-vue 1.2.61 → 1.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addPermission.5036013c.js +1 -0
- package/lib/addPermission.9fc97a47.mjs +421 -0
- package/lib/approvalModel.51d07afe.mjs +340 -0
- package/lib/approvalModel.66f49dfb.js +1 -0
- package/lib/attribute.318f485c.js +1 -0
- package/lib/attribute.a06ac9e7.mjs +237 -0
- package/lib/buildItem.6a834227.js +1 -0
- package/lib/buildItem.fd8634ab.mjs +205 -0
- package/lib/businessRules.0e4dbb3a.js +1 -0
- package/lib/businessRules.db6ba874.mjs +538 -0
- package/lib/components.chartbi.b043dcdc.mjs +1729 -0
- package/lib/components.chartbi.e4680eaa.js +7 -0
- package/lib/components.coloreditor.044983d2.mjs +1505 -0
- package/lib/components.coloreditor.779a9419.js +6 -0
- package/lib/components.dataassign.1853ed5c.js +1 -0
- package/lib/components.dataassign.56632583.mjs +147 -0
- package/lib/components.echarts.10d3ffe2.mjs +794 -0
- package/lib/components.echarts.e4d6b13e.js +3 -0
- package/lib/components.exception.3cc33e29.js +1 -0
- package/lib/components.exception.cc2f4ca3.mjs +61 -0
- package/lib/components.form.3344c817.mjs +7785 -0
- package/lib/components.form.91d5ed3e.js +41 -0
- package/lib/components.globalheader.07a90c4b.js +1 -0
- package/lib/components.globalheader.43fafa8c.mjs +54 -0
- package/lib/components.iconselector.8caabeaa.mjs +1165 -0
- package/lib/components.iconselector.d712170f.js +1 -0
- package/lib/components.imgpreview.57290b54.mjs +213 -0
- package/lib/components.imgpreview.86bf7971.js +1 -0
- package/lib/components.lunccalendar.76159d2e.js +1 -0
- package/lib/components.lunccalendar.f6765c94.mjs +1137 -0
- package/lib/components.middleware.3bad5748.js +1 -0
- package/lib/components.middleware.457b1182.mjs +147 -0
- package/lib/components.modaltitle.ae92f96c.mjs +127 -0
- package/lib/components.modaltitle.e0b34fcb.js +1 -0
- package/lib/components.multitab.82fd0544.js +1 -0
- package/lib/components.multitab.8441aa6b.mjs +140 -0
- package/lib/components.selecttree.85d940a9.mjs +170 -0
- package/lib/components.selecttree.d710a362.js +1 -0
- package/lib/components.settingdrawer.779f6715.js +1 -0
- package/lib/components.settingdrawer.a6693034.mjs +237 -0
- package/lib/components.sidemenu.725677e3.mjs +277 -0
- package/lib/components.sidemenu.80e46c2d.js +1 -0
- package/lib/components.sidenavmenu.23b8edce.mjs +1331 -0
- package/lib/components.sidenavmenu.b9bb9304.js +1 -0
- package/lib/components.statuschange.15938660.mjs +116 -0
- package/lib/components.statuschange.ed1218a4.js +1 -0
- package/lib/components.table.17c02054.js +8 -0
- package/lib/components.table.e3e5e3bc.mjs +4635 -0
- package/lib/components.tableumy.2f5dfa12.mjs +450 -0
- package/lib/components.tableumy.9cf33062.js +1 -0
- package/lib/components.tablevirtual.38d4d3d8.js +1 -0
- package/lib/components.tablevirtual.ba03746e.mjs +561 -0
- package/lib/components.teamsharing.05503821.js +1 -0
- package/lib/components.teamsharing.fb4351ec.mjs +373 -0
- package/lib/components.tooltip.950dc77b.mjs +86 -0
- package/lib/components.tooltip.a05d8dd1.js +1 -0
- package/lib/components.uploadfile.10f6cb2a.mjs +228 -0
- package/lib/components.uploadfile.5a9b6cc1.js +1 -0
- package/lib/components.uploadimg.cce7452a.js +1 -0
- package/lib/components.uploadimg.f4fe4e77.mjs +192 -0
- package/lib/components.verificationcode.afb9aa1a.mjs +71 -0
- package/lib/components.verificationcode.d1946db4.js +1 -0
- package/lib/components.viewformdetails.1621bc18.js +1 -0
- package/lib/components.viewformdetails.f362d69e.mjs +1048 -0
- package/lib/components.viewloading.807bbf68.js +1 -0
- package/lib/components.viewloading.ea40b244.mjs +96 -0
- package/lib/components.watermark.1ffc66e0.mjs +53 -0
- package/lib/components.watermark.da3d7220.js +2 -0
- package/lib/components.xlsxexport.d98572f8.mjs +263 -0
- package/lib/components.xlsxexport.f5ace2cd.js +1 -0
- package/lib/components.xlsximport.cffa88fe.mjs +913 -0
- package/lib/components.xlsximport.dbd826bb.js +1 -0
- package/lib/createFile.6b37ecf2.js +1 -0
- package/lib/createFile.82d6e415.mjs +239 -0
- package/lib/createSubfolders.47af629c.js +1 -0
- package/lib/createSubfolders.d35b97e9.mjs +154 -0
- package/lib/dialogLayout.08823bb7.js +1 -0
- package/lib/dialogLayout.c4bc3b55.mjs +138 -0
- package/lib/drawerContainer.604a1271.mjs +146 -0
- package/lib/drawerContainer.6a9813ce.js +1 -0
- package/lib/drawerLayout.36cf4d05.js +1 -0
- package/lib/drawerLayout.fb60950f.mjs +119 -0
- package/lib/fileSearch.65311ded.js +1 -0
- package/lib/fileSearch.86c356fe.mjs +338 -0
- package/lib/flow.designer.1ba3a90d.js +1 -0
- package/lib/flow.designer.6da03949.mjs +7686 -0
- package/lib/flow.list.03694808.mjs +3030 -0
- package/lib/flow.list.4eb10554.js +1 -0
- package/lib/form.build.51bd261e.js +1 -0
- package/lib/form.build.b768d613.mjs +251 -0
- package/lib/form.designer.build.5a950455.js +1 -0
- package/lib/form.designer.build.e521c9c6.mjs +5091 -0
- package/lib/formFiled.464856f5.js +1 -0
- package/lib/formFiled.fe7d9df3.mjs +505 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +221 -91087
- package/lib/http.appmanage.4554a629.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.codegeneratemanage.2f925b10.mjs +112 -0
- package/lib/http.codegeneratemanage.aecadd5d.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.4baf16c0.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.77c69971.mjs +50 -0
- package/lib/http.duplicatechecking.31964ce7.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.7c656b91.js +1 -0
- package/lib/http.filedocument.d456d26a.mjs +156 -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.2f8a6936.js +1 -0
- package/lib/http.main.40657f51.mjs +517 -0
- package/lib/http.menumanage.3240ba0d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.5004bf60.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.e03bd5f3.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.5162fd7a.js +1 -0
- package/lib/http.orgmanage.84e43edb.mjs +58 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.pluginmanage.6bc6197f.mjs +82 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.c7912f6c.mjs +42 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.rolemanage.03363732.js +1 -0
- package/lib/http.rolemanage.dbf3fda1.mjs +114 -0
- package/lib/http.solution.175d36c8.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.608a06d6.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.e294ceaf.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.1d370398.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.c8487c0b.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.01dbc1a2.mjs +146 -0
- package/lib/http.timersmanage.6e894942.js +1 -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.a4640c9a.mjs +104 -0
- package/lib/http.useraffiliation.840741ed.mjs +90 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.usermanage.3e5eff33.mjs +219 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.webresource.5158b431.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.69ad4631.mjs +44291 -0
- package/lib/index.cca024bf.js +8 -0
- package/lib/layoutBlocks.1a9e3e05.mjs +204 -0
- package/lib/layoutBlocks.5e6be06f.js +1 -0
- package/lib/layouts.051a0bba.mjs +376 -0
- package/lib/layouts.a6a36612.js +2 -0
- package/lib/main.457f4326.js +1 -0
- package/lib/main.4fff412e.js +1 -0
- package/lib/{main.6c47713a.mjs → main.70357352.mjs} +12 -10
- package/lib/main.77373aa4.mjs +441 -0
- package/lib/{main.28952cf7.mjs → main.7f44e3bf.mjs} +78 -143
- package/lib/main.8a2a590d.js +1 -0
- package/lib/main.ad1e8d4d.js +1 -0
- package/lib/{main.5b3edd34.mjs → main.b0e5e1b0.mjs} +9 -8
- package/lib/{main.b4704b4b.mjs → main.c1df94d8.mjs} +4 -4
- package/lib/main.c3726602.js +1 -0
- package/lib/manage.5bb4f719.js +1 -0
- package/lib/manage.a1df9b88.mjs +419 -0
- package/lib/messages.7b74736f.js +9 -0
- package/lib/{messages.1787f71e.mjs → messages.ad082386.mjs} +994 -1952
- package/lib/moveFile.0ce803e0.js +1 -0
- package/lib/moveFile.8310ea94.mjs +254 -0
- package/lib/page.build.685c1e15.mjs +3158 -0
- package/lib/page.build.846096e6.js +12 -0
- package/lib/personal.echarts.b22fba61.mjs +701 -0
- package/lib/personal.echarts.f77bfc9e.js +1 -0
- package/lib/result.19351665.mjs +526 -0
- package/lib/result.e59c0e40.js +1 -0
- package/lib/router.config.2501ec51.js +1 -0
- package/lib/router.config.98a73167.mjs +3172 -0
- package/lib/solution.58580123.js +1 -0
- package/lib/solution.890ff164.mjs +6942 -0
- package/lib/store.config.3cb11578.js +1 -0
- package/lib/store.config.fff8a5a1.mjs +542 -0
- package/lib/style.css +3 -3
- package/lib/system.account.014f3e0b.mjs +2097 -0
- package/lib/system.account.0d4f1fdc.js +216 -0
- package/lib/{system.config.9bee857f.mjs → system.config.0899edb8.mjs} +7 -6
- package/lib/system.config.210f516c.js +1 -0
- package/lib/system.datasource.82492d27.js +1 -0
- package/lib/{system.datasource.926c6da1.mjs → system.datasource.986768c9.mjs} +15 -64
- package/lib/{system.dict.d48f77d5.mjs → system.dict.ef24873d.mjs} +28 -107
- package/lib/system.dict.f5708400.js +1 -0
- package/lib/system.duplicatechecking.8e3a37c0.js +1 -0
- package/lib/system.duplicatechecking.dcf9f86b.mjs +742 -0
- package/lib/system.email.070ab2be.js +1 -0
- package/lib/system.email.252fd642.mjs +138 -0
- package/lib/{system.fieldsecurity.a91a8420.mjs → system.fieldsecurity.0234d390.mjs} +224 -685
- package/lib/system.fieldsecurity.3ef07bf7.js +1 -0
- package/lib/system.file.17a7f2ed.js +1 -0
- package/lib/{system.file.ca5f4aae.mjs → system.file.73eeb731.mjs} +8 -7
- package/lib/{system.log.e80ba9c9.mjs → system.log.b86cf57f.mjs} +31 -93
- package/lib/system.log.fc60f5e6.js +1 -0
- package/lib/{system.machine.c1e753fb.mjs → system.machine.0114001b.mjs} +5 -25
- package/lib/system.machine.f1d95c86.js +1 -0
- package/lib/{system.notice.a6017645.mjs → system.notice.25ea8dca.mjs} +292 -474
- package/lib/system.notice.96c770a6.js +1 -0
- package/lib/{system.noticereceived.bbf6efd3.mjs → system.noticereceived.369f634c.mjs} +17 -24
- package/lib/system.noticereceived.dfe4ecc7.js +1 -0
- package/lib/{system.onlineuser.2b756c66.mjs → system.onlineuser.2dc284b1.mjs} +11 -24
- package/lib/system.onlineuser.e2e39bdc.js +1 -0
- package/lib/system.org.79ee5bd6.js +1 -0
- package/lib/{system.org.5f9e7b94.mjs → system.org.c20fe6b2.mjs} +3 -3
- package/lib/system.permissions.90f73461.js +9 -0
- package/lib/{system.permissions.17fe31d5.mjs → system.permissions.c3d34921.mjs} +4 -3
- package/lib/{system.plugin.c503c5b7.mjs → system.plugin.45a0f530.mjs} +23 -93
- package/lib/system.plugin.b34a3b47.js +1 -0
- package/lib/system.pos.0a3d2a37.js +1 -0
- package/lib/{system.pos.a169dcb9.mjs → system.pos.7946a99c.mjs} +31 -62
- package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
- package/lib/{system.promptmanagement.00fc2917.mjs → system.promptmanagement.d7250932.mjs} +153 -287
- package/lib/system.role.03be0982.js +1 -0
- package/lib/{system.role.52d67131.mjs → system.role.75da7929.mjs} +8 -5
- package/lib/{system.sumberrules.357dc3bb.mjs → system.sumberrules.4a1376a6.mjs} +13 -39
- package/lib/system.sumberrules.bb228fce.js +1 -0
- package/lib/system.team.32183b63.js +1 -0
- package/lib/system.team.e6a9608e.mjs +450 -0
- package/lib/{system.teammembers.90598753.mjs → system.teammembers.4a7e7339.mjs} +135 -82
- package/lib/system.teammembers.847d8ea7.js +1 -0
- package/lib/system.timers.28691ce4.js +38 -0
- package/lib/{system.timers.f66ddd64.mjs → system.timers.eb0b6f3e.mjs} +50 -174
- package/lib/system.translation.6237f071.js +1 -0
- package/lib/{system.translation.279d9e27.mjs → system.translation.e34f0891.mjs} +5 -5
- package/lib/{system.user.80ca9f42.mjs → system.user.fa2d2997.mjs} +17 -16
- package/lib/{system.user.10ae5122.js → system.user.fca3f2d6.js} +5 -5
- package/lib/{system.useraffiliation.b5c11d9e.mjs → system.useraffiliation.518e341e.mjs} +4 -3
- package/lib/system.useraffiliation.7547b9c7.js +1 -0
- package/lib/system.webresource.12712b90.js +1 -0
- package/lib/{system.webresource.6dbe70f3.mjs → system.webresource.469db736.mjs} +16 -58
- package/lib/{system.welcome.a162fc7d.mjs → system.welcome.191e98f5.mjs} +10 -3
- package/lib/system.welcome.f64e49f8.js +1 -0
- package/lib/tcheckboxs.090e75eb.mjs +52 -0
- package/lib/tcheckboxs.99361be3.js +1 -0
- package/lib/tcurrency.0ddac2f8.mjs +92 -0
- package/lib/tcurrency.62763c6d.js +1 -0
- package/lib/tdatepicker.8fe48b1b.mjs +52 -0
- package/lib/tdatepicker.b19e689d.js +1 -0
- package/lib/tdictSwitch.2e07dc8a.js +1 -0
- package/lib/tdictSwitch.43d882c7.mjs +60 -0
- package/lib/tfile.1bc381f9.js +1 -0
- package/lib/tfile.72925615.mjs +62 -0
- package/lib/tparticipants.77b876e2.js +1 -0
- package/lib/tparticipants.ca5b556c.mjs +56 -0
- package/lib/translation.mains.1ce7e110.js +1 -0
- package/lib/translation.mains.278e4ba6.mjs +383 -0
- package/lib/utils.datepicker.js.2076c2a2.mjs +61 -0
- package/lib/utils.datepicker.js.8576e2fc.js +1 -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.util.js.50d1ec9c.js +1 -0
- package/lib/utils.util.js.82cd8447.mjs +424 -0
- package/lib/view.build.b44fd7d7.js +1 -0
- package/lib/view.build.f2a9fcfb.mjs +2727 -0
- package/lib/viewList.5a25c4b6.mjs +346 -0
- package/lib/viewList.be5a5ec5.js +1 -0
- package/locale/en_US.js +48 -23
- package/locale/id_ID.js +32 -7
- package/locale/vi_VN.js +1973 -1948
- package/locale/zh_CN.js +53 -29
- package/package.json +106 -105
- package/lib/chartbi.0d1d3b58.mjs +0 -27639
- package/lib/chartbi.d3f580d6.js +0 -60
- package/lib/main.0088ac99.js +0 -1
- package/lib/main.34c14bdb.js +0 -1
- package/lib/main.4b9adacf.js +0 -1
- package/lib/main.d1239940.js +0 -1
- package/lib/messages.add7c391.js +0 -9
- package/lib/system.account.00b82418.mjs +0 -2552
- package/lib/system.account.04cb26b6.js +0 -216
- package/lib/system.config.6244fa9b.js +0 -1
- package/lib/system.datasource.32878f5f.js +0 -1
- package/lib/system.dict.d25839ec.js +0 -1
- package/lib/system.duplicatechecking.4ed8c391.mjs +0 -2142
- package/lib/system.duplicatechecking.670ee24a.js +0 -1
- package/lib/system.email.52671629.mjs +0 -7432
- package/lib/system.email.dd537fd0.js +0 -41
- package/lib/system.fieldsecurity.4947c737.js +0 -1
- package/lib/system.file.93d65d16.js +0 -1
- package/lib/system.log.252cce0b.js +0 -1
- package/lib/system.machine.4e393981.js +0 -1
- package/lib/system.notice.ab23c15b.js +0 -1
- package/lib/system.noticereceived.123b764e.js +0 -1
- package/lib/system.onlineuser.295ad7f5.js +0 -1
- package/lib/system.org.c3bb51ff.js +0 -1
- package/lib/system.permissions.967200f1.js +0 -9
- package/lib/system.plugin.f8da8731.js +0 -1
- package/lib/system.pos.22fabf30.js +0 -1
- package/lib/system.promptmanagement.639a98e1.js +0 -1
- package/lib/system.role.4cf72743.js +0 -1
- package/lib/system.sumberrules.1a5b80df.js +0 -1
- package/lib/system.team.777feecf.mjs +0 -1000
- package/lib/system.team.ad10fc96.js +0 -1
- package/lib/system.teammembers.b193dd23.js +0 -1
- package/lib/system.timers.e31fe5fd.js +0 -38
- package/lib/system.translation.d3ed3d35.js +0 -1
- package/lib/system.useraffiliation.593c9ad4.js +0 -1
- package/lib/system.webresource.25e56654.js +0 -1
- package/lib/system.welcome.ec4e941f.js +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";const g=require("./components.chartbi.e4680eaa.js"),h=require("./http.timersmanage.6e894942.js"),E=require("./utils.mixins.js.750ca50e.js"),q=require("./utils.util.js.50d1ec9c.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:{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 W=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)},G=[],U=g.normalizeComponent(Y,W,G,!1,null,"bfb78904",null,null);const Q=U.exports;const X={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 Z=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)},ee=[],te=g.normalizeComponent(X,Z,ee,!1,null,"3d08808c",null,null);const ae=te.exports;const se={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 re=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)},ie=[],ne=g.normalizeComponent(se,re,ie,!1,null,"4689b0bb",null,null);const le=ne.exports;const oe={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 ce=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)},de=[],ue=g.normalizeComponent(oe,ce,de,!1,null,"c30b0b78",null,null);const he=ue.exports;const ge=[{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"}],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:1,cycle02:2,average01:1,average02:1,checkboxList:[],radioValue:"1",checkCopy:[1],monthList:ge}},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 me=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)},fe=[],ye=g.normalizeComponent(pe,me,fe,!1,null,"4cdeddda",null,null);const be=ye.exports;const ke=[{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"}],_e={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:ke}},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 ve=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)},$e=[],xe=g.normalizeComponent(_e,ve,$e,!1,null,"63c96e39",null,null);const we=xe.exports;const Te={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 Ce=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)},Se=[],De=g.normalizeComponent(Te,Ce,Se,!1,null,"c06949e5",null,null);const Le=De.exports;const Oe={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],O=this.dateArr[5],F=this.getIndex(v,_),V=this.getIndex(k,d),R=this.getIndex(y,l),A=this.getIndex(b,o),N=this.getIndex(m,i),J=this.getIndex(O,r);const j=function(){F=0,_=v[F]},L=function(){V=0,d=k[V],j()},S=function(){R=0,l=y[R],L()},$=function(){A=0,o=b[A],S()},w=function(){N=0,i=m[N],$()};r!==O[J]&&w(),i!==m[N]&&$(),o!==b[A]&&S(),l!==y[R]&&L(),d!==k[V]&&j();e:for(let I=J;I<O.length;I++){let f=O[I];if(i>m[m.length-1]){w();continue}t:for(let x=N;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=A;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=R;c<y.length;c++){let z=y[c]<10?"0"+y[c]:y[c];if(d>k[k.length-1]){if(L(),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=V;C<k.length;C++){let M=k[C]<10?"0"+k[C]:k[C];if(_>v[v.length-1]){if(j(),C===k.length-1){if(L(),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 P=v[D]<10?"0"+v[D]:v[D];if(u!=="00"&&n!=="00"&&(t.push(f+"-"+u+"-"+n+" "+z+":"+M+":"+P),e++),e===5)break e;if(D===v.length-1){if(j(),C===k.length-1){if(L(),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 Ve=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)])},Re=[],Ae=g.normalizeComponent(Oe,Ve,Re,!1,null,"4a023d7d",null,null);const Ne=Ae.exports;const je={name:"CronTab",components:{result:Ne,min:ae,second:Q,hour:le,day:he,month:be,week:we,year:Le},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 Be=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)},Fe=[],Ie=g.normalizeComponent(je,Be,Fe,!1,null,"4c475c6c",null,null);const Ke=Ie.exports;const Je=[{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"}],ze={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:{},macroData:Je}},components:{cronTab:Ke},computed:{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 Me=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)},Pe=[],Ee=g.normalizeComponent(ze,Me,Pe,!1,null,"f7f830e1",null,null);const qe=Ee.exports,K=`#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 He={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(K)),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(K)},0)})},handleSubmit(){this.$refs.formRef.validate(a=>{if(a){let e=this.createType==1?this.monacoEditor?this.$refs.monacoEditorRef.getData():K:"",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 Ye=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)},We=[],Ge=g.normalizeComponent(He,Ye,We,!1,null,"697194d2",null,null);const Ue=Ge.exports;const Qe={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 Xe=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()]}}])})},Ze=[],et=g.normalizeComponent(Qe,Xe,Ze,!1,null,"c6249048",null,null);const tt=et.exports;const at={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 st=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)},rt=[],it=g.normalizeComponent(at,st,rt,!1,null,"70798320",null,null);const nt=it.exports;const lt={name:"GdTimers",props:{height:{type:Number,default:100}},mixins:[H,E.tablesFilter],components:{editTrigger:qe,editForm:Ue,colony:nt,childRenTable:tt},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 ot=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)},ct=[],dt=g.normalizeComponent(lt,ot,ct,!1,null,"94f6b4b0",null,null);const B=dt.exports;B.install=function(a){a.component(B.name,B)};exports.GDpackage=B;
|