From 31cdbf4308c84c4c9c351362d9781f4185893ab3 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Thu, 22 Feb 2024 10:27:25 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E4=BB=BB=E5=8A=A1=E7=B1=BB=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/task_type.ts | 26 +++++++ src/views/task_type/edit.vue | 138 +++++++++++++++++++++++++++++++++ src/views/task_type/index.vue | 141 ++++++++++++++++++++++++++++++++++ 3 files changed, 305 insertions(+) create mode 100644 src/api/task_type.ts create mode 100644 src/views/task_type/edit.vue create mode 100644 src/views/task_type/index.vue diff --git a/src/api/task_type.ts b/src/api/task_type.ts new file mode 100644 index 0000000..67aed88 --- /dev/null +++ b/src/api/task_type.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 任务类型列表 +export function apiTaskTypeLists(params: any) { + return request.get({ url: '/task.task_type/lists', params }) +} + +// 添加任务类型 +export function apiTaskTypeAdd(params: any) { + return request.post({ url: '/task.task_type/add', params }) +} + +// 编辑任务类型 +export function apiTaskTypeEdit(params: any) { + return request.post({ url: '/task.task_type/edit', params }) +} + +// 删除任务类型 +export function apiTaskTypeDelete(params: any) { + return request.post({ url: '/task.task_type/delete', params }) +} + +// 任务类型详情 +export function apiTaskTypeDetail(params: any) { + return request.get({ url: '/task.task_type/detail', params }) +} \ No newline at end of file diff --git a/src/views/task_type/edit.vue b/src/views/task_type/edit.vue new file mode 100644 index 0000000..eed198d --- /dev/null +++ b/src/views/task_type/edit.vue @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/task_type/index.vue b/src/views/task_type/index.vue new file mode 100644 index 0000000..1791f3e --- /dev/null +++ b/src/views/task_type/index.vue @@ -0,0 +1,141 @@ + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + 新增 + + + 删除 + + + + + + + + + + + + + + + + + + + + 编辑 + + + 删除 + + + + + + + + + + + + + + +