|
|
|
@ -18,11 +18,10 @@ export class EditUpdateCategoryComponent implements OnInit {
|
|
|
|
|
validateForm!: FormGroup; |
|
|
|
|
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient, private objectsSrv: ObjectsSimpleService,private message: NzMessageService,) { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleTypeList: handleTypeList[] = new handleType().list; |
|
|
|
|
data2: any; //深拷贝data
|
|
|
|
|
isLongTermTime: Date = null; // 限期 日期
|
|
|
|
|
isNoLongTermTime: Date[] = []; //长期 日期
|
|
|
|
|
typeList: string[] = []; //办理类型 select多选 data
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.validateForm = this.fb.group({ |
|
|
|
@ -41,10 +40,6 @@ export class EditUpdateCategoryComponent implements OnInit {
|
|
|
|
|
this.isNoLongTermTime.push(new Date(this.data2.validityStartTime)) |
|
|
|
|
this.isNoLongTermTime.push(new Date(this.data2.validityEndTime)) |
|
|
|
|
} |
|
|
|
|
// 办理类型
|
|
|
|
|
if (this.data2.handleType) { |
|
|
|
|
this.typeList = (this.data2.handleType).split('/') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log(this.data2) |
|
|
|
|
} |
|
|
|
@ -197,3 +192,23 @@ export class EditUpdateCategoryComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//办理类型
|
|
|
|
|
export class handleType { |
|
|
|
|
list: handleTypeList[] =[ |
|
|
|
|
{ value: 0, name: "无" }, |
|
|
|
|
{ value: 1, name: "年度公示" }, |
|
|
|
|
{ value: 2, name: "年检" }, |
|
|
|
|
{ value: 3, name: "到期换证" }, |
|
|
|
|
{ value: 4, name: "年度执行报告" }, |
|
|
|
|
{ value: 5, name: "到期检测" }, |
|
|
|
|
{ value: 6, name: "年度复训" }, |
|
|
|
|
{ value: 7, name: "年度检测" }, |
|
|
|
|
{ value: 8, name: "到期备案" }, |
|
|
|
|
{ value: 9, name: "到期评价" }, |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
export class handleTypeList { |
|
|
|
|
value: number |
|
|
|
|
name: string |
|
|
|
|
} |