fmui-base 2.0.2 → 2.0.3
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/form/form.js +3 -3
- package/lib/process_info/processInfo.js +182 -63
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/form/form.js
CHANGED
|
@@ -2723,7 +2723,7 @@ var PageHome = function (_React$Component) {
|
|
|
2723
2723
|
required: t.state.itemParam.required,
|
|
2724
2724
|
label: t.state.itemParam.title,
|
|
2725
2725
|
readOnly: t.state.itemParam.readOnly,
|
|
2726
|
-
minRows:
|
|
2726
|
+
minRows: 1,
|
|
2727
2727
|
placeholder: t.state.itemParam.readOnly ? '' : t.state.itemParam.placeholder,
|
|
2728
2728
|
value: t.state.itemParam.value,
|
|
2729
2729
|
onChange: function onChange(value) {
|
|
@@ -2747,7 +2747,7 @@ var PageHome = function (_React$Component) {
|
|
|
2747
2747
|
required: t.state.itemParam.required,
|
|
2748
2748
|
label: t.state.itemParam.title,
|
|
2749
2749
|
readOnly: t.state.itemParam.readOnly,
|
|
2750
|
-
minRows:
|
|
2750
|
+
minRows: 1,
|
|
2751
2751
|
placeholder: t.state.itemParam.readOnly ? '' : t.state.itemParam.placeholder,
|
|
2752
2752
|
value: t.state.itemParam.value,
|
|
2753
2753
|
onChange: function onChange(value) {
|
|
@@ -3076,7 +3076,7 @@ var PageHome = function (_React$Component) {
|
|
|
3076
3076
|
{ id: t.state.prefixName + "_" + t.state.itemParam.key },
|
|
3077
3077
|
_react2.default.createElement(_TextareaField2.default, {
|
|
3078
3078
|
readOnly: false,
|
|
3079
|
-
minRows:
|
|
3079
|
+
minRows: 1, maxRows: 5,
|
|
3080
3080
|
placeholder: '请输入批示意见',
|
|
3081
3081
|
value: t.state.spyj,
|
|
3082
3082
|
onChange: this.changeSpyj3.bind(this) })
|
|
@@ -1286,7 +1286,7 @@ var PageHome = function (_React$Component) {
|
|
|
1286
1286
|
formRelaField: formRelaField,
|
|
1287
1287
|
dealReminderContent: dealReminderContent
|
|
1288
1288
|
});
|
|
1289
|
-
t.dealWithButtons(content);
|
|
1289
|
+
t.dealWithButtons(content, formKey);
|
|
1290
1290
|
}, function (error) {
|
|
1291
1291
|
setTimeout(function () {
|
|
1292
1292
|
_Toast2.default.show({
|
|
@@ -1313,19 +1313,54 @@ var PageHome = function (_React$Component) {
|
|
|
1313
1313
|
|
|
1314
1314
|
}, {
|
|
1315
1315
|
key: 'dealWithButtons',
|
|
1316
|
-
value: function dealWithButtons(content) {
|
|
1316
|
+
value: function dealWithButtons(content, formKey) {
|
|
1317
1317
|
var t = this;
|
|
1318
|
+
var module = t.state.module;
|
|
1318
1319
|
//处理特有按钮事件
|
|
1319
1320
|
|
|
1321
|
+
if (t.state.listType == "0") {
|
|
1322
|
+
//待办默认提交和保存按钮
|
|
1323
|
+
var buttons = content.buttons;
|
|
1324
|
+
|
|
1325
|
+
if (buttons) {
|
|
1326
|
+
var lastChar = buttons.substring(buttons.length - 1, buttons.length);
|
|
1327
|
+
if (lastChar != ",") {
|
|
1328
|
+
buttons += ",";
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
if (buttons.indexOf('PAGE_SAVE,') == -1) {
|
|
1332
|
+
buttons += "PAGE_SAVE,";
|
|
1333
|
+
}
|
|
1334
|
+
if (buttons.indexOf('BASE_SUMBIT,') == -1) {
|
|
1335
|
+
buttons += "BASE_SUMBIT,";
|
|
1336
|
+
}
|
|
1337
|
+
content.buttons = buttons;
|
|
1338
|
+
}
|
|
1320
1339
|
if (typeof FlowCommon.dealwithCommonButton === "function") {
|
|
1321
|
-
FlowCommon.dealwithCommonButton(
|
|
1322
|
-
|
|
1340
|
+
FlowCommon.dealwithCommonButton(t.state, function (extensionButtonList, contentNew) {
|
|
1341
|
+
//项目开发扩展
|
|
1342
|
+
if (!contentNew) {
|
|
1343
|
+
contentNew = content;
|
|
1344
|
+
}
|
|
1345
|
+
var mobileExt;
|
|
1346
|
+
try {
|
|
1347
|
+
if (formKey) {
|
|
1348
|
+
mobileExt = typeof eval(module + "_" + formKey + "_mobileExt") !== 'undefined' ? eval(module + "_" + formKey + "_mobileExt") : null;
|
|
1349
|
+
}
|
|
1350
|
+
} catch (e) {}
|
|
1351
|
+
if (typeof mobileExt !== 'undefined' && typeof mobileExt["dealwithCommonButtonExt"] === "function") {
|
|
1352
|
+
mobileExt["dealwithCommonButtonExt"](t.state, contentNew, extensionButtonList, function (contentNewExt, extensionButtonListExt) {
|
|
1353
|
+
t.dealwithButtonsFunc(contentNewExt, extensionButtonListExt);
|
|
1354
|
+
});
|
|
1355
|
+
} else {
|
|
1356
|
+
t.dealwithButtonsFunc(contentNew, extensionButtonList);
|
|
1357
|
+
}
|
|
1323
1358
|
}, function (error) {
|
|
1324
1359
|
_Toast2.default.show({
|
|
1325
1360
|
type: 'error',
|
|
1326
1361
|
content: error
|
|
1327
1362
|
});
|
|
1328
|
-
});
|
|
1363
|
+
}, content);
|
|
1329
1364
|
} else {
|
|
1330
1365
|
t.dealwithButtonsFunc(content, []);
|
|
1331
1366
|
}
|
|
@@ -1356,39 +1391,27 @@ var PageHome = function (_React$Component) {
|
|
|
1356
1391
|
var listType = this.state.listType;
|
|
1357
1392
|
if (listType == "0") {
|
|
1358
1393
|
//待办
|
|
1359
|
-
for
|
|
1360
|
-
|
|
1361
|
-
}
|
|
1394
|
+
// for(var d=0; d<extensionButtonList.length;d++){
|
|
1395
|
+
// buttonArray.push(extensionButtonList[d].no);
|
|
1396
|
+
// }
|
|
1362
1397
|
for (var b = 0; b < buttonArray.length; b++) {
|
|
1363
1398
|
var buttonCode = buttonArray[b];
|
|
1364
1399
|
//PAGE_SAVE保存按钮只有当新建时才有,HELP_ADDLOTS加签只有在会签和串签才有,RADOM_FINISH随机流程完成按钮去掉
|
|
1365
|
-
if (buttonCode == 'FLOW_REVOKE' || buttonCode == 'RADOM_FINISH' || buttonCode == 'FLOW_CANCEL' || buttonCode == 'FLOW_RECOVER' || buttonCode == 'PAGE_PRINT' || buttonCode == 'PAGE_URGE' || buttonCode == 'PAGE_REDSET' || buttonCode == 'PAGE_FEEDBACK' || buttonCode == 'RECORD' || buttonCode == 'HELP_ADDLOTS' && (participantMode == '0' || participantMode == '3')) {
|
|
1400
|
+
if (buttonCode == 'OTHER_RELATION' || buttonCode == 'HELP_CIRCULATE' || buttonCode == 'BASE_INVALID' || buttonCode == 'FLOW_REVOKE' || buttonCode == 'RADOM_FINISH' || buttonCode == 'FLOW_CANCEL' || buttonCode == 'FLOW_RECOVER' || buttonCode == 'PAGE_PRINT' || buttonCode == 'PAGE_URGE' || buttonCode == 'PAGE_REDSET' || buttonCode == 'PAGE_FEEDBACK' || buttonCode == 'RECORD' || buttonCode == 'HELP_ADDLOTS' && (participantMode == '0' || participantMode == '3')) {
|
|
1366
1401
|
continue;
|
|
1367
1402
|
} else {
|
|
1368
1403
|
if (dataId == '' || isStart == true && permissionCode == 'start' || isDraft == '1') {
|
|
1369
|
-
if
|
|
1370
|
-
|
|
1371
|
-
}
|
|
1372
|
-
if (buttonCode.indexOf('PAGE_SAVE') == -1) {
|
|
1373
|
-
buttonArrayNew.push('PAGE_SAVE');
|
|
1374
|
-
}
|
|
1375
|
-
if (buttonCode.indexOf('BASE_SUMBIT') == -1) {
|
|
1376
|
-
buttonArrayNew.push('BASE_SUMBIT');
|
|
1377
|
-
}
|
|
1404
|
+
// if(buttonCode == 'PAGE_SAVE' || buttonCode == 'BASE_SUMBIT'){
|
|
1405
|
+
buttonArrayNew.push(buttonCode);
|
|
1406
|
+
// }
|
|
1378
1407
|
} else {
|
|
1379
|
-
if (buttonCode.indexOf('PAGE_SAVE') == -1) {
|
|
1380
|
-
buttonArrayNew.push('PAGE_SAVE');
|
|
1381
|
-
}
|
|
1382
|
-
if (buttonCode.indexOf('BASE_SUMBIT') == -1) {
|
|
1383
|
-
buttonArrayNew.push('BASE_SUMBIT');
|
|
1384
|
-
}
|
|
1385
1408
|
if (buttonCode != '') {
|
|
1386
1409
|
buttonArrayNew.push(buttonCode);
|
|
1387
1410
|
}
|
|
1388
1411
|
}
|
|
1389
1412
|
}
|
|
1390
1413
|
}
|
|
1391
|
-
this.getListButtonsByCodes(buttonArrayNew.join(','), dataId, isStart);
|
|
1414
|
+
this.getListButtonsByCodes(buttonArrayNew.join(','), dataId, isStart, extensionButtonList);
|
|
1392
1415
|
} else if (listType == "2") {
|
|
1393
1416
|
//已办
|
|
1394
1417
|
|
|
@@ -1396,21 +1419,21 @@ var PageHome = function (_React$Component) {
|
|
|
1396
1419
|
if (buttons.indexOf('FLOW_REVOKE') >= 0) {
|
|
1397
1420
|
if (this.state.processIsComplete == "0") {
|
|
1398
1421
|
//当流程未结束时
|
|
1399
|
-
buttonList.push({ name: t.state.finalButtons.get("FLOW_REVOKE"), type: 'secondary', display: '
|
|
1422
|
+
buttonList.push({ name: t.state.finalButtons.get("FLOW_REVOKE"), type: 'secondary', display: 'inline', no: 7 });
|
|
1400
1423
|
}
|
|
1401
1424
|
}
|
|
1402
1425
|
if (buttons.indexOf('FLOW_RECOVER') >= 0) {
|
|
1403
1426
|
if (this.state.processIsComplete == "0") {
|
|
1404
1427
|
//当流程未结束时
|
|
1405
|
-
buttonList.push({ name: t.state.finalButtons.get("FLOW_RECOVER"), type: 'secondary', display: '
|
|
1428
|
+
buttonList.push({ name: t.state.finalButtons.get("FLOW_RECOVER"), type: 'secondary', display: 'inline', no: 14 });
|
|
1406
1429
|
}
|
|
1407
1430
|
}
|
|
1408
1431
|
if (t.state.urgeDataList != null && t.state.urgeDataList.length > 0) {
|
|
1409
|
-
buttonList.push({ name: t.state.finalButtons.get("PAGE_URGE"), type: 'secondary', display: '
|
|
1432
|
+
buttonList.push({ name: t.state.finalButtons.get("PAGE_URGE"), type: 'secondary', display: 'inline', no: 12 });
|
|
1410
1433
|
}
|
|
1411
1434
|
}
|
|
1412
1435
|
if (buttons.indexOf('HELP_CIRCULATE') >= 0) {
|
|
1413
|
-
buttonList.push({ name: t.state.finalButtons.get("HELP_CIRCULATE"), type: 'secondary', display: '
|
|
1436
|
+
buttonList.push({ name: t.state.finalButtons.get("HELP_CIRCULATE"), type: 'secondary', display: 'inline', no: 4 });
|
|
1414
1437
|
}
|
|
1415
1438
|
for (var d = 0; d < extensionButtonList.length; d++) {
|
|
1416
1439
|
buttonList.push(extensionButtonList[d]);
|
|
@@ -1421,22 +1444,22 @@ var PageHome = function (_React$Component) {
|
|
|
1421
1444
|
//当流程未结束时,
|
|
1422
1445
|
if (buttons.indexOf('FLOW_CANCEL') >= 0) {
|
|
1423
1446
|
//取消按钮
|
|
1424
|
-
buttonList.push({ name: t.state.finalButtons.get("FLOW_CANCEL"), type: 'secondary', display: '
|
|
1447
|
+
buttonList.push({ name: t.state.finalButtons.get("FLOW_CANCEL"), type: 'secondary', display: 'inline', no: 11 });
|
|
1425
1448
|
}
|
|
1426
1449
|
if (startButtons) {
|
|
1427
1450
|
if (startButtons.indexOf('FLOW_REVOKE') >= 0) {
|
|
1428
1451
|
//发起人撤销按钮
|
|
1429
|
-
buttonList.push({ name: t.state.finalButtons.get("FLOW_REVOKE"), type: 'secondary', display: '
|
|
1452
|
+
buttonList.push({ name: t.state.finalButtons.get("FLOW_REVOKE"), type: 'secondary', display: 'inline', no: 7 });
|
|
1430
1453
|
}
|
|
1431
1454
|
}
|
|
1432
1455
|
if (t.state.urgeDataList != null && t.state.urgeDataList.length > 0) {
|
|
1433
|
-
buttonList.push({ name: t.state.finalButtons.get("PAGE_URGE"), type: 'secondary', display: '
|
|
1456
|
+
buttonList.push({ name: t.state.finalButtons.get("PAGE_URGE"), type: 'secondary', display: 'inline', no: 12 });
|
|
1434
1457
|
}
|
|
1435
1458
|
}
|
|
1436
1459
|
if (startButtons) {
|
|
1437
1460
|
if (startButtons.indexOf('HELP_CIRCULATE') >= 0) {
|
|
1438
1461
|
//传阅
|
|
1439
|
-
buttonList.push({ name: t.state.finalButtons.get("HELP_CIRCULATE"), type: 'secondary', display: '
|
|
1462
|
+
buttonList.push({ name: t.state.finalButtons.get("HELP_CIRCULATE"), type: 'secondary', display: 'inline', no: 4 });
|
|
1440
1463
|
}
|
|
1441
1464
|
}
|
|
1442
1465
|
for (var d = 0; d < extensionButtonList.length; d++) {
|
|
@@ -1458,9 +1481,9 @@ var PageHome = function (_React$Component) {
|
|
|
1458
1481
|
for (var c = 0; c < buttonArrayNew.length; c++) {
|
|
1459
1482
|
var buttonCode = buttonArrayNew[c];
|
|
1460
1483
|
if (buttonCode == 'BASE_SUMBIT') {
|
|
1461
|
-
buttonList.push({ name: t.state.finalButtons.get("BASE_SUMBIT"), type: 'primary', display: '
|
|
1484
|
+
buttonList.push({ name: t.state.finalButtons.get("BASE_SUMBIT"), type: 'primary', display: 'inline', no: 1 });
|
|
1462
1485
|
} else if (buttonCode == 'PAGE_SAVE') {
|
|
1463
|
-
buttonList.push({ name: t.state.finalButtons.get("PAGE_SAVE"), type: 'secondary', display: '
|
|
1486
|
+
buttonList.push({ name: t.state.finalButtons.get("PAGE_SAVE"), type: 'secondary', display: 'inline', no: 13 });
|
|
1464
1487
|
}
|
|
1465
1488
|
}
|
|
1466
1489
|
}
|
|
@@ -2682,17 +2705,58 @@ var PageHome = function (_React$Component) {
|
|
|
2682
2705
|
} else {
|
|
2683
2706
|
//其他按钮
|
|
2684
2707
|
if (typeof FlowCommon[operate] === "function") {
|
|
2685
|
-
FlowCommon[operate](
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2708
|
+
FlowCommon[operate](t.state, function (msg) {
|
|
2709
|
+
//项目开发扩展
|
|
2710
|
+
var mobileExt;
|
|
2711
|
+
try {
|
|
2712
|
+
if (t.state.formKey) {
|
|
2713
|
+
mobileExt = typeof eval(t.state.module + "_" + t.state.formKey + "_mobileExt") !== 'undefined' ? eval(t.state.module + "_" + t.state.formKey + "_mobileExt") : null;
|
|
2714
|
+
}
|
|
2715
|
+
} catch (e) {
|
|
2716
|
+
// alert("exception: "+e.message);
|
|
2717
|
+
}
|
|
2718
|
+
if (typeof mobileExt !== 'undefined' && typeof mobileExt[operate] === "function") {
|
|
2719
|
+
mobileExt[operate](t.state, function (msg) {
|
|
2720
|
+
_Toast2.default.show({
|
|
2721
|
+
type: 'success',
|
|
2722
|
+
content: msg
|
|
2723
|
+
});
|
|
2724
|
+
}, function (msg) {
|
|
2725
|
+
_Toast2.default.show({
|
|
2726
|
+
type: 'error',
|
|
2727
|
+
content: msg
|
|
2728
|
+
});
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2690
2731
|
}, function (msg) {
|
|
2691
2732
|
_Toast2.default.show({
|
|
2692
2733
|
type: 'error',
|
|
2693
2734
|
content: msg
|
|
2694
2735
|
});
|
|
2695
2736
|
});
|
|
2737
|
+
} else {
|
|
2738
|
+
//项目开发扩展
|
|
2739
|
+
var mobileExt;
|
|
2740
|
+
try {
|
|
2741
|
+
if (t.state.formKey) {
|
|
2742
|
+
mobileExt = typeof eval(t.state.module + "_" + t.state.formKey + "_mobileExt") !== 'undefined' ? eval(t.state.module + "_" + t.state.formKey + "_mobileExt") : null;
|
|
2743
|
+
}
|
|
2744
|
+
} catch (e) {
|
|
2745
|
+
// alert("exception: "+e.message);
|
|
2746
|
+
}
|
|
2747
|
+
if (typeof mobileExt !== 'undefined' && typeof mobileExt[operate] === "function") {
|
|
2748
|
+
mobileExt[operate](t.state, function (msg) {
|
|
2749
|
+
_Toast2.default.show({
|
|
2750
|
+
type: 'success',
|
|
2751
|
+
content: msg
|
|
2752
|
+
});
|
|
2753
|
+
}, function (msg) {
|
|
2754
|
+
_Toast2.default.show({
|
|
2755
|
+
type: 'error',
|
|
2756
|
+
content: msg
|
|
2757
|
+
});
|
|
2758
|
+
});
|
|
2759
|
+
}
|
|
2696
2760
|
}
|
|
2697
2761
|
}
|
|
2698
2762
|
}
|
|
@@ -5316,11 +5380,11 @@ var PageHome = function (_React$Component) {
|
|
|
5316
5380
|
}
|
|
5317
5381
|
}, {
|
|
5318
5382
|
key: 'getListButtonsByCodes',
|
|
5319
|
-
value: function getListButtonsByCodes(buttonCodes, dataId, isStart) {
|
|
5383
|
+
value: function getListButtonsByCodes(buttonCodes, dataId, isStart, extensionButtonList) {
|
|
5320
5384
|
var _this2 = this;
|
|
5321
5385
|
|
|
5322
|
-
buttonCodes
|
|
5323
|
-
buttonCodes
|
|
5386
|
+
// buttonCodes=buttonCodes.replace('OTHER_RELATION','');
|
|
5387
|
+
// buttonCodes=buttonCodes.replace('MAILSEND','');
|
|
5324
5388
|
if (buttonCodes == null || buttonCodes == '') {
|
|
5325
5389
|
var sysWatermark = this.state.sysWatermark;
|
|
5326
5390
|
if (null != sysWatermark && sysWatermark != '') {
|
|
@@ -5331,11 +5395,11 @@ var PageHome = function (_React$Component) {
|
|
|
5331
5395
|
}
|
|
5332
5396
|
} else {
|
|
5333
5397
|
_db2.default.FlowModuleAPI.getListButtonsByCodes({
|
|
5334
|
-
buttonCodes: buttonCodes
|
|
5398
|
+
buttonCodes: buttonCodes
|
|
5335
5399
|
}).then(function (content) {
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
});
|
|
5400
|
+
// this.setState({
|
|
5401
|
+
|
|
5402
|
+
// });
|
|
5339
5403
|
var buttonCodeList = content;
|
|
5340
5404
|
var actionSheetButtonOpt = [];
|
|
5341
5405
|
var actionSheetButtonOptName = [];
|
|
@@ -5344,42 +5408,45 @@ var PageHome = function (_React$Component) {
|
|
|
5344
5408
|
var sysWatermark = _this2.state.sysWatermark;
|
|
5345
5409
|
/* buttonCodeList.push({'buttonCode':'BASE_SUMBIT','buttonName':'通过'});
|
|
5346
5410
|
buttonCodeList.push({'buttonCode':'PAGE_SAVE','buttonName':'保存'});*/
|
|
5347
|
-
|
|
5411
|
+
buttonCodeList = buttonCodeList.concat();
|
|
5412
|
+
var alllength = buttonCodeList.length + extensionButtonList.length;
|
|
5413
|
+
if (alllength > 4) {
|
|
5348
5414
|
buttonList.push({ name: '更多', type: 'text', display: 'inline', no: -1 });
|
|
5415
|
+
var buttonCodeListNew = [];
|
|
5349
5416
|
for (var c = 0; c < buttonCodeList.length; c++) {
|
|
5350
5417
|
var buttonCode = buttonCodeList[c]['buttonCode'];
|
|
5351
5418
|
var buttonName = buttonCodeList[c]['buttonName'];
|
|
5352
5419
|
if (c < 3) {
|
|
5353
5420
|
if (buttonCode == 'BACK') {
|
|
5354
|
-
|
|
5421
|
+
buttonCodeListNew.push({ name: buttonName, type: 'danger', display: 'inline', no: 2 });
|
|
5355
5422
|
} else if (buttonCode == 'PAGE_SAVE') {
|
|
5356
|
-
|
|
5423
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 13 });
|
|
5357
5424
|
} else if (buttonCode == 'BASE_SUMBIT') {
|
|
5358
5425
|
var sumbmitName = buttonName;
|
|
5359
5426
|
if (dataId == '' || isStart == true) {
|
|
5360
5427
|
sumbmitName = '提交';
|
|
5361
5428
|
}
|
|
5362
|
-
|
|
5429
|
+
buttonCodeListNew.push({ name: sumbmitName, type: 'primary', display: 'inline', no: 1 });
|
|
5363
5430
|
} else if (buttonCode == 'BASE_TRANSFER') {
|
|
5364
|
-
|
|
5431
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 3 });
|
|
5365
5432
|
} else if (buttonCode == 'HELP_CIRCULATE') {
|
|
5366
|
-
|
|
5433
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 4 });
|
|
5367
5434
|
} else if (buttonCode == 'HELP_FORWARD') {
|
|
5368
|
-
|
|
5435
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 20 });
|
|
5369
5436
|
} else if (buttonCode == 'BASE_JUMP') {
|
|
5370
|
-
|
|
5437
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 5 });
|
|
5371
5438
|
} else if (buttonCode == 'HELP_ADDLOTS') {
|
|
5372
|
-
|
|
5439
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 6 });
|
|
5373
5440
|
} else if (buttonCode == 'BASE_END') {
|
|
5374
|
-
|
|
5441
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 8 });
|
|
5375
5442
|
} else if (buttonCode == 'BASE_INVALID') {
|
|
5376
|
-
|
|
5443
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 9 });
|
|
5377
5444
|
} else if (buttonCode == 'HELP_DISTRIBUTE') {
|
|
5378
|
-
|
|
5445
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 'distributeFlow' });
|
|
5379
5446
|
} else if (buttonCode == 'MAILSEND') {
|
|
5380
|
-
|
|
5447
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 18 });
|
|
5381
5448
|
} else {
|
|
5382
|
-
|
|
5449
|
+
buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: buttonCode });
|
|
5383
5450
|
}
|
|
5384
5451
|
} else if (c == 3) {
|
|
5385
5452
|
//buttonList.push({name:'更多',type:'secondary',display:'banner',no:-1});
|
|
@@ -5390,8 +5457,20 @@ var PageHome = function (_React$Component) {
|
|
|
5390
5457
|
actionSheetButtonOptName.push(buttonName);
|
|
5391
5458
|
}
|
|
5392
5459
|
}
|
|
5460
|
+
var nowNum = buttonCodeList.length;
|
|
5461
|
+
for (var d = 0; d < extensionButtonList.length; d++) {
|
|
5462
|
+
if (nowNum < 3) {
|
|
5463
|
+
buttonList.push(extensionButtonList[d]);
|
|
5464
|
+
} else {
|
|
5465
|
+
actionSheetButtonOpt.push(extensionButtonList[d].no);
|
|
5466
|
+
actionSheetButtonOptName.push(extensionButtonList[d].name);
|
|
5467
|
+
}
|
|
5468
|
+
nowNum++;
|
|
5469
|
+
}
|
|
5470
|
+
buttonList = buttonList.concat(buttonCodeListNew);
|
|
5393
5471
|
buttonIsMore = true;
|
|
5394
5472
|
} else {
|
|
5473
|
+
buttonList = buttonList.concat(extensionButtonList);
|
|
5395
5474
|
for (var c = 0; c < buttonCodeList.length; c++) {
|
|
5396
5475
|
var buttonCode = buttonCodeList[c]['buttonCode'];
|
|
5397
5476
|
var buttonName = buttonCodeList[c]['buttonName'];
|
|
@@ -5430,6 +5509,7 @@ var PageHome = function (_React$Component) {
|
|
|
5430
5509
|
}
|
|
5431
5510
|
}
|
|
5432
5511
|
_this2.setState({
|
|
5512
|
+
buttonCodeList: content,
|
|
5433
5513
|
buttonList: buttonList,
|
|
5434
5514
|
actionSheetButtonOpt: actionSheetButtonOpt,
|
|
5435
5515
|
actionSheetButtonOptName: actionSheetButtonOptName,
|
|
@@ -6459,6 +6539,45 @@ var PageHome = function (_React$Component) {
|
|
|
6459
6539
|
)
|
|
6460
6540
|
)
|
|
6461
6541
|
),
|
|
6542
|
+
_react2.default.createElement(
|
|
6543
|
+
_Tab2.default.Item,
|
|
6544
|
+
{ key: '1', title: '\u6D41\u7A0B\u56FE' },
|
|
6545
|
+
_react2.default.createElement(
|
|
6546
|
+
_Group2.default.List,
|
|
6547
|
+
null,
|
|
6548
|
+
_react2.default.createElement(
|
|
6549
|
+
'div',
|
|
6550
|
+
{ className: this.state.activeItemIndex == 1 ? 't-BCf' : 't-DN' },
|
|
6551
|
+
_react2.default.createElement(
|
|
6552
|
+
HBox,
|
|
6553
|
+
{ vAlign: 'center', className: 't-PL16 t-PR16 t-PT10 t-PB10 t-BCf t-FS14' },
|
|
6554
|
+
_react2.default.createElement(Box, { className: 't-BCyellow t-WH10 t-MR4' }),
|
|
6555
|
+
_react2.default.createElement(
|
|
6556
|
+
Box,
|
|
6557
|
+
null,
|
|
6558
|
+
'\u5BA1\u6279\u4E2D'
|
|
6559
|
+
),
|
|
6560
|
+
_react2.default.createElement(Box, { className: 't-BCd t-WH10 t-MR4 t-ML10' }),
|
|
6561
|
+
_react2.default.createElement(
|
|
6562
|
+
Box,
|
|
6563
|
+
null,
|
|
6564
|
+
'\u5DF2\u5BA1\u6279'
|
|
6565
|
+
),
|
|
6566
|
+
_react2.default.createElement(Box, { className: 't-BCddblue t-WH10 t-MR4 t-ML10' }),
|
|
6567
|
+
_react2.default.createElement(
|
|
6568
|
+
Box,
|
|
6569
|
+
null,
|
|
6570
|
+
'\u672A\u5BA1\u6279'
|
|
6571
|
+
)
|
|
6572
|
+
),
|
|
6573
|
+
_react2.default.createElement(
|
|
6574
|
+
'div',
|
|
6575
|
+
{ style: { textAlign: 'center', overflowX: 'scroll' } },
|
|
6576
|
+
_react2.default.createElement('img', { src: _variables2.default.URLS.getFlowImage + this.state.processInstanceId + '&random=' + this.state.keyNum })
|
|
6577
|
+
)
|
|
6578
|
+
)
|
|
6579
|
+
)
|
|
6580
|
+
),
|
|
6462
6581
|
_react2.default.createElement(
|
|
6463
6582
|
_Tab2.default.Item,
|
|
6464
6583
|
{ key: '2', title: '\u6D41\u7A0B\u8BB0\u5F55' },
|
|
@@ -6789,12 +6908,12 @@ var PageHome = function (_React$Component) {
|
|
|
6789
6908
|
null,
|
|
6790
6909
|
_react2.default.createElement(
|
|
6791
6910
|
_Button2.default,
|
|
6792
|
-
{ type: 'secondary', display: '
|
|
6911
|
+
{ type: 'secondary', display: 'inline', onClick: t.handleSubmit.bind(t, 4) },
|
|
6793
6912
|
this.state.finalButtons.get("HELP_CIRCULATE")
|
|
6794
6913
|
),
|
|
6795
6914
|
_react2.default.createElement(
|
|
6796
6915
|
_Button2.default,
|
|
6797
|
-
{ type: 'primary', display: '
|
|
6916
|
+
{ type: 'primary', display: 'inline', onClick: t.clickRead.bind(t) },
|
|
6798
6917
|
'\u5DF2\u9605'
|
|
6799
6918
|
)
|
|
6800
6919
|
)
|