import { EpPropMergeType } from "element-plus/es/utils"; export const MOD = "/tasks"; export const IMPORTMOD = "Task" type StatusType = { label: "全部" | "未开始" | "进行中" | "已完成" | "已超时"; value: string; type: EpPropMergeType< StringConstructor, "" | "info" | "primary" | "success" | "danger" | "warning", unknown >; }; export const defaultSearchForm = { //默认搜索条件 taskName: "", //任务名称 customName: "", //客户名称 contactsName: "", //联系人 executorName: "", //执行人 businessName: "", //商机明恒 orderName: "", //销售订单 phone: "", //电话 clueName: "", //线索名称 priority: "", //优先级 status: "", //任务状态 startDate: "", //开始时间 endDate: "", //截止时间 pageIndex: 1, pageSize: 10, }; export const PRIORITY = [ //优先级 { label: "低", value: 0 }, { label: "中", value: 1 }, { label: "高", value: 2 }, ]; export const STATUS: StatusType[] = [ //任务状态 { label: "未开始", value: "0", type: "info" }, { label: "进行中", value: "1", type: "primary" }, { label: "已完成", value: "2", type: "success" }, { label: "已超时", value: "3", type: "danger" }, ]; export const defalutExportForm = { priority: "", //优先级 executorId: null, //执行人id startDate: "", //开始日期 endDate: "", //截止日期 }; export const PAGE_LIST = `${MOD}/pageTask`; //列表 export const ADD_TASK = `${MOD}/addTask`; //新建任务 export const DELETE_TASKS = `${MOD}/deleteTasks`; //删除任务 export const UPDATE_TASK_STATUS = `${MOD}/updateTaskStatus`; //更新任务状态 export const UPDATE_TASK = `${MOD}/updateTask`;//修改任务 export const ALL_USERS = "/user/getSimpleActiveUserList"; //获取所有人 export const GET_IMPORT_TEMPLATE = `${MOD}/getImportTemplate`; export const IMPORT_DATA = `${MOD}/importData`;//导入 export const EXPORT_DATA = `${MOD}/exportData`;//按条件导出 export const EXPORT_DATA_BY_TASK_ID = `${MOD}/exportDataByTaskIds`;//选中导出 // 看板类型 export const TABLE_VIEW = 'table' export const KANBAN_VIEW = 'view'