diff --git a/src/components/menu/menu.js b/src/components/menu/menu.js index e448751..2e4d8aa 100644 --- a/src/components/menu/menu.js +++ b/src/components/menu/menu.js @@ -47,7 +47,7 @@ export default { data () { return { rootSubmenuKeys: ['/form', '/list', '/detail', '/exception', '/result'], - openKeys: ['/form'] + openKeys: [] } }, methods: { diff --git a/src/components/page/PageHeader.vue b/src/components/page/PageHeader.vue index e71c21f..cbc2c2f 100644 --- a/src/components/page/PageHeader.vue +++ b/src/components/page/PageHeader.vue @@ -23,7 +23,7 @@ export default { props: { title: { type: String, - required: true + required: false }, breadcrumb: { type: Array, diff --git a/src/components/result/Error.vue b/src/components/result/Error.vue new file mode 100644 index 0000000..5374b2d --- /dev/null +++ b/src/components/result/Error.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/src/components/result/Result.vue b/src/components/result/Result.vue index f5265f1..5be41fc 100644 --- a/src/components/result/Result.vue +++ b/src/components/result/Result.vue @@ -3,9 +3,13 @@
-
{{title}}
-
- +
{{title}}
+
{{description}}
+
+ +
+
+
@@ -15,13 +19,12 @@ import AIcon from 'vue-antd-ui/es/icon/icon' export default { name: 'Result', components: {AIcon}, - props: ['isSuccess', 'title'] + props: ['isSuccess', 'title', 'description'] } diff --git a/src/components/result/Success.vue b/src/components/result/Success.vue new file mode 100644 index 0000000..33e9b25 --- /dev/null +++ b/src/components/result/Success.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index 4761b9b..5d365ef 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,6 +9,8 @@ import Form from '@/components/form/Form' import BasicForm from '@/components/form/BasicForm' import StepForm from '@/components/form/stepForm/StepForm' import AdvancedForm from '@/components/form/advancedForm/AdvancedForm' +import Success from '@/components/result/Success' +import Error from '@/components/result/Error' Vue.use(Router) @@ -100,7 +102,7 @@ export default new Router({ }, { path: '/result', - name: '详情页', + name: '结果页', icon: 'check-circle-o', component: Exception, children: [ @@ -108,13 +110,13 @@ export default new Router({ path: '/result/success', name: '成功', icon: 'none', - component: NotFound + component: Success }, { - path: '/result/failure', + path: '/result/error', name: '失败', icon: 'none', - component: NotFound + component: Error } ] },