Skip to content
Snippets Groups Projects
Commit 9717f1c9 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Map visible and workflow hopefully sensible

parent f3b78c76
No related branches found
No related tags found
No related merge requests found
...@@ -52,14 +52,14 @@ ...@@ -52,14 +52,14 @@
</div> </div>
</div> </div>
<div v-if="mapGeoinfo" class="row"> <div v-if="pest.pestId" class="row">
<div class="col-1"><font-awesome-icon style="font-size: x-large; margin-top: 7px;" icon="map-location" /></div> <div class="col-1"><font-awesome-icon style="font-size: x-large; margin-top: 7px;" icon="map-location" /></div>
<div class="col-7"> <div class="col-7">
<router-link <router-link
id="linkMap" id="linkMap"
class="vips-btn" class="vips-btn"
ref='linkMap' ref='linkMap'
:to="{name:'MapObservation', params: {observationId:observation.observationId,geoinfo:mapGeoinfo,isMapPanelVisible:newMapPanel,locationPointOfInterestId:mapLocationPointOfInterestId,observationHeader:observationHeader, observationText:observationText, timeOfObservation:strDateObservation, observation:observation}}" :to="{name:'MapObservation', params: {observationId:observation.observationId,geoinfo:mapGeoinfo,isMapPanelVisible:newMapPanel,locationPointOfInterestId:mapLocationPointOfInterestId, observation:observation}}"
>{{ $t("observation.map.label") }}</router-link> >{{ $t("observation.map.label") }}</router-link>
</div> </div>
</div> </div>
...@@ -299,6 +299,7 @@ export default { ...@@ -299,6 +299,7 @@ export default {
- mainly from map component - mainly from map component
- to hold crop, pest data - to hold crop, pest data
*/ */
if(this.paramObservation) if(this.paramObservation)
{ {
...@@ -345,7 +346,7 @@ export default { ...@@ -345,7 +346,7 @@ export default {
this.mapLocationPointOfInterestId = jsonObservation.locationPointOfInterestId; this.mapLocationPointOfInterestId = jsonObservation.locationPointOfInterestId;
} }
} }
this.selectedCropId = this.observation.cropOrganism.organismId; this.selectedCropId = this.observation.cropOrganismId;
} }
else { else {
//TODO for new Observation //TODO for new Observation
...@@ -354,6 +355,8 @@ export default { ...@@ -354,6 +355,8 @@ export default {
/** Get related crop and crop list for a selected Observation */ /** Get related crop and crop list for a selected Observation */
getObservationCrops(jsonObservation){ getObservationCrops(jsonObservation){
//console.info(jsonObservation);
let lstCrops = []; let lstCrops = [];
let lstCropIds = []; let lstCropIds = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment