gtsoft-snail-job-server/easy-retry-server/easy-retry-server-starter/src/main/resources/admin/js/chunk-748d9b9d.a570fa01.js
byteblogs168 aa7b818b92 feat: 2.6.1
1. 前端发布
2024-03-04 22:08:50 +08:00

1 line
6.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-748d9b9d"],{"12b3":function(e,t){var o={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=o},7016:function(e,t,o){"use strict";o.r(t);o("b0c0"),o("b64b");var a=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{layout:"inline"}},[t("a-row",{attrs:{gutter:48}},[[t("a-col",{attrs:{md:8,sm:24}},[t("a-form-item",{attrs:{label:"组名称"}},[t("a-select",{attrs:{placeholder:"请输入组名称",allowClear:""},on:{change:function(t){return e.handleChange(t)}},model:{value:e.queryParam.groupName,callback:function(t){e.$set(e.queryParam,"groupName",t)},expression:"queryParam.groupName"}},e._l(e.groupNameList,(function(o){return t("a-select-option",{key:o,attrs:{value:o}},[e._v(e._s(o))])})),1)],1)],1),t("a-col",{attrs:{md:8,sm:24}},[t("a-form-item",{attrs:{label:"场景名称"}},[t("a-select",{attrs:{placeholder:"请选择场景名称",allowClear:""},model:{value:e.queryParam.sceneName,callback:function(t){e.$set(e.queryParam,"sceneName",t)},expression:"queryParam.sceneName"}},e._l(e.sceneList,(function(o){return t("a-select-option",{key:o.sceneName,attrs:{value:o.sceneName}},[e._v(" "+e._s(o.sceneName))])})),1)],1)],1)],t("a-col",{attrs:{md:e.advanced?24:8,sm:24}},[t("span",{staticClass:"table-page-search-submitButtons",style:e.advanced&&{float:"right",overflow:"hidden"}||{}},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.$refs.table.refresh(!0)}}},[e._v("查询")]),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetFiled}},[e._v("重置")])],1)])],2)],1)],1),t("div",{staticClass:"table-operator"},[t("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(t){return e.handleNew()}}},[e._v("新增")])],1),t("s-table",{ref:"table",attrs:{size:"default",rowKey:function(e){return e.id},columns:e.notifyColumns,data:e.loadData,alert:e.options.alert,rowSelection:e.options.rowSelection},scopedSlots:e._u([{key:"notifyType",fn:function(o){return t("span",{},[t("a-tag",{attrs:{color:e.notifyTypeList[o].color}},[e._v(" "+e._s(e.notifyTypeList[o].name)+" ")])],1)}},{key:"notifyStatus",fn:function(o){return t("span",{},[t("a-tag",{attrs:{color:e.notifyStatusList[o].color}},[e._v(" "+e._s(e.notifyStatusList[o].name)+" ")])],1)}},{key:"notifyScene",fn:function(o){return t("span",{},[t("a-tag",{attrs:{color:e.notifySceneList[o].color}},[e._v(" "+e._s(e.notifySceneList[o].name)+" ")])],1)}},{key:"notifyAttribute",fn:function(o,a){return t("span",{},[e._v(" "+e._s(e.parseJson(JSON.parse(o),a))+" ")])}},{key:"notifyThreshold",fn:function(o){return t("span",{},[e._v(" "+e._s(0===o?"无":o)+" ")])}},{key:"action",fn:function(o){return t("span",{},[[t("a",{on:{click:function(t){return e.handleEdit(o)}}},[e._v("编辑")])]],2)}}])})],1)],1)},n=[],r=o("0fea"),s=o("2af9"),i=o("12b3"),c={name:"NotifyList",components:{STable:s["i"]},data:function(){var e=this;return{notifyColumns:[{title:"组名",dataIndex:"groupName",key:"groupName",width:"10%",scopedSlots:{customRender:"groupName"}},{title:"场景名称",dataIndex:"sceneName",key:"sceneName",width:"10%",scopedSlots:{customRender:"sceneName"}},{title:"通知状态",dataIndex:"notifyStatus",width:"10%",scopedSlots:{customRender:"notifyStatus"}},{title:"通知类型",dataIndex:"notifyType",key:"notifyType",width:"10%",scopedSlots:{customRender:"notifyType"}},{title:"通知场景",dataIndex:"notifyScene",key:"notifyScene",width:"10%",scopedSlots:{customRender:"notifyScene"}},{title:"通知阈值",dataIndex:"notifyThreshold",key:"notifyThreshold",width:"10%",scopedSlots:{customRender:"notifyThreshold"}},{title:"描述",dataIndex:"description",key:"description",width:"20%",scopedSlots:{customRender:"description"}},{title:"操作",key:"action",fixed:"right",width:"180px",scopedSlots:{customRender:"action"}}],data:[],loading:!1,form:this.$form.createForm(this),advanced:!1,queryParam:{},loadData:function(t){return Object(r["q"])(Object.assign(t,e.queryParam)).then((function(e){return e}))},selectedRowKeys:[],selectedRows:[],options:{alert:{show:!0,clear:function(){e.selectedRowKeys=[]}},rowSelection:{selectedRowKeys:this.selectedRowKeys,onChange:this.onSelectChange}},optionAlertShow:!1,memberLoading:!1,notifySceneList:i.notifyScene,notifyTypeList:i.notifyType,notifyStatusList:i.notifyStatus,visible:!1,key:"",notifyTypeValue:"1",groupNameList:[],sceneList:[]}},created:function(){var e=this;Object(r["j"])().then((function(t){e.groupNameList=t.data}));var t=this.$route.query.groupName;t&&this.getNotifyConfigList(t)},methods:{resetFiled:function(){this.queryParam={},this.sceneList=[]},handleNew:function(){this.$router.push({path:"/retry/notify/config"})},handleEdit:function(e){this.$router.push({path:"/retry/notify/config",query:{id:e.id}})},handleChange:function(e){var t=this;e?Object(r["z"])({groupName:e}).then((function(e){t.sceneList=e.data})):this.sceneList=[]}}},l=c,d=o("2877"),f=Object(d["a"])(l,a,n,!1,null,"a215489c",null);t["default"]=f.exports}}]);