You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
834 B
50 lines
834 B
4 years ago
|
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;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|