feat(web): 完善confirmation快照页面
This commit is contained in:
@@ -92,11 +92,12 @@ export const size100MB = 104857600
|
||||
export const size500MB = 524288000
|
||||
export const size1GB = 1073741824
|
||||
|
||||
export function inputFileFormItemCommonOptions(accept = '*', maxSize = size5MB) {
|
||||
export function inputFileFormItemCommonOptions(accept = '*', maxSize = size5MB, maxLength = undefined) {
|
||||
return {
|
||||
useChunk: true,
|
||||
accept: accept,
|
||||
maxSize: maxSize,
|
||||
maxLength: maxLength,
|
||||
autoUpload: false,
|
||||
drag: true,
|
||||
startChunkApi: apiPost('${base}/upload/start'),
|
||||
|
||||
@@ -101,7 +101,7 @@ function detailForm(showCreatedUserAndModifiedUser = false) {
|
||||
multiple: false,
|
||||
required: true,
|
||||
joinValues: false,
|
||||
...inputFileFormItemCommonOptions('.zip', size1GB),
|
||||
...inputFileFormItemCommonOptions('.zip', size1GB, 1),
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -156,7 +156,7 @@ function detailForm(showCreatedUserAndModifiedUser = false) {
|
||||
multiple: false,
|
||||
required: true,
|
||||
joinValues: false,
|
||||
...inputFileFormItemCommonOptions('.xml'),
|
||||
...inputFileFormItemCommonOptions('.xml', undefined, 1),
|
||||
},
|
||||
formInputSingleFileStatic('hdfsSiteFile', 'hdfs-site.xml'),
|
||||
{
|
||||
@@ -167,7 +167,7 @@ function detailForm(showCreatedUserAndModifiedUser = false) {
|
||||
multiple: false,
|
||||
required: true,
|
||||
joinValues: false,
|
||||
...inputFileFormItemCommonOptions('.xml'),
|
||||
...inputFileFormItemCommonOptions('.xml', undefined, 1),
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -297,7 +297,7 @@ function detailForm(showCreatedUserAndModifiedUser = false) {
|
||||
description: '可以上传用于作为格式示范的样例数据',
|
||||
multiple: false,
|
||||
joinValues: false,
|
||||
...inputFileFormItemCommonOptions(undefined, size500MB),
|
||||
...inputFileFormItemCommonOptions(undefined, size500MB, 1),
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user