|
|
|
@ -13,51 +13,34 @@ export class FirstStepComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
ngOnInit(){ |
|
|
|
|
var arr = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] |
|
|
|
|
var arr2 = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] |
|
|
|
|
|
|
|
|
|
var arrSeat = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] |
|
|
|
|
var arrSeat2 = [15,16,17,18,19,20,21,22,23,24,25,26,27,28] |
|
|
|
|
var arrSeatcopy = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] |
|
|
|
|
var arrSeat2copy = [15,16,17,18,19,20,21,22,23,24,25,26,27,28] |
|
|
|
|
|
|
|
|
|
let x = arr.sort(() => { |
|
|
|
|
return Math.round(Math.random()) - 0.5; //返回随机值(大于0|小于0)
|
|
|
|
|
}) |
|
|
|
|
let p = arr2.sort(() => { |
|
|
|
|
return Math.round(Math.random()) - 0.5; //返回随机值(大于0|小于0)
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
let y = arrSeat.sort(() => { |
|
|
|
|
return Math.round(Math.random()) - 0.5; //返回随机值(大于0|小于0)
|
|
|
|
|
}) |
|
|
|
|
let z = arrSeat2.sort(() => { |
|
|
|
|
return Math.round(Math.random()) - 0.5; //返回随机值(大于0|小于0)
|
|
|
|
|
})
|
|
|
|
|
let s = arrSeatcopy.sort(() => { |
|
|
|
|
return Math.round(Math.random()) - 0.5; //返回随机值(大于0|小于0)
|
|
|
|
|
}) |
|
|
|
|
let j = arrSeat2copy.sort(() => { |
|
|
|
|
return Math.round(Math.random()) - 0.5; //返回随机值(大于0|小于0)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if(!localStorage.getItem("arr")){ |
|
|
|
|
localStorage.setItem("arr",JSON.stringify(x)) |
|
|
|
|
} |
|
|
|
|
if(!localStorage.getItem("arr2")){ |
|
|
|
|
localStorage.setItem("arr2",JSON.stringify(p)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!localStorage.getItem("arrSeat")){ |
|
|
|
|
localStorage.setItem("arrSeat",JSON.stringify(y)) |
|
|
|
|
} |
|
|
|
|
if(!localStorage.getItem("arrSeat2")){ |
|
|
|
|
localStorage.setItem("arrSeat2",JSON.stringify(z)) |
|
|
|
|
} |
|
|
|
|
if(!localStorage.getItem("arrSeatcopy")){ |
|
|
|
|
localStorage.setItem("arrSeatcopy",JSON.stringify(s)) |
|
|
|
|
} |
|
|
|
|
if(!localStorage.getItem("arrSeat2copy")){ |
|
|
|
|
localStorage.setItem("arrSeat2copy",JSON.stringify(j)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let orgArr = ['南宁支队','柳州支队','桂林支队','梧州支队','北海支队','防城港支队','钦州支队','贵港支队','玉林支队','百色支队','贺州支队','河池支队','来宾支队','崇左支队',] |
|
|
|
|
localStorage.setItem("orgArr",JSON.stringify(orgArr)) |
|
|
|
|
localStorage.setItem("pagetype",'true') |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
numList = [ |
|
|
|
|