fmui-base 2.0.34 → 2.0.36

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