gtsoft-snail-job-server/easy-retry-server/easy-retry-server-starter/src/main/resources/admin/js/chunk-4fbc7c8c.6b5571b7.js
byteblogs168 ffe717f344 feat: 2.6.0
1. task_type变更为system_task_type
2. 修复客户端工作流新增任务接口显示任务名称underfine问题
2024-01-28 23:55:26 +08:00

3 lines
36 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4fbc7c8c"],{"12b3":function(e,t){var r={sceneStatus:{0:{name:"停用",color:"#9c1f1f"},1:{name:"启用",color:"#f5a22d"}},backOffLabels:{1:{name:"延迟等级",color:"#d06892"},2:{name:"固定时间",color:"#f5a22d"},3:{name:"CRON表达式",color:"#e1f52d"},4:{name:"随机等待",color:"#a127f3"}},triggerInterval:{1:{name:"CRON表达式",color:"#d06892"},2:{name:"固定时间",color:"#f5a22d"}},notifyScene:{1:{name:"场景重试数量超过阈值",color:"#d06892"},2:{name:"场景重试失败数量超过阈值",color:"#f5a22d"},3:{name:"客户端上报失败",color:"#e1f52d"},4:{name:"客户端组件异常",color:"#a127f3"},5:{name:"任务重试失败数量超过阈值",color:"#f5a22d"},6:{name:"任务重试失败进入死信队列",color:"#f5a22d"}},routeKey:{4:{name:"轮询",color:"#8f68d2"},1:{name:"一致性Hash",color:"#d06892"},2:{name:"随机",color:"#f5a22d"},3:{name:"LRU",color:"#e1f52d"}},notifyType:{1:{name:"钉钉通知",color:"#64a6ea"},2:{name:"邮箱通知",color:"#1b7ee5"},3:{name:"企业微信",color:"#0082EF"},4:{name:"飞书",color:"#087da1"}},rateLimiterStatus:{0:{name:"未启用",color:"#9c1f1f"},1:{name:"启用",color:"#f5a22d"}},notifyStatus:{0:{name:"停用",color:"#9c1f1f"},1:{name:"启用",color:"#f5a22d"}},idGenMode:{1:{name:"号段模式",color:"#1b7ee5"},2:{name:"雪花算法",color:"#087da1"}},groupStatus:{0:{name:"停用",color:"#9c1f1f"},1:{name:"启用",color:"#f5a22d"}},initScene:{0:{name:"否",color:"#9c1f1f"},1:{name:"是",color:"#f5a22d"}}};e.exports=r},"1da1":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r("d3b7");function a(e,t,r,a,o,n,i){try{var s=e[n](i),u=s.value}catch(l){return void r(l)}s.done?t(u):Promise.resolve(u).then(a,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function s(e){a(i,o,n,s,u,"next",e)}function u(e){a(i,o,n,s,u,"throw",e)}s(void 0)}))}}},"3b7a":function(e,t,r){"use strict";r.d(t,"z",(function(){return n})),r.d(t,"p",(function(){return i})),r.d(t,"s",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"w",(function(){return l})),r.d(t,"x",(function(){return c})),r.d(t,"y",(function(){return f})),r.d(t,"r",(function(){return d})),r.d(t,"o",(function(){return m})),r.d(t,"j",(function(){return h})),r.d(t,"q",(function(){return p})),r.d(t,"a",(function(){return b})),r.d(t,"v",(function(){return y})),r.d(t,"i",(function(){return g})),r.d(t,"l",(function(){return v})),r.d(t,"h",(function(){return w})),r.d(t,"g",(function(){return L})),r.d(t,"f",(function(){return j})),r.d(t,"d",(function(){return S})),r.d(t,"c",(function(){return N})),r.d(t,"m",(function(){return T})),r.d(t,"t",(function(){return x})),r.d(t,"k",(function(){return k})),r.d(t,"e",(function(){return _})),r.d(t,"n",(function(){return O})),r.d(t,"u",(function(){return V}));var a=r("b775"),o={jobPageList:"/job/page/list",jobList:"/job/list",jobDetail:"/job/",saveJob:"/job/",updateJob:"/job/",updateJobStatus:"/job/status",delJob:"/job/",timeByCron:"/job/cron",jobNameList:"/job/job-name/list",triggerJob:"/job/trigger/",jobBatchList:"/job/batch/list",jobBatchDetail:"/job/batch/",stop:"/job/batch/stop/",jobNotifyConfigPageList:"/job/notify/config/page/list",jobNotifyConfigDetail:"/job/notify/config/",saveJobNotify:"/job/notify/config/",updateJobNotify:"/job/notify/config/",jobTaskList:"/job/task/list",jobLogList:"/job/log/list",workflowListPage:"/workflow/page/list",saveWorkflow:"/workflow",updateWorkflow:"/workflow",workflowDetail:"/workflow",workflowBatchListPage:"/workflow/batch/page/list",workflowBatchDetail:"/workflow/batch/",updateStatus:"/workflow/update/status/",delWorkflow:"/workflow/",triggerWorkflow:"/workflow/trigger/",stopWorkflowBatch:"/workflow/batch/stop/",workflowNameList:"/workflow/workflow-name/list"};function n(e){return Object(a["b"])({url:o.workflowNameList,method:"get",params:e})}function i(e){return Object(a["b"])({url:o.stopWorkflowBatch+e,method:"post"})}function s(e){return Object(a["b"])({url:o.triggerWorkflow+e,method:"post"})}function u(e){return Object(a["b"])({url:o.delWorkflow+e,method:"delete"})}function l(e){return Object(a["b"])({url:o.updateStatus+e,method:"put"})}function c(e){return Object(a["b"])({url:o.workflowBatchListPage,method:"get",params:e})}function f(e){return Object(a["b"])({url:o.workflowListPage,method:"get",params:e})}function d(e){return Object(a["b"])({url:o.triggerJob+e,method:"post"})}function m(e){return Object(a["b"])({url:o.stop+e,method:"post"})}function h(e){return Object(a["b"])({url:o.jobNameList,method:"get",params:e})}function p(e){return Object(a["b"])({url:o.timeByCron,method:"get",params:e})}function b(e){return Object(a["b"])({url:o.delJob+e,method:"delete"})}function y(e){return Object(a["b"])({url:o.updateJobStatus,method:"put",data:e})}function g(e){return Object(a["b"])({url:o.jobLogList,method:"get",params:e})}function v(e){return Object(a["b"])({url:o.jobTaskList,method:"get",params:e})}function w(e){return Object(a["b"])({url:o.jobBatchList,method:"get",params:e})}function L(e){return Object(a["b"])({url:o.jobBatchDetail+e,method:"get"})}function j(e){return Object(a["b"])({url:o.jobPageList,method:"get",params:e})}function S(e){return Object(a["b"])({url:o.jobList,method:"get",params:e})}function N(e){return Object(a["b"])({url:o.jobDetail+e,method:"get"})}function T(e){return Object(a["b"])({url:o.saveJob,method:"post",data:e})}function x(e){return Object(a["b"])({url:o.updateJob,method:"put",data:e})}function k(e){return Object(a["b"])({url:o.jobNotifyConfigPageList,method:"get",params:e})}function _(e){return Object(a["b"])({url:o.jobNotifyConfigDetail+e,method:"get"})}function O(e){return Object(a["b"])({url:o.saveJobNotify,method:"post",data:e})}function V(e){return Object(a["b"])({url:o.updateJobNotify,method:"put",data:e})}},4591:function(e,t,r){"use strict";r("b3f4")},"595c":function(e,t,r){"use strict";r.r(t);r("b0c0"),r("caad"),r("2532");var a=function(){var e=this,t=e._self._c;return t("div",[t("page-header-wrapper",{staticStyle:{margin:"-24px -1px 0"},attrs:{content:"通知配置"},on:{back:function(){return e.$router.go(-1)}}},[t("div")]),t("a-card",{attrs:{"body-style":{padding:"24px 32px"},bordered:!1,loading:e.loading}},[t("a-form",{staticClass:"form-row",staticStyle:{width:"40%",margin:"auto"},attrs:{form:e.form,layout:"vertical"},on:{submit:e.handleSubmit}},[t("a-row",{staticClass:"form-row",attrs:{gutter:16}},[t("a-col",{attrs:{lg:18,md:12,sm:24}},[t("a-form-item",[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["id"],expression:"['id']"}],attrs:{hidden:""}})],1),t("a-form-item",[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("通知场景 "),t("a",{attrs:{href:e.officialWebsite+"/pages/038b42/",target:"_blank"}},[t("a-icon",{attrs:{type:"question-circle-o"}})],1)]),t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["notifyScene",{initialValue:"1",rules:[{required:!0,message:"请选通知场景"}]}],expression:"[\n 'notifyScene',\n {\n initialValue: '1',\n rules: [{ required: true, message: '请选通知场景'}]\n }\n ]"}],staticStyle:{width:"100%"},attrs:{placeholder:"通知场景"},on:{change:e.changeNotifyScene}},e._l(e.notifySceneList,(function(r,a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(e._s(r.name))])})),1)],1)],1),t("a-col",{attrs:{lg:6,md:12,sm:24}},[t("a-form-item",[t("a-input",{attrs:{hidden:""}})],1),t("a-form-item",{attrs:{label:"通知阈值"}},[e.notifyThresholdDisabled.includes(this.notifySceneValue)?t("a-input",{attrs:{disabled:""}}):t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["notifyThreshold",{initialValue:"16",rules:[{required:!e.notifyThresholdDisabled.includes(this.notifySceneValue),message:"请输入通知阈值"}]}],expression:"[\n 'notifyThreshold',\n {\n initialValue: '16',\n rules: [{ required: !notifyThresholdDisabled.includes(this.notifySceneValue), message: '请输入通知阈值'}]\n }\n ]"}],staticStyle:{width:"-webkit-fill-available"},attrs:{id:"inputNumber",min:1,max:e.maxNotifyThreshold}})],1)],1)],1),t("a-row",{staticClass:"form-row",attrs:{gutter:16}},[t("a-col",{attrs:{lg:18,md:12,sm:24}},[t("a-form-item",{attrs:{label:"组"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupName",{rules:[{required:!0,message:"请选择组"}]}],expression:"['groupName', { rules: [{ required: true, message: '请选择组' }] }]"}],attrs:{placeholder:"请选择组"},on:{change:function(t){return e.changeGroup(t)}}},e._l(e.groupNameList,(function(r){return t("a-select-option",{key:r,attrs:{value:r}},[e._v(e._s(r))])})),1)],1)],1),t("a-col",{attrs:{lg:6,md:12,sm:24}},[t("a-form-item",{attrs:{label:"场景"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["sceneName",{rules:[{required:!e.sceneNameDisabled.includes(this.notifySceneValue),message:"请选择场景"}]}],expression:"['sceneName', { rules: [{ required: !sceneNameDisabled.includes(this.notifySceneValue), message: '请选择场景' }] }]"}],attrs:{disabled:e.sceneNameDisabled.includes(this.notifySceneValue),placeholder:"请选择场景"},on:{select:e.changeSceneName}},e._l(e.sceneList,(function(r){return t("a-select-option",{key:r.sceneName,attrs:{value:r.sceneName,maxRetryCount:r.maxRetryCount}},[e._v(e._s(r.sceneName))])})),1)],1)],1)],1),t("a-row",{staticClass:"form-row",attrs:{gutter:16}},[t("a-col",{attrs:{lg:8,md:12,sm:12}},[t("a-form-item",[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("通知类型  "),t("a",{attrs:{href:e.officialWebsite+"/pages/6dbf43/",target:"_blank"}},[t("a-icon",{attrs:{type:"question-circle-o"}})],1)]),t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["notifyType",{initialValue:"1",rules:[{required:!0,message:"请选择通知类型"}]}],expression:"[\n 'notifyType',\n {\n initialValue: '1',\n rules: [{ required: true, message: '请选择通知类型'}]\n }\n ]"}],staticStyle:{width:"100%"},attrs:{placeholder:"通知类型"},on:{change:e.handleChange}},e._l(e.notifyTypeList,(function(r,a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(e._s(r.name))])})),1)],1)],1),t("a-col",{attrs:{lg:16,md:12,sm:12}},[t("a-form-item",{attrs:{label:"配置属性"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["notifyAttribute",{rules:[{required:!0,message:"请输入配置属性",whitespace:!0}]}],expression:"[\n 'notifyAttribute',\n {rules: [{ required: true, message: '请输入配置属性', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入配置属性"},on:{click:e.handleBlur}})],1)],1)],1),t("a-row",{staticClass:"form-row",attrs:{gutter:16}},[t("a-col",{attrs:{lg:8,md:12,sm:24}},[t("a-form-item",{attrs:{label:"限流状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["rateLimiterStatus",{initialValue:"0",rules:[{required:!0,message:"请选择限流状态"}]}],expression:"['rateLimiterStatus',{initialValue: '0', rules: [{ required: true, message: '请选择限流状态'}]}]"}],attrs:{disabled:e.rateLimiterStatusDisabled.includes(this.notifySceneValue),placeholder:"请选择限流状态"},on:{change:e.changeRateLimiterStatus}},e._l(e.rateLimiterStatusList,(function(r,a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(e._s(r.name))])})),1)],1)],1),t("a-col",{attrs:{lg:8,md:12,sm:24}},[t("a-form-item",{attrs:{label:"每秒限流阈值"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["rateLimiterThreshold",{initialValue:"100",rules:[{required:!e.rateLimiterThresholdDisabled.includes(this.rateLimiterStatusValue),message:"请输入通知阈值"}]}],expression:"['rateLimiterThreshold',{initialValue: '100',rules: [{ required: !rateLimiterThresholdDisabled.includes(this.rateLimiterStatusValue), message: '请输入通知阈值' }]}]"}],staticStyle:{width:"-webkit-fill-available"},attrs:{disabled:e.rateLimiterThresholdDisabled.includes(this.rateLimiterStatusValue),id:"inputNumber",min:1}})],1)],1),t("a-col",{attrs:{lg:8,md:12,sm:24}},[t("a-form-item",{attrs:{label:"状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["notifyStatus",{initialValue:"1",rules:[{required:!0,message:"请选择状态"}]}],expression:"[\n 'notifyStatus',\n {\n initialValue: '1',\n rules: [{ required: true, message: '请选择状态'}]\n }\n ]"}],attrs:{placeholder:"请选择状态"}},e._l(e.notifyStatusList,(function(r,a){return t("a-select-option",{key:a,attrs:{value:a}},[e._v(e._s(r.name))])})),1)],1)],1)],1),t("a-row",{staticClass:"form-row",attrs:{gutter:16}},[t("a-col",{attrs:{lg:24,md:24,sm:24}},[t("a-form-item",{attrs:{label:"描述"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["description",{rules:[{required:!1,max:256,message:"最多支持256个字符"}]}],expression:"[\n 'description',\n {rules: [{required: false, max: 256, message: '最多支持256个字符'}]}\n ]"}],attrs:{placeholder:"请输入描述",type:"textarea"}})],1)],1)],1),t("a-form-item",{staticStyle:{"text-align":"center"},attrs:{wrapperCol:{span:24}}},[t("a-button",{attrs:{htmlType:"submit",type:"primary"}},[e._v("提交")])],1)],1)],1),t("a-modal",{attrs:{visible:e.visible,title:"添加配置",width:"1000px"},on:{ok:e.handleOk,cancel:e.handlerCancel}},[t("a-form",e._b({attrs:{form:e.notifyAttributeForm,"body-style":{padding:"0px 0px"}},on:{submit:e.handleSubmit}},"a-form",e.formItemLayout,!1),["1"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"钉钉URL"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["webhookUrl",{rules:[{required:!0,message:"请输入钉钉URL",whitespace:!0}]}],expression:"[\n 'webhookUrl',\n {rules: [{ required: true, message: '请输入钉钉URL', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入钉钉URL"}})],1):e._e(),"1"===this.tempNotifyTypeValue?t("a-form-item",[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("被@人手机号或钉钉号 ")]),"1"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ats",{rules:[{required:!1,message:"请输入被@人手机号或钉钉号",whitespace:!0}]}],expression:"[\n 'ats',\n {rules: [{ required: false, message: '请输入被@人手机号或钉钉号', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入被@人手机号或钉钉号",type:"textarea"}}):e._e()],1):e._e(),"3"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"企业微信URL"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["webhookUrl",{rules:[{required:!0,message:"请输入企业微信URL",whitespace:!0}]}],expression:"[\n 'webhookUrl',\n {rules: [{ required: true, message: '请输入企业微信URL', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入企业微信URL"}})],1):e._e(),"3"===this.tempNotifyTypeValue?t("a-form-item",[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("被@人企业微信用户id ")]),"3"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ats",{rules:[{required:!1,message:"请输入被@人企业微信用户id",whitespace:!0}]}],expression:"[\n 'ats',\n {rules: [{ required: false, message: '请输入被@人企业微信用户id', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入被@人企业微信用户id",type:"textarea"}}):e._e()],1):e._e(),"4"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"飞书URL"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["webhookUrl",{rules:[{required:!0,message:"请输入飞书URL",whitespace:!0}]}],expression:"[\n 'webhookUrl',\n {rules: [{ required: true, message: '请输入飞书URL', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入飞书URL"}})],1):e._e(),"4"===this.tempNotifyTypeValue?t("a-form-item",[t("span",{attrs:{slot:"label"},slot:"label"},[e._v("被@人用户id ")]),"4"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ats",{rules:[{required:!1,message:"请输入被@人open_id",whitespace:!0}]}],expression:"[\n 'ats',\n {rules: [{ required: false, message: '请输入被@人open_id', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入被@人open_id",type:"textarea"}}):e._e()],1):e._e(),"2"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"用户名"}},["2"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["user",{rules:[{required:!0,message:"请输入用户名",whitespace:!0}]}],expression:"[\n 'user',\n {rules: [{ required: true, message: '请输入用户名', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入用户名"}}):e._e()],1):e._e(),"2"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"密码"}},["2"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["pass",{rules:[{required:!0,message:"请输入密码",whitespace:!0}]}],expression:"[\n 'pass',\n {rules: [{ required: true, message: '请输入密码', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入密码",type:"password"}}):e._e()],1):e._e(),"2"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"SMTP地址"}},["2"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["host",{rules:[{required:!0,message:"请输入邮件服务器的SMTP地址",whitespace:!0}]}],expression:"[\n 'host',\n {rules: [{ required: true, message: '请输入邮件服务器的SMTP地址', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入邮件服务器的SMTP地址"}}):e._e()],1):e._e(),"2"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"SMTP端口"}},["2"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["port",{rules:[{required:!0,message:"请输入邮件服务器的SMTP端口",whitespace:!0}]}],expression:"[\n 'port',\n {rules: [{ required: true, message: '请输入邮件服务器的SMTP端口', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入邮件服务器的SMTP端口"}}):e._e()],1):e._e(),"2"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"发件人"}},["2"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["from",{rules:[{required:!0,message:"请输入发件人",whitespace:!0}]}],expression:"[\n 'from',\n {rules: [{ required: true, message: '请输入发件人', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入发件人"}}):e._e()],1):e._e(),"2"===this.tempNotifyTypeValue?t("a-form-item",{attrs:{label:"收件人"}},["2"===this.tempNotifyTypeValue?t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["tos",{rules:[{required:!0,message:"请输入收件人",whitespace:!0}]}],expression:"[\n 'tos',\n {rules: [{ required: true, message: '请输入收件人', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入收件人"}}):e._e()],1):e._e(),t("a-form-item",{attrs:{"wrapper-col":{xs:{span:24,offset:0},sm:{span:16,offset:8},lg:{span:7}}}})],1)],1)],1)},o=[],n=r("c7eb"),i=r("1da1"),s=(r("ac1f"),r("5319"),r("d3b7"),r("b64b"),r("a15b"),r("25f0"),r("0fea")),u=r("e941"),l=r("88bc"),c=r.n(l),f=r("6fb7"),d=r("ca00"),m=r("12b3"),h={name:"NotifyFrom",props:{},comments:{CronModal:f["a"]},data:function(){return{form:this.$form.createForm(this),formItemLayout:{labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}}},officialWebsite:Object(d["a"])(),formItemLayoutWithOutLabel:{wrapperCol:{xs:{span:24,offset:0},sm:{span:20,offset:4}}},formType:"create",groupNameList:[],sceneList:[],notifySceneList:m.notifyScene,notifyTypeList:m.notifyType,notifyStatusList:m.notifyStatus,rateLimiterStatusList:m.rateLimiterStatus,loading:!1,visible:!1,count:0,notifyTypeValue:"1",tempNotifyTypeValue:"1",notifyAttribute:"",notifyThresholdDisabled:["3","4","6"],sceneNameDisabled:["3","4"],rateLimiterStatusDisabled:["1","2","3","4"],rateLimiterThresholdDisabled:["0"],notifySceneValue:"1",rateLimiterStatusValue:"0",defaultRateLimiterStatusValue:"0",defaultRateLimiterThreshold:"100",maxNotifyThreshold:999}},beforeCreate:function(){this.notifyAttributeForm=this.$form.createForm(this,{name:"notify_attribute_form_item"})},mounted:function(){var e=this;Object(s["j"])().then((function(t){e.groupNameList=t.data})),this.$nextTick((function(){var t=e.$route.query.id;t&&(e.loading=!0,Object(u["a"])(t).then((function(t){e.loadEditInfo(t.data),e.loading=!1})))}))},methods:{resetFiled:function(){this.form.resetFields()},buildNotifyAttribute:function(e){return e.ats&&(e.ats=e.ats&&e.ats.replace(/\s+/g,"").split(",")),JSON.stringify(e)},handleChange:function(e){this.tempNotifyTypeValue=e,this.form.setFieldsValue({notifyAttribute:""})},changeGroup:function(e){var t=this;Object(s["z"])({groupName:e}).then((function(e){t.sceneList=e.data}))},changeSceneName:function(e,t){this.maxNotifyThreshold=t.data.attrs.maxRetryCount},changeRateLimiterStatus:function(e){this.rateLimiterStatusValue=e},changeNotifyScene:function(e){this.notifySceneValue=e;var t=this.form;this.sceneNameDisabled.includes(e)&&t.setFieldsValue({sceneName:""}),this.rateLimiterStatusDisabled.includes(e)&&(t.setFieldsValue({rateLimiterStatus:this.defaultRateLimiterStatusValue,rateLimiterThreshold:this.defaultRateLimiterThreshold}),this.changeRateLimiterStatus(this.defaultRateLimiterStatusValue))},handleBlur:function(){var e=this;new Promise((function(e){setTimeout(e,100)})).then((function(){if("edit"===e.formType&&e.tempNotifyTypeValue===e.notifyTypeValue){var t=c()(JSON.parse(e.notifyAttribute),["webhookUrl","ats","user","pass","host","port","from","tos"]);e.notifyAttributeForm.getFieldDecorator("webhookUrl",{initialValue:t.webhookUrl,preserve:!0}),t.ats&&e.notifyAttributeForm.getFieldDecorator("ats",{initialValue:t.ats.join(","),preserve:!0}),e.notifyAttributeForm.getFieldDecorator("user",{initialValue:t.user,preserve:!0}),e.notifyAttributeForm.getFieldDecorator("pass",{initialValue:t.pass,preserve:!0}),e.notifyAttributeForm.getFieldDecorator("host",{initialValue:t.host,preserve:!0}),e.notifyAttributeForm.getFieldDecorator("port",{initialValue:t.port,preserve:!0}),e.notifyAttributeForm.getFieldDecorator("from",{initialValue:t.from,preserve:!0}),e.notifyAttributeForm.getFieldDecorator("tos",{initialValue:t.tos,preserve:!0})}e.visible=!e.visible}))},handlerCancel:function(){this.visible=!1},handleOk:function(){var e=this;this.notifyAttributeForm.validateFields((function(t,r){if(!t){var a=e.form,o=c()(r,["webhookUrl","ats","user","pass","host","port","from","tos"]);e.notifyAttribute=e.buildNotifyAttribute(o),a.setFieldsValue({notifyAttribute:e.parseJson(o)}),e.notifyTypeValue=e.tempNotifyTypeValue,e.visible=!1}}))},handleSubmit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,r){e||(r["notifyAttribute"]=t.notifyAttribute,"create"===t.formType?Object(u["c"])(r).then((function(e){t.$message.success("任务新增完成"),t.form.resetFields(),t.$router.go(-1)})):Object(u["e"])(r).then((function(e){t.$message.success("任务更新完成"),t.form.resetFields(),t.$router.go(-1)})))}))},loadEditInfo:function(e){var t=this;this.formType="edit";var r=this.form;new Promise((function(r){setTimeout(Object(i["a"])(Object(n["a"])().mark((function a(){return Object(n["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.changeGroup(e.groupName);case 2:r();case 3:case"end":return a.stop()}}),a)}))),100)})).then((function(){var a=c()(e,["id","notifyAttribute","groupName","sceneName","notifyStatus","notifyScene","notifyThreshold","notifyType","description","rateLimiterStatus","rateLimiterThreshold"]);a.notifyStatus=a.notifyStatus.toString(),a.notifyScene=a.notifyScene.toString(),a.notifyType=a.notifyType.toString(),a.notifyThreshold=a.notifyThreshold.toString(),a.rateLimiterStatus=a.rateLimiterStatus.toString(),a.rateLimiterThreshold=a.rateLimiterThreshold.toString(),t.notifyTypeValue=a.notifyType,t.tempNotifyTypeValue=a.notifyType,t.notifyAttribute=a.notifyAttribute,t.notifySceneValue=a.notifyScene,t.rateLimiterStatusValue=a.rateLimiterStatus,a.notifyAttribute=t.parseJson(JSON.parse(a.notifyAttribute)),r.setFieldsValue(a)}))},parseJson:function(e){if(!e)return null;var t="用户名:"+e["user"]+";密码:"+e["pass"]+";SMTP地址:"+e["host"]+";SMTP端口:"+e["port"]+";发件人:"+e["from"]+";收件人:"+e["tos"]+";";return"1"===this.notifyTypeValue?t="钉钉Url:"+e["webhookUrl"]+";被@人手机号或钉钉号:"+e["ats"]+";":"3"===this.notifyTypeValue?t="企业微信Url:"+e["webhookUrl"]+";被@人企业微信用户id:"+e["ats"]+";":"4"===this.notifyTypeValue&&(t="飞书Url:"+e["webhookUrl"]+";被@人openid:"+e["ats"]+";"),t}}},p=h,b=r("2877"),y=Object(b["a"])(p,a,o,!1,null,null,null);t["default"]=y.exports},"6fb7":function(e,t,r){"use strict";var a=function(){var e=this,t=e._self._c;return t("div",[t("a-modal",{attrs:{visible:e.visible,title:"Cron表达式",width:"650px"},on:{ok:e.handleOk,cancel:e.handlerCancel}},[t("cron-input",{attrs:{item:e.cronItem},on:{change:e.showFive},model:{value:e.cron,callback:function(t){e.cron=t},expression:"cron"}}),t("a-input",{attrs:{placeholder:"请输入cron表达式"},model:{value:e.cron,callback:function(t){e.cron=t},expression:"cron"}}),t("div",{staticStyle:{margin:"20px 0","border-left":"#f5222d 5px solid","font-size":"medium","font-weight":"bold"}},[e._v("    近5次的运行时间: ")]),e._l(e.list,(function(r,a){return t("div",{key:r,staticStyle:{"margin-top":"10px"}},[e._v(" 第"+e._s(a+1)+"次: "+e._s(r))])}))],2)],1)},o=[],n=r("3b7a"),i={name:"CronModal",data:function(){return{visible:!1,cronItem:["second","minute","hour","day","month","week","year"],cron:"",list:[]}},methods:{handleOk:function(){this.visible=!1,this.$emit("getCron",this.cron)},handlerCancel:function(){this.visible=!1},isShow:function(e){this.cron=e,this.visible=!0},showFive:function(e){var t=this;this.cron=e,Object(n["q"])({cron:e}).then((function(e){t.list=e.data}))}}},s=i,u=(r("4591"),r("2877")),l=Object(u["a"])(s,a,o,!1,null,null,null);t["a"]=l.exports},"88bc":function(e,t,r){(function(t){var r=1/0,a=9007199254740991,o="[object Arguments]",n="[object Function]",i="[object GeneratorFunction]",s="[object Symbol]",u="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=u||l||Function("return this")();function f(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function d(e,t){var r=-1,a=e?e.length:0,o=Array(a);while(++r<a)o[r]=t(e[r],r,e);return o}function m(e,t){var r=-1,a=t.length,o=e.length;while(++r<a)e[o+r]=t[r];return e}var h=Object.prototype,p=h.hasOwnProperty,b=h.toString,y=c.Symbol,g=h.propertyIsEnumerable,v=y?y.isConcatSpreadable:void 0,w=Math.max;function L(e,t,r,a,o){var n=-1,i=e.length;r||(r=T),o||(o=[]);while(++n<i){var s=e[n];t>0&&r(s)?t>1?L(s,t-1,r,a,o):m(o,s):a||(o[o.length]=s)}return o}function j(e,t){return e=Object(e),S(e,t,(function(t,r){return r in e}))}function S(e,t,r){var a=-1,o=t.length,n={};while(++a<o){var i=t[a],s=e[i];r(s,i)&&(n[i]=s)}return n}function N(e,t){return t=w(void 0===t?e.length-1:t,0),function(){var r=arguments,a=-1,o=w(r.length-t,0),n=Array(o);while(++a<o)n[a]=r[t+a];a=-1;var i=Array(t+1);while(++a<t)i[a]=r[a];return i[t]=n,f(e,this,i)}}function T(e){return _(e)||k(e)||!!(v&&e&&e[v])}function x(e){if("string"==typeof e||A(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}function k(e){return V(e)&&p.call(e,"callee")&&(!g.call(e,"callee")||b.call(e)==o)}var _=Array.isArray;function O(e){return null!=e&&F(e.length)&&!q(e)}function V(e){return C(e)&&O(e)}function q(e){var t=D(e)?b.call(e):"";return t==n||t==i}function F(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function C(e){return!!e&&"object"==typeof e}function A(e){return"symbol"==typeof e||C(e)&&b.call(e)==s}var P=N((function(e,t){return null==e?{}:j(e,d(L(t,1),x))}));e.exports=P}).call(this,r("c8ba"))},b3f4:function(e,t,r){},c7eb:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var a=r("53ca");function o(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(V){c=function(e,t,r){return e[t]=r}}function f(e,t,r,a){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),s=new k(a||[]);return n(i,"_invoke",{value:S(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(V){return{type:"throw",arg:V}}}e.wrap=f;var m={};function h(){}function p(){}function b(){}var y={};c(y,s,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(_([])));v&&v!==t&&r.call(v,s)&&(y=v);var w=b.prototype=h.prototype=Object.create(y);function L(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function o(n,i,s,u){var l=d(e[n],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==Object(a["a"])(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,u)}),(function(e){o("throw",e,s,u)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return o("throw",e,s,u)}))}u(l.arg)}var i;n(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){o(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function S(e,t,r){var a="suspendedStart";return function(o,n){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===o)throw n;return O()}for(r.method=o,r.arg=n;;){var i=r.delegate;if(i){var s=N(i,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var u=d(e,t,r);if("normal"===u.type){if(a=r.done?"completed":"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(a="completed",r.method="throw",r.arg=u.arg)}}}function N(e,t){var r=t.method,a=e.iterator[r];if(void 0===a)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(a,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var n=o.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function t(){for(;++a<e.length;)if(r.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=b,n(w,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:p,configurable:!0}),p.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},L(j.prototype),c(j.prototype,u,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,a,o,n){void 0===n&&(n=Promise);var i=new j(f(t,r,a,o),n);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(w),c(w,l,"Generator"),c(w,s,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var a in t)r.push(a);return r.reverse(),function e(){for(;r.length;){var a=r.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},e.values=_,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(r,a){return i.type="throw",i.arg=e,t.next=r,a&&(t.method="next",t.arg=void 0),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),u=r.call(n,"finallyLoc");if(s&&u){if(this.prev<n.catchLoc)return a(n.catchLoc,!0);if(this.prev<n.finallyLoc)return a(n.finallyLoc)}else if(s){if(this.prev<n.catchLoc)return a(n.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return a(n.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var n=o;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var i=n?n.completion:{};return i.type=e,i.arg=t,n?(this.method="next",this.next=n.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var o=a.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},e}},e941:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"e",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"f",(function(){return c}));var a=r("b775"),o=(r("0fea"),{scenePageList:"/scene-config/page/list",sceneList:"/scene-config/list",sceneDetail:"/scene-config/",saveScene:"/scene-config",updateScene:"/scene-config",notifyConfigList:"/notify-config/list",notifyConfigDetail:"/notify-config/",saveNotify:"/notify-config/",updateNotify:"/notify-config/"});function n(e){return Object(a["b"])({url:o.notifyConfigDetail+e,method:"get"})}function i(e){return Object(a["b"])({url:o.saveNotify,method:"post",data:e})}function s(e){return Object(a["b"])({url:o.updateNotify,method:"put",data:e})}function u(e){return Object(a["b"])({url:o.sceneDetail+e,method:"get"})}function l(e){return Object(a["b"])({url:o.saveScene,method:"post",data:e})}function c(e){return Object(a["b"])({url:o.updateScene,method:"put",data:e})}}}]);