From 8c1a2f7deff4081e9d43c4255350917aaddebf89 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 29 七月 2021 15:36:11 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/mat/mat.js | 52 ++--------------------------------------------------
1 files changed, 2 insertions(+), 50 deletions(-)
diff --git a/src/main/webapp/static/js/mat/mat.js b/src/main/webapp/static/js/mat/mat.js
index bace985..a855ef9 100644
--- a/src/main/webapp/static/js/mat/mat.js
+++ b/src/main/webapp/static/js/mat/mat.js
@@ -52,13 +52,11 @@
page: true,
limit: 16,
limits: [16, 30, 50, 100, 200, 500],
- even: true,
toolbar: '#toolbar',
cellMinWidth: 50,
+ height: 'full-105',
cols: [[
{type: 'checkbox'}
-// ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
-// ,{field: 'id', align: 'center',title: 'ID'}
// ,{field: 'uuid', align: 'center',title: '缂栧彿'}
// ,{field: 'nodeId$', align: 'center',title: '鎵�灞炲尯鍩�',event: 'nodeId', style: 'cursor:pointer'}
,{field: 'tagId$', align: 'center',title: '褰掔被', templet: '#tagTpl'}
@@ -360,7 +358,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 +407,6 @@
});
-// 鍏抽棴鍔ㄤ綔
-$(document).on('click','#data-detail-close', function () {
- parent.layer.closeAll();
-});
-
function tableReload(child) {
var searchData = {};
$.each($('#search-box [name]').serializeArray(), function() {
@@ -443,52 +436,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