fmui-base 2.2.99 → 2.3.1

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.3.1:传阅节点设置的参与人默认全部选中
6
7
  - 2.2.99:移动端保存批示意见态度
7
8
  - 2.2.98:批示意见态度增加回调方法
8
9
  - 2.2.97:表单字段关联选人字段关联子表,没有触发关联时还原原来状态
@@ -2697,10 +2697,11 @@ var PageHome = function (_React$Component) {
2697
2697
  if (participantList[i].type != "user") {
2698
2698
  var children = participantList[i];
2699
2699
  for (var j = 0; j < children.length; j++) {
2700
+ var personValueItem = { scopeType: "user", scopeValue: children[j].id, scopeName: children[j].userName || children[j].name, imageId: "", orgNamePath: children[j].orgPath };
2700
2701
  if (commonUsedId.split(",").indexOf(children[j].id) == -1) {
2701
2702
  commonUsedId += children[j].id + ',';
2702
2703
  commonUsedData.push(personValueItem);
2703
- if (item.partType == '1') {
2704
+ if (item.partType == '1' || item.nodeType == 'readtask') {
2704
2705
  personValue.push(personValueItem);
2705
2706
  }
2706
2707
  }
@@ -2710,7 +2711,7 @@ var PageHome = function (_React$Component) {
2710
2711
  if (commonUsedId.split(",").indexOf(participantList[i].id) == -1) {
2711
2712
  commonUsedId += participantList[i].id + ',';
2712
2713
  commonUsedData.push(personValueItem);
2713
- if (item.partType == '1') {
2714
+ if (item.partType == '1' || item.nodeType == 'readtask') {
2714
2715
  personValue.push(personValueItem);
2715
2716
  }
2716
2717
  }
@@ -2720,7 +2721,7 @@ var PageHome = function (_React$Component) {
2720
2721
  popCode = "common,org,group";
2721
2722
  popCode = "common,org,group,duty,politicalOutlook";
2722
2723
  chooseType = "userNotOrg,userNotGroup,userNotDuty,userNotPoliticalOutlook";
2723
- if (commonUsedData.length == 1) {
2724
+ if (commonUsedData.length == 1 || item.nodeType == 'readtask') {
2724
2725
  personValue = commonUsedData;
2725
2726
  }
2726
2727
  } else {
@@ -2763,13 +2764,13 @@ var PageHome = function (_React$Component) {
2763
2764
  if (commonUsedId.split(",").indexOf(participantList[i].id) == -1) {
2764
2765
  commonUsedId += participantList[i].id + ',';
2765
2766
  commonUsedData.push(personValueItem);
2766
- if (item.partType == '1') {
2767
+ if (item.partType == '1' || item.nodeType == 'readtask') {
2767
2768
  personValue.push(personValueItem);
2768
2769
  }
2769
2770
  }
2770
2771
  }
2771
2772
  }
2772
- if (commonUsedData.length == 1) {
2773
+ if (commonUsedData.length == 1 || item.nodeType == 'readtask') {
2773
2774
  personValue = commonUsedData;
2774
2775
  }
2775
2776
  } else {
@@ -2787,8 +2788,13 @@ var PageHome = function (_React$Component) {
2787
2788
  chooseType = '';
2788
2789
  }
2789
2790
  if (item.nodeType == 'readtask') {
2790
- //如果是传阅节点
2791
+ //如果是传阅节点,默认选中配置的全部用户
2791
2792
  t.state.isHideRead = true;
2793
+ if (commonUsedData.length > 0) {
2794
+ personValue = commonUsedData.slice();
2795
+ } else if (personValues.length > 0) {
2796
+ personValue = personValues.slice();
2797
+ }
2792
2798
  }
2793
2799
  checkedItem.code = popCode;
2794
2800
  checkedItem.chooseType = chooseType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.2.99",
3
+ "version": "2.3.1",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",