|
@ -142,10 +142,10 @@ import request from '@/common/request' |
|
|
params:{id} |
|
|
params:{id} |
|
|
}) |
|
|
}) |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
this.formData=res.data |
|
|
this.formData={...res.data,image:res.data.image||[]} |
|
|
this.fields.date.value=[res.data.beginTime, res.data.endTime] |
|
|
this.fields.date.value=[res.data.beginTime, res.data.endTime] |
|
|
this.fields.plantBaseInfoId.value=[res.data.plantBaseInfoId] |
|
|
this.fields.plantBaseInfoId.value=[res.data.plantBaseInfoId] |
|
|
this.fields.image.value=(res.data.image||'').join(',') |
|
|
this.fields.image.value=res.data.image?.join?.(',')||'' |
|
|
// this.fields.longitude.value=this.formData.longitude.split(";").map(v=>{ |
|
|
// this.fields.longitude.value=this.formData.longitude.split(";").map(v=>{ |
|
|
// var point=v.split(",") |
|
|
// var point=v.split(",") |
|
|
// if(point.length==2){ |
|
|
// if(point.length==2){ |
|
|