Browse Source

[修改]修改座位编号

master
邵佳豪 4 years ago
parent
commit
2ea05513d5
  1. 4
      src/app/ui/drawing-result/drawing-result.component.ts
  2. 1
      src/app/ui/first-step-copy/first-step-copy.component.html
  3. 2
      src/app/ui/first-step-copy/first-step-copy.component.scss
  4. 4
      src/app/ui/first-step/first-step.component.ts
  5. 16
      src/assets/js/fourstep.js

4
src/app/ui/drawing-result/drawing-result.component.ts

@ -40,9 +40,9 @@ export class DrawingResultComponent implements OnInit {
tableData = [ tableData = [
{order: 1, fireName: '南宁支队', drawLotsOrder: '05', num: localStorage.getItem('5') || '', name: ['支队长','副支队长'], seatNum: ['8号','21号'] }, {order: 1, fireName: '南宁支队', drawLotsOrder: '05', num: localStorage.getItem('5') || '', name: ['支队长','副支队长'], seatNum: ['8号','21号'] },
{order: 2, fireName: '柳州支队', drawLotsOrder: '10', num: localStorage.getItem('10') || '', name: ['支队长','副支队长'], seatNum: ['12号','26号'] }, {order: 2, fireName: '柳州支队', drawLotsOrder: '10', num: localStorage.getItem('10') || '', name: ['支队长','副支队长'], seatNum: ['12号','26号'] },
{order: 3, fireName: '桂林支队', drawLotsOrder: '14', num: localStorage.getItem('14') || '', name: ['支队长','副支队长'], seatNum: ['14号','15号'] }, {order: 3, fireName: '桂林支队', drawLotsOrder: '14', num: localStorage.getItem('14') || '', name: ['支队长','副支队长'], seatNum: ['14号','22号'] },
{order: 4, fireName: '梧州支队', drawLotsOrder: '03', num: localStorage.getItem('3') || '', name: ['支队长','副支队长'], seatNum: ['13号','28号'] }, {order: 4, fireName: '梧州支队', drawLotsOrder: '03', num: localStorage.getItem('3') || '', name: ['支队长','副支队长'], seatNum: ['13号','28号'] },
{order: 5, fireName: '北海支队', drawLotsOrder: '08', num: localStorage.getItem('8') || '', name: ['支队长','副支队长'], seatNum: ['4号','22号'] }, {order: 5, fireName: '北海支队', drawLotsOrder: '08', num: localStorage.getItem('8') || '', name: ['支队长','副支队长'], seatNum: ['4号','15号'] },
{order: 6, fireName: '防城港支队', drawLotsOrder: '13', num: localStorage.getItem('13') || '', name: ['支队长','副支队长'], seatNum: ['1号','16号'] }, {order: 6, fireName: '防城港支队', drawLotsOrder: '13', num: localStorage.getItem('13') || '', name: ['支队长','副支队长'], seatNum: ['1号','16号'] },
{order: 7, fireName: '钦州支队', drawLotsOrder: '06', num: localStorage.getItem('6') || '', name: ['支队长','副支队长'], seatNum: ['10号','25号'] }, {order: 7, fireName: '钦州支队', drawLotsOrder: '06', num: localStorage.getItem('6') || '', name: ['支队长','副支队长'], seatNum: ['10号','25号'] },
{order: 8, fireName: '贵港支队', drawLotsOrder: '01', num: localStorage.getItem('1') || '', name: ['支队长','副支队长'], seatNum: ['11号','19号'] }, {order: 8, fireName: '贵港支队', drawLotsOrder: '01', num: localStorage.getItem('1') || '', name: ['支队长','副支队长'], seatNum: ['11号','19号'] },

1
src/app/ui/first-step-copy/first-step-copy.component.html

@ -60,7 +60,6 @@
<div style="text-align: center;"> <div style="text-align: center;">
<div id="slotMachineButtonShuffle10" class="slotMachineButton" style="font-size: 25px">开始抽签</div> <div id="slotMachineButtonShuffle10" class="slotMachineButton" style="font-size: 25px">开始抽签</div>
<!-- <button (click)="nextstep()">下一步</button> -->
</div> </div>
</div> </div>

2
src/app/ui/first-step-copy/first-step-copy.component.scss

@ -44,7 +44,7 @@
.chongzhi{ .chongzhi{
position: relative; position: relative;
top: 85%; top: 85%;
right: 29%; right: 23.5%;
} }
.centerLeft{ .centerLeft{
background-color: #FFF; background-color: #FFF;

4
src/app/ui/first-step/first-step.component.ts

@ -10,9 +10,7 @@ export class FirstStepComponent implements OnInit {
constructor() { } constructor() { }
ngOnInit(){ ngOnInit(){
window.setTimeout(()=>{
//zhuan.drawRouletteWheel()
},0)
} }

16
src/assets/js/fourstep.js

@ -14,13 +14,13 @@ $(document).ready(function(){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"12号",fuzhi:"26号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"12号",fuzhi:"26号"}))
return 11; return 11;
}else if(selected == "桂林支队"){ }else if(selected == "桂林支队"){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"14号",fuzhi:"15号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"14号",fuzhi:"22号"}))
return 13; return 13;
}else if(selected == "梧州支队"){ }else if(selected == "梧州支队"){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"13号",fuzhi:"28号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"13号",fuzhi:"28号"}))
return 12; return 12;
}else if(selected == "北海支队"){ }else if(selected == "北海支队"){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"4号",fuzhi:"22号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"4号",fuzhi:"15号"}))
return 3; return 3;
}else if(selected == "防城港支队"){ }else if(selected == "防城港支队"){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"1号",fuzhi:"16号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"1号",fuzhi:"16号"}))
@ -63,14 +63,14 @@ $(document).ready(function(){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"12号",fuzhi:"26号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"12号",fuzhi:"26号"}))
return 11; return 11;
}else if(selected == "桂林支队"){ }else if(selected == "桂林支队"){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"14号",fuzhi:"15号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"14号",fuzhi:"22号"}))
return 0; return 7;
}else if(selected == "梧州支队"){ }else if(selected == "梧州支队"){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"13号",fuzhi:"28号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"13号",fuzhi:"28号"}))
return 13; return 13;
}else if(selected == "北海支队"){ }else if(selected == "北海支队"){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"4号",fuzhi:"22号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"4号",fuzhi:"15号"}))
return 7; return 0;
}else if(selected == "防城港支队"){ }else if(selected == "防城港支队"){
localStorage.setItem(selectedtime,JSON.stringify({zhi:"1号",fuzhi:"16号"})) localStorage.setItem(selectedtime,JSON.stringify({zhi:"1号",fuzhi:"16号"}))
return 1; return 1;
@ -104,9 +104,9 @@ $(document).ready(function(){
var data = [ var data = [
{'南宁支队':'8号21号'}, {'南宁支队':'8号21号'},
{'柳州支队':'12号26号'}, {'柳州支队':'12号26号'},
{'桂林支队':'14号15号'}, {'桂林支队':'14号22号'},
{'梧州支队':'13号28号'}, {'梧州支队':'13号28号'},
{'北海支队':'4号22号'}, {'北海支队':'4号15号'},
{'防城港支队':'1号16号'}, {'防城港支队':'1号16号'},
{'钦州支队':'10号25号'}, {'钦州支队':'10号25号'},
{'贵港支队':'11号19号'}, {'贵港支队':'11号19号'},

Loading…
Cancel
Save