/** * 部门树的参照 * @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); });