(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00662e15"],{"0fce":function(e,a,r){"use strict";r.r(a);var t=function(){var e=this,a=e.$createElement,r=e._self._c||a;return r("div",{staticClass:"addTerminalDialog"},[r("el-dialog",{attrs:{center:"",width:"636px",title:"添加车载终端",visible:e.addTerminalData.dialogVisible},on:{"update:visible":function(a){return e.$set(e.addTerminalData,"dialogVisible",a)}}},[r("el-form",{ref:"ruleForm",attrs:{"label-width":"110px",rules:e.rules,model:e.addTerminalForm}},[r("el-form-item",{attrs:{label:"车载终端编码",prop:"terminalCode"}},[r("el-input",{attrs:{placeholder:"请输入车载终端编码"},model:{value:e.addTerminalForm.terminalCode,callback:function(a){e.$set(e.addTerminalForm,"terminalCode",a)},expression:"addTerminalForm.terminalCode"}})],1),r("el-form-item",{attrs:{label:"车载终端名称",prop:"terminalName"}},[r("el-input",{attrs:{placeholder:"请输入车载终端名称"},model:{value:e.addTerminalForm.terminalName,callback:function(a){e.$set(e.addTerminalForm,"terminalName",a)},expression:"addTerminalForm.terminalName"}})],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",autocomplete:"off",placeholder:"请输入备注",maxlength:"200","show-word-limit":""},model:{value:e.addTerminalForm.remark,callback:function(a){e.$set(e.addTerminalForm,"remark",a)},expression:"addTerminalForm.remark"}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("div",{staticClass:"search",on:{click:e.addTerminal}},[e._v("保 存")]),r("div",{staticClass:"reset",on:{click:e.reset}},[e._v("取 消")])])],1)],1)},i=[],l=(r("ac1f"),r("00b4"),r("5319"),{props:{addTerminalData:{type:Object,default:{}}},watch:{"addTerminalForm.terminalLongitude":function(e,a){var r=/^(\d{0,3})(\.(\d{0,13}))?$/g;if(r.test(e))this.addTerminalForm.terminalLongitude=e.replace(/^\./g,"");else{if(void 0==e||null==e)return void(this.addTerminalForm.terminalLongitude="");this.addTerminalForm.terminalLongitude=a}},"addTerminalForm.terminalLatitude":function(e,a){var r=/^(\d{0,3})(\.(\d{0,13}))?$/g;if(r.test(e))this.addTerminalForm.terminalLatitude=e.replace(/^\./g,"");else{if(void 0==e||null==e)return void(this.addTerminalForm.terminalLatitude="");this.addTerminalForm.terminalLatitude=a}}},data:function(){return{addTerminalForm:{terminalCode:"",terminalName:"",terminalLongitude:"",terminalLatitude:"",remark:""},rules:{terminalCode:[{required:!0,message:"请输入车载终端编码",trigger:"blur"}],terminalName:[{required:!0,message:"请输入车载终端名称",trigger:"blur"}],status:[{required:!0,message:"请选择状态",trigger:"blur"}],terminalLongitude:[{required:!0,message:"请输入终端经度",trigger:"blur"}],terminalLatitude:[{required:!0,message:"请输入终端纬度",trigger:"blur"}]}}},methods:{addTerminal:function(){var e=this;this.$refs.ruleForm.validate((function(a){a&&e.$emit("addTerminal",e.addTerminalForm)}))},reset:function(){this.addTerminalForm={terminalCode:"",terminalName:"",status:"",terminalLongitude:"",terminalLatitude:""},this.addTerminalData.dialogVisible=!1}}}),d=l,n=(r("eb0e"),r("2877")),m=Object(n["a"])(d,t,i,!1,null,"d2b269a4",null);a["default"]=m.exports},eb0e:function(e,a,r){"use strict";r("f38c0")},f38c0:function(e,a,r){}}]);