Files
xj-admin/src/views/archivesManage/institution/institutionInfomation/depart/depart.data.ts
T
2025-06-27 17:42:38 +08:00

52 lines
1.2 KiB
TypeScript

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[];
};