Compare commits
78 Commits
Author | SHA1 | Date |
---|---|---|
|
311da85ea1 | 1 month ago |
|
3799207fad | 2 months ago |
|
cca7eb69cb | 2 months ago |
|
f549bdddee | 3 months ago |
|
5477317eb3 | 5 months ago |
|
39832ce94f | 10 months ago |
|
ed1f680b76 | 10 months ago |
|
1d34e328e3 | 10 months ago |
|
0980d84ca3 | 12 months ago |
|
8e24430c91 | 1 year ago |
|
de4f21a50e | 1 year ago |
|
3b3d841de0 | 1 year ago |
|
0e576e149f | 1 year ago |
|
0b0405af2c | 1 year ago |
|
c5bdcd5fa7 | 1 year ago |
|
56bb98000e | 1 year ago |
|
c897c18244 | 1 year ago |
|
a9706d32e3 | 1 year ago |
|
8fe4e0a875 | 1 year ago |
|
892a11cbe9 | 1 year ago |
|
c4ebd842cd | 1 year ago |
|
b1c382b51d | 1 year ago |
|
e4b418048d | 1 year ago |
|
326b7dc782 | 1 year ago |
|
4fa2f38f51 | 1 year ago |
|
5b6f55359e | 1 year ago |
|
d48ab61752 | 2 years ago |
|
b4d4c892a6 | 2 years ago |
|
34a45a0c3a | 2 years ago |
|
af5da5c315 | 2 years ago |
|
de0f601460 | 2 years ago |
|
53387b0c59 | 2 years ago |
|
39e6672992 | 2 years ago |
|
748e932959 | 2 years ago |
|
627a19c13f | 2 years ago |
|
24b584b99f | 2 years ago |
|
80512680ad | 2 years ago |
|
76bbe10e0c | 2 years ago |
|
a7fdba960f | 2 years ago |
|
414ef96b0f | 2 years ago |
|
3be6452604 | 2 years ago |
|
ddf28910dd | 2 years ago |
|
cd688567e7 | 2 years ago |
|
e3396929f1 | 2 years ago |
![]() |
2848b06371 | 2 years ago |
|
c7ff17cecc | 2 years ago |
|
9845869c3c | 2 years ago |
![]() |
889642262b | 2 years ago |
|
50515a8756 | 2 years ago |
|
d72f15ab8f | 2 years ago |
|
dd13bb0b6b | 2 years ago |
|
058a702cf3 | 2 years ago |
|
f42a1276cb | 2 years ago |
|
b697284c8c | 2 years ago |
|
75d7e634af | 2 years ago |
|
721be9145e | 2 years ago |
|
8b369d14a6 | 2 years ago |
|
8669435fcc | 2 years ago |
|
648a04b4a0 | 2 years ago |
|
ad9fc5d4c4 | 2 years ago |
|
9d8159f38b | 2 years ago |
|
6429ac3166 | 2 years ago |
|
d0b48c582f | 2 years ago |
|
fbe5cdc154 | 2 years ago |
|
4daf0419c7 | 2 years ago |
|
fe40d42983 | 2 years ago |
|
ace52511a8 | 2 years ago |
|
dd4dbd7051 | 2 years ago |
|
0e06d9fd89 | 2 years ago |
|
1a25e07d96 | 2 years ago |
|
078c69cf58 | 2 years ago |
|
5ffca01f19 | 2 years ago |
|
ff10a9cce6 | 2 years ago |
|
8c9a026fb4 | 2 years ago |
|
83770e08c7 | 2 years ago |
|
1d97dc8ef8 | 2 years ago |
|
05d8ed8f20 | 2 years ago |
|
a29982e204 | 2 years ago |
157 changed files with 33665 additions and 23726 deletions
@ -1,7 +1,10 @@ |
|||||||
{ |
{ |
||||||
"/api": { |
"/api": { |
||||||
"target": "http://121.36.37.70:8205", |
"target": "http://121.36.37.70:8201/", |
||||||
"secure": false, |
"生产": "http://10.81.73.39:8000/", |
||||||
"changeOrigin": true |
"测试": "http://121.36.37.70:8201/", |
||||||
} |
"生产2": "http://183.194.244.232:8088/", |
||||||
} |
"secure": false, |
||||||
|
"changeOrigin": true |
||||||
|
} |
||||||
|
} |
||||||
|
@ -1,61 +1,69 @@ |
|||||||
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 zh from "@angular/common/locales/zh"; |
||||||
|
import { KeyUnitModule } from "./key-unit/key-unit.module"; |
||||||
|
import { MatTabsModule } from "@angular/material/tabs"; |
||||||
|
import { PlanManagementModule } from "./plan-management/plan-management.module"; |
||||||
|
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] |
PlanManagementModule, |
||||||
|
], |
||||||
|
providers: [httpInterceptorProviders, CacheTokenService, TreeService], |
||||||
|
bootstrap: [AppComponent], |
||||||
}) |
}) |
||||||
export class AppModule { } |
export class AppModule {} |
||||||
|
@ -1,31 +1,70 @@ |
|||||||
import { Injectable } from '@angular/core'; |
import { HttpClient } from "@angular/common/http"; |
||||||
import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router'; |
import { Injectable } from "@angular/core"; |
||||||
|
import { |
||||||
|
CanActivate, |
||||||
|
ActivatedRouteSnapshot, |
||||||
|
RouterStateSnapshot, |
||||||
|
Router, |
||||||
|
} from "@angular/router"; |
||||||
|
|
||||||
@Injectable({ |
@Injectable({ |
||||||
providedIn: 'root' |
providedIn: "root", |
||||||
}) |
}) |
||||||
export class AuthGuard implements CanActivate { |
export class AuthGuard implements CanActivate { |
||||||
|
constructor(private http: HttpClient, private router: Router) {} |
||||||
|
|
||||||
constructor(private router: Router) { |
// 路由守卫
|
||||||
|
async canActivate( |
||||||
|
next: ActivatedRouteSnapshot, |
||||||
|
state: RouterStateSnapshot |
||||||
|
): Promise<boolean> { |
||||||
|
console.log("next", next); |
||||||
|
console.log("state", state); |
||||||
|
|
||||||
|
if ( |
||||||
|
next.queryParams.singleSignOn && |
||||||
|
next.queryParams.singleSignOn === "true" |
||||||
|
) { |
||||||
|
//执行自动登录逻辑
|
||||||
|
await this.onSubmit(); |
||||||
} |
} |
||||||
|
return this.checkLogin(); |
||||||
|
} |
||||||
|
|
||||||
// 路由守卫
|
checkLogin(): boolean { |
||||||
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean { |
// 判断本地有没有token
|
||||||
|
const token = sessionStorage.getItem("token"); |
||||||
|
|
||||||
return this.checkLogin(); |
// 如果有token,允许访问
|
||||||
|
if (token) { |
||||||
|
return true; |
||||||
} |
} |
||||||
|
|
||||||
checkLogin(): boolean { |
//如果没有token,跳转登录页
|
||||||
|
this.router.navigate(["/login"]); |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
// 判断本地有没有token
|
onSubmit() { |
||||||
const token = sessionStorage.getItem('token'); |
return new Promise<void>((resolve, reject) => { |
||||||
|
this.http |
||||||
// 如果有token,允许访问
|
.post("/api/Account/SignIn", { |
||||||
if (token) { return true; } |
name: "superadmin", |
||||||
|
password: "SHya119!@", |
||||||
//如果没有token,跳转登录页
|
}) |
||||||
this.router.navigate(['/login']); |
.subscribe( |
||||||
return false; |
(data: any) => { |
||||||
} |
sessionStorage.setItem("level", data.level); |
||||||
|
sessionStorage.setItem("token", data.token); |
||||||
|
sessionStorage.setItem("refreshToken", data.refreshToken); |
||||||
|
sessionStorage.setItem("isDefaultPassword", data.isDefaultPassword); //是否需要修改默认密码
|
||||||
|
sessionStorage.setItem("singleSignOn", "true"); //是否需要修改默认密码
|
||||||
|
resolve(); |
||||||
|
}, |
||||||
|
(err) => { |
||||||
|
reject(); |
||||||
|
} |
||||||
|
); |
||||||
|
}); |
||||||
|
} |
||||||
} |
} |
||||||
|
@ -1,11 +1,73 @@ |
|||||||
<!-- 株洲项目:传入预案id显示相应预案 --> |
<mat-tab-group *ngIf="planId" 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 == 3"> |
||||||
|
<app-collection-tools></app-collection-tools> |
||||||
|
</div> |
||||||
|
|
||||||
|
<!-- 在线编制预案 --> |
||||||
|
<div *ngIf="showType == 2"> |
||||||
|
<app-create-plan-online-five></app-create-plan-online-five> |
||||||
|
</div> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
|
||||||
|
</mat-tab-group> |
||||||
|
|
||||||
|
<div *ngIf="unitId"> |
||||||
|
<app-basicinfo-look></app-basicinfo-look> |
||||||
|
</div> |
File diff suppressed because it is too large
Load Diff
@ -1,121 +1,154 @@ |
|||||||
import { NgModule } from '@angular/core'; |
import { NgModule } from "@angular/core"; |
||||||
import { CommonModule } from '@angular/common'; |
import { CommonModule } from "@angular/common"; |
||||||
import { DownloadFile, GisLabelingComponent, LookPlanDialog, ShareUrlDialog } from './gis-labeling/gis-labeling.component'; |
import { |
||||||
import {A11yModule} from '@angular/cdk/a11y'; |
DownloadFile, |
||||||
import {DragDropModule} from '@angular/cdk/drag-drop'; |
GisLabelingComponent, |
||||||
import {PortalModule} from '@angular/cdk/portal'; |
LookPlanDialog, |
||||||
import {ScrollingModule} from '@angular/cdk/scrolling'; |
ShareUrlDialog, |
||||||
import {CdkStepperModule} from '@angular/cdk/stepper'; |
} from "./gis-labeling/gis-labeling.component"; |
||||||
import {CdkTableModule} from '@angular/cdk/table'; |
import { A11yModule } from "@angular/cdk/a11y"; |
||||||
import {CdkTreeModule} from '@angular/cdk/tree'; |
import { DragDropModule } from "@angular/cdk/drag-drop"; |
||||||
import {MatAutocompleteModule} from '@angular/material/autocomplete'; |
import { PortalModule } from "@angular/cdk/portal"; |
||||||
import {MatBadgeModule} from '@angular/material/badge'; |
import { ScrollingModule } from "@angular/cdk/scrolling"; |
||||||
import {MatBottomSheetModule} from '@angular/material/bottom-sheet'; |
import { CdkStepperModule } from "@angular/cdk/stepper"; |
||||||
import {MatButtonModule} from '@angular/material/button'; |
import { CdkTableModule } from "@angular/cdk/table"; |
||||||
import {MatButtonToggleModule} from '@angular/material/button-toggle'; |
import { CdkTreeModule } from "@angular/cdk/tree"; |
||||||
import {MatCardModule} from '@angular/material/card'; |
import { MatAutocompleteModule } from "@angular/material/autocomplete"; |
||||||
import {MatCheckboxModule} from '@angular/material/checkbox'; |
import { MatBadgeModule } from "@angular/material/badge"; |
||||||
import {MatChipsModule} from '@angular/material/chips'; |
import { MatBottomSheetModule } from "@angular/material/bottom-sheet"; |
||||||
import {MatStepperModule} from '@angular/material/stepper'; |
import { MatButtonModule } from "@angular/material/button"; |
||||||
import {MatDatepickerModule} from '@angular/material/datepicker'; |
import { MatButtonToggleModule } from "@angular/material/button-toggle"; |
||||||
import {MatDialogModule} from '@angular/material/dialog'; |
import { MatCardModule } from "@angular/material/card"; |
||||||
import {MatDividerModule} from '@angular/material/divider'; |
import { MatCheckboxModule } from "@angular/material/checkbox"; |
||||||
import {MatExpansionModule} from '@angular/material/expansion'; |
import { MatChipsModule } from "@angular/material/chips"; |
||||||
import {MatGridListModule} from '@angular/material/grid-list'; |
import { MatStepperModule } from "@angular/material/stepper"; |
||||||
import {MatIconModule} from '@angular/material/icon'; |
import { MatDatepickerModule } from "@angular/material/datepicker"; |
||||||
import {MatInputModule} from '@angular/material/input'; |
import { MatDialogModule } from "@angular/material/dialog"; |
||||||
import {MatListModule} from '@angular/material/list'; |
import { MatDividerModule } from "@angular/material/divider"; |
||||||
import {MatMenuModule} from '@angular/material/menu'; |
import { MatExpansionModule } from "@angular/material/expansion"; |
||||||
import {MatNativeDateModule, MatRippleModule, MatOption} from '@angular/material/core'; |
import { MatGridListModule } from "@angular/material/grid-list"; |
||||||
import {MatPaginatorModule} from '@angular/material/paginator'; |
import { MatIconModule } from "@angular/material/icon"; |
||||||
import {MatProgressBarModule} from '@angular/material/progress-bar'; |
import { MatInputModule } from "@angular/material/input"; |
||||||
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; |
import { MatListModule } from "@angular/material/list"; |
||||||
import {MatRadioModule} from '@angular/material/radio'; |
import { MatMenuModule } from "@angular/material/menu"; |
||||||
import {MatSelectModule} from '@angular/material/select'; |
import { |
||||||
import {MatSidenavModule} from '@angular/material/sidenav'; |
MatNativeDateModule, |
||||||
import {MatSliderModule} from '@angular/material/slider'; |
MatRippleModule, |
||||||
import {MatSlideToggleModule} from '@angular/material/slide-toggle'; |
MatOption, |
||||||
import {MatSnackBarModule} from '@angular/material/snack-bar'; |
} from "@angular/material/core"; |
||||||
import {MatSortModule} from '@angular/material/sort'; |
import { MatPaginatorModule } from "@angular/material/paginator"; |
||||||
import {MatTableModule} from '@angular/material/table'; |
import { MatProgressBarModule } from "@angular/material/progress-bar"; |
||||||
import {MatTabsModule} from '@angular/material/tabs'; |
import { MatProgressSpinnerModule } from "@angular/material/progress-spinner"; |
||||||
import {MatToolbarModule} from '@angular/material/toolbar'; |
import { MatRadioModule } from "@angular/material/radio"; |
||||||
import {MatTooltipModule} from '@angular/material/tooltip'; |
import { MatSelectModule } from "@angular/material/select"; |
||||||
import {MatTreeModule} from '@angular/material/tree'; |
import { MatSidenavModule } from "@angular/material/sidenav"; |
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
import { MatSliderModule } from "@angular/material/slider"; |
||||||
import { GisRoutingModule } from './gis-management-routing.module'; |
import { MatSlideToggleModule } from "@angular/material/slide-toggle"; |
||||||
import { LeftWorkingComponent } from './left-working/left-working.component'; |
import { MatSnackBarModule } from "@angular/material/snack-bar"; |
||||||
import { BasicInfoComponent } from './basic-info/basic-info.component'; |
import { MatSortModule } from "@angular/material/sort"; |
||||||
import { FunctionPartitionComponent } from './function-partition/function-partition.component'; |
import { MatTableModule } from "@angular/material/table"; |
||||||
import { FireFacilitiesComponent } from './fire-facilities/fire-facilities.component'; |
import { MatTabsModule } from "@angular/material/tabs"; |
||||||
import {ImagesData2}from './fire-facilities/imagesdata.component' |
import { MatToolbarModule } from "@angular/material/toolbar"; |
||||||
import {AllaroundComponent} from './allaround/allaround.component' |
import { MatTooltipModule } from "@angular/material/tooltip"; |
||||||
import {ImgDetails}from './allaround/imgdetails.component'; |
import { MatTreeModule } from "@angular/material/tree"; |
||||||
import {KeySiteLookComponent} from './key-site-look/key-site.component' |
import { FormsModule, ReactiveFormsModule } from "@angular/forms"; |
||||||
import {KeySiteImgs2}from './key-site-look/keysiteimgs.component' |
import { GisRoutingModule } from "./gis-management-routing.module"; |
||||||
import {RealisticPictureLookComponent} from './realistic-picture-look/realistic-picture.component' |
import { LeftWorkingComponent } from "./left-working/left-working.component"; |
||||||
import {previewImg3} from './realistic-picture-look/realistic-picture.component' |
import { BasicInfoComponent } from "./basic-info/basic-info.component"; |
||||||
import { OpenPlanToolDialog, PlanListComponent } from './plan-list/plan-list.component'; |
import { FunctionPartitionComponent } from "./function-partition/function-partition.component"; |
||||||
import { PlanManagementModule } from '../plan-management/plan-management.module'; |
import { FireFacilitiesComponent } from "./fire-facilities/fire-facilities.component"; |
||||||
import { UiModule } from '../ui/ui.module'; |
import { ImagesData2 } from "./fire-facilities/imagesdata.component"; |
||||||
import { CadDrawComponent } from './cad-draw/cad-draw.component'; |
import { AllaroundComponent } from "./allaround/allaround.component"; |
||||||
import {previewBigImg2} from './fire-facilities/imagesdata.component' |
import { ImgDetails } from "./allaround/imgdetails.component"; |
||||||
|
import { KeySiteLookComponent } from "./key-site-look/key-site.component"; |
||||||
|
import { KeySiteImgs2 } from "./key-site-look/keysiteimgs.component"; |
||||||
|
import { RealisticPictureLookComponent } from "./realistic-picture-look/realistic-picture.component"; |
||||||
|
import { previewImg3 } from "./realistic-picture-look/realistic-picture.component"; |
||||||
|
import { |
||||||
|
OpenPlanToolDialog, |
||||||
|
PlanListComponent, |
||||||
|
} from "./plan-list/plan-list.component"; |
||||||
|
import { PlanManagementModule } from "../plan-management/plan-management.module"; |
||||||
|
import { UiModule } from "../ui/ui.module"; |
||||||
|
import { CadDrawComponent } from "./cad-draw/cad-draw.component"; |
||||||
|
import { previewBigImg2 } from "./fire-facilities/imagesdata.component"; |
||||||
|
import { NzAutocompleteModule } from "ng-zorro-antd/auto-complete"; |
||||||
|
|
||||||
@NgModule({ |
@NgModule({ |
||||||
declarations: [GisLabelingComponent, LeftWorkingComponent, FunctionPartitionComponent, RealisticPictureLookComponent,previewImg3,previewBigImg2, |
declarations: [ |
||||||
FireFacilitiesComponent,ImagesData2,AllaroundComponent,ImgDetails,KeySiteLookComponent,KeySiteImgs2,BasicInfoComponent,FunctionPartitionComponent,ShareUrlDialog, PlanListComponent,LookPlanDialog,DownloadFile,OpenPlanToolDialog, CadDrawComponent], |
GisLabelingComponent, |
||||||
|
LeftWorkingComponent, |
||||||
|
FunctionPartitionComponent, |
||||||
|
RealisticPictureLookComponent, |
||||||
|
previewImg3, |
||||||
|
previewBigImg2, |
||||||
|
FireFacilitiesComponent, |
||||||
|
ImagesData2, |
||||||
|
AllaroundComponent, |
||||||
|
ImgDetails, |
||||||
|
KeySiteLookComponent, |
||||||
|
KeySiteImgs2, |
||||||
|
BasicInfoComponent, |
||||||
|
FunctionPartitionComponent, |
||||||
|
ShareUrlDialog, |
||||||
|
PlanListComponent, |
||||||
|
LookPlanDialog, |
||||||
|
DownloadFile, |
||||||
|
OpenPlanToolDialog, |
||||||
|
CadDrawComponent, |
||||||
|
], |
||||||
|
|
||||||
imports: [ |
imports: [ |
||||||
CommonModule, |
CommonModule, |
||||||
CommonModule, |
CommonModule, |
||||||
GisRoutingModule, |
GisRoutingModule, |
||||||
A11yModule, |
A11yModule, |
||||||
CdkStepperModule, |
CdkStepperModule, |
||||||
CdkTableModule, |
CdkTableModule, |
||||||
CdkTreeModule, |
CdkTreeModule, |
||||||
DragDropModule, |
DragDropModule, |
||||||
MatAutocompleteModule, |
MatAutocompleteModule, |
||||||
MatBadgeModule, |
MatBadgeModule, |
||||||
MatBottomSheetModule, |
MatBottomSheetModule, |
||||||
MatButtonModule, |
MatButtonModule, |
||||||
MatButtonToggleModule, |
MatButtonToggleModule, |
||||||
MatCardModule, |
MatCardModule, |
||||||
MatCheckboxModule, |
MatCheckboxModule, |
||||||
MatChipsModule, |
MatChipsModule, |
||||||
MatStepperModule, |
MatStepperModule, |
||||||
MatDatepickerModule, |
MatDatepickerModule, |
||||||
MatDialogModule, |
MatDialogModule, |
||||||
MatDividerModule, |
MatDividerModule, |
||||||
MatExpansionModule, |
MatExpansionModule, |
||||||
MatGridListModule, |
MatGridListModule, |
||||||
MatIconModule, |
MatIconModule, |
||||||
MatInputModule, |
MatInputModule, |
||||||
MatListModule, |
MatListModule, |
||||||
MatMenuModule, |
MatMenuModule, |
||||||
MatNativeDateModule, |
MatNativeDateModule, |
||||||
MatPaginatorModule, |
MatPaginatorModule, |
||||||
MatProgressBarModule, |
MatProgressBarModule, |
||||||
MatProgressSpinnerModule, |
MatProgressSpinnerModule, |
||||||
MatRadioModule, |
MatRadioModule, |
||||||
MatRippleModule, |
MatRippleModule, |
||||||
MatSelectModule, |
MatSelectModule, |
||||||
MatSidenavModule, |
MatSidenavModule, |
||||||
MatSliderModule, |
MatSliderModule, |
||||||
MatSlideToggleModule, |
MatSlideToggleModule, |
||||||
MatSnackBarModule, |
MatSnackBarModule, |
||||||
MatSortModule, |
MatSortModule, |
||||||
MatTableModule, |
MatTableModule, |
||||||
MatTabsModule, |
MatTabsModule, |
||||||
MatToolbarModule, |
MatToolbarModule, |
||||||
MatTooltipModule, |
MatTooltipModule, |
||||||
MatTreeModule, |
MatTreeModule, |
||||||
PortalModule, |
PortalModule, |
||||||
ScrollingModule, |
ScrollingModule, |
||||||
FormsModule, |
FormsModule, |
||||||
ReactiveFormsModule, |
ReactiveFormsModule, |
||||||
PlanManagementModule, |
PlanManagementModule, |
||||||
UiModule |
UiModule, |
||||||
] |
NzAutocompleteModule, |
||||||
|
], |
||||||
}) |
}) |
||||||
export class GISManagementModule { } |
export class GISManagementModule {} |
||||||
|
@ -1,40 +1,34 @@ |
|||||||
import { Injectable } from '@angular/core'; |
import { Injectable } from "@angular/core"; |
||||||
import { HttpClient } from '@angular/common/http' |
import { HttpClient } from "@angular/common/http"; |
||||||
|
|
||||||
@Injectable({ |
@Injectable({ |
||||||
providedIn: 'root' |
providedIn: "root", |
||||||
}) |
}) |
||||||
|
|
||||||
export class CacheTokenService { |
export class CacheTokenService { |
||||||
|
constructor(private http: HttpClient) {} |
||||||
constructor(private http:HttpClient) { } |
|
||||||
public timer; |
public timer; |
||||||
|
|
||||||
//刷新token令牌定时器
|
//刷新token令牌定时器
|
||||||
startUp = ():void=>{ |
startUp = (): void => { |
||||||
window.clearInterval(this.timer) //清一遍定时器
|
window.clearInterval(this.timer); //清一遍定时器
|
||||||
this.timer = window.setInterval(()=>{ |
this.timer = window.setInterval(() => { |
||||||
var token = sessionStorage.getItem("token"); |
var token = sessionStorage.getItem("token"); |
||||||
var refreshToken = sessionStorage.getItem("refreshToken"); |
var refreshToken = sessionStorage.getItem("refreshToken"); |
||||||
this.http.post('/api/Account/RefreshToken', { |
this.http |
||||||
token: token, |
.post("/api/Account/RefreshToken", { |
||||||
refreshToken: refreshToken |
token: token, |
||||||
}).subscribe((data:any) => { |
refreshToken: refreshToken, |
||||||
sessionStorage.setItem("level",data.level); |
}) |
||||||
sessionStorage.setItem("token",data.token); |
.subscribe((data: any) => { |
||||||
sessionStorage.setItem("refreshToken",data.refreshToken); |
sessionStorage.setItem("level", data.level); |
||||||
}) |
sessionStorage.setItem("token", data.token); |
||||||
},18*60*1000) |
sessionStorage.setItem("refreshToken", data.refreshToken); |
||||||
|
}); |
||||||
} |
}, 5 * 60 * 1000); |
||||||
|
}; |
||||||
|
|
||||||
|
|
||||||
//删除定时器
|
//删除定时器
|
||||||
delete = ():void=> { |
delete = (): void => { |
||||||
window.clearInterval(this.timer) |
window.clearInterval(this.timer); |
||||||
} |
}; |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} |
} |
||||||
|
@ -1,93 +1,102 @@ |
|||||||
/* |
/* |
||||||
* @Descripttion:
|
* @Descripttion: |
||||||
* @version:
|
* @version: |
||||||
* @Author: sueRimn |
* @Author: sueRimn |
||||||
* @Date: 2020-12-24 10:59:48 |
* @Date: 2020-12-24 10:59:48 |
||||||
* @LastEditors: sueRimn |
* @LastEditors: sueRimn |
||||||
* @LastEditTime: 2021-04-09 17:12:59 |
* @LastEditTime: 2021-04-09 17:12:59 |
||||||
*/ |
*/ |
||||||
export interface Data { |
export interface Data { |
||||||
token:string, |
token: string; |
||||||
refreshToken:string, |
refreshToken: string; |
||||||
expires: number, |
expires: number; |
||||||
realName:string, |
realName: string; |
||||||
level:any, |
level: any; |
||||||
isDefaultPassword:string |
isDefaultPassword: string; |
||||||
} |
} |
||||||
|
|
||||||
export interface windows { |
export interface windows { |
||||||
token:string |
token: string; |
||||||
} |
} |
||||||
export enum isno { |
export enum isno { |
||||||
"是", |
"是", |
||||||
"否" |
"否", |
||||||
} |
} |
||||||
|
|
||||||
export enum PlanTypeEnum { |
export enum PlanTypeEnum { |
||||||
"zero", |
"zero", |
||||||
"二维预案", |
"二维预案", |
||||||
"三维预案", |
"三维预案", |
||||||
"three", |
"three", |
||||||
"其他预案", |
"其他预案", |
||||||
"five", |
"five", |
||||||
"six", |
"six", |
||||||
"seven", |
"seven", |
||||||
"卡片预案", |
"卡片预案", |
||||||
"none", |
"none", |
||||||
"teen", |
"teen", |
||||||
"shiyi", |
"shiyi", |
||||||
"shier", |
"shier", |
||||||
"shisan", |
"shisan", |
||||||
"shisi", |
"shisi", |
||||||
"shiwu", |
"shiwu", |
||||||
"文本预案" |
"文本预案", |
||||||
} |
} |
||||||
|
|
||||||
export enum AuditStatusEnum { |
export enum AuditStatusEnum { |
||||||
"zero", |
"zero", |
||||||
"审核中", |
"审核中", |
||||||
"审核通过", |
"审核通过", |
||||||
"two", |
"two", |
||||||
"终审退回", |
"终审退回", |
||||||
"five", |
"five", |
||||||
"six", |
"six", |
||||||
"seven", |
"seven", |
||||||
"未提交审核", |
"未提交审核", |
||||||
"nine", |
"nine", |
||||||
"ten", |
"ten", |
||||||
"eleven", |
"eleven", |
||||||
"twelve", |
"twelve", |
||||||
"thieteen", |
"thieteen", |
||||||
"fourteen", |
"fourteen", |
||||||
"fifteen", |
"fifteen", |
||||||
"待终审", |
"待终审", |
||||||
"shiqi", |
"shiqi", |
||||||
"shiba", |
"shiba", |
||||||
"shijiu", |
"shijiu", |
||||||
"ershi", |
"ershi", |
||||||
"ershiyi", |
"ershiyi", |
||||||
"ershier", |
"ershier", |
||||||
"ershis", |
"ershis", |
||||||
"t1", |
"t1", |
||||||
"t2", |
"t2", |
||||||
"t3", |
"t3", |
||||||
"t4", |
"t4", |
||||||
"t5", |
"t5", |
||||||
"t6", |
"t6", |
||||||
"t7", |
"t7", |
||||||
"t8", |
"t8", |
||||||
"初审退回", |
"初审退回", |
||||||
} |
} |
||||||
|
|
||||||
export enum PlanLevelEnum { |
export enum PlanLevelEnum { |
||||||
"编制级别0", |
"编制级别0", |
||||||
"总队", |
"总队", |
||||||
"支队", |
"支队", |
||||||
"编制级别3", |
"编制级别3", |
||||||
"大队", |
"大队", |
||||||
"编制级别5", |
"编制级别5", |
||||||
"编制级别6", |
"编制级别6", |
||||||
"编制级别7", |
"编制级别7", |
||||||
"中队" |
"中队", |
||||||
} |
} |
||||||
|
|
||||||
|
export enum PlanAuditStatusEnum { |
||||||
|
"非审核状态" = 0, |
||||||
|
"未提交审核" = 8, |
||||||
|
"待审核" = 1, |
||||||
|
"初审通过" = 16, |
||||||
|
"初审退回" = 32, |
||||||
|
"终审通过" = 2, |
||||||
|
"终审退回" = 4, |
||||||
|
} |
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,119 @@ |
|||||||
|
<h2 mat-dialog-title>演练记录</h2> |
||||||
|
<div class="box"> |
||||||
|
<div class="contentItem"> |
||||||
|
<div class="title"> |
||||||
|
单位信息 |
||||||
|
</div> |
||||||
|
<div class="content"> |
||||||
|
<div class="textbox"> |
||||||
|
<span class="name">单位名称:</span> |
||||||
|
<span>{{data.unitInfo.name}}</span> |
||||||
|
</div> |
||||||
|
<div class="textbox"> |
||||||
|
<span class="name">单位地址:</span> |
||||||
|
<span>{{data.unitInfo.address}}</span> |
||||||
|
</div> |
||||||
|
<div class="textbox"> |
||||||
|
<span class="name">联系人:</span> |
||||||
|
<span>{{data.unitInfo.contacts}}</span> |
||||||
|
</div> |
||||||
|
<div class="textbox"> |
||||||
|
<span class="name">联系电话:</span> |
||||||
|
<span>{{data.unitInfo.phone}}</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="contentItem"> |
||||||
|
<div class="title"> |
||||||
|
调研人员 |
||||||
|
</div> |
||||||
|
<div class="content peoplecontent"> |
||||||
|
<div> |
||||||
|
<span class="name">带队人员:</span> |
||||||
|
<input [disabled]="!isEditMode" name="teamLeader" [(ngModel)]="teamLeader" nz-input |
||||||
|
placeholder="带队人员" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<span class="name">熟悉时间:</span> |
||||||
|
<nz-range-picker [disabled]="!isEditMode" [nzShowTime]="{ nzFormat: 'HH:mm' }" |
||||||
|
nzFormat="yyyy-MM-dd HH:mm" [nzPlaceHolder]="['开始时间', '结束时间']" name="time" |
||||||
|
[(ngModel)]="time"></nz-range-picker> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<span class="name">调研照片:</span> |
||||||
|
<div class="uploadbox"> |
||||||
|
<input *ngIf="isEditMode" type="file" (change)="upload($event,'调研')"> |
||||||
|
<button *ngIf="isEditMode" nz-button nzType="default">上传照片</button> |
||||||
|
<ul class="imgbox"> |
||||||
|
<li *ngFor="let item of surveyPhoto;let key = index"><img [src]="item" alt="" |
||||||
|
(click)="viewImg(item)"> |
||||||
|
<span *ngIf="isEditMode" class="close material-icons" (click)="deleteImg(surveyPhoto,key)"> |
||||||
|
cancel |
||||||
|
</span> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="contentItem"> |
||||||
|
<div class="title"> |
||||||
|
熟悉内容 |
||||||
|
</div> |
||||||
|
<div class="content photocontent"> |
||||||
|
<div> |
||||||
|
<span class="name">水源照片:</span> |
||||||
|
<div class="uploadbox"> |
||||||
|
<input *ngIf="isEditMode" type="file" (change)="upload($event,'水源')"> |
||||||
|
<button *ngIf="isEditMode" nz-button nzType="default">上传照片</button> |
||||||
|
<ul class="imgbox"> |
||||||
|
<li *ngFor="let item of waterPhoto;let key = index"><img [src]="item" alt="" |
||||||
|
(click)="viewImg(item)"> |
||||||
|
<span *ngIf="isEditMode" class="close material-icons" (click)="deleteImg(waterPhoto,key)"> |
||||||
|
cancel |
||||||
|
</span> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<span class="name">疏散通道:</span> |
||||||
|
<div class="uploadbox"> |
||||||
|
<input *ngIf="isEditMode" type="file" (change)="upload($event,'疏散通道')"> |
||||||
|
<button *ngIf="isEditMode" nz-button nzType="default">上传照片</button> |
||||||
|
<ul class="imgbox"> |
||||||
|
<li *ngFor="let item of routePhoto;let key = index"><img [src]="item" alt="" |
||||||
|
(click)="viewImg(item)"> |
||||||
|
<span *ngIf="isEditMode" class="close material-icons" (click)="deleteImg(routePhoto,key)"> |
||||||
|
cancel |
||||||
|
</span> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<span class="name">消控室:</span> |
||||||
|
<div class="uploadbox"> |
||||||
|
<input *ngIf="isEditMode" type="file" (change)="upload($event,'消控室')"> |
||||||
|
<button *ngIf="isEditMode" nz-button nzType="default">上传照片</button> |
||||||
|
<ul class="imgbox"> |
||||||
|
<li *ngFor="let item of fireControlPhoto;let key = index"><img [src]="item" alt="" |
||||||
|
(click)="viewImg(item)"> |
||||||
|
<span *ngIf="isEditMode" class="close material-icons" |
||||||
|
(click)="deleteImg(fireControlPhoto,key)"> |
||||||
|
cancel |
||||||
|
</span> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="mask" *ngIf="isLoading"> |
||||||
|
<mat-spinner [diameter]="30"></mat-spinner> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<mat-dialog-actions align="end"> |
||||||
|
<button mat-button mat-dialog-close [disabled]="isLoading || isLoadingSave">取消</button> |
||||||
|
<button mat-button cdkFocusInitial (click)="save()" [disabled]="isLoading || isLoadingSave">确定</button> |
||||||
|
</mat-dialog-actions> |
@ -0,0 +1,120 @@ |
|||||||
|
.box { |
||||||
|
width: 100%; |
||||||
|
position: relative; |
||||||
|
|
||||||
|
.contentItem { |
||||||
|
display: flex; |
||||||
|
margin: 6px 0; |
||||||
|
border-bottom: 1px dashed rgb(180, 178, 178); |
||||||
|
|
||||||
|
.title { |
||||||
|
width: 75px; |
||||||
|
color: #1890ff; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
} |
||||||
|
|
||||||
|
.content { |
||||||
|
flex: 1; |
||||||
|
display: flex; |
||||||
|
flex-wrap: wrap; |
||||||
|
|
||||||
|
div { |
||||||
|
margin-bottom: 3px; |
||||||
|
|
||||||
|
.name { |
||||||
|
display: inline-block; |
||||||
|
width: 70px; |
||||||
|
margin-right: 3px; |
||||||
|
text-align: right; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.peoplecontent, |
||||||
|
.photocontent { |
||||||
|
flex-direction: column; |
||||||
|
|
||||||
|
div { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
input, |
||||||
|
nz-range-picker { |
||||||
|
flex: 1; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.textbox { |
||||||
|
height: 32px; |
||||||
|
line-height: 32px; |
||||||
|
width: 50%; |
||||||
|
white-space: nowrap; |
||||||
|
overflow: hidden; |
||||||
|
text-overflow: ellipsis; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
.uploadbox { |
||||||
|
position: relative; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
input { |
||||||
|
width: 88px; |
||||||
|
height: 32px; |
||||||
|
position: absolute; |
||||||
|
left: 0; |
||||||
|
top: 0; |
||||||
|
opacity: 0; |
||||||
|
z-index: 2; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
button { |
||||||
|
z-index: 1; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
.imgbox { |
||||||
|
height: 100%; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
li { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
position: relative; |
||||||
|
} |
||||||
|
|
||||||
|
img { |
||||||
|
width: 50px; |
||||||
|
height: 50px; |
||||||
|
margin: 0 5px; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
.close{ |
||||||
|
position: absolute; |
||||||
|
right: 0; |
||||||
|
top: 0; |
||||||
|
font-size: 15px; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.mask { |
||||||
|
position: absolute; |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
left: 0; |
||||||
|
top: 0; |
||||||
|
background: rgba(0, 0, 0, 0.2); |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
|
z-index: 3; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||||
|
|
||||||
|
import { UploadDrillComponent } from './upload-drill.component'; |
||||||
|
|
||||||
|
describe('UploadDrillComponent', () => { |
||||||
|
let component: UploadDrillComponent; |
||||||
|
let fixture: ComponentFixture<UploadDrillComponent>; |
||||||
|
|
||||||
|
beforeEach(async(() => { |
||||||
|
TestBed.configureTestingModule({ |
||||||
|
declarations: [ UploadDrillComponent ] |
||||||
|
}) |
||||||
|
.compileComponents(); |
||||||
|
})); |
||||||
|
|
||||||
|
beforeEach(() => { |
||||||
|
fixture = TestBed.createComponent(UploadDrillComponent); |
||||||
|
component = fixture.componentInstance; |
||||||
|
fixture.detectChanges(); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should create', () => { |
||||||
|
expect(component).toBeTruthy(); |
||||||
|
}); |
||||||
|
}); |
@ -0,0 +1,203 @@ |
|||||||
|
import { HttpClient } from "@angular/common/http"; |
||||||
|
import { Component, OnInit, Inject } from "@angular/core"; |
||||||
|
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog"; |
||||||
|
import { ObjectsService } from "@src/app/services/objects.service"; |
||||||
|
import { DatePipe } from "@angular/common"; |
||||||
|
import { MatSnackBar } from "@angular/material/snack-bar"; |
||||||
|
import Viewer from "viewerjs"; |
||||||
|
@Component({ |
||||||
|
selector: "app-upload-drill", |
||||||
|
templateUrl: "./upload-drill.component.html", |
||||||
|
styleUrls: ["./upload-drill.component.scss"], |
||||||
|
providers: [DatePipe], |
||||||
|
}) |
||||||
|
export class UploadDrillComponent implements OnInit { |
||||||
|
constructor( |
||||||
|
public dialogRef: MatDialogRef<UploadDrillComponent>, |
||||||
|
@Inject(MAT_DIALOG_DATA) public data: any, |
||||||
|
private objectsSer: ObjectsService, |
||||||
|
private http: HttpClient, |
||||||
|
private datePipe: DatePipe, |
||||||
|
public snackBar: MatSnackBar |
||||||
|
) {} |
||||||
|
|
||||||
|
isEditMode = true; |
||||||
|
|
||||||
|
ngOnInit(): void { |
||||||
|
console.log(this.data); |
||||||
|
this.isEditMode = this.data.isEditMode; |
||||||
|
this.getData(); |
||||||
|
} |
||||||
|
|
||||||
|
isHttpPost; |
||||||
|
getData() { |
||||||
|
this.http |
||||||
|
.get("/api/DrillRecords", { |
||||||
|
params: { |
||||||
|
CompanyId: this.data.unitInfo.id, |
||||||
|
}, |
||||||
|
}) |
||||||
|
.subscribe((data: any) => { |
||||||
|
console.log("演练记录数据", data); |
||||||
|
if (data.totalCount === 0) { |
||||||
|
this.isHttpPost = true; |
||||||
|
} else { |
||||||
|
this.isHttpPost = false; |
||||||
|
let item = data.items[0]; |
||||||
|
this.drillId = item.id; |
||||||
|
this.teamLeader = item.teamLeader; |
||||||
|
this.time = [item.startTime, item.endTime]; |
||||||
|
this.surveyPhoto = JSON.parse(item.images); |
||||||
|
this.waterPhoto = JSON.parse(item.waterSource); |
||||||
|
this.routePhoto = JSON.parse(item.escapeRoute); |
||||||
|
this.fireControlPhoto = JSON.parse(item.fireControlRoom); |
||||||
|
} |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
surveyPhoto = [ |
||||||
|
// "../../../../assets/images/yiyuan.png",
|
||||||
|
// "../../../../assets/images/homeHeader.png",
|
||||||
|
// "../../../../assets/images/add.png",
|
||||||
|
]; //调研人员照片
|
||||||
|
waterPhoto = []; //水源照片
|
||||||
|
routePhoto = []; //疏散照片
|
||||||
|
fireControlPhoto = []; //消控室照片
|
||||||
|
|
||||||
|
//设置文件路径并上传
|
||||||
|
postFilePath; |
||||||
|
isLoading = false; |
||||||
|
async upload(e, type) { |
||||||
|
this.isLoading = true; |
||||||
|
let file = e.target.files[0] || null; //获取上传的文件
|
||||||
|
let fileSize = file.size || null; //上传文件的总大小
|
||||||
|
let shardSize = 5 * 1024 * 1024; //5MB 超过5MB要分块上传
|
||||||
|
this.postFilePath = "演练记录/" + this.data.unitInfo.id; |
||||||
|
if (fileSize >= shardSize) { |
||||||
|
await this.postFileByMul(file, type); |
||||||
|
} else { |
||||||
|
await this.postFile(file, type); |
||||||
|
} |
||||||
|
this.isLoading = false; |
||||||
|
} |
||||||
|
|
||||||
|
//直接上传
|
||||||
|
async postFile(file: File, type) { |
||||||
|
await new Promise((resolve, reject) => { |
||||||
|
this.objectsSer.postFile(this.postFilePath, file).subscribe((data) => { |
||||||
|
let dataObj = data as any; |
||||||
|
let filePath: string = ObjectsService.baseUrl + dataObj.objectName; |
||||||
|
this.setFileUrl(type, filePath); |
||||||
|
resolve("success"); |
||||||
|
}); |
||||||
|
}); |
||||||
|
} |
||||||
|
//分块上传
|
||||||
|
async postFileByMul(file: File, type) { |
||||||
|
await new Promise((resolve, reject) => { |
||||||
|
this.objectsSer |
||||||
|
.postFile_MultipartUpload(this.postFilePath, file) |
||||||
|
.then((value) => { |
||||||
|
console.log("分块上传成功", value); |
||||||
|
let dataObj = value as any; |
||||||
|
this.setFileUrl(type, dataObj.filePath + dataObj.fileName); |
||||||
|
resolve("success"); |
||||||
|
}); |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
setFileUrl(type, filePath) { |
||||||
|
switch (type) { |
||||||
|
case "调研": |
||||||
|
this.surveyPhoto.push(filePath); |
||||||
|
break; |
||||||
|
case "水源": |
||||||
|
this.waterPhoto.push(filePath); |
||||||
|
break; |
||||||
|
case "疏散通道": |
||||||
|
this.routePhoto.push(filePath); |
||||||
|
break; |
||||||
|
case "消控室": |
||||||
|
this.fireControlPhoto.push(filePath); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
deleteImg(arr, key) { |
||||||
|
if (confirm("确认删除此照片吗")) { |
||||||
|
arr.splice(key, 1); |
||||||
|
} |
||||||
|
} |
||||||
|
teamLeader; |
||||||
|
time; |
||||||
|
drillId; |
||||||
|
isLoadingSave = false; |
||||||
|
save() { |
||||||
|
if (!this.isEditMode) { |
||||||
|
this.dialogRef.close(); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
if (!this.teamLeader || !this.time) { |
||||||
|
this.snackBar.open("请输入带队人员和熟悉时间", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
return; |
||||||
|
} |
||||||
|
this.isLoadingSave = true; |
||||||
|
let body: any = { |
||||||
|
companyId: this.data.unitInfo.id, |
||||||
|
teamLeader: this.teamLeader, |
||||||
|
startTime: this.datePipe.transform(this.time[0], "yyyy-MM-ddTHH:mm:ss"), |
||||||
|
endTime: this.datePipe.transform(this.time[1], "yyyy-MM-ddTHH:mm:ss"), |
||||||
|
images: JSON.stringify(this.surveyPhoto), |
||||||
|
waterSource: JSON.stringify(this.waterPhoto), |
||||||
|
escapeRoute: JSON.stringify(this.routePhoto), |
||||||
|
fireControlRoom: JSON.stringify(this.fireControlPhoto), |
||||||
|
}; |
||||||
|
if (this.isHttpPost) { |
||||||
|
this.http.post("/api/DrillRecords", body).subscribe((data: any) => { |
||||||
|
this.drillId = data.id; |
||||||
|
this.isHttpPost = false; |
||||||
|
this.isLoadingSave = false; |
||||||
|
this.snackBar.open("保存成功", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
this.dialogRef.close(); |
||||||
|
}); |
||||||
|
} else { |
||||||
|
body.id = this.drillId; |
||||||
|
this.http |
||||||
|
.put(`/api/DrillRecords/${this.drillId}`, body) |
||||||
|
.subscribe((data: any) => { |
||||||
|
this.isLoadingSave = false; |
||||||
|
this.snackBar.open("保存成功", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
this.dialogRef.close(); |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
//查看图片
|
||||||
|
viewImg(url) { |
||||||
|
let dom = document.getElementById(`viewerjs`); |
||||||
|
let pObjs = dom.childNodes; |
||||||
|
let node = document.createElement("img"); |
||||||
|
node.style.display = "none"; |
||||||
|
node.src = url; |
||||||
|
node.id = "img"; |
||||||
|
dom.appendChild(node); |
||||||
|
setTimeout(() => { |
||||||
|
let viewer = new Viewer(document.getElementById(`viewerjs`), { |
||||||
|
hidden: () => { |
||||||
|
dom.removeChild(pObjs[0]); |
||||||
|
viewer.destroy(); |
||||||
|
}, |
||||||
|
}); |
||||||
|
node.click(); |
||||||
|
}, 0); |
||||||
|
} |
||||||
|
} |
File diff suppressed because it is too large
Load Diff
@ -1,13 +1,7 @@ |
|||||||
|
|
||||||
<p style="text-align: center;">更新公告</p> |
<p style="text-align: center;">更新公告</p> |
||||||
<p>更新内容如下:</p> |
<p>更新内容如下:</p> |
||||||
<p>1.增加V级文本预案模板导入功能;</p> |
<p>1.单位管理模块现在支持按照重点单位和一般单位进行查询。</p> |
||||||
<p>2.已上传至预案编制管理平台的Ⅴ级文本预案,增加【转在线导入】功能;</p> |
<p>2.在单位管理模块的列表中,我们将“关注/取消”改为了“重点单位/一般单位”,并且重点单位名称前面有红星标记,一般单位前面无标记,以便更好地区分。</p> |
||||||
<p>3.增加V级文本预案自定义在线编制功能;</p> |
<p>3.在预案管理模块中,我们去掉了预案列表中的编制级别,并且增加了按照重点单位和一般单位进行查询的功能。在预案列表中的单位名称前面增加了一列显示栏,区分重点单位和一般单位。</p> |
||||||
<p>为了预案导入功能正常使用,且提高文本预案识别导入的成功率,需要注意以下几点:</p> |
<p>4.预案列表页面中,预案的名称支持手动修改,同时转在线导入文档转成功后名称去掉 “转在线编制”。 </p> |
||||||
<p>1.【转在线导入】功能,仅支持以Ⅴ级文本预案模板做预案的文档,其他文档不支持【转在线导入】功能。</p> |
<p>5.点击系统右上角的“?”下载重点单位设置说明,以便更好地了解如何设置重点单位。 </p> |
||||||
<p>2.Ⅴ级文本预案模板可以随意修改内容,但整体框架不得做任何修改,不允许随意删除、合并、增加单元格,否则影响预案识别导入的内容。</p> |
|
||||||
<p>3.文档导入成功后,可在线编辑,也可以自行添加新的功能模块。</p> |
|
||||||
<p>4.V级预案模板导入时仅支持微软Office保存并且格式为.docx的文档,其余格式无法导入。</p> |
|
||||||
<p>5.V级预案模板文档以及V级预案使用说明、视频可点击右上角帮助进行下载、查看。其中Ⅴ级文本预案模板文件夹内放置九大类型预案模板、V级预案转在线导入文件夹内包含使用说明及视频、V级预案自定义文件夹内包含使用说明及视频、V级在线编制文件夹内包含使用说明及视频。</p> |
|
||||||
|
|
@ -1,83 +1,95 @@ |
|||||||
import { Pipe, PipeTransform } from '@angular/core'; |
import { Pipe, PipeTransform } from "@angular/core"; |
||||||
import { isno, PlanTypeEnum, AuditStatusEnum, PlanLevelEnum } from '../interface' |
import { |
||||||
@Pipe({ name: 'isno' }) |
isno, |
||||||
|
PlanTypeEnum, |
||||||
|
AuditStatusEnum, |
||||||
|
PlanLevelEnum, |
||||||
|
PlanAuditStatusEnum, |
||||||
|
} from "../interface"; |
||||||
|
@Pipe({ name: "isno" }) |
||||||
export class IsnoPipe implements PipeTransform { |
export class IsnoPipe implements PipeTransform { |
||||||
transform(value: boolean): string { |
transform(value: boolean): string { |
||||||
if (value) { |
if (value) { |
||||||
var x = 0 |
var x = 0; |
||||||
} else { |
} else { |
||||||
x = 1 |
x = 1; |
||||||
} |
|
||||||
return isno[x] |
|
||||||
} |
} |
||||||
|
return isno[x]; |
||||||
|
} |
||||||
} |
} |
||||||
@Pipe({ name: 'plantype' }) |
@Pipe({ name: "plantype" }) |
||||||
export class PlanType implements PipeTransform { |
export class PlanType implements PipeTransform { |
||||||
transform(value: number): string { |
transform(value: number): string { |
||||||
return PlanTypeEnum[value] |
return PlanTypeEnum[value]; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
@Pipe({ name: 'auditsatus' }) |
@Pipe({ name: "auditsatus" }) |
||||||
export class AuditSatus implements PipeTransform { |
export class AuditSatus implements PipeTransform { |
||||||
transform(value: number): string { |
transform(value: number): string { |
||||||
return AuditStatusEnum[value] |
return AuditStatusEnum[value]; |
||||||
} |
} |
||||||
} |
} |
||||||
@Pipe({ name: 'planlevel' }) |
@Pipe({ name: "planlevel" }) |
||||||
export class PlanLevel implements PipeTransform { |
export class PlanLevel implements PipeTransform { |
||||||
transform(value: number): string { |
transform(value: number): string { |
||||||
return PlanLevelEnum[value] |
return PlanLevelEnum[value]; |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
@Pipe({ name: 'state' }) |
@Pipe({ name: "state" }) |
||||||
export class state implements PipeTransform { |
export class state implements PipeTransform { |
||||||
transform(value: number): string { |
transform(value: number): string { |
||||||
if (value == 3) { |
if (value == 3) { |
||||||
return '维护中' |
return "维护中"; |
||||||
} else if (value == 4) { |
} else if (value == 4) { |
||||||
return '维护通过审核' |
return "维护通过审核"; |
||||||
} else if (value == 5) { |
} else if (value == 5) { |
||||||
return '维护驳回审核' |
return "维护驳回审核"; |
||||||
} else { |
} else { |
||||||
return '未维护' |
return "未维护"; |
||||||
} |
|
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
@Pipe({ name: 'differentContentTitle' }) |
@Pipe({ name: "auditState" }) |
||||||
export class differentContentTitle implements PipeTransform { |
export class auditState implements PipeTransform { |
||||||
transform(value: string): string { |
transform(value: number): string { |
||||||
if (typeof (value) == 'boolean' && value) { |
return PlanAuditStatusEnum[value]; |
||||||
return '是' |
} |
||||||
} else if (typeof (value) == 'boolean' && !value) { |
} |
||||||
return '否' |
|
||||||
} else if (JSON.stringify(value) == "{}") { |
|
||||||
return '空' |
|
||||||
} else if (!value) { |
|
||||||
return '空' |
|
||||||
} else { |
|
||||||
return value |
|
||||||
} |
|
||||||
|
|
||||||
|
@Pipe({ name: "differentContentTitle" }) |
||||||
|
export class differentContentTitle implements PipeTransform { |
||||||
|
transform(value: string): string { |
||||||
|
if (typeof value == "boolean" && value) { |
||||||
|
return "是"; |
||||||
|
} else if (typeof value == "boolean" && !value) { |
||||||
|
return "否"; |
||||||
|
} else if (JSON.stringify(value) == "{}") { |
||||||
|
return "空"; |
||||||
|
} else if (!value) { |
||||||
|
return "空"; |
||||||
|
} else { |
||||||
|
return value; |
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
@Pipe({ name: 'yuan' }) |
@Pipe({ name: "yuan" }) |
||||||
export class yuan implements PipeTransform { |
export class yuan implements PipeTransform { |
||||||
transform(value: string): string { |
transform(value: string): string { |
||||||
if (value == 'LevelOne') { |
if (value == "LevelOne") { |
||||||
return '一级预案' |
return "一级预案"; |
||||||
} else if (value == 'LevelTwo') { |
} else if (value == "LevelTwo") { |
||||||
return '二级预案' |
return "二级预案"; |
||||||
} else if (value == 'LevelThree') { |
} else if (value == "LevelThree") { |
||||||
return '三级预案' |
return "三级预案"; |
||||||
}else if (value == 'LevelFour') { |
} else if (value == "LevelFour") { |
||||||
return '四级预案' |
return "四级预案"; |
||||||
}else if (value == 'LevelFive') { |
} else if (value == "LevelFive") { |
||||||
return '五级预案' |
return "五级预案"; |
||||||
}else if (value == 'PlanText') { |
} else if (value == "PlanText") { |
||||||
return '文本预案' |
return "文本预案"; |
||||||
} |
|
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
|
@ -1,240 +1,232 @@ |
|||||||
<!-- |
|
||||||
* @Descripttion: |
|
||||||
* @version: |
|
||||||
* @Author: sueRimn |
|
||||||
* @Date: 2020-12-25 10:19:31 |
|
||||||
* @LastEditors: sueRimn |
|
||||||
* @LastEditTime: 2021-08-16 15:49:49 |
|
||||||
--> |
|
||||||
<div class="box"> |
<div class="box"> |
||||||
<div class="boxleft"> |
<div class="boxleft"> |
||||||
<div class="lefthead"> |
<div class="lefthead"> |
||||||
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm"> |
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm"> |
||||||
<div class="headdiv"> |
<div class="headdiv"> |
||||||
<span>操作类型:</span> |
<span>操作类型:</span> |
||||||
<input type="radio" name="level" value="" [(ngModel)]="level"><span>全部</span> |
<input type="radio" name="level" value="" [(ngModel)]="level"><span>全部</span> |
||||||
<input type="radio" name="level" value="1" [(ngModel)]="level"><span>更新</span> |
<input type="radio" name="level" value="1" [(ngModel)]="level"><span>更新</span> |
||||||
<input type="radio" name="level" value="0" [(ngModel)]="level"><span>新增</span> |
<input type="radio" name="level" value="0" [(ngModel)]="level"><span>新增</span> |
||||||
<input type="radio" name="level" value="2" [(ngModel)]="level"><span>删除</span> |
<input type="radio" name="level" value="2" [(ngModel)]="level"><span>删除</span> |
||||||
<div class="count"> |
<div class="count"> |
||||||
<span >共计:{{count}}条</span> |
<span>共计:{{count}}条</span> |
||||||
</div> |
|
||||||
</div> |
|
||||||
<div class="headdivtwo"> |
|
||||||
<span>审核状态:</span> |
|
||||||
<input type="radio" name="passstate" [(ngModel)]="verifyState" value=""><span>全部</span> |
|
||||||
<input type="radio" name="passstate" [(ngModel)]="verifyState" value="1"><span>初审通过</span> |
|
||||||
<input type="radio" name="passstate" [(ngModel)]="verifyState" value="2"><span>初审驳回</span> |
|
||||||
<input type="radio" name="passstate" [(ngModel)]="verifyState" value="4"><span>终审通过</span> |
|
||||||
<input type="radio" name="passstate" [(ngModel)]="verifyState" value="5"><span>终审驳回</span> |
|
||||||
</div> |
|
||||||
<div class="headthree"> |
|
||||||
<span>类型:</span> |
|
||||||
<mat-form-field> |
|
||||||
<mat-select placeholder='请选择单位类型' name="unittype" [(ngModel)]="projectlevel"> |
|
||||||
<!-- <mat-option value="1">Ⅰ级预案</mat-option> |
|
||||||
<mat-option value="2">Ⅱ级预案</mat-option> --> |
|
||||||
<mat-option value="3">Ⅲ级预案</mat-option> |
|
||||||
<mat-option value="4">Ⅳ级预案</mat-option> |
|
||||||
<mat-option value="5">Ⅴ级预案</mat-option> |
|
||||||
<!-- <mat-option value="6">应急预案(国家级)</mat-option> |
|
||||||
<mat-option value="7">应急预案(市级)</mat-option> --> |
|
||||||
<mat-option value="8">类型预案</mat-option> |
|
||||||
<mat-option value="11">重点单位</mat-option> |
|
||||||
<!-- <mat-option value="12">消防水源</mat-option> |
|
||||||
<mat-option value="13">消防力量</mat-option> |
|
||||||
<mat-option value="14">联动力量</mat-option> --> |
|
||||||
</mat-select> |
|
||||||
</mat-form-field> |
|
||||||
<span>状态:</span> |
|
||||||
<mat-form-field> |
|
||||||
<mat-select name="IsNewData" placeholder='请选择状态' [(ngModel)]="IsNewData" [multiple]="true"> |
|
||||||
<mat-option value=true>新增</mat-option> |
|
||||||
<mat-option value=false>维护更新</mat-option> |
|
||||||
</mat-select> |
|
||||||
</mat-form-field> |
|
||||||
<span>编制级别:</span> |
|
||||||
<mat-form-field> |
|
||||||
<mat-select name="preparelevel" placeholder='请选择编制级别' [(ngModel)]="PlanLevel"> |
|
||||||
<mat-option *ngFor="let item of preparelevels" [value]="item.value">{{item.name}}</mat-option> |
|
||||||
</mat-select> |
|
||||||
</mat-form-field> |
|
||||||
|
|
||||||
|
|
||||||
</div> |
|
||||||
<div class="headfour"> |
|
||||||
<span>时间:</span> |
|
||||||
<mat-form-field class="example-full-width" style="margin-bottom: 0;"> |
|
||||||
<input type="date" matInput name="companyName" autocomplete="off" [(ngModel)]="addtime"> |
|
||||||
</mat-form-field> |
|
||||||
<mat-icon *ngIf="!pcshow" aria-hidden="false" style="position: relative;right: 120px;top: 5px;" id="padshow">arrow forward</mat-icon> |
|
||||||
<span style="margin-left: 15px;" id="pcshow" *ngIf="pcshow">🠊</span> |
|
||||||
<mat-form-field class="example-full-width" style="margin-left: 10px;margin-bottom: 0;"> |
|
||||||
<input type="date" matInput name="companyName" autocomplete="off" [(ngModel)]="endtime"> |
|
||||||
</mat-form-field> |
|
||||||
<span style="margin-left: 10px;" >预案类型:</span> |
|
||||||
<mat-form-field> |
|
||||||
<mat-select placeholder='请选择预案类型' name="unittype" [(ngModel)]="plantypes" [multiple]="true"> |
|
||||||
<mat-option value="1">二维预案</mat-option> |
|
||||||
<mat-option value="2">三维预案</mat-option> |
|
||||||
<mat-option value="4">其他预案</mat-option> |
|
||||||
<mat-option value="16">文本预案</mat-option> |
|
||||||
</mat-select> |
|
||||||
</mat-form-field> |
|
||||||
<button mat-raised-button color="primary" type="submit" >查询</button> |
|
||||||
<button mat-raised-button color="primary" (click)='record()'><img src="../../../assets/images/refresh.png" > 重置</button> |
|
||||||
</div> |
|
||||||
</form> |
|
||||||
|
|
||||||
<!-- <div class="tablediv"> |
|
||||||
<table cellspacing="0" cellpadding="0"> |
|
||||||
<thead> |
|
||||||
<th style="width: 15%;">类型</th> |
|
||||||
<th style="width: 15%;">操作</th> |
|
||||||
<th style="width: 15%;">所属组织</th> |
|
||||||
<th style="width: 15%;">审核状态</th> |
|
||||||
<th style="width: 15%;">提交人</th> |
|
||||||
<th style="width: 25%;">提交时间</th> |
|
||||||
</thead> |
|
||||||
<tbody> |
|
||||||
<tr *ngFor="let item of tableDate"> |
|
||||||
<td>{{item.level}}</td> |
|
||||||
<td [ngClass]="{'green': item.option == '更新','red':item.option == '删除','blue':item.option == '新增'}">{{item.option}}</td> |
|
||||||
<td>{{item.orgication}}</td> |
|
||||||
<td [ngClass]="{'green': item.unitstate == '已通过','red':item.unitstate == '已拒绝'}">{{item.unitstate}}</td> |
|
||||||
<td>{{item.addname}}</td> |
|
||||||
<td>{{item.addtime}}</td> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
</div> --> |
|
||||||
<div class="tablediv"> |
|
||||||
<table cellspacing="0" cellpadding="0" style="margin-top: 10px;"> |
|
||||||
<thead> |
|
||||||
<th style="width: 10%;">状态</th> |
|
||||||
<th style="width: 10%;">类型</th> |
|
||||||
<th style="width: 10%;">预案类型</th> |
|
||||||
<th style="width: 10%;">名称</th> |
|
||||||
<th style="width: 5%;">操作</th> |
|
||||||
<th style="width: 20%;">所属组织</th> |
|
||||||
<th style="width: 10%;">审核状态</th> |
|
||||||
<th style="width: 10%;">提交人</th> |
|
||||||
<th style="width: 15%;">提交时间</th> |
|
||||||
</thead> |
|
||||||
</table> |
|
||||||
<div class="tbodycss" id="tbodydiv" > |
|
||||||
<table cellspacing="0" cellpadding="0" id="table" > |
|
||||||
<tr [ngClass]="{'selectedTr': item.id == id}" *ngFor="let item of tableDate;let key = index" (click)='tableClick($event,item)'> |
|
||||||
<td style="width: 10%;" [ngClass]="{'green': item.itemMaintenanceState == '0','yellow':item.itemMaintenanceState != '0'}">{{item.itemMaintenanceState=='0'?'新增':'维护'}}</td> |
|
||||||
<td style="width: 10%;"> |
|
||||||
<!-- <input type="radio" name="yuan" value={{item.id}} [(ngModel)]="checked" (click)='radioClick(item)'> --> |
|
||||||
{{item.contentType=='1'?'Ⅰ级预案':item.contentType=='2'?'Ⅱ级预案':item.contentType=='3'?'Ⅲ级预案':item.contentType=='4'?'Ⅳ级预案':item.contentType=='5'? |
|
||||||
'Ⅴ级预案':item.contentType=='6'?'应急预案(国家级)':item.contentType=='7'?'应急预案(市级)':item.contentType=='8'?'类型预案':item.contentType=='11'?'重点单位':item.contentType=='12'?'水源':item.contentType=='13'?'消防力量':item.contentType=='14'?'联动力量':'未知'}}</td> |
|
||||||
<td style="width: 10%;"> |
|
||||||
{{item.planType=='1'?'二维预案':item.planType=='2'?'三维预案':item.planType=='4'?'其它预案':item.planType=='16'?'文本预案':''}} |
|
||||||
</td> |
|
||||||
<td style="width: 10%;">{{item.title}}</td> |
|
||||||
<td style="width: 5%;" [ngClass]="{'green': item.operation == '0','red':item.operation == '2','yellow':item.operation == '1'}">{{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}}</td> |
|
||||||
<td style="width: 20%;">{{item.organizationName}}</td> |
|
||||||
<td style="width: 10%;" [ngClass]="{'green': item.verifyState == '1'||item.verifyState == '4','red':item.verifyState == '2'||item.verifyState == '5'}">{{item.verifyState=='0'?'待初审':item.verifyState=='1'? |
|
||||||
'初审通过':item.verifyState=='2'?'初审驳回':item.verifyState=='3'?'待终审':item.verifyState=='4'?'终审通过':'终审驳回'}}</td> |
|
||||||
<td style="width: 10%;">{{item.creatorName}}</td> |
|
||||||
<td style="width: 15%;">{{item.createTime|date:'yyyy-MM-dd'}}</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</div> |
|
||||||
|
|
||||||
|
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
<div class="headdivtwo"> |
||||||
</div> |
<span>审核状态:</span> |
||||||
<div class="boxright"> |
<input type="radio" name="passstate" [(ngModel)]="verifyState" value=""><span>全部</span> |
||||||
<div class="company" *ngIf="showtype == 3"> |
<input type="radio" name="passstate" [(ngModel)]="verifyState" value="1"><span>初审通过</span> |
||||||
<mat-tab-group *ngIf="showtype == 3" style="flex: 1;overflow-y: auto;margin-top: 10px;" [selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)"> |
<input type="radio" name="passstate" [(ngModel)]="verifyState" value="2"><span>初审驳回</span> |
||||||
<mat-tab label="基本信息"> |
<input type="radio" name="passstate" [(ngModel)]="verifyState" value="4"><span>终审通过</span> |
||||||
<ng-template matTabContent> |
<input type="radio" name="passstate" [(ngModel)]="verifyState" value="5"><span>终审驳回</span> |
||||||
<app-basic-info></app-basic-info> |
|
||||||
</ng-template> |
|
||||||
</mat-tab> |
|
||||||
<mat-tab label="平面图"> |
|
||||||
<ng-template matTabContent> |
|
||||||
<app-plan-list [planType]="'all'"></app-plan-list> |
|
||||||
</ng-template> |
|
||||||
</mat-tab> |
|
||||||
<mat-tab label="四周毗邻"> |
|
||||||
<ng-template matTabContent> |
|
||||||
<app-allaround></app-allaround> |
|
||||||
</ng-template> |
|
||||||
</mat-tab> |
|
||||||
<mat-tab label="消防设施"> |
|
||||||
<ng-template matTabContent> |
|
||||||
<app-fire-facilities></app-fire-facilities> |
|
||||||
</ng-template> |
|
||||||
</mat-tab> |
|
||||||
<mat-tab label="重点部位"> |
|
||||||
<ng-template matTabContent> |
|
||||||
<app-key-site-look></app-key-site-look> |
|
||||||
</ng-template> |
|
||||||
</mat-tab> |
|
||||||
<mat-tab label="功能分区"> |
|
||||||
<ng-template matTabContent> |
|
||||||
<app-function-partition></app-function-partition> |
|
||||||
</ng-template> |
|
||||||
</mat-tab> |
|
||||||
<mat-tab label="实景图"> |
|
||||||
<ng-template matTabContent> |
|
||||||
<app-realistic-picture-look></app-realistic-picture-look> |
|
||||||
</ng-template> |
|
||||||
</mat-tab> |
|
||||||
<mat-tab label="CAD"> |
|
||||||
<ng-template matTabContent> |
|
||||||
<app-cad-draw></app-cad-draw> |
|
||||||
</ng-template> |
|
||||||
</mat-tab> |
|
||||||
</mat-tab-group> |
|
||||||
</div> |
|
||||||
|
|
||||||
<div class="word" *ngIf="showtype==0"> |
|
||||||
<div class="shadow" *ngIf="!iftrue"> |
|
||||||
<mat-spinner></mat-spinner> |
|
||||||
</div> |
|
||||||
<button mat-raised-button color="primary" style="float: right;margin-top: 10px;margin-right: 15px;" *ngIf="showtype == 0||bianzhi" (click)='lookNew()'>查看详情</button> |
|
||||||
<iframe [src]='iframeSrc' (load)='ifranmeLoad()' id="myiframe"></iframe> |
|
||||||
</div> |
</div> |
||||||
<div id="viewer" *ngIf="showtype==1"></div> |
<div class="headthree"> |
||||||
<div class="twoD" *ngIf="showtype==2"> |
<span>类型:</span> |
||||||
<div class="planBox"> |
<mat-form-field> |
||||||
<span>单位名称: </span> |
<mat-select placeholder='请选择单位类型' name="unittype" [(ngModel)]="projectlevel"> |
||||||
<span>{{compantData.name?compantData.name : '暂无数据'}}</span> |
<mat-option value="1">Ⅰ级预案</mat-option> |
||||||
</div> |
<mat-option value="2">Ⅱ级预案</mat-option> |
||||||
<div class="planBox"> |
<mat-option value="3">Ⅲ级预案</mat-option> |
||||||
<span>消防救援站: </span> |
<mat-option value="4">Ⅳ级预案</mat-option> |
||||||
<span>{{organizationName}}</span> |
<mat-option value="5">Ⅴ级预案</mat-option> |
||||||
</div> |
<mat-option value="6">应急预案(国家级)</mat-option> |
||||||
<div class="planBox"> |
<mat-option value="7">应急预案(市级)</mat-option> |
||||||
<span>单位类型: </span> |
<mat-option value="8">类型预案</mat-option> |
||||||
<span>{{compantData.buildingTypes.length?compantData.buildingTypes[0].name : '暂无数据'}}</span> |
<mat-option value="11">重点单位</mat-option> |
||||||
</div> |
<mat-option value="12">消防水源</mat-option> |
||||||
<div class="planBox"> |
<mat-option value="13">消防力量</mat-option> |
||||||
<span>单位地址: </span> |
<mat-option value="14">联动力量</mat-option> |
||||||
<span>{{compantData.address?compantData.address : '暂无数据'}}</span> |
</mat-select> |
||||||
</div> |
</mat-form-field> |
||||||
<div class="planBox"> |
<span>状态:</span> |
||||||
<span style="color: #2196F3;cursor:pointer;" (click)='oopen3Dshow()'>查看详情</span> |
<mat-form-field> |
||||||
</div> |
<mat-select name="IsNewData" placeholder='请选择状态' [(ngModel)]="IsNewData" [multiple]="true"> |
||||||
|
<mat-option value=true>新增</mat-option> |
||||||
|
<mat-option value=false>维护更新</mat-option> |
||||||
|
</mat-select> |
||||||
|
</mat-form-field> |
||||||
|
<span>编制级别:</span> |
||||||
|
<mat-form-field> |
||||||
|
<mat-select name="preparelevel" placeholder='请选择编制级别' [(ngModel)]="PlanLevel"> |
||||||
|
<mat-option *ngFor="let item of preparelevels" [value]="item.value">{{item.name}}</mat-option> |
||||||
|
</mat-select> |
||||||
|
</mat-form-field> |
||||||
|
|
||||||
|
|
||||||
</div> |
</div> |
||||||
<!-- 水源审核 --> |
<div class="headfour"> |
||||||
<div class="waterAudit" *ngIf="showtype == 12"> |
<span>时间:</span> |
||||||
<app-water-audit [waterData]="waterData"></app-water-audit> |
<mat-form-field class="example-full-width" style="margin-bottom: 0;"> |
||||||
|
<input type="date" matInput name="companyName" autocomplete="off" [(ngModel)]="addtime"> |
||||||
|
</mat-form-field> |
||||||
|
<mat-icon *ngIf="!pcshow" aria-hidden="false" style="position: relative;right: 120px;top: 5px;" |
||||||
|
id="padshow">arrow forward</mat-icon> |
||||||
|
<span style="margin-left: 15px;" id="pcshow" *ngIf="pcshow">🠊</span> |
||||||
|
<mat-form-field class="example-full-width" style="margin-left: 10px;margin-bottom: 0;"> |
||||||
|
<input type="date" matInput name="companyName" autocomplete="off" [(ngModel)]="endtime"> |
||||||
|
</mat-form-field> |
||||||
|
<span style="margin-left: 10px;">预案类型:</span> |
||||||
|
<mat-form-field> |
||||||
|
<mat-select placeholder='请选择预案类型' name="unittype" [(ngModel)]="plantypes" [multiple]="true"> |
||||||
|
<mat-option value="1">二维预案</mat-option> |
||||||
|
<mat-option value="2">三维预案</mat-option> |
||||||
|
<mat-option value="4">其他预案</mat-option> |
||||||
|
<mat-option value="16">文本预案</mat-option> |
||||||
|
</mat-select> |
||||||
|
</mat-form-field> |
||||||
</div> |
</div> |
||||||
<!-- 消防力量审核 --> |
<div class="btnbox"> |
||||||
<div class="fireForceAudit" *ngIf="showtype == 13"> |
<button mat-raised-button color="primary" type="submit">查询</button> |
||||||
<app-fireforce-audit [FireForceDetailInfo]="fireForceDetailInfo" [level]="postlevel"></app-fireforce-audit> |
<button mat-raised-button color="primary" type="button" (click)='record()'>重置</button> |
||||||
</div> |
</div> |
||||||
<!-- 联动力量审核 --> |
</form> |
||||||
<div class="LinkageForcesAudit" *ngIf="showtype == 14"> |
<div class="tablediv"> |
||||||
<app-linkageforces-audit [LinkageForceDetailInfo]="LinkageForceDetailInfo"></app-linkageforces-audit> |
<table class="header" cellspacing="0" cellpadding="0" style="margin-top: 10px;"> |
||||||
|
<thead> |
||||||
|
<th style="width: 10%;">状态</th> |
||||||
|
<th style="width: 10%;">类型</th> |
||||||
|
<th style="width: 10%;">预案类型</th> |
||||||
|
<th style="width: 10%;">名称</th> |
||||||
|
<th style="width: 5%;">操作</th> |
||||||
|
<th style="width: 20%;">所属组织</th> |
||||||
|
<th style="width: 10%;">审核状态</th> |
||||||
|
<th style="width: 10%;">提交人</th> |
||||||
|
<th style="width: 15%;">提交时间</th> |
||||||
|
</thead> |
||||||
|
</table> |
||||||
|
<div class="tbodycss" id="tbodydiv"> |
||||||
|
<table cellspacing="0" cellpadding="0" id="table"> |
||||||
|
<tr [ngClass]="{'selectedTr': item.id == id}" *ngFor="let item of tableDate;let key = index" |
||||||
|
(click)='tableClick($event,item)'> |
||||||
|
<td style="width: 10%;" |
||||||
|
[ngClass]="{'green': item.itemMaintenanceState == '0','yellow':item.itemMaintenanceState != '0'}"> |
||||||
|
{{item.itemMaintenanceState=='0'?'新增':'维护'}}</td> |
||||||
|
<td style="width: 10%;"> |
||||||
|
<!-- <input type="radio" name="yuan" value={{item.id}} [(ngModel)]="checked" (click)='radioClick(item)'> --> |
||||||
|
{{item.contentType=='1'?'Ⅰ级预案':item.contentType=='2'?'Ⅱ级预案':item.contentType=='3'?'Ⅲ级预案':item.contentType=='4'?'Ⅳ级预案':item.contentType=='5'? |
||||||
|
'Ⅴ级预案':item.contentType=='6'?'应急预案(国家级)':item.contentType=='7'?'应急预案(市级)':item.contentType=='8'?'类型预案':(item.contentType=='11' |
||||||
|
&&item.itemObj&& |
||||||
|
item.itemObj?.isFollowed)?'重点单位':(item.contentType=='11' |
||||||
|
&&item.itemObj&& |
||||||
|
!item.itemObj?.isFollowed)?'一般单位':(item.contentType=='11' |
||||||
|
&&!item.itemObj)?'已删除':item.contentType=='12'?'水源':item.contentType=='13'?'消防力量':item.contentType=='14'?'联动力量':'未知'}} |
||||||
|
</td> |
||||||
|
<td style="width: 10%;"> |
||||||
|
{{item.planType=='1'?'二维预案':item.planType=='2'?'三维预案':item.planType=='4'?'其它预案':item.planType=='16'?'文本预案':''}} |
||||||
|
</td> |
||||||
|
<td style="width: 10%;">{{item.title}}</td> |
||||||
|
<td style="width: 5%;" |
||||||
|
[ngClass]="{'green': item.operation == '0','red':item.operation == '2','yellow':item.operation == '1'}"> |
||||||
|
{{item.operation=='0'?'新增':item.operation=='1'?'更新':'删除'}}</td> |
||||||
|
<td style="width: 20%;">{{item.organizationName}}</td> |
||||||
|
<td style="width: 10%;" |
||||||
|
[ngClass]="{'green': item.verifyState == '1'||item.verifyState == '4','red':item.verifyState == '2'||item.verifyState == '5'}"> |
||||||
|
{{item.verifyState=='0'?'待初审':item.verifyState=='1'? |
||||||
|
'初审通过':item.verifyState=='2'?'初审驳回':item.verifyState=='3'?'待终审':item.verifyState=='4'?'终审通过':'终审驳回'}} |
||||||
|
</td> |
||||||
|
<td style="width: 10%;">{{item.creatorName}}</td> |
||||||
|
<td style="width: 15%;">{{item.createTime|date:'yyyy-MM-dd'}}</td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
<mat-paginator [length]="count" [pageIndex]="PageNumber - 1" [pageSize]="10" (page)="chagePage($event)"> |
||||||
|
</mat-paginator> |
||||||
</div> |
</div> |
||||||
|
|
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="mask" *ngIf="isTableData"> |
||||||
|
<mat-spinner [diameter]="30"></mat-spinner> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="boxright"> |
||||||
|
<div class="company" *ngIf="showtype == 3"> |
||||||
|
<mat-tab-group *ngIf="showtype == 3" style="flex: 1;overflow-y: auto;margin-top: 10px;" |
||||||
|
[selectedIndex]="selected.value" (selectedIndexChange)="selected.setValue($event)"> |
||||||
|
<mat-tab label="基本信息"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-basic-info></app-basic-info> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="平面图"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-plan-list [planType]="'all'"></app-plan-list> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="四周毗邻"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-allaround></app-allaround> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="消防设施"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-fire-facilities></app-fire-facilities> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="重点部位"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-key-site-look></app-key-site-look> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="功能分区"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-function-partition></app-function-partition> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="实景图"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-realistic-picture-look></app-realistic-picture-look> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
<mat-tab label="CAD"> |
||||||
|
<ng-template matTabContent> |
||||||
|
<app-cad-draw></app-cad-draw> |
||||||
|
</ng-template> |
||||||
|
</mat-tab> |
||||||
|
</mat-tab-group> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="word" *ngIf="showtype==0"> |
||||||
|
<div class="shadow" *ngIf="!iftrue"> |
||||||
|
<mat-spinner [diameter]="30"></mat-spinner> |
||||||
|
</div> |
||||||
|
<button mat-raised-button color="primary" style="float: right;margin-top: 10px;margin-right: 15px;" |
||||||
|
*ngIf="showtype == 0||bianzhi" (click)='lookNew()'>查看详情</button> |
||||||
|
<iframe [src]='iframeSrc' (load)='ifranmeLoad()' id="myiframe"></iframe> |
||||||
|
</div> |
||||||
|
<div id="viewer" *ngIf="showtype==1"></div> |
||||||
|
<div class="twoD" *ngIf="showtype==2"> |
||||||
|
<div class="planBox"> |
||||||
|
<span>单位名称: </span> |
||||||
|
<span>{{compantData.name?compantData.name : '暂无数据'}}</span> |
||||||
|
</div> |
||||||
|
<div class="planBox"> |
||||||
|
<span>消防救援站: </span> |
||||||
|
<span>{{organizationName}}</span> |
||||||
|
</div> |
||||||
|
<div class="planBox"> |
||||||
|
<span>单位类型: </span> |
||||||
|
<span>{{compantData.buildingTypes.length?compantData.buildingTypes[0].name : '暂无数据'}}</span> |
||||||
|
</div> |
||||||
|
<div class="planBox"> |
||||||
|
<span>单位地址: </span> |
||||||
|
<span>{{compantData.address?compantData.address : '暂无数据'}}</span> |
||||||
|
</div> |
||||||
|
<div class="planBox"> |
||||||
|
<span style="color: #2196F3;cursor:pointer;" (click)='oopen3Dshow()'>查看详情</span> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<!-- 水源审核 --> |
||||||
|
<div class="waterAudit" *ngIf="showtype == 12"> |
||||||
|
<app-water-audit [waterData]="waterData"></app-water-audit> |
||||||
|
</div> |
||||||
|
<!-- 消防力量审核 --> |
||||||
|
<div class="fireForceAudit" *ngIf="showtype == 13"> |
||||||
|
<app-fireforce-audit [FireForceDetailInfo]="fireForceDetailInfo" [level]="postlevel"></app-fireforce-audit> |
||||||
|
</div> |
||||||
|
<!-- 联动力量审核 --> |
||||||
|
<div class="LinkageForcesAudit" *ngIf="showtype == 14"> |
||||||
|
<app-linkageforces-audit [LinkageForceDetailInfo]="LinkageForceDetailInfo"></app-linkageforces-audit> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
</div> |
@ -1,334 +1,438 @@ |
|||||||
.box{ |
.box { |
||||||
|
height: 100%; |
||||||
|
width: 100%; |
||||||
|
display: flex; |
||||||
|
|
||||||
|
.boxleft { |
||||||
height: 100%; |
height: 100%; |
||||||
width: 100%; |
width: 45%; |
||||||
|
overflow-y: auto; |
||||||
|
background-color: #FFFFFF; |
||||||
display: flex; |
display: flex; |
||||||
.boxleft{ |
flex-direction: column; |
||||||
height: 100%; |
position: relative; |
||||||
width: 45%; |
|
||||||
overflow-y: auto; |
.lefthead { |
||||||
background-color: #FFFFFF; |
height: 100%; |
||||||
|
display: flex; |
||||||
|
flex-direction: column; |
||||||
|
|
||||||
|
.headdiv { |
||||||
|
@media screen and (min-device-width:1400px) { |
||||||
|
margin: 30px 0 0 28px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1200px) { |
||||||
|
margin-top: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
|
margin: 20px 0 0 15px; |
||||||
|
} |
||||||
|
|
||||||
|
height: 40px; |
||||||
display: flex; |
display: flex; |
||||||
flex-direction: column; |
align-items: center; |
||||||
.lefthead{ |
flex-direction: row; |
||||||
display: flex; |
|
||||||
flex-direction: column; |
span { |
||||||
.headdiv{ |
@media screen and (min-device-width:1400px) { |
||||||
@media screen and (min-device-width:1400px){ |
font-size: 16px; |
||||||
margin: 30px 0 0 28px; |
} |
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
@media screen and (max-device-width:1200px) { |
||||||
margin-top: 10px; |
font-size: 13px; |
||||||
} |
} |
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
margin: 20px 0 0 15px; |
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
} |
font-size: 16px; |
||||||
height: 40px; |
} |
||||||
display: flex; |
|
||||||
flex-direction: row; |
margin-left: 3px; |
||||||
span{ |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
font-size: 13px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
margin-left: 3px; |
|
||||||
} |
|
||||||
input{ |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
margin-left: 50px; |
|
||||||
top: 6px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
margin-left: 12px; |
|
||||||
top: 3px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
margin-left: 12px; |
|
||||||
top: 6px; |
|
||||||
} |
|
||||||
position: relative; |
|
||||||
|
|
||||||
} |
|
||||||
.count{ |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
margin-left: 110px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
margin-left: 20px; |
|
||||||
position: relative; |
|
||||||
bottom: 4px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
margin-left: 20px; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.headdivtwo{ |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
margin: 0 0 0 28px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
margin-left: 0; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
margin: 0 0 0 15px; |
|
||||||
} |
|
||||||
//height: 40px; |
|
||||||
display: flex; |
|
||||||
flex-direction: row; |
|
||||||
span{ |
|
||||||
@media screen and (min-device-width:1200px){ |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
font-size: 13px; |
|
||||||
} |
|
||||||
|
|
||||||
margin-left: 3px; |
|
||||||
} |
|
||||||
input{ |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
margin-left: 50px; |
|
||||||
top: 5px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
margin-left: 0; |
|
||||||
top: 3px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
margin-left: 0; |
|
||||||
top: 5px; |
|
||||||
} |
|
||||||
position: relative; |
|
||||||
|
|
||||||
|
|
||||||
left: 2px; |
|
||||||
} |
|
||||||
.count{ |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
margin-left: 110px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px){ |
|
||||||
margin-left: 20px; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.headthree{ |
|
||||||
|
|
||||||
height: 45px; |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
margin-left: 30px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
font-size: 13px; |
|
||||||
mat-form-field{ |
|
||||||
width: 50px; |
|
||||||
} |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
margin-left: 15px; |
|
||||||
mat-form-field{ |
|
||||||
width: 50px; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.headfour{ |
|
||||||
|
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
font-size: 13px; |
|
||||||
mat-form-field{ |
|
||||||
width: 80px; |
|
||||||
} |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
margin-left: 15px; |
|
||||||
mat-form-field{ |
|
||||||
width: 80px; |
|
||||||
} |
|
||||||
} |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
margin-left: 30px; |
|
||||||
} |
|
||||||
span{ |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
//margin-left: 30px; |
|
||||||
} |
|
||||||
} |
|
||||||
button{ |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
margin-left: 40px; |
|
||||||
font-size: 16px; |
|
||||||
width: 80px; |
|
||||||
height: 36px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
margin-left: 80px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
margin-left: 80px; |
|
||||||
} |
|
||||||
} |
|
||||||
img{ |
|
||||||
@media screen and (max-device-width:1400px) and (min-device-width:1200px){ |
|
||||||
height: 14px; |
|
||||||
width: 14px; |
|
||||||
} |
|
||||||
@media screen and (min-device-width:1400px){ |
|
||||||
height: 14px; |
|
||||||
width: 14px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
height: 12px; |
|
||||||
width: 12px; |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
|
|
||||||
.tablediv{ |
input { |
||||||
width: 100%; |
@media screen and (min-device-width:1400px) { |
||||||
height: 100%; |
margin-left: 40px; |
||||||
padding-bottom: 20px; |
|
||||||
|
} |
||||||
.tbodycss{ |
|
||||||
//overflow-y: auto; |
@media screen and (max-device-width:1200px) { |
||||||
@media screen and (min-device-width:1400px){ |
margin-left: 12px; |
||||||
overflow-y: auto; |
} |
||||||
} |
|
||||||
height:550px; |
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
width: 100%; |
margin-left: 12px; |
||||||
.selectedTr{ |
|
||||||
background-color: #b3d3ee; |
} |
||||||
} |
|
||||||
} |
position: relative; |
||||||
table{ |
|
||||||
//margin: 20px 20px; |
|
||||||
margin-left: 10px; |
|
||||||
margin-right: 10px; |
|
||||||
width: 97.5%; |
|
||||||
//border: 1px solid #2196F3; |
|
||||||
thead{ |
|
||||||
height:48px; |
|
||||||
color: #FFFFFF; |
|
||||||
background-color: #2196F3; |
|
||||||
//font-size: 16px; |
|
||||||
th{ |
|
||||||
font-weight:10; |
|
||||||
@media screen and (min-device-width:1200px){ |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width:1200px){ |
|
||||||
font-size: 13px; |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
tr:nth-child(odd){ |
|
||||||
background: #FAFAFA; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
} |
|
||||||
.boxright{ |
.count { |
||||||
height: 100%; |
@media screen and (min-device-width:1400px) { |
||||||
width: 53%; |
margin-left: 110px; |
||||||
flex: 1; |
} |
||||||
background-color: #FFFFFF; |
|
||||||
margin-left: 10px; |
@media screen and (max-device-width:1200px) { |
||||||
|
margin-left: 20px; |
||||||
|
position: relative; |
||||||
|
bottom: 4px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
|
margin-left: 20px; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.headdivtwo { |
||||||
|
@media screen and (min-device-width:1400px) { |
||||||
|
margin: 0 0 0 28px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1200px) { |
||||||
|
margin-left: 0; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
|
margin: 0 0 0 15px; |
||||||
|
} |
||||||
|
|
||||||
|
//height: 40px; |
||||||
display: flex; |
display: flex; |
||||||
flex-direction: column; |
flex-direction: row; |
||||||
@media screen and (max-device-width:1300px){ |
align-items: center; |
||||||
overflow-y: auto; |
|
||||||
|
span { |
||||||
|
@media screen and (min-device-width:1200px) { |
||||||
|
font-size: 16px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1200px) { |
||||||
|
font-size: 13px; |
||||||
|
} |
||||||
|
|
||||||
|
margin-left: 3px; |
||||||
} |
} |
||||||
.company{ |
|
||||||
@media screen and (min-device-width:1300px){ |
input { |
||||||
overflow-y: auto; |
@media screen and (min-device-width:1400px) { |
||||||
} |
margin-left: 40px; |
||||||
flex: 1; |
|
||||||
//overflow-y: auto; |
} |
||||||
margin-top: 10px; |
|
||||||
|
@media screen and (max-device-width:1200px) { |
||||||
|
margin-left: 0; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
|
margin-left: 0; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
position: relative; |
||||||
|
|
||||||
|
|
||||||
|
left: 2px; |
||||||
} |
} |
||||||
.word{ |
|
||||||
width: 100%; |
.count { |
||||||
height: 100%; |
@media screen and (min-device-width:1400px) { |
||||||
.shadow{ |
margin-left: 110px; |
||||||
height: 95%; |
} |
||||||
width: 97%; |
|
||||||
margin: 10px 10px 10px 10px; |
@media screen and (max-device-width:1400px) { |
||||||
/* position:absolute; |
margin-left: 20px; |
||||||
left:0; |
} |
||||||
top:0; */ |
} |
||||||
z-index:998; |
} |
||||||
background-color:#FFFFFF; |
|
||||||
opacity:0.6; |
.headthree { |
||||||
mat-spinner{ |
|
||||||
position: relative; |
height: 45px; |
||||||
top: 40%; |
|
||||||
left: 40%; |
@media screen and (min-device-width:1400px) { |
||||||
} |
margin-left: 30px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1200px) { |
||||||
|
font-size: 13px; |
||||||
|
|
||||||
|
mat-form-field { |
||||||
|
width: 50px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
|
margin-left: 15px; |
||||||
|
|
||||||
|
mat-form-field { |
||||||
|
width: 50px; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.headfour { |
||||||
|
|
||||||
|
@media screen and (max-device-width:1200px) { |
||||||
|
font-size: 13px; |
||||||
|
|
||||||
|
mat-form-field { |
||||||
|
width: 80px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
|
margin-left: 15px; |
||||||
|
|
||||||
|
mat-form-field { |
||||||
|
width: 80px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (min-device-width:1400px) { |
||||||
|
margin-left: 30px; |
||||||
|
} |
||||||
|
|
||||||
|
span { |
||||||
|
@media screen and (min-device-width:1400px) { |
||||||
|
//margin-left: 30px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
button { |
||||||
|
@media screen and (min-device-width:1400px) { |
||||||
|
margin-left: 40px; |
||||||
|
font-size: 13px; |
||||||
|
width: 65px; |
||||||
|
height: 34px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1200px) { |
||||||
|
margin-left: 80px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
|
margin-left: 80px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
img { |
||||||
|
@media screen and (max-device-width:1400px) and (min-device-width:1200px) { |
||||||
|
height: 14px; |
||||||
|
width: 14px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (min-device-width:1400px) { |
||||||
|
height: 14px; |
||||||
|
width: 14px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width:1200px) { |
||||||
|
height: 12px; |
||||||
|
width: 12px; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.btnbox { |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
button { |
||||||
|
margin: 0 6px; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.tablediv { |
||||||
|
width: 100%; |
||||||
|
flex: 1; |
||||||
|
display: flex; |
||||||
|
flex-direction: column; |
||||||
|
overflow: hidden; |
||||||
|
|
||||||
|
.header { |
||||||
|
margin-left: 10px; |
||||||
|
margin-right: 10px; |
||||||
|
width: 97.5%; |
||||||
|
|
||||||
|
thead { |
||||||
|
height: 48px; |
||||||
|
color: #FFFFFF; |
||||||
|
background-color: #2196F3; |
||||||
|
|
||||||
|
th { |
||||||
|
font-weight: 10; |
||||||
|
|
||||||
|
@media screen and (min-device-width:1200px) { |
||||||
|
font-size: 16px; |
||||||
} |
} |
||||||
iframe{ |
|
||||||
height: 94%; |
@media screen and (max-device-width:1200px) { |
||||||
width: 97%; |
font-size: 13px; |
||||||
margin: 10px 10px 10px 10px; |
|
||||||
overflow-y: auto; |
|
||||||
border: medium none; |
|
||||||
} |
} |
||||||
|
|
||||||
|
} |
||||||
} |
} |
||||||
#viewer{ |
|
||||||
margin: 30px 10px 10px 10px; |
tr:nth-child(odd) { |
||||||
width: 97%; |
background: #FAFAFA; |
||||||
height: 94%; |
|
||||||
} |
} |
||||||
.waterAudit,.fireForceAudit,.LinkageForcesAudit{ |
} |
||||||
flex: 1; |
|
||||||
width: 100%; |
.tbodycss { |
||||||
height: 100%; |
flex: 1; |
||||||
box-sizing: border-box; |
width: 100%; |
||||||
|
overflow-y: auto; |
||||||
|
|
||||||
|
.selectedTr { |
||||||
|
background-color: #b3d3ee; |
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
} |
|
||||||
th,td{ |
.mask { |
||||||
height:48px; |
position: absolute; |
||||||
@media screen and (min-device-width:1200px){ |
width: 100%; |
||||||
font-size: 16px; |
height: 100%; |
||||||
} |
background: rgba(0, 0, 0, 0.2); |
||||||
@media screen and (max-device-width:1200px){ |
display: flex; |
||||||
font-size: 13px; |
justify-content: center; |
||||||
|
align-items: center; |
||||||
} |
} |
||||||
text-align: center; |
} |
||||||
} |
|
||||||
.green{color: #00C756;} |
.boxright { |
||||||
.red{color: #FF4D4D;} |
height: 100%; |
||||||
.yellow{color: #FFC94B;} |
width: 53%; |
||||||
.twoD { |
flex: 1; |
||||||
width: 100%; |
background-color: #FFFFFF; |
||||||
box-sizing: border-box; |
margin-left: 10px; |
||||||
display: flex; |
display: flex; |
||||||
flex-direction: column; |
flex-direction: column; |
||||||
align-items: left; |
|
||||||
.planBox { |
@media screen and (max-device-width:1300px) { |
||||||
margin: 30px 30px; |
overflow-y: auto; |
||||||
color: black; |
} |
||||||
:first-child {margin-right: 10px;} |
|
||||||
|
.company { |
||||||
|
@media screen and (min-device-width:1300px) { |
||||||
|
overflow-y: auto; |
||||||
|
} |
||||||
|
|
||||||
|
flex: 1; |
||||||
|
//overflow-y: auto; |
||||||
|
margin-top: 10px; |
||||||
} |
} |
||||||
|
|
||||||
|
.word { |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
|
||||||
|
.shadow { |
||||||
|
height: 95%; |
||||||
|
width: 97%; |
||||||
|
margin: 10px 10px 10px 10px; |
||||||
|
/* position:absolute; |
||||||
|
left:0; |
||||||
|
top:0; */ |
||||||
|
z-index: 998; |
||||||
|
background-color: #FFFFFF; |
||||||
|
opacity: 0.6; |
||||||
|
|
||||||
|
mat-spinner { |
||||||
|
position: relative; |
||||||
|
top: 40%; |
||||||
|
left: 40%; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
iframe { |
||||||
|
height: 94%; |
||||||
|
width: 97%; |
||||||
|
margin: 10px 10px 10px 10px; |
||||||
|
overflow-y: auto; |
||||||
|
border: medium none; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
#viewer { |
||||||
|
margin: 30px 10px 10px 10px; |
||||||
|
width: 97%; |
||||||
|
height: 94%; |
||||||
|
} |
||||||
|
|
||||||
|
.waterAudit, |
||||||
|
.fireForceAudit, |
||||||
|
.LinkageForcesAudit { |
||||||
|
flex: 1; |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
box-sizing: border-box; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
th, |
||||||
|
td { |
||||||
|
height: 48px; |
||||||
|
|
||||||
|
@media screen and (min-device-width:1200px) { |
||||||
|
font-size: 16px; |
||||||
} |
} |
||||||
|
|
||||||
//滚动条样式 |
@media screen and (max-device-width:1200px) { |
||||||
::-webkit-scrollbar{ |
font-size: 13px; |
||||||
margin-right: 3px; |
|
||||||
width: 6px; |
|
||||||
background-color: white; |
|
||||||
} |
} |
||||||
::-webkit-scrollbar-thumb{ |
|
||||||
background-color: #2196F3; |
text-align: center; |
||||||
|
} |
||||||
|
|
||||||
|
.green { |
||||||
|
color: #00C756; |
||||||
|
} |
||||||
|
|
||||||
|
.red { |
||||||
|
color: #FF4D4D; |
||||||
|
} |
||||||
|
|
||||||
|
.yellow { |
||||||
|
color: #FFC94B; |
||||||
|
} |
||||||
|
|
||||||
|
.twoD { |
||||||
|
width: 100%; |
||||||
|
box-sizing: border-box; |
||||||
|
display: flex; |
||||||
|
flex-direction: column; |
||||||
|
align-items: left; |
||||||
|
|
||||||
|
.planBox { |
||||||
|
margin: 30px 30px; |
||||||
|
color: black; |
||||||
|
|
||||||
|
:first-child { |
||||||
|
margin-right: 10px; |
||||||
|
} |
||||||
} |
} |
||||||
.mat-form-field-infix{ |
} |
||||||
width: 100px; |
|
||||||
} |
//滚动条样式 |
||||||
|
::-webkit-scrollbar { |
||||||
|
margin-right: 3px; |
||||||
|
width: 6px; |
||||||
|
background-color: white; |
||||||
|
} |
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb { |
||||||
|
background-color: #2196F3; |
||||||
|
} |
||||||
|
|
||||||
|
.mat-form-field-infix { |
||||||
|
width: 100px; |
||||||
|
} |
||||||
|
@ -1,340 +1,376 @@ |
|||||||
/* |
import { Component, OnInit, Inject } from "@angular/core"; |
||||||
* @Descripttion:
|
import { FormControl } from "@angular/forms"; |
||||||
* @version:
|
import { MatSnackBar, MatSnackBarConfig } from "@angular/material/snack-bar"; |
||||||
* @Author: sueRimn |
import { |
||||||
* @Date: 2020-12-25 10:19:31 |
MatDialog, |
||||||
* @LastEditors: sueRimn |
MatDialogRef, |
||||||
* @LastEditTime: 2021-08-16 15:29:41 |
MAT_DIALOG_DATA, |
||||||
*/ |
} from "@angular/material/dialog"; |
||||||
import { Component, OnInit, Inject } from '@angular/core'; |
import { HttpClient } from "@angular/common/http"; |
||||||
import { FormControl } from '@angular/forms'; |
import { DomSanitizer } from "@angular/platform-browser"; |
||||||
import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; |
import { Viewer } from "photo-sphere-viewer"; |
||||||
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; |
declare var CryptoJS; |
||||||
import { HttpClient } from '@angular/common/http' |
|
||||||
import { DomSanitizer } from '@angular/platform-browser'; |
|
||||||
import { Viewer } from 'photo-sphere-viewer'; |
|
||||||
declare var CryptoJS |
|
||||||
|
|
||||||
@Component({ |
@Component({ |
||||||
selector: 'app-plan-record', |
selector: "app-plan-record", |
||||||
templateUrl: './plan-record.component.html', |
templateUrl: "./plan-record.component.html", |
||||||
styleUrls: ['./plan-record.component.scss'] |
styleUrls: ["./plan-record.component.scss"], |
||||||
}) |
}) |
||||||
export class PlanRecordComponent implements OnInit { |
export class PlanRecordComponent implements OnInit { |
||||||
|
constructor( |
||||||
|
private http: HttpClient, |
||||||
|
public snackBar: MatSnackBar, |
||||||
|
private sanitizer: DomSanitizer, |
||||||
|
public dialog: MatDialog |
||||||
|
) {} |
||||||
|
|
||||||
constructor(private http: HttpClient, public snackBar: MatSnackBar, private sanitizer: DomSanitizer, public dialog: MatDialog) { } |
pcshow; |
||||||
|
|
||||||
pcshow |
|
||||||
ngOnInit(): void { |
ngOnInit(): void { |
||||||
if (window.matchMedia("(max-width: 1300px)").matches) { |
if (window.matchMedia("(max-width: 1300px)").matches) { |
||||||
this.pcshow = false |
this.pcshow = false; |
||||||
} else { |
} else { |
||||||
this.pcshow = true |
this.pcshow = true; |
||||||
} |
} |
||||||
let level = sessionStorage.getItem("level"); |
let level = sessionStorage.getItem("level"); |
||||||
if (level == "0") {//如果是总队
|
if (level == "0") { |
||||||
|
//如果是总队
|
||||||
this.preparelevels = [ |
this.preparelevels = [ |
||||||
{ name: "总队", value: "0" }, |
{ name: "总队", value: "0" }, |
||||||
{ name: "支队", value: "1" }, |
{ name: "支队", value: "1" }, |
||||||
{ name: "大队", value: "2" }, |
{ name: "大队", value: "2" }, |
||||||
{ name: "中队", value: "3" } |
{ name: "中队", value: "3" }, |
||||||
] |
]; |
||||||
|
|
||||||
} |
} |
||||||
if (level == "1") {//如果是支队
|
if (level == "1") { |
||||||
|
//如果是支队
|
||||||
this.preparelevels = [ |
this.preparelevels = [ |
||||||
{ name: "支队", value: "1" }, |
{ name: "支队", value: "1" }, |
||||||
{ name: "大队", value: "2" }, |
{ name: "大队", value: "2" }, |
||||||
{ name: "中队", value: "3" } |
{ name: "中队", value: "3" }, |
||||||
] |
]; |
||||||
|
|
||||||
} |
} |
||||||
if (level == "2") {//如果是大队
|
if (level == "2") { |
||||||
|
//如果是大队
|
||||||
this.preparelevels = [ |
this.preparelevels = [ |
||||||
{ name: "大队", value: "2" }, |
{ name: "大队", value: "2" }, |
||||||
{ name: "中队", value: "3" } |
{ name: "中队", value: "3" }, |
||||||
] |
]; |
||||||
|
|
||||||
} |
} |
||||||
if (level == "3") {//如果是中队
|
if (level == "3") { |
||||||
this.preparelevels = [ |
//如果是中队
|
||||||
{ name: "中队", value: "3" } |
this.preparelevels = [{ name: "中队", value: "3" }]; |
||||||
] |
|
||||||
|
|
||||||
} |
} |
||||||
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl(this.src); |
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl(this.src); |
||||||
this.getAlltabledate() |
this.getAlltabledate(); |
||||||
} |
} |
||||||
|
|
||||||
wordShow = true |
wordShow = true; |
||||||
iframeSrc |
iframeSrc; |
||||||
src = '' |
src = ""; |
||||||
selected = new FormControl(0); //选项卡 实例
|
selected = new FormControl(0); //选项卡 实例
|
||||||
preparelevels: any |
preparelevels: any; |
||||||
level = ''//类型
|
level = ""; //类型
|
||||||
verifyState = ''//审核状态
|
verifyState = ""; //审核状态
|
||||||
projectlevel//组织机构
|
projectlevel; //组织机构
|
||||||
PlanLevel//编制级别
|
PlanLevel; //编制级别
|
||||||
addtime//时间
|
addtime; //时间
|
||||||
endtime//结束时间
|
endtime; //结束时间
|
||||||
count//一共多少条
|
count; //一共多少条
|
||||||
tableDate |
tableDate; |
||||||
showPvt = false//全景图是否显示
|
showPvt = false; //全景图是否显示
|
||||||
shenheTable = []//选中要审核的对象
|
shenheTable = []; //选中要审核的对象
|
||||||
chuorzhong//判断初审还是终审
|
chuorzhong; //判断初审还是终审
|
||||||
radioid//选中的id
|
radioid; //选中的id
|
||||||
showtype = -1//0:word,1:全景图,2:二维三维,3:重点单位
|
showtype = -1; //0:word,1:全景图,2:二维三维,3:重点单位
|
||||||
compantData = { name: '', buildingTypes: [], address: '' } |
compantData = { name: "", buildingTypes: [], address: "" }; |
||||||
organizationName |
organizationName; |
||||||
planData |
planData; |
||||||
id |
id; |
||||||
itemid |
itemid; |
||||||
companyId |
companyId; |
||||||
fetchUrl |
fetchUrl; |
||||||
companyName |
companyName; |
||||||
plantypes |
plantypes; |
||||||
IsNewData=[true,false] |
IsNewData = [true, false]; |
||||||
|
|
||||||
//获取表格数据
|
//获取表格数据
|
||||||
|
PageNumber = 1; |
||||||
|
isTableData = false; |
||||||
getAlltabledate() { |
getAlltabledate() { |
||||||
|
this.isTableData = true; |
||||||
let paramsdata: any = { |
let paramsdata: any = { |
||||||
Operation: this.level || [], |
Operation: this.level || [], |
||||||
ContentType: Number(this.projectlevel) || [], |
ContentType: Number(this.projectlevel) || [], |
||||||
Level: this.PlanLevel || [], |
Level: this.PlanLevel || [], |
||||||
verifyState: this.verifyState || [1, 2, 4, 5], |
verifyState: this.verifyState || [1, 2, 4, 5], |
||||||
QueryStartTime: this.addtime || '', |
QueryStartTime: this.addtime || "", |
||||||
QueryEndTime: this.endtime || '', |
QueryEndTime: this.endtime || "", |
||||||
PlanType:this.plantypes||[], |
PlanType: this.plantypes || [], |
||||||
IsNewData:this.IsNewData |
IsNewData: this.IsNewData, |
||||||
} |
PageNumber: this.PageNumber, |
||||||
this.http.get("/api/ContentVerifies", { params: paramsdata }).subscribe((data: any) => { |
PageSize: 10, |
||||||
//console.log(data)
|
PageType: 2, |
||||||
this.tableDate = data.items |
}; |
||||||
this.count = data.totalCount |
this.http |
||||||
}) |
.get("/api/ContentVerifies", { params: paramsdata }) |
||||||
|
.subscribe((data: any) => { |
||||||
|
//console.log(data)
|
||||||
|
this.isTableData = false; |
||||||
|
this.tableDate = data.items; |
||||||
|
this.count = data.totalCount; |
||||||
|
}); |
||||||
} |
} |
||||||
//提交查询
|
//提交查询
|
||||||
onSubmit(value) { |
onSubmit(value) { |
||||||
//console.log(value)
|
this.PageNumber = 1; |
||||||
this.getAlltabledate() |
this.getAlltabledate(); |
||||||
} |
} |
||||||
//刷新
|
//刷新
|
||||||
record() { |
record() { |
||||||
this.verifyState = '' |
this.verifyState = ""; |
||||||
this.level = '' |
this.level = ""; |
||||||
this.projectlevel = '' |
this.projectlevel = ""; |
||||||
this.addtime = '' |
this.IsNewData = [true, false]; |
||||||
this.endtime = '' |
this.addtime = ""; |
||||||
let level = sessionStorage.getItem("level"); |
this.endtime = ""; |
||||||
this.PlanLevel = '' |
this.PlanLevel = ""; |
||||||
this.plantypes=[] |
this.plantypes = []; |
||||||
this.getAlltabledate() |
this.PageNumber = 1; //分页事件触发刷新
|
||||||
|
this.getAlltabledate(); |
||||||
|
} |
||||||
|
|
||||||
|
//分页事件
|
||||||
|
chagePage(e) { |
||||||
|
console.log("分页事件", e); |
||||||
|
this.PageNumber = e.pageIndex + 1; |
||||||
|
this.getAlltabledate(); |
||||||
} |
} |
||||||
//表格点击事件
|
//表格点击事件
|
||||||
viewer//全景图对象
|
viewer; //全景图对象
|
||||||
waterData: any//需要传递给子组件的水源信息
|
waterData: any; //需要传递给子组件的水源信息
|
||||||
LinkageForceDetailInfo: any//需要传递给子组件的联动力量信息
|
LinkageForceDetailInfo: any; //需要传递给子组件的联动力量信息
|
||||||
fireForceDetailInfo: any//需要传递给子组件的消防力量信息
|
fireForceDetailInfo: any; //需要传递给子组件的消防力量信息
|
||||||
postlevel: any |
postlevel: any; |
||||||
bianzhi = false |
bianzhi = false; |
||||||
tableClick(e, item) { |
tableClick(e, item) { |
||||||
this.showtype = -1 |
this.showtype = -1; |
||||||
//e.target.parentElement.bgColor='#2196F3'
|
//e.target.parentElement.bgColor='#2196F3'
|
||||||
// console.log(item)
|
// console.log(item)
|
||||||
this.organizationName = '' |
this.organizationName = ""; |
||||||
this.itemid = item.itemId |
this.itemid = item.itemId; |
||||||
this.id = item.id |
this.id = item.id; |
||||||
this.fetchUrl = '' |
this.fetchUrl = ""; |
||||||
this.viewer = {} |
this.viewer = {}; |
||||||
if (item.contentType == 11) { |
if (item.contentType == 11) { |
||||||
this.bianzhi = false |
this.bianzhi = false; |
||||||
window.setTimeout(() => { |
window.setTimeout(() => { |
||||||
this.showtype = 3 |
this.showtype = 3; |
||||||
sessionStorage.setItem('companyId', item.itemId) |
sessionStorage.setItem("companyId", item.itemId); |
||||||
}, 0) |
}, 0); |
||||||
} else if (item.contentType == 12) { |
} else if (item.contentType == 12) { |
||||||
this.bianzhi = false |
this.bianzhi = false; |
||||||
//水源
|
//水源
|
||||||
this.http.get(`/api/WaterSources/${item.itemId}`).subscribe((data) => { |
this.http.get(`/api/WaterSources/${item.itemId}`).subscribe((data) => { |
||||||
this.waterData = data |
this.waterData = data; |
||||||
this.showtype = 12 |
this.showtype = 12; |
||||||
}) |
}); |
||||||
} else if (item.contentType == 13) { |
} else if (item.contentType == 13) { |
||||||
this.bianzhi = false |
this.bianzhi = false; |
||||||
//消防力量
|
//消防力量
|
||||||
this.http.get(`/api/CustomFireForce/${item.itemId}`).subscribe((data: any) => { |
this.http |
||||||
if (data.forceType != 0) {//如果是其他消防力量
|
.get(`/api/CustomFireForce/${item.itemId}`) |
||||||
this.postlevel = 4 |
.subscribe((data: any) => { |
||||||
} else { |
if (data.forceType != 0) { |
||||||
this.postlevel = data.level |
//如果是其他消防力量
|
||||||
} |
this.postlevel = 4; |
||||||
// console.log('xxx',data)
|
} else { |
||||||
data.fireForceDetailInfo.location ? null : data.fireForceDetailInfo.location = { x: null, y: null } |
this.postlevel = data.level; |
||||||
this.fireForceDetailInfo = data.fireForceDetailInfo |
} |
||||||
this.showtype = 13 |
// console.log('xxx',data)
|
||||||
}) |
data.fireForceDetailInfo.location |
||||||
|
? null |
||||||
|
: (data.fireForceDetailInfo.location = { x: null, y: null }); |
||||||
|
this.fireForceDetailInfo = data.fireForceDetailInfo; |
||||||
|
this.showtype = 13; |
||||||
|
}); |
||||||
} else if (item.contentType == 14) { |
} else if (item.contentType == 14) { |
||||||
this.bianzhi = false |
this.bianzhi = false; |
||||||
//联动力量
|
//联动力量
|
||||||
this.http.get(`/api/LinkageForces/${item.itemId}`).subscribe((data: any) => { |
this.http |
||||||
|
.get(`/api/LinkageForces/${item.itemId}`) |
||||||
data.location ? null : data.location = { x: null, y: null } |
.subscribe((data: any) => { |
||||||
this.LinkageForceDetailInfo = data |
data.location ? null : (data.location = { x: null, y: null }); |
||||||
this.showtype = 14 |
this.LinkageForceDetailInfo = data; |
||||||
}) |
this.showtype = 14; |
||||||
|
}); |
||||||
} else { |
} else { |
||||||
this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data: any) => { |
this.http |
||||||
this.companyId = data.companyId |
.get(`/api/PlanComponents/${item.itemId}`) |
||||||
this.companyName = data.companyName |
.subscribe((data: any) => { |
||||||
//this.bianzhi = false
|
this.companyId = data.companyId; |
||||||
|
this.companyName = data.companyName; |
||||||
|
//this.bianzhi = false
|
||||||
if (data.planType != 2 && data.planType != 1) { |
if (data.planType != 2 && data.planType != 1) { |
||||||
if (data.planMode == 2) { |
if (data.planMode == 2) { |
||||||
this.showtype = 0 |
this.showtype = 0; |
||||||
this.bianzhi = true |
this.bianzhi = true; |
||||||
this.src = `/CreatePlanOnlineFive?navIsOpen=false&companyId=${data.companyId}&planName=${data.name}&unitName=${data.companyName}&planCategory=${data.planCategory}&planId=${data.id}&unitTypeId=${data.company.buildingTypes[0].id}&orName=${data.company.organizationName}&orId=${data.company.organizationId}&pattern=false` |
this.src = `/CreatePlanOnlineFive?navIsOpen=false&companyId=${data.companyId}&planName=${data.name}&unitName=${data.companyName}&planCategory=${data.planCategory}&planId=${data.id}&unitTypeId=${data.company.buildingTypes[0].id}&orName=${data.company.organizationName}&orId=${data.company.organizationId}&pattern=false`; |
||||||
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl(this.src); |
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl( |
||||||
|
this.src |
||||||
|
); |
||||||
//this.src=`/keyUnit/viewunitinfoplan?id=${data.companyId}&orName=${data.company.organizationId}&orId=${data.company.organizationName}`
|
//this.src=`/keyUnit/viewunitinfoplan?id=${data.companyId}&orName=${data.company.organizationId}&orId=${data.company.organizationName}`
|
||||||
} else{ |
|
||||||
this.bianzhi = false |
|
||||||
this.fetchUrl = data.attachmentUrls[0] |
|
||||||
var index = this.fetchUrl.indexOf("\/") |
|
||||||
if (this.fetchUrl.substr(0, index) == 'psw') { |
|
||||||
this.showtype = 1 |
|
||||||
var obj = document.getElementById('viewer') |
|
||||||
if (obj != null) { |
|
||||||
obj.innerHTML = '' |
|
||||||
} |
|
||||||
window.setTimeout(() => { |
|
||||||
this.viewer = new Viewer({ |
|
||||||
container: document.querySelector('#viewer'), |
|
||||||
panorama: '/api/Objects/PlanPlatform/' + this.fetchUrl, |
|
||||||
|
|
||||||
}); |
|
||||||
}) |
|
||||||
|
|
||||||
} else { |
} else { |
||||||
this.lookWord() |
this.bianzhi = false; |
||||||
} |
this.fetchUrl = data.attachmentUrls[0]; |
||||||
|
var index = this.fetchUrl.indexOf("/"); |
||||||
|
if (this.fetchUrl.substr(0, index) == "psw") { |
||||||
|
this.showtype = 1; |
||||||
|
var obj = document.getElementById("viewer"); |
||||||
|
if (obj != null) { |
||||||
|
obj.innerHTML = ""; |
||||||
|
} |
||||||
|
window.setTimeout(() => { |
||||||
|
this.viewer = new Viewer({ |
||||||
|
container: document.querySelector("#viewer"), |
||||||
|
panorama: "/api/Objects/PlanPlatform/" + this.fetchUrl, |
||||||
|
}); |
||||||
|
}); |
||||||
|
} else { |
||||||
|
this.lookWord(); |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
} else { |
} else { |
||||||
this.organizationName = item.organizationName |
this.organizationName = item.organizationName; |
||||||
this.planData = data |
this.planData = data; |
||||||
this.handleData() |
this.handleData(); |
||||||
return |
return; |
||||||
|
|
||||||
//this.src=`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`
|
//this.src=`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`
|
||||||
//this.iframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.src);
|
//this.iframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.src);
|
||||||
//window.open(`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`)
|
//window.open(`/planAudit/planpass?id=${data.companyId}&companyName=${data.companyName}&auditPlanId=${data.id}&auditStatus=${data.auditStatus}&planType=1`)
|
||||||
} |
} |
||||||
|
}); |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}) |
|
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (e.checked) { |
if (e.checked) { |
||||||
this.shenheTable.push(item) |
this.shenheTable.push(item); |
||||||
} |
} else { |
||||||
else { |
|
||||||
for (var i = 0; i < this.shenheTable.length; i++) { |
for (var i = 0; i < this.shenheTable.length; i++) { |
||||||
if (this.shenheTable[i].id == item.id) { |
if (this.shenheTable[i].id == item.id) { |
||||||
this.shenheTable.splice(i, 1) |
this.shenheTable.splice(i, 1); |
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
this.radioid = item.itemId |
this.radioid = item.itemId; |
||||||
/* this.chuorzhong=item.verifyState |
/* this.chuorzhong=item.verifyState |
||||||
this.radioid=item.itemId */ |
this.radioid=item.itemId */ |
||||||
} |
} |
||||||
|
|
||||||
//毕升
|
//毕升
|
||||||
lookWord() { |
lookWord() { |
||||||
this.showtype = 0 |
this.showtype = 0; |
||||||
let suffix = this.fetchUrl.split('.')[this.fetchUrl.split('.').length - 1].toLowerCase() |
let suffix = this.fetchUrl |
||||||
if (suffix == 'docx' || suffix == 'doc') { |
.split(".") |
||||||
let arr = this.fetchUrl.split('.') |
[this.fetchUrl.split(".").length - 1].toLowerCase(); |
||||||
arr[arr.length - 1] = 'pdf' |
if (suffix == "docx" || suffix == "doc") { |
||||||
this.src = `/api/Objects/PlanPlatform/` + arr.join('.') |
let arr = this.fetchUrl.split("."); |
||||||
} else if (suffix == 'pdf') { |
arr[arr.length - 1] = "pdf"; |
||||||
this.src = `/api/Objects/PlanPlatform/` + this.fetchUrl |
this.src = `/api/Objects/PlanPlatform/` + arr.join("."); |
||||||
|
} else if (suffix == "pdf") { |
||||||
|
this.src = `/api/Objects/PlanPlatform/` + this.fetchUrl; |
||||||
} |
} |
||||||
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl(this.src); |
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl(this.src); |
||||||
} |
} |
||||||
//查看按钮跳转
|
//查看按钮跳转
|
||||||
lookNew() { |
lookNew() { |
||||||
window.open(this.src) |
window.open(this.src); |
||||||
} |
} |
||||||
|
|
||||||
//查看二维三维预案
|
//查看二维三维预案
|
||||||
thirdPartyURL |
thirdPartyURL; |
||||||
planType |
planType; |
||||||
twoOrthree |
twoOrthree; |
||||||
handleData() { |
handleData() { |
||||||
this.compantData = { name: '', buildingTypes: [], address: '' } |
console.log(this.planData); |
||||||
this.planType = this.planData.planMode |
this.compantData = { name: "", buildingTypes: [], address: "" }; |
||||||
let data = this.planData |
this.planType = this.planData.planMode; |
||||||
|
let data = this.planData; |
||||||
if (data.planType == 1) { |
if (data.planType == 1) { |
||||||
this.twoOrthree = 2 |
this.twoOrthree = 2; |
||||||
} else if (data.planType == 2) { |
} else if (data.planType == 2) { |
||||||
this.twoOrthree = 3 |
this.twoOrthree = 3; |
||||||
} |
} |
||||||
if (this.planData.planMode == 0) { //预案planMode=0时, 查看word
|
if (this.planData.planMode == 0) { |
||||||
|
//预案planMode=0时, 查看word
|
||||||
//this.lookWord()
|
//this.lookWord()
|
||||||
} else if (this.planData.planMode == 1) { //预案planMode=1时, 解析文档
|
} else if (this.planData.planMode == 1 || this.planData.planMode == 2) { |
||||||
|
//预案planMode=2时, 跳查看页面组件
|
||||||
} else if (this.planData.planMode == 2) { //预案planMode=2时, 跳查看页面组件
|
this.showtype = 2; |
||||||
this.showtype = 2 |
|
||||||
this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => { |
this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => { |
||||||
data && data.company ? this.compantData = data.company : null |
data && data.company ? (this.compantData = data.company) : null; |
||||||
}) |
}); |
||||||
sessionStorage.setItem("buildingTypeId", this.compantData.buildingTypes.length ? this.compantData.buildingTypes[0].id : undefined); |
sessionStorage.setItem( |
||||||
|
"buildingTypeId", |
||||||
|
this.compantData.buildingTypes.length |
||||||
|
? this.compantData.buildingTypes[0].id |
||||||
|
: undefined |
||||||
|
); |
||||||
sessionStorage.setItem("companyId", this.companyId); |
sessionStorage.setItem("companyId", this.companyId); |
||||||
sessionStorage.setItem("planId", this.itemid); |
sessionStorage.setItem("planId", this.itemid); |
||||||
sessionStorage.setItem("editable", '0'); |
sessionStorage.setItem("editable", "0"); |
||||||
sessionStorage.setItem("planName", data.name) |
sessionStorage.setItem("planName", data.name); |
||||||
let companyId = sessionStorage.getItem("companyId") |
let companyId = sessionStorage.getItem("companyId"); |
||||||
this.thirdPartyURL = this.sanitizer.bypassSecurityTrustResourceUrl(`/keyUnit/viewunitinfoplans?id=${companyId}`); |
this.thirdPartyURL = this.sanitizer.bypassSecurityTrustResourceUrl( |
||||||
|
`/keyUnit/viewunitinfoplans?id=${companyId}` |
||||||
|
); |
||||||
//window.open(`/keyUnit/viewunitinfoplan?id=${companyId}`)
|
//window.open(`/keyUnit/viewunitinfoplan?id=${companyId}`)
|
||||||
} else if (this.planData.planMode == 3) { //预案planMode=3时, 第三方网址'
|
} else if (this.planData.planMode == 3) { |
||||||
this.showtype = 2 |
//预案planMode=3时, 第三方网址'
|
||||||
|
this.showtype = 2; |
||||||
this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => { |
this.http.get(`/api/Plans/${data.companyId}`).subscribe((data: any) => { |
||||||
data && data.company ? this.compantData = data.company : null |
data && data.company ? (this.compantData = data.company) : null; |
||||||
}) |
}); |
||||||
//this.dialog.open(show3D,{width:'1350px',height:'700px',data:{url:data.url}}); //打开图片弹窗
|
//this.dialog.open(show3D,{width:'1350px',height:'700px',data:{url:data.url}}); //打开图片弹窗
|
||||||
this.thirdPartyURL = this.sanitizer.bypassSecurityTrustResourceUrl(data.url) |
this.thirdPartyURL = this.sanitizer.bypassSecurityTrustResourceUrl( |
||||||
|
data.url |
||||||
|
); |
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
//打开三维预案弹窗
|
//打开三维预案弹窗
|
||||||
oopen3Dshow() { |
oopen3Dshow() { |
||||||
this.dialog.open(recordshow3D, { width: '1650px', height: '850px', data: { url: this.thirdPartyURL, twoOrthree: this.twoOrthree } }); |
this.dialog.open(recordshow3D, { |
||||||
|
width: "1650px", |
||||||
|
height: "850px", |
||||||
|
data: { url: this.thirdPartyURL, twoOrthree: this.twoOrthree }, |
||||||
|
}); |
||||||
} |
} |
||||||
//判断iframe是否加载完成
|
//判断iframe是否加载完成
|
||||||
iftrue=true |
iftrue = true; |
||||||
ifranmeLoad(){ |
ifranmeLoad() { |
||||||
var iframe = document.getElementById("myiframe"); |
var iframe = document.getElementById("myiframe"); |
||||||
iframe.onload = function(){
|
iframe.onload = function () {}; |
||||||
} |
this.iftrue = !this.iftrue; |
||||||
this.iftrue=!this.iftrue |
|
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
@Component({ |
@Component({ |
||||||
selector: 'app-wait-examineer-show3D', |
selector: "app-wait-examineer-show3D", |
||||||
templateUrl: './show3D.html', |
templateUrl: "./show3D.html", |
||||||
styleUrls: ['./plan-record.component.scss'] |
styleUrls: ["./plan-record.component.scss"], |
||||||
}) |
}) |
||||||
export class recordshow3D { |
export class recordshow3D { |
||||||
constructor(private sanitizer: DomSanitizer, public dialogRef: MatDialogRef<recordshow3D>, @Inject(MAT_DIALOG_DATA) public data, public dialog: MatDialog) { } |
constructor( |
||||||
|
private sanitizer: DomSanitizer, |
||||||
|
public dialogRef: MatDialogRef<recordshow3D>, |
||||||
|
@Inject(MAT_DIALOG_DATA) public data, |
||||||
|
public dialog: MatDialog |
||||||
|
) {} |
||||||
ngOnInit(): void { |
ngOnInit(): void { |
||||||
// console.log(this.data)
|
// console.log(this.data)
|
||||||
this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl(this.data.url.changingThisBreaksApplicationSecurity) |
this.threedUrl = this.sanitizer.bypassSecurityTrustResourceUrl( |
||||||
|
this.data.url.changingThisBreaksApplicationSecurity |
||||||
|
); |
||||||
} |
} |
||||||
threedUrl |
threedUrl; |
||||||
} |
} |
||||||
|
@ -1,438 +1,555 @@ |
|||||||
.box { |
.box { |
||||||
|
height: 100%; |
||||||
|
width: 100%; |
||||||
|
display: flex; |
||||||
|
|
||||||
|
img { |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
.boxleft { |
||||||
height: 100%; |
height: 100%; |
||||||
width: 100%; |
width: 45%; |
||||||
|
background-color: #ffffff; |
||||||
display: flex; |
display: flex; |
||||||
img{ |
flex-direction: column; |
||||||
cursor: pointer; |
overflow: hidden; |
||||||
} |
position: relative; |
||||||
.boxleft { |
|
||||||
height: 100%; |
.lefthead { |
||||||
width: 45%; |
display: flex; |
||||||
background-color: #ffffff; |
flex-direction: column; |
||||||
|
align-items: center; |
||||||
|
form{ |
||||||
|
width: 100%; |
||||||
|
} |
||||||
|
.headdiv { |
||||||
|
@media screen and (min-device-width: 1400px) { |
||||||
|
margin: 0 0 0 28px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
||||||
|
margin-left: 15px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1200px) { |
||||||
|
margin-left: 5px; |
||||||
|
} |
||||||
|
|
||||||
|
height: 40px; |
||||||
display: flex; |
display: flex; |
||||||
flex-direction: column; |
flex-direction: row; |
||||||
//overflow: auto; |
align-items: center; |
||||||
.lefthead { |
|
||||||
height: 30%; |
.radio { |
||||||
display: flex; |
height: 10px; |
||||||
flex-direction: column; |
|
||||||
.headdiv { |
|
||||||
@media screen and (min-device-width: 1400px) { |
|
||||||
margin: 0 0 0 28px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
|
||||||
margin-left: 15px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1200px) { |
|
||||||
margin-left: 5px; |
|
||||||
} |
|
||||||
height: 40px; |
|
||||||
display: flex; |
|
||||||
flex-direction: row; |
|
||||||
.radio { |
|
||||||
height: 10px; |
|
||||||
} |
|
||||||
span { |
|
||||||
@media screen and (min-device-width: 1400px) { |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1200px) { |
|
||||||
font-size: 14px; |
|
||||||
} |
|
||||||
margin-left: 3px; |
|
||||||
} |
|
||||||
input { |
|
||||||
position: relative; |
|
||||||
@media screen and (min-device-width: 1400px) { |
|
||||||
margin-left: 50px; |
|
||||||
top: 6px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1200px) { |
|
||||||
margin-left: 8px; |
|
||||||
top: 4px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
|
||||||
margin-left: 8px; |
|
||||||
top: 6px; |
|
||||||
} |
|
||||||
} |
|
||||||
.count { |
|
||||||
@media screen and (min-device-width: 1400px) { |
|
||||||
margin-left: 110px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1200px) { |
|
||||||
margin-left: 20px; |
|
||||||
position: relative; |
|
||||||
bottom: 3px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
|
||||||
margin-left: 20px; |
|
||||||
/* position: relative; |
|
||||||
bottom: 3px; */ |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
.headthree { |
|
||||||
display: flex; |
|
||||||
flex-direction: column; |
|
||||||
.bzjb{ |
|
||||||
@media screen and (min-device-width: 1400px){ |
|
||||||
margin-left: 100px; |
|
||||||
} |
|
||||||
} |
|
||||||
.find{ |
|
||||||
@media screen and (min-device-width: 1400px){ |
|
||||||
margin-left: 200px; |
|
||||||
} |
|
||||||
} |
|
||||||
@media screen and (min-device-width: 1400px) { |
|
||||||
margin-left: 30px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1200px) { |
|
||||||
margin-left: 7px; |
|
||||||
font-size: 14px; |
|
||||||
mat-form-field { |
|
||||||
width: 120px; |
|
||||||
} |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
|
||||||
margin-left: 15px; |
|
||||||
//font-size: 14px; |
|
||||||
mat-form-field { |
|
||||||
width: 140px; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
button { |
|
||||||
@media screen and (min-device-width: 1400px) { |
|
||||||
margin-left: 30px; |
|
||||||
font-size: 16px; |
|
||||||
width: 80px; |
|
||||||
height: 36px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1400px) { |
|
||||||
margin-left: 20px; |
|
||||||
font-size: 14px; |
|
||||||
} |
|
||||||
} |
|
||||||
img { |
|
||||||
@media screen and (min-device-width: 1400px) { |
|
||||||
height: 14px; |
|
||||||
width: 14px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1400px) { |
|
||||||
height: 12px; |
|
||||||
width: 12px; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
.tablediv { |
|
||||||
width: 100%; |
span { |
||||||
height: 62%; |
@media screen and (min-device-width: 1400px) { |
||||||
.tbodycss { |
font-size: 16px; |
||||||
overflow-y: auto; |
} |
||||||
|
|
||||||
height: 100%; |
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
||||||
width: 100%; |
font-size: 16px; |
||||||
.selectedTr { |
} |
||||||
background-color: #b3d3ee; |
|
||||||
} |
@media screen and (max-device-width: 1200px) { |
||||||
td { |
font-size: 14px; |
||||||
font-weight: 10; |
} |
||||||
@media screen and (min-device-width: 1200px) { |
|
||||||
font-size: 16px; |
margin-left: 3px; |
||||||
} |
|
||||||
@media screen and (max-device-width: 1200px) { |
|
||||||
font-size: 14px; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
table { |
|
||||||
margin-left: 10px; |
|
||||||
margin-right: 10px; |
|
||||||
width: 97.5%; |
|
||||||
//margin-bottom: 10px; |
|
||||||
thead { |
|
||||||
height: 48px; |
|
||||||
color: #ffffff; |
|
||||||
background-color: #2196f3; |
|
||||||
//font-size: 10px; |
|
||||||
th { |
|
||||||
font-weight: 10; |
|
||||||
@media screen and (min-device-width: 1200px) { |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
@media screen and (max-device-width: 1200px) { |
|
||||||
font-size: 14px; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
tr:nth-child(odd) { |
|
||||||
background: #fafafa; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
} |
|
||||||
.boxright { |
input { |
||||||
height: 100%; |
position: relative; |
||||||
width: 53%; |
|
||||||
@media screen and (max-device-width: 1400px) { |
@media screen and (min-device-width: 1400px) { |
||||||
overflow-y: auto; |
margin-left: 40px; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1200px) { |
||||||
|
margin-left: 8px; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
||||||
|
margin-left: 8px; |
||||||
|
|
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
flex: 1; |
.count { |
||||||
background-color: #ffffff; |
@media screen and (min-device-width: 1400px) { |
||||||
margin-left: 10px; |
margin-left: 110px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1200px) { |
||||||
|
margin-left: 20px; |
||||||
|
position: relative; |
||||||
|
bottom: 3px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
||||||
|
margin-left: 20px; |
||||||
|
/* position: relative; |
||||||
|
bottom: 3px; */ |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.headthree { |
||||||
display: flex; |
display: flex; |
||||||
flex-direction: column; |
flex-direction: column; |
||||||
.company { |
|
||||||
//margin-left: 20px; |
.bzjb { |
||||||
@media screen and (min-device-width: 1400px) { |
@media screen and (min-device-width: 1400px) { |
||||||
overflow-y: auto; |
margin-left: 100px; |
||||||
} |
} |
||||||
flex: 1; |
|
||||||
//overflow-y: auto; |
|
||||||
margin-top: 10px; |
|
||||||
} |
} |
||||||
.righthead { |
|
||||||
width: 100%; |
.find { |
||||||
display: flex; |
@media screen and (min-device-width: 1400px) { |
||||||
height: 50px; |
margin-left: 80px; |
||||||
align-items: center; |
} |
||||||
flex-direction: row-reverse; |
|
||||||
button { |
|
||||||
margin-left: 10px; |
|
||||||
font-size: 16px; |
|
||||||
} |
|
||||||
.rightheadone { |
|
||||||
width: 40%; |
|
||||||
margin-right: 7%; |
|
||||||
} |
|
||||||
.rightheadtwo { |
|
||||||
width: 60%; |
|
||||||
margin-right: 2%; |
|
||||||
} |
|
||||||
} |
} |
||||||
|
|
||||||
.word { |
@media screen and (min-device-width: 1400px) { |
||||||
width: 100%; |
margin-left: 30px; |
||||||
height: 100%; |
} |
||||||
.shadow{ |
|
||||||
height: 95%; |
@media screen and (max-device-width: 1200px) { |
||||||
width: 97%; |
margin-left: 7px; |
||||||
margin: 10px 10px 10px 10px; |
font-size: 14px; |
||||||
/* position:absolute; |
|
||||||
left:0; |
mat-form-field { |
||||||
top:0; */ |
width: 120px; |
||||||
z-index:998; |
} |
||||||
background-color:#FFFFFF; |
} |
||||||
opacity:0.6; |
|
||||||
mat-spinner{ |
@media screen and (max-device-width: 1400px) and (min-device-width: 1200px) { |
||||||
position: relative; |
margin-left: 15px; |
||||||
top: 40%; |
|
||||||
left: 40%; |
//font-size: 14px; |
||||||
} |
mat-form-field { |
||||||
|
width: 140px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
button { |
||||||
|
@media screen and (min-device-width: 1400px) { |
||||||
|
margin-left: 40px; |
||||||
|
font-size: 13px; |
||||||
|
width: 65px; |
||||||
|
height: 34px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1400px) { |
||||||
|
margin-left: 20px; |
||||||
|
font-size: 14px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
img { |
||||||
|
@media screen and (min-device-width: 1400px) { |
||||||
|
height: 14px; |
||||||
|
width: 14px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1400px) { |
||||||
|
height: 12px; |
||||||
|
width: 12px; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
.btnbox{ |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
|
button{ |
||||||
|
margin: 0 6px; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.tablediv { |
||||||
|
width: 100%; |
||||||
|
flex: 1; |
||||||
|
overflow: hidden; |
||||||
|
display: flex; |
||||||
|
flex-direction: column; |
||||||
|
|
||||||
|
.theader { |
||||||
|
margin-left: 10px; |
||||||
|
margin-right: 10px; |
||||||
|
width: 97.5%; |
||||||
|
|
||||||
|
thead { |
||||||
|
height: 48px; |
||||||
|
color: #ffffff; |
||||||
|
background-color: #2196f3; |
||||||
|
|
||||||
|
th { |
||||||
|
font-weight: 10; |
||||||
|
|
||||||
|
@media screen and (min-device-width: 1200px) { |
||||||
|
font-size: 16px; |
||||||
} |
} |
||||||
iframe { |
|
||||||
height: 95%; |
@media screen and (max-device-width: 1200px) { |
||||||
width: 97%; |
font-size: 14px; |
||||||
margin: 10px 10px 10px 10px; |
|
||||||
overflow-y: auto; |
|
||||||
border: medium none; |
|
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
#viewer { |
|
||||||
margin: 10px 10px 10px 10px; |
tr:nth-child(odd) { |
||||||
width: 97%; |
background: #fafafa; |
||||||
height: 93%; |
|
||||||
} |
} |
||||||
.waterAudit, |
} |
||||||
.fireForceAudit, |
|
||||||
.LinkageForcesAudit { |
.tbodycss { |
||||||
flex: 1; |
|
||||||
width: 100%; |
flex: 1; |
||||||
height: 100%; |
width: 100%; |
||||||
box-sizing: border-box; |
overflow-y: auto; |
||||||
|
box-sizing: border-box; |
||||||
|
padding-left: 15px; |
||||||
|
|
||||||
|
.selectedTr { |
||||||
|
background-color: #b3d3ee; |
||||||
} |
} |
||||||
.emptyContent { |
|
||||||
width: 100%; |
td { |
||||||
text-align: center; |
font-weight: 10; |
||||||
|
|
||||||
|
@media screen and (min-device-width: 1200px) { |
||||||
|
font-size: 16px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1200px) { |
||||||
|
font-size: 14px; |
||||||
|
} |
||||||
} |
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
} |
} |
||||||
} |
|
||||||
th, |
.mask { |
||||||
td { |
position: absolute; |
||||||
height: 43px; |
width: 100%; |
||||||
@media screen and (min-device-width: 1400px) { |
height: 100%; |
||||||
font-size: 16px; |
background: rgba(0, 0, 0, 0.2); |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
} |
} |
||||||
|
} |
||||||
|
|
||||||
|
.boxright { |
||||||
|
height: 100%; |
||||||
|
width: 53%; |
||||||
|
|
||||||
@media screen and (max-device-width: 1400px) { |
@media screen and (max-device-width: 1400px) { |
||||||
font-size: 14px; |
overflow-y: auto; |
||||||
|
} |
||||||
|
|
||||||
|
flex: 1; |
||||||
|
background-color: #ffffff; |
||||||
|
margin-left: 10px; |
||||||
|
display: flex; |
||||||
|
flex-direction: column; |
||||||
|
|
||||||
|
.company { |
||||||
|
|
||||||
|
//margin-left: 20px; |
||||||
|
@media screen and (min-device-width: 1400px) { |
||||||
|
overflow-y: auto; |
||||||
|
} |
||||||
|
|
||||||
|
flex: 1; |
||||||
|
//overflow-y: auto; |
||||||
|
margin-top: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
.righthead { |
||||||
|
width: 100%; |
||||||
|
display: flex; |
||||||
|
height: 50px; |
||||||
|
align-items: center; |
||||||
|
flex-direction: row-reverse; |
||||||
|
|
||||||
|
button { |
||||||
|
margin-left: 10px; |
||||||
|
font-size: 16px; |
||||||
|
} |
||||||
|
|
||||||
|
.rightheadone { |
||||||
|
width: 40%; |
||||||
|
margin-right: 7%; |
||||||
|
} |
||||||
|
|
||||||
|
.rightheadtwo { |
||||||
|
width: 60%; |
||||||
|
margin-right: 2%; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.word { |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
|
||||||
|
.shadow { |
||||||
|
height: 95%; |
||||||
|
width: 97%; |
||||||
|
margin: 10px 10px 10px 10px; |
||||||
|
/* position:absolute; |
||||||
|
left:0; |
||||||
|
top:0; */ |
||||||
|
z-index: 998; |
||||||
|
background-color: #FFFFFF; |
||||||
|
opacity: 0.6; |
||||||
|
|
||||||
|
mat-spinner { |
||||||
|
position: relative; |
||||||
|
top: 40%; |
||||||
|
left: 40%; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
iframe { |
||||||
|
height: 95%; |
||||||
|
width: 97%; |
||||||
|
margin: 10px 10px 10px 10px; |
||||||
|
overflow-y: auto; |
||||||
|
border: medium none; |
||||||
|
} |
||||||
} |
} |
||||||
text-align: center; |
|
||||||
//white-space: nowrap; |
#viewer { |
||||||
|
margin: 10px 10px 10px 10px; |
||||||
|
width: 97%; |
||||||
|
height: 93%; |
||||||
|
} |
||||||
|
|
||||||
|
.waterAudit, |
||||||
|
.fireForceAudit, |
||||||
|
.LinkageForcesAudit { |
||||||
|
flex: 1; |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
box-sizing: border-box; |
||||||
|
} |
||||||
|
|
||||||
|
.emptyContent { |
||||||
|
width: 100%; |
||||||
|
text-align: center; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
th, |
||||||
|
td { |
||||||
|
height: 43px; |
||||||
|
|
||||||
|
@media screen and (min-device-width: 1400px) { |
||||||
|
font-size: 16px; |
||||||
|
} |
||||||
|
|
||||||
|
@media screen and (max-device-width: 1400px) { |
||||||
|
font-size: 14px; |
||||||
|
} |
||||||
|
|
||||||
|
text-align: center; |
||||||
|
//white-space: nowrap; |
||||||
} |
} |
||||||
|
|
||||||
.green { |
.green { |
||||||
color: #00c756; |
color: #00c756; |
||||||
} |
} |
||||||
|
|
||||||
.red { |
.red { |
||||||
color: #ff4d4d; |
color: #ff4d4d; |
||||||
} |
} |
||||||
|
|
||||||
.yellow { |
.yellow { |
||||||
color: #FFC94B; |
color: #FFC94B; |
||||||
} |
} |
||||||
|
|
||||||
.accordingin { |
.accordingin { |
||||||
margin: 5px; |
margin: 5px; |
||||||
.panelhead { |
|
||||||
background-color: #e8f4fe; |
.panelhead { |
||||||
color: #2196f3; |
background-color: #e8f4fe; |
||||||
font-size: 16px; |
color: #2196f3; |
||||||
span { |
font-size: 16px; |
||||||
margin-left: 10px; |
|
||||||
} |
span { |
||||||
|
margin-left: 10px; |
||||||
} |
} |
||||||
table { |
} |
||||||
margin: 5px 0; |
|
||||||
width: 100%; |
table { |
||||||
th { |
margin: 5px 0; |
||||||
background-color: #fafafa; |
width: 100%; |
||||||
width: 30%; |
|
||||||
font-size: 16px; |
th { |
||||||
text-align: right; |
background-color: #fafafa; |
||||||
} |
width: 30%; |
||||||
td { |
font-size: 16px; |
||||||
text-align: left; |
text-align: right; |
||||||
font-size: 16px; |
|
||||||
margin-left: 3px; |
|
||||||
.spantext{ |
|
||||||
margin-left: 7px; |
|
||||||
} |
|
||||||
.buleColor{ |
|
||||||
color: #2196f3; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
} |
||||||
.addFiles{ |
|
||||||
tr{ |
td { |
||||||
td{ |
text-align: left; |
||||||
img{ |
font-size: 16px; |
||||||
width: 150px; |
margin-left: 3px; |
||||||
height: 105px; |
|
||||||
margin-right: 6px; |
.spantext { |
||||||
} |
margin-left: 7px; |
||||||
} |
} |
||||||
} |
|
||||||
|
.buleColor { |
||||||
|
color: #2196f3; |
||||||
|
} |
||||||
} |
} |
||||||
.onebuilding { |
} |
||||||
display: flex; |
|
||||||
margin: 5px 0; |
.addFiles { |
||||||
width: 100%; |
tr { |
||||||
.accordingleft { |
td { |
||||||
background-color: #fafafa; |
img { |
||||||
width: 30%; |
width: 150px; |
||||||
height: 120px; |
height: 105px; |
||||||
font-size: 16px; |
margin-right: 6px; |
||||||
text-align: right; |
|
||||||
} |
|
||||||
.accordingright { |
|
||||||
margin: 7px; |
|
||||||
height: 100px; |
|
||||||
font-size: 16px; |
|
||||||
img { |
|
||||||
margin-left: 10px; |
|
||||||
//height: 80px; |
|
||||||
} |
|
||||||
span { |
|
||||||
margin-left: 10px; |
|
||||||
position: relative; |
|
||||||
bottom: 90px; |
|
||||||
} |
|
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
} |
} |
||||||
.echarts { |
|
||||||
width: 480px; |
.onebuilding { |
||||||
height: 304px; |
|
||||||
display: flex; |
display: flex; |
||||||
background-color: #000000; |
margin: 5px 0; |
||||||
opacity: 0.7; |
width: 100%; |
||||||
position: absolute; |
|
||||||
top: 13%; |
.accordingleft { |
||||||
left: 55%; |
background-color: #fafafa; |
||||||
z-index: 100; |
width: 30%; |
||||||
.bar { |
height: 120px; |
||||||
height: 100%; |
font-size: 16px; |
||||||
width: 40%; |
text-align: right; |
||||||
opacity: 1; |
|
||||||
//margin: 40px 30px; |
|
||||||
} |
} |
||||||
.zhu { |
|
||||||
margin-bottom: 100px; |
.accordingright { |
||||||
margin-right: 20px; |
margin: 7px; |
||||||
height: 95%; |
height: 100px; |
||||||
width: 60%; |
font-size: 16px; |
||||||
opacity: 1; |
|
||||||
|
img { |
||||||
|
margin-left: 10px; |
||||||
|
//height: 80px; |
||||||
|
} |
||||||
|
|
||||||
|
span { |
||||||
|
margin-left: 10px; |
||||||
|
position: relative; |
||||||
|
bottom: 90px; |
||||||
|
} |
||||||
} |
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.echarts { |
||||||
|
width: 480px; |
||||||
|
height: 304px; |
||||||
|
display: flex; |
||||||
|
background-color: #000000; |
||||||
|
opacity: 0.7; |
||||||
|
position: absolute; |
||||||
|
top: 13%; |
||||||
|
left: 55%; |
||||||
|
z-index: 100; |
||||||
|
|
||||||
|
.bar { |
||||||
|
height: 100%; |
||||||
|
width: 40%; |
||||||
|
opacity: 1; |
||||||
|
//margin: 40px 30px; |
||||||
|
} |
||||||
|
|
||||||
|
.zhu { |
||||||
|
margin-bottom: 100px; |
||||||
|
margin-right: 20px; |
||||||
|
height: 95%; |
||||||
|
width: 60%; |
||||||
|
opacity: 1; |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
.twoD { |
.twoD { |
||||||
width: 100%; |
width: 100%; |
||||||
box-sizing: border-box; |
box-sizing: border-box; |
||||||
display: flex; |
display: flex; |
||||||
flex-direction: column; |
flex-direction: column; |
||||||
align-items: left; |
align-items: left; |
||||||
.planBox { |
|
||||||
margin: 30px 30px; |
.planBox { |
||||||
color: black; |
margin: 30px 30px; |
||||||
:first-child { |
color: black; |
||||||
margin-right: 10px; |
|
||||||
} |
:first-child { |
||||||
|
margin-right: 10px; |
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
//滚动条样式 |
//滚动条样式 |
||||||
::-webkit-scrollbar { |
::-webkit-scrollbar { |
||||||
width: 6px; |
width: 6px; |
||||||
background-color: white; |
background-color: white; |
||||||
} |
} |
||||||
|
|
||||||
::-webkit-scrollbar-thumb { |
::-webkit-scrollbar-thumb { |
||||||
background-color: #2196f3; |
background-color: #2196f3; |
||||||
} |
} |
||||||
|
|
||||||
.remarkbox { |
.remarkbox { |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
display: flex; |
||||||
|
flex-direction: column; |
||||||
|
|
||||||
|
.remarkhead { |
||||||
width: 100%; |
width: 100%; |
||||||
height: 100%; |
|
||||||
display: flex; |
span { |
||||||
flex-direction: column; |
font-size: 20px; |
||||||
.remarkhead { |
text-align: center; |
||||||
width: 100%; |
width: 80px; |
||||||
span { |
margin-left: 40%; |
||||||
font-size: 20px; |
|
||||||
text-align: center; |
|
||||||
width: 80px; |
|
||||||
margin-left: 40%; |
|
||||||
} |
|
||||||
} |
} |
||||||
.remarktext { |
} |
||||||
width: 100%; |
|
||||||
margin-top: 20px; |
.remarktext { |
||||||
textarea { |
width: 100%; |
||||||
width: 420px; |
margin-top: 20px; |
||||||
height: 110px; |
|
||||||
outline: none; |
textarea { |
||||||
} |
width: 420px; |
||||||
|
height: 110px; |
||||||
|
outline: none; |
||||||
} |
} |
||||||
.remarkbottom { |
} |
||||||
width: 100%; |
|
||||||
margin-top: 22px; |
.remarkbottom { |
||||||
button { |
width: 100%; |
||||||
width: 100px; |
margin-top: 22px; |
||||||
height: 36px; |
|
||||||
font-size: 17px; |
button { |
||||||
} |
width: 100px; |
||||||
|
height: 36px; |
||||||
|
font-size: 17px; |
||||||
} |
} |
||||||
|
} |
||||||
} |
} |
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,58 @@ |
|||||||
|
<!-- <p>演练记录</p> --> |
||||||
|
<div class="box"> |
||||||
|
<div class="header"> |
||||||
|
<form class="queryBox" (ngSubmit)="onSubmit()"> |
||||||
|
<div class="queryField"> |
||||||
|
<span style="width: 108px;">预案名称:</span> |
||||||
|
<input name="name" nz-input placeholder="请输入预案名称" [(ngModel)]="name" /> |
||||||
|
</div> |
||||||
|
<div class="queryField" style="margin-right: 35px;"> |
||||||
|
<span>组织机构:</span> |
||||||
|
<nz-tree-select [nzDropdownClassName]="'maxHeightTreeSelect'" style="width: 250px" |
||||||
|
[nzExpandedKeys]="expandKeys" [nzNodes]="nodes" nzShowSearch nzPlaceHolder="请选择组织机构" name="orId" |
||||||
|
[(ngModel)]="orId"> |
||||||
|
</nz-tree-select> |
||||||
|
</div> |
||||||
|
<div class="queryField"> |
||||||
|
<span>熟悉时间:</span> |
||||||
|
<nz-range-picker name="time" [(ngModel)]="time"></nz-range-picker> |
||||||
|
</div> |
||||||
|
<div class="queryField btnbox"> |
||||||
|
<button nz-button nzType="primary">查询</button> |
||||||
|
<button nz-button type="button" nzType="default" (click)="reset()">重置</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
<div class="tablebox"> |
||||||
|
<table mat-table [dataSource]="tabledataSource" class="mat-elevation-z8"> |
||||||
|
<ng-container matColumnDef="name"> |
||||||
|
<th mat-header-cell *matHeaderCellDef>演练对象</th> |
||||||
|
<td mat-cell *matCellDef="let element">{{element.company.name}}</td> |
||||||
|
</ng-container> |
||||||
|
<ng-container matColumnDef="or"> |
||||||
|
<th mat-header-cell *matHeaderCellDef>组织机构</th> |
||||||
|
<td mat-cell *matCellDef="let element">{{element.company.organizationName}}</td> |
||||||
|
</ng-container> |
||||||
|
<ng-container matColumnDef="people"> |
||||||
|
<th mat-header-cell *matHeaderCellDef>带队人员</th> |
||||||
|
<td mat-cell *matCellDef="let element">{{element.teamLeader}}</td> |
||||||
|
</ng-container> |
||||||
|
<ng-container matColumnDef="time"> |
||||||
|
<th mat-header-cell *matHeaderCellDef>演练时间</th> |
||||||
|
<td mat-cell *matCellDef="let element">{{element.startTime | date:'yyyy-MM-dd HH:mm'}} - |
||||||
|
{{element.endTime | date:'yyyy-MM-dd HH:mm'}}</td> |
||||||
|
</ng-container> |
||||||
|
<ng-container matColumnDef="operate"> |
||||||
|
<th mat-header-cell *matHeaderCellDef style="width: 200px;">操作</th> |
||||||
|
<td mat-cell *matCellDef="let element" class="operate"> |
||||||
|
<span (click)="look(element)">查看</span> |
||||||
|
<span (click)="delete(element)">删除</span> |
||||||
|
</td> |
||||||
|
</ng-container> |
||||||
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> |
||||||
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> |
||||||
|
</table> |
||||||
|
<mat-paginator [length]="length" [pageSize]="pageSize" (page)="chagePage($event)"> |
||||||
|
</mat-paginator> |
||||||
|
</div> |
||||||
|
</div> |
@ -0,0 +1,59 @@ |
|||||||
|
.box { |
||||||
|
height: 100%; |
||||||
|
overflow: auto; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
.header { |
||||||
|
width: 100%; |
||||||
|
box-sizing: border-box; |
||||||
|
padding: 20px 30px 8px 30px; |
||||||
|
|
||||||
|
.queryBox { |
||||||
|
display: flex; |
||||||
|
flex-wrap: wrap; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
.queryField { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
margin-right: 20px; |
||||||
|
|
||||||
|
span { |
||||||
|
display: inline-block; |
||||||
|
width: 80px; |
||||||
|
} |
||||||
|
} |
||||||
|
.btnbox{ |
||||||
|
button{ |
||||||
|
margin-right: 12px; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
.tablebox { |
||||||
|
table { |
||||||
|
width: 100%; |
||||||
|
margin-top: 15px; |
||||||
|
} |
||||||
|
|
||||||
|
mat-paginator { |
||||||
|
width: 100%; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.mat-header-cell, |
||||||
|
.mat-cell { |
||||||
|
text-align: center; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
.operate { |
||||||
|
span { |
||||||
|
color: #40a9ff; |
||||||
|
cursor: pointer; |
||||||
|
margin: 0 3px; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||||
|
|
||||||
|
import { DrillRecordComponent } from './drill-record.component'; |
||||||
|
|
||||||
|
describe('DrillRecordComponent', () => { |
||||||
|
let component: DrillRecordComponent; |
||||||
|
let fixture: ComponentFixture<DrillRecordComponent>; |
||||||
|
|
||||||
|
beforeEach(async(() => { |
||||||
|
TestBed.configureTestingModule({ |
||||||
|
declarations: [ DrillRecordComponent ] |
||||||
|
}) |
||||||
|
.compileComponents(); |
||||||
|
})); |
||||||
|
|
||||||
|
beforeEach(() => { |
||||||
|
fixture = TestBed.createComponent(DrillRecordComponent); |
||||||
|
component = fixture.componentInstance; |
||||||
|
fixture.detectChanges(); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should create', () => { |
||||||
|
expect(component).toBeTruthy(); |
||||||
|
}); |
||||||
|
}); |
@ -0,0 +1,141 @@ |
|||||||
|
import { Component, OnInit, ViewChild, Inject } from "@angular/core"; |
||||||
|
import { HttpClient } from "@angular/common/http"; |
||||||
|
import { MatPaginator } from "@angular/material/paginator"; |
||||||
|
import { Router, ActivatedRoute } from "@angular/router"; |
||||||
|
import { PageEvent } from "@angular/material/paginator"; |
||||||
|
import { MatDialog } from "@angular/material/dialog"; |
||||||
|
import { MatSnackBar } from "@angular/material/snack-bar"; |
||||||
|
import { TreeService } from "../../http-interceptors/tree.service"; |
||||||
|
import { DatePipe } from "@angular/common"; |
||||||
|
import { UploadDrillComponent } from "@src/app/key-unit/key-unit-management/upload-drill/upload-drill.component"; |
||||||
|
@Component({ |
||||||
|
selector: "app-drill-record", |
||||||
|
templateUrl: "./drill-record.component.html", |
||||||
|
styleUrls: ["./drill-record.component.scss"], |
||||||
|
providers: [DatePipe], |
||||||
|
}) |
||||||
|
export class DrillRecordComponent implements OnInit { |
||||||
|
constructor( |
||||||
|
private http: HttpClient, |
||||||
|
public dialog: MatDialog, |
||||||
|
public snackBar: MatSnackBar, |
||||||
|
private datePipe: DatePipe |
||||||
|
) {} |
||||||
|
|
||||||
|
//分页
|
||||||
|
@ViewChild(MatPaginator, { static: true }) |
||||||
|
pageEvent: PageEvent; |
||||||
|
paginator: MatPaginator; |
||||||
|
displayedColumns: string[] = ["name", "or", "people", "time", "operate"]; |
||||||
|
tabledataSource: any; //表格数据
|
||||||
|
|
||||||
|
ngOnInit(): void { |
||||||
|
this.getOrganizations(); |
||||||
|
} |
||||||
|
|
||||||
|
//获得所有组织机构
|
||||||
|
allorganizations: any; //所有组织机构
|
||||||
|
getOrganizations() { |
||||||
|
this.http.get("/api/Organizations").subscribe((data: any) => { |
||||||
|
this.allorganizations = data; |
||||||
|
this.getpresentOrganization(); |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
//得到当前单位所在组织机构的tree型数据
|
||||||
|
expandKeys = []; |
||||||
|
nodes = []; |
||||||
|
organizationId; |
||||||
|
getpresentOrganization() { |
||||||
|
this.allorganizations.forEach((item) => { |
||||||
|
item.key = item.id; |
||||||
|
item.title = item.name; |
||||||
|
item.children = []; |
||||||
|
this.allorganizations.forEach((element) => { |
||||||
|
if (element.parentId == item.id) { |
||||||
|
item.children.push(element); |
||||||
|
} |
||||||
|
if (item.children.length === 0) { |
||||||
|
item.isLeaf = true; |
||||||
|
} else { |
||||||
|
item.isLeaf = false; |
||||||
|
} |
||||||
|
}); |
||||||
|
}); |
||||||
|
this.http.get("/api/Account/Profiles").subscribe((data: any) => { |
||||||
|
this.allorganizations.forEach((item) => { |
||||||
|
if (item.name == data.organizationName) { |
||||||
|
this.expandKeys = [item.id]; |
||||||
|
this.organizationId = item.id; |
||||||
|
this.orId = item.id; |
||||||
|
this.nodes = [...[item]]; |
||||||
|
this.getTabledataSource(); |
||||||
|
} |
||||||
|
}); |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
length: any; //共多少条数据
|
||||||
|
pageSize: any = 10; //每页条数
|
||||||
|
PageNumber: any = 1; //第几页
|
||||||
|
getTabledataSource() { |
||||||
|
let params = { |
||||||
|
OrganizationId: this.orId, |
||||||
|
CompanyName: this.name || "", |
||||||
|
StartTime: this.time |
||||||
|
? this.datePipe.transform(this.time[0], "yyyy-MM-ddT00:00:00") |
||||||
|
: "2020-01-01T00:00:00", |
||||||
|
EndTime: this.time |
||||||
|
? this.datePipe.transform(this.time[1], "yyyy-MM-ddT23:59:59") |
||||||
|
: "2030-01-01T00:00:00", |
||||||
|
PageNumber: this.PageNumber, |
||||||
|
PageSize: this.pageSize, |
||||||
|
}; |
||||||
|
this.http |
||||||
|
.get("/api/DrillRecords", { params: params }) |
||||||
|
.subscribe((data: any) => { |
||||||
|
this.tabledataSource = data.items; |
||||||
|
this.length = data.totalCount; |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
//分页事件
|
||||||
|
chagePage(e) { |
||||||
|
this.PageNumber = e.pageIndex + 1; |
||||||
|
this.getTabledataSource(); |
||||||
|
} |
||||||
|
|
||||||
|
name; |
||||||
|
orId; |
||||||
|
time; |
||||||
|
//查询
|
||||||
|
onSubmit() { |
||||||
|
this.PageNumber = 1; |
||||||
|
this.pageEvent.pageIndex = 0; |
||||||
|
this.getTabledataSource(); |
||||||
|
} |
||||||
|
|
||||||
|
//重置
|
||||||
|
reset() { |
||||||
|
this.name = ""; |
||||||
|
this.orId = this.organizationId; |
||||||
|
this.time = null; |
||||||
|
this.onSubmit(); |
||||||
|
} |
||||||
|
look(element) { |
||||||
|
this.dialog.open(UploadDrillComponent, { |
||||||
|
width: "700px", |
||||||
|
data: { unitInfo: element.company, isEditMode: false }, |
||||||
|
}); |
||||||
|
} |
||||||
|
delete(element) { |
||||||
|
if (confirm("确认删除此记录吗")) { |
||||||
|
this.http |
||||||
|
.delete(`/api/DrillRecords/${element.id}`) |
||||||
|
.subscribe((data: any) => { |
||||||
|
alert("删除成功"); |
||||||
|
this.getTabledataSource(); |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm" class="example-container"> |
||||||
|
<div class="topbox" style="text-align: center;"> |
||||||
|
<span mat-dialog-title>修改预案级别</span> |
||||||
|
</div> |
||||||
|
<div class="mainbox"> |
||||||
|
<mat-form-field> |
||||||
|
<mat-select placeholder='请选择预案级别' [(ngModel)]="planCategory" name="integritySort"> |
||||||
|
<mat-option [value]='3'>Ⅲ级预案</mat-option> |
||||||
|
<mat-option [value]='4'>Ⅳ级预案</mat-option> |
||||||
|
<mat-option [value]='5'>Ⅴ级预案</mat-option> |
||||||
|
</mat-select> |
||||||
|
</mat-form-field> |
||||||
|
</div> |
||||||
|
<div class="btn" style="margin-top:10px;"> |
||||||
|
<button mat-raised-button color="primary" style="margin-right: 12px;">确定</button> |
||||||
|
<button type="button" mat-button (click)="onNoClick()" mat-raised-button>取消</button> |
||||||
|
</div> |
||||||
|
</form> |
@ -0,0 +1,25 @@ |
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||||
|
|
||||||
|
import { EditPlanCategoryComponent } from './edit-plan-category.component'; |
||||||
|
|
||||||
|
describe('EditPlanCategoryComponent', () => { |
||||||
|
let component: EditPlanCategoryComponent; |
||||||
|
let fixture: ComponentFixture<EditPlanCategoryComponent>; |
||||||
|
|
||||||
|
beforeEach(async(() => { |
||||||
|
TestBed.configureTestingModule({ |
||||||
|
declarations: [ EditPlanCategoryComponent ] |
||||||
|
}) |
||||||
|
.compileComponents(); |
||||||
|
})); |
||||||
|
|
||||||
|
beforeEach(() => { |
||||||
|
fixture = TestBed.createComponent(EditPlanCategoryComponent); |
||||||
|
component = fixture.componentInstance; |
||||||
|
fixture.detectChanges(); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should create', () => { |
||||||
|
expect(component).toBeTruthy(); |
||||||
|
}); |
||||||
|
}); |
@ -0,0 +1,37 @@ |
|||||||
|
import { HttpClient } from "@angular/common/http"; |
||||||
|
import { Component, OnInit, Inject } from "@angular/core"; |
||||||
|
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog"; |
||||||
|
import { MatSnackBar } from "@angular/material/snack-bar"; |
||||||
|
|
||||||
|
@Component({ |
||||||
|
selector: "app-edit-plan-category", |
||||||
|
templateUrl: "./edit-plan-category.component.html", |
||||||
|
styleUrls: ["./edit-plan-category.component.scss"], |
||||||
|
}) |
||||||
|
export class EditPlanCategoryComponent implements OnInit { |
||||||
|
constructor( |
||||||
|
private http: HttpClient, |
||||||
|
public dialogRef: MatDialogRef<EditPlanCategoryComponent>, |
||||||
|
@Inject(MAT_DIALOG_DATA) public data, |
||||||
|
public snackBar: MatSnackBar |
||||||
|
) {} |
||||||
|
planCategory; |
||||||
|
ngOnInit(): void { |
||||||
|
this.planCategory = this.data.planCategory; |
||||||
|
} |
||||||
|
|
||||||
|
onNoClick(): void { |
||||||
|
this.dialogRef.close(); |
||||||
|
} |
||||||
|
|
||||||
|
onSubmit(value) { |
||||||
|
let body = { |
||||||
|
planCategory: this.planCategory, |
||||||
|
}; |
||||||
|
this.http |
||||||
|
.put(`/api/PlanComponents/${this.data.id}`, body) |
||||||
|
.subscribe((data) => { |
||||||
|
this.dialogRef.close("success"); |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,29 @@ |
|||||||
|
<h2 mat-dialog-title>六熟悉</h2> |
||||||
|
<div class="box"> |
||||||
|
<div class="contentItem"> |
||||||
|
<div class="content"> |
||||||
|
<div class="textbox"> |
||||||
|
<span class="name">熟悉对象:</span> |
||||||
|
<span>{{data.unitdata.unitname}}</span> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<span class="name">人员数量:</span> |
||||||
|
<input type="number" [disabled]="!isEditMode" name="memberCount" [(ngModel)]="memberCount" nz-input |
||||||
|
placeholder="人员数量" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<span class="name">熟悉时间:</span> |
||||||
|
<nz-range-picker [disabled]="!isEditMode" [nzShowTime]="{ nzFormat: 'HH:mm' }" |
||||||
|
nzFormat="yyyy-MM-dd HH:mm" [nzPlaceHolder]="['开始时间', '结束时间']" name="time" |
||||||
|
[(ngModel)]="time"></nz-range-picker> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="mask" *ngIf="isLoading"> |
||||||
|
<mat-spinner [diameter]="30"></mat-spinner> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<mat-dialog-actions align="end"> |
||||||
|
<button mat-button mat-dialog-close [disabled]="isLoading || isLoadingSave">取消</button> |
||||||
|
<button mat-button cdkFocusInitial (click)="save()" [disabled]="isLoading || isLoadingSave">确定</button> |
||||||
|
</mat-dialog-actions> |
@ -0,0 +1,118 @@ |
|||||||
|
.box { |
||||||
|
width: 100%; |
||||||
|
position: relative; |
||||||
|
|
||||||
|
.contentItem { |
||||||
|
display: flex; |
||||||
|
margin: 6px 0; |
||||||
|
// border-bottom: 1px dashed rgb(180, 178, 178); |
||||||
|
|
||||||
|
.title { |
||||||
|
width: 75px; |
||||||
|
color: #1890ff; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
} |
||||||
|
|
||||||
|
.content { |
||||||
|
flex: 1; |
||||||
|
display: flex; |
||||||
|
flex-wrap: wrap; |
||||||
|
flex-direction: column; |
||||||
|
|
||||||
|
div { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
input, |
||||||
|
nz-range-picker { |
||||||
|
flex: 1; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
div { |
||||||
|
margin-bottom: 8px; |
||||||
|
|
||||||
|
.name { |
||||||
|
display: inline-block; |
||||||
|
width: 70px; |
||||||
|
margin-right: 3px; |
||||||
|
text-align: right; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
.textbox { |
||||||
|
height: 32px; |
||||||
|
line-height: 32px; |
||||||
|
width: 100%; |
||||||
|
white-space: nowrap; |
||||||
|
overflow: hidden; |
||||||
|
text-overflow: ellipsis; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
.uploadbox { |
||||||
|
position: relative; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
input { |
||||||
|
width: 88px; |
||||||
|
height: 32px; |
||||||
|
position: absolute; |
||||||
|
left: 0; |
||||||
|
top: 0; |
||||||
|
opacity: 0; |
||||||
|
z-index: 2; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
button { |
||||||
|
z-index: 1; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
.imgbox { |
||||||
|
height: 100%; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
li { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
position: relative; |
||||||
|
} |
||||||
|
|
||||||
|
img { |
||||||
|
width: 50px; |
||||||
|
height: 50px; |
||||||
|
margin: 0 5px; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
.close { |
||||||
|
position: absolute; |
||||||
|
right: 0; |
||||||
|
top: 0; |
||||||
|
font-size: 15px; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.mask { |
||||||
|
position: absolute; |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
left: 0; |
||||||
|
top: 0; |
||||||
|
background: rgba(0, 0, 0, 0.2); |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
|
z-index: 3; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||||
|
|
||||||
|
import { SixFamiliarizeComponent } from './six-familiarize.component'; |
||||||
|
|
||||||
|
describe('SixFamiliarizeComponent', () => { |
||||||
|
let component: SixFamiliarizeComponent; |
||||||
|
let fixture: ComponentFixture<SixFamiliarizeComponent>; |
||||||
|
|
||||||
|
beforeEach(async(() => { |
||||||
|
TestBed.configureTestingModule({ |
||||||
|
declarations: [ SixFamiliarizeComponent ] |
||||||
|
}) |
||||||
|
.compileComponents(); |
||||||
|
})); |
||||||
|
|
||||||
|
beforeEach(() => { |
||||||
|
fixture = TestBed.createComponent(SixFamiliarizeComponent); |
||||||
|
component = fixture.componentInstance; |
||||||
|
fixture.detectChanges(); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should create', () => { |
||||||
|
expect(component).toBeTruthy(); |
||||||
|
}); |
||||||
|
}); |
@ -0,0 +1,110 @@ |
|||||||
|
import { HttpClient } from "@angular/common/http"; |
||||||
|
import { Component, OnInit, Inject } from "@angular/core"; |
||||||
|
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog"; |
||||||
|
import { ObjectsService } from "@src/app/services/objects.service"; |
||||||
|
import { DatePipe } from "@angular/common"; |
||||||
|
import { MatSnackBar } from "@angular/material/snack-bar"; |
||||||
|
import Viewer from "viewerjs"; |
||||||
|
|
||||||
|
@Component({ |
||||||
|
selector: "app-six-familiarize", |
||||||
|
templateUrl: "./six-familiarize.component.html", |
||||||
|
styleUrls: ["./six-familiarize.component.scss"], |
||||||
|
providers: [DatePipe], |
||||||
|
}) |
||||||
|
export class SixFamiliarizeComponent implements OnInit { |
||||||
|
constructor( |
||||||
|
public dialogRef: MatDialogRef<SixFamiliarizeComponent>, |
||||||
|
@Inject(MAT_DIALOG_DATA) public data: any, |
||||||
|
private objectsSer: ObjectsService, |
||||||
|
private http: HttpClient, |
||||||
|
private datePipe: DatePipe, |
||||||
|
public snackBar: MatSnackBar |
||||||
|
) {} |
||||||
|
|
||||||
|
isEditMode = true; |
||||||
|
|
||||||
|
ngOnInit(): void { |
||||||
|
console.log('传递的数据',this.data); |
||||||
|
this.isEditMode = this.data.isEditMode; |
||||||
|
this.getData(); |
||||||
|
} |
||||||
|
|
||||||
|
isHttpPost; |
||||||
|
getData() { |
||||||
|
this.http |
||||||
|
.get("/api/SixFamiliars", { |
||||||
|
params: { |
||||||
|
PlanComponentId: this.data.id, |
||||||
|
}, |
||||||
|
}) |
||||||
|
.subscribe((data: any) => { |
||||||
|
console.log("六熟悉记录数据", data); |
||||||
|
if (data.totalCount === 0) { |
||||||
|
this.isHttpPost = true; |
||||||
|
} else { |
||||||
|
this.isHttpPost = false; |
||||||
|
let item = data.items[0]; |
||||||
|
this.familiarizeId = item.id; |
||||||
|
this.memberCount = item.memberCount; |
||||||
|
this.time = [item.startTime, item.endTime]; |
||||||
|
} |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
isLoading = false; |
||||||
|
|
||||||
|
memberCount; |
||||||
|
time; |
||||||
|
familiarizeId; |
||||||
|
isLoadingSave = false; |
||||||
|
save() { |
||||||
|
if (!this.isEditMode) { |
||||||
|
this.dialogRef.close(); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
if (!this.memberCount || !this.time) { |
||||||
|
this.snackBar.open("请输入人员数量和熟悉时间", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
return; |
||||||
|
} |
||||||
|
this.isLoadingSave = true; |
||||||
|
let body: any = { |
||||||
|
planComponentId: this.data.planData.id, |
||||||
|
memberCount: Number(this.memberCount), |
||||||
|
startTime: this.datePipe.transform(this.time[0], "yyyy-MM-ddTHH:mm:ss"), |
||||||
|
endTime: this.datePipe.transform(this.time[1], "yyyy-MM-ddTHH:mm:ss"), |
||||||
|
}; |
||||||
|
if (this.isHttpPost) { |
||||||
|
this.http.post("/api/SixFamiliars", body).subscribe((data: any) => { |
||||||
|
this.familiarizeId = data.id; |
||||||
|
this.isHttpPost = false; |
||||||
|
this.isLoadingSave = false; |
||||||
|
this.snackBar.open("保存成功", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
this.dialogRef.close(); |
||||||
|
}); |
||||||
|
} else { |
||||||
|
body.id = this.familiarizeId; |
||||||
|
this.http.put(`/api/SixFamiliars/${this.familiarizeId}`, body).subscribe( |
||||||
|
(data: any) => { |
||||||
|
this.isLoadingSave = false; |
||||||
|
this.snackBar.open("保存成功", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
this.dialogRef.close(); |
||||||
|
}, |
||||||
|
(err) => { |
||||||
|
this.isLoadingSave = false; |
||||||
|
} |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -1,190 +1,201 @@ |
|||||||
<div style="height: 100%;overflow-y: auto;"> |
<div style="height: 100%;overflow-y: auto;"> |
||||||
<div class="header" > |
<div class="header"> |
||||||
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm"> |
<form (ngSubmit)="onSubmit(form.value)" #form="ngForm"> |
||||||
<div class="queryBox"> |
<div class="queryBox"> |
||||||
|
|
||||||
<div class="queryField"> |
<div class="queryField"> |
||||||
<label style="margin-right: 10px;">预案名称:</label> |
<label style="margin-right: 10px;">预案名称:</label> |
||||||
<mat-form-field class="example-full-width"> |
<mat-form-field class="example-full-width"> |
||||||
<input matInput placeholder="请输入预案名称" name="companyName" autocomplete="off" [(ngModel)]="unitname"> |
<input matInput placeholder="请输入预案名称" name="companyName" autocomplete="off" [(ngModel)]="unitname"> |
||||||
</mat-form-field> |
</mat-form-field> |
||||||
</div> |
</div> |
||||||
<div class="queryField" > |
<div class="queryField"> |
||||||
<label style="margin-right: 10px;">编制级别:</label> |
<label style="margin-right: 10px;">编制级别:</label> |
||||||
<mat-form-field> |
<mat-form-field> |
||||||
<mat-select name="preparelevel" placeholder='请选择编制级别' [(ngModel)]="projectlevel"> |
<mat-select name="preparelevel" placeholder='请选择编制级别' [(ngModel)]="projectlevel"> |
||||||
<!-- <mat-option value="1">总队</mat-option> |
<!-- <mat-option value="1">总队</mat-option> |
||||||
<mat-option value="2">支队</mat-option> |
<mat-option value="2">支队</mat-option> |
||||||
<mat-option value="4">大队</mat-option> |
<mat-option value="4">大队</mat-option> |
||||||
<mat-option value="8">中队</mat-option> --> |
<mat-option value="8">中队</mat-option> --> |
||||||
<mat-option *ngFor="let item of preparelevels" [value]="item.value">{{item.name}}</mat-option> |
<mat-option *ngFor="let item of preparelevels" [value]="item.value">{{item.name}}</mat-option> |
||||||
</mat-select> |
</mat-select> |
||||||
</mat-form-field> |
</mat-form-field> |
||||||
<mat-checkbox style="margin-left: 6px;" [(ngModel)]="plcheck" name="plcheck">包含下级</mat-checkbox> |
<mat-checkbox style="margin-left: 6px;" [(ngModel)]="plcheck" name="plcheck">包含下级</mat-checkbox> |
||||||
<span *ngIf="padMore" style="margin-left: 20px; color: #0080FF;" (click)='padInfo()'>更多筛选条件<img [src]='imgsrcopen'style="width: 10px;height: 6px;margin:0 0 3px 2px;"> </span> |
<span *ngIf="padMore" style="margin-left: 20px; color: #0080FF;" (click)='padInfo()'>更多筛选条件<img |
||||||
<span *ngIf="padput" style="margin-left: 10px; color: #0080FF;" (click)='padInfo()'>收起<img [src]='imgsrcdown'style="width: 10px;height: 6px;margin:0 0 3px 2px;"> </span> |
[src]='imgsrcopen' style="width: 10px;height: 6px;margin:0 0 3px 2px;"> </span> |
||||||
</div> |
<span *ngIf="padput" style="margin-left: 10px; color: #0080FF;" (click)='padInfo()'>收起<img [src]='imgsrcdown' |
||||||
|
style="width: 10px;height: 6px;margin:0 0 3px 2px;"> </span> |
||||||
|
|
||||||
<div class="queryField" *ngIf="!pcfind"> |
|
||||||
<button mat-raised-button color="primary">查询</button> |
|
||||||
<button mat-raised-button style="margin-left: 25px;" type="button" (click)="reset()">重置</button> |
|
||||||
</div> |
|
||||||
<div class="queryField" *ngIf="!padMore"> |
|
||||||
<label style="margin-right: 10px;">预案级别:</label> |
|
||||||
<mat-form-field> |
|
||||||
<mat-select placeholder='请选择预案级别' name="level" [(ngModel)]="level"> |
|
||||||
<mat-option value="6">国家级</mat-option> |
|
||||||
<mat-option value="7">市级</mat-option> |
|
||||||
</mat-select> |
|
||||||
</mat-form-field> |
|
||||||
|
|
||||||
</div> |
|
||||||
<div class="queryField" *ngIf="!padMore"> |
|
||||||
<label style="margin-right: 10px;">添加人:</label> |
|
||||||
<mat-form-field class="example-full-width"> |
|
||||||
<input matInput placeholder="请输入添加人" name="addname" autocomplete="off" [(ngModel)]="addname"> |
|
||||||
</mat-form-field> |
|
||||||
<span *ngIf="pcMore" style="margin-left: 15px; color: #0080FF; cursor: pointer;" (click)='pcInfo()'>更多筛选条件<img [src]='imgsrcopen'style="width: 10px;height: 6px;margin:0 0 3px 2px;"> </span> |
|
||||||
<span *ngIf="pcput" style="margin-left: 10px; color: #0080FF; cursor: pointer;" (click)='pcInfo()'>收起<img [src]='imgsrcdown'style="width: 10px;height: 6px;margin:0 0 3px 2px;"> </span> |
|
||||||
</div> |
|
||||||
<div class="queryField" *ngIf="pcfind" > |
|
||||||
<button mat-raised-button color="primary">查询</button> |
|
||||||
<button mat-raised-button style="margin-left: 25px;" type="button" (click)="reset()">重置</button> |
|
||||||
</div> |
</div> |
||||||
<div class="queryField" *ngIf="!padMore&&!pcMore"> |
|
||||||
<label style="margin-right: 10px;">添加时间:</label> |
|
||||||
<mat-form-field class="example-full-width"> |
|
||||||
<input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime"> |
|
||||||
</mat-form-field> |
|
||||||
<!-- <mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> --> |
|
||||||
<mat-icon *ngIf="padjt" aria-hidden="false" style="position: relative;right: 120px;top: 5px;" id="padshow">arrow forward</mat-icon> |
|
||||||
<span style="margin-left: 15px;" id="pcshow" *ngIf="!padMore&&!padjt">🠊</span> |
|
||||||
<mat-form-field class="example-full-width" style="margin-left: 10px;"> |
|
||||||
<input type="date" matInput name="endtime" autocomplete="off" [(ngModel)]="endtime"> |
|
||||||
</mat-form-field> |
|
||||||
|
|
||||||
</div> |
|
||||||
|
|
||||||
|
|
||||||
<div class="queryField" *ngIf="!padMore&&!pcMore"> |
<div class="queryField" *ngIf="!pcfind"> |
||||||
<label style="margin-right: 10px;">预案类型:</label> |
<button mat-raised-button color="primary">查询</button> |
||||||
<mat-form-field> |
<button mat-raised-button style="margin-left: 25px;" type="button" (click)="reset()">重置</button> |
||||||
<input matInput placeholder="请输入预案类型" name="reservePlanType" autocomplete="off" [(ngModel)]="typePlan"> |
</div> |
||||||
</mat-form-field> |
<div class="queryField" *ngIf="!padMore"> |
||||||
</div> |
<label style="margin-right: 10px;">预案级别:</label> |
||||||
<div class="queryField" *ngIf="!padMore&&!pcMore"> |
<mat-form-field> |
||||||
<label style="margin-right: 10px;">审核状态:</label> |
<mat-select placeholder='请选择预案级别' name="level" [(ngModel)]="level"> |
||||||
<mat-form-field> |
<mat-option value="6">国家级</mat-option> |
||||||
<mat-select name="toExamine" placeholder='请选择审核状态' [(ngModel)]="unitstate"> |
<mat-option value="7">市级</mat-option> |
||||||
<mat-option value="8">未提交审核</mat-option> |
</mat-select> |
||||||
<mat-option value="1">审核中</mat-option> |
</mat-form-field> |
||||||
<mat-option value="2">审核通过</mat-option> |
|
||||||
<mat-option value="4">审核退回</mat-option> |
</div> |
||||||
</mat-select> |
<div class="queryField" *ngIf="!padMore"> |
||||||
</mat-form-field> |
<label style="margin-right: 10px;">添加人:</label> |
||||||
</div> |
<mat-form-field class="example-full-width"> |
||||||
<div class="queryField" *ngIf="!padMore&&!pcMore"> |
<input matInput placeholder="请输入添加人" name="addname" autocomplete="off" [(ngModel)]="addname"> |
||||||
<input type="radio" style="height: 16px;width: 16px;position: relative;top: 2px;" name="whgx" [value]='true' [(ngModel)]="IsNewData"> |
</mat-form-field> |
||||||
<label style="margin-right: 10px;margin-left: 2px;">新增</label> |
<span *ngIf="pcMore" style="margin-left: 15px; color: #0080FF; cursor: pointer;" (click)='pcInfo()'>更多筛选条件<img |
||||||
<input type="radio" style="height: 16px;width: 16px;position: relative;top: 2px;" name="whgx" [value]='false' [(ngModel)]="IsNewData"> |
[src]='imgsrcopen' style="width: 10px;height: 6px;margin:0 0 3px 2px;"> </span> |
||||||
<label style="margin-right: 10px;margin-left: 2px;">维护更新</label> |
<span *ngIf="pcput" style="margin-left: 10px; color: #0080FF; cursor: pointer;" (click)='pcInfo()'>收起<img |
||||||
</div> |
[src]='imgsrcdown' style="width: 10px;height: 6px;margin:0 0 3px 2px;"> </span> |
||||||
|
</div> |
||||||
</div> |
<div class="queryField" *ngIf="pcfind"> |
||||||
<!-- <div class="butclass" style="width: 100%;text-align: center;"> |
<button mat-raised-button color="primary">查询</button> |
||||||
|
<button mat-raised-button style="margin-left: 25px;" type="button" (click)="reset()">重置</button> |
||||||
|
</div> |
||||||
|
<div class="queryField" *ngIf="!padMore&&!pcMore"> |
||||||
|
<label style="margin-right: 10px;">添加时间:</label> |
||||||
|
<mat-form-field class="example-full-width"> |
||||||
|
<input type="date" matInput name="addtime" autocomplete="off" [(ngModel)]="addtime"> |
||||||
|
</mat-form-field> |
||||||
|
<!-- <mat-icon aria-hidden="false" style="position: relative;right: 120px;top: 5px;">arrow forward</mat-icon> --> |
||||||
|
<mat-icon *ngIf="padjt" aria-hidden="false" style="position: relative;right: 120px;top: 5px;" |
||||||
|
id="padshow">arrow forward</mat-icon> |
||||||
|
<span style="margin-left: 15px;" id="pcshow" *ngIf="!padMore&&!padjt">🠊</span> |
||||||
|
<mat-form-field class="example-full-width" style="margin-left: 10px;"> |
||||||
|
<input type="date" matInput name="endtime" autocomplete="off" [(ngModel)]="endtime"> |
||||||
|
</mat-form-field> |
||||||
|
|
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
<div class="queryField" *ngIf="!padMore&&!pcMore"> |
||||||
|
<label style="margin-right: 10px;">预案类型:</label> |
||||||
|
<mat-form-field> |
||||||
|
<input matInput placeholder="请输入预案类型" name="reservePlanType" autocomplete="off" [(ngModel)]="typePlan"> |
||||||
|
</mat-form-field> |
||||||
|
</div> |
||||||
|
<div class="queryField" *ngIf="!padMore&&!pcMore"> |
||||||
|
<label style="margin-right: 10px;">审核状态:</label> |
||||||
|
<mat-form-field> |
||||||
|
<mat-select name="toExamine" placeholder='请选择审核状态' [(ngModel)]="unitstate"> |
||||||
|
<mat-option value="8">未提交审核</mat-option> |
||||||
|
<mat-option value="1">审核中</mat-option> |
||||||
|
<mat-option value="2">审核通过</mat-option> |
||||||
|
<mat-option value="4">审核退回</mat-option> |
||||||
|
</mat-select> |
||||||
|
</mat-form-field> |
||||||
|
</div> |
||||||
|
<div class="queryField" *ngIf="!padMore&&!pcMore"> |
||||||
|
<input type="radio" style="height: 16px;width: 16px;position: relative;top: 2px;" name="whgx" [value]='true' |
||||||
|
[(ngModel)]="IsNewData"> |
||||||
|
<label style="margin-right: 10px;margin-left: 2px;">新增</label> |
||||||
|
<input type="radio" style="height: 16px;width: 16px;position: relative;top: 2px;" name="whgx" [value]='false' |
||||||
|
[(ngModel)]="IsNewData"> |
||||||
|
<label style="margin-right: 10px;margin-left: 2px;">维护更新</label> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
<!-- <div class="butclass" style="width: 100%;text-align: center;"> |
||||||
<button mat-raised-button color="primary" type="submit">查询</button> |
<button mat-raised-button color="primary" type="submit">查询</button> |
||||||
<button mat-raised-button style="margin-left: 25px;" type="button" (click)="reset()">重置</button> |
<button mat-raised-button style="margin-left: 25px;" type="button" (click)="reset()">重置</button> |
||||||
</div> --> |
</div> --> |
||||||
</form> |
</form> |
||||||
|
</div> |
||||||
|
<!-- <mat-divider></mat-divider> --> |
||||||
|
<div class="newadd"> |
||||||
|
<div> |
||||||
|
<button *ngIf="levels=='0'" mat-raised-button color="primary" (click)='addunit()'><img style="margin-bottom: 3px;" |
||||||
|
src="../../../assets/images/newadd.png"> 新增</button> |
||||||
|
<!-- <button mat-raised-button color="primary" (click)='word("table","ceshi.doc")'></button> --> |
||||||
</div> |
</div> |
||||||
<!-- <mat-divider></mat-divider> --> |
|
||||||
<div class="newadd"> |
<div class="progressBox" style="margin-left: 100px;" *ngIf="downloadisLoading"> |
||||||
<div> |
|
||||||
<button *ngIf="levels=='0'" mat-raised-button color="primary" (click)='addunit()'><img style="margin-bottom: 3px;" src="../../../assets/images/newadd.png"> 新增</button> |
<!-- <button mat-raised-button style="margin-right: 5px;" (click)="cancelDowload()">取消下载</button> --> |
||||||
<!-- <button mat-raised-button color="primary" (click)='word("table","ceshi.doc")'></button> --> |
<span title="{{downloadFileName}}" style="font-size: 12px;" class="filename">{{downloadFileName}}</span> |
||||||
</div> |
<span style="font-size: 12px;position: absolute;margin-left: 8px;">下载中...</span> |
||||||
|
<mat-progress-bar mode="determinate" [value]="downloadProgress" class="progress"></mat-progress-bar> |
||||||
<div class="progressBox" style="margin-left: 100px;" *ngIf="downloadisLoading"> |
|
||||||
|
|
||||||
<!-- <button mat-raised-button style="margin-right: 5px;" (click)="cancelDowload()">取消下载</button> --> |
|
||||||
<span title="{{downloadFileName}}" style="font-size: 12px;" class="filename">{{downloadFileName}}</span> |
|
||||||
<span style="font-size: 12px;position: absolute;margin-left: 8px;">下载中...</span> |
|
||||||
<mat-progress-bar mode="determinate" [value]="downloadProgress" class="progress"></mat-progress-bar> |
|
||||||
</div> |
|
||||||
</div> |
</div> |
||||||
<div class="body"> |
</div> |
||||||
<div class="tablebox" id="table"> |
<div class="body"> |
||||||
<table mat-table [dataSource]="tabledataSource" class="mat-elevation-z8"> |
<div class="tablebox" id="table"> |
||||||
<ng-container matColumnDef="state"> |
<table mat-table [dataSource]="tabledataSource" class="mat-elevation-z8"> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">预案状态</th> |
<ng-container matColumnDef="state"> |
||||||
<td mat-cell *matCellDef="let element"> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">预案状态</th> |
||||||
<span class="add" *ngIf="element.isNewData">新增</span> |
<td mat-cell *matCellDef="let element"> |
||||||
<span class="weihu" *ngIf="!element.isNewData">维护更新</span> |
<span class="add" *ngIf="element.isNewData">新增</span> |
||||||
</td> |
<span class="weihu" *ngIf="!element.isNewData">维护更新</span> |
||||||
</ng-container> |
</td> |
||||||
<ng-container matColumnDef="unitname"> |
</ng-container> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">预案名称</th> |
<ng-container matColumnDef="unitname"> |
||||||
<td mat-cell *matCellDef="let element">{{element.name}}</td> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">预案名称</th> |
||||||
</ng-container> |
<td mat-cell *matCellDef="let element">{{element.name}}</td> |
||||||
<ng-container matColumnDef="level"> |
</ng-container> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">预案级别</th> |
<ng-container matColumnDef="level"> |
||||||
<td mat-cell *matCellDef="let element">{{element.planCategory=='6'?'国家级':'市级'}}</td> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">预案级别</th> |
||||||
</ng-container> |
<td mat-cell *matCellDef="let element">{{element.planCategory=='6'?'国家级':'市级'}}</td> |
||||||
<ng-container matColumnDef="addname"> |
</ng-container> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">添加人</th> |
<ng-container matColumnDef="addname"> |
||||||
<td mat-cell *matCellDef="let element">{{element.creatorName}}</td> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">添加人</th> |
||||||
</ng-container> |
<td mat-cell *matCellDef="let element">{{element.creatorName}}</td> |
||||||
|
</ng-container> |
||||||
<ng-container matColumnDef="addtime"> |
|
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">添加时间</th> |
<ng-container matColumnDef="addtime"> |
||||||
<td mat-cell *matCellDef="let element">{{element.creationTime|date:'yyyy-MM-dd'}}</td> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">添加时间</th> |
||||||
</ng-container> |
<td mat-cell *matCellDef="let element">{{element.creationTime|date:'yyyy-MM-dd'}}</td> |
||||||
<ng-container matColumnDef="plantype"> |
</ng-container> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">预案类型</th> |
<ng-container matColumnDef="plantype"> |
||||||
<td mat-cell *matCellDef="let element">{{element.disasterType}}</td> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">预案类型</th> |
||||||
</ng-container> |
<td mat-cell *matCellDef="let element">{{element.disasterType}}</td> |
||||||
<ng-container matColumnDef="passstate"> |
</ng-container> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">新增审核</th> |
<ng-container matColumnDef="passstate"> |
||||||
<td mat-cell *matCellDef="let element"> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">新增审核</th> |
||||||
{{element.newVerifyState}} |
<td mat-cell *matCellDef="let element"> |
||||||
<!-- {{element.auditStatus=='8'?'未提交审核':element.auditStatus=='1'?'审核中':element.auditStatus=='2'?'审核通过':element.auditStatus=='4'? |
{{element.newVerifyState}} |
||||||
|
<!-- {{element.auditStatus=='8'?'未提交审核':element.auditStatus=='1'?'审核中':element.auditStatus=='2'?'审核通过':element.auditStatus=='4'? |
||||||
'审核退回':element.auditStatus=='16'?'初审通过':'初审驳回'}} --> |
'审核退回':element.auditStatus=='16'?'初审通过':'初审驳回'}} --> |
||||||
</td> |
</td> |
||||||
</ng-container> |
</ng-container> |
||||||
<ng-container matColumnDef="isopen"> |
<ng-container matColumnDef="isopen"> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">是否公开</th> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">是否公开</th> |
||||||
<td mat-cell *matCellDef="let element">{{element.openRange}}</td> |
<td mat-cell *matCellDef="let element">{{element.openRange}}</td> |
||||||
</ng-container> |
</ng-container> |
||||||
<ng-container matColumnDef="projectlevel"> |
<ng-container matColumnDef="projectlevel"> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">编制级别</th> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">编制级别</th> |
||||||
<td mat-cell *matCellDef="let element">{{element.planLevel=='1'?'总队':element.planLevel=='2'?'支队':element.planLevel=='4'?'大队':'中队'}}</td> |
<td mat-cell *matCellDef="let element"> |
||||||
</ng-container> |
{{element.planLevel=='1'?'总队':element.planLevel=='2'?'支队':element.planLevel=='4'?'大队':'中队'}}</td> |
||||||
<ng-container matColumnDef="weihustate"> |
</ng-container> |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 8%;">维护审核</th> |
<ng-container matColumnDef="auditstate"> |
||||||
<td mat-cell *matCellDef="let element">{{element.maintenanceVerifyState}}</td> |
<th mat-header-cell *matHeaderCellDef style="width: 8%;">审核状态</th> |
||||||
</ng-container> |
<td mat-cell *matCellDef="let element"> |
||||||
<ng-container matColumnDef="operation"> |
{{element.auditStatus | auditState}} |
||||||
<th mat-header-cell *matHeaderCellDef style="width: 20%;">操作</th> |
</td> |
||||||
<td mat-cell *matCellDef="let element" style="white-space: nowrap;cursor: pointer;"> |
</ng-container> |
||||||
<span style="color: blue;" (click)='openPlan(element)'>查看预案</span> |
<ng-container matColumnDef="operation"> |
||||||
<span style="color: blue;margin-left: 4px;" (click)="submitAudit(element)" *ngIf="(element.isNewData && element.newVerifyState=='未提交审核')||(!element.isNewData&&(element.maintenanceVerifyState=='审核通过'||element.maintenanceVerifyState=='未提交审核'))">提交审核</span> |
<th mat-header-cell *matHeaderCellDef style="width: 20%;">操作</th> |
||||||
<span style="color: blue;margin-left: 4px;" (click)="cancelAudit(element)" *ngIf="element.auditStatus == 1||element.auditStatus == 16">撤销审核</span> |
<td mat-cell *matCellDef="let element" style="white-space: nowrap;cursor: pointer;"> |
||||||
<span style="color: blue;margin-left: 4px;" (click)="auditResult(element)">审批结果</span> |
<span style="color: blue;" (click)='openPlan(element)'>查看预案</span> |
||||||
<span style="color: blue;margin-left: 4px;" (click)='readFile(element)'>下载</span> |
<span style="color: blue;margin-left: 4px;" (click)="submitAudit(element)" |
||||||
<span style="color: red;margin-left: 4px" (click)='deletePlan(element.id)' *ngIf="element.auditStatus == 8"> 删除</span> |
*ngIf="(element.isNewData && element.newVerifyState=='未提交审核')||(!element.isNewData&&(element.maintenanceVerifyState=='审核通过'||element.maintenanceVerifyState=='未提交审核'))">提交审核</span> |
||||||
</td> |
<span style="color: blue;margin-left: 4px;" (click)="cancelAudit(element)" |
||||||
</ng-container> |
*ngIf="element.auditStatus == 1||element.auditStatus == 16">撤销审核</span> |
||||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> |
<span style="color: blue;margin-left: 4px;" (click)="auditResult(element)">审批结果</span> |
||||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> |
<span style="color: blue;margin-left: 4px;" (click)='readFile(element)'>下载</span> |
||||||
</table> |
<span style="color: red;margin-left: 4px" (click)='deletePlan(element.id)'> 删除</span> |
||||||
<mat-paginator pageEvent [length]="length" |
</td> |
||||||
[pageSize]="pageSize" |
</ng-container> |
||||||
[pageSizeOptions]="pageSizeOptions" |
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> |
||||||
(page)="changePage($event)"> |
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> |
||||||
|
</table> |
||||||
</mat-paginator> |
<mat-paginator pageEvent [length]="length" [pageSize]="pageSize" [pageSizeOptions]="pageSizeOptions" |
||||||
|
(page)="changePage($event)"> |
||||||
</div> |
|
||||||
|
</mat-paginator> |
||||||
|
|
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
|
</div> |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,10 @@ |
|||||||
|
<h3 mat-dialog-title>选择要公开的消防救援站</h3> |
||||||
|
<div class="box"> |
||||||
|
<nz-tree #nzTreeComponent [nzData]="nodes" nzCheckable nzCheckStrictly [nzCheckedKeys]="defaultCheckedKeys" |
||||||
|
[nzExpandedKeys]="defaultExpandedKeys"> |
||||||
|
</nz-tree> |
||||||
|
</div> |
||||||
|
<mat-dialog-actions align="end"> |
||||||
|
<button mat-button mat-dialog-close [disabled]="isLoading">取消</button> |
||||||
|
<button mat-button cdkFocusInitial (click)="save()" [disabled]="isLoading">确定</button> |
||||||
|
</mat-dialog-actions> |
@ -0,0 +1,4 @@ |
|||||||
|
.box{ |
||||||
|
max-height: 400px; |
||||||
|
overflow-y: auto; |
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||||
|
|
||||||
|
import { OpenOrComponent } from './open-or.component'; |
||||||
|
|
||||||
|
describe('OpenOrComponent', () => { |
||||||
|
let component: OpenOrComponent; |
||||||
|
let fixture: ComponentFixture<OpenOrComponent>; |
||||||
|
|
||||||
|
beforeEach(async(() => { |
||||||
|
TestBed.configureTestingModule({ |
||||||
|
declarations: [ OpenOrComponent ] |
||||||
|
}) |
||||||
|
.compileComponents(); |
||||||
|
})); |
||||||
|
|
||||||
|
beforeEach(() => { |
||||||
|
fixture = TestBed.createComponent(OpenOrComponent); |
||||||
|
component = fixture.componentInstance; |
||||||
|
fixture.detectChanges(); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should create', () => { |
||||||
|
expect(component).toBeTruthy(); |
||||||
|
}); |
||||||
|
}); |
@ -0,0 +1,126 @@ |
|||||||
|
import { HttpClient } from "@angular/common/http"; |
||||||
|
import { |
||||||
|
Component, |
||||||
|
OnInit, |
||||||
|
AfterViewInit, |
||||||
|
ViewChild, |
||||||
|
Inject, |
||||||
|
} from "@angular/core"; |
||||||
|
import { MatSnackBar } from "@angular/material/snack-bar"; |
||||||
|
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog"; |
||||||
|
import { |
||||||
|
NzFormatEmitEvent, |
||||||
|
NzTreeComponent, |
||||||
|
NzTreeNodeOptions, |
||||||
|
} from "ng-zorro-antd/tree"; |
||||||
|
|
||||||
|
@Component({ |
||||||
|
selector: "app-open-or", |
||||||
|
templateUrl: "./open-or.component.html", |
||||||
|
styleUrls: ["./open-or.component.scss"], |
||||||
|
}) |
||||||
|
export class OpenOrComponent implements OnInit { |
||||||
|
constructor( |
||||||
|
private http: HttpClient, |
||||||
|
public snackBar: MatSnackBar, |
||||||
|
@Inject(MAT_DIALOG_DATA) public data: any, |
||||||
|
public dialogRef: MatDialogRef<OpenOrComponent> |
||||||
|
) {} |
||||||
|
@ViewChild("nzTreeComponent", { static: false }) |
||||||
|
nzTreeComponent!: NzTreeComponent; |
||||||
|
defaultCheckedKeys = []; |
||||||
|
defaultExpandedKeys = []; |
||||||
|
isLoading = false; |
||||||
|
nodes: NzTreeNodeOptions[] = []; |
||||||
|
ngOnInit(): void { |
||||||
|
this.getOrganizations(); |
||||||
|
} |
||||||
|
|
||||||
|
//获得所有组织机构
|
||||||
|
allorganizations = []; |
||||||
|
getOrganizations() { |
||||||
|
this.http.get("/api/Organizations").subscribe((data: any) => { |
||||||
|
this.allorganizations = data; |
||||||
|
this.getpresentOrganization(); |
||||||
|
}); |
||||||
|
} |
||||||
|
//得到当前单位所在组织机构的tree型数据
|
||||||
|
organizationName; |
||||||
|
getpresentOrganization() { |
||||||
|
let orData = JSON.parse(JSON.stringify(this.allorganizations)); |
||||||
|
orData.forEach((item) => { |
||||||
|
item.children = []; |
||||||
|
orData.forEach((element) => { |
||||||
|
if (element.parentId == item.id) { |
||||||
|
item.children.push(element); |
||||||
|
} |
||||||
|
}); |
||||||
|
}); |
||||||
|
orData.forEach((item) => { |
||||||
|
item.title = item.name; |
||||||
|
item.key = item.id; |
||||||
|
item.selectable = false; |
||||||
|
if (item.children.length === 0) { |
||||||
|
item.isLeaf = true; |
||||||
|
} |
||||||
|
}); |
||||||
|
this.http.get("/api/Account/Profiles").subscribe((data: any) => { |
||||||
|
this.organizationName = data.organizationName; |
||||||
|
if (this.organizationName) { |
||||||
|
orData.forEach((item) => { |
||||||
|
if (item.name == this.organizationName) { |
||||||
|
function lookForAllId(data = [], arr = []) { |
||||||
|
for (let item of data) { |
||||||
|
arr.push(item.id); |
||||||
|
if (item.children && item.children.length) |
||||||
|
lookForAllId(item.children, arr); |
||||||
|
} |
||||||
|
return arr; |
||||||
|
} |
||||||
|
|
||||||
|
function lookForNode(data, id, node = []) { |
||||||
|
for (let item of data) { |
||||||
|
if (item.id === id) { |
||||||
|
node.push(item); |
||||||
|
} else { |
||||||
|
if (item.children && item.children.length) { |
||||||
|
lookForNode(item.children, id, node); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
return node; |
||||||
|
} |
||||||
|
if (this.data.plan.publicOrganizationIds.length === 0) { |
||||||
|
this.defaultCheckedKeys = [...lookForAllId([item])]; |
||||||
|
} else { |
||||||
|
this.defaultCheckedKeys = this.data.plan.publicOrganizationIds; |
||||||
|
} |
||||||
|
|
||||||
|
this.nodes = [...[item]]; |
||||||
|
} |
||||||
|
}); |
||||||
|
} |
||||||
|
}); |
||||||
|
} |
||||||
|
save() { |
||||||
|
let ids = |
||||||
|
this.nzTreeComponent.getCheckedNodeList().map((item) => { |
||||||
|
return item.key; |
||||||
|
}) || []; |
||||||
|
if (ids.length === 0) { |
||||||
|
this.snackBar.open("至少选择一个队站公开", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
} |
||||||
|
this.http |
||||||
|
.put(`/api/PlanAudits/${this.data.plan.id}/Public`, ids) |
||||||
|
.subscribe((data) => { |
||||||
|
this.snackBar.open("预案已公开", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
this.dialogRef.close("公开成功"); |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
<h2 mat-dialog-title>新增预案推演</h2> |
||||||
|
<div class="box"> |
||||||
|
<div class="contentItem"> |
||||||
|
<div class="content"> |
||||||
|
<div> |
||||||
|
<span class="name">预案名称:</span> |
||||||
|
<input name="planname" [(ngModel)]="planname" nz-input placeholder="请输入预案名称" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<span class="name">单位名称:</span> |
||||||
|
<nz-select nzShowSearch nzServerSearch (nzOnSearch)="search($event)" [(ngModel)]="unitid" |
||||||
|
(nzScrollToBottom)="loadMore()" nzPlaceHolder="请选择单位" nzAllowClear |
||||||
|
[nzDropdownRender]="renderTemplate"> |
||||||
|
<nz-option *ngFor="let o of optionList" [nzValue]="o.id" [nzLabel]="o.name"></nz-option> |
||||||
|
</nz-select> |
||||||
|
<ng-template #renderTemplate> |
||||||
|
<nz-spin *ngIf="isLoading"></nz-spin> |
||||||
|
</ng-template> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<span class="name">创建机构:</span> |
||||||
|
<nz-tree-select [nzDropdownClassName]="'maxHeightTreeSelect'" [nzNodes]="nodes" nzShowSearch |
||||||
|
nzPlaceHolder="请选择创建人" [(ngModel)]="orid"> |
||||||
|
</nz-tree-select> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<!-- <div class="mask" *ngIf="isLoading"> |
||||||
|
<mat-spinner [diameter]="30"></mat-spinner> |
||||||
|
</div> --> |
||||||
|
</div> |
||||||
|
<mat-dialog-actions align="end"> |
||||||
|
<button mat-button mat-dialog-close [disabled]="isLoading">取消</button> |
||||||
|
<button mat-button cdkFocusInitial (click)="save()" [disabled]="isLoading">确定</button> |
||||||
|
</mat-dialog-actions> |
@ -0,0 +1,122 @@ |
|||||||
|
.box { |
||||||
|
width: 100%; |
||||||
|
position: relative; |
||||||
|
|
||||||
|
.contentItem { |
||||||
|
display: flex; |
||||||
|
margin: 6px 0; |
||||||
|
// border-bottom: 1px dashed rgb(180, 178, 178); |
||||||
|
|
||||||
|
.title { |
||||||
|
width: 75px; |
||||||
|
color: #1890ff; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
} |
||||||
|
|
||||||
|
.content { |
||||||
|
flex: 1; |
||||||
|
display: flex; |
||||||
|
flex-wrap: wrap; |
||||||
|
flex-direction: column; |
||||||
|
|
||||||
|
div { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
input { |
||||||
|
flex: 1; |
||||||
|
} |
||||||
|
|
||||||
|
nz-select, |
||||||
|
nz-tree-select { |
||||||
|
width: 72.5%; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
div { |
||||||
|
margin-bottom: 8px; |
||||||
|
|
||||||
|
.name { |
||||||
|
display: inline-block; |
||||||
|
width: 70px; |
||||||
|
margin-right: 3px; |
||||||
|
text-align: right; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
.textbox { |
||||||
|
height: 32px; |
||||||
|
line-height: 32px; |
||||||
|
width: 50%; |
||||||
|
white-space: nowrap; |
||||||
|
overflow: hidden; |
||||||
|
text-overflow: ellipsis; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
.uploadbox { |
||||||
|
position: relative; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
input { |
||||||
|
width: 88px; |
||||||
|
height: 32px; |
||||||
|
position: absolute; |
||||||
|
left: 0; |
||||||
|
top: 0; |
||||||
|
opacity: 0; |
||||||
|
z-index: 2; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
button { |
||||||
|
z-index: 1; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
.imgbox { |
||||||
|
height: 100%; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
li { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
position: relative; |
||||||
|
} |
||||||
|
|
||||||
|
img { |
||||||
|
width: 50px; |
||||||
|
height: 50px; |
||||||
|
margin: 0 5px; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
.close { |
||||||
|
position: absolute; |
||||||
|
right: 0; |
||||||
|
top: 0; |
||||||
|
font-size: 15px; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.mask { |
||||||
|
position: absolute; |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
left: 0; |
||||||
|
top: 0; |
||||||
|
background: rgba(0, 0, 0, 0.2); |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
|
z-index: 3; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||||
|
|
||||||
|
import { AddPlanComponent } from './add-plan.component'; |
||||||
|
|
||||||
|
describe('AddPlanComponent', () => { |
||||||
|
let component: AddPlanComponent; |
||||||
|
let fixture: ComponentFixture<AddPlanComponent>; |
||||||
|
|
||||||
|
beforeEach(async(() => { |
||||||
|
TestBed.configureTestingModule({ |
||||||
|
declarations: [ AddPlanComponent ] |
||||||
|
}) |
||||||
|
.compileComponents(); |
||||||
|
})); |
||||||
|
|
||||||
|
beforeEach(() => { |
||||||
|
fixture = TestBed.createComponent(AddPlanComponent); |
||||||
|
component = fixture.componentInstance; |
||||||
|
fixture.detectChanges(); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should create', () => { |
||||||
|
expect(component).toBeTruthy(); |
||||||
|
}); |
||||||
|
}); |
@ -0,0 +1,103 @@ |
|||||||
|
import { HttpClient } from "@angular/common/http"; |
||||||
|
import { Component, OnInit, Inject } from "@angular/core"; |
||||||
|
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog"; |
||||||
|
import { DatePipe } from "@angular/common"; |
||||||
|
import { MatSnackBar } from "@angular/material/snack-bar"; |
||||||
|
import { Observable } from "rxjs"; |
||||||
|
import { map } from "rxjs/operators"; |
||||||
|
@Component({ |
||||||
|
selector: "app-add-plan", |
||||||
|
templateUrl: "./add-plan.component.html", |
||||||
|
styleUrls: ["./add-plan.component.scss"], |
||||||
|
providers: [DatePipe], |
||||||
|
}) |
||||||
|
export class AddPlanComponent implements OnInit { |
||||||
|
constructor( |
||||||
|
public dialogRef: MatDialogRef<AddPlanComponent>, |
||||||
|
@Inject(MAT_DIALOG_DATA) public data: any, |
||||||
|
private http: HttpClient, |
||||||
|
public snackBar: MatSnackBar |
||||||
|
) {} |
||||||
|
|
||||||
|
ngOnInit(): void { |
||||||
|
console.log("传递的数据", this.data); |
||||||
|
this.nodes = this.data; |
||||||
|
this.getCompanies(); |
||||||
|
} |
||||||
|
|
||||||
|
isLoading = false; |
||||||
|
|
||||||
|
planname; |
||||||
|
unitid; |
||||||
|
orid; |
||||||
|
optionList: string[] = []; |
||||||
|
PageNumber = 1; |
||||||
|
PageSize = 10; |
||||||
|
IntegrityScoreMin = 0; |
||||||
|
IntegrityScoreMax = 1; |
||||||
|
loadMore(): void { |
||||||
|
console.log("需要加载下一页了"); |
||||||
|
this.PageNumber += 1; |
||||||
|
this.getCompanies(); |
||||||
|
} |
||||||
|
|
||||||
|
getCompanies(name?: string) { |
||||||
|
this.isLoading = true; |
||||||
|
let params: any = { |
||||||
|
Name: name || "", |
||||||
|
PageNumber: this.PageNumber, |
||||||
|
PageSize: this.PageSize, |
||||||
|
IntegrityScoreMin: this.IntegrityScoreMin, |
||||||
|
IntegrityScoreMax: this.IntegrityScoreMax, |
||||||
|
}; |
||||||
|
this.http |
||||||
|
.get("/api/Companies", { params: params }) |
||||||
|
.subscribe((data: any) => { |
||||||
|
console.log("单位列表", data.items); |
||||||
|
this.isLoading = false; |
||||||
|
this.optionList = [...this.optionList, ...data.items]; |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
Name; |
||||||
|
search($event) { |
||||||
|
console.log($event); |
||||||
|
this.Name = $event; |
||||||
|
this.PageNumber = 1; |
||||||
|
this.optionList = []; |
||||||
|
this.getCompanies($event); |
||||||
|
} |
||||||
|
|
||||||
|
nodes; |
||||||
|
|
||||||
|
save() { |
||||||
|
console.log(1, this.planname); |
||||||
|
console.log(2, this.unitid); |
||||||
|
console.log(3, this.orid); |
||||||
|
// return;
|
||||||
|
if (!this.planname || !this.unitid) { |
||||||
|
this.snackBar.open("请输入完整", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
let body: any = { |
||||||
|
name: this.planname, |
||||||
|
planCategory: 9, //temp
|
||||||
|
planMode: 2, |
||||||
|
planType: 1, |
||||||
|
exCreatorId: this.orid ? this.orid : "", |
||||||
|
}; |
||||||
|
this.http |
||||||
|
.post(`/api/PlanComponents2D?companyId=${this.unitid}`, body) |
||||||
|
.subscribe((data: any) => { |
||||||
|
this.snackBar.open("创建成功", "确定", { |
||||||
|
verticalPosition: "top", |
||||||
|
duration: 3000, |
||||||
|
}); |
||||||
|
this.dialogRef.close(data); |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,62 @@ |
|||||||
|
<!-- <p>六熟悉记录</p> --> |
||||||
|
<div class="box"> |
||||||
|
<div class="header"> |
||||||
|
<form class="queryBox" (ngSubmit)="onSubmit()"> |
||||||
|
<div class="queryField"> |
||||||
|
<span style="width: 108px;">预案名称:</span> |
||||||
|
<input name="name" nz-input placeholder="请输入预案名称" [(ngModel)]="name" /> |
||||||
|
</div> |
||||||
|
<div class="queryField"> |
||||||
|
<span style="width: 108px;">单位名称:</span> |
||||||
|
<input name="companyname" nz-input placeholder="请输入单位名称" [(ngModel)]="companyname" /> |
||||||
|
</div> |
||||||
|
<div class="queryField" style="margin-right: 35px;"> |
||||||
|
<span style="width: 153px;">创建人(消防救援站):</span> |
||||||
|
<nz-tree-select [nzDropdownClassName]="'maxHeightTreeSelect'" style="width: 250px" |
||||||
|
[nzExpandedKeys]="expandKeys" [nzNodes]="nodes" nzShowSearch nzPlaceHolder="请选择组织机构" name="orId" |
||||||
|
[(ngModel)]="orId"> |
||||||
|
</nz-tree-select> |
||||||
|
</div> |
||||||
|
<!-- <div class="queryField"> |
||||||
|
<span>熟悉时间:</span> |
||||||
|
<nz-range-picker name="time" [(ngModel)]="time"></nz-range-picker> |
||||||
|
</div> --> |
||||||
|
<div class="queryField btnbox"> |
||||||
|
<button nz-button nzType="primary">查询</button> |
||||||
|
<button nz-button type="button" nzType="default" (click)="reset()">重置</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
<div class="tablebox"> |
||||||
|
<button nz-button nzType="primary" class="add" (click)="add()">新增</button> |
||||||
|
<table mat-table [dataSource]="tabledataSource" class="mat-elevation-z8"> |
||||||
|
<ng-container matColumnDef="planname"> |
||||||
|
<th mat-header-cell *matHeaderCellDef>预案名称</th> |
||||||
|
<td mat-cell *matCellDef="let element">{{element.name}}</td> |
||||||
|
</ng-container> |
||||||
|
<ng-container matColumnDef="name"> |
||||||
|
<th mat-header-cell *matHeaderCellDef>单位名称</th> |
||||||
|
<td mat-cell *matCellDef="let element">{{element.companyName}}</td> |
||||||
|
</ng-container> |
||||||
|
<ng-container matColumnDef="people"> |
||||||
|
<th mat-header-cell *matHeaderCellDef>创建人</th> |
||||||
|
<td mat-cell *matCellDef="let element">{{element.committerOrganizationName}}</td> |
||||||
|
</ng-container> |
||||||
|
<ng-container matColumnDef="time"> |
||||||
|
<th mat-header-cell *matHeaderCellDef>创建时间</th> |
||||||
|
<td mat-cell *matCellDef="let element">{{element.creationTime | date:'yyyy-MM-dd HH:mm'}}</td> |
||||||
|
</ng-container> |
||||||
|
<ng-container matColumnDef="operate"> |
||||||
|
<th mat-header-cell *matHeaderCellDef style="width: 200px;">操作</th> |
||||||
|
<td mat-cell *matCellDef="let element" class="operate"> |
||||||
|
<span (click)="look(element)">查看</span> |
||||||
|
<span (click)="delete(element)">删除</span> |
||||||
|
</td> |
||||||
|
</ng-container> |
||||||
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> |
||||||
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> |
||||||
|
</table> |
||||||
|
<mat-paginator [length]="length" [pageSize]="pageSize" (page)="chagePage($event)"> |
||||||
|
</mat-paginator> |
||||||
|
</div> |
||||||
|
</div> |
@ -0,0 +1,63 @@ |
|||||||
|
.box { |
||||||
|
height: 100%; |
||||||
|
overflow: auto; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
.header { |
||||||
|
width: 100%; |
||||||
|
box-sizing: border-box; |
||||||
|
padding: 20px 30px 8px 30px; |
||||||
|
|
||||||
|
.queryBox { |
||||||
|
display: flex; |
||||||
|
flex-wrap: wrap; |
||||||
|
align-items: center; |
||||||
|
|
||||||
|
.queryField { |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
margin-right: 20px; |
||||||
|
|
||||||
|
span { |
||||||
|
display: inline-block; |
||||||
|
width: 80px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.btnbox { |
||||||
|
button { |
||||||
|
margin-right: 12px; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
.tablebox { |
||||||
|
.add{ |
||||||
|
margin-left: 30px; |
||||||
|
} |
||||||
|
table { |
||||||
|
width: 100%; |
||||||
|
margin-top: 15px; |
||||||
|
} |
||||||
|
|
||||||
|
mat-paginator { |
||||||
|
width: 100%; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.mat-header-cell, |
||||||
|
.mat-cell { |
||||||
|
text-align: center; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
.operate { |
||||||
|
span { |
||||||
|
color: #40a9ff; |
||||||
|
cursor: pointer; |
||||||
|
margin: 0 3px; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,25 @@ |
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||||
|
|
||||||
|
import { PlanDeductionComponent } from './plan-deduction.component'; |
||||||
|
|
||||||
|
describe('PlanDeductionComponent', () => { |
||||||
|
let component: PlanDeductionComponent; |
||||||
|
let fixture: ComponentFixture<PlanDeductionComponent>; |
||||||
|
|
||||||
|
beforeEach(async(() => { |
||||||
|
TestBed.configureTestingModule({ |
||||||
|
declarations: [ PlanDeductionComponent ] |
||||||
|
}) |
||||||
|
.compileComponents(); |
||||||
|
})); |
||||||
|
|
||||||
|
beforeEach(() => { |
||||||
|
fixture = TestBed.createComponent(PlanDeductionComponent); |
||||||
|
component = fixture.componentInstance; |
||||||
|
fixture.detectChanges(); |
||||||
|
}); |
||||||
|
|
||||||
|
it('should create', () => { |
||||||
|
expect(component).toBeTruthy(); |
||||||
|
}); |
||||||
|
}); |
@ -0,0 +1,180 @@ |
|||||||
|
import { Component, OnInit, ViewChild } from "@angular/core"; |
||||||
|
import { HttpClient } from "@angular/common/http"; |
||||||
|
import { MatPaginator } from "@angular/material/paginator"; |
||||||
|
import { PageEvent } from "@angular/material/paginator"; |
||||||
|
import { MatDialog } from "@angular/material/dialog"; |
||||||
|
import { MatSnackBar } from "@angular/material/snack-bar"; |
||||||
|
import { DatePipe } from "@angular/common"; |
||||||
|
import { AddPlanComponent } from "./add-plan/add-plan.component"; |
||||||
|
|
||||||
|
@Component({ |
||||||
|
selector: "app-plan-deduction", |
||||||
|
templateUrl: "./plan-deduction.component.html", |
||||||
|
styleUrls: ["./plan-deduction.component.scss"], |
||||||
|
providers: [DatePipe], |
||||||
|
}) |
||||||
|
export class PlanDeductionComponent implements OnInit { |
||||||
|
constructor( |
||||||
|
private http: HttpClient, |
||||||
|
public dialog: MatDialog, |
||||||
|
public snackBar: MatSnackBar, |
||||||
|
private datePipe: DatePipe |
||||||
|
) {} |
||||||
|
|
||||||
|
//分页
|
||||||
|
@ViewChild(MatPaginator, { static: true }) |
||||||
|
pageEvent: PageEvent; |
||||||
|
paginator: MatPaginator; |
||||||
|
displayedColumns: string[] = [ |
||||||
|
"planname", |
||||||
|
"name", |
||||||
|
"people", |
||||||
|
"time", |
||||||
|
"operate", |
||||||
|
]; |
||||||
|
tabledataSource: any; //表格数据
|
||||||
|
|
||||||
|
ngOnInit(): void { |
||||||
|
this.getOrganizations(); |
||||||
|
} |
||||||
|
|
||||||
|
//获得所有组织机构
|
||||||
|
allorganizations: any; //所有组织机构
|
||||||
|
getOrganizations() { |
||||||
|
this.http.get("/api/Organizations").subscribe((data: any) => { |
||||||
|
this.allorganizations = data; |
||||||
|
this.getpresentOrganization(); |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
//得到当前单位所在组织机构的tree型数据
|
||||||
|
expandKeys = []; |
||||||
|
nodes = []; |
||||||
|
organizationId; |
||||||
|
getpresentOrganization() { |
||||||
|
this.allorganizations.forEach((item) => { |
||||||
|
item.key = item.id; |
||||||
|
item.title = item.name; |
||||||
|
item.children = []; |
||||||
|
this.allorganizations.forEach((element) => { |
||||||
|
if (element.parentId == item.id) { |
||||||
|
item.children.push(element); |
||||||
|
} |
||||||
|
if (item.children.length === 0) { |
||||||
|
item.isLeaf = true; |
||||||
|
} else { |
||||||
|
item.isLeaf = false; |
||||||
|
} |
||||||
|
}); |
||||||
|
}); |
||||||
|
this.http.get("/api/Account/Profiles").subscribe((data: any) => { |
||||||
|
this.allorganizations.forEach((item) => { |
||||||
|
if (item.name == data.organizationName) { |
||||||
|
this.expandKeys = [item.id]; |
||||||
|
this.organizationId = item.id; |
||||||
|
// this.orId = item.id;
|
||||||
|
this.nodes = [...[item]]; |
||||||
|
this.getTabledataSource(); |
||||||
|
} |
||||||
|
}); |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
length: any; //共多少条数据
|
||||||
|
pageSize: any = 10; //每页条数
|
||||||
|
PageNumber: any = 1; //第几页
|
||||||
|
getTabledataSource() { |
||||||
|
let params: any = { |
||||||
|
Name: this.name || "", |
||||||
|
CompanyName: this.companyname || "", |
||||||
|
CommitterOrganizationId: this.orId || "", |
||||||
|
PlanCategory: 9, |
||||||
|
PageNumber: this.PageNumber, |
||||||
|
PageSize: this.pageSize, |
||||||
|
}; |
||||||
|
this.http |
||||||
|
.get("/api/PlanComponents/GetAll", { params: params }) |
||||||
|
.subscribe((data: any) => { |
||||||
|
console.log("预案数据", data); |
||||||
|
this.tabledataSource = data.items; |
||||||
|
this.length = data.totalCount; |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
//分页事件
|
||||||
|
chagePage(e) { |
||||||
|
this.PageNumber = e.pageIndex + 1; |
||||||
|
this.getTabledataSource(); |
||||||
|
} |
||||||
|
|
||||||
|
name; |
||||||
|
companyname; |
||||||
|
orId; |
||||||
|
time; |
||||||
|
//查询
|
||||||
|
onSubmit() { |
||||||
|
this.PageNumber = 1; |
||||||
|
this.pageEvent.pageIndex = 0; |
||||||
|
this.getTabledataSource(); |
||||||
|
} |
||||||
|
|
||||||
|
//重置
|
||||||
|
reset() { |
||||||
|
this.name = ""; |
||||||
|
this.companyname = ""; |
||||||
|
this.orId = ""; |
||||||
|
this.onSubmit(); |
||||||
|
} |
||||||
|
|
||||||
|
add() { |
||||||
|
const dialogRef = this.dialog.open(AddPlanComponent, { |
||||||
|
width: "400px", |
||||||
|
data: this.nodes, |
||||||
|
}); |
||||||
|
dialogRef.afterClosed().subscribe((data) => { |
||||||
|
if (data) { |
||||||
|
console.log("创建成功", data); |
||||||
|
this.onSubmit(); |
||||||
|
sessionStorage.setItem("planId", data.id); |
||||||
|
sessionStorage.setItem("companyId", data.plan.companyId); |
||||||
|
sessionStorage.setItem( |
||||||
|
"buildingTypeId", |
||||||
|
data.plan.company.buildingTypes[0].id |
||||||
|
); |
||||||
|
sessionStorage.setItem("editable", "1"); |
||||||
|
let orId = data.plan.company.organizationId; |
||||||
|
let orName = data.plan.company.organizationName; |
||||||
|
window.open( |
||||||
|
`/keyUnit/editunitinfo?id=${data.plan.company.id}&orName=${orName}&orId=${orId}` |
||||||
|
); |
||||||
|
} |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
look(element) { |
||||||
|
console.log(element); |
||||||
|
sessionStorage.setItem("planId", element.id); |
||||||
|
sessionStorage.setItem("companyId", element.companyId); |
||||||
|
sessionStorage.setItem( |
||||||
|
"buildingTypeId", |
||||||
|
element.company.buildingTypes[0].id |
||||||
|
); |
||||||
|
sessionStorage.setItem("editable", "1"); |
||||||
|
let orId = element.company.organizationId; |
||||||
|
let orName = element.company.organizationName; |
||||||
|
window.open( |
||||||
|
`/keyUnit/editunitinfo?id=${element.companyId}&orName=${orName}&orId=${orId}` |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
delete(element) { |
||||||
|
if (confirm("确认删除此预案吗")) { |
||||||
|
this.http |
||||||
|
.delete(`/api/PlanComponents2D/${element.id}`) |
||||||
|
.subscribe((data: any) => { |
||||||
|
alert("删除成功"); |
||||||
|
this.getTabledataSource(); |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue