From ab440f3a09ae3c17e3e4d436ce98cd687ab666bb Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 26 三月 2021 09:59:45 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/safeSto/safeSto.js |   24 ++++++++----------------
 1 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/src/main/webapp/static/js/safeSto/safeSto.js b/src/main/webapp/static/js/safeSto/safeSto.js
index 1fc4a07..d79a870 100644
--- a/src/main/webapp/static/js/safeSto/safeSto.js
+++ b/src/main/webapp/static/js/safeSto/safeSto.js
@@ -1,10 +1,11 @@
 var pageCurr;
-layui.use(['table','laydate', 'form'], function(){
+layui.use(['table','laydate', 'form', 'element'], function(){
     var table = layui.table;
     var $ = layui.jquery;
     var layer = layui.layer;
     var layDate = layui.laydate;
     var form = layui.form;
+    var element = layui.element;
 
     // 鏁版嵁娓叉煋
     tableIns = table.render({
@@ -18,15 +19,13 @@
         toolbar: '#toolbar',
         cellMinWidth: 50,
         cols: [[
-            {type: 'checkbox'}
+            {type: 'numbers', fixed: 'left'}
+            ,{field: 'node_name', align: 'center',title: '璐т綅'}
             ,{field: 'matnr', align: 'center',title: '鍟嗗搧缂栧彿'}
             ,{field: 'maktx', align: 'center',title: '鍟嗗搧鍚嶇О'}
-            // ,{field: 'nodeId$', align: 'center',title: '鍏宠仈璐т綅'}
-            ,{field: 'nodeId', align: 'center',title: '璐т綅鍚嶇О'}
-            ,{field: 'safeQua', align: 'center',title: '瀹夊叏搴撳瓨'}
-            ,{field: 'amount', align: 'center',title: '瀹為檯搴撳瓨'}
-            ,{field: 'pe', align: 'center',title: '杩涘害'}
-
+            ,{field: 'progress', align: 'center',title: '浣跨敤鎯呭喌', templet: '#progressTpl'}
+            ,{field: 'safe_qua', align: 'center',title: '瀹夊叏搴撳瓨閲�', style: 'font-weight: bold'}
+            ,{field: 'amount', align: 'center',title: '褰撳墠搴撳瓨閲�', style: 'font-weight: bold'}
             ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150}
         ]],
         request: {
@@ -48,16 +47,9 @@
             if (res.code === 403) {
                 top.location.href = baseUrl+"/";
             }
+            element.render('progress')
             pageCurr=curr;
             limit();
-            form.on('checkbox(tableCheckbox)', function (data) {
-                var _index = $(data.elem).attr('table-index')||0;
-                if(data.elem.checked){
-                    res.data[_index][data.value] = 'Y';
-                }else{
-                    res.data[_index][data.value] = 'N';
-                }
-            });
         }
     });
 

--
Gitblit v1.9.1