gtsoft-snail-job-server/x-retry-server/src/main/resources/admin/js/chunk-08798c7e.3d1c2217.js
byteblogs168 88761f5d56 feat: 0.0.4.2
1、通知场景可配置多个通知方式
2、修复分区只能从1开始问题
3、重试任务新增暂停、完成、恢复功能
2023-01-14 21:02:28 +08:00

8 lines
15 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08798c7e"],{"00d8":function(t,e){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var r=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],a=0;a<4;a++)8*n+6*a<=8*t.length?r.push(e.charAt(o>>>6*(3-a)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&r.push((e.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|e.indexOf(t.charAt(n))>>>6-2*o);return r}};t.exports=r})()},"044b":function(t,e){function r(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&r(t.slice(0,0))}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(r(t)||n(t)||!!t._isBuffer)}},"0fea":function(t,e,r){"use strict";r.d(e,"h",(function(){return a})),r.d(e,"t",(function(){return u})),r.d(e,"a",(function(){return s})),r.d(e,"c",(function(){return i})),r.d(e,"b",(function(){return c})),r.d(e,"g",(function(){return l})),r.d(e,"e",(function(){return f})),r.d(e,"o",(function(){return d})),r.d(e,"l",(function(){return p})),r.d(e,"x",(function(){return m})),r.d(e,"q",(function(){return g})),r.d(e,"p",(function(){return h})),r.d(e,"n",(function(){return b})),r.d(e,"m",(function(){return y})),r.d(e,"k",(function(){return v})),r.d(e,"j",(function(){return j})),r.d(e,"u",(function(){return w})),r.d(e,"d",(function(){return T})),r.d(e,"s",(function(){return O})),r.d(e,"r",(function(){return k})),r.d(e,"i",(function(){return L})),r.d(e,"f",(function(){return B})),r.d(e,"v",(function(){return x})),r.d(e,"w",(function(){return S}));var n=r("b775"),o={user:"/user",role:"/role",service:"/service",permission:"/permission",permissionNoPager:"/permission/no-pager",orgTree:"/org/tree",groupConfigForPage:"/group/list",saveGroup:"/group",groupConfigByGroupName:"/group",allGroupNameList:"/group/all/group-name/list",retryTaskPage:"/retry-task/list",retryTaskById:"/retry-task/",updateRetryTaskStatus:"/retry-task/status",retryTaskLogPage:"/retry-task-log/list",retryTaskLogById:"/retry-task-log/",retryDeadLetterPage:"/retry-dead-letter/list",retryDeadLetterById:"/retry-dead-letter/",retryDeadLetterRollback:"/retry-dead-letter/rollback/",deleteRetryDeadLetter:"/retry-dead-letter/",scenePageList:"/scene-config/page/list",sceneList:"/scene-config/list",notifyConfigList:"/notify-config/list",userPageList:"/user/page/list",saveUser:"/user",systemUserByUserName:"/user/username/user-info",countTask:"/dashboard/task/count",countDispatch:"/dashboard/dispatch/count",countActivePod:"/dashboard/active-pod/count",rankSceneQuantity:"/dashboard/scene/rank",lineDispatchQuantity:"/dashboard/dispatch/line"};function a(t){return Object(n["b"])({url:o.lineDispatchQuantity,method:"get",params:t})}function u(t){return Object(n["b"])({url:o.rankSceneQuantity,method:"get",params:t})}function s(){return Object(n["b"])({url:o.countActivePod,method:"get"})}function i(){return Object(n["b"])({url:o.countTask,method:"get"})}function c(){return Object(n["b"])({url:o.countDispatch,method:"get"})}function l(t){return Object(n["b"])({url:o.groupConfigForPage,method:"get",params:t})}function f(t){return Object(n["b"])({url:o.allGroupNameList,method:"get",params:t})}function d(t){return Object(n["b"])({url:o.retryTaskPage,method:"get",params:t})}function p(t,e){return Object(n["b"])({url:o.retryTaskById+t,method:"get",params:e})}function m(t){return Object(n["b"])({url:o.updateRetryTaskStatus,method:"put",data:t})}function g(t){return Object(n["b"])({url:o.scenePageList,method:"get",params:t})}function h(t){return Object(n["b"])({url:o.sceneList,method:"get",params:t})}function b(t){return Object(n["b"])({url:o.retryTaskLogPage,method:"get",params:t})}function y(t){return Object(n["b"])({url:o.retryTaskLogById+t,method:"get"})}function v(t){return Object(n["b"])({url:o.retryDeadLetterPage,method:"get",params:t})}function j(t,e){return Object(n["b"])({url:o.retryDeadLetterById+t,method:"get",params:e})}function w(t,e){return Object(n["b"])({url:o.retryDeadLetterRollback+t,method:"get",params:e})}function T(t,e){return Object(n["b"])({url:o.deleteRetryDeadLetter+t,method:"delete",params:e})}function O(t){return Object(n["b"])({url:o.userPageList,method:"get",params:t})}function k(t){return Object(n["b"])({url:o.systemUserByUserName,method:"get",params:t})}function L(t){return Object(n["b"])({url:o.notifyConfigList,method:"get",params:t})}function B(t){return Object(n["b"])({url:o.groupConfigByGroupName+"/".concat(t),method:"get"})}function x(t){return Object(n["b"])({url:o.saveGroup,method:0===t.id?"post":"put",data:t})}function S(t){return Object(n["b"])({url:o.saveUser,method:void 0===t.id?"post":"put",data:t})}},6821:function(t,e,r){(function(){var e=r("00d8"),n=r("9a634").utf8,o=r("044b"),a=r("9a634").bin,u=function(t,r){t.constructor==String?t=r&&"binary"===r.encoding?a.stringToBytes(t):n.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var s=e.bytesToWords(t),i=8*t.length,c=1732584193,l=-271733879,f=-1732584194,d=271733878,p=0;p<s.length;p++)s[p]=16711935&(s[p]<<8|s[p]>>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[i>>>5]|=128<<i%32,s[14+(i+64>>>9<<4)]=i;var m=u._ff,g=u._gg,h=u._hh,b=u._ii;for(p=0;p<s.length;p+=16){var y=c,v=l,j=f,w=d;c=m(c,l,f,d,s[p+0],7,-680876936),d=m(d,c,l,f,s[p+1],12,-389564586),f=m(f,d,c,l,s[p+2],17,606105819),l=m(l,f,d,c,s[p+3],22,-1044525330),c=m(c,l,f,d,s[p+4],7,-176418897),d=m(d,c,l,f,s[p+5],12,1200080426),f=m(f,d,c,l,s[p+6],17,-1473231341),l=m(l,f,d,c,s[p+7],22,-45705983),c=m(c,l,f,d,s[p+8],7,1770035416),d=m(d,c,l,f,s[p+9],12,-1958414417),f=m(f,d,c,l,s[p+10],17,-42063),l=m(l,f,d,c,s[p+11],22,-1990404162),c=m(c,l,f,d,s[p+12],7,1804603682),d=m(d,c,l,f,s[p+13],12,-40341101),f=m(f,d,c,l,s[p+14],17,-1502002290),l=m(l,f,d,c,s[p+15],22,1236535329),c=g(c,l,f,d,s[p+1],5,-165796510),d=g(d,c,l,f,s[p+6],9,-1069501632),f=g(f,d,c,l,s[p+11],14,643717713),l=g(l,f,d,c,s[p+0],20,-373897302),c=g(c,l,f,d,s[p+5],5,-701558691),d=g(d,c,l,f,s[p+10],9,38016083),f=g(f,d,c,l,s[p+15],14,-660478335),l=g(l,f,d,c,s[p+4],20,-405537848),c=g(c,l,f,d,s[p+9],5,568446438),d=g(d,c,l,f,s[p+14],9,-1019803690),f=g(f,d,c,l,s[p+3],14,-187363961),l=g(l,f,d,c,s[p+8],20,1163531501),c=g(c,l,f,d,s[p+13],5,-1444681467),d=g(d,c,l,f,s[p+2],9,-51403784),f=g(f,d,c,l,s[p+7],14,1735328473),l=g(l,f,d,c,s[p+12],20,-1926607734),c=h(c,l,f,d,s[p+5],4,-378558),d=h(d,c,l,f,s[p+8],11,-2022574463),f=h(f,d,c,l,s[p+11],16,1839030562),l=h(l,f,d,c,s[p+14],23,-35309556),c=h(c,l,f,d,s[p+1],4,-1530992060),d=h(d,c,l,f,s[p+4],11,1272893353),f=h(f,d,c,l,s[p+7],16,-155497632),l=h(l,f,d,c,s[p+10],23,-1094730640),c=h(c,l,f,d,s[p+13],4,681279174),d=h(d,c,l,f,s[p+0],11,-358537222),f=h(f,d,c,l,s[p+3],16,-722521979),l=h(l,f,d,c,s[p+6],23,76029189),c=h(c,l,f,d,s[p+9],4,-640364487),d=h(d,c,l,f,s[p+12],11,-421815835),f=h(f,d,c,l,s[p+15],16,530742520),l=h(l,f,d,c,s[p+2],23,-995338651),c=b(c,l,f,d,s[p+0],6,-198630844),d=b(d,c,l,f,s[p+7],10,1126891415),f=b(f,d,c,l,s[p+14],15,-1416354905),l=b(l,f,d,c,s[p+5],21,-57434055),c=b(c,l,f,d,s[p+12],6,1700485571),d=b(d,c,l,f,s[p+3],10,-1894986606),f=b(f,d,c,l,s[p+10],15,-1051523),l=b(l,f,d,c,s[p+1],21,-2054922799),c=b(c,l,f,d,s[p+8],6,1873313359),d=b(d,c,l,f,s[p+15],10,-30611744),f=b(f,d,c,l,s[p+6],15,-1560198380),l=b(l,f,d,c,s[p+13],21,1309151649),c=b(c,l,f,d,s[p+4],6,-145523070),d=b(d,c,l,f,s[p+11],10,-1120210379),f=b(f,d,c,l,s[p+2],15,718787259),l=b(l,f,d,c,s[p+9],21,-343485551),c=c+y>>>0,l=l+v>>>0,f=f+j>>>0,d=d+w>>>0}return e.endian([c,l,f,d])};u._ff=function(t,e,r,n,o,a,u){var s=t+(e&r|~e&n)+(o>>>0)+u;return(s<<a|s>>>32-a)+e},u._gg=function(t,e,r,n,o,a,u){var s=t+(e&n|r&~n)+(o>>>0)+u;return(s<<a|s>>>32-a)+e},u._hh=function(t,e,r,n,o,a,u){var s=t+(e^r^n)+(o>>>0)+u;return(s<<a|s>>>32-a)+e},u._ii=function(t,e,r,n,o,a,u){var s=t+(r^(e|~n))+(o>>>0)+u;return(s<<a|s>>>32-a)+e},u._blocksize=16,u._digestsize=16,t.exports=function(t,r){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var n=e.wordsToBytes(u(t,r));return r&&r.asBytes?n:r&&r.asString?a.bytesToString(n):e.bytesToHex(n)}})()},"88bc":function(t,e,r){(function(e){var r=1/0,n=9007199254740991,o="[object Arguments]",a="[object Function]",u="[object GeneratorFunction]",s="[object Symbol]",i="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,l=i||c||Function("return this")();function f(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function d(t,e){var r=-1,n=t?t.length:0,o=Array(n);while(++r<n)o[r]=e(t[r],r,t);return o}function p(t,e){var r=-1,n=e.length,o=t.length;while(++r<n)t[o+r]=e[r];return t}var m=Object.prototype,g=m.hasOwnProperty,h=m.toString,b=l.Symbol,y=m.propertyIsEnumerable,v=b?b.isConcatSpreadable:void 0,j=Math.max;function w(t,e,r,n,o){var a=-1,u=t.length;r||(r=L),o||(o=[]);while(++a<u){var s=t[a];e>0&&r(s)?e>1?w(s,e-1,r,n,o):p(o,s):n||(o[o.length]=s)}return o}function T(t,e){return t=Object(t),O(t,e,(function(e,r){return r in t}))}function O(t,e,r){var n=-1,o=e.length,a={};while(++n<o){var u=e[n],s=t[u];r(s,u)&&(a[u]=s)}return a}function k(t,e){return e=j(void 0===e?t.length-1:e,0),function(){var r=arguments,n=-1,o=j(r.length-e,0),a=Array(o);while(++n<o)a[n]=r[e+n];n=-1;var u=Array(e+1);while(++n<e)u[n]=r[n];return u[e]=a,f(t,this,u)}}function L(t){return S(t)||x(t)||!!(v&&t&&t[v])}function B(t){if("string"==typeof t||D(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}function x(t){return N(t)&&g.call(t,"callee")&&(!y.call(t,"callee")||h.call(t)==o)}var S=Array.isArray;function _(t){return null!=t&&C(t.length)&&!A(t)}function N(t){return I(t)&&_(t)}function A(t){var e=P(t)?h.call(t):"";return e==a||e==u}function C(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function P(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function I(t){return!!t&&"object"==typeof t}function D(t){return"symbol"==typeof t||I(t)&&h.call(t)==s}var q=k((function(t,e){return null==t?{}:T(t,d(w(e,1),B))}));t.exports=q}).call(this,r("c8ba"))},"9a634":function(t,e){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=r},bf80:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("a-card",{staticClass:"card",attrs:{title:"组配置",bordered:!1}},[e("a-form",t._b({attrs:{form:t.form,"body-style":{padding:"24px 32px"}},on:{submit:t.handleSubmit}},"a-form",t.formItemLayout,!1),[e("a-form-item",[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["id"],expression:"['id']"}],attrs:{hidden:""}})],1),e("a-form-item",{attrs:{label:"用户名"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["username",{rules:[{required:!0,message:"请输入用户名",whitespace:!0}]}],expression:"[\n 'username',\n {rules: [{ required: true, message: '请输入用户名', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入用户名"}})],1),e("a-form-item",{attrs:{label:"密码"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:"create"===t.formType,message:"请输入密码",whitespace:!0}]}],expression:"[\n 'password',\n {rules: [{ required: formType === 'create', message: '请输入密码', whitespace: true}]}\n ]"}],attrs:{placeholder:"请输入密码"}})],1),e("a-form-item",{attrs:{label:"角色"}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["role",{rules:[{required:!0,message:"请选择角色"}]}],expression:"[\n 'role',\n {rules: [{ required: true, message: '请选择角色'}]}\n ]"}],attrs:{placeholder:"请选择角色"},on:{change:function(e){return t.handleChange(e)}}},[e("a-select-option",{attrs:{value:"1"}},[t._v("普通用户")]),e("a-select-option",{attrs:{value:"2"}},[t._v("管理员")])],1)],1),"2"!==t.role?e("a-form-item",{attrs:{label:"权限"}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["groupNameList",{rules:[{required:!0,message:"请分配组"}]}],expression:"[\n 'groupNameList',\n {rules: [{ required: true, message: '请分配组'}]}\n ]"}],staticStyle:{width:"100%"},attrs:{mode:"tags","token-separators":[","]}},t._l(t.groupNameList,(function(r,n){return e("a-select-option",{key:n,attrs:{value:r}},[t._v(" "+t._s(r)+" ")])})),1)],1):t._e(),e("a-form-item",{attrs:{"wrapper-col":{xs:{span:24,offset:0},sm:{span:16,offset:8},lg:{span:7}}}},[e("a-button",{attrs:{htmlType:"submit",type:"primary"}},[t._v("提交")])],1)],1)],1)},o=[],a=(r("ac1f"),r("d3b7"),r("25f0"),r("6821")),u=r.n(a),s=r("0fea"),i=r("88bc"),c=r.n(i),l={name:"UserForm",props:{},data:function(){return{form:this.$form.createForm(this),role:0,formType:"create",formItemLayout:{labelCol:{lg:{span:7},sm:{span:7}},wrapperCol:{lg:{span:10},sm:{span:17}}},groupNameList:[]}},mounted:function(){var t=this;Object(s["e"])().then((function(e){t.groupNameList=e.data})),this.$nextTick((function(){t.$route.query.username&&Object(s["r"])({username:t.$route.query.username}).then((function(e){t.loadEditInfo(e.data)}))}))},methods:{handleChange:function(t){this.role=t},handleSubmit:function(t){var e=this;t.preventDefault(),this.form.validateFields((function(t,r){t||(r.password&&(r.password=u()(r.password)),r.role=parseInt(r.role),Object(s["w"])(r).then((function(t){e.$message.success("操作成功"),e.$router.push("/user-list")})))}))},validate:function(t,e,r){var n=/^user-(.*)$/;n.test(e)||r(new Error("需要以 user- 开头")),r()},loadEditInfo:function(t){this.formType="edit";var e=this.form;new Promise((function(t){setTimeout(t,1500)})).then((function(){var r=c()(t,["id","username","role","groupNameList"]);r.role=r.role.toString(),e.setFieldsValue(r)}))}}},f=l,d=r("2877"),p=Object(d["a"])(f,n,o,!1,null,"56a81628",null);e["default"]=p.exports}}]);