eoss-ui 0.5.28 → 0.5.30

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 (59) hide show
  1. package/lib/button-group.js +196 -203
  2. package/lib/button.js +11 -5
  3. package/lib/card.js +2 -2
  4. package/lib/checkbox-group.js +14 -8
  5. package/lib/clients.js +2 -2
  6. package/lib/data-table-form.js +8 -3
  7. package/lib/data-table.js +139 -309
  8. package/lib/date-picker.js +8 -3
  9. package/lib/dialog.js +17 -11
  10. package/lib/enterprise.js +2 -2
  11. package/lib/eoss-ui.common.js +389 -323
  12. package/lib/error-page.js +2 -2
  13. package/lib/flow-group.js +10 -5
  14. package/lib/flow-list.js +10 -5
  15. package/lib/flow.js +8 -3
  16. package/lib/form.js +11 -5
  17. package/lib/handle-user.js +10 -5
  18. package/lib/handler.js +10 -5
  19. package/lib/icons.js +4 -4
  20. package/lib/index.js +1 -1
  21. package/lib/input-number.js +8 -3
  22. package/lib/input.js +8 -3
  23. package/lib/layout.js +152 -166
  24. package/lib/login.js +11 -5
  25. package/lib/main.js +20 -14
  26. package/lib/nav.js +8 -3
  27. package/lib/page.js +8 -3
  28. package/lib/player.js +14 -9
  29. package/lib/qr-code.js +10 -5
  30. package/lib/radio-group.js +10 -5
  31. package/lib/retrial-auth.js +8 -3
  32. package/lib/select-ganged.js +10 -5
  33. package/lib/select.js +10 -5
  34. package/lib/selector-panel.js +11 -6
  35. package/lib/selector.js +38 -20
  36. package/lib/sizer.js +8 -3
  37. package/lib/steps.js +8 -3
  38. package/lib/switch.js +8 -3
  39. package/lib/table-form.js +8 -3
  40. package/lib/tabs.js +8 -3
  41. package/lib/theme-chalk/button.css +1 -1
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/tips.js +8 -3
  44. package/lib/tree-group.js +8 -3
  45. package/lib/tree.js +8 -3
  46. package/lib/upload.js +14 -8
  47. package/lib/utils/util.js +8 -3
  48. package/lib/wujie.js +8 -3
  49. package/lib/wxlogin.js +8 -3
  50. package/package.json +2 -2
  51. package/packages/button/src/main.vue +4 -2
  52. package/packages/data-table/src/main.vue +59 -13
  53. package/packages/main/src/userinfo.vue +5 -1
  54. package/packages/selector/src/main.vue +15 -13
  55. package/packages/theme-chalk/lib/button.css +1 -1
  56. package/packages/theme-chalk/lib/index.css +1 -1
  57. package/packages/theme-chalk/src/button.scss +8 -0
  58. package/src/index.js +1 -1
  59. package/src/utils/util.js +11 -3
@@ -239,16 +239,21 @@ var ajax = function ajax(_ref) {
239
239
  delPendingRequest(response.config);
240
240
  loading && loading.close();
241
241
  if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
242
- if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId') || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
243
- localStorage.setItem('ssId', response.headers.ssid);
242
+ if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
244
243
  localStorage.setItem('token', response.headers.authorization);
245
244
  localStorage.setItem('Authorization', response.headers.authorization);
246
245
  } else {
247
- sessionStorage.setItem('ssId', response.headers.ssid);
248
246
  sessionStorage.setItem('token', response.headers.authorization);
249
247
  sessionStorage.setItem('Authorization', response.headers.authorization);
250
248
  }
251
249
  }
250
+ if ((response.headers.ssId || response.headers.Ssid || response.headers.ssid) && (response.headers.ssId || response.headers.SsId || response.headers.ssid) !== getStorage('ssId')) {
251
+ if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId')) {
252
+ localStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
253
+ } else {
254
+ sessionStorage.setItem('ssId', response.headers.ssId || response.headers.SsId || response.headers.ssid);
255
+ }
256
+ }
252
257
  if (response.status === 200) {
253
258
  if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
254
259
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
@@ -3549,7 +3554,7 @@ module.exports = require("js-base64");
3549
3554
  /* 20 */
3550
3555
  /***/ (function(module, exports, __webpack_require__) {
3551
3556
 
3552
- module.exports = __webpack_require__(24);
3557
+ module.exports = __webpack_require__(25);
3553
3558
 
3554
3559
 
3555
3560
  /***/ }),
@@ -3572,6 +3577,12 @@ module.exports = require("qrcode");
3572
3577
 
3573
3578
  /***/ }),
3574
3579
  /* 24 */
3580
+ /***/ (function(module, exports) {
3581
+
3582
+ module.exports = require("eoss-element/src/utils/util");
3583
+
3584
+ /***/ }),
3585
+ /* 25 */
3575
3586
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3576
3587
 
3577
3588
  "use strict";
@@ -3633,7 +3644,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3633
3644
  syncKeys: Object,
3634
3645
  text: String,
3635
3646
  onClick: Function,
3636
- badge: [Object, Number]
3647
+ badge: [Object, Number],
3648
+ float: String
3637
3649
  },
3638
3650
  computed: {
3639
3651
  _type: function _type() {
@@ -3823,7 +3835,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3823
3835
  var link = this.param ? utils_util["a" /* default */].urlJoinParams({ url: this.link, param: this.param }) : this.link;
3824
3836
  attrs = { href: link };
3825
3837
  tag = 'a';
3826
- clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '']);
3838
+ clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '', this.float ? 'es-button--' + this.float : '']);
3827
3839
  }
3828
3840
  if (this.badge) {
3829
3841
  var config = {};
@@ -5560,8 +5572,8 @@ clients_src_main.install = function (Vue) {
5560
5572
  };
5561
5573
 
5562
5574
  /* harmony default export */ var clients = (clients_src_main);
5563
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=4564aac4&
5564
- var mainvue_type_template_id_4564aac4_render = function () {
5575
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=a455250e&
5576
+ var mainvue_type_template_id_a455250e_render = function () {
5565
5577
  var _vm = this
5566
5578
  var _h = _vm.$createElement
5567
5579
  var _c = _vm._self._c || _h
@@ -5721,6 +5733,7 @@ var mainvue_type_template_id_4564aac4_render = function () {
5721
5733
  align: "center",
5722
5734
  label: "操作",
5723
5735
  fixed: "right",
5736
+ button: _vm.headButton,
5724
5737
  total: false,
5725
5738
  },
5726
5739
  scopedSlots: _vm._u([
@@ -5747,7 +5760,7 @@ var mainvue_type_template_id_4564aac4_render = function () {
5747
5760
  ]
5748
5761
  )
5749
5762
  : _vm._e(),
5750
- !scope.row.cantDelete
5763
+ !scope.row.cantDelete && !_vm.isLeast
5751
5764
  ? _c(
5752
5765
  "el-button",
5753
5766
  {
@@ -5809,11 +5822,11 @@ var mainvue_type_template_id_4564aac4_render = function () {
5809
5822
  1
5810
5823
  )
5811
5824
  }
5812
- var mainvue_type_template_id_4564aac4_staticRenderFns = []
5813
- mainvue_type_template_id_4564aac4_render._withStripped = true
5825
+ var mainvue_type_template_id_a455250e_staticRenderFns = []
5826
+ mainvue_type_template_id_a455250e_render._withStripped = true
5814
5827
 
5815
5828
 
5816
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=4564aac4&
5829
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=a455250e&
5817
5830
 
5818
5831
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=29bcbc72&
5819
5832
  var childrenvue_type_template_id_29bcbc72_render = function () {
@@ -7751,211 +7764,6 @@ var sizer_component = normalizeComponent(
7751
7764
  var external_qs_ = __webpack_require__(3);
7752
7765
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
7753
7766
 
7754
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=template&id=124bb300&
7755
- var itemvue_type_template_id_124bb300_render = function () {
7756
- var _vm = this
7757
- var _h = _vm.$createElement
7758
- var _c = _vm._self._c || _h
7759
- return _c(
7760
- "div",
7761
- {
7762
- ref: "move",
7763
- staticClass: "es-layout-item",
7764
- class: _vm.defaultClasss,
7765
- style: _vm.defaultaStyle,
7766
- },
7767
- [
7768
- _c("es-card"),
7769
- _c("div", { staticClass: "es-layout-resizable-width" }),
7770
- _c("div", { staticClass: "es-layout-resizable-height" }),
7771
- _c("div", { staticClass: "es-layout-resizable" }),
7772
- ],
7773
- 1
7774
- )
7775
- }
7776
- var itemvue_type_template_id_124bb300_staticRenderFns = []
7777
- itemvue_type_template_id_124bb300_render._withStripped = true
7778
-
7779
-
7780
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
7781
-
7782
- // EXTERNAL MODULE: external "interactjs"
7783
- var external_interactjs_ = __webpack_require__(4);
7784
- var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
7785
-
7786
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=script&lang=js&
7787
- //
7788
- //
7789
- //
7790
- //
7791
- //
7792
- //
7793
- //
7794
- //
7795
- //
7796
- //
7797
- //
7798
- //
7799
- //
7800
-
7801
- // import '@interactjs/auto-start';
7802
- // import '@interactjs/auto-scroll';
7803
- // import '@interactjs/actions/drag';
7804
- // import '@interactjs/actions/resize';
7805
- // import '@interactjs/modifiers';
7806
- // import '@interactjs/dev-tools';
7807
-
7808
- /* harmony default export */ var itemvue_type_script_lang_js_ = ({
7809
- name: 'LayoutItem',
7810
- components: {},
7811
- props: {
7812
- redact: {
7813
- type: Boolean,
7814
- default: true
7815
- },
7816
- width: {
7817
- type: String,
7818
- default: '100%'
7819
- },
7820
- height: {
7821
- type: String,
7822
- default: '100px'
7823
- },
7824
- left: String,
7825
- top: String,
7826
- index: Number
7827
- },
7828
- computed: {
7829
- defaultClasss: function defaultClasss() {
7830
- return {
7831
- 'es-dragging': this.dragging
7832
- };
7833
- },
7834
- defaultaStyle: function defaultaStyle() {
7835
- return {
7836
- width: this.width,
7837
- height: this.height,
7838
- left: this.left,
7839
- top: this.top
7840
- };
7841
- },
7842
- cardStyle: function cardStyle() {
7843
- return {
7844
- width: this.width,
7845
- height: this.height
7846
- };
7847
- }
7848
- },
7849
- watch: {},
7850
- data: function data() {
7851
- return {
7852
- position: { x: 0, y: 0 },
7853
- interaction: null,
7854
- dragging: false
7855
- };
7856
- },
7857
- created: function created() {
7858
- this.position = {
7859
- x: parseInt(this.left) || 0,
7860
- y: parseInt(this.top) || 0
7861
- };
7862
- console.log(this.position);
7863
- },
7864
- mounted: function mounted() {
7865
- console.log(external_interactjs_default.a.feedback);
7866
- this.interaction = external_interactjs_default()(this.$refs.move);
7867
- this.interaction.draggable({
7868
- // modifiers: [
7869
- // interact.modifiers.restrictRect({
7870
- // restriction: 'parent',
7871
- // endOnly: false
7872
- // })
7873
- // ],
7874
- // listeners: {
7875
- // start: (event) => {
7876
- // this.dragging = true;
7877
- // console.log(event.type, event.target, 111);
7878
- // },
7879
- // move: (event) => {
7880
- // this.position.x += event.dx;
7881
- // this.position.y += event.dy;
7882
- // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
7883
- // },
7884
- // end: (event) => {
7885
- // this.dragging = false;
7886
- // console.log(event.type, event.target, 222);
7887
- // }
7888
- // }
7889
- inertia: true,
7890
- //autoScroll: { container: '.container' },
7891
- listeners: [external_interactjs_default.a.feedback.pointers()],
7892
- modifiers: [external_interactjs_default.a.modifiers.restrict({
7893
- restriction: 'html',
7894
- elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
7895
- }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
7896
- });
7897
- this.interaction.resizable({
7898
- modifiers: [
7899
- // keep the edges inside the parent
7900
- external_interactjs_default.a.modifiers.restrictEdges({
7901
- outer: 'parent'
7902
- }),
7903
-
7904
- // minimum size
7905
- external_interactjs_default.a.modifiers.restrictSize({
7906
- min: { width: 100, height: 100 }
7907
- })],
7908
-
7909
- //inertia: true,
7910
- edges: { top: true, left: true, bottom: true, right: true },
7911
- listeners: {
7912
- move: function move(event) {
7913
- console.log(1212);
7914
- var _event$target$dataset = event.target.dataset,
7915
- x = _event$target$dataset.x,
7916
- y = _event$target$dataset.y;
7917
-
7918
-
7919
- x = (parseFloat(x) || 0) + event.deltaRect.left;
7920
- y = (parseFloat(y) || 0) + event.deltaRect.top;
7921
-
7922
- Object.assign(event.target.style, {
7923
- width: event.rect.width + 'px',
7924
- height: event.rect.height + 'px',
7925
- transform: 'translate(' + x + 'px, ' + y + 'px)'
7926
- });
7927
-
7928
- Object.assign(event.target.dataset, { x: x, y: y });
7929
- }
7930
- }
7931
- });
7932
- },
7933
-
7934
- methods: {},
7935
- beforeDestroy: function beforeDestroy() {}
7936
- });
7937
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
7938
- /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
7939
- // CONCATENATED MODULE: ./packages/layout/src/item.vue
7940
-
7941
-
7942
-
7943
-
7944
-
7945
- /* normalize component */
7946
-
7947
- var item_component = normalizeComponent(
7948
- src_itemvue_type_script_lang_js_,
7949
- itemvue_type_template_id_124bb300_render,
7950
- itemvue_type_template_id_124bb300_staticRenderFns,
7951
- false,
7952
- null,
7953
- null,
7954
- null
7955
-
7956
- )
7957
-
7958
- /* harmony default export */ var src_item = (item_component.exports);
7959
7767
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=script&lang=js&
7960
7768
  var mainvue_type_script_lang_js_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; };
7961
7769
 
@@ -8100,7 +7908,7 @@ var mainvue_type_script_lang_js_components, _watch;
8100
7908
  //
8101
7909
  //
8102
7910
  //
8103
-
7911
+ //
8104
7912
 
8105
7913
 
8106
7914
 
@@ -8266,6 +8074,10 @@ var mainvue_type_script_lang_js_components, _watch;
8266
8074
  type: Boolean,
8267
8075
  default: false
8268
8076
  },
8077
+ theadAdd: {
8078
+ type: Boolean,
8079
+ default: true
8080
+ },
8269
8081
  // 单元格点击事件
8270
8082
  click: {
8271
8083
  type: Boolean,
@@ -8319,6 +8131,11 @@ var mainvue_type_script_lang_js_components, _watch;
8319
8131
  default: function _default() {
8320
8132
  return [];
8321
8133
  }
8134
+ },
8135
+ rowData: [Object, Boolean],
8136
+ least: {
8137
+ type: Boolean,
8138
+ default: false
8322
8139
  }
8323
8140
  },
8324
8141
  data: function data() {
@@ -8439,6 +8256,16 @@ var mainvue_type_script_lang_js_components, _watch;
8439
8256
  set: function set(val) {
8440
8257
  return val;
8441
8258
  }
8259
+ },
8260
+ headButton: function headButton() {
8261
+ return this.theadAdd ? {
8262
+ icon: 'el-icon-circle-plus-outline',
8263
+ type: 'text',
8264
+ event: this.handleClickAddData
8265
+ } : false;
8266
+ },
8267
+ isLeast: function isLeast() {
8268
+ return this.data.length < 2 && this.least;
8442
8269
  }
8443
8270
  },
8444
8271
  watch: (_watch = {
@@ -8632,18 +8459,45 @@ var mainvue_type_script_lang_js_components, _watch;
8632
8459
  this.$emit('row-click', row, column, event);
8633
8460
  },
8634
8461
  handleClickAddData: function handleClickAddData(scope) {
8635
- var data = JSON.parse(JSON.stringify(scope.row));
8636
- var index = scope.$index + 1;
8637
- if (this.page) {
8638
- index += (this.config.pageNum - 1) * this.config.pageSize;
8462
+ if (scope && scope.row) {
8463
+ var data = JSON.parse(JSON.stringify(scope.row));
8464
+ var index = scope.$index + 1;
8465
+ if (this.page) {
8466
+ index += (this.config.pageNum - 1) * this.config.pageSize;
8467
+ }
8468
+ this.data.splice(index, 0, data);
8469
+ this.$emit('dataChange', 'add', data);
8470
+ this.$emit('btnClick', {
8471
+ event: 'addRow',
8472
+ row: data,
8473
+ index: index,
8474
+ data: this.data
8475
+ });
8476
+ } else {
8477
+ var _index = this.data.length;
8478
+ if (this.page) {
8479
+ _index += (this.config.pageNum - 1) * this.config.pageSize;
8480
+ }
8481
+ var rows = {};
8482
+ if (this.rowData && mainvue_type_script_lang_js_typeof(this.rowData) == 'object') {
8483
+ rows = this.rowData;
8484
+ } else if (_index && this.rowData === true) {
8485
+ rows = JSON.parse(JSON.stringify(this.data[_index - 1]));
8486
+ } else {
8487
+ this.getRow(this.thead, rows);
8488
+ }
8489
+ this.data.splice(_index, 0, rows);
8639
8490
  }
8640
- this.data.splice(index, 0, data);
8641
- this.$emit('dataChange', 'add', data);
8642
- this.$emit('btnClick', {
8643
- event: 'addRow',
8644
- row: data,
8645
- index: index,
8646
- data: this.data
8491
+ },
8492
+ getRow: function getRow(thead, obj) {
8493
+ var _this4 = this;
8494
+
8495
+ thead.forEach(function (item) {
8496
+ if (item.field) {
8497
+ obj[item['field']] = item.defaultValue || '';
8498
+ } else if (item.children && item.children.length) {
8499
+ _this4.getRow(item.children, obj);
8500
+ }
8647
8501
  });
8648
8502
  },
8649
8503
  handleClickDeleteData: function handleClickDeleteData(scope) {
@@ -8662,27 +8516,27 @@ var mainvue_type_script_lang_js_components, _watch;
8662
8516
  });
8663
8517
  },
8664
8518
  checkSelect: function checkSelect(newVal) {
8665
- var _this4 = this;
8519
+ var _this5 = this;
8666
8520
 
8667
8521
  this.$nextTick(function () {
8668
8522
  if (utils_util["a" /* default */].getObjectType(newVal) === 'array') {
8669
8523
  newVal.forEach(function (row) {
8670
8524
  if (utils_util["a" /* default */].isObject(row)) {
8671
- _this4.$refs.oaTable.toggleRowSelection(row, true);
8672
- } else _this4.datas.forEach(function (item) {
8673
- if (item[_this4.checkedKey] === row) {
8674
- _this4.$refs.oaTable.toggleRowSelection(item, true);
8525
+ _this5.$refs.oaTable.toggleRowSelection(row, true);
8526
+ } else _this5.datas.forEach(function (item) {
8527
+ if (item[_this5.checkedKey] === row) {
8528
+ _this5.$refs.oaTable.toggleRowSelection(item, true);
8675
8529
  return;
8676
8530
  }
8677
8531
  });
8678
8532
  });
8679
8533
  } else if (newVal === true) {
8680
- _this4.toggleAllSelection();
8534
+ _this5.toggleAllSelection();
8681
8535
  }
8682
8536
  });
8683
8537
  },
8684
8538
  getTheads: function getTheads() {
8685
- var _this5 = this;
8539
+ var _this6 = this;
8686
8540
 
8687
8541
  utils_util["a" /* default */].ajax({
8688
8542
  url: this.thead,
@@ -8694,27 +8548,27 @@ var mainvue_type_script_lang_js_components, _watch;
8694
8548
  if (res.rCode === 0) {
8695
8549
  var results = res.results;
8696
8550
  if (Array.isArray(results)) {
8697
- _this5.theadData = results;
8551
+ _this6.theadData = results;
8698
8552
  } else {
8699
- _this5.theadData = results.theadData || [];
8700
- _this5.list = results.data || results.records || [];
8701
- _this5.config.totalCount = results.count || results.total || results.totalCount;
8702
- _this5.getOptions(_this5.theadData);
8553
+ _this6.theadData = results.theadData || [];
8554
+ _this6.list = results.data || results.records || [];
8555
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
8556
+ _this6.getOptions(_this6.theadData);
8703
8557
  }
8704
8558
  } else {
8705
- _this5.theadData = [];
8559
+ _this6.theadData = [];
8706
8560
  var msg = res.msg || '系统错误,请联系管理员!';
8707
- _this5.$message.error(msg);
8561
+ _this6.$message.error(msg);
8708
8562
  }
8709
- _this5.$emit('success', res);
8563
+ _this6.$emit('success', res);
8710
8564
  }).catch(function (err) {
8711
8565
  if (err.message && err.message !== 'canceled') {
8712
- _this5.$message.error(err.message);
8566
+ _this6.$message.error(err.message);
8713
8567
  }
8714
8568
  });
8715
8569
  },
8716
8570
  getTableData: function getTableData(res) {
8717
- var _this6 = this;
8571
+ var _this7 = this;
8718
8572
 
8719
8573
  var where = void 0;
8720
8574
  var first = void 0;
@@ -8744,28 +8598,28 @@ var mainvue_type_script_lang_js_components, _watch;
8744
8598
  params: reqData,
8745
8599
  data: reqData
8746
8600
  }).then(function (res) {
8747
- _this6.tableLoading = false;
8601
+ _this7.tableLoading = false;
8748
8602
  if (res.rCode === 0 || res.status === 'success') {
8749
- _this6.$refs.oaTable && _this6.$refs.oaTable.resetScroll && _this6.$refs.oaTable.resetScroll(0, 0);
8750
- var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
8751
- _this6.list = results.data || results.records || results.list || [];
8752
- _this6.config.totalCount = results.count || results.total || results.totalCount;
8753
- _this6.checked && _this6.$nextTick(function () {
8754
- _this6.checkSelect(_this6.checked);
8603
+ _this7.$refs.oaTable && _this7.$refs.oaTable.resetScroll && _this7.$refs.oaTable.resetScroll(0, 0);
8604
+ var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
8605
+ _this7.list = results.data || results.records || results.list || [];
8606
+ _this7.config.totalCount = results.count || results.total || results.totalCount;
8607
+ _this7.checked && _this7.$nextTick(function () {
8608
+ _this7.checkSelect(_this7.checked);
8755
8609
  });
8756
8610
  } else {
8757
- _this6.list = [];
8611
+ _this7.list = [];
8758
8612
  //this.tableHeight = false;
8759
8613
  var msg = res.msg || '系统错误,请联系管理员!';
8760
- _this6.$message.error(msg);
8614
+ _this7.$message.error(msg);
8761
8615
  }
8762
- _this6.$emit('success', res);
8616
+ _this7.$emit('success', res);
8763
8617
  }).catch(function (err) {
8764
8618
  //this.tableHeight = false;
8765
8619
  if (err.message && err.message !== 'canceled') {
8766
- _this6.$message.error(err.message);
8620
+ _this7.$message.error(err.message);
8767
8621
  }
8768
- _this6.tableLoading = false;
8622
+ _this7.tableLoading = false;
8769
8623
  });
8770
8624
  },
8771
8625
  selectionChange: function selectionChange(data) {
@@ -8810,7 +8664,7 @@ var mainvue_type_script_lang_js_components, _watch;
8810
8664
  this.$emit('change', data, this.datas);
8811
8665
  },
8812
8666
  handleAjax: function handleAjax(handle, row) {
8813
- var _this7 = this;
8667
+ var _this8 = this;
8814
8668
 
8815
8669
  this.changeLoading(true, handle.text + '\u4E2D...');
8816
8670
  var params = handle.param || {};
@@ -8866,9 +8720,9 @@ var mainvue_type_script_lang_js_components, _watch;
8866
8720
  method: handle.method,
8867
8721
  format: handle.format
8868
8722
  }).then(function (res) {
8869
- _this7.changeLoading(false);
8723
+ _this8.changeLoading(false);
8870
8724
  if (res.rCode === 0) {
8871
- _this7.$message({
8725
+ _this8.$message({
8872
8726
  message: handle.text + '\u6210\u529F',
8873
8727
  duration: 2000,
8874
8728
  type: 'success',
@@ -8876,17 +8730,17 @@ var mainvue_type_script_lang_js_components, _watch;
8876
8730
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
8877
8731
  var reload = handle.reload || true;
8878
8732
  if (reload) {
8879
- _this7.reload({}, first);
8733
+ _this8.reload({}, first);
8880
8734
  }
8881
8735
  }
8882
8736
  });
8883
8737
  } else {
8884
- _this7.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8738
+ _this8.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8885
8739
  }
8886
8740
  }).catch(function (err) {
8887
- _this7.changeLoading(false);
8741
+ _this8.changeLoading(false);
8888
8742
  if (err.message && err.message !== 'canceled') {
8889
- _this7.$message.error(err.message);
8743
+ _this8.$message.error(err.message);
8890
8744
  }
8891
8745
  });
8892
8746
  },
@@ -8911,7 +8765,7 @@ var mainvue_type_script_lang_js_components, _watch;
8911
8765
  return data_table_src_mainvue_type_script_lang_js_extends({}, obj, item);
8912
8766
  },
8913
8767
  handleClick: function handleClick(res) {
8914
- var _this8 = this;
8768
+ var _this9 = this;
8915
8769
 
8916
8770
  var row = res.row,
8917
8771
  handle = res.handle;
@@ -8947,7 +8801,7 @@ var mainvue_type_script_lang_js_components, _watch;
8947
8801
  cancelButtonText: '取消',
8948
8802
  type: 'warning'
8949
8803
  }).then(function () {
8950
- _this8.handleAjax(handle, rows);
8804
+ _this9.handleAjax(handle, rows);
8951
8805
  }).catch(function () {});
8952
8806
  } else {
8953
8807
  this.handleAjax(handle, rows);
@@ -9035,7 +8889,7 @@ var mainvue_type_script_lang_js_components, _watch;
9035
8889
  var type = ['selection', 'index', 'expand'];
9036
8890
  thead = thead.map(function (item) {
9037
8891
  return item.filter(function (ele) {
9038
- return !type.includes(ele.type) && ele.label !== text && !_this8.exportExcludeLabel.includes(ele.label);
8892
+ return !type.includes(ele.type) && ele.label !== text && !_this9.exportExcludeLabel.includes(ele.label);
9039
8893
  });
9040
8894
  });
9041
8895
  utils_util["a" /* default */].exportXls({
@@ -9141,40 +8995,40 @@ var mainvue_type_script_lang_js_components, _watch;
9141
8995
  }
9142
8996
  },
9143
8997
  resetHeight: function resetHeight(warn) {
9144
- var _this9 = this;
8998
+ var _this10 = this;
9145
8999
 
9146
9000
  this.$nextTick(function () {
9147
- if (_this9.full && !_this9.height && !_this9.maxHeight) {
9148
- var height = _this9.$el.parentNode.offsetHeight;
9001
+ if (_this10.full && !_this10.height && !_this10.maxHeight) {
9002
+ var height = _this10.$el.parentNode.offsetHeight;
9149
9003
  if (height) {
9150
- height = parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'height', '%'), 10);
9151
- height = (height == NaN ? 0 : height) - parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-bottom'), 10);
9152
- for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
9153
- var ele = _this9.$el.parentNode.childNodes[i];
9154
- if (ele !== _this9.$el && ele.offsetHeight !== undefined) {
9004
+ height = parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'height', '%'), 10);
9005
+ height = (height == NaN ? 0 : height) - parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-bottom'), 10);
9006
+ for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
9007
+ var ele = _this10.$el.parentNode.childNodes[i];
9008
+ if (ele !== _this10.$el && ele.offsetHeight !== undefined) {
9155
9009
  height = height - ele.offsetHeight - parseInt(utils_util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
9156
9010
  }
9157
9011
  }
9158
- height -= _this9.showToolbar ? 45 : 0;
9159
- height -= _this9.page === false ? 0 : 46;
9160
- height -= _this9.title ? _this9.$refs.title.offsetHeight : 0;
9161
- height -= parseInt(utils_util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-top'), 10);
9162
- height -= parseInt(utils_util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-bottom'), 10);
9163
- var emptyText = _this9.$refs.esTableContent.querySelector('.el-table__empty-text');
9012
+ height -= _this10.showToolbar ? 45 : 0;
9013
+ height -= _this10.page === false ? 0 : 46;
9014
+ height -= _this10.title ? _this10.$refs.title.offsetHeight : 0;
9015
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-top'), 10);
9016
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-bottom'), 10);
9017
+ var emptyText = _this10.$refs.esTableContent.querySelector('.el-table__empty-text');
9164
9018
  var eht = 0;
9165
9019
  if (emptyText) {
9166
9020
  eht = emptyText.offsetHeight;
9167
- var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
9021
+ var thead = _this10.$refs.esTableContent.querySelector('.el-table__header');
9168
9022
  thead && (eht += thead.offsetHeight);
9169
9023
  }
9170
9024
  if (height > 1 && height - eht > 1) {
9171
- _this9.tableHeight = height;
9025
+ _this10.tableHeight = height;
9172
9026
  } else {
9173
- console.warn(_this9.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9027
+ console.warn(_this10.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9174
9028
  }
9175
9029
  } else if (!warn) {
9176
9030
  setTimeout(function () {
9177
- _this9.resetHeight(true);
9031
+ _this10.resetHeight(true);
9178
9032
  }, 1000);
9179
9033
  }
9180
9034
  }
@@ -9204,31 +9058,31 @@ var mainvue_type_script_lang_js_components, _watch;
9204
9058
  this.$emit('sort-change', res);
9205
9059
  },
9206
9060
  mergeThead: function mergeThead(res) {
9207
- var _this10 = this;
9061
+ var _this11 = this;
9208
9062
 
9209
9063
  this.theadData = res;
9210
9064
  this.icon = true;
9211
9065
  setTimeout(function () {
9212
- _this10.show = true;
9066
+ _this11.show = true;
9213
9067
  }, 100);
9214
9068
  },
9215
9069
  setOptions: function setOptions(val, sysCode) {
9216
9070
  this.$set(this.options, sysCode, val);
9217
9071
  },
9218
9072
  bindEventBus: function bindEventBus() {
9219
- var _this11 = this;
9073
+ var _this12 = this;
9220
9074
 
9221
9075
  this.sysCodes.forEach(function (item) {
9222
9076
  bus.$on(item, function (val) {
9223
- _this11.setOptions(val, item);
9077
+ _this12.setOptions(val, item);
9224
9078
  });
9225
9079
  });
9226
9080
  },
9227
9081
  unbindEventBus: function unbindEventBus() {
9228
- var _this12 = this;
9082
+ var _this13 = this;
9229
9083
 
9230
9084
  this.sysCodes.forEach(function (item) {
9231
- bus.$off(item, _this12.setOptions);
9085
+ bus.$off(item, _this13.setOptions);
9232
9086
  });
9233
9087
  }
9234
9088
  }
@@ -9245,8 +9099,8 @@ var mainvue_type_script_lang_js_components, _watch;
9245
9099
 
9246
9100
  var data_table_src_main_component = normalizeComponent(
9247
9101
  packages_data_table_src_mainvue_type_script_lang_js_,
9248
- mainvue_type_template_id_4564aac4_render,
9249
- mainvue_type_template_id_4564aac4_staticRenderFns,
9102
+ mainvue_type_template_id_a455250e_render,
9103
+ mainvue_type_template_id_a455250e_staticRenderFns,
9250
9104
  false,
9251
9105
  null,
9252
9106
  null,
@@ -44706,6 +44560,211 @@ mainvue_type_template_id_3f931032_render._withStripped = true
44706
44560
 
44707
44561
  // CONCATENATED MODULE: ./packages/layout/src/main.vue?vue&type=template&id=3f931032&
44708
44562
 
44563
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=template&id=124bb300&
44564
+ var itemvue_type_template_id_124bb300_render = function () {
44565
+ var _vm = this
44566
+ var _h = _vm.$createElement
44567
+ var _c = _vm._self._c || _h
44568
+ return _c(
44569
+ "div",
44570
+ {
44571
+ ref: "move",
44572
+ staticClass: "es-layout-item",
44573
+ class: _vm.defaultClasss,
44574
+ style: _vm.defaultaStyle,
44575
+ },
44576
+ [
44577
+ _c("es-card"),
44578
+ _c("div", { staticClass: "es-layout-resizable-width" }),
44579
+ _c("div", { staticClass: "es-layout-resizable-height" }),
44580
+ _c("div", { staticClass: "es-layout-resizable" }),
44581
+ ],
44582
+ 1
44583
+ )
44584
+ }
44585
+ var itemvue_type_template_id_124bb300_staticRenderFns = []
44586
+ itemvue_type_template_id_124bb300_render._withStripped = true
44587
+
44588
+
44589
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
44590
+
44591
+ // EXTERNAL MODULE: external "interactjs"
44592
+ var external_interactjs_ = __webpack_require__(4);
44593
+ var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
44594
+
44595
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/item.vue?vue&type=script&lang=js&
44596
+ //
44597
+ //
44598
+ //
44599
+ //
44600
+ //
44601
+ //
44602
+ //
44603
+ //
44604
+ //
44605
+ //
44606
+ //
44607
+ //
44608
+ //
44609
+
44610
+ // import '@interactjs/auto-start';
44611
+ // import '@interactjs/auto-scroll';
44612
+ // import '@interactjs/actions/drag';
44613
+ // import '@interactjs/actions/resize';
44614
+ // import '@interactjs/modifiers';
44615
+ // import '@interactjs/dev-tools';
44616
+
44617
+ /* harmony default export */ var itemvue_type_script_lang_js_ = ({
44618
+ name: 'LayoutItem',
44619
+ components: {},
44620
+ props: {
44621
+ redact: {
44622
+ type: Boolean,
44623
+ default: true
44624
+ },
44625
+ width: {
44626
+ type: String,
44627
+ default: '100%'
44628
+ },
44629
+ height: {
44630
+ type: String,
44631
+ default: '100px'
44632
+ },
44633
+ left: String,
44634
+ top: String,
44635
+ index: Number
44636
+ },
44637
+ computed: {
44638
+ defaultClasss: function defaultClasss() {
44639
+ return {
44640
+ 'es-dragging': this.dragging
44641
+ };
44642
+ },
44643
+ defaultaStyle: function defaultaStyle() {
44644
+ return {
44645
+ width: this.width,
44646
+ height: this.height,
44647
+ left: this.left,
44648
+ top: this.top
44649
+ };
44650
+ },
44651
+ cardStyle: function cardStyle() {
44652
+ return {
44653
+ width: this.width,
44654
+ height: this.height
44655
+ };
44656
+ }
44657
+ },
44658
+ watch: {},
44659
+ data: function data() {
44660
+ return {
44661
+ position: { x: 0, y: 0 },
44662
+ interaction: null,
44663
+ dragging: false
44664
+ };
44665
+ },
44666
+ created: function created() {
44667
+ this.position = {
44668
+ x: parseInt(this.left) || 0,
44669
+ y: parseInt(this.top) || 0
44670
+ };
44671
+ console.log(this.position);
44672
+ },
44673
+ mounted: function mounted() {
44674
+ console.log(external_interactjs_default.a.feedback);
44675
+ this.interaction = external_interactjs_default()(this.$refs.move);
44676
+ this.interaction.draggable({
44677
+ // modifiers: [
44678
+ // interact.modifiers.restrictRect({
44679
+ // restriction: 'parent',
44680
+ // endOnly: false
44681
+ // })
44682
+ // ],
44683
+ // listeners: {
44684
+ // start: (event) => {
44685
+ // this.dragging = true;
44686
+ // console.log(event.type, event.target, 111);
44687
+ // },
44688
+ // move: (event) => {
44689
+ // this.position.x += event.dx;
44690
+ // this.position.y += event.dy;
44691
+ // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
44692
+ // },
44693
+ // end: (event) => {
44694
+ // this.dragging = false;
44695
+ // console.log(event.type, event.target, 222);
44696
+ // }
44697
+ // }
44698
+ inertia: true,
44699
+ //autoScroll: { container: '.container' },
44700
+ listeners: [external_interactjs_default.a.feedback.pointers()],
44701
+ modifiers: [external_interactjs_default.a.modifiers.restrict({
44702
+ restriction: 'html',
44703
+ elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
44704
+ }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
44705
+ });
44706
+ this.interaction.resizable({
44707
+ modifiers: [
44708
+ // keep the edges inside the parent
44709
+ external_interactjs_default.a.modifiers.restrictEdges({
44710
+ outer: 'parent'
44711
+ }),
44712
+
44713
+ // minimum size
44714
+ external_interactjs_default.a.modifiers.restrictSize({
44715
+ min: { width: 100, height: 100 }
44716
+ })],
44717
+
44718
+ //inertia: true,
44719
+ edges: { top: true, left: true, bottom: true, right: true },
44720
+ listeners: {
44721
+ move: function move(event) {
44722
+ console.log(1212);
44723
+ var _event$target$dataset = event.target.dataset,
44724
+ x = _event$target$dataset.x,
44725
+ y = _event$target$dataset.y;
44726
+
44727
+
44728
+ x = (parseFloat(x) || 0) + event.deltaRect.left;
44729
+ y = (parseFloat(y) || 0) + event.deltaRect.top;
44730
+
44731
+ Object.assign(event.target.style, {
44732
+ width: event.rect.width + 'px',
44733
+ height: event.rect.height + 'px',
44734
+ transform: 'translate(' + x + 'px, ' + y + 'px)'
44735
+ });
44736
+
44737
+ Object.assign(event.target.dataset, { x: x, y: y });
44738
+ }
44739
+ }
44740
+ });
44741
+ },
44742
+
44743
+ methods: {},
44744
+ beforeDestroy: function beforeDestroy() {}
44745
+ });
44746
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
44747
+ /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
44748
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue
44749
+
44750
+
44751
+
44752
+
44753
+
44754
+ /* normalize component */
44755
+
44756
+ var item_component = normalizeComponent(
44757
+ src_itemvue_type_script_lang_js_,
44758
+ itemvue_type_template_id_124bb300_render,
44759
+ itemvue_type_template_id_124bb300_staticRenderFns,
44760
+ false,
44761
+ null,
44762
+ null,
44763
+ null
44764
+
44765
+ )
44766
+
44767
+ /* harmony default export */ var src_item = (item_component.exports);
44709
44768
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/layout/src/main.vue?vue&type=script&lang=js&
44710
44769
  //
44711
44770
  //
@@ -48084,8 +48143,8 @@ mainvue_type_template_id_f53c488c_render._withStripped = true
48084
48143
 
48085
48144
  // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=f53c488c&
48086
48145
 
48087
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=799780ee&
48088
- var userinfovue_type_template_id_799780ee_render = function () {
48146
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=356fcf36&
48147
+ var userinfovue_type_template_id_356fcf36_render = function () {
48089
48148
  var _vm = this
48090
48149
  var _h = _vm.$createElement
48091
48150
  var _c = _vm._self._c || _h
@@ -48101,11 +48160,11 @@ var userinfovue_type_template_id_799780ee_render = function () {
48101
48160
  2
48102
48161
  )
48103
48162
  }
48104
- var userinfovue_type_template_id_799780ee_staticRenderFns = []
48105
- userinfovue_type_template_id_799780ee_render._withStripped = true
48163
+ var userinfovue_type_template_id_356fcf36_staticRenderFns = []
48164
+ userinfovue_type_template_id_356fcf36_render._withStripped = true
48106
48165
 
48107
48166
 
48108
- // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=799780ee&
48167
+ // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=356fcf36&
48109
48168
 
48110
48169
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=script&lang=js&
48111
48170
  //
@@ -48382,12 +48441,13 @@ userinfovue_type_template_id_799780ee_render._withStripped = true
48382
48441
  key: 'userId',
48383
48442
  value: value.value
48384
48443
  });
48444
+ utils_util["a" /* default */].removeStorage(['mainConfig', 'jump']);
48385
48445
  _this3.$message({
48386
48446
  message: res.msg,
48387
48447
  type: 'success',
48388
48448
  duration: 500,
48389
48449
  onClose: function onClose() {
48390
- if (utils_util["a" /* default */].win.location.href.indexOf('#/main') > -1) {
48450
+ if (utils_util["a" /* default */].win.location.href.indexOf('#/main') > -1 || utils_util["a" /* default */].win.location.href.indexOf('/main.html') > -1) {
48391
48451
  location.reload();
48392
48452
  } else {
48393
48453
  _this3.$router.replace('/main');
@@ -48520,8 +48580,8 @@ userinfovue_type_template_id_799780ee_render._withStripped = true
48520
48580
 
48521
48581
  var userinfo_component = normalizeComponent(
48522
48582
  src_userinfovue_type_script_lang_js_,
48523
- userinfovue_type_template_id_799780ee_render,
48524
- userinfovue_type_template_id_799780ee_staticRenderFns,
48583
+ userinfovue_type_template_id_356fcf36_render,
48584
+ userinfovue_type_template_id_356fcf36_staticRenderFns,
48525
48585
  false,
48526
48586
  null,
48527
48587
  null,
@@ -56454,8 +56514,8 @@ select_ganged_src_main.install = function (Vue) {
56454
56514
  };
56455
56515
 
56456
56516
  /* harmony default export */ var select_ganged = (select_ganged_src_main);
56457
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=935f17e4&
56458
- var mainvue_type_template_id_935f17e4_render = function () {
56517
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=2098c784&
56518
+ var mainvue_type_template_id_2098c784_render = function () {
56459
56519
  var _vm = this
56460
56520
  var _h = _vm.$createElement
56461
56521
  var _c = _vm._self._c || _h
@@ -56728,6 +56788,7 @@ var mainvue_type_template_id_935f17e4_render = function () {
56728
56788
  readonly: "",
56729
56789
  name: _vm.name,
56730
56790
  type: "text",
56791
+ wqwq: "",
56731
56792
  },
56732
56793
  model: {
56733
56794
  value: _vm.selectedLabel,
@@ -56938,16 +56999,19 @@ var mainvue_type_template_id_935f17e4_render = function () {
56938
56999
  2
56939
57000
  )
56940
57001
  }
56941
- var mainvue_type_template_id_935f17e4_staticRenderFns = []
56942
- mainvue_type_template_id_935f17e4_render._withStripped = true
57002
+ var mainvue_type_template_id_2098c784_staticRenderFns = []
57003
+ mainvue_type_template_id_2098c784_render._withStripped = true
56943
57004
 
56944
57005
 
56945
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=935f17e4&
57006
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=2098c784&
56946
57007
 
56947
57008
  // EXTERNAL MODULE: external "eoss-element/src/utils/clickoutside"
56948
57009
  var clickoutside_ = __webpack_require__(17);
56949
57010
  var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
56950
57011
 
57012
+ // EXTERNAL MODULE: external "eoss-element/src/utils/util"
57013
+ var util_ = __webpack_require__(24);
57014
+
56951
57015
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=script&lang=js&
56952
57016
  //
56953
57017
  //
@@ -57156,6 +57220,8 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57156
57220
  //
57157
57221
  //
57158
57222
  //
57223
+ //
57224
+
57159
57225
 
57160
57226
 
57161
57227
 
@@ -57275,6 +57341,10 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57275
57341
  noMatchText: {
57276
57342
  type: String,
57277
57343
  default: '无匹配数据'
57344
+ },
57345
+ emptySerach: {
57346
+ type: Boolean,
57347
+ default: false
57278
57348
  }
57279
57349
  },
57280
57350
  data: function data() {
@@ -57289,7 +57359,8 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57289
57359
  options: '',
57290
57360
  show: false,
57291
57361
  focus: false,
57292
- reference: undefined
57362
+ reference: undefined,
57363
+ timer: null
57293
57364
  };
57294
57365
  },
57295
57366
 
@@ -57337,7 +57408,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57337
57408
  if (this.selected && this.selected.length) {
57338
57409
  return '';
57339
57410
  } else if (this.filterable) {
57340
- return '输入关键字按回车搜索';
57411
+ return '输入关键字搜索';
57341
57412
  } else {
57342
57413
  return this.placeholder;
57343
57414
  }
@@ -57365,6 +57436,12 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57365
57436
  this.resetInputHeight();
57366
57437
  }
57367
57438
  }
57439
+ },
57440
+ words: function words(val) {
57441
+ if (this.emptySerach || val !== '') {
57442
+ clearTimeout(this.timer);
57443
+ this.timer = setTimeout(this.handleSearch, 500);
57444
+ }
57368
57445
  }
57369
57446
  },
57370
57447
  created: function created() {
@@ -57378,7 +57455,6 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57378
57455
  this.$nextTick(function () {
57379
57456
  _this2.$refs.reference && (_this2.minWidth = _this2.$refs.reference.$el.children[0].offsetWidth);
57380
57457
  });
57381
- this.$el.addEventListener('keyup', this.doSearch);
57382
57458
  }
57383
57459
  if (this.$refs.openDialog) {
57384
57460
  this.$refs.openDialog.$el.parentNode.addEventListener('click', function () {
@@ -57388,16 +57464,6 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57388
57464
  },
57389
57465
 
57390
57466
  methods: {
57391
- doSearch: function doSearch(e) {
57392
- if (utils_util["a" /* default */].win.event == undefined) {
57393
- var key = e.keyCode;
57394
- } else {
57395
- var key = utils_util["a" /* default */].win.event.keyCode;
57396
- }
57397
- if (key == 13) {
57398
- this.handleSearch();
57399
- }
57400
- },
57401
57467
  isObject: function isObject(obj) {
57402
57468
  return utils_util["a" /* default */].isObject(obj);
57403
57469
  },
@@ -57577,8 +57643,8 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57577
57643
 
57578
57644
  var selector_src_main_component = normalizeComponent(
57579
57645
  packages_selector_src_mainvue_type_script_lang_js_,
57580
- mainvue_type_template_id_935f17e4_render,
57581
- mainvue_type_template_id_935f17e4_staticRenderFns,
57646
+ mainvue_type_template_id_2098c784_render,
57647
+ mainvue_type_template_id_2098c784_staticRenderFns,
57582
57648
  false,
57583
57649
  null,
57584
57650
  null,
@@ -71196,7 +71262,7 @@ if (typeof window !== 'undefined' && window.Vue) {
71196
71262
  }
71197
71263
 
71198
71264
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71199
- version: '0.5.28',
71265
+ version: '0.5.30',
71200
71266
  install: install,
71201
71267
  Button: packages_button,
71202
71268
  ButtonGroup: button_group,