From 4a5254de36ec0dc378ab6920f7aa15f7cef549d5 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Mon, 21 Dec 2020 14:16:23 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=BC=95=E5=85=A5swiper?= =?UTF-8?q?=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- angular.json | 6 ++++-- src/app/ui/collection-tools/examinationQuestions.ts | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/angular.json b/angular.json index 07cf0ab..d183d30 100644 --- a/angular.json +++ b/angular.json @@ -30,11 +30,13 @@ ], "styles": [ "src/styles.scss", - "node_modules/viewerjs/dist/viewer.css" + "node_modules/viewerjs/dist/viewer.css", + "./node_modules/swiper/css/swiper.min.css" ], "scripts": [ "node_modules/echarts/dist/echarts.js", - "src/assets/echarts/echarts.common.min.js" + "src/assets/echarts/echarts.common.min.js", + "./node_modules/swiper/js/swiper.min.js" ] }, "configurations": { diff --git a/src/app/ui/collection-tools/examinationQuestions.ts b/src/app/ui/collection-tools/examinationQuestions.ts index ec517fd..a93beea 100644 --- a/src/app/ui/collection-tools/examinationQuestions.ts +++ b/src/app/ui/collection-tools/examinationQuestions.ts @@ -227,10 +227,15 @@ export class uploadQuestions { examPlanType:this.route.snapshot.queryParams.openType == 1 ? 0 : 1 } this.http.post("/api/PaperPlans",body,{params:params}).subscribe(data => { + const config = new MatSnackBarConfig(); config.verticalPosition = 'top'; config.duration = 3000 - this.snackBar.open('设置完成','确定',config); + this.snackBar.open('设置完成,页面将于一秒后关闭','确定',config); + setTimeout(() => { + window.close() + }, 1000); + }) }