1
0

feat(web): 优化静态文件展示

This commit is contained in:
2024-11-27 09:59:06 +08:00
parent 82a00d0313
commit d72ebfd1d1
2 changed files with 49 additions and 22 deletions

View File

@@ -1,27 +1,15 @@
import './dialog-permission.css'
import {apiGet, apiPost, horizontalFormOptions, inputFileFormItemCommonOptions, size100MB} from "../constants.js";
import {
apiGet,
apiPost,
formInputClearable,
formInputFileStatic,
horizontalFormOptions,
inputFileFormItemCommonOptions,
size100MB
} from "../constants.js";
import {resourceList} from "../../pages/index/tab-data.js";
function inputFileFormItemUpdateFieldOptions(target) {
let value = {}
value[target] = '${event.data.value}'
return {
onEvent: {
success: {
actions: [
// {
// actionType: 'setValue',
// componentId: 'permission_form',
// args: {
// value: value
// }
// }
]
}
}
}
}
function detailForm() {
return {
id: 'permission_form',
@@ -41,7 +29,7 @@ function detailForm() {
label: '数据资源',
required: true,
multiple: false,
size: 'lg',
size: 'md',
valueField: 'id',
labelField: 'name',
source: apiGet('${base}/data_resource/list'),
@@ -53,8 +41,11 @@ function detailForm() {
type: 'textarea',
label: '确权说明',
name: 'description',
...formInputClearable,
},
formInputFileStatic('evidenceIds'),
{
visibleOn: '${!detail}',
type: 'input-file',
label: '相关材料',
name: 'evidenceIds',