eoss-mobiles 0.2.49 → 0.2.50

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/lib/picker.js CHANGED
@@ -1803,7 +1803,22 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
-
1806
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1807
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1808
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1809
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1810
+ if (accessToken) {
1811
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1812
+ }
1813
+ if (tenantId) {
1814
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1815
+ }
1816
+ if (authorization) {
1817
+ config.headers['Authorization'] = authorization;
1818
+ }
1819
+ if (deviceId) {
1820
+ config.headers['deviceId'] = deviceId;
1821
+ }
1807
1822
  return config;
1808
1823
  }, function (error) {
1809
1824
  return Promise.error(error);
package/lib/radio.js CHANGED
@@ -1803,7 +1803,22 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
-
1806
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1807
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1808
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1809
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1810
+ if (accessToken) {
1811
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1812
+ }
1813
+ if (tenantId) {
1814
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1815
+ }
1816
+ if (authorization) {
1817
+ config.headers['Authorization'] = authorization;
1818
+ }
1819
+ if (deviceId) {
1820
+ config.headers['deviceId'] = deviceId;
1821
+ }
1807
1822
  return config;
1808
1823
  }, function (error) {
1809
1824
  return Promise.error(error);
@@ -2040,7 +2055,7 @@ module.exports = require("sm-crypto");
2040
2055
  // ESM COMPAT FLAG
2041
2056
  __webpack_require__.r(__webpack_exports__);
2042
2057
 
2043
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/main.vue?vue&type=template&id=6780641d&
2058
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/main.vue?vue&type=template&id=526e450c&
2044
2059
  var render = function () {
2045
2060
  var _vm = this
2046
2061
  var _h = _vm.$createElement
@@ -2107,7 +2122,7 @@ var staticRenderFns = []
2107
2122
  render._withStripped = true
2108
2123
 
2109
2124
 
2110
- // CONCATENATED MODULE: ./packages/radio/src/main.vue?vue&type=template&id=6780641d&
2125
+ // CONCATENATED MODULE: ./packages/radio/src/main.vue?vue&type=template&id=526e450c&
2111
2126
 
2112
2127
  // EXTERNAL MODULE: ./src/config/api.js
2113
2128
  var api = __webpack_require__(2);
@@ -2183,7 +2198,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2183
2198
  default: 'vertical'
2184
2199
  },
2185
2200
  value: {
2186
- type: String,
2201
+ type: [String, Number],
2187
2202
  default: ''
2188
2203
  },
2189
2204
  sysAppCode: {
@@ -1807,7 +1807,22 @@ var axios_ajax = function ajax(url) {
1807
1807
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1808
1808
  delete config.headers.deviceId;
1809
1809
  }
1810
-
1810
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1811
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1812
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1813
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1814
+ if (accessToken) {
1815
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1816
+ }
1817
+ if (tenantId) {
1818
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1819
+ }
1820
+ if (authorization) {
1821
+ config.headers['Authorization'] = authorization;
1822
+ }
1823
+ if (deviceId) {
1824
+ config.headers['deviceId'] = deviceId;
1825
+ }
1811
1826
  return config;
1812
1827
  }, function (error) {
1813
1828
  return Promise.error(error);
package/lib/selector.js CHANGED
@@ -1803,7 +1803,22 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
-
1806
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1807
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1808
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1809
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1810
+ if (accessToken) {
1811
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1812
+ }
1813
+ if (tenantId) {
1814
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1815
+ }
1816
+ if (authorization) {
1817
+ config.headers['Authorization'] = authorization;
1818
+ }
1819
+ if (deviceId) {
1820
+ config.headers['deviceId'] = deviceId;
1821
+ }
1807
1822
  return config;
1808
1823
  }, function (error) {
1809
1824
  return Promise.error(error);
@@ -1803,7 +1803,22 @@ var axios_ajax = function ajax(url) {
1803
1803
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1804
1804
  delete config.headers.deviceId;
1805
1805
  }
1806
-
1806
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1807
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1808
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1809
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1810
+ if (accessToken) {
1811
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1812
+ }
1813
+ if (tenantId) {
1814
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1815
+ }
1816
+ if (authorization) {
1817
+ config.headers['Authorization'] = authorization;
1818
+ }
1819
+ if (deviceId) {
1820
+ config.headers['deviceId'] = deviceId;
1821
+ }
1807
1822
  return config;
1808
1823
  }, function (error) {
1809
1824
  return Promise.error(error);
package/lib/table.js CHANGED
@@ -1682,7 +1682,22 @@ var axios_ajax = function ajax(url) {
1682
1682
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
1683
1683
  delete config.headers.deviceId;
1684
1684
  }
1685
-
1685
+ var accessToken = util["a" /* default */].getStorage('accessToken');
1686
+ var tenantId = util["a" /* default */].getStorage('tenantId');
1687
+ var authorization = util["a" /* default */].getStorage('authorization') || util["a" /* default */].getStorage('token');
1688
+ var deviceId = util["a" /* default */].getStorage('deviceId');
1689
+ if (accessToken) {
1690
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
1691
+ }
1692
+ if (tenantId) {
1693
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
1694
+ }
1695
+ if (authorization) {
1696
+ config.headers['Authorization'] = authorization;
1697
+ }
1698
+ if (deviceId) {
1699
+ config.headers['deviceId'] = deviceId;
1700
+ }
1686
1701
  return config;
1687
1702
  }, function (error) {
1688
1703
  return Promise.error(error);
@@ -2685,6 +2700,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
2685
2700
  'header-row-class-name': this.tableHeader,
2686
2701
  data: this.datas
2687
2702
  }, this.$attrs, {
2703
+ 'max-height': this.maxHeight,
2688
2704
  height: this.tableHeight !== 'auto' ? this.tableHeight : this.tableClientHeight
2689
2705
  }),
2690
2706
  on: _extends({}, this.$listeners, {
@@ -88,7 +88,22 @@ var ajax = function ajax(url) {
88
88
  if (config.url.search('mecp/overtime') !== -1 || config.url.search('mecp/leave') !== -1 || config.url.search('contractext') !== -1 || config.url.search('getSysParam') !== -1) {
89
89
  delete config.headers.deviceId;
90
90
  }
91
-
91
+ var accessToken = _util2.default.getStorage('accessToken');
92
+ var tenantId = _util2.default.getStorage('tenantId');
93
+ var authorization = _util2.default.getStorage('authorization') || _util2.default.getStorage('token');
94
+ var deviceId = _util2.default.getStorage('deviceId');
95
+ if (accessToken) {
96
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
97
+ }
98
+ if (tenantId) {
99
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
100
+ }
101
+ if (authorization) {
102
+ config.headers['Authorization'] = authorization;
103
+ }
104
+ if (deviceId) {
105
+ config.headers['deviceId'] = deviceId;
106
+ }
92
107
  return config;
93
108
  }, function (error) {
94
109
  return Promise.error(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-mobiles",
3
- "version": "0.2.49",
3
+ "version": "0.2.50",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -57,7 +57,7 @@ export default {
57
57
  default: 'vertical'
58
58
  },
59
59
  value: {
60
- type: String,
60
+ type: [String,Number],
61
61
  default: ''
62
62
  },
63
63
  sysAppCode: {
@@ -830,6 +830,7 @@ export default {
830
830
  'header-row-class-name': this.tableHeader,
831
831
  data: this.datas,
832
832
  ...this.$attrs,
833
+ 'max-height':this.maxHeight,
833
834
  height:
834
835
  this.tableHeight !== 'auto'
835
836
  ? this.tableHeight
package/src/index.js CHANGED
@@ -105,7 +105,7 @@ if (typeof window !== 'undefined' && window.Vue) {
105
105
  }
106
106
 
107
107
  export default {
108
- version: '0.2.49',
108
+ version: '0.2.50',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,
@@ -77,7 +77,22 @@ const ajax = (url, params = {}, headers = {}, format = true, type = 'get') => {
77
77
  ) {
78
78
  delete config.headers.deviceId;
79
79
  }
80
-
80
+ let accessToken = $.getStorage('accessToken');
81
+ let tenantId = $.getStorage('tenantId');
82
+ let authorization = $.getStorage('authorization') || $.getStorage('token');
83
+ let deviceId = $.getStorage('deviceId');
84
+ if (accessToken) {
85
+ config.headers['X-Coos-Client-Access-Token'] = accessToken;
86
+ }
87
+ if (tenantId) {
88
+ config.headers['X-Coos-Client-Tenant-Id'] = tenantId;
89
+ }
90
+ if (authorization) {
91
+ config.headers['Authorization'] = authorization;
92
+ }
93
+ if (deviceId) {
94
+ config.headers['deviceId'] = deviceId;
95
+ }
81
96
  return config;
82
97
  },
83
98
  error => {