From fe2d6627b8f1002af7a31b08f6f43bec034d04ee Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期三, 21 十月 2026 18:29:07 +0800
Subject: [PATCH] feat: 完善课题、会员、财务、企微页面并新增资产/用车/采购
---
src/views/wxcp/activity/modules/signup-list.vue | 34 +++++++++++++++++++++++++++++++---
1 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/src/views/wxcp/activity/modules/signup-list.vue b/src/views/wxcp/activity/modules/signup-list.vue
index 2c1b953..280a107 100644
--- a/src/views/wxcp/activity/modules/signup-list.vue
+++ b/src/views/wxcp/activity/modules/signup-list.vue
@@ -16,6 +16,7 @@
} from 'ant-design-vue';
import { TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
+import { toAccessibleFileUrl } from '#/utils';
import {
cancelSignup,
checkInSignup,
@@ -59,6 +60,16 @@
function isImage(item: WxCpActivityApi.SignupAttachment) {
return (item.contentType || '').startsWith('image/');
+}
+
+/** 鍚庣闄勪欢鍦板潃甯︾殑鏄悗绔嚜宸遍厤缃殑鍩熷悕锛屾敼鍐欐垚鍚屾簮璺緞鍚庢墠鑳借 <img> 鍔犺浇 */
+function fileUrl(item: WxCpActivityApi.SignupAttachment) {
+ return toAccessibleFileUrl(item.previewURL || item.url);
+}
+
+/** 涓嬭浇閾炬帴鍚岀悊锛屼紭鍏堢敤 downloadURL */
+function downloadUrl(item: WxCpActivityApi.SignupAttachment) {
+ return toAccessibleFileUrl(item.downloadURL || item.url);
}
function formatSize(bytes?: number) {
@@ -134,6 +145,23 @@
<Tooltip v-if="row.content" :title="row.content">
<span class="line-clamp-2">{{ row.content }}</span>
</Tooltip>
+ <span v-else class="text-gray-400">-</span>
+ </template>
+
+ <template #fieldValues="{ row }">
+ <div v-if="row.fieldValues?.length" class="space-y-1 text-xs">
+ <div v-for="item in row.fieldValues" :key="item.fieldId">
+ <span class="text-gray-500">{{ item.fieldLabel }}锛�</span>
+ <span>{{ item.fieldValue }}</span>
+ </div>
+ </div>
+ <span v-else class="text-gray-400">-</span>
+ </template>
+
+ <template #ratingScore="{ row }">
+ <span v-if="row.ratingScore">
+ {{ row.ratingScore }} 鏄�
+ </span>
<span v-else class="text-gray-400">-</span>
</template>
@@ -215,18 +243,18 @@
</div>
<a
v-if="isImage(item)"
- :href="item.previewURL || item.url"
+ :href="fileUrl(item)"
target="_blank"
rel="noopener noreferrer"
>
<img
- :src="item.previewURL || item.url"
+ :src="fileUrl(item)"
alt="闄勪欢棰勮"
class="max-h-40 rounded object-contain"
/>
</a>
<a
- :href="item.downloadURL || item.url"
+ :href="downloadUrl(item)"
target="_blank"
rel="noopener noreferrer"
class="text-xs text-blue-500 hover:underline"
--
Gitblit v1.9.3