(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f4a6267e"],{"3f1e":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"charge-box"},[a("div",{staticClass:"charge-tools"},[a("el-form",{attrs:{inline:!0,model:e.queryParams}},[a("el-form-item",{staticStyle:{"margin-left":"25px"},attrs:{label:"车牌号:"}},[a("el-input",{attrs:{placeholder:"请输入车牌号",clearable:""},model:{value:e.queryParams.vehiclePlate,callback:function(t){e.$set(e.queryParams,"vehiclePlate","string"===typeof t?t.trim():t)},expression:"queryParams.vehiclePlate"}})],1),a("el-form-item",{staticStyle:{"margin-left":"20px"},attrs:{label:"车型:"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择车型"},model:{value:e.queryParams.modelId,callback:function(t){e.$set(e.queryParams,"modelId",t)},expression:"queryParams.modelId"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{staticStyle:{"margin-left":"20px"},attrs:{label:"司机姓名:"}},[a("el-input",{attrs:{placeholder:"请输入司机姓名",clearable:""},model:{value:e.queryParams.driverName,callback:function(t){e.$set(e.queryParams,"driverName","string"===typeof t?t.trim():t)},expression:"queryParams.driverName"}})],1),a("el-form-item",{staticStyle:{"margin-left":"20px"},attrs:{label:"车辆状态:"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:e.queryParams.state,callback:function(t){e.$set(e.queryParams,"state",t)},expression:"queryParams.state"}},[a("el-option",{attrs:{label:"启用",value:"1"}}),a("el-option",{attrs:{label:"禁用",value:"0"}})],1)],1),a("el-form-item",[a("el-button",{staticClass:"serch actve",attrs:{type:"primary"},on:{click:e.handleQuery}},[e._v("查询")]),a("el-button",{staticClass:"serch",attrs:{type:"primary"},on:{click:e.resetForm}},[e._v("重置")])],1)],1)],1),a("div",{staticClass:"charge-table"},[a("div",{staticClass:"charge-table-bottom"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.datalist,"header-cell-style":{background:"#1d283e",borderColor:"#2f3c86",height:"36px",lineHeight:"36px",color:"white",fontSize:"16px"},stripe:"",fit:"",height:e.tableheight,"default-sort":{prop:"id",order:"descending"}}},[a("el-table-column",{attrs:{prop:"driver",label:"关联司机/手机号"}}),a("el-table-column",{attrs:{prop:"vehiclePlate",label:"车牌号"}}),a("el-table-column",{attrs:{prop:"vehicleVin",label:"车辆识别码"}}),a("el-table-column",{attrs:{prop:"modelName",label:"车型"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",sortable:""}}),a("el-table-column",{attrs:{label:"状态",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var l=t.row;return[a("el-badge",{staticClass:"item",class:{disable:0===l.state},attrs:{"is-dot":""}},[e._v(e._s(0===l.state?"停用":"启用"))])]}}])})],1)],1),a("div",{staticClass:"pageblock"},[a("el-pagination",{attrs:{"current-page":e.queryParams.page,"page-sizes":[10,20,30,40],"page-size":e.queryParams.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])])},r=[],i=a("66b4"),s=(a("9d19"),{name:"CarManage",components:{},data:function(){return{options:[{value:"01号",label:"01号"},{value:"02号",label:"02号"},{value:"03号",label:"03号"},{value:"04号",label:"04号"},{value:"05号",label:"05号"}],datalist:[],queryParams:{page:1,pageSize:10,vehiclePlate:void 0,modelId:void 0,driverName:void 0,state:void 0,orderByField:void 0,orderByWays:"desc"},total:0,tableheight:0}},mounted:function(){this.vehicleList(),this.onLoadHeight(),this.changeWindow()},methods:{onLoadHeight:function(){var e=this;this.$nextTick((function(){e.tableheight=document.body.clientHeight-460}))},changeWindow:function(){var e=this;window.onresize=function(){return function(){e.tableheight=document.body.clientHeight-460}()}},vehicleList:function(){var e=this,t=this.queryParams;Object(i["c"])(t).then((function(t){e.datalist=t.data.records,e.total=t.data.total}))},handleSizeChange:function(e){this.queryParams.pageSize=e,this.alarmList()},handleCurrentChange:function(e){this.queryParams.page=e,this.alarmList()},handleQuery:function(){this.vehicleList()},resetForm:function(){this.queryParams.vehiclePlate=void 0,this.queryParams.state=void 0,this.queryParams.modelId=void 0,this.queryParams.driverName=void 0,this.vehicleList()}}}),n=s,o=a("2877"),c=Object(o["a"])(n,l,r,!1,null,null,null);t["default"]=c.exports},"66b4":function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return s}));var l=a("b775");function r(e){return Object(l["a"])({url:"/vehicle/list",method:"post",data:e})}function i(e){return Object(l["a"])({url:"/model/list",method:"post",data:e})}function s(e){return Object(l["a"])({url:"/driver/list",method:"post",data:e})}},"9d19":function(e,t,a){}}]);