3.7.6 版本 一对多代码生成界面和代码会出现乱码
一对多代码生成界面和代码会出现乱码发帖请详细些 admin 发表于 2018-6-8 10:06 static/image/common/back.gif
发帖请详细些
代码生成方式是:EasyUI标签列表上下布局(列表数据编辑)+Table风格表单
controller:
@RequestMapping(params = "datagrid")
public void datagrid(JformResumeExpInfoEntity jformResumeExpInfo,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(JformResumeExpInfoEntity.class, dataGrid);
String mainId = request.getParameter("mainId");
if(oConvertUtils.isNotEmpty(mainId)){
//查询条件组装�? org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, jformResumeExpInfo,request.getParameterMap());
try{
//自定义追加查询条�? cq.eq("resumeId", mainId);
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.jformResumeInfoService.getDataGridReturn(cq, true);
}
TagUtil.datagrid(response, dataGrid);
}
JSP 页面:
<!-- tab内容 -->
<div class="con-wrapper" id="con-wrapper1" style="display: block;">
<div class="row form-wrapper">
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>�?��时间�?/b>
</div>
<div class="col-xs-3">
<input name="beginDate" maxlength="0" type="text" class="form-control"style="width:150px;background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;"ignore="ignore"value='<fmt:formatDate value='${beginDate}' type="date" pattern="yyyy-MM-dd"/>'/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">�?��时间</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>结束时间�?/b>
</div>
<div class="col-xs-3">
<input name="endDate" maxlength="0" type="text" class="form-control"style="width:150px;background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;"ignore="ignore"value='<fmt:formatDate value='${endDate}' type="date" pattern="yyyy-MM-dd"/>'/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">结束时间</label>
</div>
$(function(){
//查看模式情况�?删除和上传附件功能禁止使�? if(location.href.indexOf("load=detail")!=-1){
$(".jeecgDetail").hide();
}
if(location.href.indexOf("mode=read")!=-1){
//查看模式控件禁用
$("#formobj").find(":input").attr("disabled","disabled");
}
if(location.href.indexOf("mode=onbutton")!=-1){
//其他模式显示提交按钮
$("#sub_tr").show();
}
});
你本地workspace和项目的编码 是否是UTF-8 admin 发表于 2018-6-8 14:55 static/image/common/back.gif
你本地workspace和项目的编码 是否是UTF-8
都是啊,我在确认下 tsh0794 发表于 2018-6-8 15:41 static/image/common/back.gif
都是啊,我在确认下
我去确认了http://www.jeecg.org/forum.php?mod=image&aid=16688&size=300x300&key=bf70b18abba8d851&nocache=yes&type=fixnone http://www.jeecg.org/forum.php?mod=image&aid=16687&size=300x300&key=8b584fc4e2ef5b53&nocache=yes&type=fixnone 问题已经修复了,请参考git修改日志
https://gitee.com/jeecg/jeecg
附件是最新的代码生成器jar,也可以下载替换原来的,把原来的记得删掉,和修改pom引用
admin 发表于 2018-6-11 16:19 static/image/common/back.gif
问题已经修复了,请参考git修改日志
https://gitee.com/jeecg/jeecg
收到,非常感谢
页:
[1]