fix:营养分析-本月

This commit is contained in:
dzc committed 2025-10-27 11:27:47 +08:00
1 parent 7ee646b086
commit a0dd6542f8
2 files changed
+3 -13

No files matched your search

@@ -6,16 +6,6 @@
<el-segmented v-model="activeSegment" :options="props.segments" :props="{ label: 'label', value: 'value' }"
size="small" @change="dateTypeChange" />
</div>
<!-- <div class="area-info">
<div class="area-info-item" v-for="(item, index) in 2" :key="item.name" @click="doItem(item)">
<span
:style="{ width: '1vw', height: '1vw', background: colors[index], borderRadius: '50%', display: 'inline-block' }"></span>
<span class="name">新县府二楼</span>
<span :style="{ marginLeft: '0.2vw', color: colors[index] }">433次</span>
<span :style="{ marginLeft: '0.1vw', color: colors[index], fontSize: '0.6vw' }"> ({{ 23.4 }}%)
</span>
</div>
</div> -->
<div class="area-info">
<div class="area-info-item" v-for="(item, index) in props.data" :key="item.name" @click="doItem(item)">
<span
+3 -3
View File
@@ -231,9 +231,9 @@ const getNutritionAnalyse = () => {
if (dateRangeType === "THIS_MONTH") {
timerObj.nutritionAnalyse.data.data = {
THIS_MONTH: data[dataKeys[0]]?.list?.map((v) => {
const hcCount = data.hc?.list.find((item) => item.time === item.time)?.buyProductCount ?? 0
const scCount = data.sc?.list.find((item) => item.time === item.time)?.buyProductCount ?? 0
const zsCount = data.zs?.list.find((item) => item.time === item.time)?.buyProductCount ?? 0
const hcCount = data.hc?.list.find((item) => item.time === v.time)?.buyProductCount ?? 0
const scCount = data.sc?.list.find((item) => item.time === v.time)?.buyProductCount ?? 0
const zsCount = data.zs?.list.find((item) => item.time === v.time)?.buyProductCount ?? 0
return {
day: v.time.slice(-2),
type: 0,