gds-plus-design-vue 1.2.3 → 1.2.21

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.
Files changed (76) hide show
  1. package/lib/gd-initial.js +15 -17
  2. package/lib/gd-initial.mjs +9476 -13948
  3. package/lib/{main.4aebe1c9.js → main.2415a49a.js} +1 -1
  4. package/lib/{main.eb4b260e.mjs → main.2cddfbbd.mjs} +2 -2
  5. package/lib/main.4c447fc3.js +1 -0
  6. package/lib/{main.05252737.mjs → main.86fe06d4.mjs} +2 -2
  7. package/lib/{main.a30b25d6.mjs → main.b2d0a309.mjs} +11 -11
  8. package/lib/{main.458dc0a0.js → main.d091d06d.js} +1 -1
  9. package/lib/{messages.30e41348.js → messages.2fff74f3.js} +5 -5
  10. package/lib/{messages.a1335b0f.mjs → messages.d8abe18d.mjs} +150 -165
  11. package/lib/style.css +2 -2
  12. package/lib/{system.account.1ff630c9.js → system.account.8ea53681.js} +1 -1
  13. package/lib/{system.account.20f9e450.mjs → system.account.9bc40d08.mjs} +9 -9
  14. package/lib/{system.config.c85c05e9.mjs → system.config.8223d495.mjs} +1 -1
  15. package/lib/{system.config.532ab3b8.js → system.config.c6e30213.js} +1 -1
  16. package/lib/{system.datasource.f64a59de.mjs → system.datasource.57233650.mjs} +1 -1
  17. package/lib/{system.datasource.272f1add.js → system.datasource.fd6a4e76.js} +1 -1
  18. package/lib/{system.dict.565d69ca.mjs → system.dict.8f95218b.mjs} +3 -3
  19. package/lib/{system.dict.a23e8cdf.js → system.dict.a24f33b0.js} +1 -1
  20. package/lib/{system.duplicatechecking.f66790d1.js → system.duplicatechecking.39293985.js} +1 -1
  21. package/lib/{system.duplicatechecking.268544dd.mjs → system.duplicatechecking.6b706948.mjs} +1 -1
  22. package/lib/{system.email.00a93855.js → system.email.a2d9a307.js} +1 -1
  23. package/lib/{system.email.ada25702.mjs → system.email.dae988be.mjs} +1 -1
  24. package/lib/{system.fieldsecurity.d14384cc.mjs → system.fieldsecurity.02627a7a.mjs} +78 -126
  25. package/lib/system.fieldsecurity.a0cec24d.js +1 -0
  26. package/lib/{system.file.a23b3c83.mjs → system.file.0fa095a9.mjs} +3 -3
  27. package/lib/system.file.d695ab37.js +1 -0
  28. package/lib/{system.log.8a9f4a4d.mjs → system.log.acb64505.mjs} +1 -1
  29. package/lib/{system.log.b3666991.js → system.log.c07ae5db.js} +1 -1
  30. package/lib/system.notice.5ae50bd4.mjs +641 -0
  31. package/lib/system.notice.f18578ae.js +1 -0
  32. package/lib/{system.noticereceived.70963f1b.mjs → system.noticereceived.1aa70b65.mjs} +24 -32
  33. package/lib/system.noticereceived.bfa98a9b.js +1 -0
  34. package/lib/{system.onlineuser.99e4de37.js → system.onlineuser.1c428d05.js} +1 -1
  35. package/lib/{system.onlineuser.c58fb6ce.mjs → system.onlineuser.3d848a32.mjs} +1 -1
  36. package/lib/system.org.5bb36f9c.js +1 -0
  37. package/lib/{system.org.638db6d1.mjs → system.org.fcf96d1e.mjs} +68 -17
  38. package/lib/{system.permissions.aa0cc0d6.mjs → system.permissions.23f5b097.mjs} +2 -2
  39. package/lib/{system.permissions.fcd56f67.js → system.permissions.a1a9505c.js} +1 -1
  40. package/lib/{system.plugin.b17efa53.js → system.plugin.b6de4673.js} +1 -1
  41. package/lib/{system.plugin.beb44900.mjs → system.plugin.e37f9dbc.mjs} +1 -1
  42. package/lib/{system.pos.699e8dd6.mjs → system.pos.1a01fc97.mjs} +1 -1
  43. package/lib/{system.pos.e8d9c488.js → system.pos.a4fb19b0.js} +1 -1
  44. package/lib/{system.promptmanagement.109a07f5.js → system.promptmanagement.290958b1.js} +1 -1
  45. package/lib/{system.promptmanagement.2ce3e426.mjs → system.promptmanagement.36a65c51.mjs} +1 -1
  46. package/lib/{system.role.230b1445.mjs → system.role.68de93ef.mjs} +354 -845
  47. package/lib/system.role.88100f66.js +1 -0
  48. package/lib/{system.sumberrules.fa1aab86.mjs → system.sumberrules.cdef9308.mjs} +1 -1
  49. package/lib/{system.sumberrules.38017ad1.js → system.sumberrules.dd6299e8.js} +1 -1
  50. package/lib/{system.team.3826e252.js → system.team.53d64006.js} +1 -1
  51. package/lib/{system.team.aeaede22.mjs → system.team.ee652fe4.mjs} +1 -1
  52. package/lib/{system.teammembers.2e3309c3.mjs → system.teammembers.26a2ba81.mjs} +2 -2
  53. package/lib/{system.teammembers.29128f16.js → system.teammembers.4a3dc336.js} +1 -1
  54. package/lib/{system.timers.0ec63785.mjs → system.timers.4efa8a7d.mjs} +1 -1
  55. package/lib/{system.timers.b62568ad.js → system.timers.b9424204.js} +1 -1
  56. package/lib/{system.translation.e71455aa.mjs → system.translation.0a9399b4.mjs} +2 -2
  57. package/lib/{system.translation.887fa90d.js → system.translation.21d2fd8b.js} +1 -1
  58. package/lib/{system.user.84227a85.mjs → system.user.4fcfdf99.mjs} +4 -4
  59. package/lib/{system.user.bed5f82a.js → system.user.d48a08db.js} +1 -1
  60. package/lib/{system.useraffiliation.7ec0fcae.js → system.useraffiliation.a59ce45b.js} +1 -1
  61. package/lib/{system.useraffiliation.b3f03a33.mjs → system.useraffiliation.fb002239.mjs} +2 -2
  62. package/lib/{system.webresource.f8b78dd0.js → system.webresource.3366cc29.js} +1 -1
  63. package/lib/{system.webresource.e6cb9173.mjs → system.webresource.4df01c92.mjs} +2 -2
  64. package/locale/en_US.js +18 -68
  65. package/locale/id_ID.js +17 -67
  66. package/locale/vi_VN.js +17 -67
  67. package/locale/zh_CN.js +17 -67
  68. package/package.json +1 -1
  69. package/lib/main.9801708f.js +0 -1
  70. package/lib/system.fieldsecurity.ede73621.js +0 -1
  71. package/lib/system.file.aa567566.js +0 -1
  72. package/lib/system.notice.5fb1485e.js +0 -1
  73. package/lib/system.notice.6d0aa32c.mjs +0 -1674
  74. package/lib/system.noticereceived.e5ef5883.js +0 -1
  75. package/lib/system.org.56151be8.js +0 -1
  76. package/lib/system.role.f0d4082c.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const h=require("./chartbi.06e48153.js"),P=require("./messages.30e41348.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
1
+ "use strict";const h=require("./chartbi.06e48153.js"),P=require("./messages.2fff74f3.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
2
  using Furion;
3
3
  using Furion.Logging;
4
4
  using Furion.RemoteRequest.Extensions;
@@ -1,6 +1,6 @@
1
- import { s as d, a as c, b as u, G as h, c as m, d as g, e as p, f, g as y, h as _, i as b } from "./system.promptmanagement.2ce3e426.mjs";
1
+ import { s as d, a as c, b as u, G as h, c as m, d as g, e as p, f, g as y, h as _, i as b } from "./system.promptmanagement.36a65c51.mjs";
2
2
  import { n as r, m as $ } from "./chartbi.cdd1e365.mjs";
3
- import { p as v } from "./messages.a1335b0f.mjs";
3
+ import { m as v } from "./messages.d8abe18d.mjs";
4
4
  const w = {
5
5
  props: {
6
6
  openPermissions: {
@@ -1 +1 @@
1
- "use strict";const n=require("./system.promptmanagement.109a07f5.js"),o=require("./chartbi.06e48153.js"),u=require("./messages.30e41348.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,_,!1,null,"4232173a",null,null);const $=b.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:"160"}],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,"fe7e203c",null,null);const r=k.exports;r.install=function(e){e.component(r.name,r)};exports.GDpackage=r;exports.editForm=c;
1
+ "use strict";const n=require("./system.promptmanagement.290958b1.js"),o=require("./chartbi.06e48153.js"),u=require("./messages.2fff74f3.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,_,!1,null,"4232173a",null,null);const $=b.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:"160"}],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,"fe7e203c",null,null);const r=k.exports;r.install=function(e){e.component(r.name,r)};exports.GDpackage=r;exports.editForm=c;
@@ -1,8 +1,8 @@
1
- import { a as C } from "./system.notice.6d0aa32c.mjs";
2
- import { h as O, a as N, i as P, c as B, j as D, k as E, g as U, l as I, m as A, n as M, f as q, o as H, q as j, r as z, t as S } from "./system.account.20f9e450.mjs";
1
+ import { g as C } from "./system.org.fcf96d1e.mjs";
2
+ import { f as O, a as N, h as P, c as B, i as D, j as E, k as U, l as I, m as A, n as M, e as q, o as H, q as j, r as z, t as S } from "./system.account.9bc40d08.mjs";
3
3
  import { m as R, n as T } from "./chartbi.cdd1e365.mjs";
4
- import { t as G } from "./messages.a1335b0f.mjs";
5
- import { G as Q } from "./system.role.230b1445.mjs";
4
+ import { t as G } from "./messages.d8abe18d.mjs";
5
+ import { G as Q } from "./system.role.68de93ef.mjs";
6
6
  const V = {
7
7
  data() {
8
8
  return {