From 046a62d695b32db716c0f115183fd98816160912 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 16 九月 2022 15:35:28 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/cstmr/cstmr.js | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/cstmr/cstmr.js b/src/main/webapp/static/js/cstmr/cstmr.js
index 73b0d1e..08fc096 100644
--- a/src/main/webapp/static/js/cstmr/cstmr.js
+++ b/src/main/webapp/static/js/cstmr/cstmr.js
@@ -17,6 +17,9 @@
var tree = layui.tree;
var dropdown = layui.dropdown;
+ $('#organization').text(localStorage.getItem('nickname'));
+
+ // 閮ㄩ棬浜哄憳 绛涢��
dropdown.render({
elem: '#organization'
,content: ['<div id="organizationTree" style="height: calc(100vh - 525px);border: none"></div>'].join('')
@@ -24,6 +27,23 @@
,ready: function(){
loadTree();
}
+ });
+
+ // 鏁版嵁鍚屾
+ dropdown.render({
+ elem: '#data-btn'
+ ,align: 'right' //灞呬腑瀵归綈锛�2.6.8 鏂板锛�
+ ,style: 'width: 50px;'
+ ,data: [{
+ title: 'menu'
+ ,id: 100
+ },{
+ title: 'menu'
+ ,id: 101
+ },{
+ title: 'menu '
+ ,id: 102
+ }]
});
// 鏍戝舰鍥�
@@ -50,8 +70,10 @@
key: obj.data.key,
val: 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');
+ clearFormVal($('#search-box'));
tableIns.reload({
where: {[obj.data.key]: obj.data.id},
page: {curr: 1}
--
Gitblit v1.9.1