提交 3fda2cb6 authored 作者: 王鹏飞's avatar 王鹏飞

rename: pay -> payment

上级 0d456e34
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
path: '/finance', path: '/finance',
icon: 'el-icon-money', icon: 'el-icon-money',
children: [ children: [
{ name: '支付记录', path: '/finance/pay' }, { name: '支付记录', path: '/finance/payment' },
{ name: '发票记录', path: '/finance/invoice' } { name: '发票记录', path: '/finance/invoice' }
] ]
} }
......
const routes = [ const routes = [
{ {
path: '/finance', path: '/finance',
redirect: '/finance/pay', redirect: '/finance/payment',
component: () => import('@/components/layout/Index.vue'), component: () => import('@/components/layout/Index.vue'),
meta: { title: '财务管理' }, meta: { title: '财务管理' },
children: [ children: [
......
const routes = [ const routes = [
{ {
path: '/finance', path: '/finance',
redirect: '/finance/pay', redirect: '/finance/payment',
component: () => import('@/components/layout/Index.vue'), component: () => import('@/components/layout/Index.vue'),
meta: { title: '财务管理' }, meta: { title: '财务管理' },
children: [ children: [
{ {
path: 'pay', path: 'payment',
component: () => import('./views/List.vue'), component: () => import('./views/List.vue'),
meta: { title: '支付记录' } meta: { title: '支付记录' }
}, },
{ {
name: 'payView', name: 'paymentView',
path: 'pay/:id', path: 'payment/:id',
component: () => import('./views/Detail.vue'), component: () => import('./views/Detail.vue'),
meta: { title: '支付详情' } meta: { title: '支付详情' }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<app-card> <app-card>
<app-list v-bind="tableOptions" ref="list" @selection-change="handleSelectionChange"> <app-list v-bind="tableOptions" ref="list" @selection-change="handleSelectionChange">
<template v-slot:table-x="{ row }"> <template v-slot:table-x="{ row }">
<router-link :to="{ name: 'payView', params: { id: row.id } }"> <router-link :to="{ name: 'paymentView', params: { id: row.id } }">
<el-button type="text">查看</el-button> <el-button type="text">查看</el-button>
</router-link> </router-link>
</template> </template>
......
...@@ -3,7 +3,7 @@ import VueRouter from 'vue-router' ...@@ -3,7 +3,7 @@ import VueRouter from 'vue-router'
Vue.use(VueRouter) Vue.use(VueRouter)
const routes = [{ path: '*', redirect: '/finance/pay' }] const routes = [{ path: '*', redirect: '/finance/payment' }]
const router = new VueRouter({ const router = new VueRouter({
mode: 'history', mode: 'history',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论