easy3wui 1.5.30 → 1.5.31
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 +25 -23
- package/package.json +1 -1
package/lib/Easy3wFlow/index.js
CHANGED
|
@@ -119,10 +119,10 @@ var Easy3wFlow = function (_Component) {
|
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
var renderMidTemp = flowData.map(function (flow) {
|
|
122
|
-
var item = flow.children.find(function (
|
|
123
|
-
return
|
|
122
|
+
var item = flow.children.find(function (obj) {
|
|
123
|
+
return obj.status !== '40';
|
|
124
124
|
});
|
|
125
|
-
item = item
|
|
125
|
+
item = item || flow.children[0];
|
|
126
126
|
var firstItem = item || flow;
|
|
127
127
|
// const firstItem = flow.children[0] || flow;
|
|
128
128
|
var firstItemCode = firstItem.code;
|
|
@@ -133,31 +133,33 @@ var Easy3wFlow = function (_Component) {
|
|
|
133
133
|
var nodeAuthFlag = firstItem.nodeAuthFlag,
|
|
134
134
|
status = firstItem.status;
|
|
135
135
|
|
|
136
|
-
if (status === '10' || status === '30') {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (status === '20') {
|
|
140
|
-
if (firstItem.readPage) {
|
|
141
|
-
mainPage = readPage;
|
|
136
|
+
if (flow.status === '10' || flow.status === '20' || flow.status === '30') {
|
|
137
|
+
if (status === '10' || status === '30') {
|
|
138
|
+
mainPage = handlePage;
|
|
142
139
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
// flag 等于 0 时
|
|
148
|
-
// 10 待处理-跳转到一个统一的页面
|
|
149
|
-
// 20 和 30 已完成- 跳转到readPage
|
|
150
|
-
// 40 未开始,只显示节点
|
|
151
|
-
if (nodeAuthFlag === '0') {
|
|
152
|
-
if (status === '10') {
|
|
153
|
-
mainPage = handlIngPage;
|
|
154
|
-
}
|
|
155
|
-
if (status === '20' || status === '30') {
|
|
156
|
-
mainPage = readPage;
|
|
140
|
+
if (status === '20') {
|
|
141
|
+
if (firstItem.readPage) {
|
|
142
|
+
mainPage = readPage;
|
|
143
|
+
}
|
|
157
144
|
}
|
|
158
145
|
if (status === '40') {
|
|
159
146
|
mainPage = null;
|
|
160
147
|
}
|
|
148
|
+
// flag 等于 0 时
|
|
149
|
+
// 10 待处理-跳转到一个统一的页面
|
|
150
|
+
// 20 和 30 已完成- 跳转到readPage
|
|
151
|
+
// 40 未开始,只显示节点
|
|
152
|
+
if (nodeAuthFlag === '0') {
|
|
153
|
+
if (status === '10') {
|
|
154
|
+
mainPage = handlIngPage;
|
|
155
|
+
}
|
|
156
|
+
if (status === '20' || status === '30') {
|
|
157
|
+
mainPage = readPage;
|
|
158
|
+
}
|
|
159
|
+
if (status === '40') {
|
|
160
|
+
mainPage = null;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
161
163
|
}
|
|
162
164
|
var processIng = _react2['default'].createElement(_badge2['default'], { status: 'processing' });
|
|
163
165
|
// const mainPage = ((firstItem.status === '10' || firstItem.status === '30') ?
|