(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50ef26f6"],{"5a6c":function(a,t,e){"use strict";e.r(t);var i=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"updateTerminalDialog"},[e("el-dialog",{attrs:{center:"",width:"636px",title:"修改车载终端",visible:a.updataTerminalData.dialogVisible},on:{"update:visible":function(t){return a.$set(a.updataTerminalData,"dialogVisible",t)}}},[e("el-form",{ref:"ruleForm",attrs:{"label-width":"110px",rules:a.rules,model:a.updataTerminalData.data}},[e("el-form-item",{attrs:{label:"车载终端编码",prop:"terminalCode"}},[e("el-input",{attrs:{placeholder:"请输入车载终端编码"},model:{value:a.updataTerminalData.data.terminalCode,callback:function(t){a.$set(a.updataTerminalData.data,"terminalCode",t)},expression:"updataTerminalData.data.terminalCode"}})],1),e("el-form-item",{attrs:{label:"车载终端名称",prop:"terminalName"}},[e("el-input",{attrs:{placeholder:"请输入车载终端名称"},model:{value:a.updataTerminalData.data.terminalName,callback:function(t){a.$set(a.updataTerminalData.data,"terminalName",t)},expression:"updataTerminalData.data.terminalName"}})],1),e("el-form-item",{attrs:{label:"备注"}},[e("el-input",{attrs:{type:"textarea",autocomplete:"off",placeholder:"请输入备注",maxlength:"200","show-word-limit":""},model:{value:a.updataTerminalData.data.remark,callback:function(t){a.$set(a.updataTerminalData.data,"remark",t)},expression:"updataTerminalData.data.remark"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("div",{staticClass:"search",on:{click:a.updateTerminal}},[a._v("保 存")]),e("div",{staticClass:"reset",on:{click:a.reset}},[a._v("取 消")])])],1)],1)},r=[],l=(e("ac1f"),e("00b4"),e("5319"),{props:{updataTerminalData:{type:Object,default:{}}},data:function(){return{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"}]}}},watch:{"updataTerminalData.data.terminalLongitude":function(a,t){var e=/^(\d{0,3})(\.(\d{0,13}))?$/g;if(e.test(a))this.updataTerminalData.data.terminalLongitude=a.replace(/^\./g,"");else{if(void 0==a||null==a)return void(this.updataTerminalData.data.terminalLongitude="");this.updataTerminalData.data.terminalLongitude=t}},"updataTerminalData.data.terminalLatitude":function(a,t){var e=/^(\d{0,3})(\.(\d{0,13}))?$/g;if(e.test(a))this.updataTerminalData.data.terminalLatitude=a.replace(/^\./g,"");else{if(void 0==a||null==a)return void(this.updataTerminalData.data.terminalLatitude="");this.updataTerminalData.data.terminalLatitude=t}}},methods:{updateTerminal:function(){var a=this;this.$refs.ruleForm.validate((function(t){t&&a.$emit("updateTerminalBtn",a.updataTerminalData.data)}))},reset:function(){this.updataTerminalData.dialogVisible=!1}}}),n=l,d=(e("dca6"),e("2877")),u=Object(d["a"])(n,i,r,!1,null,"245c175a",null);t["default"]=u.exports},8464:function(a,t,e){},dca6:function(a,t,e){"use strict";e("8464")}}]);