From b6df0c336ca5b352d831bcd88277aea176f9e84a Mon Sep 17 00:00:00 2001 From: wangzaikun <15100409853@163.com> Date: Sun, 31 Jul 2022 10:07:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/codegen/vue3/api/api.ts.vm | 12 ++++++------ .../main/resources/codegen/vue3/views/index.vue.vm | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm index b37365a07..69da81493 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm @@ -5,31 +5,31 @@ const request = useAxios() #set ($baseURL = "/${table.moduleName}/${simpleClassName_strikeCase}") // 查询${table.classComment}列表 -export const getPostPageApi = async (params: ${simpleClassName}PageReqVO) => { +export const get${simpleClassName}PageApi = async (params: ${simpleClassName}PageReqVO) => { return await request.get({ url: '${baseURL}/page', params }) } // 查询${table.classComment}详情 -export const getPostApi = async (id: number) => { +export const get${simpleClassName}Api = async (id: number) => { return await request.get({ url: '${baseURL}/get?id=' + id }) } // 新增${table.classComment} -export const createPostApi = async (data: ${simpleClassName}VO) => { +export const create${simpleClassName}Api = async (data: ${simpleClassName}VO) => { return await request.post({ url: '${baseURL}/create', data }) } // 修改${table.classComment} -export const updatePostApi = async (data: ${simpleClassName}VO) => { +export const update${simpleClassName}Api = async (data: ${simpleClassName}VO) => { return await request.put({ url: '${baseURL}/update', data }) } // 删除${table.classComment} -export const deletePostApi = async (id: number) => { +export const delete${simpleClassName}Api = async (id: number) => { return await request.delete({ url: '${baseURL}/delete?id=' + id }) } // 导出${table.classComment} Excel -export const exportPostApi = async (params: ${simpleClassName}ExcelReqVO) => { +export const export${simpleClassName}Api = async (params: ${simpleClassName}ExcelReqVO) => { return await request.download({ url: '${baseURL}/export-excel', params }) } diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm index 7d1b18b4f..c497a1801 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm @@ -6,9 +6,9 @@ import { useTable } from '@/hooks/web/useTable' import { useI18n } from '@/hooks/web/useI18n' import { FormExpose } from '@/components/Form' - import type { ${simpleClassName}VO } from '@/api/system/post/types' - import { rules, allSchemas } from './post.data' - import * as ${simpleClassName}Api from '@/api/system/post' + import type { ${simpleClassName}VO } from '@/api/${table.moduleName}/${simpleClassName}/types' + import { rules, allSchemas } from './${simpleClassName}.data' + import * as ${simpleClassName}Api from '@/api/${table.moduleName}/${simpleClassName}' const { t } = useI18n() // 国际化 // ========== 列表相关 ==========