fmui-base 2.0.4 → 2.0.5

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,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.0.5: 流程功能优化
6
7
  - 2.0.4: 表单组件错误优化;政治面貌全选问题修改
7
8
  - 2.0.3: 增加流程图;表单按钮功能扩展
8
9
  - 2.0.2: 时间字段增加“xxxx年xx月xx日”中文显示
package/lib/form/form.js CHANGED
@@ -1040,14 +1040,15 @@ var PageHome = function (_React$Component) {
1040
1040
  if (form.popuserMap.chooseScope == 5) {
1041
1041
  itemParam.queryLimit = form.popuserMap.chooseScope;
1042
1042
  itemParam.limitData = getLoginUserInfo().orgId;
1043
- } else if (form.popuserMap.chooseScope == "4") {
1044
- //查上级
1045
- itemParam.queryLimit = "3";
1046
- itemParam.limitData = form.popuserMap.chooseScopeVal;
1047
1043
  } else if (form.popuserMap.chooseScope == "all") {} else {
1048
1044
  itemParam.queryLimit = 5;
1049
1045
  itemParam.limitData = form.popuserMap.chooseScope;
1050
1046
  }
1047
+ // else if(form.popuserMap.chooseScope == "4"){//查上级
1048
+ // itemParam.queryLimit = "3";
1049
+ // itemParam.limitData = form.popuserMap.chooseScopeVal;
1050
+ // }
1051
+
1051
1052
  }
1052
1053
  scopeTable = form.popuserMap.scopeTable;
1053
1054
  } else {
@@ -422,13 +422,10 @@ var PageHome = function (_React$Component) {
422
422
  preCaFields: "", //上一个办理节点ca验签字段
423
423
  formRelaField: "", //流程关联字段
424
424
  commentBackAlert: [], //退回批示意见弹出
425
- showCommentBackAlert: true //显示退回批示意见弹出
425
+ showCommentBackAlert: true, //显示退回批示意见弹出
426
+ endSelect: false
426
427
  };
427
- try {
428
- FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
429
- } catch (error) {
430
- alert("流程缺少扩展js," + error);
431
- }
428
+ FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
432
429
 
433
430
  //处理特有参数
434
431
  if (typeof FlowCommon.dealwithCommonParam === "function") {
@@ -2126,10 +2123,11 @@ var PageHome = function (_React$Component) {
2126
2123
  //后继活动
2127
2124
  var urgentSelectList = [];
2128
2125
  var urgentList = [];
2126
+ var endSelect = false;
2129
2127
  if (nextList.length == 1 && nextList[0]['end']) {
2130
2128
  //结束
2131
2129
  //urgentHidden = true;
2132
-
2130
+ endSelect = true;
2133
2131
  var endItem = nextList[0];
2134
2132
  var checkedItem = {};
2135
2133
  checkedItem.value = endItem.id;
@@ -2428,7 +2426,8 @@ var PageHome = function (_React$Component) {
2428
2426
  urgentList: urgentList,
2429
2427
  urgentHidden: urgentHidden,
2430
2428
  isEnd: isEnd,
2431
- nextActivityName: nextActivityName
2429
+ nextActivityName: nextActivityName,
2430
+ endSelect: endSelect
2432
2431
  }, function () {
2433
2432
  for (var i = 0; i < nextActivityList.length; i++) {
2434
2433
  if (nextActivityList[i].personValue.length > 0 || nextActivityList[i].commonUsedData.length > 0) {
@@ -6018,11 +6017,13 @@ var PageHome = function (_React$Component) {
6018
6017
  var isRadio = item.isRadio;
6019
6018
  if (item.end && !checked) {
6020
6019
  this.setState({
6021
- urgentHidden: true
6020
+ urgentHidden: true,
6021
+ endSelect: false
6022
6022
  });
6023
6023
  } else {
6024
6024
  this.setState({
6025
- urgentHidden: false
6025
+ urgentHidden: false,
6026
+ endSelect: true
6026
6027
  });
6027
6028
  }
6028
6029
  var maxOutgoing = item.maxOutgoing; //1代表是排他单选,0代表多选
@@ -6789,7 +6790,7 @@ var PageHome = function (_React$Component) {
6789
6790
  }.bind(this)),
6790
6791
  _react2.default.createElement(_CheckboxField2.default, {
6791
6792
  data: this.state.shortMessageList,
6792
- className: this.state.nextActivityList.length == 0 ? 't-DN' : '',
6793
+ className: this.state.nextActivityList.length == 0 || this.state.endSelect ? 't-DN' : '',
6793
6794
  mode: 'list',
6794
6795
  onChange: this.changeSendShortMessage.bind(this),
6795
6796
  required: false }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",