diff --git a/17th Website/src/forms/transferForm.vue b/17th Website/src/forms/transferForm.vue index a1e30dc..45e12ba 100644 --- a/17th Website/src/forms/transferForm.vue +++ b/17th Website/src/forms/transferForm.vue @@ -10,43 +10,129 @@ export default { }, data() { return { - items: [], - units: ['Alpha', 'Echo', 'RRC', 'HHC', 'Recruit'], + members: [], + statusList: [], + rankList: [], + + status: '', + rank: '', } }, - mounted() { + beforeMount() { QueryApolloGraphQL("getPageViewMemberRankStatusAll", "query Query {getPageViewMemberRankStatusAll {items {member_name}}}") .then(value => { value.forEach(element => { - this.items.push(element.member_name) + this.members.push(element.member_name) }); - }) //console.log(value); for debug reasons - //this still needs to be implemented\ + }) + // query all of the possible statuses/units a person could have + QueryApolloGraphQL("getPageStatuses", `query GetPageStatuses { + getPageStatuses { + items { + name + id + } + } + }`).then(value => { this.statusList = value; }); + //get all of the ranks to change a person to + QueryApolloGraphQL("getPageRanks", `query GetRanks { + getPageRanks { + items { + id + short_name + } + } + }`).then(value => { this.rankList = value; }); + } } \ No newline at end of file + + + \ No newline at end of file