From da7eafcefb3fe9edb466d6d87130388742175e94 Mon Sep 17 00:00:00 2001 From: chenjingyu Date: Sat, 6 Feb 2021 09:09:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E7=B1=BB=E5=9E=8B=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=96=B0=E5=BB=BA=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../type-plan/type-plan.component.html | 2 +- .../plan-management/type-plan/type-plan.component.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/plan-management/type-plan/type-plan.component.html b/src/app/plan-management/type-plan/type-plan.component.html index d389f5a..a0776bd 100644 --- a/src/app/plan-management/type-plan/type-plan.component.html +++ b/src/app/plan-management/type-plan/type-plan.component.html @@ -62,7 +62,7 @@
- +
diff --git a/src/app/plan-management/type-plan/type-plan.component.ts b/src/app/plan-management/type-plan/type-plan.component.ts index d9c58d4..b4a0cc4 100644 --- a/src/app/plan-management/type-plan/type-plan.component.ts +++ b/src/app/plan-management/type-plan/type-plan.component.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2021-01-06 09:47:43 * @LastEditors: sueRimn - * @LastEditTime: 2021-02-05 14:43:41 + * @LastEditTime: 2021-02-06 09:08:16 */ import { Component, OnInit, ViewChild, Inject } from '@angular/core'; import { HttpClient } from '@angular/common/http' @@ -30,7 +30,7 @@ export class TypePlanComponent implements OnInit { ngOnInit(): void { this.level = sessionStorage.getItem("level"); - if(this.level == "0"){//如果是总队 + if(this.levels == "0"){//如果是总队 this.preparelevels = [ {name:"总队",value:"1"}, {name:"支队",value:"2"}, @@ -38,20 +38,20 @@ export class TypePlanComponent implements OnInit { {name:"中队",value:"8"} ] } - if(this.level == "1"){//如果是支队 + if(this.levels == "1"){//如果是支队 this.preparelevels = [ {name:"支队",value:"2"}, {name:"大队",value:"4"}, {name:"中队",value:"8"} ] } - if(this.level == "2"){//如果是大队 + if(this.levels == "2"){//如果是大队 this.preparelevels = [ {name:"大队",value:"4"}, {name:"中队",value:"8"} ] } - if(this.level == "3"){//如果是中队 + if(this.levels == "3"){//如果是中队 this.preparelevels = [ {name:"中队",value:"8"} ] @@ -59,7 +59,7 @@ export class TypePlanComponent implements OnInit { this.getAlltabledate() } - level + levels preparelevels:any plcheck:boolean //编制级别勾选框 displayedColumns: string[] = ['unitname','addname','addtime', 'plantype', 'passstate','isopen','projectlevel','operation'];