From bcd0612507f2ec76fd722d3fb46c286f9c50e6cd Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期四, 20 三月 2025 15:42:11 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/basShuttle/basShuttle.js | 40 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/js/basShuttle/basShuttle.js b/src/main/webapp/static/js/basShuttle/basShuttle.js index e4811cb..5b54268 100644 --- a/src/main/webapp/static/js/basShuttle/basShuttle.js +++ b/src/main/webapp/static/js/basShuttle/basShuttle.js @@ -24,7 +24,7 @@ {type: 'checkbox'} ,{field: 'shuttleNo', align: 'center',title: '鍥涘悜绌挎杞﹀彿', width: 120} ,{field: 'status$', align: 'center',title: '鐘舵��'} - ,{field: 'shuttleStatus', align: 'center',title: '浣滀笟鎬�'} + // ,{field: 'shuttleStatus', align: 'center',title: '浣滀笟鎬�'} ,{field: 'wrkNo', align: 'center',title: '浠诲姟鍙�'} ,{field: 'idleLoc', align: 'center',title: '鏆傚瓨搴撲綅'} // ,{field: 'autoCharge', align: 'center',title: '鑷姩鍏呯數'} @@ -97,6 +97,9 @@ return d.shuttleNo; })); break; + case 'oneUpdateCharge': + showUpdateCharge(); + break; case 'exportData': admin.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){ var titles=[]; @@ -151,12 +154,45 @@ } }); + function showUpdateCharge() { + admin.open({ + type: 1, + area: '600px', + title: '涓�閿慨鏀圭數閲忕嚎', + content: $('#updateChargeDialog').html(), + success: function (layero, dIndex) { + form.on('submit(editSubmit)', function (data) { + var loadIndex = layer.load(2); + $.ajax({ + url: baseUrl+"/basShuttle/updateCharge", + headers: {'token': localStorage.getItem('token')}, + data: data.field, + method: 'POST', + success: function (res) { + layer.close(loadIndex); + if (res.code === 200){ + layer.close(dIndex); + layer.msg(res.msg, {icon: 1}); + tableReload(); + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + }else { + layer.msg(res.msg, {icon: 2}); + } + } + }) + return false; + }); + } + }); + } + /* 寮圭獥 - 鏂板銆佷慨鏀� */ function showEditModel(mData) { admin.open({ type: 1, area: '600px', - title: (mData ? '淇敼' : '娣诲姞') + '璁㈠崟鐘舵��', + title: (mData ? '淇敼' : '娣诲姞') + '灏忚溅鏁版嵁', content: $('#editDialog').html(), success: function (layero, dIndex) { layDateRender(mData); -- Gitblit v1.9.1