| | |
| | | |
| | | // 树形图 |
| | | 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) { |
| | |
| | | var file = _uploadFile |
| | | $("#upload-file-id-" + file.lastModified).html("上传中") |
| | | |
| | | putObject(file).then((result) => { |
| | | putObject(file,(p) => { |
| | | $("#upload-file-id-" + file.lastModified).html("上传中:" + (Math.round(p * 100)) + "%") |
| | | }).then((result) => { |
| | | var filename = result.name |
| | | layer.msg('上传成功', {icon: 1}); |
| | | $("#upload-file-id-" + file.lastModified).html("上传成功") |