(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d34f5"],{"5be7":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:"hhbm"}},[a("a-input",{attrs:{placeholder:"请输入河湖编码"},model:{value:e.model.hhbm,callback:function(l){e.$set(e.model,"hhbm",l)},expression:"model.hhbm"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"河湖名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"hhmc"}},[a("a-input",{attrs:{placeholder:"请输入河湖名称"},model:{value:e.model.hhmc,callback:function(l){e.$set(e.model,"hhmc",l)},expression:"model.hhmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"河湖类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"hhlx"}},[a("a-input",{attrs:{placeholder:"请输入河湖类型"},model:{value:e.model.hhlx,callback:function(l){e.$set(e.model,"hhlx",l)},expression:"model.hhlx"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"县区编码",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"xqbm"}},[a("a-input",{attrs:{placeholder:"请输入系县区编码"},model:{value:e.model.xqbm,callback:function(l){e.$set(e.model,"xqbm",l)},expression:"model.xqbm"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"县区名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"xqmc"}},[a("a-input",{attrs:{placeholder:"请输入县区名称"},model:{value:e.model.xqmc,callback:function(l){e.$set(e.model,"xqmc",l)},expression:"model.xqmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"左右岸",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"zya"}},[a("a-input",{attrs:{placeholder:"请输入左右岸"},model:{value:e.model.zya,callback:function(l){e.$set(e.model,"zya",l)},expression:"model.zya"}})],1)],1)],1)],1)],1)],1)},t=[],r=a("0fea"),s=(a("ca00"),{name:"WykzxForm",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:"/axghgnq/wykzx/add",edit:"/axghgnq/wykzx/edit",queryById:"/axghgnq/wykzx/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}))}}))}}}),n=s,m=a("2877"),d=Object(m["a"])(n,o,t,!1,null,null,null);l["default"]=d.exports}}]);