fmui-base 2.0.47 → 2.0.49

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.49:移动门户图表组件修改
7
+ - 2.0.48:移动门户组件修改
6
8
  - 2.0.47:移动端默认传阅
7
9
  - 2.0.46:移动门户图表组件单维表多维表不支持提示
8
10
  - 2.0.45:移动门户组件修改
@@ -36,9 +36,17 @@ var NoData = function (_React$Component) {
36
36
 
37
37
  var portalId = props.portalId;
38
38
  var height = props.height;
39
+ var hasTitle = props.hasTitle ? props.height : false;
39
40
  if (!height) {
40
41
  height = 400;
41
42
  }
43
+ if (hasTitle) {
44
+ if ((height + "").indexOf("%") > 0) {
45
+ height = "calc(" + height + " - 50px)";
46
+ } else {
47
+ height = height - 50;
48
+ }
49
+ }
42
50
  _this.state = {
43
51
  loadTrue: false,
44
52
  portalId: portalId,
@@ -1,21 +1,28 @@
1
+ .react-grid .noTitle .t-tab-bar {
2
+ display: none;
3
+ }
1
4
  .react-grid .t-tab-bar {
2
5
  padding-left: 6px;
3
6
  }
4
7
  .react-grid .t-tab-bar .t-tab-tab {
5
8
  font-size: 16px;
9
+ min-width: 95px;
6
10
  color: #888;
7
11
  flex: initial;
8
12
  padding: 0 10px;
9
- min-width: 95px;
10
13
  height: 33px;
11
14
  line-height: 20px;
12
15
  display: block;
16
+ background-color: transparent;
17
+ }
18
+ .react-grid .t-tab-bar .t-tab-tab div {
19
+ min-width: 81px;
20
+ height: inherit;
13
21
  white-space: nowrap;
14
22
  overflow: hidden;
15
23
  text-overflow: ellipsis;
16
24
  -webkit-line-clamp: 1;
17
25
  -webkit-box-orient: vertical;
18
- background-color: transparent;
19
26
  }
20
27
  .react-grid .t-tab-bar .t-tab-tab-active {
21
28
  color: #333 !important;
@@ -44,12 +51,18 @@
44
51
  }
45
52
  .react-grid .react-grid-item.cssTransforms {
46
53
  overflow: auto;
54
+ background-size: contain;
55
+ background-repeat: no-repeat;
56
+ background-size: 100% 100%;
47
57
  }
48
58
  .react-grid .react-grid-component .react-grid-banner {
49
59
  color: #fff;
50
60
  width: 100%;
51
61
  height: 100%;
52
62
  padding: 0;
63
+ background-position: center;
64
+ background-repeat: no-repeat;
65
+ background-size: 100% 100%;
53
66
  }
54
67
  .react-grid .react-grid-component .react-grid-banner .banner {
55
68
  position: absolute;
@@ -147,7 +160,7 @@
147
160
  box-shadow: none;
148
161
  }
149
162
  .react-grid .react-grid-component .react-grid-banner .t-grid {
150
- margin: 8px;
163
+ margin: 0 8px;
151
164
  border: none;
152
165
  }
153
166
  .react-grid .react-grid-component .react-grid-banner .t-grid .t-grid-row {
@@ -185,8 +198,9 @@
185
198
  .react-grid .systemItem {
186
199
  display: inline-block;
187
200
  text-align: center;
201
+ width: fit-content;
188
202
  vertical-align: top;
189
- padding-top: 25px;
203
+ padding-top: 16px;
190
204
  }
191
205
  .react-grid .systemItem .iconblock {
192
206
  width: 40px;
@@ -345,7 +359,6 @@
345
359
  }
346
360
  .react-grid .carousel-notice.t-slide .t-slide-item {
347
361
  padding: 16px;
348
- background-image: url(/mobile/fmui/images/notice-card-bg.png);
349
362
  background-size: 100% 100%;
350
363
  }
351
364
  .react-grid .carousel-notice.t-slide .t-slide-item img {
@@ -370,13 +383,17 @@
370
383
  background-color: rgba(113, 57, 56, 0.1);
371
384
  color: #713938;
372
385
  }
373
- .react-grid .t-image-slide-item {
374
- margin: 16px;
375
- height: 100px !important;
386
+ .react-grid .jxzt-content {
387
+ margin: 0 16px;
388
+ }
389
+ .react-grid .jxzt-content .t-image-slide-item {
376
390
  background-image: url(/mobile/fmui/images/notice-card-bg.png);
377
391
  background-size: 100% 100%;
378
392
  border-radius: 10px;
379
393
  }
394
+ .react-grid .jxzt-content .t-slide-view {
395
+ height: 91px;
396
+ }
380
397
  .react-grid .infoList {
381
398
  margin: 0 16px;
382
399
  padding: 10px 0;
@@ -487,7 +504,7 @@
487
504
  display: none;
488
505
  }
489
506
  .react-grid .calendar-container {
490
- background: #fff;
507
+ background: transparent;
491
508
  }
492
509
  .react-grid .calendar-week {
493
510
  height: 20px;
@@ -500,12 +517,18 @@
500
517
  border-bottom: none;
501
518
  margin-bottom: 10px;
502
519
  }
503
- .react-grid .calendar-content .canChoose-active span {
520
+ .react-grid .calendar-content .canChoose-active span,
521
+ .react-grid .calendar-content div.today span {
504
522
  color: #713938 !important;
505
- background: transparent !important;
523
+ }
524
+ .react-grid .calendar-content .canChoose-active span {
525
+ background: #F6F6F6 !important;
526
+ }
527
+ .react-grid .calendar-content div.today span {
528
+ background: #F6F6F6 !important;
506
529
  }
507
530
  .react-grid .calendar-content span.hasEvent:before {
508
- color: #FAB88D;
531
+ color: #FAB88D !important;
509
532
  }
510
533
  .react-grid .rc-list .rc-item {
511
534
  padding: 5px 16px 5px 10px;
@@ -762,6 +785,9 @@
762
785
  .react-grid .list-RT-label .list-item .item-title::before {
763
786
  background: #713938;
764
787
  }
788
+ .react-grid .list-RT-label .list-item {
789
+ margin-top: 16px;
790
+ }
765
791
  .react-grid .rightMore {
766
792
  position: absolute;
767
793
  right: 10px;
@@ -770,21 +796,26 @@
770
796
  padding: 2px;
771
797
  font-size: 14px;
772
798
  }
799
+ .react-grid .rightMore .iconfont-ywtb {
800
+ font-size: 7px;
801
+ }
773
802
  .react-grid .sxbl_buttons {
774
- display: flex;
775
- align-items: center;
776
- justify-content: space-between;
777
- padding: 0 10px;
803
+ border-top: none !important;
804
+ padding: 0 16px;
778
805
  }
779
806
  .react-grid .sxbl_buttons button {
780
- width: 45.4%;
807
+ width: 98%;
781
808
  height: 35px;
809
+ margin-bottom: 10px;
782
810
  background: rgba(112, 58, 58, 0.12);
783
811
  border: 2px solid #703a3a;
784
812
  border-radius: 4px;
785
813
  font-size: 16px;
786
814
  color: #703A3A;
787
815
  }
816
+ .react-grid .sxbl_buttons .t-grid-row {
817
+ border-bottom: none !important;
818
+ }
788
819
  .react-grid .wdsx-list .list-item {
789
820
  display: flex;
790
821
  align-items: center;
package/lib/db/db.js CHANGED
@@ -885,10 +885,10 @@ context.create('reactGrid', {
885
885
  Authorization: 'Bearer ' + getLoginUserInfo().token
886
886
  },
887
887
  willFetch: function willFetch() {
888
- _Toast2.default.show({
889
- content: _react2.default.createElement(_loading2.default, null),
890
- duration: 800
891
- });
888
+ // Toast.show({
889
+ // content: <Loading />,
890
+ // duration: 2000
891
+ // });
892
892
  }
893
893
  },
894
894
 
@@ -942,12 +942,7 @@ context.create('reactGrid', {
942
942
  header: {
943
943
  Authorization: 'Bearer ' + getLoginUserInfo().token
944
944
  },
945
- willFetch: function willFetch() {
946
- _Toast2.default.show({
947
- content: _react2.default.createElement(_loading2.default, null),
948
- duration: 800
949
- });
950
- }
945
+ willFetch: function willFetch() {}
951
946
  },
952
947
  getComAppInfo: {
953
948
  url: _variables2.default.URLS.getComAppInfo,
@@ -49,10 +49,6 @@ var _Toast = require('saltui/lib/Toast');
49
49
 
50
50
  var _Toast2 = _interopRequireDefault(_Toast);
51
51
 
52
- var _NoticeBar = require('saltui/lib/NoticeBar');
53
-
54
- var _NoticeBar2 = _interopRequireDefault(_NoticeBar);
55
-
56
52
  require('react-grid-layout/css/styles.css');
57
53
 
58
54
  require('react-resizable/css/styles.css');
@@ -108,6 +104,7 @@ var MyGrid = function (_React$Component) {
108
104
  res.map(function (item) {
109
105
  if (item.portletCode == 'banner') {
110
106
  _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)));
107
+ _this.getRemindCount();
111
108
  } else if (item.portletCode == 'cyyy') {
112
109
  t.getShoucangAppInfo(item.id);
113
110
  t.getComAppInfo(item.id);
@@ -117,7 +114,6 @@ var MyGrid = function (_React$Component) {
117
114
  ppId: item.id
118
115
  };
119
116
  _db2.default.reactGrid.getComponentInfoListAll(params).then(function (res) {
120
- // console.log(res, '????????????????????????');
121
117
  _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
122
118
  });
123
119
  }
@@ -125,12 +121,17 @@ var MyGrid = function (_React$Component) {
125
121
  } else {
126
122
  _Toast2.default.show({
127
123
  type: 'fail',
128
- content: '未设置移动端首页',
129
- autoHide: false
124
+ content: '未找到门户信息',
125
+ duration: 2000
130
126
  });
131
127
  }
128
+ }).catch(function (error) {
129
+ _Toast2.default.show({
130
+ type: 'fail',
131
+ content: error.errorMsg,
132
+ duration: 2000
133
+ });
132
134
  });
133
- _this.getRemindCount();
134
135
  };
135
136
 
136
137
  _this.getShoucangAppInfo = function (id) {
@@ -180,14 +181,6 @@ var MyGrid = function (_React$Component) {
180
181
  });
181
182
  };
182
183
 
183
- _this.toastNull = function () {
184
- _Toast2.default.show({
185
- type: 'fail',
186
- content: '未设置移动端首页',
187
- autoHide: false
188
- });
189
- };
190
-
191
184
  var portalId = props.portalId;
192
185
  var module = props.module;
193
186
  _this.state = {
@@ -631,7 +624,7 @@ var MyGrid = function (_React$Component) {
631
624
  { className: isShowList.indexOf('AI') > -1 ? 't-FAC' : 't-DN', onClick: function onClick() {
632
625
  t.gotoYd();
633
626
  } },
634
- _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-sousuo1' }),
627
+ _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-zhineng' }),
635
628
  _react2.default.createElement(
636
629
  'div',
637
630
  { className: 't-FS12 t-MT4' },
@@ -716,10 +709,14 @@ var MyGrid = function (_React$Component) {
716
709
  ele.name
717
710
  )
718
711
  );
719
- }) : '',
712
+ }) : _react2.default.createElement(
713
+ 'div',
714
+ null,
715
+ _react2.default.createElement('img', { className: 't-W100 t-PL10 t-PR10', src: '../../../fmui/images/home/nodata.png' })
716
+ ),
720
717
  _react2.default.createElement(
721
718
  'div',
722
- { className: 'systemItem', onClick: t.jumpPage.bind(this, "homepage/home/applistSetting", personalSetting.cols * 1, item.id) },
719
+ { className: t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0 ? 'systemItem' : 't-DN', onClick: t.jumpPage.bind(this, "homepage/home/applistSetting", personalSetting.cols * 1, item.id) },
723
720
  _react2.default.createElement(
724
721
  'div',
725
722
  { className: 'iconblock t-iconBCred' },
@@ -758,10 +755,14 @@ var MyGrid = function (_React$Component) {
758
755
  ele.name
759
756
  )
760
757
  );
761
- }) : '',
758
+ }) : _react2.default.createElement(
759
+ 'div',
760
+ null,
761
+ _react2.default.createElement('img', { className: 't-W100 t-PL10 t-PR10', src: '../../../fmui/images/home/nodata.png' })
762
+ ),
762
763
  _react2.default.createElement(
763
764
  'div',
764
- { className: 'systemItem', onClick: t.jumpPage.bind(this, "/appCollect") },
765
+ { className: t.state['wdsc' + '_' + item.id] && t.state['wdsc' + '_' + item.id].length > 0 ? 'systemItem' : 't-DN', onClick: t.jumpPage.bind(this, "/appCollect") },
765
766
  _react2.default.createElement(
766
767
  'div',
767
768
  { className: 'iconblock t-iconBCred' },
@@ -898,13 +899,14 @@ var MyGrid = function (_React$Component) {
898
899
  var carouselList = '';
899
900
  if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0) {
900
901
  var tDiv = document.createElement('div');
902
+ var ttxxImgUrl = "../../../fmui/images/ywtb/notice-card-bg.png";
901
903
  carouselItem = t.state[item.portletCode + '_' + item.id].map(function (item) {
902
904
  if (item.infoList.length > 0) {
903
905
  tDiv.innerHTML = item.infoList[0].content;
904
906
  var text = tDiv.innerText;
905
907
  return _react2.default.createElement(
906
908
  _Carousel2.default.Item,
907
- null,
909
+ { style: { backgroundImage: 'url(' + ttxxImgUrl + ')' } },
908
910
  _react2.default.createElement(
909
911
  'div',
910
912
  { className: 'notice-card-head' },
@@ -1059,19 +1061,19 @@ var MyGrid = function (_React$Component) {
1059
1061
  _Tab2.default.Item,
1060
1062
  { title: _react2.default.createElement(
1061
1063
  'div',
1062
- { className: '', style: { color: styleSetting.titleSet.titleColor, fontWeight: styleSetting.titleSet.titleWeight == 1 ? 700 : '', fontSize: styleSetting.titleSet.titleSize, fontFamily: styleSetting.titleSet.titleFamily, fontStyle: styleSetting.titleSet.titleItalic === "1" ? "italic" : '' } },
1064
+ { style: { color: styleSetting.titleSet.titleColor, fontWeight: styleSetting.titleSet.titleWeight == 1 ? 700 : '', fontSize: styleSetting.titleSet.titleSize, fontFamily: styleSetting.titleSet.titleFamily, fontStyle: styleSetting.titleSet.titleItalic === "1" ? "italic" : '' } },
1063
1065
  item.columnName
1064
1066
  ), key: item.columnId },
1065
1067
  item.infoList.length > 0 ? _react2.default.createElement(
1066
1068
  'div',
1067
- null,
1069
+ { className: '' },
1068
1070
  infoList,
1069
1071
  _react2.default.createElement(
1070
1072
  'div',
1071
1073
  { className: 'info-more-btn', onClick: t.jumpPage.bind(this, "/channelDetail/" + item.channelId + '/' + item.columnId + '/' + item.columnName) },
1072
1074
  '\u67E5\u770B\u66F4\u591A'
1073
1075
  )
1074
- ) : _react2.default.createElement('img', { className: 't-W100 t-PL10 t-PR10', src: '../../../fmui/images/home/nodata.png' })
1076
+ ) : _react2.default.createElement('img', { className: 't-W100 t-PL10 t-PR10 t-MT16', src: '../../../fmui/images/home/nodata.png' })
1075
1077
  );
1076
1078
  });
1077
1079
  }
@@ -1092,7 +1094,7 @@ var MyGrid = function (_React$Component) {
1092
1094
  gryjContent = t.state[item.portletCode + '_' + item.id].data.personList.map(function (item) {
1093
1095
  return _react2.default.createElement(
1094
1096
  'div',
1095
- { 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') },
1097
+ { 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') },
1096
1098
  _react2.default.createElement(
1097
1099
  'div',
1098
1100
  { className: item.isRead == "false" ? "item-label label-special" : "t-DN" },
@@ -1207,7 +1209,7 @@ var MyGrid = function (_React$Component) {
1207
1209
  ), key: '0' },
1208
1210
  _react2.default.createElement(
1209
1211
  'div',
1210
- { className: 'list-RT-label' },
1212
+ { className: 'list-RT-label t-MT16' },
1211
1213
  gryjContent
1212
1214
  )
1213
1215
  );
@@ -1222,7 +1224,7 @@ var MyGrid = function (_React$Component) {
1222
1224
  ), key: '1' },
1223
1225
  _react2.default.createElement(
1224
1226
  'div',
1225
- { className: 'list-RT-label' },
1227
+ { className: 'list-RT-label t-MT16' },
1226
1228
  ggyjContent
1227
1229
  )
1228
1230
  );
@@ -1499,7 +1501,7 @@ var MyGrid = function (_React$Component) {
1499
1501
  )
1500
1502
  );
1501
1503
 
1502
- componentContent = _react2.default.createElement(_chart2.default, { portalId: item.id, height: '100%' });
1504
+ componentContent = _react2.default.createElement(_chart2.default, { portalId: item.id, height: '100%', hasTitle: styleSetting.titleSet.titleStatus == 1 });
1503
1505
  }
1504
1506
  if (item.portletCode === 'wdsx') {
1505
1507
  componentHead = _react2.default.createElement(
@@ -39,7 +39,7 @@
39
39
 
40
40
  .t-tab-ink-bar {
41
41
  // background-color: @theme-color !important;
42
- margin-left: -33px;
42
+ margin-left: -36px;
43
43
  border-radius: 4px;
44
44
  height: 4px;
45
45
  width: 25px !important;
@@ -250,7 +250,7 @@
250
250
  text-align: center;
251
251
  width: fit-content;
252
252
  vertical-align: top;
253
- padding-top: 25px;
253
+ padding-top: 16px;
254
254
 
255
255
  .iconblock {
256
256
  width: 40px;
@@ -334,7 +334,7 @@
334
334
  display: flex;
335
335
  flex-wrap: wrap;
336
336
  justify-content: space-between;
337
- padding: 16px;
337
+ padding: 10px 16px 16px 16px;
338
338
  padding-bottom: 0;
339
339
 
340
340
  .banshi-item {
@@ -447,10 +447,15 @@
447
447
  border-radius: 5px;
448
448
 
449
449
  .t-slide-item {
450
- padding: 16px;
450
+ // padding: 16px;
451
451
  // background-color: @theme-color-4;
452
- background-image: url(/mobile/fmui/images/notice-card-bg.png);
452
+ // background-image: url(../../../fmui/images/ywtb/notice-card-bg.png);
453
+ background-size: 100% 100%;
454
+ }
455
+
456
+ .t-slide-item-inner {
453
457
  background-size: 100% 100%;
458
+ background-repeat: no-repeat;
454
459
  }
455
460
 
456
461
  .t-slide-item img {
@@ -1031,6 +1036,10 @@
1031
1036
  justify-content: initial;
1032
1037
  }
1033
1038
  }
1034
-
1039
+
1040
+
1041
+ .t-grid-item+.t-grid-item {
1042
+ border-left: none !important;
1043
+ }
1035
1044
  }
1036
1045
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.47",
3
+ "version": "2.0.49",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",