中扬CRM客户关系管理系统
#
Junjie
2023-11-10 d109b375063dd3e59754973ff55cd88d51d8b95f
src/main/webapp/static/js/priOnline2/priOnline.js
@@ -29,13 +29,14 @@
    // 树形图
    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) {
@@ -316,7 +317,9 @@
        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("上传成功")