From 3bdf6f42c6f3a3f2d354f6bb2659ca6e69cd7b7c Mon Sep 17 00:00:00 2001 From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com> Date: Fri, 13 Sep 2024 08:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/only/only/index.ts | 55 +++++++ src/views/only/only/index.vue | 246 +++++++++++++++++++++++++++++ src/views/only/only/onlyofForm.vue | 127 +++++++++++++++ 3 files changed, 428 insertions(+) create mode 100644 src/api/only/only/index.ts create mode 100644 src/views/only/only/index.vue create mode 100644 src/views/only/only/onlyofForm.vue diff --git a/src/api/only/only/index.ts b/src/api/only/only/index.ts new file mode 100644 index 0000000..cf92a82 --- /dev/null +++ b/src/api/only/only/index.ts @@ -0,0 +1,55 @@ +import request from '@/config/axios' + +// 文件编辑 VO +export interface onlyofVO { + id: number // id + fileName: string // 文件名 + fileSize: number // 文件大小 + fileType: string // 文件类型 + filePath: string // 文件路径 + uploadDate: Date // 更新时间 + status: string // 知识状态(0正常 1停用) +} + +// 文件编辑 API +export const onlyofApi = { + // 文件编辑 + getonlyofedit: async (editvo) => { + console.log("getonlyofedit",editvo) + return await request.get({ url: `/only/onlyof/edit`,params: editvo}) + }, + // 新增文件编辑 + uploadFile: async (data) => { + console.log("4567890",data) + return await request.post({ url: `/only/onlyof/update`, data }) + }, + // 查询文件编辑分页 + getonlyofPage: async (params: any) => { + return await request.get({ url: `/only/onlyof/page`, params }) + }, + + // 查询文件编辑详情 + getonlyof: async (id: number) => { + return await request.get({ url: `/only/onlyof/get?id=` + id }) + }, + + // 新增文件编辑 + createonlyof: async (data: onlyofVO) => { + return await request.post({ url: `/only/onlyof/create`, data }) + }, + + // 修改文件编辑 + updateonlyof: async (data: onlyofVO) => { + return await request.put({ url: `/only/onlyof/update`, data }) + }, + + // 删除文件编辑 + deleteonlyof: async (id: number) => { + return await request.delete({ url: `/only/onlyof/delete?id=` + id }) + }, + + // 导出文件编辑 Excel + exportonlyof: async (params) => { + return await request.download({ url: `/only/onlyof/export-excel`, params }) + }, +} diff --git a/src/views/only/only/index.vue b/src/views/only/only/index.vue new file mode 100644 index 0000000..877ca00 --- /dev/null +++ b/src/views/only/only/index.vue @@ -0,0 +1,246 @@ + + + \ No newline at end of file diff --git a/src/views/only/only/onlyofForm.vue b/src/views/only/only/onlyofForm.vue new file mode 100644 index 0000000..2a90b64 --- /dev/null +++ b/src/views/only/only/onlyofForm.vue @@ -0,0 +1,127 @@ + + \ No newline at end of file