From 9bfd5888bf37324a0764d779c1432f5479e9ebc1 Mon Sep 17 00:00:00 2001 From: lijiahang Date: Mon, 25 Nov 2024 10:23:40 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=99=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/orion-vue-api.ts.vm | 8 ++++---- .../orion-vue-views-components-card-list.vue.vm | 4 ++-- .../orion-vue-views-components-form-drawer.vue.vm | 9 ++++++--- .../orion-vue-views-components-form-modal.vue.vm | 9 ++++++--- .../templates/orion-vue-views-components-table.vue.vm | 4 ++-- 5 files changed, 20 insertions(+), 14 deletions(-) diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-api.ts.vm b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-api.ts.vm index 46d310d1..bada0235 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-api.ts.vm +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-api.ts.vm @@ -72,14 +72,14 @@ export interface ${vue.featureEntity}QueryResponse extends TableData { * $apiComment.create */ export function create${vue.featureEntity}(request: ${vue.featureEntity}CreateRequest) { - return axios.post('/${package.ModuleName}/${typeHyphen}/create', request); + return axios.post('/${package.ModuleName}/${typeHyphen}/create', request); } /** * $apiComment.updateById */ export function update${vue.featureEntity}(request: ${vue.featureEntity}UpdateRequest) { - return axios.put('/${package.ModuleName}/${typeHyphen}/update', request); + return axios.put('/${package.ModuleName}/${typeHyphen}/update', request); } /** @@ -126,14 +126,14 @@ export function get${vue.featureEntity}Count(request: ${vue.featureEntity}QueryR * $apiComment.deleteById */ export function delete${vue.featureEntity}(id: number) { - return axios.delete('/${package.ModuleName}/${typeHyphen}/delete', { params: { id } }); + return axios.delete('/${package.ModuleName}/${typeHyphen}/delete', { params: { id } }); } /** * $apiComment.batchDelete */ export function batchDelete${vue.featureEntity}(idList: Array) { - return axios.delete('/${package.ModuleName}/${typeHyphen}/batch-delete', { + return axios.delete('/${package.ModuleName}/${typeHyphen}/batch-delete', { params: { idList }, paramsSerializer: params => { return qs.stringify(params, { arrayFormat: 'comma' }); diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm index e2935ba9..9c3aea63 100644 --- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm +++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm @@ -34,8 +34,8 @@ #if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long") + hide-button + allow-clear /> #elseif("$field.propertyType" == "Date") + placeholder="请选择${field.comment}" + allow-clear /> #else #if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long") + hide-button + allow-clear /> #elseif("$field.propertyType" == "Date") + show-time + allow-clear /> #else + placeholder="请选择${field.comment}" + allow-clear /> #else #if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long") + hide-button + allow-clear /> #elseif("$field.propertyType" == "Date") + show-time + allow-clear /> #else + hide-button + allow-clear /> #elseif("$field.propertyType" == "Date")