From a450bdf05c4ac5d1d488a9f39d4ab43e2881ae32 Mon Sep 17 00:00:00 2001 From: chenjingyu Date: Fri, 11 Dec 2020 10:59:38 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E5=B7=A6=E4=BE=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=BC=A0=E6=A0=87=E7=A7=BB=E5=85=A5=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app-routing.module.ts | 6 ++++-- src/app/navigation/navigation.component.html | 8 ++++---- src/app/navigation/navigation.component.scss | 10 +++++++--- src/app/navigation/navigation.component.ts | 2 +- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index e4b547a..a808868 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -7,22 +7,24 @@ import { LockscreenComponent } from './pages/lockscreen/lockscreen.component'; //路由守卫 import {AuthGuard} from './auth.guard' import { CreateTestScoreComponent } from './examiner/create-test-score/create-test-score.component'; +import { ExaminerIndexComponent } from './examiner/examiner-index/examiner-index.component' const routes: Routes = [ {path:'',redirectTo:'login',pathMatch:'full'}, { - path:'home', + path:'examiner', component:NavigationComponent, canActivate: [AuthGuard],//守卫验证 children:[ - {path:'',loadChildren:() => import('./ui/ui.module').then(m => m.UiModule)} + {path:'',loadChildren:() => import('./examiner/examiner.module').then(m => m.ExaminerModule)} ] }, { path:'adminLogin', component:LoginComponent}, //管理员登录路由 { path:'login', component:LockscreenComponent}, //教员学员登录路由 { path:'examiner/create-test-score', component:CreateTestScoreComponent}, //创建试卷具体分数页面 + ]; diff --git a/src/app/navigation/navigation.component.html b/src/app/navigation/navigation.component.html index 049838b..3b148f1 100644 --- a/src/app/navigation/navigation.component.html +++ b/src/app/navigation/navigation.component.html @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-12-10 10:21:40 * @LastEditors: sueRimn - * @LastEditTime: 2020-12-11 10:01:35 + * @LastEditTime: 2020-12-11 10:26:25 --> @@ -24,9 +24,9 @@ diff --git a/src/app/navigation/navigation.component.scss b/src/app/navigation/navigation.component.scss index 8f50918..45df1e2 100644 --- a/src/app/navigation/navigation.component.scss +++ b/src/app/navigation/navigation.component.scss @@ -91,9 +91,9 @@ mat-sidenav{ bottom: 0px; overflow-y: scroll; font-size: 15px; - .router-link-active{ + /* .router-link-active{ background-color: #FFFFFF; - } + } */ ul{ li{ width: 198px; @@ -107,6 +107,10 @@ mat-sidenav{ outline:none; } + li:hover{ + background-color: #FFFFFF; + color: #07CDCF; + } img{ position: relative; top: 2px; @@ -190,7 +194,7 @@ mat-sidenav{ } .example-container .router-link-active { - background-color: rgba(225,225,225,.5); + //background-color: rgba(225,225,225,.5); border-radius: 8px ; } .btn{ diff --git a/src/app/navigation/navigation.component.ts b/src/app/navigation/navigation.component.ts index b7c2586..bdc4947 100644 --- a/src/app/navigation/navigation.component.ts +++ b/src/app/navigation/navigation.component.ts @@ -23,7 +23,7 @@ export class NavigationComponent implements OnInit { selectedDataBank:any //当前选中的资料库 hoverDataBank:any //当前鼠标移入的资料库 isOneClick:boolean //是否第一次进入网页 - leftMenuname="" + leftMenuname="found" //左侧菜单点击事件 clickLeftmenu(name){