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