标题子标题优化

This commit is contained in:
thinkgem
2024-04-18 21:22:12 +08:00
parent 29345f8873
commit 37a74e7168
6 changed files with 18 additions and 18 deletions

View File

@@ -2,7 +2,7 @@
// 输出子表控件 // 输出子表控件
for (child in table.childList){ for (child in table.childList){
%> %>
<h4 class="form-unit">\${text('${child.comments}')}</h4> <div class="form-unit">\${text('${child.comments}')}</div>
<div class="ml10 mr10 table-form"> <div class="ml10 mr10 table-form">
<table id="${@StringUtils.uncap(child.className)}DataGrid"></table> <table id="${@StringUtils.uncap(child.className)}DataGrid"></table>
<% if(table.tplCategory != 'query'){ %> <% if(table.tplCategory != 'query'){ %>

View File

@@ -284,7 +284,7 @@
</div> </div>
</div> </div>
</div> </div>
<h4 class="form-unit">测试数据子表</h4> <div class="form-unit">测试数据子表</div>
<div class="ml10 mr10 table-form"> <div class="ml10 mr10 table-form">
<table id="testDataChildDataGrid"></table> <table id="testDataChildDataGrid"></table>
<% if (hasPermi('test:testData:edit')){ %> <% if (hasPermi('test:testData:edit')){ %>
@@ -308,10 +308,10 @@
<% } %> <% } %>
<script> <script>
//初始化测试数据子表DataGrid对象 //初始化测试数据子表DataGrid对象
$("#testDataChildDataGrid").dataGrid({ $('#testDataChildDataGrid').dataGrid({
data: "#{toJson(testData.testDataChildList)}", data: "#{toJson(testData.testDataChildList)}",
datatype: "local", // 设置本地数据 datatype: 'local', // 设置本地数据
autoGridHeight: function(){return 'auto'}, // 设置自动高度 autoGridHeight: function(){return 'auto'}, // 设置自动高度
// 设置数据表格列 // 设置数据表格列
@@ -473,7 +473,7 @@ $("#testDataChildDataGrid").dataGrid({
itemCode="{{d.itemCode}}" itemName="{{d.itemName}}"/> itemCode="{{d.itemCode}}" itemName="{{d.itemName}}"/>
</div>//--></script> </div>//--></script>
<script> <script>
$("#inputForm").validate({ $('#inputForm').validate({
submitHandler: function(form){ submitHandler: function(form){
// 数据格式化恢复(表单提交之前调用) // 数据格式化恢复(表单提交之前调用)

View File

@@ -170,7 +170,7 @@
</div> </div>
</div> </div>
</div> </div>
<h4 class="form-unit">${text('子表数据')}</h4> <div class="form-unit">${text('子表数据')}</div>
<div class="ml10 mr10 table-form"> <div class="ml10 mr10 table-form">
<table id="testDataChildDataGrid"></table> <table id="testDataChildDataGrid"></table>
<% if (hasPermi('test:testData:edit')){ %> <% if (hasPermi('test:testData:edit')){ %>
@@ -194,10 +194,10 @@
<% } %> <% } %>
<script> <script>
//初始化测试数据子表DataGrid对象 //初始化测试数据子表DataGrid对象
$("#testDataChildDataGrid").dataGrid({ $('#testDataChildDataGrid').dataGrid({
data: "#{toJson(testData.testDataChildList)}", data: "#{toJson(testData.testDataChildList)}",
datatype: "local", // 设置本地数据 datatype: 'local', // 设置本地数据
autoGridHeight: function(){return 'auto'}, // 设置自动高度 autoGridHeight: function(){return 'auto'}, // 设置自动高度
// 设置数据表格列 // 设置数据表格列
@@ -388,7 +388,7 @@ $("#testDataChildDataGrid").dataGrid({
class="{{d.cssClass}}" isMini="true" preview="true" readonly="{{d.readonly}}"/> class="{{d.cssClass}}" isMini="true" preview="true" readonly="{{d.readonly}}"/>
</div>//--></script> </div>//--></script>
<script> <script>
$("#inputForm").validate({ $('#inputForm').validate({
submitHandler: function(form){ submitHandler: function(form){
js.ajaxSubmitForm($(form), function(data){ js.ajaxSubmitForm($(form), function(data){
js.showMessage(data.message); js.showMessage(data.message);

View File

@@ -284,7 +284,7 @@
</div> </div>
</div> </div>
</div> </div>
<h4 class="form-unit">测试数据子表</h4> <div class="form-unit">测试数据子表</div>
<div class="ml10 mr10 table-form"> <div class="ml10 mr10 table-form">
<table id="testDataChildDataGrid"></table> <table id="testDataChildDataGrid"></table>
<% if (hasPermi('test:testData:edit')){ %> <% if (hasPermi('test:testData:edit')){ %>
@@ -308,10 +308,10 @@
<% } %> <% } %>
<script> <script>
//初始化测试数据子表DataGrid对象 //初始化测试数据子表DataGrid对象
$("#testDataChildDataGrid").dataGrid({ $('#testDataChildDataGrid').dataGrid({
data: "#{toJson(testData.testDataChildList)}", data: "#{toJson(testData.testDataChildList)}",
datatype: "local", // 设置本地数据 datatype: 'local', // 设置本地数据
autoGridHeight: function(){return 'auto'}, // 设置自动高度 autoGridHeight: function(){return 'auto'}, // 设置自动高度
// 设置数据表格列 // 设置数据表格列
@@ -473,7 +473,7 @@ $("#testDataChildDataGrid").dataGrid({
itemCode="{{d.itemCode}}" itemName="{{d.itemName}}"/> itemCode="{{d.itemCode}}" itemName="{{d.itemName}}"/>
</div>//--></script> </div>//--></script>
<script> <script>
$("#inputForm").validate({ $('#inputForm').validate({
submitHandler: function(form){ submitHandler: function(form){
// 数据格式化恢复(表单提交之前调用) // 数据格式化恢复(表单提交之前调用)

View File

@@ -170,7 +170,7 @@
</div> </div>
</div> </div>
</div> </div>
<h4 class="form-unit">${text('子表数据')}</h4> <div class="form-unit">${text('子表数据')}</div>
<div class="ml10 mr10 table-form"> <div class="ml10 mr10 table-form">
<table id="testDataChildDataGrid"></table> <table id="testDataChildDataGrid"></table>
<% if (hasPermi('test:testData:edit')){ %> <% if (hasPermi('test:testData:edit')){ %>
@@ -194,10 +194,10 @@
<% } %> <% } %>
<script> <script>
//初始化测试数据子表DataGrid对象 //初始化测试数据子表DataGrid对象
$("#testDataChildDataGrid").dataGrid({ $('#testDataChildDataGrid').dataGrid({
data: "#{toJson(testData.testDataChildList)}", data: "#{toJson(testData.testDataChildList)}",
datatype: "local", // 设置本地数据 datatype: 'local', // 设置本地数据
autoGridHeight: function(){return 'auto'}, // 设置自动高度 autoGridHeight: function(){return 'auto'}, // 设置自动高度
// 设置数据表格列 // 设置数据表格列
@@ -388,7 +388,7 @@ $("#testDataChildDataGrid").dataGrid({
class="{{d.cssClass}}" isMini="true" preview="true" readonly="{{d.readonly}}"/> class="{{d.cssClass}}" isMini="true" preview="true" readonly="{{d.readonly}}"/>
</div>//--></script> </div>//--></script>
<script> <script>
$("#inputForm").validate({ $('#inputForm').validate({
submitHandler: function(form){ submitHandler: function(form){
js.ajaxSubmitForm($(form), function(data){ js.ajaxSubmitForm($(form), function(data){
js.showMessage(data.message); js.showMessage(data.message);

View File

@@ -171,7 +171,7 @@
</div> </div>
</div> </div>
</div> </div>
<h4 class="form-unit">${text('子表数据')}</h4> <div class="form-unit">${text('子表数据')}</div>
<div class="ml10 mr10 table-form"> <div class="ml10 mr10 table-form">
<table id="testDataChildDataGrid"></table> <table id="testDataChildDataGrid"></table>
<% if (hasPermi('test:testData:edit')){ %> <% if (hasPermi('test:testData:edit')){ %>