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(ie,y,e){e.r(y),e.d(y,{default:function(){return Ze}});var x=e(97857),P=e.n(x),w=e(13769),z=e.n(w),Q=e(15009),l=e.n(Q),J=e(99289),v=e.n(J),R=e(5574),p=e.n(R),D=e(48357),g=e(52043),X=e(3089),q=e(90930),f=e(8232),b=e(55241),B=e(66309),F=e(2453),he=e(13169),_=e(14726),le=e(72051),de=e(17788),ce=e(55102),oe=e(34041),pe=e(47676),ee=e(16250),je=e(27484),W=e.n(je),S=e(67294),Fe=e(19632),fe=e.n(Fe),Se=e(32400),De=e(56448),ge=e.n(De),Ee=e(66476),r=e(85893),Ae=function(k){var O=k.onUploadSuccess,E=k.onUploadError,ne=(0,S.useState)(!1),$=p()(ne,2),K=$[0],M=$[1],re=(0,S.useState)([]),H=p()(re,2),T=H[0],L=H[1],ae=(0,S.useState)(null),N=p()(ae,2),C=N[0],te=N[1],U=Ee.Z.Dragger;(0,S.useEffect)(function(){function A(){return o.apply(this,arguments)}function o(){return o=v()(l()().mark(function j(){var s,m;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:m=new(ge())({region:"oss-cn-beijing",accessKeyId:s.data.accessKeyId,accessKeySecret:s.data.accessKeySecret,stsToken:s.data.securityToken,bucket:s.data.bucket}),te(m),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"),E&&E(d.t0);case 15:case"end":return d.stop()}},j,null,[[0,11]])})),o.apply(this,arguments)}A()},[E]);var ue=function(o){var j=(T||[]).filter(function(s){return s.url!==o.url});L(j)},V=function(){var A=v()(l()().mark(function o(j){var s,m,I,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 M(!0),i.prev=3,i.next=6,(0,Se.p)(s);case 6:return m=i.sent,I="matrix/".concat(m,".").concat(s.name.split(".").pop()),i.next=10,C==null?void 0:C.put(I,s,{headers:{"Content-Type":s.type}});case 10:d="https://apks.bzgames.cn/".concat(I),O&&O(d),M(!1),L(function(Y){return[].concat(fe()(Y),[{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"),E&&E(i.t0),L(function(Y){return[].concat(fe()(Y),[{uid:s.uid,name:s.name,status:"error"}])});case 21:return i.prev=21,M(!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()}},o,null,[[3,16,21,24]])}));return function(j){return A.apply(this,arguments)}}();return(0,r.jsxs)(U,{fileList:T,multiple:!0,customRequest:V,onRemove:ue,disabled:K||!C,onPreview:function(){var A=v()(l()().mark(function o(j){return l()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.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 m.stop()}},o)}));return function(o){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"})]})},Ce=Ae,ye=["scheduleTime"],Ie=function(){var k=(0,S.useState)([]),O=p()(k,2),E=O[0],ne=O[1],$=(0,S.useState)([]),K=p()($,2),M=K[0],re=K[1],H=(0,S.useState)([]),T=p()(H,2),L=T[0],ae=T[1],N=(0,S.useState)(!1),C=p()(N,2),te=C[0],U=C[1],ue=(0,S.useState)(!1),V=p()(ue,2),A=V[0],o=V[1],j=f.Z.useForm(),s=p()(j,1),m=s[0],I=f.Z.useForm(),d=p()(I,1),G=d[0],i=function(){var u=v()(l()().mark(function n(){var t;return l()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,D.ON)();case 2:t=a.sent,t.data&&re(t.data);c
|