Commit 90ef18500d12f1dd16e4be3a049635d58685695a

Authored by 潘钊
1 parent 28d4ebbe

update

src/main/resources/static/pages/permission/authorize_all/authorize.html 0 → 100644
  1 +我在iframe 里面
0 \ No newline at end of file 2 \ No newline at end of file
src/main/resources/static/pages/permission/authorize_all/main.html 0 → 100644
  1 +<iframe src="/pages/permission/authorize_all/authorize.html"></iframe>
0 \ No newline at end of file 2 \ No newline at end of file
src/main/resources/static/pages/permission/role/settings.html
@@ -160,10 +160,13 @@ $(function(){ @@ -160,10 +160,13 @@ $(function(){
160 160
161 //模块下拉框 161 //模块下拉框
162 getModuleTreeData(function(treeData){ 162 getModuleTreeData(function(treeData){
  163 +
163 var options = ''; 164 var options = '';
164 $.each(treeData, function(i, g){ 165 $.each(treeData, function(i, g){
165 var dArray = g.children; 166 var dArray = g.children;
166 - 167 +
  168 + if(!dArray)
  169 + return true;
167 for(var i = 0,d; d = dArray[i++];){ 170 for(var i = 0,d; d = dArray[i++];){
168 options += '<optgroup label="'+d.name+'">'; 171 options += '<optgroup label="'+d.name+'">';
169 if(!d.children) 172 if(!d.children)
src/main/resources/static/real_control_v2/js/data/data_basic.js
@@ -56,16 +56,15 @@ var gb_data_basic = (function () { @@ -56,16 +56,15 @@ var gb_data_basic = (function () {
56 ep.emit('all_personnel', data); 56 ep.emit('all_personnel', data);
57 }); 57 });
58 function loadAllPersonnel(cb) { 58 function loadAllPersonnel(cb) {
59 - $.get('/basic/all_personnel', function (rs) { 59 + $.get('/personnel/all_py', function (rs) {
60 //转换成自动补全组件需要的数据 60 //转换成自动补全组件需要的数据
61 - var data = [], name, code;  
62 - for (var jobCode in rs) {  
63 - name = rs[jobCode];  
64 - code = jobCode.indexOf('-')!=-1?jobCode.split('-')[1]:jobCode; 61 + var data = [], code;
  62 + for(var i =0, p; p = rs[i++];){
  63 + code = p['workId'].indexOf('-')!=-1?p['workId'].split('-')[1]:p['workId'];
65 data.push({ 64 data.push({
66 - value: code + '/' + name,  
67 - fullChars: pinyin.getFullChars(name).toUpperCase(),  
68 - camelChars: pinyin.getCamelChars(name) 65 + value: code + '/' + p.name,
  66 + fullChars: p.fullChars,
  67 + camelChars: p.camelChars
69 }); 68 });
70 } 69 }
71 cb && cb(data); 70 cb && cb(data);