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: '请选择状态',
},
},
{
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 },
+6 -4
View File
@@ -10,7 +10,8 @@
<n-descriptions label-placement="left" bordered :column="settingStore.isMobile ? 1 : 2">
<n-descriptions-item label="商户">{{ formValue.tenantName }}</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="MIME">{{ formValue.mimeType }}</n-descriptions-item>
<n-descriptions-item label="大小">{{ formValue.size }}</n-descriptions-item>
@@ -53,9 +54,10 @@
const formValue = ref<State>(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;