|
@@ -83,6 +83,7 @@ import { shortcuts } from '@/utils/constants';
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
|
const columns = ref<any>([
|
|
|
+ { type: 'index', fixed: 'left', width: 55, label: '序号', align: 'center' },
|
|
|
{ prop: 'name', label: '热点名称' },
|
|
|
{ prop: 'num', label: '工单数' },
|
|
|
{ prop: 'chainNum', label: '环比工单数' },
|
|
@@ -217,10 +218,11 @@ const getSummaries = (param: any) => {
|
|
|
const { columns } = param;
|
|
|
const sums: string[] = [];
|
|
|
columns.forEach((column: { property: string }, index: number) => {
|
|
|
+ if (index === 0) {
|
|
|
+ sums[index] = '合计';
|
|
|
+ return;
|
|
|
+ }
|
|
|
switch (column.property) {
|
|
|
- case 'name':
|
|
|
- sums[index] = state.totalCount?.name;
|
|
|
- break;
|
|
|
case 'num':
|
|
|
sums[index] = state.totalCount?.num;
|
|
|
break;
|