tuqin
2 天以前 b56e609f59a8de73a54212f00febee228b0fb66a
src/views/hrm/attendance/rule/data.ts
@@ -106,6 +106,28 @@
      },
    },
    {
      fieldName: 'effectiveStartDate',
      label: '生效开始日期',
      component: 'DatePicker',
      componentProps: {
        placeholder: '不选表示不限',
        valueFormat: 'YYYY-MM-DD',
        format: 'YYYY-MM-DD',
        style: { width: '100%' },
      },
    },
    {
      fieldName: 'effectiveEndDate',
      label: '生效结束日期',
      component: 'DatePicker',
      componentProps: {
        placeholder: '不选表示长期有效',
        valueFormat: 'YYYY-MM-DD',
        format: 'YYYY-MM-DD',
        style: { width: '100%' },
      },
    },
    {
      fieldName: 'status',
      label: '状态',
      component: 'RadioGroup',
@@ -186,6 +208,13 @@
    { field: 'earlyAllowMinutes', title: '早退允许(分钟)', width: 120 },
    { field: 'overtimeThreshold', title: '加班起算(小时)', width: 120 },
    {
      field: 'effectiveStartDate',
      title: '生效区间',
      minWidth: 200,
      formatter: ({ row }) =>
        `${row.effectiveStartDate || '不限'} ~ ${row.effectiveEndDate || '不限'}`,
    },
    {
      field: 'status',
      title: '状态',
      width: 80,