(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12edf2f8"],{"3c8a":function(e,l,i){},"86e7f":function(e,l,i){"use strict";i("3c8a")},f41a:function(e,l,i){"use strict";i.r(l);var a=function(){var e=this,l=e.$createElement,i=e._self._c||l;return i("div",{staticClass:"addVehicleDialog"},[i("el-dialog",{attrs:{center:"",width:"636px",title:"添加机车信息",visible:e.addVehicleData.dialogVisible},on:{close:function(l){return e.cancel()},"update:visible":function(l){return e.$set(e.addVehicleData,"dialogVisible",l)}}},[i("el-form",{ref:"ruleForm",attrs:{"label-width":"80px",rules:e.rules,model:e.addVehicleForm}},[i("el-form-item",{attrs:{label:"机车号",prop:"vehicleCode"}},[i("el-input",{attrs:{placeholder:"请输入机车号"},model:{value:e.addVehicleForm.vehicleCode,callback:function(l){e.$set(e.addVehicleForm,"vehicleCode",l)},expression:"addVehicleForm.vehicleCode"}})],1),i("el-form-item",{attrs:{label:"车型",prop:"vehicleType"}},[i("el-input",{attrs:{placeholder:"请输入车型"},model:{value:e.addVehicleForm.vehicleType,callback:function(l){e.$set(e.addVehicleForm,"vehicleType",l)},expression:"addVehicleForm.vehicleType"}})],1),i("el-form-item",{attrs:{label:"AB端",prop:"ends"}},[i("el-input",{attrs:{placeholder:"请输入AB端"},model:{value:e.addVehicleForm.ends,callback:function(l){e.$set(e.addVehicleForm,"ends",l)},expression:"addVehicleForm.ends"}})],1),i("el-form-item",{attrs:{label:"备注"}},[i("el-input",{attrs:{placeholder:"请输入备注"},model:{value:e.addVehicleForm.remark,callback:function(l){e.$set(e.addVehicleForm,"remark",l)},expression:"addVehicleForm.remark"}})],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("div",{staticClass:"search",on:{click:function(l){return e.addVehicle()}}},[e._v("保 存")]),i("div",{staticClass:"reset",on:{click:function(l){return e.cancel()}}},[e._v("取 消")])])],1)],1)},r=[],t={props:{addVehicleData:{type:Object,default:{}}},data:function(){return{addVehicleForm:{vehicleCode:"",vehicleName:"",remark:""},rules:{vehicleCode:[{required:!0,message:"请输入机车编码",trigger:"blur"}],vehicleName:[{required:!0,message:"请输入机车名称",trigger:"blur"}],vehicleType:[{required:!0,message:"请输入车型",trigger:"blur"}],ends:[{required:!0,message:"请输入AB端",trigger:"blur"}]}}},methods:{cancel:function(){this.addVehicleData.dialogVisible=!1,this.addVehicleForm={vehicleCode:"",vehicleName:"",remark:""}},addVehicle:function(){var e=this;this.$refs.ruleForm.validate((function(l){l&&e.$emit("addVehicleBtn",e.addVehicleForm)}))}}},c=t,d=(i("86e7f"),i("2877")),o=Object(d["a"])(c,a,r,!1,null,"5961a2c8",null);l["default"]=o.exports}}]);