|
|
|
@ -145,7 +145,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.isImgNumCss = false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
pattern:boolean = true//默认为基本信息编辑
|
|
|
|
|
pattern:boolean = false//默认为基本信息编辑
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//基本信息编辑模式
|
|
|
|
@ -625,7 +625,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
isxxx = true //控制查看编辑模式的编辑模式按钮
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
this.canvasData.gameMode = GameMode.Assignment |
|
|
|
|
if(this.router.url.indexOf("keyUnit/viewunitinfoplan") == -1 && this.router.url.indexOf("keyUnit/viewunitinfo") != -1 || this.router.url.indexOf("keyUnit/editplaninfo")!= -1){ |
|
|
|
|
this.isSixbtn = false |
|
|
|
|
} |
|
|
|
@ -643,7 +643,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.isxxx = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.getAllLibrary() //获取素材库
|
|
|
|
|
this.getAllLibrary('plan') //获取素材库
|
|
|
|
|
this.getAllBuildings() //获取所有建筑
|
|
|
|
|
this.getAllFirePlan() //获取当前单位灾情
|
|
|
|
|
|
|
|
|
@ -666,7 +666,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getSitePlan() |
|
|
|
|
// 监听canvas组件选中素材事件
|
|
|
|
|
this.canvas.on("select",obj=>{ |
|
|
|
@ -680,7 +680,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
//监听数据变化后
|
|
|
|
|
this.canvas.on('canvasDataChanged',()=>{ |
|
|
|
|
// 收到数据表示共享数据发生变化
|
|
|
|
|
this.renovateTreeData(false) |
|
|
|
|
this.canvasData.selectPanelPoint.BackgroundImageUrl? this.customizeNodes() : this.renovateTreeData(false) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -695,10 +695,10 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
let buildingId = this.beforeOneCheckedBuilding.id |
|
|
|
|
let floorId = this.selectingSitePlan.id |
|
|
|
|
this.canvas.paste(companyId,buildingId,floorId) |
|
|
|
|
this.renovateTreeData(false) |
|
|
|
|
this.canvasData.selectPanelPoint.BackgroundImageUrl? this.customizeNodes() : this.renovateTreeData(false) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
basicInfo:boolean = true //基本信息名称显隐
|
|
|
|
|
basicInfo:boolean = false //基本信息名称显隐
|
|
|
|
|
wantToWork:boolean = true //想定作业名称显隐
|
|
|
|
|
//点击基本信息名称
|
|
|
|
|
basicInfoClick(){ |
|
|
|
@ -1239,7 +1239,6 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
this.dataSource.data = treeData |
|
|
|
|
this.treeControl.expandAll() |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//点击树节点
|
|
|
|
@ -1375,6 +1374,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
isRefresh? await this.canvas.refresh() : null |
|
|
|
|
this.canvas.setNameVisible(this.basicInfo,0) |
|
|
|
|
this.canvas.setNameVisible(this.wantToWork,1) |
|
|
|
|
this.canvas.setLegendVisible(this.isShowLegend) //图例显隐
|
|
|
|
|
isRefresh? this.canvasData.isChange = false : null //服务中 数据是否改动 改为false
|
|
|
|
|
isRefresh? this.isShowProperty = true : null |
|
|
|
|
isRefresh? this.isShowAttribute = true : null |
|
|
|
@ -1392,7 +1392,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
for(let key in storeyData.data){ //筛选数据 没有匹配全部放入到 其他 数组
|
|
|
|
|
let noMatch = this.allFireElements.find( every=> every.id===storeyData.data[key].FireElementId ) |
|
|
|
|
if (!noMatch) { |
|
|
|
|
if (!noMatch && storeyData.data[key].Id != "图例") { |
|
|
|
|
this.allFireElements[this.allFireElements.length-1].children.push(storeyData.data[key]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1400,7 +1400,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
if(selectPanelPoint.Data){ |
|
|
|
|
for(let key in selectPanelPoint.Data.Stock){ //筛选数据 没有匹配全部放入到 其他 数组
|
|
|
|
|
let noMatch = this.allFireElements.find( every=> every.id===selectPanelPoint.Data.Stock[key].FireElementId ) |
|
|
|
|
if (!noMatch) { |
|
|
|
|
if (!noMatch && selectPanelPoint.Data.Stock[key].Id != "图例") { |
|
|
|
|
this.allFireElements[this.allFireElements.length-1].children.push(selectPanelPoint.Data.Stock[key]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1427,6 +1427,9 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
beforeOneCheckedBuildingIsShow:boolean = false; //想定作业下 建筑是否显示
|
|
|
|
|
togglebeforeOneCheckedBuilding () { this.beforeOneCheckedBuildingIsShow = !this.beforeOneCheckedBuildingIsShow } |
|
|
|
|
isShowLegend:boolean = true; //图例是否显示
|
|
|
|
|
changeLegend (e) { this.canvasData.selectPanelPoint.BackgroundImageUrl? null : this.canvas.setLegendVisible(this.isShowLegend) } |
|
|
|
|
|
|
|
|
|
//可展开面板展开或关闭
|
|
|
|
|
toggle () { |
|
|
|
|
this.toggleExpandPanel = !this.toggleExpandPanel |
|
|
|
@ -1961,6 +1964,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
let params = {disasterId: this.allFirePlan[0].id || ''} |
|
|
|
|
this.http.get('/api/DisposalNodes',{params:params}).subscribe(data=>{ //所有处置节点
|
|
|
|
|
this.canvasData.allDisposalNode = data |
|
|
|
|
this.getDisposalNode() |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} else { //单位 有灾情时
|
|
|
|
@ -1968,6 +1972,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
let params = {disasterId: this.allFirePlan[0].id || ''} |
|
|
|
|
this.http.get('/api/DisposalNodes',{params:params}).subscribe(data=>{ //所有处置节点
|
|
|
|
|
this.canvasData.allDisposalNode = data |
|
|
|
|
this.getDisposalNode() |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -2265,6 +2270,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.allFireElements = [other] |
|
|
|
|
this.canvas.setNameVisible(this.basicInfo,0) |
|
|
|
|
this.canvas.setNameVisible(this.wantToWork,1) |
|
|
|
|
// this.canvas.setLegendVisible(this.isShowLegend) //图例显隐
|
|
|
|
|
this.beforeOneCheckedBuildingIsShow = false |
|
|
|
|
|
|
|
|
|
let selectPanelPoint = JSON.parse(JSON.stringify(this.canvasData.selectPanelPoint || {} )) //当前 节点 数据
|
|
|
|
|