feat: 优化commonCrudConfig
This commit is contained in:
@@ -38,7 +38,7 @@ export const commonCrudConfig = (options = {
|
|||||||
title: '所属部门',
|
title: '所属部门',
|
||||||
type: 'dict-cascader',
|
type: 'dict-cascader',
|
||||||
search: {
|
search: {
|
||||||
show: false
|
show: options.dept_belong_id?.search || false
|
||||||
},
|
},
|
||||||
dict: dict({
|
dict: dict({
|
||||||
url: '/api/system/dept/all_dept/',
|
url: '/api/system/dept/all_dept/',
|
||||||
@@ -49,7 +49,7 @@ export const commonCrudConfig = (options = {
|
|||||||
}),
|
}),
|
||||||
column: {
|
column: {
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 200,
|
width: 300,
|
||||||
show: options.dept_belong_id?.table || false,
|
show: options.dept_belong_id?.table || false,
|
||||||
component:{
|
component:{
|
||||||
name: shallowRef(deptFormat),
|
name: shallowRef(deptFormat),
|
||||||
@@ -156,6 +156,12 @@ export const commonCrudConfig = (options = {
|
|||||||
column: {
|
column: {
|
||||||
width: 160,
|
width: 160,
|
||||||
show: options.create_datetime?.table || false,
|
show: options.create_datetime?.table || false,
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
show: false,
|
||||||
|
},
|
||||||
|
viewForm: {
|
||||||
|
show: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user