wujingjing
2024-10-23 8a3b68a85afff8253d56a58b3ceb7f623209f542
lastGroupIndex
已修改1个文件
6 ■■■■■ 文件已修改
src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/recordSetTable/RecordSetTable.vue
@@ -192,7 +192,10 @@
        // 添加合计行
        if (last?.length > 0) {
            const totalRow = new Array(last.length);
            totalRow[0] = '合计';
            let lastGroupIndex = tableCols.value.findLastIndex((item, index) => index !== rateColIndex && index !== valueColIndex);
            lastGroupIndex = lastGroupIndex === -1 ? 0 : lastGroupIndex;
            totalRow[lastGroupIndex] = '合计';
            // 比例列
            totalRow[rateColIndex] = '100%';
            // 合计总数
@@ -787,7 +790,6 @@
    return data;
};
const getCommonOption = () => {
    return {