Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPS Observation App DEPRECATED
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPS Observation App DEPRECATED
Commits
55cbee53
Commit
55cbee53
authored
2 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Add Observation is positive [VIPSUTV-471]
parent
7e86e38b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/components/Observation.vue
+16
-1
16 additions, 1 deletion
src/components/Observation.vue
src/components/Sync.vue
+1
-0
1 addition, 0 deletions
src/components/Sync.vue
src/locales/en.json
+1
-0
1 addition, 0 deletions
src/locales/en.json
src/locales/nb.json
+1
-0
1 addition, 0 deletions
src/locales/nb.json
with
19 additions
and
1 deletion
src/components/Observation.vue
+
16
−
1
View file @
55cbee53
...
...
@@ -49,7 +49,6 @@
<div
class=
"form-group row"
>
<label
for=
"strDateObservation"
class=
"col-1 col-form-label"
>
<font-awesome-icon
style=
"font-size: x-large;"
icon=
"calendar-days"
/></label>
<div
class=
"col-7"
>
...
...
@@ -58,6 +57,14 @@
v-on:change=
"capturedTime($event)"
/>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
v-model=
"observation.isPositive"
name=
"isPositive"
>
</label>
{{
$t
(
"
observation.is_positive.label
"
)
}}
</div>
</div>
<div
v-if=
"pest.pestId"
class=
"row"
>
<div
class=
"col-1"
>
...
...
@@ -159,6 +166,7 @@
isStrDateObservationEmpty
:
false
,
isObservationHeaderEmpty
:
false
,
isDeleteBttnVisible
:
true
,
isPositive
:
true
,
isQuantification
:
false
,
isMounted
:
false
,
msg
:
this
.
$i18n
.
t
(
"
observation.msg
"
),
...
...
@@ -321,6 +329,10 @@
else
{
jsonObservation
=
lstObservations
.
find
(({
observationId
})
=>
observationId
===
id
);
// Selection Observation
this
.
observation
=
jsonObservation
;
if
(
this
.
observation
.
isPositive
==
undefined
)
{
this
.
observation
.
isPositive
=
true
;
}
this
.
observation
.
observationData
=
JSON
.
parse
(
jsonObservation
.
observationData
);
if
(
jsonObservation
.
statusTypeId
)
{}
else
{
...
...
@@ -581,6 +593,7 @@
this
.
observationForStore
.
cropOrganismId
=
this
.
observation
.
cropOrganismId
;
this
.
observationForStore
.
organismId
=
this
.
observation
.
organismId
;
this
.
observationForStore
.
timeOfObservation
=
this
.
strDateObservation
;
this
.
observationForStore
.
isPositive
=
this
.
observation
.
isPositive
;
this
.
observationForStore
.
statusChangedTime
=
this
.
strDateObservation
;
if
(
this
.
observation
.
statusTypeId
)
{
this
.
observationForStore
.
statusTypeId
=
this
.
observation
.
statusTypeId
;
...
...
@@ -615,6 +628,7 @@
jobservation
.
cropOrganismId
=
localObservationForStore
.
cropOrganismId
;
jobservation
.
organismId
=
localObservationForStore
.
organismId
;
jobservation
.
timeOfObservation
=
localObservationForStore
.
timeOfObservation
;
jobservation
.
isPositive
=
localObservationForStore
.
isPositive
;
jobservation
.
statusChangedTime
=
localObservationForStore
.
statusChangedTime
;
jobservation
.
statusTypeId
=
localObservationForStore
.
statusTypeId
;
jobservation
.
isQuantified
=
localObservationForStore
.
isQuantified
;
...
...
@@ -769,6 +783,7 @@
this
.
observation
.
observationId
=
newObservationId
;
this
.
observation
.
observationData
=
''
;
this
.
observation
.
broadcastMessage
=
true
;
this
.
observation
.
isPositive
=
true
;
this
.
getNewObservation
();
this
.
observation
.
observationIllustrationSet
=
[];
}
...
...
This diff is collapsed.
Click to expand it.
src/components/Sync.vue
+
1
−
0
View file @
55cbee53
...
...
@@ -573,6 +573,7 @@
observationForStore
.
cropOrganismId
=
observation
.
cropOrganismId
;
observationForStore
.
organismId
=
observation
.
organismId
observationForStore
.
timeOfObservation
=
observation
.
timeOfObservation
;
observationForStore
.
isPositive
=
observation
.
isPositive
;
observationForStore
.
statusChangedTime
=
observation
.
statusChangedTime
;
observationForStore
.
statusTypeId
=
observation
.
statusTypeId
;
observationForStore
.
isQuantified
=
observation
.
isQuantified
;
...
...
This diff is collapsed.
Click to expand it.
src/locales/en.json
+
1
−
0
View file @
55cbee53
...
...
@@ -17,6 +17,7 @@
"login.forgotpassword.button.label"
:
"Send e-mail address"
,
"login.forgotpassword.success.msg"
:
"Your request has been accepted. An e-mail with further instructions has been sent."
,
"observation.date.label"
:
"Observation Date"
,
"observation.is_positive.label"
:
"Pest presence confirmed"
,
"observation.quantification.label"
:
"Quantify"
,
"observation.quantification.form.label"
:
"Observasjon quantification"
,
"observation.detail.heading.placeholder"
:
"Heading (What was found and where?)"
,
...
...
This diff is collapsed.
Click to expand it.
src/locales/nb.json
+
1
−
0
View file @
55cbee53
...
...
@@ -17,6 +17,7 @@
"login.forgotpassword.button.label"
:
"Send e-postadresse"
,
"login.forgotpassword.success.msg"
:
"Din henvendelse er behandlet og akseptert. En e-post med flere instruksjoner har blitt sendt til den registrerte e-postadressen. Vennligst sjekk alle spamfiltre hvis du ikke har mottatt den innen kort tid."
,
"observation.date.label"
:
"Observasjonsdato"
,
"observation.is_positive.label"
:
"Skadegjører påvist"
,
"observation.quantification.label"
:
"Tell/kvantifiser"
,
"observation.quantification.form.label"
:
"Observasjonsspesifikke detaljer"
,
"observation.detail.heading.placeholder"
:
"Overskrift (Hva er funnet hvor?)"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment