Browse Source

执法端统计分析数据修改

dev-v1.0.3
wangmingyong 4 months ago
parent
commit
d520ce1d4c
  1. 16
      zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/statistics/statisticsAnalysis.vue

16
zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/statistics/statisticsAnalysis.vue

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

Loading…
Cancel
Save