fmui-base 2.0.61 → 2.0.63

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,7 +3,9 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
- - 2.0.60:移动端门户常用应用角标显示问题
6
+ - 2.0.61:移动端门户常用应用更换接口
7
+ - 2.0.62: 移动端批示意见常用语编辑跳转
8
+ - 2.0.61:移动端门户常用应用角标显示问题
7
9
  - 2.0.60:移动端部件修改
8
10
  - 2.0.59:待办待阅数量问题修改
9
11
  - 2.0.58:待办、待阅页签增加数量提醒
@@ -288,6 +288,10 @@
288
288
  .react-grid .systemItem .t-badge {
289
289
  width: 100%;
290
290
  }
291
+ .react-grid .systemItem .t-badge .badge-inner {
292
+ line-height: 13px;
293
+ border: 2px solid #fff;
294
+ }
291
295
  .react-grid .react-app-collect {
292
296
  position: relative;
293
297
  height: 100%;
@@ -954,3 +958,11 @@
954
958
  .react-grid .t-grid .t-grid-item + .t-grid-item {
955
959
  border-left: none;
956
960
  }
961
+ .react-grid .tp-content {
962
+ width: 100%;
963
+ height: 100%;
964
+ }
965
+ .react-grid .tp-content img {
966
+ width: 100%;
967
+ height: 100%;
968
+ }
package/lib/db/db.js CHANGED
@@ -921,6 +921,20 @@ context.create('reactGrid', {
921
921
  }
922
922
  },
923
923
 
924
+ // 常用应用(频次)
925
+ getNewComAppInfo: {
926
+ url: _variables2.default.URLS.getNewComAppInfo,
927
+ method: 'GET',
928
+ header: {
929
+ Authorization: 'Bearer ' + getLoginUserInfo().token
930
+ },
931
+ willFetch: function willFetch() {
932
+ _Toast2.default.show({
933
+ content: _react2.default.createElement(_loading2.default, null),
934
+ duration: 800
935
+ });
936
+ }
937
+ },
924
938
  getNewHomePageTodoData: {
925
939
  // mockUrl: 'query/getNewHomePageTodoData.json',
926
940
  url: _variables2.default.URLS.getNewHomePageTodoData,
@@ -112,6 +112,7 @@ exports.default = {
112
112
 
113
113
  getPortalPage: portalUrlPrefix + "getPortalPage" + '?token=' + getLoginUserInfo().token, //移动门户部件详情
114
114
  getComponentInfoListAll: portalAllUrlPrefix + "getComponentInfoList" + '?token=' + getLoginUserInfo().token, //获取首页部件信息
115
+ getNewComAppInfo: portalAllUrlPrefix + "getNewComAppInfo" + '?token=' + getLoginUserInfo().token, //首页部件常用应用
115
116
  getNewHomePageTodoData: portalAllUrlPrefix + "getNewHomePageTodoData" + '?token=' + getLoginUserInfo().token,
116
117
  getNewHomePageCollectAppInfoList: portalAllUrlPrefix + "getNewHomePageCollectAppInfoList" + '?token=' + getLoginUserInfo().token,
117
118
  getNewHomePageRemindCount: portalAllUrlPrefix + "getNewHomePageRemindCount" + '?token=' + getLoginUserInfo().token,
@@ -115,11 +115,11 @@ var MyGrid = function (_React$Component) {
115
115
  t.getShoucangAppInfo(item.id);
116
116
  t.getComAppInfo(item.id);
117
117
  } else if (item.portletCode !== 'tbgl') {
118
- var params = {
118
+ var _params = {
119
119
  code: item.portletCode,
120
120
  ppId: item.id
121
121
  };
122
- _db2.default.reactGrid.getComponentInfoListAll(params).then(function (res) {
122
+ _db2.default.reactGrid.getComponentInfoListAll(_params).then(function (res) {
123
123
  _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
124
124
  });
125
125
  }
@@ -138,6 +138,18 @@ var MyGrid = function (_React$Component) {
138
138
  duration: 2000
139
139
  });
140
140
  });
141
+
142
+ var params = {};
143
+ _db2.default.reactGrid.getNewHomePageTodoData(params).then(function (content) {
144
+ var openModule = content.hpOpenModule ? content.hpOpenModule : "";
145
+ localStorage.setItem('hpOpenModule', openModule);
146
+ var todoData = content.todoData != null ? content.todoData.entity : {};
147
+ var pageTitle = todoData.pageTitle;
148
+ if (!pageTitle || pageTitle == '') {
149
+ pageTitle = '一网通办管理平台';
150
+ }
151
+ setPageTitle(pageTitle);
152
+ });
141
153
  };
142
154
 
143
155
  _this.getShoucangAppInfo = function (id) {
@@ -176,11 +188,12 @@ var MyGrid = function (_React$Component) {
176
188
  thirdMenuType = 'DING';
177
189
  }
178
190
  params.showClient = thirdMenuType;
179
- _db2.default.reactGrid.getComponentInfoListAll(params).then(function (result) {
180
- if (result.data) {
181
- _this.setState(_defineProperty({}, 'cyyy' + '_' + id, result.data));
182
- var appOftenListlocal = JSON.stringify(result.data);
183
- localStorage.setItem(['cyyy' + '_' + id], appOftenListlocal);
191
+ _db2.default.reactGrid.getNewComAppInfo(params).then(function (content) {
192
+ if (content.data) {
193
+ _this.setState(_defineProperty({}, 'cyyy' + '_' + id, content.data));
194
+ var appOftenListlocal = JSON.stringify(content.data);
195
+ // localStorage.setItem(['cyyy' + '_' + id], appOftenListlocal);
196
+ localStorage.setItem('appOftenList', appOftenListlocal);
184
197
  }
185
198
  }).catch(function (error) {
186
199
  console.error(error);
@@ -291,13 +304,12 @@ var MyGrid = function (_React$Component) {
291
304
  value: function getRemindCount() {
292
305
  var _this2 = this;
293
306
 
294
- _db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo,unreadMaild,unreadPubMail,toBeAttended" }).then(function (content) {
295
- if (content.undo || content.approveundo || content.toBeAttendedCount || content.unreadPubMailCount) {
296
- console.log('====================================');
297
- console.log(content, 'contentcontentcontent');
298
- console.log('====================================');
307
+ _db2.default.reactGrid.getNewHomePageRemindCount({ codes: "undo,unreadMail,unreadPubMail,toBeAttended,approveundo" }).then(function (content) {
308
+ if (content.undo || content.approveundo || content.toBeAttendedCount || content.unreadPubMailCount || content.unreadMail) {
309
+
299
310
  _this2.setState({
300
311
  undo: content.undo,
312
+ unreadMail: content.unreadMail,
301
313
  approveundo: content.approveundo,
302
314
  toBeAttendedCount: content.toBeAttendedCount,
303
315
  unreadPubMailCount: content.unreadPubMailCount
@@ -731,7 +743,7 @@ var MyGrid = function (_React$Component) {
731
743
  { className: 'iconblock t-iconBC' + ele.iconColor },
732
744
  _react2.default.createElement(
733
745
  _Badge2.default,
734
- { count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : '' },
746
+ { count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : ele.name == '邮件' ? t.state.unreadMail : '' },
735
747
  _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
736
748
  )
737
749
  ),
@@ -781,7 +793,7 @@ var MyGrid = function (_React$Component) {
781
793
  { className: 'iconblock t-iconBC' + ele.iconColor },
782
794
  _react2.default.createElement(
783
795
  _Badge2.default,
784
- { count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : '' },
796
+ { count: ele.name == '会议' ? t.state.toBeAttendedCount * 1 : ele.name == '审批' ? t.state.approveundo : ele.name == '公共邮件' ? t.state.unreadPubMailCount * 1 : ele.name == '邮件' ? t.state.unreadMail : '' },
785
797
  _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + ele.icon })
786
798
  )
787
799
  ),
@@ -394,6 +394,11 @@
394
394
  .t-badge {
395
395
  width: 100%;
396
396
  }
397
+
398
+ .t-badge .badge-inner {
399
+ line-height: 13px;
400
+ border: 2px solid #fff;
401
+ }
397
402
  }
398
403
 
399
404
  .react-app-collect {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.61",
3
+ "version": "2.0.63",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",