fmui-base 2.0.57 → 2.0.59

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.59:待办待阅数量问题修改
7
+ - 2.0.58:待办、待阅页签增加数量提醒
6
8
  - 2.0.57:表单子表删除计算修改;批量办理
7
9
  - 2.0.56:移动端在线编辑预览增加下载按钮
8
10
  - 2.0.55:流程页面发起按钮问题修改
package/lib/db/db.js CHANGED
@@ -260,6 +260,21 @@ context.create('FlowApproval', {
260
260
  duration: 800
261
261
  });
262
262
  }
263
+ },
264
+
265
+ getApproveCount: {
266
+ mockUrl: 'query/getApproveCount.json',
267
+ url: _variables2.default.URLS.getApproveCount,
268
+ header: {
269
+ Authorization: 'Bearer ' + getLoginUserInfo().token
270
+ },
271
+ method: 'GET',
272
+ willFetch: function willFetch() {
273
+ _Toast2.default.show({
274
+ content: _react2.default.createElement(_loading2.default, null),
275
+ duration: 800
276
+ });
277
+ }
263
278
  }
264
279
 
265
280
  });
@@ -108,7 +108,7 @@ exports.default = {
108
108
  signCA: approveUrlPrefix + "signCA" + '?token=' + getLoginUserInfo().token, //CA加签
109
109
  verifySign: approveUrlPrefix + "verifySign" + '?token=' + getLoginUserInfo().token, //CA验签
110
110
  getPreTaskInfo: approveUrlPrefix + "getPreTaskInfo" + '?token=' + getLoginUserInfo().token, //获取上一环节CA配置
111
-
111
+ getApproveCount: approveUrlPrefix + 'getApproveCount?token=' + getLoginUserInfo().token, //获取审批数量
112
112
 
113
113
  getPortalPage: portalUrlPrefix + "getPortalPage" + '?token=' + getLoginUserInfo().token, //移动门户部件详情
114
114
  getComponentInfoListAll: portalAllUrlPrefix + "getComponentInfoList" + '?token=' + getLoginUserInfo().token, //获取首页部件信息
@@ -116,6 +116,7 @@ exports.default = {
116
116
  getNewHomePageCollectAppInfoList: portalAllUrlPrefix + "getNewHomePageCollectAppInfoList" + '?token=' + getLoginUserInfo().token,
117
117
  getNewHomePageRemindCount: portalAllUrlPrefix + "getNewHomePageRemindCount" + '?token=' + getLoginUserInfo().token,
118
118
  getComAppInfo: portalAllUrlPrefix + 'getComAppInfo?token=' + getLoginUserInfo().token //获取首页常用应用
119
+
119
120
  },
120
121
  nodataIcon: context + "/mobile/fmui/images/noData.png",
121
122
  loadingIcon: context + "/mobile/fmui/images/loading.gif",
@@ -1401,7 +1401,6 @@ var PageHome = function (_React$Component) {
1401
1401
  }, {
1402
1402
  key: 'dealwithButtonsFunc',
1403
1403
  value: function dealwithButtonsFunc(content, extensionButtonList) {
1404
- debugger;
1405
1404
  var t = this;
1406
1405
  var buttons = content.buttons; //按钮
1407
1406
  var startButtons = content.startButtons; //发起人节点按钮配置
@@ -498,7 +498,7 @@ var PageHome = function (_React$Component2) {
498
498
  myselfListUrl: myselfListUrl,
499
499
  hasBatch: hasBatch
500
500
  };
501
-
501
+ _this2.getTransactionTitleCount(module, "undo,unread");
502
502
  /**
503
503
  * 办理页面搜索框设置项
504
504
  * @type {{locale: string, instantSearch: boolean, hasHistory: boolean, searchDelay: number, onEnter: (()), onExit: (()), onChange: ((p1:*)), onSearch: ((p1?:*))}}
@@ -583,9 +583,20 @@ var PageHome = function (_React$Component2) {
583
583
 
584
584
  }, {
585
585
  key: 'getTransactionTitleCount',
586
- value: function getTransactionTitleCount() {}
587
- // this.dispatch('getTransactionListDate', this.state.activeTabItemIndex);
586
+ value: function getTransactionTitleCount(module, codes) {
587
+ var _this3 = this;
588
588
 
589
+ var t = this;
590
+ _db2.default.FlowApproval.getApproveCount({
591
+ module: module,
592
+ codes: codes
593
+ }).then(function (content) {
594
+ _this3.state.titleCount.undo = content.undo;
595
+ _this3.state.titleCount.unread = content.unread;
596
+ }).catch(function (error) {
597
+ console.log(error);
598
+ });
599
+ }
589
600
 
590
601
  /**
591
602
  * ScrollList 请求数据之前的函数
@@ -1050,7 +1061,30 @@ var PageHome = function (_React$Component2) {
1050
1061
  props.id + ' ' + props.name
1051
1062
  );
1052
1063
  };
1053
-
1064
+ var undoDiv = _react2.default.createElement(
1065
+ 'div',
1066
+ null,
1067
+ ' \u5F85\u529E',
1068
+ this.state.titleCount.undo == 0 ? '' : _react2.default.createElement(
1069
+ 'span',
1070
+ { style: { color: 'red' } },
1071
+ '(',
1072
+ this.state.titleCount.undo,
1073
+ ')'
1074
+ )
1075
+ );
1076
+ var unreadDiv = _react2.default.createElement(
1077
+ 'div',
1078
+ null,
1079
+ ' \u5F85\u9605',
1080
+ this.state.titleCount.unread == 0 ? '' : _react2.default.createElement(
1081
+ 'span',
1082
+ { style: { color: 'red' } },
1083
+ '(',
1084
+ this.state.titleCount.unread,
1085
+ ')'
1086
+ )
1087
+ );
1054
1088
  return _react2.default.createElement(
1055
1089
  'div',
1056
1090
  { className: 'approve-list' },
@@ -1059,7 +1093,7 @@ var PageHome = function (_React$Component2) {
1059
1093
  { activeKey: this.state.activeTabIndex, onChange: this.handleTabChange.bind(this), destroyInactiveTabPane: false },
1060
1094
  this.state.tabCodes.indexOf('undo') >= 0 ? _react2.default.createElement(
1061
1095
  _Tab2.default.Item,
1062
- { title: "待办" + (this.state.titleCount.undo == 0 ? '' : '(' + this.state.titleCount.undo + ')') },
1096
+ { title: undoDiv },
1063
1097
  _react2.default.createElement(
1064
1098
  HBox,
1065
1099
  { vAlign: 'center', className: 't-BCf' },
@@ -1096,7 +1130,7 @@ var PageHome = function (_React$Component2) {
1096
1130
  ) : "",
1097
1131
  this.state.tabCodes.indexOf('unread') >= 0 ? _react2.default.createElement(
1098
1132
  _Tab2.default.Item,
1099
- { title: "待阅" + (this.state.titleCount.unread == 0 ? '' : '(' + this.state.titleCount.unread + ')') },
1133
+ { title: unreadDiv },
1100
1134
  _react2.default.createElement(
1101
1135
  HBox,
1102
1136
  { vAlign: 'center', className: 't-BCf' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.57",
3
+ "version": "2.0.59",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",