From 5ce96c9750acb24e3a98e5cd2b9295ea369e0902 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期五, 16 九月 2022 16:21:42 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/cstmr/cstmr.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/static/js/cstmr/cstmr.js b/src/main/webapp/static/js/cstmr/cstmr.js index 30728b5..f196335 100644 --- a/src/main/webapp/static/js/cstmr/cstmr.js +++ b/src/main/webapp/static/js/cstmr/cstmr.js @@ -19,6 +19,7 @@ $('#organization').text(localStorage.getItem('nickname')); + // 閮ㄩ棬浜哄憳 绛涢�� dropdown.render({ elem: '#organization' ,content: ['<div id="organizationTree" style="height: calc(100vh - 525px);border: none"></div>'].join('') @@ -28,6 +29,44 @@ } }); + // 鏁版嵁鍚屾 + dropdown.render({ + elem: '#data-btn' + ,align: 'right' + ,style: 'border-radius: 5px;' + ,className: 'site-dropdown-demo' + ,data: [ + { + title: '妯℃澘涓嬭浇' + ,templet: '<i class="layui-icon layui-icon-template-1"></i>{{d.title}}' + ,id: 1 + }, + { + title: '瀵煎叆 Excel' + ,templet: '<i class="layui-icon layui-icon-upload"></i>{{d.title}}' + ,id: 2 + }, + {type: '-'}, //鍒嗗壊绾� + { + title: '瀵煎嚭 Excel' + ,templet: '<i class="layui-icon layui-icon-export"></i>{{d.title}}' + ,id: 3 + } + ] + ,click: function(item){ + switch (item.id) { + case 1: + break + case 2: + break + case 3: + break + default: + break + } + } + }); + // 鏍戝舰鍥� var organizationTree; window.loadTree = function(condition){ -- Gitblit v1.9.1