| | |
| | | linename: res1.data[0].linename, |
| | | lineworkcont: res1.data[0].lineworkcont, |
| | | children: res1.data[0].children ? res.data[0].children[count] : [] |
| | | // children: res1.data[0].children[count] |
| | | } |
| | | flag1 = false |
| | | } |
| | |
| | | } |
| | | } |
| | | }, 1000 * 3) |
| | | // }, res1.data[0].children && res1.data[0].children.length > 0 ? 1000 * 3 : 1000 * 3) |
| | | } else if (index === 1) { |
| | | let count = 0 |
| | | if (flag2) { |
| | |
| | | children: res2.data[0].children ? res2.data[0].children[count] : [] |
| | | } |
| | | } |
| | | // }, res2.data[0].children && res2.data[0].children.length > 0 ? 1000 * 3 : 1000 * 10) |
| | | }, 1000 * 3) |
| | | |
| | | // setInterval(() => { |
| | | // if (count > 0) { |
| | | // this.lineContent02 = { |
| | | // linename: res2.data[0].linename, |
| | | // lineworkcont: res2.data[0].lineworkcont, |
| | | // children: res2.data[0].children ? res2.data[0].children[count] : [] |
| | | // } |
| | | // } |
| | | // if (res2.data[0].children.length === count++) { |
| | | // count = 0 |
| | | // LineSearchTopLeftData([item]).then(res => { |
| | | // res2 = res |
| | | // this.lineContent02 = { |
| | | // linename: res2.data[0].linename, |
| | | // lineworkcont: res2.data[0].lineworkcont, |
| | | // children: res2.data[0].children ? res2.data[0].children[count] : [] |
| | | // } |
| | | // }) |
| | | // |
| | | // // this.handleEveryLine(item, index) |
| | | // } |
| | | // }, res2.data[0].children && res2.data[0].children.length > 0 ? 1000 * 3 : 1000 * 10) |
| | | } else if (index === 2) { |
| | | let count = 0 |
| | | if (flag3) { |
| | |
| | | |
| | | if (res3.data[0].children.length === count++) { |
| | | count = 0 |
| | | // LineSearchTopLeftData([item]).then(res => { |
| | | // res3 = res |
| | | this.lineContent03 = { |
| | | linename: res3.data[0].linename, |
| | | lineworkcont: res3.data[0].lineworkcont, |
| | | children: res3.data[0].children ? res3.data[0].children[count] : [] |
| | | } |
| | | // }) |
| | | // this.handleEveryLine(item, index) |
| | | } |
| | | // }, res3.data[0].children && res3.data[0].children.length > 0 ? 1000 * 3 : 1000 * 10) |
| | | }, 1000 * 3) |
| | | } else if (index === 3) { |
| | | let count = 0 |
| | |
| | | children: res4.data[0].children ? res4.data[0].children[count] : [] |
| | | } |
| | | } |
| | | // }, res4.data[0].children && res4.data[0].children.length > 0 ? 1000 * 3 : 1000 * 10) |
| | | }, 1000 * 3) |
| | | } |
| | | }, |