From 59e185d4cf6e1f023fc56cf8476e76efe9b256c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=AF=E8=88=AA=E8=80=81=E9=BD=90?= <280645618@qq.com>
Date: Thu, 2 Oct 2025 15:40:57 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96dou=E8=AE=A2=E5=8D=95list?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vue/src/views/dou/order/index.vue | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/vue/src/views/dou/order/index.vue b/vue/src/views/dou/order/index.vue
index 7900ce87..20be3666 100644
--- a/vue/src/views/dou/order/index.vue
+++ b/vue/src/views/dou/order/index.vue
@@ -136,7 +136,11 @@
-
+
+
+ {{getSkuValues(scope.row.spec)}}
+
+
@@ -416,6 +420,17 @@ export default {
this.loading = false;
});
},
+ getSkuValues(spec){
+ try {
+ // 解析 JSON,返回一个数组
+ const parsedSpec = JSON.parse(spec) || [];
+
+ // 使用 map 提取所有 value,使用 join() 用逗号连接
+ return parsedSpec.map(item => item.value).join(', ') || '';
+ } catch (error) {
+ return spec; // 如果 JSON 解析出错,返回空字符串
+ }
+ },
// 取消按钮
cancel() {
this.open = false;