Commit 29048dc2 by liuchenxi

update: 表格排序

parent 27a09e23
......@@ -189,7 +189,7 @@ export default {
color = '#FFCB48';
textColor = 'white';
} else if (!row.index) {
return '--';
return '- -';
}
return `<span style="background:${color};color:${textColor};width: 16px; display: inline-block; text-align: center; line-height:16px">${row.index}</span>`;
}
......@@ -306,7 +306,14 @@ export default {
this.tableList = [];
return;
}
this.tableList = res.result.result;
this.tableList = res.result.result.map((el, index) => {
if (el.groupName == '区域合计') {
el.index = '';
return el;
}
el.index = (this.currentPage - 1) * this.pageSize + index;
return el;
});
this.total = res.result.totalCount;
this.loading = false;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment