|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5259],{37547:function(A,d,t){"use strict";t.r(d),t.d(d,{default:function(){return j}});var z=t(66456),S=t(10363),B=t(57663),p=t(71577),r=t(39428),o=t(3182),O=t(14965),x=t(34895),h=t(2824),s=t(67294),C=t(48971),g=t(96690),y={GetData:function(u){return(0,C.WY)((0,g.zr)()+"/api/Reservation/GetTimeIntervalConsumeInfo",{method:"POST",data:u})}},Z=t(28790),a=t(85893),j=function(){var T=(0,s.useRef)(),u=(0,s.useState)([]),c=(0,h.Z)(u,2),D=c[0],G=c[1],R=(0,s.useState)([]),v=(0,h.Z)(R,2),m=v[0],P=v[1],E=x.Z.RangePicker;(0,s.useEffect)(function(){f()},[]);var f=function(){var i=(0,o.Z)((0,r.Z)().mark(function l(){var e,I;return(0,r.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,y.GetData({startTime:m[0],endTime:m[1]});case 2:I=n.sent,G((e=I.data)===null||e===void 0?void 0:e.data);case 4:case"end":return n.stop()}},l)}));return function(){return i.apply(this,arguments)}}(),F=function(l,e){P(e)},$=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0,hideInSearch:!0},{title:"\u673A\u6784",dataIndex:"tag",ellipsis:!0,hideInSearch:!0},{title:"\u65E9\u4E0A\u6D88\u8D39\u6B21\u6570",dataIndex:"amCount",ellipsis:!0,hideInSearch:!0},{title:"\u65E9\u4E0A\u6D88\u8D39\u91D1\u989D",dataIndex:"amCount1",ellipsis:!0,hideInSearch:!0},{title:"\u4E2D\u5348\u6D88\u8D39\u6B21\u6570",dataIndex:"pmCount",ellipsis:!0,hideInSearch:!0},{title:"\u4E2D\u5348\u6D88\u8D39\u91D1\u989D",dataIndex:"pmCount1",ellipsis:!0,hideInSearch:!0},{title:"\u665A\u4E0A\u6D88\u8D39\u6B21\u6570",dataIndex:"atCount",ellipsis:!0,hideInSearch:!0},{title:"\u665A\u4E0A\u6D88\u8D39\u91D1\u989D",dataIndex:"atCount1",ellipsis:!0,hideInSearch:!0},{title:"\u603B\u8BA1\u6D88\u8D39\u6B21\u6570",dataIndex:"totalCount",ellipsis:!0,hideInSearch:!0},{title:"\u91D1\u989D\u603B\u8BA1",dataIndex:"totalCount1",ellipsis:!0,hideInSearch:!0}];return(0,a.jsxs)(Z.ZP,{header:{title:"",breadcrumb:{}},children:[(0,a.jsxs)("div",{style:{height:"50px"},children:[(0,a.jsxs)("div",{style:{float:"left"},children:[(0,a.jsx)("span",{children:"\u65F6\u95F4\uFF1A"}),(0,a.jsx)(E,{onChange:F})]}),(0,a.jsx)(p.Z,{type:"primary",style:{float:"right"},onClick:(0,o.Z)((0,r.Z)().mark(function i(){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f();case 2:case"end":return e.stop()}},i)})),children:"\u67E5\u8BE2"})]}),(0,a.jsx)(S.Z,{columns:$,dataSource:D})]})}}}]);
|