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 },