Browse Source

[完善]单位修改时间

master
邵佳豪 1 year ago
parent
commit
0e576e149f
  1. 1
      src/app/key-unit/key-unit-management/key-unit-management.component.ts
  2. 34
      src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts

1
src/app/key-unit/key-unit-management/key-unit-management.component.ts

@ -753,6 +753,7 @@ export class KeyUnitManagementComponent implements OnInit {
dialogRef.afterClosed().subscribe((result) => {
if (result) {
element.name = result;
element.modifiedTime = new Date()
}
});
}

34
src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts

@ -808,18 +808,22 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
element.building.forEach((item) => {
item.body.forEach((i) => {
if (i.surveyName === "单位基本信息") {
i.attinf.forEach((v) => {
if (v.completed) {
!v.value ? (v.value = v.propertyValue) : null;
}
});
i.attinf
? i.attinf.forEach((v) => {
if (v.completed) {
!v.value ? (v.value = v.propertyValue) : null;
}
})
: null;
}
if (i.surveyName === "建筑信息") {
i.attinf.forEach((v) => {
if (v.completed) {
v.value ? null : (v.value = v.propertyValue);
}
});
i.attinf
? i.attinf.forEach((v) => {
if (v.completed) {
v.value ? null : (v.value = v.propertyValue);
}
})
: null;
}
});
});
@ -1323,10 +1327,17 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
//重点图示增加分组
addkeyImgItem(item) {
console.log(item);
if (!item.attribute) {
item.attribute = [];
}
item.attribute.push({ name: "", imgArr: [] });
}
//处置要点增加分组
addDisposalPointItem(item) {
if (!item.attribute) {
item.attribute = [];
}
item.attribute.push({ name: "", content: "" });
}
//通过左侧查看实景图
@ -2913,6 +2924,7 @@ export class adddwsurveys {
@Inject(MAT_DIALOG_DATA) public data,
public snackBar: MatSnackBar
) {}
addAttinfBuild = [];
buildnewDate = [];
addAttinfFile; //过滤消防设施外层数据
@ -3172,10 +3184,12 @@ export class adddwsurveys {
this.facilityItems.push(...this.zdyData);
}
}
//取消按钮
close() {
this.dialogRef.close(undefined);
}
//确定按钮
defineClick() {
this.dialogRef.close(

Loading…
Cancel
Save