import { resultSuccess } from '../_util';

const taskManagement = [
  {
    id: 1002,
    taskName: '专项检查任务2025',
    selfCheckUnit: '运维部',
    taskType: 0,
    shouldCompleteTime: '2024-03-25 15:30:00',
    activeStatus: 1,
    taskStage: 1,
    isOverdue: 0,
  },
  {
    id: 1003,
    taskName: '季度检查任务2026',
    selfCheckUnit: '技术部',
    taskType: 2,
    shouldCompleteTime: '2024-06-30 18:00:00',
    activeStatus: 0,
    taskStage: 1,
    isOverdue: 0,
  },
  {
    id: 1005,
    taskName: '日常检查任务20295123458111111',
    selfCheckUnit: '质量部',
    taskType: 2,
    shouldCompleteTime: '2024-03-21 14:00:00',
    activeStatus: 2,
    taskStage: 4,
    isOverdue: 1,
  },
];
const taskManagementItem = {
  id: 1001,
  taskName: '日常检查任务2024',
  selfCheckUnit: '安全生产部',
  taskType: 2,
  taskTemplate: 2,
  shouldCompleteTime: '2024-03-20 10:00',
  checkRequirement: '检查要求',
  checkUser: [
    {
      id: 1,
      realname: 'test111',
      username: '3133',
    },
    {
      id: 3,
      realname: 'test333',
      username: '3135',
    },
  ],
  isPush: true,
  createUser: '张三',
};
const taskExecutionDoing = [
  {
    id: 1001,
    taskName: '日常检查任务2024',
    selfCheckUnit: '安全生产部',
    taskType: '日常检查',
    shouldCompleteTime: '2024-03-20 10:00:00',
    activeStatus: 1,
    taskStage: 0,
    createTime: '2024-03-19 10:00:00',
    updateTime: '2024-03-19 10:00:00',
    isOverdue: 0,
  },
  {
    id: 1002,
    taskName: '专项检查任务2025',
    selfCheckUnit: '运维部',
    taskType: '专项检查',
    shouldCompleteTime: '2024-03-25 15:30:00',
    activeStatus: 1,
    taskStage: 0,
    createTime: '2024-03-19 11:00:00',
    updateTime: '2024-03-19 11:00:00',
    isOverdue: 0,
  },
  {
    id: 1003,
    taskName: '季度检查任务2026',
    selfCheckUnit: '技术部',
    taskType: '季度检查',
    shouldCompleteTime: '2024-06-30 18:00:00',
    activeStatus: 0,
    taskStage: 1,
    createTime: '2024-03-19 12:00:00',
    updateTime: '2024-03-19 12:00:00',
    isOverdue: 0,
  },
  {
    id: 1004,
    taskName: '年度检查任务2027',
    selfCheckUnit: '工程部',
    taskType: '年度检查',
    shouldCompleteTime: '2024-12-31 23:59:59',
    activeStatus: 0,
    taskStage: 2,
    createTime: '2024-03-19 13:00:00',
    updateTime: '2024-03-19 13:00:00',
    isOverdue: 0,
  },
  {
    id: 1005,
    taskName: '日常检查任务20295123458111111',
    selfCheckUnit: '质量部',
    taskType: '日常检查',
    shouldCompleteTime: '2024-03-21 14:00:00',
    activeStatus: 1,
    taskStage: 2,
    createTime: '2024-03-19 14:00:00',
    updateTime: '2024-03-19 16:00:00',
    isOverdue: 1,
  },
];
const taskExecutionDone = [
  {
    id: 1001,
    taskName: '任务1',
    selfCheckUnit: '单位1',
    taskType: '类型1',
    shouldCompleteTime: '2021-01-01',
    submitTime: '2021-01-01',
    activeStatus: 1,
    taskStage: 0,
    isOverdue: 1,
  },
  {
    id: 1002,
    taskName: '任务2',
    selfCheckUnit: '单位2',
    taskType: '类型2',
    shouldCompleteTime: '2021-01-01',
    submitTime: '2021-01-01',
    activeStatus: 0,
    taskStage: 0,
    isOverdue: 1,
  },
];

export default [
  {
    url: '/eye_api_bak/api/admin/task/getTaskManagementList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(taskManagement);
    },
  },
  {
    url: '/eye_api_bak/api/admin/task/getTaskManagementItem',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(taskManagementItem);
    },
  },
  {
    url: '/eye_api_bak/api/admin/task/getTaskDoingList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(taskExecutionDoing);
    },
  },
  {
    url: '/eye_api_bak/api/admin/task/getTaskDoneList',
    timeout: 1000,
    method: 'get',
    response: () => {
      return resultSuccess(taskExecutionDone);
    },
  },
];
