vue.js数据遍历问题。

这是代码

浏览器显示效果

这是controller返回数据的代码:

 List<Long> totalAmountList = dailySaleRepository.findTotalAmountGroup(start, end, bid, DateType.DAY);
 List<List<Long>> brandAmountList = new ArrayList<>();
 resultMap.put("totalAmountList", totalAmountList);
 resultMap.put("brandAmountList", brandAmountList);
 return ResponseEntity.ok(resultMap);

这是js定义的数组结构:

data: {
brandAmountList: [],
totalAmountList: []
}

回调函数,其它再无修改totalAmoutList值的地方.

function (data) {
               _this.currTotalAmount = data.currTotalAmount;
               _this.resultList = data.resultList;
               _this.brandAmountList = data.brandAmountList;
               _this.totalAmountList = data.totalAmountList;
               console.log("回调打印totalAmountList:" + _this.totalAmountList);
               this.isSelect = "筛选";
             }
阅读 5.8k
1 个回答
新手上路,请多包涵

给一下详细的数据结构吧,那些list都是数组吧?~~
而且,你这一看莫名觉得渲染得奇怪0.0

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题