atr-components 3.0.22 → 3.0.23

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.
@@ -149,6 +149,7 @@ const atr_static_datas = {
149
149
  */
150
150
  login_router: '/p/login',
151
151
  SERVER_URL: '',
152
+ AUTH_URL: "third/auth/getAuthToken",
152
153
  //http head是否默认head
153
154
  needNormalHeade: false,
154
155
  getNormalHeader: (_headers) => {
@@ -1324,7 +1325,7 @@ class HttpService {
1324
1325
  return atr_static_datas.getDefaultHeader(_headers);
1325
1326
  }
1326
1327
  downloadXls(url, params) {
1327
- this.post("third/auth/getAuthToken", {}, ToolsUtil.getHttpOptions()).subscribe(result => {
1328
+ this.post(atr_static_datas.AUTH_URL, {}, ToolsUtil.getHttpOptions()).subscribe(result => {
1328
1329
  let thridParma = {
1329
1330
  "reqMethod": "auth",
1330
1331
  "sign": result.data,
@@ -1332,7 +1333,7 @@ class HttpService {
1332
1333
  token: LocalStorageUtil.getUserToken(),
1333
1334
  userId: LocalStorageUtil.getUserId()
1334
1335
  };
1335
- params = Object.assign(params, thridParma);
1336
+ params = Object.assign(thridParma, params);
1336
1337
  ToolsUtil.downloadXls(atr_static_datas.SERVER_URL + url, params);
1337
1338
  }, error => {
1338
1339
  });