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