diff --git a/src/app/plan-audit/plan-record/plan-record.component.scss b/src/app/plan-audit/plan-record/plan-record.component.scss
index 67d555f..14ee4bc 100644
--- a/src/app/plan-audit/plan-record/plan-record.component.scss
+++ b/src/app/plan-audit/plan-record/plan-record.component.scss
@@ -32,10 +32,17 @@
}
}
.tablediv{
- width: 95%;
- table{
- margin: 20px 20px;
+ width: 100%;
+ height: 70%;
+ .tbodycss{
+ overflow-y: auto;
+ height: 600px;
width: 100%;
+ }
+ table{
+ //margin: 20px 20px;
+ margin-left: 20px;
+ width: 97%;
//border: 1px solid #2196F3;
thead{
@@ -45,6 +52,7 @@
font-size: 16px;
}
+
tr:nth-child(odd){
background: #FAFAFA;
}
@@ -65,4 +73,13 @@ th,td{
}
.green{color: #00C756;}
.red{color: #FF4D4D;}
-.blue{color: #2196F3;}
\ No newline at end of file
+.blue{color: #2196F3;}
+
+//婊氬姩鏉℃牱寮
+::-webkit-scrollbar{
+ width: 6px;
+ background-color: white;
+ }
+ ::-webkit-scrollbar-thumb{
+ background-color: #2196F3;
+ }
\ No newline at end of file
diff --git a/src/app/plan-audit/plan-record/plan-record.component.ts b/src/app/plan-audit/plan-record/plan-record.component.ts
index 9ed4c77..3fc1f35 100644
--- a/src/app/plan-audit/plan-record/plan-record.component.ts
+++ b/src/app/plan-audit/plan-record/plan-record.component.ts
@@ -4,10 +4,12 @@
* @Author: sueRimn
* @Date: 2020-12-25 10:19:31
* @LastEditors: sueRimn
- * @LastEditTime: 2020-12-25 14:53:46
+ * @LastEditTime: 2021-01-21 10:15:50
*/
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
+import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';
+import { HttpClient } from '@angular/common/http'
@Component({
selector: 'app-plan-record',
@@ -16,18 +18,96 @@ import { FormControl } from '@angular/forms';
})
export class PlanRecordComponent implements OnInit {
- constructor() { }
+ constructor(private http:HttpClient,public snackBar: MatSnackBar) { }
ngOnInit(): void {
+ let level = sessionStorage.getItem("level");
+ if(level == "0"){//濡傛灉鏄婚槦
+ this.preparelevels = [
+ {name:"鎬婚槦",value:"1"},
+ {name:"鏀槦",value:"2"},
+ {name:"澶ч槦",value:"4"},
+ {name:"涓槦",value:"8"}
+ ]
+ this.PlanLevel=0
+ }
+ if(level == "1"){//濡傛灉鏄敮闃
+ this.preparelevels = [
+ {name:"鏀槦",value:"1"},
+ {name:"澶ч槦",value:"2"},
+ {name:"涓槦",value:"3"}
+ ]
+ this.PlanLevel=1
+ }
+ if(level == "2"){//濡傛灉鏄ぇ闃
+ this.preparelevels = [
+ {name:"澶ч槦",value:"4"},
+ {name:"涓槦",value:"8"}
+ ]
+ this.PlanLevel=2
+ }
+ if(level == "3"){//濡傛灉鏄腑闃
+ this.preparelevels = [
+ {name:"涓槦",value:"8"}
+ ]
+ this.PlanLevel=3
+ }
+ this.getAlltabledate()
}
selected = new FormControl(0); //閫夐」鍗 瀹炰緥
- level//绫诲瀷
- js//缁勭粐鏈烘瀯
+ preparelevels:any
+ level=''//绫诲瀷
+ verifyState=''//瀹℃牳鐘舵
+ projectlevel//缁勭粐鏈烘瀯
+ PlanLevel//缂栧埗绾у埆
addtime//鏃堕棿
- tableDate=[
- {level:"鈪犵骇棰勬",option:"鏇存柊",orgication:"娴︿笢鏀槦",unitstate:"宸查氳繃",addname:"璧典俊",addtime:"2020-12-15 10:36:24"},
- {level:"娑堢伀鏍",option:"鏂板",orgication:"闂佃鏀槦",unitstate:"宸叉嫆缁",addname:"寮犱笁",addtime:"2020-12-15 10:36:24"},
- {level:"澶╃劧鍙栨按鐐",option:"鍒犻櫎",orgication:"涓婃捣鎬婚槦",unitstate:"宸叉嫆缁",addname:"鐜嬩簲",addtime:"2020-12-15 10:36:24"}
- ]
+ endtime//缁撴潫鏃堕棿
+ count//涓鍏卞灏戞潯
+ tableDate
+
+ //鑾峰彇琛ㄦ牸鏁版嵁
+ getAlltabledate(){
+
+ let paramsdata:any = {
+ Operation:this.level||[],
+ ContentType:Number(this.projectlevel)||[],
+ Level:this.PlanLevel||[],
+ verifyState:this.verifyState||[1,2,4,5],
+ QueryStartTime:this.addtime||'',
+ QueryEndTime:this.endtime||''
+ }
+ this.http.get("/api/ContentVerifies",{params:paramsdata}).subscribe((data:any)=>{
+ //console.log(data)
+ this.tableDate=data.items
+ this.count=data.totalCount
+ })
+ }
+ //鎻愪氦鏌ヨ
+ onSubmit(value){
+ //console.log(value)
+ this.getAlltabledate()
+ }
+ //鍒锋柊
+ record(){
+ this.verifyState=''
+ this.level=''
+ this.projectlevel=''
+ this.addtime=''
+ this.endtime=''
+ let level = sessionStorage.getItem("level");
+ if(level == "0"){//濡傛灉鏄婚槦
+ this.PlanLevel=0
+ }
+ if(level == "1"){//濡傛灉鏄敮闃
+ this.PlanLevel=1
+ }
+ if(level == "2"){//濡傛灉鏄ぇ闃
+ this.PlanLevel=2
+ }
+ if(level == "3"){//濡傛灉鏄腑闃
+ this.PlanLevel=3
+ }
+ this.getAlltabledate()
+ }
}
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 8c82e5d..a444aff 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-01-19 14:29:15
+ * @LastEditTime: 2021-01-21 11:17:39
*/
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
@@ -165,6 +165,7 @@ export class WaitExamineerComponent implements OnInit {
this.getAlltabledate()
})
}
+ this.chuorzhong=undefined
}
//鎷掔粷鎿嶄綔
refuse(){
@@ -175,7 +176,7 @@ export class WaitExamineerComponent implements OnInit {
this.snackBar.open('瀹℃牳鏈氳繃锛岃淇敼鍚庡啀鏉ュ鏍!','纭畾',config);
}
if(this.chuorzhong==0){
- this.http.put(`/api/PlanAudits/${this.radioid}/First`,{auditStatus:4}).subscribe(data=>{
+ this.http.put(`/api/PlanAudits/${this.radioid}/First`,{auditStatus:32}).subscribe(data=>{
this.snackBar.open('鎿嶄綔鎴愬姛!','纭畾',config);
this.checked=''
this.getAlltabledate()
@@ -188,6 +189,7 @@ this.http.put(`/api/PlanAudits/${this.radioid}`,{auditStatus:4}).subscribe(data=
this.getAlltabledate()
})
}
+this.chuorzhong=undefined
}
//鍒嗘暟楗肩姸鍥
diff --git a/src/app/plan-management/entry-plan-look/AddPlanone.html b/src/app/plan-management/entry-plan-look/AddPlanone.html
index 805108f..2518591 100644
--- a/src/app/plan-management/entry-plan-look/AddPlanone.html
+++ b/src/app/plan-management/entry-plan-look/AddPlanone.html
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-24 10:59:48
* @LastEditors: sueRimn
- * @LastEditTime: 2021-01-13 10:45:42
+ * @LastEditTime: 2021-01-19 16:21:16
-->