feat(web): 新增根据当前登陆用户查询记录
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user