|
|
|
@ -20,7 +20,7 @@ import { NzMessageService } from 'ng-zorro-antd/message';
|
|
|
|
|
import { LeftDomainComponent } from '../left-domain/left-domain.component'; |
|
|
|
|
import { JYZInfoMoudleType } from 'src/app/babylon/model/data/institution/jyz-show-data'; |
|
|
|
|
import { AllMarkData } from 'src/app/babylon/model/data/mark/all-mark-data'; |
|
|
|
|
import { MarkData } from 'src/app/babylon/model/data/mark/mark-data'; |
|
|
|
|
import { MarkData, MarkTask } from 'src/app/babylon/model/data/mark/mark-data'; |
|
|
|
|
import { MarkWindow } from 'src/app/babylon/view/mark-window/mark-window'; |
|
|
|
|
import { AllMarkPlanData, MarkNodeData, MarkPlanData } from 'src/app/babylon/model/data/mark/mark-plan-data'; |
|
|
|
|
|
|
|
|
@ -534,11 +534,41 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
return `${percentage * 100}%` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
contingencyPlanTask: MarkData = null; //应急预案选中 设备
|
|
|
|
|
taskDialog: taskDialog = new taskDialog("", "", ""); //设备任务 深拷贝数据
|
|
|
|
|
allTaskList: any[] = []; //所有任务 List
|
|
|
|
|
|
|
|
|
|
//选中应急预案 设备
|
|
|
|
|
selectSandTableMark(markData: MarkData, select: boolean) { |
|
|
|
|
MarkWindow.instance.selectMarkData(markData, select) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//选中应急预案 设备任务窗口
|
|
|
|
|
getSandTableNature(markData: MarkData) { |
|
|
|
|
if (markData.property.taskType != MarkTask.None) { |
|
|
|
|
this.contingencyPlanTask = markData |
|
|
|
|
this.taskDialog.institution = JSON.parse(JSON.stringify(markData.property.institution || "")) |
|
|
|
|
this.taskDialog.description = JSON.parse(JSON.stringify(markData.property.description || "")) |
|
|
|
|
this.taskDialog.task = JSON.parse(JSON.stringify(markData.property.task || "")) |
|
|
|
|
if (markData.property.taskType === MarkTask.Person) { |
|
|
|
|
this.allTaskList = (new taskList()).character |
|
|
|
|
} else if (markData.property.taskType === MarkTask.Car) { |
|
|
|
|
this.allTaskList = (new taskList()).car |
|
|
|
|
} else { |
|
|
|
|
this.allTaskList = [] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//提交 设备任务窗口表单
|
|
|
|
|
submitTaskForm(e) { |
|
|
|
|
this.contingencyPlanTask.property.institution = e.companyName |
|
|
|
|
this.contingencyPlanTask.property.description = e.description |
|
|
|
|
this.contingencyPlanTask.property.task = e.taskName |
|
|
|
|
MarkWindow.instance.updateProperty() |
|
|
|
|
this.contingencyPlanTask = null //关闭弹窗
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selectRightTopFast: number = 0; //当前选择功能 快捷栏
|
|
|
|
|
selectAdsorb: boolean = false; //吸附状态
|
|
|
|
|
topLevelView: boolean = false; //顶视图状态
|
|
|
|
@ -614,6 +644,64 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//设备任务窗口 数据类型
|
|
|
|
|
export class taskDialog { |
|
|
|
|
institution: string; //单位
|
|
|
|
|
task: string; //任务
|
|
|
|
|
description: string; //备注
|
|
|
|
|
constructor(institution: string, task: string, description: string) { |
|
|
|
|
this.institution = institution |
|
|
|
|
this.task = task |
|
|
|
|
this.description = description |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//设备任务list
|
|
|
|
|
export class taskList { |
|
|
|
|
character: any[] = [ |
|
|
|
|
{ taskName: "外部控火" }, |
|
|
|
|
{ taskName: "内部控火" }, |
|
|
|
|
{ taskName: "外部侦察" }, |
|
|
|
|
{ taskName: "内部侦察" }, |
|
|
|
|
{ taskName: "外部观察" }, |
|
|
|
|
{ taskName: "外部疏散救生" }, |
|
|
|
|
{ taskName: "询问知情人" }, |
|
|
|
|
{ taskName: "占领消控室" }, |
|
|
|
|
{ taskName: "水源引导" }, |
|
|
|
|
{ taskName: "断电气" }, |
|
|
|
|
{ taskName: "灭火" }, |
|
|
|
|
{ taskName: "掩护" }, |
|
|
|
|
{ taskName: "警戒" }, |
|
|
|
|
{ taskName: "破拆" }, |
|
|
|
|
{ taskName: "排烟" }, |
|
|
|
|
{ taskName: "照明" }, |
|
|
|
|
{ taskName: "通信" }, |
|
|
|
|
{ taskName: "待命" }, |
|
|
|
|
]; |
|
|
|
|
car: any[] = [ |
|
|
|
|
{ taskName: "内攻" }, |
|
|
|
|
{ taskName: "出枪掩护" }, |
|
|
|
|
{ taskName: "出枪冷却" }, |
|
|
|
|
{ taskName: "出枪灭火" }, |
|
|
|
|
{ taskName: "供水" }, |
|
|
|
|
{ taskName: "供泡沫" }, |
|
|
|
|
{ taskName: "连接消火栓" }, |
|
|
|
|
{ taskName: "遥控水炮冷却" }, |
|
|
|
|
{ taskName: "遥控水炮灭火" }, |
|
|
|
|
{ taskName: "抢险救援" }, |
|
|
|
|
{ taskName: "救人" }, |
|
|
|
|
{ taskName: "指挥" }, |
|
|
|
|
{ taskName: "排烟" }, |
|
|
|
|
{ taskName: "提供器材" }, |
|
|
|
|
{ taskName: "照明" }, |
|
|
|
|
{ taskName: "供电" }, |
|
|
|
|
{ taskName: "待命" }, |
|
|
|
|
] |
|
|
|
|
firemonitor: any[] = [ |
|
|
|
|
{ taskName: "遥控水炮冷却" }, |
|
|
|
|
{ taskName: "遥控水炮灭火" }, |
|
|
|
|
{ taskName: "待命" }, |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
//属性栏 定位
|
|
|
|
|
export class naturePosition { |
|
|
|
|
top: string = "1%" |
|
|
|
|