fmui-base 2.1.14 → 2.1.15

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,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.15:统一流程跳转问题
6
7
  - 2.1.14:增加分页组件
7
8
  - 2.1.13:表单选人组件全部类型可选时选不到用户处理
8
9
  - 2.1.12:上传组件增加后台类型校验的参数,预算跳转流程表单路径特殊处理
@@ -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";
@@ -1839,34 +1839,34 @@ var Page = function (_React$Component) {
1839
1839
  var orgType = this.getOrgType();
1840
1840
  if (type == "org") {
1841
1841
  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;
1842
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgInfo?" + "&orgId=" + id + "&orgName=" + search + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1843
1843
  } else {
1844
1844
  if (isOrgChild) {
1845
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?token=" + token + "&orgId=" + id + "&searchData=" + search + "&type=user&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1845
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?" + "&orgId=" + id + "&searchData=" + search + "&type=user&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1846
1846
  } else {
1847
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgInfo?token=" + token + "&orgId=" + id + "&orgName=" + search + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1847
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgInfo?" + "&orgId=" + id + "&orgName=" + search + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1848
1848
  }
1849
1849
  }
1850
1850
  } else if (type == "user") {
1851
1851
  if (isOrgChild) {
1852
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?token=" + token + "&orgId=" + id + "&type=" + type + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1852
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?" + "&orgId=" + id + "&type=" + type + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1853
1853
  } else {
1854
- url = context + "/api/m/cmp/popuser/mobile/getPopuUserInfo?token=" + token + "&userName=" + search + "&corpId=" + baseCorpId + searchLimit;
1854
+ url = context + "/api/m/cmp/popuser/mobile/getPopuUserInfo?" + "&userName=" + search + "&corpId=" + baseCorpId + searchLimit;
1855
1855
  }
1856
1856
  } else if (type == "station") {
1857
1857
  if (isOrgChild) {
1858
- url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?token=" + token + "&orgId=" + id + "&type=" + type + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1858
+ url = context + "/api/m/cmp/popuser/mobile/getPopuOrgChildInfo?" + "&orgId=" + id + "&type=" + type + "&corpId=" + baseCorpId + searchLimit + "&orgType=" + orgType;
1859
1859
  } else {
1860
- url = context + "/api/m/cmp/popuser/mobile/getPopuStationUserInfo?token=" + token + "&stationId=" + id + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1860
+ url = context + "/api/m/cmp/popuser/mobile/getPopuStationUserInfo?" + "&stationId=" + id + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1861
1861
  }
1862
1862
  } else if (type == "group") {
1863
1863
  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;
1864
+ url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?" + "&groupId=" + id + "&type=group" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1865
1865
  } else {
1866
1866
  if (isOrgChild) {
1867
- url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?token=" + token + "&groupId=" + id + "&type=user" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1867
+ url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?" + "&groupId=" + id + "&type=user" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1868
1868
  } else {
1869
- url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?token=" + token + "&groupId=" + id + "&type=group" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1869
+ url = context + "/api/m/cmp/popuser/mobile/getPopuGroupInfo?" + "&groupId=" + id + "&type=group" + "&searchData=" + search + "&corpId=" + baseCorpId + searchLimit;
1870
1870
  }
1871
1871
  }
1872
1872
  } else if (type == "personGroup") {
@@ -1876,17 +1876,17 @@ var Page = function (_React$Component) {
1876
1876
  } else if (isOrgChild) {
1877
1877
  isPersonalGroupChild = 1;
1878
1878
  }
1879
- url = context + "/api/m/oaPersonalGroup/mobile/allList?token=" + token + "&personalGroupId=" + id + "&type=personGroup" + "&personalGroupName=" + search + "&isPersonalGroupChild=" + isPersonalGroupChild + "&corpId=" + baseCorpId + searchLimit;
1879
+ url = context + "/api/m/oaPersonalGroup/mobile/allList?" + "&personalGroupId=" + id + "&type=personGroup" + "&personalGroupName=" + search + "&isPersonalGroupChild=" + isPersonalGroupChild + "&corpId=" + baseCorpId + searchLimit;
1880
1880
  } else if (type == "role") {
1881
- url = context + "/api/m/cmp/popuser/mobile/getPopuRoleInfo?token=" + token + "&roleName=" + search + "&corpId=" + baseCorpId;
1881
+ url = context + "/api/m/cmp/popuser/mobile/getPopuRoleInfo?" + "&roleName=" + search + "&corpId=" + baseCorpId;
1882
1882
  } else if (type == "myOrg") {
1883
1883
  //获取当前用户组织
1884
- url = context + "/api/m/cmp/popuser/mobile/getOrgList?token=" + token + "&orgIds=" + orgHiddenId + "&corpId=" + realCorpId + "&queryType=2&thirdType=";
1884
+ url = context + "/api/m/cmp/popuser/mobile/getOrgList?" + "&orgIds=" + orgHiddenId + "&corpId=" + realCorpId + "&queryType=2&thirdType=";
1885
1885
  } else if (type == "curOrgUser") {
1886
- url = context + "/api/mobile/user/common/getCurrentOrgUsers?token=" + token + "&userId=" + id;
1886
+ url = context + "/api/mobile/user/common/getCurrentOrgUsers?" + "&userId=" + id;
1887
1887
  } else if (type == "politicalOutlook") {
1888
1888
  //政治面貌
1889
- url = context + "/api/m/cmp/popuser/mobile/getPopuPoliticalOutlookInfo?token=" + token + "&politicalOutlookCode=" + id + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1889
+ url = context + "/api/m/cmp/popuser/mobile/getPopuPoliticalOutlookInfo?" + "&politicalOutlookCode=" + id + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1890
1890
  } else if (type == "duty") {
1891
1891
  //岗位
1892
1892
  var pId = "";
@@ -1897,7 +1897,7 @@ var Page = function (_React$Component) {
1897
1897
  pId = idArray[1];
1898
1898
  }
1899
1899
  }
1900
- url = context + "/api/m/cmp/popuser/mobile/getPopuDutyInfo?token=" + token + "&dutyId=" + id + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1900
+ url = context + "/api/m/cmp/popuser/mobile/getPopuDutyInfo?" + "&dutyId=" + id + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1901
1901
  if (search) {
1902
1902
  url += "&type=3";
1903
1903
  } else if (id == null || id == undefined || id == "") {
@@ -1908,7 +1908,7 @@ var Page = function (_React$Component) {
1908
1908
  url += "&type=2";
1909
1909
  }
1910
1910
  } else {
1911
- url = context + this.dealwithExtUrl(this.state.extObj[type].popuUrl) + "?token=" + token + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1911
+ url = context + this.dealwithExtUrl(this.state.extObj[type].popuUrl) + "?" + "&searchData=" + search + "&corpId=" + realCorpId + searchLimit;
1912
1912
  }
1913
1913
  return url;
1914
1914
  }
@@ -1960,7 +1960,8 @@ var Page = function (_React$Component) {
1960
1960
  mode: "cors",
1961
1961
  headers: {
1962
1962
  'Accept': 'application/json, text/plain, */*',
1963
- 'Content-Type': 'application/x-www-form-urlencoded'
1963
+ 'Content-Type': 'application/x-www-form-urlencoded',
1964
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
1964
1965
  }
1965
1966
  }).then(function (response) {
1966
1967
  return response.json();
@@ -2062,7 +2063,8 @@ var Page = function (_React$Component) {
2062
2063
  mode: "cors",
2063
2064
  headers: {
2064
2065
  'Accept': 'application/json, text/plain, */*',
2065
- 'Content-Type': 'application/x-www-form-urlencoded'
2066
+ 'Content-Type': 'application/x-www-form-urlencoded',
2067
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2066
2068
  }
2067
2069
  }).then(function (response) {
2068
2070
  return response.json();
@@ -2132,7 +2134,8 @@ var Page = function (_React$Component) {
2132
2134
  mode: "cors",
2133
2135
  headers: {
2134
2136
  'Accept': 'application/json, text/plain, */*',
2135
- 'Content-Type': 'application/x-www-form-urlencoded'
2137
+ 'Content-Type': 'application/x-www-form-urlencoded',
2138
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2136
2139
  }
2137
2140
  }).then(function (response) {
2138
2141
  return response.json();
@@ -2230,7 +2233,8 @@ var Page = function (_React$Component) {
2230
2233
  mode: "cors",
2231
2234
  headers: {
2232
2235
  'Accept': 'application/json, text/plain, */*',
2233
- 'Content-Type': 'application/x-www-form-urlencoded'
2236
+ 'Content-Type': 'application/x-www-form-urlencoded',
2237
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2234
2238
  }
2235
2239
  }).then(function (response) {
2236
2240
  return response.json();
@@ -2344,7 +2348,8 @@ var Page = function (_React$Component) {
2344
2348
  mode: "cors",
2345
2349
  headers: {
2346
2350
  'Accept': 'application/json, text/plain, */*',
2347
- 'Content-Type': 'application/x-www-form-urlencoded'
2351
+ 'Content-Type': 'application/x-www-form-urlencoded',
2352
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2348
2353
  }
2349
2354
  }).then(function (response) {
2350
2355
  return response.json();
@@ -2435,7 +2440,8 @@ var Page = function (_React$Component) {
2435
2440
  mode: "cors",
2436
2441
  headers: {
2437
2442
  'Accept': 'application/json, text/plain, */*',
2438
- 'Content-Type': 'application/x-www-form-urlencoded'
2443
+ 'Content-Type': 'application/x-www-form-urlencoded',
2444
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2439
2445
  }
2440
2446
  }).then(function (response) {
2441
2447
  return response.json();
@@ -2526,7 +2532,8 @@ var Page = function (_React$Component) {
2526
2532
  mode: "cors",
2527
2533
  headers: {
2528
2534
  'Accept': 'application/json, text/plain, */*',
2529
- 'Content-Type': 'application/x-www-form-urlencoded'
2535
+ 'Content-Type': 'application/x-www-form-urlencoded',
2536
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2530
2537
  }
2531
2538
  }).then(function (response) {
2532
2539
  return response.json();
@@ -2621,7 +2628,8 @@ var Page = function (_React$Component) {
2621
2628
  mode: "cors",
2622
2629
  headers: {
2623
2630
  'Accept': 'application/json, text/plain, */*',
2624
- 'Content-Type': 'application/x-www-form-urlencoded'
2631
+ 'Content-Type': 'application/x-www-form-urlencoded',
2632
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2625
2633
  }
2626
2634
  }).then(function (response) {
2627
2635
  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.15",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",