(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d230532"],{ec97:function(e,o,a){"use strict";a.r(o);var l=function(){var e=this,o=e.$createElement,a=e._self._c||o;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:"geom",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"geom"}},[a("a-input",{attrs:{placeholder:"请输入geom"},model:{value:e.model.geom,callback:function(o){e.$set(e.model,"geom",o)},expression:"model.geom"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"bzbm",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"bzbm"}},[a("a-input",{attrs:{placeholder:"请输入bzbm"},model:{value:e.model.bzbm,callback:function(o){e.$set(e.model,"bzbm",o)},expression:"model.bzbm"}})],1)],1)],1)],1)],1)],1)},t=[],s=a("0fea"),r=(a("ca00"),{name:"RmBzgcgeoForm",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.shjsgc.bzgc.geo/rmBzgcgeo/add",edit:"/hzz.shjsgc.bzgc.geo/rmBzgcgeo/edit",queryById:"/hzz.shjsgc.bzgc.geo/rmBzgcgeo/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,o=this;this.$refs.form.validate((function(a){if(a){o.confirmLoading=!0;var l="",t="";e.model.id?(l+=e.url.edit,t="put"):(l+=e.url.add,t="post"),Object(s["h"])(l,e.model,t).then((function(e){e.success?(o.$message.success(e.message),o.$emit("ok")):o.$message.warning(e.message)})).finally((function(){o.confirmLoading=!1}))}}))}}}),i=r,n=a("2877"),d=Object(n["a"])(i,l,t,!1,null,null,null);o["default"]=d.exports}}]);