(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22d07f"],{f681:function(l,e,a){"use strict";a.r(e);var o=function(){var l=this,e=l.$createElement,a=l._self._c||e;return a("a-spin",{attrs:{spinning:l.confirmLoading}},[a("j-form-container",{attrs:{disabled:l.formDisabled}},[a("a-form-model",{ref:"form",attrs:{slot:"detail",model:l.model,rules:l.validatorRules},slot:"detail"},[a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"河流名称",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"hlmc"}},[a("j-popup",{attrs:{field:"hlmc","org-fields":"id,hdmc","dest-fields":"hlid,hlmc",code:"hllist",multi:!0},on:{input:l.popupCallback},model:{value:l.model.hlmc,callback:function(e){l.$set(l.model,"hlmc",e)},expression:"model.hlmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"行政区划",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"xzqh"}},[a("j-area-linkage",{attrs:{type:"cascader",placeholder:"请输入省市区"},model:{value:l.model.xzqh,callback:function(e){l.$set(l.model,"xzqh",e)},expression:"model.xzqh"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"公告牌编码",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"gspbm"}},[a("a-input",{attrs:{placeholder:"请输入公示牌编码"},model:{value:l.model.gspbm,callback:function(e){l.$set(l.model,"gspbm",e)},expression:"model.gspbm"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"公告牌名称",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"gspmc"}},[a("a-input",{attrs:{placeholder:"请输入公示牌名称"},model:{value:l.model.gspmc,callback:function(e){l.$set(l.model,"gspmc",e)},expression:"model.gspmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"横坐标",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"hzb"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入横坐标"},on:{blur:l.coordsChange},model:{value:l.model.hzb,callback:function(e){l.$set(l.model,"hzb",e)},expression:"model.hzb"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"纵坐标",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zzb"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入纵坐标"},on:{blur:l.coordsChange},model:{value:l.model.zzb,callback:function(e){l.$set(l.model,"zzb",e)},expression:"model.zzb"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"东经",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"lng"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入经度"},on:{blur:l.coordsChange},model:{value:this.lng,callback:function(e){l.$set(this,"lng",e)},expression:"this.lng"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"北纬",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"lat"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入经度"},on:{blur:l.coordsChange},model:{value:this.lat,callback:function(e){l.$set(this,"lat",e)},expression:"this.lat"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"公告牌照片",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"ggpzp"}},[a("j-image-upload",{attrs:{isMultiple:""},model:{value:l.model.ggpzp,callback:function(e){l.$set(l.model,"ggpzp",e)},expression:"model.ggpzp"}})],1)],1)],1)],1)],1)],1)},t=[],r=a("0fea"),s=(a("ca00"),{name:"RmBulletinBoardForm",components:{},props:{disabled:{type:Boolean,default:!1,required:!1},lng:{type:Number},lat:{type:Number}},data:function(){return{model:{},labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{gspbm:{required:!0,message:"请输入公告牌编码!"}},url:{add:"/hzz.hhhj.gsp/rmBulletinBoard/add",edit:"/hzz.hhhj.gsp/rmBulletinBoard/edit",queryById:"/hzz.hhhj.gsp/rmBulletinBoard/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(l){this.model=Object.assign({},l),this.visible=!0},submitForm:function(){var l=this,e=this;this.$refs.form.validate((function(a){if(a){e.confirmLoading=!0;var o="",t="";l.model.id?(o+=l.url.edit,t="post"):(o+=l.url.add,t="post"),Object(r["h"])(o,l.model,t).then((function(l){l.success?(e.$message.success(l.message),e.$emit("ok")):e.$message.warning(l.message)})).finally((function(){e.confirmLoading=!1}))}}))},popupCallback:function(l,e){this.model=Object.assign(this.model,e)},coordsChange:function(){this.$emit("coordsChange",this.model.hzb,this.model.zzb)}}}),p=s,i=a("2877"),n=Object(i["a"])(p,o,t,!1,null,null,null);e["default"]=n.exports}}]);