1
0

feat(web): 新增根据当前登陆用户查询记录

This commit is contained in:
2024-11-27 19:02:08 +08:00
parent aba9a1716c
commit efe393835c
11 changed files with 102 additions and 56 deletions

View File

@@ -2,6 +2,7 @@ import './dialog-resource.css'
import {
apiGet,
apiPost,
formCreatedUserAndModifiedUser,
formInputClearable,
formInputSingleFileStatic,
horizontalFormOptions,
@@ -10,7 +11,7 @@ import {
size500MB
} from "../constants.js";
function detailForm() {
function detailForm(showCreatedUserAndModifiedUser = false) {
return {
type: 'form',
...horizontalFormOptions(),
@@ -292,7 +293,8 @@ function detailForm() {
...inputFileFormItemCommonOptions(undefined, size500MB),
},
]
}
},
...(showCreatedUserAndModifiedUser ? formCreatedUserAndModifiedUser() : [])
]
}
}
@@ -333,7 +335,7 @@ export function resourceDetailDialog() {
actions: [],
size: 'md',
body: {
...detailForm(),
...detailForm(true),
static: true,
initApi: apiGet('${base}/data_resource/detail/${id}'),
data: {