|
|
@ -138,8 +138,8 @@ async function handleQuery() { |
|
|
|
|
|
|
|
|
console.log('查询参数:', queryParams); |
|
|
console.log('查询参数:', queryParams); |
|
|
|
|
|
|
|
|
const res = await serviceApplicationsApi.statisticsDepartment(queryParams); |
|
|
const res = await serviceApplicationsApi.statistics(queryParams); |
|
|
console.log('机构数据查询结果:', res); |
|
|
console.log('律师数据查询结果:', res); |
|
|
|
|
|
|
|
|
// 正确处理分页返回的数据结构 |
|
|
// 正确处理分页返回的数据结构 |
|
|
if (res.data && res.data.list && Array.isArray(res.data.list)) { |
|
|
if (res.data && res.data.list && Array.isArray(res.data.list)) { |
|
|
@ -149,18 +149,13 @@ async function handleQuery() { |
|
|
tableData.value = dataList.map(item => ({ |
|
|
tableData.value = dataList.map(item => ({ |
|
|
...item, |
|
|
...item, |
|
|
// 根据实际返回字段映射到表格显示字段 |
|
|
// 根据实际返回字段映射到表格显示字段 |
|
|
firmName: item.firmName || '-', |
|
|
lawyerName: item.lawyerName || '-', |
|
|
lawyerCount: item.lawyerCount || 0, |
|
|
certificateNumber: item.certificateNumber || '-', |
|
|
applicationCount: item.applicationCount || 0, |
|
|
|
|
|
approvedCount: item.approvedCount || 0, |
|
|
|
|
|
rejectedCount: item.rejectedCount || 0, |
|
|
|
|
|
approvalRate: item.approvalRate ? `${(item.approvalRate * 100).toFixed(2)}%` : '0%', |
|
|
|
|
|
statisticTime: item.statisticTime || '-', |
|
|
|
|
|
// 新增的服务时长和成本字段 |
|
|
// 新增的服务时长和成本字段 |
|
|
quarterlyServiceDuration: item.quarterlyServiceDuration || 0, |
|
|
quarterlyServiceDuration: Number(item.quarterlyServiceDuration) || 0, |
|
|
quarterlyServiceCost: item.quarterlyServiceCost || 0, |
|
|
quarterlyServiceCost: Number(item.quarterlyServiceCost) || 0, |
|
|
annualServiceDuration: item.annualServiceDuration || 0, |
|
|
annualServiceDuration: Number(item.annualServiceDuration) || 0, |
|
|
annualServiceCost: item.annualServiceCost || 0 |
|
|
annualServiceCost: Number(item.annualServiceCost) || 0 |
|
|
})); |
|
|
})); |
|
|
|
|
|
|
|
|
// 显示结果页面 |
|
|
// 显示结果页面 |
|
|
|