diff --git a/src/app/ui/drawing-result/drawing-result.component.html b/src/app/ui/drawing-result/drawing-result.component.html index 13b9b3c..373294d 100644 --- a/src/app/ui/drawing-result/drawing-result.component.html +++ b/src/app/ui/drawing-result/drawing-result.component.html @@ -2,8 +2,11 @@
-

业务理论考试

- +
+ 上一步 +
+

业务理论考试

+
diff --git a/src/app/ui/drawing-result/drawing-result.component.scss b/src/app/ui/drawing-result/drawing-result.component.scss index f1ffba2..b367903 100644 --- a/src/app/ui/drawing-result/drawing-result.component.scss +++ b/src/app/ui/drawing-result/drawing-result.component.scss @@ -17,12 +17,26 @@ } .center { + position: relative; width: 80%; max-height: 90%; margin: 0 auto; overflow-x: hidden; overflow-y: auto; text-align: center; + .laststep{ + position: absolute; + width: 85px; + height:36px; + line-height:36px; + color: white; + font-size: 18px; + right: 0; + top: 18px; + border: 1px solid white; + border-radius: 6px; + cursor: pointer; + } h3 { font-size: 26px; color: #fff; diff --git a/src/app/ui/drawing-result/drawing-result.component.ts b/src/app/ui/drawing-result/drawing-result.component.ts index c5ed57e..3a6fc59 100644 --- a/src/app/ui/drawing-result/drawing-result.component.ts +++ b/src/app/ui/drawing-result/drawing-result.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { Router } from '@angular/router'; @Component({ selector: 'app-drawing-result', @@ -7,9 +8,14 @@ import { Component, OnInit } from '@angular/core'; }) export class DrawingResultComponent implements OnInit { - constructor() { } - + constructor(private router: Router) { } + isOne = false ngOnInit(): void { + if(this.router.url == '/drawingResult?type=1'){ + this.isOne = false + }else{ + this.isOne = true + } } headersZero:string [] = ['序号','支队名称','抽签顺序', '职级','座位号'] @@ -47,5 +53,7 @@ export class DrawingResultComponent implements OnInit { {order: 13, fireName: '来宾支队', drawLotsOrder: '09', num: localStorage.getItem('09') || '', name: ['支队长','副支队长'], seatNum: ['7号','23号'] }, {order: 14, fireName: '崇左支队', drawLotsOrder: '11', num: localStorage.getItem('11') || '', name: ['支队长','副支队长'], seatNum: ['5号','17号'] }, ] - + laststep(){ + window.history.back(); + } } diff --git a/src/app/ui/first-step-copy/first-step-copy.component.html b/src/app/ui/first-step-copy/first-step-copy.component.html index f71eebd..f6c062c 100644 --- a/src/app/ui/first-step-copy/first-step-copy.component.html +++ b/src/app/ui/first-step-copy/first-step-copy.component.html @@ -13,15 +13,15 @@
- -
+
+
请选择支队 diff --git a/src/app/ui/first-step-copy/first-step-copy.component.ts b/src/app/ui/first-step-copy/first-step-copy.component.ts index 8906b0f..231b603 100644 --- a/src/app/ui/first-step-copy/first-step-copy.component.ts +++ b/src/app/ui/first-step-copy/first-step-copy.component.ts @@ -61,7 +61,13 @@ export class FirstStepCopyComponent implements OnInit { this.isDraw = false } } + nextstep(){ - window.location.href="/fourStep2"; + if(localStorage.getItem("南宁支队copy") && localStorage.getItem("柳州支队copy") && localStorage.getItem("桂林支队copy") && localStorage.getItem("梧州支队copy") && localStorage.getItem("北海支队copy") && localStorage.getItem("防城港支队copy") && localStorage.getItem("钦州支队copy") && localStorage.getItem("贵港支队copy") && localStorage.getItem("玉林支队copy") && localStorage.getItem("百色支队copy") && localStorage.getItem("贺州支队copy") && localStorage.getItem("河池支队copy") && localStorage.getItem("来宾支队copy") && localStorage.getItem("崇左支队copy")){ + window.location.href="/fourStep2"; + }else{ + alert("未全部抽完!") + } + } } diff --git a/src/app/ui/four-step-copy/four-step-copy.component.ts b/src/app/ui/four-step-copy/four-step-copy.component.ts index 503fed5..1f93d88 100644 --- a/src/app/ui/four-step-copy/four-step-copy.component.ts +++ b/src/app/ui/four-step-copy/four-step-copy.component.ts @@ -76,5 +76,11 @@ export class FourStepCopyComponent implements OnInit { this.isDraw = false } } - + lookresult(){ + if(localStorage.getItem("南宁支队seatnumbercopy") && localStorage.getItem("柳州支队seatnumbercopy") && localStorage.getItem("桂林支队seatnumbercopy") && localStorage.getItem("梧州支队seatnumbercopy") && localStorage.getItem("北海支队seatnumbercopy") && localStorage.getItem("防城港支队seatnumbercopy") && localStorage.getItem("钦州支队seatnumbercopy") && localStorage.getItem("贵港支队seatnumbercopy") && localStorage.getItem("玉林支队seatnumbercopy") && localStorage.getItem("百色支队seatnumbercopy") && localStorage.getItem("贺州支队seatnumbercopy") && localStorage.getItem("河池支队seatnumbercopy") && localStorage.getItem("来宾支队seatnumbercopy") && localStorage.getItem("崇左支队seatnumbercopy")){ + window.location.href="/drawingResult"; + }else{ + alert("请全部抽完再查看结果!") + } + } } diff --git a/src/app/ui/four-step/four-step.component.html b/src/app/ui/four-step/four-step.component.html index 6c2284a..909185a 100644 --- a/src/app/ui/four-step/four-step.component.html +++ b/src/app/ui/four-step/four-step.component.html @@ -68,7 +68,10 @@
-
+
+ + +
diff --git a/src/app/ui/four-step/four-step.component.scss b/src/app/ui/four-step/four-step.component.scss index 2adec50..759d607 100644 --- a/src/app/ui/four-step/four-step.component.scss +++ b/src/app/ui/four-step/four-step.component.scss @@ -43,8 +43,8 @@ } .chongzhi{ position: relative; - top: 85%; - right: 17%; + top: 80%; + right: 23.5%; } .centerLeft{ @@ -153,12 +153,7 @@ margin: 4px 2px; cursor: pointer; } - .chongzhi{ - position: relative; - top: 85%; - right: 17%; - } - + //选择后加背景色 .beijicolor{ background-color:#FE693E ; diff --git a/src/app/ui/four-step/four-step.component.ts b/src/app/ui/four-step/four-step.component.ts index 97d4bd8..e1e5c87 100644 --- a/src/app/ui/four-step/four-step.component.ts +++ b/src/app/ui/four-step/four-step.component.ts @@ -85,7 +85,17 @@ export class FourStepComponent implements OnInit { } } nextStep(){ - window.location.href="/drawingResult"; + if(localStorage.getItem("南宁支队seatnumber") && localStorage.getItem("柳州支队seatnumber") && localStorage.getItem("桂林支队seatnumber") && localStorage.getItem("梧州支队seatnumber") && localStorage.getItem("北海支队seatnumber") && localStorage.getItem("防城港支队seatnumber") && localStorage.getItem("钦州支队seatnumber") && localStorage.getItem("贵港支队seatnumber") && localStorage.getItem("玉林支队seatnumber") && localStorage.getItem("百色支队seatnumber") && localStorage.getItem("贺州支队seatnumber") && localStorage.getItem("河池支队seatnumber") && localStorage.getItem("来宾支队seatnumber") && localStorage.getItem("崇左支队seatnumber")){ + window.location.href="/firstStep2"; + }else{ + alert("未全部抽完!") + } + } + lookresult(){ + if(localStorage.getItem("南宁支队seatnumber") && localStorage.getItem("柳州支队seatnumber") && localStorage.getItem("桂林支队seatnumber") && localStorage.getItem("梧州支队seatnumber") && localStorage.getItem("北海支队seatnumber") && localStorage.getItem("防城港支队seatnumber") && localStorage.getItem("钦州支队seatnumber") && localStorage.getItem("贵港支队seatnumber") && localStorage.getItem("玉林支队seatnumber") && localStorage.getItem("百色支队seatnumber") && localStorage.getItem("贺州支队seatnumber") && localStorage.getItem("河池支队seatnumber") && localStorage.getItem("来宾支队seatnumber") && localStorage.getItem("崇左支队seatnumber")){ + window.location.href="/drawingResult?type=1"; + }else{ + alert("请全部抽完再查看结果!") + } } - }
{{header}}