add article and article part pages, extend article store

This commit is contained in:
2019-02-23 12:35:18 +07:00
parent cc6ea339af
commit c6f8da2c44
10 changed files with 428 additions and 103 deletions

33
src/views/ArticlePart.vue Normal file
View File

@@ -0,0 +1,33 @@
<template>
<v-container grid-list-md v-if="part">
<v-layout row wrap>
<v-flex xs12 sm10 offset-sm1>
<!-- content -->
</v-flex>
<v-flex xs12 sm10 offset-sm1>
<!-- words -->
</v-flex>
</v-layout>
</v-container>
</template>
<script>
export default {
props: {
articleId: {
type: String,
required: true,
},
partId: {
type: String,
required: true,
},
},
computed: {
part() {
return this.$store.getters.getParts.find(part => part.articleId === this.articleId
&& part.articlePartId === this.partId);
}
}
};
</script>