Commit b0271a7b by 胡锦波

1. init 基本页面路由补充完成

parent c654ea80
export enum Direction {
Home = 1,
AddressBook,
ApplicationRecord,
InvoiceTitles,
InvoiceRecord,
EnterpriseInfo,
ApplicationSetting,
ManagerSetting,
ManagerLog,
}
......@@ -19,7 +19,47 @@ const routes: Array<RouteConfig> = [
path: 'home',
component: () => import('@/views/pages/home/home.vue'),
meta: { direction: Direction.Home, title: MetaHeader.home },
}
},
{
path: 'addressbook',
component: () => import('@/views/pages/employ-management/address-book/address-book.vue'),
meta: { direction: Direction.AddressBook, title: MetaHeader.addressBook },
},
{
path: 'applicationrecord',
component: () => import('@/views/pages/employ-management/application-record/application-record.vue'),
meta: { direction: Direction.ApplicationRecord, title: MetaHeader.applicationRecord },
},
{
path: 'invoicerecord',
component: () => import('@/views/pages/service-management/invoice-record/invoice-record.vue'),
meta: { direction: Direction.InvoiceRecord, title: MetaHeader.invoiceRecord },
},
{
path: 'Invoicetitles',
component: () => import('@/views/pages/service-management/invoice-titles/invoice-titles.vue'),
meta: { direction: Direction.InvoiceTitles, title: MetaHeader.invoiceTitles },
},
{
path: 'orginfo',
component: () => import('@/views/pages/enterprise-management/enterprise-info/enterprise-info.vue'),
meta: { direction: Direction.EnterpriseInfo, title: MetaHeader.enterpriseInfo },
},
{
path: 'applysetting',
component: () => import('@/views/pages/enterprise-management/application-setting/application-setting.vue'),
meta: { direction: Direction.ApplicationSetting, title: MetaHeader.applicationSetting },
},
{
path: 'managersetting',
component: () => import('@/views/pages/enterprise-management/manager-setting/manager-setting.vue'),
meta: { direction: Direction.ManagerSetting, title: MetaHeader.managerSetting },
},
{
path: 'managerlog',
component: () => import('@/views/pages/enterprise-management/manager-log/manager-log.vue'),
meta: { direction: Direction.ManagerLog, title: MetaHeader.managerLog },
},
]
}
];
......
export class MetaHeader {
public static readonly home = '首页';
public static readonly addressBook = '通讯录';
public static readonly applicationRecord = '申请加入记录';
public static readonly invoiceTitles = '发票抬头';
public static readonly invoiceRecord = '发票记录';
public static readonly enterpriseInfo = '企业信息';
public static readonly applicationSetting = '申请加入设置';
public static readonly managerSetting = '管理员权限';
public static readonly managerLog = '管理员日志';
}
<template>
<div>AddressBook</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ components: {} })
export default class AddressBook extends Vue {}
</script>
<style lang="less" scoped>
@import "~@/css/variables.less";
</style>
<template>
<div>ApplicationRecord</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ components: {} })
export default class ApplicationRecord extends Vue {}
</script>
<style lang="less" scoped>
@import "~@/css/variables.less";
</style>
<template>
<div>ApplicationSetting</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ components: {} })
export default class ApplicationSetting extends Vue {}
</script>
<style lang="less" scoped>
@import "~@/css/variables.less";
</style>
<template>
<div>EnterpriseInfo</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ components: {} })
export default class EnterpriseInfo extends Vue {}
</script>
<style lang="less" scoped>
@import "~@/css/variables.less";
</style>
<template>
<div>ManagetLog</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ components: {} })
export default class ManagetLog extends Vue {}
</script>
<style lang="less" scoped>
@import "~@/css/variables.less";
</style>
<template>
<div>ManagerSetting</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ components: {} })
export default class ManagerSetting extends Vue {}
</script>
<style lang="less" scoped>
@import "~@/css/variables.less";
</style>
<template>
<div>InvoiceRecord</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ components: {} })
export default class InvoiceRecord extends Vue {}
</script>
<style lang="less" scoped>
@import "~@/css/variables.less";
</style>
<template>
<div>InvoiceTitles</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ components: {} })
export default class InvoiceTitles extends Vue {}
</script>
<style lang="less" scoped>
@import "~@/css/variables.less";
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment