From c206acfaedc69c390fb67daa81bc686f58a212ef Mon Sep 17 00:00:00 2001 From: CZT <czt18638530771@163.com> Date: 星期一, 27 十一月 2023 16:12:11 +0800 Subject: [PATCH] 提交配置信息2 --- igds-web/src/main/resources/static/admin/inout/out-weight.js | 79 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 78 insertions(+), 1 deletions(-) diff --git a/igds-web/src/main/resources/static/admin/inout/out-weight.js b/igds-web/src/main/resources/static/admin/inout/out-weight.js index 5edb8da..699e2cc 100644 --- a/igds-web/src/main/resources/static/admin/inout/out-weight.js +++ b/igds-web/src/main/resources/static/admin/inout/out-weight.js @@ -41,6 +41,15 @@ } } }); + + //鐩戝惉閫夋嫨鏁版嵁浜嬩欢 + table.on('tool(tableListProgressData)', function (obj) { + var data = obj.data; + if (obj.event === 'select') { + flushData(data.intelCard, null); + layer.closeAll(); + } + }); }); //鏄剧ず娴佺▼鐜妭 @@ -349,6 +358,7 @@ }); return; } + paramIdCard = data.idNum; // $("#userId").val(data.idNum); $("#text-param").text("璇嗗埆韬唤璇侊細" + paramIdCard); @@ -782,4 +792,71 @@ // }); // } // -// // ---------------------------閫氱煡鍗� -缁撴潫 -------------------// \ No newline at end of file +// // ---------------------------閫氱煡鍗� -缁撴潫 -------------------// + +/** + * 鎵嬪姩閫夋嫨锛岃幏鍙栧緟绉伴噸鐨勬暟鎹紝寮瑰嚭閫夋嫨 + */ +function selectByHand() { + var param = { + deptId: deptId, + type: type, + timer: Math.random() + }; + $.ajax({ + type: "POST", + url: "../../basic/inout/list-only-progress", + dataType: "json", + contentType: "application/json;charset=UTF-8", + data: JSON.stringify(param), + success: function (result) { + if (result.code != "0000") { + layer.msg(result.msg); + } else { + renderTableProgressData(result.data); + } + }, + error: function () { + layer.msg("绯荤粺鑾峰彇鏁版嵁鍑虹幇寮傚父锛岄噸鏂板皾璇�"); + } + }); +} + +function renderTableProgressData(list) { + // 娓呯┖鏁版嵁 + $("#tableListProgressData").empty(); + layer.open({ + type: 1, + title: "閫夋嫨娴佺▼涓溅杈�", + offset: ['120px', '100px'], + area: ['1000px', '520px'], + shade: 0, + content: $('#listProgressData'), + closeBtn: 1 + }); + + table.render({ + elem: '#tableListProgressData', + data: list, + page: false, + even: true, + cols: [[ + {type: 'numbers'}, { + field: 'id', + title: '鍗曟嵁鍙�', + align: 'center' + }, { + field: 'userName', + title: '鎵胯繍浜�', + align: 'center' + }, { + field: 'plateNum', + title: '杞︾墝鍙�', + align: 'center' + }, {fixed: 'right', title: '閫夋嫨鎿嶄綔', align: 'center', toolbar: '#barSelectProgress'}]] + }); + $("thead tr").css({ + "border-bottom": "2px solid #53adce", + "background": "#eff4f6" + }); +} \ No newline at end of file -- Gitblit v1.9.3