侧边栏修正
This commit is contained in:
parent
d27b1ebe10
commit
3f12fda7f3
1
auto-imports.d.ts
vendored
1
auto-imports.d.ts
vendored
@ -3,4 +3,5 @@ export {}
|
|||||||
declare global {
|
declare global {
|
||||||
const ElMessage: typeof import('element-plus/es')['ElMessage']
|
const ElMessage: typeof import('element-plus/es')['ElMessage']
|
||||||
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
|
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
|
||||||
|
const ElNotification: typeof import('element-plus/es')['ElNotification']
|
||||||
}
|
}
|
||||||
|
12
components.d.ts
vendored
12
components.d.ts
vendored
@ -13,19 +13,17 @@ declare module '@vue/runtime-core' {
|
|||||||
DropdownMenu: typeof import('./src/components/Share/DropdownMenu.vue')['default']
|
DropdownMenu: typeof import('./src/components/Share/DropdownMenu.vue')['default']
|
||||||
Dropzone: typeof import('./src/components/Dropzone/index.vue')['default']
|
Dropzone: typeof import('./src/components/Dropzone/index.vue')['default']
|
||||||
EditorImage: typeof import('./src/components/Tinymce/components/EditorImage.vue')['default']
|
EditorImage: typeof import('./src/components/Tinymce/components/EditorImage.vue')['default']
|
||||||
ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete']
|
ElAlert: typeof import('element-plus/es')['ElAlert']
|
||||||
ElBadge: typeof import('element-plus/es')['ElBadge']
|
ElBadge: typeof import('element-plus/es')['ElBadge']
|
||||||
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
|
||||||
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
||||||
ElButton: typeof import('element-plus/es')['ElButton']
|
ElButton: typeof import('element-plus/es')['ElButton']
|
||||||
ElCard: typeof import('element-plus/es')['ElCard']
|
ElCard: typeof import('element-plus/es')['ElCard']
|
||||||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
||||||
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
|
||||||
ElCol: typeof import('element-plus/es')['ElCol']
|
ElCol: typeof import('element-plus/es')['ElCol']
|
||||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||||
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
|
||||||
ElDialog: typeof import('element-plus/es')['ElDialog']
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
||||||
ElDivider: typeof import('element-plus/es')['ElDivider']
|
|
||||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
||||||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
||||||
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
||||||
@ -38,16 +36,24 @@ declare module '@vue/runtime-core' {
|
|||||||
ElOption: typeof import('element-plus/es')['ElOption']
|
ElOption: typeof import('element-plus/es')['ElOption']
|
||||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||||
ElProgress: typeof import('element-plus/es')['ElProgress']
|
ElProgress: typeof import('element-plus/es')['ElProgress']
|
||||||
|
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||||
|
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
||||||
|
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||||
ElRate: typeof import('element-plus/es')['ElRate']
|
ElRate: typeof import('element-plus/es')['ElRate']
|
||||||
ElRow: typeof import('element-plus/es')['ElRow']
|
ElRow: typeof import('element-plus/es')['ElRow']
|
||||||
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
|
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
|
||||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||||
|
ElSlider: typeof import('element-plus/es')['ElSlider']
|
||||||
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
|
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
|
||||||
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
||||||
ElTable: typeof import('element-plus/es')['ElTable']
|
ElTable: typeof import('element-plus/es')['ElTable']
|
||||||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||||
|
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
||||||
|
ElTabs: typeof import('element-plus/es')['ElTabs']
|
||||||
ElTag: typeof import('element-plus/es')['ElTag']
|
ElTag: typeof import('element-plus/es')['ElTag']
|
||||||
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
||||||
|
ElTree: typeof import('element-plus/es')['ElTree']
|
||||||
|
ElUpload: typeof import('element-plus/es')['ElUpload']
|
||||||
ErrorLog: typeof import('./src/components/ErrorLog/index.vue')['default']
|
ErrorLog: typeof import('./src/components/ErrorLog/index.vue')['default']
|
||||||
GithubCorner: typeof import('./src/components/GithubCorner/index.vue')['default']
|
GithubCorner: typeof import('./src/components/GithubCorner/index.vue')['default']
|
||||||
Hamburger: typeof import('./src/components/Hamburger/index.vue')['default']
|
Hamburger: typeof import('./src/components/Hamburger/index.vue')['default']
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { markRaw } from 'vue';
|
// import { markRaw } from 'vue';
|
||||||
import { createRouter, createWebHistory } from 'vue-router'; // createWebHashHistory, createWebHistory
|
import { createRouter, createWebHistory } from 'vue-router'; // createWebHashHistory, createWebHistory
|
||||||
import type { Router, RouteRecordRaw, RouteComponent } from 'vue-router';
|
import type { Router, RouteRecordRaw, RouteComponent } from 'vue-router';
|
||||||
import { Help as IconHelp } from '@element-plus/icons-vue';
|
// import { Help as IconHelp } from '@element-plus/icons-vue';
|
||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
const Layout = ():RouteComponent => import('@/layout/index.vue');
|
const Layout = ():RouteComponent => import('@/layout/index.vue');
|
||||||
|
|
||||||
/* Router Modules */
|
/* Router Modules */
|
||||||
import componentsRouter from './modules/components';
|
// import componentsRouter from './modules/components';
|
||||||
import chartsRouter from './modules/charts';
|
// import chartsRouter from './modules/charts';
|
||||||
import nestedRouter from './modules/nested';
|
// import nestedRouter from './modules/nested';
|
||||||
import tableRouter from './modules/table';
|
// import tableRouter from './modules/table';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* constantRoutes
|
* constantRoutes
|
||||||
@ -64,31 +64,31 @@ export const constantRoutes:RouteRecordRaw[] = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
path: '/documentation',
|
// path: '/documentation',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'index',
|
// path: 'index',
|
||||||
component: () => import('@/views/documentation/index.vue'),
|
// component: () => import('@/views/documentation/index.vue'),
|
||||||
name: 'Documentation',
|
// name: 'Documentation',
|
||||||
meta: { title: 'Documentation', icon: 'documentation', affix: true }
|
// meta: { title: 'Documentation', icon: 'documentation', affix: true }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/guide',
|
// path: '/guide',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/guide/index',
|
// redirect: '/guide/index',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'index',
|
// path: 'index',
|
||||||
component: () => import('@/views/guide/index.vue'),
|
// component: () => import('@/views/guide/index.vue'),
|
||||||
name: 'Guide',
|
// name: 'Guide',
|
||||||
meta: { title: 'Guide', icon: 'guide', noCache: true }
|
// meta: { title: 'Guide', icon: 'guide', noCache: true }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
path: '/profile',
|
path: '/profile',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
@ -112,288 +112,329 @@ export const constantRoutes:RouteRecordRaw[] = [
|
|||||||
* 注意:hidden、alwaysShow 属性配置移动到了meta中!!!
|
* 注意:hidden、alwaysShow 属性配置移动到了meta中!!!
|
||||||
*/
|
*/
|
||||||
export const asyncRoutes:RouteRecordRaw[] = [
|
export const asyncRoutes:RouteRecordRaw[] = [
|
||||||
|
// {
|
||||||
|
// path: '/permission',
|
||||||
|
// component: Layout,
|
||||||
|
// redirect: '/permission/page',
|
||||||
|
// name: 'Permission',
|
||||||
|
// meta: {
|
||||||
|
// alwaysShow: true, // will always show the root menu
|
||||||
|
// title: 'Permission',
|
||||||
|
// icon: 'lock',
|
||||||
|
// roles: ['admin', 'editor','teacher_user'] // you can set roles in root nav
|
||||||
|
// },
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: 'page',
|
||||||
|
// component: () => import('@/views/permission/page.vue'),
|
||||||
|
// name: 'PagePermission',
|
||||||
|
// meta: {
|
||||||
|
// title: 'Page Permission',
|
||||||
|
// roles: ['admin','teacher_user'] // or you can only set roles in sub nav
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: 'directive',
|
||||||
|
// component: () => import('@/views/permission/directive.vue'),
|
||||||
|
// name: 'DirectivePermission',
|
||||||
|
// meta: {
|
||||||
|
// title: 'Directive Permission'
|
||||||
|
// // if do not set roles, means: this page does not require permission
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: 'role',
|
||||||
|
// component: () => import('@/views/permission/role.vue'),
|
||||||
|
// name: 'RolePermission',
|
||||||
|
// meta: {
|
||||||
|
// title: 'Role Permission',
|
||||||
|
// roles: ['admin','teacher']
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
|
||||||
|
// 个人项目
|
||||||
{
|
{
|
||||||
path: '/permission',
|
path: '/myself',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/permission/page',
|
redirect: '/myself',
|
||||||
name: 'Permission',
|
|
||||||
meta: {
|
meta: {
|
||||||
alwaysShow: true, // will always show the root menu
|
alwaysShow: true, // will always show the root menu
|
||||||
title: 'Permission',
|
title: '个人项目',
|
||||||
icon: 'lock',
|
icon: 'nested',
|
||||||
roles: ['admin', 'editor','teacher_user'] // you can set roles in root nav
|
roles: ['admin', 'teacher_user']
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'page',
|
// 我负责的
|
||||||
component: () => import('@/views/permission/page.vue'),
|
path: 'charge',
|
||||||
name: 'PagePermission',
|
component: () => import('@/views/personal/project/charge.vue'),
|
||||||
meta: {
|
name: 'Charge',
|
||||||
title: 'Page Permission',
|
meta: { title: '我负责的', icon: 'user', affix: true }
|
||||||
roles: ['admin','teacher_user'] // or you can only set roles in sub nav
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'directive',
|
// 我管理的
|
||||||
component: () => import('@/views/permission/directive.vue'),
|
path: 'manage',
|
||||||
name: 'DirectivePermission',
|
component: () => import('@/views/personal/project/manage.vue'),
|
||||||
meta: {
|
name: 'Manage',
|
||||||
title: 'Directive Permission'
|
meta: { title: '我管理的', icon: 'user', affix: true }
|
||||||
// if do not set roles, means: this page does not require permission
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'role',
|
// 我参与的
|
||||||
component: () => import('@/views/permission/role.vue'),
|
path: 'participate',
|
||||||
name: 'RolePermission',
|
component: () => import('@/views/personal/project/participate.vue'),
|
||||||
meta: {
|
name: 'Participate',
|
||||||
title: 'Role Permission',
|
meta: { title: '我参与的', icon: 'user', affix: true }
|
||||||
roles: ['admin','teacher']
|
},
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
path: '/icon',
|
|
||||||
component: Layout,
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'index',
|
|
||||||
component: () => import('@/views/icons/index.vue'),
|
|
||||||
name: 'Icons',
|
|
||||||
meta: { title: 'Icons', icon: 'icon', noCache: true }
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// {
|
||||||
|
// path: '/icon',
|
||||||
|
// component: Layout,
|
||||||
|
// children: [
|
||||||
|
// {
|
||||||
|
// path: 'index',
|
||||||
|
// component: () => import('@/views/icons/index.vue'),
|
||||||
|
// name: 'Icons',
|
||||||
|
// meta: { title: 'Icons', icon: 'icon', noCache: true }
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// },
|
||||||
|
|
||||||
// /** when your routing map is too long, you can split it into small modules **/
|
// /** when your routing map is too long, you can split it into small modules **/
|
||||||
componentsRouter,
|
// componentsRouter,
|
||||||
chartsRouter,
|
// chartsRouter,
|
||||||
nestedRouter,
|
// nestedRouter,
|
||||||
tableRouter,
|
// tableRouter,
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/example',
|
// path: '/example',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/example/list',
|
// redirect: '/example/list',
|
||||||
name: 'Example',
|
// name: 'Example',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'Example',
|
// title: 'Example',
|
||||||
icon: markRaw(IconHelp)
|
// icon: markRaw(IconHelp)
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'create',
|
// path: 'create',
|
||||||
component: () => import('@/views/example/create.vue'),
|
// component: () => import('@/views/example/create.vue'),
|
||||||
name: 'CreateArticle',
|
// name: 'CreateArticle',
|
||||||
meta: { title: 'Create Article', icon: 'edit' }
|
// meta: { title: 'Create Article', icon: 'edit' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'edit/:id(\\d+)',
|
// path: 'edit/:id(\\d+)',
|
||||||
component: () => import('@/views/example/edit.vue'),
|
// component: () => import('@/views/example/edit.vue'),
|
||||||
name: 'EditArticle',
|
// name: 'EditArticle',
|
||||||
meta: { hidden: true, title: 'Edit Article', noCache: true, activeMenu: '/example/list' }
|
// meta: { hidden: true, title: 'Edit Article', noCache: true, activeMenu: '/example/list' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'list',
|
// path: 'list',
|
||||||
component: () => import('@/views/example/list.vue'),
|
// component: () => import('@/views/example/list.vue'),
|
||||||
name: 'ArticleList',
|
// name: 'ArticleList',
|
||||||
meta: { title: 'Article List', icon: 'list' }
|
// meta: { title: 'Article List', icon: 'list' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/tab',
|
// path: '/tab',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'index',
|
// path: 'index',
|
||||||
component: () => import('@/views/tab/index.vue'),
|
// component: () => import('@/views/tab/index.vue'),
|
||||||
name: 'Tab',
|
// name: 'Tab',
|
||||||
meta: { title: 'Tab', icon: 'tab' }
|
// meta: { title: 'Tab', icon: 'tab' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/error',
|
// path: '/error',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: 'noRedirect',
|
// redirect: 'noRedirect',
|
||||||
name: 'ErrorPages',
|
// name: 'ErrorPages',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'Error Pages',
|
// title: 'Error Pages',
|
||||||
icon: '404'
|
// icon: '404'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: '401',
|
// path: '401',
|
||||||
component: () => import('@/views/error-page/401.vue'),
|
// component: () => import('@/views/error-page/401.vue'),
|
||||||
name: 'Page401',
|
// name: 'Page401',
|
||||||
meta: { title: '401', noCache: true }
|
// meta: { title: '401', noCache: true }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '404',
|
// path: '404',
|
||||||
component: () => import('@/views/error-page/404.vue'),
|
// component: () => import('@/views/error-page/404.vue'),
|
||||||
name: 'Page404',
|
// name: 'Page404',
|
||||||
meta: { title: '404', noCache: true }
|
// meta: { title: '404', noCache: true }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/error-log',
|
// path: '/error-log',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'log',
|
// path: 'log',
|
||||||
component: () => import('@/views/error-log/index.vue'),
|
// component: () => import('@/views/error-log/index.vue'),
|
||||||
name: 'ErrorLog',
|
// name: 'ErrorLog',
|
||||||
meta: { title: 'Error Log', icon: 'bug' }
|
// meta: { title: 'Error Log', icon: 'bug' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/excel',
|
// path: '/excel',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/excel/export-excel',
|
// redirect: '/excel/export-excel',
|
||||||
name: 'Excel',
|
// name: 'Excel',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'Excel',
|
// title: 'Excel',
|
||||||
icon: 'excel'
|
// icon: 'excel'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'export-excel',
|
// path: 'export-excel',
|
||||||
component: () => import('@/views/excel/export-excel.vue'),
|
// component: () => import('@/views/excel/export-excel.vue'),
|
||||||
name: 'ExportExcel',
|
// name: 'ExportExcel',
|
||||||
meta: { title: 'Export Excel' }
|
// meta: { title: 'Export Excel' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'export-selected-excel',
|
// path: 'export-selected-excel',
|
||||||
component: () => import('@/views/excel/select-excel.vue'),
|
// component: () => import('@/views/excel/select-excel.vue'),
|
||||||
name: 'SelectExcel',
|
// name: 'SelectExcel',
|
||||||
meta: { title: 'Export Selected' }
|
// meta: { title: 'Export Selected' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'export-merge-header',
|
// path: 'export-merge-header',
|
||||||
component: () => import('@/views/excel/merge-header.vue'),
|
// component: () => import('@/views/excel/merge-header.vue'),
|
||||||
name: 'MergeHeader',
|
// name: 'MergeHeader',
|
||||||
meta: { title: 'Merge Header' }
|
// meta: { title: 'Merge Header' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'upload-excel',
|
// path: 'upload-excel',
|
||||||
component: () => import('@/views/excel/upload-excel.vue'),
|
// component: () => import('@/views/excel/upload-excel.vue'),
|
||||||
name: 'UploadExcel',
|
// name: 'UploadExcel',
|
||||||
meta: { title: 'Upload Excel' }
|
// meta: { title: 'Upload Excel' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/zip',
|
// path: '/zip',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/zip/download',
|
// redirect: '/zip/download',
|
||||||
name: 'Zip',
|
// name: 'Zip',
|
||||||
meta: { alwaysShow: true, title: 'Zip', icon: 'zip' },
|
// meta: { alwaysShow: true, title: 'Zip', icon: 'zip' },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'download',
|
// path: 'download',
|
||||||
component: () => import('@/views/zip/index.vue'),
|
// component: () => import('@/views/zip/index.vue'),
|
||||||
name: 'ExportZip',
|
// name: 'ExportZip',
|
||||||
meta: { title: 'Export Zip' }
|
// meta: { title: 'Export Zip' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/pdf',
|
// path: '/pdf',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
redirect: '/pdf/index',
|
// redirect: '/pdf/index',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'index',
|
// path: 'index',
|
||||||
component: () => import('@/views/pdf/index.vue'),
|
// component: () => import('@/views/pdf/index.vue'),
|
||||||
name: 'PDF',
|
// name: 'PDF',
|
||||||
meta: { title: 'PDF', icon: 'pdf' }
|
// meta: { title: 'PDF', icon: 'pdf' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/pdf/download',
|
// path: '/pdf/download',
|
||||||
component: () => import('@/views/pdf/download.vue'),
|
// component: () => import('@/views/pdf/download.vue'),
|
||||||
meta: { hidden: true }
|
// meta: { hidden: true }
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/theme',
|
// path: '/theme',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'index',
|
// path: 'index',
|
||||||
component: () => import('@/views/theme/index.vue'),
|
// component: () => import('@/views/theme/index.vue'),
|
||||||
name: 'Theme',
|
// name: 'Theme',
|
||||||
meta: { title: 'Theme', icon: 'theme' }
|
// meta: { title: 'Theme', icon: 'theme' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/clipboard',
|
// path: '/clipboard',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'index',
|
// path: 'index',
|
||||||
component: () => import('@/views/clipboard/index.vue'),
|
// component: () => import('@/views/clipboard/index.vue'),
|
||||||
name: 'ClipboardDemo',
|
// name: 'ClipboardDemo',
|
||||||
meta: { title: 'Clipboard', icon: 'clipboard' }
|
// meta: { title: 'Clipboard', icon: 'clipboard' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/external-link',
|
// path: '/external-link',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'https://element-plus.midfar.com',
|
// path: 'https://element-plus.midfar.com',
|
||||||
meta: { title: 'External Link', icon: 'link' },
|
// meta: { title: 'External Link', icon: 'link' },
|
||||||
redirect: ''
|
// redirect: ''
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
{
|
// {
|
||||||
path: '/my-demo',
|
// path: '/my-demo',
|
||||||
component: Layout,
|
// component: Layout,
|
||||||
name: 'MyDemo',
|
// name: 'MyDemo',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'MyDemo',
|
// title: 'MyDemo',
|
||||||
icon: 'component'
|
// icon: 'component'
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'element-demo',
|
// path: 'element-demo',
|
||||||
component: () => import('@/views/mydemo/ElementDemo.vue'),
|
// component: () => import('@/views/mydemo/ElementDemo.vue'),
|
||||||
name: 'ElementDemo',
|
// name: 'ElementDemo',
|
||||||
meta: { title: 'ElementDemo', icon: 'skill' }
|
// meta: { title: 'ElementDemo', icon: 'skill' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'store-demo',
|
// path: 'store-demo',
|
||||||
component: () => import('@/views/mydemo/StoreDemo.vue'),
|
// component: () => import('@/views/mydemo/StoreDemo.vue'),
|
||||||
name: 'StoreDemo',
|
// name: 'StoreDemo',
|
||||||
meta: { title: 'StoreDemo', icon: 'lock' }
|
// meta: { title: 'StoreDemo', icon: 'lock' }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: 'webSocket-demo',
|
// path: 'webSocket-demo',
|
||||||
component: () => import('@/views/mydemo/WebSocketDemo.vue'),
|
// component: () => import('@/views/mydemo/WebSocketDemo.vue'),
|
||||||
name: 'WebSocketDemo',
|
// name: 'WebSocketDemo',
|
||||||
meta: { title: 'WebSocketDemo', icon: 'lock' }
|
// meta: { title: 'WebSocketDemo', icon: 'lock' }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
|
|
||||||
// 404 page must be placed at the end !!!
|
// 404 page must be placed at the end !!!
|
||||||
{ path: '/:pathMatch(.*)*', redirect: '/404', meta: { hidden: true }}
|
{ path: '/:pathMatch(.*)*', redirect: '/404', meta: { hidden: true }}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
const Layout = () => import('@/layout/index.vue');
|
const Layout = () => import('@/layout/index.vue');
|
||||||
|
|
||||||
|
//侧边栏
|
||||||
const tableRouter = {
|
const tableRouter = {
|
||||||
path: '/table',
|
path: '/table',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
3
src/views/personal/project/charge.vue
Normal file
3
src/views/personal/project/charge.vue
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
hello
|
||||||
|
</template>
|
124
src/views/personal/project/manage.vue
Normal file
124
src/views/personal/project/manage.vue
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
<template>
|
||||||
|
<div style=" width:100%">
|
||||||
|
<el-card style="max-width: 100vw;margin: 1.5vw;">
|
||||||
|
<template #header><strong >项目1</strong></template>
|
||||||
|
<div style="display:flex;flex-direction:row;justify-content: space-around ">
|
||||||
|
<div>
|
||||||
|
名称
|
||||||
|
<el-input v-model="input" style="width: 240px;margin-left:0.5vw" placeholder="请输入" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
状态
|
||||||
|
<el-input v-model="input" style="width: 240px;margin-left:0.5vw" placeholder="请输入" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<el-button type="primary" style="width:80px">查询</el-button>
|
||||||
|
<el-button style="width:80px">重置</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
<el-card style="max-width: 100vw;height:60vh;margin:1.3vw">
|
||||||
|
<div style="display:flex;flex-direction: row;justify-content: space-between">
|
||||||
|
<el-button
|
||||||
|
text
|
||||||
|
type=''
|
||||||
|
>子系统列表</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTableRef"
|
||||||
|
:data="tableData"
|
||||||
|
style="max-width: 100vw;"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
|
<!-- <el-table-column type="selection" width="55" />-->
|
||||||
|
<el-table-column label="序号" width="120">
|
||||||
|
<template #default="scope">{{ scope.row.date }}</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column property="name" label="子系统名称" width="120" />
|
||||||
|
<el-table-column property="address" label="工作量" show-overflow-tooltip />
|
||||||
|
<el-table-column property="address" label="周期" />
|
||||||
|
<el-table-column property="address" label="负责人" />
|
||||||
|
<el-table-column property="address" label="状态" />
|
||||||
|
<el-table-column property="address" label="子系统简介" />
|
||||||
|
<el-table-column property="address" label="截止时间" />
|
||||||
|
<el-table-column property="address" label="操作" >
|
||||||
|
<el-button
|
||||||
|
link
|
||||||
|
style="color:deepskyblue"
|
||||||
|
>查看详情</el-button
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-pagination
|
||||||
|
larger
|
||||||
|
background
|
||||||
|
layout="prev, pager, next"
|
||||||
|
:total="50"
|
||||||
|
class="mt-4"
|
||||||
|
style="display: flex;flex-direction: row;justify-content: center;margin-top:5vh"
|
||||||
|
/>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
import { ElTable } from 'element-plus';
|
||||||
|
interface User {
|
||||||
|
date: string
|
||||||
|
name: string
|
||||||
|
address: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const multipleTableRef = ref<InstanceType<typeof ElTable>>();
|
||||||
|
const multipleSelection = ref<User[]>([]);
|
||||||
|
|
||||||
|
const handleSelectionChange = (val: User[]) => {
|
||||||
|
multipleSelection.value = val;
|
||||||
|
};
|
||||||
|
|
||||||
|
const tableData: User[] = [
|
||||||
|
{
|
||||||
|
date: '2016-05-03',
|
||||||
|
name: 'Tom',
|
||||||
|
address: 'No. 189, Grove St, Los Angeles'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
date: '2016-05-02',
|
||||||
|
name: 'Tom',
|
||||||
|
address: 'No. 189, Grove St, Los Angeles'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
date: '2016-05-04',
|
||||||
|
name: 'Tom',
|
||||||
|
address: 'No. 189, Grove St, Los Angeles'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
date: '2016-05-01',
|
||||||
|
name: 'Tom',
|
||||||
|
address: 'No. 189, Grove St, Los Angeles'
|
||||||
|
}
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.my-autocomplete li {
|
||||||
|
line-height: normal;
|
||||||
|
padding: 7px;
|
||||||
|
}
|
||||||
|
.my-autocomplete li .name {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.my-autocomplete li .addr {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #b4b4b4;
|
||||||
|
}
|
||||||
|
.my-autocomplete li .highlighted .addr {
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
</style>
|
3
src/views/personal/project/participate.vue
Normal file
3
src/views/personal/project/participate.vue
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
hi
|
||||||
|
</template>
|
Loading…
x
Reference in New Issue
Block a user