From 7a868ca70a8f8cc796664ce1e08e8f4cae322fc8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <xltys1995> Date: 星期六, 10 四月 2021 00:09:09 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/mat/mat.js | 49 ++----------------------------------------------- 1 files changed, 2 insertions(+), 47 deletions(-) diff --git a/src/main/webapp/static/js/mat/mat.js b/src/main/webapp/static/js/mat/mat.js index bace985..8f563ab 100644 --- a/src/main/webapp/static/js/mat/mat.js +++ b/src/main/webapp/static/js/mat/mat.js @@ -55,6 +55,7 @@ even: true, toolbar: '#toolbar', cellMinWidth: 50, + height: 'full-100', cols: [[ {type: 'checkbox'} // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} @@ -360,7 +361,7 @@ var tpl = templateDom.html(); var template = Handlebars.compile(tpl); var html = template(res); - let box = $("#box"); + var box = $("#box"); box.html(html);box.show(); box.print({mediaPrint:true}); box.hide(); @@ -409,11 +410,6 @@ }); -// 鍏抽棴鍔ㄤ綔 -$(document).on('click','#data-detail-close', function () { - parent.layer.closeAll(); -}); - function tableReload(child) { var searchData = {}; $.each($('#search-box [name]').serializeArray(), function() { @@ -443,52 +439,11 @@ }); } -function setFormVal(el, data, showImg) { - for (var val in data) { - var find = el.find(":input[id='" + val + "']"); - if (find[0]!=null){ - if (find[0].type === 'checkbox'){ - if (data[val]==='Y'){ - find.attr("checked","checked"); - find.val('Y'); - } else { - find.remove("checked"); - find.val('N'); - } - continue; - } - } - find.val(data[val]); - if (showImg){ - var next = find.next(); - if (next.get(0)){ - if (next.get(0).localName === "img") { - find.hide(); - next.attr("src", data[val]); - next.show(); - } - } - } - } -} - function clearFormVal(el) { $(':input', el) .val('') .removeAttr('checked') .removeAttr('selected'); -} - -function detailScreen(index) { - var detail = layer.getChildFrame('#data-detail', index); - var height = detail.height()+60; - if (height > ($(window).height()*0.9)) { - height = ($(window).height()*0.8); - } - layer.style(index, { -// top: (($(window).height()-height)/3)+"px", - height: height+'px' - }); } $('body').keydown(function () { -- Gitblit v1.9.1