|
|
@ -62,17 +62,17 @@ |
|
|
bordered |
|
|
bordered |
|
|
> |
|
|
> |
|
|
<template #bodyCell="{ column, record }"> |
|
|
<template #bodyCell="{ column, record }"> |
|
|
<template v-if="column.dataIndex === 'quarterDuration'"> |
|
|
<template v-if="column.dataIndex === 'quarterlyServiceDuration'"> |
|
|
{{ record.quarterDuration }} 小时 |
|
|
{{ record.quarterlyServiceDuration }} 小时 |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="column.dataIndex === 'quarterCost'"> |
|
|
<template v-else-if="column.dataIndex === 'quarterlyServiceCost'"> |
|
|
{{ record.quarterCost }} 元 |
|
|
{{ record.quarterlyServiceCost }} 元 |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="column.dataIndex === 'yearDuration'"> |
|
|
<template v-else-if="column.dataIndex === 'annualServiceDuration'"> |
|
|
{{ record.yearDuration }} 小时 |
|
|
{{ record.annualServiceDuration }} 小时 |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="column.dataIndex === 'yearCost'"> |
|
|
<template v-else-if="column.dataIndex === 'annualServiceCost'"> |
|
|
{{ record.yearCost }} 元 |
|
|
{{ record.annualServiceCost }} 元 |
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
</a-table> |
|
|
</a-table> |
|
|
@ -121,26 +121,26 @@ const columns = [ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '季度累计服务时长', |
|
|
title: '季度累计服务时长', |
|
|
dataIndex: 'quarterDuration', |
|
|
dataIndex: 'quarterlyServiceDuration', |
|
|
key: 'quarterDuration', |
|
|
key: 'quarterlyServiceDuration', |
|
|
width: 120 |
|
|
width: 120 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '季度累计服务成本', |
|
|
title: '季度累计服务成本', |
|
|
dataIndex: 'quarterCost', |
|
|
dataIndex: 'quarterlyServiceCost', |
|
|
key: 'quarterCost', |
|
|
key: 'quarterlyServiceCost', |
|
|
width: 120 |
|
|
width: 120 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '年度累计服务时长', |
|
|
title: '年度累计服务时长', |
|
|
dataIndex: 'yearDuration', |
|
|
dataIndex: 'annualServiceDuration', |
|
|
key: 'yearDuration', |
|
|
key: 'annualServiceDuration', |
|
|
width: 120 |
|
|
width: 120 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '年度累计服务成本', |
|
|
title: '年度累计服务成本', |
|
|
dataIndex: 'yearCost', |
|
|
dataIndex: 'annualServiceCost', |
|
|
key: 'yearCost', |
|
|
key: 'annualServiceCost', |
|
|
width: 120 |
|
|
width: 120 |
|
|
} |
|
|
} |
|
|
]; |
|
|
]; |
|
|
@ -175,7 +175,7 @@ async function handleSearch() { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// 调用API获取季度统计数据 |
|
|
// 调用API获取季度统计数据 |
|
|
const result = await serviceApplicationsApi.getQuarterStatistics(params); |
|
|
const result = await serviceApplicationsApi.statistics(params); |
|
|
|
|
|
|
|
|
if (result.data) { |
|
|
if (result.data) { |
|
|
tableData.value = result.data.list || []; |
|
|
tableData.value = result.data.list || []; |
|
|
|