From d417e332b39e7da99f637e94ebacf199fb158a72 Mon Sep 17 00:00:00 2001 From: lsh <lsh@163.com> Date: 星期五, 31 五月 2024 18:16:50 +0800 Subject: [PATCH] #1 --- src/main/webapp/static/js/agvBasDevp/basDevp.js | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/main/webapp/static/js/agvBasDevp/basDevp.js b/src/main/webapp/static/js/agvBasDevp/basDevp.js index e787e19..fc55079 100644 --- a/src/main/webapp/static/js/agvBasDevp/basDevp.js +++ b/src/main/webapp/static/js/agvBasDevp/basDevp.js @@ -20,7 +20,7 @@ cols: [[ {type: 'checkbox', fixed: 'left'} // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} - ,{field: 'devNo', align: 'center',sort:true,title: '宸ヤ綔浣嶇紪鍙�',width:150} + ,{field: 'devNo', align: 'center',sort:true,title: '鎺ラ┏浣嶅彿',width:150} // ,{field: 'decDesc', align: 'center',title: '璁惧鎻忚堪'} // ,{field: 'devMk', align: 'center',title: '澶囨敞'} ,{field: 'inEnable', align: 'center',title: '鍙叆', templet:function(row){ @@ -35,14 +35,19 @@ html += ">"; return html; }} - ,{field: 'locSts$', align: 'center',title: '璐т綅鐘舵��'} + ,{field: 'locSts$', align: 'center',title: '鎺ラ┏浣嶇姸鎬�'} //,{field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�', edit:true, style:'color: blue;font-weight: bold'} ,{field: 'floor', align: 'center',title: '妤�'} //,{field: 'locType1$', align: 'center',title: '楂樹綆'} ,{field: 'barcode', align: 'center',title: '鏉″舰鐮�'} - ,{field: 'locType1$', align: 'center',title: '搴撲綅绫诲瀷'} - ,{field: 'locType2', align: 'center',title: "瀹瑰櫒绫诲瀷"} - + ,{field: 'locType1$', align: 'center',title: '鎺ラ┏浣嶇被鍨�'} + ,{field: 'locType2', align: 'center',title: "璐ф灦绫诲瀷"} + ,{field: 'autoing', align: 'center',title: '鑷姩璋冩嫧', templet:function(row){ + var html = "<input value='autoing' type='checkbox' lay-skin='primary' lay-filter='tableCheckbox' table-index='"+row.LAY_TABLE_INDEX+"'"; + if(row.autoing === 'Y'){html += " checked ";} + html += ">"; + return html; + }} ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',event: 'modiUser', hide:true} ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', hide:true} // ,{field: 'appeUser$', align: 'center',title: '鍒涘缓鑰�',event: 'appeUser', style: 'text-decoration: underline;cursor:pointer'} @@ -349,7 +354,7 @@ layer.msg("姝ょ珯鐐规殏鏈粦瀹氫换浣曟潯鐮�"); return; } - layer.confirm('纭畾瑙g粦'+(data.devNo)+'绔欑偣鐨勬墭鐩樼爜锛�', function(){ + layer.confirm('纭畾瑙g粦'+(data.devNo)+'绔欑偣鐨勮揣鏋剁爜锛�', function(){ $.ajax({ url: baseUrl+"/agv/basDevp/unbind/auth", headers: {'token': localStorage.getItem('token')}, @@ -473,7 +478,7 @@ devMk: $('#devMk').val(), inEnable: $('#inEnable').next().hasClass('layui-form-checked') ? "Y" : "N", outEnable: $('#outEnable').next().hasClass('layui-form-checked') ? "Y" : "N", - autoing: $('#autoing').val(), + autoing: $('#autoing').next().hasClass('layui-form-checked') ? "Y" : "N", loading: $('#loading').val(), canining: $('#canining').val(), canouting: $('#canouting').val(), @@ -507,7 +512,6 @@ locType2: $('#locType2').val(), }; - console.log(data); $.ajax({ url: baseUrl+"/agv/basDevp/"+name+"/auth", headers: {'token': localStorage.getItem('token')}, -- Gitblit v1.9.1