fmui-base 2.0.76 → 2.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,8 @@ var _react = require('react');
|
|
|
11
11
|
|
|
12
12
|
var _react2 = _interopRequireDefault(_react);
|
|
13
13
|
|
|
14
|
+
var _umi = require('umi');
|
|
15
|
+
|
|
14
16
|
var _reactGridLayout = require('react-grid-layout');
|
|
15
17
|
|
|
16
18
|
var _reactGridLayout2 = _interopRequireDefault(_reactGridLayout);
|
|
@@ -43,6 +45,14 @@ var _Button = require('saltui/lib/Button');
|
|
|
43
45
|
|
|
44
46
|
var _Button2 = _interopRequireDefault(_Button);
|
|
45
47
|
|
|
48
|
+
var _Toast = require('saltui/lib/Toast');
|
|
49
|
+
|
|
50
|
+
var _Toast2 = _interopRequireDefault(_Toast);
|
|
51
|
+
|
|
52
|
+
var _Refreshcontrol = require('saltui/lib/Refreshcontrol');
|
|
53
|
+
|
|
54
|
+
var _Refreshcontrol2 = _interopRequireDefault(_Refreshcontrol);
|
|
55
|
+
|
|
46
56
|
require('react-grid-layout/css/styles.css');
|
|
47
57
|
|
|
48
58
|
require('react-resizable/css/styles.css');
|
|
@@ -57,10 +67,6 @@ var _variables = require('../db/variables');
|
|
|
57
67
|
|
|
58
68
|
var _variables2 = _interopRequireDefault(_variables);
|
|
59
69
|
|
|
60
|
-
var _chart = require('../chart/chart');
|
|
61
|
-
|
|
62
|
-
var _chart2 = _interopRequireDefault(_chart);
|
|
63
|
-
|
|
64
70
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
65
71
|
|
|
66
72
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -71,6 +77,7 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
|
|
|
71
77
|
|
|
72
78
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
73
79
|
|
|
80
|
+
// import Chart from '../chart/chart';
|
|
74
81
|
var projectMenuUrl = _variables2.default.projectMenuUrl;
|
|
75
82
|
var HBox = _Boxs2.default.HBox,
|
|
76
83
|
Box = _Boxs2.default.Box,
|
|
@@ -88,37 +95,95 @@ var MyGrid = function (_React$Component) {
|
|
|
88
95
|
var _this = _possibleConstructorReturn(this, (MyGrid.__proto__ || Object.getPrototypeOf(MyGrid)).call(this, props));
|
|
89
96
|
|
|
90
97
|
_this.initPage = function () {
|
|
98
|
+
var t = _this;
|
|
91
99
|
// 部件的初始化信息
|
|
92
|
-
_db2.default.reactGrid.getPortalPage({ id:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
_db2.default.reactGrid.getPortalPage({ id: t.state.portalId, module: t.state.module }).then(function (res) {
|
|
101
|
+
if (res && res.length > 0) {
|
|
102
|
+
_this.setState({
|
|
103
|
+
data: res
|
|
104
|
+
});
|
|
105
|
+
res.map(function (item) {
|
|
106
|
+
if (item.portletCode == 'banner') {
|
|
107
|
+
_this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)));
|
|
108
|
+
_this.getRemindCount();
|
|
109
|
+
} else if (item.portletCode == 'image') {
|
|
110
|
+
_this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)));
|
|
111
|
+
} else if (item.portletCode == 'cyyy') {
|
|
112
|
+
var cyyyCols = JSON.parse(item.personalSetting).cols;
|
|
113
|
+
t.getShoucangAppInfo(item.id);
|
|
114
|
+
t.getOftenList(item.id, cyyyCols);
|
|
115
|
+
_this.getRemindCount();
|
|
116
|
+
} else if (item.portletCode !== 'tbgl') {
|
|
117
|
+
var _params = {
|
|
118
|
+
code: item.portletCode,
|
|
119
|
+
ppId: item.id
|
|
120
|
+
};
|
|
121
|
+
_db2.default.reactGrid.getComponentInfoListAll(_params).then(function (res) {
|
|
122
|
+
_this.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
} else {
|
|
127
|
+
_Toast2.default.show({
|
|
128
|
+
type: 'fail',
|
|
129
|
+
content: '未找到门户信息',
|
|
130
|
+
duration: 2000
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}).catch(function (error) {
|
|
134
|
+
_Toast2.default.show({
|
|
135
|
+
type: 'fail',
|
|
136
|
+
content: error.errorMsg,
|
|
137
|
+
duration: 2000
|
|
99
138
|
});
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
var params = {};
|
|
142
|
+
_db2.default.reactGrid.getNewHomePageTodoData(params).then(function (content) {
|
|
143
|
+
var openModule = content.hpOpenModule ? content.hpOpenModule : "";
|
|
144
|
+
localStorage.setItem('hpOpenModule', openModule);
|
|
145
|
+
// let todoData = content.todoData != null ? content.todoData.entity : {};
|
|
146
|
+
// let pageTitle = todoData.pageTitle;
|
|
147
|
+
// if (!pageTitle || pageTitle == '') {
|
|
148
|
+
// pageTitle = '一网通办管理平台'
|
|
149
|
+
// }
|
|
150
|
+
// setPageTitle(pageTitle);
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
_this.getShoucangAppInfo = function (id) {
|
|
155
|
+
_db2.default.reactGrid.getNewHomePageCollectAppInfoList({ showClient: "DING" }).then(function (result) {
|
|
156
|
+
_this.setState(_defineProperty({}, 'wdsc' + '_' + id, result.data), function () {
|
|
157
|
+
// console.log(this.state, 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm');
|
|
115
158
|
});
|
|
159
|
+
}).catch(function (error) {});
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
_this.getOftenList = function (id, cyyyCols) {
|
|
163
|
+
var data = getLoginUserInfo();
|
|
164
|
+
var thirdMenuType = data.thirdMenuType;
|
|
165
|
+
var params = { code: "cyyy", cols: cyyyCols };
|
|
166
|
+
if (thirdMenuType == null || thirdMenuType == 'null' || thirdMenuType == undefined || thirdMenuType == 'undefined') {
|
|
167
|
+
thirdMenuType = 'DING';
|
|
168
|
+
}
|
|
169
|
+
params.showClient = thirdMenuType;
|
|
170
|
+
_db2.default.reactGrid.getComponentInfoListAll(params).then(function (content) {
|
|
171
|
+
if (content) {
|
|
172
|
+
_this.setState(_defineProperty({}, 'cyyy' + '_' + id, content));
|
|
173
|
+
var appOftenListlocal = JSON.stringify(content);
|
|
174
|
+
// localStorage.setItem(['cyyy' + '_' + id], appOftenListlocal);
|
|
175
|
+
localStorage.setItem('appOftenList', appOftenListlocal);
|
|
176
|
+
}
|
|
177
|
+
}).catch(function (error) {
|
|
178
|
+
console.error(error);
|
|
116
179
|
});
|
|
117
|
-
_this.getRemindCount();
|
|
118
|
-
_this.getShoucangAppInfo();
|
|
119
180
|
};
|
|
120
181
|
|
|
182
|
+
var portalId = props.portalId;
|
|
183
|
+
var module = props.module;
|
|
121
184
|
_this.state = {
|
|
185
|
+
portalId: portalId,
|
|
186
|
+
module: module,
|
|
122
187
|
data: [],
|
|
123
188
|
isDraggable: false,
|
|
124
189
|
//标题样式
|
|
@@ -150,6 +215,10 @@ var MyGrid = function (_React$Component) {
|
|
|
150
215
|
bannerPicPath: '',
|
|
151
216
|
activeIndex: 2,
|
|
152
217
|
undo: 0, //待办数量
|
|
218
|
+
approveundo: 0, //审批数量
|
|
219
|
+
toBeAttendedCount: 0, //会议数量
|
|
220
|
+
unreadMailCount: 0, //未读邮件
|
|
221
|
+
unreadPubMailCount: 0, //未读公共邮件
|
|
153
222
|
appOftenList: [], //常用应用
|
|
154
223
|
collectAppInfoList: [], //收藏应用
|
|
155
224
|
bssx: [], // 办事事项
|
|
@@ -186,8 +255,8 @@ var MyGrid = function (_React$Component) {
|
|
|
186
255
|
bssxPer_show: true, //办事事项_个人_是否显示
|
|
187
256
|
bssxOrg_show: true, //办事事项_个人_是否显示,
|
|
188
257
|
cyyyUsuTab_show: true, //常用应用_是否显示
|
|
189
|
-
cyyyPerTab_show: true //我的收藏_是否显示
|
|
190
|
-
|
|
258
|
+
cyyyPerTab_show: true, //我的收藏_是否显示
|
|
259
|
+
activeIndex_mail: 0
|
|
191
260
|
|
|
192
261
|
};
|
|
193
262
|
return _this;
|
|
@@ -198,42 +267,61 @@ var MyGrid = function (_React$Component) {
|
|
|
198
267
|
value: function componentDidMount() {
|
|
199
268
|
this.initPage();
|
|
200
269
|
}
|
|
201
|
-
|
|
202
270
|
// 遍历初始化得到的data,奖id给请求部件的内容的接口
|
|
203
271
|
// 如果有两个相同的部件,将会用id请求部件内容,接口返回的数据需要 this.setState({【id】:result.data});这样存值
|
|
204
272
|
// 取值的时候根据id取值
|
|
205
273
|
|
|
206
|
-
}, {
|
|
207
|
-
key: 'getShoucangAppInfo',
|
|
208
|
-
|
|
209
274
|
|
|
210
275
|
// 获取收藏应用
|
|
211
|
-
value: function getShoucangAppInfo() {
|
|
212
|
-
var _this2 = this;
|
|
213
276
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
277
|
+
|
|
278
|
+
// 获取用户设置常用应用
|
|
279
|
+
// getComAppInfo = (id) => {
|
|
280
|
+
// let userId = getLoginUserInfo().userId;
|
|
281
|
+
// var userAppOftenList = [];
|
|
282
|
+
// var params = { userId: userId };
|
|
283
|
+
// DB.reactGrid.getComAppInfo(params).then((result) => {
|
|
284
|
+
// if (result.data) {
|
|
285
|
+
// this.setState({
|
|
286
|
+
// ['cyyy' + '_' + id]: JSON.parse(result.data)
|
|
287
|
+
// });
|
|
288
|
+
// localStorage.setItem(['cyyy' + '_' + id], result.data);
|
|
289
|
+
// userAppOftenList = JSON.parse(result.data);
|
|
290
|
+
// }
|
|
291
|
+
// if (userAppOftenList.length < 1) {
|
|
292
|
+
// // 没有用户设置,取系统默认值
|
|
293
|
+
// this.getOftenList(id);
|
|
294
|
+
// }
|
|
295
|
+
// }).catch((error) => {
|
|
296
|
+
// this.getOftenList();
|
|
297
|
+
// console.error(error);
|
|
298
|
+
// });
|
|
299
|
+
// }
|
|
300
|
+
// 获取默认系统常用应用
|
|
301
|
+
|
|
218
302
|
}, {
|
|
219
303
|
key: 'getRemindCount',
|
|
220
304
|
value: function getRemindCount() {
|
|
221
|
-
var
|
|
305
|
+
var _this2 = this;
|
|
222
306
|
|
|
223
|
-
_db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo" }).then(function (content) {
|
|
224
|
-
if (content.undo) {
|
|
225
|
-
|
|
226
|
-
undo: content.undo
|
|
307
|
+
_db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo,unreadMail,unreadPubMail,toBeAttended,approveundo" }).then(function (content) {
|
|
308
|
+
if (content.undo || content.approveundo || content.toBeAttendedCount || content.unreadPubMailCount || content.unreadMailCount) {
|
|
309
|
+
_this2.setState({
|
|
310
|
+
undo: content.undo,
|
|
311
|
+
unreadMailCount: content.unreadMailCount,
|
|
312
|
+
approveundo: content.approveundo,
|
|
313
|
+
toBeAttendedCount: content.toBeAttendedCount,
|
|
314
|
+
unreadPubMailCount: content.unreadPubMailCount
|
|
227
315
|
});
|
|
228
316
|
}
|
|
229
317
|
});
|
|
230
318
|
}
|
|
231
319
|
}, {
|
|
232
320
|
key: 'initCleader',
|
|
233
|
-
value: function initCleader(event) {
|
|
234
|
-
if (this.state.
|
|
321
|
+
value: function initCleader(event, id) {
|
|
322
|
+
if (!this.state["initCleader_" + id] || this.state["initCleader_" + id] == false) {
|
|
235
323
|
var t = this;
|
|
236
|
-
var calendar = document.getElementById(
|
|
324
|
+
var calendar = document.getElementById('calendar_ ' + id);
|
|
237
325
|
if (calendar) {
|
|
238
326
|
var cld = new CalendarMobile({
|
|
239
327
|
el: 'box',
|
|
@@ -247,7 +335,7 @@ var MyGrid = function (_React$Component) {
|
|
|
247
335
|
var MM = obj.month >= 10 ? obj.month : "0" + obj.month;
|
|
248
336
|
var DD = obj.day >= 10 ? obj.day : "0" + obj.day;
|
|
249
337
|
var Date = YY + "-" + MM + "-" + DD;
|
|
250
|
-
t.showCalendarList(Date, event);
|
|
338
|
+
t.showCalendarList(Date, event, id);
|
|
251
339
|
},
|
|
252
340
|
//点击上一个月
|
|
253
341
|
prevMonth: function prevMonth(obj) {},
|
|
@@ -259,10 +347,10 @@ var MyGrid = function (_React$Component) {
|
|
|
259
347
|
var DD = obj.day >= 10 ? obj.day : "0" + obj.day;
|
|
260
348
|
var Date = YY + "-" + MM + "-" + DD;
|
|
261
349
|
t.showCalendarEvent(event);
|
|
262
|
-
t.showCalendarList(Date, event);
|
|
350
|
+
t.showCalendarList(Date, event, id);
|
|
263
351
|
}
|
|
264
352
|
});
|
|
265
|
-
this.setState({
|
|
353
|
+
this.setState(_defineProperty({}, "initCleader_" + id, true));
|
|
266
354
|
}
|
|
267
355
|
}
|
|
268
356
|
}
|
|
@@ -288,11 +376,11 @@ var MyGrid = function (_React$Component) {
|
|
|
288
376
|
|
|
289
377
|
}, {
|
|
290
378
|
key: 'showCalendarList',
|
|
291
|
-
value: function showCalendarList(Date, data) {
|
|
379
|
+
value: function showCalendarList(Date, data, id) {
|
|
292
380
|
if (data.dataMap && data.dataMap[Date]) {
|
|
293
|
-
this.setState({
|
|
381
|
+
this.setState(_defineProperty({}, 'grrc_list_' + id, data.dataMap[Date]));
|
|
294
382
|
} else {
|
|
295
|
-
this.setState({
|
|
383
|
+
this.setState(_defineProperty({}, 'grrc_list_' + id, []));
|
|
296
384
|
}
|
|
297
385
|
}
|
|
298
386
|
}, {
|
|
@@ -315,17 +403,19 @@ var MyGrid = function (_React$Component) {
|
|
|
315
403
|
}, {
|
|
316
404
|
key: 'gotoYd',
|
|
317
405
|
value: function gotoYd() {
|
|
318
|
-
pageSkipDirectly(
|
|
406
|
+
pageSkipDirectly(_variables2.default.ydPath);
|
|
319
407
|
}
|
|
320
|
-
|
|
321
408
|
// 应用跳转
|
|
322
409
|
|
|
323
410
|
}, {
|
|
324
411
|
key: 'newPageSkip',
|
|
325
|
-
value: function newPageSkip(dingUrl, wxUrl, mhUrl, cocallUrl) {
|
|
412
|
+
value: function newPageSkip(dingUrl, wxUrl, mhUrl, cocallUrl, id) {
|
|
326
413
|
var dingVal = "DING";
|
|
327
414
|
var wxVal = "WX";
|
|
328
415
|
var mhVal = "MH";
|
|
416
|
+
_db2.default.portal.saveAppCount({ mobileAppId: id }).then(function (content) {}).catch(function (err) {
|
|
417
|
+
console.log(err);
|
|
418
|
+
});
|
|
329
419
|
|
|
330
420
|
var data = getLoginUserInfo();
|
|
331
421
|
var thirdMenuType = data.thirdMenuType;
|
|
@@ -391,18 +481,198 @@ var MyGrid = function (_React$Component) {
|
|
|
391
481
|
value: function skip2Project(code, pagePath) {
|
|
392
482
|
location.hash = pagePath;
|
|
393
483
|
}
|
|
484
|
+
|
|
485
|
+
//跳转到专题
|
|
486
|
+
|
|
487
|
+
}, {
|
|
488
|
+
key: 'skip2Zhuanti',
|
|
489
|
+
value: function skip2Zhuanti(item) {
|
|
490
|
+
var code = item.data.props.code;
|
|
491
|
+
location.hash = "topicservice/" + code;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
//跳转更多
|
|
495
|
+
|
|
496
|
+
}, {
|
|
497
|
+
key: 'skip2More',
|
|
498
|
+
value: function skip2More(type) {
|
|
499
|
+
var url = "";
|
|
500
|
+
if (type == 'grhy') {
|
|
501
|
+
//会议
|
|
502
|
+
url = getLoginUserInfo().context + '/mobile/modules/meeting/dist/index.html?&context=' + getLoginUserInfo().context + '&hasBottomTab=1';
|
|
503
|
+
pageSkipDirectly(url);
|
|
504
|
+
} else if (type == 'gryj') {
|
|
505
|
+
//个人邮件
|
|
506
|
+
url = getLoginUserInfo().context + '/mobile/modules/mail/dist/index.html?&context=' + getLoginUserInfo().context + '&hasBottomTab=1&isPublic=0#/mail/home/1/';
|
|
507
|
+
pageSkipDirectly(url);
|
|
508
|
+
} else if (type == 'ggyj') {
|
|
509
|
+
//公共邮件
|
|
510
|
+
url = getLoginUserInfo().context + '/mobile/modules/mail/dist/index.html?&context=' + getLoginUserInfo().context + '&hasBottomTab=1&isPublic=1#/mail/home/1/';
|
|
511
|
+
pageSkipDirectly(url);
|
|
512
|
+
} else if (type == 'lcfq') {
|
|
513
|
+
//流程发起
|
|
514
|
+
location.hash = "officehall";
|
|
515
|
+
} else if (type == 'wdsx') {
|
|
516
|
+
//我的事项
|
|
517
|
+
location.hash = "approval/all/5";
|
|
518
|
+
} else if (type == 'bssx') {
|
|
519
|
+
//办事事项
|
|
520
|
+
location.hash = "officehall";
|
|
521
|
+
} else if (type == "jxzt") {
|
|
522
|
+
location.hash = "officehall";
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
//跳转到我的事项
|
|
527
|
+
|
|
528
|
+
}, {
|
|
529
|
+
key: 'skip2Process',
|
|
530
|
+
value: function skip2Process(itemInfo, param_list_type) {
|
|
531
|
+
console.log(itemInfo);
|
|
532
|
+
var param_processKey = itemInfo.processKey; // 流程类型code
|
|
533
|
+
var param_formKey = itemInfo.formKey; // 表单id
|
|
534
|
+
var param_businessKey = itemInfo.businessKey; // 表单数据id;
|
|
535
|
+
var param_startUserId = itemInfo.startUserId; // 流程发起人id
|
|
536
|
+
// let param_list_type = "5"; // 列表类型 待办-0,待阅-1,
|
|
537
|
+
var processName = itemInfo.processName; // 流程名称
|
|
538
|
+
var module = itemInfo.module; // 流程名称
|
|
539
|
+
var type = "all"; //self:本应用,all:全模块
|
|
540
|
+
var projectPath = "modules/mobilehall"; //项目路径
|
|
541
|
+
|
|
542
|
+
var taskId = '';
|
|
543
|
+
var processInstanceId = itemInfo.processInstanceId;
|
|
544
|
+
if (param_list_type == '2') {
|
|
545
|
+
taskId = itemInfo.taskId;
|
|
546
|
+
} else {
|
|
547
|
+
taskId = itemInfo.id;
|
|
548
|
+
}
|
|
549
|
+
var queryurl = "";
|
|
550
|
+
if (param_list_type == "5") {
|
|
551
|
+
queryurl = "?isDraft=1";
|
|
552
|
+
param_list_type = 0;
|
|
553
|
+
}
|
|
554
|
+
var loginUserId = getLoginUserInfo().userId;
|
|
555
|
+
// location.hash = 'approval/approval-details/detail-servlet/' + param_list_type + '/1/' + param_processKey + '/' + param_formKey + '/' +param_businessKey +
|
|
556
|
+
// '/' + param_startUserId;
|
|
557
|
+
// alert(searchVal);
|
|
558
|
+
if (type == "all") {
|
|
559
|
+
if (module == "hall_service") {
|
|
560
|
+
var url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
|
|
561
|
+
// if (searchVal != '') {
|
|
562
|
+
// url += "/" + searchVal;
|
|
563
|
+
// }
|
|
564
|
+
url = url + queryurl;
|
|
565
|
+
decodeURI(url);
|
|
566
|
+
location.hash = url;
|
|
567
|
+
} else {
|
|
568
|
+
var fullUrl = window.location.href;
|
|
569
|
+
var mobilePath = module;
|
|
570
|
+
if (module.indexOf("_") > 0) {
|
|
571
|
+
var category = module.split("_")[0];
|
|
572
|
+
mobilePath = module.substring(module.indexOf("_") + 1);
|
|
573
|
+
fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
|
|
574
|
+
} else {
|
|
575
|
+
fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
|
|
576
|
+
}
|
|
577
|
+
//alert(fullUrl);
|
|
578
|
+
var _url = "process/processDetails/" + taskId + "/" + param_formKey + "/" + param_businessKey + "/" + param_list_type + "/0/" + processInstanceId + "/" + module + "/" + loginUserId;
|
|
579
|
+
_url = fullUrl + '/' + _url;
|
|
580
|
+
_url = _url + queryurl;
|
|
581
|
+
decodeURI(_url);
|
|
582
|
+
location.href = _url;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// 区分个人邮件和公共邮件
|
|
588
|
+
|
|
589
|
+
}, {
|
|
590
|
+
key: 'handleChange',
|
|
591
|
+
value: function handleChange(id, obj) {
|
|
592
|
+
|
|
593
|
+
var t = this;
|
|
594
|
+
console.log({
|
|
595
|
+
activeIndex: obj.active,
|
|
596
|
+
preActiveIndex: obj.preActive,
|
|
597
|
+
data: id
|
|
598
|
+
});
|
|
599
|
+
if (obj.active == '1') {
|
|
600
|
+
var _setState4;
|
|
601
|
+
|
|
602
|
+
this.setState((_setState4 = {}, _defineProperty(_setState4, 'activeIndex_ggyj_' + id, true), _defineProperty(_setState4, 'activeIndex_gryj_' + id, false), _setState4));
|
|
603
|
+
} else {
|
|
604
|
+
var _setState5;
|
|
605
|
+
|
|
606
|
+
this.setState((_setState5 = {}, _defineProperty(_setState5, 'activeIndex_gryj_' + id, true), _defineProperty(_setState5, 'activeIndex_ggyj_' + id, false), _setState5));
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// 部件内容渲染处理函数
|
|
611
|
+
|
|
612
|
+
}, {
|
|
613
|
+
key: 'portalContent',
|
|
614
|
+
value: function portalContent(item) {
|
|
615
|
+
var t = this;
|
|
616
|
+
|
|
617
|
+
if (item.portletCode === 'banner') {
|
|
618
|
+
componentContent = _react2.default.createElement(
|
|
619
|
+
'div',
|
|
620
|
+
null,
|
|
621
|
+
'1111111'
|
|
622
|
+
);
|
|
623
|
+
}
|
|
624
|
+
if (item.portletCode === 'cyyy') {
|
|
625
|
+
componentContent = _react2.default.createElement(
|
|
626
|
+
'div',
|
|
627
|
+
null,
|
|
628
|
+
'2222222'
|
|
629
|
+
);
|
|
630
|
+
}
|
|
631
|
+
if (item.portletCode === 'bssx') {
|
|
632
|
+
componentContent = _react2.default.createElement(
|
|
633
|
+
'div',
|
|
634
|
+
null,
|
|
635
|
+
'3333333'
|
|
636
|
+
);
|
|
637
|
+
}
|
|
638
|
+
if (item.portletCode === 'ttxx') {
|
|
639
|
+
componentContent = _react2.default.createElement(
|
|
640
|
+
'div',
|
|
641
|
+
null,
|
|
642
|
+
'44444444'
|
|
643
|
+
);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
return _react2.default.createElement(
|
|
647
|
+
'div',
|
|
648
|
+
null,
|
|
649
|
+
componentContent
|
|
650
|
+
);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
// 下拉刷新
|
|
654
|
+
|
|
655
|
+
}, {
|
|
656
|
+
key: 'onRefresh',
|
|
657
|
+
value: function onRefresh() {
|
|
658
|
+
var _this3 = this;
|
|
659
|
+
|
|
660
|
+
// debugger;
|
|
661
|
+
this.setState({ refreshing: true });
|
|
662
|
+
this.initPage();
|
|
663
|
+
// this.setState({
|
|
664
|
+
// refreshing: false,
|
|
665
|
+
// });
|
|
666
|
+
setTimeout(function () {
|
|
667
|
+
_this3.setState({
|
|
668
|
+
refreshing: false
|
|
669
|
+
});
|
|
670
|
+
}, 1000);
|
|
671
|
+
}
|
|
394
672
|
}, {
|
|
395
673
|
key: 'render',
|
|
396
674
|
value: function render() {
|
|
397
|
-
var _this4 = this;
|
|
398
|
-
|
|
399
675
|
var t = this;
|
|
400
|
-
// let pathUrl = "";
|
|
401
|
-
// if (t.state.bannerPicPath && t.state.bannerPicPath != "") {
|
|
402
|
-
// pathUrl = t.state.bannerPicPath;
|
|
403
|
-
// } else {
|
|
404
|
-
// pathUrl = t.state.pageImage;
|
|
405
|
-
// }
|
|
406
676
|
var context = localStorage.getItem('context');
|
|
407
677
|
var userId = getLoginUserInfo().userId;
|
|
408
678
|
var token = getLoginUserInfo().token;
|
|
@@ -417,1216 +687,32 @@ var MyGrid = function (_React$Component) {
|
|
|
417
687
|
};
|
|
418
688
|
});
|
|
419
689
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
var grrcContent = t.state.grrc_list.map(function (item) {
|
|
425
|
-
var completed = false;
|
|
426
|
-
if (item.startTime) {
|
|
427
|
-
var date = new Date(item.startTime.replace(/-/g, '/'));
|
|
428
|
-
var H = date.getHours();
|
|
429
|
-
var M = date.getMinutes();
|
|
430
|
-
if (H < 10) {
|
|
431
|
-
H = "0" + H;
|
|
432
|
-
}
|
|
433
|
-
if (M < 10) {
|
|
434
|
-
M = "0" + M;
|
|
435
|
-
}
|
|
436
|
-
var time = H + ":" + M;
|
|
437
|
-
var now = new Date();
|
|
438
|
-
if (date < now) {
|
|
439
|
-
//过去时
|
|
440
|
-
completed = true;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
690
|
+
if (!layout || layout.length === 0) {
|
|
691
|
+
return null;
|
|
692
|
+
} else {
|
|
443
693
|
return _react2.default.createElement(
|
|
444
|
-
|
|
445
|
-
{ className:
|
|
694
|
+
'div',
|
|
695
|
+
{ className: 'react-grid' },
|
|
446
696
|
_react2.default.createElement(
|
|
447
|
-
|
|
448
|
-
{
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
697
|
+
_reactGridLayout2.default,
|
|
698
|
+
{
|
|
699
|
+
className: 'layout',
|
|
700
|
+
layout: layout,
|
|
701
|
+
cols: 12,
|
|
702
|
+
rowHeight: 20,
|
|
703
|
+
width: window.innerWidth,
|
|
704
|
+
isDraggable: this.state.isDraggable,
|
|
705
|
+
margin: [0, 15],
|
|
706
|
+
containerPadding: [8, 0]
|
|
707
|
+
},
|
|
708
|
+
this.state.data.map(function (item) {
|
|
709
|
+
return t.portalContent(item) || null;
|
|
710
|
+
|
|
711
|
+
// 添加一个默认返回值,以避免未指定键的错误
|
|
712
|
+
})
|
|
460
713
|
)
|
|
461
714
|
);
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
return _react2.default.createElement(
|
|
465
|
-
'div',
|
|
466
|
-
{ className: 'react-grid' },
|
|
467
|
-
_react2.default.createElement(
|
|
468
|
-
_reactGridLayout2.default,
|
|
469
|
-
{
|
|
470
|
-
className: 'layout',
|
|
471
|
-
layout: layout,
|
|
472
|
-
cols: 12,
|
|
473
|
-
rowHeight: 20,
|
|
474
|
-
width: window.innerWidth,
|
|
475
|
-
isDraggable: this.state.isDraggable,
|
|
476
|
-
margin: [0, 10]
|
|
477
|
-
},
|
|
478
|
-
this.state.data.map(function (item) {
|
|
479
|
-
{/* banner */}
|
|
480
|
-
if (item.portletCode === 'banner') {
|
|
481
|
-
// 判断AI和menu
|
|
482
|
-
var isShowList = JSON.parse(item.personalSetting).bannerSet.split(',');
|
|
483
|
-
var styleSetting = JSON.parse(item.styleSetting);
|
|
484
|
-
var pathUrl = "";
|
|
485
|
-
if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].bannerImg) {
|
|
486
|
-
var pathUrlId = t.state[item.portletCode + '_' + item.id].bannerImg;
|
|
487
|
-
pathUrl = localStorage.getItem('context') + '/api/m/plugin/attachment/mobile/viewImage?token=' + localStorage.getItem('token') + '&fid=' + pathUrlId;
|
|
488
|
-
} else {
|
|
489
|
-
pathUrl = t.state.pageImage;
|
|
490
|
-
}
|
|
491
|
-
return _react2.default.createElement(
|
|
492
|
-
'div',
|
|
493
|
-
{ className: 'react-grid-component', key: item.id, style: {
|
|
494
|
-
borderTopLeftRadius: styleSetting.otherSet.radius.topLeft,
|
|
495
|
-
borderTopRightRadius: styleSetting.otherSet.radius.topRight,
|
|
496
|
-
borderBottomLeftRadius: styleSetting.otherSet.radius.bottomLeft,
|
|
497
|
-
borderBottomRightRadius: styleSetting.otherSet.radius.bottomRight,
|
|
498
|
-
paddingLeft: styleSetting.otherSet.paddingSet.pl,
|
|
499
|
-
paddingright: styleSetting.otherSet.paddingSet.pr,
|
|
500
|
-
paddingTop: styleSetting.otherSet.paddingSet.pt,
|
|
501
|
-
paddingBottom: styleSetting.otherSet.paddingSet.pb,
|
|
502
|
-
background: styleSetting.otherSet.bgColor ? styleSetting.otherSet.bgColor : ''
|
|
503
|
-
} },
|
|
504
|
-
_this4.conponentHeads,
|
|
505
|
-
_react2.default.createElement(
|
|
506
|
-
'div',
|
|
507
|
-
{ className: 'react-grid-banner' },
|
|
508
|
-
_react2.default.createElement(
|
|
509
|
-
'div',
|
|
510
|
-
{ className: 'banner' },
|
|
511
|
-
_react2.default.createElement(
|
|
512
|
-
'div',
|
|
513
|
-
{ className: t.state.showSlide == true ? "t-PR" : "t-DN" },
|
|
514
|
-
_this4.state.bannerList.map(function (item) {
|
|
515
|
-
return _react2.default.createElement(
|
|
516
|
-
'div',
|
|
517
|
-
{ className: 'banner-gallery', index: item.index },
|
|
518
|
-
_react2.default.createElement('img', { className: t.state.showItem == item.index ? "bannerimg" : "t-DN", src: item.src })
|
|
519
|
-
);
|
|
520
|
-
}),
|
|
521
|
-
_react2.default.createElement(
|
|
522
|
-
'div',
|
|
523
|
-
{ className: 'gallery-list' },
|
|
524
|
-
_this4.state.bannerList.map(function (item) {
|
|
525
|
-
return _react2.default.createElement('span', { className: t.state.showItem == item.index ? "gallery-dot active" : "gallery-dot" });
|
|
526
|
-
})
|
|
527
|
-
)
|
|
528
|
-
),
|
|
529
|
-
_react2.default.createElement('img', { className: t.state.showSlide == false ? "bannerimg" : "t-DN", src: pathUrl, onerror: '/mobile/fmui/images/home-banner.png\';this.onerror=null' })
|
|
530
|
-
),
|
|
531
|
-
_react2.default.createElement(
|
|
532
|
-
'div',
|
|
533
|
-
{ className: 'global-search' },
|
|
534
|
-
_react2.default.createElement(
|
|
535
|
-
_TextField2.default,
|
|
536
|
-
{ placeholder: '\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u8FDB\u884C\u641C\u7D22', value: t.state.searchVal, allowClear: false, onClick: function onClick(value) {
|
|
537
|
-
t.globalSearchChange(value);
|
|
538
|
-
} },
|
|
539
|
-
_react2.default.createElement(
|
|
540
|
-
RightAddon,
|
|
541
|
-
null,
|
|
542
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-sousuo1 t-P10', onClick: function onClick() {
|
|
543
|
-
t.globalSearchClick();
|
|
544
|
-
} })
|
|
545
|
-
)
|
|
546
|
-
),
|
|
547
|
-
_react2.default.createElement(
|
|
548
|
-
'div',
|
|
549
|
-
{ className: isShowList.indexOf('AI') > -1 ? 't-FAC' : 't-DN', onClick: function onClick() {
|
|
550
|
-
t.gotoYd();
|
|
551
|
-
} },
|
|
552
|
-
_react2.default.createElement('i', { className: 'iconfont icon-zhineng' }),
|
|
553
|
-
_react2.default.createElement(
|
|
554
|
-
'div',
|
|
555
|
-
{ className: 't-FS12 t-MT4' },
|
|
556
|
-
'\u667A\u80FD\u5BA2\u670D'
|
|
557
|
-
)
|
|
558
|
-
)
|
|
559
|
-
),
|
|
560
|
-
_react2.default.createElement(
|
|
561
|
-
_Grid2.default,
|
|
562
|
-
{ col: colNum, className: 'dd-applist' },
|
|
563
|
-
t.state.todoList.length > 0 && isShowList.indexOf('menu') > -1 ? t.state.todoList.map(function (item) {
|
|
564
|
-
var todoInfo = projectMenuUrl.todoInfo[item];
|
|
565
|
-
return _react2.default.createElement(
|
|
566
|
-
'div',
|
|
567
|
-
{ className: 'demo', onClick: t.skip2Project.bind(this, todoInfo.moduleCode, todoInfo.url) },
|
|
568
|
-
_react2.default.createElement(
|
|
569
|
-
'div',
|
|
570
|
-
{ className: 'react-grid-banner-item' },
|
|
571
|
-
_react2.default.createElement(
|
|
572
|
-
_Badge2.default,
|
|
573
|
-
{ count: item == 'daiban' ? t.state.undo : '' },
|
|
574
|
-
_react2.default.createElement('i', { className: 'theme-color iconfont icon-' + todoInfo.icon })
|
|
575
|
-
)
|
|
576
|
-
),
|
|
577
|
-
_react2.default.createElement(
|
|
578
|
-
'div',
|
|
579
|
-
{ className: 'menu-title t-FS14' },
|
|
580
|
-
todoInfo.name
|
|
581
|
-
)
|
|
582
|
-
);
|
|
583
|
-
}.bind(_this4)) : ''
|
|
584
|
-
)
|
|
585
|
-
)
|
|
586
|
-
);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
if (item.portletCode === 'cyyy') {
|
|
590
|
-
var personalSetting = JSON.parse(item.personalSetting);
|
|
591
|
-
var _styleSetting = JSON.parse(item.styleSetting);
|
|
592
|
-
return _react2.default.createElement(
|
|
593
|
-
'div',
|
|
594
|
-
{ key: item.id, style: {
|
|
595
|
-
borderTopLeftRadius: _styleSetting.otherSet.radius.topLeft,
|
|
596
|
-
borderTopRightRadius: _styleSetting.otherSet.radius.topRight,
|
|
597
|
-
borderBottomLeftRadius: _styleSetting.otherSet.radius.bottomLeft,
|
|
598
|
-
borderBottomRightRadius: _styleSetting.otherSet.radius.bottomRight,
|
|
599
|
-
paddingLeft: _styleSetting.otherSet.paddingSet.pl,
|
|
600
|
-
paddingright: _styleSetting.otherSet.paddingSet.pr,
|
|
601
|
-
paddingTop: _styleSetting.otherSet.paddingSet.pt,
|
|
602
|
-
paddingBottom: _styleSetting.otherSet.paddingSet.pb,
|
|
603
|
-
background: _styleSetting.otherSet.bgColor ? _styleSetting.otherSet.bgColor : ''
|
|
604
|
-
} },
|
|
605
|
-
_react2.default.createElement(
|
|
606
|
-
'div',
|
|
607
|
-
{ className: 'react-app-collect' },
|
|
608
|
-
_react2.default.createElement(
|
|
609
|
-
_Tab2.default,
|
|
610
|
-
{ activeKey: '0' },
|
|
611
|
-
_react2.default.createElement(
|
|
612
|
-
_Tab2.default.Item,
|
|
613
|
-
{ title: _react2.default.createElement(
|
|
614
|
-
'div',
|
|
615
|
-
{ style: { color: _styleSetting.titleSet.color, fontWeight: _styleSetting.titleSet.fontWeight } },
|
|
616
|
-
'\u5E38\u7528\u5E94\u7528'
|
|
617
|
-
) },
|
|
618
|
-
_react2.default.createElement(
|
|
619
|
-
_Grid2.default,
|
|
620
|
-
{ col: personalSetting.cols * 1, className: t.state.showcyyy ? '' : 't-DN' },
|
|
621
|
-
t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].data.length > 0 ? t.state[item.portletCode + '_' + item.id].data.map(function (ele) {
|
|
622
|
-
return _react2.default.createElement(
|
|
623
|
-
'div',
|
|
624
|
-
{ className: 'systemItem', onClick: t.newPageSkip.bind(t, ele.dingUrl, ele.wxUrl, ele.mhUrl, ele.cocallUrl) },
|
|
625
|
-
_react2.default.createElement(
|
|
626
|
-
'div',
|
|
627
|
-
{ className: ele.iconColor == "" ? "iconblock t-iconBCred" : 'iconblock t-iconBC' + ele.iconColor },
|
|
628
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
|
|
629
|
-
),
|
|
630
|
-
_react2.default.createElement(
|
|
631
|
-
'p',
|
|
632
|
-
{ className: 'text t-omit t-PT2 t-LH2' },
|
|
633
|
-
ele.name
|
|
634
|
-
)
|
|
635
|
-
);
|
|
636
|
-
}) : '',
|
|
637
|
-
_react2.default.createElement(
|
|
638
|
-
'div',
|
|
639
|
-
{ className: 'systemItem', onClick: t.jumpPage.bind(_this4, "homepage/home/applistSetting") },
|
|
640
|
-
_react2.default.createElement(
|
|
641
|
-
'div',
|
|
642
|
-
{ className: 'iconblock t-iconBCred' },
|
|
643
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb' + ' icon-ywtb-gengduo' })
|
|
644
|
-
),
|
|
645
|
-
_react2.default.createElement(
|
|
646
|
-
'p',
|
|
647
|
-
{ className: 'text t-omit t-PT2 t-LH2' },
|
|
648
|
-
'\u66F4\u591A'
|
|
649
|
-
)
|
|
650
|
-
)
|
|
651
|
-
)
|
|
652
|
-
),
|
|
653
|
-
_react2.default.createElement(
|
|
654
|
-
_Tab2.default.Item,
|
|
655
|
-
{ title: _react2.default.createElement(
|
|
656
|
-
'div',
|
|
657
|
-
{ style: { color: _styleSetting.titleSet.color, fontWeight: _styleSetting.titleSet.fontWeight } },
|
|
658
|
-
'\u6211\u7684\u6536\u85CF'
|
|
659
|
-
) },
|
|
660
|
-
_react2.default.createElement(
|
|
661
|
-
_Grid2.default,
|
|
662
|
-
{ col: personalSetting.cols * 1 },
|
|
663
|
-
t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].data.length > 0 ? t.state[item.portletCode + '_' + item.id].data.map(function (ele) {
|
|
664
|
-
return _react2.default.createElement(
|
|
665
|
-
'div',
|
|
666
|
-
{ className: 'systemItem', onClick: t.newPageSkip.bind(t, ele.dingUrl, ele.wxUrl, ele.mhUrl, ele.cocallUrl) },
|
|
667
|
-
_react2.default.createElement(
|
|
668
|
-
'div',
|
|
669
|
-
{ className: 'iconblock t-iconBC' + ele.iconColor },
|
|
670
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
|
|
671
|
-
),
|
|
672
|
-
_react2.default.createElement(
|
|
673
|
-
'p',
|
|
674
|
-
{ className: 'text t-omit t-PT2 t-LH2' },
|
|
675
|
-
ele.name
|
|
676
|
-
)
|
|
677
|
-
);
|
|
678
|
-
}) : '',
|
|
679
|
-
_react2.default.createElement(
|
|
680
|
-
'div',
|
|
681
|
-
{ className: 'systemItem', onClick: t.jumpPage.bind(_this4, "/appCollect") },
|
|
682
|
-
_react2.default.createElement(
|
|
683
|
-
'div',
|
|
684
|
-
{ className: 'iconblock t-iconBCred' },
|
|
685
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb' + ' icon-ywtb-gengduo' })
|
|
686
|
-
),
|
|
687
|
-
_react2.default.createElement(
|
|
688
|
-
'p',
|
|
689
|
-
{ className: 'text t-omit t-PT2 t-LH2' },
|
|
690
|
-
'\u66F4\u591A'
|
|
691
|
-
)
|
|
692
|
-
)
|
|
693
|
-
)
|
|
694
|
-
)
|
|
695
|
-
)
|
|
696
|
-
)
|
|
697
|
-
);
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
if (item.portletCode === 'bssx') {
|
|
701
|
-
{/* 办事 */}
|
|
702
|
-
var _personalSetting = JSON.parse(item.personalSetting);
|
|
703
|
-
var bssxShowList = JSON.parse(item.personalSetting).showModule;
|
|
704
|
-
var _styleSetting2 = JSON.parse(item.styleSetting);
|
|
705
|
-
|
|
706
|
-
var componentContent = '';
|
|
707
|
-
var perList = '';
|
|
708
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
709
|
-
if (t.state[item.portletCode + '_' + item.id].perList) {
|
|
710
|
-
perList = t.state[item.portletCode + '_' + item.id].perList.map(function (item) {
|
|
711
|
-
return _react2.default.createElement(
|
|
712
|
-
'div',
|
|
713
|
-
{ className: 'banshi-item', onClick: function onClick() {
|
|
714
|
-
history.push('/officeguid' + ('?id=' + item.id + '&code=' + item.code));
|
|
715
|
-
} },
|
|
716
|
-
_react2.default.createElement(
|
|
717
|
-
'div',
|
|
718
|
-
{ className: 'title t-omit' },
|
|
719
|
-
item.name
|
|
720
|
-
),
|
|
721
|
-
_react2.default.createElement(
|
|
722
|
-
'div',
|
|
723
|
-
{ className: 'describe t-omit' },
|
|
724
|
-
item.categoryName
|
|
725
|
-
),
|
|
726
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' bg' }),
|
|
727
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' ic' })
|
|
728
|
-
);
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
var orgList = '';
|
|
733
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
734
|
-
if (t.state[item.portletCode + '_' + item.id].orgList) {
|
|
735
|
-
orgList = t.state[item.portletCode + '_' + item.id].orgList.map(function (item) {
|
|
736
|
-
return _react2.default.createElement(
|
|
737
|
-
'div',
|
|
738
|
-
{ className: 'banshi-item', onClick: function onClick() {
|
|
739
|
-
history.push('/officeguid' + ('?id=' + item.id + '&code=' + item.code));
|
|
740
|
-
} },
|
|
741
|
-
_react2.default.createElement(
|
|
742
|
-
'div',
|
|
743
|
-
{ className: 'title t-omit' },
|
|
744
|
-
item.name
|
|
745
|
-
),
|
|
746
|
-
_react2.default.createElement(
|
|
747
|
-
'div',
|
|
748
|
-
{ className: 'describe t-omit' },
|
|
749
|
-
item.categoryName
|
|
750
|
-
),
|
|
751
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' bg' }),
|
|
752
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' ic' })
|
|
753
|
-
);
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
var bssxPerTab = '';
|
|
758
|
-
if (_styleSetting2.titleSet.titleStatus == 1 && bssxShowList.indexOf('personWork') > -1) {
|
|
759
|
-
bssxPerTab = _react2.default.createElement(
|
|
760
|
-
_Tab2.default.Item,
|
|
761
|
-
{ title: _react2.default.createElement(
|
|
762
|
-
'div',
|
|
763
|
-
{ className: '', style: _defineProperty({ color: _styleSetting2.titleSet.color, fontWeight: _styleSetting2.titleSet.fontWeight, fontSize: _styleSetting2.titleSet.titleSize, fontFamily: _styleSetting2.titleSet.fontFamily, fontStyle: _styleSetting2.titleSet.titleItalic }, 'fontWeight', _styleSetting2.titleSet.titleWeight) },
|
|
764
|
-
'\u4E2A\u4EBA\u529E\u4E8B'
|
|
765
|
-
), key: 0 },
|
|
766
|
-
_react2.default.createElement(
|
|
767
|
-
'div',
|
|
768
|
-
{ className: 'banshi-list' },
|
|
769
|
-
perList
|
|
770
|
-
)
|
|
771
|
-
);
|
|
772
|
-
}
|
|
773
|
-
var bssxOrgTab = '';
|
|
774
|
-
if (_styleSetting2.titleSet.titleStatus == 1 && bssxShowList.indexOf('deptWork') > -1) {
|
|
775
|
-
bssxOrgTab = _react2.default.createElement(
|
|
776
|
-
_Tab2.default.Item,
|
|
777
|
-
{ key: 1, title: _react2.default.createElement(
|
|
778
|
-
'div',
|
|
779
|
-
{ className: '', style: _defineProperty({ color: _styleSetting2.titleSet.color, fontWeight: _styleSetting2.titleSet.fontWeight, fontSize: _styleSetting2.titleSet.titleSize, fontFamily: _styleSetting2.titleSet.fontFamily, fontStyle: _styleSetting2.titleSet.titleItalic }, 'fontWeight', _styleSetting2.titleSet.titleWeight) },
|
|
780
|
-
'\u90E8\u95E8\u529E\u4E8B'
|
|
781
|
-
) },
|
|
782
|
-
_react2.default.createElement(
|
|
783
|
-
'div',
|
|
784
|
-
{ className: 'banshi-list' },
|
|
785
|
-
orgList
|
|
786
|
-
)
|
|
787
|
-
);
|
|
788
|
-
}
|
|
789
|
-
componentContent = _react2.default.createElement(
|
|
790
|
-
'div',
|
|
791
|
-
{ className: 'component-bssx' },
|
|
792
|
-
_react2.default.createElement(
|
|
793
|
-
'p',
|
|
794
|
-
{ className: _styleSetting2.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
|
|
795
|
-
'\u66F4\u591A',
|
|
796
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
|
|
797
|
-
),
|
|
798
|
-
_react2.default.createElement(
|
|
799
|
-
_Tab2.default,
|
|
800
|
-
{ activeKey: bssxShowList.indexOf('personWork') > -1 ? "0" : "1" },
|
|
801
|
-
bssxPerTab,
|
|
802
|
-
bssxOrgTab
|
|
803
|
-
)
|
|
804
|
-
);
|
|
805
|
-
|
|
806
|
-
return _react2.default.createElement(
|
|
807
|
-
'div',
|
|
808
|
-
{ key: item.id, style: {
|
|
809
|
-
borderTopLeftRadius: _styleSetting2.otherSet.radius.topLeft,
|
|
810
|
-
borderTopRightRadius: _styleSetting2.otherSet.radius.topRight,
|
|
811
|
-
borderBottomLeftRadius: _styleSetting2.otherSet.radius.bottomLeft,
|
|
812
|
-
borderBottomRightRadius: _styleSetting2.otherSet.radius.bottomRight,
|
|
813
|
-
paddingLeft: _styleSetting2.otherSet.paddingSet.pl,
|
|
814
|
-
paddingright: _styleSetting2.otherSet.paddingSet.pr,
|
|
815
|
-
paddingTop: _styleSetting2.otherSet.paddingSet.pt,
|
|
816
|
-
paddingBottom: _styleSetting2.otherSet.paddingSet.pb,
|
|
817
|
-
background: _styleSetting2.otherSet.bgColor ? _styleSetting2.otherSet.bgColor : ''
|
|
818
|
-
} },
|
|
819
|
-
componentContent
|
|
820
|
-
);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
if (item.portletCode === 'ttxx') {
|
|
824
|
-
var _personalSetting2 = JSON.parse(item.personalSetting);
|
|
825
|
-
var _styleSetting3 = JSON.parse(item.styleSetting);
|
|
826
|
-
var componentContent1 = '';
|
|
827
|
-
var carouselItem = '';
|
|
828
|
-
var carouselList = '';
|
|
829
|
-
if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0) {
|
|
830
|
-
var tDiv = document.createElement('div');
|
|
831
|
-
carouselItem = t.state[item.portletCode + '_' + item.id].map(function (item) {
|
|
832
|
-
if (item.infoList.length > 0) {
|
|
833
|
-
tDiv.innerHTML = item.infoList[0].content;
|
|
834
|
-
var text = tDiv.innerText;
|
|
835
|
-
return _react2.default.createElement(
|
|
836
|
-
_Carousel2.default.Item,
|
|
837
|
-
null,
|
|
838
|
-
_react2.default.createElement(
|
|
839
|
-
'div',
|
|
840
|
-
{ className: 'notice-card-head' },
|
|
841
|
-
_react2.default.createElement(
|
|
842
|
-
'span',
|
|
843
|
-
null,
|
|
844
|
-
item.infoList[0].columnName
|
|
845
|
-
),
|
|
846
|
-
_react2.default.createElement(
|
|
847
|
-
_Button2.default,
|
|
848
|
-
{ type: 'custom', onClick: t.jumpPage.bind(this, "/channelDetail/" + item.channelId + '/' + item.columnId + '/' + item.columnName) },
|
|
849
|
-
'\u66F4\u591A'
|
|
850
|
-
)
|
|
851
|
-
),
|
|
852
|
-
_react2.default.createElement(
|
|
853
|
-
'div',
|
|
854
|
-
{ onClick: t.jumpPage.bind(this, "/infodetail/" + item.infoList[0].id) },
|
|
855
|
-
_react2.default.createElement(
|
|
856
|
-
'strong',
|
|
857
|
-
{ className: 't-FS14 t-omit2 t-LH1_3 t-MB10' },
|
|
858
|
-
item.infoList[0].title
|
|
859
|
-
),
|
|
860
|
-
_react2.default.createElement(
|
|
861
|
-
'p',
|
|
862
|
-
{ className: 't-FS14 t-FCgrey t-omit2 t-LH1_5 t-MB10' },
|
|
863
|
-
text
|
|
864
|
-
),
|
|
865
|
-
_react2.default.createElement(
|
|
866
|
-
'p',
|
|
867
|
-
{ className: 't-FS12 t-FCgrey' },
|
|
868
|
-
item.infoList[0].createdDate
|
|
869
|
-
)
|
|
870
|
-
)
|
|
871
|
-
);
|
|
872
|
-
}
|
|
873
|
-
});
|
|
874
|
-
carouselList = carouselItem.filter(function (carouselItem) {
|
|
875
|
-
return typeof carouselItem !== 'undefined';
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0) {
|
|
879
|
-
|
|
880
|
-
componentContent1 = _react2.default.createElement(
|
|
881
|
-
'div',
|
|
882
|
-
{ className: 'componentBox' },
|
|
883
|
-
_react2.default.createElement(
|
|
884
|
-
'div',
|
|
885
|
-
{ className: 'notice-card' },
|
|
886
|
-
_react2.default.createElement(
|
|
887
|
-
_Carousel2.default,
|
|
888
|
-
{ showNav: true, auto: true, height: '180px', className: 'carousel-notice' },
|
|
889
|
-
carouselList
|
|
890
|
-
)
|
|
891
|
-
)
|
|
892
|
-
);
|
|
893
|
-
}
|
|
894
|
-
return _react2.default.createElement(
|
|
895
|
-
'div',
|
|
896
|
-
{ key: item.id, style: {
|
|
897
|
-
borderTopLeftRadius: _styleSetting3.otherSet.radius.topLeft,
|
|
898
|
-
borderTopRightRadius: _styleSetting3.otherSet.radius.topRight,
|
|
899
|
-
borderBottomLeftRadius: _styleSetting3.otherSet.radius.bottomLeft,
|
|
900
|
-
borderBottomRightRadius: _styleSetting3.otherSet.radius.bottomRight,
|
|
901
|
-
paddingLeft: _styleSetting3.otherSet.paddingSet.pl,
|
|
902
|
-
paddingright: _styleSetting3.otherSet.paddingSet.pr,
|
|
903
|
-
paddingTop: _styleSetting3.otherSet.paddingSet.pt,
|
|
904
|
-
paddingBottom: _styleSetting3.otherSet.paddingSet.pb,
|
|
905
|
-
background: _styleSetting3.otherSet.bgColor ? _styleSetting3.otherSet.bgColor : ''
|
|
906
|
-
} },
|
|
907
|
-
componentContent1
|
|
908
|
-
);
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
if (item.portletCode === 'xwzx') {
|
|
912
|
-
var _personalSetting3 = JSON.parse(item.personalSetting);
|
|
913
|
-
var _styleSetting4 = JSON.parse(item.styleSetting);
|
|
914
|
-
var componentContent2 = '';
|
|
915
|
-
var xwzxContent = '';
|
|
916
|
-
if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length) {
|
|
917
|
-
xwzxContent = t.state[item.portletCode + '_' + item.id].map(function (item) {
|
|
918
|
-
var infoList = item.infoList.map(function (infoItem) {
|
|
919
|
-
var imgSrc = "";
|
|
920
|
-
var imgIdList = 0;
|
|
921
|
-
if (infoItem.imgId) {
|
|
922
|
-
imgIdList = infoItem.imgId.split('|');
|
|
923
|
-
}
|
|
924
|
-
if (imgIdList.length >= 3) {
|
|
925
|
-
var imgSrc1 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[0] + "&token=" + getLoginUserInfo().token;
|
|
926
|
-
var imgSrc2 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[1] + "&token=" + getLoginUserInfo().token;
|
|
927
|
-
var imgSrc3 = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[2] + "&token=" + getLoginUserInfo().token;
|
|
928
|
-
return _react2.default.createElement(
|
|
929
|
-
'div',
|
|
930
|
-
{ className: 'infoList3', onClick: t.jumpPage.bind(this, "/infodetail/" + infoItem.id) },
|
|
931
|
-
_react2.default.createElement(
|
|
932
|
-
'div',
|
|
933
|
-
{ className: 'infoContent' },
|
|
934
|
-
_react2.default.createElement(
|
|
935
|
-
'p',
|
|
936
|
-
null,
|
|
937
|
-
infoItem.title
|
|
938
|
-
),
|
|
939
|
-
_react2.default.createElement(
|
|
940
|
-
'div',
|
|
941
|
-
{ className: 'infoPics' },
|
|
942
|
-
_react2.default.createElement('img', { src: imgSrc1 }),
|
|
943
|
-
_react2.default.createElement('img', { src: imgSrc2 }),
|
|
944
|
-
_react2.default.createElement('img', { src: imgSrc3 })
|
|
945
|
-
),
|
|
946
|
-
_react2.default.createElement(
|
|
947
|
-
'p',
|
|
948
|
-
{ className: 't-FS14' },
|
|
949
|
-
_react2.default.createElement('i', { className: infoItem.isTop == "1" ? "iconfont icon-istop t-FS14 t-FCddblue t-MR6" : "t-DN" }),
|
|
950
|
-
_react2.default.createElement('img', { className: infoItem.isEssence == "1" ? "" : "t-DN" }),
|
|
951
|
-
_react2.default.createElement(
|
|
952
|
-
'span',
|
|
953
|
-
{ className: 't-FB1 t-omit', style: { maxWidth: "115px" } },
|
|
954
|
-
infoItem.columnName
|
|
955
|
-
),
|
|
956
|
-
_react2.default.createElement(
|
|
957
|
-
'span',
|
|
958
|
-
null,
|
|
959
|
-
infoItem.publishDate
|
|
960
|
-
)
|
|
961
|
-
)
|
|
962
|
-
)
|
|
963
|
-
);
|
|
964
|
-
} else {
|
|
965
|
-
if (infoItem.imgId) {
|
|
966
|
-
imgSrc = context + "/api/m/plugin/attachment/mobile/viewImage?fid=" + imgIdList[0] + "&token=" + getLoginUserInfo().token;
|
|
967
|
-
}
|
|
968
|
-
return _react2.default.createElement(
|
|
969
|
-
'div',
|
|
970
|
-
{ className: 'infoList', onClick: t.jumpPage.bind(this, "/infodetail/" + infoItem.id) },
|
|
971
|
-
_react2.default.createElement(
|
|
972
|
-
'div',
|
|
973
|
-
{ className: 'infoContent' },
|
|
974
|
-
_react2.default.createElement(
|
|
975
|
-
'div',
|
|
976
|
-
{ className: imgSrc ? "imgContent" : "t-DN" },
|
|
977
|
-
_react2.default.createElement('img', { src: imgSrc })
|
|
978
|
-
),
|
|
979
|
-
_react2.default.createElement(
|
|
980
|
-
'div',
|
|
981
|
-
{ className: 't-FB1' },
|
|
982
|
-
_react2.default.createElement(
|
|
983
|
-
'p',
|
|
984
|
-
null,
|
|
985
|
-
infoItem.title
|
|
986
|
-
),
|
|
987
|
-
_react2.default.createElement(
|
|
988
|
-
'p',
|
|
989
|
-
{ className: 't-FS14' },
|
|
990
|
-
_react2.default.createElement('i', { className: infoItem.isTop == "1" ? "iconfont icon-istop t-FS14 t-FCddblue t-MR6" : "t-DN" }),
|
|
991
|
-
_react2.default.createElement('img', { className: infoItem.isEssence == "1" ? "" : "t-DN" }),
|
|
992
|
-
_react2.default.createElement(
|
|
993
|
-
'span',
|
|
994
|
-
{ className: 't-FB1 t-omit', style: { maxWidth: "115px" } },
|
|
995
|
-
infoItem.columnName
|
|
996
|
-
),
|
|
997
|
-
_react2.default.createElement(
|
|
998
|
-
'span',
|
|
999
|
-
null,
|
|
1000
|
-
infoItem.publishDate
|
|
1001
|
-
)
|
|
1002
|
-
)
|
|
1003
|
-
)
|
|
1004
|
-
)
|
|
1005
|
-
);
|
|
1006
|
-
}
|
|
1007
|
-
});
|
|
1008
|
-
return _react2.default.createElement(
|
|
1009
|
-
_Tab2.default.Item,
|
|
1010
|
-
{ title: item.columnName, key: item.columnId },
|
|
1011
|
-
item.infoList.length > 0 ? _react2.default.createElement(
|
|
1012
|
-
'div',
|
|
1013
|
-
null,
|
|
1014
|
-
infoList,
|
|
1015
|
-
_react2.default.createElement(
|
|
1016
|
-
'div',
|
|
1017
|
-
{ className: 'info-more-btn', onClick: t.jumpPage.bind(this, "/channelDetail/" + item.channelId + '/' + item.columnId + '/' + item.columnName) },
|
|
1018
|
-
'\u67E5\u770B\u66F4\u591A'
|
|
1019
|
-
)
|
|
1020
|
-
) : _react2.default.createElement(
|
|
1021
|
-
'div',
|
|
1022
|
-
null,
|
|
1023
|
-
'\u6682\u65E0\u6570\u636E'
|
|
1024
|
-
)
|
|
1025
|
-
);
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1030
|
-
componentContent2 = _react2.default.createElement(
|
|
1031
|
-
_Tab2.default,
|
|
1032
|
-
{ activeKey: t.state[item.portletCode + '_' + item.id][0].columnId, pageSize: 4, showExpandAll: false, speed: 2 },
|
|
1033
|
-
xwzxContent
|
|
1034
|
-
);
|
|
1035
|
-
}
|
|
1036
|
-
return _react2.default.createElement(
|
|
1037
|
-
'div',
|
|
1038
|
-
{ key: item.id, style: {
|
|
1039
|
-
borderTopLeftRadius: _styleSetting4.otherSet.radius.topLeft,
|
|
1040
|
-
borderTopRightRadius: _styleSetting4.otherSet.radius.topRight,
|
|
1041
|
-
borderBottomLeftRadius: _styleSetting4.otherSet.radius.bottomLeft,
|
|
1042
|
-
borderBottomRightRadius: _styleSetting4.otherSet.radius.bottomRight,
|
|
1043
|
-
paddingLeft: _styleSetting4.otherSet.paddingSet.pl,
|
|
1044
|
-
paddingright: _styleSetting4.otherSet.paddingSet.pr,
|
|
1045
|
-
paddingTop: _styleSetting4.otherSet.paddingSet.pt,
|
|
1046
|
-
paddingBottom: _styleSetting4.otherSet.paddingSet.pb,
|
|
1047
|
-
background: _styleSetting4.otherSet.bgColor ? _styleSetting4.otherSet.bgColor : ''
|
|
1048
|
-
} },
|
|
1049
|
-
componentContent2
|
|
1050
|
-
);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
if (item.portletCode === 'gryj') {
|
|
1054
|
-
var _personalSetting4 = JSON.parse(item.personalSetting);
|
|
1055
|
-
var _styleSetting5 = JSON.parse(item.styleSetting);
|
|
1056
|
-
console.log('====================================');
|
|
1057
|
-
console.log(_styleSetting5.otherSet.toolbarShow, 'styleSetting.otherSet.toolbarShowstyleSetting.otherSet.toolbarShow');
|
|
1058
|
-
console.log('====================================');
|
|
1059
|
-
var gryjShowList = _personalSetting4.mailMenu;
|
|
1060
|
-
var _componentContent = '';
|
|
1061
|
-
var gryjContent = '';
|
|
1062
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1063
|
-
if (t.state[item.portletCode + '_' + item.id].data.personList) {
|
|
1064
|
-
gryjContent = t.state[item.portletCode + '_' + item.id].data.personList.map(function (item) {
|
|
1065
|
-
return _react2.default.createElement(
|
|
1066
|
-
'div',
|
|
1067
|
-
{ className: 'list-item', onClick: t.skipPage.bind(this, 'mobile/modules/mail/dist/index.html?context=' + context + '&contextPath=flex&isPublic=0#/mail/details/' + item.mailId + '/1/0/undefined/undefined/undefined/1') },
|
|
1068
|
-
_react2.default.createElement(
|
|
1069
|
-
'div',
|
|
1070
|
-
{ className: item.isRead == "false" ? "item-label label-special" : "t-DN" },
|
|
1071
|
-
'\u672A\u8BFB'
|
|
1072
|
-
),
|
|
1073
|
-
_react2.default.createElement(
|
|
1074
|
-
'div',
|
|
1075
|
-
{ className: 'item-title' },
|
|
1076
|
-
item.theme
|
|
1077
|
-
),
|
|
1078
|
-
_react2.default.createElement(
|
|
1079
|
-
'div',
|
|
1080
|
-
{ className: 'item-content' },
|
|
1081
|
-
_react2.default.createElement(
|
|
1082
|
-
'div',
|
|
1083
|
-
{ className: 'content t-FCddfontblue-60 t-FS12' },
|
|
1084
|
-
_react2.default.createElement(
|
|
1085
|
-
'span',
|
|
1086
|
-
{ className: 't-MR12' },
|
|
1087
|
-
item.sendTime
|
|
1088
|
-
),
|
|
1089
|
-
_react2.default.createElement(
|
|
1090
|
-
'span',
|
|
1091
|
-
null,
|
|
1092
|
-
'\u7533\u8BF7\u4EBA\uFF1A'
|
|
1093
|
-
),
|
|
1094
|
-
_react2.default.createElement(
|
|
1095
|
-
'span',
|
|
1096
|
-
null,
|
|
1097
|
-
item.sendUserName
|
|
1098
|
-
)
|
|
1099
|
-
),
|
|
1100
|
-
_react2.default.createElement(
|
|
1101
|
-
'a',
|
|
1102
|
-
{ className: 'more' },
|
|
1103
|
-
_react2.default.createElement('i', { className: 'iconfont icon-right-arrow t-FCddfontblue-60' })
|
|
1104
|
-
)
|
|
1105
|
-
)
|
|
1106
|
-
);
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
var ggyjContent = '';
|
|
1111
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1112
|
-
if (t.state[item.portletCode + '_' + item.id].data.publicList) {
|
|
1113
|
-
ggyjContent = t.state[item.portletCode + '_' + item.id].data.publicList.map(function (item) {
|
|
1114
|
-
return _react2.default.createElement(
|
|
1115
|
-
'div',
|
|
1116
|
-
{ className: 'list-item', onClick: t.skipPage.bind(this, 'mobile/modules/mail/dist/index.html?context=' + context + '&contextPath=flex&isPublic=1#/mail/details/' + item.mailId + '/1/0/undefined/undefined/undefined/1') },
|
|
1117
|
-
_react2.default.createElement(
|
|
1118
|
-
'div',
|
|
1119
|
-
{ className: item.isRead == "false" ? "item-label label-special" : "t-DN" },
|
|
1120
|
-
'\u672A\u8BFB'
|
|
1121
|
-
),
|
|
1122
|
-
_react2.default.createElement(
|
|
1123
|
-
'div',
|
|
1124
|
-
{ className: 'item-title' },
|
|
1125
|
-
item.theme
|
|
1126
|
-
),
|
|
1127
|
-
_react2.default.createElement(
|
|
1128
|
-
'div',
|
|
1129
|
-
{ className: 'item-content' },
|
|
1130
|
-
_react2.default.createElement(
|
|
1131
|
-
'div',
|
|
1132
|
-
{ className: 'content t-FCddfontblue-60 t-FS12' },
|
|
1133
|
-
_react2.default.createElement(
|
|
1134
|
-
'span',
|
|
1135
|
-
{ className: 't-MR12' },
|
|
1136
|
-
item.sendTime
|
|
1137
|
-
),
|
|
1138
|
-
_react2.default.createElement(
|
|
1139
|
-
'span',
|
|
1140
|
-
null,
|
|
1141
|
-
'\u7533\u8BF7\u4EBA\uFF1A'
|
|
1142
|
-
),
|
|
1143
|
-
_react2.default.createElement(
|
|
1144
|
-
'span',
|
|
1145
|
-
null,
|
|
1146
|
-
item.sendUserName
|
|
1147
|
-
)
|
|
1148
|
-
),
|
|
1149
|
-
_react2.default.createElement(
|
|
1150
|
-
'a',
|
|
1151
|
-
{ className: 'more' },
|
|
1152
|
-
_react2.default.createElement('i', { className: 'iconfont icon-right-arrow t-FCddfontblue-60' })
|
|
1153
|
-
)
|
|
1154
|
-
)
|
|
1155
|
-
);
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
var personMailTab = '';
|
|
1160
|
-
if (gryjShowList.indexOf('personMail') > -1) {
|
|
1161
|
-
var personMailTab = _react2.default.createElement(
|
|
1162
|
-
_Tab2.default.Item,
|
|
1163
|
-
{ title: _react2.default.createElement(
|
|
1164
|
-
'div',
|
|
1165
|
-
{ className: '', style: { color: _styleSetting5.titleSet.color, fontWeight: _styleSetting5.titleSet.fontWeight } },
|
|
1166
|
-
'\u4E2A\u4EBA\u90AE\u7BB1'
|
|
1167
|
-
), key: '0' },
|
|
1168
|
-
_react2.default.createElement(
|
|
1169
|
-
'div',
|
|
1170
|
-
{ className: 'list-RT-label' },
|
|
1171
|
-
gryjContent
|
|
1172
|
-
)
|
|
1173
|
-
);
|
|
1174
|
-
}
|
|
1175
|
-
if (gryjShowList.indexOf('commonMail') > -1) {
|
|
1176
|
-
var publicMailTab = _react2.default.createElement(
|
|
1177
|
-
_Tab2.default.Item,
|
|
1178
|
-
{ title: _react2.default.createElement(
|
|
1179
|
-
'div',
|
|
1180
|
-
{ className: '', style: { color: _styleSetting5.titleSet.color, fontWeight: _styleSetting5.titleSet.fontWeight } },
|
|
1181
|
-
'\u516C\u5171\u90AE\u7BB1'
|
|
1182
|
-
), key: '1' },
|
|
1183
|
-
_react2.default.createElement(
|
|
1184
|
-
'div',
|
|
1185
|
-
{ className: 'list-RT-label' },
|
|
1186
|
-
ggyjContent
|
|
1187
|
-
)
|
|
1188
|
-
);
|
|
1189
|
-
}
|
|
1190
|
-
_componentContent = _react2.default.createElement(
|
|
1191
|
-
_Tab2.default,
|
|
1192
|
-
{ activeKey: gryjShowList.indexOf('personMail') > -1 ? "0" : "1" },
|
|
1193
|
-
personMailTab,
|
|
1194
|
-
publicMailTab
|
|
1195
|
-
);
|
|
1196
|
-
return _react2.default.createElement(
|
|
1197
|
-
'div',
|
|
1198
|
-
{ className: 'ggyjContent', key: item.id, style: {
|
|
1199
|
-
borderTopLeftRadius: _styleSetting5.otherSet.radius.topLeft,
|
|
1200
|
-
borderTopRightRadius: _styleSetting5.otherSet.radius.topRight,
|
|
1201
|
-
borderBottomLeftRadius: _styleSetting5.otherSet.radius.bottomLeft,
|
|
1202
|
-
borderBottomRightRadius: _styleSetting5.otherSet.radius.bottomRight,
|
|
1203
|
-
paddingLeft: _styleSetting5.otherSet.paddingSet.pl,
|
|
1204
|
-
paddingright: _styleSetting5.otherSet.paddingSet.pr,
|
|
1205
|
-
paddingTop: _styleSetting5.otherSet.paddingSet.pt,
|
|
1206
|
-
paddingBottom: _styleSetting5.otherSet.paddingSet.pb,
|
|
1207
|
-
background: _styleSetting5.otherSet.bgColor ? _styleSetting5.otherSet.bgColor : ''
|
|
1208
|
-
} },
|
|
1209
|
-
_react2.default.createElement(
|
|
1210
|
-
'p',
|
|
1211
|
-
{ className: _styleSetting5.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
|
|
1212
|
-
'\u66F4\u591A',
|
|
1213
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
|
|
1214
|
-
),
|
|
1215
|
-
_componentContent
|
|
1216
|
-
);
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
if (item.portletCode === 'grrc') {
|
|
1220
|
-
var _personalSetting5 = JSON.parse(item.personalSetting);
|
|
1221
|
-
var _styleSetting6 = JSON.parse(item.styleSetting);
|
|
1222
|
-
var componentHead = _react2.default.createElement(
|
|
1223
|
-
'div',
|
|
1224
|
-
null,
|
|
1225
|
-
_react2.default.createElement(
|
|
1226
|
-
_Tab2.default,
|
|
1227
|
-
{ activeKey: '0', className: 't-MB16' },
|
|
1228
|
-
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1229
|
-
'div',
|
|
1230
|
-
{ className: '', style: { color: _styleSetting6.titleSet.color, fontWeight: _styleSetting6.titleSet.fontWeight } },
|
|
1231
|
-
'\u6211\u7684\u65E5\u7A0B'
|
|
1232
|
-
), key: '0' })
|
|
1233
|
-
)
|
|
1234
|
-
);
|
|
1235
|
-
var calendarDom = _react2.default.createElement('div', { id: 'calendar' });
|
|
1236
|
-
var grrcList = '';
|
|
1237
|
-
var componentContent4 = '';
|
|
1238
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1239
|
-
grrcList = _react2.default.createElement(
|
|
1240
|
-
'div',
|
|
1241
|
-
{ className: 'rc-list' },
|
|
1242
|
-
grrcContent
|
|
1243
|
-
);
|
|
1244
|
-
}
|
|
1245
|
-
componentContent4 = _react2.default.createElement(
|
|
1246
|
-
'div',
|
|
1247
|
-
null,
|
|
1248
|
-
calendarDom,
|
|
1249
|
-
grrcList
|
|
1250
|
-
);
|
|
1251
|
-
setTimeout(function () {
|
|
1252
|
-
t.initCleader(t.state[item.portletCode + '_' + item.id]);
|
|
1253
|
-
}, 600);
|
|
1254
|
-
return _react2.default.createElement(
|
|
1255
|
-
'div',
|
|
1256
|
-
{ key: item.id, style: {
|
|
1257
|
-
borderTopLeftRadius: _styleSetting6.otherSet.radius.topLeft,
|
|
1258
|
-
borderTopRightRadius: _styleSetting6.otherSet.radius.topRight,
|
|
1259
|
-
borderBottomLeftRadius: _styleSetting6.otherSet.radius.bottomLeft,
|
|
1260
|
-
borderBottomRightRadius: _styleSetting6.otherSet.radius.bottomRight,
|
|
1261
|
-
paddingLeft: _styleSetting6.otherSet.paddingSet.pl,
|
|
1262
|
-
paddingright: _styleSetting6.otherSet.paddingSet.pr,
|
|
1263
|
-
paddingTop: _styleSetting6.otherSet.paddingSet.pt,
|
|
1264
|
-
paddingBottom: _styleSetting6.otherSet.paddingSet.pb,
|
|
1265
|
-
background: _styleSetting6.otherSet.bgColor ? _styleSetting6.otherSet.bgColor : ''
|
|
1266
|
-
} },
|
|
1267
|
-
componentHead,
|
|
1268
|
-
componentContent4
|
|
1269
|
-
);
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
if (item.portletCode === 'grhy') {
|
|
1273
|
-
var _personalSetting6 = JSON.parse(item.personalSetting);
|
|
1274
|
-
var _styleSetting7 = JSON.parse(item.styleSetting);
|
|
1275
|
-
var grhyContent = '';
|
|
1276
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1277
|
-
grhyContent = t.state[item.portletCode + '_' + item.id].data.map(function (item) {
|
|
1278
|
-
return _react2.default.createElement(
|
|
1279
|
-
'div',
|
|
1280
|
-
{ className: 'meetingCard' },
|
|
1281
|
-
_react2.default.createElement('div', { className: 'lineTop' }),
|
|
1282
|
-
_react2.default.createElement(
|
|
1283
|
-
'div',
|
|
1284
|
-
{ className: 'meetingBg' },
|
|
1285
|
-
_react2.default.createElement(
|
|
1286
|
-
'div',
|
|
1287
|
-
{ className: 'meetingContent', onClick: t.skipPage.bind(this, 'mobile/modules/meeting/dist/index.html?context=' + context + '&hasBottomTab=1#/meeting/myMeetingDetails/' + item.applyRecordid + '/myReceived') },
|
|
1288
|
-
_react2.default.createElement(
|
|
1289
|
-
'div',
|
|
1290
|
-
{ className: 'meetingTitle' },
|
|
1291
|
-
_react2.default.createElement(
|
|
1292
|
-
'p',
|
|
1293
|
-
{ className: 't-omit t-LH1_6' },
|
|
1294
|
-
item.applyRecordName
|
|
1295
|
-
)
|
|
1296
|
-
),
|
|
1297
|
-
_react2.default.createElement(
|
|
1298
|
-
'div',
|
|
1299
|
-
{ className: 'meetingTime' },
|
|
1300
|
-
_react2.default.createElement(
|
|
1301
|
-
'div',
|
|
1302
|
-
{ className: 'meetingDate' },
|
|
1303
|
-
_react2.default.createElement('i', { className: 'iconfont icon-shijian1 t-FS14' }),
|
|
1304
|
-
_react2.default.createElement(
|
|
1305
|
-
'span',
|
|
1306
|
-
{ className: 't-ML6' },
|
|
1307
|
-
item.week
|
|
1308
|
-
),
|
|
1309
|
-
_react2.default.createElement(
|
|
1310
|
-
'span',
|
|
1311
|
-
{ className: 't-ML10' },
|
|
1312
|
-
item.startDate
|
|
1313
|
-
)
|
|
1314
|
-
),
|
|
1315
|
-
_react2.default.createElement(
|
|
1316
|
-
'div',
|
|
1317
|
-
{ className: 'timeTitle' },
|
|
1318
|
-
_react2.default.createElement(
|
|
1319
|
-
'p',
|
|
1320
|
-
null,
|
|
1321
|
-
'\u5F00\u59CB\u65F6\u95F4'
|
|
1322
|
-
),
|
|
1323
|
-
_react2.default.createElement(
|
|
1324
|
-
'p',
|
|
1325
|
-
null,
|
|
1326
|
-
'\u7ED3\u675F\u65F6\u95F4'
|
|
1327
|
-
)
|
|
1328
|
-
),
|
|
1329
|
-
_react2.default.createElement(
|
|
1330
|
-
'div',
|
|
1331
|
-
{ className: 'time' },
|
|
1332
|
-
_react2.default.createElement(
|
|
1333
|
-
'li',
|
|
1334
|
-
null,
|
|
1335
|
-
item.sTime
|
|
1336
|
-
),
|
|
1337
|
-
_react2.default.createElement(
|
|
1338
|
-
'li',
|
|
1339
|
-
null,
|
|
1340
|
-
_react2.default.createElement(
|
|
1341
|
-
'p',
|
|
1342
|
-
null,
|
|
1343
|
-
item.durationTime
|
|
1344
|
-
)
|
|
1345
|
-
),
|
|
1346
|
-
_react2.default.createElement(
|
|
1347
|
-
'li',
|
|
1348
|
-
null,
|
|
1349
|
-
item.eTime
|
|
1350
|
-
)
|
|
1351
|
-
),
|
|
1352
|
-
_react2.default.createElement(
|
|
1353
|
-
'div',
|
|
1354
|
-
{ className: 'location' },
|
|
1355
|
-
_react2.default.createElement('i', { className: 'iconfont icon-dizhi t-FS14' }),
|
|
1356
|
-
_react2.default.createElement(
|
|
1357
|
-
'span',
|
|
1358
|
-
{ className: 't-ML6' },
|
|
1359
|
-
item.meetingAddress
|
|
1360
|
-
)
|
|
1361
|
-
)
|
|
1362
|
-
)
|
|
1363
|
-
)
|
|
1364
|
-
)
|
|
1365
|
-
);
|
|
1366
|
-
});
|
|
1367
|
-
}
|
|
1368
|
-
var componentHead1 = _react2.default.createElement(
|
|
1369
|
-
'div',
|
|
1370
|
-
{ className: 'component-bssx' },
|
|
1371
|
-
_react2.default.createElement(
|
|
1372
|
-
'p',
|
|
1373
|
-
{ className: _styleSetting7.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
|
|
1374
|
-
'\u66F4\u591A',
|
|
1375
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
|
|
1376
|
-
),
|
|
1377
|
-
_react2.default.createElement(
|
|
1378
|
-
_Tab2.default,
|
|
1379
|
-
{ activeKey: '0', className: 't-MB16' },
|
|
1380
|
-
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1381
|
-
'div',
|
|
1382
|
-
{ className: '', style: { color: _styleSetting7.titleSet.color, fontWeight: _styleSetting7.titleSet.fontWeight } },
|
|
1383
|
-
'\u6211\u7684\u4F1A\u8BAE'
|
|
1384
|
-
), key: '0' })
|
|
1385
|
-
)
|
|
1386
|
-
);
|
|
1387
|
-
var componentContent5 = '';
|
|
1388
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1389
|
-
if (t.state[item.portletCode + '_' + item.id].data.length > 0) {
|
|
1390
|
-
componentContent5 = grhyContent;
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
return _react2.default.createElement(
|
|
1394
|
-
'div',
|
|
1395
|
-
{ key: item.id, style: {
|
|
1396
|
-
borderTopLeftRadius: _styleSetting7.otherSet.radius.topLeft,
|
|
1397
|
-
borderTopRightRadius: _styleSetting7.otherSet.radius.topRight,
|
|
1398
|
-
borderBottomLeftRadius: _styleSetting7.otherSet.radius.bottomLeft,
|
|
1399
|
-
borderBottomRightRadius: _styleSetting7.otherSet.radius.bottomRight,
|
|
1400
|
-
paddingLeft: _styleSetting7.otherSet.paddingSet.pl,
|
|
1401
|
-
paddingright: _styleSetting7.otherSet.paddingSet.pr,
|
|
1402
|
-
paddingTop: _styleSetting7.otherSet.paddingSet.pt,
|
|
1403
|
-
paddingBottom: _styleSetting7.otherSet.paddingSet.pb,
|
|
1404
|
-
background: _styleSetting7.otherSet.bgColor ? _styleSetting7.otherSet.bgColor : ''
|
|
1405
|
-
} },
|
|
1406
|
-
componentHead1,
|
|
1407
|
-
componentContent5
|
|
1408
|
-
);
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
if (item.portletCode === 'lcfq') {
|
|
1412
|
-
var _personalSetting7 = JSON.parse(item.personalSetting);
|
|
1413
|
-
var _styleSetting8 = JSON.parse(item.styleSetting);
|
|
1414
|
-
var _componentHead = _react2.default.createElement(
|
|
1415
|
-
'div',
|
|
1416
|
-
null,
|
|
1417
|
-
_react2.default.createElement(
|
|
1418
|
-
_Tab2.default,
|
|
1419
|
-
{ activeKey: '0', className: 't-MB16' },
|
|
1420
|
-
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1421
|
-
'div',
|
|
1422
|
-
{ className: '', style: { color: _styleSetting8.titleSet.color, fontWeight: _styleSetting8.titleSet.fontWeight } },
|
|
1423
|
-
'\u4E8B\u9879\u53D1\u8D77'
|
|
1424
|
-
), key: '0' })
|
|
1425
|
-
)
|
|
1426
|
-
);
|
|
1427
|
-
var _componentContent2 = '';
|
|
1428
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1429
|
-
_componentContent2 = _react2.default.createElement(
|
|
1430
|
-
'div',
|
|
1431
|
-
{ col: _personalSetting7.cols, className: 'sxbl_buttons' },
|
|
1432
|
-
t.state[item.portletCode + '_' + item.id].map(function (item) {
|
|
1433
|
-
return _react2.default.createElement(
|
|
1434
|
-
'button',
|
|
1435
|
-
null,
|
|
1436
|
-
item.name
|
|
1437
|
-
);
|
|
1438
|
-
})
|
|
1439
|
-
);
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
return _react2.default.createElement(
|
|
1443
|
-
'div',
|
|
1444
|
-
{ key: item.id, style: {
|
|
1445
|
-
borderTopLeftRadius: _styleSetting8.otherSet.radius.topLeft,
|
|
1446
|
-
borderTopRightRadius: _styleSetting8.otherSet.radius.topRight,
|
|
1447
|
-
borderBottomLeftRadius: _styleSetting8.otherSet.radius.bottomLeft,
|
|
1448
|
-
borderBottomRightRadius: _styleSetting8.otherSet.radius.bottomRight,
|
|
1449
|
-
paddingLeft: _styleSetting8.otherSet.paddingSet.pl,
|
|
1450
|
-
paddingright: _styleSetting8.otherSet.paddingSet.pr,
|
|
1451
|
-
paddingTop: _styleSetting8.otherSet.paddingSet.pt,
|
|
1452
|
-
paddingBottom: _styleSetting8.otherSet.paddingSet.pb,
|
|
1453
|
-
background: _styleSetting8.otherSet.bgColor ? _styleSetting8.otherSet.bgColor : ''
|
|
1454
|
-
} },
|
|
1455
|
-
_react2.default.createElement(
|
|
1456
|
-
'p',
|
|
1457
|
-
{ className: 'rightMore' },
|
|
1458
|
-
'\u66F4\u591A',
|
|
1459
|
-
_react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
|
|
1460
|
-
),
|
|
1461
|
-
_componentHead,
|
|
1462
|
-
_componentContent2
|
|
1463
|
-
);
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
if (item.portletCode === 'tbgl') {
|
|
1467
|
-
var _personalSetting8 = JSON.parse(item.personalSetting);
|
|
1468
|
-
var _styleSetting9 = JSON.parse(item.styleSetting);
|
|
1469
|
-
var _componentHead2 = _react2.default.createElement(
|
|
1470
|
-
'div',
|
|
1471
|
-
null,
|
|
1472
|
-
_react2.default.createElement(
|
|
1473
|
-
_Tab2.default,
|
|
1474
|
-
{ activeKey: '0', className: 't-MB16' },
|
|
1475
|
-
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1476
|
-
'div',
|
|
1477
|
-
{ className: '', style: { color: _styleSetting9.titleSet.color, fontWeight: _styleSetting9.titleSet.fontWeight } },
|
|
1478
|
-
'\u56FE\u8868'
|
|
1479
|
-
), key: '0' })
|
|
1480
|
-
)
|
|
1481
|
-
);
|
|
1482
|
-
|
|
1483
|
-
var _componentContent3 = _react2.default.createElement(_chart2.default, { portalId: item.portalId, height: '100%' });
|
|
1484
|
-
return _react2.default.createElement(
|
|
1485
|
-
'div',
|
|
1486
|
-
{ key: item.id, style: {
|
|
1487
|
-
borderTopLeftRadius: _styleSetting9.otherSet.radius.topLeft,
|
|
1488
|
-
borderTopRightRadius: _styleSetting9.otherSet.radius.topRight,
|
|
1489
|
-
borderBottomLeftRadius: _styleSetting9.otherSet.radius.bottomLeft,
|
|
1490
|
-
borderBottomRightRadius: _styleSetting9.otherSet.radius.bottomRight,
|
|
1491
|
-
paddingLeft: _styleSetting9.otherSet.paddingSet.pl,
|
|
1492
|
-
paddingright: _styleSetting9.otherSet.paddingSet.pr,
|
|
1493
|
-
paddingTop: _styleSetting9.otherSet.paddingSet.pt,
|
|
1494
|
-
paddingBottom: _styleSetting9.otherSet.paddingSet.pb,
|
|
1495
|
-
background: _styleSetting9.otherSet.bgColor ? _styleSetting9.otherSet.bgColor : ''
|
|
1496
|
-
} },
|
|
1497
|
-
_componentHead2,
|
|
1498
|
-
_componentContent3
|
|
1499
|
-
);
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
if (item.portletCode === 'wdsx') {
|
|
1503
|
-
var _personalSetting9 = JSON.parse(item.personalSetting);
|
|
1504
|
-
var _styleSetting10 = JSON.parse(item.styleSetting);
|
|
1505
|
-
var _componentHead3 = _react2.default.createElement(
|
|
1506
|
-
'div',
|
|
1507
|
-
null,
|
|
1508
|
-
_react2.default.createElement(
|
|
1509
|
-
_Tab2.default,
|
|
1510
|
-
{ activeKey: '0', className: 't-MB16' },
|
|
1511
|
-
_react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
|
|
1512
|
-
'div',
|
|
1513
|
-
{ className: '', style: { color: _styleSetting10.titleSet.color, fontWeight: _styleSetting10.titleSet.fontWeight } },
|
|
1514
|
-
'\u6211\u7684\u4E8B\u9879'
|
|
1515
|
-
), key: '0' })
|
|
1516
|
-
)
|
|
1517
|
-
);
|
|
1518
|
-
var _componentContent4 = '';
|
|
1519
|
-
if (t.state[item.portletCode + '_' + item.id]) {
|
|
1520
|
-
_componentContent4 = t.state[item.portletCode + '_' + item.id].map(function (item) {
|
|
1521
|
-
return _react2.default.createElement(
|
|
1522
|
-
'div',
|
|
1523
|
-
{ className: 'list-item' },
|
|
1524
|
-
_react2.default.createElement(
|
|
1525
|
-
'div',
|
|
1526
|
-
{ className: 'item-content' },
|
|
1527
|
-
_react2.default.createElement(
|
|
1528
|
-
'div',
|
|
1529
|
-
{ className: 'item-title' },
|
|
1530
|
-
item.title
|
|
1531
|
-
),
|
|
1532
|
-
_react2.default.createElement(
|
|
1533
|
-
'div',
|
|
1534
|
-
{ className: 'content t-FCddfontblue-60 t-FS12' },
|
|
1535
|
-
_react2.default.createElement(
|
|
1536
|
-
'span',
|
|
1537
|
-
{ className: 't-MR12' },
|
|
1538
|
-
item.createTime
|
|
1539
|
-
),
|
|
1540
|
-
_react2.default.createElement(
|
|
1541
|
-
'span',
|
|
1542
|
-
null,
|
|
1543
|
-
'\u7533\u8BF7\u4EBA\uFF1A'
|
|
1544
|
-
),
|
|
1545
|
-
_react2.default.createElement(
|
|
1546
|
-
'span',
|
|
1547
|
-
null,
|
|
1548
|
-
item.startUserName
|
|
1549
|
-
)
|
|
1550
|
-
)
|
|
1551
|
-
),
|
|
1552
|
-
_react2.default.createElement(
|
|
1553
|
-
'a',
|
|
1554
|
-
{ className: 'more' },
|
|
1555
|
-
_react2.default.createElement('i', { className: 'iconfont icon-right-arrow t-FCddfontblue-60' })
|
|
1556
|
-
)
|
|
1557
|
-
);
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
return _react2.default.createElement(
|
|
1562
|
-
'div',
|
|
1563
|
-
{ key: item.id, style: {
|
|
1564
|
-
borderTopLeftRadius: _styleSetting10.otherSet.radius.topLeft,
|
|
1565
|
-
borderTopRightRadius: _styleSetting10.otherSet.radius.topRight,
|
|
1566
|
-
borderBottomLeftRadius: _styleSetting10.otherSet.radius.bottomLeft,
|
|
1567
|
-
borderBottomRightRadius: _styleSetting10.otherSet.radius.bottomRight,
|
|
1568
|
-
paddingLeft: _styleSetting10.otherSet.paddingSet.pl,
|
|
1569
|
-
paddingright: _styleSetting10.otherSet.paddingSet.pr,
|
|
1570
|
-
paddingTop: _styleSetting10.otherSet.paddingSet.pt,
|
|
1571
|
-
paddingBottom: _styleSetting10.otherSet.paddingSet.pb,
|
|
1572
|
-
background: _styleSetting10.otherSet.bgColor ? _styleSetting10.otherSet.bgColor : ''
|
|
1573
|
-
} },
|
|
1574
|
-
_componentHead3,
|
|
1575
|
-
_react2.default.createElement(
|
|
1576
|
-
'div',
|
|
1577
|
-
{ className: 'list-RT-label wdsx-list' },
|
|
1578
|
-
_componentContent4
|
|
1579
|
-
)
|
|
1580
|
-
);
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
if (item.portletCode === 'jxzt') {
|
|
1584
|
-
var componentHead2 = _react2.default.createElement(
|
|
1585
|
-
'div',
|
|
1586
|
-
null,
|
|
1587
|
-
_react2.default.createElement(
|
|
1588
|
-
_Tab2.default,
|
|
1589
|
-
{ activeKey: '0', className: 't-MB16' },
|
|
1590
|
-
_react2.default.createElement(_Tab2.default.Item, { title: '\u7CBE\u9009\u4E13\u9898', key: '0' })
|
|
1591
|
-
)
|
|
1592
|
-
);
|
|
1593
|
-
var _componentContent5 = '';
|
|
1594
|
-
var _carouselItem = '';
|
|
1595
|
-
if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0) {
|
|
1596
|
-
|
|
1597
|
-
_carouselItem = t.state[item.portletCode + '_' + item.id].map(function (item) {
|
|
1598
|
-
var imgUrlPath = localStorage.getItem('context') + '/api/m/plugin/attachment/mobile/viewImage?token=' + localStorage.getItem('token') + '&fid=' + item.imgUrl;
|
|
1599
|
-
|
|
1600
|
-
return _react2.default.createElement(
|
|
1601
|
-
_Carousel2.default.Item,
|
|
1602
|
-
{ title: '\u6807\u9898', className: 't-image-slide-item t-R10', style: { backgroundImage: 'url(' + imgUrlPath + ')' } },
|
|
1603
|
-
_react2.default.createElement(
|
|
1604
|
-
'p',
|
|
1605
|
-
{ className: 't-FS20 t-ML20 t-PT20 t-MB10 t-FCf' },
|
|
1606
|
-
item.name
|
|
1607
|
-
)
|
|
1608
|
-
);
|
|
1609
|
-
});
|
|
1610
|
-
}
|
|
1611
|
-
if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0) {
|
|
1612
|
-
_componentContent5 = _react2.default.createElement(
|
|
1613
|
-
_Carousel2.default,
|
|
1614
|
-
{ showNav: true, height: '91px', auto: false },
|
|
1615
|
-
_carouselItem
|
|
1616
|
-
);
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
return _react2.default.createElement(
|
|
1620
|
-
'div',
|
|
1621
|
-
{ key: item.id, className: 'jxzt-content' },
|
|
1622
|
-
componentHead2,
|
|
1623
|
-
_componentContent5
|
|
1624
|
-
);
|
|
1625
|
-
}
|
|
1626
|
-
return null; // 添加一个默认返回值,以避免未指定键的错误
|
|
1627
|
-
})
|
|
1628
|
-
)
|
|
1629
|
-
);
|
|
715
|
+
}
|
|
1630
716
|
}
|
|
1631
717
|
}]);
|
|
1632
718
|
|