fmui-base 2.0.1 → 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 CHANGED
@@ -3,6 +3,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.0.3: 增加流程图;表单按钮功能扩展
7
+ - 2.0.2: 时间字段增加“xxxx年xx月xx日”中文显示
6
8
  - 2.0.1: 流程表单选人组件联动开发
7
9
  - 2.0.0: 2.0正式版
8
10
  - 2.1.1-beta.1:流程列表样式修改
package/lib/form/form.js CHANGED
@@ -846,6 +846,7 @@ var PageHome = function (_React$Component) {
846
846
  }
847
847
  }
848
848
  var dateFormat = form.dateFormat;
849
+ var dateFormatShow = "";
849
850
  if (form.dataAttr && typeof form.dataAttr != "undefined") {
850
851
  var dateDisplayFormat = form.dataAttr.dateDisplayFormat;
851
852
  if (dateDisplayFormat == "STime" || dateFormat == "YMDHM") {
@@ -854,12 +855,13 @@ var PageHome = function (_React$Component) {
854
855
  dateFormat = "YM";
855
856
  } else if (dateDisplayFormat == "Year") {
856
857
  dateFormat = "Y";
858
+ } else if (dateDisplayFormat == "ODate") {
859
+ dateFormat = "YMD";
860
+ } else if (dateDisplayFormat == "zhDate") {
861
+ dateFormat = "YMD";
862
+ dateFormatShow = "zhDate";
857
863
  } else {
858
- if (dateDisplayFormat == "ODate") {
859
- dateFormat = "YMD";
860
- } else {
861
- dateFormat = "YMDHM";
862
- }
864
+ dateFormat = "YMDHM";
863
865
  }
864
866
  var minDate = form.dataAttr.minDate;
865
867
  var maxDate = form.dataAttr.maxDate;
@@ -890,7 +892,7 @@ var PageHome = function (_React$Component) {
890
892
  } else {
891
893
  value = null;
892
894
  }
893
- var dateFormt = itemParam.dateFormat;
895
+ // var dateFormt = itemParam.dateFormat;
894
896
 
895
897
  var dateStr = this.dateFormat(value, dateFormt);
896
898
  var mainTblData = data.mainTblData;
@@ -914,6 +916,11 @@ var PageHome = function (_React$Component) {
914
916
  }
915
917
  value = null;
916
918
  }
919
+
920
+ if (readOnly == true) {
921
+ var dateStr = this.dateFormat(value, dateFormat, dateFormatShow);
922
+ value = dateStr;
923
+ }
917
924
  } else if (itemType == 'datetimeStep') {
918
925
  //时间
919
926
  var dateFormat = form.dateFormat;
@@ -1420,6 +1427,14 @@ var PageHome = function (_React$Component) {
1420
1427
  return itemParam;
1421
1428
  }
1422
1429
 
1430
+ // 左边补零
1431
+
1432
+ }, {
1433
+ key: 'addZero',
1434
+ value: function addZero(num) {
1435
+ return '' + (num < 10 ? '0' : '') + num;
1436
+ }
1437
+
1423
1438
  //处理关联字段初始化
1424
1439
 
1425
1440
  }, {
@@ -2120,12 +2135,17 @@ var PageHome = function (_React$Component) {
2120
2135
 
2121
2136
  }, {
2122
2137
  key: 'dateFormat',
2123
- value: function dateFormat(date, formatStr) {
2138
+ value: function dateFormat(date, formatStr, dateFormatShow) {
2124
2139
  if (date) {
2125
2140
  date = new Date(date);
2126
2141
  var year = date.getFullYear();
2127
2142
  var month = this.dealwithDate(date.getMonth() + 1);
2128
2143
  var dates = this.dealwithDate(date.getDate());
2144
+ if (dateFormatShow) {
2145
+ if (dateFormatShow == "zhDate") {
2146
+ return year + '年' + month + '月' + dates + '日';
2147
+ }
2148
+ }
2129
2149
  if (formatStr == 'YMD') {
2130
2150
  //年月日
2131
2151
  return year + '-' + month + '-' + dates;
@@ -2703,7 +2723,7 @@ var PageHome = function (_React$Component) {
2703
2723
  required: t.state.itemParam.required,
2704
2724
  label: t.state.itemParam.title,
2705
2725
  readOnly: t.state.itemParam.readOnly,
2706
- minRows: 3,
2726
+ minRows: 1,
2707
2727
  placeholder: t.state.itemParam.readOnly ? '' : t.state.itemParam.placeholder,
2708
2728
  value: t.state.itemParam.value,
2709
2729
  onChange: function onChange(value) {
@@ -2727,7 +2747,7 @@ var PageHome = function (_React$Component) {
2727
2747
  required: t.state.itemParam.required,
2728
2748
  label: t.state.itemParam.title,
2729
2749
  readOnly: t.state.itemParam.readOnly,
2730
- minRows: 3,
2750
+ minRows: 1,
2731
2751
  placeholder: t.state.itemParam.readOnly ? '' : t.state.itemParam.placeholder,
2732
2752
  value: t.state.itemParam.value,
2733
2753
  onChange: function onChange(value) {
@@ -2819,7 +2839,15 @@ var PageHome = function (_React$Component) {
2819
2839
  _react2.default.createElement(
2820
2840
  'div',
2821
2841
  { id: t.state.prefixName + "_" + t.state.itemParam.key, className: 't-FBH' },
2822
- _react2.default.createElement(_DatetimeField2.default, {
2842
+ t.state.itemParam.readOnly ? _react2.default.createElement(_TextareaField2.default, {
2843
+ className: 't-W100',
2844
+ required: t.state.itemParam.required,
2845
+ label: t.state.itemParam.title,
2846
+ readOnly: t.state.itemParam.readOnly,
2847
+ minRows: 1,
2848
+ placeholder: t.state.itemParam.readOnly ? '' : t.state.itemParam.placeholder,
2849
+ value: t.state.itemParam.value
2850
+ }) : _react2.default.createElement(_DatetimeField2.default, {
2823
2851
  className: 't-W100',
2824
2852
  label: t.state.itemParam.title,
2825
2853
  required: t.state.itemParam.required,
@@ -3048,7 +3076,7 @@ var PageHome = function (_React$Component) {
3048
3076
  { id: t.state.prefixName + "_" + t.state.itemParam.key },
3049
3077
  _react2.default.createElement(_TextareaField2.default, {
3050
3078
  readOnly: false,
3051
- minRows: 3, maxRows: 5,
3079
+ minRows: 1, maxRows: 5,
3052
3080
  placeholder: '请输入批示意见',
3053
3081
  value: t.state.spyj,
3054
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(this.state, function (extensionButtonList) {
1322
- t.dealwithButtonsFunc(content, extensionButtonList);
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 (var d = 0; d < extensionButtonList.length; d++) {
1360
- buttonArray.push(extensionButtonList[d].name);
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 (buttonCode == 'PAGE_SAVE' || buttonCode == 'BASE_SUMBIT') {
1370
- buttonArrayNew.push(buttonCode);
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: 'banner', no: 7 });
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: 'banner', no: 14 });
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: 'banner', no: 12 });
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: 'banner', no: 4 });
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: 'banner', no: 11 });
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: 'banner', no: 7 });
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: 'banner', no: 12 });
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: 'banner', no: 4 });
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: 'banner', no: 1 });
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: 'banner', no: 13 });
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](this.state, function (msg) {
2686
- _Toast2.default.show({
2687
- type: 'success',
2688
- content: msg
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 = buttonCodes.replace('OTHER_RELATION', '');
5323
- buttonCodes = buttonCodes.replace('MAILSEND', '');
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 + ',MAILSEND'
5398
+ buttonCodes: buttonCodes
5335
5399
  }).then(function (content) {
5336
- _this2.setState({
5337
- buttonCodeList: content
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
- if (buttonCodeList.length > 4) {
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
- buttonList.push({ name: buttonName, type: 'danger', display: 'inline', no: 2 });
5421
+ buttonCodeListNew.push({ name: buttonName, type: 'danger', display: 'inline', no: 2 });
5355
5422
  } else if (buttonCode == 'PAGE_SAVE') {
5356
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 13 });
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
- buttonList.push({ name: sumbmitName, type: 'primary', display: 'inline', no: 1 });
5429
+ buttonCodeListNew.push({ name: sumbmitName, type: 'primary', display: 'inline', no: 1 });
5363
5430
  } else if (buttonCode == 'BASE_TRANSFER') {
5364
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 3 });
5431
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 3 });
5365
5432
  } else if (buttonCode == 'HELP_CIRCULATE') {
5366
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 4 });
5433
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 4 });
5367
5434
  } else if (buttonCode == 'HELP_FORWARD') {
5368
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 20 });
5435
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 20 });
5369
5436
  } else if (buttonCode == 'BASE_JUMP') {
5370
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 5 });
5437
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 5 });
5371
5438
  } else if (buttonCode == 'HELP_ADDLOTS') {
5372
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 6 });
5439
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 6 });
5373
5440
  } else if (buttonCode == 'BASE_END') {
5374
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 8 });
5441
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 8 });
5375
5442
  } else if (buttonCode == 'BASE_INVALID') {
5376
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 9 });
5443
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 9 });
5377
5444
  } else if (buttonCode == 'HELP_DISTRIBUTE') {
5378
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 'distributeFlow' });
5445
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 'distributeFlow' });
5379
5446
  } else if (buttonCode == 'MAILSEND') {
5380
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: 18 });
5447
+ buttonCodeListNew.push({ name: buttonName, type: 'secondary', display: 'inline', no: 18 });
5381
5448
  } else {
5382
- buttonList.push({ name: buttonName, type: 'secondary', display: 'inline', no: buttonCode });
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: 'banner', onClick: t.handleSubmit.bind(t, 4) },
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: 'banner', onClick: t.clickRead.bind(t) },
6916
+ { type: 'primary', display: 'inline', onClick: t.clickRead.bind(t) },
6798
6917
  '\u5DF2\u9605'
6799
6918
  )
6800
6919
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",