fix:修改了一部分菜单栏的问题,但是更多的还没有修复
This commit is contained in:
parent
864f926f2e
commit
7f654625aa
|
@ -26,40 +26,39 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
// }
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
path: '/regulation',
|
||||
name: 'Regulation',
|
||||
component: Layout,
|
||||
redirect: '/regulation/system-regulation',
|
||||
meta: { title: '制度管理', icon: 'file-text', hidden: false, sort: 1.5 },
|
||||
children: [
|
||||
{
|
||||
path: '/regulation/system-regulation',
|
||||
name: 'SystemRegulation',
|
||||
component: () => import('@/views/regulation/repository.vue'),
|
||||
meta: { title: '制度公告', icon: 'file-text', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/regulation/process-management',
|
||||
name: 'ProcessManagement',
|
||||
component: () => import('@/views/regulation/confirm.vue'),
|
||||
meta: { title: '制度公示', icon: 'workflow', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/regulation/proposal',
|
||||
name: 'RegulationProposal',
|
||||
component: () => import('@/views/regulation/proposal/index.vue'),
|
||||
meta: { title: '制度提案', icon: 'edit', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/regulation/type',
|
||||
name: 'RegulationType',
|
||||
component: () => import('@/views/regulation/type/index.vue'),
|
||||
meta: { title: '制度类型', icon: 'tag', hidden: false },
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
// {
|
||||
// path: '/regulation',
|
||||
// name: 'Regulation',
|
||||
// component: Layout,
|
||||
// redirect: '/regulation/system-regulation',
|
||||
// meta: { title: '制度管理', icon: 'file-text', hidden: false, sort: 1.5 },
|
||||
// children: [
|
||||
// {
|
||||
// path: '/regulation/system-regulation',
|
||||
// name: 'SystemRegulation',
|
||||
// component: () => import('@/views/regulation/repository.vue'),
|
||||
// meta: { title: '制度公告', icon: 'file-text', hidden: false },
|
||||
// },
|
||||
// {
|
||||
// path: '/regulation/process-management',
|
||||
// name: 'ProcessManagement',
|
||||
// component: () => import('@/views/regulation/confirm.vue'),
|
||||
// meta: { title: '制度公示', icon: 'workflow', hidden: false },
|
||||
// },
|
||||
// {
|
||||
// path: '/regulation/proposal',
|
||||
// name: 'RegulationProposal',
|
||||
// component: () => import('@/views/regulation/proposal/index.vue'),
|
||||
// meta: { title: '制度提案', icon: 'edit', hidden: false },
|
||||
// },
|
||||
// {
|
||||
// path: '/regulation/type',
|
||||
// name: 'RegulationType',
|
||||
// component: () => import('@/views/regulation/type/index.vue'),
|
||||
// meta: { title: '制度类型', icon: 'tag', hidden: false },
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
path: '/organization',
|
||||
name: 'Organization',
|
||||
|
@ -67,12 +66,12 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
redirect: '/organization/dept',
|
||||
meta: { title: '企业管理', icon: 'user-group', hidden: false, sort: 2 },
|
||||
children: [
|
||||
{
|
||||
path: '/organization/user',
|
||||
name: 'OrganizationUser',
|
||||
component: () => import('@/views/system/user/index.vue'),
|
||||
meta: { title: '用户管理', icon: 'user', hidden: false, sort: 2.25 },
|
||||
},
|
||||
// {
|
||||
// path: '/organization/user',
|
||||
// name: 'OrganizationUser',
|
||||
// component: () => import('@/views/system/user/index.vue'),
|
||||
// meta: { title: '用户管理', icon: 'user', hidden: false, sort: 2.25 },
|
||||
// },
|
||||
{
|
||||
path: '/organization/dept',
|
||||
name: 'OrganizationDept',
|
||||
|
@ -85,6 +84,39 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
component: () => import('@/views/system/post/index.vue'),
|
||||
meta: { title: '岗位管理', icon: 'nav', hidden: false, sort: 2.75 },
|
||||
},
|
||||
{
|
||||
path: '/regulation',
|
||||
name: 'Regulation',
|
||||
// component: Layout,
|
||||
redirect: '/regulation/system-regulation',
|
||||
meta: { title: '制度管理', icon: 'file-text', hidden: false, sort: 1.5 },
|
||||
children: [
|
||||
{
|
||||
path: '/regulation/system-regulation',
|
||||
name: 'SystemRegulation',
|
||||
component: () => import('@/views/regulation/repository.vue'),
|
||||
meta: { title: '制度公告', icon: 'file-text', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/regulation/process-management',
|
||||
name: 'ProcessManagement',
|
||||
component: () => import('@/views/regulation/confirm.vue'),
|
||||
meta: { title: '制度公示', icon: 'workflow', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/regulation/proposal',
|
||||
name: 'RegulationProposal',
|
||||
component: () => import('@/views/regulation/proposal/index.vue'),
|
||||
meta: { title: '制度提案', icon: 'edit', hidden: false },
|
||||
},
|
||||
{
|
||||
path: '/regulation/type',
|
||||
name: 'RegulationType',
|
||||
component: () => import('@/views/regulation/type/index.vue'),
|
||||
meta: { title: '制度类型', icon: 'tag', hidden: false },
|
||||
},
|
||||
],
|
||||
},
|
||||
// {
|
||||
// path: '/organization/hr/workload',
|
||||
// name: 'HRWorkload',
|
||||
|
@ -501,99 +533,86 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
],
|
||||
},
|
||||
{
|
||||
path: '/project-management',
|
||||
name: 'ProjectManagement',
|
||||
path: '/project-marketing',
|
||||
name: 'Projectmarketing',
|
||||
component: Layout,
|
||||
redirect: '/project-management/project-template/project-management',
|
||||
meta: { title: '项目管理', icon: 'apps', hidden: false, sort: 4 },
|
||||
redirect: '/project-marketing/project-marketing',
|
||||
meta: { title: '营销管理', icon: 'file-text', hidden: false, sort: 3 },
|
||||
children: [
|
||||
{
|
||||
path: '/project-management/contract/project-source',
|
||||
name: 'ProjectSource',
|
||||
path: '/project-marketing/contract/revenue-contract2',
|
||||
name: 'RevenueContract2',
|
||||
component: () => import('@/views/default/error/404.vue'),
|
||||
meta: {
|
||||
title: '市场营销(N)',
|
||||
icon: 'dollar',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/project-marketing/contract/procurement-business',
|
||||
name: 'ProcurementBusiness',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
meta: {
|
||||
title: '项目来源',
|
||||
title: '招采业务',
|
||||
icon: 'dollar',
|
||||
hidden: false,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '/project-management/contract/procurement-business',
|
||||
name: 'ProcurementBusiness',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
path: '/project-marketing/project-template/tender-documents',
|
||||
name: 'TenderDocuments',
|
||||
component: () => import('@/views/project-management/bidding/tender-documents/index.vue'),
|
||||
meta: {
|
||||
title: '招采业务',
|
||||
icon: 'dollar',
|
||||
hidden: false,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '/project-management/project-template/tender-documents',
|
||||
name: 'TenderDocuments',
|
||||
component: () => import('@/views/project-management/bidding/tender-documents/index.vue'),
|
||||
meta: {
|
||||
title: '招标文件',
|
||||
icon: 'file-text',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/project-management/project-template/bid-documents',
|
||||
name: 'BidDocuments',
|
||||
component: () => import('@/views/project-management/bidding/bid-documents/index.vue'),
|
||||
meta: {
|
||||
title: '投标文件',
|
||||
icon: 'file-text',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/project-management/project-template/award-notice',
|
||||
name: 'AwardNotice',
|
||||
component: () => import('@/views/project-management/bidding/award-notice/index.vue'),
|
||||
meta: {
|
||||
title: '中标通知书',
|
||||
icon: 'trophy',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/project-management/project-template/information-retrieval',
|
||||
name: 'InformationRetrieval',
|
||||
component: () => import ('@/views/project-management/bidding/information-retrieval/index.vue'),
|
||||
meta: {
|
||||
title: '信息检索(N)',
|
||||
icon: 'trophy',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/project-management/contract/revenue-contract2',
|
||||
name: 'RevenueContract2',
|
||||
component: () => import('@/views/default/error/404.vue'),
|
||||
meta: {
|
||||
title: '市场营销(N)',
|
||||
icon: 'dollar',
|
||||
title: '招标文件',
|
||||
icon: 'file-text',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/project-management/project-source/privateproject',
|
||||
name: 'PrivateProject',
|
||||
component: () => import('@/views/default/error/404.vue'),
|
||||
path: '/project-marketing/project-template/bid-documents',
|
||||
name: 'BidDocuments',
|
||||
component: () => import('@/views/project-management/bidding/bid-documents/index.vue'),
|
||||
meta: {
|
||||
title: '自建项目(N)',
|
||||
icon: 'dollar',
|
||||
title: '投标文件',
|
||||
icon: 'file-text',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/project-marketing/project-template/award-notice',
|
||||
name: 'AwardNotice',
|
||||
component: () => import('@/views/project-management/bidding/award-notice/index.vue'),
|
||||
meta: {
|
||||
title: '中标通知书',
|
||||
icon: 'trophy',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/project-marketing/project-template/information-retrieval',
|
||||
name: 'InformationRetrieval',
|
||||
component: () => import ('@/views/project-management/bidding/information-retrieval/index.vue'),
|
||||
meta: {
|
||||
title: '信息检索(N)',
|
||||
icon: 'trophy',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/project-marketing/order-management/order-management',
|
||||
name: 'OrderManagement',
|
||||
component: () => import('@/views/project-management/order-management/index.vue'),
|
||||
meta: {
|
||||
title: '订单管理',
|
||||
icon: 'file-text',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
{ path: '/project-management/contract', name: 'ProjectContract', component: () => import('@/components/ParentView/index.vue'), redirect: '/project-management/contract/revenue-contract', meta: {
|
||||
title: '项目合同',
|
||||
title: '合同管理',
|
||||
icon: 'file-text',
|
||||
hidden: false,
|
||||
}, children: [
|
||||
|
@ -628,6 +647,136 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
},
|
||||
},
|
||||
] },
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/project-management',
|
||||
name: 'ProjectManagement',
|
||||
component: Layout,
|
||||
redirect: '/project-management/project-template/project-management',
|
||||
meta: { title: '项目管理', icon: 'apps', hidden: false, sort: 4 },
|
||||
children: [
|
||||
{
|
||||
path: '/project-management/contract/project-source',
|
||||
name: 'ProjectSource',
|
||||
component: () => import('@/components/ParentView/index.vue'),
|
||||
meta: {
|
||||
title: '项目来源',
|
||||
icon: 'dollar',
|
||||
hidden: false,
|
||||
},
|
||||
children: [
|
||||
// {
|
||||
// path: '/project-management/contract/procurement-business',
|
||||
// name: 'ProcurementBusiness',
|
||||
// component: () => import('@/components/ParentView/index.vue'),
|
||||
// meta: {
|
||||
// title: '招采业务',
|
||||
// icon: 'dollar',
|
||||
// hidden: false,
|
||||
// },
|
||||
// children: [
|
||||
// {
|
||||
// path: '/project-management/project-template/tender-documents',
|
||||
// name: 'TenderDocuments',
|
||||
// component: () => import('@/views/project-management/bidding/tender-documents/index.vue'),
|
||||
// meta: {
|
||||
// title: '招标文件',
|
||||
// icon: 'file-text',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: '/project-management/project-template/bid-documents',
|
||||
// name: 'BidDocuments',
|
||||
// component: () => import('@/views/project-management/bidding/bid-documents/index.vue'),
|
||||
// meta: {
|
||||
// title: '投标文件',
|
||||
// icon: 'file-text',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: '/project-management/project-template/award-notice',
|
||||
// name: 'AwardNotice',
|
||||
// component: () => import('@/views/project-management/bidding/award-notice/index.vue'),
|
||||
// meta: {
|
||||
// title: '中标通知书',
|
||||
// icon: 'trophy',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: '/project-management/project-template/information-retrieval',
|
||||
// name: 'InformationRetrieval',
|
||||
// component: () => import ('@/views/project-management/bidding/information-retrieval/index.vue'),
|
||||
// meta: {
|
||||
// title: '信息检索(N)',
|
||||
// icon: 'trophy',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
//
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// path: '/project-management/contract/revenue-contract2',
|
||||
// name: 'RevenueContract2',
|
||||
// component: () => import('@/views/default/error/404.vue'),
|
||||
// meta: {
|
||||
// title: '市场营销(N)',
|
||||
// icon: 'dollar',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
{
|
||||
path: '/project-management/project-source/privateproject',
|
||||
name: 'PrivateProject',
|
||||
component: () => import('@/views/default/error/404.vue'),
|
||||
meta: {
|
||||
title: '自建项目(N)',
|
||||
icon: 'dollar',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
// { path: '/project-management/contract', name: 'ProjectContract', component: () => import('@/components/ParentView/index.vue'), redirect: '/project-management/contract/revenue-contract', meta: {
|
||||
// title: '项目合同',
|
||||
// icon: 'file-text',
|
||||
// hidden: false,
|
||||
// }, children: [
|
||||
// {
|
||||
// path: '/project-management/contract/revenue-contract',
|
||||
// name: 'RevenueContract',
|
||||
// component: () => import('@/views/project-management/contract/revenue-contract/index.vue'),
|
||||
// meta: {
|
||||
// title: '收入合同',
|
||||
// icon: 'dollar',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: '/project-management/contract/expense-contract',
|
||||
// name: 'ExpenseContract',
|
||||
// component: () => import('@/views/project-management/contract/expense-contract/index.vue'),
|
||||
// meta: {
|
||||
// title: '支出合同',
|
||||
// icon: 'credit-card',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: '/project-management/contract/cost-management',
|
||||
// name: 'CostManagement',
|
||||
// component: () => import('@/views/project-management/contract/cost-management/index.vue'),
|
||||
// meta: {
|
||||
// title: '成本费用',
|
||||
// icon: 'bar-chart',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
// ] },
|
||||
{
|
||||
path: '/project-management/project-template/project-aproval',
|
||||
name: 'ProjectTemplate',
|
||||
|
@ -704,25 +853,25 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
],
|
||||
},
|
||||
// 添加商务知识库
|
||||
{
|
||||
path: '/bussiness-knowledge',
|
||||
name: 'bussinesskonwledge',
|
||||
component: Layout,
|
||||
redirect: '/bussiness-knowledge/data',
|
||||
meta: { title: '商务资料知识库', icon: 'message', hidden: false, sort: 6 },
|
||||
children: [
|
||||
{
|
||||
path: '/bussiness-konwledge/data',
|
||||
name: 'bussiness-knowledge',
|
||||
component: () => import('@/views/bussiness-data/bussiness.vue'),
|
||||
meta: {
|
||||
title: '商务数据库信息',
|
||||
icon: 'info-circle',
|
||||
hidden: false,
|
||||
},
|
||||
path: '/bussiness-knowledge',
|
||||
name: 'bussinesskonwledge',
|
||||
component: Layout,
|
||||
redirect: '/bussiness-knowledge/data',
|
||||
meta: { title: '商务资料知识库', icon: 'message', hidden: false, sort: 6 },
|
||||
children: [
|
||||
{
|
||||
path: '/bussiness-konwledge/data',
|
||||
name: 'bussiness-knowledge',
|
||||
component: () => import('@/views/bussiness-data/bussiness.vue'),
|
||||
meta: {
|
||||
title: '商务数据库信息',
|
||||
icon: 'info-circle',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'project-management/project-implementation/',
|
||||
name: 'Project-Implementation',
|
||||
|
@ -1036,30 +1185,30 @@ export const systemRoutes: RouteRecordRaw[] = [
|
|||
// }
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/user/profile',
|
||||
name: 'UserProfile',
|
||||
component: Layout,
|
||||
redirect: '/user/profile',
|
||||
meta: {
|
||||
title: '个人中心',
|
||||
icon: 'user',
|
||||
hidden: false,
|
||||
sort: 100,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '/user/profile',
|
||||
name: 'UsersProfile',
|
||||
component: () => import('@/views/user/profile/index.vue'),
|
||||
meta: {
|
||||
title: '个人中心',
|
||||
icon: 'user',
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
// {
|
||||
// path: '/user/profile',
|
||||
// name: 'UserProfile',
|
||||
// component: Layout,
|
||||
// redirect: '/user/profile',
|
||||
// meta: {
|
||||
// title: '个人中心',
|
||||
// icon: 'user',
|
||||
// hidden: false,
|
||||
// sort: 100,
|
||||
// },
|
||||
// children: [
|
||||
// {
|
||||
// path: '/user/profile',
|
||||
// name: 'UsersProfile',
|
||||
// component: () => import('@/views/user/profile/index.vue'),
|
||||
// meta: {
|
||||
// title: '个人中心',
|
||||
// icon: 'user',
|
||||
// hidden: false,
|
||||
// },
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
{
|
||||
path: '/enterprise-settings',
|
||||
name: 'EnterpriseSettings',
|
||||
|
|
|
@ -149,6 +149,20 @@ const storeSetup = () => {
|
|||
isHidden: false,
|
||||
sort: 3,
|
||||
},
|
||||
{
|
||||
id: 1070,
|
||||
parentId: 1000,
|
||||
title: '个人中心',
|
||||
type: 2,
|
||||
path: '/user/profile',
|
||||
name: 'UserProfile',
|
||||
component: 'user/profile/index',
|
||||
icon: 'user',
|
||||
isExternal: false,
|
||||
isCache: false,
|
||||
isHidden: false,
|
||||
sort: 4,
|
||||
},
|
||||
],
|
||||
}]
|
||||
// 使用已转换的数据生成路由
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue