|
|
@ -301,7 +301,8 @@ const periodDisplayText = computed(() => { |
|
|
// 统计数据列表 |
|
|
// 统计数据列表 |
|
|
const jointStatsList = computed(() => [ |
|
|
const jointStatsList = computed(() => [ |
|
|
{ label: '执法预告', value: animatedNotice.value, isRed: false }, |
|
|
{ label: '执法预告', value: animatedNotice.value, isRed: false }, |
|
|
{ label: '委托执法', value: animatedAuth.value > 0 ? animatedAuth.value : '-', isRed: false }, |
|
|
// { label: '委托执法', value: animatedAuth.value > 0 ? animatedAuth.value : '-', isRed: false }, |
|
|
|
|
|
{ label: '委托执法', value: 0, isRed: false }, |
|
|
{ label: '评价', value: animatedEvaluate.value, isRed: false }, |
|
|
{ label: '评价', value: animatedEvaluate.value, isRed: false }, |
|
|
{ label: '投诉', value: animatedComplaint.value > 0 ? animatedComplaint.value : '-', isRed: animatedComplaint.value > 0 }, |
|
|
{ label: '投诉', value: animatedComplaint.value > 0 ? animatedComplaint.value : '-', isRed: animatedComplaint.value > 0 }, |
|
|
]); |
|
|
]); |
|
|
@ -367,9 +368,12 @@ const loadStatistics = () => { |
|
|
if (data.lawEnforceCategoryList && Array.isArray(data.lawEnforceCategoryList)) { |
|
|
if (data.lawEnforceCategoryList && Array.isArray(data.lawEnforceCategoryList)) { |
|
|
lawEnforceCategoryList.value = data.lawEnforceCategoryList.map(item => ({ |
|
|
lawEnforceCategoryList.value = data.lawEnforceCategoryList.map(item => ({ |
|
|
name: item.lawEnforceCategory || '', |
|
|
name: item.lawEnforceCategory || '', |
|
|
total: item.lawEnforceCategoryNumber || 0, |
|
|
// total: item.lawEnforceCategoryNumber || 0, |
|
|
percentage: item.percentage ? `${item.percentage}%` : '-' |
|
|
total: 0, |
|
|
|
|
|
// percentage: item.percentage ? `${item.percentage}%` : '-' |
|
|
|
|
|
percentage:'-' |
|
|
})); |
|
|
})); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 更新企业类别数据(使用后台返回的数据) |
|
|
// 更新企业类别数据(使用后台返回的数据) |
|
|
@ -405,10 +409,12 @@ const loadStatistics = () => { |
|
|
const startNumberAnimation = () => { |
|
|
const startNumberAnimation = () => { |
|
|
const duration = 1000; |
|
|
const duration = 1000; |
|
|
const startTime = performance.now(); |
|
|
const startTime = performance.now(); |
|
|
const targetTotal = statistics.value.registrationTotal; // 涉企检查数量 |
|
|
// const targetTotal = statistics.value.registrationTotal; // 涉企检查数量 |
|
|
|
|
|
const targetTotal = 1; // 涉企检查数量 |
|
|
const targetNotice = statistics.value.noticeTotal; // 执法检查预告数量 |
|
|
const targetNotice = statistics.value.noticeTotal; // 执法检查预告数量 |
|
|
const targetAuth = statistics.value.authTotal; // 委托检查数量 |
|
|
const targetAuth = statistics.value.authTotal; // 委托检查数量 |
|
|
const targetEvaluate = statistics.value.evaluateTotal; // 评论数量 |
|
|
// const targetEvaluate = statistics.value.evaluateTotal; // 评论数量 |
|
|
|
|
|
const targetEvaluate = 1; // 评论数量 |
|
|
const targetComplaint = statistics.value.complaintTotal; // 投诉数量 |
|
|
const targetComplaint = statistics.value.complaintTotal; // 投诉数量 |
|
|
|
|
|
|
|
|
const animate = (currentTime) => { |
|
|
const animate = (currentTime) => { |
|
|
|