fmui-base 2.0.66 → 2.0.68

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