diff --git a/src/app/data-collection/fire-force/fire-force.component.ts b/src/app/data-collection/fire-force/fire-force.component.ts
index 2c5373a..7df5cb5 100644
--- a/src/app/data-collection/fire-force/fire-force.component.ts
+++ b/src/app/data-collection/fire-force/fire-force.component.ts
@@ -543,7 +543,7 @@ export class FireForceComponent implements OnInit {
//新增消防力量
selectedFireForceTypeIndex:any//新增消防力量名称
addFireForce(){
- if(this.selectedFireForceId){
+ if(this.selectedFireForceId && this.selectedFireForce.forceType == 0){
const dialogRef = this.dialog.open(AddFireForce, {
data: {},
id:'addWater'
@@ -563,7 +563,12 @@ export class FireForceComponent implements OnInit {
}
}
);
- }else{
+ }else if(this.selectedFireForceId && this.selectedFireForce.forceType != 0){
+ let config = new MatSnackBarConfig();
+ config.verticalPosition = 'top';
+ config.duration = 3000
+ this.snackBar.open('该选中机构无法增加其他机构','确定',config);
+ } else{
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
@@ -586,7 +591,6 @@ export class FireForceComponent implements OnInit {
// console.log('删除原文件成功')
})
});
-
}
this.FireForceDetailInfo.jurisdictionArea = Number(this.FireForceDetailInfo.jurisdictionArea)
this.FireForceDetailInfo.relevantInfomationData = JSON.stringify(this.AttachmentArr)
@@ -724,6 +728,7 @@ export class FireForceComponent implements OnInit {
this.selectedFireForceLevel = null
this.selectedFireForceId = null
this.newPositionMarker ? this.map.remove(this.newPositionMarker) : null
+ this.isGisTopBox = false
}
map:any
placeSearch:any//构造地点查询类
diff --git a/src/app/data-collection/linkage-forces/linkage-forces.component.ts b/src/app/data-collection/linkage-forces/linkage-forces.component.ts
index a4814be..84647be 100644
--- a/src/app/data-collection/linkage-forces/linkage-forces.component.ts
+++ b/src/app/data-collection/linkage-forces/linkage-forces.component.ts
@@ -496,6 +496,7 @@ export class LinkageForcesComponent implements OnInit {
close(){
this.LinkageForceDetailInfo={}
this.newPositionMarker ? this.map.remove(this.newPositionMarker) : null
+ this.isGisTopBox = false
}
map:any
placeSearch:any//构造地点查询类
diff --git a/src/app/data-collection/water-collection/water-collection.component.html b/src/app/data-collection/water-collection/water-collection.component.html
index ae19685..862522f 100644
--- a/src/app/data-collection/water-collection/water-collection.component.html
+++ b/src/app/data-collection/water-collection/water-collection.component.html
@@ -6,6 +6,7 @@
列表过滤
+
diff --git a/src/app/data-collection/water-collection/water-collection.component.ts b/src/app/data-collection/water-collection/water-collection.component.ts
index fa2076f..29e3e8b 100644
--- a/src/app/data-collection/water-collection/water-collection.component.ts
+++ b/src/app/data-collection/water-collection/water-collection.component.ts
@@ -386,6 +386,15 @@ export class WaterCollectionComponent implements OnInit {
{PropertyName :'备注',PropertyValue:''}
]
}
+
+ //重置搜索
+ reset(){
+ this.searchForm = {
+ name:'',
+ integrityNum:''
+ }
+ this.getAllWaterData()
+ }
//新增水源
selectedWaterTypeIndex:any//新增水源类型
addWater(){
@@ -493,6 +502,7 @@ export class WaterCollectionComponent implements OnInit {
this.selectedWaterTypeIndex = null
this.selectedLiIndex = null
this.newPositionMarker ? this.map.remove(this.newPositionMarker) : null
+ this.isGisTopBox = false
}
map:any
placeSearch:any//构造地点查询类
diff --git a/src/app/gis-management/gis-labeling/gis-labeling.component.html b/src/app/gis-management/gis-labeling/gis-labeling.component.html
index 60f2b04..36afe0e 100644
--- a/src/app/gis-management/gis-labeling/gis-labeling.component.html
+++ b/src/app/gis-management/gis-labeling/gis-labeling.component.html
@@ -6,7 +6,8 @@
-
+
+
diff --git a/src/app/gis-management/gis-labeling/gis-labeling.component.ts b/src/app/gis-management/gis-labeling/gis-labeling.component.ts
index 2fb7fe3..498da37 100644
--- a/src/app/gis-management/gis-labeling/gis-labeling.component.ts
+++ b/src/app/gis-management/gis-labeling/gis-labeling.component.ts
@@ -149,11 +149,6 @@ export class GisLabelingComponent implements OnInit {
this.http.get("/api/Companies",{params:paramsdata}).subscribe((data:any) => {
this.createUnitMarker(data.items)
})
- }else if(!this.mapPattern){
- const config = new MatSnackBarConfig();
- config.verticalPosition = 'top';
- config.duration = 3000
- this.snackBar.open('请切换2D模式使用此功能','确定',config);
}else{
this.circle.setRadius(Number(this.unitAreaDefault))
this.circle.setCenter(this.markers[0]._position)
@@ -355,7 +350,6 @@ export class GisLabelingComponent implements OnInit {
WaterSourceTypes : this.selectedWaterList
}
this.http.get("/api/WaterSources",{params:paramsdata}).subscribe((data:any) => {
- console.log('所有水源',data)
this.createwaterMarker(data.items)
})
}else{
@@ -364,11 +358,6 @@ export class GisLabelingComponent implements OnInit {
config.duration = 3000
this.snackBar.open('请勾选想要显示的水源类型','确定',config);
}
- }else if(!this.mapPattern){
- const config = new MatSnackBarConfig();
- config.verticalPosition = 'top';
- config.duration = 3000
- this.snackBar.open('请切换2D模式使用此功能','确定',config);
}else{
this.circleofwater.setRadius(Number(this.waterAreaDefault))
this.circleofwater.setCenter(this.markers[0]._position)
@@ -391,7 +380,6 @@ export class GisLabelingComponent implements OnInit {
WaterSourceTypes : this.selectedWaterList
}
this.http.get("/api/WaterSources",{params:paramsdata}).subscribe((data:any) => {
- console.log('所有水源',data)
this.createwaterMarker(data.items)
})
}else{
@@ -411,7 +399,6 @@ export class GisLabelingComponent implements OnInit {
WaterSourceTypes :this.selectedWaterList
}
this.http.get("/api/WaterSources",{params:paramsdata}).subscribe((data:any) => {
- console.log('所有水源',data)
this.createwaterMarker(data.items)
})
}else{
@@ -426,9 +413,7 @@ export class GisLabelingComponent implements OnInit {
//取消显示水源
resetWater(){
this.watertForm.reset()
-
this.watertForm.controls.areaWater.setValue('-1')
-
this.map.remove(this.circleofwater)
this.waterCluster.setData([])
}
@@ -574,6 +559,8 @@ export class GisLabelingComponent implements OnInit {
//地图2D 3D切换
mapPattern:boolean = true//默认是2D
mapPatternChange(type){
+ this.unitCluster = null
+ this.waterCluster = null
if(type == '2D'){
this.mapPattern = true
var layer = new AMap.createDefaultLayer({
@@ -586,7 +573,9 @@ export class GisLabelingComponent implements OnInit {
this.map = new AMap.Map('map',{
layers:[layer], //当只想显示标准图层时layers属性可缺省,
});
+ this.map.setCity('上海市');
}else{
+ this.unitCluster ? this.unitCluster.setData([]) : null
this.mapPattern = false
this.map = new AMap.Map('map',{
viewMode: '3D',
@@ -595,6 +584,7 @@ export class GisLabelingComponent implements OnInit {
features: ['bg', 'road', 'point','building'],
mapStyle: 'amap://styles/light',
});
+ this.map.setCity('上海市');
}
this.satelliteModel = false
this.loadModel = false
@@ -738,6 +728,8 @@ export class GisLabelingComponent implements OnInit {
clear () {
this.allCompany = []
this.searchText = ''
+ this.markers ? this.markers.forEach((element,index) => { this.map.remove(element);}) : null
+ this.infoWindow ? this.map.remove(this.infoWindow) : null
}
selectedUnit:any//当前打开的单位
diff --git a/src/app/interface.ts b/src/app/interface.ts
index dd3ef79..dceab4e 100644
--- a/src/app/interface.ts
+++ b/src/app/interface.ts
@@ -80,4 +80,5 @@ export enum PlanLevelEnum {
"编制级别6",
"编制级别7",
"中队"
-}
\ No newline at end of file
+}
+
diff --git a/src/app/key-unit/edit-plan-info/edit-plan-info.component.html b/src/app/key-unit/edit-plan-info/edit-plan-info.component.html
index 2db1b5a..245a209 100644
--- a/src/app/key-unit/edit-plan-info/edit-plan-info.component.html
+++ b/src/app/key-unit/edit-plan-info/edit-plan-info.component.html
@@ -8,6 +8,7 @@
+
diff --git a/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss b/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss
index 01a9116..e411244 100644
--- a/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss
+++ b/src/app/key-unit/edit-plan-info/edit-plan-info.component.scss
@@ -14,4 +14,4 @@
z-index: 111;
color: red;
}
-}
\ No newline at end of file
+}
diff --git a/src/app/key-unit/key-unit-management/key-unit-management.component.ts b/src/app/key-unit/key-unit-management/key-unit-management.component.ts
index 3687e64..5009c92 100644
--- a/src/app/key-unit/key-unit-management/key-unit-management.component.ts
+++ b/src/app/key-unit/key-unit-management/key-unit-management.component.ts
@@ -349,6 +349,7 @@ export class KeyUnitManagementComponent implements OnInit {
PageSize: this.pageSizeOptions[0],
Sort: this.integritySort ? 'integrityscore' : '',
SortType: this.integritySort || '',
+ IsNewData:true,
IntegrityScoreMin:this.integrityScoreMin/100||0,
IntegrityScoreMax:this.integrityScoreMax/100||1
}
diff --git a/src/app/key-unit/router-gis/router-gis.component.ts b/src/app/key-unit/router-gis/router-gis.component.ts
index 7eb495c..114a152 100644
--- a/src/app/key-unit/router-gis/router-gis.component.ts
+++ b/src/app/key-unit/router-gis/router-gis.component.ts
@@ -14,29 +14,34 @@ export class RouterGISComponent implements OnInit {
constructor(public _ngZone:NgZone,public snackBar: MatSnackBar,private http:HttpClient,private route:ActivatedRoute,) { }
ngOnInit(): void {
- this.getCompanyData()
}
ngAfterViewInit(): void {
+ let async = this.getCompanyData()
window.setTimeout(()=>{
- this.mapInit()
+ async.then(res=>{
+ this.mapInit()
+ })
},0)
}
//获取单位 信息
getCompanyData () {
- this.http.get(`/api/Companies/${this.route.snapshot.queryParams.id}`).subscribe((data:any)=>{
- if (data.driveRouteStartPoint && data.driveRouteStartPoint.x && data.driveRouteStartPoint.y && data.driveRouteStartName) { //开始坐标 名称
- this.routeStart = data.driveRouteStartName
- this.startCoordinate = [data.driveRouteStartPoint.x,data.driveRouteStartPoint.y]
- }
- if (data.driveRouteEndPoint && data.driveRouteEndPoint.x && data.driveRouteEndPoint.y && data.driveRouteEndName) { //结束坐标 名称
- this.routeEnd = data.driveRouteEndName
- this.endCoordinate = [data.driveRouteEndPoint.x,data.driveRouteEndPoint.y]
- } else if (data.location && data.location.x && data.location.y) {
- this.routeEnd = data.name
- this.endCoordinate = [data.location.x,data.location.y]
- }
+ return new Promise((resolve,reject)=>{
+ this.http.get(`/api/Companies/${this.route.snapshot.queryParams.id}`).subscribe((data:any)=>{
+ if (data.driveRouteStartPoint && data.driveRouteStartPoint.x && data.driveRouteStartPoint.y && data.driveRouteStartName) { //开始坐标 名称
+ this.routeStart = data.driveRouteStartName
+ this.startCoordinate = [data.driveRouteStartPoint.x,data.driveRouteStartPoint.y]
+ }
+ if (data.driveRouteEndPoint && data.driveRouteEndPoint.x && data.driveRouteEndPoint.y && data.driveRouteEndName) { //结束坐标 名称
+ this.routeEnd = data.driveRouteEndName
+ this.endCoordinate = [data.driveRouteEndPoint.x,data.driveRouteEndPoint.y]
+ } else if (data.location && data.location.x && data.location.y) {
+ this.routeEnd = data.name
+ this.endCoordinate = [data.location.x,data.location.y]
+ }
+ resolve('success')
+ }) //http
})
}
diff --git a/src/app/pipes/boolean.pipe.ts b/src/app/pipes/boolean.pipe.ts
index 56b7930..78ae821 100644
--- a/src/app/pipes/boolean.pipe.ts
+++ b/src/app/pipes/boolean.pipe.ts
@@ -29,4 +29,19 @@ export class PlanLevel implements PipeTransform {
transform(value: number): string {
return PlanLevelEnum[value]
}
+}
+
+@Pipe({name: 'state'})
+export class state implements PipeTransform {
+ transform(value: number): string {
+ if(value == 3){
+ return '维护中'
+ }else if(value == 4){
+ return '维护通过审核'
+ }else if(value == 5){
+ return '维护驳回审核'
+ }else{
+ return '未维护'
+ }
+ }
}
\ No newline at end of file
diff --git a/src/app/plan-management/maintain-up/maintain-up.component.html b/src/app/plan-management/maintain-up/maintain-up.component.html
index b31cff8..d07abdd 100644
--- a/src/app/plan-management/maintain-up/maintain-up.component.html
+++ b/src/app/plan-management/maintain-up/maintain-up.component.html
@@ -1,88 +1,68 @@
-
-