田源
2024-04-07 2ac55ce0edf4870a29691b56bfad59f4830a11a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * 部门树的参照
 * @author weidy
 * @date 2021-1-7
 */
layui.define(['layer','vciWebReferTree'],function(exports){
    var ReferGrid = function(){
        this.backPath = (configData.compatibility?path:configData.frameworkPath);
    };
    ReferGrid.prototype.showReferDialog = function (referConfig){
        //只需要设置默认的值,调用VciWebReferGrid即可
        var that = this;
        referConfig.options.url = referConfig.options.url?referConfig.options.url:'departmentQueryController/refTree';
        referConfig.options.backPath = referConfig.options.backPath?referConfig.options.backPath:that.backPath;
        if(!("method" in referConfig.options)){
            referConfig.options.method = 'get';
        }
        referConfig.options.loadType = layui.tree.loadType.all;
        layui.vciWebReferTree.showReferDialog(referConfig);
    };
    var rg = new ReferGrid();
    exports('refer/OrgDepartmentRefer',rg);
});