upper attachment-selector to lib

This commit is contained in:
Timi
2026-10-21 16:24:00 +08:00
parent e40c912dd9
commit c870bcdd39
43 changed files with 678 additions and 1663 deletions
@@ -70,12 +70,8 @@
<t-cell-group title="跟进内容" theme="card" v-entrance-transition>
<div class="content bg-white" v-text="detail.content || '未填写跟进内容'" />
<div class="media-wrap bg-white">
<media-selector
:model-value="attachmentUrlList"
:photo-items="attachmentItemList"
:show-add="false"
:show-remove="false"
:show-viewer-actions="false"
<attachment-selector :readonly="true"
:items="attachmentItemList"
empty-text="暂无附件"
title="附件"
/>
@@ -133,7 +129,7 @@ import { Message } from "@/utils/message";
import { getErrorMessage } from "@/utils/error";
import FollowUpReminderAPI from "@/api/FollowUpReminderAPI";
import CustomerProfileCard from "@/components/CustomerProfileCard.vue";
import MediaSelector from "@/components/mediaSelector/MediaSelector.vue";
import AttachmentSelector from "@/components/attachmentSelector/AttachmentSelector.vue";
import type { PhotoItem } from "@/types/Photo";
import { getAttachmentReadURL } from "@/utils/attachment";
import { corePermissionCodes, permissionCodes } from "@/utils/permission";
@@ -202,7 +198,6 @@ const attachmentItemList = computed<PhotoItem[]>(() => (detail.value?.attachment
previewUrl: getAttachmentReadURL(item.id || ""),
url: getAttachmentReadURL(item.id || "", 90)
})));
const attachmentUrlList = computed(() => attachmentItemList.value.map(item => item.url));
function hasChannel(channel: FollowUpReminderNotifyChannel): boolean {
const item = detail.value;