(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d4058"],{"5ef8":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("j-modal",{attrs:{title:l.title,width:l.width,visible:l.visible,confirmLoading:l.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:l.handleOk,cancel:l.handleCancel}},[a("a-spin",{attrs:{spinning:l.confirmLoading}},[a("a-form-model",{ref:"form",attrs:{model:l.model,rules:l.validatorRules}},[a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"问题序号",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"wtxh"}},[a("a-input",{attrs:{placeholder:"请输入问题序号"},model:{value:l.model.wtxh,callback:function(e){l.$set(l.model,"wtxh",e)},expression:"model.wtxh"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"问题类别",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"wtlb"}},[a("j-dict-select-tag",{attrs:{type:"list",dictCode:"wtlb",placeholder:"请选择问题类别"},model:{value:l.model.wtlb,callback:function(e){l.$set(l.model,"wtlb",e)},expression:"model.wtlb"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"主要问题",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"zywt"}},[a("a-input",{attrs:{placeholder:"请输入主要问题"},model:{value:l.model.zywt,callback:function(e){l.$set(l.model,"zywt",e)},expression:"model.zywt"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"行政区划",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"xzqh"}},[a("a-input",{attrs:{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:"ab"}},[a("a-input",{attrs:{placeholder:"请输入岸别"},model:{value:l.model.ab,callback:function(e){l.$set(l.model,"ab",e)},expression:"model.ab"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"所在位置",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"szwz"}},[a("a-input",{attrs:{placeholder:"请输入所在位置"},model:{value:l.model.szwz,callback:function(e){l.$set(l.model,"szwz",e)},expression:"model.szwz"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"经度",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"jd"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入经度"},model:{value:l.model.jd,callback:function(e){l.$set(l.model,"jd",e)},expression:"model.jd"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"纬度",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"wd"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入纬度"},model:{value:l.model.wd,callback:function(e){l.$set(l.model,"wd",e)},expression:"model.wd"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"问题照片",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"wtzp"}},[a("j-image-upload",{attrs:{isMultiple:""},model:{value:l.model.wtzp,callback:function(e){l.$set(l.model,"wtzp",e)},expression:"model.wtzp"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"成因简析",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"cyjx"}},[a("a-input",{attrs:{placeholder:"请输入成因简析"},model:{value:l.model.cyjx,callback:function(e){l.$set(l.model,"cyjx",e)},expression:"model.cyjx"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"意见/备注",labelCol:l.labelCol,wrapperCol:l.wrapperCol,prop:"yjbz"}},[a("a-input",{attrs:{placeholder:"请输入意见/备注"},model:{value:l.model.yjbz,callback:function(e){l.$set(l.model,"yjbz",e)},expression:"model.yjbz"}})],1)],1)],1)],1)],1)],1)},t=[],r=a("0fea"),s=(a("ca00"),{name:"RmWtqdModal",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/addRmWtqd",edit:"/hzz.yhyc/rmJbxx/editRmWtqd"}}},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},close:function(){this.$emit("close"),this.visible=!1,this.$refs.form.clearValidate()},handleOk:function(){var l=this,e=this;this.$refs.form.validate((function(a){if(!a)return!1;e.confirmLoading=!0;var o="",t="";l.model.id?(o+=l.url.edit,t="put"):(o+=l.url.add,t="post"),l.model["mainId"]=l.mainId,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,e.close()}))}))},handleCancel:function(){this.close()}}}),d=s,i=a("2877"),p=Object(i["a"])(d,o,t,!1,null,null,null);e["default"]=p.exports}}]);