easy3wui 1.4.211 → 1.4.212
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/lib/Easy3wFlow/index.js +9 -6
- package/package.json +1 -1
package/lib/Easy3wFlow/index.js
CHANGED
|
@@ -129,12 +129,15 @@ var Easy3wFlow = function (_Component) {
|
|
|
129
129
|
flowCurMainCode = _this$props.flowCurMainCode;
|
|
130
130
|
// 初始化选中节点
|
|
131
131
|
|
|
132
|
-
var initMainCode =
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
var initMainCode = '';
|
|
133
|
+
if (flowLength > 0) {
|
|
134
|
+
initMainCode = flowCurMainCode || flowData[0].code;
|
|
135
|
+
var findObj = flowData.find(function (item) {
|
|
136
|
+
return item.status === '10';
|
|
137
|
+
});
|
|
138
|
+
if (findObj) {
|
|
139
|
+
initMainCode = flowCurMainCode || findObj.code;
|
|
140
|
+
}
|
|
138
141
|
}
|
|
139
142
|
var renderTopTemp = flowData.map(function (flow, index) {
|
|
140
143
|
var styleflowcircle = (0, _classnames2['default'])(['flowcircle', 'haiergrey']);
|