1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
| /**
| * 部门列表的参照
| * @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:'departmentQueryController/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:'pkLeaderName',
| title: '部门主管',
| width: 80
| }, {
| field: 'description',
| title: '部门描述',
| sort:true,
| width: 200
| },{
| field:'secretGradeText',
| title:'密级',
| width: 60,
| hidden:(!configData.controllerSecret)
| }],
| queryColumns: [
| {
| field: 'name',
| title: '部门名称'
| }, {
| field: 'id',
| title: '部门编号'
| }
| ]
| };
| }
| layui.vciWebReferGrid.showReferDialog(referConfig);
| };
| var rg = new ReferGrid();
| exports('refer/OrgDepartmentGridRefer',rg);
| });
|
|