fmui-base 2.1.14 → 2.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.16:表单样式调整,选人组件去除接口token
7
+ - 2.1.15:统一流程跳转问题
6
8
  - 2.1.14:增加分页组件
7
9
  - 2.1.13:表单选人组件全部类型可选时选不到用户处理
8
10
  - 2.1.12:上传组件增加后台类型校验的参数,预算跳转流程表单路径特殊处理
package/lib/form/form.js CHANGED
@@ -565,9 +565,8 @@ var PageHome = function (_React$Component) {
565
565
 
566
566
  if (subStyle != null && subStyle != '' && subStyle != undefined) {
567
567
  if (itemType == 'note') {
568
- subStyle.contentStyle = subStyle;
569
- }
570
- if (subStyle.contentStyle != null && subStyle.contentStyle != '' && subStyle.contentStyle != undefined) {
568
+ style.contentStyle = subStyle;
569
+ } else if (subStyle.contentStyle != null && subStyle.contentStyle != '' && subStyle.contentStyle != undefined) {
571
570
  if (subStyle.contentStyle.color != null && subStyle.contentStyle.color != undefined) {
572
571
  style.contentStyle.color = subStyle.contentStyle.color;
573
572
  }
@@ -132,6 +132,7 @@ var ListItem = function (_React$Component) {
132
132
  location.hash = url;
133
133
  } else {
134
134
  var fullUrl = window.location.href;
135
+ fullUrl = fullUrl.replace("clientType", "");
135
136
  var mobilePath = module;
136
137
  //projectPath = modules/mobileoffice
137
138
  // 预算模块跳转特殊处理
@@ -139,7 +140,7 @@ var ListItem = function (_React$Component) {
139
140
  fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetcost/").split('?_')[0].split('/approval/all')[0];
140
141
  } else if (module == 'bud_project') {
141
142
  fullUrl = fullUrl.replace("/" + projectPath + "/", "/budget/budgetproject/").split('?_')[0].split('/approval/all')[0];
142
- } else if (module.indexOf("hoa_") > 0) {
143
+ } else if (module.indexOf("hoa_") != '-1') {
143
144
  var category = module.split("_")[0];
144
145
  mobilePath = module.substring(module.indexOf("_") + 1);
145
146
  fullUrl = fullUrl.replace("/" + projectPath + "/", "/" + category + "/" + mobilePath + "/").split('?_')[0].split('/approval/all')[0];
@@ -618,7 +618,7 @@ var Page = function (_React$Component) {
618
618
 
619
619
  if (chooseObj) {
620
620
  // code = this.props.chooseObj;
621
- if (chooseObj.indexOf("userAndOrg") >= 0 && chooseObj.indexOf("org") >= 0) {
621
+ if (chooseObj.indexOf("userAndOrg") >= 0) {
622
622
  chooseType = "userAndOrg";
623
623
  } else if (chooseObj.indexOf("userNotOrg") >= 0 && chooseObj.indexOf("org") >= 0) {
624
624
  chooseType = "userAndOrg";
@@ -740,7 +740,8 @@ var Page = function (_React$Component) {
740
740
  mode: "cors",
741
741
  headers: {
742
742
  'Accept': 'application/json, text/plain, */*',
743
- 'Content-Type': 'application/x-www-form-urlencoded'
743
+ 'Content-Type': 'application/x-www-form-urlencoded',
744
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
744
745
  }
745
746
  }).then(function (response) {
746
747
  return response.json();
@@ -1839,34 +1840,34 @@ var Page = function (_React$Component) {
1839
1840
  var orgType = this.getOrgType();
1840
1841
  if (type == "org") {
1841
1842
  if (chooseType.indexOf("userNotOrg") < 0 && chooseType.indexOf("userAndOrg") < 0) {
1842
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgInfo?token=" + token + "&orgId=" + id + "&orgName=" + search + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1843
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgInfo?" + "&orgId=" + id + "&orgName=" + search + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1843
1844
  } else {
1844
1845
  if (isOrgChild) {
1845
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?token=" + token + "&orgId=" + id + "&searchData=" + search + "&type=user&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1846
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?" + "&orgId=" + id + "&searchData=" + search + "&type=user&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1846
1847
  } else {
1847
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgInfo?token=" + token + "&orgId=" + id + "&orgName=" + search + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1848
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgInfo?" + "&orgId=" + id + "&orgName=" + search + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1848
1849
  }
1849
1850
  }
1850
1851
  } else if (type == "user") {
1851
1852
  if (isOrgChild) {
1852
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?token=" + token + "&orgId=" + id + "&type=" + type + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1853
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?" + "&orgId=" + id + "&type=" + type + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1853
1854
  } else {
1854
- url = context + "/api/m/cmp/popuser/mobile/getPopuUserInfo?token=" + token + "&userName=" + search + "&corpId=" + baseCorpId + searchLimit;
1855
+ url = context + "/api/m/cmp/popuser/mobile/getPopuUserInfo?" + "&userName=" + search + "&corpId=" + baseCorpId + searchLimit;
1855
1856
  }
1856
1857
  } else if (type == "station") {
1857
1858
  if (isOrgChild) {
1858
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?token=" + token + "&orgId=" + id + "&type=" + type + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1859
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?" + "&orgId=" + id + "&type=" + type + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1859
1860
  } else {
1860
- url = context + "/api/m/cmp/popuser/mobile/getPopuStationUserInfo?token=" + token + "&stationId=" + id + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1861
+ url = context + "/api/m/cmp/popuser/mobile/getPopuStationUserInfo?" + "&stationId=" + id + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1861
1862
  }
1862
1863
  } else if (type == "group") {
1863
1864
  if (chooseType.indexOf("userNotGroup") < 0 && chooseType.indexOf("userAndGroup") < 0) {
1864
- url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?token=" + token + "&groupId=" + id + "&type=group" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1865
+ url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?" + "&groupId=" + id + "&type=group" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1865
1866
  } else {
1866
1867
  if (isOrgChild) {
1867
- url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?token=" + token + "&groupId=" + id + "&type=user" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1868
+ url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?" + "&groupId=" + id + "&type=user" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1868
1869
  } else {
1869
- url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?token=" + token + "&groupId=" + id + "&type=group" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1870
+ url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?" + "&groupId=" + id + "&type=group" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1870
1871
  }
1871
1872
  }
1872
1873
  } else if (type == "personGroup") {
@@ -1876,17 +1877,17 @@ var Page = function (_React$Component) {
1876
1877
  } else if (isOrgChild) {
1877
1878
  isPersonalGroupChild = 1;
1878
1879
  }
1879
- url = context + "/api/m/oaPersonalGroup/mobile/allList?token=" + token + "&personalGroupId=" + id + "&type=personGroup" + "&personalGroupName=" + search + "&isPersonalGroupChild=" + isPersonalGroupChild + "&corpId=" + baseCorpId + searchLimit;
1880
+ url = context + "/api/m/oaPersonalGroup/mobile/allList?" + "&personalGroupId=" + id + "&type=personGroup" + "&personalGroupName=" + search + "&isPersonalGroupChild=" + isPersonalGroupChild + "&corpId=" + baseCorpId + searchLimit;
1880
1881
  } else if (type == "role") {
1881
- url = context + "/api/m/cmp/popuser/mobile/getPopuRoleInfo?token=" + token + "&roleName=" + search + "&corpId=" + baseCorpId;
1882
+ url = context + "/api/m/cmp/popuser/mobile/getPopuRoleInfo?" + "&roleName=" + search + "&corpId=" + baseCorpId;
1882
1883
  } else if (type == "myOrg") {
1883
1884
  //获取当前用户组织
1884
- url = context + "/api/m/cmp/popuser/mobile/getOrgList?token=" + token + "&orgIds=" + orgHiddenId + "&corpId=" + realCorpId + "&queryType=2&thirdType=";
1885
+ url = context + "/api/m/cmp/popuser/mobile/getOrgList?" + "&orgIds=" + orgHiddenId + "&corpId=" + realCorpId + "&queryType=2&thirdType=";
1885
1886
  } else if (type == "curOrgUser") {
1886
- url = context + "/api/mobile/user/common/getCurrentOrgUsers?token=" + token + "&userId=" + id;
1887
+ url = context + "/api/mobile/user/common/getCurrentOrgUsers?" + "&userId=" + id;
1887
1888
  } else if (type == "politicalOutlook") {
1888
1889
  //政治面貌
1889
- url = context + "/api/m/cmp/popuser/mobile/getPopuPoliticalOutlookInfo?token=" + token + "&politicalOutlookCode=" + id + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1890
+ url = context + "/api/m/cmp/popuser/mobile/getPopuPoliticalOutlookInfo?" + "&politicalOutlookCode=" + id + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1890
1891
  } else if (type == "duty") {
1891
1892
  //岗位
1892
1893
  var pId = "";
@@ -1897,7 +1898,7 @@ var Page = function (_React$Component) {
1897
1898
  pId = idArray[1];
1898
1899
  }
1899
1900
  }
1900
- url = context + "/api/m/cmp/popuser/mobile/getPopuDutyInfo?token=" + token + "&dutyId=" + id + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1901
+ url = context + "/api/m/cmp/popuser/mobile/getPopuDutyInfo?" + "&dutyId=" + id + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1901
1902
  if (search) {
1902
1903
  url += "&type=3";
1903
1904
  } else if (id == null || id == undefined || id == "") {
@@ -1908,7 +1909,7 @@ var Page = function (_React$Component) {
1908
1909
  url += "&type=2";
1909
1910
  }
1910
1911
  } else {
1911
- url = context + this.dealwithExtUrl(this.state.extObj[type].popuUrl) + "?token=" + token + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1912
+ url = context + this.dealwithExtUrl(this.state.extObj[type].popuUrl) + "?" + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1912
1913
  }
1913
1914
  return url;
1914
1915
  }
@@ -1960,7 +1961,8 @@ var Page = function (_React$Component) {
1960
1961
  mode: "cors",
1961
1962
  headers: {
1962
1963
  'Accept': 'application/json, text/plain, */*',
1963
- 'Content-Type': 'application/x-www-form-urlencoded'
1964
+ 'Content-Type': 'application/x-www-form-urlencoded',
1965
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
1964
1966
  }
1965
1967
  }).then(function (response) {
1966
1968
  return response.json();
@@ -2062,7 +2064,8 @@ var Page = function (_React$Component) {
2062
2064
  mode: "cors",
2063
2065
  headers: {
2064
2066
  'Accept': 'application/json, text/plain, */*',
2065
- 'Content-Type': 'application/x-www-form-urlencoded'
2067
+ 'Content-Type': 'application/x-www-form-urlencoded',
2068
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2066
2069
  }
2067
2070
  }).then(function (response) {
2068
2071
  return response.json();
@@ -2132,7 +2135,8 @@ var Page = function (_React$Component) {
2132
2135
  mode: "cors",
2133
2136
  headers: {
2134
2137
  'Accept': 'application/json, text/plain, */*',
2135
- 'Content-Type': 'application/x-www-form-urlencoded'
2138
+ 'Content-Type': 'application/x-www-form-urlencoded',
2139
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2136
2140
  }
2137
2141
  }).then(function (response) {
2138
2142
  return response.json();
@@ -2230,7 +2234,8 @@ var Page = function (_React$Component) {
2230
2234
  mode: "cors",
2231
2235
  headers: {
2232
2236
  'Accept': 'application/json, text/plain, */*',
2233
- 'Content-Type': 'application/x-www-form-urlencoded'
2237
+ 'Content-Type': 'application/x-www-form-urlencoded',
2238
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2234
2239
  }
2235
2240
  }).then(function (response) {
2236
2241
  return response.json();
@@ -2344,7 +2349,8 @@ var Page = function (_React$Component) {
2344
2349
  mode: "cors",
2345
2350
  headers: {
2346
2351
  'Accept': 'application/json, text/plain, */*',
2347
- 'Content-Type': 'application/x-www-form-urlencoded'
2352
+ 'Content-Type': 'application/x-www-form-urlencoded',
2353
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2348
2354
  }
2349
2355
  }).then(function (response) {
2350
2356
  return response.json();
@@ -2435,7 +2441,8 @@ var Page = function (_React$Component) {
2435
2441
  mode: "cors",
2436
2442
  headers: {
2437
2443
  'Accept': 'application/json, text/plain, */*',
2438
- 'Content-Type': 'application/x-www-form-urlencoded'
2444
+ 'Content-Type': 'application/x-www-form-urlencoded',
2445
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2439
2446
  }
2440
2447
  }).then(function (response) {
2441
2448
  return response.json();
@@ -2526,7 +2533,8 @@ var Page = function (_React$Component) {
2526
2533
  mode: "cors",
2527
2534
  headers: {
2528
2535
  'Accept': 'application/json, text/plain, */*',
2529
- 'Content-Type': 'application/x-www-form-urlencoded'
2536
+ 'Content-Type': 'application/x-www-form-urlencoded',
2537
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2530
2538
  }
2531
2539
  }).then(function (response) {
2532
2540
  return response.json();
@@ -2621,7 +2629,8 @@ var Page = function (_React$Component) {
2621
2629
  mode: "cors",
2622
2630
  headers: {
2623
2631
  'Accept': 'application/json, text/plain, */*',
2624
- 'Content-Type': 'application/x-www-form-urlencoded'
2632
+ 'Content-Type': 'application/x-www-form-urlencoded',
2633
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2625
2634
  }
2626
2635
  }).then(function (response) {
2627
2636
  return response.json();
@@ -2779,7 +2788,8 @@ var Page = function (_React$Component) {
2779
2788
  mode: "cors",
2780
2789
  headers: {
2781
2790
  'Accept': 'application/json, text/plain, */*',
2782
- 'Content-Type': 'application/x-www-form-urlencoded'
2791
+ 'Content-Type': 'application/x-www-form-urlencoded',
2792
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2783
2793
  }
2784
2794
  }).then(function (response) {
2785
2795
  return response.json();
@@ -2890,7 +2900,8 @@ var Page = function (_React$Component) {
2890
2900
  mode: "cors",
2891
2901
  headers: {
2892
2902
  'Accept': 'application/json, text/plain, */*',
2893
- 'Content-Type': 'application/x-www-form-urlencoded'
2903
+ 'Content-Type': 'application/x-www-form-urlencoded',
2904
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2894
2905
  }
2895
2906
  }).then(function (response) {
2896
2907
  return response.json();
@@ -3065,7 +3076,8 @@ var Page = function (_React$Component) {
3065
3076
  mode: "cors",
3066
3077
  headers: {
3067
3078
  'Accept': 'application/json, text/plain, */*',
3068
- 'Content-Type': 'application/x-www-form-urlencoded'
3079
+ 'Content-Type': 'application/x-www-form-urlencoded',
3080
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3069
3081
  }
3070
3082
  }).then(function (response) {
3071
3083
  return response.json();
@@ -3184,7 +3196,8 @@ var Page = function (_React$Component) {
3184
3196
  mode: "cors",
3185
3197
  headers: {
3186
3198
  'Accept': 'application/json, text/plain, */*',
3187
- 'Content-Type': 'application/x-www-form-urlencoded'
3199
+ 'Content-Type': 'application/x-www-form-urlencoded',
3200
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3188
3201
  }
3189
3202
  }).then(function (response) {
3190
3203
  return response.json();
@@ -3287,7 +3300,8 @@ var Page = function (_React$Component) {
3287
3300
  mode: "cors",
3288
3301
  headers: {
3289
3302
  'Accept': 'application/json, text/plain, */*',
3290
- 'Content-Type': 'application/x-www-form-urlencoded'
3303
+ 'Content-Type': 'application/x-www-form-urlencoded',
3304
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3291
3305
  }
3292
3306
  }).then(function (response) {
3293
3307
  return response.json();
@@ -3390,7 +3404,8 @@ var Page = function (_React$Component) {
3390
3404
  mode: "cors",
3391
3405
  headers: {
3392
3406
  'Accept': 'application/json, text/plain, */*',
3393
- 'Content-Type': 'application/x-www-form-urlencoded'
3407
+ 'Content-Type': 'application/x-www-form-urlencoded',
3408
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3394
3409
  }
3395
3410
  }).then(function (response) {
3396
3411
  return response.json();
@@ -3503,7 +3518,8 @@ var Page = function (_React$Component) {
3503
3518
  mode: "cors",
3504
3519
  headers: {
3505
3520
  'Accept': 'application/json, text/plain, */*',
3506
- 'Content-Type': 'application/x-www-form-urlencoded'
3521
+ 'Content-Type': 'application/x-www-form-urlencoded',
3522
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3507
3523
  }
3508
3524
  }).then(function (response) {
3509
3525
  return response.json();
@@ -3663,7 +3679,8 @@ var Page = function (_React$Component) {
3663
3679
  mode: "cors",
3664
3680
  headers: {
3665
3681
  'Accept': 'application/json, text/plain, */*',
3666
- 'Content-Type': 'application/x-www-form-urlencoded'
3682
+ 'Content-Type': 'application/x-www-form-urlencoded',
3683
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3667
3684
  }
3668
3685
  }).then(function (response) {
3669
3686
  return response.json();
@@ -5474,7 +5491,8 @@ var Page = function (_React$Component) {
5474
5491
  mode: "cors",
5475
5492
  headers: {
5476
5493
  'Accept': 'application/json, text/plain, */*',
5477
- 'Content-Type': 'application/x-www-form-urlencoded'
5494
+ 'Content-Type': 'application/x-www-form-urlencoded',
5495
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5478
5496
  }
5479
5497
  }).then(function (response) {
5480
5498
  return response.json();
@@ -5514,7 +5532,8 @@ var Page = function (_React$Component) {
5514
5532
  mode: "cors",
5515
5533
  headers: {
5516
5534
  'Accept': 'application/json, text/plain, */*',
5517
- 'Content-Type': 'application/x-www-form-urlencoded'
5535
+ 'Content-Type': 'application/x-www-form-urlencoded',
5536
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5518
5537
  }
5519
5538
  }).then(function (response) {
5520
5539
  return response.json();
@@ -5709,7 +5728,8 @@ var Page = function (_React$Component) {
5709
5728
  mode: "cors",
5710
5729
  headers: {
5711
5730
  'Accept': 'application/json, text/plain, */*',
5712
- 'Content-Type': 'application/x-www-form-urlencoded'
5731
+ 'Content-Type': 'application/x-www-form-urlencoded',
5732
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5713
5733
  }
5714
5734
  }).then(function (response) {
5715
5735
  return response.json();
@@ -5741,7 +5761,8 @@ var Page = function (_React$Component) {
5741
5761
  mode: "cors",
5742
5762
  headers: {
5743
5763
  'Accept': 'application/json, text/plain, */*',
5744
- 'Content-Type': 'application/x-www-form-urlencoded'
5764
+ 'Content-Type': 'application/x-www-form-urlencoded',
5765
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5745
5766
  }
5746
5767
  }).then(function (response) {
5747
5768
  return response.json();
@@ -5796,7 +5817,8 @@ var Page = function (_React$Component) {
5796
5817
  mode: "cors",
5797
5818
  headers: {
5798
5819
  'Accept': 'application/json, text/plain, */*',
5799
- 'Content-Type': 'application/x-www-form-urlencoded'
5820
+ 'Content-Type': 'application/x-www-form-urlencoded',
5821
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5800
5822
  }
5801
5823
  }).then(function (response) {
5802
5824
  return response.json();
@@ -5839,7 +5861,8 @@ var Page = function (_React$Component) {
5839
5861
  mode: "cors",
5840
5862
  headers: {
5841
5863
  'Accept': 'application/json, text/plain, */*',
5842
- 'Content-Type': 'application/x-www-form-urlencoded'
5864
+ 'Content-Type': 'application/x-www-form-urlencoded',
5865
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5843
5866
  }
5844
5867
  }).then(function (response) {
5845
5868
  return response.json();
@@ -5891,7 +5914,8 @@ var Page = function (_React$Component) {
5891
5914
  mode: "cors",
5892
5915
  headers: {
5893
5916
  'Accept': 'application/json, text/plain, */*',
5894
- 'Content-Type': 'application/x-www-form-urlencoded'
5917
+ 'Content-Type': 'application/x-www-form-urlencoded',
5918
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5895
5919
  }
5896
5920
  }).then(function (response) {
5897
5921
  return response.json();
@@ -5945,7 +5969,8 @@ var Page = function (_React$Component) {
5945
5969
  mode: "cors",
5946
5970
  headers: {
5947
5971
  'Accept': 'application/json, text/plain, */*',
5948
- 'Content-Type': 'application/x-www-form-urlencoded'
5972
+ 'Content-Type': 'application/x-www-form-urlencoded',
5973
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5949
5974
  }
5950
5975
  }).then(function (response) {
5951
5976
  return response.json();
@@ -5999,7 +6024,8 @@ var Page = function (_React$Component) {
5999
6024
  mode: "cors",
6000
6025
  headers: {
6001
6026
  'Accept': 'application/json, text/plain, */*',
6002
- 'Content-Type': 'application/x-www-form-urlencoded'
6027
+ 'Content-Type': 'application/x-www-form-urlencoded',
6028
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6003
6029
  }
6004
6030
  }).then(function (response) {
6005
6031
  return response.json();
@@ -6051,7 +6077,8 @@ var Page = function (_React$Component) {
6051
6077
  mode: "cors",
6052
6078
  headers: {
6053
6079
  'Accept': 'application/json, text/plain, */*',
6054
- 'Content-Type': 'application/x-www-form-urlencoded'
6080
+ 'Content-Type': 'application/x-www-form-urlencoded',
6081
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6055
6082
  }
6056
6083
  }).then(function (response) {
6057
6084
  return response.json();
@@ -6103,7 +6130,8 @@ var Page = function (_React$Component) {
6103
6130
  mode: "cors",
6104
6131
  headers: {
6105
6132
  'Accept': 'application/json, text/plain, */*',
6106
- 'Content-Type': 'application/x-www-form-urlencoded'
6133
+ 'Content-Type': 'application/x-www-form-urlencoded',
6134
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6107
6135
  }
6108
6136
  }).then(function (response) {
6109
6137
  return response.json();
@@ -6168,7 +6196,8 @@ var Page = function (_React$Component) {
6168
6196
  mode: "cors",
6169
6197
  headers: {
6170
6198
  'Accept': 'application/json, text/plain, */*',
6171
- 'Content-Type': 'application/x-www-form-urlencoded'
6199
+ 'Content-Type': 'application/x-www-form-urlencoded',
6200
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6172
6201
  }
6173
6202
  }).then(function (response) {
6174
6203
  return response.json();
@@ -6266,7 +6295,8 @@ var Page = function (_React$Component) {
6266
6295
  mode: "cors",
6267
6296
  headers: {
6268
6297
  'Accept': 'application/json, text/plain, */*',
6269
- 'Content-Type': 'application/x-www-form-urlencoded'
6298
+ 'Content-Type': 'application/x-www-form-urlencoded',
6299
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6270
6300
  }
6271
6301
  }).then(function (response) {
6272
6302
  return response.json();
@@ -6323,7 +6353,8 @@ var Page = function (_React$Component) {
6323
6353
  mode: "cors",
6324
6354
  headers: {
6325
6355
  'Accept': 'application/json, text/plain, */*',
6326
- 'Content-Type': 'application/x-www-form-urlencoded'
6356
+ 'Content-Type': 'application/x-www-form-urlencoded',
6357
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6327
6358
  }
6328
6359
  }).then(function (response) {
6329
6360
  return response.json();
@@ -6441,7 +6472,8 @@ var Page = function (_React$Component) {
6441
6472
  mode: "cors",
6442
6473
  headers: {
6443
6474
  'Accept': 'application/json, text/plain, */*',
6444
- 'Content-Type': 'application/x-www-form-urlencoded'
6475
+ 'Content-Type': 'application/x-www-form-urlencoded',
6476
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6445
6477
  }
6446
6478
  }).then(function (response) {
6447
6479
  return response.json();
@@ -6497,7 +6529,8 @@ var Page = function (_React$Component) {
6497
6529
  mode: "cors",
6498
6530
  headers: {
6499
6531
  'Accept': 'application/json, text/plain, */*',
6500
- 'Content-Type': 'application/x-www-form-urlencoded'
6532
+ 'Content-Type': 'application/x-www-form-urlencoded',
6533
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6501
6534
  }
6502
6535
  }).then(function (response) {
6503
6536
  return response.json();
@@ -6585,7 +6618,8 @@ var Page = function (_React$Component) {
6585
6618
  mode: "cors",
6586
6619
  headers: {
6587
6620
  'Accept': 'application/json, text/plain, */*',
6588
- 'Content-Type': 'application/x-www-form-urlencoded'
6621
+ 'Content-Type': 'application/x-www-form-urlencoded',
6622
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6589
6623
  }
6590
6624
  }).then(function (response) {
6591
6625
  return response.json();
@@ -6703,7 +6737,8 @@ var Page = function (_React$Component) {
6703
6737
  mode: "cors",
6704
6738
  headers: {
6705
6739
  'Accept': 'application/json, text/plain, */*',
6706
- 'Content-Type': 'application/x-www-form-urlencoded'
6740
+ 'Content-Type': 'application/x-www-form-urlencoded',
6741
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6707
6742
  }
6708
6743
  }).then(function (response) {
6709
6744
  return response.json();
@@ -6841,7 +6876,8 @@ var Page = function (_React$Component) {
6841
6876
  mode: "cors",
6842
6877
  headers: {
6843
6878
  'Accept': 'application/json, text/plain, */*',
6844
- 'Content-Type': 'application/x-www-form-urlencoded'
6879
+ 'Content-Type': 'application/x-www-form-urlencoded',
6880
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6845
6881
  }
6846
6882
  }).then(function (response) {
6847
6883
  return response.json();
@@ -6964,7 +7000,8 @@ var Page = function (_React$Component) {
6964
7000
  mode: "cors",
6965
7001
  headers: {
6966
7002
  'Accept': 'application/json, text/plain, */*',
6967
- 'Content-Type': 'application/x-www-form-urlencoded'
7003
+ 'Content-Type': 'application/x-www-form-urlencoded',
7004
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6968
7005
  }
6969
7006
  }).then(function (response) {
6970
7007
  return response.json();
@@ -7083,7 +7120,8 @@ var Page = function (_React$Component) {
7083
7120
  mode: "cors",
7084
7121
  headers: {
7085
7122
  'Accept': 'application/json, text/plain, */*',
7086
- 'Content-Type': 'application/x-www-form-urlencoded'
7123
+ 'Content-Type': 'application/x-www-form-urlencoded',
7124
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7087
7125
  }
7088
7126
  }).then(function (response) {
7089
7127
  return response.json();
@@ -7290,7 +7328,8 @@ var Page = function (_React$Component) {
7290
7328
  mode: "cors",
7291
7329
  headers: {
7292
7330
  'Accept': 'application/json, text/plain, */*',
7293
- 'Content-Type': 'application/x-www-form-urlencoded'
7331
+ 'Content-Type': 'application/x-www-form-urlencoded',
7332
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7294
7333
  }
7295
7334
  }).then(function (response) {
7296
7335
  return response.json();
@@ -7354,7 +7393,8 @@ var Page = function (_React$Component) {
7354
7393
  mode: "cors",
7355
7394
  headers: {
7356
7395
  'Accept': 'application/json, text/plain, */*',
7357
- 'Content-Type': 'application/x-www-form-urlencoded'
7396
+ 'Content-Type': 'application/x-www-form-urlencoded',
7397
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7358
7398
  }
7359
7399
  }).then(function (response) {
7360
7400
  return response.json();
@@ -7429,7 +7469,8 @@ var Page = function (_React$Component) {
7429
7469
  mode: "cors",
7430
7470
  headers: {
7431
7471
  'Accept': 'application/json, text/plain, */*',
7432
- 'Content-Type': 'application/x-www-form-urlencoded'
7472
+ 'Content-Type': 'application/x-www-form-urlencoded',
7473
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7433
7474
  }
7434
7475
  }).then(function (response) {
7435
7476
  return response.json();
@@ -7473,7 +7514,8 @@ var Page = function (_React$Component) {
7473
7514
  mode: "cors",
7474
7515
  headers: {
7475
7516
  'Accept': 'application/json, text/plain, */*',
7476
- 'Content-Type': 'application/x-www-form-urlencoded'
7517
+ 'Content-Type': 'application/x-www-form-urlencoded',
7518
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7477
7519
  }
7478
7520
  }).then(function (response) {
7479
7521
  return response.json();
@@ -7565,7 +7607,8 @@ var Page = function (_React$Component) {
7565
7607
  mode: "cors",
7566
7608
  headers: {
7567
7609
  'Accept': 'application/json, text/plain, */*',
7568
- 'Content-Type': 'application/x-www-form-urlencoded'
7610
+ 'Content-Type': 'application/x-www-form-urlencoded',
7611
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7569
7612
  }
7570
7613
  }).then(function (response) {
7571
7614
  return response.json();
@@ -7644,7 +7687,8 @@ var Page = function (_React$Component) {
7644
7687
  mode: "cors",
7645
7688
  headers: {
7646
7689
  'Accept': 'application/json, text/plain, */*',
7647
- 'Content-Type': 'application/x-www-form-urlencoded'
7690
+ 'Content-Type': 'application/x-www-form-urlencoded',
7691
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7648
7692
  }
7649
7693
  }).then(function (response) {
7650
7694
  return response.json();
@@ -7729,7 +7773,8 @@ var Page = function (_React$Component) {
7729
7773
  mode: "cors",
7730
7774
  headers: {
7731
7775
  'Accept': 'application/json, text/plain, */*',
7732
- 'Content-Type': 'application/x-www-form-urlencoded'
7776
+ 'Content-Type': 'application/x-www-form-urlencoded',
7777
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7733
7778
  }
7734
7779
  }).then(function (response) {
7735
7780
  return response.json();
@@ -7814,7 +7859,8 @@ var Page = function (_React$Component) {
7814
7859
  mode: "cors",
7815
7860
  headers: {
7816
7861
  'Accept': 'application/json, text/plain, */*',
7817
- 'Content-Type': 'application/x-www-form-urlencoded'
7862
+ 'Content-Type': 'application/x-www-form-urlencoded',
7863
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7818
7864
  }
7819
7865
  }).then(function (response) {
7820
7866
  return response.json();
@@ -10810,7 +10856,8 @@ var Page = function (_React$Component) {
10810
10856
  mode: "cors",
10811
10857
  headers: {
10812
10858
  'Accept': 'application/json, text/plain, */*',
10813
- 'Content-Type': 'application/x-www-form-urlencoded'
10859
+ 'Content-Type': 'application/x-www-form-urlencoded',
10860
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
10814
10861
  }
10815
10862
  }).then(function (response) {
10816
10863
  return response.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.14",
3
+ "version": "2.1.16",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",