刘向辉 3 years ago
parent
commit
ddf8abe070
  1. 9
      angular.json
  2. 2
      proxy.config.json
  3. 2
      src/app/app-routing.module.ts
  4. 35
      src/app/app.component.spec.ts
  5. 20
      src/app/app.component.ts
  6. 2
      src/app/app.module.ts
  7. 8
      src/app/auth.guard.ts
  8. 6
      src/app/pages/home/home.component.html
  9. 15
      src/app/pages/home/home.component.scss
  10. 20
      src/app/pages/login/login.component.ts
  11. 4
      src/app/pages/pages-routing.module.ts
  12. 44
      src/app/pages/pages.module.ts
  13. 4
      src/app/pages/plan/plan.component.html
  14. 7
      src/app/pages/plan/plan.component.scss
  15. 16
      src/app/pages/plan/plan.component.ts
  16. 59
      src/app/pages/today-warning/today-warning.component.html
  17. 39
      src/app/pages/today-warning/today-warning.component.scss
  18. 20
      src/app/pages/today-warning/today-warning.component.ts
  19. 99
      src/app/three-dimensional/three-dimensional.module.ts
  20. 3
      src/app/three-dimensional/three-home/three-home.component.html
  21. 7
      src/app/three-dimensional/three-home/three-home.component.scss
  22. 23
      src/app/three-dimensional/three-home/three-home.component.ts
  23. 11
      src/app/ui/tabbar/tabbar.component.html
  24. 16
      src/app/ui/tabbar/tabbar.component.scss
  25. 25
      src/app/ui/tabbar/tabbar.component.ts
  26. 5
      src/main.ts
  27. 2
      src/styles.scss
  28. 28
      src/theme.less

9
angular.json

@ -26,13 +26,18 @@
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
"src/assets",
{
"glob": "**/*",
"input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
"output": "/assets/"
}
],
"styles": [
"src/styles.scss",
"./node_modules/swiper/css/swiper.min.css",
"./node_modules/viewerjs/dist/viewer.css",
"node_modules/ng-zorro-antd/ng-zorro-antd.min.css"
"src/theme.less"
],
"scripts": [
"node_modules/echarts/dist/echarts.js",

2
proxy.config.json

@ -1,6 +1,6 @@
{
"/api": {
"target": "http://39.106.78.171:8900",
"target": "http://39.106.78.171:8906",
"secure": false,
"changeOrigin": true
}

2
src/app/app-routing.module.ts

@ -7,7 +7,6 @@ import { NavigationComponent } from './navigation/navigation.component';
//路由守卫
import { AuthGuard } from './auth.guard'
import { HomeComponent } from './pages/home/home.component';
import { ThreeHomeComponent } from './three-dimensional/three-home/three-home.component';
@ -15,7 +14,6 @@ const routes: Routes = [
{ path: '', redirectTo: 'login', pathMatch: 'full' },
{ path: 'login', component: LoginComponent }, //登录页
{ path: 'register', component: RegisterComponent }, //注册页
{ path: 'threeDimensional', component: ThreeHomeComponent }, //三维场景
{
path: '', component: HomeComponent, children: [
{ path: 'home', loadChildren: () => import('./pages/pages.module').then(m => m.PagesModule) }

35
src/app/app.component.spec.ts

@ -1,35 +0,0 @@
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule
],
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});
it(`should have as title 'anxin119'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('anxin119');
});
it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('.content span').textContent).toContain('anxin119 app is running!');
});
});

20
src/app/app.component.ts

@ -18,16 +18,16 @@ export class AppComponent {
constructor(private http: HttpClient, private router: Router, public token: CacheTokenService, private cookieService: CookieService) { }
ngOnInit(): void {
var token = this.cookieService.get("token")
var refreshToken = this.cookieService.get("refreshToken");
if (token && refreshToken) {
this.http.post('/api/CompanyAccount/RefreshToken', { token: token, refreshToken: refreshToken }).subscribe((data: Data) => {
sessionStorage.setItem("token", data.token);
this.cookieService.set("token", data.token, null, '/');
this.cookieService.set("refreshToken", data.refreshToken, null, '/');
this.token.startUp()
})
}
// var token = this.cookieService.get("token")
// var refreshToken = this.cookieService.get("refreshToken");
// if(token && refreshToken) {
// this.http.post('/api/CompanyAccount/RefreshToken',{token: token,refreshToken: refreshToken}).subscribe((data: Data) => {
// sessionStorage.setItem("token",data.token);
// this.cookieService.set("token",data.token,null,'/');
// this.cookieService.set("refreshToken",data.refreshToken,null,'/');
// this.token.startUp()
// })
// }
}

2
src/app/app.module.ts

@ -16,12 +16,10 @@ import { CacheTokenService } from './service/cache-token.service'
import { TreeService } from './service/tree.service'
import { CookieService } from 'ngx-cookie-service';//cookie插件
import { CountdownModule } from 'ngx-countdown'; //倒计时插件
import { ThreeHomeComponent } from './three-dimensional/three-home/three-home.component';
@NgModule({
declarations: [
AppComponent,
ThreeHomeComponent
],
imports: [
BrowserModule,

8
src/app/auth.guard.ts

@ -14,8 +14,11 @@ export class AuthGuard implements CanActivate {
// 路由守卫
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {
return this.checkLogin();
console.log('路由守卫',next.data)
if(next.data.permission == 'xxxx'){
return true;
}
// return this.checkLogin();
}
checkLogin(): boolean {
@ -28,6 +31,7 @@ export class AuthGuard implements CanActivate {
//如果没有token,跳转登录页
this.router.navigate(['/login']);
return false;
}
}

6
src/app/pages/home/home.component.html

@ -3,13 +3,13 @@
<app-tabbar></app-tabbar>
</div>
<div class="menu">
<li [routerLink]="['/home/plan']">
<li [routerLink]="['/home/plan']" routerLinkActive="router-link-active">
三维预案
</li>
<li [routerLink]="['/home/warning']">
<li [routerLink]="['/home/warning']" routerLinkActive="router-link-active">
今日预警
</li>
<li [routerLink]="['/home/records']">
<li [routerLink]="['/home/records']" routerLinkActive="router-link-active">
违规记录
</li>
</div>

15
src/app/pages/home/home.component.scss

@ -2,10 +2,23 @@
width: 100%;
height: 100%;
overflow: hidden;
background: #001f3e;
}
.menu{
height: 64px;
height: 52px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 17px;
li{
width: 10%;
height: 52px;
line-height: 52px;
text-align: center;
cursor: pointer;
}
}
.router-link-active{
background-image: linear-gradient(to right, #052D5A , #0B416F,#136B93,#1F7C93,#136B93,#0B416F,#052D5A);
}

20
src/app/pages/login/login.component.ts

@ -43,20 +43,22 @@ export class LoginComponent implements OnInit {
this.validateForm.controls[i].updateValueAndValidity();
}
// console.log(this.validateForm)
this.http.post('/api/CompanyAccount/SignIn', {
name: this.validateForm.value.userName,
this.http.post('/api/TokenAuth/Authenticate', {
userNameOrEmailAddress: this.validateForm.value.userName,
password: this.validateForm.value.password
}).subscribe(
(data: Data) => {
sessionStorage.setItem("isDefaultPassword", data.isDefaultPassword);
sessionStorage.setItem("token", data.token);
this.cookieService.set("token", data.token, null, '/');
this.cookieService.set("refreshToken", data.refreshToken, null, '/');
(data: any) => {
console.log('登陆成功',data)
// sessionStorage.setItem("isDefaultPassword", data.isDefaultPassword);
sessionStorage.setItem("token", data.result.accessToken);
this.cookieService.set("token", data.result.accessToken, null, '/');
this.cookieService.set("refreshToken", data.result.encryptedAccessToken, null, '/');
this.router.navigate(['/home/plan'])
//调用服务中的function刷新token
this.token.startUp()
// this.token.startUp()
},
(err) => { this.errmsg = err }
(err) => { this.errmsg = err.error.details }
)
}

4
src/app/pages/pages-routing.module.ts

@ -3,10 +3,10 @@ import { NgModule } from '@angular/core';
import { PlanComponent } from './plan/plan.component';
import { TodayWarningComponent } from './today-warning/today-warning.component';
import { CriminalRecordsComponent } from './criminal-records/criminal-records.component';
import {AuthGuard} from '../auth.guard'
const routes: Routes = [
{ path: 'plan', component: PlanComponent },
{ path: 'plan', component: PlanComponent , data: { permission: 'xxxx' },canActivate: [AuthGuard]},
{ path: 'warning', component: TodayWarningComponent },
{ path: 'records', component: CriminalRecordsComponent }
];

44
src/app/pages/pages.module.ts

@ -57,6 +57,10 @@ import { PlanComponent } from './plan/plan.component';
import { PagesRoutingModule } from './pages-routing.module';
import { TodayWarningComponent } from './today-warning/today-warning.component';
import { CriminalRecordsComponent } from './criminal-records/criminal-records.component';
import { NzSelectModule } from 'ng-zorro-antd/select';
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
import { NzIconModule } from 'ng-zorro-antd/icon';
@NgModule({
declarations: [LoginComponent, RegisterComponent, HomeComponent, PlanComponent, TodayWarningComponent, CriminalRecordsComponent,],
imports: [
@ -67,41 +71,6 @@ import { CriminalRecordsComponent } from './criminal-records/criminal-records.co
CdkTableModule,
CdkTreeModule,
DragDropModule,
// MatAutocompleteModule,
// MatBadgeModule,
// MatBottomSheetModule,
// MatButtonModule,
// MatButtonToggleModule,
// MatCardModule,
// MatCheckboxModule,
// MatChipsModule,
// MatStepperModule,
// MatDatepickerModule,
// MatDialogModule,
// MatDividerModule,
// MatExpansionModule,
// MatGridListModule,
// MatIconModule,
// MatInputModule,
// MatListModule,
// MatMenuModule,
// MatNativeDateModule,
// MatPaginatorModule,
// MatProgressBarModule,
// MatProgressSpinnerModule,
// MatRadioModule,
// MatRippleModule,
// MatSelectModule,
// MatSidenavModule,
// MatSliderModule,
// MatSlideToggleModule,
// MatSnackBarModule,
// MatSortModule,
// MatTableModule,
// MatTabsModule,
// MatToolbarModule,
// MatTooltipModule,
// MatTreeModule,
// PortalModule,
// ScrollingModule,
FormsModule,
@ -110,7 +79,10 @@ import { CriminalRecordsComponent } from './criminal-records/criminal-records.co
NzFormModule,
NzInputModule,
UiModule,
NzButtonModule
NzButtonModule,
NzSelectModule,
NzDatePickerModule,
NzIconModule
]
})
export class PagesModule { }

4
src/app/pages/plan/plan.component.html

@ -1 +1,3 @@
<p>plan works!</p>
<div class="content">
<canvas id="center"></canvas>
</div>

7
src/app/pages/plan/plan.component.scss

@ -0,0 +1,7 @@
.content{
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
canvas{ width: 100%; height: 100%; border: none; outline: none; }
}

16
src/app/pages/plan/plan.component.ts

@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { Component, ElementRef, OnInit } from '@angular/core';
import { Game } from 'src/app/babylon/game';
@Component({
selector: 'app-plan',
@ -7,9 +8,20 @@ import { Component, OnInit } from '@angular/core';
})
export class PlanComponent implements OnInit {
constructor() { }
constructor(private element: ElementRef,) { }
static instance: PlanComponent;
public game: Game = new Game();
public canvas: HTMLCanvasElement; //canvas 实例
ngOnInit(): void {
PlanComponent.instance = this;
this.canvas = this.element.nativeElement.querySelector('#center') as HTMLCanvasElement;
this.game.init(this.canvas);
}
ngOnDestroy(): void { //组件销毁前 销毁canvas
}
}

59
src/app/pages/today-warning/today-warning.component.html

@ -1 +1,58 @@
<p>今日预警</p>
<div class="warningbox">
<div class="title">
当日违规事件列表
</div>
<div class="search">
<form nz-form [nzLayout]="'inline'" [formGroup]="validateForm" class="login-form" (ngSubmit)="submitForm()">
<nz-form-item class="searchParams">
<nz-form-control>
<nz-select id="level" formControlName="level" nzPlaceHolder="请选择级别">
<nz-option nzValue="1" nzLabel="一级"></nz-option>
<nz-option nzValue="2" nzLabel="二级"></nz-option>
<nz-option nzValue="3" nzLabel="三级"></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
<nz-form-item class="searchParams">
<nz-form-control>
<nz-select id="type" formControlName="type" nzPlaceHolder="请选择事件类型">
<nz-option nzValue="1" nzLabel="一级"></nz-option>
<nz-option nzValue="2" nzLabel="二级"></nz-option>
<nz-option nzValue="3" nzLabel="三级"></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
<nz-form-item class="searchParams">
<nz-form-control>
<nz-select id="site" formControlName="site" nzPlaceHolder="请选择地点">
<nz-option nzValue="1" nzLabel="一级"></nz-option>
<nz-option nzValue="2" nzLabel="二级"></nz-option>
<nz-option nzValue="3" nzLabel="三级"></nz-option>
</nz-select>
</nz-form-control>
</nz-form-item>
<nz-form-item class="searchParams">
<nz-form-control [nzSm]="16" [nzXs]="24">
<nz-date-picker id="datePicker" formControlName="datePicker" nzPlaceHolder="请选择时间"></nz-date-picker>
</nz-form-control>
</nz-form-item>
<nz-form-item class="btn">
<nz-form-control>
<button nz-button type="submit" class="submit"><i nz-icon [nzType]="'search'"></i>查询</button>
</nz-form-control>
</nz-form-item>
<nz-form-item style="margin-right: 0;" class="btn">
<nz-form-control>
<button nz-button type="button" class="reset"><i nz-icon [nzType]="'sync'"></i>重置</button>
</nz-form-control>
</nz-form-item>
</form>
</div>
</div>

39
src/app/pages/today-warning/today-warning.component.scss

@ -0,0 +1,39 @@
.warningbox{
width: 100%;
height: 100%;
.title{
width: 100%;
height: 50px;
line-height: 50px;
}
.search{
box-sizing: border-box;
padding: 0 36px;
width: 100%;
height: 32px;
form{
width: 100%;
height: 32px;
}
.searchParams{
width: 21.5%;
}
nz-date-picker{
width: 145%;
background-color: #002552;
color: #8aacce;
}
button{
width: 84px;
}
.submit{
background-color: #013064;
border: 1px solid #4c8ac8;
color: #86bff3;
}
.reset{
background-color: #010d26;
border: 1px solid #4c8ac8;
}
}
}

20
src/app/pages/today-warning/today-warning.component.ts

@ -1,15 +1,29 @@
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
@Component({
selector: 'app-today-warning',
templateUrl: './today-warning.component.html',
styleUrls: ['./today-warning.component.scss']
})
export class TodayWarningComponent implements OnInit {
constructor() { }
validateForm!: FormGroup;
constructor(private fb: FormBuilder) { }
ngOnInit(): void {
this.validateForm = this.fb.group({
level: [null],
type: [null],
site: [null],
datePicker: [null]
});
}
submitForm(): void {
for (const i in this.validateForm.controls) {
this.validateForm.controls[i].markAsDirty();
this.validateForm.controls[i].updateValueAndValidity();
}
console.log(this.validateForm)
}
}

99
src/app/three-dimensional/three-dimensional.module.ts

@ -1,99 +0,0 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { A11yModule } from '@angular/cdk/a11y';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { PortalModule } from '@angular/cdk/portal';
import { ScrollingModule } from '@angular/cdk/scrolling';
import { CdkStepperModule } from '@angular/cdk/stepper';
import { CdkTableModule } from '@angular/cdk/table';
import { CdkTreeModule } from '@angular/cdk/tree';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { MatBadgeModule } from '@angular/material/badge';
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
import { MatButtonModule } from '@angular/material/button';
import { MatButtonToggleModule } from '@angular/material/button-toggle';
import { MatCardModule } from '@angular/material/card';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatStepperModule } from '@angular/material/stepper';
import { MatChipsModule } from '@angular/material/chips';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatDialogModule } from '@angular/material/dialog';
import { MatDividerModule } from '@angular/material/divider';
import { MatExpansionModule } from '@angular/material/expansion';
import { MatGridListModule } from '@angular/material/grid-list';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatListModule } from '@angular/material/list';
import { MatMenuModule } from '@angular/material/menu';
import { MatNativeDateModule, MatRippleModule } from '@angular/material/core';
import { MatPaginatorModule } from '@angular/material/paginator';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { MatRadioModule } from '@angular/material/radio';
import { MatSelectModule } from '@angular/material/select';
import { MatSidenavModule } from '@angular/material/sidenav';
import { MatSliderModule } from '@angular/material/slider';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { MatSortModule } from '@angular/material/sort';
import { MatTableModule } from '@angular/material/table';
import { MatTabsModule } from '@angular/material/tabs';
import { MatToolbarModule } from '@angular/material/toolbar';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatTreeModule } from '@angular/material/tree';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ThreeHomeComponent } from './three-home/three-home.component';
@NgModule({
declarations: [ThreeHomeComponent],
imports: [
CommonModule,
A11yModule,
DragDropModule,
PortalModule,
ScrollingModule,
CdkStepperModule,
CdkTableModule,
CdkTreeModule,
MatAutocompleteModule,
MatBadgeModule,
MatBottomSheetModule,
MatButtonModule,
MatButtonToggleModule,
MatCardModule,
MatCheckboxModule,
MatChipsModule,
MatStepperModule,
MatDatepickerModule,
MatDialogModule,
MatDividerModule,
MatExpansionModule,
MatGridListModule,
MatIconModule,
MatInputModule,
MatListModule,
MatMenuModule,
MatNativeDateModule,
MatRippleModule,
MatPaginatorModule,
MatProgressBarModule,
MatProgressSpinnerModule,
MatRadioModule,
MatSelectModule,
MatSidenavModule,
MatSliderModule,
MatSlideToggleModule,
MatSnackBarModule,
MatSortModule,
MatTableModule,
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
MatTreeModule,
FormsModule,
ReactiveFormsModule,
]
})
export class ThreeDimensionalModule { }

3
src/app/three-dimensional/three-home/three-home.component.html

@ -1,3 +0,0 @@
<div class="content">
<canvas id="center"></canvas>
</div>

7
src/app/three-dimensional/three-home/three-home.component.scss

@ -1,7 +0,0 @@
.content{
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
canvas{ width: 100%; height: 100%; border: none; outline: none; }
}

23
src/app/three-dimensional/three-home/three-home.component.ts

@ -1,23 +0,0 @@
import { Component, ElementRef, OnInit } from '@angular/core';
import { Game } from 'src/app/babylon/game';
@Component({
selector: 'app-three-home',
templateUrl: './three-home.component.html',
styleUrls: ['./three-home.component.scss']
})
export class ThreeHomeComponent implements OnInit {
constructor(private element: ElementRef,) { }
static instance: ThreeHomeComponent;
public game: Game = new Game();
public canvas: HTMLCanvasElement; //canvas 实例
ngOnInit(): void {
ThreeHomeComponent.instance = this;
this.canvas = this.element.nativeElement.querySelector('#center') as HTMLCanvasElement;
this.game.init(this.canvas);
}
}

11
src/app/ui/tabbar/tabbar.component.html

@ -1,15 +1,18 @@
<div class="box">
<div class="boxleft">
国石
中化科学至上
</div>
<!-- 登录信息按钮 -->
<div class="boxright">
<button (click)="initThreeDimensional()">三维场景</button>
<span>
<span class="time">
{{time}}
</span>
<span style="margin: 0 18px;">|</span>
<span> 用户名 </span>
<a nz-dropdown [nzDropdownMenu]="menu" [nzTrigger]="'click'" [nzBackdrop]='false'>
用户头像
头像
</a>
<nz-dropdown-menu #menu="nzDropdownMenu">
<ul nz-menu nzSelectable>

16
src/app/ui/tabbar/tabbar.component.scss

@ -1,9 +1,23 @@
.box{
width: 100%;
height: 62px;
height: 52px;
background-image: linear-gradient(#001530, #051C3C ,#162f50, #243c55);
display: flex;
justify-content: space-between;
align-items: center;
color: #fff;
box-sizing: border-box;
padding: 0 20px;
color: #8aacce;
}
.boxleft{
font-size: 18px;
font-weight: 500;
// text-shadow: 0px 0px 2px #8df;
color: rgb(255, 255, 255);
}
.boxright{
span{
font-size: 15px;
}
}

25
src/app/ui/tabbar/tabbar.component.ts

@ -25,11 +25,6 @@ export class TabbarComponent implements OnInit {
},1000);
}
//进入 三维场景
initThreeDimensional() {
this.router.navigate(['/threeDimensional'])
}
//获得时间
time:string
getTime() {
@ -60,24 +55,18 @@ export class TabbarComponent implements OnInit {
signOut() {
let out = confirm("您确定要退出吗")
if (out) {
this.http.post('/api/CompanyAccount/SignOut', {}).subscribe(
data => {
this.token.delete()
sessionStorage.clear()
window.localStorage.clear()
this.cookieService.set("token", '', new Date(new Date().getTime() + 1), '/');
this.cookieService.set("refreshToken", '', new Date(new Date().getTime() + 1), '/');
this.router.navigate(['/login'])
}
)
this.token.delete()
sessionStorage.clear()
window.localStorage.clear()
this.cookieService.set("token", '', new Date(new Date().getTime() + 1), '/');
this.cookieService.set("refreshToken", '', new Date(new Date().getTime() + 1), '/');
this.router.navigate(['/login'])
}
}
//修改密码
changpsw() {
let dialogRef = this.dialog.open(ChangepasswordComponent,
{ width: '348px' });
let dialogRef = this.dialog.open(ChangepasswordComponent,{ width: '348px' });
dialogRef.afterClosed().subscribe();
}

5
src/main.ts

@ -3,9 +3,12 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
registerLocaleData(zh);
if (environment.production) {
enableProdMode();
}
// window['CESIUM_BASE_URL'] = 'src/assets/cesium';

2
src/styles.scss

@ -1,4 +1,4 @@
@import "~ng-zorro-antd/ng-zorro-antd.min.css";
// @import "~ng-zorro-antd/ng-zorro-antd.min.css";
html,
body {
width: 100%;

28
src/theme.less

@ -0,0 +1,28 @@
@import "../node_modules/ng-zorro-antd/ng-zorro-antd.less";
// @component-background: #002552;
@border-color-base: #8aacce;
// @text-color: #8aacce;
@text-color: #8aacce;
// @select-item-selected-bg: red;
@select-background:#002552;
.ant-select-arrow {
color: #8aacce;
}
.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{
border-radius: 0px;
}
.ant-picker{
border-radius: 0px;
}
@input-placeholder-color: #8aacce;
.ant-picker-suffix{
color: #8aacce;
}
Loading…
Cancel
Save