6 changed files with 303 additions and 225 deletions
@ -1,63 +1,67 @@
|
||||
import { BrowserModule } from '@angular/platform-browser'; |
||||
import { NgModule } from '@angular/core'; |
||||
import { AppRoutingModule } from './app-routing.module'; |
||||
import { AppComponent } from './app.component'; |
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
||||
import { MatButtonModule } from '@angular/material/button'; |
||||
import { MatCheckboxModule } from '@angular/material/checkbox'; |
||||
import { MatIconModule } from '@angular/material/icon'; |
||||
import { MatSidenavModule } from '@angular/material/sidenav'; |
||||
import { NavigationModule } from './navigation/navigation.module'; |
||||
import { HomeComponent } from './home/home.component'; |
||||
import { TabbarComponent } from './tabbar/tabbar.component'; |
||||
import { PagesModule } from './pages/pages.module'; |
||||
import { FormsModule } from '@angular/forms'; |
||||
import { UiModule } from './ui/ui.module'; |
||||
import { HttpClientModule } from '@angular/common/http'; |
||||
import { httpInterceptorProviders } from './http-interceptors/index' |
||||
import { CacheTokenService } from './http-interceptors/cache-token.service' |
||||
import { TreeService } from './http-interceptors/tree.service'; |
||||
import { MTokenK1Component } from './m-token-k1/m-token-k1.component' //K1秘钥
|
||||
import { CountdownModule } from 'ngx-countdown'; //倒计时插件
|
||||
import { GISManagementModule } from './gis-management/gis-management.module'; |
||||
import { DataCollectionModule } from './data-collection/data-collection.module'; |
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; |
||||
import { TestComponent } from './test/test.component'; |
||||
import { ExternalLinksPlanComponent } from './external-links-plan/external-links-plan.component'; |
||||
import { SearchDownList } from '../modules/map/declare/component/SearchDownListPlugins/SearchDownList'; |
||||
import { ExportExcelComponent } from './export-excel/export-excel.component'; |
||||
import { registerLocaleData } from '@angular/common'; |
||||
import zh from '@angular/common/locales/zh'; |
||||
import { BrowserModule } from "@angular/platform-browser"; |
||||
import { NgModule } from "@angular/core"; |
||||
import { AppRoutingModule } from "./app-routing.module"; |
||||
import { AppComponent } from "./app.component"; |
||||
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; |
||||
import { MatButtonModule } from "@angular/material/button"; |
||||
import { MatCheckboxModule } from "@angular/material/checkbox"; |
||||
import { MatIconModule } from "@angular/material/icon"; |
||||
import { MatSidenavModule } from "@angular/material/sidenav"; |
||||
import { NavigationModule } from "./navigation/navigation.module"; |
||||
import { HomeComponent } from "./home/home.component"; |
||||
import { TabbarComponent } from "./tabbar/tabbar.component"; |
||||
import { PagesModule } from "./pages/pages.module"; |
||||
import { FormsModule } from "@angular/forms"; |
||||
import { UiModule } from "./ui/ui.module"; |
||||
import { HttpClientModule } from "@angular/common/http"; |
||||
import { httpInterceptorProviders } from "./http-interceptors/index"; |
||||
import { CacheTokenService } from "./http-interceptors/cache-token.service"; |
||||
import { TreeService } from "./http-interceptors/tree.service"; |
||||
import { MTokenK1Component } from "./m-token-k1/m-token-k1.component"; //K1秘钥
|
||||
import { CountdownModule } from "ngx-countdown"; //倒计时插件
|
||||
import { GISManagementModule } from "./gis-management/gis-management.module"; |
||||
import { DataCollectionModule } from "./data-collection/data-collection.module"; |
||||
import { MatProgressSpinnerModule } from "@angular/material/progress-spinner"; |
||||
import { TestComponent } from "./test/test.component"; |
||||
import { ExternalLinksPlanComponent } from "./external-links-plan/external-links-plan.component"; |
||||
import { SearchDownList } from "../modules/map/declare/component/SearchDownListPlugins/SearchDownList"; |
||||
import { ExportExcelComponent } from "./export-excel/export-excel.component"; |
||||
import { registerLocaleData } from "@angular/common"; |
||||
import zh from "@angular/common/locales/zh"; |
||||
import { KeyUnitModule } from "./key-unit/key-unit.module"; |
||||
import { MatTabsModule } from "@angular/material/tabs"; |
||||
registerLocaleData(zh); |
||||
@NgModule({ |
||||
declarations: [ |
||||
AppComponent, |
||||
HomeComponent, |
||||
MTokenK1Component, |
||||
TestComponent, |
||||
ExternalLinksPlanComponent, |
||||
SearchDownList, |
||||
ExportExcelComponent |
||||
], |
||||
imports: [ |
||||
BrowserModule, |
||||
AppRoutingModule, |
||||
BrowserAnimationsModule, |
||||
MatButtonModule, |
||||
MatCheckboxModule, |
||||
MatSidenavModule, |
||||
NavigationModule, |
||||
MatIconModule, |
||||
PagesModule, |
||||
FormsModule, |
||||
HttpClientModule, |
||||
CountdownModule, |
||||
GISManagementModule, |
||||
DataCollectionModule, |
||||
MatProgressSpinnerModule, |
||||
UiModule |
||||
], |
||||
providers: [httpInterceptorProviders, CacheTokenService, TreeService], |
||||
bootstrap: [AppComponent] |
||||
declarations: [ |
||||
AppComponent, |
||||
HomeComponent, |
||||
MTokenK1Component, |
||||
TestComponent, |
||||
ExternalLinksPlanComponent, |
||||
SearchDownList, |
||||
ExportExcelComponent, |
||||
], |
||||
imports: [ |
||||
BrowserModule, |
||||
AppRoutingModule, |
||||
BrowserAnimationsModule, |
||||
MatButtonModule, |
||||
MatCheckboxModule, |
||||
MatSidenavModule, |
||||
NavigationModule, |
||||
MatIconModule, |
||||
PagesModule, |
||||
FormsModule, |
||||
HttpClientModule, |
||||
CountdownModule, |
||||
GISManagementModule, |
||||
DataCollectionModule, |
||||
MatProgressSpinnerModule, |
||||
UiModule, |
||||
KeyUnitModule, |
||||
MatTabsModule |
||||
], |
||||
providers: [httpInterceptorProviders, CacheTokenService, TreeService], |
||||
bootstrap: [AppComponent], |
||||
}) |
||||
export class AppModule { } |
||||
export class AppModule {} |
||||
|
@ -1,11 +1,71 @@
|
||||
<!-- 株洲项目:传入预案id显示相应预案 --> |
||||
<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> |
||||
<mat-tab-group selectedIndex="10" style="height: 99%;"> |
||||
<mat-tab label="1.基本信息"> |
||||
<ng-template matTabContent> |
||||
<app-basicinfo-look></app-basicinfo-look> |
||||
</ng-template> |
||||
</mat-tab> |
||||
<mat-tab label="2.四周毗邻"> |
||||
<ng-template matTabContent> |
||||
<app-allaround></app-allaround> |
||||
</ng-template> |
||||
</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