diff --git a/src/api/project/task.ts b/src/api/project/task.ts index cc91b33b..2e96946e 100644 --- a/src/api/project/task.ts +++ b/src/api/project/task.ts @@ -3,6 +3,11 @@ import { get, post } from '@/api/request'; const env = import.meta.env; const PREFIX = env.VITE_API_PREFIX_PROJECT; +/** + * + * @param type: 0 我执行的 1我关注的 2所有任务 3我负责的 + * @returns + */ export const queryTaskListApi = (params: any) => { return post(`${PREFIX}task/list`, params); }; diff --git a/src/router/routerData.ts b/src/router/routerData.ts index eb79a66a..063ba920 100644 --- a/src/router/routerData.ts +++ b/src/router/routerData.ts @@ -54,6 +54,12 @@ export default [ name: 'TaskConfirm', component: () => import('@/views/task/simulationTask/confirmTask/index.vue'), }, + { + title: '我分发的', + path: '/task/send', + name: 'TaskSend', + component: () => import('@/views/task/simulationTask/mySend/index.vue'), + }, { title: '我执行的', path: '/task/execute', diff --git a/src/utils/enum/data.ts b/src/utils/enum/data.ts new file mode 100644 index 00000000..ac45b1a7 --- /dev/null +++ b/src/utils/enum/data.ts @@ -0,0 +1,12 @@ +export enum DIR_TYPE { + /** 知识库文件夹 */ + KNOWLEDGE = 1, + /** 项目节点文件夹 */ + PROJECT_NODE = 2, + /** 头像库文件夹 */ + AVATAR = 3, + /** 仿真参数库文件夹 */ + SIMULATION_PARAM = 4, + /** 训练模型文件夹 */ + TRAINING_MODEL = 5, +} diff --git a/src/utils/i18n/en.ts b/src/utils/i18n/en.ts index 02da8ac5..348c50d2 100644 --- a/src/utils/i18n/en.ts +++ b/src/utils/i18n/en.ts @@ -14,6 +14,7 @@ const lang = { '我的任务': 'My Task', '我发起的': 'I Initiated', '我确认的': 'I Confirmed', + '我分发的': 'I Distributed', '我执行的': 'I Executed', '我关注的': 'I Followed', '所有任务': 'All Tasks', diff --git a/src/utils/i18n/zh.ts b/src/utils/i18n/zh.ts index 72aa0e93..ac77ed34 100644 --- a/src/utils/i18n/zh.ts +++ b/src/utils/i18n/zh.ts @@ -14,6 +14,7 @@ const lang = { '我的任务': '我的任务', '我发起的': '我发起的', '我确认的': '我确认的', + '我分发的': '我分发的', '我执行的': '我执行的', '我关注的': '我关注的', '所有任务': '所有任务', diff --git a/src/views/task/projectDetail/index.vue b/src/views/task/projectDetail/index.vue index eed1ea83..b168ced2 100644 --- a/src/views/task/projectDetail/index.vue +++ b/src/views/task/projectDetail/index.vue @@ -18,7 +18,6 @@