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")