From 0a25f7ad9d76cb9a1fc0ab7cf92c70f589c41402 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 16 九月 2022 17:01:49 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/cstmr/cstmr.js | 55 +++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 41 insertions(+), 14 deletions(-)
diff --git a/src/main/webapp/static/js/cstmr/cstmr.js b/src/main/webapp/static/js/cstmr/cstmr.js
index f0c6e81..c6e564f 100644
--- a/src/main/webapp/static/js/cstmr/cstmr.js
+++ b/src/main/webapp/static/js/cstmr/cstmr.js
@@ -17,7 +17,7 @@
var tree = layui.tree;
var dropdown = layui.dropdown;
- $('#organization').text(localStorage.getItem('nickname'));
+ $('#organization').html(localStorage.getItem('nickname') + ' <i class="layui-icon"></i>');
// 閮ㄩ棬浜哄憳 绛涢��
dropdown.render({
@@ -32,18 +32,45 @@
// 鏁版嵁鍚屾
dropdown.render({
elem: '#data-btn'
- ,align: 'center' //灞呬腑瀵归綈锛�2.6.8 鏂板锛�
- ,style: 'width: 50px;'
- ,data: [{
- title: 'menu item test 111'
- ,id: 100
- },{
- title: 'menu item test 222'
- ,id: 101
- },{
- title: 'menu item test 333'
- ,id: 102
- }]
+ ,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:
+ // 妯℃澘涓嬭浇
+ layer.load(1, {shade: [0.1,'#fff']});
+ location.href = baseUrl + "/mould/鐢叉柟鍗曚綅瀵煎叆妯℃澘.xls";
+ layer.closeAll('loading');
+ break
+ case 2:
+ // 瀵煎叆 Excel
+ break
+ case 3:
+ // 瀵煎嚭 Excel
+ break
+ default:
+ break
+ }
+ }
});
// 鏍戝舰鍥�
@@ -70,7 +97,7 @@
key: obj.data.key,
val: obj.data.id
}
- $('#organization').text(obj.data.title);
+ $('#organization').html(obj.data.title + ' <i class="layui-icon"></i>');
$('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click');
$(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click');
clearFormVal($('#search-box'));
--
Gitblit v1.9.1