6 changed files with 303 additions and 225 deletions
@ -1,63 +1,67 @@ |
|||||||
import { BrowserModule } from '@angular/platform-browser'; |
import { BrowserModule } from "@angular/platform-browser"; |
||||||
import { NgModule } from '@angular/core'; |
import { NgModule } from "@angular/core"; |
||||||
import { AppRoutingModule } from './app-routing.module'; |
import { AppRoutingModule } from "./app-routing.module"; |
||||||
import { AppComponent } from './app.component'; |
import { AppComponent } from "./app.component"; |
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; |
||||||
import { MatButtonModule } from '@angular/material/button'; |
import { MatButtonModule } from "@angular/material/button"; |
||||||
import { MatCheckboxModule } from '@angular/material/checkbox'; |
import { MatCheckboxModule } from "@angular/material/checkbox"; |
||||||
import { MatIconModule } from '@angular/material/icon'; |
import { MatIconModule } from "@angular/material/icon"; |
||||||
import { MatSidenavModule } from '@angular/material/sidenav'; |
import { MatSidenavModule } from "@angular/material/sidenav"; |
||||||
import { NavigationModule } from './navigation/navigation.module'; |
import { NavigationModule } from "./navigation/navigation.module"; |
||||||
import { HomeComponent } from './home/home.component'; |
import { HomeComponent } from "./home/home.component"; |
||||||
import { TabbarComponent } from './tabbar/tabbar.component'; |
import { TabbarComponent } from "./tabbar/tabbar.component"; |
||||||
import { PagesModule } from './pages/pages.module'; |
import { PagesModule } from "./pages/pages.module"; |
||||||
import { FormsModule } from '@angular/forms'; |
import { FormsModule } from "@angular/forms"; |
||||||
import { UiModule } from './ui/ui.module'; |
import { UiModule } from "./ui/ui.module"; |
||||||
import { HttpClientModule } from '@angular/common/http'; |
import { HttpClientModule } from "@angular/common/http"; |
||||||
import { httpInterceptorProviders } from './http-interceptors/index' |
import { httpInterceptorProviders } from "./http-interceptors/index"; |
||||||
import { CacheTokenService } from './http-interceptors/cache-token.service' |
import { CacheTokenService } from "./http-interceptors/cache-token.service"; |
||||||
import { TreeService } from './http-interceptors/tree.service'; |
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 { DataCollectionModule } from './data-collection/data-collection.module'; |
import { DataCollectionModule } from "./data-collection/data-collection.module"; |
||||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; |
import { MatProgressSpinnerModule } from "@angular/material/progress-spinner"; |
||||||
import { TestComponent } from './test/test.component'; |
import { TestComponent } from "./test/test.component"; |
||||||
import { ExternalLinksPlanComponent } from './external-links-plan/external-links-plan.component'; |
import { ExternalLinksPlanComponent } from "./external-links-plan/external-links-plan.component"; |
||||||
import { SearchDownList } from '../modules/map/declare/component/SearchDownListPlugins/SearchDownList'; |
import { SearchDownList } from "../modules/map/declare/component/SearchDownListPlugins/SearchDownList"; |
||||||
import { ExportExcelComponent } from './export-excel/export-excel.component'; |
import { ExportExcelComponent } from "./export-excel/export-excel.component"; |
||||||
import { registerLocaleData } from '@angular/common'; |
import { registerLocaleData } from "@angular/common"; |
||||||
import zh from '@angular/common/locales/zh'; |
import zh from "@angular/common/locales/zh"; |
||||||
|
import { KeyUnitModule } from "./key-unit/key-unit.module"; |
||||||
|
import { MatTabsModule } from "@angular/material/tabs"; |
||||||
registerLocaleData(zh); |
registerLocaleData(zh); |
||||||
@NgModule({ |
@NgModule({ |
||||||
declarations: [ |
declarations: [ |
||||||
AppComponent, |
AppComponent, |
||||||
HomeComponent, |
HomeComponent, |
||||||
MTokenK1Component, |
MTokenK1Component, |
||||||
TestComponent, |
TestComponent, |
||||||
ExternalLinksPlanComponent, |
ExternalLinksPlanComponent, |
||||||
SearchDownList, |
SearchDownList, |
||||||
ExportExcelComponent |
ExportExcelComponent, |
||||||
], |
], |
||||||
imports: [ |
imports: [ |
||||||
BrowserModule, |
BrowserModule, |
||||||
AppRoutingModule, |
AppRoutingModule, |
||||||
BrowserAnimationsModule, |
BrowserAnimationsModule, |
||||||
MatButtonModule, |
MatButtonModule, |
||||||
MatCheckboxModule, |
MatCheckboxModule, |
||||||
MatSidenavModule, |
MatSidenavModule, |
||||||
NavigationModule, |
NavigationModule, |
||||||
MatIconModule, |
MatIconModule, |
||||||
PagesModule, |
PagesModule, |
||||||
FormsModule, |
FormsModule, |
||||||
HttpClientModule, |
HttpClientModule, |
||||||
CountdownModule, |
CountdownModule, |
||||||
GISManagementModule, |
GISManagementModule, |
||||||
DataCollectionModule, |
DataCollectionModule, |
||||||
MatProgressSpinnerModule, |
MatProgressSpinnerModule, |
||||||
UiModule |
UiModule, |
||||||
], |
KeyUnitModule, |
||||||
providers: [httpInterceptorProviders, CacheTokenService, TreeService], |
MatTabsModule |
||||||
bootstrap: [AppComponent] |
], |
||||||
|
providers: [httpInterceptorProviders, CacheTokenService, TreeService], |
||||||
|
bootstrap: [AppComponent], |
||||||
}) |
}) |
||||||
export class AppModule { } |
export class AppModule {} |
||||||
|
@ -1,11 +1,71 @@ |
|||||||
<!-- 株洲项目:传入预案id显示相应预案 --> |
<mat-tab-group selectedIndex="10" style="height: 99%;"> |
||||||
<div *ngIf="showType == 0"> |
<mat-tab label="1.基本信息"> |
||||||
<iframe id="inneriframe" [src]='iframeSrc' frameborder="0" style="width: 100%;height: 100%;"></iframe> |
<ng-template matTabContent> |
||||||
</div> |
<app-basicinfo-look></app-basicinfo-look> |
||||||
<div *ngIf="showType == 1" id="viewer"></div> |
</ng-template> |
||||||
<div *ngIf="showType == 2"> |
</mat-tab> |
||||||
<iframe id="inneriframe2" [src]='threedUrl' frameborder="0" style="width: 100%;height: 100%;"></iframe> |
<mat-tab label="2.四周毗邻"> |
||||||
</div> |
<ng-template matTabContent> |
||||||
<div *ngIf="showType == 3"> |
<app-allaround></app-allaround> |
||||||
<app-collection-tools></app-collection-tools> |
</ng-template> |
||||||
</div> |
</mat-tab> |
||||||
|
<mat-tab label="3.消防设施"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-fire-fighting-device-look></app-fire-fighting-device-look> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="4.重点部位"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-key-site-look></app-key-site-look> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="5.功能分区"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-function-division-look></app-function-division-look> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="6.行车路线"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-router-gis></app-router-gis> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="7.周边水源及力量"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-water-road></app-water-road> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="8.实景图"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-realistic-picture-look></app-realistic-picture-look> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="9.上传CAD"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-uploading-cad-look></app-uploading-cad-look> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="10.特别警示"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-special-warning></app-special-warning> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="11.作战部署"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<div *ngIf="showType == 0"> |
||||||
|
<iframe id="inneriframe" [src]='iframeSrc' frameborder="0" style="width: 100%;height: 100%;"></iframe> |
||||||
|
</div> |
||||||
|
<div *ngIf="showType == 1" id="viewer"></div> |
||||||
|
<!-- <div *ngIf="showType == 2"> |
||||||
|
<iframe id="inneriframe2" [src]='threedUrl' frameborder="0" style="width: 100%;height: 100%;"></iframe> |
||||||
|
</div> --> |
||||||
|
<div *ngIf="showType == 3"> |
||||||
|
<app-collection-tools></app-collection-tools> |
||||||
|
</div> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
|
||||||
|
</mat-tab-group> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 株洲项目:传入预案id显示相应预案 --> |
Loading…
Reference in new issue