(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a529c38c"],{"3d9f":function(t,e,a){t.exports=a.p+"static/img/cartype.ffff199c.png"},"66b4":function(t,e,a){"use strict";a.d(e,"c",(function(){return l})),a.d(e,"b",(function(){return r})),a.d(e,"a",(function(){return o}));var i=a("b775");function l(t){return Object(i["a"])({url:"/vehicle/list",method:"post",data:t})}function r(t){return Object(i["a"])({url:"/model/list",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/driver/list",method:"post",data:t})}},"9d19":function(t,e,a){},fd69:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"charge-box"},[i("div",{staticClass:"charge-tools"},[i("el-form",{attrs:{inline:!0,model:t.queryParams}},[i("el-form-item",{staticStyle:{"margin-left":"35px"},attrs:{label:"车型名称:"}},[i("el-input",{attrs:{placeholder:"请输入车型名称",clearable:""},model:{value:t.queryParams.modelName,callback:function(e){t.$set(t.queryParams,"modelName","string"===typeof e?e.trim():e)},expression:"queryParams.modelName"}})],1),i("el-form-item",{staticStyle:{"margin-left":"50px"},attrs:{label:"车辆状态:"}},[i("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:t.queryParams.state,callback:function(e){t.$set(t.queryParams,"state",e)},expression:"queryParams.state"}},[i("el-option",{attrs:{label:"启用",value:"1"}}),i("el-option",{attrs:{label:"禁用",value:"0"}})],1)],1),i("el-form-item",[i("el-button",{staticClass:"serch actve",attrs:{type:"primary"},on:{click:t.handleQuery}},[t._v("查询")]),i("el-button",{staticClass:"serch",attrs:{type:"primary"},on:{click:t.resetForm}},[t._v("重置")])],1)],1)],1),i("div",{staticClass:"charge-table"},[i("div",{staticClass:"charge-table-bottom"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.datalist,"header-cell-style":{background:"#1d283e",borderColor:"#2f3c86",height:"36px",lineHeight:"36px",color:"white",fontSize:"16px"},stripe:"",fit:"",height:t.tableheight,"default-sort":{prop:"id",order:"descending"}}},[i("el-table-column",{attrs:{prop:"modelImage",label:"车型照片"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[l.modelImage?i("img",{staticClass:"imgborder",staticStyle:{height:"40px",width:"40px"},attrs:{src:l.modelImage,title:"点击可放大图片"},on:{click:function(e){return t.imgshow(l.modelImage)}}}):i("img",{staticStyle:{height:"40px",width:"40px"},attrs:{src:a("3d9f")}})]}}])}),i("el-table-column",{attrs:{prop:"modelCode",label:"车牌编号"}}),i("el-table-column",{attrs:{prop:"modelName",label:"车型"}}),i("el-table-column",{attrs:{prop:"modelDistance",label:"前端电池距离(CM)"}}),i("el-table-column",{attrs:{prop:"batteryHighly",label:"电池高度(MM)"}}),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间",sortable:"",width:"400"}}),i("el-table-column",{attrs:{label:"状态",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[i("el-badge",{staticClass:"item",class:{disable:0===a.state},attrs:{"is-dot":""}},[t._v(t._s(0===a.state?"停用":"启用"))])]}}])})],1)],1),i("div",{staticClass:"pageblock"},[i("el-pagination",{attrs:{"current-page":t.queryParams.page,"page-sizes":[10,20,30,40],"page-size":t.queryParams.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)]),i("el-dialog",{attrs:{visible:t.lookdialogVisible,modal:!1},on:{"update:visible":function(e){t.lookdialogVisible=e}}},[i("img",{attrs:{src:t.previewpic,alt:"",width:"100%"}})])],1)},l=[],r=a("66b4"),o=(a("9d19"),{name:"CarTypeManage",components:{},data:function(){return{datalist:[],queryParams:{page:1,pageSize:10,modelName:void 0,state:void 0,orderByField:void 0,orderByWays:"desc"},total:0,tableheight:0,lookdialogVisible:!1,previewpic:""}},mounted:function(){this.modelList(),this.onLoadHeight(),this.changeWindow()},methods:{onLoadHeight:function(){var t=this;this.$nextTick((function(){t.tableheight=document.body.clientHeight-460}))},changeWindow:function(){var t=this;window.onresize=function(){return function(){t.tableheight=document.body.clientHeight-460}()}},modelList:function(){var t=this,e=this.queryParams;Object(r["b"])(e).then((function(e){t.datalist=e.data.records,t.total=e.data.total}))},handleSizeChange:function(t){this.queryParams.pageSize=t,this.modelList()},handleCurrentChange:function(t){this.queryParams.page=t,this.modelList()},handleQuery:function(){this.modelList()},resetForm:function(){this.queryParams.modelName=void 0,this.queryParams.state=void 0,this.modelList()},imgshow:function(t){this.lookdialogVisible=!0,this.previewpic=t}}}),s=o,n=a("2877"),c=Object(n["a"])(s,i,l,!1,null,null,null);e["default"]=c.exports}}]);