|
@@ -23,13 +23,18 @@ Page({
|
|
// picker
|
|
// picker
|
|
show: false,
|
|
show: false,
|
|
personList: [],
|
|
personList: [],
|
|
- selectNode: undefined
|
|
|
|
|
|
+ selectNode: undefined,
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ loading: true
|
|
|
|
|
|
},
|
|
},
|
|
// 计算晋级图
|
|
// 计算晋级图
|
|
computedTreeData() {
|
|
computedTreeData() {
|
|
const getWinnerNumList = this.data.riseList; // 将每个小组取多少人收到1个纯数字的数组中
|
|
const getWinnerNumList = this.data.riseList; // 将每个小组取多少人收到1个纯数字的数组中
|
|
|
|
+ console.log(getWinnerNumList)
|
|
const getWinnerNum = getWinnerNumList.reduce((p, n) => p + n, 0); // 小组赛选取人数: 应该是该比赛项目的 各组选取人数加和
|
|
const getWinnerNum = getWinnerNumList.reduce((p, n) => p + n, 0); // 小组赛选取人数: 应该是该比赛项目的 各组选取人数加和
|
|
|
|
+ console.log(getWinnerNum)
|
|
let level = 1;
|
|
let level = 1;
|
|
let loop = true;
|
|
let loop = true;
|
|
while (loop) {
|
|
while (loop) {
|
|
@@ -186,6 +191,7 @@ Page({
|
|
await this.searchWinnerList();
|
|
await this.searchWinnerList();
|
|
await this.search();
|
|
await this.search();
|
|
await this.searchOthers()
|
|
await this.searchOthers()
|
|
|
|
+ this.setData({ loading: false })
|
|
},
|
|
},
|
|
// 查询已安排的数据
|
|
// 查询已安排的数据
|
|
async search() {
|
|
async search() {
|