From c816c08c8458e4cc6dedcb65cde306697fb8dd58 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 12 三月 2021 13:03:27 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/locDetl/locDetl.js | 2 +- src/main/webapp/views/locDetl/locDetl.html | 4 +++- src/main/webapp/static/js/mat/mat.js | 2 +- src/main/webapp/views/mat/mat.html | 4 ++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js index 9485ee1..90c2011 100644 --- a/src/main/webapp/static/js/locDetl/locDetl.js +++ b/src/main/webapp/static/js/locDetl/locDetl.js @@ -20,7 +20,7 @@ cols: [[ {type: 'checkbox'} // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} - ,{field: 'locNo', align: 'center',title: '璐т綅缂栧彿'} + ,{field: 'locNo', align: 'center',title: '璐т綅', templet: '#locNoTpl'} // ,{field: 'nodeId$', align: 'center',title: '鎵�灞炶揣浣�',event: 'nodeId', style: 'cursor:pointer'} ,{field: 'zpallet', align: 'center',title: '鎵樼洏鐮�'} ,{field: 'anfme', align: 'center',title: '搴撳瓨浣欓噺'} diff --git a/src/main/webapp/static/js/mat/mat.js b/src/main/webapp/static/js/mat/mat.js index 09da68f..ae347e5 100644 --- a/src/main/webapp/static/js/mat/mat.js +++ b/src/main/webapp/static/js/mat/mat.js @@ -25,7 +25,7 @@ // ,{field: 'nodeId$', align: 'center',title: '鎵�灞炲尯鍩�',event: 'nodeId', style: 'cursor:pointer'} ,{field: 'matnr', align: 'center',title: '鍟嗗搧缂栧彿'} ,{field: 'maktx', align: 'center',title: '鍟嗗搧鍚嶇О', minWidth: 300} - ,{field: 'tagId$', align: 'center',title: '鎵�灞炲綊绫�'} + ,{field: 'tagId$', align: 'center',title: '鎵�灞炲綊绫�', templet: '#tagTpl'} // ,{field: 'name', align: 'center',title: '鍚嶇О'} ,{field: 'specs', align: 'center',title: '瑙勬牸'} ,{field: 'model', align: 'center',title: '鍨嬪彿', hide: true} diff --git a/src/main/webapp/views/locDetl/locDetl.html b/src/main/webapp/views/locDetl/locDetl.html index 27604a7..57c581e 100644 --- a/src/main/webapp/views/locDetl/locDetl.html +++ b/src/main/webapp/views/locDetl/locDetl.html @@ -106,7 +106,9 @@ <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData">瀵煎嚭</button> </div> </script> - +<script type="text/html" id="locNoTpl"> + <span name="locNo" class="layui-badge layui-badge-gray">{{d.locNo}}</span> +</script> <script type="text/html" id="operate"> <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">璇︽儏</a> <a class="layui-btn layui-btn-xs btn-edit" lay-event="edit">缂栬緫</a> diff --git a/src/main/webapp/views/mat/mat.html b/src/main/webapp/views/mat/mat.html index d16e8c5..f323ba5 100644 --- a/src/main/webapp/views/mat/mat.html +++ b/src/main/webapp/views/mat/mat.html @@ -93,6 +93,10 @@ </div> </div> +<script type="text/html" id="tagTpl"> + <span name="tagId" class="layui-badge layui-badge-gray">{{d.tagId$}}</span> +</script> + <script type="text/html" id="toolbar"> <div class="layui-btn-container"> <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">鏂板</button> -- Gitblit v1.9.1