From bf09688da5054c97ad0034239cbeeba26677be4b Mon Sep 17 00:00:00 2001 From: chenjingyu Date: Tue, 2 Mar 2021 15:11:51 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E9=87=8D=E7=82=B9=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E6=89=B9=E9=87=8F=E5=AE=A1=E6=A0=B8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wait-examineer.component.ts | 83 ++++++++++++++----- 1 file changed, 60 insertions(+), 23 deletions(-) diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts index 8db9cca..e02695c 100644 --- a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts +++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-12-25 16:13:50 * @LastEditors: sueRimn - * @LastEditTime: 2021-03-02 10:29:47 + * @LastEditTime: 2021-03-02 15:08:13 */ import { Component, Inject, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; @@ -162,8 +162,11 @@ export class WaitExamineerComponent implements OnInit { this.fetchUrl='' this.viewer={} if(item.contentType==11){ - this.showtype=3 - sessionStorage.setItem('companyId',item.itemId) + window.setTimeout(()=>{ + this.showtype=3 + sessionStorage.setItem('companyId',item.itemId) + },0) + }else{ this.http.get(`/api/PlanComponents/${item.itemId}`).subscribe((data:any)=>{ this.companyId=data.companyId @@ -311,6 +314,7 @@ export class WaitExamineerComponent implements OnInit { //同意操作 agree(){ var agreeList=[] + var companyAgreeList=[] const config = new MatSnackBarConfig(); config.verticalPosition = 'top'; config.duration = 3000 @@ -351,18 +355,34 @@ export class WaitExamineerComponent implements OnInit { } //批量审核 else{ - for(var i=0;i{ + this.snackBar.open('操作成功!','确定',config); + this.getAlltabledate() + }) + }else{ //批量审核预案 + for(var i=0;i{ + this.snackBar.open('操作成功!','确定',config); + this.getAlltabledate() + }) } - this.http.put(`/api/PlanAudits/Batch`,agreeList).subscribe(data=>{ - this.snackBar.open('操作成功!','确定',config); - this.getAlltabledate() - }) + } this.shenheTable=[] } @@ -372,6 +392,7 @@ export class WaitExamineerComponent implements OnInit { config.verticalPosition = 'top'; config.duration = 3000 var refuseList=[] + var companyrefuseList=[] if(this.shenheTable.length==0){ this.snackBar.open('请选择要审核的预案!','确定',config); } @@ -408,18 +429,34 @@ export class WaitExamineerComponent implements OnInit { } //批量审核 else{ - for(var i=0;i{ + this.snackBar.open('操作成功!','确定',config); + this.getAlltabledate() + }) + }else{ + for(var i=0;i{ + this.snackBar.open('操作成功!','确定',config); + this.getAlltabledate() + }) } - this.http.put(`/api/PlanAudits/Batch`,refuseList).subscribe(data=>{ - this.snackBar.open('操作成功!','确定',config); - this.getAlltabledate() - }) + } this.shenheTable=[]