fmui-base 2.1.5 → 2.1.7

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.1.7:移动选人bug
7
+ - 2.1.6:增加二开自定义按钮的扩展方法
6
8
  - 2.1.5:退回流程提交到退回活动,默认勾选
7
9
  - 2.1.4:流程表单加载水印
8
10
  - 2.1.3:流程支持取消超时问题处理
@@ -2945,6 +2945,16 @@ var PageHome = function (_React$Component) {
2945
2945
  });
2946
2946
  });
2947
2947
  } else {
2948
+ //项目开发模块统一扩展
2949
+ var mobileModuleExt;
2950
+ try {
2951
+ if (t.state.module) {
2952
+ mobileModuleExt = typeof eval(t.state.module + "_mobileExt") !== 'undefined' ? eval(t.state.module + "_mobileExt") : null;
2953
+ }
2954
+ } catch (e) {}
2955
+ // alert("exception: "+e.message);
2956
+
2957
+
2948
2958
  //项目开发扩展
2949
2959
  var mobileExt;
2950
2960
  try {
@@ -2966,6 +2976,18 @@ var PageHome = function (_React$Component) {
2966
2976
  content: msg
2967
2977
  });
2968
2978
  });
2979
+ } else if (typeof mobileModuleExt !== 'undefined' && typeof mobileModuleExt[operate] === "function") {
2980
+ mobileModuleExt[operate](t.state, function (msg) {
2981
+ _Toast2.default.show({
2982
+ type: 'success',
2983
+ content: msg
2984
+ });
2985
+ }, function (msg) {
2986
+ _Toast2.default.show({
2987
+ type: 'error',
2988
+ content: msg
2989
+ });
2990
+ });
2969
2991
  }
2970
2992
  }
2971
2993
  }
@@ -605,6 +605,7 @@ var Page = function (_React$Component) {
605
605
  }, {
606
606
  key: 'getChooseType',
607
607
  value: function getChooseType() {
608
+ console.log("获取chooseType值");
608
609
  var chooseObj = this.state.chooseObj;
609
610
  var chooseType = this.props.chooseType;
610
611
  var code = this.getRealCode();
@@ -617,7 +618,7 @@ var Page = function (_React$Component) {
617
618
 
618
619
  if (chooseObj) {
619
620
  // code = this.props.chooseObj;
620
- if (chooseObj.indexOf("userNotOrg") >= 0 && chooseObj.indexOf("org") >= 0) {
621
+ if (chooseObj.indexOf("userAndOrg") >= 0 && chooseObj.indexOf("org") >= 0) {
621
622
  chooseType = "userAndOrg";
622
623
  } else if (chooseObj.indexOf("userNotOrg") >= 0 && chooseObj.indexOf("org") < 0) {
623
624
  chooseType = "userNotOrg";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",