From bcb19e8c93c3cabf0d8eb3ee34ed819b3c5a10ef Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期一, 25 十一月 2024 13:14:11 +0800 Subject: [PATCH] #优化地图 --- src/main/webapp/static/js/locDetl/locDetl.js | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js index 9db9be7..973eed7 100644 --- a/src/main/webapp/static/js/locDetl/locDetl.js +++ b/src/main/webapp/static/js/locDetl/locDetl.js @@ -3,9 +3,9 @@ function getCol() { var cols = [ {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'} - ,{field: 'suppCode', align: 'center',title: '鏂欑鐮�', sort:true} - ,{field: 'matnr', align: 'center',title: '瀛樿揣缂栫爜', sort:true} - ,{field: 'maktx', align: 'center',title: '瀛樿揣鍚嶇О', sort:true} + ,{field: 'suppCode', align: 'center',title: '璐ф灦鐮�', sort:true} + ,{field: 'matnr', align: 'center',title: '鍟嗗搧缂栫爜', sort:true} + ,{field: 'maktx', align: 'center',title: '鍟嗗搧鍚嶇О', sort:true} ,{field: 'orderNo', align: 'center',title: '鍗曟嵁缂栧彿', hide: false} ,{field: 'batch', align: 'center',title: '搴忓垪鐮�', sort:true} ,{field: 'anfme', align: 'center',title: '鏁伴噺'} @@ -14,8 +14,8 @@ ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'} ,{field: 'specs', align: 'center',title: '瑙勬牸鍨嬪彿', hide: true} ,{field: 'model', align: 'center',title: '閫氱敤鍨嬪彿', hide: true} - ,{field: 'brand', align: 'center',title: '瀛樿揣鍒嗙被缂栫爜', hide: true} - ,{field: 'color', align: 'center',title: '瀛樿揣鍒嗙被鍚嶇О', hide: true} + ,{field: 'brand', align: 'center',title: '鍟嗗搧鍒嗙被缂栫爜', hide: true} + ,{field: 'color', align: 'center',title: '鍟嗗搧鍒嗙被鍚嶇О', hide: true} ,{field: 'unit', align: 'center',title: '璁¢噺鍗曚綅', hide: true} ,{field: 'price', align: 'center',title: '杩涢」绋�', hide: true} ,{field: 'units', align: 'center',title: '閿�椤圭◣', hide: true} @@ -192,6 +192,17 @@ layer.close(loadIndex); layer.closeAll(); if (res.code === 200) { + res.data.forEach((item,index) => { + if (item[0] != null) { + item[0] = "'" + item[0]; + } + if (item[1] != null) { + item[1] = "'" + item[1]; + } + if (item[2] != null) { + item[2] = "'" + item[2]; + } + }) table.exportFile(titles,res.data,'xls'); } else if (res.code === 403) { top.location.href = baseUrl+"/"; -- Gitblit v1.9.1