From e5cfc80916e7e53b887d06bf61992f71d8eef483 Mon Sep 17 00:00:00 2001 From: Austin Date: Sun, 20 Sep 2026 10:44:27 +0800 Subject: [PATCH] =?UTF-8?q?chore(imFile):=20=E4=B8=B4=E6=97=B6=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E7=94=A8=E9=80=94=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 注释掉页面、表单和列表中的用途相关代码,后续需要时可恢复 --- web/src/views/imFile/model.ts | 40 ++++++++++++++++++----------------- web/src/views/imFile/view.vue | 10 +++++---- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/web/src/views/imFile/model.ts b/web/src/views/imFile/model.ts index c86a80c..439084d 100644 --- a/web/src/views/imFile/model.ts +++ b/web/src/views/imFile/model.ts @@ -74,16 +74,17 @@ export const schemas = ref([ placeholder: '请选择状态', }, }, - { - field: 'purpose', - component: 'NSelect', - label: '用途', - componentProps: { - clearable: true, - options: dict.getOption('ImFilePurposeOptions'), - placeholder: '请选择用途', - }, - }, + // 用途暂不开放,后续需要时恢复 + // { + // field: 'purpose', + // component: 'NSelect', + // label: '用途', + // componentProps: { + // clearable: true, + // options: dict.getOption('ImFilePurposeOptions'), + // placeholder: '请选择用途', + // }, + // }, { field: 'mimeType', component: 'NInput', @@ -119,15 +120,16 @@ export const columns = [ return dict.getLabel('ImFileStatusOptions', row.status); }, }, - { - title: '用途', - key: 'purpose', - align: 'left', - width: 120, - render(row: State) { - return dict.getLabel('ImFilePurposeOptions', row.purpose) || row.purpose; - }, - }, + // 用途暂不开放,后续需要时恢复 + // { + // title: '用途', + // key: 'purpose', + // align: 'left', + // width: 120, + // render(row: State) { + // return dict.getLabel('ImFilePurposeOptions', row.purpose) || row.purpose; + // }, + // }, { title: '上传用户', key: 'userId', align: 'left', width: 120 }, { title: 'MIME', key: 'mimeType', align: 'left', width: 180 }, { title: '大小', key: 'size', align: 'left', width: 110 }, diff --git a/web/src/views/imFile/view.vue b/web/src/views/imFile/view.vue index 5c29d0b..570cba7 100644 --- a/web/src/views/imFile/view.vue +++ b/web/src/views/imFile/view.vue @@ -10,7 +10,8 @@ {{ formValue.tenantName }} {{ statusLabel }} - {{ purposeLabel }} + + {{ formValue.userId || '-' }} {{ formValue.mimeType }} {{ formValue.size }} @@ -53,9 +54,10 @@ const formValue = ref(newState(null)); const dialogWidth = computed(() => adaModalWidth(980)); const statusLabel = computed(() => dict.getLabel('ImFileStatusOptions', formValue.value.status)); - const purposeLabel = computed( - () => dict.getLabel('ImFilePurposeOptions', formValue.value.purpose) || formValue.value.purpose - ); + // 用途暂不开放,后续需要时恢复 + // const purposeLabel = computed( + // () => dict.getLabel('ImFilePurposeOptions', formValue.value.purpose) || formValue.value.purpose + // ); function openModal(state: State) { showModal.value = true;