chore(imFile): 临时隐藏用途相关功能

注释掉页面、表单和列表中的用途相关代码,后续需要时可恢复
This commit is contained in:
Austin
2026-09-20 10:44:27 +08:00
parent c7265252d8
commit e5cfc80916
2 changed files with 27 additions and 23 deletions
+21 -19
View File
@@ -74,16 +74,17 @@ export const schemas = ref<FormSchema[]>([
placeholder: '请选择状态', placeholder: '请选择状态',
}, },
}, },
{ // 用途暂不开放,后续需要时恢复
field: 'purpose', // {
component: 'NSelect', // field: 'purpose',
label: '用途', // component: 'NSelect',
componentProps: { // label: '用途',
clearable: true, // componentProps: {
options: dict.getOption('ImFilePurposeOptions'), // clearable: true,
placeholder: '请选择用途', // options: dict.getOption('ImFilePurposeOptions'),
}, // placeholder: '请选择用途',
}, // },
// },
{ {
field: 'mimeType', field: 'mimeType',
component: 'NInput', component: 'NInput',
@@ -119,15 +120,16 @@ export const columns = [
return dict.getLabel('ImFileStatusOptions', row.status); return dict.getLabel('ImFileStatusOptions', row.status);
}, },
}, },
{ // 用途暂不开放,后续需要时恢复
title: '用途', // {
key: 'purpose', // title: '用途',
align: 'left', // key: 'purpose',
width: 120, // align: 'left',
render(row: State) { // width: 120,
return dict.getLabel('ImFilePurposeOptions', row.purpose) || row.purpose; // render(row: State) {
}, // return dict.getLabel('ImFilePurposeOptions', row.purpose) || row.purpose;
}, // },
// },
{ title: '上传用户', key: 'userId', align: 'left', width: 120 }, { title: '上传用户', key: 'userId', align: 'left', width: 120 },
{ title: 'MIME', key: 'mimeType', align: 'left', width: 180 }, { title: 'MIME', key: 'mimeType', align: 'left', width: 180 },
{ title: '大小', key: 'size', align: 'left', width: 110 }, { title: '大小', key: 'size', align: 'left', width: 110 },
+6 -4
View File
@@ -10,7 +10,8 @@
<n-descriptions label-placement="left" bordered :column="settingStore.isMobile ? 1 : 2"> <n-descriptions label-placement="left" bordered :column="settingStore.isMobile ? 1 : 2">
<n-descriptions-item label="商户">{{ formValue.tenantName }}</n-descriptions-item> <n-descriptions-item label="商户">{{ formValue.tenantName }}</n-descriptions-item>
<n-descriptions-item label="状态">{{ statusLabel }}</n-descriptions-item> <n-descriptions-item label="状态">{{ statusLabel }}</n-descriptions-item>
<n-descriptions-item label="用途">{{ purposeLabel }}</n-descriptions-item> <!-- 用途暂不开放,后续需要时恢复 -->
<!-- <n-descriptions-item label="用途">{{ purposeLabel }}</n-descriptions-item> -->
<n-descriptions-item label="上传用户">{{ formValue.userId || '-' }}</n-descriptions-item> <n-descriptions-item label="上传用户">{{ formValue.userId || '-' }}</n-descriptions-item>
<n-descriptions-item label="MIME">{{ formValue.mimeType }}</n-descriptions-item> <n-descriptions-item label="MIME">{{ formValue.mimeType }}</n-descriptions-item>
<n-descriptions-item label="大小">{{ formValue.size }}</n-descriptions-item> <n-descriptions-item label="大小">{{ formValue.size }}</n-descriptions-item>
@@ -53,9 +54,10 @@
const formValue = ref<State>(newState(null)); const formValue = ref<State>(newState(null));
const dialogWidth = computed(() => adaModalWidth(980)); const dialogWidth = computed(() => adaModalWidth(980));
const statusLabel = computed(() => dict.getLabel('ImFileStatusOptions', formValue.value.status)); 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) { function openModal(state: State) {
showModal.value = true; showModal.value = true;