Browse Source

中间数据调用

lite
453530270@qq.com 3 years ago
parent
commit
fad2e9cdfd
  1. 12
      src/views/ty/index.vue

12
src/views/ty/index.vue

@ -1050,17 +1050,21 @@ export default {
}
})
that.groupsData = [];
//
homeApi.homeBarData({groupsId:idArr}).then(res=>{
// console.log(res, '=====');
// console.log(res, '==');
res.data.data.groupsData.forEach(item=>{
that.groupsData.push(item);
});
// console.log(that.groupsData, 'that.groupsData')
that.cgn_1 = that.groupsData[0].noRepeatInNum;
that.cgn_1 = that.groupsData[0].groupName;
that.cgv_1 = that.groupsData[0].noRepeatInNum;
that.cgp_1 = that.groupsData[0].proportion;
that.cgn_2 = that.groupsData[1].noRepeatInNum;
that.cgn_2 = that.groupsData[1].groupName;
that.cgv_2 = that.groupsData[1].noRepeatInNum;
that.cgp_2 = that.groupsData[1].proportion;
that.cgn_3 = that.groupsData[2]?that.groupsData[2].noRepeatInNum:'';
that.cgn_3 = that.groupsData[2].groupName;
that.cgv_2 = that.groupsData[1].noRepeatInNum;
that.cgp_3 = that.groupsData[2]?that.groupsData[2].proportion:'';
});
});

Loading…
Cancel
Save