Merge remote-tracking branch 'origin/master'
This commit is contained in:
+6
-2
@@ -3,6 +3,8 @@ package com.jero.codegenerate.generate.config;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.UnsupportedEncodingException;
|
||||||
|
import java.net.URLDecoder;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -60,9 +62,11 @@ public class CreateFileConfig {
|
|||||||
* @param
|
* @param
|
||||||
* @return java.util.List<java.io.File>
|
* @return java.util.List<java.io.File>
|
||||||
*/
|
*/
|
||||||
public List<File> listTemplateRootDirs() {
|
public List<File> listTemplateRootDirs() throws UnsupportedEncodingException {
|
||||||
String file = this.getClass().getResource(this.templatePath).getFile();
|
String file = this.getClass().getResource(this.templatePath).getFile();
|
||||||
file = file.replaceAll("%20", " ");
|
// 对中文路径进行处理
|
||||||
|
file = URLDecoder.decode(file.replaceAll("%20", " "), "UTF-8");
|
||||||
|
|
||||||
log.debug("-------classpath-------" + file);
|
log.debug("-------classpath-------" + file);
|
||||||
if (file.indexOf("/BOOT-INF/classes!") != -1 || file.indexOf("/BOOT-INF/lib/") != -1) {
|
if (file.indexOf("/BOOT-INF/classes!") != -1 || file.indexOf("/BOOT-INF/lib/") != -1) {
|
||||||
// 当前工程路径
|
// 当前工程路径
|
||||||
|
|||||||
+2
-2
@@ -58,10 +58,10 @@
|
|||||||
<#elseif po.dictField?default("")?trim?length gt 1>
|
<#elseif po.dictField?default("")?trim?length gt 1>
|
||||||
<#if query_field_no gt 1> </#if><j-dict-select-tag placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}" dictCode="${po.dictField}"/>
|
<#if query_field_no gt 1> </#if><j-dict-select-tag placeholder="请选择${po.filedComment}" v-model="queryParam.${po.fieldName}" dictCode="${po.dictField}"/>
|
||||||
<#else>
|
<#else>
|
||||||
<#if query_field_no gt 1> </#if><a-input placeholder="请输入${po.filedComment}" v-model="queryParam.${po.fieldName}"></a-input>
|
<#if query_field_no gt 1> </#if><j-input placeholder="请输入${po.filedComment}" v-model="queryParam.${po.fieldName}"></j-input>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#if query_field_no gt 1> </#if><a-input placeholder="请输入${po.filedComment}" v-model="queryParam.${po.fieldName}"></a-input>
|
<#if query_field_no gt 1> </#if><j-input placeholder="请输入${po.filedComment}" v-model="queryParam.${po.fieldName}"></j-input>
|
||||||
</#if>
|
</#if>
|
||||||
<#if query_field_no gt 1> </#if></a-form-item>
|
<#if query_field_no gt 1> </#if></a-form-item>
|
||||||
<#if query_field_no gt 1> </#if></a-col>
|
<#if query_field_no gt 1> </#if></a-col>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<span>
|
||||||
<!--YYYY-MM-DD HH:mm:ss-->
|
<!--YYYY-MM-DD HH:mm:ss-->
|
||||||
<a-date-picker
|
<a-date-picker
|
||||||
v-if="showType === 'time'"
|
v-if="showType === 'time'"
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
@openChange="openChangeOne"
|
@openChange="openChangeOne"
|
||||||
@panelChange="panelChangeOne">
|
@panelChange="panelChangeOne">
|
||||||
</a-date-picker>
|
</a-date-picker>
|
||||||
</div>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
|||||||
Reference in New Issue
Block a user