From a241b66efcc41e973290a6722fb7a4d79b833ea1 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 13 十月 2026 09:54:32 +0800
Subject: [PATCH] feat(bi): 为图表配置接口添加名称字段
---
src/views/mes/md/item/modules/product-media-list.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/views/mes/md/item/modules/product-media-list.vue b/src/views/mes/md/item/modules/product-media-list.vue
index e2b2adc..804e178 100644
--- a/src/views/mes/md/item/modules/product-media-list.vue
+++ b/src/views/mes/md/item/modules/product-media-list.vue
@@ -48,14 +48,17 @@
);
const isReadOnly = computed(() => props.formType === 'detail'); // 鏄惁鍙
-const title = computed(() => props.kind); // 褰撳墠濯掍綋绫诲瀷鏍囬
+const title = computed(() =>
+ props.kind === 'SIP' ? '妫�楠屾寚瀵间功(SIP)' : '浣滀笟鎸囧涔�(SOP)',
+);
/** 灏嗗畬鏁� URL 杞负鐩稿璺緞锛岀‘淇濊蛋鍓嶇浠g悊 */
function resolveImageUrl(url?: string): string {
if (!url) return '';
try {
- const { pathname } = new URL(url, window.location.origin);
- return pathname;
+ const { pathname, search } = new URL(url, window.location.origin);
+ // 淇濈暀 pathname + 鏌ヨ鍙傛暟锛坧ublicKey锛夛紝纭繚鍚庣鑳介獙璇�
+ return pathname + search;
} catch {
return url;
}
@@ -125,7 +128,6 @@
label: '鍥剧墖',
component: markRaw(ImageUpload),
componentProps: {
- maxNumber: 1,
showDescription: false,
},
},
--
Gitblit v1.9.3