fmui-base 1.0.48 → 2.0.0

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.
@@ -128,7 +128,9 @@ var Page = function (_React$Component) {
128
128
 
129
129
  isShowNav: false, //是否展示面包屑导航
130
130
  isShowCheckAll: false, //是否展示全选
131
+ isShowThisOrg: false,
131
132
  commonCheckAll: false, //常用是否全选
133
+ navCommonList: [], //面包屑导航list,常用
132
134
  navUserList: [], //面包屑导航list
133
135
  navOrgList: [], //面包屑导航list
134
136
  roleCheckAll: false, //角色是否全选
@@ -140,6 +142,7 @@ var Page = function (_React$Component) {
140
142
  isSelectShow: false, //是否是已选查看页
141
143
  staSelectType: "0",
142
144
  activeKey: 'user',
145
+ commonTreeData: [],
143
146
  commonUsedData: [],
144
147
  commonDefaultData: [],
145
148
  userOrgList: [],
@@ -388,7 +391,7 @@ var Page = function (_React$Component) {
388
391
  code = "";
389
392
  }
390
393
 
391
- if (chooseType == null || chooseType == undefined || chooseType == "") {
394
+ if (typeof chooseType == "undefined" || chooseType == null || chooseType == undefined || chooseType == "") {
392
395
  chooseType = "";
393
396
 
394
397
  if (chooseObj) {
@@ -397,7 +400,7 @@ var Page = function (_React$Component) {
397
400
  chooseType = "userAndOrg";
398
401
  } else if (code.indexOf("userNotOrg") >= 0 && code.indexOf("org") < 0) {
399
402
  chooseType = "userNotOrg";
400
- } else if (code.indexOf("userNotOrg") < 0 && code.indexOf("org") >= 0) {
403
+ } else if (code.indexOf("org") >= 0 || code.indexOf("dept") >= 0 || code.indexOf("inst") >= 0) {
401
404
  chooseType = "org";
402
405
  } else {
403
406
  chooseType = "";
@@ -1035,7 +1038,7 @@ var Page = function (_React$Component) {
1035
1038
  }
1036
1039
  }
1037
1040
  } else {
1038
- if (chooseType.indexOf("userNotOrg") < 0) {
1041
+ if (chooseType.indexOf("userNotGroup") < 0) {
1039
1042
  for (var i = 0; i < groupList.length; i++) {
1040
1043
  if (groupList[i].canUse == "1") {
1041
1044
  if (groupList[i].checked) {
@@ -1165,7 +1168,7 @@ var Page = function (_React$Component) {
1165
1168
  }
1166
1169
  }
1167
1170
  } else {
1168
- if (chooseType.indexOf("userNotOrg") < 0) {
1171
+ if (chooseType.indexOf("userNotPersonGroup") < 0) {
1169
1172
  for (var i = 0; i < personalGroupList.length; i++) {
1170
1173
  if (personalGroupList[i].canUse == "1") {
1171
1174
  if (personalGroupList[i].checked) {
@@ -1295,7 +1298,7 @@ var Page = function (_React$Component) {
1295
1298
  }
1296
1299
  }
1297
1300
  } else {
1298
- if (chooseType.indexOf("userNotOrg") < 0) {
1301
+ if (chooseType.indexOf("userNotDuty") < 0) {
1299
1302
  for (var i = 0; i < dutyList.length; i++) {
1300
1303
  if (dutyList[i].canUse == "1") {
1301
1304
  if (dutyList[i].checked) {
@@ -1425,7 +1428,7 @@ var Page = function (_React$Component) {
1425
1428
  }
1426
1429
  }
1427
1430
  } else {
1428
- if (chooseType.indexOf("userNotOrg") < 0) {
1431
+ if (chooseType.indexOf("userNotPoliticalOutlook") < 0) {
1429
1432
  for (var i = 0; i < politicalOutlookList.length; i++) {
1430
1433
  if (politicalOutlookList[i].canUse == "1") {
1431
1434
  if (politicalOutlookList[i].checked) {
@@ -1485,6 +1488,77 @@ var Page = function (_React$Component) {
1485
1488
  }
1486
1489
  }
1487
1490
 
1491
+ //选择本组织
1492
+
1493
+ }, {
1494
+ key: 'checkThisOrg',
1495
+ value: function checkThisOrg(type) {
1496
+ var _this3 = this;
1497
+
1498
+ var t = this;
1499
+ var scopeList = this.state.scopeList;
1500
+ var chooseType = this.getChooseType();
1501
+ if ("politicalOutlook" == type) {
1502
+ //政治面貌
1503
+ var navList = t.state.navPoliticalOutlookList;
1504
+ var index = navList.length - 1;
1505
+ if (navList[index].canUse == "0") {
1506
+ return;
1507
+ }
1508
+ navList[index].checkThisOrg = !navList[index].checkThisOrg;
1509
+ var selectedList = t.state.selectedList;
1510
+ var politicalOutlookUserList = t.state.politicalOutlookUserList;
1511
+ var total = t.state.total;
1512
+ var selectPoliticalOutlookUserNum = t.state.selectPoliticalOutlookUserNum;
1513
+ var selectUsers = selectedList.selectUsers;
1514
+ if (selectUsers == null || selectUsers == undefined) {
1515
+ selectUsers = [];
1516
+ }
1517
+
1518
+ for (var i = 0; i < politicalOutlookUserList.length; i++) {
1519
+ if (politicalOutlookUserList[i].isSameOrg == "1") {
1520
+ if (!politicalOutlookUserList[i].checked) {
1521
+ politicalOutlookUserList[i].checked = true;
1522
+ total++;
1523
+ selectPoliticalOutlookUserNum++;
1524
+ } else {
1525
+ politicalOutlookUserList[i].checked = false;
1526
+ total--;
1527
+ selectPoliticalOutlookUserNum--;
1528
+ }
1529
+
1530
+ var flag = true;
1531
+ for (var j = 0; j < selectUsers.length; j++) {
1532
+ if (selectUsers[j].id == politicalOutlookUserList[i].id) {
1533
+ flag = false;
1534
+ break;
1535
+ }
1536
+ }
1537
+ if (flag) {
1538
+ var scope = {
1539
+ "scopeType": "user",
1540
+ "scopeName": politicalOutlookUserList[i].userName,
1541
+ "scopeValue": politicalOutlookUserList[i].id
1542
+ };
1543
+ scopeList.push(scope);
1544
+ selectUsers.push(politicalOutlookUserList[i]);
1545
+ }
1546
+ }
1547
+ }
1548
+ selectedList.selectUsers = selectUsers;
1549
+ t.setState({
1550
+ politicalOutlookUserList: politicalOutlookUserList,
1551
+ total: total,
1552
+ navList: navList,
1553
+ selectPoliticalOutlookUserNum: selectPoliticalOutlookUserNum,
1554
+ selectedList: selectedList,
1555
+ scopeList: scopeList
1556
+ }, function () {
1557
+ _this3.instance.update(_this3.getContent());
1558
+ });
1559
+ }
1560
+ }
1561
+
1488
1562
  //获取URL
1489
1563
 
1490
1564
  }, {
@@ -1597,7 +1671,110 @@ var Page = function (_React$Component) {
1597
1671
  var finalId = id;
1598
1672
  var checkType = this.props.checkType;
1599
1673
  var chooseType = this.getChooseType();
1600
- if (type == "user") {
1674
+ if (type == "common") {
1675
+ var navList = t.state.navCommonList;
1676
+ var index = navList.length - 1;
1677
+ var selectUserNum = 0;
1678
+ var isShowNav = true,
1679
+ isShowCheckAll = true;
1680
+ if (checkType == "radio" || id == "0") {
1681
+ isShowCheckAll = false;
1682
+ }
1683
+ var url = "";
1684
+ if (id == "0") {
1685
+ isShowNav = false;
1686
+ navList = [];
1687
+ id = "";
1688
+ // url = t.getFetchUrl("common", "", "", false, false);
1689
+ t.getSelectData("1");
1690
+ } else {
1691
+ for (var i = 0; i < navList.length; i++) {
1692
+ if (navList[i].scopeValue == id) {
1693
+ navList.splice(i + 1, navList.length - i);
1694
+ break;
1695
+ }
1696
+ }
1697
+ url = t.getFetchUrl(navType, id, "", true, true);
1698
+
1699
+ fetch(url, {
1700
+ method: "GET",
1701
+ mode: "cors",
1702
+ headers: {
1703
+ 'Accept': 'application/json, text/plain, */*',
1704
+ 'Content-Type': 'application/x-www-form-urlencoded'
1705
+ }
1706
+ }).then(function (response) {
1707
+ return response.json();
1708
+ }).then(function (result) {
1709
+ //alert(JSON.stringify(result));
1710
+ //console.log("fetch请求数据"+JSON.stringify(result));
1711
+ var itemList = [],
1712
+ userList = [];
1713
+ if (navType == "org") {
1714
+ itemList = result.data.orgList;
1715
+ userList = result.data.userList;
1716
+ } else if (navType == "group") {
1717
+ itemList = result.data.groupList;
1718
+ userList = result.data.userList;
1719
+ }
1720
+ if (itemList == null || itemList == undefined) {
1721
+ itemList = [];
1722
+ }
1723
+ if (userList == null || userList == undefined || userList.length <= 0) {
1724
+ userList = [];
1725
+ } else {
1726
+ var selectUsers = t.state.selectedList.selectUsers;
1727
+ selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
1728
+ if (selectUserNum == userList.length) {
1729
+ navList[navList.length - 1].checkAll = true;
1730
+ }
1731
+ }
1732
+
1733
+ var commonTreeData = [];
1734
+ var commonUsedData = [];
1735
+ for (var i = 0; i < itemList.length; i++) {
1736
+ var data = {};
1737
+ if (navType == "org") {
1738
+ data = {
1739
+ scopeType: "org",
1740
+ scopeName: itemList[i].orgName,
1741
+ scopeValue: itemList[i].id,
1742
+ checked: itemList[i].checked
1743
+ };
1744
+ } else if (navType == "group") {
1745
+ data = {
1746
+ scopeType: "group",
1747
+ scopeName: itemList[i].groupName,
1748
+ scopeValue: itemList[i].id,
1749
+ checked: itemList[i].checked
1750
+ };
1751
+ }
1752
+ commonTreeData.push(data);
1753
+ }
1754
+ for (var i = 0; i < userList.length; i++) {
1755
+ var data = {
1756
+ scopeType: "user",
1757
+ scopeName: userList[i].userName,
1758
+ scopeValue: userList[i].id,
1759
+ checked: userList[i].checked
1760
+ };
1761
+ commonUsedData.push(data);
1762
+ }
1763
+ t.setState({
1764
+ commonTreeData: commonTreeData,
1765
+ commonUsedData: commonUsedData,
1766
+ selectUserNum: selectUserNum,
1767
+ navCommonList: navList,
1768
+ isShowNav: isShowNav,
1769
+ isShowCheckAll: isShowCheckAll
1770
+ }, function () {
1771
+ t.instance.update(t.getContent());
1772
+ });
1773
+ }).catch(function (error) {
1774
+ alert("869错误:" + error);
1775
+ });
1776
+ }
1777
+ } else if (type == "user") {
1601
1778
  var navList = t.state.navUserList;
1602
1779
  var index = navList.length - 1;
1603
1780
  var selectUserNum = 0;
@@ -2160,9 +2337,9 @@ var Page = function (_React$Component) {
2160
2337
  noUsePoliticalOutlookNum = 0,
2161
2338
  selectPoliticalOutlookUserNum = 0;
2162
2339
  var isShowNav = true,
2163
- isShowCheckAll = true;
2340
+ isShowCheckAll = true;var isShowThisOrg = true;
2164
2341
  if (checkType == 'radio') {
2165
- isShowCheckAll = false;
2342
+ isShowCheckAll = false;isShowThisOrg = false;
2166
2343
  }
2167
2344
  var politicalOutlookName = this.state.politicalOutlookName;
2168
2345
  var url = "";
@@ -2238,7 +2415,8 @@ var Page = function (_React$Component) {
2238
2415
  selectPoliticalOutlookUserNum: selectUserNum,
2239
2416
  navPoliticalOutlookList: navList,
2240
2417
  isShowNav: isShowNav,
2241
- isShowCheckAll: isShowCheckAll
2418
+ isShowCheckAll: isShowCheckAll,
2419
+ isShowThisOrg: isShowThisOrg
2242
2420
  }, function () {
2243
2421
  t.instance.update(t.getContent());
2244
2422
  });
@@ -2354,38 +2532,68 @@ var Page = function (_React$Component) {
2354
2532
 
2355
2533
  }, {
2356
2534
  key: 'handleOrgShow',
2357
- value: function handleOrgShow(orgId, org) {
2535
+ value: function handleOrgShow(itemId, org, from) {
2358
2536
 
2359
2537
  var chooseType = this.getChooseType();
2360
- var orgList = this.state.orgList;
2361
- var orgUserList = this.state.orgUserList;
2362
- var navList = this.state.navOrgList;
2538
+ var itemList = [];
2539
+ var navList = [];
2363
2540
  var selectOrgNum = 0,
2364
2541
  noUseOrgNum = 0,
2365
2542
  selectOrgUserNum = 0;
2543
+ // var orgUserList = this.state.orgUserList;
2544
+ if (from == "common") {
2545
+ itemList = this.state.commonTreeData;
2546
+ navList = this.state.navCommonList;
2547
+ } else {
2548
+ itemList = this.state.orgList;
2549
+ navList = this.state.navOrgList;
2550
+ }
2551
+
2366
2552
  var index = navList.length - 1;
2367
- var currentOrg = {};
2368
- for (var i = 0; i < orgList.length; i++) {
2369
- if (orgList[i].id == orgId) {
2370
- currentOrg = orgList[i];
2553
+ var currentItem = {};
2554
+ for (var i = 0; i < itemList.length; i++) {
2555
+ if (from == "common") {
2556
+ if (itemList[i].scopeValue == itemId) {
2557
+ currentItem = itemList[i];
2558
+ }
2559
+ } else {
2560
+ if (itemList[i].id == itemId) {
2561
+ currentItem = itemList[i];
2562
+ }
2371
2563
  }
2372
2564
  if (navList.length > 0) {
2373
- if (navList[index].id == orgList[i].id) {
2374
- navList.splice(index, 1);
2375
- break;
2565
+ if (from == "common") {
2566
+ if (navList[index].scopeValue == itemList[i].scopeValue) {
2567
+ navList.splice(index, 1);
2568
+ break;
2569
+ }
2570
+ } else {
2571
+ if (navList[index].id == itemList[i].id) {
2572
+ navList.splice(index, 1);
2573
+ break;
2574
+ }
2376
2575
  }
2377
2576
  } else {
2378
2577
  break;
2379
2578
  }
2380
2579
  }
2381
- navList.push(currentOrg);
2580
+ navList.push(currentItem);
2382
2581
  var isShowCheckAll = true;
2383
2582
  if (this.props.checkType == "radio") {
2384
2583
  isShowCheckAll = false;
2385
2584
  }
2386
2585
  //获取下级组织数据
2387
2586
  var t = this;
2388
- var url = t.getFetchUrl("org", orgId, this.state.orgName, true, true);
2587
+ var type = "";
2588
+ var serach = "";
2589
+ if (from == "common") {
2590
+ type = "org";
2591
+ serach = this.state.commonName;
2592
+ } else {
2593
+ type = "org";
2594
+ serach = this.state.orgName;
2595
+ }
2596
+ var url = t.getFetchUrl(type, itemId, serach, true, true);
2389
2597
  fetch(url, {
2390
2598
  method: "GET",
2391
2599
  mode: "cors",
@@ -2448,16 +2656,54 @@ var Page = function (_React$Component) {
2448
2656
  if (checkAllUser && checkAllOrg) {
2449
2657
  navList[navList.length - 1].checkAll = true;
2450
2658
  }
2451
- t.setState({
2452
- orgList: orgList,
2453
- orgUserList: userList,
2454
- selectOrgNum: selectOrgNum,
2455
- noUseOrgNum: noUseOrgNum,
2456
- selectOrgUserNum: selectUserNum,
2457
- navOrgList: navList,
2458
- isShowNav: true,
2459
- isShowCheckAll: isShowCheckAll
2460
- }, function () {
2659
+ var stateParam = {};
2660
+
2661
+ if (from == "common") {
2662
+ var commonTreeData = [];
2663
+ var commonUsedData = [];
2664
+ for (var i = 0; i < orgList.length; i++) {
2665
+ var data = {
2666
+ scopeType: "org",
2667
+ scopeName: orgList[i].orgName,
2668
+ scopeValue: orgList[i].id,
2669
+ checked: orgList[i].checked
2670
+ };
2671
+ commonTreeData.push(data);
2672
+ }
2673
+ for (var i = 0; i < userList.length; i++) {
2674
+ var data = {
2675
+ scopeType: "user",
2676
+ scopeName: userList[i].userName,
2677
+ scopeValue: userList[i].id,
2678
+ checked: userList[i].checked
2679
+ };
2680
+ commonUsedData.push(data);
2681
+ }
2682
+
2683
+ stateParam = {
2684
+ commonTreeData: commonTreeData,
2685
+ commonUsedData: commonUsedData,
2686
+ selectOrgNum: selectOrgNum,
2687
+ noUseOrgNum: noUseOrgNum,
2688
+ selectOrgUserNum: selectUserNum,
2689
+ navCommonList: navList,
2690
+ isShowNav: true,
2691
+ isShowCheckAll: isShowCheckAll
2692
+ };
2693
+ } else {
2694
+ stateParam = {
2695
+ orgList: orgList,
2696
+ orgUserList: userList,
2697
+ selectOrgNum: selectOrgNum,
2698
+ noUseOrgNum: noUseOrgNum,
2699
+ selectOrgUserNum: selectUserNum,
2700
+ navOrgList: navList,
2701
+ isShowNav: true,
2702
+ isShowCheckAll: isShowCheckAll
2703
+ };
2704
+ }
2705
+
2706
+ t.setState(stateParam, function () {
2461
2707
  t.instance.update(t.getContent());
2462
2708
  });
2463
2709
  }).catch(function (error) {
@@ -2841,9 +3087,9 @@ var Page = function (_React$Component) {
2841
3087
  }
2842
3088
  }
2843
3089
  navList.push(currentPoliticalOutlook);
2844
- var isShowCheckAll = true;
3090
+ var isShowCheckAll = true;var isShowThisOrg = true;
2845
3091
  if (this.props.checkType == "radio") {
2846
- isShowCheckAll = false;
3092
+ isShowCheckAll = false;isShowThisOrg = false;
2847
3093
  }
2848
3094
  //获取下级组织数据
2849
3095
  var t = this;
@@ -2879,7 +3125,7 @@ var Page = function (_React$Component) {
2879
3125
  if (userList == null || userList == undefined) {
2880
3126
  userList = [];
2881
3127
  } else {
2882
- if (chooseType.indexOf("userNotPersonGroup") >= 0 || chooseType.indexOf("userAndPersonGroup") >= 0 || true) {
3128
+ if (chooseType.indexOf("userNotPoliticalOutlook") >= 0 || chooseType.indexOf("userAndPoliticalOutlook") >= 0 || true) {
2883
3129
  var selectUsers = t.state.selectedList.selectUsers;
2884
3130
  selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
2885
3131
  if (selectUserNum != userList.length) {
@@ -2905,7 +3151,8 @@ var Page = function (_React$Component) {
2905
3151
  selectPoliticalOutlookUserNum: selectUserNum,
2906
3152
  navPoliticalOutlookList: navList,
2907
3153
  isShowNav: true,
2908
- isShowCheckAll: isShowCheckAll
3154
+ isShowCheckAll: isShowCheckAll,
3155
+ isShowThisOrg: isShowThisOrg
2909
3156
  }, function () {
2910
3157
  t.instance.update(t.getContent());
2911
3158
  });
@@ -2921,13 +3168,14 @@ var Page = function (_React$Component) {
2921
3168
 
2922
3169
  }, {
2923
3170
  key: 'handleGroupShow',
2924
- value: function handleGroupShow(groupId) {
3171
+ value: function handleGroupShow(groupId, group, from) {
2925
3172
  var chooseType = this.getChooseType();
2926
3173
  var groupList = this.state.groupList;
2927
3174
  var groupUserList = this.state.groupUserList;
2928
3175
  var navList = this.state.navGroupList;
2929
3176
  var selectGroupNum = 0,
2930
3177
  noUseGroupNum = 0;
3178
+
2931
3179
  var index = navList.length - 1;
2932
3180
  var currentGroup = {};
2933
3181
  for (var i = 0; i < groupList.length; i++) {
@@ -3017,42 +3265,302 @@ var Page = function (_React$Component) {
3017
3265
  });
3018
3266
  }
3019
3267
 
3020
- //单个选中方法
3268
+ //常用点击
3021
3269
 
3022
3270
  }, {
3023
- key: 'checkOneItem',
3024
- value: function checkOneItem(canUse, checked, selectData, dataList, checkType, total, selectNum, index, scopeList, type) {
3025
- var result = { "total": total, selectNum: selectNum };
3026
- if (canUse == "1") {
3027
- if (checked) {
3028
- if (checkType == "radio") {
3029
- if (selectData.length == 0 && total == 0) {
3030
- total++;
3271
+ key: 'handleCommonShow',
3272
+ value: function handleCommonShow(itemId, item, from, navType) {
3273
+ var chooseType = this.getChooseType();
3274
+ var itemList = [];
3275
+ var navList = [];
3276
+ var selectItemNum = 0,
3277
+ noUseItemNum = 0,
3278
+ selectOrgUserNum = 0;
3279
+ // var orgUserList = this.state.orgUserList;
3280
+ if (from == "common") {
3281
+ itemList = this.state.commonTreeData;
3282
+ navList = this.state.navCommonList;
3283
+ } else if (from == "org") {
3284
+ itemList = this.state.orgList;
3285
+ navList = this.state.navOrgList;
3286
+ } else if (from == "group") {
3287
+ itemList = this.state.groupList;
3288
+ navList = this.state.navGroupList;
3289
+ } else if (from == "station") {
3290
+ itemList = this.state.stationList;
3291
+ navList = this.state.navStationList;
3292
+ } else if (from == "role") {
3293
+ itemList = this.state.roleList;
3294
+ // navList = this.state.navRoleList;
3295
+ }
3296
+
3297
+ var index = navList.length - 1;
3298
+ var currentItem = {};
3299
+ for (var i = 0; i < itemList.length; i++) {
3300
+ if (from == "common") {
3301
+ if (itemList[i].scopeValue == itemId) {
3302
+ currentItem = itemList[i];
3303
+ }
3304
+ } else if (from == "org") {
3305
+ if (itemList[i].id == itemId) {
3306
+ currentItem = itemList[i];
3307
+ }
3308
+ } else if (from == "group") {
3309
+ if (itemList[i].id == itemId) {
3310
+ currentItem = itemList[i];
3311
+ }
3312
+ } else if (from == "station") {
3313
+ if (itemList[i].id == itemId) {
3314
+ currentItem = itemList[i];
3315
+ }
3316
+ } else if (from == "role") {
3317
+ if (itemList[i].id == itemId) {
3318
+ currentItem = itemList[i];
3319
+ }
3320
+ }
3321
+ if (navList.length > 0) {
3322
+ if (from == "common") {
3323
+ if (navList[index].scopeValue == itemList[i].scopeValue) {
3324
+ navList.splice(index, 1);
3325
+ break;
3031
3326
  }
3032
- selectNum = 1;
3033
- selectData[0] = dataList[index];
3034
- for (var i = 0; i < dataList.length; i++) {
3035
- if (dataList[i].checked && i != index) {
3036
- dataList[i].checked = false;
3037
- break;
3038
- }
3327
+ } else if (from == "org") {
3328
+ if (navList[index].id == itemList[i].id) {
3329
+ navList.splice(index, 1);
3330
+ break;
3331
+ }
3332
+ } else if (from == "group") {
3333
+ if (navList[index].id == itemList[i].id) {
3334
+ navList.splice(index, 1);
3335
+ break;
3039
3336
  }
3040
- } else {
3041
- total++;
3042
- selectNum++;
3043
- selectData.push(dataList[index]);
3044
3337
  }
3045
- var scope = { "scopeValue": dataList[index].id };
3046
- if (type == "user") {
3047
- scope.scopeType = "user";
3048
- scope.scopeName = dataList[index].userName;
3049
- } else if (type == "org") {
3050
- scope.scopeType = "org";
3051
- scope.scopeName = dataList[index].orgName;
3052
- scope.orgType = dataList[index].orgType;
3053
- } else if (type == "role") {
3054
- scope.scopeType = "role";
3055
- scope.scopeName = dataList[index].roleName;
3338
+ } else {
3339
+ break;
3340
+ }
3341
+ }
3342
+ navList.push(currentItem);
3343
+ var isShowCheckAll = true;
3344
+ if (this.props.checkType == "radio") {
3345
+ isShowCheckAll = false;
3346
+ }
3347
+ //获取下级组织数据
3348
+ var t = this;
3349
+ var type = "";
3350
+ var serach = "";
3351
+ if (from == "common") {
3352
+ type = navType;
3353
+ serach = this.state.commonName;
3354
+ } else if (from == "org") {
3355
+ type = "org";
3356
+ serach = this.state.orgName;
3357
+ } else if (from == "group") {
3358
+ type = "group";
3359
+ serach = this.state.groupName;
3360
+ }
3361
+ var url = t.getFetchUrl(type, itemId, serach, true, true);
3362
+ fetch(url, {
3363
+ method: "GET",
3364
+ mode: "cors",
3365
+ headers: {
3366
+ 'Accept': 'application/json, text/plain, */*',
3367
+ 'Content-Type': 'application/x-www-form-urlencoded'
3368
+ }
3369
+ }).then(function (response) {
3370
+ return response.json();
3371
+ }).then(function (result) {
3372
+ //alert(JSON.stringify(result));
3373
+ //console.log("fetch请求数据"+JSON.stringify(result));
3374
+ var itemList = undefined;
3375
+ if (from == "common") {
3376
+ if (navType == "org") {
3377
+ itemList = result.data.orgList;
3378
+ } else if (navType == "group") {
3379
+ itemList = result.data.groupList;
3380
+ }
3381
+ } else if (from == "org") {
3382
+ if (item && item.isCur) {
3383
+ itemList = [];
3384
+ } else {
3385
+ itemList = result.data.orgList;
3386
+ }
3387
+ } else if (from == "group") {
3388
+ itemList = result.data.groupList;
3389
+ }
3390
+
3391
+ var userList = result.data.userList;
3392
+ if (from == "org") {
3393
+ if (itemList == undefined && userList == undefined) {
3394
+ orgList = result.data;
3395
+ }
3396
+ }
3397
+ var checkAllItem = true;
3398
+ if (itemList == null || itemList == undefined) {
3399
+ itemList = [];
3400
+ } else {
3401
+ if (from == "group") {
3402
+ if (chooseType.indexOf("userNotGroup") < 0) {
3403
+ var selectGroups = t.state.selectedList.selectGroups;
3404
+ selectItemNum = t.dataIsChecked(itemList, selectGroups, selectItemNum);
3405
+ noUseItemNum = t.countNoUseNum(itemList);
3406
+ if (selectItemNum != itemList.length - noUseItemNum) {
3407
+ checkAllItem = false;
3408
+ }
3409
+ }
3410
+ } else if (from == "org") {
3411
+ if (chooseType.indexOf("userNotOrg") < 0) {
3412
+ var selectOrgs = t.state.selectedList.selectOrgs;
3413
+ selectItemNum = t.dataIsChecked(itemList, selectOrgs, selectItemNum);
3414
+ noUseItemNum = t.countNoUseNum(itemList);
3415
+ if (selectItemNum != itemList.length - noUseItemNum) {
3416
+ checkAllItem = false;
3417
+ }
3418
+ }
3419
+ }
3420
+ }
3421
+ var selectUserNum = 0;
3422
+ var checkAllUser = true;
3423
+ if (userList == null || userList == undefined) {
3424
+ userList = [];
3425
+ } else {
3426
+ if (from == "group") {
3427
+ if (chooseType.indexOf("userNotGroup") >= 0 || chooseType.indexOf("userAndGroup") >= 0) {
3428
+ var selectUsers = t.state.selectedList.selectUsers;
3429
+ selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
3430
+ if (selectUserNum != userList.length) {
3431
+ checkAllUser = false;
3432
+ }
3433
+ }
3434
+ } else {
3435
+ if (chooseType.indexOf("userNotOrg") >= 0 || chooseType.indexOf("userAndOrg") >= 0) {
3436
+ var selectUsers = t.state.selectedList.selectUsers;
3437
+ selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
3438
+ if (selectUserNum != userList.length) {
3439
+ checkAllUser = false;
3440
+ }
3441
+ }
3442
+ }
3443
+ }
3444
+ if (itemList.length == noUseItemNum && userList.length == 0) {
3445
+ //全部不可选
3446
+ navList[navList.length - 1].canUse = "0";
3447
+ } else {
3448
+ //如果是我的部门.
3449
+ if (item && item.isCur) {
3450
+ navList[navList.length - 1].canUse = "0";
3451
+ } else {
3452
+ navList[navList.length - 1].canUse = "1";
3453
+ }
3454
+ }
3455
+ if (checkAllUser && checkAllItem) {
3456
+ navList[navList.length - 1].checkAll = true;
3457
+ }
3458
+ var stateParam = {};
3459
+
3460
+ if (from == "common") {
3461
+ var commonTreeData = [];
3462
+ var commonUsedData = [];
3463
+ for (var i = 0; i < itemList.length; i++) {
3464
+ var data = {};
3465
+ if (navType == "org") {
3466
+ data = {
3467
+ scopeType: navType,
3468
+ scopeName: itemList[i].orgName,
3469
+ scopeValue: itemList[i].id,
3470
+ checked: itemList[i].checked
3471
+ };
3472
+ } else if (navType == "group") {
3473
+ data = {
3474
+ scopeType: navType,
3475
+ scopeName: itemList[i].groupName,
3476
+ scopeValue: itemList[i].id,
3477
+ checked: itemList[i].checked
3478
+ };
3479
+ }
3480
+ commonTreeData.push(data);
3481
+ }
3482
+ for (var i = 0; i < userList.length; i++) {
3483
+ var data = {
3484
+ scopeType: "user",
3485
+ scopeName: userList[i].userName,
3486
+ scopeValue: userList[i].id,
3487
+ checked: userList[i].checked
3488
+ };
3489
+ commonUsedData.push(data);
3490
+ }
3491
+ stateParam = {
3492
+ commonTreeData: commonTreeData,
3493
+ commonUsedData: commonUsedData,
3494
+ navCommonList: navList,
3495
+ isShowNav: true,
3496
+ isShowCheckAll: isShowCheckAll
3497
+ };
3498
+ if (navType == "org") {
3499
+ stateParam.noUseOrgNum = noUseItemNum;
3500
+ stateParam.selectOrgNum = selectItemNum;
3501
+ stateParam.selectOrgUserNum = selectUserNum;
3502
+ } else if (navType == "group") {
3503
+ stateParam.noUseGroupNum = noUseItemNum;
3504
+ stateParam.selectGroupNum = selectItemNum;
3505
+ stateParam.selectGroupUserNum = selectUserNum;
3506
+ }
3507
+ } else {
3508
+ stateParam = {
3509
+ orgList: orgList,
3510
+ orgUserList: userList,
3511
+ selectOrgNum: selectOrgNum,
3512
+ noUseOrgNum: noUseOrgNum,
3513
+ selectOrgUserNum: selectUserNum,
3514
+ navOrgList: navList,
3515
+ isShowNav: true,
3516
+ isShowCheckAll: isShowCheckAll
3517
+ };
3518
+ }
3519
+
3520
+ t.setState(stateParam, function () {
3521
+ t.instance.update(t.getContent());
3522
+ });
3523
+ }).catch(function (error) {
3524
+ alert("1322错误:" + error);
3525
+ });
3526
+ }
3527
+
3528
+ //单个选中方法
3529
+
3530
+ }, {
3531
+ key: 'checkOneItem',
3532
+ value: function checkOneItem(canUse, checked, selectData, dataList, checkType, total, selectNum, index, scopeList, type) {
3533
+ var result = { "total": total, selectNum: selectNum };
3534
+ if (canUse == "1") {
3535
+ if (checked) {
3536
+ if (checkType == "radio") {
3537
+ if (selectData.length == 0 && total == 0) {
3538
+ total++;
3539
+ }
3540
+ selectNum = 1;
3541
+ selectData[0] = dataList[index];
3542
+ for (var i = 0; i < dataList.length; i++) {
3543
+ if (dataList[i].checked && i != index) {
3544
+ dataList[i].checked = false;
3545
+ break;
3546
+ }
3547
+ }
3548
+ } else {
3549
+ total++;
3550
+ selectNum++;
3551
+ selectData.push(dataList[index]);
3552
+ }
3553
+ var scope = { "scopeValue": dataList[index].id };
3554
+ if (type == "user") {
3555
+ scope.scopeType = "user";
3556
+ scope.scopeName = dataList[index].userName;
3557
+ } else if (type == "org") {
3558
+ scope.scopeType = "org";
3559
+ scope.scopeName = dataList[index].orgName;
3560
+ scope.orgType = dataList[index].orgType;
3561
+ } else if (type == "role") {
3562
+ scope.scopeType = "role";
3563
+ scope.scopeName = dataList[index].roleName;
3056
3564
  } else if (type == "station") {
3057
3565
  scope.scopeType = "station";
3058
3566
  scope.scopeName = dataList[index].stationName;
@@ -3157,7 +3665,7 @@ var Page = function (_React$Component) {
3157
3665
  }, {
3158
3666
  key: 'checkItemMember',
3159
3667
  value: function checkItemMember(index, type) {
3160
- var _this3 = this;
3668
+ var _this4 = this;
3161
3669
 
3162
3670
  var t = this;
3163
3671
  var checkType = this.props.checkType;
@@ -3220,7 +3728,7 @@ var Page = function (_React$Component) {
3220
3728
  selectedList: selectedList,
3221
3729
  scopeList: scopeList
3222
3730
  }, function () {
3223
- _this3.instance.update(_this3.getContent(), true);
3731
+ _this4.instance.update(_this4.getContent(), true);
3224
3732
  });
3225
3733
  } else if ("user" == type) {
3226
3734
  var userList = t.state.userList;
@@ -3249,7 +3757,7 @@ var Page = function (_React$Component) {
3249
3757
  selectedList: selectedList,
3250
3758
  scopeList: scopeList
3251
3759
  }, function () {
3252
- _this3.instance.update(_this3.getContent(), true);
3760
+ _this4.instance.update(_this4.getContent(), true);
3253
3761
  });
3254
3762
  } else if ("org" == type) {
3255
3763
  var orgList = t.state.orgList;
@@ -3286,11 +3794,18 @@ var Page = function (_React$Component) {
3286
3794
  selectedList: selectedList,
3287
3795
  scopeList: scopeList
3288
3796
  }, function () {
3289
- _this3.instance.update(_this3.getContent(), true);
3797
+ _this4.instance.update(_this4.getContent(), true);
3290
3798
  });
3291
3799
  } else if ("orgUser" == type) {
3292
3800
  var orgUserList = t.state.orgUserList;
3293
- orgUserList[index].checked = !orgUserList[index].checked;
3801
+ // orgUserList[index].checked = !orgUserList[index].checked;
3802
+
3803
+ var checkUserId = orgUserList[index].id;
3804
+ orgUserList.map(function (orgUserListItem) {
3805
+ if (orgUserListItem.id == checkUserId) {
3806
+ orgUserListItem.checked = !orgUserListItem.checked;
3807
+ }
3808
+ });
3294
3809
  var total = t.state.total;
3295
3810
  var selectOrgUserNum = t.state.selectOrgUserNum; //当前组织下选中的用户数量
3296
3811
  var selectUsers = selectedList.selectUsers;
@@ -3324,7 +3839,7 @@ var Page = function (_React$Component) {
3324
3839
  selectedList: selectedList,
3325
3840
  scopeList: scopeList
3326
3841
  }, function () {
3327
- _this3.instance.update(_this3.getContent(), true);
3842
+ _this4.instance.update(_this4.getContent(), true);
3328
3843
  });
3329
3844
  } else if ("role" == type) {
3330
3845
  var roleList = t.state.roleList;
@@ -3353,7 +3868,7 @@ var Page = function (_React$Component) {
3353
3868
  roleCheckAll: roleCheckAll,
3354
3869
  scopeList: scopeList
3355
3870
  }, function () {
3356
- _this3.instance.update(_this3.getContent(), true);
3871
+ _this4.instance.update(_this4.getContent(), true);
3357
3872
  });
3358
3873
  } else if ("station" == type) {
3359
3874
  var stationList = t.state.stationList;
@@ -3383,7 +3898,7 @@ var Page = function (_React$Component) {
3383
3898
  navStationList: navList,
3384
3899
  scopeList: scopeList
3385
3900
  }, function () {
3386
- _this3.instance.update(_this3.getContent(), true);
3901
+ _this4.instance.update(_this4.getContent(), true);
3387
3902
  });
3388
3903
  } else if ("stationUser" == type) {
3389
3904
  var stationUserList = t.state.stationUserList;
@@ -3457,7 +3972,7 @@ var Page = function (_React$Component) {
3457
3972
  navGroupList: navList,
3458
3973
  scopeList: scopeList
3459
3974
  }, function () {
3460
- _this3.instance.update(_this3.getContent(), true);
3975
+ _this4.instance.update(_this4.getContent(), true);
3461
3976
  });
3462
3977
  } else if ("groupUser" == type) {
3463
3978
  var groupUserList = t.state.groupUserList;
@@ -3531,7 +4046,7 @@ var Page = function (_React$Component) {
3531
4046
  navPersonalGroupList: navList,
3532
4047
  scopeList: scopeList
3533
4048
  }, function () {
3534
- _this3.instance.update(_this3.getContent(), true);
4049
+ _this4.instance.update(_this4.getContent(), true);
3535
4050
  });
3536
4051
  } else if ("personalGroupUser" == type) {
3537
4052
  var personalGroupUserList = t.state.personalGroupUserList;
@@ -3605,7 +4120,7 @@ var Page = function (_React$Component) {
3605
4120
  navDutyList: navList,
3606
4121
  scopeList: scopeList
3607
4122
  }, function () {
3608
- _this3.instance.update(_this3.getContent(), true);
4123
+ _this4.instance.update(_this4.getContent(), true);
3609
4124
  });
3610
4125
  } else if ("dutyUser" == type) {
3611
4126
  var dutyUserList = t.state.dutyUserList;
@@ -3679,7 +4194,7 @@ var Page = function (_React$Component) {
3679
4194
  navPoliticalOutlookList: navList,
3680
4195
  scopeList: scopeList
3681
4196
  }, function () {
3682
- _this3.instance.update(_this3.getContent(), true);
4197
+ _this4.instance.update(_this4.getContent(), true);
3683
4198
  });
3684
4199
  } else if ("politicalOutlookUser" == type) {
3685
4200
  var politicalOutlookUserList = t.state.politicalOutlookUserList;
@@ -3749,13 +4264,30 @@ var Page = function (_React$Component) {
3749
4264
  t.instance.update(t.getContent());
3750
4265
  });
3751
4266
  }
4267
+ //新增 4.4 处理 orgNamePath 显示最后层级
3752
4268
 
4269
+ }, {
4270
+ key: 'handleOrgNamePath',
4271
+ value: function handleOrgNamePath(value) {
4272
+ var orgNamePath = '';
4273
+ if (value) {
4274
+ if (value.indexOf('/') > 0) {
4275
+ var arr = value.split('/');
4276
+ orgNamePath = arr[arr.length - 1];
4277
+ return orgNamePath;
4278
+ } else {
4279
+ return value;
4280
+ }
4281
+ } else {
4282
+ return '';
4283
+ }
4284
+ }
3753
4285
  //删除已选选项
3754
4286
 
3755
4287
  }, {
3756
4288
  key: 'deleteItemMember',
3757
4289
  value: function deleteItemMember(index, type) {
3758
- var _this4 = this;
4290
+ var _this5 = this;
3759
4291
 
3760
4292
  var selectedList = this.state.selectedList;
3761
4293
  var scopeList = this.state.scopeList;
@@ -3945,7 +4477,7 @@ var Page = function (_React$Component) {
3945
4477
  navGroupList: navGroupList,
3946
4478
  scopeList: scopeList
3947
4479
  }, function () {
3948
- _this4.instance.update(_this4.getContent());
4480
+ _this5.instance.update(_this5.getContent());
3949
4481
  });
3950
4482
  } else if (type == "org") {
3951
4483
  var selectOrgs = selectedList.selectOrgs;
@@ -4004,7 +4536,7 @@ var Page = function (_React$Component) {
4004
4536
  navOrgList: navList,
4005
4537
  scopeList: scopeList
4006
4538
  }, function () {
4007
- _this4.instance.update(_this4.getContent());
4539
+ _this5.instance.update(_this5.getContent());
4008
4540
  });
4009
4541
  } else if (type == "role") {
4010
4542
  var selectRoles = selectedList.selectRoles;
@@ -4052,7 +4584,7 @@ var Page = function (_React$Component) {
4052
4584
  roleCheckAll: roleCheckAll,
4053
4585
  scopeList: scopeList
4054
4586
  }, function () {
4055
- _this4.instance.update(_this4.getContent());
4587
+ _this5.instance.update(_this5.getContent());
4056
4588
  });
4057
4589
  } else if (type == "station") {
4058
4590
  var selectStations = selectedList.selectStations;
@@ -4104,7 +4636,7 @@ var Page = function (_React$Component) {
4104
4636
  navStationList: navList,
4105
4637
  scopeList: scopeList
4106
4638
  }, function () {
4107
- _this4.instance.update(_this4.getContent());
4639
+ _this5.instance.update(_this5.getContent());
4108
4640
  });
4109
4641
  } else if (type == "group") {
4110
4642
  var selectGroups = selectedList.selectGroups;
@@ -4159,7 +4691,7 @@ var Page = function (_React$Component) {
4159
4691
  navGroupList: navList,
4160
4692
  scopeList: scopeList
4161
4693
  }, function () {
4162
- _this4.instance.update(_this4.getContent());
4694
+ _this5.instance.update(_this5.getContent());
4163
4695
  });
4164
4696
  } else if (type == "personGroup") {
4165
4697
  var selectPersonalGroups = selectedList.selectPersonalGroups;
@@ -4214,7 +4746,7 @@ var Page = function (_React$Component) {
4214
4746
  navPersonalGroupList: navList,
4215
4747
  scopeList: scopeList
4216
4748
  }, function () {
4217
- _this4.instance.update(_this4.getContent());
4749
+ _this5.instance.update(_this5.getContent());
4218
4750
  });
4219
4751
  } else if (type == "duty") {
4220
4752
  var selectDutys = selectedList.selectDutys;
@@ -4269,7 +4801,7 @@ var Page = function (_React$Component) {
4269
4801
  navDutyList: navList,
4270
4802
  scopeList: scopeList
4271
4803
  }, function () {
4272
- _this4.instance.update(_this4.getContent());
4804
+ _this5.instance.update(_this5.getContent());
4273
4805
  });
4274
4806
  } else if (type == "politicalOutlook") {
4275
4807
  var selectPoliticalOutlooks = selectedList.selectPoliticalOutlooks;
@@ -4324,7 +4856,7 @@ var Page = function (_React$Component) {
4324
4856
  navPoliticalOutlookList: navList,
4325
4857
  scopeList: scopeList
4326
4858
  }, function () {
4327
- _this4.instance.update(_this4.getContent());
4859
+ _this5.instance.update(_this5.getContent());
4328
4860
  });
4329
4861
  }
4330
4862
  }
@@ -4745,7 +5277,7 @@ var Page = function (_React$Component) {
4745
5277
 
4746
5278
  }, {
4747
5279
  key: 'getSelectData',
4748
- value: function getSelectData() {
5280
+ value: function getSelectData(initCommon) {
4749
5281
  var code = this.getRealCode().split(",");
4750
5282
  var type = code[0];
4751
5283
  var realUserCode = "user";
@@ -4757,37 +5289,55 @@ var Page = function (_React$Component) {
4757
5289
  type = "org";
4758
5290
  }
4759
5291
  var t = this;
4760
- if (type == "common") {
5292
+ if (type == "common" || initCommon == "1") {
4761
5293
  var _checkType = this.props.checkType;
4762
5294
  var commonUsedData = [];
4763
- var commonUsedPropsData = this.props.commonUsedData;
5295
+ var commonTreeData = [];
5296
+ //常用新的逻辑
5297
+ var commonUsedPropsData = this.props.commonTreeData;
5298
+ var commonUsedDataSearch = this.props.commonUsedData; //用来搜索
4764
5299
  var selectCommonNum = 0;
4765
5300
  var commonCheckAll = false;
4766
5301
  var commonDefaultData = [];
4767
5302
  if (commonUsedPropsData != null && commonUsedPropsData != undefined && commonUsedPropsData.length > 0) {
4768
5303
  for (var i = 0; i < commonUsedPropsData.length; i++) {
4769
- var data = {
4770
- scopeType: commonUsedPropsData[i].scopeType,
4771
- scopeName: commonUsedPropsData[i].scopeName,
4772
- scopeValue: commonUsedPropsData[i].scopeValue,
4773
- checked: commonUsedPropsData[i].checked,
4774
- imageId: commonUsedPropsData[i].imageId,
4775
- orgNamePath: commonUsedPropsData[i].orgNamePath
4776
- };
4777
- commonUsedData.push(data);
5304
+ if (commonUsedPropsData[i].scopeType == "user") {
5305
+ var data = {
5306
+ scopeType: commonUsedPropsData[i].scopeType,
5307
+ scopeName: commonUsedPropsData[i].scopeName,
5308
+ scopeValue: commonUsedPropsData[i].scopeValue,
5309
+ checked: commonUsedPropsData[i].checked,
5310
+ imageId: commonUsedPropsData[i].imageId,
5311
+ orgNamePath: commonUsedPropsData[i].orgNamePath
5312
+ };
5313
+ commonUsedData.push(data);
5314
+ } else {
5315
+ var data = {
5316
+ scopeType: commonUsedPropsData[i].scopeType,
5317
+ scopeName: commonUsedPropsData[i].scopeName,
5318
+ scopeValue: commonUsedPropsData[i].scopeValue,
5319
+ checked: commonUsedPropsData[i].checked,
5320
+ imageId: commonUsedPropsData[i].imageId,
5321
+ orgNamePath: commonUsedPropsData[i].orgNamePath
5322
+ };
5323
+ commonTreeData.push(data);
5324
+ }
4778
5325
  }
4779
5326
  selectCommonNum = t.commonDataChecked(commonUsedData);
4780
5327
  if (selectCommonNum == commonUsedData.length) {
4781
5328
  commonCheckAll = true;
4782
5329
  }
4783
- for (var i = 0; i < commonUsedData.length; i++) {
5330
+ }
5331
+
5332
+ if (commonUsedDataSearch != null && commonUsedDataSearch != undefined && commonUsedDataSearch.length > 0) {
5333
+ for (var i = 0; i < commonUsedDataSearch.length; i++) {
4784
5334
  var data = {
4785
- scopeType: commonUsedData[i].scopeType,
4786
- scopeName: commonUsedData[i].scopeName,
4787
- scopeValue: commonUsedData[i].scopeValue,
4788
- checked: commonUsedData[i].checked,
4789
- imageId: commonUsedData[i].imageId,
4790
- orgNamePath: commonUsedData[i].orgNamePath
5335
+ scopeType: commonUsedDataSearch[i].scopeType,
5336
+ scopeName: commonUsedDataSearch[i].scopeName,
5337
+ scopeValue: commonUsedDataSearch[i].scopeValue,
5338
+ checked: commonUsedDataSearch[i].checked,
5339
+ imageId: commonUsedDataSearch[i].imageId,
5340
+ orgNamePath: commonUsedDataSearch[i].orgNamePath
4791
5341
  };
4792
5342
  commonDefaultData.push(data);
4793
5343
  }
@@ -4796,14 +5346,23 @@ var Page = function (_React$Component) {
4796
5346
  if (_checkType == "radio") {
4797
5347
  isShowCheckAll = false;
4798
5348
  }
4799
- t.setState({
5349
+ var navList = [];
5350
+ var stateParam = {
5351
+ commonTreeData: commonTreeData,
4800
5352
  commonUsedData: commonUsedData,
4801
5353
  commonDefaultData: commonDefaultData,
4802
5354
  selectCommonNum: selectCommonNum,
5355
+ navCommonList: navList,
4803
5356
  isShowCheckAll: isShowCheckAll,
4804
5357
  commonCheckAll: commonCheckAll,
4805
5358
  activeKey: type
4806
- }, function () {
5359
+ };
5360
+ navList.push({ "scopeValue": "0", "scopeName": "全部", "checkAll": false });
5361
+ if (initCommon) {
5362
+ stateParam.isShowNav = false;
5363
+ }
5364
+
5365
+ t.setState(stateParam, function () {
4807
5366
  t.instance.update(t.getContent());
4808
5367
  });
4809
5368
  } else if (type == "user") {
@@ -4826,7 +5385,7 @@ var Page = function (_React$Component) {
4826
5385
  }
4827
5386
  t.setState({
4828
5387
  userOrgList: orgList,
4829
- activeKey: type
5388
+ activeKey: "org"
4830
5389
  }, function () {
4831
5390
  t.instance.update(t.getContent());
4832
5391
  });
@@ -4888,7 +5447,7 @@ var Page = function (_React$Component) {
4888
5447
  }).catch(function (error) {
4889
5448
  alert("2662错误:" + error);
4890
5449
  });
4891
- } else if (type == "role") {
5450
+ } else if (type.indexOf("role") >= 0 || type.indexOf("Role") >= 0) {
4892
5451
  var checkType = this.props.checkType;
4893
5452
  var isShowCheckAll = true;
4894
5453
  if (checkType == "radio") {
@@ -4931,7 +5490,7 @@ var Page = function (_React$Component) {
4931
5490
  }).catch(function (error) {
4932
5491
  alert("2700错误:" + error);
4933
5492
  });
4934
- } else if (type == "station") {
5493
+ } else if (type.indexOf("station") >= 0 || type.indexOf("Station") >= 0) {
4935
5494
  var checkType = this.props.checkType;
4936
5495
  var isShowCheckAll = true;
4937
5496
  if (checkType == "radio") {
@@ -4950,7 +5509,7 @@ var Page = function (_React$Component) {
4950
5509
  }).then(function (result) {
4951
5510
  //alert(JSON.stringify(result));
4952
5511
  //console.log("fetch请求数据"+JSON.stringify(result));
4953
- var stationList = result.data;
5512
+ var stationList = result.data.stationList;
4954
5513
  var selectStaNum = 0,
4955
5514
  noUseStationNum = 0;
4956
5515
  var navList = [{ "id": "0", "orgName": "全部", "checkAll": false }];
@@ -4976,14 +5535,14 @@ var Page = function (_React$Component) {
4976
5535
  noUseStationNum: noUseStationNum,
4977
5536
  navStationList: navList,
4978
5537
  isShowCheckAll: isShowCheckAll,
4979
- activeKey: type
5538
+ activeKey: "station"
4980
5539
  }, function () {
4981
5540
  t.instance.update(t.getContent());
4982
5541
  });
4983
5542
  }).catch(function (error) {
4984
5543
  alert("2745错误:" + error);
4985
5544
  });
4986
- } else if (type == "group") {
5545
+ } else if ((type.indexOf("group") >= 0 || type.indexOf("Group") >= 0) && type.indexOf("person") < 0) {
4987
5546
  var checkType = this.props.checkType;
4988
5547
  var isShowCheckAll = true;
4989
5548
  if (checkType == "radio") {
@@ -5030,14 +5589,14 @@ var Page = function (_React$Component) {
5030
5589
  selectGroupUserNum: 0,
5031
5590
  navGroupList: navList,
5032
5591
  isShowCheckAll: isShowCheckAll,
5033
- activeKey: type
5592
+ activeKey: "group"
5034
5593
  }, function () {
5035
5594
  t.instance.update(t.getContent());
5036
5595
  });
5037
5596
  }).catch(function (error) {
5038
5597
  alert("2792错误:" + error);
5039
5598
  });
5040
- } else if (type == "personGroup") {
5599
+ } else if (type.indexOf("personGroup") >= 0 || type.indexOf("PersonGroup") >= 0) {
5041
5600
  var checkType = this.props.checkType;
5042
5601
  var isShowCheckAll = true;
5043
5602
  if (checkType == "radio") {
@@ -5084,61 +5643,165 @@ var Page = function (_React$Component) {
5084
5643
  selectPersonalGroupUserNum: 0,
5085
5644
  navPersonalGroupList: navList,
5086
5645
  isShowCheckAll: isShowCheckAll,
5087
- activeKey: type
5646
+ activeKey: "personGroup"
5088
5647
  }, function () {
5089
5648
  t.instance.update(t.getContent());
5090
5649
  });
5091
5650
  }).catch(function (error) {
5092
5651
  alert("2792错误:" + error);
5093
5652
  });
5094
- }
5095
- }
5096
-
5097
- //获取当前用户组织信息(包含所有上级组织)
5098
-
5099
- }, {
5100
- key: 'getSelectMyOrgData',
5101
- value: function getSelectMyOrgData() {
5102
- var code = this.getRealCode().split(",");
5103
- var type = code[0];
5104
- var realUserCode = "user";
5105
- var chooseObj = this.props.chooseObj;
5106
- if (chooseObj) {
5107
- realUserCode = "userNotOrg";
5108
- }
5109
- if (type == realUserCode) {
5110
- type = "org";
5111
- }
5112
- var t = this;
5113
- var selectOrgNum = 0,
5114
- noUseOrgNum = 0;
5115
- var url = t.getFetchUrl("myOrg", '', '', false, false);
5116
-
5117
- fetch(url, {
5118
- method: "GET",
5119
- mode: "cors",
5120
- headers: {
5121
- 'Accept': 'application/json, text/plain, */*',
5122
- 'Content-Type': 'application/x-www-form-urlencoded'
5653
+ } else if (type == "duty" || type.indexOf("Duty") >= 0) {
5654
+ var checkType = this.props.checkType;
5655
+ var isShowCheckAll = true;
5656
+ if (checkType == "radio") {
5657
+ isShowCheckAll = false;
5123
5658
  }
5124
- }).then(function (response) {
5125
- return response.json();
5126
- }).then(function (result) {
5127
- var orgData = result.data;
5128
- var orgList = [];
5129
- var orgId = '';
5130
- var navOrgList = [{ "id": "0", "orgName": "全部", "checkAll": false, "canUse": "1" }];
5131
- if (orgData != null && orgData.length > 0) {
5132
- var len = orgData.length;
5133
- orgId = orgData[len - 1].id;
5134
- orgList.push(orgData[len - 1]);
5135
-
5136
- if (len > 1) {
5137
- for (var k = 0; k < len - 1; k++) {
5138
- navOrgList.push(orgData[k]);
5659
+ var url = t.getFetchUrl("duty", "", "", false, true);
5660
+ fetch(url, {
5661
+ method: "GET",
5662
+ mode: "cors",
5663
+ headers: {
5664
+ 'Accept': 'application/json, text/plain, */*',
5665
+ 'Content-Type': 'application/x-www-form-urlencoded'
5666
+ }
5667
+ }).then(function (response) {
5668
+ return response.json();
5669
+ }).then(function (result) {
5670
+ //alert(JSON.stringify(result));
5671
+ //console.log("fetch请求数据"+JSON.stringify(result));
5672
+ var dutyList = result.data.dutyList;
5673
+ var selectDutyNum = 0,
5674
+ noUseDutyNum = 0;
5675
+ var navList = [{ "id": "0", "orgName": "全部", "checkAll": false }];
5676
+ if (dutyList == null || dutyList == undefined) {
5677
+ dutyList = [];
5678
+ } else {
5679
+ var selectDutys = t.state.selectedList.selectDutys;
5680
+ selectDutyNum = t.dataIsChecked(dutyList, selectDutys, selectDutyNum);
5681
+ noUseDutyNum = t.countNoUseNum(dutyList); //不可选岗位数量
5682
+ if (dutyList.length == noUseDutyNum) {
5683
+ //全部不可选
5684
+ navList[0].canUse = "0";
5685
+ } else {
5686
+ navList[0].canUse = "1";
5687
+ if (selectDutyNum == dutyList.length - noUseDutyNum) {
5688
+ navList[0].checkAll = true;
5689
+ }
5139
5690
  }
5140
5691
  }
5141
- //[{"orgType":"1","orgName":"万户","pid":"4b42f2a0952711e8a71e000c29ee419e","id":"40289a3e650e47d301650e585f2e0001","canUse":"1","ddUid":"","checked":"false"}],
5692
+ t.setState({
5693
+ dutyList: dutyList,
5694
+ selectDutyNum: selectDutyNum,
5695
+ noUseDutyNum: noUseDutyNum,
5696
+ navDutyList: navList,
5697
+ isShowCheckAll: isShowCheckAll,
5698
+ activeKey: "duty"
5699
+ }, function () {
5700
+ t.instance.update(t.getContent());
5701
+ });
5702
+ }).catch(function (error) {
5703
+ alert("2745错误:" + error);
5704
+ });
5705
+ } else if (type == "politicalOutlook" || type.indexOf("PoliticalOutlook") >= 0) {
5706
+ var checkType = this.props.checkType;
5707
+ var isShowCheckAll = true;
5708
+ if (checkType == "radio") {
5709
+ isShowCheckAll = false;
5710
+ }
5711
+ var url = t.getFetchUrl("politicalOutlook", "", "", false, true);
5712
+ fetch(url, {
5713
+ method: "GET",
5714
+ mode: "cors",
5715
+ headers: {
5716
+ 'Accept': 'application/json, text/plain, */*',
5717
+ 'Content-Type': 'application/x-www-form-urlencoded'
5718
+ }
5719
+ }).then(function (response) {
5720
+ return response.json();
5721
+ }).then(function (result) {
5722
+ //alert(JSON.stringify(result));
5723
+ //console.log("fetch请求数据"+JSON.stringify(result));
5724
+ var politicalOutlookList = result.data.politicalOutlookList;
5725
+ var selectPoliticalOutlookNum = 0,
5726
+ noUsePoliticalOutlookNum = 0;
5727
+ var navList = [{ "id": "0", "orgName": "全部", "checkAll": false }];
5728
+ if (politicalOutlookList == null || politicalOutlookList == undefined) {
5729
+ politicalOutlookList = [];
5730
+ } else {
5731
+ var selectPoliticalOutlooks = t.state.selectedList.selectPoliticalOutlooks;
5732
+ selectPoliticalOutlookNum = t.dataIsChecked(politicalOutlookList, selectPoliticalOutlooks, selectPoliticalOutlookNum);
5733
+ noUsePoliticalOutlookNum = t.countNoUseNum(politicalOutlookList); //不可选岗位数量
5734
+ if (politicalOutlookList.length == noUsePoliticalOutlookNum) {
5735
+ //全部不可选
5736
+ navList[0].canUse = "0";
5737
+ } else {
5738
+ navList[0].canUse = "1";
5739
+ if (selectPoliticalOutlookNum == politicalOutlookList.length - noUsePoliticalOutlookNum) {
5740
+ navList[0].checkAll = true;
5741
+ }
5742
+ }
5743
+ }
5744
+ t.setState({
5745
+ politicalOutlookList: politicalOutlookList,
5746
+ selectPoliticalOutlookNum: selectPoliticalOutlookNum,
5747
+ noUsePoliticalOutlookNum: noUsePoliticalOutlookNum,
5748
+ navPoliticalOutlookList: navList,
5749
+ isShowCheckAll: isShowCheckAll,
5750
+ activeKey: "politicalOutlook"
5751
+ }, function () {
5752
+ t.instance.update(t.getContent());
5753
+ });
5754
+ }).catch(function (error) {
5755
+ alert("2745错误:" + error);
5756
+ });
5757
+ }
5758
+ }
5759
+
5760
+ //获取当前用户组织信息(包含所有上级组织)
5761
+
5762
+ }, {
5763
+ key: 'getSelectMyOrgData',
5764
+ value: function getSelectMyOrgData() {
5765
+ var code = this.getRealCode().split(",");
5766
+ var type = code[0];
5767
+ var realUserCode = "user";
5768
+ var chooseObj = this.props.chooseObj;
5769
+ if (chooseObj) {
5770
+ realUserCode = "userNotOrg";
5771
+ }
5772
+ if (type == realUserCode) {
5773
+ type = "org";
5774
+ }
5775
+ var t = this;
5776
+ var selectOrgNum = 0,
5777
+ noUseOrgNum = 0;
5778
+ var url = t.getFetchUrl("myOrg", '', '', false, false);
5779
+
5780
+ fetch(url, {
5781
+ method: "GET",
5782
+ mode: "cors",
5783
+ headers: {
5784
+ 'Accept': 'application/json, text/plain, */*',
5785
+ 'Content-Type': 'application/x-www-form-urlencoded'
5786
+ }
5787
+ }).then(function (response) {
5788
+ return response.json();
5789
+ }).then(function (result) {
5790
+ var orgData = result.data;
5791
+ var orgList = [];
5792
+ var orgId = '';
5793
+ var navOrgList = [{ "id": "0", "orgName": "全部", "checkAll": false, "canUse": "1" }];
5794
+ if (orgData != null && orgData.length > 0) {
5795
+ var len = orgData.length;
5796
+ orgId = orgData[len - 1].id;
5797
+ orgList.push(orgData[len - 1]);
5798
+
5799
+ if (len > 1) {
5800
+ for (var k = 0; k < len - 1; k++) {
5801
+ navOrgList.push(orgData[k]);
5802
+ }
5803
+ }
5804
+ //[{"orgType":"1","orgName":"万户","pid":"4b42f2a0952711e8a71e000c29ee419e","id":"40289a3e650e47d301650e585f2e0001","canUse":"1","ddUid":"","checked":"false"}],
5142
5805
  //[{"id":"0","orgName":"全部","checkAll":false,"canUse":"1"},{"orgType":"1","orgName":"默认单位","pid":"","id":"4b42f2a0952711e8a71e000c29ee419e","canUse":"1","ddUid":"","checked":"false"}],
5143
5806
  t.setState({
5144
5807
  orgList: orgList,
@@ -6068,162 +6731,356 @@ var Page = function (_React$Component) {
6068
6731
  return false;
6069
6732
  }
6070
6733
  var t = this;
6071
- if (searchType == "0" && value == "") {
6072
- return;
6073
- } else {
6074
- if (type == "common") {
6075
- var commonSearchData = [];
6076
- var commonUsedData = t.state.commonDefaultData;
6077
- if (searchType == "0" && value != "") {
6078
- if (commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0) {
6079
- for (var i = 0; i < commonUsedData.length; i++) {
6080
- if (commonUsedData[i].scopeName.indexOf(value) >= 0) {
6081
- commonSearchData.push(commonUsedData[i]);
6082
- }
6734
+ //if (searchType == "0" && value == "") {
6735
+ // if(type == "common"){
6736
+ // var commonUsedPropsData = this.props.commonTreeData;
6737
+ // if (commonUsedPropsData != null && commonUsedPropsData != undefined && commonUsedPropsData.length > 0) {
6738
+ // for (var i = 0; i < commonUsedPropsData.length; i++) {
6739
+ // if (commonUsedPropsData[i].scopeType == "user") {
6740
+ // var data = {
6741
+ // scopeType: commonUsedPropsData[i].scopeType,
6742
+ // scopeName: commonUsedPropsData[i].scopeName,
6743
+ // scopeValue: commonUsedPropsData[i].scopeValue,
6744
+ // checked: commonUsedPropsData[i].checked,
6745
+ // imageId: commonUsedPropsData[i].imageId,
6746
+ // orgNamePath: commonUsedPropsData[i].orgNamePath
6747
+ // };
6748
+ // commonSearchData.push(data);
6749
+ // } else {
6750
+ // var data = {
6751
+ // scopeType: commonUsedPropsData[i].scopeType,
6752
+ // scopeName: commonUsedPropsData[i].scopeName,
6753
+ // scopeValue: commonUsedPropsData[i].scopeValue,
6754
+ // checked: commonUsedPropsData[i].checked,
6755
+ // imageId: commonUsedPropsData[i].imageId,
6756
+ // orgNamePath: commonUsedPropsData[i].orgNamePath
6757
+ // };
6758
+ // commonTreeData.push(data);
6759
+ // }
6760
+ // }
6761
+ // }
6762
+ // }else{
6763
+ // return;
6764
+ // }
6765
+
6766
+ // } else {
6767
+ if (type == "common") {
6768
+ var commonSearchData = [];
6769
+ var commonTreeData = [];
6770
+ var commonUsedData = t.state.commonDefaultData;
6771
+ if (searchType == "0" && value != "") {
6772
+ if (commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0) {
6773
+ for (var i = 0; i < commonUsedData.length; i++) {
6774
+ if (commonUsedData[i].scopeName.indexOf(value) >= 0) {
6775
+ commonSearchData.push(commonUsedData[i]);
6083
6776
  }
6084
6777
  }
6085
- } else {
6086
- if (commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0) {
6087
- for (var i = 0; i < commonUsedData.length; i++) {
6088
- commonSearchData.push(commonUsedData[i]);
6778
+ }
6779
+ } else {
6780
+ // if (commonUsedData != null && commonUsedData != undefined && commonUsedData.length > 0) {
6781
+ // for (var i = 0; i < commonUsedData.length; i++) {
6782
+ // commonSearchData.push(commonUsedData[i]);
6783
+ // }
6784
+ // }
6785
+ var commonUsedPropsData = this.props.commonTreeData;
6786
+ if (commonUsedPropsData != null && commonUsedPropsData != undefined && commonUsedPropsData.length > 0) {
6787
+ for (var i = 0; i < commonUsedPropsData.length; i++) {
6788
+ if (commonUsedPropsData[i].scopeType == "user") {
6789
+ var data = {
6790
+ scopeType: commonUsedPropsData[i].scopeType,
6791
+ scopeName: commonUsedPropsData[i].scopeName,
6792
+ scopeValue: commonUsedPropsData[i].scopeValue,
6793
+ checked: commonUsedPropsData[i].checked,
6794
+ imageId: commonUsedPropsData[i].imageId,
6795
+ orgNamePath: commonUsedPropsData[i].orgNamePath
6796
+ };
6797
+ commonSearchData.push(data);
6798
+ } else {
6799
+ var data = {
6800
+ scopeType: commonUsedPropsData[i].scopeType,
6801
+ scopeName: commonUsedPropsData[i].scopeName,
6802
+ scopeValue: commonUsedPropsData[i].scopeValue,
6803
+ checked: commonUsedPropsData[i].checked,
6804
+ imageId: commonUsedPropsData[i].imageId,
6805
+ orgNamePath: commonUsedPropsData[i].orgNamePath
6806
+ };
6807
+ commonTreeData.push(data);
6089
6808
  }
6090
6809
  }
6091
6810
  }
6811
+ // selectCommonNum = t.commonDataChecked(commonUsedData);
6812
+ // if (selectCommonNum == commonUsedData.length) {
6813
+ // commonCheckAll = true;
6814
+ // }
6815
+
6816
+ }
6092
6817
 
6093
- var selectCommonNum = 0;
6094
- if (commonSearchData.length > 0) {
6095
- selectCommonNum = t.commonDataChecked(commonSearchData);
6818
+ var selectCommonNum = 0;
6819
+ if (commonSearchData.length > 0) {
6820
+ selectCommonNum = t.commonDataChecked(commonSearchData);
6821
+ }
6822
+ var commonCheckAll = false;
6823
+ if (commonSearchData != null && commonSearchData != undefined && selectCommonNum == commonSearchData.length) {
6824
+ commonCheckAll = true;
6825
+ }
6826
+ t.setState({
6827
+ commonUsedData: commonSearchData,
6828
+ commonTreeData: commonTreeData,
6829
+ selectCommonNum: selectCommonNum,
6830
+ isShowCheckAll: isShowCheckAll,
6831
+ commonCheckAll: commonCheckAll,
6832
+ commonName: value,
6833
+ isShowNav: false,
6834
+ activeKey: type
6835
+ }, function () {
6836
+ t.instance.update(t.getContent());
6837
+ });
6838
+ } else if (type == "user") {
6839
+ var hasSerValCurOrg = [];
6840
+ var url = "";
6841
+ if (searchType == "0" && value != "") {
6842
+ //搜索
6843
+ hasSerValCurOrg = t.getHasSearchValueInCurOrg(value);
6844
+ url = t.getFetchUrl("user", "", value, false, true);
6845
+ } else {
6846
+ hasSerValCurOrg = t.getHasSearchValueInCurOrg();
6847
+ url = t.getFetchUrl("org", "", "", false, false);
6848
+ }
6849
+ fetch(url, {
6850
+ method: "GET",
6851
+ mode: "cors",
6852
+ headers: {
6853
+ 'Accept': 'application/json, text/plain, */*',
6854
+ 'Content-Type': 'application/x-www-form-urlencoded'
6096
6855
  }
6097
- var commonCheckAll = false;
6098
- if (commonSearchData != null && commonSearchData != undefined && selectCommonNum == commonSearchData.length) {
6099
- commonCheckAll = true;
6856
+ }).then(function (response) {
6857
+ return response.json();
6858
+ }).then(function (result) {
6859
+ //alert(JSON.stringify(result));
6860
+ //console.log("fetch请求数据"+JSON.stringify(result));
6861
+ var orgList = [],
6862
+ userList = [];
6863
+ if (searchType == "0") {
6864
+ userList = result.data;
6865
+ } else {
6866
+ orgList = result.data;
6867
+ }
6868
+ if (searchType == "0" && value != "") {}
6869
+ if (orgList == null || orgList == undefined) {
6870
+ orgList = hasSerValCurOrg;
6871
+ } else {
6872
+ orgList = hasSerValCurOrg.concat(orgList);
6873
+ }
6874
+ var selectUserNum = 0;
6875
+ var navList = [];
6876
+ if (searchType == "0") {
6877
+ navList = [{ "id": "0", "userName": "全部", "checkAll": false }];
6878
+ }
6879
+ if (userList == null || userList == undefined) {
6880
+ userList = [];
6881
+ } else {
6882
+ var selectUsers = t.state.selectedList.selectUsers;
6883
+ selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
6884
+ if (selectUserNum == userList.length && searchType == "0") {
6885
+ navList[0].checkAll = true;
6886
+ }
6100
6887
  }
6101
6888
  t.setState({
6102
- commonUsedData: commonSearchData,
6103
- selectCommonNum: selectCommonNum,
6104
- isShowCheckAll: isShowCheckAll,
6105
- commonCheckAll: commonCheckAll,
6106
- commonName: value,
6889
+ userOrgList: orgList,
6890
+ userList: userList,
6891
+ selectUserNum: selectUserNum,
6892
+ userName: value,
6893
+ navUserList: navList,
6107
6894
  isShowNav: false,
6108
- activeKey: type
6895
+ isShowCheckAll: isShowCheckAll
6109
6896
  }, function () {
6110
6897
  t.instance.update(t.getContent());
6111
6898
  });
6112
- } else if (type == "user") {
6113
- var hasSerValCurOrg = [];
6114
- var url = "";
6115
- if (searchType == "0" && value != "") {
6116
- //搜索
6117
- hasSerValCurOrg = t.getHasSearchValueInCurOrg(value);
6118
- url = t.getFetchUrl("user", "", value, false, true);
6119
- } else {
6120
- hasSerValCurOrg = t.getHasSearchValueInCurOrg();
6121
- url = t.getFetchUrl("org", "", "", false, false);
6899
+ }).catch(function (e) {
6900
+ alert("错误:" + e);
6901
+ });
6902
+ } else if (type == "org") {
6903
+ var hasSerValCurOrg = [];
6904
+ var url = "";
6905
+ if (searchType == "0" && value != "") {
6906
+ //搜索
6907
+ hasSerValCurOrg = t.getHasSearchValueInCurOrg(value);
6908
+ url = t.getFetchUrl("org", "", value, true, true);
6909
+ } else {
6910
+ hasSerValCurOrg = t.getHasSearchValueInCurOrg();
6911
+ url = t.getFetchUrl("org", "", value, false, true);
6912
+ }
6913
+ fetch(url, {
6914
+ method: "GET",
6915
+ mode: "cors",
6916
+ headers: {
6917
+ 'Accept': 'application/json, text/plain, */*',
6918
+ 'Content-Type': 'application/x-www-form-urlencoded'
6122
6919
  }
6123
- fetch(url, {
6124
- method: "GET",
6125
- mode: "cors",
6126
- headers: {
6127
- 'Accept': 'application/json, text/plain, */*',
6128
- 'Content-Type': 'application/x-www-form-urlencoded'
6129
- }
6130
- }).then(function (response) {
6131
- return response.json();
6132
- }).then(function (result) {
6133
- //alert(JSON.stringify(result));
6134
- //console.log("fetch请求数据"+JSON.stringify(result));
6135
- var orgList = [],
6136
- userList = [];
6137
- if (searchType == "0") {
6138
- userList = result.data;
6139
- } else {
6140
- orgList = result.data;
6141
- }
6142
- if (searchType == "0" && value != "") {}
6143
- if (orgList == null || orgList == undefined) {
6144
- orgList = hasSerValCurOrg;
6145
- } else {
6146
- orgList = hasSerValCurOrg.concat(orgList);
6147
- }
6148
- var selectUserNum = 0;
6149
- var navList = [];
6150
- if (searchType == "0") {
6151
- navList = [{ "id": "0", "userName": "全部", "checkAll": false }];
6920
+ }).then(function (response) {
6921
+ return response.json();
6922
+ }).then(function (result) {
6923
+ //alert(JSON.stringify(result));
6924
+ //console.log("fetch请求数据"+JSON.stringify(result));
6925
+ var orgList = result.data.orgList;
6926
+ var userList = result.data.userList;
6927
+ if (orgList == undefined && userList == undefined) {
6928
+ orgList = result.data;
6929
+ }
6930
+ var selectOrgNum = 0,
6931
+ noUseOrgNum = 0;
6932
+ var navList = [{ "id": "0", "orgName": "全部", "checkAll": false }];
6933
+ var checkAllOrg = true;
6934
+ // if (orgList == null || orgList == undefined || (searchType == "0" && chooseType.indexOf("userNotOrg") >= 0)) {
6935
+ if (orgList == null || orgList == undefined) {
6936
+ orgList = hasSerValCurOrg;
6937
+ } else {
6938
+ orgList = hasSerValCurOrg.concat(orgList);
6939
+ if (chooseType.indexOf("userNotOrg") < 0) {
6940
+ var selectOrgs = t.state.selectedList.selectOrgs;
6941
+ selectOrgNum = t.dataIsChecked(orgList, selectOrgs, selectOrgNum);
6942
+ noUseOrgNum = t.countNoUseNum(orgList);
6943
+ if (selectOrgNum != orgList.length - noUseOrgNum) {
6944
+ checkAllOrg = false;
6945
+ }
6152
6946
  }
6153
- if (userList == null || userList == undefined) {
6154
- userList = [];
6155
- } else {
6947
+ }
6948
+ var selectUserNum = 0;
6949
+ var checkAllUser = true;
6950
+ if (userList == null || userList == undefined) {
6951
+ userList = [];
6952
+ } else {
6953
+ if (chooseType.indexOf("userNotOrg") >= 0 || chooseType.indexOf("userAndOrg") >= 0) {
6156
6954
  var selectUsers = t.state.selectedList.selectUsers;
6157
6955
  selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
6158
- if (selectUserNum == userList.length && searchType == "0") {
6159
- navList[0].checkAll = true;
6956
+ if (selectUserNum != userList.length) {
6957
+ checkAllUser = false;
6160
6958
  }
6161
6959
  }
6162
- t.setState({
6163
- userOrgList: orgList,
6164
- userList: userList,
6165
- selectUserNum: selectUserNum,
6166
- userName: value,
6167
- navUserList: navList,
6168
- isShowNav: false,
6169
- isShowCheckAll: isShowCheckAll
6170
- }, function () {
6171
- t.instance.update(t.getContent());
6172
- });
6173
- }).catch(function (e) {
6174
- alert("错误:" + e);
6175
- });
6176
- } else if (type == "org") {
6177
- var hasSerValCurOrg = [];
6178
- var url = "";
6179
- if (searchType == "0" && value != "") {
6180
- //搜索
6181
- hasSerValCurOrg = t.getHasSearchValueInCurOrg(value);
6182
- url = t.getFetchUrl("org", "", value, true, true);
6183
- } else {
6184
- hasSerValCurOrg = t.getHasSearchValueInCurOrg();
6185
- url = t.getFetchUrl("org", "", value, false, true);
6186
6960
  }
6187
- fetch(url, {
6188
- method: "GET",
6189
- mode: "cors",
6190
- headers: {
6191
- 'Accept': 'application/json, text/plain, */*',
6192
- 'Content-Type': 'application/x-www-form-urlencoded'
6961
+ if (orgList.length == noUseOrgNum && userList.length == 0) {
6962
+ //全部不可选
6963
+ navList[0].canUse = "0";
6964
+ } else {
6965
+ navList[0].canUse = "1";
6966
+ }
6967
+ if (checkAllUser && checkAllOrg) {
6968
+ navList[0].checkAll = true;
6969
+ }
6970
+ t.setState({
6971
+ orgList: orgList,
6972
+ orgUserList: userList,
6973
+ selectOrgNum: selectOrgNum,
6974
+ noUseOrgNum: noUseOrgNum,
6975
+ selectOrgUserNum: selectUserNum,
6976
+ orgName: value,
6977
+ navOrgList: navList,
6978
+ isShowNav: false,
6979
+ isShowCheckAll: isShowCheckAll
6980
+ }, function () {
6981
+ t.instance.update(t.getContent());
6982
+ });
6983
+ }).catch(function (error) {
6984
+ alert("3463错误:" + error);
6985
+ });
6986
+ } else if (type == "role") {
6987
+ var url = t.getFetchUrl("role", "", value, false, true);
6988
+ fetch(url, {
6989
+ method: "GET",
6990
+ mode: "cors",
6991
+ headers: {
6992
+ 'Accept': 'application/json, text/plain, */*',
6993
+ 'Content-Type': 'application/x-www-form-urlencoded'
6994
+ }
6995
+ }).then(function (response) {
6996
+ return response.json();
6997
+ }).then(function (result) {
6998
+ //alert(JSON.stringify(result));
6999
+ //console.log("fetch请求数据"+JSON.stringify(result));
7000
+ var roleList = result.data;
7001
+ var selectRoleNum = 0;
7002
+ var roleCheckAll = false;
7003
+ if (roleList == null || roleList == undefined) {
7004
+ roleList = [];
7005
+ } else {
7006
+ var selectRoles = t.state.selectedList.selectRoles;
7007
+ selectRoleNum = t.dataIsChecked(roleList, selectRoles, selectRoleNum);
7008
+ if (selectRoleNum == roleList.length) {
7009
+ roleCheckAll = true;
6193
7010
  }
6194
- }).then(function (response) {
6195
- return response.json();
6196
- }).then(function (result) {
6197
- //alert(JSON.stringify(result));
6198
- //console.log("fetch请求数据"+JSON.stringify(result));
6199
- var orgList = result.data.orgList;
6200
- var userList = result.data.userList;
6201
- if (orgList == undefined && userList == undefined) {
6202
- orgList = result.data;
7011
+ }
7012
+ t.setState({
7013
+ roleList: roleList,
7014
+ selectRoleNum: selectRoleNum,
7015
+ roleName: value,
7016
+ roleCheckAll: roleCheckAll,
7017
+ isShowNav: false,
7018
+ isShowCheckAll: isShowCheckAll
7019
+ }, function () {
7020
+ t.instance.update(t.getContent());
7021
+ });
7022
+ }).catch(function (error) {
7023
+ alert("3497错误:" + error);
7024
+ });
7025
+ } else if (type == "station") {
7026
+ var url = "";
7027
+ if (t.state.staSelectType == "1" && searchType != "0") {
7028
+ url = t.getFetchUrl("org", "", "", false, false);
7029
+ } else {
7030
+ url = t.getFetchUrl("station", "", value, false, true);
7031
+ }
7032
+ fetch(url, {
7033
+ method: "GET",
7034
+ mode: "cors",
7035
+ headers: {
7036
+ 'Accept': 'application/json, text/plain, */*',
7037
+ 'Content-Type': 'application/x-www-form-urlencoded'
7038
+ }
7039
+ }).then(function (response) {
7040
+ return response.json();
7041
+ }).then(function (result) {
7042
+ //alert(JSON.stringify(result));
7043
+ //console.log("fetch请求数据"+JSON.stringify(result));
7044
+ var stationList = [],
7045
+ orgList = [],
7046
+ navList = [];
7047
+ var selectStaNum = 0,
7048
+ noUseStationNum = 0;
7049
+ var checkAllStation = true;
7050
+ if (t.state.staSelectType == "1" && searchType != "0") {
7051
+ orgList = result.data;
7052
+ if (orgList == null || orgList == undefined) {
7053
+ orgList = [];
6203
7054
  }
6204
- var selectOrgNum = 0,
6205
- noUseOrgNum = 0;
6206
- var navList = [{ "id": "0", "orgName": "全部", "checkAll": false }];
6207
- var checkAllOrg = true;
6208
- if (orgList == null || orgList == undefined || searchType == "0" && chooseType.indexOf("userNotOrg") >= 0) {
6209
- orgList = hasSerValCurOrg;
7055
+ } else {
7056
+ stationList = result.data.stationList;
7057
+ navList = [{ "id": "0", "orgName": "全部", "checkAll": false }];
7058
+ if (stationList == null || stationList == undefined) {
7059
+ stationList = [];
6210
7060
  } else {
6211
- orgList = hasSerValCurOrg.concat(orgList);
6212
- if (chooseType.indexOf("userNotOrg") < 0) {
6213
- var selectOrgs = t.state.selectedList.selectOrgs;
6214
- selectOrgNum = t.dataIsChecked(orgList, selectOrgs, selectOrgNum);
6215
- noUseOrgNum = t.countNoUseNum(orgList);
6216
- if (selectOrgNum != orgList.length - noUseOrgNum) {
6217
- checkAllOrg = false;
6218
- }
7061
+ var selectStations = t.state.selectedList.selectStations;
7062
+ selectStaNum = t.dataIsChecked(stationList, selectStations, selectStaNum);
7063
+ noUseStationNum = t.countNoUseNum(stationList);
7064
+ if (selectStaNum != stationList.length - noUseStationNum) {
7065
+ checkAllStation = false;
6219
7066
  }
7067
+ // if (stationList.length == noUseStationNum) {//全部不可选
7068
+ // navList[0].canUse = "0";
7069
+ // } else {
7070
+ // navList[0].canUse = "1";
7071
+ // if (selectStaNum == (stationList.length - noUseStationNum)) {
7072
+ // navList[0].checkAll = true;
7073
+ // }
7074
+ // }
6220
7075
  }
7076
+
7077
+ var userList = result.data.userList;
6221
7078
  var selectUserNum = 0;
6222
7079
  var checkAllUser = true;
6223
7080
  if (userList == null || userList == undefined) {
6224
7081
  userList = [];
6225
7082
  } else {
6226
- if (chooseType.indexOf("userNotOrg") >= 0 || chooseType.indexOf("userAndOrg") >= 0) {
7083
+ if (chooseType.indexOf("userNotStation") >= 0 || chooseType.indexOf("userAndStation") >= 0) {
6227
7084
  var selectUsers = t.state.selectedList.selectUsers;
6228
7085
  selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
6229
7086
  if (selectUserNum != userList.length) {
@@ -6231,195 +7088,232 @@ var Page = function (_React$Component) {
6231
7088
  }
6232
7089
  }
6233
7090
  }
6234
- if (orgList.length == noUseOrgNum && userList.length == 0) {
7091
+ if (stationList.length == noUseStationNum && userList.length == 0) {
6235
7092
  //全部不可选
6236
7093
  navList[0].canUse = "0";
6237
7094
  } else {
6238
7095
  navList[0].canUse = "1";
6239
7096
  }
6240
- if (checkAllUser && checkAllOrg) {
7097
+ if (checkAllUser && checkAllStation) {
6241
7098
  navList[0].checkAll = true;
6242
7099
  }
6243
- t.setState({
6244
- orgList: orgList,
6245
- orgUserList: userList,
6246
- selectOrgNum: selectOrgNum,
6247
- noUseOrgNum: noUseOrgNum,
6248
- selectOrgUserNum: selectUserNum,
6249
- orgName: value,
6250
- navOrgList: navList,
6251
- isShowNav: false,
6252
- isShowCheckAll: isShowCheckAll
6253
- }, function () {
6254
- t.instance.update(t.getContent());
6255
- });
6256
- }).catch(function (error) {
6257
- alert("3463错误:" + error);
7100
+ }
7101
+ t.setState({
7102
+ stationList: stationList,
7103
+ stationUserList: userList,
7104
+ stationOrgList: orgList,
7105
+ selectStaNum: selectStaNum,
7106
+ noUseStationNum: noUseStationNum,
7107
+ stationName: value,
7108
+ navStationList: navList,
7109
+ isShowNav: false,
7110
+ isShowCheckAll: isShowCheckAll
7111
+ }, function () {
7112
+ t.instance.update(t.getContent());
6258
7113
  });
6259
- } else if (type == "role") {
6260
- var url = t.getFetchUrl("role", "", value, false, true);
6261
- fetch(url, {
6262
- method: "GET",
6263
- mode: "cors",
6264
- headers: {
6265
- 'Accept': 'application/json, text/plain, */*',
6266
- 'Content-Type': 'application/x-www-form-urlencoded'
7114
+ }).catch(function (error) {
7115
+ alert("3552错误:" + error);
7116
+ });
7117
+ } else if (type == "group") {
7118
+ var url = "";
7119
+ if (searchType == "0" && value != "") {
7120
+ url = t.getFetchUrl("group", "", value, true, true);
7121
+ } else {
7122
+ url = t.getFetchUrl("group", "", value, false, true);
7123
+ }
7124
+ fetch(url, {
7125
+ method: "GET",
7126
+ mode: "cors",
7127
+ headers: {
7128
+ 'Accept': 'application/json, text/plain, */*',
7129
+ 'Content-Type': 'application/x-www-form-urlencoded'
7130
+ }
7131
+ }).then(function (response) {
7132
+ return response.json();
7133
+ }).then(function (result) {
7134
+ //alert(JSON.stringify(result));
7135
+ //console.log("fetch请求数据"+JSON.stringify(result));
7136
+ var groupList = result.data.groupList;
7137
+ var selectGroupNum = 0,
7138
+ noUseGroupNum = 0;
7139
+ var checkAllGroup = true;
7140
+ var navList = [{ "id": "0", "groupName": "全部", "checkAll": false }];
7141
+ // if (groupList == null || groupList == undefined || (searchType == "0" && chooseType.indexOf("userNotGroup") >= 0)) {
7142
+ if (groupList == null || groupList == undefined) {
7143
+ groupList = [];
7144
+ } else {
7145
+ if (chooseType.indexOf("userNotGroup") < 0) {
7146
+ var selectGroups = t.state.selectedList.selectGroups;
7147
+ selectGroupNum = t.dataIsChecked(groupList, selectGroups, selectGroupNum);
7148
+ noUseGroupNum = t.countNoUseNum(groupList);
7149
+ if (selectGroupNum != groupList.length - noUseGroupNum) {
7150
+ checkAllGroup = false;
7151
+ }
6267
7152
  }
6268
- }).then(function (response) {
6269
- return response.json();
6270
- }).then(function (result) {
6271
- //alert(JSON.stringify(result));
6272
- //console.log("fetch请求数据"+JSON.stringify(result));
6273
- var roleList = result.data;
6274
- var selectRoleNum = 0;
6275
- var roleCheckAll = false;
6276
- if (roleList == null || roleList == undefined) {
6277
- roleList = [];
6278
- } else {
6279
- var selectRoles = t.state.selectedList.selectRoles;
6280
- selectRoleNum = t.dataIsChecked(roleList, selectRoles, selectRoleNum);
6281
- if (selectRoleNum == roleList.length) {
6282
- roleCheckAll = true;
7153
+ }
7154
+ var userList = result.data.userList;
7155
+ var selectUserNum = 0;
7156
+ var checkAllUser = true;
7157
+ if (userList == null || userList == undefined) {
7158
+ userList = [];
7159
+ } else {
7160
+ if (chooseType.indexOf("userNotGroup") >= 0 || chooseType.indexOf("userAndGroup") >= 0) {
7161
+ var selectUsers = t.state.selectedList.selectUsers;
7162
+ selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
7163
+ if (selectUserNum != userList.length) {
7164
+ checkAllUser = false;
6283
7165
  }
6284
7166
  }
6285
- t.setState({
6286
- roleList: roleList,
6287
- selectRoleNum: selectRoleNum,
6288
- roleName: value,
6289
- roleCheckAll: roleCheckAll,
6290
- isShowNav: false,
6291
- isShowCheckAll: isShowCheckAll
6292
- }, function () {
6293
- t.instance.update(t.getContent());
6294
- });
6295
- }).catch(function (error) {
6296
- alert("3497错误:" + error);
6297
- });
6298
- } else if (type == "station") {
6299
- var url = "";
6300
- if (t.state.staSelectType == "1" && searchType != "0") {
6301
- url = t.getFetchUrl("org", "", "", false, false);
7167
+ }
7168
+ if (groupList.length == noUseGroupNum && userList.length == 0) {
7169
+ //全部不可选
7170
+ navList[0].canUse = "0";
6302
7171
  } else {
6303
- url = t.getFetchUrl("station", "", value, false, true);
7172
+ navList[0].canUse = "1";
6304
7173
  }
6305
- fetch(url, {
6306
- method: "GET",
6307
- mode: "cors",
6308
- headers: {
6309
- 'Accept': 'application/json, text/plain, */*',
6310
- 'Content-Type': 'application/x-www-form-urlencoded'
6311
- }
6312
- }).then(function (response) {
6313
- return response.json();
6314
- }).then(function (result) {
6315
- //alert(JSON.stringify(result));
6316
- //console.log("fetch请求数据"+JSON.stringify(result));
6317
- var stationList = [],
6318
- orgList = [],
6319
- navList = [];
6320
- var selectStaNum = 0,
6321
- noUseStationNum = 0;
6322
- var checkAllStation = true;
6323
- if (t.state.staSelectType == "1" && searchType != "0") {
6324
- orgList = result.data;
6325
- if (orgList == null || orgList == undefined) {
6326
- orgList = [];
6327
- }
6328
- } else {
6329
- stationList = result.data.stationList;
6330
- navList = [{ "id": "0", "orgName": "全部", "checkAll": false }];
6331
- if (stationList == null || stationList == undefined) {
6332
- stationList = [];
6333
- } else {
6334
- var selectStations = t.state.selectedList.selectStations;
6335
- selectStaNum = t.dataIsChecked(stationList, selectStations, selectStaNum);
6336
- noUseStationNum = t.countNoUseNum(stationList);
6337
- if (selectStaNum != stationList.length - noUseStationNum) {
6338
- checkAllStation = false;
6339
- }
6340
- // if (stationList.length == noUseStationNum) {//全部不可选
6341
- // navList[0].canUse = "0";
6342
- // } else {
6343
- // navList[0].canUse = "1";
6344
- // if (selectStaNum == (stationList.length - noUseStationNum)) {
6345
- // navList[0].checkAll = true;
6346
- // }
6347
- // }
6348
- }
7174
+ if (checkAllUser && checkAllGroup) {
7175
+ navList[0].checkAll = true;
7176
+ }
7177
+ t.setState({
7178
+ groupList: groupList,
7179
+ groupUserList: userList,
7180
+ selectGroupNum: selectGroupNum,
7181
+ noUseGroupNum: noUseGroupNum,
7182
+ selectGroupUserNum: selectUserNum,
7183
+ groupName: value,
7184
+ navGroupList: navList,
7185
+ isShowNav: false,
7186
+ isShowCheckAll: isShowCheckAll
7187
+ }, function () {
7188
+ t.instance.update(t.getContent());
7189
+ });
7190
+ }).catch(function (error) {
7191
+ alert("3620错误:" + error);
7192
+ });
7193
+ } else if (type == "personGroup") {
7194
+ var url = "";
6349
7195
 
6350
- var userList = result.data.userList;
6351
- var selectUserNum = 0;
6352
- var checkAllUser = true;
6353
- if (userList == null || userList == undefined) {
6354
- userList = [];
6355
- } else {
6356
- if (chooseType.indexOf("userNotStation") >= 0 || chooseType.indexOf("userAndStation") >= 0) {
6357
- var selectUsers = t.state.selectedList.selectUsers;
6358
- selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
6359
- if (selectUserNum != userList.length) {
6360
- checkAllUser = false;
6361
- }
7196
+ // let personalGroupId=t.state.navPersonalGroupList.length>0?t.state.navPersonalGroupList[t.state.navPersonalGroupList.length-1].id:0;
7197
+ if (searchType == "0" && value != "") {
7198
+ url = t.getFetchUrl("personGroup", "", value, true, true);
7199
+ } else {
7200
+ url = t.getFetchUrl("personGroup", "", value, false, true);
7201
+ }
7202
+
7203
+ fetch(url, {
7204
+ method: "GET",
7205
+ mode: "cors",
7206
+ headers: {
7207
+ 'Accept': 'application/json, text/plain, */*',
7208
+ 'Content-Type': 'application/x-www-form-urlencoded'
7209
+ }
7210
+ }).then(function (response) {
7211
+ return response.json();
7212
+ }).then(function (result) {
7213
+ //alert(JSON.stringify(result));
7214
+ //console.log("fetch请求数据"+JSON.stringify(result));
7215
+ if (result.success) {
7216
+ var personalGroupList = result.content.personalGroupList;
7217
+ var selectPersonalGroupNum = 0,
7218
+ noUsePersonalGroupNum = 0;
7219
+ var checkAllPersonalGroup = true;
7220
+
7221
+ var navList = [{ "id": "0", "personalGroupName": "全部", "checkAll": false }];
7222
+ // if (personalGroupList == null || personalGroupList == undefined || (searchType == "0" && chooseType.indexOf("userNotPersonGroup") >= 0)) {
7223
+ if (personalGroupList == null || personalGroupList == undefined) {
7224
+ personalGroupList = [];
7225
+ } else {
7226
+ if (chooseType.indexOf("userNotPersonGroup") < 0 || true) {
7227
+ var selectPersonalGroups = t.state.selectedList.selectPersonalGroups;
7228
+ selectPersonalGroupNum = t.dataIsChecked(personalGroupList, selectPersonalGroups, selectPersonalGroupNum);
7229
+ noUsePersonalGroupNum = t.countNoUseNum(personalGroupList);
7230
+ if (selectPersonalGroupNum != personalGroupList.length - noUsePersonalGroupNum) {
7231
+ checkAllPersonalGroup = false;
6362
7232
  }
6363
7233
  }
6364
- if (stationList.length == noUseStationNum && userList.length == 0) {
6365
- //全部不可选
6366
- navList[0].canUse = "0";
6367
- } else {
6368
- navList[0].canUse = "1";
6369
- }
6370
- if (checkAllUser && checkAllStation) {
6371
- navList[0].checkAll = true;
7234
+ }
7235
+ var userList = result.content.userList;
7236
+ var selectUserNum = 0;
7237
+ var checkAllUser = true;
7238
+ if (userList == null || userList == undefined) {
7239
+ userList = [];
7240
+ } else {
7241
+ if (chooseType.indexOf("userNotPersonGroup") >= 0 || chooseType.indexOf("userAndPersonGroup") >= 0 || true) {
7242
+ var selectUsers = t.state.selectedList.selectUsers;
7243
+ selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
7244
+ if (selectUserNum != userList.length) {
7245
+ checkAllUser = false;
7246
+ }
6372
7247
  }
6373
7248
  }
7249
+ if (personalGroupList.length == noUsePersonalGroupNum && userList.length == 0) {
7250
+ //全部不可选
7251
+ navList[0].canUse = "0";
7252
+ } else {
7253
+ navList[0].canUse = "1";
7254
+ }
7255
+ if (checkAllUser && checkAllPersonalGroup) {
7256
+ navList[0].checkAll = true;
7257
+ }
6374
7258
  t.setState({
6375
- stationList: stationList,
6376
- stationUserList: userList,
6377
- stationOrgList: orgList,
6378
- selectStaNum: selectStaNum,
6379
- noUseStationNum: noUseStationNum,
6380
- stationName: value,
6381
- navStationList: navList,
7259
+ personalGroupList: personalGroupList,
7260
+ personalGroupUserList: userList,
7261
+ selectPersonalGroupNum: selectPersonalGroupNum,
7262
+ noUsePersonalGroupNum: noUsePersonalGroupNum,
7263
+ selectPersonalGroupUserNum: selectUserNum,
7264
+ personalGroupName: value,
7265
+ navPersonalGroupList: navList,
6382
7266
  isShowNav: false,
6383
7267
  isShowCheckAll: isShowCheckAll
6384
7268
  }, function () {
6385
7269
  t.instance.update(t.getContent());
6386
7270
  });
6387
- }).catch(function (error) {
6388
- alert("3552错误:" + error);
6389
- });
6390
- } else if (type == "group") {
6391
- var url = "";
6392
- if (searchType == "0" && value != "") {
6393
- url = t.getFetchUrl("group", "", value, true, true);
6394
7271
  } else {
6395
- url = t.getFetchUrl("group", "", value, false, true);
7272
+ alert("职务查询接口错误:" + result.errorMsg);
6396
7273
  }
6397
- fetch(url, {
6398
- method: "GET",
6399
- mode: "cors",
6400
- headers: {
6401
- 'Accept': 'application/json, text/plain, */*',
6402
- 'Content-Type': 'application/x-www-form-urlencoded'
6403
- }
6404
- }).then(function (response) {
6405
- return response.json();
6406
- }).then(function (result) {
6407
- //alert(JSON.stringify(result));
6408
- //console.log("fetch请求数据"+JSON.stringify(result));
6409
- var groupList = result.data.groupList;
6410
- var selectGroupNum = 0,
6411
- noUseGroupNum = 0;
6412
- var checkAllGroup = true;
6413
- var navList = [{ "id": "0", "groupName": "全部", "checkAll": false }];
6414
- if (groupList == null || groupList == undefined || searchType == "0" && chooseType.indexOf("userNotGroup") >= 0) {
6415
- groupList = [];
7274
+ }).catch(function (error) {
7275
+ alert("3620错误:" + error);
7276
+ });
7277
+ } else if (type == "duty") {
7278
+ //职位
7279
+ var url = "";
7280
+
7281
+ // let personalGroupId=t.state.navPersonalGroupList.length>0?t.state.navPersonalGroupList[t.state.navPersonalGroupList.length-1].id:0;
7282
+ if (searchType == "0" && value != "") {
7283
+ url = t.getFetchUrl("duty", "", value, true, true);
7284
+ } else {
7285
+ url = t.getFetchUrl("duty", "", value, false, true);
7286
+ }
7287
+
7288
+ fetch(url, {
7289
+ method: "GET",
7290
+ mode: "cors",
7291
+ headers: {
7292
+ 'Accept': 'application/json, text/plain, */*',
7293
+ 'Content-Type': 'application/x-www-form-urlencoded'
7294
+ }
7295
+ }).then(function (response) {
7296
+ return response.json();
7297
+ }).then(function (result) {
7298
+ //alert(JSON.stringify(result));
7299
+ //console.log("fetch请求数据"+JSON.stringify(result));
7300
+ if (result.type == "success") {
7301
+ var dutyList = result.data.dutyList;
7302
+ var selectDutyNum = 0,
7303
+ noUseDutyNum = 0;
7304
+ var checkAllDuty = true;
7305
+
7306
+ var navList = [{ "id": "0", "dutyName": "全部", "checkAll": false }];
7307
+ // if (dutyList == null || dutyList == undefined || (searchType == "0" && chooseType.indexOf("userNotDuty") >= 0)) {
7308
+ if (dutyList == null || dutyList == undefined) {
7309
+ dutyList = [];
6416
7310
  } else {
6417
- if (chooseType.indexOf("userNotGroup") < 0) {
6418
- var selectGroups = t.state.selectedList.selectGroups;
6419
- selectGroupNum = t.dataIsChecked(groupList, selectGroups, selectGroupNum);
6420
- noUseGroupNum = t.countNoUseNum(groupList);
6421
- if (selectGroupNum != groupList.length - noUseGroupNum) {
6422
- checkAllGroup = false;
7311
+ if (chooseType.indexOf("userNotDuty") < 0 || true) {
7312
+ var selectDutys = t.state.selectedList.selectDutys;
7313
+ selectDutyNum = t.dataIsChecked(dutyList, selectDutys, selectDutyNum);
7314
+ noUseDutyNum = t.countNoUseNum(dutyList);
7315
+ if (selectDutyNum != dutyList.length - noUseDutyNum) {
7316
+ checkAllDuty = false;
6423
7317
  }
6424
7318
  }
6425
7319
  }
@@ -6429,7 +7323,7 @@ var Page = function (_React$Component) {
6429
7323
  if (userList == null || userList == undefined) {
6430
7324
  userList = [];
6431
7325
  } else {
6432
- if (chooseType.indexOf("userNotGroup") >= 0 || chooseType.indexOf("userAndGroup") >= 0) {
7326
+ if (chooseType.indexOf("userNotDuty") >= 0 || chooseType.indexOf("userAndDuty") >= 0 || true) {
6433
7327
  var selectUsers = t.state.selectedList.selectUsers;
6434
7328
  selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
6435
7329
  if (selectUserNum != userList.length) {
@@ -6437,284 +7331,121 @@ var Page = function (_React$Component) {
6437
7331
  }
6438
7332
  }
6439
7333
  }
6440
- if (groupList.length == noUseGroupNum && userList.length == 0) {
7334
+ if (dutyList.length == noUseDutyNum && userList.length == 0) {
6441
7335
  //全部不可选
6442
7336
  navList[0].canUse = "0";
6443
7337
  } else {
6444
7338
  navList[0].canUse = "1";
6445
7339
  }
6446
- if (checkAllUser && checkAllGroup) {
7340
+ if (checkAllUser && checkAllDuty) {
6447
7341
  navList[0].checkAll = true;
6448
7342
  }
6449
7343
  t.setState({
6450
- groupList: groupList,
6451
- groupUserList: userList,
6452
- selectGroupNum: selectGroupNum,
6453
- noUseGroupNum: noUseGroupNum,
6454
- selectGroupUserNum: selectUserNum,
6455
- groupName: value,
6456
- navGroupList: navList,
7344
+ dutyList: dutyList,
7345
+ dutyUserList: userList,
7346
+ selectDutyNum: selectDutyNum,
7347
+ noUseDutyNum: noUseDutyNum,
7348
+ selectDutyUserNum: selectUserNum,
7349
+ dutyName: value,
7350
+ navDutyList: navList,
6457
7351
  isShowNav: false,
6458
7352
  isShowCheckAll: isShowCheckAll
6459
7353
  }, function () {
6460
7354
  t.instance.update(t.getContent());
6461
7355
  });
6462
- }).catch(function (error) {
6463
- alert("3620错误:" + error);
6464
- });
6465
- } else if (type == "personGroup") {
6466
- var url = "";
6467
-
6468
- // let personalGroupId=t.state.navPersonalGroupList.length>0?t.state.navPersonalGroupList[t.state.navPersonalGroupList.length-1].id:0;
6469
- if (searchType == "0" && value != "") {
6470
- url = t.getFetchUrl("personGroup", "", value, true, true);
6471
7356
  } else {
6472
- url = t.getFetchUrl("personGroup", "", value, false, true);
7357
+ alert("职务查询接口错误:" + result.message);
6473
7358
  }
7359
+ }).catch(function (error) {
7360
+ alert("3620错误:" + error);
7361
+ });
7362
+ } else if (type == "politicalOutlook") {
7363
+ //政治面貌
7364
+ var url = "";
6474
7365
 
6475
- fetch(url, {
6476
- method: "GET",
6477
- mode: "cors",
6478
- headers: {
6479
- 'Accept': 'application/json, text/plain, */*',
6480
- 'Content-Type': 'application/x-www-form-urlencoded'
6481
- }
6482
- }).then(function (response) {
6483
- return response.json();
6484
- }).then(function (result) {
6485
- //alert(JSON.stringify(result));
6486
- //console.log("fetch请求数据"+JSON.stringify(result));
6487
- if (result.success) {
6488
- var personalGroupList = result.content.personalGroupList;
6489
- var selectPersonalGroupNum = 0,
6490
- noUsePersonalGroupNum = 0;
6491
- var checkAllPersonalGroup = true;
6492
-
6493
- var navList = [{ "id": "0", "personalGroupName": "全部", "checkAll": false }];
6494
- if (personalGroupList == null || personalGroupList == undefined || searchType == "0" && chooseType.indexOf("userNotPersonGroup") >= 0) {
6495
- personalGroupList = [];
6496
- } else {
6497
- if (chooseType.indexOf("userNotPersonGroup") < 0 || true) {
6498
- var selectPersonalGroups = t.state.selectedList.selectPersonalGroups;
6499
- selectPersonalGroupNum = t.dataIsChecked(personalGroupList, selectPersonalGroups, selectPersonalGroupNum);
6500
- noUsePersonalGroupNum = t.countNoUseNum(personalGroupList);
6501
- if (selectPersonalGroupNum != personalGroupList.length - noUsePersonalGroupNum) {
6502
- checkAllPersonalGroup = false;
6503
- }
6504
- }
6505
- }
6506
- var userList = result.content.userList;
6507
- var selectUserNum = 0;
6508
- var checkAllUser = true;
6509
- if (userList == null || userList == undefined) {
6510
- userList = [];
6511
- } else {
6512
- if (chooseType.indexOf("userNotPersonGroup") >= 0 || chooseType.indexOf("userAndPersonGroup") >= 0 || true) {
6513
- var selectUsers = t.state.selectedList.selectUsers;
6514
- selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
6515
- if (selectUserNum != userList.length) {
6516
- checkAllUser = false;
6517
- }
6518
- }
6519
- }
6520
- if (personalGroupList.length == noUsePersonalGroupNum && userList.length == 0) {
6521
- //全部不可选
6522
- navList[0].canUse = "0";
6523
- } else {
6524
- navList[0].canUse = "1";
6525
- }
6526
- if (checkAllUser && checkAllPersonalGroup) {
6527
- navList[0].checkAll = true;
6528
- }
6529
- t.setState({
6530
- personalGroupList: personalGroupList,
6531
- personalGroupUserList: userList,
6532
- selectPersonalGroupNum: selectPersonalGroupNum,
6533
- noUsePersonalGroupNum: noUsePersonalGroupNum,
6534
- selectPersonalGroupUserNum: selectUserNum,
6535
- personalGroupName: value,
6536
- navPersonalGroupList: navList,
6537
- isShowNav: false,
6538
- isShowCheckAll: isShowCheckAll
6539
- }, function () {
6540
- t.instance.update(t.getContent());
6541
- });
6542
- } else {
6543
- alert("职务查询接口错误:" + result.errorMsg);
6544
- }
6545
- }).catch(function (error) {
6546
- alert("3620错误:" + error);
6547
- });
6548
- } else if (type == "duty") {
6549
- //职位
6550
- var url = "";
7366
+ // let personalGroupId=t.state.navPersonalGroupList.length>0?t.state.navPersonalGroupList[t.state.navPersonalGroupList.length-1].id:0;
7367
+ if (searchType == "0" && value != "") {
7368
+ url = t.getFetchUrl("politicalOutlook", "", value, true, true);
7369
+ } else {
7370
+ url = t.getFetchUrl("politicalOutlook", "", value, false, true);
7371
+ }
6551
7372
 
6552
- // let personalGroupId=t.state.navPersonalGroupList.length>0?t.state.navPersonalGroupList[t.state.navPersonalGroupList.length-1].id:0;
6553
- if (searchType == "0" && value != "") {
6554
- url = t.getFetchUrl("duty", "", value, true, true);
6555
- } else {
6556
- url = t.getFetchUrl("duty", "", value, false, true);
7373
+ fetch(url, {
7374
+ method: "GET",
7375
+ mode: "cors",
7376
+ headers: {
7377
+ 'Accept': 'application/json, text/plain, */*',
7378
+ 'Content-Type': 'application/x-www-form-urlencoded'
6557
7379
  }
7380
+ }).then(function (response) {
7381
+ return response.json();
7382
+ }).then(function (result) {
7383
+ //alert(JSON.stringify(result));
7384
+ //console.log("fetch请求数据"+JSON.stringify(result));
7385
+ if (result.type == "success") {
7386
+ var politicalOutlookList = result.data.politicalOutlookList;
7387
+ var selectPoliticalOutlookNum = 0,
7388
+ noUsePoliticalOutlookNum = 0;
7389
+ var checkAllPoliticalOutlook = true;
6558
7390
 
6559
- fetch(url, {
6560
- method: "GET",
6561
- mode: "cors",
6562
- headers: {
6563
- 'Accept': 'application/json, text/plain, */*',
6564
- 'Content-Type': 'application/x-www-form-urlencoded'
6565
- }
6566
- }).then(function (response) {
6567
- return response.json();
6568
- }).then(function (result) {
6569
- //alert(JSON.stringify(result));
6570
- //console.log("fetch请求数据"+JSON.stringify(result));
6571
- if (result.type == "success") {
6572
- var dutyList = result.data.dutyList;
6573
- var selectDutyNum = 0,
6574
- noUseDutyNum = 0;
6575
- var checkAllDuty = true;
6576
-
6577
- var navList = [{ "id": "0", "dutyName": "全部", "checkAll": false }];
6578
- if (dutyList == null || dutyList == undefined || searchType == "0" && chooseType.indexOf("userNotDuty") >= 0) {
6579
- dutyList = [];
6580
- } else {
6581
- if (chooseType.indexOf("userNotDuty") < 0 || true) {
6582
- var selectDutys = t.state.selectedList.selectDutys;
6583
- selectDutyNum = t.dataIsChecked(dutyList, selectDutys, selectDutyNum);
6584
- noUseDutyNum = t.countNoUseNum(dutyList);
6585
- if (selectDutyNum != dutyList.length - noUseDutyNum) {
6586
- checkAllDuty = false;
6587
- }
6588
- }
6589
- }
6590
- var userList = result.data.userList;
6591
- var selectUserNum = 0;
6592
- var checkAllUser = true;
6593
- if (userList == null || userList == undefined) {
6594
- userList = [];
6595
- } else {
6596
- if (chooseType.indexOf("userNotDuty") >= 0 || chooseType.indexOf("userAndDuty") >= 0 || true) {
6597
- var selectUsers = t.state.selectedList.selectUsers;
6598
- selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
6599
- if (selectUserNum != userList.length) {
6600
- checkAllUser = false;
6601
- }
6602
- }
6603
- }
6604
- if (dutyList.length == noUseDutyNum && userList.length == 0) {
6605
- //全部不可选
6606
- navList[0].canUse = "0";
6607
- } else {
6608
- navList[0].canUse = "1";
6609
- }
6610
- if (checkAllUser && checkAllDuty) {
6611
- navList[0].checkAll = true;
6612
- }
6613
- t.setState({
6614
- dutyList: dutyList,
6615
- dutyUserList: userList,
6616
- selectDutyNum: selectDutyNum,
6617
- noUseDutyNum: noUseDutyNum,
6618
- selectDutyUserNum: selectUserNum,
6619
- dutyName: value,
6620
- navDutyList: navList,
6621
- isShowNav: false,
6622
- isShowCheckAll: isShowCheckAll
6623
- }, function () {
6624
- t.instance.update(t.getContent());
6625
- });
7391
+ var navList = [{ "id": "0", "politicalOutlookName": "全部", "checkAll": false }];
7392
+ // if (politicalOutlookList == null || politicalOutlookList == undefined || (searchType == "0" && chooseType.indexOf("userNotPoliticalOutlook") >= 0)) {
7393
+ if (politicalOutlookList == null || politicalOutlookList == undefined || searchType == "0" && chooseType.indexOf("userNotPoliticalOutlook") >= 0) {
7394
+ politicalOutlookList = [];
6626
7395
  } else {
6627
- alert("职务查询接口错误:" + result.message);
6628
- }
6629
- }).catch(function (error) {
6630
- alert("3620错误:" + error);
6631
- });
6632
- } else if (type == "politicalOutlook") {
6633
- //政治面貌
6634
- var url = "";
6635
-
6636
- // let personalGroupId=t.state.navPersonalGroupList.length>0?t.state.navPersonalGroupList[t.state.navPersonalGroupList.length-1].id:0;
6637
- if (searchType == "0" && value != "") {
6638
- url = t.getFetchUrl("politicalOutlook", "", value, true, true);
6639
- } else {
6640
- url = t.getFetchUrl("politicalOutlook", "", value, false, true);
6641
- }
6642
-
6643
- fetch(url, {
6644
- method: "GET",
6645
- mode: "cors",
6646
- headers: {
6647
- 'Accept': 'application/json, text/plain, */*',
6648
- 'Content-Type': 'application/x-www-form-urlencoded'
6649
- }
6650
- }).then(function (response) {
6651
- return response.json();
6652
- }).then(function (result) {
6653
- //alert(JSON.stringify(result));
6654
- //console.log("fetch请求数据"+JSON.stringify(result));
6655
- if (result.type == "success") {
6656
- var politicalOutlookList = result.data.politicalOutlookList;
6657
- var selectPoliticalOutlookNum = 0,
6658
- noUsePoliticalOutlookNum = 0;
6659
- var checkAllPoliticalOutlook = true;
6660
-
6661
- var navList = [{ "id": "0", "politicalOutlookName": "全部", "checkAll": false }];
6662
- if (politicalOutlookList == null || politicalOutlookList == undefined || searchType == "0" && chooseType.indexOf("userNotPoliticalOutlook") >= 0) {
6663
- politicalOutlookList = [];
6664
- } else {
6665
- if (chooseType.indexOf("userNotPoliticalOutlook") < 0 || true) {
6666
- var selectPoliticalOutlooks = t.state.selectedList.selectPoliticalOutlooks;
6667
- selectPoliticalOutlookNum = t.dataIsChecked(politicalOutlookList, selectPoliticalOutlooks, selectPoliticalOutlookNum);
6668
- noUsePoliticalOutlookNum = t.countNoUseNum(politicalOutlookList);
6669
- if (selectPoliticalOutlookNum != politicalOutlookList.length - noUsePoliticalOutlookNum) {
6670
- checkAllPoliticalOutlook = false;
6671
- }
6672
- }
6673
- }
6674
- var userList = result.data.userList;
6675
- var selectUserNum = 0;
6676
- var checkAllUser = true;
6677
- if (userList == null || userList == undefined) {
6678
- userList = [];
6679
- } else {
6680
- if (chooseType.indexOf("userNotPoliticalOutlook") >= 0 || chooseType.indexOf("userAndPoliticalOutlook") >= 0 || true) {
6681
- var selectUsers = t.state.selectedList.selectUsers;
6682
- selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
6683
- if (selectUserNum != userList.length) {
6684
- checkAllUser = false;
6685
- }
7396
+ if (chooseType.indexOf("userNotPoliticalOutlook") < 0 || true) {
7397
+ var selectPoliticalOutlooks = t.state.selectedList.selectPoliticalOutlooks;
7398
+ selectPoliticalOutlookNum = t.dataIsChecked(politicalOutlookList, selectPoliticalOutlooks, selectPoliticalOutlookNum);
7399
+ noUsePoliticalOutlookNum = t.countNoUseNum(politicalOutlookList);
7400
+ if (selectPoliticalOutlookNum != politicalOutlookList.length - noUsePoliticalOutlookNum) {
7401
+ checkAllPoliticalOutlook = false;
6686
7402
  }
6687
7403
  }
6688
- if (politicalOutlookList.length == noUsePoliticalOutlookNum && userList.length == 0) {
6689
- //全部不可选
6690
- navList[0].canUse = "0";
6691
- } else {
6692
- navList[0].canUse = "1";
6693
- }
6694
- if (checkAllUser && checkAllPoliticalOutlook) {
6695
- navList[0].checkAll = true;
7404
+ }
7405
+ var userList = result.data.userList;
7406
+ var selectUserNum = 0;
7407
+ var checkAllUser = true;
7408
+ if (userList == null || userList == undefined) {
7409
+ userList = [];
7410
+ } else {
7411
+ if (chooseType.indexOf("userNotPoliticalOutlook") >= 0 || chooseType.indexOf("userAndPoliticalOutlook") >= 0 || true) {
7412
+ var selectUsers = t.state.selectedList.selectUsers;
7413
+ selectUserNum = t.dataIsChecked(userList, selectUsers, selectUserNum);
7414
+ if (selectUserNum != userList.length) {
7415
+ checkAllUser = false;
7416
+ }
6696
7417
  }
6697
- t.setState({
6698
- politicalOutlookList: politicalOutlookList,
6699
- politicalOutlookUserList: userList,
6700
- selectPoliticalOutlookNum: selectPoliticalOutlookNum,
6701
- noUsePoliticalOutlookNum: noUsePoliticalOutlookNum,
6702
- selectPoliticalOutlookUserNum: selectUserNum,
6703
- politicalOutlookName: value,
6704
- navPoliticalOutlookList: navList,
6705
- isShowNav: false,
6706
- isShowCheckAll: isShowCheckAll
6707
- }, function () {
6708
- t.instance.update(t.getContent());
6709
- });
7418
+ }
7419
+ if (politicalOutlookList.length == noUsePoliticalOutlookNum && userList.length == 0) {
7420
+ //全部不可选
7421
+ navList[0].canUse = "0";
6710
7422
  } else {
6711
- alert("政治面貌查询接口错误:" + result.message);
7423
+ navList[0].canUse = "1";
6712
7424
  }
6713
- }).catch(function (error) {
6714
- alert("3620错误:" + error);
6715
- });
6716
- }
7425
+ if (checkAllUser && checkAllPoliticalOutlook) {
7426
+ navList[0].checkAll = true;
7427
+ }
7428
+ t.setState({
7429
+ politicalOutlookList: politicalOutlookList,
7430
+ politicalOutlookUserList: userList,
7431
+ selectPoliticalOutlookNum: selectPoliticalOutlookNum,
7432
+ noUsePoliticalOutlookNum: noUsePoliticalOutlookNum,
7433
+ selectPoliticalOutlookUserNum: selectUserNum,
7434
+ politicalOutlookName: value,
7435
+ navPoliticalOutlookList: navList,
7436
+ isShowNav: false,
7437
+ isShowCheckAll: isShowCheckAll
7438
+ }, function () {
7439
+ t.instance.update(t.getContent());
7440
+ });
7441
+ } else {
7442
+ alert("政治面貌查询接口错误:" + result.message);
7443
+ }
7444
+ }).catch(function (error) {
7445
+ alert("3620错误:" + error);
7446
+ });
6717
7447
  }
7448
+ //}
6718
7449
  }
6719
7450
  }, {
6720
7451
  key: 'getContent',
@@ -6769,6 +7500,7 @@ var Page = function (_React$Component) {
6769
7500
  var commonUsedData = this.state.commonUsedData;
6770
7501
  var currentNav = "";
6771
7502
  var currentCheckAll = false;
7503
+ var currentCheckThisOrg = false;
6772
7504
  var checkAllCanUse = "";
6773
7505
  var activeKey = this.state.activeKey;
6774
7506
  if (activeKey == "user") {
@@ -6786,10 +7518,13 @@ var Page = function (_React$Component) {
6786
7518
  navList = this.state.navDutyList;
6787
7519
  } else if (activeKey == "politicalOutlook") {
6788
7520
  navList = this.state.navPoliticalOutlookList;
7521
+ } else if (activeKey == "common") {
7522
+ navList = this.state.navCommonList;
6789
7523
  }
6790
7524
  if (navList != null && navList.length > 0) {
6791
7525
  currentNav = navList[navList.length - 1].id;
6792
7526
  currentCheckAll = navList[navList.length - 1].checkAll;
7527
+ currentCheckThisOrg = navList[navList.length - 1].checkThisOrg;
6793
7528
  //是我的部门
6794
7529
  if (navList[navList.length - 1].isCur) {
6795
7530
  checkAllCanUse = "1";
@@ -6840,17 +7575,6 @@ var Page = function (_React$Component) {
6840
7575
  '\u6682\u65E0\u6570\u636E'
6841
7576
  )
6842
7577
  )
6843
- ),
6844
- _react2.default.createElement(
6845
- 'div',
6846
- { className: 't-bottom-fixed no-border t-BCf' },
6847
- _react2.default.createElement(
6848
- _Button2.default,
6849
- { type: 'primary', onClick: function onClick() {
6850
- t.handleSelectClick(false);
6851
- } },
6852
- '\u8FD4\u56DE'
6853
- )
6854
7578
  )
6855
7579
  ),
6856
7580
  _react2.default.createElement(
@@ -6860,384 +7584,296 @@ var Page = function (_React$Component) {
6860
7584
  'div',
6861
7585
  { style: { overflow: "auto", height: '' + this.state.winHeight }, className: 't-PB168' },
6862
7586
  _react2.default.createElement(
6863
- HBox,
6864
- { vAlign: 'center', className: selectUsers.length > 0 ? "t-PL16 t-PR16 t-FS14" : "t-DN" },
6865
- _react2.default.createElement(
6866
- Box,
6867
- { className: 't-PT10 t-PB10', flex: 1 },
6868
- '\u5DF2\u9009\u7528\u6237:',
6869
- selectUsers.length
6870
- ),
6871
- _react2.default.createElement(
6872
- Box,
6873
- { className: selectUsers.length > 0 ? "t-FCred" : "t-DN", onClick: function onClick() {
6874
- t.clearItemMember();
6875
- } },
6876
- '\u6E05\u7A7A'
6877
- )
7587
+ 'div',
7588
+ { className: 'selected-title' },
7589
+ '\u5DF2\u9009'
6878
7590
  ),
6879
7591
  _react2.default.createElement(
6880
- HBox,
6881
- { className: selectUsers.length > 0 ? "dd-appwrap" : "t-DN" },
7592
+ 'div',
7593
+ _defineProperty({ className: selectUsers.length > 0 ? "dd-appwrap" : "t-DN" }, 'className', 'user-list mt-10'),
6882
7594
  selectUsers.map(function (item, i) {
6883
7595
  return _react2.default.createElement(
6884
- VBox,
6885
- { className: 'dd-app dd-app-avatar', vAlign: 'center', hAlign: 'center' },
6886
- _react2.default.createElement(
6887
- Box,
6888
- null,
6889
- _react2.default.createElement(_Avatar2.default, { filter: function filter(prevName) {
6890
- return prevName;
6891
- }, name: item.userName.indexOf("(") > 0 ? item.userName.substring(0, item.userName.indexOf("(")) : item.userName, src: "", defaultColor: '#8ccfec' })
6892
- ),
7596
+ 'div',
7597
+ { className: 'selected-list-item' },
7598
+ _react2.default.createElement(_Avatar2.default, { filter: function filter(prevName) {
7599
+ return prevName;
7600
+ }, name: item.userName.indexOf("(") > 0 ? item.userName.substring(0, item.userName.indexOf("(")) : item.userName, src: "", defaultColor: '#8ccfec' }),
6893
7601
  _react2.default.createElement(
6894
- Box,
6895
- { className: 't-MT6 t-PL4 t-PR4 t-WB t-FAC t-omit t-LH1_4' },
6896
- item.userName
7602
+ 'div',
7603
+ { className: 'right-content' },
7604
+ _react2.default.createElement(
7605
+ 'li',
7606
+ null,
7607
+ _react2.default.createElement(
7608
+ 'p',
7609
+ null,
7610
+ item.userName
7611
+ ),
7612
+ _react2.default.createElement(
7613
+ 'p',
7614
+ null,
7615
+ t.handleOrgNamePath(item.orgNamePath)
7616
+ )
7617
+ )
6897
7618
  ),
6898
7619
  _react2.default.createElement(
6899
- Box,
6900
- { className: 'dd-appbadge', onClick: function onClick() {
7620
+ 'div',
7621
+ { className: 'delete-icon' },
7622
+ _react2.default.createElement('i', { className: 'iconfont icon-close', onClick: function onClick() {
6901
7623
  t.deleteItemMember(i, "user");
6902
- } },
6903
- _react2.default.createElement('i', { className: 'iconfont icon-plus t-rotate-45' })
7624
+ } })
6904
7625
  )
6905
7626
  );
6906
7627
  })
6907
7628
  ),
6908
7629
  _react2.default.createElement(
6909
- HBox,
6910
- { vAlign: 'center', className: selectOrgs.length > 0 ? "t-PL16 t-PR16 t-FS14" : "t-DN" },
6911
- _react2.default.createElement(
6912
- Box,
6913
- { className: 't-PT10 t-PB10', flex: 1 },
6914
- '\u5DF2\u9009\u7EC4\u7EC7:',
6915
- selectOrgs.length
6916
- ),
6917
- _react2.default.createElement(
6918
- Box,
6919
- { className: selectUsers.length <= 0 ? "t-FCred" : "t-DN", onClick: function onClick() {
6920
- t.clearItemMember();
6921
- } },
6922
- '\u6E05\u7A7A'
6923
- )
6924
- ),
6925
- _react2.default.createElement(
6926
- HBox,
6927
- { className: selectOrgs.length > 0 ? "dd-appwrap" : "t-DN" },
7630
+ 'div',
7631
+ _defineProperty({ className: selectOrgs.length > 0 ? "dd-appwrap" : "t-DN" }, 'className', 'org-list mt-10'),
6928
7632
  selectOrgs.map(function (item, i) {
6929
7633
  return _react2.default.createElement(
6930
- VBox,
6931
- { className: 'dd-app dd-app-avatar', vAlign: 'center', hAlign: 'center' },
7634
+ 'div',
7635
+ { className: 'selected-list-item' },
6932
7636
  _react2.default.createElement(
6933
- Box,
6934
- null,
6935
- _react2.default.createElement(
6936
- 'div',
6937
- { className: 't-avatar t-WH40 t-LH40 t-BCoranger' },
6938
- _react2.default.createElement('i', { className: item.orgType == '3' ? "t-FS20 iconfont icon-organization t-FCf" : "t-FS20 iconfont icon-mechanism t-FCf" })
6939
- )
7637
+ 'div',
7638
+ { className: 't-avatar t-WH40 t-LH40 t-BCoranger icon' },
7639
+ _react2.default.createElement('i', { className: item.orgType == '3' ? "t-FS20 iconfont icon-organization t-FCf" : "t-FS20 iconfont icon-mechanism t-FCf" })
6940
7640
  ),
6941
7641
  _react2.default.createElement(
6942
- Box,
6943
- { className: 't-MT6 t-PL4 t-PR4 t-WB t-FAC t-omit t-LH1_4' },
6944
- item.orgName
7642
+ 'div',
7643
+ { className: 'right-content' },
7644
+ _react2.default.createElement(
7645
+ 'li',
7646
+ null,
7647
+ _react2.default.createElement(
7648
+ 'p',
7649
+ null,
7650
+ item.orgName
7651
+ ),
7652
+ _react2.default.createElement('p', null)
7653
+ )
6945
7654
  ),
6946
7655
  _react2.default.createElement(
6947
- Box,
6948
- { className: 'dd-appbadge', onClick: function onClick() {
7656
+ 'div',
7657
+ { className: 'delete-icon' },
7658
+ _react2.default.createElement('i', { className: 'iconfont icon-close', onClick: function onClick() {
6949
7659
  t.deleteItemMember(i, "org");
6950
- } },
6951
- _react2.default.createElement('i', { className: 'iconfont icon-plus t-rotate-45' })
7660
+ } })
6952
7661
  )
6953
7662
  );
6954
7663
  })
6955
7664
  ),
6956
7665
  _react2.default.createElement(
6957
- HBox,
6958
- { vAlign: 'center', className: selectRoles.length > 0 ? "t-PL16 t-PR16 t-FS14" : "t-DN" },
6959
- _react2.default.createElement(
6960
- Box,
6961
- { className: 't-PT10 t-PB10', flex: 1 },
6962
- '\u5DF2\u9009\u89D2\u8272:',
6963
- selectRoles.length
6964
- ),
6965
- _react2.default.createElement(
6966
- Box,
6967
- { className: selectUsers.length <= 0 && selectOrgs.length <= 0 ? "t-FCred" : "t-DN", onClick: function onClick() {
6968
- t.clearItemMember();
6969
- } },
6970
- '\u6E05\u7A7A'
6971
- )
6972
- ),
6973
- _react2.default.createElement(
6974
- HBox,
6975
- { className: selectRoles.length > 0 ? "dd-appwrap" : "t-DN" },
6976
- selectRoles.map(function (item, i) {
7666
+ 'div',
7667
+ _defineProperty({ className: selectStations.length > 0 ? "dd-appwrap" : "t-DN" }, 'className', 'station-list mt-10'),
7668
+ selectStations.map(function (item, i) {
6977
7669
  return _react2.default.createElement(
6978
- VBox,
6979
- { className: 'dd-app dd-app-avatar', vAlign: 'center', hAlign: 'center' },
7670
+ 'div',
7671
+ { className: 'selected-list-item' },
6980
7672
  _react2.default.createElement(
6981
- Box,
6982
- null,
6983
- _react2.default.createElement(
6984
- 'div',
6985
- { className: 't-avatar t-WH40 t-LH40 t-BCgreen' },
6986
- _react2.default.createElement('i', { className: 't-FS20 iconfont icon-role t-FCf' })
6987
- )
7673
+ 'div',
7674
+ { className: 't-avatar t-WH40 t-LH40 t-BCoranger icon' },
7675
+ _react2.default.createElement('i', { className: 't-FS20 iconfont icon-mine t-FCf ' })
6988
7676
  ),
6989
7677
  _react2.default.createElement(
6990
- Box,
6991
- { className: 't-MT6 t-PL4 t-PR4 t-WB t-FAC t-omit t-LH1_4' },
6992
- item.roleName
7678
+ 'div',
7679
+ { className: 'right-content' },
7680
+ _react2.default.createElement(
7681
+ 'li',
7682
+ null,
7683
+ _react2.default.createElement(
7684
+ 'p',
7685
+ null,
7686
+ item.stationName
7687
+ ),
7688
+ _react2.default.createElement('p', null)
7689
+ )
6993
7690
  ),
6994
7691
  _react2.default.createElement(
6995
- Box,
6996
- { className: 'dd-appbadge', onClick: function onClick() {
6997
- t.deleteItemMember(i, "role");
6998
- } },
6999
- _react2.default.createElement('i', { className: 'iconfont icon-plus t-rotate-45' })
7692
+ 'div',
7693
+ { className: 'delete-icon' },
7694
+ _react2.default.createElement('i', { className: 'iconfont icon-close', onClick: function onClick() {
7695
+ t.deleteItemMember(i, "station");
7696
+ } })
7000
7697
  )
7001
7698
  );
7002
7699
  })
7003
7700
  ),
7004
7701
  _react2.default.createElement(
7005
- HBox,
7006
- { vAlign: 'center', className: selectStations.length > 0 ? "t-PL16 t-PR16 t-FS14" : "t-DN" },
7007
- _react2.default.createElement(
7008
- Box,
7009
- { className: 't-PT10 t-PB10', flex: 1 },
7010
- '\u5DF2\u9009\u5C97\u4F4D:',
7011
- selectStations.length
7012
- ),
7013
- _react2.default.createElement(
7014
- Box,
7015
- { className: selectUsers.length <= 0 && selectOrgs.length <= 0 && selectRoles.length <= 0 ? "t-FCred" : "t-DN", onClick: function onClick() {
7016
- t.clearItemMember();
7017
- } },
7018
- '\u6E05\u7A7A'
7019
- )
7020
- ),
7021
- _react2.default.createElement(
7022
- HBox,
7023
- { className: selectStations.length > 0 ? "dd-appwrap" : "t-DN" },
7024
- selectStations.map(function (item, i) {
7702
+ 'div',
7703
+ _defineProperty({ className: selectDutys.length > 0 ? "dd-appwrap" : "t-DN" }, 'className', 'duty-list mt-10'),
7704
+ selectDutys.map(function (item, i) {
7025
7705
  return _react2.default.createElement(
7026
- VBox,
7027
- { className: 'dd-app dd-app-avatar', vAlign: 'center', hAlign: 'center' },
7706
+ 'div',
7707
+ { className: 'selected-list-item' },
7028
7708
  _react2.default.createElement(
7029
- Box,
7030
- null,
7031
- _react2.default.createElement(
7032
- 'div',
7033
- { className: 't-avatar t-WH40 t-LH40 t-BCoranger' },
7034
- _react2.default.createElement('i', { className: 't-FS20 iconfont icon-mine t-FCf' })
7035
- )
7709
+ 'div',
7710
+ { className: 't-avatar t-WH40 t-LH40 t-BCblue icon' },
7711
+ _react2.default.createElement('i', { className: 't-FS20 iconfont icon-group t-FCf' })
7036
7712
  ),
7037
7713
  _react2.default.createElement(
7038
- Box,
7039
- { className: 't-MT6 t-PL4 t-PR4 t-WB t-FAC t-omit t-LH1_4' },
7040
- item.stationName
7714
+ 'div',
7715
+ { className: 'right-content' },
7716
+ _react2.default.createElement(
7717
+ 'li',
7718
+ null,
7719
+ _react2.default.createElement(
7720
+ 'p',
7721
+ null,
7722
+ item.dutyName
7723
+ ),
7724
+ _react2.default.createElement('p', null)
7725
+ )
7041
7726
  ),
7042
7727
  _react2.default.createElement(
7043
- Box,
7044
- { className: 'dd-appbadge', onClick: function onClick() {
7045
- t.deleteItemMember(i, "station");
7046
- } },
7047
- _react2.default.createElement('i', { className: 'iconfont icon-plus t-rotate-45' })
7728
+ 'div',
7729
+ { className: 'delete-icon' },
7730
+ _react2.default.createElement('i', { className: 'iconfont icon-close', onClick: function onClick() {
7731
+ t.deleteItemMember(i, "duty");
7732
+ } })
7048
7733
  )
7049
7734
  );
7050
7735
  })
7051
7736
  ),
7052
7737
  _react2.default.createElement(
7053
- HBox,
7054
- { vAlign: 'center', className: selectGroups.length > 0 ? "t-PL16 t-PR16 t-FS14" : "t-DN" },
7055
- _react2.default.createElement(
7056
- Box,
7057
- { className: 't-PT10 t-PB10', flex: 1 },
7058
- '\u5DF2\u9009\u7FA4\u7EC4:',
7059
- selectGroups.length
7060
- ),
7061
- _react2.default.createElement(
7062
- Box,
7063
- { className: selectUsers.length <= 0 && selectOrgs.length <= 0 && selectRoles.length <= 0 && selectStations.length <= 0 ? "t-FCred" : "t-DN", onClick: function onClick() {
7064
- t.clearItemMember();
7065
- } },
7066
- '\u6E05\u7A7A'
7067
- )
7068
- ),
7069
- _react2.default.createElement(
7070
- HBox,
7071
- { className: selectGroups.length > 0 ? "dd-appwrap" : "t-DN" },
7738
+ 'div',
7739
+ _defineProperty({ className: selectGroups.length > 0 ? "dd-appwrap" : "t-DN" }, 'className', 'group-list mt-10'),
7072
7740
  selectGroups.map(function (item, i) {
7073
-
7074
7741
  return _react2.default.createElement(
7075
- VBox,
7076
- { className: 'dd-app dd-app-avatar', vAlign: 'center', hAlign: 'center' },
7742
+ 'div',
7743
+ { className: 'selected-list-item' },
7077
7744
  _react2.default.createElement(
7078
- Box,
7079
- null,
7080
- _react2.default.createElement(
7081
- 'div',
7082
- { className: 't-avatar t-WH40 t-LH40 t-BCblue' },
7083
- _react2.default.createElement('i', { className: 't-FS20 iconfont icon-group t-FCf' })
7084
- )
7745
+ 'div',
7746
+ { className: 't-avatar t-WH40 t-LH40 t-BCblue icon' },
7747
+ _react2.default.createElement('i', { className: 't-FS20 iconfont icon-group t-FCf' })
7085
7748
  ),
7086
7749
  _react2.default.createElement(
7087
- Box,
7088
- { className: 't-MT6 t-PL4 t-PR4 t-WB t-FAC t-omit t-LH1_4' },
7089
- item.groupName
7750
+ 'div',
7751
+ { className: 'right-content' },
7752
+ _react2.default.createElement(
7753
+ 'li',
7754
+ null,
7755
+ _react2.default.createElement(
7756
+ 'p',
7757
+ null,
7758
+ item.groupName
7759
+ ),
7760
+ _react2.default.createElement('p', null)
7761
+ )
7090
7762
  ),
7091
7763
  _react2.default.createElement(
7092
- Box,
7093
- { className: 'dd-appbadge', onClick: function onClick() {
7764
+ 'div',
7765
+ { className: 'delete-icon' },
7766
+ _react2.default.createElement('i', { className: 'iconfont icon-close', onClick: function onClick() {
7094
7767
  t.deleteItemMember(i, "group");
7095
- } },
7096
- _react2.default.createElement('i', { className: 'iconfont icon-plus t-rotate-45' })
7768
+ } })
7097
7769
  )
7098
7770
  );
7099
7771
  })
7100
7772
  ),
7101
7773
  _react2.default.createElement(
7102
- HBox,
7103
- { vAlign: 'center', className: selectPersonalGroups.length > 0 ? "t-PL16 t-PR16 t-FS14" : "t-DN" },
7104
- _react2.default.createElement(
7105
- Box,
7106
- { className: 't-PT10 t-PB10', flex: 1 },
7107
- '\u5DF2\u9009\u4E2A\u4EBA\u7FA4\u7EC4:',
7108
- selectPersonalGroups.length
7109
- ),
7110
- _react2.default.createElement(
7111
- Box,
7112
- { className: selectUsers.length <= 0 && selectOrgs.length <= 0 && selectRoles.length <= 0 && selectStations.length <= 0 && selectGroups.length <= 0 && selectPersonalGroups.length < 0 && selectDutys.length <= 0 && selectPoliticalOutlooks.length <= 0 ? "t-FCred" : "t-DN", onClick: function onClick() {
7113
- t.clearItemMember();
7114
- } },
7115
- '\u6E05\u7A7A'
7116
- )
7117
- ),
7118
- _react2.default.createElement(
7119
- HBox,
7120
- { className: selectPersonalGroups.length > 0 ? "dd-appwrap" : "t-DN" },
7774
+ 'div',
7775
+ _defineProperty({ className: selectPersonalGroups.length > 0 ? "dd-appwrap" : "t-DN" }, 'className', 'personal-group-list mt-10'),
7121
7776
  selectPersonalGroups.map(function (item, i) {
7122
7777
  return _react2.default.createElement(
7123
- VBox,
7124
- { className: 'dd-app dd-app-avatar', vAlign: 'center', hAlign: 'center', onClick: function onClick() {
7125
- t.deleteItemMember(i, "personGroup");
7126
- } },
7778
+ 'div',
7779
+ { className: 'selected-list-item' },
7127
7780
  _react2.default.createElement(
7128
- Box,
7129
- null,
7130
- _react2.default.createElement(
7131
- 'div',
7132
- { className: 't-avatar t-WH40 t-LH40 t-BCblue' },
7133
- _react2.default.createElement('i', { className: 't-FS20 iconfont icon-group t-FCf' })
7134
- )
7781
+ 'div',
7782
+ { className: 't-avatar t-WH40 t-LH40 t-BCblue icon' },
7783
+ _react2.default.createElement('i', { className: 't-FS20 iconfont icon-group t-FCf' })
7135
7784
  ),
7136
7785
  _react2.default.createElement(
7137
- Box,
7138
- { className: 't-MT6 t-PL4 t-PR4 t-WB t-FAC t-omit t-LH1_4' },
7139
- item.personalGroupName
7786
+ 'div',
7787
+ { className: 'right-content' },
7788
+ _react2.default.createElement(
7789
+ 'li',
7790
+ null,
7791
+ _react2.default.createElement(
7792
+ 'p',
7793
+ null,
7794
+ item.personalGroupName
7795
+ ),
7796
+ _react2.default.createElement('p', null)
7797
+ )
7140
7798
  ),
7141
7799
  _react2.default.createElement(
7142
- Box,
7143
- { className: 'dd-appbadge' },
7144
- _react2.default.createElement('i', { className: 'iconfont icon-plus t-rotate-45' })
7800
+ 'div',
7801
+ { className: 'delete-icon' },
7802
+ _react2.default.createElement('i', { className: 'iconfont icon-close', onClick: function onClick() {
7803
+ t.deleteItemMember(i, "personGroup");
7804
+ } })
7145
7805
  )
7146
7806
  );
7147
7807
  })
7148
7808
  ),
7149
7809
  _react2.default.createElement(
7150
- HBox,
7151
- { vAlign: 'center', className: selectDutys.length > 0 ? "t-PL16 t-PR16 t-FS14" : "t-DN" },
7152
- _react2.default.createElement(
7153
- Box,
7154
- { className: 't-PT10 t-PB10', flex: 1 },
7155
- '\u5DF2\u9009\u804C\u52A1:',
7156
- selectDutys.length
7157
- ),
7158
- _react2.default.createElement(
7159
- Box,
7160
- { className: selectUsers.length <= 0 && selectOrgs.length <= 0 && selectRoles.length <= 0 && selectStations.length <= 0 && selectGroups.length <= 0 && selectPersonalGroups.length < 0 && selectDutys.length <= 0 && selectPoliticalOutlooks.length <= 0 ? "t-FCred" : "t-DN", onClick: function onClick() {
7161
- t.clearItemMember();
7162
- } },
7163
- '\u6E05\u7A7A'
7164
- )
7165
- ),
7166
- _react2.default.createElement(
7167
- HBox,
7168
- { className: selectDutys.length > 0 ? "dd-appwrap" : "t-DN" },
7169
- selectDutys.map(function (item, i) {
7810
+ 'div',
7811
+ _defineProperty({ className: selectPersonalGroups.length > 0 ? "dd-appwrap" : "t-DN" }, 'className', 'role-list mt-10'),
7812
+ selectRoles.map(function (item, i) {
7170
7813
  return _react2.default.createElement(
7171
- VBox,
7172
- { className: 'dd-app dd-app-avatar', vAlign: 'center', hAlign: 'center', onClick: function onClick() {
7173
- t.deleteItemMember(i, "duty");
7174
- } },
7814
+ 'div',
7815
+ { className: 'selected-list-item' },
7175
7816
  _react2.default.createElement(
7176
- Box,
7177
- null,
7178
- _react2.default.createElement(
7179
- 'div',
7180
- { className: 't-avatar t-WH40 t-LH40 t-BCblue' },
7181
- _react2.default.createElement('i', { className: 't-FS20 iconfont icon-group t-FCf' })
7182
- )
7817
+ 'div',
7818
+ { className: 't-avatar t-WH40 t-LH40 t-BCgreen icon' },
7819
+ _react2.default.createElement('i', { className: 't-FS20 iconfont icon-role t-FCf' })
7183
7820
  ),
7184
7821
  _react2.default.createElement(
7185
- Box,
7186
- { className: 't-MT6 t-PL4 t-PR4 t-WB t-FAC t-omit t-LH1_4' },
7187
- item.dutyName
7822
+ 'div',
7823
+ { className: 'right-content' },
7824
+ _react2.default.createElement(
7825
+ 'li',
7826
+ null,
7827
+ _react2.default.createElement(
7828
+ 'p',
7829
+ null,
7830
+ item.roleName
7831
+ ),
7832
+ _react2.default.createElement('p', null)
7833
+ )
7188
7834
  ),
7189
7835
  _react2.default.createElement(
7190
- Box,
7191
- { className: 'dd-appbadge' },
7192
- _react2.default.createElement('i', { className: 'iconfont icon-plus t-rotate-45' })
7836
+ 'div',
7837
+ { className: 'delete-icon' },
7838
+ _react2.default.createElement('i', { className: 'iconfont icon-close', onClick: function onClick() {
7839
+ t.deleteItemMember(i, "role");
7840
+ } })
7193
7841
  )
7194
7842
  );
7195
7843
  })
7196
7844
  ),
7197
7845
  _react2.default.createElement(
7198
- HBox,
7199
- { vAlign: 'center', className: selectPoliticalOutlooks.length > 0 ? "t-PL16 t-PR16 t-FS14" : "t-DN" },
7200
- _react2.default.createElement(
7201
- Box,
7202
- { className: 't-PT10 t-PB10', flex: 1 },
7203
- '\u5DF2\u9009\u653F\u6CBB\u9762\u8C8C:',
7204
- selectPoliticalOutlooks.length
7205
- ),
7206
- _react2.default.createElement(
7207
- Box,
7208
- { className: selectUsers.length <= 0 && selectOrgs.length <= 0 && selectRoles.length <= 0 && selectStations.length <= 0 && selectGroups.length <= 0 && selectPersonalGroups.length < 0 && selectDutys.length <= 0 && selectPoliticalOutlooks.length <= 0 ? "t-FCred" : "t-DN", onClick: function onClick() {
7209
- t.clearItemMember();
7210
- } },
7211
- '\u6E05\u7A7A'
7212
- )
7213
- ),
7214
- _react2.default.createElement(
7215
- HBox,
7216
- { className: selectPoliticalOutlooks.length > 0 ? "dd-appwrap" : "t-DN" },
7846
+ 'div',
7847
+ _defineProperty({ className: selectPersonalGroups.length > 0 ? "dd-appwrap" : "t-DN" }, 'className', 'political-list mt-10'),
7217
7848
  selectPoliticalOutlooks.map(function (item, i) {
7218
7849
  return _react2.default.createElement(
7219
- VBox,
7220
- { className: 'dd-app dd-app-avatar', vAlign: 'center', hAlign: 'center', onClick: function onClick() {
7221
- t.deleteItemMember(i, "politicalOutlook");
7222
- } },
7850
+ 'div',
7851
+ { className: 'selected-list-item' },
7852
+ _react2.default.createElement(
7853
+ 'div',
7854
+ { className: 't-avatar t-WH40 t-LH40 t-BCblue icon' },
7855
+ _react2.default.createElement('i', { className: 't-FS20 iconfont icon-group t-FCf' })
7856
+ ),
7223
7857
  _react2.default.createElement(
7224
- Box,
7225
- null,
7858
+ 'div',
7859
+ { className: 'right-content' },
7226
7860
  _react2.default.createElement(
7227
- 'div',
7228
- { className: 't-avatar t-WH40 t-LH40 t-BCblue' },
7229
- _react2.default.createElement('i', { className: 't-FS20 iconfont icon-group t-FCf' })
7861
+ 'li',
7862
+ null,
7863
+ _react2.default.createElement(
7864
+ 'p',
7865
+ null,
7866
+ item.name
7867
+ ),
7868
+ _react2.default.createElement('p', null)
7230
7869
  )
7231
7870
  ),
7232
7871
  _react2.default.createElement(
7233
- Box,
7234
- { className: 't-MT6 t-PL4 t-PR4 t-WB t-FAC t-omit t-LH1_4' },
7235
- item.name
7236
- ),
7237
- _react2.default.createElement(
7238
- Box,
7239
- { className: 'dd-appbadge' },
7240
- _react2.default.createElement('i', { className: 'iconfont icon-plus t-rotate-45' })
7872
+ 'div',
7873
+ { className: 'delete-icon' },
7874
+ _react2.default.createElement('i', { className: 'iconfont icon-close', onClick: function onClick() {
7875
+ t.deleteItemMember(i, "politicalOutlook");
7876
+ } })
7241
7877
  )
7242
7878
  );
7243
7879
  })
@@ -7245,13 +7881,24 @@ var Page = function (_React$Component) {
7245
7881
  ),
7246
7882
  _react2.default.createElement(
7247
7883
  'div',
7248
- { className: 't-bottom-fixed no-border t-BCf' },
7884
+ { className: 't-bottom-fixed no-border t-BCf selected-bottom' },
7249
7885
  _react2.default.createElement(
7250
- _Button2.default,
7251
- { type: 'primary', onClick: function onClick() {
7252
- t.handleSelectClick(false);
7253
- } },
7254
- '\u8FD4\u56DE'
7886
+ 'div',
7887
+ { className: 'right-btn' },
7888
+ _react2.default.createElement(
7889
+ _Button2.default,
7890
+ { type: 'primary', onClick: function onClick() {
7891
+ t.handleSelectClick(false);
7892
+ }, className: 'go-back' },
7893
+ '\u8FD4\u56DE'
7894
+ ),
7895
+ _react2.default.createElement(
7896
+ _Button2.default,
7897
+ { type: 'danger', onClick: function onClick() {
7898
+ t.clearItemMember();
7899
+ }, className: 'delete-all' },
7900
+ '\u6E05\u7A7A'
7901
+ )
7255
7902
  )
7256
7903
  )
7257
7904
  ),
@@ -7267,7 +7914,49 @@ var Page = function (_React$Component) {
7267
7914
  tabContent = _react2.default.createElement(
7268
7915
  'div',
7269
7916
  { id: 'anchor', style: { overflow: "auto", height: '' + t.state.tabHeight }, className: 't-PB68 dd-top-border scrollHeight t-PR' },
7270
- (commonUsedData == null || commonUsedData == undefined || commonUsedData.length <= 0) && t.state.activeKey == "common" ? _react2.default.createElement(
7917
+ _react2.default.createElement(
7918
+ 'div',
7919
+ { className: t.state.commonName == "" && t.state.isShowNav ? "t-BCf7 t-OFA t-WSN dd-bottom-border" : "t-DN" },
7920
+ navList.map(function (item, index) {
7921
+ if (index == 0) {
7922
+ return _react2.default.createElement(
7923
+ 'div',
7924
+ { className: 't-PL16 t-LH42 t-FCddblue t-DIB', onClick: function onClick() {
7925
+ t.handleNavClick("0", "common", "");
7926
+ } },
7927
+ '\u5168\u90E8'
7928
+ );
7929
+ } else {
7930
+ var nameHtml = "";
7931
+ if (index == navList.length - 1) {
7932
+ nameHtml = _react2.default.createElement(
7933
+ 'div',
7934
+ { className: 't-FC9 t-DIB' },
7935
+ item.scopeName
7936
+ );
7937
+ } else {
7938
+ nameHtml = _react2.default.createElement(
7939
+ 'div',
7940
+ { className: 't-FC9 t-DIB t-FCddblue', onClick: function onClick() {
7941
+ t.handleNavClick(item.scopeValue, "common", item.scopeType);
7942
+ } },
7943
+ item.scopeName
7944
+ );
7945
+ }
7946
+ return _react2.default.createElement(
7947
+ 'div',
7948
+ { className: 't-DIB' },
7949
+ _react2.default.createElement(
7950
+ 'div',
7951
+ { className: 't-PL10 t-PR10 t-FCc t-DIB' },
7952
+ '>'
7953
+ ),
7954
+ nameHtml
7955
+ );
7956
+ }
7957
+ })
7958
+ ),
7959
+ t.state.commonTreeData.length <= 0 && t.state.commonUsedData.length <= 0 && t.state.activeKey == "common" ? _react2.default.createElement(
7271
7960
  'div',
7272
7961
  { className: 'nodata-wrapper' },
7273
7962
  _react2.default.createElement(
@@ -7288,9 +7977,108 @@ var Page = function (_React$Component) {
7288
7977
  t.state.nodataText
7289
7978
  )
7290
7979
  )
7291
- ) : commonUsedData.map(function (item, index) {
7980
+ ) : "",
7981
+ t.state.commonTreeData.map(function (item, index) {
7982
+ var scopeType = item.scopeType;
7983
+ var showHtml = "";
7984
+ var clickHtml = "";
7985
+ if (scopeType == "user") {
7986
+ showHtml = _react2.default.createElement(
7987
+ Box,
7988
+ { className: 't-PT10 t-PB10 t-PL10 t-PR6' },
7989
+ _react2.default.createElement(_Avatar2.default, { filter: function filter(prevName) {
7990
+ return prevName;
7991
+ }, name: item.scopeName.indexOf("(") > 0 ? item.scopeName.substring(0, item.scopeName.indexOf("(")) : item.scopeName, src: "", defaultColor: '#F6BF26' })
7992
+ );
7993
+ } else if (scopeType == "org") {
7994
+ showHtml = _react2.default.createElement(
7995
+ Box,
7996
+ { className: 't-PT10 t-PB10 t-PR6' },
7997
+ _react2.default.createElement('i', { className: 'iconfont icon-organization t-FCd t-FS20' })
7998
+ );
7999
+ clickHtml = _react2.default.createElement(
8000
+ Box,
8001
+ { className: "t-PR16", onClick: function onClick() {
8002
+ t.handleCommonShow(item.scopeValue, item, 'common', "org");
8003
+ } },
8004
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8005
+ );
8006
+ } else if (scopeType == "role") {
8007
+ showHtml = _react2.default.createElement(
8008
+ Box,
8009
+ { className: 't-PT10 t-PB10 t-PL6 t-PR6' },
8010
+ _react2.default.createElement('i', { className: 'iconfont icon-role t-FCd t-FS20' })
8011
+ );
8012
+ clickHtml = _react2.default.createElement(
8013
+ Box,
8014
+ { className: "t-PR16", onClick: function onClick() {
8015
+ t.handleRoleShow(item.scopeValue, item, 'common');
8016
+ } },
8017
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8018
+ );
8019
+ } else if (scopeType == "station") {
8020
+ showHtml = _react2.default.createElement(
8021
+ Box,
8022
+ { className: 't-PT10 t-PB10 t-PR6' },
8023
+ _react2.default.createElement('i', { className: 'iconfont icon-mine t-FCd t-FS20' })
8024
+ );
8025
+ clickHtml = _react2.default.createElement(
8026
+ Box,
8027
+ { className: "t-PR16", onClick: function onClick() {
8028
+ t.handleStationShow(item.scopeValue, item, 'common');
8029
+ } },
8030
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8031
+ );
8032
+ } else if (scopeType == "group") {
8033
+ showHtml = _react2.default.createElement(
8034
+ Box,
8035
+ { className: 't-PT10 t-PB10 t-PR6' },
8036
+ _react2.default.createElement('i', { className: 'iconfont icon-group t-FCd t-FS20' })
8037
+ );
8038
+ clickHtml = _react2.default.createElement(
8039
+ Box,
8040
+ { className: "t-PR16", onClick: function onClick() {
8041
+ t.handleCommonShow(item.scopeValue, item, 'common', 'group');
8042
+ } },
8043
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8044
+ );
8045
+ } else if (scopeType == "personGroup") {
8046
+ showHtml = _react2.default.createElement(
8047
+ Box,
8048
+ { className: 't-PT10 t-PB10 t-PR6' },
8049
+ _react2.default.createElement('i', { className: 'iconfont icon-group t-FCd t-FS20' })
8050
+ );
8051
+ clickHtml = _react2.default.createElement(
8052
+ Box,
8053
+ { className: t.state.orgName == "" ? "t-PR16" : "t-DN", onClick: function onClick() {
8054
+ t.handleCommonShow(item.id, item);
8055
+ } },
8056
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8057
+ );
8058
+ }
8059
+ return _react2.default.createElement(
8060
+ 'div',
8061
+ { className: 't-PL16 t-PR16 dd-bottom-border t-BCf' },
8062
+ _react2.default.createElement(
8063
+ HBox,
8064
+ { vAlign: 'center' },
8065
+ _react2.default.createElement(HBox, null),
8066
+ showHtml,
8067
+ _react2.default.createElement(
8068
+ Box,
8069
+ { flex: 1, className: 't-FS16 t-PL4 t-PR10 ', onClick: function onClick() {
8070
+ t.handleCommonShow(item.scopeValue, item, 'common', item.scopeType);
8071
+ } },
8072
+ item.scopeName
8073
+ ),
8074
+ clickHtml
8075
+ )
8076
+ );
8077
+ }),
8078
+ t.state.commonUsedData.map(function (item, index) {
7292
8079
  var scopeType = item.scopeType;
7293
8080
  var showHtml = "";
8081
+ var clickHtml = "";
7294
8082
  if (scopeType == "user") {
7295
8083
  showHtml = _react2.default.createElement(
7296
8084
  Box,
@@ -7305,6 +8093,13 @@ var Page = function (_React$Component) {
7305
8093
  { className: 't-PT10 t-PB10 t-PR6' },
7306
8094
  _react2.default.createElement('i', { className: 'iconfont icon-organization t-FCd t-FS20' })
7307
8095
  );
8096
+ clickHtml = _react2.default.createElement(
8097
+ Box,
8098
+ { className: t.state.orgName == "" ? "t-PR16" : "t-DN", onClick: function onClick() {
8099
+ t.handleCommonShow(item.id, item);
8100
+ } },
8101
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8102
+ );
7308
8103
  } else if (scopeType == "role") {
7309
8104
  showHtml = _react2.default.createElement(
7310
8105
  Box,
@@ -7317,18 +8112,39 @@ var Page = function (_React$Component) {
7317
8112
  { className: 't-PT10 t-PB10 t-PR6' },
7318
8113
  _react2.default.createElement('i', { className: 'iconfont icon-mine t-FCd t-FS20' })
7319
8114
  );
8115
+ clickHtml = _react2.default.createElement(
8116
+ Box,
8117
+ { className: t.state.orgName == "" ? "t-PR16" : "t-DN", onClick: function onClick() {
8118
+ t.handleCommonShow(item.id, item);
8119
+ } },
8120
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8121
+ );
7320
8122
  } else if (scopeType == "group") {
7321
8123
  showHtml = _react2.default.createElement(
7322
8124
  Box,
7323
8125
  { className: 't-PT10 t-PB10 t-PR6' },
7324
8126
  _react2.default.createElement('i', { className: 'iconfont icon-group t-FCd t-FS20' })
7325
8127
  );
8128
+ clickHtml = _react2.default.createElement(
8129
+ Box,
8130
+ { className: t.state.orgName == "" ? "t-PR16" : "t-DN", onClick: function onClick() {
8131
+ t.handleCommonShow(item.id, item);
8132
+ } },
8133
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8134
+ );
7326
8135
  } else if (scopeType == "personGroup") {
7327
8136
  showHtml = _react2.default.createElement(
7328
8137
  Box,
7329
8138
  { className: 't-PT10 t-PB10 t-PR6' },
7330
8139
  _react2.default.createElement('i', { className: 'iconfont icon-group t-FCd t-FS20' })
7331
8140
  );
8141
+ clickHtml = _react2.default.createElement(
8142
+ Box,
8143
+ { className: t.state.orgName == "" ? "t-PR16" : "t-DN", onClick: function onClick() {
8144
+ t.handleCommonShow(item.id, item);
8145
+ } },
8146
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8147
+ );
7332
8148
  }
7333
8149
  return _react2.default.createElement(
7334
8150
  'div',
@@ -7357,7 +8173,8 @@ var Page = function (_React$Component) {
7357
8173
  { className: 't-FS13 t-PR10', style: { color: '#33333373' } },
7358
8174
  item.orgNamePath
7359
8175
  )
7360
- )
8176
+ ),
8177
+ clickHtml
7361
8178
  )
7362
8179
  );
7363
8180
  })
@@ -7421,7 +8238,7 @@ var Page = function (_React$Component) {
7421
8238
  if (index == 0) {
7422
8239
  return _react2.default.createElement(
7423
8240
  'div',
7424
- { className: 't-PL16 t-LH42 t-FCddblue t-DIB', onClick: function onClick() {
8241
+ { className: 't-PL16 t-LH42 t-FCblue t-DIB', onClick: function onClick() {
7425
8242
  t.handleNavClick("0", "org", "");
7426
8243
  } },
7427
8244
  '\u5168\u90E8'
@@ -7447,7 +8264,7 @@ var Page = function (_React$Component) {
7447
8264
  } else {
7448
8265
  nameHtml = _react2.default.createElement(
7449
8266
  'div',
7450
- { className: 't-FC9 t-DIB t-FCddblue', onClick: function onClick() {
8267
+ { className: 't-FC9 t-DIB t-FCblue', onClick: function onClick() {
7451
8268
  t.handleNavClick(item.id, "org", "");
7452
8269
  } },
7453
8270
  item.orgName
@@ -7490,49 +8307,51 @@ var Page = function (_React$Component) {
7490
8307
  ) : "",
7491
8308
  t.state.orgList.map(function (org, index) {
7492
8309
  if (chooseType.indexOf("userNotOrg") < 0) {
7493
- return _react2.default.createElement(
7494
- HBox,
7495
- { vAlign: 'center', className: 'dd-bottom-border t-BCf' },
7496
- _react2.default.createElement(
8310
+ if (org.isCur && chooseType.indexOf("userAndOrg") < 0) {} else {
8311
+ return _react2.default.createElement(
7497
8312
  HBox,
7498
- { className: 't-PL16 t-PR10', onClick: function onClick() {
7499
- t.checkItemMember(index, "org");
7500
- } },
7501
- getOrgType == "" || getOrgType == "2" && (org.orgType == '2' || org.orgType == '1') || getOrgType == "3" && org.orgType == '3' ? _react2.default.createElement(
7502
- 'div',
7503
- {
7504
- className: org.canUse == '0' ? 't-checkbox-field-icon-list disabled' : org.checked ? 't-checkbox-field-icon-list checked' + (isRadio ? ' t-list-cricle' : '') : 'un-checked t-checkbox-field-icon-list' + (isRadio ? ' t-list-cricle' : '') },
7505
- _react2.default.createElement('i', { className: 'iconfont icon-checked t-FCf t-FS14' })
7506
- ) : ""
7507
- ),
7508
- _react2.default.createElement(
7509
- Box,
7510
- { className: 't-PT10 t-PB10 t-PR6' },
7511
- _react2.default.createElement('i', { className: org.orgType == '3' ? "iconfont icon-organization t-FCd t-FS20" : "iconfont icon-mechanism t-FCd t-FS20" })
7512
- ),
7513
- org.isCur ? _react2.default.createElement(
7514
- Box,
7515
- { flex: 1, onClick: function onClick() {
7516
- t.state.orgName == "" && t.handleOrgShow(org.id, org);
7517
- }, className: 't-FS16 t-PL4 t-PR10 t-omit' },
7518
- "我的部门",
7519
- _react2.default.createElement('i', { className: 'iconfont t-ML6 icon-dotted' }),
7520
- org.orgName
7521
- ) : _react2.default.createElement(
7522
- Box,
7523
- { flex: 1, onClick: function onClick() {
7524
- t.state.orgName == "" && t.handleOrgShow(org.id, org);
7525
- }, className: 't-FS16 t-PL4 t-PR10 t-omit' },
7526
- org.orgName
7527
- ),
7528
- _react2.default.createElement(
7529
- Box,
7530
- { className: t.state.orgName == "" ? "t-PR16" : "t-DN", onClick: function onClick() {
7531
- t.handleOrgShow(org.id, org);
7532
- } },
7533
- _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
7534
- )
7535
- );
8313
+ { vAlign: 'center', className: 'dd-bottom-border t-BCf' },
8314
+ _react2.default.createElement(
8315
+ HBox,
8316
+ { className: 't-PL16 t-PR10', onClick: function onClick() {
8317
+ t.checkItemMember(index, "org");
8318
+ } },
8319
+ getOrgType == "" || getOrgType == "2" && (org.orgType == '2' || org.orgType == '1') || getOrgType == "3" && org.orgType == '3' ? _react2.default.createElement(
8320
+ 'div',
8321
+ {
8322
+ className: org.canUse == '0' ? 't-checkbox-field-icon-list disabled' : org.checked ? 't-checkbox-field-icon-list checked' + (isRadio ? ' t-list-cricle' : '') : 'un-checked t-checkbox-field-icon-list' + (isRadio ? ' t-list-cricle' : '') },
8323
+ _react2.default.createElement('i', { className: 'iconfont icon-checked t-FCf t-FS14' })
8324
+ ) : ""
8325
+ ),
8326
+ _react2.default.createElement(
8327
+ Box,
8328
+ { className: 't-PT10 t-PB10 t-PR6' },
8329
+ _react2.default.createElement('i', { className: org.orgType == '3' ? "iconfont icon-organization t-FCd t-FS20" : "iconfont icon-mechanism t-FCd t-FS20" })
8330
+ ),
8331
+ org.isCur ? _react2.default.createElement(
8332
+ Box,
8333
+ { flex: 1, onClick: function onClick() {
8334
+ t.state.orgName == "" && t.handleOrgShow(org.id, org);
8335
+ }, className: 't-FS16 t-PL4 t-PR10 t-omit' },
8336
+ "我的部门",
8337
+ _react2.default.createElement('i', { className: 'iconfont t-ML6 icon-dotted' }),
8338
+ org.orgName
8339
+ ) : _react2.default.createElement(
8340
+ Box,
8341
+ { flex: 1, onClick: function onClick() {
8342
+ t.state.orgName == "" && t.handleOrgShow(org.id, org);
8343
+ }, className: 't-FS16 t-PL4 t-PR10 t-omit' },
8344
+ org.orgName
8345
+ ),
8346
+ _react2.default.createElement(
8347
+ Box,
8348
+ { className: t.state.orgName == "" ? "t-PR16" : "t-DN", onClick: function onClick() {
8349
+ t.handleOrgShow(org.id, org);
8350
+ } },
8351
+ _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
8352
+ )
8353
+ );
8354
+ }
7536
8355
  } else {
7537
8356
  return _react2.default.createElement(
7538
8357
  HBox,
@@ -7566,7 +8385,7 @@ var Page = function (_React$Component) {
7566
8385
  chooseType.indexOf("userAndOrg") >= 0 || chooseType.indexOf("userNotOrg") >= 0 ? t.state.orgUserList.map(function (user, index) {
7567
8386
  return _react2.default.createElement(
7568
8387
  HBox,
7569
- { vAlign: 'center', className: 'dd-bottom-border t-BCf', onClick: function onClick() {
8388
+ { vAlign: 'center', className: ' t-BCf', onClick: function onClick() {
7570
8389
  t.checkItemMember(index, "orgUser");
7571
8390
  } },
7572
8391
  _react2.default.createElement(
@@ -7587,7 +8406,7 @@ var Page = function (_React$Component) {
7587
8406
  ),
7588
8407
  _react2.default.createElement(
7589
8408
  Box,
7590
- { flex: 1, className: 't-FS16 t-PL4 t-PR10' },
8409
+ { flex: 1, className: 't-FS16 t-PL4 t-PR10 dd-bottom-border select-user-info', style: { paddingBottom: 5 + 'px' } },
7591
8410
  user.userName,
7592
8411
  _react2.default.createElement(
7593
8412
  'div',
@@ -7758,7 +8577,7 @@ var Page = function (_React$Component) {
7758
8577
  if (index == 0) {
7759
8578
  return _react2.default.createElement(
7760
8579
  'div',
7761
- { className: 't-PL16 t-LH42 t-FCddblue t-DIB', onClick: function onClick() {
8580
+ { className: 't-PL16 t-LH42 t-FCblue t-DIB', onClick: function onClick() {
7762
8581
  t.handleNavClick("0", "station", "");
7763
8582
  } },
7764
8583
  '\u5168\u90E8'
@@ -7774,7 +8593,7 @@ var Page = function (_React$Component) {
7774
8593
  } else {
7775
8594
  nameHtml = _react2.default.createElement(
7776
8595
  'div',
7777
- { className: 't-FC9 t-DIB t-FCddblue', onClick: function onClick() {
8596
+ { className: 't-FC9 t-DIB t-FCblue', onClick: function onClick() {
7778
8597
  t.handleNavClick(item.id, "station", item.type);
7779
8598
  } },
7780
8599
  item.type == "org" ? item.orgName : item.stationName
@@ -7971,7 +8790,7 @@ var Page = function (_React$Component) {
7971
8790
  if (index == 0) {
7972
8791
  return _react2.default.createElement(
7973
8792
  'div',
7974
- { className: 't-PL16 t-LH42 t-FCddblue t-DIB', onClick: function onClick() {
8793
+ { className: 't-PL16 t-LH42 t-FCblue t-DIB', onClick: function onClick() {
7975
8794
  t.handleNavClick("0", "group", "");
7976
8795
  } },
7977
8796
  '\u5168\u90E8'
@@ -7987,7 +8806,7 @@ var Page = function (_React$Component) {
7987
8806
  } else {
7988
8807
  nameHtml = _react2.default.createElement(
7989
8808
  'div',
7990
- { className: 't-FC9 t-DIB t-FCddblue', onClick: function onClick() {
8809
+ { className: 't-FC9 t-DIB t-FCblue', onClick: function onClick() {
7991
8810
  t.handleNavClick(item.id, "group", "");
7992
8811
  } },
7993
8812
  item.groupName
@@ -8188,7 +9007,7 @@ var Page = function (_React$Component) {
8188
9007
  if (index == 0) {
8189
9008
  return _react2.default.createElement(
8190
9009
  'div',
8191
- { className: 't-PL16 t-LH42 t-FCddblue t-DIB', onClick: function onClick() {
9010
+ { className: 't-PL16 t-LH42 t-FCblue t-DIB', onClick: function onClick() {
8192
9011
  t.handleNavClick("0", "personGroup", "");
8193
9012
  } },
8194
9013
  '\u5168\u90E8'
@@ -8204,7 +9023,7 @@ var Page = function (_React$Component) {
8204
9023
  } else {
8205
9024
  nameHtml = _react2.default.createElement(
8206
9025
  'div',
8207
- { className: 't-FC9 t-DIB t-FCddblue', onClick: function onClick() {
9026
+ { className: 't-FC9 t-DIB t-FCblue', onClick: function onClick() {
8208
9027
  t.handleNavClick(item.id, "personGroup", "");
8209
9028
  } },
8210
9029
  item.personalGroupName
@@ -8393,7 +9212,7 @@ var Page = function (_React$Component) {
8393
9212
  { className: t.state.userName == "" && t.state.isShowNav ? "t-BCf7 t-OFA t-WSN dd-bottom-border" : "t-DN" },
8394
9213
  _react2.default.createElement(
8395
9214
  'div',
8396
- { className: 't-PL16 t-LH42 t-FCddblue t-DIB', onClick: function onClick() {
9215
+ { className: 't-PL16 t-LH42 t-FCblue t-DIB', onClick: function onClick() {
8397
9216
  t.handleNavClick("0", "user", "");
8398
9217
  } },
8399
9218
  '\u5168\u90E8'
@@ -8409,7 +9228,7 @@ var Page = function (_React$Component) {
8409
9228
  } else {
8410
9229
  nameHtml = _react2.default.createElement(
8411
9230
  'div',
8412
- { className: 't-FC9 t-DIB t-FCddblue', onClick: function onClick() {
9231
+ { className: 't-FC9 t-DIB t-FCblue', onClick: function onClick() {
8413
9232
  t.handleNavClick(item.id, "user", "");
8414
9233
  } },
8415
9234
  item.orgName
@@ -8548,7 +9367,7 @@ var Page = function (_React$Component) {
8548
9367
  if (index == 0) {
8549
9368
  return _react2.default.createElement(
8550
9369
  'div',
8551
- { className: 't-PL16 t-LH42 t-FCddblue t-DIB', onClick: function onClick() {
9370
+ { className: 't-PL16 t-LH42 t-FCblue t-DIB', onClick: function onClick() {
8552
9371
  t.handleNavClick("0", "duty", "");
8553
9372
  } },
8554
9373
  '\u5168\u90E8'
@@ -8564,7 +9383,7 @@ var Page = function (_React$Component) {
8564
9383
  } else {
8565
9384
  nameHtml = _react2.default.createElement(
8566
9385
  'div',
8567
- { className: 't-FC9 t-DIB t-FCddblue', onClick: function onClick() {
9386
+ { className: 't-FC9 t-DIB t-FCblue', onClick: function onClick() {
8568
9387
  t.handleNavClick(item.id, "duty", "");
8569
9388
  } },
8570
9389
  item.dutyName
@@ -8727,6 +9546,14 @@ var Page = function (_React$Component) {
8727
9546
  isShowCheckAll = false;
8728
9547
  }
8729
9548
  }
9549
+ var isShowThisOrg = t.state.isShowThisOrg;
9550
+ if (isShowThisOrg) {
9551
+ if ((chooseType.indexOf("userAndPoliticalOutlook") >= 0 || chooseType.indexOf("userNotPoliticalOutlook") >= 0) && t.state.politicalOutlookUserList.length > 0) {
9552
+ isShowThisOrg = true;
9553
+ } else {
9554
+ isShowThisOrg = false;
9555
+ }
9556
+ }
8730
9557
  var tabContent = _react2.default.createElement(
8731
9558
  'div',
8732
9559
  { id: 'anchor', style: { overflow: "auto", height: '' + t.state.tabHeight }, className: 't-PB68 dd-top-border scrollHeight t-PR t-BCf' },
@@ -8758,6 +9585,30 @@ var Page = function (_React$Component) {
8758
9585
  )
8759
9586
  )
8760
9587
  ),
9588
+ _react2.default.createElement(
9589
+ 'div',
9590
+ { className: 't-PL16 t-PR16 t-LH3 dd-bottom-border t-BCf', onClick: function onClick() {
9591
+ t.checkThisOrg("politicalOutlook");
9592
+ } },
9593
+ _react2.default.createElement(
9594
+ HBox,
9595
+ { vAlign: 'center', className: isShowThisOrg && t.state.navPoliticalOutlookList.length > 1 ? "" : "t-DN" },
9596
+ _react2.default.createElement(
9597
+ HBox,
9598
+ null,
9599
+ _react2.default.createElement(
9600
+ 'div',
9601
+ { className: currentCheckThisOrg ? 't-checkbox-field-icon-list checked' : 'un-checked t-checkbox-field-icon-list' },
9602
+ _react2.default.createElement('i', { className: 'iconfont icon-checked t-FCf t-FS14' })
9603
+ )
9604
+ ),
9605
+ _react2.default.createElement(
9606
+ Box,
9607
+ { flex: 1, className: 't-ML10' },
9608
+ '\u672C\u7EC4\u7EC7\u53CA\u4E0B\u7EA7'
9609
+ )
9610
+ )
9611
+ ),
8761
9612
  _react2.default.createElement(
8762
9613
  'div',
8763
9614
  { className: t.state.politicalOutlookName == "" && t.state.isShowNav ? "t-BCf7 t-OFA t-WSN dd-bottom-border" : "t-DN" },
@@ -8765,7 +9616,7 @@ var Page = function (_React$Component) {
8765
9616
  if (index == 0) {
8766
9617
  return _react2.default.createElement(
8767
9618
  'div',
8768
- { className: 't-PL16 t-LH42 t-FCddblue t-DIB', onClick: function onClick() {
9619
+ { className: 't-PL16 t-LH42 t-FCblue t-DIB', onClick: function onClick() {
8769
9620
  t.handleNavClick("0", "politicalOutlook", "");
8770
9621
  } },
8771
9622
  '\u5168\u90E8'
@@ -8781,7 +9632,7 @@ var Page = function (_React$Component) {
8781
9632
  } else {
8782
9633
  nameHtml = _react2.default.createElement(
8783
9634
  'div',
8784
- { className: 't-FC9 t-DIB t-FCddblue', onClick: function onClick() {
9635
+ { className: 't-FC9 t-DIB t-FCblue', onClick: function onClick() {
8785
9636
  t.handleNavClick(item.id, "politicalOutlook", "");
8786
9637
  } },
8787
9638
  item.politicalOutlookName
@@ -8855,7 +9706,7 @@ var Page = function (_React$Component) {
8855
9706
  ),
8856
9707
  _react2.default.createElement(
8857
9708
  Box,
8858
- { className: t.state.politicalOutlookName == "" ? "t-PR16" : "t-DN", onClick: function onClick() {
9709
+ { className: t.state.politicalOutlookName == "" && chooseType.indexOf("userAndPoliticalOutlook") >= 0 ? "t-PR16" : "t-DN", onClick: function onClick() {
8859
9710
  t.state.politicalOutlookName == "" && t.handlePoliticalOutlookShow(politicalOutlook.id);
8860
9711
  } },
8861
9712
  _react2.default.createElement('i', { className: 'iconfont icon-arrow-up t-rotate-90 t-FCc' })
@@ -8938,44 +9789,38 @@ var Page = function (_React$Component) {
8938
9789
  ),
8939
9790
  _react2.default.createElement(
8940
9791
  HBox,
8941
- { vAlign: 'center', className: 't-FBH t-FBAC t-PL10 t-BCf dd-top-border', style: { position: "fixed", paddingBottom: '' + t.state.bottomHeight, left: "0px", right: "0px", bottom: "0px" } },
9792
+ { vAlign: 'center', className: 't-FBH t-FBAC t-PL10 t-BCf dd-top-border selected-bottom', style: { position: "fixed", bottom: "0px", left: "0px", right: "0px" } },
8942
9793
  _react2.default.createElement(
8943
- Box,
8944
- { flex: 1, className: 't-FS16 t-FCddblue', onClick: function onClick() {
8945
- t.handleSelectClick(true);
8946
- } },
9794
+ 'div',
9795
+ { className: 'selected-bottom-left' },
8947
9796
  _react2.default.createElement(
8948
- 'span',
8949
- null,
8950
- '\u5DF2\u9009:'
9797
+ Box,
9798
+ { className: 't-FS16 t-FCddblue seleted-content' },
9799
+ _react2.default.createElement(
9800
+ 'span',
9801
+ null,
9802
+ '\u5DF2\u9009\u62E9\uFF1A'
9803
+ ),
9804
+ _react2.default.createElement(
9805
+ 'span',
9806
+ null,
9807
+ t.state.total
9808
+ )
8951
9809
  ),
8952
9810
  _react2.default.createElement(
8953
9811
  'span',
8954
- null,
8955
- t.state.total
8956
- )
8957
- ),
8958
- _react2.default.createElement(
8959
- Box,
8960
- { flex: 1 },
8961
- _react2.default.createElement(
8962
- _Button2.default,
8963
- { style: { borderRadius: 0, height: '51px !important', margin: '0', lineHeight: '51px !important' }, type: 'secondary', size: 'medium', onClick: function onClick() {
8964
- t.handleClick("0");
8965
- } },
8966
- '\u53D6\u6D88'
9812
+ { className: 'right-arrow', style: { marginLeft: 10 + 'px', marginRight: 10 + 'px' } },
9813
+ _react2.default.createElement('i', { className: 'iconfont icon-right-arrow', onClick: function onClick() {
9814
+ t.handleSelectClick(true);
9815
+ } })
8967
9816
  )
8968
9817
  ),
8969
9818
  _react2.default.createElement(
8970
- Box,
8971
- { flex: 1 },
8972
- _react2.default.createElement(
8973
- _Button2.default,
8974
- { style: { borderRadius: 0, height: '51px !important', margin: '0', lineHeight: '51px !important' }, type: 'primary', size: 'medium', onClick: function onClick() {
8975
- t.handleClick("1");
8976
- } },
8977
- '\u786E\u5B9A'
8978
- )
9819
+ _Button2.default,
9820
+ { className: 'confirm-btn', style: { borderRadius: 40 + 'px', height: '51px !important', margin: '0', lineHeight: '51px !important', marginRight: 10 + 'px' }, type: 'primary', size: 'medium', onClick: function onClick() {
9821
+ t.handleClick("1");
9822
+ } },
9823
+ '\u786E\u5B9A'
8979
9824
  )
8980
9825
  )
8981
9826
  )
@@ -9140,6 +9985,7 @@ var Page = function (_React$Component) {
9140
9985
  staSelectType: "0",
9141
9986
  isShowNav: false,
9142
9987
  isShowCheckAll: false,
9988
+ isShowThisOrg: false,
9143
9989
  total: total
9144
9990
  });
9145
9991
  }
@@ -9225,7 +10071,8 @@ var Page = function (_React$Component) {
9225
10071
  navGroupList: [],
9226
10072
  staSelectType: "0",
9227
10073
  isShowNav: false,
9228
- isShowCheckAll: false
10074
+ isShowCheckAll: false,
10075
+ isShowThisOrg: false
9229
10076
  }, _defineProperty(_setState, 'personalGroupName', ""), _defineProperty(_setState, 'personalGroupList', []), _defineProperty(_setState, 'personalGroupUserList', []), _defineProperty(_setState, 'navPersonalGroupList', []), _defineProperty(_setState, 'dutyName', ""), _defineProperty(_setState, 'dutyList', []), _defineProperty(_setState, 'dutyUserList', []), _defineProperty(_setState, 'navDutyList', []), _defineProperty(_setState, 'politicalOutlookName', ""), _defineProperty(_setState, 'politicalOutlookList', []), _defineProperty(_setState, 'politicalOutlookUserList', []), _defineProperty(_setState, 'navPoliticalOutlookList', []), _setState));
9230
10077
  debugger;
9231
10078
  this.props.onChange(result);
@@ -9343,7 +10190,7 @@ var Page = function (_React$Component) {
9343
10190
  }, {
9344
10191
  key: 'clickAdd',
9345
10192
  value: function clickAdd() {
9346
- var _this5 = this;
10193
+ var _this6 = this;
9347
10194
 
9348
10195
  var readOnly = this.state.readOnly;
9349
10196
  var showSecret = this.state.showSecret;
@@ -9405,24 +10252,24 @@ var Page = function (_React$Component) {
9405
10252
  curUsersObj: usersObj
9406
10253
  }, function () {
9407
10254
  //是否直接显示当前用户组织
9408
- var isShowInMyOrg = _this5.state.isShowInMyOrg;
10255
+ var isShowInMyOrg = _this6.state.isShowInMyOrg;
9409
10256
  if (isShowInMyOrg) {
9410
10257
  //this.getSelectData();
9411
- var code = _this5.getRealCode().split(",");
10258
+ var code = _this6.getRealCode().split(",");
9412
10259
  var type = code[0];
9413
10260
  var realUserCode = "user";
9414
- var chooseObj = _this5.props.chooseObj;
10261
+ var chooseObj = _this6.props.chooseObj;
9415
10262
  if (chooseObj) {
9416
10263
  realUserCode = "userNotOrg";
9417
10264
  }
9418
10265
  if (type == realUserCode || type == "org") {
9419
10266
  //获取当前用户信息
9420
- _this5.getSelectMyOrgData();
10267
+ _this6.getSelectMyOrgData();
9421
10268
  } else {
9422
- _this5.getSelectData();
10269
+ _this6.getSelectData();
9423
10270
  }
9424
10271
  } else {
9425
- _this5.getSelectData();
10272
+ _this6.getSelectData();
9426
10273
  }
9427
10274
  });
9428
10275
  }
@@ -9452,7 +10299,7 @@ var Page = function (_React$Component) {
9452
10299
  }, {
9453
10300
  key: 'render',
9454
10301
  value: function render() {
9455
- var _this6 = this;
10302
+ var _this7 = this;
9456
10303
 
9457
10304
  var t = this;
9458
10305
 
@@ -9486,7 +10333,7 @@ var Page = function (_React$Component) {
9486
10333
  _react2.default.createElement(
9487
10334
  _Button2.default,
9488
10335
  { type: 'primary', onClick: function onClick() {
9489
- _this6.clickAdd();
10336
+ _this7.clickAdd();
9490
10337
  } },
9491
10338
  this.state.label
9492
10339
  )
@@ -9504,7 +10351,7 @@ var Page = function (_React$Component) {
9504
10351
  return _react2.default.createElement(
9505
10352
  HBox,
9506
10353
  { vAlign: 'center', className: 't-FS16 t-PL16 t-PR16', onClick: function onClick() {
9507
- _this6.clickAdd();
10354
+ _this7.clickAdd();
9508
10355
  } },
9509
10356
  _react2.default.createElement(
9510
10357
  Box,
@@ -9587,7 +10434,7 @@ var Page = function (_React$Component) {
9587
10434
  _react2.default.createElement(
9588
10435
  HBox,
9589
10436
  { className: readOnly ? "t-DN" : "", vAlign: 'center', onClick: function onClick() {
9590
- _this6.clickAdd();
10437
+ _this7.clickAdd();
9591
10438
  } },
9592
10439
  _react2.default.createElement(
9593
10440
  Box,