fmui-base 2.2.93 → 2.2.94
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 +1 -0
- package/lib/process_info/processInfo.js +38 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2803,9 +2803,6 @@ var PageHome = function (_React$Component) {
|
|
|
2803
2803
|
checkedItem.end = item.end;
|
|
2804
2804
|
checkedItem.must = item.must;
|
|
2805
2805
|
checkedItem.participants = participants;
|
|
2806
|
-
if (item.end == true) {
|
|
2807
|
-
isEnd = true;
|
|
2808
|
-
}
|
|
2809
2806
|
checkedItem.level = item.level;
|
|
2810
2807
|
checkedItem.maxOutgoing = maxOutgoing;
|
|
2811
2808
|
if (item.must == true && (maxOutgoing == 1 && checkActi == 0 || maxOutgoing == 0)) {
|
|
@@ -2849,6 +2846,7 @@ var PageHome = function (_React$Component) {
|
|
|
2849
2846
|
//nextSelectType = 'radom';
|
|
2850
2847
|
}
|
|
2851
2848
|
}
|
|
2849
|
+
isEnd = t.getSelectedIsEnd(nextActivityList, nextRadomList);
|
|
2852
2850
|
|
|
2853
2851
|
//紧急
|
|
2854
2852
|
var _urgent = t.state.urgent;
|
|
@@ -4874,6 +4872,33 @@ var PageHome = function (_React$Component) {
|
|
|
4874
4872
|
t.saveForm(1);
|
|
4875
4873
|
}, saveTime * 60 * 1000);
|
|
4876
4874
|
}
|
|
4875
|
+
//根据当前选中的后继/随机节点判断是否结束
|
|
4876
|
+
|
|
4877
|
+
}, {
|
|
4878
|
+
key: 'getSelectedIsEnd',
|
|
4879
|
+
value: function getSelectedIsEnd(nextActivityList, nextRadomList) {
|
|
4880
|
+
var t = this;
|
|
4881
|
+
var activityList = nextActivityList != null ? nextActivityList : t.state.nextActivityList || [];
|
|
4882
|
+
var radomList = nextRadomList != null ? nextRadomList : t.state.nextRadomList || [];
|
|
4883
|
+
for (var i = 0; i < activityList.length; i++) {
|
|
4884
|
+
if (activityList[i].checked && activityList[i].end === true) {
|
|
4885
|
+
return true;
|
|
4886
|
+
}
|
|
4887
|
+
}
|
|
4888
|
+
for (var j = 0; j < radomList.length; j++) {
|
|
4889
|
+
var subList = radomList[j].subRandomList || [];
|
|
4890
|
+
for (var k = 0; k < subList.length; k++) {
|
|
4891
|
+
if (subList[k].checked && subList[k].end === true) {
|
|
4892
|
+
return true;
|
|
4893
|
+
}
|
|
4894
|
+
}
|
|
4895
|
+
}
|
|
4896
|
+
if (activityList.length === 0 && radomList.length === 0) {
|
|
4897
|
+
return t.state.isEnd;
|
|
4898
|
+
}
|
|
4899
|
+
return false;
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4877
4902
|
//提交发送流程
|
|
4878
4903
|
|
|
4879
4904
|
}, {
|
|
@@ -5017,8 +5042,8 @@ var PageHome = function (_React$Component) {
|
|
|
5017
5042
|
//是不是起始节点 或再次发起
|
|
5018
5043
|
type = 4;
|
|
5019
5044
|
}
|
|
5020
|
-
if (t.
|
|
5021
|
-
|
|
5045
|
+
if (t.getSelectedIsEnd()) {
|
|
5046
|
+
//是不是结束节点(以实际选中节点为准)
|
|
5022
5047
|
type = 1;
|
|
5023
5048
|
}
|
|
5024
5049
|
var dataId = t.state.dataId;
|
|
@@ -7312,7 +7337,8 @@ var PageHome = function (_React$Component) {
|
|
|
7312
7337
|
|
|
7313
7338
|
this.setState({
|
|
7314
7339
|
nextActivityList: nextActivityList,
|
|
7315
|
-
nextRadomList: nextRadomListMain
|
|
7340
|
+
nextRadomList: nextRadomListMain,
|
|
7341
|
+
isEnd: this.getSelectedIsEnd(nextActivityList, nextRadomListMain)
|
|
7316
7342
|
//nextSelectType:type
|
|
7317
7343
|
});
|
|
7318
7344
|
} else {
|
|
@@ -7337,7 +7363,8 @@ var PageHome = function (_React$Component) {
|
|
|
7337
7363
|
}
|
|
7338
7364
|
this.setState({
|
|
7339
7365
|
nextActivityList: nextActivity,
|
|
7340
|
-
nextRadomList: nextRadomListMain
|
|
7366
|
+
nextRadomList: nextRadomListMain,
|
|
7367
|
+
isEnd: this.getSelectedIsEnd(nextActivity, nextRadomListMain)
|
|
7341
7368
|
//nextSelectType:type
|
|
7342
7369
|
});
|
|
7343
7370
|
}
|
|
@@ -7345,7 +7372,8 @@ var PageHome = function (_React$Component) {
|
|
|
7345
7372
|
if (type == 'next') {
|
|
7346
7373
|
//选的是后继节点
|
|
7347
7374
|
this.setState({
|
|
7348
|
-
nextActivityList: nextActivityList
|
|
7375
|
+
nextActivityList: nextActivityList,
|
|
7376
|
+
isEnd: this.getSelectedIsEnd(nextActivityList, this.state.nextRadomList)
|
|
7349
7377
|
//nextSelectType:type
|
|
7350
7378
|
});
|
|
7351
7379
|
} else {
|
|
@@ -7353,7 +7381,8 @@ var PageHome = function (_React$Component) {
|
|
|
7353
7381
|
var nextRadomListMain = this.state.nextRadomList;
|
|
7354
7382
|
nextRadomListMain[n].subRandomList = nextActivityList;
|
|
7355
7383
|
this.setState({
|
|
7356
|
-
nextRadomList: nextRadomListMain
|
|
7384
|
+
nextRadomList: nextRadomListMain,
|
|
7385
|
+
isEnd: this.getSelectedIsEnd(this.state.nextActivityList, nextRadomListMain)
|
|
7357
7386
|
//nextSelectType:type
|
|
7358
7387
|
});
|
|
7359
7388
|
}
|