保存进度!
This commit is contained in:
@@ -72,8 +72,7 @@ Copyright © CPIC All rights reserved
|
||||
</el-scrollbar>
|
||||
</template>
|
||||
<script lang="js">
|
||||
// @ts-expect-error 之后再补充类型文件
|
||||
import { hasOnlyChild } from "../../../router/index.ts";
|
||||
import { hasOnlyChild } from "@/router/index.ts";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { computed } from "vue";
|
||||
|
||||
@@ -102,17 +101,6 @@ export default {
|
||||
.sidebar-wrapper {
|
||||
@include no-select;
|
||||
|
||||
-webkit-touch-callout: none;
|
||||
-moz-user-select: none;
|
||||
/*火狐*/
|
||||
-webkit-user-select: none;
|
||||
/*webkit浏览器*/
|
||||
-ms-user-select: none;
|
||||
/*IE10*/
|
||||
-khtml-user-select: none;
|
||||
/*早期浏览器*/
|
||||
user-select: none;
|
||||
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,8 @@ import { router } from "./router/index.ts";
|
||||
import AppMain from "./AppMain.vue";
|
||||
|
||||
import ElementPlus from "element-plus";
|
||||
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
||||
|
||||
import "element-plus/dist/index.css";
|
||||
|
||||
// eslint-disable-next-line
|
||||
@@ -18,6 +20,13 @@ const app = createApp( AppMain );
|
||||
|
||||
app.use( ElementPlus );
|
||||
app.use( router );
|
||||
|
||||
// 引入element-icon
|
||||
for ( const [key, component,] of Object.entries( ElementPlusIconsVue ))
|
||||
{
|
||||
app.component( key, component );
|
||||
}
|
||||
|
||||
app.mount( "#app" );
|
||||
|
||||
// eslint-disable-next-line
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: Kane Wang <wangkane@qq.com>
|
||||
* @Date: 2025-10-13 15:31:41
|
||||
* @LastEditors: Kane Wang
|
||||
* @LastModified: 2025-10-23 17:47:28
|
||||
* @LastModified: 2025-10-24 10:03:13
|
||||
* @FilePath: src/router/index.ts
|
||||
* @Description:
|
||||
*
|
||||
@@ -19,11 +19,59 @@ export declare interface SideBarRouteRecordNormalized extends RouteRecordNormali
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/console",
|
||||
name: "Console",
|
||||
path: "/",
|
||||
name: "root",
|
||||
redirect: "Overview",
|
||||
hidden: true,
|
||||
// component: index,
|
||||
},
|
||||
{
|
||||
path: "/desktop",
|
||||
name: "Desktop",
|
||||
meta: {
|
||||
title: "工作台",
|
||||
icon: "house",
|
||||
},
|
||||
component: () => import( "../layout/console/Index.vue" ),
|
||||
children:[
|
||||
{
|
||||
path: "/overview",
|
||||
name: "Overview",
|
||||
meta: {
|
||||
title: "总览",
|
||||
icon: "house",
|
||||
},
|
||||
component: () => import( "@/views/console/desktop/Overview.vue" ),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/data",
|
||||
name: "Data",
|
||||
meta: {
|
||||
title: "制度库管理",
|
||||
icon:"Collection",
|
||||
},
|
||||
component: () => import( "../layout/console/Index.vue" ),
|
||||
children:[
|
||||
{
|
||||
path: "/regulatory-management",
|
||||
name:"RegulatoryManagement",
|
||||
meta: {
|
||||
title: "制度文件管理",
|
||||
icon:"document",
|
||||
},
|
||||
component: ()=> import( "@/views/console/data/RegulatoryManagement.vue" ),
|
||||
},
|
||||
{
|
||||
path: "/department-management",
|
||||
name: "DepartmentManagement",
|
||||
meta:{
|
||||
title: "组织机构管理",
|
||||
icon: "OfficeBuilding",
|
||||
},
|
||||
component: ()=> import( "@/views/console/data/RegulatoryManagement.vue" ),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import "@/assets/css/index.scss";
|
||||
@import "@/assets/css/public/mixin.scss";
|
||||
|
||||
.wrapper {
|
||||
@include no-select;
|
||||
@@ -0,0 +1,32 @@
|
||||
<!--
|
||||
author: Kane Wang <wangkane@qq.com>
|
||||
date: 2025-10-23 21:40:24
|
||||
component: RegulatoryManagement
|
||||
Copyright © CPIC All rights reserved
|
||||
-->
|
||||
<template>
|
||||
<div class="wrapper">
|
||||
总览
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: "OverViews",
|
||||
setup()
|
||||
{
|
||||
const ui = {};
|
||||
|
||||
return { ui, };
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import "@/assets/css/public/mixin.scss";
|
||||
|
||||
.wrapper {
|
||||
@include no-select;
|
||||
|
||||
margin: 5px;
|
||||
border: 1px solid red;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user