Skip to content

Commit

Permalink
-close #102 แก้ code ui
Browse files Browse the repository at this point in the history
  • Loading branch information
PcFreb committed Jan 26, 2020
1 parent dc3c02e commit 0ec2a6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions SE-Sprint1/client/src/components/Club.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ export default {
},
Branchs: [],
Yesrs: [],
Officers: [],
Years: [],
ClubTypes: [],
valid: false
Expand Down Expand Up @@ -224,10 +224,10 @@ export default {
"/Clubs/" +
this.Club.Branch_id +
"/" +
this.Club.Officer_id +
"/" +
this.Club.Year_id +
"/" +
this.Club.Officer_id +
"/" +
this.Club.ClubType_id +
"/" +
this.Club.ClubName +
Expand All @@ -243,8 +243,8 @@ export default {
.then(response => {
console.log(response.data);
this.Club.Branch_id = ""
this.Club.Officer_id = ""
this.Club.Year_id = ""
this.Club.Officer_id = ""
this.Club.ClubType_id = ""
this.Club.ClubName = ""
this.Club.ClubPresident = ""
Expand Down
11 changes: 7 additions & 4 deletions SE-Sprint1/client/src/components/Clubmemberview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</v-row>
<v-row justify="center">
<v-col cols="10">
<v-data-table :headers="headers" :items="items" :items-per-page="5" class="elevation-1"></v-data-table>
<v-data-table :headers="headers" :items="tempItem" :items-per-page="5" class="elevation-1"></v-data-table>
</v-col>
</v-row>

Expand Down Expand Up @@ -63,8 +63,11 @@ export default {
} else {
this.tempItem = []
this.items.forEach(club => {
if(club.clubs.clubName.includes(this.clubname)) {
this.tempItem.push(club)
if(club.clubs) {
if(club.clubs.clubName.includes(this.clubname)) {
this.tempItem.push(club)
}
}
});
}
Expand All @@ -75,7 +78,7 @@ getClubmember() {
.then(response => {
this.items = response.data
this.tempItem = this.items
console.log(JSON.stringify(this.items))
console.log(this.items)
})
.catch(e => {
console.log(e)
Expand Down

0 comments on commit 0ec2a6b

Please sign in to comment.