代码优化

This commit is contained in:
thinkgem
2023-12-03 15:55:41 +08:00
parent e32c87d009
commit 8d87b4142c
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
<script> <script>
var selectData = \${isNotBlank(selectData!) ? selectData! : "{\}"}, var selectData = \"#{isNotBlank(selectData!) ? selectData! : '{}'}",
selectNum = 0, dataGrid = $('#dataGrid').dataGrid({ selectNum = 0, dataGrid = $('#dataGrid').dataGrid({
searchForm: $('#searchForm'), searchForm: $('#searchForm'),
columnModel: [ columnModel: [
@@ -81,7 +81,7 @@ selectNum = 0, dataGrid = $('#dataGrid').dataGrid({
} %>', // 展开节点清理请求参数数据(一般设置查询条件的字段属性,否则在查询后,不能展开子节点数据) } %>', // 展开节点清理请求参数数据(一般设置查询条件的字段属性,否则在查询后,不能展开子节点数据)
<% } %> <% } %>
autoGridHeight: function(){ autoGridHeight: function(){
var height = $(window).height() - $('#searchForm').height() - $('#dataGridPage').height() - 74; var height = $(window).height() - $('#searchForm').height() - $('#dataGridPage').height() - 76;
$('.tags-input').height($('.ui-jqgrid').height() - 10); $('.tags-input').height($('.ui-jqgrid').height() - 10);
return height; return height;
}, },

View File

@@ -58,7 +58,7 @@
</div> </div>
<% } %> <% } %>
<script> <script>
var selectData = ${isNotBlank(selectData!) ? selectData! : "{\}"}, var selectData = "#{isNotBlank(selectData!) ? selectData! : '{}'}",
selectNum = 0, dataGrid = $('#dataGrid').dataGrid({ selectNum = 0, dataGrid = $('#dataGrid').dataGrid({
searchForm: $('#searchForm'), searchForm: $('#searchForm'),
columnModel: [ columnModel: [