You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
11 KiB
2 lines
11 KiB
5 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{52128:function(le,A,e){e.r(A),e.d(A,{default:function(){return xe}});var x=e(97857),Z=e.n(x),B=e(13769),w=e.n(B),X=e(15009),i=e.n(X),J=e(99289),v=e.n(J),W=e(5574),p=e.n(W),g=e(48357),D=e(52043),Q=e(3089),q=e(90930),m=e(8232),P=e(55241),O=e(66309),F=e(2453),pe=e(13169),_=e(14726),ie=e(72051),de=e(17788),ce=e(55102),oe=e(34041),je=e(71230),me=e(15746),Fe=e(47676),ee=e(16250),Se=e(27484),$=e.n(Se),S=e(67294),ge=e(19632),fe=e.n(ge),De=e(32400),ye=e(56448),Ce=e.n(ye),Ee=e(66476),n=e(85893),Ae=function(k){var M=k.onUploadSuccess,y=k.onUploadError,ne=(0,S.useState)(!1),K=p()(ne,2),H=K[0],T=K[1],re=(0,S.useState)([]),V=p()(re,2),L=V[0],U=V[1],ae=(0,S.useState)(null),N=p()(ae,2),E=N[0],te=N[1],Y=Ee.Z.Dragger;(0,S.useEffect)(function(){function C(){return o.apply(this,arguments)}function o(){return o=v()(i()().mark(function j(){var s,f;return i()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,(0,g.po)();case 3:if(s=d.sent,!(!s.data||!s.data.accessKeySecret||!s.data.accessKeyId)){d.next=7;break}return F.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),d.abrupt("return");case 7:f=new(Ce())({region:"oss-cn-beijing",accessKeyId:s.data.accessKeyId,accessKeySecret:s.data.accessKeySecret,stsToken:s.data.securityToken,bucket:s.data.bucket}),te(f),d.next=15;break;case 11:d.prev=11,d.t0=d.catch(0),F.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),y&&y(d.t0);case 15:case"end":return d.stop()}},j,null,[[0,11]])})),o.apply(this,arguments)}C()},[y]);var ue=function(o){var j=(L||[]).filter(function(s){return s.url!==o.url});U(j)},G=function(){var C=v()(i()().mark(function o(j){var s,f,b,d;return i()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(s=j.file,!(s instanceof File)){l.next=26;break}return T(!0),l.prev=3,l.next=6,(0,De.p)(s);case 6:return f=l.sent,b="matrix/".concat(f,".").concat(s.name.split(".").pop()),l.next=10,E==null?void 0:E.put(b,s,{headers:{"Content-Type":s.type}});case 10:d="https://apks.bzgames.cn/".concat(b),M&&M(d),T(!1),U(function(R){return[].concat(fe()(R),[{uid:s.uid,name:s.name+"\uFF1A"+d,status:"done",url:d}])}),l.next=21;break;case 16:l.prev=16,l.t0=l.catch(3),F.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),y&&y(l.t0),U(function(R){return[].concat(fe()(R),[{uid:s.uid,name:s.name,status:"error"}])});case 21:return l.prev=21,T(!1),l.finish(21);case 24:l.next=27;break;case 26:F.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return l.stop()}},o,null,[[3,16,21,24]])}));return function(j){return C.apply(this,arguments)}}();return(0,n.jsxs)(Y,{fileList:L,multiple:!0,customRequest:G,onRemove:ue,disabled:H||!E,onPreview:function(){var C=v()(i()().mark(function o(j){return i()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,navigator.clipboard.writeText(j.url||"");case 2:F.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+j.url);case 3:case"end":return f.stop()}},o)}));return function(o){return C.apply(this,arguments)}}(),capture:void 0,children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)("i",{className:"anticon anticon-inbox"})}),(0,n.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"}),(0,n.jsx)("p",{className:"ant-upload-hint",children:"\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0A\u4F20\u3002\u6587\u4EF6\u540D\u5C06\u4F7F\u7528\u6587\u4EF6\u7684 MD5 \u503C\u547D\u540D\u3002"})]})},Ze=Ae,be=["scheduleTime"],Ie=function(){var k=(0,S.useState)([]),M=p()(k,2),y=M[0],ne=M[1],K=(0,S.useState)([]),H=p()(K,2),T=H[0],re=H[1],V=(0,S.useState)([]),L=p()(V,2),U=L[0],ae=L[1],N=(0,S.useState)(!1),E=p()(N,2),te=E[0],Y=E[1],ue=(0,S.useState)(!1),G=p()(ue,2),C=G[0],o=G[1],j=m.Z.useForm(),s=p()(j,1),f=s[0],b=m.Z.useForm(),d=p()(b,1),z=d[0],l=function(){var u=v()(i()().mark(function r(){var t;return i()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,g.hy)();case 2:t=a.s
|