(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-90602648"],{"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},"3b7a":function(e,t,r){"use strict";r.d(t,"m",(function(){return a})),r.d(t,"A",(function(){return i})),r.d(t,"q",(function(){return c})),r.d(t,"t",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"x",(function(){return l})),r.d(t,"y",(function(){return f})),r.d(t,"z",(function(){return m})),r.d(t,"s",(function(){return d})),r.d(t,"p",(function(){return b})),r.d(t,"j",(function(){return h})),r.d(t,"r",(function(){return g})),r.d(t,"a",(function(){return p})),r.d(t,"w",(function(){return v})),r.d(t,"i",(function(){return w})),r.d(t,"l",(function(){return j})),r.d(t,"h",(function(){return y})),r.d(t,"g",(function(){return k})),r.d(t,"f",(function(){return O})),r.d(t,"d",(function(){return x})),r.d(t,"c",(function(){return S})),r.d(t,"n",(function(){return N})),r.d(t,"u",(function(){return C})),r.d(t,"k",(function(){return L})),r.d(t,"e",(function(){return q})),r.d(t,"o",(function(){return _})),r.d(t,"v",(function(){return F}));r("f1e1");var n=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",retry:"/job/batch/retry",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 a(e){return Object(n["b"])({url:"".concat(o.retry,"/").concat(e),method:"post"})}function i(e){return Object(n["b"])({url:o.workflowNameList,method:"get",params:e})}function c(e){return Object(n["b"])({url:"".concat(o.stopWorkflowBatch,"/").concat(e),method:"post"})}function s(e){return Object(n["b"])({url:"".concat(o.triggerWorkflow,"/").concat(e),method:"post"})}function u(e){return Object(n["b"])({url:"".concat(o.delWorkflow,"/").concat(e),method:"delete"})}function l(e){return Object(n["b"])({url:"".concat(o.updateStatus,"/").concat(e),method:"put"})}function f(e){return Object(n["b"])({url:o.workflowBatchListPage,method:"get",params:e})}function m(e){return Object(n["b"])({url:o.workflowListPage,method:"get",params:e})}function d(e){return Object(n["b"])({url:"".concat(o.triggerJob,"/").concat(e),method:"post"})}function b(e){return Object(n["b"])({url:o.stop+e,method:"post"})}function h(e){return Object(n["b"])({url:o.jobNameList,method:"get",params:e})}function g(e){return Object(n["b"])({url:o.timeByCron,method:"get",params:e})}function p(e){return Object(n["b"])({url:"".concat(o.delJob,"/").concat(e),method:"delete"})}function v(e){return Object(n["b"])({url:o.updateJobStatus,method:"put",data:e})}function w(e){return Object(n["b"])({url:o.jobLogList,method:"get",params:e})}function j(e){return Object(n["b"])({url:o.jobTaskList,method:"get",params:e})}function y(e){return Object(n["b"])({url:o.jobBatchList,method:"get",params:e})}function k(e){return Object(n["b"])({url:"".concat(o.jobBatchDetail,"/").concat(e),method:"get"})}function O(e){return Object(n["b"])({url:o.jobPageList,method:"get",params:e})}function x(e){return Object(n["b"])({url:o.jobList,method:"get",params:e})}function S(e){return Object(n["b"])({url:"".concat(o.jobDetail,"/").concat(e),method:"get"})}function N(e){return Object(n["b"])({url:o.saveJob,method:"post",data:e})}function C(e){return Object(n["b"])({url:o.updateJob,method:"put",data:e})}function L(e){return Object(n["b"])({url:o.jobNotifyConfigPageList,method:"get",params:e})}function q(e){return Object(n["b"])({url:"".concat(o.jobNotifyConfigDetail,"/").concat(e),method:"get"})}function _(e){return Object(n["b"])({url:o.saveJobNotify,method:"post",data:e})}function F(e){return Object(n["b"])({url:o.updateJobNotify,method:"put",data:e})}},"6fb7":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("a-modal",{attrs:{visible:e.visible,title:"Cron表达式",width:"650px"},on:{ok:e.handleOk,cancel:e.handlerCancel}},[r("cron-input",{attrs:{item:e.cronItem},on:{change:e.showFive},model:{value:e.cron,callback:function(t){e.cron=t},expression:"cron"}}),r("a-input",{attrs:{placeholder:"请输入cron表达式"},model:{value:e.cron,callback:function(t){e.cron=t},expression:"cron"}}),r("div",{staticStyle:{margin:"20px 0","border-left":"#f5222d 5px solid","font-size":"medium","font-weight":"bold"}},[e._v("    近5次的运行时间: ")]),e._l(e.list,(function(t,n){return r("div",{key:t,staticStyle:{"margin-top":"10px"}},[e._v(" 第"+e._s(n+1)+"次: "+e._s(t))])}))],2)],1)},o=[],a=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(a["r"])({cron:e}).then((function(e){t.list=e.data}))}}},c=i,s=(r("ac4c"),r("f7c6")),u=Object(s["a"])(c,n,o,!1,null,null,null);t["a"]=u.exports},ac4c:function(e,t,r){"use strict";r("e6cb")},c959:function(e,t,r){(function(t){var r=1/0,n=9007199254740991,o="[object Arguments]",a="[object Function]",i="[object GeneratorFunction]",c="[object Symbol]",s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=s||u||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 m(e,t){var r=-1,n=e?e.length:0,o=Array(n);while(++r0&&r(c)?t>1?y(c,t-1,r,n,o):d(o,c):n||(o[o.length]=c)}return o}function k(e,t){return e=Object(e),O(e,t,(function(t,r){return r in e}))}function O(e,t,r){var n=-1,o=t.length,a={};while(++n-1&&e%1==0&&e<=n}function J(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function D(e){return!!e&&"object"==typeof e}function I(e){return"symbol"==typeof e||D(e)&&g.call(e)==c}var T=x((function(e,t){return null==e?{}:k(e,m(y(t,1),N))}));e.exports=T}).call(this,r("d8fc"))},cc86:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("page-header-wrapper",{staticStyle:{margin:"-24px -1px 0"},attrs:{content:"场景配置"},on:{back:function(){return e.$router.go(-1)}}},[r("div")]),r("a-card",{attrs:{"body-style":{padding:"24px 32px"},bordered:!1,loading:e.loading}},[r("a-form",{staticClass:"form-row",staticStyle:{width:"40%",margin:"auto"},attrs:{form:e.form,layout:"vertical"},on:{submit:e.handleSubmit}},[r("a-row",{staticClass:"form-row",attrs:{gutter:16}},[r("a-col",{attrs:{lg:24,md:24,sm:24}},[r("a-form-item",[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["id"],expression:"['id']"}],attrs:{hidden:""}})],1),r("a-form-item",{attrs:{label:"场景名称"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["sceneName",{rules:[{required:!0,message:"请输入场景名称",whitespace:!0},{required:!0,max:64,message:"最多支持64个字符!"}]}],expression:"[\n 'sceneName',\n {rules: [{ required: true, message: '请输入场景名称', whitespace: true},{required: true, max: 64, message: '最多支持64个字符!'}]}\n ]"}],attrs:{placeholder:"请输入场景名称",maxLength:64,disabled:"edit"===this.formType}})],1)],1)],1),r("a-row",{staticClass:"form-row",attrs:{gutter:16}},[r("a-col",{attrs:{lg:18,md:18,sm:24}},[r("a-form-item",{attrs:{label:"组"}},[r("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupName",{rules:[{required:!0,message:"请选择组"}]}],expression:"['groupName', { rules: [{ required: true, message: '请选择组' }] }]"}],attrs:{disabled:"edit"===this.formType,placeholder:"请选择组"}},e._l(e.groupNameList,(function(t){return r("a-select-option",{key:t,attrs:{value:t}},[e._v(e._s(t))])})),1)],1)],1),r("a-col",{attrs:{lg:6,md:12,sm:24}},[r("a-form-item",{attrs:{label:"状态"}},[r("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["sceneStatus",{initialValue:"1",rules:[{required:!0,message:"请选择状态"}]}],expression:"[\n 'sceneStatus',\n {\n initialValue: '1',\n rules: [{ required: true, message: '请选择状态'}]\n }\n ]"}],attrs:{placeholder:"请选择状态"}},e._l(e.sceneStatus,(function(t,n){return r("a-select-option",{key:n,attrs:{value:n}},[e._v(e._s(t.name))])})),1)],1)],1)],1),r("a-row",{staticClass:"form-row",attrs:{gutter:16}},[r("a-col",{attrs:{lg:8,md:12,sm:12}},[r("a-form-item",{attrs:{label:"退避策略"}},[r("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["backOff",{initialValue:"2",rules:[{required:!0,message:"请选择退避策略"}]}],expression:"[\n 'backOff',\n {\n initialValue: '2',\n rules: [{ required: true, message: '请选择退避策略'}]\n }\n ]"}],attrs:{placeholder:"请选择退避策略"},on:{change:e.handleChange}},e._l(e.backOffLabels,(function(t,n){return r("a-select-option",{key:n,attrs:{value:n}},[e._v(e._s(t.name))])})),1)],1)],1),r("a-col",{attrs:{lg:16,md:12,sm:12}},[r("a-form-item",{attrs:{label:"间隔时长"}},["1"===e.backOff?r("a-input",{attrs:{placeholder:"10s,15s,30s,35s,40s,50s,1m,2m,4m,6m,8m,10m,20m,40m,1h,2h,3h,4h,5h,6h,7h,8h,9h,10h,11h,12h",disabled:""}},[r("a-tooltip",{attrs:{slot:"suffix",title:"10s,15s,30s,35s,40s,50s,1m,2m,4m,6m,8m,10m,20m,40m,1h,2h,3h,4h,5h,6h,7h,8h,9h,10h,11h,12h"},slot:"suffix"},[r("a-icon",{staticStyle:{color:"rgba(0, 0, 0, 0.45)"},attrs:{type:"info-circle"}})],1)],1):e._e(),"2"===e.backOff||"4"===e.backOff?r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["triggerInterval",{initialValue:"60",rules:[{required:!0,message:"请输入间隔时长"}]}],expression:"[\n 'triggerInterval',\n {initialValue: '60',\n rules: [ { required: true, message: '请输入间隔时长'}]}\n ]"}],staticStyle:{width:"-webkit-fill-available"},attrs:{placeholder:"请输入间隔时长(秒)",min:10}}):e._e(),"3"===e.backOff?r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["triggerInterval",{rules:[{required:!0,message:"请输入间隔时长",whitespace:!0}]}],expression:"[\n 'triggerInterval',\n {rules: [{ required: true, message: '请输入间隔时长', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入间隔时长"},on:{click:e.handlerCron}}):e._e()],1)],1)],1),r("a-row",{staticClass:"form-row",attrs:{gutter:16}},[r("a-col",{attrs:{lg:8,md:12,sm:24}},[r("a-form-item",{attrs:{label:"路由策略"}},[r("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["routeKey",{initialValue:"4",rules:[{required:!0,message:"请选择路由策略"}]}],expression:"[\n 'routeKey',\n {\n initialValue: '4',\n rules: [{ required: true, message: '请选择路由策略'}]\n }\n ]"}],attrs:{placeholder:"请选择路由策略"}},e._l(e.routeKey,(function(t,n){return r("a-select-option",{key:n,attrs:{value:n}},[e._v(e._s(t.name))])})),1)],1)],1),r("a-col",{attrs:{lg:8,md:24,sm:24}},[r("a-form-item",{attrs:{label:"超时时间(秒)"}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["executorTimeout",{initialValue:"60",rules:[{required:!0,message:"请输入超时时间"}]}],expression:"[\n 'executorTimeout',\n {\n initialValue: '60',\n rules: [{ required: true, message: '请输入超时时间'}]\n }\n ]"}],staticStyle:{width:"-webkit-fill-available"},attrs:{id:"inputNumber",min:1,max:36e3}})],1)],1),r("a-col",{attrs:{lg:8,md:24,sm:24}},[r("a-form-item",{attrs:{label:"最大重试次数"}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["maxRetryCount",{initialValue:"16",rules:[{required:!0,message:"请输入最大重试次数"}]}],expression:"[\n 'maxRetryCount',\n {\n initialValue: '16',\n rules: [{ required: true, message: '请输入最大重试次数'}]\n }\n ]"}],staticStyle:{width:"-webkit-fill-available"},attrs:{min:1,max:"1"===this.backOff?26:9999999}})],1)],1)],1),r("a-row",{staticClass:"form-row",attrs:{gutter:16}},[r("a-col",{attrs:{lg:8,md:24,sm:24}},[r("a-form-item",{attrs:{label:"调用链超时时间(毫秒)"}},[r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["deadlineRequest",{initialValue:"60000",rules:[{required:!0,message:"请输入调用链超时时间(毫秒)"}]}],expression:"[\n 'deadlineRequest',\n {\n initialValue: '60000',\n rules: [{ required: true, message: '请输入调用链超时时间(毫秒)'}]\n }\n ]"}],staticStyle:{width:"-webkit-fill-available"},attrs:{min:100,max:6e4}})],1)],1)],1),r("a-row",{staticClass:"form-row",attrs:{gutter:16}}),r("a-row",{staticClass:"form-row",attrs:{gutter:16}},[r("a-col",{attrs:{lg:24,md:24,sm:24}},[r("a-form-item",{attrs:{label:"描述"}},[r("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),r("a-form-item",{staticStyle:{"text-align":"center"},attrs:{wrapperCol:{span:24}}},[r("a-button",{attrs:{htmlType:"submit",type:"primary"}},[e._v("提交")]),r("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetFiled}},[e._v("重置")])],1)],1)],1),r("cron-modal",{ref:"cronModalRef",on:{getCron:e.getCron}})],1)},o=[],a=(r("3dec"),r("4656"),r("0fea")),i=r("e941"),c=r("c959"),s=r.n(c),u=r("6fb7"),l=r("12b3"),f={name:"SceneFrom",components:{CronModal:u["a"]},props:{},comments:{CronModal:u["a"]},data:function(){return{form:this.$form.createForm(this),formType:"create",groupNameList:[],routeKey:l.routeKey,backOffLabels:l.backOffLabels,sceneStatus:l.sceneStatus,loading:!1,visible:!1,count:0,backOff:"2"}},beforeCreate:function(){this.dynamicForm=this.$form.createForm(this,{name:"dynamic_form_item"}),this.dynamicForm.getFieldDecorator("keys",{initialValue:[],preserve:!0})},mounted:function(){var e=this;Object(a["j"])().then((function(t){e.groupNameList=t.data})),this.$nextTick((function(){var t=e.$route.query.id;t&&(e.loading=!0,Object(i["b"])(t).then((function(t){e.loadEditInfo(t.data),e.loading=!1})))}))},methods:{resetFiled:function(){this.form.resetFields()},handleChange:function(e){this.backOff=e,this.form.setFieldsValue({triggerInterval:null})},handlerCron:function(){var e=this.form.getFieldValue("backOff");if("3"===e){var t=this.form.getFieldValue("triggerInterval");null!==t&&""!==t||(t="* * * * * ?"),this.$refs.cronModalRef.isShow(t)}},getCron:function(e){this.form.setFieldsValue({triggerInterval:e})},handleSubmit:function(e){var t=this;e.preventDefault(),this.form.validateFields((function(e,r){e||("create"===t.formType?Object(i["d"])(r).then((function(e){t.$message.success("场景新增完成"),t.form.resetFields(),t.$router.go(-1)})):Object(i["f"])(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(e){setTimeout(e,100)})).then((function(){var n=s()(e,["id","sceneName","groupName","sceneStatus","deadlineRequest","maxRetryCount","description","backOff","triggerInterval","executorTimeout"]);n.sceneStatus=n.sceneStatus.toString(),n.backOff=n.backOff.toString(),t.backOff=n.backOff,r.setFieldsValue(n)}))}}},m=f,d=r("f7c6"),b=Object(d["a"])(m,n,o,!1,null,null,null);t["default"]=b.exports},e6cb:function(e,t,r){},e941:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i})),r.d(t,"e",(function(){return c})),r.d(t,"b",(function(){return s})),r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return l}));r("f1e1");var n=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 a(e){return Object(n["b"])({url:"".concat(o.notifyConfigDetail,"/").concat(e),method:"get"})}function i(e){return Object(n["b"])({url:o.saveNotify,method:"post",data:e})}function c(e){return Object(n["b"])({url:o.updateNotify,method:"put",data:e})}function s(e){return Object(n["b"])({url:"".concat(o.sceneDetail,"/").concat(e),method:"get"})}function u(e){return Object(n["b"])({url:o.saveScene,method:"post",data:e})}function l(e){return Object(n["b"])({url:o.updateScene,method:"put",data:e})}}}]);