| | |
| | | |
| | | const btmNames = Object.keys(firstResponse.data.data).join(','); |
| | | const firstData = firstResponse.data.data; |
| | | console.log('firstData',firstData) |
| | | if (btmNames) { |
| | | const secondResponse = await getStatisticAnalysis({btmNames}); |
| | | const secondData = secondResponse.data.data; |
| | | console.log('secondData', secondData) |
| | | Object.keys(firstData).sort().forEach((key,index)=>{ |
| | | //Object.keys导致对象顺序不一致,使用sort排序与后端返回格式一致 |
| | | Object.keys(firstData).sort().forEach((key, index) => { |
| | | if (firstData[key]) { |
| | | const indexes = firstData[key].split(','); |
| | | for (const indexSec of indexes) { |
| | |
| | | menuName: record.menuName |
| | | } |
| | | }) |
| | | List.forEach((i,j)=>{ |
| | | if(index === j ){ |
| | | List.forEach((i, j) => { |
| | | if (index === j) { |
| | | this[type].push(i) |
| | | } |
| | | }) |