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
13 KiB
2 lines
13 KiB
7 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{33244:function(Ie,Q,r){r.r(Q),r.d(Q,{default:function(){return F}});var u=r(97857),le=r.n(u),se=r(13769),N=r.n(se),k=r(15009),m=r.n(k),oe=r(99289),j=r.n(oe),U=r(5574),I=r.n(U),T=r(48357),w=r(1413),C=r(67294),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},z=ie,L=r(91146),Y=function($,f){return C.createElement(L.Z,(0,w.Z)((0,w.Z)({},$),{},{ref:f,icon:z}))};Y.displayName="MinusCircleOutlined";var ce=C.forwardRef(Y),be=r(90930),h=r(8232),ue=r(55241),de=r(66309),fe=r(2453),me=r(13169),Z=r(14726),J=r(72051),K=r(17788),q=r(96365),E=r(34041),he=r(47676),e=r(16250),i=r(27484),c=r.n(i),n=r(85893),s=["scheduleTime"],S=["key","name"],d=function(){var $=(0,C.useState)([]),f=I()($,2),P=f[0],B=f[1],O=(0,C.useState)([]),D=I()(O,2),W=D[0],v=D[1],V=(0,C.useState)([]),R=I()(V,2),_=R[0],ee=R[1],X=(0,C.useState)(!1),ne=I()(X,2),g=ne[0],G=ne[1],ve=(0,C.useState)(!1),re=I()(ve,2),ge=re[0],M=re[1],pe=h.Z.useForm(),Ce=I()(pe,1),H=Ce[0],Se=h.Z.useForm(),te=I()(Se,1),x=te[0],ae=function(){var l=j()(m()().mark(function t(){var o;return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,T.ON)();case 2:o=a.sent,o.data&&v(o.data);case 4:case"end":return a.stop()}},t)}));return function(){return l.apply(this,arguments)}}(),Fe=function(){var l=j()(m()().mark(function t(o){return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(o){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,(0,T.o9)({deviceId:o});case 4:ae();case 5:case"end":return a.stop()}},t)}));return function(o){return l.apply(this,arguments)}}(),$e=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",ellipsis:!0},{title:"\u6E20\u9053",dataIndex:"channel",render:function(t){switch(t){case"fanmiyou":return"\u51E1\u7C73\u6E38";case"qiji":return"\u5947\u8FF9"}return t}},{title:"\u64CD\u4F5C",dataIndex:"operate",render:function(t,o){return(0,n.jsx)(ue.Z,{title:"\u786E\u8BA4\u5220\u9664\u5417",content:(0,n.jsxs)("div",{style:{textAlign:"center"},children:[(0,n.jsxs)("p",{children:["\u5220\u9664\u4E4B\u540Eecpm\u4F1A\u964D\u4F4E",(0,n.jsx)("br",{}),"\u4E5F\u4F1A\u5F71\u54CD\u5237\u6570\u636E\u53EF\u4F7F\u7528\u7684\u8BBE\u5907"]}),(0,n.jsx)("a",{onClick:function(){return Fe(o.deviceId)},children:"\u786E\u5B9A"})]}),children:(0,n.jsx)("a",{children:"\u5220\u9664"})})}}],Oe=function(t){var o=P.find(function(y){return y.id===t});return o?o.name:""},Te=function(t){return t?parseFloat((t/1e5).toFixed(2)):0},Ze=[{title:"\u5E94\u7528",dataIndex:"appId",render:function(t){return(0,n.jsx)(de.Z,{color:"blue",children:Oe(t)},t)}},{title:"\u6E20\u9053",dataIndex:"channel",render:function(t){switch(t){case"fanmiyou":return"\u51E1\u7C73\u6E38";case"qiji":return"\u5947\u8FF9"}return t}},{title:"\u76EE\u6807\u91D1\u989D",dataIndex:"incomeYuan"},{title:"\u5DF2\u5237\u91D1\u989D",dataIndex:"mockIncome",render:function(t){return Te(t)}},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"scheduleTime",render:function(t){return c()(t).format("YYYY-MM-DD HH:mm")}},{title:"\u72B6\u6001",dataIndex:"status",render:function(t){switch(t){case 0:return"\u672A\u5F00\u59CB";case 1:return"\u8FDB\u884C\u4E2D";case 2:return"\u5DF2\u5B8C\u6210"}return t}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",render:function(t){return c()(t).format("YYYY-MM-DD HH:mm")}},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updatedAt",render:function(t){return c()(t).format("YYYY-MM-DD HH:mm")}}],ye=function(){var l=j()(m()().mark(function t(){var o;return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,T.mW)();case 2:o=a.sent,o.data&&ee(o.data);case 4:case"end":return a.stop()}},t)}));return func
|