fmui-base 2.3.23 → 2.3.25

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.
@@ -70,6 +70,8 @@ var _variables = require('../db/variables');
70
70
 
71
71
  var _variables2 = _interopRequireDefault(_variables);
72
72
 
73
+ var _approveUserResolve = require('../db/approveUserResolve');
74
+
73
75
  var _table = require('../form/table');
74
76
 
75
77
  var _table2 = _interopRequireDefault(_table);
@@ -90,6 +92,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
90
92
 
91
93
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
92
94
 
95
+ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
96
+
93
97
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
94
98
 
95
99
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
@@ -1571,8 +1575,8 @@ var PageHome = function (_React$Component) {
1571
1575
  if (item.type == 3) {
1572
1576
  //指定人选择
1573
1577
  selectUserReadOnly = true;
1574
- popCode = 'org,group'; //选人组件code
1575
- chooseType = "userNotOrg,userNotGroup";
1578
+ popCode = 'org,group,duty'; //选人组件code
1579
+ chooseType = "userNotOrg,userAndGroup,userAndDuty";
1576
1580
  var participantList = item.participantList;
1577
1581
  participants = '';
1578
1582
  if (participantList != null && participantList != "" && participantList.length > 0) {
@@ -1604,10 +1608,10 @@ var PageHome = function (_React$Component) {
1604
1608
  if (item.type == 1) {
1605
1609
  //选择所有人
1606
1610
  selectUserReadOnly = false;
1607
- chooseType = "userNotOrg,userNotGroup";
1611
+ chooseType = "userNotOrg,userAndGroup,userAndDuty";
1608
1612
  if (item.nodeType == 'readtask') {
1609
1613
  //如果是传阅节点
1610
- chooseType = "userNotOrg,userNotGroup";
1614
+ chooseType = "userNotOrg,userAndGroup,userAndDuty";
1611
1615
  }
1612
1616
  var commonUsedId = ''; //常用选择范围
1613
1617
  var participantList = item.participantList;
@@ -1645,7 +1649,7 @@ var PageHome = function (_React$Component) {
1645
1649
  //指定候选人
1646
1650
  selectUserReadOnly = false;
1647
1651
  popCode = 'common'; //选人组件code
1648
- chooseType = "userNotOrg,userNotGroup";
1652
+ chooseType = "userNotOrg,userAndGroup,userAndDuty";
1649
1653
  var commonUsedId = ''; //常用选择范围
1650
1654
  var participantList = item.participantList;
1651
1655
  if (participantList != null && participantList != "" && participantList.length > 0) {
@@ -2096,7 +2100,7 @@ var PageHome = function (_React$Component) {
2096
2100
  //指定人选择
2097
2101
  selectUserReadOnly = true;
2098
2102
  popCode = 'org,group'; //选人组件code
2099
- chooseType = "userNotOrg,userNotGroup";
2103
+ chooseType = "userNotOrg,userAndGroup,userAndDuty";
2100
2104
  if (succeedRange == "" || item.level != parseInt(nowLevel) + 1) {
2101
2105
  //当后继为空时取下个活动的
2102
2106
  participantList = item.participantList;
@@ -2120,7 +2124,7 @@ var PageHome = function (_React$Component) {
2120
2124
  } else if (item.type == 1) {
2121
2125
  //选择所有人
2122
2126
  selectUserReadOnly = false;
2123
- chooseType = "userNotOrg,userNotGroup";
2127
+ chooseType = "userNotOrg,userAndGroup,userAndDuty";
2124
2128
  var commonUsedId = ''; //常用选择的用户id
2125
2129
  if (succeedRange == "" || item.level != parseInt(nowLevel) + 1) {
2126
2130
  //当后继为空时取下个活动的
@@ -2388,6 +2392,8 @@ var PageHome = function (_React$Component) {
2388
2392
  }, {
2389
2393
  key: 'handleSubmitClick',
2390
2394
  value: function handleSubmitClick() {
2395
+ var _this2 = this;
2396
+
2391
2397
  var t = this;
2392
2398
  var operate = this.state.operate;
2393
2399
 
@@ -2439,173 +2445,312 @@ var PageHome = function (_React$Component) {
2439
2445
 
2440
2446
  if (operate == 1) {
2441
2447
  //审批提交
2442
- var editFormData = this.state.editFormData;
2448
+ _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
2449
+ var editFormData, nextRadomListSelect, nextActivityListSelect, selectedActivity, nextActivityList, i, auditorUserIds, auditorUserNames, checked, personValue, isEnd, participantMode, orgUserList, orgUserids, orgUsernames, j, groupUserList, gj, gid, gname, dutyUserList, dj, did, dname, level, urgentListSelect, urgent, _i, sshortMessage, sendShortMessage, cshortMessage, circulateShortMessage, param, dealActionName;
2450
+
2451
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
2452
+ while (1) {
2453
+ switch (_context2.prev = _context2.next) {
2454
+ case 0:
2455
+ editFormData = _this2.state.editFormData;
2456
+ nextRadomListSelect = _this2.state.nextRadomList;
2457
+ nextActivityListSelect = _this2.state.nextActivityList;
2458
+ selectedActivity = '';
2459
+
2460
+ if (!(nextRadomListSelect.length > 0 || nextActivityListSelect.length > 0)) {
2461
+ _context2.next = 48;
2462
+ break;
2463
+ }
2464
+
2465
+ //下一个节点不为空时
2466
+ nextActivityList = [];
2467
+
2468
+ selectedActivity = '';
2469
+ nextRadomListSelect.map(function (item) {
2470
+ nextActivityList = nextActivityList.concat(item.subRandomList);
2471
+ });
2472
+ nextActivityList = nextActivityList.concat(nextActivityListSelect);
2473
+ i = 0;
2474
+
2475
+ case 10:
2476
+ if (!(i < nextActivityList.length)) {
2477
+ _context2.next = 41;
2478
+ break;
2479
+ }
2480
+
2481
+ auditorUserIds = '';
2482
+ auditorUserNames = '';
2483
+ checked = nextActivityList[i].checked;
2484
+
2485
+ if (!checked) {
2486
+ _context2.next = 38;
2487
+ break;
2488
+ }
2489
+
2490
+ personValue = nextActivityList[i].personValue;
2491
+ isEnd = nextActivityList[i].end;
2492
+
2493
+ if (!(personValue.length <= 0 && !isEnd)) {
2494
+ _context2.next = 20;
2495
+ break;
2496
+ }
2443
2497
 
2444
- var nextRadomListSelect = this.state.nextRadomList;
2445
- var nextActivityListSelect = this.state.nextActivityList;
2446
- var selectedActivity = '';
2447
- if (nextRadomListSelect.length > 0 || nextActivityListSelect.length > 0) {
2448
- //下一个节点不为空时
2449
- var nextActivityList = [];
2450
- selectedActivity = '';
2451
- nextRadomListSelect.map(function (item) {
2452
- nextActivityList = nextActivityList.concat(item.subRandomList);
2453
- });
2454
- nextActivityList = nextActivityList.concat(nextActivityListSelect);
2455
- for (var i = 0; i < nextActivityList.length; i++) {
2456
- var auditorUserIds = '';
2457
- var auditorUserNames = '';
2458
- var checked = nextActivityList[i].checked;
2459
- if (checked) {
2460
- var personValue = nextActivityList[i].personValue;
2461
- var isEnd = nextActivityList[i].end;
2462
-
2463
- if (personValue.length <= 0 && !isEnd) {
2464
- _Toast2.default.show({
2465
- type: 'error',
2466
- content: '请选择审批人'
2467
- });
2468
- return false;
2469
- }
2470
- var participantMode = nextActivityList[i].participantMode;
2471
- if (participantMode == 0) {
2472
- if (personValue.length > 1) {
2473
2498
  _Toast2.default.show({
2474
2499
  type: 'error',
2475
- content: nextActivityList[i].name + '节点的参与人只能是单人,请重新设置流程!'
2500
+ content: '请选择审批人'
2476
2501
  });
2477
- return false;
2478
- }
2479
- } else {
2480
- participantMode = participantMode + "";
2481
- if (participantMode.indexOf('1') > -1) {
2482
- participantMode = '1';
2483
- }
2484
- if (participantMode.indexOf('3') > -1) {
2485
- participantMode = '3';
2486
- }
2487
- if (participantMode.indexOf('2') > -1) {
2488
- participantMode = '2';
2489
- }
2490
- }
2491
- if (!isEnd) {
2492
- var orgUserList;
2493
- var orgUserids;
2494
- var orgUsernames;
2495
- var j;
2496
- var level;
2497
-
2498
- (function () {
2499
- var selectUserIds = '';
2500
- var selectOrgIds = '';
2501
- personValue.map(function (item, index) {
2502
- if (selectUserIds.indexOf(item.scopeValue) == -1) {
2503
- if (item.scopeType == 'user') {
2504
- //用户
2505
- selectUserIds += item.scopeValue + ",";
2506
- auditorUserIds += item.scopeValue + ',';
2507
- auditorUserNames += item.scopeName + ',';
2508
- } else if (item.scopeType == 'org') {
2509
- //组织
2510
- selectOrgIds += item.scopeValue + ",";
2511
- }
2512
- }
2502
+ return _context2.abrupt('return', false);
2503
+
2504
+ case 20:
2505
+ participantMode = nextActivityList[i].participantMode;
2506
+
2507
+ if (!(participantMode == 0)) {
2508
+ _context2.next = 27;
2509
+ break;
2510
+ }
2511
+
2512
+ if (!(personValue.length > 1)) {
2513
+ _context2.next = 25;
2514
+ break;
2515
+ }
2516
+
2517
+ _Toast2.default.show({
2518
+ type: 'error',
2519
+ content: nextActivityList[i].name + '节点的参与人只能是单人,请重新设置流程!'
2513
2520
  });
2514
- if (selectOrgIds != '') {
2515
- selectOrgIds = selectOrgIds.substring(0, selectOrgIds.length - 1);
2516
- orgUserList = getUsersByOrgIDs(selectOrgIds);
2517
- orgUserids = '';
2518
- orgUsernames = '';
2519
-
2520
- for (j = 0; j < orgUserList.length; j++) {
2521
- if (auditorUserIds.indexOf(orgUserList[j].id) < 0) {
2522
- orgUserids += orgUserList[j].id + ",";
2523
- orgUsernames += orgUserList[j].userName + ",";
2524
- }
2525
- }
2526
- auditorUserIds += orgUserids;
2527
- auditorUserNames += orgUsernames;
2521
+ return _context2.abrupt('return', false);
2522
+
2523
+ case 25:
2524
+ _context2.next = 31;
2525
+ break;
2526
+
2527
+ case 27:
2528
+ participantMode = participantMode + "";
2529
+ if (participantMode.indexOf('1') > -1) {
2530
+ participantMode = '1';
2531
+ }
2532
+ if (participantMode.indexOf('3') > -1) {
2533
+ participantMode = '3';
2534
+ }
2535
+ if (participantMode.indexOf('2') > -1) {
2536
+ participantMode = '2';
2528
2537
  }
2529
- if (auditorUserIds != '') {
2530
- auditorUserIds = auditorUserIds.substring(0, auditorUserIds.length - 1);
2531
- auditorUserNames = auditorUserNames.substring(0, auditorUserNames.length - 1);
2538
+
2539
+ case 31:
2540
+ if (isEnd) {
2541
+ _context2.next = 35;
2542
+ break;
2532
2543
  }
2544
+
2545
+ return _context2.delegateYield( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
2546
+ var selectUserIds, selectOrgIds, selectGroupIds, selectDutyIds;
2547
+ return regeneratorRuntime.wrap(function _callee$(_context) {
2548
+ while (1) {
2549
+ switch (_context.prev = _context.next) {
2550
+ case 0:
2551
+ selectUserIds = '';
2552
+ selectOrgIds = '';
2553
+ selectGroupIds = '';
2554
+ selectDutyIds = '';
2555
+
2556
+ personValue.map(function (item, index) {
2557
+ if (selectUserIds.indexOf(item.scopeValue) == -1) {
2558
+ if (item.scopeType == 'user') {
2559
+ //用户
2560
+ selectUserIds += item.scopeValue + ",";
2561
+ auditorUserIds += item.scopeValue + ',';
2562
+ auditorUserNames += item.scopeName + ',';
2563
+ } else if (item.scopeType == 'org') {
2564
+ //组织
2565
+ selectOrgIds += item.scopeValue + ",";
2566
+ } else if (item.scopeType == 'group') {
2567
+ //群组
2568
+ selectGroupIds += item.scopeValue + ",";
2569
+ } else if (item.scopeType == 'duty') {
2570
+ //职务
2571
+ selectDutyIds += item.scopeValue + ",";
2572
+ }
2573
+ }
2574
+ });
2575
+ if (selectOrgIds != '') {
2576
+ selectOrgIds = selectOrgIds.substring(0, selectOrgIds.length - 1);
2577
+ orgUserList = getUsersByOrgIDs(selectOrgIds);
2578
+ orgUserids = '';
2579
+ orgUsernames = '';
2580
+
2581
+ for (j = 0; j < orgUserList.length; j++) {
2582
+ if (auditorUserIds.indexOf(orgUserList[j].id) < 0) {
2583
+ orgUserids += orgUserList[j].id + ",";
2584
+ orgUsernames += orgUserList[j].userName + ",";
2585
+ }
2586
+ }
2587
+ auditorUserIds += orgUserids;
2588
+ auditorUserNames += orgUsernames;
2589
+ }
2590
+
2591
+ if (!(selectGroupIds != '')) {
2592
+ _context.next = 12;
2593
+ break;
2594
+ }
2595
+
2596
+ selectGroupIds = selectGroupIds.substring(0, selectGroupIds.length - 1);
2597
+ _context.next = 10;
2598
+ return (0, _approveUserResolve.getUsersByGrpIdSync)(selectGroupIds);
2599
+
2600
+ case 10:
2601
+ groupUserList = _context.sent;
2602
+
2603
+ for (gj = 0; gj < groupUserList.length; gj++) {
2604
+ gid = groupUserList[gj].id || groupUserList[gj].userId;
2605
+ gname = groupUserList[gj].userName || '';
2606
+
2607
+ if (gid && auditorUserIds.indexOf(gid) < 0) {
2608
+ auditorUserIds += gid + ",";
2609
+ auditorUserNames += gname + ",";
2610
+ }
2611
+ }
2612
+
2613
+ case 12:
2614
+ if (!(selectDutyIds != '')) {
2615
+ _context.next = 18;
2616
+ break;
2617
+ }
2618
+
2619
+ selectDutyIds = selectDutyIds.substring(0, selectDutyIds.length - 1);
2620
+ _context.next = 16;
2621
+ return (0, _approveUserResolve.getUsersByDutyIdSync)(selectDutyIds);
2622
+
2623
+ case 16:
2624
+ dutyUserList = _context.sent;
2625
+
2626
+ for (dj = 0; dj < dutyUserList.length; dj++) {
2627
+ did = dutyUserList[dj].id || dutyUserList[dj].userId;
2628
+ dname = dutyUserList[dj].userName || '';
2629
+
2630
+ if (did && auditorUserIds.indexOf(did) < 0) {
2631
+ auditorUserIds += did + ",";
2632
+ auditorUserNames += dname + ",";
2633
+ }
2634
+ }
2635
+
2636
+ case 18:
2637
+ if (auditorUserIds != '') {
2638
+ auditorUserIds = auditorUserIds.substring(0, auditorUserIds.length - 1);
2639
+ auditorUserNames = auditorUserNames.substring(0, auditorUserNames.length - 1);
2640
+ }
2641
+ level = nextActivityList[i].level;
2642
+
2643
+ if (level == null) {
2644
+ level = "";
2645
+ }
2646
+
2647
+ selectedActivity += '{"id":"' + nextActivityList[i].value + '","name":"' + nextActivityList[i].name + '","participants":"' + auditorUserIds + '","participantNames":"' + auditorUserNames + '","level":"' + level + '","participantType":"' + participantMode + '"},';
2648
+
2649
+ case 22:
2650
+ case 'end':
2651
+ return _context.stop();
2652
+ }
2653
+ }
2654
+ }, _callee, _this2);
2655
+ })(), 't0', 33);
2656
+
2657
+ case 33:
2658
+ _context2.next = 38;
2659
+ break;
2660
+
2661
+ case 35:
2533
2662
  level = nextActivityList[i].level;
2534
2663
 
2535
2664
  if (level == null) {
2536
2665
  level = "";
2537
2666
  }
2667
+ selectedActivity += '{"id":"' + nextActivityList[i].value + '","name":"' + nextActivityList[i].name + '","level":"' + level + '","participantType":"' + participantMode + '"},';
2538
2668
 
2539
- selectedActivity += '{"id":"' + nextActivityList[i].value + '","name":"' + nextActivityList[i].name + '","participants":"' + auditorUserIds + '","participantNames":"' + auditorUserNames + '","level":"' + level + '","participantType":"' + participantMode + '"},';
2540
- })();
2541
- } else {
2542
- var level = nextActivityList[i].level;
2543
- if (level == null) {
2544
- level = "";
2545
- }
2546
- selectedActivity += '{"id":"' + nextActivityList[i].value + '","name":"' + nextActivityList[i].name + '","level":"' + level + '","participantType":"' + participantMode + '"},';
2669
+ case 38:
2670
+ i++;
2671
+ _context2.next = 10;
2672
+ break;
2673
+
2674
+ case 41:
2675
+ if (!(selectedActivity != '')) {
2676
+ _context2.next = 46;
2677
+ break;
2678
+ }
2679
+
2680
+ selectedActivity = selectedActivity.substring(0, selectedActivity.length - 1);
2681
+ selectedActivity = '[' + selectedActivity + ']';
2682
+ _context2.next = 48;
2683
+ break;
2684
+
2685
+ case 46:
2686
+ _Toast2.default.show({
2687
+ type: 'error',
2688
+ content: '请选择节点'
2689
+ });
2690
+ return _context2.abrupt('return', false);
2691
+
2692
+ case 48:
2693
+ urgentListSelect = t.state.urgentSelectList;
2694
+ urgent = '';
2695
+
2696
+ for (_i = 0; _i < urgentListSelect.length; _i++) {
2697
+ urgent += urgentListSelect[_i].value + ",";
2698
+ }
2699
+ if (urgent != '') {
2700
+ urgent = urgent.substring(0, urgent.length - 1);
2701
+ }
2702
+ if (urgent == '' && t.state.urgentHidden == false) {
2703
+ urgent = '0';
2704
+ }
2705
+ sshortMessage = '0';
2706
+ sendShortMessage = t.state.sendShortMessage;
2707
+ /*if(sendShortMessage.length>0){
2708
+ sshortMessage=sendShortMessage[0].value;
2709
+ }*/
2710
+
2711
+ cshortMessage = '0';
2712
+ circulateShortMessage = t.state.circulateShortMessage;
2713
+ /* if(circulateShortMessage.length>0){
2714
+ cshortMessage=circulateShortMessage[0].value;
2715
+ }*/
2716
+
2717
+ param = {
2718
+ taskId: _this2.state.taskId,
2719
+ selectedActivity: selectedActivity,
2720
+ allEditIds: _this2.getAllEditIds(t.state.editFormData),
2721
+ corpId: corpid,
2722
+ code: _this2.state.code,
2723
+ formData: JSON.stringify(editFormData),
2724
+ module: t.state.module,
2725
+ comment: newComment,
2726
+ commentId: t.state.commentId,
2727
+ hasCommentField: t.state.hasCommentField,
2728
+ dataId: t.state.dataId,
2729
+ urgent: urgent,
2730
+ lock: t.state.lock,
2731
+ sendShortMessage: sendShortMessage,
2732
+ circulateShortMessage: circulateShortMessage,
2733
+ reminderContent: _this2.state.reminderContent
2734
+ /*alertalert(newComment);*/
2735
+ };
2736
+ dealActionName = "";
2737
+
2738
+ if (_this2.state.isStart == true) {
2739
+ dealActionName = "提交";
2740
+ } else {
2741
+ dealActionName = '通过';
2742
+ }
2743
+ param.dealActionName = dealActionName;
2744
+
2745
+ _this2.sendFlow(param);
2746
+
2747
+ case 62:
2748
+ case 'end':
2749
+ return _context2.stop();
2547
2750
  }
2548
2751
  }
2549
- }
2550
- if (selectedActivity != '') {
2551
- selectedActivity = selectedActivity.substring(0, selectedActivity.length - 1);
2552
- selectedActivity = '[' + selectedActivity + ']';
2553
- } else {
2554
- _Toast2.default.show({
2555
- type: 'error',
2556
- content: '请选择节点'
2557
- });
2558
- return false;
2559
- }
2560
- }
2561
- var urgentListSelect = t.state.urgentSelectList;
2562
- var urgent = '';
2563
- for (var _i = 0; _i < urgentListSelect.length; _i++) {
2564
- urgent += urgentListSelect[_i].value + ",";
2565
- }
2566
- if (urgent != '') {
2567
- urgent = urgent.substring(0, urgent.length - 1);
2568
- }
2569
- if (urgent == '' && t.state.urgentHidden == false) {
2570
- urgent = '0';
2571
- }
2572
- var sshortMessage = '0';
2573
- var sendShortMessage = t.state.sendShortMessage;
2574
- /*if(sendShortMessage.length>0){
2575
- sshortMessage=sendShortMessage[0].value;
2576
- }*/
2577
- var cshortMessage = '0';
2578
- var circulateShortMessage = t.state.circulateShortMessage;
2579
- /* if(circulateShortMessage.length>0){
2580
- cshortMessage=circulateShortMessage[0].value;
2581
- }*/
2582
- var param = {
2583
- taskId: this.state.taskId,
2584
- selectedActivity: selectedActivity,
2585
- allEditIds: this.getAllEditIds(t.state.editFormData),
2586
- corpId: corpid,
2587
- code: this.state.code,
2588
- formData: JSON.stringify(editFormData),
2589
- module: t.state.module,
2590
- comment: newComment,
2591
- commentId: t.state.commentId,
2592
- hasCommentField: t.state.hasCommentField,
2593
- dataId: t.state.dataId,
2594
- urgent: urgent,
2595
- lock: t.state.lock,
2596
- sendShortMessage: sendShortMessage,
2597
- circulateShortMessage: circulateShortMessage,
2598
- reminderContent: this.state.reminderContent
2599
- /*alertalert(newComment);*/
2600
- };var dealActionName = "";
2601
- if (this.state.isStart == true) {
2602
- dealActionName = "提交";
2603
- } else {
2604
- dealActionName = '通过';
2605
- }
2606
- param.dealActionName = dealActionName;
2607
-
2608
- this.sendFlow(param);
2752
+ }, _callee2, _this2);
2753
+ }))();
2609
2754
  } else if (operate == 2) {
2610
2755
  //退回
2611
2756
  var buttons = this.state.buttons;
@@ -2621,8 +2766,8 @@ var PageHome = function (_React$Component) {
2621
2766
  //按钮不为空
2622
2767
  var backTypeListSelect = t.state.backTypeSelectList;
2623
2768
  var backType = '';
2624
- for (var _i2 = 0; _i2 < backTypeListSelect.length; _i2++) {
2625
- backType += backTypeListSelect[_i2].value + ",";
2769
+ for (var i = 0; i < backTypeListSelect.length; i++) {
2770
+ backType += backTypeListSelect[i].value + ",";
2626
2771
  }
2627
2772
  if (backType != '') {
2628
2773
  backType = backType.substring(0, backType.length - 1);
@@ -4159,7 +4304,7 @@ var PageHome = function (_React$Component) {
4159
4304
  }, {
4160
4305
  key: 'getListButtonsByCodes',
4161
4306
  value: function getListButtonsByCodes(buttonCodes, dataId, isStart) {
4162
- var _this2 = this;
4307
+ var _this3 = this;
4163
4308
 
4164
4309
  buttonCodes = buttonCodes.replace('OTHER_RELATION', '');
4165
4310
  buttonCodes = buttonCodes.replace('MAILSEND', '');
@@ -4175,7 +4320,7 @@ var PageHome = function (_React$Component) {
4175
4320
  _db2.default.FlowModuleAPI.getListButtonsByCodes({
4176
4321
  buttonCodes: buttonCodes + ',MAILSEND'
4177
4322
  }).then(function (content) {
4178
- _this2.setState({
4323
+ _this3.setState({
4179
4324
  buttonCodeList: content
4180
4325
  });
4181
4326
  var buttonCodeList = content;
@@ -4183,7 +4328,7 @@ var PageHome = function (_React$Component) {
4183
4328
  var actionSheetButtonOptName = [];
4184
4329
  var buttonIsMore = false;
4185
4330
  var buttonList = [];
4186
- var sysWatermark = _this2.state.sysWatermark;
4331
+ var sysWatermark = _this3.state.sysWatermark;
4187
4332
  /* buttonCodeList.push({'buttonCode':'BASE_SUMBIT','buttonName':'通过'});
4188
4333
  buttonCodeList.push({'buttonCode':'PAGE_SAVE','buttonName':'保存'});*/
4189
4334
  if (buttonCodeList.length > 4) {
@@ -4271,7 +4416,7 @@ var PageHome = function (_React$Component) {
4271
4416
  }
4272
4417
  }
4273
4418
  }
4274
- _this2.setState({
4419
+ _this3.setState({
4275
4420
  buttonList: buttonList,
4276
4421
  actionSheetButtonOpt: actionSheetButtonOpt,
4277
4422
  actionSheetButtonOptName: actionSheetButtonOptName,