Browse Source

[新增]建立单位类型文件,建立路由

master
邵佳豪 4 years ago
parent
commit
37fe624b50
  1. 5
      src/app/app.module.ts
  2. 1
      src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.html
  3. 0
      src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.scss
  4. 25
      src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.spec.ts
  5. 15
      src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts
  6. 12
      src/app/statistic-analysis/statistic-analysis-routing.module.ts
  7. 3
      src/app/statistic-analysis/statistic-analysis.module.ts

5
src/app/app.module.ts

@ -20,14 +20,13 @@ import { TreeService } from'./http-interceptors/tree.service';
import { MTokenK1Component } from './m-token-k1/m-token-k1.component' //K1秘钥 import { MTokenK1Component } from './m-token-k1/m-token-k1.component' //K1秘钥
import { CountdownModule } from 'ngx-countdown'; //倒计时插件 import { CountdownModule } from 'ngx-countdown'; //倒计时插件
import { GISManagementModule } from './gis-management/gis-management.module'; import { GISManagementModule } from './gis-management/gis-management.module';
import { DeleteOneComponent } from './deleteUnit/delete-one/delete-one.component';
@NgModule({ @NgModule({
declarations: [ declarations: [
AppComponent, AppComponent,
HomeComponent, HomeComponent,
MTokenK1Component, MTokenK1Component
DeleteOneComponent
], ],
imports: [ imports: [
BrowserModule, BrowserModule,

1
src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.html

@ -0,0 +1 @@
<p>building-type-one works!</p>

0
src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.scss

25
src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.spec.ts

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BuildingTypeOneComponent } from './building-type-one.component';
describe('BuildingTypeOneComponent', () => {
let component: BuildingTypeOneComponent;
let fixture: ComponentFixture<BuildingTypeOneComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ BuildingTypeOneComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(BuildingTypeOneComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/statistic-analysis/buildingType/building-type-one/building-type-one.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-building-type-one',
templateUrl: './building-type-one.component.html',
styleUrls: ['./building-type-one.component.scss']
})
export class BuildingTypeOneComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/statistic-analysis/statistic-analysis-routing.module.ts

@ -4,12 +4,20 @@ import { PageOneComponent } from './state/page-one/page-one.component';
import { PageTwoNameComponent } from './state/page-two-name/page-two-name.component'; import { PageTwoNameComponent } from './state/page-two-name/page-two-name.component';
import { PageTwoTimeComponent } from './state/page-two-time/page-two-time.component'; import { PageTwoTimeComponent } from './state/page-two-time/page-two-time.component';
import { PageZhongDuiDetailsComponent } from './state/page-zhong-dui-details/page-zhong-dui-details.component'; import { PageZhongDuiDetailsComponent } from './state/page-zhong-dui-details/page-zhong-dui-details.component';
import { DeleteOneComponent } from './deleteUnit/delete-one/delete-one.component';
import { DeleteTwoComponent } from './deleteUnit/delete-two/delete-two.component';
import { DeleteThereComponent } from './deleteUnit/delete-there/delete-there.component';
import { DeleteFourComponent } from './deleteUnit/delete-four/delete-four.component';
import { BuildingTypeOneComponent } from './buildingType/building-type-one/building-type-one.component';
const routes: Routes = [ const routes: Routes = [
{ path: 'statePageOne', component: PageOneComponent}, { path: 'statePageOne', component: PageOneComponent},
{ path: 'statePageTwo_time', component: PageTwoTimeComponent}, { path: 'statePageTwo_time', component: PageTwoTimeComponent},
{ path: 'statePageTwo_name', component: PageTwoNameComponent}, { path: 'delete_one', component: DeleteOneComponent},
{ path: 'statePageTwo_details', component: PageZhongDuiDetailsComponent} { path: 'delete_two', component: DeleteTwoComponent},
{ path: 'delete_there', component: DeleteThereComponent},
{ path: 'delete_four', component: DeleteFourComponent},
{ path: 'buildingType_one', component: BuildingTypeOneComponent}
]; ];
@NgModule({ @NgModule({

3
src/app/statistic-analysis/statistic-analysis.module.ts

@ -51,10 +51,11 @@ import { DeleteOneComponent } from './deleteUnit/delete-one/delete-one.component
import { DeleteTwoComponent } from './deleteUnit/delete-two/delete-two.component'; import { DeleteTwoComponent } from './deleteUnit/delete-two/delete-two.component';
import { DeleteThereComponent } from './deleteUnit/delete-there/delete-there.component'; import { DeleteThereComponent } from './deleteUnit/delete-there/delete-there.component';
import { DeleteFourComponent } from './deleteUnit/delete-four/delete-four.component'; import { DeleteFourComponent } from './deleteUnit/delete-four/delete-four.component';
import { BuildingTypeOneComponent } from './buildingType/building-type-one/building-type-one.component';
@NgModule({ @NgModule({
declarations: [PageOneComponent, PageTwoTimeComponent, PageTwoNameComponent, PageZhongDuiDetailsComponent,echartsComponent, DeleteOneComponent, DeleteTwoComponent, DeleteThereComponent, DeleteFourComponent], declarations: [PageOneComponent, PageTwoTimeComponent, PageTwoNameComponent, PageZhongDuiDetailsComponent,echartsComponent, DeleteOneComponent, DeleteTwoComponent, DeleteThereComponent, DeleteFourComponent, BuildingTypeOneComponent],
imports: [ imports: [
CommonModule, CommonModule,
StatisticAnalysisRoutingModule, StatisticAnalysisRoutingModule,

Loading…
Cancel
Save