easy3wui 1.4.212 → 1.4.216
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 +6 -6
- package/lib/Easy3wFormPage/index.js +22 -12
- package/package.json +1 -1
package/lib/Easy3wFlow/index.js
CHANGED
|
@@ -169,10 +169,10 @@ var Easy3wFlow = function (_Component) {
|
|
|
169
169
|
});
|
|
170
170
|
|
|
171
171
|
var renderMidTemp = flowData.map(function (flow) {
|
|
172
|
-
var item = flow.children.find(function (item, index, array) {
|
|
172
|
+
var item = flow.children && flow.children.find(function (item, index, array) {
|
|
173
173
|
return item.status !== '40';
|
|
174
174
|
});
|
|
175
|
-
item = item || flow.children[0];
|
|
175
|
+
item = item || (flow.children ? flow.children[0] : '');
|
|
176
176
|
var firstItem = item || flow;
|
|
177
177
|
// const firstItem = flow.children[0] || flow;
|
|
178
178
|
var firstItemCode = firstItem.code;
|
|
@@ -394,7 +394,7 @@ var Easy3wFlow = function (_Component) {
|
|
|
394
394
|
flowData.forEach(function (item) {
|
|
395
395
|
if (flowCurCode.startsWith(item.code)) {
|
|
396
396
|
flowIndex = i;
|
|
397
|
-
subFlow = item.children;
|
|
397
|
+
subFlow = item.children || [];
|
|
398
398
|
}
|
|
399
399
|
i += 1;
|
|
400
400
|
});
|
|
@@ -402,14 +402,14 @@ var Easy3wFlow = function (_Component) {
|
|
|
402
402
|
flowData.forEach(function (item) {
|
|
403
403
|
if (item.children && item.status === '10') {
|
|
404
404
|
flowIndex = i;
|
|
405
|
-
subFlow = item.children;
|
|
405
|
+
subFlow = item.children || [];
|
|
406
406
|
}
|
|
407
407
|
i += 1;
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
subFlowLength = subFlow.length;
|
|
411
411
|
|
|
412
|
-
var renderBottomTemp = subFlow.map(function (subItem) {
|
|
412
|
+
var renderBottomTemp = subFlow && subFlow.map(function (subItem) {
|
|
413
413
|
var handlePage = subItem.handlePage + '?businessId=' + businessId + '&processCode=' + processCode + '&roleCode=' + roleCode + '&flowCurCode=' + subItem.code + '&flowCurMainCode=' + (subItem.mainCode || '1') + '&noReGetFlowFlag=1';
|
|
414
414
|
var readPage = subItem.readPage + '?businessId=' + businessId + '&processCode=' + processCode + '&roleCode=' + roleCode + '&flowCurCode=' + subItem.code + '&flowCurMainCode=' + (subItem.mainCode || '1') + '&noReGetFlowFlag=1';
|
|
415
415
|
var handlIngPage = '/inside/SYS/FLOW/route/EFAC0000?businessId=' + businessId + '&processCode=' + processCode + '&roleCode=' + roleCode + '&flowCurCode=' + subItem.code + '&flowCurMainCode=' + (subItem.mainCode || '1') + '&noReGetFlowFlag=1';
|
|
@@ -687,7 +687,7 @@ var Easy3wFlow = function (_Component) {
|
|
|
687
687
|
renderMid,
|
|
688
688
|
' '
|
|
689
689
|
),
|
|
690
|
-
renderBottom
|
|
690
|
+
subFlowLength > 0 ? renderBottom : ''
|
|
691
691
|
);
|
|
692
692
|
return renderFlow;
|
|
693
693
|
}, _this.dealURLClick = function (url, flowNode, flowType) {
|
|
@@ -1358,6 +1358,7 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1358
1358
|
var disabled = false;
|
|
1359
1359
|
var strValue = []; // 只读多选字符串
|
|
1360
1360
|
var findObj = ''; // 只读单选字符串
|
|
1361
|
+
var afterBtns = _this.getAfterBtn(item);
|
|
1361
1362
|
selectOpts = optionLst && optionLst.map(function (opt) {
|
|
1362
1363
|
return _react2['default'].createElement(
|
|
1363
1364
|
Option,
|
|
@@ -1405,18 +1406,27 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1405
1406
|
style: formItemStyle,
|
|
1406
1407
|
className: (0, _classnames2['default'])(['formContent'])
|
|
1407
1408
|
}),
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1409
|
+
_react2['default'].createElement(
|
|
1410
|
+
'div',
|
|
1411
|
+
{ style: { position: 'relative' } },
|
|
1412
|
+
getFieldDecorator(fieldId, {
|
|
1413
|
+
initialValue: value,
|
|
1414
|
+
rules: [{ required: required, message: '\u8BF7\u9009\u62E9' + label }]
|
|
1415
|
+
})(_react2['default'].createElement(
|
|
1416
|
+
_select2['default'],
|
|
1417
|
+
(0, _extends3['default'])({
|
|
1418
|
+
style: { width: '100%' }
|
|
1419
|
+
}, cmptProsNew, {
|
|
1420
|
+
size: 'small'
|
|
1421
|
+
}),
|
|
1422
|
+
selectOpts
|
|
1423
|
+
)),
|
|
1424
|
+
_react2['default'].createElement(
|
|
1425
|
+
'div',
|
|
1426
|
+
{ style: { position: 'absolute', left: '100%', zIndex: 2, top: '0px' } },
|
|
1427
|
+
afterBtns
|
|
1428
|
+
)
|
|
1429
|
+
)
|
|
1420
1430
|
);
|
|
1421
1431
|
}
|
|
1422
1432
|
}, _this.getRadioColItem = function (item, formItemLayout) {
|