Commit 653de988 authored by fangw's avatar fangw

fix:update

parent d3eb0833
...@@ -2,13 +2,33 @@ import { NgModule } from '@angular/core'; ...@@ -2,13 +2,33 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './page/home/home.component'; import { HomeComponent } from './page/home/home.component';
import { LoginComponent } from './page/login/login.component'; import { LoginComponent } from './page/login/login.component';
import { AdminSystemComponent } from './page/admin/admin-system/admin-system.component';
import { UserManageComponent } from './page/admin/user-manage/user-manage.component';
const routes:Routes = [ const routes:Routes = [
{ path: 'login', component: LoginComponent }, { path: 'login', component: LoginComponent },
{ {
path: 'home', path: 'home',
component: HomeComponent component: HomeComponent,
children: [
{
path: 'admin',
component: AdminSystemComponent,
children: [
{
path: '',
redirectTo: '/home/admin/users',
pathMatch: 'full',
},
{
path: 'users',
component: UserManageComponent,
},
],
},
]
} }
]; ];
@NgModule({ @NgModule({
......
...@@ -21,13 +21,21 @@ import { AppRoutingModule } from './app-routing.module'; ...@@ -21,13 +21,21 @@ import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { LoginComponent } from './page/login/login.component'; import { LoginComponent } from './page/login/login.component';
import { HomeComponent } from './page/home/home.component'; import { HomeComponent } from './page/home/home.component';
import { ToolbarComponent } from './page/common/toolbar/toolbar.component';
import { NavigationComponent } from './page/common/navigation/navigation.component';
import { AdminSystemComponent } from './page/admin/admin-system/admin-system.component';
import { UserManageComponent } from './page/admin/user-manage/user-manage.component';
@NgModule({ @NgModule({
declarations: [ declarations: [
AppComponent, AppComponent,
LoginComponent, LoginComponent,
HomeComponent], HomeComponent,
ToolbarComponent,
NavigationComponent,
AdminSystemComponent,
UserManageComponent],
imports: [ imports: [
BrowserModule, BrowserModule,
HttpClientModule, HttpClientModule,
......
<div class="admin-wrap">
<div class="content">
<router-outlet></router-outlet>
</div>
</div>
\ No newline at end of file
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-admin-system',
templateUrl: './admin-system.component.html',
styleUrls: ['./admin-system.component.scss']
})
export class AdminSystemComponent implements OnInit {
constructor() { }
ngOnInit():void {
}
}
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-user-manage',
templateUrl: './user-manage.component.html',
styleUrls: ['./user-manage.component.scss']
})
export class UserManageComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-navigation',
templateUrl: './navigation.component.html',
styleUrls: ['./navigation.component.scss']
})
export class NavigationComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-toolbar',
templateUrl: './toolbar.component.html',
styleUrls: ['./toolbar.component.scss']
})
export class ToolbarComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
...@@ -78,7 +78,9 @@ ...@@ -78,7 +78,9 @@
<nz-breadcrumb-item>List</nz-breadcrumb-item> <nz-breadcrumb-item>List</nz-breadcrumb-item>
<nz-breadcrumb-item>App</nz-breadcrumb-item> <nz-breadcrumb-item>App</nz-breadcrumb-item>
</nz-breadcrumb> --> </nz-breadcrumb> -->
<div class="inner-content">Content</div> <div class="inner-content">
<router-outlet></router-outlet>
</div>
</nz-content> </nz-content>
<!-- <nz-footer>Ant Design ©2020 Implement By Angular</nz-footer> --> <!-- <nz-footer>Ant Design ©2020 Implement By Angular</nz-footer> -->
</nz-layout> </nz-layout>
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
} }
::ng-deep .ant-badge-dot { ::ng-deep .ant-badge-dot {
top: .7rem; top: 0.7rem;
right: .6rem; right: 0.6rem;
width: 1.3rem; width: 1.3rem;
height: 1.3rem; height: 1.3rem;
} }
\ No newline at end of file
...@@ -17,7 +17,7 @@ body { ...@@ -17,7 +17,7 @@ body {
height: 100%; height: 100%;
width: 100%; width: 100%;
font-family: Helvetica, Tahoma, Arial, STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif; font-family: Helvetica, Tahoma, Arial, STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
min-width: 1024px; min-width: 102.4rem;
overflow-y: hidden; overflow-y: hidden;
} }
...@@ -29,10 +29,10 @@ body { ...@@ -29,10 +29,10 @@ body {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 60px; width: 6rem;
height: 50px; height: 5rem;
display: block; display: block;
background-size: 28px 28px; background-size: 2.8rem 2.8rem;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
z-index: 1; z-index: 1;
...@@ -44,30 +44,30 @@ body { ...@@ -44,30 +44,30 @@ body {
background-image: url(assets/icons/proj-switch.svg); background-image: url(assets/icons/proj-switch.svg);
} }
.ant-select-selector { .ant-select-selector {
height: 50px !important; height: 5rem !important;
padding-left: 60px !important; padding-left: 6rem !important;
border-radius: 10px !important; border-radius: 1rem !important;
border: 0 !important; border: 0 !important;
box-shadow: 0 4px 10px 0 #70707080; box-shadow: 0 0.4rem 1rem 0 #70707080;
.ant-select-selection-search { .ant-select-selection-search {
left: 60px; left: 6rem;
.ant-select-selection-search-input { .ant-select-selection-search-input {
height: 50px !important; height: 5rem !important;
} }
} }
.ant-select-selection-item, .ant-select-selection-item,
.ant-select-selection-placeholder { .ant-select-selection-placeholder {
line-height: 50px !important; line-height: 5rem !important;
} }
.ant-select-selection-item { .ant-select-selection-item {
.label-main { .label-main {
line-height: 20px !important; line-height: 2rem !important;
padding-top: 5px; padding-top: 0.5rem;
} }
.label-child { .label-child {
line-height: 20px !important; line-height: 2rem !important;
font-size: 12px; font-size: 1.2rem;
font-family: Helvetica; font-family: Helvetica;
font-weight: 100; font-weight: 100;
color: #b3b3b3; color: #b3b3b3;
...@@ -79,7 +79,7 @@ body { ...@@ -79,7 +79,7 @@ body {
.login-select{ .login-select{
.ant-select-item-option { .ant-select-item-option {
&:not(:last-child) { &:not(:last-child) {
border-bottom: 1px solid #ccc; border-bottom: 0.1rem solid #ccc;
} }
} }
.option-manage { .option-manage {
...@@ -89,15 +89,15 @@ body { ...@@ -89,15 +89,15 @@ body {
font-weight: 100; font-weight: 100;
color: #bbb; color: #bbb;
white-space: initial; white-space: initial;
padding-bottom: 5px; padding-bottom: 0.5rem;
} }
} }
nz-header { nz-header {
padding: 0 25px; padding: 0 2.5rem;
} }
nz-content { nz-content {
height: calc(100% - 64px); height: calc(100% - 6.4rem);
background: #fff; background: #fff;
} }
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 to comment