fix:修改了一部分菜单栏的问题,但是更多的还没有修复

This commit is contained in:
Maple 2025-08-06 15:20:23 +08:00
parent 864f926f2e
commit 7f654625aa
3 changed files with 326 additions and 152 deletions

View File

@ -26,40 +26,39 @@ export const systemRoutes: RouteRecordRaw[] = [
// } // }
// ], // ],
// }, // },
{ // {
path: '/regulation', // path: '/regulation',
name: 'Regulation', // name: 'Regulation',
component: Layout, // component: Layout,
redirect: '/regulation/system-regulation', // redirect: '/regulation/system-regulation',
meta: { title: '制度管理', icon: 'file-text', hidden: false, sort: 1.5 }, // meta: { title: '制度管理', icon: 'file-text', hidden: false, sort: 1.5 },
children: [ // children: [
{ // {
path: '/regulation/system-regulation', // path: '/regulation/system-regulation',
name: 'SystemRegulation', // name: 'SystemRegulation',
component: () => import('@/views/regulation/repository.vue'), // component: () => import('@/views/regulation/repository.vue'),
meta: { title: '制度公告', icon: 'file-text', hidden: false }, // meta: { title: '制度公告', icon: 'file-text', hidden: false },
}, // },
{ // {
path: '/regulation/process-management', // path: '/regulation/process-management',
name: 'ProcessManagement', // name: 'ProcessManagement',
component: () => import('@/views/regulation/confirm.vue'), // component: () => import('@/views/regulation/confirm.vue'),
meta: { title: '制度公示', icon: 'workflow', hidden: false }, // meta: { title: '制度公示', icon: 'workflow', hidden: false },
}, // },
{ // {
path: '/regulation/proposal', // path: '/regulation/proposal',
name: 'RegulationProposal', // name: 'RegulationProposal',
component: () => import('@/views/regulation/proposal/index.vue'), // component: () => import('@/views/regulation/proposal/index.vue'),
meta: { title: '制度提案', icon: 'edit', hidden: false }, // meta: { title: '制度提案', icon: 'edit', hidden: false },
}, // },
{ // {
path: '/regulation/type', // path: '/regulation/type',
name: 'RegulationType', // name: 'RegulationType',
component: () => import('@/views/regulation/type/index.vue'), // component: () => import('@/views/regulation/type/index.vue'),
meta: { title: '制度类型', icon: 'tag', hidden: false }, // meta: { title: '制度类型', icon: 'tag', hidden: false },
}, // },
// ],
], // },
},
{ {
path: '/organization', path: '/organization',
name: 'Organization', name: 'Organization',
@ -67,12 +66,12 @@ export const systemRoutes: RouteRecordRaw[] = [
redirect: '/organization/dept', redirect: '/organization/dept',
meta: { title: '企业管理', icon: 'user-group', hidden: false, sort: 2 }, meta: { title: '企业管理', icon: 'user-group', hidden: false, sort: 2 },
children: [ children: [
{ // {
path: '/organization/user', // path: '/organization/user',
name: 'OrganizationUser', // name: 'OrganizationUser',
component: () => import('@/views/system/user/index.vue'), // component: () => import('@/views/system/user/index.vue'),
meta: { title: '用户管理', icon: 'user', hidden: false, sort: 2.25 }, // meta: { title: '用户管理', icon: 'user', hidden: false, sort: 2.25 },
}, // },
{ {
path: '/organization/dept', path: '/organization/dept',
name: 'OrganizationDept', name: 'OrganizationDept',
@ -85,6 +84,39 @@ export const systemRoutes: RouteRecordRaw[] = [
component: () => import('@/views/system/post/index.vue'), component: () => import('@/views/system/post/index.vue'),
meta: { title: '岗位管理', icon: 'nav', hidden: false, sort: 2.75 }, 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', // path: '/organization/hr/workload',
// name: 'HRWorkload', // name: 'HRWorkload',
@ -501,99 +533,86 @@ export const systemRoutes: RouteRecordRaw[] = [
], ],
}, },
{ {
path: '/project-management', path: '/project-marketing',
name: 'ProjectManagement', name: 'Projectmarketing',
component: Layout, component: Layout,
redirect: '/project-management/project-template/project-management', redirect: '/project-marketing/project-marketing',
meta: { title: '项目管理', icon: 'apps', hidden: false, sort: 4 }, meta: { title: '营销管理', icon: 'file-text', hidden: false, sort: 3 },
children: [ children: [
{ {
path: '/project-management/contract/project-source', path: '/project-marketing/contract/revenue-contract2',
name: 'ProjectSource', 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'), component: () => import('@/components/ParentView/index.vue'),
meta: { meta: {
title: '项目来源', title: '招采业务',
icon: 'dollar', icon: 'dollar',
hidden: false, hidden: false,
}, },
children: [ children: [
{ {
path: '/project-management/contract/procurement-business', path: '/project-marketing/project-template/tender-documents',
name: 'ProcurementBusiness', name: 'TenderDocuments',
component: () => import('@/components/ParentView/index.vue'), component: () => import('@/views/project-management/bidding/tender-documents/index.vue'),
meta: { meta: {
title: '招采业务', title: '招标文件',
icon: 'dollar', icon: 'file-text',
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, hidden: false,
}, },
}, },
{ {
path: '/project-management/project-source/privateproject', path: '/project-marketing/project-template/bid-documents',
name: 'PrivateProject', name: 'BidDocuments',
component: () => import('@/views/default/error/404.vue'), component: () => import('@/views/project-management/bidding/bid-documents/index.vue'),
meta: { meta: {
title: '自建项目(N)', title: '投标文件',
icon: 'dollar', 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, 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: { { path: '/project-management/contract', name: 'ProjectContract', component: () => import('@/components/ParentView/index.vue'), redirect: '/project-management/contract/revenue-contract', meta: {
title: '项目合同', title: '合同管理',
icon: 'file-text', icon: 'file-text',
hidden: false, hidden: false,
}, children: [ }, 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', path: '/project-management/project-template/project-aproval',
name: 'ProjectTemplate', 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', path: '/bussiness-knowledge',
name: 'bussiness-knowledge', name: 'bussinesskonwledge',
component: () => import('@/views/bussiness-data/bussiness.vue'), component: Layout,
meta: { redirect: '/bussiness-knowledge/data',
title: '商务数据库信息', meta: { title: '商务资料知识库', icon: 'message', hidden: false, sort: 6 },
icon: 'info-circle', children: [
hidden: false, {
}, 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/', path: 'project-management/project-implementation/',
name: 'Project-Implementation', name: 'Project-Implementation',
@ -1036,30 +1185,30 @@ export const systemRoutes: RouteRecordRaw[] = [
// } // }
], ],
}, },
{ // {
path: '/user/profile', // path: '/user/profile',
name: 'UserProfile', // name: 'UserProfile',
component: Layout, // component: Layout,
redirect: '/user/profile', // redirect: '/user/profile',
meta: { // meta: {
title: '个人中心', // title: '个人中心',
icon: 'user', // icon: 'user',
hidden: false, // hidden: false,
sort: 100, // sort: 100,
}, // },
children: [ // children: [
{ // {
path: '/user/profile', // path: '/user/profile',
name: 'UsersProfile', // name: 'UsersProfile',
component: () => import('@/views/user/profile/index.vue'), // component: () => import('@/views/user/profile/index.vue'),
meta: { // meta: {
title: '个人中心', // title: '个人中心',
icon: 'user', // icon: 'user',
hidden: false, // hidden: false,
}, // },
}, // },
], // ],
}, // },
{ {
path: '/enterprise-settings', path: '/enterprise-settings',
name: 'EnterpriseSettings', name: 'EnterpriseSettings',

View File

@ -149,6 +149,20 @@ const storeSetup = () => {
isHidden: false, isHidden: false,
sort: 3, 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,
},
], ],
}] }]
// 使用已转换的数据生成路由 // 使用已转换的数据生成路由

View File

@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
</template>
<style scoped lang="scss">
</style>