@@ -1054,7 +1054,7 @@
line-height: 40px;
color: #b99a00;">{{element.headName}}

+ *ngIf="pattern == 'edit'" (click)='delTd2(key,i,uniti,elei)'>

diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
index 77e423c..224076b 100644
--- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
+++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.ts
@@ -698,7 +698,6 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
`/api/PlanComponents/${this.route.snapshot.queryParams.planId}/WebText`
)
.subscribe((data: any) => {
- // console.log("预案内容", JSON.parse(data.webTextData));
if (
this.route.snapshot.queryParams.planMode == 4 &&
data.webTextData == null
@@ -767,7 +766,8 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
this.planTemplateData.unshift(obj);
} else if (this.planTemplateData[0].groupName == "封面") {
this.planTemplateData[0].attribute.objName = this.unitData.name;
- this.planTemplateData[0].attribute.planName = this.route.snapshot.queryParams.planName;
+ this.planTemplateData[0].attribute.planName =
+ this.route.snapshot.queryParams.planName;
}
this.planTemplateData.forEach((element) => {
if (element.groupName == "重点图示") {
@@ -828,6 +828,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
});
console.log(this.planTemplateData);
}
+ console.log("6666", this.planTemplateData);
resolve(data);
});
});
@@ -1513,6 +1514,12 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
}
//四种类型删除一行
delTd(key, i, tri?: number, uniti?: number, elei?: number) {
+ // console.log("删除1", key);
+ // console.log("删除2", i);
+ // console.log("删除3", tri);
+ // console.log("删除4", uniti);
+ // console.log("删除5", elei);
+ // console.log("删除6", this.planTemplateData);
const config = new MatSnackBarConfig();
config.verticalPosition = "top";
config.duration = 3000;
@@ -1531,6 +1538,19 @@ export class CreatePlanOnlineFiveComponent implements OnInit {
}
}
}
+
+ delTd2(key, i, uniti, elei) {
+ // console.log(key, i, uniti, elei);
+ const config = new MatSnackBarConfig();
+ config.verticalPosition = "top";
+ config.duration = 3000;
+ let isTrue = confirm("您确定要删除该条信息吗");
+ if (isTrue) {
+ // console.log(this.planTemplateData[key].building[uniti].body[elei].attinf);
+ this.planTemplateData[key].building[uniti].body[elei].attinf.splice(i, 1);
+ }
+ }
+
//修改多行文本,表格行列数量
updataHl(...num: number[]) {
const dialogRef = this.dialog.open(updataHl, {
diff --git a/src/index.html b/src/index.html
index 7ca66fa..ae5fbd1 100644
--- a/src/index.html
+++ b/src/index.html
@@ -31,9 +31,9 @@
securityJsCode: '0afa0b144398727fad2ca06f5f7156b3'
}
-
-
+ -->