From 683cd2050f9c387f58dbcfcbbb4daec620c62a24 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 17 六月 2020 13:43:12 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/basDevp/basDevp.js | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/basDevp/basDevp.js b/src/main/webapp/static/js/basDevp/basDevp.js index bb863f2..2c9349a 100644 --- a/src/main/webapp/static/js/basDevp/basDevp.js +++ b/src/main/webapp/static/js/basDevp/basDevp.js @@ -74,7 +74,7 @@ html += ">"; return html; }} - ,{field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�'} + ,{field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�', edit: true} // ,{field: 'wrkNo1', align: 'center',title: ''} ,{field: 'ctnType', align: 'center',title: '瀹瑰櫒绫诲瀷'} ,{field: 'barcode', align: 'center',title: '鏉″舰鐮�'} @@ -128,6 +128,30 @@ } }); + // 椤甸潰淇敼 + table.on('edit(basDevp)', function (obj) { + console.log(obj); + $.ajax({ + url: baseUrl+"/basDevp/update/auth", + headers: {'token': localStorage.getItem('token')}, + data: top.reObject({ + devNo: obj.data.devNo, + wrkNo: obj.value + }), + method: 'POST', + success: function (res) { + if (res.code === 200){ + tableReload(); + layer.msg(res.msg); + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + }else { + layer.msg(res.msg) + } + } + }) + }); + // 鐩戝惉鎺掑簭浜嬩欢 table.on('sort(basDevp)', function (obj) { var searchData = {}; -- Gitblit v1.9.1