fmui-base 2.0.37 → 2.0.39

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.
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.0.39:表单级联计算修改
7
+ - 2.0.38:移动门户组件修改
6
8
  - 2.0.37:精选专题跳转
7
9
  - 2.0.36:移动门户组件修改
8
10
  - 2.0.35:移动门户组件修改
package/lib/form/table.js CHANGED
@@ -1170,6 +1170,7 @@ var PageHome = function (_React$Component) {
1170
1170
  }
1171
1171
  if (returnResultItem && returnResultItem.length > 0) {
1172
1172
  for (var r = 0; r < returnResultItem.length; r++) {
1173
+ this.forCalculateExpList(data, itemParam, returnResultItem[r]);
1173
1174
  this.forSubCalculateExpList(data, itemParam, returnResultItem[r]);
1174
1175
  }
1175
1176
  }
@@ -149,7 +149,7 @@ var PageHome = function (_React$Component) {
149
149
  savePhraseList: savePhraseList, //是否保存为常用语的选项列表
150
150
  savePhrase: [], //是否保存为常用语,1是,0否
151
151
  level: '',
152
- shortMessageList: [{ value: "2", checked: false, content: '移动端提醒', disable: false }]
152
+ shortMessageList: [{ value: "2", checked: true, content: '移动端提醒', disable: false }]
153
153
  };
154
154
 
155
155
  // FlowCommon = require('pages/flow_common/'+module).default?require('pages/flow_common/'+module).default:require('pages/flow_common/'+module);
@@ -109,9 +109,7 @@ var MyGrid = function (_React$Component) {
109
109
  _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
110
110
  });
111
111
  } else if (item.portletCode == 'banner') {
112
- _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)), function () {
113
- console.log(_this.state, '///////////////////////////');
114
- });
112
+ _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)));
115
113
  }
116
114
  });
117
115
  });
@@ -406,6 +404,36 @@ var MyGrid = function (_React$Component) {
406
404
  location.hash = "topicservice/" + code;
407
405
  }
408
406
 
407
+ //跳转更多
408
+
409
+ }, {
410
+ key: 'skip2More',
411
+ value: function skip2More(type) {
412
+ var url = "";
413
+ if (type == 'grhy') {
414
+ //会议
415
+ url = getLoginUserInfo().context + '/mobile/modules/meeting/dist/index.html?&context=' + getLoginUserInfo().context + '&hasBottomTab=1';
416
+ pageSkipDirectly(url);
417
+ } else if (type == 'gryj') {
418
+ //个人邮件
419
+ url = getLoginUserInfo().context + '/mobile/modules/mail/dist/index.html?&context=' + getLoginUserInfo().context + '&hasBottomTab=1&isPublic=0#/mail/home/1/';
420
+ pageSkipDirectly(url);
421
+ } else if (type == 'ggyj') {
422
+ //公共邮件
423
+ url = getLoginUserInfo().context + '/mobile/modules/mail/dist/index.html?&context=' + getLoginUserInfo().context + '&hasBottomTab=1&isPublic=1#/mail/home/1/';
424
+ pageSkipDirectly(url);
425
+ } else if (type == 'lcfq') {
426
+ //流程发起
427
+ location.hash = "officehall";
428
+ } else if (type == 'wdsx') {
429
+ //我的事项
430
+ location.hash = "approval/all/5";
431
+ } else if (type == 'bssx') {
432
+ //办事事项
433
+ location.hash = "officehall";
434
+ }
435
+ }
436
+
409
437
  //跳转到我的事项
410
438
 
411
439
  }, {
@@ -476,7 +504,7 @@ var MyGrid = function (_React$Component) {
476
504
  var componentHead = '';
477
505
  if (item.portletCode === 'banner') {
478
506
  // 判断AI和menu
479
- var isShowList = JSON.parse(item.personalSetting).bannerSet.split(',');
507
+ var isShowList = JSON.parse(item.personalSetting).bannerSet;
480
508
  var _styleSetting = JSON.parse(item.styleSetting);
481
509
  var pathUrl = "";
482
510
  var colNum = t.state.todoList.length > 0 ? t.state.todoList.length : 5;
@@ -603,7 +631,7 @@ var MyGrid = function (_React$Component) {
603
631
  }) : '',
604
632
  _react2.default.createElement(
605
633
  'div',
606
- { className: 'systemItem', onClick: t.jumpPage.bind(this, "homepage/home/applistSetting") },
634
+ { className: 'systemItem', onClick: t.jumpPage.bind(this, "homepage/home/applistSetting", personalSetting.cols) },
607
635
  _react2.default.createElement(
608
636
  'div',
609
637
  { className: 'iconblock t-iconBCred' },
@@ -753,7 +781,7 @@ var MyGrid = function (_React$Component) {
753
781
  { className: 'component-bssx' },
754
782
  _react2.default.createElement(
755
783
  'p',
756
- { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
784
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.jumpPage.bind(this, "/officehall") },
757
785
  '\u66F4\u591A',
758
786
  _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
759
787
  ),
@@ -1088,10 +1116,20 @@ var MyGrid = function (_React$Component) {
1088
1116
  );
1089
1117
  }
1090
1118
  componentContent = _react2.default.createElement(
1091
- _Tab2.default,
1092
- { activeKey: gryjShowList.indexOf('personMail') > -1 ? "0" : "1" },
1093
- personMailTab,
1094
- publicMailTab
1119
+ 'div',
1120
+ null,
1121
+ _react2.default.createElement(
1122
+ 'p',
1123
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
1124
+ '\u66F4\u591A',
1125
+ _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
1126
+ ),
1127
+ _react2.default.createElement(
1128
+ _Tab2.default,
1129
+ { activeKey: gryjShowList.indexOf('personMail') > -1 ? "0" : "1" },
1130
+ personMailTab,
1131
+ publicMailTab
1132
+ )
1095
1133
  );
1096
1134
  }
1097
1135
  if (item.portletCode === 'grrc') {
@@ -1166,9 +1204,11 @@ var MyGrid = function (_React$Component) {
1166
1204
  calendarDom,
1167
1205
  grrcList
1168
1206
  );
1169
- setTimeout(function () {
1170
- t.initCleader(t.state[item.portletCode + '_' + item.id], item.id);
1171
- }, 600);
1207
+ if (t.state[item.portletCode + '_' + item.id]) {
1208
+ setTimeout(function () {
1209
+ t.initCleader(t.state[item.portletCode + '_' + item.id], item.id);
1210
+ }, 600);
1211
+ }
1172
1212
  }
1173
1213
  if (item.portletCode === 'grhy') {
1174
1214
  var grhyContent = '';
@@ -1446,15 +1486,15 @@ var MyGrid = function (_React$Component) {
1446
1486
  return _react2.default.createElement(
1447
1487
  'div',
1448
1488
  { className: 'react-grid-component', key: item.id, style: {
1449
- borderTopLeftRadius: styleSetting.otherSet.radius.topLeft,
1450
- borderTopRightRadius: styleSetting.otherSet.radius.topRight,
1451
- borderBottomLeftRadius: styleSetting.otherSet.radius.bottomLeft,
1452
- borderBottomRightRadius: styleSetting.otherSet.radius.bottomRight,
1453
- paddingLeft: styleSetting.pl,
1454
- paddingright: styleSetting.pr,
1455
- paddingTop: styleSetting.pt,
1456
- paddingBottom: styleSetting.pb,
1457
- background: styleSetting.bgColor ? styleSetting.bgColor : ''
1489
+ borderTopLeftRadius: styleSetting.otherSet.radius.topLeft + 'px',
1490
+ borderTopRightRadius: styleSetting.otherSet.radius.topRight + 'px',
1491
+ borderBottomLeftRadius: styleSetting.otherSet.radius.bottomLeft + 'px',
1492
+ borderBottomRightRadius: styleSetting.otherSet.radius.bottomRight + 'px',
1493
+ paddingLeft: styleSetting.otherSet.paddingSet.pl + 'px',
1494
+ paddingright: styleSetting.otherSet.paddingSet.pr + 'px',
1495
+ paddingTop: styleSetting.otherSet.paddingSet.pt + 'px',
1496
+ paddingBottom: styleSetting.otherSet.paddingSet.pb + 'px',
1497
+ backgroundColor: styleSetting.otherSet.bgColor
1458
1498
  } },
1459
1499
  styleSetting.titleSet.titleStatus == 1 ? componentHead : '',
1460
1500
  componentContent
@@ -1537,9 +1577,7 @@ var MyGrid = function (_React$Component) {
1537
1577
  margin: [0, 10]
1538
1578
  },
1539
1579
  this.state.data.map(function (item) {
1540
- console.log('====================================');
1541
- console.log(t.portalContent(item), ' t.portalContent(item) t.portalContent(item)');
1542
- console.log('====================================');
1580
+
1543
1581
  return t.portalContent(item) || null;
1544
1582
 
1545
1583
  // 添加一个默认返回值,以避免未指定键的错误
@@ -467,9 +467,9 @@
467
467
  }
468
468
 
469
469
  .jxzt-content {
470
+ margin: 16px;
470
471
  .t-image-slide-item {
471
- margin: 16px;
472
- height: 91px !important;
472
+ // height: 91px !important;
473
473
  background-image: url(/mobile/fmui/images/notice-card-bg.png);
474
474
  background-size: 100% 100%;
475
475
  border-radius: 10px;
@@ -635,14 +635,19 @@
635
635
  margin-bottom: 10px;
636
636
  }
637
637
 
638
- .calendar-content .canChoose-active span {
638
+ .calendar-content .canChoose-active span ,.calendar-content div.today span{
639
639
  color:#713938 !important;
640
- // background: #F6F6F6 !important;
640
+ }
641
+ .calendar-content .canChoose-active span {
642
+ background: #F6F6F6 !important;
643
+ }
644
+
645
+ .calendar-content div.today span {
641
646
  background: transparent !important;
642
647
  }
643
648
 
644
649
  .calendar-content span.hasEvent:before {
645
- color: #FAB88D;
650
+ color: #FAB88D !important;
646
651
  }
647
652
 
648
653
  .rc-list {
@@ -968,6 +973,10 @@
968
973
  z-index: 999;
969
974
  padding: 2px;
970
975
  font-size: 14px;
976
+
977
+ .iconfont-ywtb {
978
+ font-size: 7px;
979
+ }
971
980
  }
972
981
 
973
982
  .sxbl_buttons {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.37",
3
+ "version": "2.0.39",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",