| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- import { resultSuccess } from '../_util';
- const taskManagement = [
- {
- id: 1001,
- taskName: '日常检查任务2024',
- selfCheckUnit: '安全生产部',
- taskType: '日常检查',
- shouldCompleteTime: '2024-03-20 10:00:00',
- activeStatus: 1,
- taskStage: 0,
- isOverdue: 0,
- },
- {
- id: 1002,
- taskName: '专项检查任务2025',
- selfCheckUnit: '运维部',
- taskType: '专项检查',
- shouldCompleteTime: '2024-03-25 15:30:00',
- activeStatus: 1,
- taskStage: 1,
- isOverdue: 0,
- },
- {
- id: 1003,
- taskName: '季度检查任务2026',
- selfCheckUnit: '技术部',
- taskType: '季度检查',
- shouldCompleteTime: '2024-06-30 18:00:00',
- activeStatus: 0,
- taskStage: 2,
- isOverdue: 0,
- },
- {
- id: 1004,
- taskName: '年度检查任务2027',
- selfCheckUnit: '工程部',
- taskType: '年度检查',
- shouldCompleteTime: '2024-12-31 23:59:59',
- activeStatus: 0,
- taskStage: 3,
- isOverdue: 0,
- },
- {
- id: 1005,
- taskName: '日常检查任务20295123458111111',
- selfCheckUnit: '质量部',
- taskType: '日常检查',
- shouldCompleteTime: '2024-03-21 14:00:00',
- activeStatus: 2,
- taskStage: 4,
- isOverdue: 1,
- },
- ];
- 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/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);
- },
- },
- ];
|