From c32b4d0e5877c28aade98548889cc20f38249709 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期五, 16 九月 2022 14:38:17 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/cstmr/cstmr.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/static/js/cstmr/cstmr.js b/src/main/webapp/static/js/cstmr/cstmr.js index 3432313..f89b75c 100644 --- a/src/main/webapp/static/js/cstmr/cstmr.js +++ b/src/main/webapp/static/js/cstmr/cstmr.js @@ -17,8 +17,10 @@ var tree = layui.tree; var dropdown = layui.dropdown; + $('#organization').text(localStorage.getItem('nickname')); + dropdown.render({ - elem: '#slrassa' + elem: '#organization' ,content: ['<div id="organizationTree" style="height: calc(100vh - 525px);border: none"></div>'].join('') ,style: 'width: 370px; height: 500px; padding: 0 15px; box-shadow: 1px 1px 30px rgb(0 0 0 / 12%);' ,ready: function(){ @@ -50,7 +52,7 @@ key: obj.data.key, val: obj.data.id } - // treeCond = {[obj.data.key]: obj.data.id}; + $('#organization').text(obj.data.title); $('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click'); $(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click'); tableIns.reload({ @@ -90,9 +92,9 @@ ,{field: 'addr', align: 'left',title: '璇︾粏鍦板潃', templet:function(d){return emptyShow(d.addr)}} ,{field: 'tel', align: 'left',title: '鐢佃瘽', templet:function(d){return emptyShow(d.tel)}} ,{field: 'remarks', align: 'left',title: '澶囨敞', templet:function(d){return emptyShow(d.remarks)}} - ,{field: 'createTime$', align: 'left',title: '娣诲姞鏃堕棿'} - ,{field: 'userId$', align: 'left',title: '娣诲姞浜哄憳'} ,{field: 'cstmrType$', align: 'left',title: '瀹㈡埛绫诲埆'} + ,{field: 'userId$', align: 'left',title: '娣诲姞浜哄憳'} + ,{field: 'createTime$', align: 'left',title: '娣诲姞鏃堕棿'} ,{field: 'deptId$', align: 'left',title: '鎵�灞為儴闂�', hide: true} ,{field: 'simple', align: 'left',title: '瀹㈡埛绠�绉�', hide: true} ,{field: 'rela', align: 'left',title: '瀹㈡埛鍏崇郴', hide: true} -- Gitblit v1.9.1