Commit 90ef18500d12f1dd16e4be3a049635d58685695a

Authored by 潘钊
1 parent 28d4ebbe

update

src/main/resources/static/pages/permission/authorize_all/authorize.html 0 → 100644
  1 +我在iframe 里面
0 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 2 \ No newline at end of file
... ...
src/main/resources/static/pages/permission/role/settings.html
... ... @@ -160,10 +160,13 @@ $(function(){
160 160  
161 161 //模块下拉框
162 162 getModuleTreeData(function(treeData){
  163 +
163 164 var options = '';
164 165 $.each(treeData, function(i, g){
165 166 var dArray = g.children;
166   -
  167 +
  168 + if(!dArray)
  169 + return true;
167 170 for(var i = 0,d; d = dArray[i++];){
168 171 options += '<optgroup label="'+d.name+'">';
169 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 56 ep.emit('all_personnel', data);
57 57 });
58 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 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 70 cb && cb(data);
... ...