zhengyiming
6 天以前 0ef755133054cb0edc9455803c7b7bd23f563aa8
fix: s
2个文件已修改
24 ■■■■ 已修改文件
src/views/EmploymentManage/TaskManageList.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/EmploymentManage/constants/columns.ts 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/EmploymentManage/TaskManageList.vue
@@ -81,6 +81,7 @@
import { format } from '@/utils';
import { ModelValueType } from 'element-plus';
import { Message } from '@bole-core/core';
import dayjs from 'dayjs';
defineOptions({
  name: 'TaskManageList',
@@ -228,6 +229,23 @@
          return `${row.serviceFee}${EnumBillingMethodUnitText[row.billingMethod]}`;
        },
      },
      applyBeginTime: { type: 'date', format: 'YYYY-MM-DD' },
      applyEndTime: { type: 'date', format: 'YYYY-MM-DD' },
      //@ts-ignore
      applyStatus: {
        formatter: (row: API.GetTaskInfosQueryResultItem) => {
          const applyBeginTime = dayjs(row.applyBeginTime);
          const applyEndTime = dayjs(row.applyEndTime);
          const now = dayjs();
          if (applyEndTime.isBefore(now)) {
            return '已结束';
          } else if (applyBeginTime.isAfter(now)) {
            return '待开始';
          } else {
            return '进行中';
          }
        },
      },
    },
  }
);
src/views/EmploymentManage/constants/columns.ts
@@ -38,17 +38,17 @@
  },
  {
    id: '8',
    enCode: 'userCount',
    enCode: 'applyBeginTime',
    name: '报名开始',
  },
  {
    id: '9',
    enCode: 'userCount',
    enCode: 'applyEndTime',
    name: '报名结束',
  },
  {
    id: '10',
    enCode: 'userCount',
    enCode: 'applyStatus',
    name: '报名状态',
  },
  {