From af85dd610f4a363abfb3e7ae26f1a3fcf06ee590 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 03 十一月 2026 10:20:31 +0800
Subject: [PATCH] feat(app): 移除 App 端全部附件上传、下载、预览功能
---
src/pages/crm/clue/detail.vue | 41 +----------------------------------------
1 files changed, 1 insertions(+), 40 deletions(-)
diff --git a/src/pages/crm/clue/detail.vue b/src/pages/crm/clue/detail.vue
index 8df4c15..3ae5d44 100644
--- a/src/pages/crm/clue/detail.vue
+++ b/src/pages/crm/clue/detail.vue
@@ -16,7 +16,6 @@
transformClue,
transferClue,
updatePermission,
- uploadCrmFile,
type Clue,
type CrmPermission,
type DictData,
@@ -52,7 +51,6 @@
const memberUserId = ref<number>();
const memberLevel = ref(2);
const saving = ref(false);
- const uploading = ref(false);
const canUpdate = computed(() => hasPermission("crm:clue:update"));
const owner = computed(() => clue.value?.ownerUserId === state.user?.id);
const typeOptions = computed(() =>
@@ -120,32 +118,6 @@
icon: "none",
});
}
- }
- async function chooseFollowImage() {
- if (!state.accessToken || uploading.value) return;
- uni.chooseImage({
- count: 9 - followForm.picUrls.length,
- success: async result => {
- uploading.value = true;
- try {
- for (const path of result.tempFilePaths) {
- const file = await uploadCrmFile(state.accessToken!, path);
- const url = file.previewURL || file.url;
- if (url) followForm.picUrls.push(url);
- }
- } catch (error) {
- uni.showToast({
- title: error instanceof Error ? error.message : "鍥剧墖涓婁紶澶辫触",
- icon: "none",
- });
- } finally {
- uploading.value = false;
- }
- },
- });
- }
- function removeImage(index: number) {
- followForm.picUrls.splice(index, 1);
}
async function saveFollow() {
if (
@@ -317,19 +289,8 @@
</picker>
<view class="required-label">璺熻繘鍐呭</view><textarea v-model="followForm.content"
placeholder="璇疯緭鍏ユ湰娆¤窡杩涘唴瀹�" ></textarea>
- <view class="upload-head"><text>鍥剧墖</text><text @click="chooseFollowImage">涓婁紶鍥剧墖</text></view>
- <view v-if="followForm.picUrls.length"
- class="image-list">
- <view v-for="(url,index) in followForm.picUrls"
- :key="url"
- class="image-item">
- <image :src="url"
- mode="aspectFill"
- @click="uni.previewImage({urls:followForm.picUrls,current:url})" /><text @click="removeImage(index)">脳</text>
- </view>
- </view>
<button class="primary"
- :loading="saving || uploading"
+ :loading="saving"
@click="saveFollow">淇濆瓨璺熻繘</button>
</view>
<view v-for="item in followUps"
--
Gitblit v1.9.3