update
init
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
import { BasicColumn, FormSchema } from '/@/components/Table';
|
||||
|
||||
export const getColumn = (type = '0') => {
|
||||
return [
|
||||
{
|
||||
title: '单位名称',
|
||||
dataIndex: 'name',
|
||||
width: 200,
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: '详细地址',
|
||||
dataIndex: 'address',
|
||||
align: 'left',
|
||||
},
|
||||
{
|
||||
title: '电话',
|
||||
dataIndex: '',
|
||||
width: 150,
|
||||
ifShow: type === '0',
|
||||
},
|
||||
{
|
||||
title: '下级机构数量',
|
||||
dataIndex: 'childNum',
|
||||
width: 120,
|
||||
ifShow: type === '0',
|
||||
},
|
||||
{
|
||||
title: '员工数量',
|
||||
dataIndex: 'userNum',
|
||||
width: 120,
|
||||
},
|
||||
] as BasicColumn[];
|
||||
};
|
||||
|
||||
export const getSearchFormSchema = (type = '0') => {
|
||||
console.log(type);
|
||||
return [
|
||||
{
|
||||
label: '单位',
|
||||
field: 'parentCode',
|
||||
component: 'Input',
|
||||
componentProps: () => {
|
||||
return {
|
||||
getPopupContainer: () => document.body,
|
||||
};
|
||||
},
|
||||
slot: 'parentCodeSlot',
|
||||
},
|
||||
] as FormSchema[];
|
||||
};
|
||||
Reference in New Issue
Block a user