对象的排序
let list = Object.keys(response.data).sort(function (a, b) {
return response.data[a][0].paidCode - response.data[b][0].paidCode;
});
//循环排列好的 key, 重新组成一个新的数组
for (var sortIndex in list) {
this.tableData.push(response.data[list[sortIndex]]);
}

浙公网安备 33010602011771号