| | |
| | | |
| | | // 树形图 |
| | | var organizationTree; |
| | | window.loadTree = function (condition) { |
| | | window.loadTree = function (condition,allSwitch) { |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl + "/dept/user/tree/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | 'condition': condition |
| | | 'condition': condition, |
| | | 'allSwitch': allSwitch |
| | | }, |
| | | method: 'POST', |
| | | success: function (res) { |
| | |
| | | , {field: 'updateTime$', align: 'center', title: '更新时间', hide: false} |
| | | ,{field: 'assistantHostSign$', align: 'left',title: '主副标记', hide: false} |
| | | ,{field: 'assistantHostSign', align: 'left',title: '主副标记', hide: true} |
| | | ,{field: 'hostPlanId', align: 'left',title: '主ID', hide: false} |
| | | ,{field: 'assistantPlanId', align: 'left',title: '副ID', hide: false} |
| | | ,{field: 'hostPlanId', align: 'left',title: '主ID', hide: true} |
| | | ,{field: 'assistantPlanId', align: 'left',title: '副ID', hide: true} |
| | | , {fixed: 'right', title: '操作', align: 'center', toolbar: '#operate', width: 350} |
| | | ]], |
| | | request: { |