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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{76099:function(Ee,z,r){r.r(z);var d=r(97857),se=r.n(d),le=r(13769),V=r.n(le),X=r(15009),h=r.n(X),oe=r(99289),O=r.n(oe),G=r(5574),j=r.n(G),x=r(48357),ie=r(90930),v=r(8232),ue=r(55241),L=r(66309),U=r(2453),Q=r(13169),w=r(14726),ce=r(72051),J=r(17788),k=r(96365),g=r(34041),de=r(47676),q=r(16250),y=r(27484),B=r.n(y),I=r(67294),t=r(85893),ee=["scheduleTime"],me=function(){var i=(0,I.useState)([]),c=j()(i,2),a=c[0],o=c[1],C=(0,I.useState)([]),m=j()(C,2),D=m[0],E=m[1],T=(0,I.useState)([]),p=j()(T,2),Z=p[0],S=p[1],P=(0,I.useState)(!1),A=j()(P,2),R=A[0],_=A[1],K=(0,I.useState)(!1),H=j()(K,2),ne=H[0],F=H[1],N=v.Z.useForm(),_e=j()(N,1),f=_e[0],fe=v.Z.useForm(),he=j()(fe,1),Y=he[0],$=function(){var l=O()(h()().mark(function n(){var u;return h()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,x.ON)();case 2:u=s.sent,u.data&&E(u.data);case 4:case"end":return s.stop()}},n)}));return function(){return l.apply(this,arguments)}}(),re=function(){var l=O()(h()().mark(function n(u){return h()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(u){s.next=2;break}return s.abrupt("return");case 2:return s.next=4,(0,x.o9)({deviceId:u});case 4:$();case 5:case"end":return s.stop()}},n)}));return function(u){return l.apply(this,arguments)}}(),ve=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0},{title:"\u6E20\u9053",dataIndex:"channel",render:function(n){switch(n){case"fanmiyou":return"\u51E1\u7C73\u6E38";case"qiji":return"\u5947\u8FF9"}return n}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(n,u){return(0,t.jsx)(ue.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417",content:(0,t.jsxs)("div",{style:{textAlign:"center"},children:[(0,t.jsxs)("p",{children:["\u5220\u9664\u4E4B\u540Eecpm\u4F1A\u964D\u4F4E",(0,t.jsx)("br",{}),"\u4E5F\u4F1A\u5F71\u54CD\u5237\u6570\u636E\u53EF\u4F7F\u7528\u7684\u8BBE\u5907"]}),(0,t.jsx)("a",{onClick:function(){return re(u.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,t.jsx)("a",{children:"\u5220\u9664"})})}}],pe=function(n){var u=a.find(function(b){return b.id===n});return u?u.name:""},te=function(n){return n?parseFloat((n/1e5).toFixed(2)):0},Ce=[{title:"\u5E94\u7528",dataIndex:"appId",render:function(n){return(0,t.jsx)(L.Z,{color:"blue",children:pe(n)},n)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(n){switch(n){case"fanmiyou":return"\u51E1\u7C73\u6E38";case"qiji":return"\u5947\u8FF9"}return n}},{title:"\u76EE\u6807\u91D1\u989D",dataIndex:"incomeYuan"},{title:"\u5DF2\u5237\u91D1\u989D",dataIndex:"mockIncome",render:function(n){return te(n)}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"scheduleTime",render:function(n){return B()(n).format("YYYY-MM-DD HH:mm")}},{title:"\u72B6\u6001",dataIndex:"status",render:function(n){switch(n){case 0:return"\u672A\u5F00\u59CB";case 1:return"\u8FDB\u884C\u4E2D";case 2:return"\u5DF2\u5B8C\u6210"}return n}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",render:function(n){return B()(n).format("YYYY-MM-DD HH:mm")}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",render:function(n){return B()(n).format("YYYY-MM-DD HH:mm")}}],W=function(){var l=O()(h()().mark(function n(){var u;return h()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,x.mW)();case 2:u=s.sent,u.data&&S(u.data);case 4:case"end":return s.stop()}},n)}));return function(){return l.apply(this,arguments)}}(),M=function(){var l=O()(h()().mark(function n(){var u;return h()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,x.ln)();case 2:u=s.sent,u.data&&o(u.data);case 4:case"end":return s.stop()}},n)}));return function(){return l.apply(this,arguments)}}();(0,I.useEffect)(function(){M(),$(),W()},[]);var be=function(){var l=O()(h()().mark(function n(u){var b,s,ge;return h()().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return b=u.scheduleTime,s=V()(u,ee),ge=B()(b).valueOf(),ae.next=4,(0,x.tI)(se()({scheduleTime:ge},s));case 4:U.ZP.success("\u4EFB\u52A1\u63D0\u4EA4\u6210\u529F"),W(),F(!1);case 7:case