(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b6c7d"],{"1f2d":function(e,l,a){"use strict";a.r(l);var o=function(){var e=this,l=e.$createElement,a=e._self._c||l;return a("a-spin",{attrs:{spinning:e.confirmLoading}},[a("j-form-container",{attrs:{disabled:e.formDisabled}},[a("a-form-model",{ref:"form",attrs:{slot:"detail",model:e.model,rules:e.validatorRules},slot:"detail"},[a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"name"}},[a("a-input",{attrs:{placeholder:"请输入名称"},model:{value:e.model.name,callback:function(l){e.$set(e.model,"name",l)},expression:"model.name"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"IP地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"ip"}},[a("a-input",{attrs:{placeholder:"请输入IP地址"},model:{value:e.model.ip,callback:function(l){e.$set(e.model,"ip",l)},expression:"model.ip"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"端口号",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"port"}},[a("a-input",{attrs:{placeholder:"请输入端口号"},model:{value:e.model.port,callback:function(l){e.$set(e.model,"port",l)},expression:"model.port"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"用户名",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"username"}},[a("a-input",{attrs:{placeholder:"请输入用户名"},model:{value:e.model.username,callback:function(l){e.$set(e.model,"username",l)},expression:"model.username"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"密码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"password"}},[a("a-input",{attrs:{placeholder:"请输入密码"},model:{value:e.model.password,callback:function(l){e.$set(e.model,"password",l)},expression:"model.password"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"经度",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"lng"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入经度"},on:{blur:e.coordsChange},model:{value:e.model.lng,callback:function(l){e.$set(e.model,"lng",l)},expression:"model.lng"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"纬度",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"lat"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入纬度"},on:{blur:e.coordsChange},model:{value:e.model.lat,callback:function(l){e.$set(e.model,"lat",l)},expression:"model.lat"}})],1)],1)],1)],1)],1)],1)},t=[],r=a("0fea"),s=(a("ca00"),{name:"RmVideogeoForm",components:{},props:{disabled:{type:Boolean,default:!1,required:!1}},data:function(){return{model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{},url:{add:"/hzz.video/rmVideogeo/add",edit:"/hzz.video/rmVideogeo/edit",queryById:"/hzz.video/rmVideogeo/queryById"}}},computed:{formDisabled:function(){return this.disabled}},created:function(){this.modelDefault=JSON.parse(JSON.stringify(this.model))},methods:{add:function(){this.edit(this.modelDefault)},edit:function(e){this.model=Object.assign({},e),this.visible=!0},submitForm:function(){var e=this,l=this;this.$refs.form.validate((function(a){if(a){l.confirmLoading=!0;var o="",t="";e.model.id?(o+=e.url.edit,t="put"):(o+=e.url.add,t="post"),Object(r["h"])(o,e.model,t).then((function(e){e.success?(l.$message.success(e.message),l.$emit("ok")):l.$message.warning(e.message)})).finally((function(){l.confirmLoading=!1}))}}))},coordsChange:function(){this.$emit("coordsChange",this.model.lng,this.model.lat)}}}),n=s,d=a("2877"),i=Object(d["a"])(n,o,t,!1,null,null,null);l["default"]=i.exports}}]);