fmui-base 1.0.21 → 1.0.23

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,8 @@
3
3
  ---
4
4
 
5
5
  ## 更新日志
6
-
6
+ - 1.0.22:流程列表批量办理按钮增加配置项可控制隐藏
7
+ - 1.0.22:修改流程列表统一待办和搜索
7
8
  - 1.0.21:修改流程列表统一待办
8
9
  - 1.0.20:修改推送打开作废流程提示
9
10
  - 1.0.19:修改流程图请求参数,增加流程实例id
@@ -102,6 +102,7 @@ var HBox = _Boxs2.default.HBox,
102
102
  var ButtonGroup = _Button2.default.ButtonGroup;
103
103
  //import UserInfo from '../approval-details/UserInfo';
104
104
 
105
+ var extFile = "";
105
106
  var ActionSheetButton = void 0;
106
107
  var iconIndex = 0;
107
108
  var searchVal = '';
@@ -132,7 +132,7 @@ var ListItem = function (_React$Component) {
132
132
  if (module.indexOf("_") > 0) {
133
133
  var category = module.split("_")[0];
134
134
  mobilePath = module.substring(module.indexOf("_") + 1);
135
- fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + +"/").split('?_')[0].split('/approval/all')[0];
135
+ fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
136
136
  } else {
137
137
  fullUrl = fullUrl.replace("/" + projectPath + "/", "/modules/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
138
138
  }
@@ -403,6 +403,7 @@ var PageHome = function (_React$Component2) {
403
403
  var activeIndex = props.activeIndex ? props.activeIndex : 0;
404
404
  var module = props.module ? props.module : "approve";
405
405
  var type = props.type ? props.type : "self"; //self:本应用,all:全模块
406
+ var hasBatch = eval(props.hasBatch ? props.hasBatch : "true"); //是否有批量办理
406
407
  var tabCodes = props.tabCodes ? props.tabCodes : "undo,unread,done,read,myself"; //标签页
407
408
  var searchVal = props.search;
408
409
 
@@ -464,7 +465,8 @@ var PageHome = function (_React$Component2) {
464
465
  unreadListUrl: unreadListUrl,
465
466
  doneListUrl: doneListUrl,
466
467
  readListUrl: readListUrl,
467
- myselfListUrl: myselfListUrl
468
+ myselfListUrl: myselfListUrl,
469
+ hasBatch: hasBatch
468
470
  };
469
471
 
470
472
  /**
@@ -668,9 +670,18 @@ var PageHome = function (_React$Component2) {
668
670
  }, {
669
671
  key: 'onSearch',
670
672
  value: function onSearch(searchValue) {
673
+
671
674
  searchVal = searchValue;
672
- var url = 'approval/transaction/' + this.state.activeTabIndex + '/' + searchVal;
673
- location.hash = url;
675
+ var type = this.state.type;
676
+
677
+ if (type == "self") {
678
+ var url = 'approval/transaction/' + this.state.activeTabIndex + '/' + searchVal;
679
+ location.hash = url;
680
+ } else {
681
+ var url = 'approval/all/' + this.state.activeTabIndex + '/' + searchVal;
682
+ location.hash = url;
683
+ }
684
+
674
685
  console.log('onSearch>>' + searchValue);
675
686
  var noDataTip = '无搜索结果';
676
687
  if (this.state.activeTabIndex == 0) {
@@ -732,8 +743,15 @@ var PageHome = function (_React$Component2) {
732
743
  console.log('onExit!');
733
744
  var noDataTip = '暂无数据';
734
745
  var searchValue = '';
735
- var url = 'approval/transaction/' + this.state.activeTabIndex;
736
- location.hash = url;
746
+
747
+ var type = this.state.type;
748
+ if (type == "self") {
749
+ var url = 'approval/transaction/' + this.state.activeTabIndex;
750
+ location.hash = url;
751
+ } else {
752
+ var url = 'approval/all/' + this.state.activeTabIndex;
753
+ location.hash = url;
754
+ }
737
755
  searchVal = '';
738
756
  $('.empty-content').hide();
739
757
  if (this.state.activeTabIndex == 0) {
@@ -997,7 +1015,7 @@ var PageHome = function (_React$Component2) {
997
1015
  ),
998
1016
  _react2.default.createElement(
999
1017
  Box,
1000
- { className: this.state.isBatch ? "t-FCc t-PR16" : "t-FCddblue t-PR16", onClick: this.clickBatch.bind(this, this.state.isBatch) },
1018
+ { className: this.state.hasBatch ? this.state.isBatch ? "t-FCc t-PR16" : "t-FCddblue t-PR16" : "t-DN", onClick: this.clickBatch.bind(this, this.state.isBatch) },
1001
1019
  '\u6279\u91CF'
1002
1020
  )
1003
1021
  ),
@@ -1036,7 +1054,7 @@ var PageHome = function (_React$Component2) {
1036
1054
  ),
1037
1055
  _react2.default.createElement(
1038
1056
  Box,
1039
- { className: this.state.isBatch ? "t-FCc t-PR16" : "t-FCddblue t-PR16", isBatch: this.state.isBatch, onClick: this.clickBatch.bind(this, this.state.isBatch) },
1057
+ { className: this.state.hasBatch ? this.state.isBatch ? "t-FCc t-PR16" : "t-FCddblue t-PR16" : "t-DN", isBatch: this.state.isBatch, onClick: this.clickBatch.bind(this, this.state.isBatch) },
1040
1058
  '\u6279\u91CF'
1041
1059
  )
1042
1060
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",