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); + }) }