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/in-weight.js | 89 ++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 80 insertions(+), 9 deletions(-) diff --git a/igds-web/src/main/resources/static/admin/inout/in-weight.js b/igds-web/src/main/resources/static/admin/inout/in-weight.js index 93b01f3..09d4c79 100644 --- a/igds-web/src/main/resources/static/admin/inout/in-weight.js +++ b/igds-web/src/main/resources/static/admin/inout/in-weight.js @@ -20,7 +20,6 @@ elem: '#test1', theme: '#7b8e9f' }); - // 鍙充笅瑙掓坊鍔犲浐瀹氫俊鎭� util.fixbar({ bar1: true, @@ -45,6 +44,16 @@ } } }); + + //鐩戝惉閫夋嫨鏁版嵁浜嬩欢 + table.on('tool(tableListProgressData)', function (obj) { + var data = obj.data; + if (obj.event === 'select') { + flushData(data.intelCard, null); + layer.closeAll(); + } + }); + }); //鏄剧ず娴佺▼鐜妭 @@ -243,7 +252,7 @@ alertError("娌℃湁璇诲彇鍒拌韩浠借瘉淇℃伅锛�"); return; } - paramIdCard = data; + paramIdCard = data.idNum; $("#text-param").text("璇嗗埆韬唤璇侊細" + paramIdCard); flushData(null, paramIdCard); }, @@ -255,8 +264,38 @@ } function flushByHand() { - flushData(null, null); + var intelCard = $("#intelCard").val(); + flushData(intelCard, null); } + +/** + * 鎵嬪姩閫夋嫨锛岃幏鍙栧緟绉伴噸鐨勬暟鎹紝寮瑰嚭閫夋嫨 + */ +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 flushWeight() { $.ajax({ @@ -454,10 +493,8 @@ return; } } - //鍚堝苟鏁版嵁 Object.assign(recordData, data); - // 鑾峰彇鐓х墖 var files = [{ fileName: snapData.fileName1 @@ -467,7 +504,6 @@ fileName: snapData.fileName3 }]; recordData.files = files; - var index = layer.load(); $.ajax({ type: "POST", @@ -496,10 +532,8 @@ alertError("娌℃湁涓氬姟鏁版嵁淇℃伅锛屾墽琛岃鎷掔粷"); return; } - // 鑾峰彇鍖栭獙椤逛俊鎭� flushCheckItem(); - layer.open({ type: 1, title: "璐ㄦ璇︾粏", @@ -520,7 +554,6 @@ * 鍒锋柊鍖栭獙缁撴灉椤� */ function flushCheckItem() { - curCheckItems = null; $.ajax({ type: "POST", @@ -657,4 +690,42 @@ "border-bottom": "2px solid #53adce", "background": "#eff4f6" }); +} + +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