(self.webpackChunksite_front=self.webpackChunksite_front||[]).push([[268],{46996:function(e,t,r){"use strict";var n=r(85893);r(67294),t.Z=function(e){var t=e.title,r=e.titleMore,i=e.children,c=e.className,a=e.renderTitle,o=r?"title-flex":"";return(0,n.jsxs)("div",{className:"box-wrapper ".concat(c),children:[a||(0,n.jsxs)("div",{className:"box-title-wrapper ".concat(o),children:[(0,n.jsx)("span",{className:"box-title",children:t}),r]}),(0,n.jsxs)("div",{className:"box-content",children:[" ",i]})]})}},22685:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}}),r(45950);var n=r(91633),i=(r(11378),r(56697)),c=r(85893),a=r(67294),o=r(46996),s=r(77136);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=a.useEffect,p=function(e){var t,r,l,d,p,j=(d=(0,a.useState)({loading:!1,dataSource:[],page:1}),p=2,r=(t=function(e){if(Array.isArray(e))return e}(d)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,c=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,c=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw c}}return r}}(d,p)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(d,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],l=t[1],{state:r,request:function(e){s.Z.sendRequest({url:"/v1/vehicle/list",params:e}).then((function(e){l((function(t){return u(u({},t),{},{loading:!1,dataSource:e.list||[]})}))})).catch((function(e){l((function(e){return u(u({},e),{},{loading:!1})}))}))}}),b=j.state,y=j.request;return h((function(){y({page_size:4,page:1})}),[]),(0,c.jsxs)("div",{className:"car-mangement-wrapper",children:[(0,c.jsx)("div",{className:"car-video-wrapper"}),(0,c.jsx)(o.Z,{title:"车辆进出场统计",className:"car-static-wrapper",children:(0,c.jsx)("div",{children:(0,c.jsxs)("table",{children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{children:"车牌"}),(0,c.jsx)("th",{children:"进出类型"}),(0,c.jsx)("th",{children:"进出场图"}),(0,c.jsx)("th",{children:"进出场时间"}),(0,c.jsx)("th",{children:"车辆类型"})]})}),(0,c.jsx)("tbody",{children:b.dataSource.map((function(e){return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:e.plate_no}),(0,c.jsx)("td",{children:e.type}),(0,c.jsx)("td",{style:{cursor:"pointer"},onClick:function(){i.Z.info({icon:null,title:null,content:(0,c.jsx)(n.Z,{src:e.image})})},children:"查看详情"}),(0,c.jsx)("td",{children:e.date}),(0,c.jsx)("td",{children:e.vehicle_type})]},e.id)}))})]})})})]})}}}]);