Commit 45e19c79b19fcb179d4aea649c97ebff01b73521

Authored by 潘钊
1 parent 1711d03c

update

src/main/resources/static/pages/control/line/js/home.js
@@ -91,7 +91,7 @@ var _home = (function() { @@ -91,7 +91,7 @@ var _home = (function() {
91 if (!promptFlag) { 91 if (!promptFlag) {
92 layer.alert(updateLog.text, { 92 layer.alert(updateLog.text, {
93 title: updateLog.title, 93 title: updateLog.title,
94 - area: ['400px', '260px'], 94 + area: ['490px', '320px'],
95 shift : 5 95 shift : 5
96 }); 96 });
97 storage.setItem('promptFlag_08251', 1); 97 storage.setItem('promptFlag_08251', 1);
src/main/resources/static/pages/permission/module/add_dir.html
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 </div> 61 </div>
62 </div> 62 </div>
63 </div> 63 </div>
64 -<script> 64 +<script data-exclude=1>
65 $(function() { 65 $(function() {
66 66
67 //modal 显示事件 67 //modal 显示事件
@@ -153,5 +153,9 @@ @@ -153,5 +153,9 @@
153 cb && cb(); 153 cb && cb();
154 }); 154 });
155 } 155 }
  156 +
  157 + function getCurrSelNode(){
  158 + return $.jstree.reference("#modules_tree").get_selected(true);
  159 + }
156 }); 160 });
157 </script> 161 </script>
158 \ No newline at end of file 162 \ No newline at end of file
src/main/resources/static/pages/permission/module/add_modal.html
@@ -147,7 +147,7 @@ @@ -147,7 +147,7 @@
147 <script id="res_tbody_temp" type="text/html"> 147 <script id="res_tbody_temp" type="text/html">
148 148
149 </script> 149 </script>
150 -<script> 150 +<script data-exclude=1>
151 $(function() { 151 $(function() {
152 var groupData = [] 152 var groupData = []
153 ,dirGroupMapp = {};//目录到组的映射 153 ,dirGroupMapp = {};//目录到组的映射
@@ -366,5 +366,8 @@ @@ -366,5 +366,8 @@
366 }); 366 });
367 } 367 }
368 368
  369 + function getCurrSelNode(){
  370 + return $.jstree.reference("#modules_tree").get_selected(true);
  371 + }
369 }); 372 });
370 </script> 373 </script>
371 \ No newline at end of file 374 \ No newline at end of file
src/main/resources/static/pages/permission/module/edit_dir.html
@@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@
62 </div> 62 </div>
63 </div> 63 </div>
64 </div> 64 </div>
65 -<script> 65 +<script data-exclude=1>
66 $(function() { 66 $(function() {
67 67
68 //modal 显示事件 68 //modal 显示事件
@@ -165,5 +165,9 @@ @@ -165,5 +165,9 @@
165 } 165 }
166 } 166 }
167 } 167 }
  168 +
  169 + function getCurrSelNode(){
  170 + return $.jstree.reference("#modules_tree").get_selected(true);
  171 + }
168 }); 172 });
169 </script> 173 </script>
170 \ No newline at end of file 174 \ No newline at end of file
src/main/resources/static/pages/permission/module/edit_modal.html
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
86 </div> 86 </div>
87 </div> 87 </div>
88 </div> 88 </div>
89 -<script> 89 +<script data-exclude=1>
90 $(function() { 90 $(function() {
91 91
92 var groupData = [] 92 var groupData = []
@@ -224,5 +224,9 @@ $(function() { @@ -224,5 +224,9 @@ $(function() {
224 } 224 }
225 } 225 }
226 } 226 }
  227 +
  228 + function getCurrSelNode(){
  229 + return $.jstree.reference("#modules_tree").get_selected(true);
  230 + }
227 }); 231 });
228 </script> 232 </script>
229 \ No newline at end of file 233 \ No newline at end of file
src/main/resources/static/pages/permission/module/list.html
@@ -75,11 +75,10 @@ @@ -75,11 +75,10 @@
75 </div> 75 </div>
76 </div> 76 </div>
77 </div> 77 </div>
78 -<script> 78 +<script data-exclude=1>
79 79
80 $(function(){ 80 $(function(){
81 getTreeData(function(treeData){ 81 getTreeData(function(treeData){
82 - console.log(treeData);  
83 82
84 //初始化树 83 //初始化树
85 $('#modules_tree') 84 $('#modules_tree')
@@ -169,13 +168,7 @@ $(function(){ @@ -169,13 +168,7 @@ $(function(){
169 }); 168 });
170 169
171 function getCurrSelNode(){ 170 function getCurrSelNode(){
172 - var array = [];  
173 - try {  
174 - array = $.jstree.reference("#modules_tree").get_selected(true);  
175 - } catch (e) {  
176 - console.log(e);  
177 - }  
178 - return array; 171 + return $.jstree.reference("#modules_tree").get_selected(true);
179 } 172 }
180 173
181 function openTree_all(){ 174 function openTree_all(){