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