eoss-ui 0.4.54 → 0.4.55

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/tree-group.js CHANGED
@@ -102,8 +102,6 @@ module.exports =
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
104
104
 
105
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
106
-
107
105
  /**
108
106
  * 新封装公告方法规范:
109
107
  * 1.方法顺序按字母顺序排列
@@ -207,7 +205,6 @@ var ajax = function ajax(_ref) {
207
205
  });
208
206
  // 请求拦截
209
207
  http.interceptors.request.use(function (config) {
210
- config.header && (config.headers = _extends({}, config.headers, config.header));
211
208
  config.headers.common = getStorage();
212
209
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
213
210
  var requestKey = getRequestKey(config);
@@ -364,7 +361,7 @@ var ajax = function ajax(_ref) {
364
361
  url: url,
365
362
  data: data,
366
363
  params: params,
367
- header: header
364
+ headers: header
368
365
  });
369
366
  };
370
367
 
package/lib/tree.js CHANGED
@@ -102,8 +102,6 @@ module.exports =
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
104
104
 
105
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
106
-
107
105
  /**
108
106
  * 新封装公告方法规范:
109
107
  * 1.方法顺序按字母顺序排列
@@ -207,7 +205,6 @@ var ajax = function ajax(_ref) {
207
205
  });
208
206
  // 请求拦截
209
207
  http.interceptors.request.use(function (config) {
210
- config.header && (config.headers = _extends({}, config.headers, config.header));
211
208
  config.headers.common = getStorage();
212
209
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
213
210
  var requestKey = getRequestKey(config);
@@ -364,7 +361,7 @@ var ajax = function ajax(_ref) {
364
361
  url: url,
365
362
  data: data,
366
363
  params: params,
367
- header: header
364
+ headers: header
368
365
  });
369
366
  };
370
367
 
package/lib/upload.js CHANGED
@@ -102,8 +102,6 @@ module.exports =
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
104
104
 
105
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
106
-
107
105
  /**
108
106
  * 新封装公告方法规范:
109
107
  * 1.方法顺序按字母顺序排列
@@ -207,7 +205,6 @@ var ajax = function ajax(_ref) {
207
205
  });
208
206
  // 请求拦截
209
207
  http.interceptors.request.use(function (config) {
210
- config.header && (config.headers = _extends({}, config.headers, config.header));
211
208
  config.headers.common = getStorage();
212
209
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
213
210
  var requestKey = getRequestKey(config);
@@ -364,7 +361,7 @@ var ajax = function ajax(_ref) {
364
361
  url: url,
365
362
  data: data,
366
363
  params: params,
367
- header: header
364
+ headers: header
368
365
  });
369
366
  };
370
367
 
package/lib/utils/util.js CHANGED
@@ -2,8 +2,6 @@ exports.__esModule = true;
2
2
 
3
3
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4
4
 
5
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
6
-
7
5
  var _api = require('../config/api');
8
6
 
9
7
  var _axios = require('axios');
@@ -122,7 +120,6 @@ var ajax = function ajax(_ref) {
122
120
  });
123
121
  // 请求拦截
124
122
  http.interceptors.request.use(function (config) {
125
- config.header && (config.headers = _extends({}, config.headers, config.header));
126
123
  config.headers.common = getStorage();
127
124
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
128
125
  var requestKey = getRequestKey(config);
@@ -279,7 +276,7 @@ var ajax = function ajax(_ref) {
279
276
  url: url,
280
277
  data: data,
281
278
  params: params,
282
- header: header
279
+ headers: header
283
280
  });
284
281
  };
285
282
 
package/lib/wujie.js CHANGED
@@ -102,8 +102,6 @@ module.exports =
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
104
104
 
105
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
106
-
107
105
  /**
108
106
  * 新封装公告方法规范:
109
107
  * 1.方法顺序按字母顺序排列
@@ -207,7 +205,6 @@ var ajax = function ajax(_ref) {
207
205
  });
208
206
  // 请求拦截
209
207
  http.interceptors.request.use(function (config) {
210
- config.header && (config.headers = _extends({}, config.headers, config.header));
211
208
  config.headers.common = getStorage();
212
209
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
213
210
  var requestKey = getRequestKey(config);
@@ -364,7 +361,7 @@ var ajax = function ajax(_ref) {
364
361
  url: url,
365
362
  data: data,
366
363
  params: params,
367
- header: header
364
+ headers: header
368
365
  });
369
366
  };
370
367
 
package/lib/wxlogin.js CHANGED
@@ -102,8 +102,6 @@ module.exports =
102
102
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
103
103
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
104
104
 
105
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
106
-
107
105
  /**
108
106
  * 新封装公告方法规范:
109
107
  * 1.方法顺序按字母顺序排列
@@ -207,7 +205,6 @@ var ajax = function ajax(_ref) {
207
205
  });
208
206
  // 请求拦截
209
207
  http.interceptors.request.use(function (config) {
210
- config.header && (config.headers = _extends({}, config.headers, config.header));
211
208
  config.headers.common = getStorage();
212
209
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
213
210
  var requestKey = getRequestKey(config);
@@ -364,7 +361,7 @@ var ajax = function ajax(_ref) {
364
361
  url: url,
365
362
  data: data,
366
363
  params: params,
367
- header: header
364
+ headers: header
368
365
  });
369
366
  };
370
367
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.54",
3
+ "version": "0.4.55",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -6,7 +6,7 @@
6
6
  :width="wd"
7
7
  :height="ht"
8
8
  :close-on-click-modal="shadeClose"
9
- :fullscreen="full"
9
+ :showScale="!full"
10
10
  :drag="drag"
11
11
  :modal-append-to-body="modalAppendToBody"
12
12
  v-bind="$attrs"
@@ -384,7 +384,7 @@ export default {
384
384
  ) {
385
385
  this.full = true;
386
386
  this.wd = '100%';
387
- ht = '100%';
387
+ this.ht = '100%';
388
388
  } else {
389
389
  this.wd = this.width ? this.width : this.sizes[this.size]['width'];
390
390
  this.ht = this.height ? this.height : this.sizes[this.size]['height'];
@@ -45,7 +45,7 @@
45
45
  ></i>
46
46
  </div>
47
47
  <div class="es-login-form-box">
48
- <template v-if="isShow(active) && (active == 0 || active == 2 ||active == 12)">
48
+ <template v-if="isShow(active) && (active == 0 || active == 2)">
49
49
  <el-form ref="login" class="es-login-form" :model="formData">
50
50
  <div class="es-login-title">
51
51
  <span class="es-login-title-content">{{ title }}</span>
@@ -110,7 +110,7 @@
110
110
  <el-button
111
111
  class="es-get-code"
112
112
  type="primary"
113
- v-show="(active == 2 || active == 12) && showVerifyCode"
113
+ v-show="active == 2 && showVerifyCode"
114
114
  :disabled="disabled"
115
115
  @click.stop="getCode"
116
116
  >{{ btnText }}</el-button
@@ -587,8 +587,7 @@ export default {
587
587
  6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
588
588
  7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
589
589
  9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
590
- 11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' },
591
- 12: { type: '12', icon: 'es-icon-zhuanhuan', name: '双因素登录' }
590
+ 11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' }
592
591
  }
593
592
  : {
594
593
  0: { type: '0', icon: 'es-icon-jianpan', name: '账号登录' },
@@ -602,8 +601,7 @@ export default {
602
601
  type: '11',
603
602
  icon: 'es-icon-wodeyouxiang',
604
603
  name: '邮箱登录'
605
- },
606
- 12: { type: '12', icon: 'es-icon-zhuanhuan', name: '双因素登录' }
604
+ }
607
605
  };
608
606
  },
609
607
  icons() {
@@ -915,7 +913,7 @@ export default {
915
913
  this.app = res.appName || res.subsystemName;
916
914
  this.qrimg = res.qrimg || res.qrImg;
917
915
  this.loginModel = res.loginModel;
918
- // this.loginModel = '0,3,11,6,9,12';
916
+ // this.loginModel = '0,3,11,6,9,2';
919
917
  this.loginBackgroundImg = res.loginBackgroundUrl
920
918
  ? res.loginBackgroundUrl.split(',')
921
919
  : null;
@@ -980,7 +978,7 @@ export default {
980
978
  }
981
979
  let data = {};
982
980
  let flag = false;
983
- if (this.active == 2 || this.active == 12) {
981
+ if (this.active == 2) {
984
982
  if (!this.formData.username) {
985
983
  this.$refs.login.validateField('username');
986
984
  return false;
@@ -1027,7 +1025,7 @@ export default {
1027
1025
  .ajax({
1028
1026
  method: 'post',
1029
1027
  url:
1030
- this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
1028
+ this.active == 2 ? this.getTwoFactorLoginCode : this.getLoginCode,
1031
1029
  data: data
1032
1030
  })
1033
1031
  .then((res) => {
@@ -1071,7 +1069,7 @@ export default {
1071
1069
  identifyingCode: this.formData.identifyingCode,
1072
1070
  identifyingId: this.identifyingId
1073
1071
  }
1074
- : this.active == '12'
1072
+ : this.active == '2'
1075
1073
  ? {
1076
1074
  username: this.formData.username,
1077
1075
  password:
@@ -1122,7 +1120,7 @@ export default {
1122
1120
  url:
1123
1121
  this.active == '0'
1124
1122
  ? this.actionUrl
1125
- : this.active == '12'
1123
+ : this.active == '2'
1126
1124
  ? this.doTwoFactorLogin
1127
1125
  : this.doCodeLogin,
1128
1126
  data: extUserBindHandleId
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.4.54',
120
+ version: '0.4.55',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -94,8 +94,6 @@ const ajax = function ({
94
94
  // 请求拦截
95
95
  http.interceptors.request.use(
96
96
  config => {
97
- config.header &&
98
- (config.headers = { ...config.headers, ...config.header });
99
97
  config.headers.common = getStorage();
100
98
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
101
99
  let requestKey = getRequestKey(config);
@@ -309,7 +307,7 @@ const ajax = function ({
309
307
  url,
310
308
  data,
311
309
  params,
312
- header
310
+ headers: header
313
311
  });
314
312
  };
315
313