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