CaiYuanYiTiHua/src/views/demo/report/report.data.ts

99 lines
1.9 KiB
TypeScript
Raw Normal View History

2024-06-20 17:08:15 +08:00
import { BasicColumn, FormSchema } from '@/components/Table';
import { h } from 'vue';
import { Switch,Tag } from 'ant-design-vue';
import { setRoleStatus } from '@/api/demo/system';
import { useMessage } from '@/hooks/web/useMessage';
type CheckedType = boolean | string | number;
export const columns: BasicColumn[] = [
{
title: '案件编号',
2024-06-21 17:47:17 +08:00
dataIndex: 'caseNo',
2024-06-20 17:08:15 +08:00
width: 200,
},{
title: '案件描述',
2024-06-21 17:47:17 +08:00
dataIndex: 'caseDescription',
2024-06-20 17:08:15 +08:00
width: 200,
},{
title: '办结状态',
2024-06-21 17:47:17 +08:00
dataIndex: 'handleStatusName',
2024-06-20 17:08:15 +08:00
width: 200,
},{
title: '上报人',
2024-06-21 17:47:17 +08:00
dataIndex: 'createUsername',
2024-06-20 17:08:15 +08:00
width: 200,
},{
title: '上报时间',
2024-06-21 17:47:17 +08:00
dataIndex: 'createTime',
2024-06-20 17:08:15 +08:00
width: 200,
}
];
export const searchFormSchema: FormSchema[] = [
{
field: 'key',
label: '关键字段',
component: 'Input',
colProps: { span: 6 },
},
{
field: 'is_intact',
component: 'Select',
label: '案件状态',
colProps: {
span: 6,
},
componentProps: {
options: [
{
label: '全部',
value: null,
key: null,
},
{
label: '未判读',
value: '0',
key: '0',
},{
label: '已提交',
value: '1',
key: '1',
},{
label: '已关闭',
value: '99',
key: '99',
},
],
},
},
];
export const formSchema: FormSchema[] = [
{
field: 'id',
label: '角色名称',
required: true,
component: 'Input',
ifShow:false,
},
{
field: 'name',
label: '角色名称',
required: true,
component: 'Input',
},
{
field: 'status',
label: '状态',
component: 'RadioButtonGroup',
defaultValue: 0,
componentProps: {
options: [
{ label: '启用', value: 0},
{ label: '停用', value: 1 },
],
},
},
];