From a5378ba9d7f0aac37092c43eecdf54782d714bc5 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 29 一月 2026 17:58:25 +0800
Subject: [PATCH] fix: 财务大屏接口联调90%
---
src/views/reportAnalysis/financialAnalysis/components/ProductTypeSwitch.vue | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/views/reportAnalysis/financialAnalysis/components/ProductTypeSwitch.vue b/src/views/reportAnalysis/financialAnalysis/components/ProductTypeSwitch.vue
index 87cde44..98d07eb 100644
--- a/src/views/reportAnalysis/financialAnalysis/components/ProductTypeSwitch.vue
+++ b/src/views/reportAnalysis/financialAnalysis/components/ProductTypeSwitch.vue
@@ -4,9 +4,13 @@
class="product-type-switch"
@change="handleChange"
>
- <el-radio-button :label="1">鍘熸潗鏂�</el-radio-button>
- <el-radio-button :label="3">鍗婃垚鍝�</el-radio-button>
- <el-radio-button :label="2">鎴愬搧</el-radio-button>
+ <el-radio-button
+ v-for="opt in options"
+ :key="opt.label"
+ :label="opt.label"
+ >
+ {{ opt.text }}
+ </el-radio-button>
</el-radio-group>
</template>
@@ -15,8 +19,17 @@
const props = defineProps({
modelValue: {
- type: Number,
- default: 1, // 榛樿閫変腑"鍘熸潗鏂�"
+ type: [Number, String],
+ default: 1, // 榛樿閫変腑绗竴涓�
+ },
+ // 鍙厤缃�夐」锛岄粯璁ゆ槸鍘熺粍浠剁殑銆屽師鏉愭枡 / 鍗婃垚鍝� / 鎴愬搧銆�
+ options: {
+ type: Array,
+ default: () => [
+ { label: 1, text: '鍘熸潗鏂�' },
+ { label: 3, text: '鍗婃垚鍝�' },
+ { label: 2, text: '鎴愬搧' },
+ ],
},
})
--
Gitblit v1.9.3