|
|
|
import { MarkTask } from "./mark-data";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 标绘物的属性
|
|
|
|
*/
|
|
|
|
export class MarkProperty {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 单位
|
|
|
|
*/
|
|
|
|
institution: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 编号
|
|
|
|
*/
|
|
|
|
index: number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 任务的类型(预制项)
|
|
|
|
*/
|
|
|
|
taskType: MarkTask;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 任务
|
|
|
|
*/
|
|
|
|
task: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 备注
|
|
|
|
*/
|
|
|
|
description: string;
|
|
|
|
|
|
|
|
constructor(taskType?: MarkTask, institution: string = "辖区中队", index: number = 1, task: string = "待命", description?: string) {
|
|
|
|
this.taskType = taskType
|
|
|
|
this.institution = institution
|
|
|
|
this.index = index
|
|
|
|
this.task = task
|
|
|
|
this.description = description
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取单位-编号
|
|
|
|
*/
|
|
|
|
getInstitutionNum() {
|
|
|
|
// return this.institution + "-" + this.index;
|
|
|
|
return this.institution;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|