/** * 职务的参照 * @author weidy * @date 2021-1-7 */ layui.define(['layer','vciWebReferGrid'],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:'dutyQueryController/refDataGrid'; referConfig.options.backPath = referConfig.options.backPath?referConfig.options.backPath:that.backPath; if(!("method" in referConfig.options)){ referConfig.options.method = 'get'; } if(!("tableConfig" in referConfig.options)){ referConfig.options.tableConfig = { page: { limit: 15, page: 1 }, cols: [layui.table.getIndexColumn(), layui.table.getCheckColumn(), { field: 'id', title: '职务编号', sort:true, width: 150 }, { field: 'name', title: '职务名称', sort:true, width: 260 }, { field: 'description', title: '描述', sort:true, width: 200 },{ field:'secretGradeText', title:'密级', width: 60, hidden:(!configData.controllerSecret) }], queryColumns: [ { field: 'id', title: '职务编号' }, { field: 'name', title: '职务名称' } ] }; } layui.vciWebReferGrid.showReferDialog(referConfig); }; var rg = new ReferGrid(); exports('refer/OrgDutyRefer',rg); });