1.消息通知
2.健康银行:积分管理、员工打卡监测、积分兑换记录
This commit is contained in:
2026-02-06 18:03:53 +08:00
parent ae3a3bcab6
commit a416e9d7df
16 changed files with 1413 additions and 6 deletions
+159
View File
@@ -0,0 +1,159 @@
import { BasicColumn, FormSchema } from '/@/components/Table';
const options: any[] = [
{
label: '次',
value: 1,
},
{
label: '日',
value: 2,
},
{
label: '周',
value: 3,
},
{
label: '月',
value: 4,
},
{
label: '季',
value: 5,
},
{
label: '年',
value: 6,
},
];
export const columns: BasicColumn[] = [
{
title: '健康分类',
dataIndex: 'ruleCategory_dictText',
},
{
title: '健康行为',
dataIndex: 'ruleDesc',
},
{
title: '行为周期',
dataIndex: 'frequency',
customRender: ({ text }) => {
return options.find((item) => item.value === text)?.label || '';
},
width: 120,
},
{
title: '奖励积分',
dataIndex: 'points',
width: 120,
},
{
title: '状态',
dataIndex: 'status',
width: 120,
},
];
export const searchFormSchema: FormSchema[] = [
{
label: '健康图标',
field: 'a',
component: 'Input',
},
{
label: '健康分类',
field: 'ruleCategory',
component: 'Select',
componentProps: () => ({
options: [
{
label: '日常健康行为',
value: '日常健康行为',
},
{
label: '进阶健康行为',
value: '进阶健康行为',
},
{
label: '健康监测达标',
value: '健康监测达标',
},
],
}),
},
{
label: '发布日期',
field: 'c',
component: 'RangeDate',
componentProps: () => ({
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
}),
},
];
export const schemas: FormSchema[] = [
{
label: '健康图标',
field: 'icon',
component: 'JImageUpload',
},
{
label: '健康分类',
field: 'ruleCategory',
component: 'JDictSelectTag',
componentProps: () => ({
dictCode: 'points_rule_category',
}),
required: true,
},
{
label: '健康行为描述',
field: 'ruleDesc',
component: 'Input',
required: true,
},
{
label: '行为周期',
field: 'frequency',
component: 'RadioGroup',
defaultValue: 2,
componentProps: () => ({
options,
}),
required: true,
},
{
label: '奖励积分',
field: 'points',
component: 'InputNumber',
componentProps: () => ({
style: {
width: '100%',
},
}),
required: true,
},
{
label: '状态',
field: 'status',
component: 'RadioGroup',
defaultValue: 1,
componentProps: () => ({
options: [
{
label: '启用',
value: 1,
},
{
label: '停用',
value: 2,
},
],
}),
required: true,
show: true,
},
];