提交 30889047 编写于 作者: doc_wei's avatar doc_wei

显示修改

上级 1e5a6c0f
......@@ -25,7 +25,9 @@ layui.config({
{ title: '序号', type: 'numbers'},
{ field: 'groupNum', title: '分组编号', width: 120 },
{ field: 'groupName', title: '分组名称', width: 120 },
{ field: 'groupDesc', title: '分组简介', width: 120 },
{ field: 'groupDesc', title: '分组简介', width: 120, templet: function(d){
return '<i class="fa fa-fw fa-html5 cursor" lay-event="groupDesc"></i>';
}},
{ field: 'modelNum', title: '模板数量', width: 120 },
{ field: 'createTime', title: '创建时间', width: 180 },
{ title: '操作', fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'}
......@@ -43,6 +45,15 @@ layui.config({
modelConcle(data);
}else if (layEvent === 'useModelGroup') { //使用模板
useModelGroup(data);
}else if (layEvent === 'groupDesc') { //查看分组简介
layer.open({
id: '分组简介',
type: 1,
title: '分组简介',
shade: 0.3,
area: ['800px', '500px'],
content: data.groupDesc,
});
}
});
......
......@@ -100,6 +100,12 @@ layui.config({
$("#ServicePackageName").val(json.bean.ServicePackageName);
$("#ServiceImplPackageName").val(json.bean.ServiceImplPackageName);
$("#DaoPackageName").val(json.bean.DaoPackageName);
//遍历模板
$('#modelList').find('li').each(function() {
var label = $(this).find("label");
$("#" + label.attr("relation")).val(json.bean.tableName + label.attr("thiscontent"));
});
}else{
top.winui.window.msg(json.returnMessage, {icon: 2,time: 2000});
}
......
......@@ -83,6 +83,8 @@
3.${{serviceImplPackage}}为ServiceImpl包名替换<br>
4.${{daoPackage}}为Dao包名替换<br>
5.${{tableName}}为Controller、Service等层的类名,类方法。<br>
6.${{objectName}}为对象名<br>
7.${{notesName}}为注释对象名<br>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
......
......@@ -24,6 +24,8 @@
3.${{serviceImplPackage}}为ServiceImpl包名替换<br>
4.${{daoPackage}}为Dao包名替换<br>
5.${{tableName}}为Controller、Service等层的类名,类方法。<br>
6.${{objectName}}为对象名<br>
7.${{notesName}}为注释对象名<br>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
......
......@@ -2,7 +2,7 @@
<li class="page-li">
<div class="weui-flex js_category layui-col-xs8 padd-le-ri">
<div>
<label class="layui-form-label">{{modelName}}<i class="red">*</i></label>
<label class="layui-form-label" relation="{{id}}" thiscontent="{{modelName}}">{{modelName}}<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="{{id}}" name="{{id}}" win-verify="required" placeholder="请选择数据库表检所生成" class="layui-input" maxlength="50"/>
</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册