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 51c0c36..7fc9ec9 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 @@ -121,7 +121,37 @@
- 111 +
+ {{item.groupName}} +
+
+
+ {{element.headName}} +
+
+ + + + + +
+ + + +
+
+
+ + +
+
+
+
+
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss index b4d6fdd..1877221 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss @@ -117,11 +117,87 @@ .centerBox{ width: 100%; height: 100%; - .paneltitle{ + display: flex; + flex-direction: column; + .boxHead{ + height: 40px; + width: 100%; + background-color: #e8f4fe; + //opacity: 0.1; + span{ + margin-left: 20px; + font-size: 16px; + color: #2196F3 ; + opacity:1; + height: 40px; + line-height: 40px; + } + } + .boxBody{ + height: 100%; width: 100%; - font-size: 16px; - color: #2196f3; display: flex; + flex-direction: column; + .boxBodyHead{ + width: 100%; + height: 40px; + background-color: #FFD91D; + text-align: center; + span{ + font-size: 16px; + text-align: center; + height: 40px; + line-height: 40px; + color: #B99A00; + } + } + .body{ + width: 100%; + height: 100%; + thead{ + width: 100%; + background-color: #E8E9E9; + } + table { + width: 100%; + border-collapse:collapse; + //background-color: #E8E9E9; + } + th { + //background-color: #E8E9E9; + border: 1px solid #999; + height: 40px; + font-size: 16px; + text-align: center; + input { + background-color: #E8E9E9; + text-align: center; + height: 100%; + width: 100%; + font-size: 16px; + border: none; + outline: none; + } + } + .inputtext { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + input { + //width: 100%; + height: 40px; + font-size: 16px; + border: none; + outline: none; + } + .inputj { + width: 100%; + height: 100%; + display: flex; + } + } + } } } } 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 f079d4d..48afe9f 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 @@ -1,3 +1,11 @@ +/* + * @Descripttion: + * @version: + * @Author: sueRimn + * @Date: 2021-06-16 13:56:54 + * @LastEditors: sueRimn + * @LastEditTime: 2021-06-16 16:26:51 + */ import { HttpClient } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; @@ -33,6 +41,7 @@ export class CreatePlanOnlineFiveComponent implements OnInit { selectedItem:string = '封面' clickTitleItem(item){ + //console.log(item,key) item == '封面' ? this.selectedItem = '封面' : this.selectedItem = item.groupName } planTemplateData: any @@ -45,5 +54,9 @@ export class CreatePlanOnlineFiveComponent implements OnInit { console.log(this.planTemplateData) }) } + //input key值,一个字符焦点消失问题 + trackByFn(index){ + return index + } } diff --git a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts index 2bee59c..76e5b48 100644 --- a/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts +++ b/src/app/plan-management/entry-plan-look/entry-plan-look.component.ts @@ -203,7 +203,7 @@ export class EntryPlanLookComponent implements OnInit { } else if (e.planType == 16) { if(e.attachmentUrls==null){ - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.companyId}&planName=${e.name}&unitName=${this.unitdata.unitname}&planCategory=${e.planCategory}&planId=${e.id}`) } else{ let body = JSON.stringify(""); @@ -910,7 +910,7 @@ export class AddPlanone { this.planData=plandata this.dialogRef.close(plandata); //console.log(plandata) - window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.data.companyId}&planName=${this.planData.name}&unitName=${this.data.unitName}&planCategory=${this.selectedPLanLevel}`) + window.open(`/planManagement/createplanonlinefive?navIsOpen=false&companyId=${this.data.companyId}&planName=${this.planData.name}&unitName=${this.data.unitName}&planCategory=${this.selectedPLanLevel}&planId=${this.planData.id}`) }) }else{ this.snackBar.open('请先创建模板!','确定',config);