From 75d7e634af059248ff3af1aae0ab02acd52d5de4 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Wed, 31 May 2023 10:22:43 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-plan-online-five.component.html | 4 ++-- .../create-plan-online-five.component.ts | 24 +++++++++++++++++-- src/index.html | 4 ++-- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index ee0eb99..f406a1f 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -439,7 +439,7 @@ - +
@@ -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' } - - + -->