Browse Source

[完善]引入swiper插件

master
邵佳豪 4 years ago
parent
commit
4a5254de36
  1. 6
      angular.json
  2. 7
      src/app/ui/collection-tools/examinationQuestions.ts

6
angular.json

@ -30,11 +30,13 @@
], ],
"styles": [ "styles": [
"src/styles.scss", "src/styles.scss",
"node_modules/viewerjs/dist/viewer.css" "node_modules/viewerjs/dist/viewer.css",
"./node_modules/swiper/css/swiper.min.css"
], ],
"scripts": [ "scripts": [
"node_modules/echarts/dist/echarts.js", "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": { "configurations": {

7
src/app/ui/collection-tools/examinationQuestions.ts

@ -227,10 +227,15 @@ export class uploadQuestions {
examPlanType:this.route.snapshot.queryParams.openType == 1 ? 0 : 1 examPlanType:this.route.snapshot.queryParams.openType == 1 ? 0 : 1
} }
this.http.post("/api/PaperPlans",body,{params:params}).subscribe(data => { this.http.post("/api/PaperPlans",body,{params:params}).subscribe(data => {
const config = new MatSnackBarConfig(); const config = new MatSnackBarConfig();
config.verticalPosition = 'top'; config.verticalPosition = 'top';
config.duration = 3000 config.duration = 3000
this.snackBar.open('设置完成','确定',config); this.snackBar.open('设置完成,页面将于一秒后关闭','确定',config);
setTimeout(() => {
window.close()
}, 1000);
}) })
} }

Loading…
Cancel
Save