gds-plus-design-vue 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/approvalModel.a26e8ff6.mjs +340 -0
- package/lib/approvalModel.cfd81971.js +1 -0
- package/lib/btnFunctionName.9aabfed0.js +1 -0
- package/lib/btnFunctionName.d08627cb.mjs +254 -0
- package/lib/btnRelation.8e608261.mjs +156 -0
- package/lib/btnRelation.cb3dc022.js +1 -0
- package/lib/businessRules.754cc398.mjs +539 -0
- package/lib/businessRules.f41f7035.js +1 -0
- package/lib/buttonRule.4483314f.mjs +396 -0
- package/lib/buttonRule.645de1d3.js +1 -0
- package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
- package/lib/chartDisplayRules.fedfefe8.js +1 -0
- package/lib/components.chartbi.470b96af.mjs +1798 -0
- package/lib/components.chartbi.e9459775.js +8 -0
- package/lib/components.coloreditor.affa0400.mjs +1505 -0
- package/lib/components.coloreditor.dbec8da6.js +6 -0
- package/lib/components.dataassign.39281072.mjs +147 -0
- package/lib/components.dataassign.b6a1bffb.js +1 -0
- package/lib/components.echarts.95ffc3b3.mjs +811 -0
- package/lib/components.echarts.d09e9850.js +4 -0
- package/lib/components.exception.11315db5.js +1 -0
- package/lib/components.exception.facf9df9.mjs +61 -0
- package/lib/components.form.56ea8f98.js +41 -0
- package/lib/components.form.a7b3ea37.mjs +7813 -0
- package/lib/components.globalheader.0a7ce959.js +1 -0
- package/lib/components.globalheader.4a5f7225.mjs +54 -0
- package/lib/components.iconselector.0c03cfc7.js +1 -0
- package/lib/components.iconselector.251c29b9.mjs +1169 -0
- package/lib/components.imgpreview.5546e541.mjs +213 -0
- package/lib/components.imgpreview.706a89f0.js +1 -0
- package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
- package/lib/components.lunccalendar.fe7db238.js +1 -0
- package/lib/components.middleware.01601349.js +1 -0
- package/lib/components.middleware.f5f4ac0f.mjs +148 -0
- package/lib/components.modaltitle.5ded43f9.mjs +127 -0
- package/lib/components.modaltitle.cc9ba616.js +1 -0
- package/lib/components.multitab.0f9da9f3.mjs +140 -0
- package/lib/components.multitab.726cff2f.js +1 -0
- package/lib/components.selecttree.1a71c963.mjs +170 -0
- package/lib/components.selecttree.2fadffca.js +1 -0
- package/lib/components.settingdrawer.1af86231.js +1 -0
- package/lib/components.settingdrawer.adc262cf.mjs +237 -0
- package/lib/components.sidemenu.03442146.mjs +277 -0
- package/lib/components.sidemenu.5107c7e3.js +1 -0
- package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
- package/lib/components.sidenavmenu.ef33de39.js +1 -0
- package/lib/components.statuschange.805a751b.mjs +116 -0
- package/lib/components.statuschange.83646c5d.js +1 -0
- package/lib/components.table.61eb5d81.js +8 -0
- package/lib/components.table.c986e58d.mjs +4650 -0
- package/lib/components.tableumy.35b465f9.mjs +453 -0
- package/lib/components.tableumy.eba43953.js +1 -0
- package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
- package/lib/components.tablevirtual.6af04c44.js +1 -0
- package/lib/components.teamsharing.68865424.js +1 -0
- package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
- package/lib/components.tooltip.ccb1717d.mjs +86 -0
- package/lib/components.tooltip.e2e21e66.js +1 -0
- package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
- package/lib/components.uploadfile.e93b500d.js +1 -0
- package/lib/components.uploadimg.3804913e.js +1 -0
- package/lib/components.uploadimg.e49707d9.mjs +192 -0
- package/lib/components.verificationcode.5a9c0220.js +1 -0
- package/lib/components.verificationcode.ead74922.mjs +71 -0
- package/lib/components.viewformdetails.3c1596ad.js +1 -0
- package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
- package/lib/components.viewloading.5b178ec5.js +1 -0
- package/lib/components.viewloading.cb7917b7.mjs +99 -0
- package/lib/components.watermark.849409ca.js +2 -0
- package/lib/components.watermark.a2521d0c.mjs +53 -0
- package/lib/components.xlsxexport.3405a00b.js +1 -0
- package/lib/components.xlsxexport.871f87d1.mjs +263 -0
- package/lib/components.xlsximport.85ce77cf.mjs +922 -0
- package/lib/components.xlsximport.e3bcb07d.js +1 -0
- package/lib/copy.b09a6d38.js +1 -0
- package/lib/copy.c0a2f16d.mjs +572 -0
- package/lib/dialogLayout.059ee256.mjs +138 -0
- package/lib/dialogLayout.cedf2865.js +1 -0
- package/lib/drawerContainer.38d7b530.mjs +154 -0
- package/lib/drawerContainer.ea7722d7.js +1 -0
- package/lib/drawerLayout.454e4921.js +1 -0
- package/lib/drawerLayout.fad843ee.mjs +119 -0
- package/lib/editForm.c199538f.mjs +434 -0
- package/lib/editForm.f9dc93ef.js +1 -0
- package/lib/flow.designer.4c83c0d3.js +1 -0
- package/lib/flow.designer.9442a995.mjs +7673 -0
- package/lib/flow.list.4a31969e.mjs +3032 -0
- package/lib/flow.list.f41ee531.js +1 -0
- package/lib/form.build.c38bf362.js +1 -0
- package/lib/form.build.fb9f905b.mjs +259 -0
- package/lib/form.designer.build.3fdf8007.js +1 -0
- package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
- package/lib/formFiled.624b8dd3.js +1 -0
- package/lib/formFiled.94fb1dce.mjs +498 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +233 -91033
- package/lib/http.appmanage.9b22ff82.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
- package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
- package/lib/http.configmanage.6cfb8ae7.js +1 -0
- package/lib/http.configmanage.c23c7fa8.mjs +34 -0
- package/lib/http.currencymanage.37ab5ced.js +1 -0
- package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
- package/lib/http.datasource.294b01e2.js +1 -0
- package/lib/http.datasource.aa5cd0d1.mjs +58 -0
- package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
- package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
- package/lib/http.duplicatechecking.ee5c414c.js +1 -0
- package/lib/http.emailmanage.1ddaa8b5.js +1 -0
- package/lib/http.emailmanage.64fd611f.mjs +18 -0
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.d3a4afd9.mjs +293 -0
- package/lib/http.filemanage.7e6e3e1a.js +1 -0
- package/lib/http.filemanage.c0de21d6.mjs +71 -0
- package/lib/http.languagemanage.2ef16159.mjs +10 -0
- package/lib/http.languagemanage.e2c098ec.js +1 -0
- package/lib/http.loginmanage.05500c29.mjs +74 -0
- package/lib/http.loginmanage.326984c3.js +1 -0
- package/lib/http.logmanage.1e12a9bd.js +1 -0
- package/lib/http.logmanage.8ba72635.mjs +82 -0
- package/lib/http.machinemanage.29d72a65.js +1 -0
- package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
- package/lib/http.main.1af1e119.mjs +517 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.menumanage.09fffb7d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.1d68e914.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
- package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
- package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
- package/lib/http.onlineusermanage.3893f897.js +1 -0
- package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
- package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.pluginmanage.54720675.mjs +82 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/http.rolemanage.da5c40e9.mjs +146 -0
- package/lib/http.solution.b10d9197.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.176d3d06.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.932ba43b.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.7adf4910.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.a9c609d5.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timersmanage.c79afb66.mjs +146 -0
- package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
- package/lib/http.timezonemanage.e0aa212f.js +1 -0
- package/lib/http.translationmanage.1f9dce46.js +1 -0
- package/lib/http.translationmanage.f8694b51.mjs +104 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.usermanage.f5491144.mjs +219 -0
- package/lib/http.webresource.1a1a768f.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.3fa2dc66.mjs +40154 -0
- package/lib/index.fe757a98.js +8 -0
- package/lib/layoutBlocks.14c77a02.js +1 -0
- package/lib/layoutBlocks.5d71a03b.mjs +401 -0
- package/lib/layouts.a662f681.js +2 -0
- package/lib/layouts.ec4f20a2.mjs +376 -0
- package/lib/main.092a2ac8.js +1 -0
- package/lib/{main.c59fc1e8.mjs → main.15237e71.mjs} +12 -10
- package/lib/main.29769f01.js +1 -0
- package/lib/main.401059c6.mjs +189 -0
- package/lib/main.447be615.js +1 -0
- package/lib/main.4e507685.mjs +231 -0
- package/lib/main.72cafa63.mjs +540 -0
- package/lib/{main.4e325110.mjs → main.73f22d9e.mjs} +9 -8
- package/lib/main.7601bd3d.mjs +166 -0
- package/lib/main.79199ac2.js +1 -0
- package/lib/main.821d081b.js +1 -0
- package/lib/main.8627466a.mjs +537 -0
- package/lib/{main.955f770e.mjs → main.88e9be9d.mjs} +4 -4
- package/lib/main.8e6f6cba.mjs +323 -0
- package/lib/main.a9a54af9.js +1 -0
- package/lib/main.e033a376.js +1 -0
- package/lib/main.e2e4ba74.js +1 -0
- package/lib/{main.be62e9a4.mjs → main.e79d9e56.mjs} +113 -188
- package/lib/main.ea3a04f4.js +1 -0
- package/lib/main.f44d8279.js +1 -0
- package/lib/messages.5f54a62e.js +9 -0
- package/lib/{messages.7e418640.mjs → messages.d4354532.mjs} +4321 -5268
- package/lib/packages.filedocument.8418d852.mjs +4039 -0
- package/lib/packages.filedocument.9b8eda0d.js +1 -0
- package/lib/page.build.4d28df9a.js +12 -0
- package/lib/page.build.78cc7396.mjs +3020 -0
- package/lib/personal.echarts.940f1cc9.mjs +696 -0
- package/lib/personal.echarts.b5a7f574.js +1 -0
- package/lib/result.0161b0e0.js +1 -0
- package/lib/result.5a9330d7.mjs +627 -0
- package/lib/router.config.79a98ab8.mjs +3105 -0
- package/lib/router.config.7fd04c30.js +1 -0
- package/lib/solution.application.3ae7c0c5.js +1 -0
- package/lib/solution.application.fdc15ffc.mjs +548 -0
- package/lib/solution.applicationmenu.67aba620.js +1 -0
- package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
- package/lib/solution.approvalflow.81b7cfb7.js +1 -0
- package/lib/solution.approvalflow.a541adcc.mjs +436 -0
- package/lib/solution.dict.addbce33.mjs +769 -0
- package/lib/solution.dict.f1c9bae6.js +1 -0
- package/lib/solution.menu.2033fa37.mjs +5834 -0
- package/lib/solution.menu.6512047f.js +1 -0
- package/lib/solution.plugin.7094dbfd.js +1 -0
- package/lib/solution.plugin.d8f057cb.mjs +347 -0
- package/lib/solution.processflow.0adf4f55.js +1 -0
- package/lib/solution.processflow.a779bd58.mjs +392 -0
- package/lib/solution.role.d35cb00d.js +1 -0
- package/lib/solution.role.d9a4b25a.mjs +456 -0
- package/lib/solution.webresources.e1421655.mjs +379 -0
- package/lib/solution.webresources.e817757c.js +1 -0
- package/lib/solution.workflow.59552b8c.mjs +395 -0
- package/lib/solution.workflow.985e1f4d.js +1 -0
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/store.config.5e5cb48a.mjs +547 -0
- package/lib/style.css +3 -3
- package/lib/system.account.1b281679.js +216 -0
- package/lib/system.account.96d5bc17.mjs +2093 -0
- package/lib/system.config.0ff45e62.js +1 -0
- package/lib/{system.config.f0d2d130.mjs → system.config.35b13003.mjs} +7 -6
- package/lib/system.datasource.4243937d.js +1 -0
- package/lib/{system.datasource.61ff56ec.mjs → system.datasource.7f582bef.mjs} +15 -64
- package/lib/{system.dict.a817cf68.mjs → system.dict.3697546d.mjs} +269 -344
- package/lib/system.dict.8e4fe6b0.js +1 -0
- package/lib/system.document.69e534a6.js +1 -0
- package/lib/system.document.8e4dbe5e.mjs +667 -0
- package/lib/system.duplicatechecking.1083eb1e.js +1 -0
- package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
- package/lib/system.email.06bb7cc1.mjs +133 -0
- package/lib/system.email.41036a31.js +1 -0
- package/lib/system.fieldsecurity.3ea880d8.js +1 -0
- package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
- package/lib/{system.file.1930d109.mjs → system.file.8ccc4569.mjs} +84 -151
- package/lib/system.file.b8e4e6a1.js +1 -0
- package/lib/system.log.14c22a7a.js +1 -0
- package/lib/{system.log.61d303bd.mjs → system.log.aad4ff54.mjs} +31 -93
- package/lib/system.machine.379beacb.js +1 -0
- package/lib/{system.machine.ed69ec93.mjs → system.machine.c47be0cc.mjs} +5 -25
- package/lib/{system.notice.bd18554e.mjs → system.notice.dc1b67cc.mjs} +1075 -1263
- package/lib/system.notice.fb151c45.js +1 -0
- package/lib/system.noticereceived.3a29d891.js +1 -0
- package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.e75bf358.mjs} +19 -27
- package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
- package/lib/system.onlineuser.fc26aff9.js +1 -0
- package/lib/system.org.b6f826e8.js +1 -0
- package/lib/{system.org.6e858bf3.mjs → system.org.dd710a91.mjs} +3 -3
- package/lib/system.permissions.75406743.mjs +972 -0
- package/lib/system.permissions.97f68887.js +1 -0
- package/lib/system.plugin.3fcf7b0b.js +1 -0
- package/lib/{system.plugin.a1f1c194.mjs → system.plugin.4b80cd95.mjs} +503 -552
- package/lib/system.pos.5a1663d8.js +1 -0
- package/lib/{system.pos.eb8fd7dd.mjs → system.pos.a3bafaaa.mjs} +31 -62
- package/lib/system.promptmanagement.53c301a3.js +1 -0
- package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
- package/lib/{system.role.d2195303.mjs → system.role.9edb5922.mjs} +601 -523
- package/lib/system.role.e164f059.js +1 -0
- package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
- package/lib/system.sumberrules.5e9cd262.js +1 -0
- package/lib/system.team.3e605266.js +1 -0
- package/lib/system.team.bb1fb40e.mjs +452 -0
- package/lib/system.teammembers.a098883b.js +1 -0
- package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.b8e53d99.mjs} +257 -199
- package/lib/system.timers.2f884e41.js +38 -0
- package/lib/{system.timers.4a3dd57d.mjs → system.timers.551c4a4b.mjs} +2202 -2278
- package/lib/system.translation.6e99c852.js +1 -0
- package/lib/{system.translation.d9488c23.mjs → system.translation.c2c1f40c.mjs} +437 -431
- package/lib/{system.user.6874aa87.mjs → system.user.b99911de.mjs} +1082 -1025
- package/lib/system.user.dffc2543.js +14 -0
- package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
- package/lib/system.useraffiliation.f8b33def.js +1 -0
- package/lib/system.webresource.1d3ed352.js +1 -0
- package/lib/{system.webresource.204911b7.mjs → system.webresource.8a8d856b.mjs} +177 -219
- package/lib/{system.welcome.79e15015.mjs → system.welcome.573a76db.mjs} +10 -3
- package/lib/system.welcome.eedf1db2.js +1 -0
- package/lib/tableDescriptions.923c4ef1.mjs +80 -0
- package/lib/tableDescriptions.b12679b0.js +1 -0
- package/lib/tcheckboxs.887d733c.mjs +52 -0
- package/lib/tcheckboxs.fe7e574a.js +1 -0
- package/lib/tcurrency.10ac9aa7.mjs +85 -0
- package/lib/tcurrency.20e959c0.js +1 -0
- package/lib/tdatepicker.54036bba.js +1 -0
- package/lib/tdatepicker.a08ad382.mjs +52 -0
- package/lib/tdictSwitch.274e9f86.js +1 -0
- package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
- package/lib/tfile.5c897827.js +1 -0
- package/lib/tfile.f63b73b9.mjs +62 -0
- package/lib/tparticipants.4698962b.mjs +56 -0
- package/lib/tparticipants.b6fb4545.js +1 -0
- package/lib/translation.mains.5cfc7a2f.js +1 -0
- package/lib/translation.mains.e6cb610b.mjs +383 -0
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.echarts.js.461a74e7.js +54 -0
- package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
- package/lib/utils.mixins.js.750ca50e.js +1 -0
- package/lib/utils.mixins.js.be01e599.mjs +41 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.885de913.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/view.build.051553d8.mjs +1578 -0
- package/lib/view.build.9af3087b.js +1 -0
- package/lib/viewList.209956c3.js +1 -0
- package/lib/viewList.c05c92be.mjs +318 -0
- package/lib/viewTree.0cd9f1a2.js +1 -0
- package/lib/viewTree.c5290360.mjs +409 -0
- package/locale/en_US.js +96 -29
- package/locale/id_ID.js +80 -13
- package/locale/vi_VN.js +2015 -1948
- package/locale/zh_CN.js +100 -33
- package/package.json +106 -105
- package/lib/chartbi.b5b6fdab.js +0 -60
- package/lib/chartbi.b6818e8e.mjs +0 -27604
- package/lib/main.6713b76c.js +0 -1
- package/lib/main.a28f67df.js +0 -1
- package/lib/main.b4a303dc.js +0 -1
- package/lib/main.f3ae0933.js +0 -1
- package/lib/messages.1346558e.js +0 -9
- package/lib/system.account.64fbdaeb.mjs +0 -2552
- package/lib/system.account.7c43a95e.js +0 -216
- package/lib/system.config.93d6cb7d.js +0 -1
- package/lib/system.datasource.4bb39222.js +0 -1
- package/lib/system.dict.5a2e60fe.js +0 -1
- package/lib/system.duplicatechecking.65b77e64.js +0 -1
- package/lib/system.duplicatechecking.751664ba.mjs +0 -2142
- package/lib/system.email.2f53252e.mjs +0 -7432
- package/lib/system.email.fec5ae26.js +0 -41
- package/lib/system.fieldsecurity.920adca4.js +0 -1
- package/lib/system.file.5a9a5e0e.js +0 -1
- package/lib/system.log.b309c0e0.js +0 -1
- package/lib/system.machine.9368e508.js +0 -1
- package/lib/system.notice.ff62c06a.js +0 -1
- package/lib/system.noticereceived.9550818b.js +0 -1
- package/lib/system.onlineuser.6cf4fe24.js +0 -1
- package/lib/system.org.0c67131d.js +0 -1
- package/lib/system.permissions.af548a3b.js +0 -9
- package/lib/system.permissions.cc5ac7ac.mjs +0 -212
- package/lib/system.plugin.83d03fb2.js +0 -1
- package/lib/system.pos.eae2051e.js +0 -1
- package/lib/system.promptmanagement.04501417.js +0 -1
- package/lib/system.role.e623c50b.js +0 -1
- package/lib/system.sumberrules.a01e1805.js +0 -1
- package/lib/system.team.0cebcde7.js +0 -1
- package/lib/system.team.27a6d5d5.mjs +0 -1000
- package/lib/system.teammembers.b67f003f.js +0 -1
- package/lib/system.timers.b27fcb6d.js +0 -38
- package/lib/system.translation.d2c982ed.js +0 -1
- package/lib/system.user.0664c21c.js +0 -14
- package/lib/system.useraffiliation.6b7a1612.js +0 -1
- package/lib/system.webresource.5de18052.js +0 -1
- package/lib/system.welcome.ec7aa744.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const d=require("./chartbi.b5b6fdab.js"),n=require("./system.team.0cebcde7.js"),l=require("./messages.1346558e.js"),m={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"sys_teamid",label:"\u540D\u79F0",type:"slot",slotType:"sys_teamid",align:"left",fixed:!0,width:"220"},{transKey:"gd.team.member",prop:"sys_userid",label:"\u6210\u5458",type:"slot",slotType:"sys_userid",align:"left",width:"220"},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",type:"slot",slotType:"account",align:"left",width:"200"},{transKey:"gd.user.tel",prop:"phone",label:"\u7535\u8BDD",type:"slot",slotType:"phone",align:"left",width:"180"},{transKey:"gd.user.email",prop:"email",label:"\u90AE\u7BB1",type:"slot",slotType:"email",align:"left",width:"180"},{transKey:"gd.user.employeeID",prop:"employeeid",label:"\u5DE5\u53F7",type:"slot",slotType:"employeeid",align:"left",width:"160"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTeam:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTeam:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTeam:delete"}]}}};const h={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{width:"60%",visible:!1,fullScreen:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],title:"",confirmLoading:!1,type:1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{id:"",sys_userid:"",sys_teamid:""},dataList:[],columnList:[],ownerid:"",firstLoading:!1,firstLoading1:!1}},methods:{lookupSeled(t){t.table.tablename=="sys_team"?(this.columnList=[...t.fkData],this.$set(this.ruleFormData,"sys_teamid",t.data[0])):t.table.tablename=="sys_user"&&(this.dataList=[...t.fkData],this.$set(this.ruleFormData,"sys_userid",t.data[0]))},lookup(t,e){let s={effectType:"fk",fkEntityName:e==1?"sys_user":"sys_team",val:t||[]};this.$refs.msgSearch.open(s)},open(t){this.visible=!0,this.fullScreen=!1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.type=t?2:1,t&&this.getDetail(t.id)},getDetail(t){t!=""&&(this.dataList=[],n.sysTeamMemberDetail({id:t}).then(e=>{if(e.code==200){let s=e.data;this.dataList.push({id:s.sys_userid,name:s.username}),this.columnList.push({id:s.sys_teamid,name:s.teamname});let i={id:s.id,sys_userid:s.sys_userid,sys_teamid:s.sys_teamid};this.firstLoading=!0,this.firstLoading1=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=i},0)})}}))},searchData(t){this.dataList=[],l.baseFkList({fkEntityName:"sys_user",id:t.administratorid}).then(e=>{e.code==200&&(this.firstLoading=!0,e.data.length>0?this.dataList=e.data:this.dataList.push({id:t.administratorid,name:t.administratorname}))})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(t){this.dataList=[],this.fetching=!0,l.baseFkList({fkEntityName:"sys_user",name:t}).then(e=>{e.code==200&&(this.dataList=e.data)})},searchList1(){this.firstLoading1||(this.userClick(""),this.firstLoading1=!0)},userClick(t){this.columnList=[],this.fetching=!0,l.baseFkList({fkEntityName:"sys_team",name:t}).then(e=>{e.code==200&&(this.columnList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(t=>{t&&(this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(t){this.confirmLoading=!0,delete t.id,n.sysTeamMemberAdd(t).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(t){this.confirmLoading=!0,n.sysTeamMemberEdit(t).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.firstLoading=!1,this.firstLoading1=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={sys_userid:"",sys_teamid:""}},getDictionary(t){return this.$options.filters.dictData(t)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var f=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:e.width,visible:e.visible,fullscreen:e.fullScreen,footer:null,top:"80px","modal-append-to-body":e.modalAppendToBody,"append-to-body":e.appendToBody,"close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullScreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(i){i.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.member","\u7528\u6237"),prop:"sys_userid"}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,"remote-method":e.adminClick},on:{focus:e.searchList},model:{value:e.ruleFormData.sys_userid,callback:function(i){e.$set(e.ruleFormData,"sys_userid",i)},expression:"ruleFormData.sys_userid"}},e._l(e.dataList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_userid,1)}}})])],1)])],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:e.$i18nt("gd.team.team","\u56E2\u961F"),prop:"sys_teamid"}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,"remote-method":e.userClick},on:{focus:e.searchList1},model:{value:e.ruleFormData.sys_teamid,callback:function(i){e.$set(e.ruleFormData,"sys_teamid",i)},expression:"ruleFormData.sys_teamid"}},e._l(e.columnList,function(i,a){return s("el-option",{key:i.id+"&"+a,attrs:{label:i.name,value:i.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(i){return e.lookup(e.ruleFormData.sys_teamid,2)}}})])],1)])],1)],1)],1)],1)])],1),s("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},p=[],g=d.normalizeComponent(h,f,p,!1,null,"4b8d68cf",null,null);const y=g.exports;const _={name:"GdTeamMembers",mixins:[l.tablesFilter,m],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:t=>this.getList(t).then(e=>e)}},computed:{getHeight(){return this.height},getQueryParam(){let t=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))t.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let s=this.queryParam[e],i=s[0].split(" ")[0],a=s[1].split(" ")[0];t.set(`${e}Start`,`${i} 00:00:00`),t.set(`${e}End`,`${a} 23:59:59`)}}else t.set(e,this.queryParam[e]);return Object.fromEntries(t)},...d.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{editForm:y},methods:{getList(t){return n.sysTeamMembers(Object.assign(t,this.getQueryParam)).then(e=>{if(e.code==200)return e.data})},editForm(t){this.transKey="gd.btn.edit",this.$refs.editForm.open(t)},add(){this.$refs.editForm.open()},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,e,s)=>{this.delHand(t,e,s)}})},delHand(t,e,s){if(t!=="confirm"){s();return}let i=[],a=n.sysTeamMemberBatchDel({memberIds:this.selectedRowKeys}).then(o=>o);i.push(a),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(o=>{const c=o.filter(u=>!u.success);c.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+c[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(t,e){let s=this.$options.filters.dictData(e).filter(i=>i.code==t)[0];return s!=null&&s.colour?s.colour:null},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var b=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"sys_teamid",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"teamname",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"sys_userid",fn:function({column:i,row:a}){return[a.sys_userid?s("span",[e._v(" "+e._s(a.username)+" ")]):e._e()]}},{key:"account",fn:function({column:i,row:a}){return[a.account?s("span",[e._v(" "+e._s(a.account)+" ")]):e._e()]}},{key:"phone",fn:function({column:i,row:a}){return[a.phone?s("span",[e._v(" "+e._s(a.phone)+" ")]):e._e()]}},{key:"email",fn:function({column:i,row:a}){return[a.email?s("span",[e._v(" "+e._s(a.email)+" ")]):e._e()]}},{key:"employeeid",fn:function({column:i,row:a}){return[a.employeeid?s("span",[e._v(" "+e._s(a.employeeid)+" ")]):e._e()]}}])})],1),s("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},v=[],$=d.normalizeComponent(_,b,v,!1,null,"bffc1b29",null,null);const r=$.exports;r.install=function(t){t.component(r.name,r)};exports.GDpackage=r;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("./chartbi.b5b6fdab.js"),P=require("./messages.1346558e.js");function E(a){return window.axios({url:"/SysJob/pageJobDetail",method:"post",data:a})}function q(a){return window.axios({url:"/SysJob/jobTriggerList",method:"get",params:a})}function H(a){return window.axios({url:"/SysJob/pauseAllJob",method:"post",data:a})}function Y(a){return window.axios({url:"/SysJob/startAllJob",method:"post",data:a})}function W(a){return window.axios({url:"/SysJob/pauseJob",method:"post",data:a})}function G(a){return window.axios({url:"/SysJob/startJob",method:"post",data:a})}function U(a){return window.axios({url:"/SysJob/pauseTrigger",method:"post",data:a})}function Q(a){return window.axios({url:"/SysJob/startTrigger",method:"post",data:a})}function X(a){return window.axios({url:"/SysJob/cancelSleep",method:"post",data:a})}function Z(a){return window.axios({url:"/SysJob/persistAll",method:"post",data:a})}function ee(a){return window.axios({url:"/SysJob/jobClusterList",method:"get",params:a})}function te(a){return window.axios({url:"/SysJob/addJobDetail",method:"post",data:a})}function ae(a){return window.axios({url:"/SysJob/updateJobDetail",method:"post",data:a})}function se(a){return window.axios({url:"/SysJob/deleteJobDetail",method:"post",data:a})}function re(a){return window.axios({url:"/SysJob/addJobTrigger",method:"post",data:a})}function ie(a){return window.axios({url:"/SysJob/updateJobTrigger",method:"post",data:a})}function ne(a){return window.axios({url:"/SysJob/deleteJobTrigger",method:"post",data:a})}function le(a){return window.axios({url:"/SysJob/runJob",method:"post",data:a})}const oe={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 ce={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 de=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)},ue=[],he=h.normalizeComponent(ce,de,ue,!1,null,"bfb78904",null,null);const ge=he.exports;const pe={props:{cron:{type:Object,default:{second:"*",min:"*",hour:"*",day:"*",month:"*",week:"?",year:""}},check:{type:Function,default:()=>{}}},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},radioStyle:{display:"block",height:"30px",lineHeight:"30px",marginBottom:"12px"},cycle01:0,cycle02:1,average01:0,average02:1,checkboxList:[],radioValue:"1",checkCopy:[0]}},computed:{averageTotal(){let a=this.check(this.average01,0,58),e=this.check(this.average02,1,59-this.average01);return a+"/"+e},cycleTotal(){let a=this.check(this.cycle01,0,58),e=this.check(this.cycle02,this.cycle01+1,59);return a+"-"+e}},watch:{"cron.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 me=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)},fe=[],ye=h.normalizeComponent(pe,me,fe,!1,null,"3d08808c",null,null);const be=ye.exports;const ke={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 _e=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)},ve=[],$e=h.normalizeComponent(ke,_e,ve,!1,null,"4689b0bb",null,null);const we=$e.exports;const xe={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 Te=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)},Ce=[],Se=h.normalizeComponent(xe,Te,Ce,!1,null,"c30b0b78",null,null);const De=Se.exports;const Le=[{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"}],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],monthList:Le}},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 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.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)},Re=[],Ae=h.normalizeComponent(Oe,Ve,Re,!1,null,"4cdeddda",null,null);const Ne=Ae.exports;const je=[{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"}],Be={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:je}},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 Fe=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)},Je=[],Ie=h.normalizeComponent(Be,Fe,Je,!1,null,"63c96e39",null,null);const Ke=Ie.exports;const ze={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 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.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)},Pe=[],Ee=h.normalizeComponent(ze,Me,Pe,!1,null,"c06949e5",null,null);const qe=Ee.exports;const He={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(),k=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 _=this.dateArr[0],b=this.dateArr[1],f=this.dateArr[2],y=this.dateArr[3],p=this.dateArr[4],L=this.dateArr[5],B=this.getIndex(_,k),O=this.getIndex(b,d),V=this.getIndex(f,l),R=this.getIndex(y,o),A=this.getIndex(p,i),I=this.getIndex(L,r);const N=function(){B=0,k=_[B]},D=function(){O=0,d=b[O],N()},C=function(){V=0,l=f[V],D()},v=function(){R=0,o=y[R],C()},w=function(){A=0,i=p[A],v()};r!==L[I]&&w(),i!==p[A]&&v(),o!==y[R]&&C(),l!==f[V]&&D(),d!==b[O]&&N();e:for(let F=I;F<L.length;F++){let m=L[F];if(i>p[p.length-1]){w();continue}t:for(let $=A;$<p.length;$++){let u=p[$];if(u=u<10?"0"+u:u,o>y[y.length-1]){if(v(),$===p.length-1){w();continue e}continue}a:for(let x=R;x<y.length;x++){let n=y[x],g=n<10?"0"+n:n;if(l>f[f.length-1]){if(C(),x===y.length-1){if(v(),$===p.length-1){w();continue e}continue t}continue}if(this.checkDate(m+"-"+u+"-"+g+" 00:00:00")!==!0&&this.dayRule!=="workDay"&&this.dayRule!=="lastWeek"&&this.dayRule!=="lastDay"){v();continue t}if(this.dayRule==="lastDay"){if(this.checkDate(m+"-"+u+"-"+g+" 00:00:00")!==!0)for(;n>0&&this.checkDate(m+"-"+u+"-"+g+" 00:00:00")!==!0;)n--,g=n<10?"0"+n:n}else if(this.dayRule==="workDay"){if(this.checkDate(m+"-"+u+"-"+g+" 00:00:00")!==!0)for(;n>0&&this.checkDate(m+"-"+u+"-"+g+" 00:00:00")!==!0;)n--,g=n<10?"0"+n:n;let c=this.formatDate(new Date(m+"-"+u+"-"+g+" 00:00:00"),"week");c===1?(n++,g=n<10?"0"+n:n,this.checkDate(m+"-"+u+"-"+g+" 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(m+"-"+u+"-"+n+" 00:00:00"),"week");if(this.dayRuleSup.indexOf(c)<0){if(x===y.length-1){if(v(),$===p.length-1){w();continue e}continue t}continue}}else if(this.dayRule==="assWeek"){let c=formatDate(new Date(m+"-"+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(m+"-"+u+"-"+g+" 00:00:00")!==!0)for(;n>0&&checkDate(m+"-"+u+"-"+g+" 00:00:00")!==!0;)n--,g=n<10?"0"+n:n;let c=formatDate(new Date(m+"-"+u+"-"+g+" 00:00:00"),"week");this.dayRuleSup<c?n-=c-this.dayRuleSup:this.dayRuleSup>c&&(n-=7-(this.dayRuleSup-c))}n=n<10?"0"+n:n;s:for(let c=V;c<f.length;c++){let K=f[c]<10?"0"+f[c]:f[c];if(d>b[b.length-1]){if(D(),c===f.length-1){if(C(),x===y.length-1){if(v(),$===p.length-1){w();continue e}continue t}continue a}continue}r:for(let T=O;T<b.length;T++){let z=b[T]<10?"0"+b[T]:b[T];if(k>_[_.length-1]){if(N(),T===b.length-1){if(D(),c===f.length-1){if(C(),x===y.length-1){if(v(),$===p.length-1){w();continue e}continue t}continue a}continue s}continue}for(let S=B;S<=_.length-1;S++){let M=_[S]<10?"0"+_[S]:_[S];if(u!=="00"&&n!=="00"&&(t.push(m+"-"+u+"-"+n+" "+K+":"+z+":"+M),e++),e===5)break e;if(S===_.length-1){if(N(),T===b.length-1){if(D(),c===f.length-1){if(C(),x===y.length-1){if(v(),$===p.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(),k=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 k+1},checkDate(a){let e=new Date(a),t=this.formatDate(e);return a===t}},mounted(){this.expressionChange()}};var Ye=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)])},We=[],Ge=h.normalizeComponent(He,Ye,We,!1,null,"4a023d7d",null,null);const Ue=Ge.exports;const Qe={name:"CronTab",components:{result:Ue,min:be,second:ge,hour:we,day:De,month:Ne,week:Ke,year:qe},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 Xe=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)},Ze=[],et=h.normalizeComponent(Qe,Xe,Ze,!1,null,"4c475c6c",null,null);const tt=et.exports;const at=[{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"}],st={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:at}},components:{cronTab:tt},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,re(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,ie(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 rt=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)},it=[],nt=h.normalizeComponent(st,rt,it,!1,null,"f7f830e1",null,null);const lt=nt.exports,J=`#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 ot={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)},...h.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(J)),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(J)},0)})},handleSubmit(){this.$refs.formRef.validate(a=>{if(a){let e=this.createType==1?this.monacoEditor?this.$refs.monacoEditorRef.getData():J:"",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,te(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,ae(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 ct=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)},dt=[],ut=h.normalizeComponent(ot,ct,dt,!1,null,"697194d2",null,null);const ht=ut.exports;const gt={props:{columns:{type:Array,default:()=>[]},size:{type:String,default:""}},data(){return{jobId:"",customSize:"",innerTableLoadData:a=>q({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 pt=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()]}}])})},mt=[],ft=h.normalizeComponent(gt,pt,mt,!1,null,"c6249048",null,null);const yt=ft.exports;const bt={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=>ee(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:{...h.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 kt=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)},_t=[],vt=h.normalizeComponent(bt,kt,_t,!1,null,"70798320",null,null);const $t=vt.exports;const wt={name:"GdTimers",props:{height:{type:Number,default:100}},mixins:[oe,P.tablesFilter],components:{editTrigger:lt,editForm:ht,colony:$t,childRenTable:yt},data(){return{uuids:"",queryParam:{},sourceData:[],selectedRowKeys:[],currentExpandRow:[],sourceData:[],customSize:this.tableSize,loadData:a=>E(Object.assign(a,this.queryParam)).then(e=>{let t=[];return e.data.rows.forEach(s=>{t.push(Object.assign(s,{loading:!1,uuid:h.uuid(8)}))}),this.sourceData=t,this.expandedRowKeys=[],Object.assign({...e.data},{rows:t})})}},computed:{getHeight(){return this.height},...h.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?se:ne,d=e==1?{jobId:a.jobid}:{jobId:a.jobid,triggerId:a.triggerid};l(d).then(k=>{if(o(),i.confirmButtonLoading=!1,i.cancelButtonLoading=!1,i.showCancelButton=!0,!k.success){s.$message.error(s.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25: ")+k.message);return}s.$message.success(s.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),e==1?s.refresh():this.updataTriggerTableData(a)}).catch(k=>{s.$message.error(s.$i18nt("gd.error.error","\u9519\u8BEF")+k.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,Y().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().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,X().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,Z().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?G:W)({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?Q:U)({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,le({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 xt=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)},Tt=[],Ct=h.normalizeComponent(wt,xt,Tt,!1,null,"94f6b4b0",null,null);const j=Ct.exports;j.install=function(a){a.component(j.name,j)};exports.GDpackage=j;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./system.promptmanagement.04501417.js"),o=require("./chartbi.b5b6fdab.js"),u=require("./messages.1346558e.js");const h={props:{openPermissions:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},tmtype:{type:String,default:""}},data(){return{visible:!1,mockData:[],targetKeys:[],translationDetail:{name:"",langs:[]},confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,addData:null,fullScreen:!1,width:"800px",errInit:null,ruleFormData:{defaulttext:"",name:"",langs:"",type:"3",hintcatalogid:""},rules:{defaulttext:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{},methods:{toggleFullscreen(){this.fullScreen=!this.fullScreen},changeText(e){let t=[...this.translationDetail.langs];t.map(s=>(s.description=s.languagecode.replace(/-/g,"_")==="zh_CN"?e:s.description,s)),this.translationDetail.langs=[...t]},changeLanguage(e,t){t.languagecode.replace(/-/g,"_")==="zh_CN"&&(this.ruleFormData.defaulttext=e)},init(e){this.fullScreen=!1,this.visible=!0,this.type=e?2:1,this.title=e?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.openPermissions&&(this.sysViewButtons=this.sysViewButtons.map(t=>(t.name=e?"sysTranslation:edit":"sysTranslation:add",t))),e?(this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData.defaulttext=e.defaulttext,this.ruleFormData.id=e.id,this.ruleFormData.name=e.name,this.ruleFormData.hintcatalogid=e.hintcatalogid,this.ruleFormData.type=e.type.toString()},0)}),this.sysTranslationDetail(e.id)):(this.getAllLanguage(),this.tmtype==="translationManagement"&&(this.ruleFormData.type="2"))},editInit(e){if(this.confirmLoading=!0,this.title=this.$i18nt("gd.https.edit"),this.visible=!0,this.openPermissions&&(this.sysViewButtons=this.sysViewButtons.map(t=>(t.name="sysTranslation:edit",t))),!e||e.key===""){this.init(null);return}n.sysTranslationPage({name:e.key}).then(t=>{if(t.code==200){let s=t.data.rows[0],a=e.list.filter(i=>i.code.replace(/-/g,"_")==="zh_CN")[0];s!==void 0&&s.defaulttext===""&&(s=Object.assign(s,{defaulttext:a.val})),s!==void 0?this.init(s):(this.ruleFormData=Object.assign(this.ruleFormData,{defaulttext:e.list[0]?e.list[0].val:"",name:e.key}),this.addData=e.list.length>0?{langs:e.list}:null,this.init(null),this.errInit=e.key,this.$emit("err",e.transKey),this.$message.error(this.$i18nt("gd.translation.errTip","\u6570\u636E\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u6DFB\u52A0\uFF01")))}})},addInit(e){if(e===""){this.init(null);return}let t=JSON.parse(e);this.addData=t,this.init(null),this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData.defaulttext=t.langs[0].val,this.ruleFormData.name=this.errInit?this.errInit:t.name},0)})},add(e){this.confirmLoading=!0,delete e.id,n.sysTranslationAdd(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",e),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+t.message)}).finally(t=>{this.confirmLoading=!1})},edit(e){this.confirmLoading=!0,n.sysTranslationEdit(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok",e),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25: ")+t.message)}).finally(t=>{this.confirmLoading=!1})},getAllLanguage(){this.confirmLoading=!0,n.GetAllLanguage().then(e=>{let t=e.data;this.addData&&t.map(s=>{let a=this.addData.langs.filter(i=>i.code==s.languagecode)[0];return s.languagecode=s.languagecode.replace(/-/g,"_"),s.description=a===void 0?"":a.val,s}),this.translationDetail.langs=t,this.confirmLoading=!1})},sysTranslationDetail(e){this.confirmLoading=!0,n.sysTranslationDetail({id:e}).then(t=>{let s=t.data&&t.data.langs?t.data.langs:[];s.map(a=>(a.languagecode=a.languagecode.replace(/-/g,"_"),a)),this.translationDetail=Object.assign(t.data,{langs:s}),this.confirmLoading=!1})},filterOption(e,t){return t.description.indexOf(e)>-1},handleChange(e,t,s){this.targetKeys=e},handleSubmit(){this.$refs.ruleForm.validate(e=>{if(e){const t={...this.ruleFormData,langs:this.translationDetail.langs||[],name:this.ruleFormData.name||this.translationDetail.name};this.type==1?this.add(t):this.edit(t)}})},getDictionary(e){return this.$options.filters.dictData(e)},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.$refs.ruleForm.resetFields(),this.ruleFormData={defaulttext:"",name:"",langs:"",id:"",type:"",hintcatalogid:""},this.translationDetail={name:"",langs:[]},this.addData=null,this.errInit=null,this.$emit("closed")},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()}}};var m=function(){var t=this,s=t._self._c;return s("el-dialog",{class:t.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:t.width,visible:t.visible,fullscreen:t.fullScreen,footer:null,top:"80px","modal-append-to-body":t.modalAppendToBody,"append-to-body":t.appendToBody,"show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.title,fullscreen:t.fullScreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:t.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{rules:t.rules,model:t.ruleFormData,"label-width":"160px"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"defaulttext"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" "+t._s(t.$i18nt("gd.translation.value"))+"\xA0 "),s("el-tooltip",{attrs:{content:t.$i18nt("gd.translation.valueTip"),placement:"top"}},[s("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.type!=1},on:{input:t.changeText},model:{value:t.ruleFormData.defaulttext,callback:function(a){t.$set(t.ruleFormData,"defaulttext",a)},expression:"ruleFormData.defaulttext"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"name"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(" "+t._s(t.$i18nt("gd.translation.key"))+"\xA0 "),s("el-tooltip",{attrs:{content:t.$i18nt("gd.translation.keyTip"),placement:"top"}},[s("i",{staticClass:"el-icon-question"})])]},proxy:!0}])},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.type!=1},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t.tmtype==="translationManagement"?s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{prop:"type"},scopedSlots:t._u([{key:"label",fn:function(){return[t._v(t._s(t.$i18nt("gd.translation.type"))+"\xA0")]},proxy:!0}],null,!1,1857044530)},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"","collapse-tags":""},model:{value:t.ruleFormData.type,callback:function(a){t.$set(t.ruleFormData,"type",a)},expression:"ruleFormData.type"}},t._l(t.getDictionary("translation_type"),function(a){return s("el-option",{key:a.code,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.name),value:a.code}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name)))])])}),1)],1):t._e(),s("el-divider",{attrs:{dashed:""}}),t._l(this.translationDetail.langs,function(a){return[s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:a.languagename}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",autosize:""},on:{input:function(i){return t.changeLanguage(i,a)}},model:{value:a.description,callback:function(i){t.$set(a,"description",i)},expression:"item.description"}})],1)]})],2)],1)])],1)},g=[],p=o.normalizeComponent(h,m,g,!1,null,"98493209",null,null);const c=p.exports;const f={data(){return{visible:!1,solutionId:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"save",icon:"el-icon-document-checked"}],confirmLoading:!1,type:1,record:{},advanced:!1,fullScreen:!1,width:"800px",fileList:[]}},computed:{title(){return this.$i18nt("gd.web.selectFile")}},methods:{handleRemove(e){const t=this.fileList.indexOf(e),s=this.fileList.slice();s.splice(t,1),this.fileList=s},beforeUpload(e){return this.fileList=[e],!1},toggleFullscreen(){this.fullScreen=!this.fullScreen},open(e){this.fileList=[],this.fullScreen=!1,this.visible=!0},handleSubmit(){this.confirmLoading=!0;let e=new FormData;e.append("file",this.fileList[0]),u.sysFileUpload(e).then(t=>{t.code==200?this.translationImport(t):(this.confirmLoading=!1,this.$message.error(t.message))}).catch(t=>{this.$message.error("\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5"),this.confirmLoading=!1})},translationImport(e){let t={fileId:e.data};n.sysTranslationImport(t).then(s=>{this.confirmLoading=!1,s.success?(this.closed(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok")):this.$message.error(s.message)})},closed(){this.selectedRowKeys=[],this.visible=!1},doEvent(e){let t=e.item.functionName;this[t]&&this[t]()}}};var y=function(){var t=this,s=t._self._c;return s("el-dialog",{class:t.fullScreen?"gd-dialog":"gd-dialog gd-dialog-fangda",attrs:{width:t.width,visible:t.visible,fullscreen:t.fullScreen,footer:null,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},cancel:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,confirmLoading:t.confirmLoading,visible:t.visible,fullscreen:t.fullScreen,buttons:t.sysViewButtons,showClose:!0},on:{changeEvent:t.doEvent}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("div",{class:t.fullScreen?"modal-bodyq":"modal-body"},[s("el-alert",{staticStyle:{"margin-bottom":"12px"},attrs:{title:t.$i18nt("gd.translation.importTip","\u9009\u62E9\u8981\u5BFC\u5165\u7684(.xlsx)\u6587\u4EF6"),type:"info","show-icon":"",closable:!1}}),s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{md:20,sm:24}},[s("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:"","file-list":t.fileList,remove:t.handleRemove,"before-upload":t.beforeUpload,accept:".xlsx"}},[s("el-button",{attrs:{id:"upload"}},[s("i",{staticClass:"el-icon-upload2"}),t._v(" "+t._s(t.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1)],1)],1)])],2)},b=[],_=o.normalizeComponent(f,y,b,!1,null,"4232173a",null,null);const $=_.exports;const v={props:{height:{type:Number,default:100}},name:"GdTranslationList",components:{editForm:c,timport:$},data(){return{sysViewButtons:[{displayName:"\u521D\u59CB\u5316\u7FFB\u8BD1",functionName:"initialize",show:!0,transKey:"gd.translation.initialize",icon:"el-icon-refresh",btnType:"danger",name:"sysTranslation:initialize"},{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTranslation:add"},{displayName:"\u7F16\u8F91",functionName:"editForm",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTranslation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTranslation:delete"},{displayName:"\u5BFC\u5165",functionName:"transimport",show:!0,transKey:"gd.btn.import",icon:"gd-icon-daoru1",name:"sysTranslation:import"},{displayName:"\u5BFC\u51FA",functionName:"transexport",show:!0,transKey:"gd.btn.export",icon:"gd-icon-daoru",name:"sysTranslation:export"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",name:"sysTranslation:release"}],advanced:!1,queryParam:{},columns:[{type:"selection",width:"60",fixed:!0},{label:"\u7FFB\u8BD1\u503C(value)",prop:"defaulttext",align:"left",type:"slot",slotType:"defaulttext",transKey:"gd.translation.value",width:"260"},{label:"\u5BF9\u5E94\u503C(key)",prop:"name",transKey:"gd.translation.key",align:"left",width:"360"},{label:"\u7C7B\u578B",prop:"type",type:"slot",slotType:"type",align:"left",transKey:"gd.translation.type",width:"160"},{label:"\u72B6\u6001",prop:"statecodes",type:"slot",slotType:"statecodes",align:"left",transKey:"gd.translation.stateCodes",width:"160"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createdtime",align:"center",transKey:"gd.web.creationTime",width:"180"}],loadData:e=>n.sysTranslationPage(Object.assign(e,this.queryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],state:!1,quickQuery:!0,seeQuerys:!1}},computed:{stylew(){return this.seeQuerys?"width: calc(100% - 356px);":""},y(){let e=this.getBntnShow?0:38,t=this.quickQuery?4:0;return this.screenHeight-232-t+e},getBntnShow(){let e=this.sysViewButtons.filter(t=>t.name&&this.$hasPerm(t.name));return this.crumbsState?!0:e.length>0},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},getHeight(){return this.height},...o.mapGetters(["tableSize","tablePageSize","screenHeight","multiTab","crumbsState"])},methods:{changeWid(e){this.seeQuerys=e},reset(){this.queryParam={}},query(){this.$refs.table.refresh(!0)},release(){let e=this;this.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{a(),t==="confirm"&&(s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,n.deployTranslation().then(i=>{a(),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i.success?(e.$message.success(e.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message)}).catch(i=>{e.$message.error(e.$i18nt("gd.error.error")+i.message)}))}})},getPopupContainer(e){return e.parentElement},cache(){this.formLoading=!0,n.sysTranslationCache().then(e=>{e.success?this.$message.success(this.$i18nt("gd.https.operateSucc")):this.$message.error(this.$i18nt("gd.https.operateFail")+e.message),this.formLoading=!1})},transexport(){if(this.state)return;this.state=!0;const e=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});n.sysTranslationExport({}).then(t=>{this.exportWay(t,e)}).catch(t=>{e.close(),this.$message.error("err!")})},exportWay(e,t){if(e){const s=new Blob([e.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=URL.createObjectURL(s),i=document.createElement("a");i.style.display="none",i.href=a;let d=new Date().getTime();i.download=`translation${d}`,i.click(),URL.revokeObjectURL(i.href),setTimeout(()=>{this.state=!1,t.close()},1e3)}else t.close(),setTimeout(()=>{this.statu=!1},1e3),this.$nextTick(()=>{setTimeout(()=>{this.$message.error(e.message)},0)})},transimport(){this.$refs.timport.open()},add(){this.$refs.editForm.init(null)},editForm(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne"));return}this.$refs.editForm.init(this.selectedRows[0])},del(){let e=this;if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u8BA4\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(a(),t==="confirm")return new Promise((i,d)=>{n.sysTranslationDelete({ids:e.selectedRowKeys.join(",")}).then(l=>{l.success?(e.$message.success(e.$i18nt("gd.https.delSucc")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.delFail")+l.message),i()}).catch(l=>{e.$message.error(e.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},initialize(){let e=this;this.$confirm(this.$i18nt("gd.https.initializeTip","\u662F\u5426\u521D\u59CB\u5316\u7FFB\u8BD1?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.translation.initializeOk","\u7ACB\u5373\u521D\u59CB\u5316"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(a(),t==="confirm")return new Promise((i,d)=>{n.sysTranslationInit({}).then(l=>{l.success?(e.$message.success(e.$i18nt("gd.https.operateSucc")),e.handleOk()):e.$message.error(e.$i18nt("gd.https.operateFail")+l.message),i()}).catch(l=>{e.$message.error(e.$i18nt("gd.error.error")+l.message)})}).catch(()=>console.log("Oops errors!"))}})},handleOk(){this.$refs.table.refresh()},getDictionary(e){return this.$options.filters.dictData(e)},dictSwitch(e,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==e)[0];return s!=null&&s.colour?s.colour:""},onSelectChange(e,t){this.selectedRowKeys=e,this.selectedRows=t},doEvent(e){let t=e.item.functionName;this[t]()}}};var w=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{height:t.getHeight,columns:t.columns,dataSource:t.loadData,selectedRowKeys:t.selectedRowKeys,size:t.tableSize,pageSize:t.tablePageSize,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([t.quickQuery?{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"300px","margin-right":"12px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.translation.value"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.query.apply(null,arguments)}},model:{value:t.queryParam.description,callback:function(a){t.$set(t.queryParam,"description",a)},expression:"queryParam.description"}}),s("div",{staticClass:"table-operator-search",on:{click:t.query}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"300px"}},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.translation.key"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.query.apply(null,arguments)}},model:{value:t.queryParam.name,callback:function(a){t.$set(t.queryParam,"name",a)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:t.query}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0}:null,{key:"defaulttext",fn:function({row:a}){return[s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(i){return t.$refs.editForm.init(a)}}},[t._v(" "+t._s(a.defaulttext)+" ")])]}},{key:"type",fn:function(a){return[t.dictSwitch(a.row.type,"translation_type")?s("el-tag",{attrs:{color:t.dictSwitch(a.row.type,"translation_type")}},[t._v(" "+t._s(t._f("dictType")("translation_type",a.row.type))+" ")]):s("span",[t._v(t._s(t._f("dictType")("translation_type",a.row.type)))])]}},{key:"statecodes",fn:function(a){return[t.dictSwitch(a.row.statecodes,"state_code")?s("el-tag",{attrs:{effect:"dark",color:t.dictSwitch(a.row.statecodes,"state_code")}},[t._v(" "+t._s(t._f("dictType")("state_code",a.row.statecodes))+" ")]):s("span",[t._v(t._s(t._f("dictType")("state_code",a.row.statecodes)))])]}}],null,!0)})],1),s("editForm",{ref:"editForm",attrs:{tmtype:"translationManagement",openPermissions:!0},on:{ok:t.handleOk}}),s("timport",{ref:"timport",on:{ok:t.handleOk}})],1)},x=[],k=o.normalizeComponent(v,w,x,!1,null,"7d5985b0",null,null);const r=k.exports;r.install=function(e){e.component(r.name,r)};exports.GDpackage=r;exports.editForm=c;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";const x=require("./system.notice.ff62c06a.js"),w=require("./system.account.7c43a95e.js"),T=require("./chartbi.b5b6fdab.js"),K=require("./messages.1346558e.js"),F=require("./system.role.e623c50b.js");const O={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[],allRowData:[]}},components:{RoleForm:F.GDpackage},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...T.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.confirmLoading=!0;let i=[];i=this.allRowData.filter(t=>!this.selectedRowKeys.some(r=>r===t.id));const e=i.map(t=>t.id);w.sysUserChangeRole({id:this.record.id,addRoleIdList:this.selectedRowKeys,removeRoleIdList:e}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,w.sysUserOwnRole({id:i.id}).then(e=>{e.code===200&&(this.selectedRowKeys=e.data),this.$nextTick(()=>{setTimeout(()=>{this.$refs.roleForm.refresh()},0)}),this.confirmLoading=!1})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(i,e,t){this.selectedRowKeys=i,this.allRowData=t.rows},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var N=function(){var e=this,t=e._self._c;return 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,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.authorizationRole","\u6388\u6743\u89D2\u8272"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?t("RoleForm",{ref:"roleForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},P=[],D=T.normalizeComponent(O,N,P,!1,null,"117b9c7a",null,null);const B=D.exports;const U={data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},showForm:!1,visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",orgTree:[],ruleFormData:{orgIded:"",orgId:""},rules:{orgId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},methods:{save(){let i=this;this.$confirm(this.$i18nt("gd.https.orgOldNameTip","\u7528\u6237\u6240\u5C5E\u5386\u53F2\u6570\u636E\u673A\u6784\u4F1A\u66F4\u65B0,\u662F\u5426\u786E\u8BA4\u4FEE\u6539\u7528\u6237\u6240\u5C5E\u673A\u6784?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(e,t,r)=>{if(e!=="confirm"){r();return}r(),w.changeUserBUJob({userId:i.record.id,newBusiUnitId:this.ruleFormData.orgId}).then(n=>{n.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+n.message),this.confirmLoading=!1})}})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{i?(this.confirmLoading=!1,this.save()):this.confirmLoading=!1})},open(i){this.confirmLoading=!0,this.record=i,this.visible=!0,this.showForm=!1,x.getOrgTree().then(e=>{const t=r=>(r=r.filter((n,s)=>(n.id===i.orgid&&(n.disabled=!0),n.children&&(n.children=t(n.children)),!0)),r);this.orgTree=t(e.data),this.ruleFormData={orgIded:i.orgid,orgId:""},this.showForm=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})})},closed(){this.fullscreen=!1,this.visible=!1,this.$emit("closed")},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const e=i.item.functionName;this[e]&&this[e]()}}};var I=function(){var e=this,t=e._self._c;return 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,"modal-append-to-body":!0,"append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(r){e.visible=r},closed:e.closed}},[t("template",{slot:"title"},[t("gd-modal-title",{attrs:{title:e.$i18nt("gd.btn.updateInstitutions","\u66F4\u65B0\u673A\u6784"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"130px"}},[e.showForm?t("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:e.ruleFormData,size:"mini",rules:e.rules},nativeOn:{submit:function(r){r.preventDefault()}}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.user.orgOldName","\u539F\u673A\u6784\u540D\u79F0"),prop:"orgIded"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,"default-value":e.ruleFormData.orgIded,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:e.ruleFormData.orgIded,callback:function(r){e.$set(e.ruleFormData,"orgIded",r)},expression:"ruleFormData.orgIded"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.user.organization","\u6240\u5C5E\u673A\u6784"),prop:"orgId"}},[t("gd-select-tree",{attrs:{filterable:!0,"tree-options":e.orgTree,placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.orgId,callback:function(r){e.$set(e.ruleFormData,"orgId",r)},expression:"ruleFormData.orgId"}})],1)],1):e._e()],1)],2)},A=[],M=T.normalizeComponent(U,I,A,!1,null,"12675dc5",null,null);const q=M.exports,j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",width:"220",type:"slot",slotType:"account",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.user.name",prop:"name",label:"\u59D3\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.sex",prop:"gender",width:"120",label:"\u6027\u522B",type:"slot",slotType:"gender",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.displayName",prop:"orgname",label:"\u673A\u6784\u540D\u79F0",width:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.user.phone",prop:"phone",width:"160",label:"\u624B\u673A",align:"left"},{transKey:"gd.user.verificationMethod",prop:"authtype",width:"160",label:"\u9A8C\u8BC1\u65B9\u5F0F",align:"left",type:"slot",slotType:"authtype",showOverflowTooltip:!0},{transKey:"gd.user.employeeID",prop:"employeeid",width:"160",label:"\u5DE5\u53F7",align:"left"},{transKey:"gd.user.status",prop:"statecodes",label:"\u72B6\u6001",width:"120",type:"slot",slotType:"statecodes",align:"center",dictTypeCode:"state_code",renderHeader:(i,...e)=>this.renderHeader(i,...e,{effectType:"checkbox",dictTypeCode:"state_code"})}],formColumns:[{transKey:"gd.user.account",effectType:"input",prop:"account",label:"\u8D26\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change",min:2}]},{transKey:"gd.user.name",prop:"name",effectType:"input",label:"\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.sex",prop:"gender",effectType:"radio",label:"\u6027\u522B",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",dictTypeCode:"gender",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.birthday",prop:"birthday",effectType:"date",label:"\u751F\u65E5",placeholder:"\u8BF7\u8F93\u5165",valueFormat:"yyyy-MM-dd",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.user.phone",effectType:"input",prop:"phone",label:"\u624B\u673A\u53F7",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.email",effectType:"input",prop:"email",label:"\u90AE\u7BB1",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!",transKey:"gd.account.emailTip"}]},{transKey:"gd.user.nickname",prop:"nickname",effectType:"input",label:"\u6635\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.tel",prop:"tel",effectType:"input",label:"\u7535\u8BDD",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.org.displayName",prop:"orgid",effectType:"selectTree",label:"\u6240\u5C5E\u673A\u6784",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.user.PSDNeverExpire",prop:"psdneverexpire",effectType:"switch",label:"\u5BC6\u7801\u6C38\u4E0D\u8FC7\u671F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.user.verificationMethod",prop:"authtype",effectType:"select",label:"\u9A8C\u8BC1\u65B9\u5F0F",placeholder:"\u8BF7\u9009\u62E9",dictTypeCode:"user_auth_type",placeholderTransKey:"gd.placeholder.select",treeOptions:[],rules:[]},{transKey:"gd.user.employeeID",prop:"employeeid",effectType:"input",label:"\u5DE5\u53F7",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.input",treeOptions:[],rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysUser:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysUser:edit"},{displayName:"\u66F4\u65B0\u673A\u6784",functionName:"updateInstitutions",show:!0,transKey:"gd.btn.updateInstitutions",icon:"el-icon-edit",name:"sysUser:updateInstitutions"},{displayName:"\u6388\u6743\u89D2\u8272",functionName:"userRole",show:!0,transKey:"gd.btn.authorizationRole",icon:"el-icon-edit",name:"sysUser:grantRole"},{displayName:"\u91CD\u7F6E\u5BC6\u7801",functionName:"resetPwd",show:!0,transKey:"gd.btn.resetPassword",icon:"el-icon-edit",btnType:"danger",name:"sysUser:resetPwd"},{displayName:"\u542F\u7528",functionName:"enable",show:!1,transKey:"gd.btn.enable",icon:"el-icon-video-play",name:"sysUser:changeStatus"},{displayName:"\u505C\u7528",functionName:"deactivated",show:!1,btnType:"danger",icon:"el-icon-discover",transKey:"gd.btn.deactivate",name:"sysUser:changeStatus"},{displayName:"\u5BFC\u5165",functionName:"importUser",show:!0,icon:"gd-icon-daoru1",transKey:"gd.btn.import",name:"sysUser:import"},{displayName:"\u5BFC\u51FA",functionName:"exportUser",show:!0,icon:"gd-icon-daoru",transKey:"gd.btn.export",name:"sysUser:export"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.status",prop:"searchStatus",label:"\u72B6\u6001",effectType:"checkbox",dictTypeCode:"state_code",selectType:"checkbox",rules:[]},{transKey:"gd.user.employeeID",prop:"employeeid",label:"\u5DE5\u53F7",effectType:"input",rules:[]},{transKey:"gd.user.verificationMethod",prop:"authtype",label:"\u9A8C\u8BC1\u65B9\u5F0F",effectType:"select",dictTypeCode:"user_auth_type",rules:[]}]}}};var E={exports:{}};/*!
|
|
2
|
-
* clipboard.js v2.0.4
|
|
3
|
-
* https://zenorocha.github.io/clipboard.js
|
|
4
|
-
*
|
|
5
|
-
* Licensed MIT © Zeno Rocha
|
|
6
|
-
*/(function(i,e){(function(r,n){i.exports=n()})(w.commonjsGlobal,function(){return function(t){var r={};function n(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(s,o,a){n.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:a})},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.t=function(s,o){if(o&1&&(s=n(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)n.d(a,c,function(h){return s[h]}.bind(null,c));return a},n.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(o,"a",o),o},n.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},n.p="",n(n.s=0)}([function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},o=function(){function m(p,v){for(var f=0;f<v.length;f++){var y=v[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,v,f){return v&&m(p.prototype,v),f&&m(p,f),p}}(),a=n(1),c=l(a),h=n(3),b=l(h),g=n(4),u=l(g);function l(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function _(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function $(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var R=function(m){$(p,m);function p(v,f){d(this,p);var y=_(this,(p.__proto__||Object.getPrototypeOf(p)).call(this));return y.resolveOptions(f),y.listenClick(v),y}return o(p,[{key:"resolveOptions",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof f.action=="function"?f.action:this.defaultAction,this.target=typeof f.target=="function"?f.target:this.defaultTarget,this.text=typeof f.text=="function"?f.text:this.defaultText,this.container=s(f.container)==="object"?f.container:document.body}},{key:"listenClick",value:function(f){var y=this;this.listener=(0,u.default)(f,"click",function(k){return y.onClick(k)})}},{key:"onClick",value:function(f){var y=f.delegateTarget||f.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(y),target:this.target(y),text:this.text(y),container:this.container,trigger:y,emitter:this})}},{key:"defaultAction",value:function(f){return C("action",f)}},{key:"defaultTarget",value:function(f){var y=C("target",f);if(y)return document.querySelector(y)}},{key:"defaultText",value:function(f){return C("text",f)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],y=typeof f=="string"?[f]:f,k=!!document.queryCommandSupported;return y.forEach(function(L){k=k&&!!document.queryCommandSupported(L)}),k}}]),p}(b.default);function C(m,p){var v="data-clipboard-"+m;if(!!p.hasAttribute(v))return p.getAttribute(v)}t.exports=R},function(t,r,n){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},o=function(){function u(l,d){for(var _=0;_<d.length;_++){var $=d[_];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(l,$.key,$)}}return function(l,d,_){return d&&u(l.prototype,d),_&&u(l,_),l}}(),a=n(2),c=h(a);function h(u){return u&&u.__esModule?u:{default:u}}function b(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}var g=function(){function u(l){b(this,u),this.resolveOptions(l),this.initSelection()}return o(u,[{key:"resolveOptions",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=d.action,this.container=d.container,this.emitter=d.emitter,this.target=d.target,this.text=d.text,this.trigger=d.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var d=this,_=document.documentElement.getAttribute("dir")=="rtl";this.removeFake(),this.fakeHandlerCallback=function(){return d.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[_?"right":"left"]="-9999px";var $=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=$+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var d=void 0;try{d=document.execCommand(this.action)}catch{d=!1}this.handleResult(d)}},{key:"handleResult",value:function(d){this.emitter.emit(d?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=d,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(d){if(d!==void 0)if(d&&(typeof d>"u"?"undefined":s(d))==="object"&&d.nodeType===1){if(this.action==="copy"&&d.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(d.hasAttribute("readonly")||d.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=d}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),u}();t.exports=g},function(t,r){function n(s){var o;if(s.nodeName==="SELECT")s.focus(),o=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var a=s.hasAttribute("readonly");a||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),a||s.removeAttribute("readonly"),o=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),h=document.createRange();h.selectNodeContents(s),c.removeAllRanges(),c.addRange(h),o=c.toString()}return o}t.exports=n},function(t,r){function n(){}n.prototype={on:function(s,o,a){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:o,ctx:a}),this},once:function(s,o,a){var c=this;function h(){c.off(s,h),o.apply(a,arguments)}return h._=o,this.on(s,h,a)},emit:function(s){var o=[].slice.call(arguments,1),a=((this.e||(this.e={}))[s]||[]).slice(),c=0,h=a.length;for(c;c<h;c++)a[c].fn.apply(a[c].ctx,o);return this},off:function(s,o){var a=this.e||(this.e={}),c=a[s],h=[];if(c&&o)for(var b=0,g=c.length;b<g;b++)c[b].fn!==o&&c[b].fn._!==o&&h.push(c[b]);return h.length?a[s]=h:delete a[s],this}},t.exports=n},function(t,r,n){var s=n(5),o=n(6);function a(g,u,l){if(!g&&!u&&!l)throw new Error("Missing required arguments");if(!s.string(u))throw new TypeError("Second argument must be a String");if(!s.fn(l))throw new TypeError("Third argument must be a Function");if(s.node(g))return c(g,u,l);if(s.nodeList(g))return h(g,u,l);if(s.string(g))return b(g,u,l);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(g,u,l){return g.addEventListener(u,l),{destroy:function(){g.removeEventListener(u,l)}}}function h(g,u,l){return Array.prototype.forEach.call(g,function(d){d.addEventListener(u,l)}),{destroy:function(){Array.prototype.forEach.call(g,function(d){d.removeEventListener(u,l)})}}}function b(g,u,l){return o(document.body,g,u,l)}t.exports=a},function(t,r){r.node=function(n){return n!==void 0&&n instanceof HTMLElement&&n.nodeType===1},r.nodeList=function(n){var s=Object.prototype.toString.call(n);return n!==void 0&&(s==="[object NodeList]"||s==="[object HTMLCollection]")&&"length"in n&&(n.length===0||r.node(n[0]))},r.string=function(n){return typeof n=="string"||n instanceof String},r.fn=function(n){var s=Object.prototype.toString.call(n);return s==="[object Function]"}},function(t,r,n){var s=n(7);function o(h,b,g,u,l){var d=c.apply(this,arguments);return h.addEventListener(g,d,l),{destroy:function(){h.removeEventListener(g,d,l)}}}function a(h,b,g,u,l){return typeof h.addEventListener=="function"?o.apply(null,arguments):typeof g=="function"?o.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(d){return o(d,b,g,u,l)}))}function c(h,b,g,u){return function(l){l.delegateTarget=s(l.target,b),l.delegateTarget&&u.call(h,l)}}t.exports=a},function(t,r){var n=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function o(a,c){for(;a&&a.nodeType!==n;){if(typeof a.matches=="function"&&a.matches(c))return a;a=a.parentNode}}t.exports=o}])})})(E);const H=w.getDefaultExportFromCjs(E.exports);const z={props:{infoData:{type:Object,required:!0},isSendEmail:{type:String,default:""}},data(){return{visible:!1,sending:!1,isSendEmailList:"",width:"520px",fullscreen:!1}},computed:{copyInfo(){return`${this.$i18nt("gd.user.account","\u8D26\u53F7")}: ${this.infoData.account}
|
|
7
|
-
${this.$i18nt("gd.user.paw","\u5BC6\u7801")}: ${this.infoData.password}
|
|
8
|
-
${this.$i18nt("gd.user.name","\u59D3\u540D")}: ${this.infoData.name}
|
|
9
|
-
${this.$i18nt("gd.user.email","\u90AE\u7BB1")}: ${this.infoData.email}
|
|
10
|
-
${this.$i18nt("gd.user.phone","\u624B\u673A\u53F7")}: ${this.infoData.phone}
|
|
11
|
-
`}},methods:{open(i){this.visible=!0,this.isSendEmailList=i},colseCancel(){this.visible=!1},cmpleteUpgrade(){const i=new H(".copy-btn");i.on("success",()=>{this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.isSendEmailList!=1&&(this.visible=!1,this.$emit("sending"))}),i.on("error",()=>{this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")),this.visible=!1}),setTimeout(()=>{i.destroy()},122)},sendingEailm(){let i=this;i.sending=!0;let e={accountName:i.infoData.account,emailAddress:i.infoData.email,pcR_Type:5};w.applyResetPassword(e).then(t=>{t.success?(i.sending=!1,i.visible=!1,i.$notify({duration:8e3,type:"success",title:this.$i18nt("gd.https.resetTipSucc","\u91CD\u7F6E\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
|
|
12
|
-
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),i.$emit("sending")):i.$message.error(i.$i18nt("gd.https.sendingErr","\u53D1\u9001\u5931\u8D25")+t.message)})}}};var G=function(){var e=this,t=e._self._c;return 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,"modal-append-to-body":!0,"append-to-body":!1,top:"80px"},on:{"update:visible":function(r){e.visible=r},closed:e.colseCancel}},[t("template",{slot:"title"},[t("div",{staticClass:"gd-dialog-head"},[t("div",{staticClass:"dialog-head-title"},[e._v(e._s(e.$i18nt("gd.user.basicInformation","\u57FA\u672C\u4FE1\u606F")))])])]),t("el-descriptions",{attrs:{title:"",column:1,size:"medium"}},[t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.account","\u8D26\u53F7")}},[e._v(e._s(e.infoData.account))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.paw","\u5BC6\u7801")}},[e._v(e._s(e.infoData.password))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.name","\u59D3\u540D")}},[e._v(e._s(e.infoData.name))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.email","\u90AE\u7BB1")}},[e._v(e._s(e.infoData.email))]),t("el-descriptions-item",{attrs:{label:e.$i18nt("gd.user.phone","\u624B\u673A")}},[e._v(e._s(e.infoData.phone))])],1),t("template",{slot:"footer"},[t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary","data-clipboard-action":"copy","data-clipboard-text":e.copyInfo,icon:"el-icon-document-copy"},on:{click:e.cmpleteUpgrade}},[e._v(" "+e._s(e.$i18nt("gd.btn.copy"))+" ")]),e.isSendEmail=="1"?t("el-button",{staticClass:"copy-btn",staticStyle:{"margin-left":"8px"},attrs:{type:"primary",loading:e.sending,icon:"el-icon-message"},on:{click:e.sendingEailm}},[e._v(" "+e._s(e.$i18nt("gd.email.sending"))+" ")]):e._e()],1)],2)},Q=[],V=T.normalizeComponent(z,G,Q,!1,null,"b6f77ddd",null,null);const Y=V.exports;const J={name:"GdUse",props:{height:{type:Number,default:100}},mixins:[K.tablesFilter,j],data(){return{transKey:"gd.btn.add",formLoading:!1,currentNode:null,loading:!0,orgTree:[],selectedRowKeys:[],selectedRows:[],queryParam:{},defaultProps:{children:"children",label:"title",value:"value"},defaultExpandedKeys:"",loadData:i=>w.getUserPage(Object.assign(i,this.getQueryParam)).then(e=>e.data),disableBtn:["\u542F\u7528","\u505C\u7528"],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",institutionsShow:!1}},components:{UserRoleForm:B,EditInstitutions:q,copyInfo:Y},computed:{getQueryParam(){let i=new Map;for(let e in this.queryParam)i.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(i)},getFormColumns(){return this.formColumns.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(i=>(i.show=!this.disableBtn.includes(i.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...T.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{updateInstitutions(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.institutionsShow=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editInstitutions.open(this.selectedRows[0])},0)})},userRole(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.userRoleForm.open(this.selectedRows[0])},saveQueries(i){this.queryParam={...i},this.refresh()},handleFileUpload(i){const e=this.$message({message:this.$i18nt("gd.https.uploading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"}),t=new FormData;t.append("file",i.file),w.sysUserImport(t).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.uploadSucc","\u4E0A\u4F20\u6210\u529F")),this.refresh()):this.$message.error(this.$i18nt("gd.https.uploadFail","\u4E0A\u4F20\u5931\u8D25")+r.message),this.$nextTick(()=>{setTimeout(()=>{e.close()},200)})})},importUser(){this.fileList=[],document.querySelector(".upload-demo").click()},exportUser(){const i=this.$message({message:this.$i18nt("gd.https.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});w.sysUserExport().then(e=>{this.downloadfile(e),this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})}).catch(e=>{this.$nextTick(()=>{setTimeout(()=>{i.close()},200)})})},enable(){this.editStateCodes({row:this.selectedRows[0]})},deactivated(){this.editStateCodes({row:this.selectedRows[0]})},editStateCodes({column:i,row:e}){const t=e.statecodes!=1?this.$i18nt("gd.https.enableContent","\u662F\u5426\u505C\u7528\u9009\u4E2D\u6570\u636E?"):this.$i18nt("gd.https.deactivateContent","\u662F\u5426\u542F\u7528\u9009\u4E2D\u6570\u636E?"),r=e.statecodes!=1?this.$i18nt("gd.https.enableOk","\u786E\u8BA4\u505C\u7528"):this.$i18nt("gd.https.deactivateOk","\u786E\u8BA4\u542F\u7528");this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r,cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(n,s,o)=>{if(n!=="confirm"){o();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,w.sysUserChangeStatus({id:e.id,stateCodes:e.statecodes==1?0:1}).then(a=>{o(),a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0})}})},refresh(){this.$refs.table.refresh()},editForm(i){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...i},{gender:String(i.gender),orgid:String(i.orgid),authtype:i.authtype===null?"":String(i.authtype)}))},getOrgTree(){x.getOrgTree({}).then(i=>{if(i.code===200){const e=t=>(t=t.filter((r,n)=>(r.value=String(r.value),r.children&&r.children.length>0&&(r.children=e(r.children)),!0)),t);this.orgTree=e(i.data)}this.loading=!1})},handleNodeClick(i){this.queryParam.orgId===i.id?(delete this.queryParam.orgId,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tree.setCurrentKey(null)},0)})):this.queryParam=Object.assign({...this.queryParam},{orgId:i.id}),this.refresh()},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.delHand(i,e,t)}})},delHand(i,e,t){if(i!=="confirm"){t();return}let r=[];this.selectedRows.forEach(n=>{let s=sysOrgDelete(n).then(o=>o);r.push(s)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(r).then(n=>{t();const s=n.filter(o=>!o.success);s.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+s[0].message),this.handleOk(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},async sbumit({data:i,record:e,btn:t},r,n){this.formLoading=!0;let s=e?w.sysUserEdit:w.sysUserAdd;if(!e){let o=await this.getUsrePassword();Object.assign(i,{password:o,confirm:o})}s(i).then(o=>{this.isSendEmailed="",o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n(),this.handleOk(),this.infoData=i,this.sendEmail(e,i)):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},sendEmail(i,e){i||(this.isSendEmail==1&&this.$notify({type:"success",title:this.$i18nt("gd.https.sendingSucc","\u53D1\u9001\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
|
|
13
|
-
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}),w.getConfigInfoByCode({code:"GDS_NewUser_DisplayAccount"}).then(t=>{t.code==200&&t.data.value=="1"&&setTimeout(()=>{this.$refs.copyInfo.open(this.copyRule)},1200)}))},handleOk(){this.getOrgTree(),this.$refs.table.refresh()},onSelectChange(i,e){if(this.selectedRowKeys=i,this.selectedRows=e,i.length===0){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}if(e.length>1){this.disableBtn=["\u542F\u7528","\u505C\u7528"];return}let t=[],r=e.filter(s=>s.statecodes==1),n=e.filter(s=>s.statecodes==0);r.length==e.length?t=["\u542F\u7528"]:n.length==e.length&&(t=["\u505C\u7528"]),this.disableBtn=t},downloadfile(i){var e=new Blob([i.data],{type:"application/octet-stream;charset=UTF-8"}),t=i.headers["content-disposition"];const s=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t)[1].replace(/['"]/g,"");var o=document.createElement("a"),a=window.URL.createObjectURL(e),c=/^["](.*)["]$/g;o.style.display="none",o.href=a,o.download=decodeURI(s.replace(c,"$1")),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(a)},getUsrePassword(){return w.getPasswordRules({}).then(i=>{if(i.success)return this.combinationRule=i.data.combinationrule.value,this.copyRule=i.data.copyrule.value,this.lengthRule=i.data.lengthrule.value,this.isSendEmail=i.data.issendemail.value,this.mathPasword(this.lengthRule,this.combinationRule)})},getRandomChar(i){return i?i[Math.floor(Math.random()*i.length)]:""},mathPasword(i,e){let t=(e.includes("AL"),"abcdefghijklmnopqrstuvwxyz"),r=(e.includes("AL"),"ABCDEFGHIJKLMNOPQRSTUVWXYZ"),n=(e.includes("NU"),"0123456789"),s=(e.includes("SC"),"!@#$%&*^"),o="",a=[];if(s&&(a.push(this.getRandomChar(s)),a.push(this.getRandomChar(s))),r&&(a.push(this.getRandomChar(r)),a.push(this.getRandomChar(r))),t&&(a.push(this.getRandomChar(t)),a.push(this.getRandomChar(t))),n&&(a.push(this.getRandomChar(n)),a.push(this.getRandomChar(n))),a.length===0)return console.error("\u6CA1\u6709\u53EF\u7528\u7684\u5B57\u7B26\u96C6\u6765\u751F\u6210\u5BC6\u7801\uFF0C\u8BF7\u68C0\u67E5 combinationRule \u53C2\u6570"),"";a=a.sort(()=>Math.random()-.5);let c=a.join("");for(;c.length<i;){const h=[s,r,t,n].filter(g=>g);if(h.length===0)break;const b=h[Math.floor(Math.random()*h.length)];c+=this.getRandomChar(b)}return o=c.substring(0,i),o},resetPwd(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$confirm(this.$i18nt("gd.https.resetPwdContent","\u662F\u5426\u91CD\u7F6E\u5BC6\u7801?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.resetPwdOk","\u7ACB\u5373\u91CD\u7F6E"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,e,t)=>{this.resetPwdHand(i,e,t)}})},async resetPwdHand(i,e,t){const r=await this.getUsrePassword();let n=this;if(i!=="confirm"){t();return}e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1;let s,o={};if(n.isSendEmail==1&&n.copyRule==1)o={id:n.selectedRows[0].id,newPassword:r},s=w.sysUserResetPwd;else if(n.isSendEmail==1)o={accountName:n.selectedRows[0].account,emailAddress:n.selectedRows[0].email,pcR_Type:5},s=w.applyResetPassword;else if(n.copyRule==1)o={id:n.selectedRows[0].id,newPassword:r},s=w.sysUserResetPwd;else{this.$message.error(this.$i18nt("gd.https.resetFailure","\u91CD\u7F6E\u6210\u529F")),t();return}s(o).then(a=>{if(n.isSendEmailed=n.isSendEmail,t(),a.success){let c={account:n.selectedRows[0].account,password:r,name:n.selectedRows[0].name,email:n.selectedRows[0].email,phone:n.selectedRows[0].phone};n.isSendEmail==1&&n.copyRule==0?n.$notify({duration:8e3,type:"success",title:this.$i18nt("gd.https.resetTipSucc","\u91CD\u7F6E\u6210\u529F"),dangerouslyUseHTMLString:!0,message:`<p>${this.$i18nt("gd.https.addTip","\u5DF2\u5411\u6B64\u7528\u6237\u7684\u90AE\u7BB1\u53D1\u9001\u4E86\u4E00\u5C01\u5305\u542B\u5BC6\u7801\u91CD\u7F6E\u94FE\u63A5\u7684\u90AE\u4EF6\u3002")}</p>
|
|
14
|
-
<p>${this.$i18nt("gd.https.addTipp","\u5982\u679C\u7528\u6237\u6CA1\u6709\u6536\u5230\u90AE\u4EF6\uFF0C\u5C1D\u8BD5\u901A\u8FC7\u3010\u91CD\u7F6E\u5BC6\u7801\u3011\u53D1\u9001\u5BC6\u7801\u91CD\u7F6E\u8BF7\u6C42\u3002")}</p>`}):n.$message.success(n.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),n.copyRule==1?(n.infoData=c,setTimeout(()=>{n.$refs.copyInfo.open(n.isSendEmail)},500)):n.refresh()}else n.$message.error(n.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message);e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},sending(){this.refresh()},doEvent(i){let e=i.item.functionName;this[e]&&this[e]()}},created(){this.getOrgTree()}};var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-view-tree",style:e.styled},[t("el-tree",{ref:"tree",attrs:{data:e.orgTree,props:e.defaultProps,"node-key":"id","current-node-key":e.defaultExpandedKeys,"default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),t("div",{staticClass:"page-view-list"},[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},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"account",fn:function({column:r,row:n}){return[t("gd-tooltip",{attrs:{rowKey:"account",row:n,highlight:""},on:{click:e.editForm}})]}},{key:"gender",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"}},[t("el-tag",{style:e._f("dictColor")("gender",r.row.gender),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("gender",r.row.gender))+" ")])],1)]}},{key:"authtype",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"}},[t("el-tag",{style:e._f("dictColor")("user_auth_type",r.row.authtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("user_auth_type",r.row.authtype))+" ")])],1)]}},{key:"statecodes",fn:function(r){return[t("div",{staticStyle:{cursor:"pointer"},on:{click:function(n){return n.stopPropagation(),e.editStateCodes(r)}}},[r.row.statecodes==1?t("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):t("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"270px"}},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.user.keywordTip","\u8BF7\u8F93\u5165\u59D3\u540D\u3001\u8D26\u53F7\u3001\u624B\u673A\u53F7\u5173\u952E\u8BCD"),clearable:""},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(r){e.$set(e.queryParam,"searchValue",r)},expression:"queryParam.searchValue"}}),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.getTableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:r,visible:n}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.height,queryParam:e.queryParam,colse:r,visible:n},on:{save:e.saveQueries}})]}}])})],1),t("UserRoleForm",{ref:"userRoleForm",on:{ok:e.handleOk}}),e.institutionsShow?t("EditInstitutions",{ref:"editInstitutions",on:{ok:e.handleOk,closed:function(r){e.institutionsShow=!1}}}):e._e(),t("copyInfo",{ref:"copyInfo",attrs:{infoData:e.infoData,isSendEmail:e.isSendEmailed},on:{sending:e.sending}}),t("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode,inline:!0,width:"1000px",needLoad:e.needLoad},on:{sbumit:e.sbumit}}),t("div",{staticStyle:{position:"fixed",left:"-20000px",top:"-2000px"}},[t("el-upload",{ref:"upload",attrs:{"http-request":e.handleFileUpload,"file-list":e.fileList,action:""}},[t("el-button",{ref:"uploadDemo",staticClass:"upload-demo",attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[e._v(" "+e._s(e.$i18nt("gd.user.selectFile","\u9009\u53D6\u6587\u4EF6"))+" ")])],1)],1)],1)},X=[],Z=T.normalizeComponent(J,W,X,!1,null,"6c55aeb8",null,null);const S=Z.exports;S.install=function(i){i.component(S.name,S)};exports.GDpackage=S;
|