diff --git a/package.json b/package.json index 661851e..b7b7485 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "moment": "^2.22.2", "viser-vue": "^2.2.5", "vue": "^2.5.2", - "vue-antd-ui": "^1.0.0", + "vue-antd-ui": "^1.0.1", "vue-router": "^3.0.1" }, "devDependencies": { diff --git a/src/components/dashboard/WorkPlace.vue b/src/components/dashboard/WorkPlace.vue new file mode 100644 index 0000000..5c2cc22 --- /dev/null +++ b/src/components/dashboard/WorkPlace.vue @@ -0,0 +1,212 @@ + + + + + diff --git a/src/components/layout/PageLayout.vue b/src/components/layout/PageLayout.vue index 494a07f..cc68ad2 100644 --- a/src/components/layout/PageLayout.vue +++ b/src/components/layout/PageLayout.vue @@ -1,10 +1,20 @@ @@ -14,24 +24,21 @@ import PageHeader from '../page/PageHeader' export default { name: 'PageLayout', components: {PageHeader}, + props: ['desc', 'title'], data () { return { - title: '', - breadcrumb: [], - desc: '' + breadcrumb: [] } }, mounted () { - this.getPageHeaderInfo() + this.getBreadcrumb() }, beforeUpdate () { - this.getPageHeaderInfo() + this.getBreadcrumb() }, methods: { - getPageHeaderInfo () { - this.title = this.$route.name + getBreadcrumb () { this.breadcrumb = this.$route.matched - this.desc = this.$refs.page.desc } } } diff --git a/src/components/layout/PageView.vue b/src/components/layout/PageView.vue new file mode 100644 index 0000000..d817ca2 --- /dev/null +++ b/src/components/layout/PageView.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/components/layout/RouterLayout.vue b/src/components/layout/RouteView.vue similarity index 82% rename from src/components/layout/RouterLayout.vue rename to src/components/layout/RouteView.vue index c92b9eb..52adca1 100644 --- a/src/components/layout/RouterLayout.vue +++ b/src/components/layout/RouteView.vue @@ -4,7 +4,7 @@ diff --git a/src/components/list/CardList.vue b/src/components/list/CardList.vue index f3d4999..ab5bd14 100644 --- a/src/components/list/CardList.vue +++ b/src/components/list/CardList.vue @@ -1,5 +1,5 @@