eoss-ui 0.5.60 → 0.5.62

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.
Files changed (89) hide show
  1. package/lib/button-group.js +177 -87
  2. package/lib/button.js +14 -8
  3. package/lib/calendar.js +3 -3
  4. package/lib/card.js +6 -6
  5. package/lib/checkbox-group.js +14 -8
  6. package/lib/data-table-form.js +14 -8
  7. package/lib/data-table.js +129 -104
  8. package/lib/date-picker.js +14 -8
  9. package/lib/dialog.js +17 -11
  10. package/lib/eoss-ui.common.js +463 -311
  11. package/lib/flow-group.js +14 -8
  12. package/lib/flow-list.js +14 -8
  13. package/lib/flow.js +14 -8
  14. package/lib/form.js +14 -8
  15. package/lib/handle-user.js +14 -8
  16. package/lib/handler.js +14 -8
  17. package/lib/icon.js +31 -15
  18. package/lib/icons.js +2 -2
  19. package/lib/index.js +1 -1
  20. package/lib/input-number.js +14 -8
  21. package/lib/input.js +14 -8
  22. package/lib/login.js +26 -13
  23. package/lib/main.js +23 -14
  24. package/lib/nav.js +14 -8
  25. package/lib/page.js +14 -8
  26. package/lib/player.js +18 -12
  27. package/lib/qr-code.js +16 -10
  28. package/lib/radio-group.js +14 -8
  29. package/lib/retrial-auth.js +14 -8
  30. package/lib/select-ganged.js +14 -8
  31. package/lib/select.js +14 -8
  32. package/lib/selector-panel.js +17 -11
  33. package/lib/selector.js +18 -23
  34. package/lib/sizer.js +14 -8
  35. package/lib/steps.js +14 -8
  36. package/lib/switch.js +14 -8
  37. package/lib/table-form.js +14 -8
  38. package/lib/tabs.js +14 -8
  39. package/lib/theme-chalk/base.css +1 -1
  40. package/lib/theme-chalk/button.css +1 -1
  41. package/lib/theme-chalk/calendar.css +1 -0
  42. package/lib/theme-chalk/card.css +1 -1
  43. package/lib/theme-chalk/cascader.css +0 -1
  44. package/lib/theme-chalk/icon.css +1 -1
  45. package/lib/theme-chalk/index.css +1 -1
  46. package/lib/theme-chalk/main.css +1 -1
  47. package/lib/theme-chalk/menu.css +1 -1
  48. package/lib/theme-chalk/sizer.css +1 -1
  49. package/lib/theme-chalk/toolbar.css +1 -1
  50. package/lib/theme-chalk/upload.css +1 -1
  51. package/lib/tips.js +14 -8
  52. package/lib/toolbar.js +47 -26
  53. package/lib/tree-group.js +28 -11
  54. package/lib/tree.js +14 -8
  55. package/lib/upload.js +17 -11
  56. package/lib/utils/util.js +14 -8
  57. package/lib/wujie.js +14 -8
  58. package/lib/wxlogin.js +14 -8
  59. package/package.json +3 -2
  60. package/packages/button-group/src/main.vue +75 -37
  61. package/packages/calendar/src/main.vue +1 -1
  62. package/packages/card/src/main.vue +6 -6
  63. package/packages/data-table/src/main.vue +11 -2
  64. package/packages/icon/src/main.vue +10 -4
  65. package/packages/login/src/main.vue +14 -3
  66. package/packages/main/src/main.vue +4 -1
  67. package/packages/selector/src/main.vue +0 -1
  68. package/packages/theme-chalk/lib/base.css +1 -1
  69. package/packages/theme-chalk/lib/button.css +1 -1
  70. package/packages/theme-chalk/lib/calendar.css +1 -0
  71. package/packages/theme-chalk/lib/card.css +1 -1
  72. package/packages/theme-chalk/lib/cascader.css +0 -1
  73. package/packages/theme-chalk/lib/icon.css +1 -1
  74. package/packages/theme-chalk/lib/index.css +1 -1
  75. package/packages/theme-chalk/lib/main.css +1 -1
  76. package/packages/theme-chalk/lib/menu.css +1 -1
  77. package/packages/theme-chalk/lib/sizer.css +1 -1
  78. package/packages/theme-chalk/lib/toolbar.css +1 -1
  79. package/packages/theme-chalk/lib/upload.css +1 -1
  80. package/packages/theme-chalk/src/button.scss +3 -0
  81. package/packages/theme-chalk/src/calendar.scss +110 -0
  82. package/packages/theme-chalk/src/card.scss +5 -2
  83. package/packages/theme-chalk/src/cascader.scss +0 -109
  84. package/packages/theme-chalk/src/icon.scss +4 -3
  85. package/packages/theme-chalk/src/toolbar.scss +8 -0
  86. package/packages/toolbar/src/main.vue +60 -33
  87. package/packages/tree-group/src/main.vue +12 -1
  88. package/src/index.js +1 -1
  89. package/src/utils/util.js +14 -9
package/lib/upload.js CHANGED
@@ -369,7 +369,7 @@ var ajax = function ajax(_ref) {
369
369
  error.message = '未授权,请重新登录';
370
370
  break;
371
371
  case 403:
372
- error.message = '登录过期,请重新登录';
372
+ error.message = '服务器错误';
373
373
  break;
374
374
  case 404:
375
375
  error.message = '网络请求不存在';
@@ -381,7 +381,7 @@ var ajax = function ajax(_ref) {
381
381
  error.message = '请求超时';
382
382
  break;
383
383
  case 500:
384
- error.message = '服务器端出错';
384
+ error.message = '服务器错误';
385
385
  break;
386
386
  case 501:
387
387
  error.message = '网络未实现';
@@ -737,18 +737,23 @@ var dayOfMonth = function dayOfMonth(date) {
737
737
  * @desc:添加js内容
738
738
  * @author huangbo
739
739
  * @date 2022年5月7日
740
- * @param {Function} [fn] - 函数
740
+ * @param {Function} [callback] - 函数
741
741
  * @param {Number} [wait] - 延迟毫秒数
742
742
  * @param {Boolean} [immediate] - 是否首次触发执行
743
743
  **/
744
744
 
745
- var debounce = function debounce(callback, delay) {
746
- var timeout = null;
745
+ var debounce = function debounce(callback, wait) {
746
+ var timeout = void 0;
747
747
  return function () {
748
- clearTimeout(timeout);
749
- timeout = setTimeout(callback, delay ? delay : 500);
748
+ var context = this;
749
+ var args = arguments;
750
+ if (timeout) clearTimeout(timeout);
751
+ timeout = setTimeout(function () {
752
+ callback.apply(context, args);
753
+ }, wait || 500);
750
754
  };
751
755
  };
756
+
752
757
  /**
753
758
  * delUrlParam
754
759
  * @desc:删除url指定参数
@@ -2885,7 +2890,8 @@ var toFunction = function toFunction(str) {
2885
2890
  * @param {string} [$color] - 颜色值
2886
2891
  **/
2887
2892
  var updateTheme = function updateTheme(color, send) {
2888
- color = color ? color : '#409eff';
2893
+ color = color && startWith(color, '#') ? color : '#409eff';
2894
+
2889
2895
  if (send === undefined) {
2890
2896
  send = true;
2891
2897
  }
@@ -3797,13 +3803,13 @@ window.__store = store;
3797
3803
  /* 22 */,
3798
3804
  /* 23 */,
3799
3805
  /* 24 */,
3800
- /* 25 */
3806
+ /* 25 */,
3807
+ /* 26 */
3801
3808
  /***/ (function(module, exports) {
3802
3809
 
3803
3810
  module.exports = require("js-base64");
3804
3811
 
3805
3812
  /***/ }),
3806
- /* 26 */,
3807
3813
  /* 27 */,
3808
3814
  /* 28 */,
3809
3815
  /* 29 */,
@@ -4233,7 +4239,7 @@ var util = __webpack_require__(0);
4233
4239
  var store = __webpack_require__(11);
4234
4240
 
4235
4241
  // EXTERNAL MODULE: external "js-base64"
4236
- var external_js_base64_ = __webpack_require__(25);
4242
+ var external_js_base64_ = __webpack_require__(26);
4237
4243
 
4238
4244
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=script&lang=js&
4239
4245
  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; };
package/lib/utils/util.js CHANGED
@@ -287,7 +287,7 @@ var ajax = function ajax(_ref) {
287
287
  error.message = '未授权,请重新登录';
288
288
  break;
289
289
  case 403:
290
- error.message = '登录过期,请重新登录';
290
+ error.message = '服务器错误';
291
291
  break;
292
292
  case 404:
293
293
  error.message = '网络请求不存在';
@@ -299,7 +299,7 @@ var ajax = function ajax(_ref) {
299
299
  error.message = '请求超时';
300
300
  break;
301
301
  case 500:
302
- error.message = '服务器端出错';
302
+ error.message = '服务器错误';
303
303
  break;
304
304
  case 501:
305
305
  error.message = '网络未实现';
@@ -655,18 +655,23 @@ var dayOfMonth = function dayOfMonth(date) {
655
655
  * @desc:添加js内容
656
656
  * @author huangbo
657
657
  * @date 2022年5月7日
658
- * @param {Function} [fn] - 函数
658
+ * @param {Function} [callback] - 函数
659
659
  * @param {Number} [wait] - 延迟毫秒数
660
660
  * @param {Boolean} [immediate] - 是否首次触发执行
661
661
  **/
662
662
 
663
- var debounce = function debounce(callback, delay) {
664
- var timeout = null;
663
+ var debounce = function debounce(callback, wait) {
664
+ var timeout = void 0;
665
665
  return function () {
666
- clearTimeout(timeout);
667
- timeout = setTimeout(callback, delay ? delay : 500);
666
+ var context = this;
667
+ var args = arguments;
668
+ if (timeout) clearTimeout(timeout);
669
+ timeout = setTimeout(function () {
670
+ callback.apply(context, args);
671
+ }, wait || 500);
668
672
  };
669
673
  };
674
+
670
675
  /**
671
676
  * delUrlParam
672
677
  * @desc:删除url指定参数
@@ -2803,7 +2808,8 @@ var toFunction = function toFunction(str) {
2803
2808
  * @param {string} [$color] - 颜色值
2804
2809
  **/
2805
2810
  var updateTheme = function updateTheme(color, send) {
2806
- color = color ? color : '#409eff';
2811
+ color = color && startWith(color, '#') ? color : '#409eff';
2812
+
2807
2813
  if (send === undefined) {
2808
2814
  send = true;
2809
2815
  }
package/lib/wujie.js CHANGED
@@ -370,7 +370,7 @@ var ajax = function ajax(_ref) {
370
370
  error.message = '未授权,请重新登录';
371
371
  break;
372
372
  case 403:
373
- error.message = '登录过期,请重新登录';
373
+ error.message = '服务器错误';
374
374
  break;
375
375
  case 404:
376
376
  error.message = '网络请求不存在';
@@ -382,7 +382,7 @@ var ajax = function ajax(_ref) {
382
382
  error.message = '请求超时';
383
383
  break;
384
384
  case 500:
385
- error.message = '服务器端出错';
385
+ error.message = '服务器错误';
386
386
  break;
387
387
  case 501:
388
388
  error.message = '网络未实现';
@@ -738,18 +738,23 @@ var dayOfMonth = function dayOfMonth(date) {
738
738
  * @desc:添加js内容
739
739
  * @author huangbo
740
740
  * @date 2022年5月7日
741
- * @param {Function} [fn] - 函数
741
+ * @param {Function} [callback] - 函数
742
742
  * @param {Number} [wait] - 延迟毫秒数
743
743
  * @param {Boolean} [immediate] - 是否首次触发执行
744
744
  **/
745
745
 
746
- var debounce = function debounce(callback, delay) {
747
- var timeout = null;
746
+ var debounce = function debounce(callback, wait) {
747
+ var timeout = void 0;
748
748
  return function () {
749
- clearTimeout(timeout);
750
- timeout = setTimeout(callback, delay ? delay : 500);
749
+ var context = this;
750
+ var args = arguments;
751
+ if (timeout) clearTimeout(timeout);
752
+ timeout = setTimeout(function () {
753
+ callback.apply(context, args);
754
+ }, wait || 500);
751
755
  };
752
756
  };
757
+
753
758
  /**
754
759
  * delUrlParam
755
760
  * @desc:删除url指定参数
@@ -2886,7 +2891,8 @@ var toFunction = function toFunction(str) {
2886
2891
  * @param {string} [$color] - 颜色值
2887
2892
  **/
2888
2893
  var updateTheme = function updateTheme(color, send) {
2889
- color = color ? color : '#409eff';
2894
+ color = color && startWith(color, '#') ? color : '#409eff';
2895
+
2890
2896
  if (send === undefined) {
2891
2897
  send = true;
2892
2898
  }
package/lib/wxlogin.js CHANGED
@@ -370,7 +370,7 @@ var ajax = function ajax(_ref) {
370
370
  error.message = '未授权,请重新登录';
371
371
  break;
372
372
  case 403:
373
- error.message = '登录过期,请重新登录';
373
+ error.message = '服务器错误';
374
374
  break;
375
375
  case 404:
376
376
  error.message = '网络请求不存在';
@@ -382,7 +382,7 @@ var ajax = function ajax(_ref) {
382
382
  error.message = '请求超时';
383
383
  break;
384
384
  case 500:
385
- error.message = '服务器端出错';
385
+ error.message = '服务器错误';
386
386
  break;
387
387
  case 501:
388
388
  error.message = '网络未实现';
@@ -738,18 +738,23 @@ var dayOfMonth = function dayOfMonth(date) {
738
738
  * @desc:添加js内容
739
739
  * @author huangbo
740
740
  * @date 2022年5月7日
741
- * @param {Function} [fn] - 函数
741
+ * @param {Function} [callback] - 函数
742
742
  * @param {Number} [wait] - 延迟毫秒数
743
743
  * @param {Boolean} [immediate] - 是否首次触发执行
744
744
  **/
745
745
 
746
- var debounce = function debounce(callback, delay) {
747
- var timeout = null;
746
+ var debounce = function debounce(callback, wait) {
747
+ var timeout = void 0;
748
748
  return function () {
749
- clearTimeout(timeout);
750
- timeout = setTimeout(callback, delay ? delay : 500);
749
+ var context = this;
750
+ var args = arguments;
751
+ if (timeout) clearTimeout(timeout);
752
+ timeout = setTimeout(function () {
753
+ callback.apply(context, args);
754
+ }, wait || 500);
751
755
  };
752
756
  };
757
+
753
758
  /**
754
759
  * delUrlParam
755
760
  * @desc:删除url指定参数
@@ -2886,7 +2891,8 @@ var toFunction = function toFunction(str) {
2886
2891
  * @param {string} [$color] - 颜色值
2887
2892
  **/
2888
2893
  var updateTheme = function updateTheme(color, send) {
2889
- color = color ? color : '#409eff';
2894
+ color = color && startWith(color, '#') ? color : '#409eff';
2895
+
2890
2896
  if (send === undefined) {
2891
2897
  send = true;
2892
2898
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.60",
3
+ "version": "0.5.62",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -67,6 +67,7 @@
67
67
  "sm-crypto": "^0.3.11",
68
68
  "sockjs-client": "^1.6.1",
69
69
  "stompjs": "^2.3.3",
70
+ "throttle-debounce": "^5.0.2",
70
71
  "video.js": "^8.0.4",
71
72
  "wujie-vue2": "^1.0.18"
72
73
  },
@@ -96,7 +97,7 @@
96
97
  "cp-cli": "^1.0.2",
97
98
  "cross-env": "^3.1.3",
98
99
  "css-loader": "^2.1.0",
99
- "eoss-element": "^0.2.91",
100
+ "eoss-element": "^0.2.93",
100
101
  "es6-promise": "^4.0.5",
101
102
  "eslint": "4.18.2",
102
103
  "eslint-config-elemefe": "0.1.1",
@@ -1,43 +1,68 @@
1
1
  <template>
2
2
  <el-button-group class="es-button-group">
3
- <template v-for="(item, index) in btns">
4
- <es-button
5
- v-if="item && !item.hide"
6
- :stop="stop"
7
- v-bind="item"
8
- :key="index"
9
- :size="size"
10
- :type="item.type"
11
- @click="handleClick({ ...data, handle: item })"
12
- >
13
- {{
14
- item.template ? item.template({ ...data, config: item }) : item.text
15
- }}
16
- </es-button>
17
- <el-dropdown
18
- v-if="other.length > 0 && index == btns.length - 1"
19
- @command="handleCommand"
20
- :trigger="trigger"
21
- >
22
- <el-button :size="size">
23
- <i class="es-icon-omit"></i>
24
- </el-button>
25
- <el-dropdown-menu slot="dropdown">
26
- <el-dropdown-item
27
- v-for="(item, index) in other"
3
+ <template v-if="length > 1">
4
+ <template v-for="(item, index) in showBtns">
5
+ <template v-if="item && !item.hide">
6
+ <es-upload
7
+ v-if="item.upload || (item.code && item.ownId)"
8
+ class="el-button"
9
+ v-bind="{
10
+ ...item,
11
+ method: 'post',
12
+ btnSize: size,
13
+ showFileList: false,
14
+ selectType: item.type ? item.type : ''
15
+ }"
16
+ ></es-upload>
17
+ <es-button
18
+ v-else
19
+ :stop="stop"
20
+ v-bind="item"
28
21
  :key="index"
29
- :command="item"
22
+ :size="size"
23
+ :type="item.type"
24
+ @click="handleClick({ ...data, handle: item })"
30
25
  >
31
- <i :class="item.icon" v-if="item.icon"></i
32
- >{{
26
+ {{
33
27
  item.template
34
28
  ? item.template({ ...data, config: item })
35
29
  : item.text
36
- }}</el-dropdown-item
37
- >
38
- </el-dropdown-menu>
39
- </el-dropdown>
30
+ }}
31
+ </es-button>
32
+ </template>
33
+ </template>
40
34
  </template>
35
+ <el-dropdown
36
+ v-if="other.length > 0"
37
+ @command="handleCommand"
38
+ @visible-change="handleChange"
39
+ :trigger="trigger"
40
+ >
41
+ <el-button :size="size">
42
+ <template v-if="moreText">
43
+ {{ moreText }}
44
+ <i
45
+ :class="{
46
+ 'el-icon-arrow-down': !show,
47
+ 'el-icon-arrow-up': show
48
+ }"
49
+ ></i>
50
+ </template>
51
+ <i v-else class="es-icon-omit"></i>
52
+ </el-button>
53
+ <el-dropdown-menu slot="dropdown">
54
+ <el-dropdown-item
55
+ v-for="(item, index) in other"
56
+ :key="index"
57
+ :command="item"
58
+ >
59
+ <i :class="item.icon" v-if="item.icon"></i
60
+ >{{
61
+ item.template ? item.template({ ...data, config: item }) : item.text
62
+ }}</el-dropdown-item
63
+ >
64
+ </el-dropdown-menu>
65
+ </el-dropdown>
41
66
  </el-button-group>
42
67
  </template>
43
68
  <script>
@@ -63,22 +88,32 @@ export default {
63
88
  type: String,
64
89
  default: 'click'
65
90
  },
66
- useCaseCodeKey: String
91
+ useCaseCodeKey: String,
92
+ moreText: String,
93
+ size: {
94
+ type: String,
95
+ default: 'mini'
96
+ }
67
97
  },
68
98
  computed: {
69
99
  btns() {
70
100
  return this.getBtns();
71
101
  },
102
+ showBtns() {
103
+ return this.btns.slice(0, this.length - 1);
104
+ },
72
105
  other() {
73
- return this.length > 0 && this.btns.length > this.length
74
- ? this.btns.splice(this.length - 1, this.btns.length)
75
- : [];
106
+ let btns =
107
+ this.length > 0 && (this.btns.length > this.length || this.length == 1)
108
+ ? this.btns.slice(this.length - 1, this.btns.length)
109
+ : [];
110
+ return btns;
76
111
  }
77
112
  },
78
113
  watch: {},
79
114
  data() {
80
115
  return {
81
- size: 'mini'
116
+ show: false
82
117
  };
83
118
  },
84
119
  mounted() {
@@ -117,6 +152,9 @@ export default {
117
152
  });
118
153
  return arry;
119
154
  },
155
+ handleChange(res) {
156
+ this.show = res;
157
+ },
120
158
  handleClick(obj) {
121
159
  this.$emit('handleClick', obj);
122
160
  this.$emit('handle-click', obj);
@@ -60,7 +60,7 @@
60
60
 
61
61
  <script>
62
62
  export default {
63
- name: 'esCalendar',
63
+ name: 'EsCalendar',
64
64
  props: {
65
65
  //显示title
66
66
  showTitle: {
@@ -9,19 +9,19 @@
9
9
  <slot name="header">
10
10
  <template v-if="header">
11
11
  <template v-if="isObject">
12
- <i
12
+ <es-icon
13
13
  v-if="header.icon"
14
14
  class="es-header-icon"
15
- :class="header.icon"
16
- ></i>
15
+ :contents="header.icon"
16
+ ></es-icon>
17
17
  <span v-if="header.text" class="es-header-text">{{
18
18
  header.text
19
19
  }}</span>
20
- <i
20
+ <es-icon
21
21
  v-if="header.icons"
22
22
  class="es-header-icons"
23
- :class="header.icons"
24
- ></i>
23
+ :contents="header.icons"
24
+ ></es-icon>
25
25
  <el-menu
26
26
  v-if="header.tabs"
27
27
  slot="suffix"
@@ -11,6 +11,7 @@
11
11
  >
12
12
  <es-toolbar
13
13
  v-if="showToolbar"
14
+ ref="toolbar"
14
15
  v-bind="{
15
16
  contents: toolbars,
16
17
  showLabel: showLabel,
@@ -150,6 +151,7 @@
150
151
  </template>
151
152
  <script>
152
153
  import { findSysCode, getDictList } from 'eoss-ui/src/config/api.js';
154
+ import { debounce } from 'throttle-debounce';
153
155
  import children from './children.vue';
154
156
  import sizer from './sizer.vue';
155
157
  import util from 'eoss-ui/src/utils/util';
@@ -624,7 +626,7 @@ export default {
624
626
  param: {
625
627
  deep: true,
626
628
  handler(val) {
627
- this.getTableData();
629
+ this.getTableData(112);
628
630
  }
629
631
  },
630
632
  page: {
@@ -673,6 +675,9 @@ export default {
673
675
  }
674
676
  },
675
677
  created() {
678
+ this.getTableData = debounce(300, (res) => {
679
+ this.getTableDatas(res);
680
+ });
676
681
  if (Array.isArray(this.thead) && this.thead.length) {
677
682
  this.getOptions(this.thead);
678
683
  }
@@ -907,7 +912,7 @@ export default {
907
912
  }
908
913
  });
909
914
  },
910
- getTableData(res) {
915
+ getTableDatas(res) {
911
916
  let where;
912
917
  let first;
913
918
  if (res) {
@@ -1028,6 +1033,7 @@ export default {
1028
1033
  },
1029
1034
  doLayout() {
1030
1035
  this.$refs.oaTable.doLayout();
1036
+ this.$refs.oaTable.updateScroll();
1031
1037
  },
1032
1038
  sort(prop, order) {
1033
1039
  this.$refs.oaTable.sort(prop, order);
@@ -1496,6 +1502,9 @@ export default {
1496
1502
  this.sysCodes.forEach((item) => {
1497
1503
  bus.$off(item, this.setOptions);
1498
1504
  });
1505
+ },
1506
+ reset() {
1507
+ this.$refs.toolbar && this.$refs.toolbar.reset();
1499
1508
  }
1500
1509
  }
1501
1510
  };
@@ -1,6 +1,9 @@
1
1
  <template>
2
- <i :class="className">
3
- <slot>{{ code }}</slot>
2
+ <i
3
+ :class="[className, { 'es-pointer': Object.keys(event).length }]"
4
+ v-on="event"
5
+ v-html="code"
6
+ >
4
7
  </i>
5
8
  </template>
6
9
  <script>
@@ -20,12 +23,14 @@ export default {
20
23
  if (typeof val == 'string') {
21
24
  if (util.startWith(val, '&#')) {
22
25
  this.code = val;
26
+ this.className = 'es-icon';
23
27
  } else {
24
28
  this.className = val;
25
29
  }
26
30
  } else {
27
31
  this.code = val.code;
28
- this.className = val.className;
32
+ this.className = val.class || val.className;
33
+ this.event = val.events;
29
34
  }
30
35
  }
31
36
  }
@@ -34,7 +39,8 @@ export default {
34
39
  data() {
35
40
  return {
36
41
  code: '',
37
- className: ''
42
+ className: '',
43
+ event: {}
38
44
  };
39
45
  },
40
46
  created() {},
@@ -377,6 +377,12 @@ export default {
377
377
  type: String,
378
378
  default: '账号登录'
379
379
  },
380
+ param: {
381
+ type: Object,
382
+ default() {
383
+ return {};
384
+ }
385
+ },
380
386
  loginBackground: [String, Array],
381
387
  loginImage: [String, Array],
382
388
  loginLogo: String,
@@ -1151,6 +1157,7 @@ export default {
1151
1157
  this.$refs['login'].validate((valid) => {
1152
1158
  if (valid) {
1153
1159
  this.submit = true;
1160
+ let param = util.getParams() || {};
1154
1161
  const data =
1155
1162
  this.active == '0'
1156
1163
  ? {
@@ -1186,12 +1193,16 @@ export default {
1186
1193
  };
1187
1194
  if (this.onLogin) {
1188
1195
  if (this.active == '0') {
1189
- this.onLogin(data, this.getImgCode, this.handleRemember);
1196
+ this.onLogin(
1197
+ { ...param, ...data },
1198
+ this.getImgCode,
1199
+ this.handleRemember
1200
+ );
1190
1201
  } else {
1191
- this.onLogin(data);
1202
+ this.onLogin({ ...param, ...data });
1192
1203
  }
1193
1204
  } else {
1194
- this.handleUserLogin(data);
1205
+ this.handleUserLogin({ ...param, ...this.param, ...data });
1195
1206
  }
1196
1207
  } else {
1197
1208
  this.submit = false;
@@ -950,7 +950,10 @@ export default {
950
950
  this.color = unescape(results[i].themeColor).toLowerCase();
951
951
  }
952
952
  if (i === 'userStyle' && results[i].color) {
953
- this.color = unescape(results[i].color).toLowerCase();
953
+ let color = unescape(results[i].color).toLowerCase();
954
+ if (util.startWith(color, '#')) {
955
+ this.color = color;
956
+ }
954
957
  }
955
958
  if (i === 'subsystemExtend' && results[i].webPageWatermark) {
956
959
  try {
@@ -210,7 +210,6 @@
210
210
  import util from 'eoss-ui/src/utils/util.js';
211
211
  import { getSelectorOrgDetail } from 'eoss-ui/src/config/api.js';
212
212
  import Clickoutside from 'eoss-element/src/utils/clickoutside';
213
- import { debounce } from 'eoss-element/src/utils/util';
214
213
  export default {
215
214
  name: 'EsSelector',
216
215
  inheritAttrs: false,