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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
| /**
| * 默认的首页
| */
| layui.define(['layer','vciWebPortalHome'],function(exports){
| var index = {
| MODULENAME:'portal/vciDefaultIndex',
| getContent:function(){
| return '<div class="layui-vci-mes208-index"></div>';
| },
| init:function(){
| var that = this;
| var home = layui['vciWebPortalHome'];
| var windowWidth = 0 ;
| if(window.innerWidth){
| windowWidth = window.innerWidth;
| }else{
| windowWidth = document.documentElement.clientWidth;
| }
| windowWidth = windowWidth-200;
| var userWidth = 3;
| if(windowWidth < 1250){
| userWidth = 4;
| }
| var taskWidth = 12-userWidth;
| if(!configData.portal ){
| configData.portal = {};
| }
| if(!configData.portal.vciDefaultIndex){
| configData.portal.vciDefaultIndex = {};
| }
| home.setConfig({requestDataType:'data'});
| home.setData([{
| width:taskWidth,
| id:'vciDefaultIndex_col_0',
| enable:(configData.portal.vciDefaultIndex.favEnable?configData.portal.vciDefaultIndex.favEnable:true),
| children:[{
| width:12,
| id:'vciDefaultIndex_col_0_1',
| enable:(configData.portal.vciDefaultIndex.favEnable?configData.portal.vciDefaultIndex.flowEnable:true),
| portlets:[{
| id:'vcimes182index_process',
| customStyle:'height:605px;',
| title:'待办流程任务',
| type:'card',
| centerUrl:'USEJS:process/vciWebProUndoTab',
| info:'点击去处理可以直接执行,或者点击此处左侧的按钮进入待办流程中心',
| items:[{
| id:'vciDefaultIndex_protask_1',
| title:'待办流程任务',
| type:'layui',
| url:'portal/vciWebProUndoTaskPortlet'
| }]
| }]
| }]
| },{
| width:userWidth,
| id:'vciDefaultIndex_col_1',
| enable:true,
| children:[{
| width:12,
| id:'vciDefaultIndex_col_0_2',
| enable:(configData.portal.vciDefaultIndex.favEnable?configData.portal.vciDefaultIndex.userEnable:true),
| portlets:[{
| id:'vciDefaultIndex_usercenter',
| title:'个人中心',
| type:'card',
| customStyle:'padding:2px',
| info:'点击可以进去用户个人中心',
| items:[{
| id:'vciDefaultIndex_usercenter_1',
| title:'个人信息',
| type:'layui',
| url: 'portal/vciBaseUserPortlet'
| }]
| }]
| },{
| width:12,
| id:'vciDefaultIndex_col_2',
| enable:(configData.portal.vciDefaultIndex.favEnable?configData.portal.vciDefaultIndex.calEnable:true),
| portlets:[{
| id:'vciDefaultIndex_workcal',
| title:'我的工作日历',
| type:'card',
| info:'黄色代表加班,红色代表双班',
| items:[{
| id:'vciDefaultIndex_workcal_2',
| title:'我的工作日历',
| type:'layui',
| url:'portal/vciBaseCalPortlet'
| }]
| }]
| }]
| }]);
| $(".layui-vci-mes208-index").html(home.getContent());
| home.init();
| }
| };
| exports(index.MODULENAME,index);
| });
|
|