(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c51e1"],{"3e70":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("j-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[a("a-spin",{attrs:{spinning:e.confirmLoading}},[a("a-form-model",{ref:"form",attrs:{model:e.model,rules:e.validatorRules}},[a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"行政区划",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"xzqh"}},[a("a-input",{attrs:{placeholder:"请输入行政区划"},model:{value:e.model.xzqh,callback:function(l){e.$set(e.model,"xzqh",l)},expression:"model.xzqh"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"下一级河长名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"xyjhzmc"}},[a("a-input",{attrs:{placeholder:"请输入下一级河长名称"},model:{value:e.model.xyjhzmc,callback:function(l){e.$set(e.model,"xyjhzmc",l)},expression:"model.xyjhzmc"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"下一级河长（姓名/职务）",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"xyjhzxmzw"}},[a("a-input",{attrs:{placeholder:"请输入下一级河长（姓名/职务）"},model:{value:e.model.xyjhzxmzw,callback:function(l){e.$set(e.model,"xyjhzxmzw",l)},expression:"model.xyjhzxmzw"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"备注",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"bz"}},[a("a-input",{attrs:{placeholder:"请输入备注"},model:{value:e.model.bz,callback:function(l){e.$set(e.model,"bz",l)},expression:"model.bz"}})],1)],1)],1)],1)],1)],1)},t=[],i=a("0fea"),s=(a("ca00"),{name:"RmMbfjbModal",components:{},props:{mainId:{type:String,required:!1,default:""}},data:function(){return{title:"操作",width:800,visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{},url:{add:"/hzz.yhyc/rmJbxx/addRmMbfjb",edit:"/hzz.yhyc/rmJbxx/editRmMbfjb"}}},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},close:function(){this.$emit("close"),this.visible=!1,this.$refs.form.clearValidate()},handleOk:function(){var e=this,l=this;this.$refs.form.validate((function(a){if(!a)return!1;l.confirmLoading=!0;var o="",t="";e.model.id?(o+=e.url.edit,t="put"):(o+=e.url.add,t="post"),e.model["mainId"]=e.mainId,Object(i["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,l.close()}))}))},handleCancel:function(){this.close()}}}),n=s,r=a("2877"),d=Object(r["a"])(n,o,t,!1,null,null,null);l["default"]=d.exports}}]);