|
|
@ -15,6 +15,7 @@ |
|
|
|
:required="!!rules[k]" |
|
|
|
:field="k" |
|
|
|
:value="(/^dateRange$|^select$/.test(v.type)?fields[k].value:formData[k])" |
|
|
|
ref="dForm" |
|
|
|
@input="formData[k]=$event" |
|
|
|
@selectRDate="selectDate" |
|
|
|
@select="fields[k].value=$event.value.map(v=>v.value);formData[k]=$event.value[0].value" |
|
|
@ -36,7 +37,7 @@ import request from '@/common/request' |
|
|
|
realityArea:{label:"实际面积",type:'digit'}, |
|
|
|
image:{label:"地块图片",type:"upImg",num:3,value:''}, |
|
|
|
date:{label:"使用日期",type:"dateRange",value:[]}, |
|
|
|
jw:{label:"经/纬度"}, |
|
|
|
jw:{label:"经/纬度",type:"map"}, |
|
|
|
address:{label:"详细地址",type:"textarea"}, |
|
|
|
}, |
|
|
|
formData:{ |
|
|
@ -72,6 +73,7 @@ import request from '@/common/request' |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
window.the=this |
|
|
|
this.init() |
|
|
|
if(options.id)this.getDetail(options.id); |
|
|
|
this.eventChannel=this.getOpenerEventChannel() |
|
|
@ -141,8 +143,13 @@ import request from '@/common/request' |
|
|
|
}, |
|
|
|
}, |
|
|
|
onBackPress(e){ |
|
|
|
console.log(e) |
|
|
|
return false |
|
|
|
var dForm=this.$refs.dForm.find(v=>v.field=='jw') |
|
|
|
if(dForm?.showMap){//是否开启地图 |
|
|
|
dForm.showMap=false |
|
|
|
return true |
|
|
|
}else{ |
|
|
|
return false |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |