gds-plus-design-vue 1.2.61 → 1.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addPermission.5036013c.js +1 -0
- package/lib/addPermission.9fc97a47.mjs +421 -0
- package/lib/approvalModel.51d07afe.mjs +340 -0
- package/lib/approvalModel.66f49dfb.js +1 -0
- package/lib/attribute.318f485c.js +1 -0
- package/lib/attribute.a06ac9e7.mjs +237 -0
- package/lib/buildItem.6a834227.js +1 -0
- package/lib/buildItem.fd8634ab.mjs +205 -0
- package/lib/businessRules.0e4dbb3a.js +1 -0
- package/lib/businessRules.db6ba874.mjs +538 -0
- package/lib/components.chartbi.b043dcdc.mjs +1729 -0
- package/lib/components.chartbi.e4680eaa.js +7 -0
- package/lib/components.coloreditor.044983d2.mjs +1505 -0
- package/lib/components.coloreditor.779a9419.js +6 -0
- package/lib/components.dataassign.1853ed5c.js +1 -0
- package/lib/components.dataassign.56632583.mjs +147 -0
- package/lib/components.echarts.10d3ffe2.mjs +794 -0
- package/lib/components.echarts.e4d6b13e.js +3 -0
- package/lib/components.exception.3cc33e29.js +1 -0
- package/lib/components.exception.cc2f4ca3.mjs +61 -0
- package/lib/components.form.3344c817.mjs +7785 -0
- package/lib/components.form.91d5ed3e.js +41 -0
- package/lib/components.globalheader.07a90c4b.js +1 -0
- package/lib/components.globalheader.43fafa8c.mjs +54 -0
- package/lib/components.iconselector.8caabeaa.mjs +1165 -0
- package/lib/components.iconselector.d712170f.js +1 -0
- package/lib/components.imgpreview.57290b54.mjs +213 -0
- package/lib/components.imgpreview.86bf7971.js +1 -0
- package/lib/components.lunccalendar.76159d2e.js +1 -0
- package/lib/components.lunccalendar.f6765c94.mjs +1137 -0
- package/lib/components.middleware.3bad5748.js +1 -0
- package/lib/components.middleware.457b1182.mjs +147 -0
- package/lib/components.modaltitle.ae92f96c.mjs +127 -0
- package/lib/components.modaltitle.e0b34fcb.js +1 -0
- package/lib/components.multitab.82fd0544.js +1 -0
- package/lib/components.multitab.8441aa6b.mjs +140 -0
- package/lib/components.selecttree.85d940a9.mjs +170 -0
- package/lib/components.selecttree.d710a362.js +1 -0
- package/lib/components.settingdrawer.779f6715.js +1 -0
- package/lib/components.settingdrawer.a6693034.mjs +237 -0
- package/lib/components.sidemenu.725677e3.mjs +277 -0
- package/lib/components.sidemenu.80e46c2d.js +1 -0
- package/lib/components.sidenavmenu.23b8edce.mjs +1331 -0
- package/lib/components.sidenavmenu.b9bb9304.js +1 -0
- package/lib/components.statuschange.15938660.mjs +116 -0
- package/lib/components.statuschange.ed1218a4.js +1 -0
- package/lib/components.table.17c02054.js +8 -0
- package/lib/components.table.e3e5e3bc.mjs +4635 -0
- package/lib/components.tableumy.2f5dfa12.mjs +450 -0
- package/lib/components.tableumy.9cf33062.js +1 -0
- package/lib/components.tablevirtual.38d4d3d8.js +1 -0
- package/lib/components.tablevirtual.ba03746e.mjs +561 -0
- package/lib/components.teamsharing.05503821.js +1 -0
- package/lib/components.teamsharing.fb4351ec.mjs +373 -0
- package/lib/components.tooltip.950dc77b.mjs +86 -0
- package/lib/components.tooltip.a05d8dd1.js +1 -0
- package/lib/components.uploadfile.10f6cb2a.mjs +228 -0
- package/lib/components.uploadfile.5a9b6cc1.js +1 -0
- package/lib/components.uploadimg.cce7452a.js +1 -0
- package/lib/components.uploadimg.f4fe4e77.mjs +192 -0
- package/lib/components.verificationcode.afb9aa1a.mjs +71 -0
- package/lib/components.verificationcode.d1946db4.js +1 -0
- package/lib/components.viewformdetails.1621bc18.js +1 -0
- package/lib/components.viewformdetails.f362d69e.mjs +1048 -0
- package/lib/components.viewloading.807bbf68.js +1 -0
- package/lib/components.viewloading.ea40b244.mjs +96 -0
- package/lib/components.watermark.1ffc66e0.mjs +53 -0
- package/lib/components.watermark.da3d7220.js +2 -0
- package/lib/components.xlsxexport.d98572f8.mjs +263 -0
- package/lib/components.xlsxexport.f5ace2cd.js +1 -0
- package/lib/components.xlsximport.cffa88fe.mjs +913 -0
- package/lib/components.xlsximport.dbd826bb.js +1 -0
- package/lib/createFile.6b37ecf2.js +1 -0
- package/lib/createFile.82d6e415.mjs +239 -0
- package/lib/createSubfolders.47af629c.js +1 -0
- package/lib/createSubfolders.d35b97e9.mjs +154 -0
- package/lib/dialogLayout.08823bb7.js +1 -0
- package/lib/dialogLayout.c4bc3b55.mjs +138 -0
- package/lib/drawerContainer.604a1271.mjs +146 -0
- package/lib/drawerContainer.6a9813ce.js +1 -0
- package/lib/drawerLayout.36cf4d05.js +1 -0
- package/lib/drawerLayout.fb60950f.mjs +119 -0
- package/lib/fileSearch.65311ded.js +1 -0
- package/lib/fileSearch.86c356fe.mjs +338 -0
- package/lib/flow.designer.1ba3a90d.js +1 -0
- package/lib/flow.designer.6da03949.mjs +7686 -0
- package/lib/flow.list.03694808.mjs +3030 -0
- package/lib/flow.list.4eb10554.js +1 -0
- package/lib/form.build.51bd261e.js +1 -0
- package/lib/form.build.b768d613.mjs +251 -0
- package/lib/form.designer.build.5a950455.js +1 -0
- package/lib/form.designer.build.e521c9c6.mjs +5091 -0
- package/lib/formFiled.464856f5.js +1 -0
- package/lib/formFiled.fe7d9df3.mjs +505 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +221 -91087
- package/lib/http.appmanage.4554a629.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.codegeneratemanage.2f925b10.mjs +112 -0
- package/lib/http.codegeneratemanage.aecadd5d.js +1 -0
- package/lib/http.configmanage.6cfb8ae7.js +1 -0
- package/lib/http.configmanage.c23c7fa8.mjs +34 -0
- package/lib/http.currencymanage.37ab5ced.js +1 -0
- package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
- package/lib/http.datasource.294b01e2.js +1 -0
- package/lib/http.datasource.aa5cd0d1.mjs +58 -0
- package/lib/http.dictdatamanage.4baf16c0.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.77c69971.mjs +50 -0
- package/lib/http.duplicatechecking.31964ce7.mjs +50 -0
- package/lib/http.duplicatechecking.ee5c414c.js +1 -0
- package/lib/http.emailmanage.1ddaa8b5.js +1 -0
- package/lib/http.emailmanage.64fd611f.mjs +18 -0
- package/lib/http.filedocument.7c656b91.js +1 -0
- package/lib/http.filedocument.d456d26a.mjs +156 -0
- package/lib/http.filemanage.7e6e3e1a.js +1 -0
- package/lib/http.filemanage.c0de21d6.mjs +71 -0
- package/lib/http.languagemanage.2ef16159.mjs +10 -0
- package/lib/http.languagemanage.e2c098ec.js +1 -0
- package/lib/http.loginmanage.05500c29.mjs +74 -0
- package/lib/http.loginmanage.326984c3.js +1 -0
- package/lib/http.logmanage.1e12a9bd.js +1 -0
- package/lib/http.logmanage.8ba72635.mjs +82 -0
- package/lib/http.machinemanage.29d72a65.js +1 -0
- package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.main.40657f51.mjs +517 -0
- package/lib/http.menumanage.3240ba0d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.5004bf60.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.e03bd5f3.mjs +82 -0
- package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
- package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
- package/lib/http.onlineusermanage.3893f897.js +1 -0
- package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.orgmanage.84e43edb.mjs +58 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.pluginmanage.6bc6197f.mjs +82 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.c7912f6c.mjs +42 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.rolemanage.03363732.js +1 -0
- package/lib/http.rolemanage.dbf3fda1.mjs +114 -0
- package/lib/http.solution.175d36c8.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.608a06d6.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.e294ceaf.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.1d370398.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.c8487c0b.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.01dbc1a2.mjs +146 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
- package/lib/http.timezonemanage.e0aa212f.js +1 -0
- package/lib/http.translationmanage.1f9dce46.js +1 -0
- package/lib/http.translationmanage.a4640c9a.mjs +104 -0
- package/lib/http.useraffiliation.840741ed.mjs +90 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.usermanage.3e5eff33.mjs +219 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.webresource.5158b431.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.69ad4631.mjs +44291 -0
- package/lib/index.cca024bf.js +8 -0
- package/lib/layoutBlocks.1a9e3e05.mjs +204 -0
- package/lib/layoutBlocks.5e6be06f.js +1 -0
- package/lib/layouts.051a0bba.mjs +376 -0
- package/lib/layouts.a6a36612.js +2 -0
- package/lib/main.457f4326.js +1 -0
- package/lib/main.4fff412e.js +1 -0
- package/lib/{main.6c47713a.mjs → main.70357352.mjs} +12 -10
- package/lib/main.77373aa4.mjs +441 -0
- package/lib/{main.28952cf7.mjs → main.7f44e3bf.mjs} +78 -143
- package/lib/main.8a2a590d.js +1 -0
- package/lib/main.ad1e8d4d.js +1 -0
- package/lib/{main.5b3edd34.mjs → main.b0e5e1b0.mjs} +9 -8
- package/lib/{main.b4704b4b.mjs → main.c1df94d8.mjs} +4 -4
- package/lib/main.c3726602.js +1 -0
- package/lib/manage.5bb4f719.js +1 -0
- package/lib/manage.a1df9b88.mjs +419 -0
- package/lib/messages.7b74736f.js +9 -0
- package/lib/{messages.1787f71e.mjs → messages.ad082386.mjs} +994 -1952
- package/lib/moveFile.0ce803e0.js +1 -0
- package/lib/moveFile.8310ea94.mjs +254 -0
- package/lib/page.build.685c1e15.mjs +3158 -0
- package/lib/page.build.846096e6.js +12 -0
- package/lib/personal.echarts.b22fba61.mjs +701 -0
- package/lib/personal.echarts.f77bfc9e.js +1 -0
- package/lib/result.19351665.mjs +526 -0
- package/lib/result.e59c0e40.js +1 -0
- package/lib/router.config.2501ec51.js +1 -0
- package/lib/router.config.98a73167.mjs +3172 -0
- package/lib/solution.58580123.js +1 -0
- package/lib/solution.890ff164.mjs +6942 -0
- package/lib/store.config.3cb11578.js +1 -0
- package/lib/store.config.fff8a5a1.mjs +542 -0
- package/lib/style.css +3 -3
- package/lib/system.account.014f3e0b.mjs +2097 -0
- package/lib/system.account.0d4f1fdc.js +216 -0
- package/lib/{system.config.9bee857f.mjs → system.config.0899edb8.mjs} +7 -6
- package/lib/system.config.210f516c.js +1 -0
- package/lib/system.datasource.82492d27.js +1 -0
- package/lib/{system.datasource.926c6da1.mjs → system.datasource.986768c9.mjs} +15 -64
- package/lib/{system.dict.d48f77d5.mjs → system.dict.ef24873d.mjs} +28 -107
- package/lib/system.dict.f5708400.js +1 -0
- package/lib/system.duplicatechecking.8e3a37c0.js +1 -0
- package/lib/system.duplicatechecking.dcf9f86b.mjs +742 -0
- package/lib/system.email.070ab2be.js +1 -0
- package/lib/system.email.252fd642.mjs +138 -0
- package/lib/{system.fieldsecurity.a91a8420.mjs → system.fieldsecurity.0234d390.mjs} +224 -685
- package/lib/system.fieldsecurity.3ef07bf7.js +1 -0
- package/lib/system.file.17a7f2ed.js +1 -0
- package/lib/{system.file.ca5f4aae.mjs → system.file.73eeb731.mjs} +8 -7
- package/lib/{system.log.e80ba9c9.mjs → system.log.b86cf57f.mjs} +31 -93
- package/lib/system.log.fc60f5e6.js +1 -0
- package/lib/{system.machine.c1e753fb.mjs → system.machine.0114001b.mjs} +5 -25
- package/lib/system.machine.f1d95c86.js +1 -0
- package/lib/{system.notice.a6017645.mjs → system.notice.25ea8dca.mjs} +292 -474
- package/lib/system.notice.96c770a6.js +1 -0
- package/lib/{system.noticereceived.bbf6efd3.mjs → system.noticereceived.369f634c.mjs} +17 -24
- package/lib/system.noticereceived.dfe4ecc7.js +1 -0
- package/lib/{system.onlineuser.2b756c66.mjs → system.onlineuser.2dc284b1.mjs} +11 -24
- package/lib/system.onlineuser.e2e39bdc.js +1 -0
- package/lib/system.org.79ee5bd6.js +1 -0
- package/lib/{system.org.5f9e7b94.mjs → system.org.c20fe6b2.mjs} +3 -3
- package/lib/system.permissions.90f73461.js +9 -0
- package/lib/{system.permissions.17fe31d5.mjs → system.permissions.c3d34921.mjs} +4 -3
- package/lib/{system.plugin.c503c5b7.mjs → system.plugin.45a0f530.mjs} +23 -93
- package/lib/system.plugin.b34a3b47.js +1 -0
- package/lib/system.pos.0a3d2a37.js +1 -0
- package/lib/{system.pos.a169dcb9.mjs → system.pos.7946a99c.mjs} +31 -62
- package/lib/system.promptmanagement.b5fa6b2d.js +1 -0
- package/lib/{system.promptmanagement.00fc2917.mjs → system.promptmanagement.d7250932.mjs} +153 -287
- package/lib/system.role.03be0982.js +1 -0
- package/lib/{system.role.52d67131.mjs → system.role.75da7929.mjs} +8 -5
- package/lib/{system.sumberrules.357dc3bb.mjs → system.sumberrules.4a1376a6.mjs} +13 -39
- package/lib/system.sumberrules.bb228fce.js +1 -0
- package/lib/system.team.32183b63.js +1 -0
- package/lib/system.team.e6a9608e.mjs +450 -0
- package/lib/{system.teammembers.90598753.mjs → system.teammembers.4a7e7339.mjs} +135 -82
- package/lib/system.teammembers.847d8ea7.js +1 -0
- package/lib/system.timers.28691ce4.js +38 -0
- package/lib/{system.timers.f66ddd64.mjs → system.timers.eb0b6f3e.mjs} +50 -174
- package/lib/system.translation.6237f071.js +1 -0
- package/lib/{system.translation.279d9e27.mjs → system.translation.e34f0891.mjs} +5 -5
- package/lib/{system.user.80ca9f42.mjs → system.user.fa2d2997.mjs} +17 -16
- package/lib/{system.user.10ae5122.js → system.user.fca3f2d6.js} +5 -5
- package/lib/{system.useraffiliation.b5c11d9e.mjs → system.useraffiliation.518e341e.mjs} +4 -3
- package/lib/system.useraffiliation.7547b9c7.js +1 -0
- package/lib/system.webresource.12712b90.js +1 -0
- package/lib/{system.webresource.6dbe70f3.mjs → system.webresource.469db736.mjs} +16 -58
- package/lib/{system.welcome.a162fc7d.mjs → system.welcome.191e98f5.mjs} +10 -3
- package/lib/system.welcome.f64e49f8.js +1 -0
- package/lib/tcheckboxs.090e75eb.mjs +52 -0
- package/lib/tcheckboxs.99361be3.js +1 -0
- package/lib/tcurrency.0ddac2f8.mjs +92 -0
- package/lib/tcurrency.62763c6d.js +1 -0
- package/lib/tdatepicker.8fe48b1b.mjs +52 -0
- package/lib/tdatepicker.b19e689d.js +1 -0
- package/lib/tdictSwitch.2e07dc8a.js +1 -0
- package/lib/tdictSwitch.43d882c7.mjs +60 -0
- package/lib/tfile.1bc381f9.js +1 -0
- package/lib/tfile.72925615.mjs +62 -0
- package/lib/tparticipants.77b876e2.js +1 -0
- package/lib/tparticipants.ca5b556c.mjs +56 -0
- package/lib/translation.mains.1ce7e110.js +1 -0
- package/lib/translation.mains.278e4ba6.mjs +383 -0
- package/lib/utils.datepicker.js.2076c2a2.mjs +61 -0
- package/lib/utils.datepicker.js.8576e2fc.js +1 -0
- package/lib/utils.echarts.js.461a74e7.js +54 -0
- package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
- package/lib/utils.mixins.js.750ca50e.js +1 -0
- package/lib/utils.mixins.js.be01e599.mjs +41 -0
- package/lib/utils.util.js.50d1ec9c.js +1 -0
- package/lib/utils.util.js.82cd8447.mjs +424 -0
- package/lib/view.build.b44fd7d7.js +1 -0
- package/lib/view.build.f2a9fcfb.mjs +2727 -0
- package/lib/viewList.5a25c4b6.mjs +346 -0
- package/lib/viewList.be5a5ec5.js +1 -0
- package/locale/en_US.js +48 -23
- package/locale/id_ID.js +32 -7
- package/locale/vi_VN.js +1973 -1948
- package/locale/zh_CN.js +53 -29
- package/package.json +106 -105
- package/lib/chartbi.0d1d3b58.mjs +0 -27639
- package/lib/chartbi.d3f580d6.js +0 -60
- package/lib/main.0088ac99.js +0 -1
- package/lib/main.34c14bdb.js +0 -1
- package/lib/main.4b9adacf.js +0 -1
- package/lib/main.d1239940.js +0 -1
- package/lib/messages.add7c391.js +0 -9
- package/lib/system.account.00b82418.mjs +0 -2552
- package/lib/system.account.04cb26b6.js +0 -216
- package/lib/system.config.6244fa9b.js +0 -1
- package/lib/system.datasource.32878f5f.js +0 -1
- package/lib/system.dict.d25839ec.js +0 -1
- package/lib/system.duplicatechecking.4ed8c391.mjs +0 -2142
- package/lib/system.duplicatechecking.670ee24a.js +0 -1
- package/lib/system.email.52671629.mjs +0 -7432
- package/lib/system.email.dd537fd0.js +0 -41
- package/lib/system.fieldsecurity.4947c737.js +0 -1
- package/lib/system.file.93d65d16.js +0 -1
- package/lib/system.log.252cce0b.js +0 -1
- package/lib/system.machine.4e393981.js +0 -1
- package/lib/system.notice.ab23c15b.js +0 -1
- package/lib/system.noticereceived.123b764e.js +0 -1
- package/lib/system.onlineuser.295ad7f5.js +0 -1
- package/lib/system.org.c3bb51ff.js +0 -1
- package/lib/system.permissions.967200f1.js +0 -9
- package/lib/system.plugin.f8da8731.js +0 -1
- package/lib/system.pos.22fabf30.js +0 -1
- package/lib/system.promptmanagement.639a98e1.js +0 -1
- package/lib/system.role.4cf72743.js +0 -1
- package/lib/system.sumberrules.1a5b80df.js +0 -1
- package/lib/system.team.777feecf.mjs +0 -1000
- package/lib/system.team.ad10fc96.js +0 -1
- package/lib/system.teammembers.b193dd23.js +0 -1
- package/lib/system.timers.e31fe5fd.js +0 -38
- package/lib/system.translation.d3ed3d35.js +0 -1
- package/lib/system.useraffiliation.593c9ad4.js +0 -1
- package/lib/system.webresource.25e56654.js +0 -1
- package/lib/system.welcome.ec4e941f.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./chartbi.d3f580d6.js"),r=require("./messages.add7c391.js");function g(s){return window.axios({url:"/sysTeam/page",method:"get",params:s})}function y(s){return window.axios({url:"/sysTeam/add",method:"post",data:s})}function b(s){return window.axios({url:"/sysTeam/edit",method:"post",data:s})}function _(s){return window.axios({url:"/sysTeam/delete",method:"post",data:s})}function w(s){return window.axios({url:"/sysTeam/detail",method:"get",params:s})}function c(s){return window.axios({url:"/sysTeam/members",method:"get",params:s})}function m(s){return window.axios({url:"/sysTeam/member/add",method:"post",data:s})}function $(s){return window.axios({url:"/sysTeam/member/batchadd",method:"post",data:s})}function u(s){return window.axios({url:"/sysTeam/member/edit",method:"post",data:s})}function h(s){return window.axios({url:"/sysTeam/member/batchdel",method:"post",data:s})}function p(s){return window.axios({url:"/sysTeam/member/detail",method:"get",params:s})}const v={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.team.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",width:"220",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.team.amdmin",prop:"administratorid",label:"\u7BA1\u7406\u5458",width:"220",type:"slot",slotType:"administratorid",align:"left"},{transKey:"gd.team.teamtype",prop:"teamtype",label:"\u56E2\u961F\u7C7B\u578B",width:"180",type:"slot",slotType:"teamtype",align:"left"},{transKey:"gd.team.createdTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center",width:"180"},{transKey:"gd.team.describe",prop:"description",label:"\u63CF\u8FF0",width:"260",align:"left"}],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"}]}}},k={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,showOverflowTooltip:!0},{transKey:"gd.team.member",prop:"sys_userid",label:"\u6210\u5458",type:"slot",slotType:"sys_userid",align:"left"},{transKey:"gd.user.account",prop:"account",label:"\u8D26\u53F7",type:"slot",slotType:"account",align:"left"},{transKey:"gd.user.tel",prop:"phone",label:"\u7535\u8BDD",type:"slot",slotType:"phone",align:"left"},{transKey:"gd.user.email",prop:"email",label:"\u90AE\u7BB1",type:"slot",slotType:"email",align:"left"},{transKey:"gd.user.employeeID",prop:"employeeid",label:"\u5DE5\u53F7",type:"slot",slotType:"employeeid",align:"left"}],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 F={props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},sys_teamid:{type:Number,default:0},typeAdd:{type:Number,default:1},openMode:{type:Number,default:1}},data(){return{width:"50%",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}},computed:{disableds(){return this.typeAdd==2}},methods:{lookupSeled(s){this.dataList=[...s.fkData],this.$set(this.ruleFormData,"sys_userid",s.data[0])},lookup(s){let e={effectType:"fk",fkEntityName:"sys_user",val:s||[]};this.$refs.msgSearch.open(e)},open(s){this.visible=!0,this.fullScreen=!1,this.title=s?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.type=s?2:1,this.typeAdd==2&&this.searchData(this.sys_teamid),s&&this.getDetail(s.id)},getDetail(s){s!=""&&(this.dataList=[],p({id:s}).then(e=>{if(e.code==200){let t=e.data;this.dataList.push({id:t.sys_userid,name:t.username}),this.columnList.push({id:t.sys_teamid,name:t.teamname});let a={id:t.id,sys_userid:t.sys_userid,sys_teamid:t.sys_teamid};this.firstLoading=!0,this.firstLoading1=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=a},0)})}}))},searchData(s){this.columnList=[],r.baseFkList({fkEntityName:"sys_team",id:s}).then(e=>{e.code==200&&(this.ruleFormData.sys_teamid=s,this.columnList=e.data.length>0?e.data:[])})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(s){this.dataList=[],this.fetching=!0,r.baseFkList({fkEntityName:"sys_user",name:s}).then(e=>{e.code==200&&(this.dataList=e.data)})},searchList1(){this.firstLoading1||(this.userClick(""),this.firstLoading1=!0)},userClick(s){this.columnList=[],this.fetching=!0,r.baseFkList({fkEntityName:"sys_team",name:s}).then(e=>{e.code==200&&(this.columnList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(s=>{s&&(this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(s){this.confirmLoading=!0,delete s.id,m(s).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(s){this.confirmLoading=!0,u(s).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(s){return this.$options.filters.dictData(s)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var L=function(){var e=this,t=e._self._c;return t("div",[t("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(a){e.visible=a},closed:e.handleCancel}},[t("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"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.member","\u7528\u6237"),prop:"sys_userid"}},[t("div",{staticClass:"cao_about"},[t("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(a){e.$set(e.ruleFormData,"sys_userid",a)},expression:"ruleFormData.sys_userid"}},e._l(e.dataList,function(a,i){return t("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(a){return e.lookup(e.ruleFormData.sys_userid)}}})])],1)])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.team","\u56E2\u961F"),prop:"sys_teamid"}},[t("div",{staticClass:"cao_about"},[t("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,disabled:e.disableds,"remote-method":e.userClick},on:{focus:e.searchList1},model:{value:e.ruleFormData.sys_teamid,callback:function(a){e.$set(e.ruleFormData,"sys_teamid",a)},expression:"ruleFormData.sys_teamid"}},e._l(e.columnList,function(a,i){return t("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search",on:{lookup:function(a){e.ruleFormData.sys_teamid}}})])],1)])],1)],1)],1)],1)])],1),t("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},T=[],C=o.normalizeComponent(F,L,T,!1,null,"0613082f",null,null);const S=C.exports;const D={name:"GdTeamMembers",mixins:[r.tablesFilter,k],props:{height:{type:Number,default:100},sys_teamid:{type:Number,default:0},type:{type:Number,default:1},openMode:{type:Number,default:1}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},disabledRowId:[],loadData:s=>c(Object.assign(s,this.getQueryParam,{SysTeamId:this.sys_teamid})).then(e=>(this.disabledRowId=e.data.rows.map(t=>t.sys_userid),e.data))}},computed:{getHeight(){return this.height},getQueryParam(){console.log(this.queryParam);let s=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))s.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let t=this.queryParam[e],a=t[0].split(" ")[0],i=t[1].split(" ")[0];s.set(`${e}Start`,`${a} 00:00:00`),s.set(`${e}End`,`${i} 23:59:59`)}}else s.set(e,this.queryParam[e]);return Object.fromEntries(s)},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},components:{editForm:S},watch:{type(s,e){this.$refs.table&&this.$refs.table.refresh()},sys_teamid(s,e){this.$refs.table&&this.$refs.table.refresh()}},methods:{lookupSeled(s){if(s.fkData.length===0){this.$refs.msgSearch.closed();return}console.log(s),setTimeout(()=>{this.$refs.msgSearch.confirmLoading=!0},1502);let e={userIds:s.data,sys_TeamId:this.sys_teamid};$(e).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.msgSearch.closed(),this.$refs.table.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message),this.$refs.msgSearch.confirmLoading=!1})},lookup(){let s={effectType:"participants",fkEntityName:"sys_user",isRelevance:!0,val:[]};this.$refs.msgSearch.open(s)},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(s)},add(){this.lookup()},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:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}let a=[],i=h({memberIds:this.selectedRowKeys}).then(n=>n);a.push(i),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(n=>{const l=n.filter(f=>!f.success);l.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")+l[0].message),t(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(a=>a.code==s)[0];return t!=null&&t.colour?t.colour:null},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var x=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"12px 0"}},[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:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{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.placeholder.input","\u8BF7\u8F93\u5165"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.searchValue,callback:function(a){e.$set(e.queryParam,"searchValue",a)},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.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"sys_teamid",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"teamname",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"sys_userid",fn:function({column:a,row:i}){return[i.sys_userid?t("span",[e._v(" "+e._s(i.username)+" ")]):e._e()]}},{key:"account",fn:function({column:a,row:i}){return[i.account?t("span",[e._v(" "+e._s(i.account)+" ")]):e._e()]}},{key:"phone",fn:function({column:a,row:i}){return[i.phone?t("span",[e._v(" "+e._s(i.phone)+" ")]):e._e()]}},{key:"email",fn:function({column:a,row:i}){return[i.email?t("span",[e._v(" "+e._s(i.email)+" ")]):e._e()]}},{key:"employeeid",fn:function({column:a,row:i}){return[i.employeeid?t("span",[e._v(" "+e._s(i.employeeid)+" ")]):e._e()]}}])})],1),t("gd-search",{ref:"msgSearch",attrs:{disabledRowId:e.disabledRowId,appendToBody:!0},on:{lookupSeled:e.lookupSeled}}),t("editForm",{ref:"editForm",attrs:{openPermissions:!0,sys_teamid:e.sys_teamid,typeAdd:e.type,openMode:e.openMode},on:{ok:e.handleOk}})],1)},B=[],K=o.normalizeComponent(D,x,B,!1,null,"ada89e79",null,null);const N=K.exports;const P={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}],confirmLoading:!1,type:0,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],administratorid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{id:"",name:"",administratorid:"",teamtype:"2",description:""},dataList:[],columnList:[],ownerid:"",firstLoading:!1}},computed:{detailShow(){return!!this.ruleFormData.id},title(){return this.ruleFormData.id?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add")}},components:{teamMemberDetail:N},methods:{lookupSeled(s){this.dataList=[...s.fkData],this.$set(this.ruleFormData,"administratorid",s.data[0])},lookup(s){let e={effectType:"fk",fkEntityName:"sys_user",val:s||[]};this.$refs.msgSearch.open(e)},open(s){this.visible=!0,this.fullScreen=!1,this.type=s?2:1,this.ruleFormData.id=s?s.id:"",s&&this.getDetail(s.id)},getDetail(s){s!=""&&(this.dataList=[],w({id:s}).then(e=>{if(e.code==200){let t=e.data;this.dataList.push({id:t.administratorid,name:t.administratorname}),this.columnList.push({id:t.ownerid,name:t.ownername});let a={id:t.id,name:t.name,teamtype:t.teamtype?t.teamtype.toString():"",description:t.description,administratorid:t.administratorid};this.firstLoading=!0,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData=a,this.ownerid=t.ownerid},0)})}}))},searchData(s){this.dataList=[],r.baseFkList({fkEntityName:"sys_user",id:s.administratorid}).then(e=>{e.code==200&&(this.firstLoading=!0,e.data.length>0?this.dataList=e.data:this.dataList.push({id:s.administratorid,name:s.administratorname}))})},searchList(){this.firstLoading||(this.adminClick(""),this.firstLoading=!0)},adminClick(s){this.dataList=[],this.fetching=!0,r.baseFkList({fkEntityName:"sys_user",name:s}).then(e=>{e.code==200&&(this.dataList=e.data)})},handleSubmit(){this.$refs.ruleForm.validate(s=>{s&&(console.log(this.type),this.type==1?this.add(this.ruleFormData):this.edit(this.ruleFormData))})},add(s){this.confirmLoading=!0,delete s.id,y(s).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.ruleFormData.id=e.data,this.type=2,this.getDetail(e.data)):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25: ")+e.message)}).finally(e=>{this.confirmLoading=!1})},edit(s){this.confirmLoading=!0,b(s).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.$refs.ruleForm.resetFields(),this.ruleFormData={id:"",name:"",administratorid:"",teamtype:"2",description:""},this.ownerid="",this.type=1},getDictionary(s){return this.$options.filters.dictData(s)},toggleFullscreen(){this.fullScreen=!this.fullScreen},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var R=function(){var e=this,t=e._self._c;return t("div",[t("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(a){e.visible=a},closed:e.handleCancel}},[t("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"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[t("div",{class:e.fullScreen?"modal-bodyq":"modal-body"},[t("el-form",{ref:"ruleForm",attrs:{rules:e.rules,model:e.ruleFormData,"label-width":"100px"},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.name","\u540D\u79F0"),prop:"name"}},[t("el-input",{attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.teamtype","\u56E2\u961F\u7C7B\u578B"),prop:"teamtype"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:e.$i18nt("gd.placeholder.select"),clearable:""},model:{value:e.ruleFormData.teamtype,callback:function(a){e.$set(e.ruleFormData,"teamtype",a)},expression:"ruleFormData.teamtype"}},e._l(e.getDictionary("teamtype"),function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:e.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.amdmin","\u7BA1\u7406\u5458"),prop:"administratorid"}},[t("div",{staticClass:"cao_about"},[t("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.administratorid,callback:function(a){e.$set(e.ruleFormData,"administratorid",a)},expression:"ruleFormData.administratorid"}},e._l(e.dataList,function(a,i){return t("el-option",{key:a.id+"&"+i,attrs:{label:a.name,value:a.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(a){return e.lookup(e.ruleFormData.administratorid)}}})])],1)])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.owner","\u8D1F\u8D23\u4EBA")}},[t("div",{staticClass:"cao_about"},[t("el-select",{staticClass:"cao_input",attrs:{placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",filterable:"",remote:"",clearable:"","collapse-tags":!0,disabled:""},model:{value:e.ownerid,callback:function(a){e.ownerid=a},expression:"ownerid"}},e._l(e.columnList,function(a,i){return t("el-option",{key:i,attrs:{label:a.name,value:a.id}})}),1),t("div",{staticClass:"cao_setting"},[t("i",{staticClass:"el-input__icon el-icon-search cao_setting-disabled"})])],1)])],1)],1),t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$i18nt("gd.team.describe","\u63CF\u8FF0"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)],1),e.detailShow?t("el-card",{attrs:{shadow:"never"}},[t("div",[e._v(e._s(e.$i18nt("gd.team.teamMember","\u56E2\u961F\u6210\u5458")))]),t("teamMemberDetail",{attrs:{sys_teamid:Number(e.ruleFormData.id),type:e.type,openMode:2,height:200}})],1):e._e()],1)],1),t("gd-search",{ref:"msgSearch",attrs:{appendToBody:!0},on:{lookupSeled:e.lookupSeled}})],1)},q=[],E=o.normalizeComponent(P,R,q,!1,null,"837be327",null,null);const M=E.exports;const O={name:"GdTeam",mixins:[r.tablesFilter,v],props:{height:{type:Number,default:100}},data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:s=>g(Object.assign(s,this.getQueryParam)).then(e=>e.data)}},components:{editForm:M},computed:{getHeight(){return this.height},getQueryParam(){let s=new Map;for(let e in this.queryParam)if(this.queryParam[e]&&(e==="msgStatus"||e==="sendType"))s.set(e,this.queryParam[e].join(","));else if(this.queryParam[e]&&(e==="actualOn"||e==="createdTime"||e==="scheduledStartedOn")){if(this.queryParam[e].length>0){let t=this.queryParam[e],a=t[0].split(" ")[0],i=t[1].split(" ")[0];s.set(`${e}Start`,`${a} 00:00:00`),s.set(`${e}End`,`${i} 23:59:59`)}}else s.set(e,this.queryParam[e]);return Object.fromEntries(s)},...o.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(s)},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}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.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:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}let a=[];this.selectedRows.forEach(i=>{let n=_({id:i.id}).then(l=>l);a.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(i=>{const n=i.filter(l=>!l.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),t(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},handleOk(){this.refresh()},refresh(){this.$refs.table.refresh()},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(a=>a.code==s)[0];return t!=null&&t.colour?t.colour:null},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var z=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!1},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"administratorid",fn:function({column:a,row:i}){return[i.administratorname?t("span",[e._v(" "+e._s(i.administratorname)+" ")]):e._e()]}},{key:"teamtype",fn:function(a){return[e.dictSwitch(a.row.teamtype,"teamtype")?t("el-tag",{style:e._f("dictColor")("teamtype",a.row.teamtype),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("teamtype",a.row.teamtype))+" ")]):t("span",[e._v(e._s(e._f("dictType")("teamtype",a.row.teamtype)))])]}}])})],1),t("editForm",{ref:"editForm",attrs:{openPermissions:!0},on:{ok:e.handleOk}})],1)},V=[],A=o.normalizeComponent(O,z,V,!1,null,"f62d65e6",null,null);const d=A.exports;d.install=function(s){s.component(d.name,d)};exports.GDpackage=d;exports.sysTeamMemberAdd=m;exports.sysTeamMemberBatchDel=h;exports.sysTeamMemberDetail=p;exports.sysTeamMemberEdit=u;exports.sysTeamMembers=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const d=require("./chartbi.d3f580d6.js"),n=require("./system.team.ad10fc96.js"),l=require("./messages.add7c391.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.d3f580d6.js"),P=require("./messages.add7c391.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.639a98e1.js"),o=require("./chartbi.d3f580d6.js"),u=require("./messages.add7c391.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 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./system.duplicatechecking.670ee24a.js"),o=require("./chartbi.d3f580d6.js"),u=require("./messages.add7c391.js"),h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(t,...e)=>this.renderHeader(t,...e,{effectType:"input"}),showOverflowTooltip:!0}],formColumns:[{transKey:"gd.form.roleName",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",label:"\u6240\u5C5E\u503C",effectType:"input",rules:[]}]}}};const f={name:"GdUserRole",props:{height:{type:Number,default:100},openSelecteKeys:{type:Array,default:()=>[]},useraffiliationname:{type:String,default:""},openMode:{type:String,default:"page"}},mixins:[u.tablesFilter],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:t=>(this.queryParam={userAffiliationId:this.openSelecteKeys[0]},l.getbyUserAffiliationId(this.queryParam).then(e=>(e.data.length>0&&this.getRowId(e.data),console.log(this.disabledRowId),e.data.forEach(s=>{s.useraffiliationname=this.useraffiliationname}),{pageno:1,pagesize:1e3,rows:e.data}))),disableBtn:[],fileList:[],needLoad:!1,infoData:{},isSendEmail:"",isSendEmailed:"",tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.userAffiliation.name",prop:"username",label:"\u7528\u6237(\u59D3\u540D)",align:"left",type:"slot",slotType:"username",showOverflowTooltip:!0},{transKey:"gd.userAffiliation.userOwnershipName",prop:"useraffiliationname",label:"\u7528\u6237\u6240\u5C5E\u540D\u79F0",align:"left",showOverflowTooltip:!0}],formColumnsuser:[{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:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysRole:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysRole:delete"}],disabledRowId:[],sysCodeGenName:"sys_user"}},components:{},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getQueryParam(){let t=new Map;for(let e in this.queryParam)t.set(e==="statecodes"?"searchctatus":e,this.queryParam[e]);return Object.fromEntries(t)},getFormColumns(){return this.formColumnsuser.filter(e=>(e.prop==="orgid"&&(e.treeOptions=[...this.orgTree]),!0))},getTableButtons(){return this.tableButtons.filter(t=>(t.show=!this.disableBtn.includes(t.displayName),!0))},getHeight(){return this.height},styled(){return`height:${this.height+76}px`},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{getRowId(t){let e=[];t.filter(s=>!this.disabledRowId.includes(s.userid)).forEach(s=>{e.push(s.userid)}),this.disabledRowId=this.disabledRowId.concat(e)},saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()},lookupSeled(t){if(t.fkData.length===0){this.$refs.engineSearch.closed();return}this.$refs.engineSearch.confirmLoading=!0,l.sysUserAffiliationAddRelation({userAffiliationId:this.openSelecteKeys[0],userIdList:t.data}).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.engineSearch.closed(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+e.message),this.$refs.engineSearch.confirmLoading=!1})},add(){this.$refs.engineSearch.open({fkEntityName:this.sysCodeGenName,val:[],effectType:"participants",isRelevance:!0})},del(){let t=this;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:(e,s,i)=>{if(e!=="confirm"){i();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,l.sysUserAffiliationDeleteRelation({userAffiliationId:t.openSelecteKeys[0],userIdList:JSON.parse(JSON.stringify(t.selectedRows)).map(a=>a.userid)}).then(a=>{a.success?(t.$message.success(t.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),t.disabledRowId=t.disabledRowId.filter(n=>!t.selectedRows.filter(d=>d.userid===n)[0]),s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,i(),t.refresh()):t.$message.error(t.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message)})}})}},created(){}};var p=function(){var e=this,s=e._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[s("div",{staticClass:"page-view-list"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,showPagination:!1,selectedRowKeys:e.selectedRowKeys,height:e.height,initialLoading:!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:"username",fn:function({column:i,row:a}){return[s("span",{staticStyle:{cursor:"pointer"}},[e._v(" "+e._s(a.username)+" ")])]}}])}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0,disabledRowId:e.disabledRowId},on:{lookupSeled:e.lookupSeled}})],1)])},g=[],m=o.normalizeComponent(f,p,g,!1,null,"65ef2965",null,null);const y=m.exports;const b={data(){return{buttons:[],record:{},visible:!1,confirmLoading:!1,fullscreen:!1,width:"90%",selectedRowKeys:[]}},components:{UserRelation:y},computed:{height(){return this.screenHeight-(this.fullscreen?160:340)},...o.mapGetters(["screenHeight"])},methods:{handleSubmit(){this.closed()},open(t){this.record=t,this.visible=!0,this.selectedRowKeys=[t.id],this.useraffiliationname=t.affiliationvalue,this.$nextTick(()=>{setTimeout(()=>{this.$refs.userForm.refresh()},0)})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},onSelectChange(t){this.selectedRowKeys=t},doEvent(t){const e=t.item.functionName;this[e]&&this[e]()}}};var w=function(){var e=this,s=e._self._c;return s("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":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:e.$i18nt("gd.user.userAuthorization","\u6388\u6743\u7528\u6237"),fullscreen:e.fullscreen,buttons:e.buttons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[e.visible?s("UserRelation",{ref:"userForm",attrs:{height:e.height,openMode:"components",openSelecteKeys:e.selectedRowKeys,useraffiliationname:e.useraffiliationname},on:{onSelectChange:e.onSelectChange}}):e._e()],1)],2)},v=[],_=o.normalizeComponent(b,w,v,!1,null,"f6bdfd51",null,null);const $=_.exports;const K={data(){return{sys_UseraffiliationtypeId:"",transKey:"gd.btn.add",formLoading:!1,formButtons:[{displayName:"\u786E\u5B9A",functionName:"formhandleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],belongslist:[],formColumns:[{transKey:"gd.form.name",prop:"name",effectType:"input",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationValue",effectType:"input",label:"\u6240\u5C5E\u503C",placeholder:"\u8BF7\u8F93\u5165",disabled:!1,placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],confirmLoading:!0,title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],type:1,fullScreen:!1,width:"1000px",ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},visible:!1,queryParam:{},loadData:t=>(this.queryParam={Sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId},l.getUserAffiliation(Object.assign(t,this.queryParam)).then(e=>(e.data.rows.forEach(s=>{s.typename=this.ruleFormData.name}),e.data))),openMode:"page",selectedRowKeys:[],selectedRows:[],tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.duplicatechecking.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.ownershipValue.ownershipValue",prop:"affiliationvalue",label:"\u6240\u5C5E\u503C",align:"left",showOverflowTooltip:!0}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysAffiliation:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysAffiliation:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysAffiliation:delete"},{displayName:"\u6388\u6743\u7528\u6237",functionName:"userRelationship",show:!0,transKey:"gd.user.userAuthorization",icon:"el-icon-setting",name:"sysAffiliation:belongingMenu"}]}},components:{UserRelationAdd:$},computed:{getFormColumns(){return this.formColumns.filter(t=>!0)},getHeight(){const t=this.fullScreen?230:410;return this.screenHeight-t},initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},...o.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize","labelPosition","formMode"])},methods:{userRelationship(){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.userrelationadd.open(this.selectedRows[0])},lookup(t,e){const s=t[e.prop];this.$refs.viewSearch.open({fkEntityName:"DataSource",effectType:e.effectType,val:s||""})},async searchDataSource(t){this.formLoading=!0,this.belongslist=[],this.belongslist=await this.getbelongslist(),this.formLoading=!1},fkSearch(t){const e=`${t}Loading`;t==="name"&&!this[e]&&this.searchDataSource("")},getbelongslist(){return l.getSysUserAffiliationType().then(t=>{if(t.code===200)return t.data.rows})},getDataSource(t){let e={name:t,fkEntityName:this.fkEntityName};return u.baseFkList(e).then(s=>s.data.map(i=>(i.id=String(i.id),i)))},okFilter(t){this.filterList={...t}},toggleFullscreen(){this.fullScreen=!this.fullScreen},getDictionary(t){return this.$options.filters.dictData(t)},selectRules(t){},getList(t,e){},init(t){this.fullScreen=!1,this.confirmLoading=!1,this.visible=!0,this.type=t?2:1,this.title=t?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add"),this.sys_UseraffiliationtypeId=t?t.id:"",this.selectedRowKeys=[],this.selectedRows=[],this.$nextTick(()=>{setTimeout(()=>{this.type===2&&this.refresh(),this.ruleFormData={name:t?t.name:""},this.$refs.ruleForm.resetFields()},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=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(t){this.transKey="gd.btn.add",this.$refs.editFormref.open(null),this.$refs.editFormref.setData({nametype:this.ruleFormData.name})},edit(t){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])},editForm(t){this.transKey="gd.btn.edit",this.$refs.editFormref.open(t),this.$refs.editFormref.setData({nametype:this.ruleFormData.name}),this.$refs.editFormref.setData({affiliationValue:t.affiliationvalue})},formhandleSubmit(){console.log("\u6240\u5C5E\u503C\u7684\u65B0\u589E\u4FDD\u5B58")},handleSubmit(){this.$refs.ruleForm.validate(t=>{if(t){const e={...this.ruleFormData};this.sub(e)}})},sub(t){this.formLoading=!0;let e=this.type==1?l.sysUserAffiliationTypeAdd:l.sysUserAffiliationTypeEdit;const s=this.type==1?t:Object.assign({values:t,id:this.sys_UseraffiliationtypeId});e(s).then(i=>{i.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleCancel(),this.$emit("ok")):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+i.message),this.formLoading=!1})},handleCancel(){this.visible=!1,this.confirmLoading=!1,this.tabledisabled=!1},doEvent(t){let e=t.item.functionName;this[e]()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},removeRow(t){let e=this;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:(s,i,a)=>{if(s!=="confirm"){a();return}e.$message.success(e.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),a()}})},sbumit({data:t,record:e,btn:s},i,a){this.formLoading=!0;let n=e?l.sysUserAffiliationEdit:l.sysUserAffiliationAdd;delete t.nametype;const r=e?Object.assign({affiliationValue:t.affiliationValue,sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId,id:t.id}):Object.assign(t,{sys_UseraffiliationtypeId:this.sys_UseraffiliationtypeId});n(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),this.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},refresh(){this.$refs.table&&this.$refs.table.refresh()}}};var C=function(){var e=this,s=e._self._c;return s("div",[s("el-dialog",{class:e.fullScreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullScreen,width:e.width,visible:e.visible,footer:null,top:"80px","append-to-body":"","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},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}]},[s("div",{staticClass:"setting-navs",class:e.fullScreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{model:e.ruleFormData,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(i){i.preventDefault()}}},[s("el-row",{staticStyle:{"margin-left":"-12px","margin-right":"-12px"},attrs:{gutter:48}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticClass:"form_name",staticStyle:{"margin-bottom":"12px"},attrs:{label:e.$i18nt("gd.duplicatechecking.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{disabled:e.type==2,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.name,callback:function(i){e.$set(e.ruleFormData,"name",i)},expression:"ruleFormData.name"}})],1)],1)],1)],1),e.type==2?[s("el-divider"),s("div",{staticClass:"setting-conter"},[s("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"operator-list"},[s("div",{staticClass:"clearfix"},[s("span",[e._v(e._s(e.$i18nt("gd.userAffiliation.userownershipValue","\u7528\u6237\u6240\u5C5E\u503C")))])]),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}],null,!1,3417440761)})],1)]:e._e()],2)])],1),s("gd-edit-form",{ref:"editFormref",attrs:{formItemWidth:"100%",loading:e.formLoading,transKey:e.transKey,buttons:e.formButtons,columns:e.getFormColumns,labelPosition:e.labelPosition,formMode:e.formMode},on:{sbumit:e.sbumit}}),s("UserRelationAdd",{ref:"userrelationadd",on:{ok:e.refresh}})],1)},S=[],T=o.normalizeComponent(K,C,S,!1,null,"d0f142ed",null,null);const R=T.exports;const k={name:"GdUserAffiliation",props:{height:{type:Number,default:100},openMode:{type:String,default:"page"},openSelecteKeys:{type:Array,default:()=>[]}},mixins:[u.tablesFilter,h],data(){return{loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},record:{},loadData:t=>(this.selectedKeep&&(this.selectedRowKeys=[...this.openSelecteKeys]),l.getSysUserAffiliationType(Object.assign(t,this.queryParam)).then(e=>e.data))}},components:{editForm:R},computed:{initialLoading(){return this.openMode==="page"},selectedKeep(){return this.openMode!=="page"},getHeight(){return this.height},...o.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{saveQueries(t){this.queryParam={...t},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(t){this.$refs.editForm.init(t)},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=[];this.selectedRows.forEach(a=>{let n=l.sysUserAffiliationTypeDelete(a).then(r=>r);i.push(n)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(i).then(a=>{const n=a.filter(r=>!r.success);n.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+n[0].message),s(),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},add(){this.$refs.editForm.init(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])},handleOk(){this.$refs.table.refresh()},onSelectChange(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.$emit("onSelectChange",t,e)},doEvent(t){let e=t.item.functionName;this[e]&&this[e]()}}};var L=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:!0,selectedKeep:e.selectedKeep,initialLoading:e.initialLoading},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:i,row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:e.editForm}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.form.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(i){e.$set(e.queryParam,"name",i)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[e.openMode==="page"?s("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}}):e._e()],1)])]},proxy:!0},{key:"filtering",fn:function({colse:i,visible:a}){return[s("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:i,visible:a},on:{save:e.saveQueries}})]}}])})],1),s("editForm",{ref:"editForm",attrs:{table:e.record},on:{ok:e.handleOk}})],1)},B=[],F=o.normalizeComponent(k,L,B,!1,null,"3966b20c",null,null);const c=F.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
|