(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b2935"],{2562: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:"jd"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入经度"},model:{value:e.model.jd,callback:function(l){e.$set(e.model,"jd",l)},expression:"model.jd"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"纬度",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"wd"}},[a("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入纬度"},model:{value:e.model.wd,callback:function(l){e.$set(e.model,"wd",l)},expression:"model.wd"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"照片",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"zp"}},[a("j-image-upload",{attrs:{isMultiple:""},model:{value:e.model.zp,callback:function(l){e.$set(e.model,"zp",l)},expression:"model.zp"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"采集描述",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"cjms"}},[a("a-input",{attrs:{placeholder:"请输入采集描述"},model:{value:e.model.cjms,callback:function(l){e.$set(e.model,"cjms",l)},expression:"model.cjms"}})],1)],1),a("a-col",{attrs:{span:24}},[a("a-form-model-item",{attrs:{label:"采集id",labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"cjid"}},[a("a-input",{attrs:{placeholder:"请输入采集id"},model:{value:e.model.cjid,callback:function(l){e.$set(e.model,"cjid",l)},expression:"model.cjid"}})],1)],1)],1)],1)],1)],1)},t=[],i=a("0fea"),s=(a("ca00"),{name:"RmCjxxmxModal",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.xxcj/rmXxcj/addRmCjxxmx",edit:"/hzz.xxcj/rmXxcj/editRmCjxxmx"}}},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["cjid"]=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()}}}),r=s,n=a("2877"),d=Object(n["a"])(r,o,t,!1,null,null,null);l["default"]=d.exports}}]);