Commit 6b9b10fa by 赵月辉

新增控制台三个页面的基础文件和路由

parent ec7ee32e
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<g id="icon/instock">
<path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M2.38779 16.1631H15.6123C15.9796 16.1631 16.2735 15.8693 16.2735 15.5019V2.27744C16.2735 1.91009 15.9796 1.61621 15.6123 1.61621H2.38779C2.02044 1.61621 1.72656 1.91009 1.72656 2.27744V15.5019C1.72656 15.8693 2.02044 16.1631 2.38779 16.1631ZM14.9878 14.8774H3.04901V2.93866H5.58371V8.81621C5.58371 9.18356 5.87758 9.47743 6.24493 9.47743H11.7551C12.1225 9.47743 12.4164 9.18356 12.4164 8.81621V2.93866H14.9878V14.8774ZM11.1306 2.93866H6.90615V8.19172H11.1306V2.93866Z"/>
</g>
</svg>
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<g id="icon/order">
<path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M13.1507 4.59251V4.62843C13.1507 4.99578 12.8569 5.28966 12.4895 5.28966H5.50992C5.14257 5.28966 4.84869 4.99578 4.84869 4.62843V4.5917V3.78354H3.74665V15.7223H3.78339H14.2528V3.78354H13.1507L13.1507 4.5917L13.1507 4.59251ZM13.1507 2.46109V1.65292C13.1507 1.28558 12.8569 0.991699 12.4895 0.991699H5.50992C5.14257 0.991699 4.84869 1.28558 4.84869 1.65292V2.46109H3.12216C2.75482 2.46109 2.46094 2.75496 2.46094 3.12231V16.3468C2.46094 16.7141 2.75482 17.008 3.12216 17.008H14.8773C15.2446 17.008 15.5385 16.7141 15.5752 16.3468V3.12231C15.5752 2.75496 15.2813 2.46109 14.914 2.46109H13.1507ZM11.865 3.1215V2.31415H6.17114V3.96721H11.865L11.865 3.12231L11.865 3.1215ZM5.87726 9.11007H12.1222C12.4895 9.11007 12.7834 8.81619 12.7834 8.44884C12.7834 8.08149 12.4895 7.78762 12.1222 7.78762H5.87726C5.50992 7.78762 5.21604 8.08149 5.21604 8.44884C5.21604 8.81619 5.50992 9.11007 5.87726 9.11007ZM5.87726 12.7835H12.1222C12.4895 12.7835 12.7834 12.4897 12.7834 12.1223C12.7834 11.755 12.4895 11.4611 12.1222 11.4611H5.87726C5.50992 11.4611 5.21604 11.755 5.21604 12.1223C5.21604 12.4897 5.50992 12.7835 5.87726 12.7835Z"/>
</g>
</svg>
<svg width="49" height="49" viewBox="0 0 49 49" xmlns="http://www.w3.org/2000/svg">
<g id="icon/workbench">
<path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M4.50007 35.3H22.7001V39.5C22.7001 39.5677 22.7037 39.6344 22.7109 39.7H12.5001C11.5001 39.7 10.7001 40.5 10.7001 41.5C10.7001 42.5 11.5001 43.3 12.5001 43.3H36.5001C37.5001 43.3 38.3001 42.5 38.3001 41.5C38.3001 40.5 37.5001 39.7 36.5001 39.7H26.2893C26.2964 39.6344 26.3001 39.5677 26.3001 39.5V35.3H44.5001C45.5001 35.3 46.3001 34.5 46.3001 33.5V7.50001C46.3001 6.50001 45.5001 5.70001 44.5001 5.70001H4.50007C3.50007 5.70001 2.70007 6.50001 2.70007 7.50001V33.5C2.70007 34.5 3.50007 35.3 4.50007 35.3ZM6.30007 31.8H23.9029C24.0895 31.7352 24.2904 31.7 24.5001 31.7C24.7098 31.7 24.9107 31.7352 25.0972 31.8H42.8001V9.30001H6.30007V31.8ZM14.7001 26.5C14.7001 27.5 15.5001 28.3 16.5001 28.3C17.5001 28.3 18.3001 27.5 18.3001 26.5V22.5C18.3001 21.5 17.5001 20.7 16.5001 20.7C15.5001 20.7 14.7001 21.5 14.7001 22.5V26.5ZM22.7001 26.5C22.7001 27.5 23.5001 28.3 24.5001 28.3C25.5001 28.3 26.3001 27.5 26.3001 26.5V18.5C26.3001 17.5 25.5001 16.7 24.5001 16.7C23.5001 16.7 22.7001 17.5 22.7001 18.5V26.5ZM32.5001 28.3C31.5001 28.3 30.7001 27.5 30.7001 26.5V14.5C30.7001 13.5 31.5001 12.7 32.5001 12.7C33.5001 12.7 34.3001 13.5 34.3001 14.5V26.5C34.3001 27.5 33.5001 28.3 32.5001 28.3Z"/>
</g>
</svg>
...@@ -2,6 +2,7 @@ import { createWebHistory, createRouter } from 'vue-router' ...@@ -2,6 +2,7 @@ import { createWebHistory, createRouter } from 'vue-router'
/* Layout */ /* Layout */
import Layout from '@/layout' import Layout from '@/layout'
import UserLayout from '@/layout/user-layout.vue' import UserLayout from '@/layout/user-layout.vue'
import ManageLayout from '@/layout/manage-layout.vue'
/** /**
* Note: 路由配置项 * Note: 路由配置项
...@@ -112,7 +113,7 @@ export const constantRoutes = [ ...@@ -112,7 +113,7 @@ export const constantRoutes = [
component: () => import('@/views/industryApplications/detail.vue'), component: () => import('@/views/industryApplications/detail.vue'),
name: 'Detail', name: 'Detail',
meta: {title: '行业应用'} meta: {title: '行业应用'}
}, }
] ]
}, },
{ {
...@@ -124,7 +125,7 @@ export const constantRoutes = [ ...@@ -124,7 +125,7 @@ export const constantRoutes = [
component: () => import('@/views/componentServices/list.vue'), component: () => import('@/views/componentServices/list.vue'),
name: 'ComponentServicesList', name: 'ComponentServicesList',
meta: {title: '组件服务'} meta: {title: '组件服务'}
}, }
] ]
}, },
{ {
...@@ -136,7 +137,7 @@ export const constantRoutes = [ ...@@ -136,7 +137,7 @@ export const constantRoutes = [
component: () => import('@/views/partnership/list.vue'), component: () => import('@/views/partnership/list.vue'),
name: 'PartnershipList', name: 'PartnershipList',
meta: {title: '合作伙伴'} meta: {title: '合作伙伴'}
}, }
] ]
}, },
{ {
...@@ -155,7 +156,7 @@ export const constantRoutes = [ ...@@ -155,7 +156,7 @@ export const constantRoutes = [
component: () => import('@/views/information/detail.vue'), component: () => import('@/views/information/detail.vue'),
name: 'InformationDetail', name: 'InformationDetail',
meta: {title: '活动资讯详情'} meta: {title: '活动资讯详情'}
}, }
] ]
}, },
{ {
...@@ -171,7 +172,43 @@ export const constantRoutes = [ ...@@ -171,7 +172,43 @@ export const constantRoutes = [
meta: {title: '个人中心', icon: 'user'} meta: {title: '个人中心', icon: 'user'}
} }
] ]
} },
{
path: '/console',
component: ManageLayout,
children: [
{
path: 'overview',
component: () => import('@/views/console/overview.vue'),
name: 'Overview',
meta: {title: '首页', icon: 'workbench'}
}
]
},
{
path: '/console',
component: ManageLayout,
children: [
{
path: 'naturalResources',
component: () => import('@/views/console/naturalResources.vue'),
name: 'NaturalResources',
meta: {title: '我的资源', icon: 'instock'}
}
]
},
{
path: '/console',
component: ManageLayout,
children: [
{
path: 'myOrder',
component: () => import('@/views/console/myOrder.vue'),
name: 'MyOrder',
meta: {title: '我的资源', icon: 'order'}
}
]
},
] ]
// 动态路由,基于用户权限动态去加载 // 动态路由,基于用户权限动态去加载
......
<template>
<div>我的订单</div>
</template>
<script setup>
</script>
<style scoped lang="scss">
</style>
<script setup>
</script>
<template>
<div>我的资源</div>
</template>
<style scoped lang="scss">
</style>
<script setup>
</script>
<template>
<div>控制台首页</div>
</template>
<style scoped lang="scss">
</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