master
lion 7 months ago
parent 255ca2e0d3
commit d743cf247c

@ -333,6 +333,8 @@
if (para.value > 0) { if (para.value > 0) {
if (para.seriesName.includes('费用') || para.seriesName.includes('补贴')) { if (para.seriesName.includes('费用') || para.seriesName.includes('补贴')) {
return para.value + '万元' return para.value + '万元'
}else if (para.seriesName=='服务人数') {
return para.value + '百人'
} else { } else {
return para.value return para.value
} }
@ -347,8 +349,12 @@
// total // total
let last_total = total let last_total = total
if (name.includes('费用') || name.includes('补贴')) { if (name.includes('费用') || name.includes('补贴')) {
last_total = total / 10000 last_total = parseFloat(total / 10000).toFixed(2)
} }
if (name=='服务人数') {
last_total = total / 100
}
categorizedData[business_data_id].data[parseInt(month) - 1] = last_total; categorizedData[business_data_id].data[parseInt(month) - 1] = last_total;
}); });
} }
@ -422,8 +428,11 @@
let result = `${item.seriesName}<br/>`; let result = `${item.seriesName}<br/>`;
const name = item.name; // const name = item.name; //
const value = item.value; // const value = item.value; //
const marker = item.marker; // const marker = item.marker; //
const unit = item.name.includes('费用') || item.name.includes('补贴') ? '万元' : '' let unit = item.name.includes('费用') || item.name.includes('补贴') ? '万元' : ''
if(item.name=='服务人数'){
unit='百人'
}
result += `${marker}${name}: ${value}${unit}<br/>`; result += `${marker}${name}: ${value}${unit}<br/>`;
return result; return result;
}, },
@ -490,8 +499,11 @@
// item // item
const seriesName = item.seriesName; // const seriesName = item.seriesName; //
const value = item.value; // const value = item.value; //
const marker = item.marker; // const marker = item.marker; //
const unit = item.seriesName.includes('费用') || item.seriesName.includes('补贴') ? '万元' : '' let unit = item.seriesName.includes('费用') || item.seriesName.includes('补贴') ? '万元' : ''
if(item.seriesName=='服务人数'){
unit = '百人'
}
result += `${marker}${seriesName}: ${value}${unit}<br/>`; result += `${marker}${seriesName}: ${value}${unit}<br/>`;
}); });

Loading…
Cancel
Save