-
- 菜单列表
-
-
-
-
-
-
-
+
+
-
\ No newline at end of file
+
diff --git a/src/app/home/basic-info/basic-info.component.scss b/src/app/home/basic-info/basic-info.component.scss
index 75867c9..6cbca32 100644
--- a/src/app/home/basic-info/basic-info.component.scss
+++ b/src/app/home/basic-info/basic-info.component.scss
@@ -1,80 +1,36 @@
-.orbox {
- width: 100%;
- height: 100%;
- overflow-y: auto;
- background: #fff;
- box-sizing: border-box;
- padding: 20px;
- font-size: 15px;
- }
-
- .topbox {
- width: 700px;
- height: 36px;
- display: flex;
- align-items: center;
- justify-content: space-between;
-
- .lefttop {
- span:nth-child(1) {
- color: #000D21;
- margin-right: 16px;
- }
-
- span:nth-child(2) {
- color: rgba(36, 36, 36, 0.24);
- }
- }
-
- .righttop {
- height: 36px;
- display: flex;
-
- button {
- margin-left: 16px;
- }
-
- nz-input-group {
- height: 32px;
- }
- }
- }
-
- .treeTitle {
- width: 700px;
- height: 36px;
- line-height: 36px;
- display: flex;
- justify-content: space-between;
- color: #000D21;
- box-sizing: border-box;
- padding-left: 30px;
- padding-right: 180px;
- background: rgba(145, 204, 255, 0.2);
- margin: 12px 0;
- }
-
- .nodebox {
- font-size: 15px;
-
- }
-
- .operation {
- position: absolute;
- right: 0;
-
- span {
- margin-left: 40px;
- }
-
- span:nth-child(1),
- span:nth-child(2),
- span:nth-child(3) {
- color: #2399FF;
- }
-
- .grey{
- color: rgba(0, 13, 33, 0.48)!important;
+.box {
+ display: flex;
+}
+
+
+.nav {
+ width: 200px;
+ height: 100%;
+ background: #2c4dc1;
+
+ ul {
+ li {
+ height: 48px;
+ line-height: 48px;
+ cursor: pointer;
}
}
-
\ No newline at end of file
+}
+
+.router-link-active {
+ background: #fff;
+}
+
+.content {
+ flex: 1;
+}
+
+.router-link-active {
+ color: black;
+}
+
+.content {
+ box-sizing: border-box;
+ padding: 8px;
+ background: #F6F5F8;
+}
diff --git a/src/app/home/basic-info/basic-info.component.ts b/src/app/home/basic-info/basic-info.component.ts
index e24cc22..09ede39 100644
--- a/src/app/home/basic-info/basic-info.component.ts
+++ b/src/app/home/basic-info/basic-info.component.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-
+import { CustomReuseStrategy } from 'src/app/CustomReuseStrategy';
@Component({
selector: 'app-basic-info',
templateUrl: './basic-info.component.html',
@@ -12,4 +12,8 @@ export class BasicInfoComponent implements OnInit {
ngOnInit(): void {
}
+ ngOnDestroy(): void {
+ console.log(5555555)
+ CustomReuseStrategy.deleteRouteSnapshot('/basicInfo/unit');
+ }
}
diff --git a/src/app/home/basic-info/unit-details/unit-details.component.html b/src/app/home/basic-info/unit-details/unit-details.component.html
new file mode 100644
index 0000000..1fb862f
--- /dev/null
+++ b/src/app/home/basic-info/unit-details/unit-details.component.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/app/home/basic-info/unit-details/unit-details.component.scss b/src/app/home/basic-info/unit-details/unit-details.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/home/basic-info/unit-details/unit-details.component.ts b/src/app/home/basic-info/unit-details/unit-details.component.ts
new file mode 100644
index 0000000..5739971
--- /dev/null
+++ b/src/app/home/basic-info/unit-details/unit-details.component.ts
@@ -0,0 +1,17 @@
+import { Component, OnInit } from '@angular/core';
+import { CustomReuseStrategy } from 'src/app/CustomReuseStrategy';
+@Component({
+ selector: 'app-unit-details',
+ templateUrl: './unit-details.component.html',
+ styleUrls: ['./unit-details.component.scss']
+})
+export class UnitDetailsComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+ back() {
+ window.history.back()
+ }
+}
diff --git a/src/app/home/basic-info/unit/unit.component.html b/src/app/home/basic-info/unit/unit.component.html
new file mode 100644
index 0000000..aa885f8
--- /dev/null
+++ b/src/app/home/basic-info/unit/unit.component.html
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/src/app/home/basic-info/unit/unit.component.scss b/src/app/home/basic-info/unit/unit.component.scss
new file mode 100644
index 0000000..4cfccbf
--- /dev/null
+++ b/src/app/home/basic-info/unit/unit.component.scss
@@ -0,0 +1,6 @@
+p{
+ color: black;
+}
+input{
+ color: red;
+}
\ No newline at end of file
diff --git a/src/app/home/basic-info/unit/unit.component.ts b/src/app/home/basic-info/unit/unit.component.ts
new file mode 100644
index 0000000..a84b91e
--- /dev/null
+++ b/src/app/home/basic-info/unit/unit.component.ts
@@ -0,0 +1,22 @@
+import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
+
+@Component({
+ selector: 'app-unit',
+ templateUrl: './unit.component.html',
+ styleUrls: ['./unit.component.scss']
+})
+export class UnitComponent implements OnInit {
+
+ constructor(private router: Router) { }
+
+ ngOnInit(): void {
+ }
+ next() {
+ this.router.navigate(['/basicInfo/unit/details']);
+ }
+ ngOnDestroy(): void {
+ console.log('删除了6666666666666')
+ // CustomReuseStrategy.deleteRouteSnapshot('/basicInfo/unit');
+ }
+}
diff --git a/src/app/home/home-routing.module.ts b/src/app/home/home-routing.module.ts
index 43adab8..f7ae115 100644
--- a/src/app/home/home-routing.module.ts
+++ b/src/app/home/home-routing.module.ts
@@ -1,6 +1,8 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { BasicInfoComponent } from './basic-info/basic-info.component';
+import { UnitDetailsComponent } from './basic-info/unit-details/unit-details.component';
+import { UnitComponent } from './basic-info/unit/unit.component';
import { StatisticAnalysisComponent } from './statistic-analysis/statistic-analysis.component';
import { OrComponent } from './system-management/or/or.component';
import { RoleComponent } from './system-management/role/role.component';
@@ -9,16 +11,29 @@ import { UserComponent } from './system-management/user/user.component';
import { TaskComponent } from './task/task.component';
const routes: Routes = [
- { path: 'basicInfo', component: BasicInfoComponent },
+ {
+ path: 'basicInfo', component: BasicInfoComponent,
+ children: [
+ { path: '', redirectTo: '/basicInfo/unit', pathMatch: 'full' },
+ {
+ path: 'unit',
+ component: UnitComponent,
+ children: [
+
+ ]
+ },
+ {
+ path: 'unit/details',
+ component: UnitDetailsComponent
+ }
+ ],
+ },
{ path: 'task', component: TaskComponent },
{ path: 'statistic', component: StatisticAnalysisComponent },
{
path: 'system', component: SystemManagementComponent,
children: [
- {
- path: '',
- component: RoleComponent,
- },
+ { path: '', redirectTo: '/system/role', pathMatch: 'full' },
{
path: 'role',
component: RoleComponent,
diff --git a/src/app/home/home.module.ts b/src/app/home/home.module.ts
index 3a98170..946d8b6 100644
--- a/src/app/home/home.module.ts
+++ b/src/app/home/home.module.ts
@@ -11,6 +11,8 @@ import { SystemManagementComponent } from './system-management/system-management
import { UserComponent } from './system-management/user/user.component';
import { RoleComponent } from './system-management/role/role.component';
import { OrComponent } from './system-management/or/or.component';
+import { UnitComponent } from './basic-info/unit/unit.component';
+import { UnitDetailsComponent } from './basic-info/unit-details/unit-details.component';
@NgModule({
declarations: [
@@ -21,7 +23,9 @@ import { OrComponent } from './system-management/or/or.component';
SystemManagementComponent,
UserComponent,
RoleComponent,
- OrComponent
+ OrComponent,
+ UnitComponent,
+ UnitDetailsComponent
],
imports: [
CommonModule,
diff --git a/src/app/home/nav/nav.component.html b/src/app/home/nav/nav.component.html
index dffc78a..0742d6c 100644
--- a/src/app/home/nav/nav.component.html
+++ b/src/app/home/nav/nav.component.html
@@ -1,10 +1,18 @@
- - 基础信息
- - 一体化任务
- - 统计分析
- - 系统管理
+ -
+
基础信息
+
+ -
+
一体化任务
+
+ -
+
统计分析
+
+ -
+
系统管理
+
diff --git a/src/app/home/nav/nav.component.scss b/src/app/home/nav/nav.component.scss
index a6081d5..eeade1b 100644
--- a/src/app/home/nav/nav.component.scss
+++ b/src/app/home/nav/nav.component.scss
@@ -4,33 +4,56 @@
nz-header {
- background: #7dbcea;
+ height: 50px;
+ line-height: 50px;
+ background: #2C4DC0;
color: #fff;
+ display: flex;
+ justify-content: center;
+ align-items: center;
ul {
display: flex;
+ justify-content: center;
+ margin-bottom: 0px;
+ width: 600px;
li {
margin: 0 6px;
+ width: 120px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
}
+
}
}
+.router-link-active {
+ background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(180, 202, 252, 0.5000) 50%, #769FF9 100%);
+ text-align: center;
+ transform: skewX(-20deg);
+}
+
+.router-link-active>div {
+ height: 50px;
+ transform: skewX(20deg);
+ border-bottom: 2px solid #95FFCF;
+ color: #fff;
+}
+
nz-footer {
line-height: 1.5;
}
nz-sider {
- background: #3ba0e9;
+ background: #2D4DbF;
color: #fff;
- line-height: 120px;
}
nz-content {
- background: rgba(16, 142, 233, 1);
color: #fff;
- min-height: 120px;
- line-height: 120px;
}
nz-layout {
diff --git a/src/app/home/nav/nav.component.ts b/src/app/home/nav/nav.component.ts
index 8fcdd84..e710f3f 100644
--- a/src/app/home/nav/nav.component.ts
+++ b/src/app/home/nav/nav.component.ts
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
@Component({
selector: 'app-nav',
@@ -7,9 +8,12 @@ import { Component, OnInit } from '@angular/core';
})
export class NavComponent implements OnInit {
- constructor() { }
+ constructor(private router: Router) { }
ngOnInit(): void {
+
+ }
+ xxx() {
+ this.router.navigate(['/task']);
}
-
}
diff --git a/src/app/home/system-management/system-management.component.html b/src/app/home/system-management/system-management.component.html
index d1e48c2..47df6e9 100644
--- a/src/app/home/system-management/system-management.component.html
+++ b/src/app/home/system-management/system-management.component.html
@@ -1,9 +1,9 @@
- - 角色管理
- - 用户管理
- - 组织机构管理
+ - 角色管理
+ - 用户管理
+ - 组织机构管理
diff --git a/src/app/home/system-management/system-management.component.scss b/src/app/home/system-management/system-management.component.scss
index bc65672..bdc52f6 100644
--- a/src/app/home/system-management/system-management.component.scss
+++ b/src/app/home/system-management/system-management.component.scss
@@ -2,12 +2,22 @@
display: flex;
}
+
.nav {
- width: 300px;
+ width: 200px;
height: 100%;
- border-right: 1px solid red;
-
+ background: #2c4dc1;
+ ul {
+ li {
+ height: 48px;
+ line-height: 48px;
+ cursor: pointer;
+ }
+ }
+}
+.router-link-active {
+ background: #fff;
}
.content {
@@ -17,3 +27,9 @@
.router-link-active {
color: black;
}
+
+.content {
+ box-sizing: border-box;
+ padding: 8px;
+ background: #F6F5F8;
+}
diff --git a/src/app/home/system-management/system-management.component.ts b/src/app/home/system-management/system-management.component.ts
index d283aa8..035baec 100644
--- a/src/app/home/system-management/system-management.component.ts
+++ b/src/app/home/system-management/system-management.component.ts
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
-
+import { CustomReuseStrategy } from 'src/app/CustomReuseStrategy';
@Component({
selector: 'app-system-management',
templateUrl: './system-management.component.html',
@@ -10,6 +10,7 @@ export class SystemManagementComponent implements OnInit {
constructor() { }
ngOnInit(): void {
+ // CustomReuseStrategy.deleteRouteSnapshot('/basicInfo/unit');
}
}
diff --git a/src/app/home/task/task.component.ts b/src/app/home/task/task.component.ts
index 785bb2f..d911542 100644
--- a/src/app/home/task/task.component.ts
+++ b/src/app/home/task/task.component.ts
@@ -11,5 +11,4 @@ export class TaskComponent implements OnInit {
ngOnInit(): void {
}
-
}
diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts
index 3a40565..1c3563c 100644
--- a/src/app/pages/login/login.component.ts
+++ b/src/app/pages/login/login.component.ts
@@ -70,7 +70,6 @@ export class LoginComponent implements OnInit {
-
remember: any//记住密码
autologin: any//自动登录
isLoading = false;
@@ -107,7 +106,7 @@ export class LoginComponent implements OnInit {
this.autoLogin()
sessionStorage.setItem("token", data.token);
sessionStorage.setItem("refreshToken", data.refreshToken);
- this.router.navigate(['/homePage'])
+ this.router.navigate(['/system'])
this.message.create('success', `登录成功`);
//调用服务中的function刷新token
diff --git a/src/assets/font-family/sybold.OTF b/src/assets/font-family/sybold.OTF
new file mode 100644
index 0000000..4b3429a
Binary files /dev/null and b/src/assets/font-family/sybold.OTF differ
diff --git a/src/assets/font-family/synormal.OTF b/src/assets/font-family/synormal.OTF
new file mode 100644
index 0000000..091f56d
Binary files /dev/null and b/src/assets/font-family/synormal.OTF differ
diff --git a/src/assets/font-family/titlefont.TTF b/src/assets/font-family/titlefont.TTF
new file mode 100644
index 0000000..3729151
Binary files /dev/null and b/src/assets/font-family/titlefont.TTF differ
diff --git a/src/index.html b/src/index.html
index d383833..56ac851 100644
--- a/src/index.html
+++ b/src/index.html
@@ -2,7 +2,7 @@
-
边缘主机管理系统
+ 防消一体化综合治理平台
diff --git a/src/styles.scss b/src/styles.scss
index b7395d4..c48d6a6 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -5,7 +5,10 @@
@import "~ng-zorro-antd/button/style/index.min.css";
/* 引入组件样式 */
-
+@font-face {
+ font-family: synormal;
+ src: url("./assets/font-family/synormal.OTF");
+}
/* css初始化 */
html,
@@ -15,6 +18,8 @@ body {
width: 100%;
height: 100%;
overflow: hidden;
+ font-family: synormal !important;
+
}
body {
@@ -75,6 +80,10 @@ a {
color: #000;
}
+p {
+ color: #000;
+}
+
ul,
ol,
li {
@@ -92,6 +101,14 @@ textarea {
background-color: #999;
}
+::-webkit-scrollbar {
+ width: 5px;
+}
+
+::-webkit-scrollbar-track {
+ background-color: #999;
+}
+
app-root {
height: 100%;
}