|
|
@ -125,15 +125,7 @@ import request from '@/common/request' |
|
|
|
if(res.statu){ |
|
|
|
this.formData={...res.data,image:res.data.image||[]} |
|
|
|
this.fields.date.value=[res.data.beginTime, res.data.endTime] |
|
|
|
this.fields.plantBaseInfoId.value=[res.data.plantBaseInfoId] |
|
|
|
this.fields.image.value=res.data.image?.join?.(',')||'' |
|
|
|
// this.fields.longitude.value=this.formData.longitude.split(";").map(v=>{ |
|
|
|
// var point=v.split(",") |
|
|
|
// if(point.length==2){ |
|
|
|
// return {longitude:point[0],latitude:point[1]} |
|
|
|
// } |
|
|
|
// return null |
|
|
|
// }).filter(v=>v) |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|
title:"提示", |
|
|
|