From f5e31aaf8538d68c20388e4866e943251fc8ec24 Mon Sep 17 00:00:00 2001 From: chenjingyu Date: Mon, 14 Dec 2020 14:31:29 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E5=AE=8C=E6=88=90=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E8=AF=95=E5=8D=B7=E7=B1=BB=E5=9E=8B=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-test-score.component.ts | 44 ++++++++++++------- .../create-test-score/finishDialog.html | 4 +- .../examiner-index.component.html | 2 +- .../examiner-index.component.scss | 3 +- .../examiner-new-one.component.scss | 10 +++-- 5 files changed, 38 insertions(+), 25 deletions(-) diff --git a/src/app/examiner/create-test-score/create-test-score.component.ts b/src/app/examiner/create-test-score/create-test-score.component.ts index acfff15..3286af3 100644 --- a/src/app/examiner/create-test-score/create-test-score.component.ts +++ b/src/app/examiner/create-test-score/create-test-score.component.ts @@ -1121,26 +1121,16 @@ export class FinishDialog{ ngOnInit(): void { } - startTime:string - endTime:string + startTime:string//考试开始时间 + endTime:string//考试结束时间 + examType:string//考试类型 - date=null - timeDefaultValue = setHours(new Date(), 0); - disabledDateTime: DisabledTimeFn = () => { - var second=[] - for(var i=1;i<60;i++){ - second.push(i) - } - return { - nzDisabledHours: () => [], - nzDisabledMinutes: () => [], - nzDisabledSeconds: () => second - }; - }; + //弹窗确定点击事件 onNoClick(): void { //this.dialogRef.close(); + console.log(this.examType) const config = new MatSnackBarConfig(); - if(this.startTime!=undefined&&this.endTime!=undefined){ + if(this.startTime!=undefined&&this.endTime!=undefined&&this.examType!=undefined){ if(this.startTime>this.endTime){ this.snackBar.open('开始时间不能大于结束时间','确定',config); } @@ -1165,10 +1155,30 @@ export class FinishDialog{ } } else{ - this.snackBar.open('请输入开始或结束时间','确定',config); + if(this.startTime==undefined) + this.snackBar.open('请输入开始时间','确定',config); + else if(this.endTime==undefined) + this.snackBar.open('请输入结束时间','确定',config); + else if(this.examType==undefined) + this.snackBar.open('请输入试卷类型','确定',config); } } + + //ngzerro组件 + timeDefaultValue = setHours(new Date(), 0); + disabledDateTime: DisabledTimeFn = () => { + var second=[] + for(var i=1;i<60;i++){ + second.push(i) + } + return { + nzDisabledHours: () => [], + nzDisabledMinutes: () => [], + nzDisabledSeconds: () => second + }; + }; + onChange(result: Date[]): void { console.log('onChange: ', result); } diff --git a/src/app/examiner/create-test-score/finishDialog.html b/src/app/examiner/create-test-score/finishDialog.html index 9f226d4..55fdfae 100644 --- a/src/app/examiner/create-test-score/finishDialog.html +++ b/src/app/examiner/create-test-score/finishDialog.html @@ -4,12 +4,12 @@ * @Author: sueRimn * @Date: 2020-12-13 10:57:48 * @LastEditors: sueRimn - * @LastEditTime: 2020-12-14 10:23:32 + * @LastEditTime: 2020-12-14 14:08:52 -->
-
+
diff --git a/src/app/examiner/examiner-index/examiner-index.component.html b/src/app/examiner/examiner-index/examiner-index.component.html index f81a5a6..7d5dc44 100644 --- a/src/app/examiner/examiner-index/examiner-index.component.html +++ b/src/app/examiner/examiner-index/examiner-index.component.html @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-12-11 09:06:03 * @LastEditors: sueRimn - * @LastEditTime: 2020-12-11 16:47:41 + * @LastEditTime: 2020-12-14 14:22:11 -->
diff --git a/src/app/examiner/examiner-index/examiner-index.component.scss b/src/app/examiner/examiner-index/examiner-index.component.scss index c90b68e..4a42ddb 100644 --- a/src/app/examiner/examiner-index/examiner-index.component.scss +++ b/src/app/examiner/examiner-index/examiner-index.component.scss @@ -11,6 +11,7 @@ table { height: 100%; overflow: hidden; background: #F2F5F6; + overflow-y: auto; } .header { width: 100%; @@ -57,7 +58,7 @@ table { } //queryBox } .centertable{ - width: 1632px; + width: 95%; margin-right: 40px; margin-left: 40px; background-color: #FFFFFF; diff --git a/src/app/examiner/examiner-new-one/examiner-new-one.component.scss b/src/app/examiner/examiner-new-one/examiner-new-one.component.scss index b83683c..3bfce84 100644 --- a/src/app/examiner/examiner-new-one/examiner-new-one.component.scss +++ b/src/app/examiner/examiner-new-one/examiner-new-one.component.scss @@ -13,14 +13,16 @@ table { overflow: hidden; background: #F2F5F6; display: flex; + overflow-y: auto; .contentLeft{ - width: 1270px; - height: 850px; + width: 80%; + height: 94%; margin: 20px 20px 10px 50px; background-color: #FFFFFF; border-radius: 16px ; .contenttable{ - width: 1200px; + width: 95%; + height: 80%; //margin-right: 40px; margin-left: 30px; //background-color: none; @@ -48,7 +50,7 @@ table { .contentRight{ width: 320px; - height: 850px; + height: 94%; margin: 20px 20px 10px 10px; background-color: #FFFFFF; border-radius: 16px ;