From e902c1a221664aa5c20cd9cda0dbc04d0d628d0f Mon Sep 17 00:00:00 2001 From: dengyuxin Date: Tue, 2 Dec 2025 17:27:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=B7=E6=A0=BC=E8=A1=8C?= =?UTF-8?q?=E6=83=85=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Home.vue | 2 +- src/components/Price.vue | 33 +++++++++++++++++++-------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/components/Home.vue b/src/components/Home.vue index 16ab0f4..8430704 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -536,7 +536,7 @@ export default { noDataMessage.value = '请求超时' } else { console.error('[外部接口] 调用失败:', error) - noDataMessage.value = '接口调用失败' + noDataMessage.value = '该地区暂无数据' } isJumpLoading.value = false showNoDataToast.value = true diff --git a/src/components/Price.vue b/src/components/Price.vue index 7daef9b..05d62e2 100644 --- a/src/components/Price.vue +++ b/src/components/Price.vue @@ -114,8 +114,8 @@ export default { }) } const data = Array.from(counts.entries()).map(([name, value]) => ({ name, value })) - // 与大屏主体色一致的配色(青蓝系) - const brandColors = ['#00d4ff', '#29e3ff', '#00b3f9', '#3bd1ff', '#0099ff', '#61eaff'] + // 指定配色:#FF7A28,#00E9FF,#4E73DF,#0B1424 + const brandColors = ['#FF7A28', '#00E9FF', '#4E73DF', '#0B1424','#61eaff'] return { color: brandColors, title: { text: '品种占比统计', left: 'center', top: 6, textStyle: { color: '#eaf7ff', fontSize: 14 } }, @@ -318,7 +318,7 @@ export default { } const stockBarOption = computed(() => ({ - title: { text: '存栏统计', left: 'center', textStyle: { color: '#eaf7ff' } }, + title: { text: '存栏统计(万头)', left: 'center', textStyle: { color: '#eaf7ff' } }, tooltip: { trigger: 'axis' }, grid: { left: 40, right: 20, top: 50, bottom: 40 }, xAxis: { type: 'category', data: stockYears.value, axisLabel: { color: '#cfefff' }, axisLine: { lineStyle: { color: '#2e6ba8' } } }, @@ -331,7 +331,7 @@ export default { })) const slaughterLineOption = computed(() => ({ - title: { text: '出栏统计', left: 'center', textStyle: { color: '#eaf7ff' } }, + title: { text: '出栏统计(万头)', left: 'center', textStyle: { color: '#eaf7ff' } }, tooltip: { trigger: 'axis' }, grid: { left: 40, right: 20, top: 50, bottom: 40 }, xAxis: { type: 'category', data: statsYears.value, axisLabel: { color: '#cfefff' }, axisLine: { lineStyle: { color: '#2e6ba8' } } }, @@ -391,13 +391,15 @@ export default {
+
序号
时间
地区
品类
价格({{ unit }})
-
+
+
{{ idx + 1 }}
{{ row.date }}
{{ row.region }}
{{ row.breed }}
@@ -418,7 +420,7 @@ export default {
-
+ -
+
@@ -479,7 +481,7 @@ export default { - -