Added person filters to the frontend.
This commit is contained in:
parent
4cba15acb3
commit
680fe08a9e
@ -25,10 +25,15 @@
|
||||
</b-form-group>
|
||||
</b-col>
|
||||
<b-col>
|
||||
<b-form-group label="Who">
|
||||
<b-form-group label="Shift">
|
||||
<b-form-input class="text-center" v-model="whom" type="text"></b-form-input>
|
||||
</b-form-group>
|
||||
</b-col>
|
||||
<b-col>
|
||||
<b-form-group label="Person">
|
||||
<b-form-input v-model="person" type="text" class="text-center"></b-form-input>
|
||||
</b-form-group>
|
||||
</b-col>
|
||||
<b-col>
|
||||
<b-form-group label="From">
|
||||
<date-picker v-model="startDate" @dp-change="changeStartDate" value="startDate"
|
||||
@ -117,7 +122,8 @@ export default {
|
||||
siteOptions: [],
|
||||
tutorSelection: null,
|
||||
tutorOptions: [],
|
||||
whom: null
|
||||
whom: null,
|
||||
person: null
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@ -128,7 +134,8 @@ export default {
|
||||
tutor: this.tutorSelection,
|
||||
startDate: moment(this.startDate).format("YYYY-MM-DD"),
|
||||
endDate: moment(this.endDate).format("YYYY-MM-DD"),
|
||||
whom: this.whom
|
||||
whom: this.whom,
|
||||
person: this.person
|
||||
})
|
||||
.then(response => {
|
||||
this.chartData = response.data;
|
||||
|
@ -27,10 +27,15 @@
|
||||
</b-form-group>
|
||||
</b-col>
|
||||
<b-col>
|
||||
<b-form-group label="Who">
|
||||
<b-form-group label="Shift">
|
||||
<b-form-input v-model="whom" type="text" class="text-center"></b-form-input>
|
||||
</b-form-group>
|
||||
</b-col>
|
||||
<b-col>
|
||||
<b-form-group label="Person">
|
||||
<b-form-input v-model="person" type="text" class="text-center"></b-form-input>
|
||||
</b-form-group>
|
||||
</b-col>
|
||||
<b-col>
|
||||
<b-form-group label="From">
|
||||
<date-picker v-model="startDate" @dp-change="changeStartDate" value="startDate"
|
||||
@ -138,6 +143,7 @@ export default {
|
||||
tutorSelection: null,
|
||||
tutorOptions: [],
|
||||
whom: null,
|
||||
person: null,
|
||||
observationData: null,
|
||||
errorStatus: null,
|
||||
errorMessage: null
|
||||
@ -165,7 +171,8 @@ export default {
|
||||
tutor: this.tutorSelection,
|
||||
startDate: moment(this.startDate).format("YYYY-MM-DD"),
|
||||
endDate: moment(this.endDate).format("YYYY-MM-DD"),
|
||||
whom: this.whom
|
||||
whom: this.whom,
|
||||
person: this.person
|
||||
})
|
||||
.then(response => {
|
||||
this.observationData = response.data;
|
||||
|
Loading…
Reference in New Issue
Block a user