eoss-ui 0.5.27 → 0.5.29

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.
@@ -3549,7 +3549,7 @@ module.exports = require("js-base64");
3549
3549
  /* 20 */
3550
3550
  /***/ (function(module, exports, __webpack_require__) {
3551
3551
 
3552
- module.exports = __webpack_require__(24);
3552
+ module.exports = __webpack_require__(25);
3553
3553
 
3554
3554
 
3555
3555
  /***/ }),
@@ -3572,6 +3572,12 @@ module.exports = require("qrcode");
3572
3572
 
3573
3573
  /***/ }),
3574
3574
  /* 24 */
3575
+ /***/ (function(module, exports) {
3576
+
3577
+ module.exports = require("eoss-element/src/utils/util");
3578
+
3579
+ /***/ }),
3580
+ /* 25 */
3575
3581
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3576
3582
 
3577
3583
  "use strict";
@@ -3633,7 +3639,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3633
3639
  syncKeys: Object,
3634
3640
  text: String,
3635
3641
  onClick: Function,
3636
- badge: [Object, Number]
3642
+ badge: [Object, Number],
3643
+ float: String
3637
3644
  },
3638
3645
  computed: {
3639
3646
  _type: function _type() {
@@ -3823,7 +3830,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3823
3830
  var link = this.param ? utils_util["a" /* default */].urlJoinParams({ url: this.link, param: this.param }) : this.link;
3824
3831
  attrs = { href: link };
3825
3832
  tag = 'a';
3826
- clas = clas.concat(['el-button', this._type ? 'el-button--' + this._type : 'el-button--default', this.size ? 'el-button--' + this.size : '']);
3833
+ 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
3834
  }
3828
3835
  if (this.badge) {
3829
3836
  var config = {};
@@ -5560,8 +5567,8 @@ clients_src_main.install = function (Vue) {
5560
5567
  };
5561
5568
 
5562
5569
  /* 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=05f3b637&
5564
- var mainvue_type_template_id_05f3b637_render = function () {
5570
+ // 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&
5571
+ var mainvue_type_template_id_a455250e_render = function () {
5565
5572
  var _vm = this
5566
5573
  var _h = _vm.$createElement
5567
5574
  var _c = _vm._self._c || _h
@@ -5721,6 +5728,7 @@ var mainvue_type_template_id_05f3b637_render = function () {
5721
5728
  align: "center",
5722
5729
  label: "操作",
5723
5730
  fixed: "right",
5731
+ button: _vm.headButton,
5724
5732
  total: false,
5725
5733
  },
5726
5734
  scopedSlots: _vm._u([
@@ -5747,7 +5755,7 @@ var mainvue_type_template_id_05f3b637_render = function () {
5747
5755
  ]
5748
5756
  )
5749
5757
  : _vm._e(),
5750
- !scope.row.cantDelete
5758
+ !scope.row.cantDelete && !_vm.isLeast
5751
5759
  ? _c(
5752
5760
  "el-button",
5753
5761
  {
@@ -5809,11 +5817,11 @@ var mainvue_type_template_id_05f3b637_render = function () {
5809
5817
  1
5810
5818
  )
5811
5819
  }
5812
- var mainvue_type_template_id_05f3b637_staticRenderFns = []
5813
- mainvue_type_template_id_05f3b637_render._withStripped = true
5820
+ var mainvue_type_template_id_a455250e_staticRenderFns = []
5821
+ mainvue_type_template_id_a455250e_render._withStripped = true
5814
5822
 
5815
5823
 
5816
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=05f3b637&
5824
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=a455250e&
5817
5825
 
5818
5826
  // 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
5827
  var childrenvue_type_template_id_29bcbc72_render = function () {
@@ -7751,211 +7759,6 @@ var sizer_component = normalizeComponent(
7751
7759
  var external_qs_ = __webpack_require__(3);
7752
7760
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
7753
7761
 
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
7762
  // 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
7763
  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
7764
 
@@ -8100,7 +7903,7 @@ var mainvue_type_script_lang_js_components, _watch;
8100
7903
  //
8101
7904
  //
8102
7905
  //
8103
-
7906
+ //
8104
7907
 
8105
7908
 
8106
7909
 
@@ -8266,6 +8069,10 @@ var mainvue_type_script_lang_js_components, _watch;
8266
8069
  type: Boolean,
8267
8070
  default: false
8268
8071
  },
8072
+ theadAdd: {
8073
+ type: Boolean,
8074
+ default: true
8075
+ },
8269
8076
  // 单元格点击事件
8270
8077
  click: {
8271
8078
  type: Boolean,
@@ -8319,6 +8126,11 @@ var mainvue_type_script_lang_js_components, _watch;
8319
8126
  default: function _default() {
8320
8127
  return [];
8321
8128
  }
8129
+ },
8130
+ rowData: [Object, Boolean],
8131
+ least: {
8132
+ type: Boolean,
8133
+ default: false
8322
8134
  }
8323
8135
  },
8324
8136
  data: function data() {
@@ -8439,6 +8251,16 @@ var mainvue_type_script_lang_js_components, _watch;
8439
8251
  set: function set(val) {
8440
8252
  return val;
8441
8253
  }
8254
+ },
8255
+ headButton: function headButton() {
8256
+ return this.theadAdd ? {
8257
+ icon: 'el-icon-circle-plus-outline',
8258
+ type: 'text',
8259
+ event: this.handleClickAddData
8260
+ } : false;
8261
+ },
8262
+ isLeast: function isLeast() {
8263
+ return this.data.length < 2 && this.least;
8442
8264
  }
8443
8265
  },
8444
8266
  watch: (_watch = {
@@ -8632,18 +8454,45 @@ var mainvue_type_script_lang_js_components, _watch;
8632
8454
  this.$emit('row-click', row, column, event);
8633
8455
  },
8634
8456
  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;
8457
+ if (scope && scope.row) {
8458
+ var data = JSON.parse(JSON.stringify(scope.row));
8459
+ var index = scope.$index + 1;
8460
+ if (this.page) {
8461
+ index += (this.config.pageNum - 1) * this.config.pageSize;
8462
+ }
8463
+ this.data.splice(index, 0, data);
8464
+ this.$emit('dataChange', 'add', data);
8465
+ this.$emit('btnClick', {
8466
+ event: 'addRow',
8467
+ row: data,
8468
+ index: index,
8469
+ data: this.data
8470
+ });
8471
+ } else {
8472
+ var _index = this.data.length;
8473
+ if (this.page) {
8474
+ _index += (this.config.pageNum - 1) * this.config.pageSize;
8475
+ }
8476
+ var rows = {};
8477
+ if (this.rowData && mainvue_type_script_lang_js_typeof(this.rowData) == 'object') {
8478
+ rows = this.rowData;
8479
+ } else if (_index && this.rowData === true) {
8480
+ rows = JSON.parse(JSON.stringify(this.data[_index - 1]));
8481
+ } else {
8482
+ this.getRow(this.thead, rows);
8483
+ }
8484
+ this.data.splice(_index, 0, rows);
8639
8485
  }
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
8486
+ },
8487
+ getRow: function getRow(thead, obj) {
8488
+ var _this4 = this;
8489
+
8490
+ thead.forEach(function (item) {
8491
+ if (item.field) {
8492
+ obj[item['field']] = item.defaultValue || '';
8493
+ } else if (item.children && item.children.length) {
8494
+ _this4.getRow(item.children, obj);
8495
+ }
8647
8496
  });
8648
8497
  },
8649
8498
  handleClickDeleteData: function handleClickDeleteData(scope) {
@@ -8662,27 +8511,27 @@ var mainvue_type_script_lang_js_components, _watch;
8662
8511
  });
8663
8512
  },
8664
8513
  checkSelect: function checkSelect(newVal) {
8665
- var _this4 = this;
8514
+ var _this5 = this;
8666
8515
 
8667
8516
  this.$nextTick(function () {
8668
8517
  if (utils_util["a" /* default */].getObjectType(newVal) === 'array') {
8669
8518
  newVal.forEach(function (row) {
8670
8519
  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);
8520
+ _this5.$refs.oaTable.toggleRowSelection(row, true);
8521
+ } else _this5.datas.forEach(function (item) {
8522
+ if (item[_this5.checkedKey] === row) {
8523
+ _this5.$refs.oaTable.toggleRowSelection(item, true);
8675
8524
  return;
8676
8525
  }
8677
8526
  });
8678
8527
  });
8679
8528
  } else if (newVal === true) {
8680
- _this4.toggleAllSelection();
8529
+ _this5.toggleAllSelection();
8681
8530
  }
8682
8531
  });
8683
8532
  },
8684
8533
  getTheads: function getTheads() {
8685
- var _this5 = this;
8534
+ var _this6 = this;
8686
8535
 
8687
8536
  utils_util["a" /* default */].ajax({
8688
8537
  url: this.thead,
@@ -8694,27 +8543,27 @@ var mainvue_type_script_lang_js_components, _watch;
8694
8543
  if (res.rCode === 0) {
8695
8544
  var results = res.results;
8696
8545
  if (Array.isArray(results)) {
8697
- _this5.theadData = results;
8546
+ _this6.theadData = results;
8698
8547
  } 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);
8548
+ _this6.theadData = results.theadData || [];
8549
+ _this6.list = results.data || results.records || [];
8550
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
8551
+ _this6.getOptions(_this6.theadData);
8703
8552
  }
8704
8553
  } else {
8705
- _this5.theadData = [];
8554
+ _this6.theadData = [];
8706
8555
  var msg = res.msg || '系统错误,请联系管理员!';
8707
- _this5.$message.error(msg);
8556
+ _this6.$message.error(msg);
8708
8557
  }
8709
- _this5.$emit('success', res);
8558
+ _this6.$emit('success', res);
8710
8559
  }).catch(function (err) {
8711
8560
  if (err.message && err.message !== 'canceled') {
8712
- _this5.$message.error(err.message);
8561
+ _this6.$message.error(err.message);
8713
8562
  }
8714
8563
  });
8715
8564
  },
8716
8565
  getTableData: function getTableData(res) {
8717
- var _this6 = this;
8566
+ var _this7 = this;
8718
8567
 
8719
8568
  var where = void 0;
8720
8569
  var first = void 0;
@@ -8744,28 +8593,28 @@ var mainvue_type_script_lang_js_components, _watch;
8744
8593
  params: reqData,
8745
8594
  data: reqData
8746
8595
  }).then(function (res) {
8747
- _this6.tableLoading = false;
8596
+ _this7.tableLoading = false;
8748
8597
  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);
8598
+ _this7.$refs.oaTable && _this7.$refs.oaTable.resetScroll && _this7.$refs.oaTable.resetScroll(0, 0);
8599
+ var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
8600
+ _this7.list = results.data || results.records || results.list || [];
8601
+ _this7.config.totalCount = results.count || results.total || results.totalCount;
8602
+ _this7.checked && _this7.$nextTick(function () {
8603
+ _this7.checkSelect(_this7.checked);
8755
8604
  });
8756
8605
  } else {
8757
- _this6.list = [];
8606
+ _this7.list = [];
8758
8607
  //this.tableHeight = false;
8759
8608
  var msg = res.msg || '系统错误,请联系管理员!';
8760
- _this6.$message.error(msg);
8609
+ _this7.$message.error(msg);
8761
8610
  }
8762
- _this6.$emit('success', res);
8611
+ _this7.$emit('success', res);
8763
8612
  }).catch(function (err) {
8764
8613
  //this.tableHeight = false;
8765
8614
  if (err.message && err.message !== 'canceled') {
8766
- _this6.$message.error(err.message);
8615
+ _this7.$message.error(err.message);
8767
8616
  }
8768
- _this6.tableLoading = false;
8617
+ _this7.tableLoading = false;
8769
8618
  });
8770
8619
  },
8771
8620
  selectionChange: function selectionChange(data) {
@@ -8810,7 +8659,7 @@ var mainvue_type_script_lang_js_components, _watch;
8810
8659
  this.$emit('change', data, this.datas);
8811
8660
  },
8812
8661
  handleAjax: function handleAjax(handle, row) {
8813
- var _this7 = this;
8662
+ var _this8 = this;
8814
8663
 
8815
8664
  this.changeLoading(true, handle.text + '\u4E2D...');
8816
8665
  var params = handle.param || {};
@@ -8866,9 +8715,9 @@ var mainvue_type_script_lang_js_components, _watch;
8866
8715
  method: handle.method,
8867
8716
  format: handle.format
8868
8717
  }).then(function (res) {
8869
- _this7.changeLoading(false);
8718
+ _this8.changeLoading(false);
8870
8719
  if (res.rCode === 0) {
8871
- _this7.$message({
8720
+ _this8.$message({
8872
8721
  message: handle.text + '\u6210\u529F',
8873
8722
  duration: 2000,
8874
8723
  type: 'success',
@@ -8876,17 +8725,17 @@ var mainvue_type_script_lang_js_components, _watch;
8876
8725
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
8877
8726
  var reload = handle.reload || true;
8878
8727
  if (reload) {
8879
- _this7.reload({}, first);
8728
+ _this8.reload({}, first);
8880
8729
  }
8881
8730
  }
8882
8731
  });
8883
8732
  } else {
8884
- _this7.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8733
+ _this8.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8885
8734
  }
8886
8735
  }).catch(function (err) {
8887
- _this7.changeLoading(false);
8736
+ _this8.changeLoading(false);
8888
8737
  if (err.message && err.message !== 'canceled') {
8889
- _this7.$message.error(err.message);
8738
+ _this8.$message.error(err.message);
8890
8739
  }
8891
8740
  });
8892
8741
  },
@@ -8911,7 +8760,7 @@ var mainvue_type_script_lang_js_components, _watch;
8911
8760
  return data_table_src_mainvue_type_script_lang_js_extends({}, obj, item);
8912
8761
  },
8913
8762
  handleClick: function handleClick(res) {
8914
- var _this8 = this;
8763
+ var _this9 = this;
8915
8764
 
8916
8765
  var row = res.row,
8917
8766
  handle = res.handle;
@@ -8947,7 +8796,7 @@ var mainvue_type_script_lang_js_components, _watch;
8947
8796
  cancelButtonText: '取消',
8948
8797
  type: 'warning'
8949
8798
  }).then(function () {
8950
- _this8.handleAjax(handle, rows);
8799
+ _this9.handleAjax(handle, rows);
8951
8800
  }).catch(function () {});
8952
8801
  } else {
8953
8802
  this.handleAjax(handle, rows);
@@ -9035,7 +8884,7 @@ var mainvue_type_script_lang_js_components, _watch;
9035
8884
  var type = ['selection', 'index', 'expand'];
9036
8885
  thead = thead.map(function (item) {
9037
8886
  return item.filter(function (ele) {
9038
- return !type.includes(ele.type) && ele.label !== text && !_this8.exportExcludeLabel.includes(ele.label);
8887
+ return !type.includes(ele.type) && ele.label !== text && !_this9.exportExcludeLabel.includes(ele.label);
9039
8888
  });
9040
8889
  });
9041
8890
  utils_util["a" /* default */].exportXls({
@@ -9141,47 +8990,46 @@ var mainvue_type_script_lang_js_components, _watch;
9141
8990
  }
9142
8991
  },
9143
8992
  resetHeight: function resetHeight(warn) {
9144
- var _this9 = this;
8993
+ var _this10 = this;
9145
8994
 
9146
8995
  this.$nextTick(function () {
9147
- if (_this9.full && !_this9.height && !_this9.maxHeight) {
9148
- var height = _this9.$el.parentNode.offsetHeight;
8996
+ if (_this10.full && !_this10.height && !_this10.maxHeight) {
8997
+ var height = _this10.$el.parentNode.offsetHeight;
9149
8998
  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) {
8999
+ height = parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'height', '%'), 10);
9000
+ 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);
9001
+ for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
9002
+ var ele = _this10.$el.parentNode.childNodes[i];
9003
+ if (ele !== _this10.$el && ele.offsetHeight !== undefined) {
9155
9004
  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
9005
  }
9157
9006
  }
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');
9007
+ height -= _this10.showToolbar ? 45 : 0;
9008
+ height -= _this10.page === false ? 0 : 46;
9009
+ height -= _this10.title ? _this10.$refs.title.offsetHeight : 0;
9010
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-top'), 10);
9011
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-bottom'), 10);
9012
+ var emptyText = _this10.$refs.esTableContent.querySelector('.el-table__empty-text');
9164
9013
  var eht = 0;
9165
9014
  if (emptyText) {
9166
9015
  eht = emptyText.offsetHeight;
9167
- var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
9016
+ var thead = _this10.$refs.esTableContent.querySelector('.el-table__header');
9168
9017
  thead && (eht += thead.offsetHeight);
9169
9018
  }
9170
9019
  if (height > 1 && height - eht > 1) {
9171
- _this9.tableHeight = height;
9020
+ _this10.tableHeight = height;
9172
9021
  } else {
9173
- console.warn(_this9.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9022
+ console.warn(_this10.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9174
9023
  }
9175
9024
  } else if (!warn) {
9176
9025
  setTimeout(function () {
9177
- _this9.resetHeight(true);
9026
+ _this10.resetHeight(true);
9178
9027
  }, 1000);
9179
9028
  }
9180
9029
  }
9181
9030
  });
9182
9031
  },
9183
9032
  validate: function validate(callback) {
9184
- console.log(this);
9185
9033
  if (this.form) {
9186
9034
  var form = this.elForm || this.$children[0];
9187
9035
  form.validate(function (valid) {
@@ -9205,31 +9053,31 @@ var mainvue_type_script_lang_js_components, _watch;
9205
9053
  this.$emit('sort-change', res);
9206
9054
  },
9207
9055
  mergeThead: function mergeThead(res) {
9208
- var _this10 = this;
9056
+ var _this11 = this;
9209
9057
 
9210
9058
  this.theadData = res;
9211
9059
  this.icon = true;
9212
9060
  setTimeout(function () {
9213
- _this10.show = true;
9061
+ _this11.show = true;
9214
9062
  }, 100);
9215
9063
  },
9216
9064
  setOptions: function setOptions(val, sysCode) {
9217
9065
  this.$set(this.options, sysCode, val);
9218
9066
  },
9219
9067
  bindEventBus: function bindEventBus() {
9220
- var _this11 = this;
9068
+ var _this12 = this;
9221
9069
 
9222
9070
  this.sysCodes.forEach(function (item) {
9223
9071
  bus.$on(item, function (val) {
9224
- _this11.setOptions(val, item);
9072
+ _this12.setOptions(val, item);
9225
9073
  });
9226
9074
  });
9227
9075
  },
9228
9076
  unbindEventBus: function unbindEventBus() {
9229
- var _this12 = this;
9077
+ var _this13 = this;
9230
9078
 
9231
9079
  this.sysCodes.forEach(function (item) {
9232
- bus.$off(item, _this12.setOptions);
9080
+ bus.$off(item, _this13.setOptions);
9233
9081
  });
9234
9082
  }
9235
9083
  }
@@ -9246,8 +9094,8 @@ var mainvue_type_script_lang_js_components, _watch;
9246
9094
 
9247
9095
  var data_table_src_main_component = normalizeComponent(
9248
9096
  packages_data_table_src_mainvue_type_script_lang_js_,
9249
- mainvue_type_template_id_05f3b637_render,
9250
- mainvue_type_template_id_05f3b637_staticRenderFns,
9097
+ mainvue_type_template_id_a455250e_render,
9098
+ mainvue_type_template_id_a455250e_staticRenderFns,
9251
9099
  false,
9252
9100
  null,
9253
9101
  null,
@@ -44707,6 +44555,211 @@ mainvue_type_template_id_3f931032_render._withStripped = true
44707
44555
 
44708
44556
  // CONCATENATED MODULE: ./packages/layout/src/main.vue?vue&type=template&id=3f931032&
44709
44557
 
44558
+ // 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&
44559
+ var itemvue_type_template_id_124bb300_render = function () {
44560
+ var _vm = this
44561
+ var _h = _vm.$createElement
44562
+ var _c = _vm._self._c || _h
44563
+ return _c(
44564
+ "div",
44565
+ {
44566
+ ref: "move",
44567
+ staticClass: "es-layout-item",
44568
+ class: _vm.defaultClasss,
44569
+ style: _vm.defaultaStyle,
44570
+ },
44571
+ [
44572
+ _c("es-card"),
44573
+ _c("div", { staticClass: "es-layout-resizable-width" }),
44574
+ _c("div", { staticClass: "es-layout-resizable-height" }),
44575
+ _c("div", { staticClass: "es-layout-resizable" }),
44576
+ ],
44577
+ 1
44578
+ )
44579
+ }
44580
+ var itemvue_type_template_id_124bb300_staticRenderFns = []
44581
+ itemvue_type_template_id_124bb300_render._withStripped = true
44582
+
44583
+
44584
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
44585
+
44586
+ // EXTERNAL MODULE: external "interactjs"
44587
+ var external_interactjs_ = __webpack_require__(4);
44588
+ var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
44589
+
44590
+ // 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&
44591
+ //
44592
+ //
44593
+ //
44594
+ //
44595
+ //
44596
+ //
44597
+ //
44598
+ //
44599
+ //
44600
+ //
44601
+ //
44602
+ //
44603
+ //
44604
+
44605
+ // import '@interactjs/auto-start';
44606
+ // import '@interactjs/auto-scroll';
44607
+ // import '@interactjs/actions/drag';
44608
+ // import '@interactjs/actions/resize';
44609
+ // import '@interactjs/modifiers';
44610
+ // import '@interactjs/dev-tools';
44611
+
44612
+ /* harmony default export */ var itemvue_type_script_lang_js_ = ({
44613
+ name: 'LayoutItem',
44614
+ components: {},
44615
+ props: {
44616
+ redact: {
44617
+ type: Boolean,
44618
+ default: true
44619
+ },
44620
+ width: {
44621
+ type: String,
44622
+ default: '100%'
44623
+ },
44624
+ height: {
44625
+ type: String,
44626
+ default: '100px'
44627
+ },
44628
+ left: String,
44629
+ top: String,
44630
+ index: Number
44631
+ },
44632
+ computed: {
44633
+ defaultClasss: function defaultClasss() {
44634
+ return {
44635
+ 'es-dragging': this.dragging
44636
+ };
44637
+ },
44638
+ defaultaStyle: function defaultaStyle() {
44639
+ return {
44640
+ width: this.width,
44641
+ height: this.height,
44642
+ left: this.left,
44643
+ top: this.top
44644
+ };
44645
+ },
44646
+ cardStyle: function cardStyle() {
44647
+ return {
44648
+ width: this.width,
44649
+ height: this.height
44650
+ };
44651
+ }
44652
+ },
44653
+ watch: {},
44654
+ data: function data() {
44655
+ return {
44656
+ position: { x: 0, y: 0 },
44657
+ interaction: null,
44658
+ dragging: false
44659
+ };
44660
+ },
44661
+ created: function created() {
44662
+ this.position = {
44663
+ x: parseInt(this.left) || 0,
44664
+ y: parseInt(this.top) || 0
44665
+ };
44666
+ console.log(this.position);
44667
+ },
44668
+ mounted: function mounted() {
44669
+ console.log(external_interactjs_default.a.feedback);
44670
+ this.interaction = external_interactjs_default()(this.$refs.move);
44671
+ this.interaction.draggable({
44672
+ // modifiers: [
44673
+ // interact.modifiers.restrictRect({
44674
+ // restriction: 'parent',
44675
+ // endOnly: false
44676
+ // })
44677
+ // ],
44678
+ // listeners: {
44679
+ // start: (event) => {
44680
+ // this.dragging = true;
44681
+ // console.log(event.type, event.target, 111);
44682
+ // },
44683
+ // move: (event) => {
44684
+ // this.position.x += event.dx;
44685
+ // this.position.y += event.dy;
44686
+ // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
44687
+ // },
44688
+ // end: (event) => {
44689
+ // this.dragging = false;
44690
+ // console.log(event.type, event.target, 222);
44691
+ // }
44692
+ // }
44693
+ inertia: true,
44694
+ //autoScroll: { container: '.container' },
44695
+ listeners: [external_interactjs_default.a.feedback.pointers()],
44696
+ modifiers: [external_interactjs_default.a.modifiers.restrict({
44697
+ restriction: 'html',
44698
+ elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
44699
+ }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
44700
+ });
44701
+ this.interaction.resizable({
44702
+ modifiers: [
44703
+ // keep the edges inside the parent
44704
+ external_interactjs_default.a.modifiers.restrictEdges({
44705
+ outer: 'parent'
44706
+ }),
44707
+
44708
+ // minimum size
44709
+ external_interactjs_default.a.modifiers.restrictSize({
44710
+ min: { width: 100, height: 100 }
44711
+ })],
44712
+
44713
+ //inertia: true,
44714
+ edges: { top: true, left: true, bottom: true, right: true },
44715
+ listeners: {
44716
+ move: function move(event) {
44717
+ console.log(1212);
44718
+ var _event$target$dataset = event.target.dataset,
44719
+ x = _event$target$dataset.x,
44720
+ y = _event$target$dataset.y;
44721
+
44722
+
44723
+ x = (parseFloat(x) || 0) + event.deltaRect.left;
44724
+ y = (parseFloat(y) || 0) + event.deltaRect.top;
44725
+
44726
+ Object.assign(event.target.style, {
44727
+ width: event.rect.width + 'px',
44728
+ height: event.rect.height + 'px',
44729
+ transform: 'translate(' + x + 'px, ' + y + 'px)'
44730
+ });
44731
+
44732
+ Object.assign(event.target.dataset, { x: x, y: y });
44733
+ }
44734
+ }
44735
+ });
44736
+ },
44737
+
44738
+ methods: {},
44739
+ beforeDestroy: function beforeDestroy() {}
44740
+ });
44741
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
44742
+ /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
44743
+ // CONCATENATED MODULE: ./packages/layout/src/item.vue
44744
+
44745
+
44746
+
44747
+
44748
+
44749
+ /* normalize component */
44750
+
44751
+ var item_component = normalizeComponent(
44752
+ src_itemvue_type_script_lang_js_,
44753
+ itemvue_type_template_id_124bb300_render,
44754
+ itemvue_type_template_id_124bb300_staticRenderFns,
44755
+ false,
44756
+ null,
44757
+ null,
44758
+ null
44759
+
44760
+ )
44761
+
44762
+ /* harmony default export */ var src_item = (item_component.exports);
44710
44763
  // 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&
44711
44764
  //
44712
44765
  //
@@ -47653,8 +47706,8 @@ login_src_main.install = function (Vue) {
47653
47706
  };
47654
47707
 
47655
47708
  /* harmony default export */ var login = (login_src_main);
47656
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=ca091d5e&
47657
- var mainvue_type_template_id_ca091d5e_render = function () {
47709
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=f53c488c&
47710
+ var mainvue_type_template_id_f53c488c_render = function () {
47658
47711
  var _vm = this
47659
47712
  var _h = _vm.$createElement
47660
47713
  var _c = _vm._self._c || _h
@@ -48079,14 +48132,14 @@ var mainvue_type_template_id_ca091d5e_render = function () {
48079
48132
  1
48080
48133
  )
48081
48134
  }
48082
- var mainvue_type_template_id_ca091d5e_staticRenderFns = []
48083
- mainvue_type_template_id_ca091d5e_render._withStripped = true
48135
+ var mainvue_type_template_id_f53c488c_staticRenderFns = []
48136
+ mainvue_type_template_id_f53c488c_render._withStripped = true
48084
48137
 
48085
48138
 
48086
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=ca091d5e&
48139
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=f53c488c&
48087
48140
 
48088
- // 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&
48089
- var userinfovue_type_template_id_799780ee_render = function () {
48141
+ // 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=751fb998&
48142
+ var userinfovue_type_template_id_751fb998_render = function () {
48090
48143
  var _vm = this
48091
48144
  var _h = _vm.$createElement
48092
48145
  var _c = _vm._self._c || _h
@@ -48102,11 +48155,11 @@ var userinfovue_type_template_id_799780ee_render = function () {
48102
48155
  2
48103
48156
  )
48104
48157
  }
48105
- var userinfovue_type_template_id_799780ee_staticRenderFns = []
48106
- userinfovue_type_template_id_799780ee_render._withStripped = true
48158
+ var userinfovue_type_template_id_751fb998_staticRenderFns = []
48159
+ userinfovue_type_template_id_751fb998_render._withStripped = true
48107
48160
 
48108
48161
 
48109
- // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=799780ee&
48162
+ // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=751fb998&
48110
48163
 
48111
48164
  // 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&
48112
48165
  //
@@ -48383,6 +48436,7 @@ userinfovue_type_template_id_799780ee_render._withStripped = true
48383
48436
  key: 'userId',
48384
48437
  value: value.value
48385
48438
  });
48439
+ utils_util["a" /* default */].removeStorage('mainConfig');
48386
48440
  _this3.$message({
48387
48441
  message: res.msg,
48388
48442
  type: 'success',
@@ -48521,8 +48575,8 @@ userinfovue_type_template_id_799780ee_render._withStripped = true
48521
48575
 
48522
48576
  var userinfo_component = normalizeComponent(
48523
48577
  src_userinfovue_type_script_lang_js_,
48524
- userinfovue_type_template_id_799780ee_render,
48525
- userinfovue_type_template_id_799780ee_staticRenderFns,
48578
+ userinfovue_type_template_id_751fb998_render,
48579
+ userinfovue_type_template_id_751fb998_staticRenderFns,
48526
48580
  false,
48527
48581
  null,
48528
48582
  null,
@@ -50751,6 +50805,9 @@ var log = utils_util["a" /* default */].getParams('console');
50751
50805
  if (i === 'subsystemName') {
50752
50806
  document.title = results[i];
50753
50807
  }
50808
+ if (i === 'loginPage' && results[i]) {
50809
+ utils_util["a" /* default */].setStorage('loginPage', results[i]);
50810
+ }
50754
50811
  if (i === 'sysLogoIco' && results[i]) {
50755
50812
  sessionStorage.setItem('sysLogoIco', results[i]);
50756
50813
  utils_util["a" /* default */].setFavicon(results[i]);
@@ -50762,6 +50819,10 @@ var log = utils_util["a" /* default */].getParams('console');
50762
50819
  utils_util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
50763
50820
  utils_util["a" /* default */].watermark(results[i].webPageWatermark);
50764
50821
  }
50822
+
50823
+ if (i === 'subsystemExtend' && results[i].loginPage) {
50824
+ utils_util["a" /* default */].setStorage('loginPage', results[i].loginPage);
50825
+ }
50765
50826
  utils_store.set(i, results[i]);
50766
50827
  }
50767
50828
  this.userModel = results.userModel;
@@ -51849,8 +51910,8 @@ var log = utils_util["a" /* default */].getParams('console');
51849
51910
 
51850
51911
  var main_src_main_component = normalizeComponent(
51851
51912
  packages_main_src_mainvue_type_script_lang_js_,
51852
- mainvue_type_template_id_ca091d5e_render,
51853
- mainvue_type_template_id_ca091d5e_staticRenderFns,
51913
+ mainvue_type_template_id_f53c488c_render,
51914
+ mainvue_type_template_id_f53c488c_staticRenderFns,
51854
51915
  false,
51855
51916
  null,
51856
51917
  null,
@@ -56448,8 +56509,8 @@ select_ganged_src_main.install = function (Vue) {
56448
56509
  };
56449
56510
 
56450
56511
  /* harmony default export */ var select_ganged = (select_ganged_src_main);
56451
- // 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=4a397202&
56452
- var mainvue_type_template_id_4a397202_render = function () {
56512
+ // 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&
56513
+ var mainvue_type_template_id_2098c784_render = function () {
56453
56514
  var _vm = this
56454
56515
  var _h = _vm.$createElement
56455
56516
  var _c = _vm._self._c || _h
@@ -56673,21 +56734,6 @@ var mainvue_type_template_id_4a397202_render = function () {
56673
56734
  dblclick: function ($event) {
56674
56735
  return _vm.openDialog($event)
56675
56736
  },
56676
- keyup: function ($event) {
56677
- if (
56678
- !("button" in $event) &&
56679
- _vm._k(
56680
- $event.keyCode,
56681
- "enter",
56682
- 13,
56683
- $event.key,
56684
- "Enter"
56685
- )
56686
- ) {
56687
- return null
56688
- }
56689
- return _vm.handleSearch($event)
56690
- },
56691
56737
  },
56692
56738
  model: {
56693
56739
  value: _vm.words,
@@ -56737,6 +56783,7 @@ var mainvue_type_template_id_4a397202_render = function () {
56737
56783
  readonly: "",
56738
56784
  name: _vm.name,
56739
56785
  type: "text",
56786
+ wqwq: "",
56740
56787
  },
56741
56788
  model: {
56742
56789
  value: _vm.selectedLabel,
@@ -56775,21 +56822,6 @@ var mainvue_type_template_id_4a397202_render = function () {
56775
56822
  dblclick: function ($event) {
56776
56823
  return _vm.openDialog($event)
56777
56824
  },
56778
- keyup: function ($event) {
56779
- if (
56780
- !("button" in $event) &&
56781
- _vm._k(
56782
- $event.keyCode,
56783
- "enter",
56784
- 13,
56785
- $event.key,
56786
- "Enter"
56787
- )
56788
- ) {
56789
- return null
56790
- }
56791
- return _vm.handleSearch($event)
56792
- },
56793
56825
  },
56794
56826
  model: {
56795
56827
  value: _vm.selectedLabel,
@@ -56962,16 +56994,19 @@ var mainvue_type_template_id_4a397202_render = function () {
56962
56994
  2
56963
56995
  )
56964
56996
  }
56965
- var mainvue_type_template_id_4a397202_staticRenderFns = []
56966
- mainvue_type_template_id_4a397202_render._withStripped = true
56997
+ var mainvue_type_template_id_2098c784_staticRenderFns = []
56998
+ mainvue_type_template_id_2098c784_render._withStripped = true
56967
56999
 
56968
57000
 
56969
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=4a397202&
57001
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=2098c784&
56970
57002
 
56971
57003
  // EXTERNAL MODULE: external "eoss-element/src/utils/clickoutside"
56972
57004
  var clickoutside_ = __webpack_require__(17);
56973
57005
  var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
56974
57006
 
57007
+ // EXTERNAL MODULE: external "eoss-element/src/utils/util"
57008
+ var util_ = __webpack_require__(24);
57009
+
56975
57010
  // 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&
56976
57011
  //
56977
57012
  //
@@ -57181,7 +57216,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57181
57216
  //
57182
57217
  //
57183
57218
  //
57184
- //
57219
+
57185
57220
 
57186
57221
 
57187
57222
 
@@ -57301,6 +57336,10 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57301
57336
  noMatchText: {
57302
57337
  type: String,
57303
57338
  default: '无匹配数据'
57339
+ },
57340
+ emptySerach: {
57341
+ type: Boolean,
57342
+ default: false
57304
57343
  }
57305
57344
  },
57306
57345
  data: function data() {
@@ -57315,7 +57354,8 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57315
57354
  options: '',
57316
57355
  show: false,
57317
57356
  focus: false,
57318
- reference: undefined
57357
+ reference: undefined,
57358
+ timer: null
57319
57359
  };
57320
57360
  },
57321
57361
 
@@ -57363,7 +57403,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57363
57403
  if (this.selected && this.selected.length) {
57364
57404
  return '';
57365
57405
  } else if (this.filterable) {
57366
- return '输入关键字按回车搜索';
57406
+ return '输入关键字搜索';
57367
57407
  } else {
57368
57408
  return this.placeholder;
57369
57409
  }
@@ -57391,6 +57431,12 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57391
57431
  this.resetInputHeight();
57392
57432
  }
57393
57433
  }
57434
+ },
57435
+ words: function words(val) {
57436
+ if (this.emptySerach || val !== '') {
57437
+ clearTimeout(this.timer);
57438
+ this.timer = setTimeout(this.handleSearch, 500);
57439
+ }
57394
57440
  }
57395
57441
  },
57396
57442
  created: function created() {
@@ -57575,6 +57621,9 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57575
57621
  }
57576
57622
  return tag + (res[this.labelKey] ? res[this.labelKey] : res.label || res[this.valueKey]);
57577
57623
  }
57624
+ },
57625
+ beforeDestroy: function beforeDestroy() {
57626
+ this.$el.removeEventListener('keyup', this.doSearch);
57578
57627
  }
57579
57628
  });
57580
57629
  // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=script&lang=js&
@@ -57589,8 +57638,8 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
57589
57638
 
57590
57639
  var selector_src_main_component = normalizeComponent(
57591
57640
  packages_selector_src_mainvue_type_script_lang_js_,
57592
- mainvue_type_template_id_4a397202_render,
57593
- mainvue_type_template_id_4a397202_staticRenderFns,
57641
+ mainvue_type_template_id_2098c784_render,
57642
+ mainvue_type_template_id_2098c784_staticRenderFns,
57594
57643
  false,
57595
57644
  null,
57596
57645
  null,
@@ -57607,8 +57656,8 @@ selector_src_main.install = function (Vue) {
57607
57656
  };
57608
57657
 
57609
57658
  /* harmony default export */ var selector = (selector_src_main);
57610
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=3b8fb8f5&
57611
- var mainvue_type_template_id_3b8fb8f5_render = function () {
57659
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=6d73abc3&
57660
+ var mainvue_type_template_id_6d73abc3_render = function () {
57612
57661
  var _vm = this
57613
57662
  var _h = _vm.$createElement
57614
57663
  var _c = _vm._self._c || _h
@@ -57650,130 +57699,139 @@ var mainvue_type_template_id_3b8fb8f5_render = function () {
57650
57699
  "div",
57651
57700
  { staticClass: "es-selector-selection" },
57652
57701
  [
57653
- _c(
57654
- "el-form",
57655
- {
57656
- ref: "form",
57657
- refInFor: true,
57658
- staticClass: "es-selector-selection-toolbar",
57659
- attrs: { inline: true, model: _vm.form },
57660
- nativeOn: {
57661
- submit: function ($event) {
57662
- $event.preventDefault()
57702
+ _vm.multiple || _vm.isShowTree
57703
+ ? _c(
57704
+ "el-form",
57705
+ {
57706
+ ref: "form",
57707
+ refInFor: true,
57708
+ staticClass: "es-selector-selection-toolbar",
57709
+ attrs: { inline: true, model: _vm.form },
57710
+ nativeOn: {
57711
+ submit: function ($event) {
57712
+ $event.preventDefault()
57713
+ },
57714
+ },
57663
57715
  },
57664
- },
57665
- },
57666
- [
57667
- _c(
57668
- "el-form-item",
57669
57716
  [
57670
- _c(
57671
- "el-checkbox",
57672
- {
57673
- directives: [
57674
- {
57675
- name: "show",
57676
- rawName: "v-show",
57677
- value: _vm.multiple && !_vm.max,
57678
- expression: "multiple && !max",
57679
- },
57680
- ],
57681
- on: { change: _vm.handleCheckAll },
57682
- model: {
57683
- value: _vm.checkAll,
57684
- callback: function ($$v) {
57685
- _vm.checkAll = $$v
57686
- },
57687
- expression: "checkAll",
57688
- },
57689
- },
57690
- [_vm._v("\n 全选\n ")]
57691
- ),
57692
- ],
57693
- 1
57694
- ),
57695
- _c(
57696
- "div",
57697
- { staticClass: "es-float-right" },
57698
- [
57699
- _vm.showSelect && _vm.activeName == "enterprise"
57700
- ? _c(
57701
- "el-form-item",
57702
- [
57703
- _c(
57704
- "es-select",
57705
- {
57706
- attrs: { placeholder: "请选择" },
57707
- on: { change: _vm.handleSelect },
57708
- model: {
57709
- value: _vm.selectValue,
57710
- callback: function ($$v) {
57711
- _vm.selectValue = $$v
57712
- },
57713
- expression: "selectValue",
57714
- },
57715
- },
57716
- _vm._l(
57717
- _vm.filtrate.options,
57718
- function (item) {
57719
- return _c("el-option", {
57720
- key: item.value,
57721
- attrs: {
57722
- label: item.name,
57723
- value: item.value,
57724
- },
57725
- })
57726
- }
57727
- ),
57728
- 1
57729
- ),
57730
- ],
57731
- 1
57732
- )
57733
- : _vm._e(),
57734
57717
  _c(
57735
57718
  "el-form-item",
57736
57719
  [
57737
57720
  _c(
57738
- "el-input",
57721
+ "el-checkbox",
57739
57722
  {
57740
- attrs: { placeholder: "请输入搜索关键字" },
57741
- on: { change: _vm.handleChangeSearch },
57723
+ directives: [
57724
+ {
57725
+ name: "show",
57726
+ rawName: "v-show",
57727
+ value: _vm.multiple && !_vm.max,
57728
+ expression: "multiple && !max",
57729
+ },
57730
+ ],
57731
+ on: { change: _vm.handleCheckAll },
57742
57732
  model: {
57743
- value: _vm.search,
57733
+ value: _vm.checkAll,
57744
57734
  callback: function ($$v) {
57745
- _vm.search = $$v
57735
+ _vm.checkAll = $$v
57746
57736
  },
57747
- expression: "search",
57737
+ expression: "checkAll",
57748
57738
  },
57749
57739
  },
57740
+ [_vm._v("\n 全选\n ")]
57741
+ ),
57742
+ ],
57743
+ 1
57744
+ ),
57745
+ _vm.isShowTree
57746
+ ? _c(
57747
+ "div",
57748
+ { staticClass: "es-float-right" },
57750
57749
  [
57750
+ _vm.showSelect &&
57751
+ _vm.activeName == "enterprise"
57752
+ ? _c(
57753
+ "el-form-item",
57754
+ [
57755
+ _c(
57756
+ "es-select",
57757
+ {
57758
+ attrs: { placeholder: "请选择" },
57759
+ on: { change: _vm.handleSelect },
57760
+ model: {
57761
+ value: _vm.selectValue,
57762
+ callback: function ($$v) {
57763
+ _vm.selectValue = $$v
57764
+ },
57765
+ expression: "selectValue",
57766
+ },
57767
+ },
57768
+ _vm._l(
57769
+ _vm.filtrate.options,
57770
+ function (item) {
57771
+ return _c("el-option", {
57772
+ key: item.value,
57773
+ attrs: {
57774
+ label: item.name,
57775
+ value: item.value,
57776
+ },
57777
+ })
57778
+ }
57779
+ ),
57780
+ 1
57781
+ ),
57782
+ ],
57783
+ 1
57784
+ )
57785
+ : _vm._e(),
57751
57786
  _c(
57752
- "template",
57753
- { slot: "append" },
57787
+ "el-form-item",
57754
57788
  [
57755
- _c("el-button", {
57756
- attrs: {
57757
- icon: "el-icon-search",
57758
- type: "primary",
57789
+ _c(
57790
+ "el-input",
57791
+ {
57792
+ attrs: {
57793
+ placeholder: "请输入搜索关键字",
57794
+ },
57795
+ on: {
57796
+ change: _vm.handleChangeSearch,
57797
+ },
57798
+ model: {
57799
+ value: _vm.search,
57800
+ callback: function ($$v) {
57801
+ _vm.search = $$v
57802
+ },
57803
+ expression: "search",
57804
+ },
57759
57805
  },
57760
- on: { click: _vm.handleSearch },
57761
- }),
57806
+ [
57807
+ _c(
57808
+ "template",
57809
+ { slot: "append" },
57810
+ [
57811
+ _c("el-button", {
57812
+ attrs: {
57813
+ icon: "el-icon-search",
57814
+ type: "primary",
57815
+ },
57816
+ on: { click: _vm.handleSearch },
57817
+ }),
57818
+ ],
57819
+ 1
57820
+ ),
57821
+ ],
57822
+ 2
57823
+ ),
57762
57824
  ],
57763
57825
  1
57764
57826
  ),
57765
57827
  ],
57766
- 2
57767
- ),
57768
- ],
57769
- 1
57770
- ),
57828
+ 1
57829
+ )
57830
+ : _vm._e(),
57771
57831
  ],
57772
57832
  1
57773
- ),
57774
- ],
57775
- 1
57776
- ),
57833
+ )
57834
+ : _vm._e(),
57777
57835
  _c("selection", {
57778
57836
  attrs: {
57779
57837
  data: _vm.checkboxs,
@@ -57844,11 +57902,11 @@ var mainvue_type_template_id_3b8fb8f5_render = function () {
57844
57902
  1
57845
57903
  )
57846
57904
  }
57847
- var mainvue_type_template_id_3b8fb8f5_staticRenderFns = []
57848
- mainvue_type_template_id_3b8fb8f5_render._withStripped = true
57905
+ var mainvue_type_template_id_6d73abc3_staticRenderFns = []
57906
+ mainvue_type_template_id_6d73abc3_render._withStripped = true
57849
57907
 
57850
57908
 
57851
- // CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=3b8fb8f5&
57909
+ // CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=6d73abc3&
57852
57910
 
57853
57911
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/tree.vue?vue&type=template&id=24ad732a&
57854
57912
  var treevue_type_template_id_24ad732a_render = function () {
@@ -58564,6 +58622,7 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
58564
58622
  //
58565
58623
  //
58566
58624
  //
58625
+ //
58567
58626
 
58568
58627
 
58569
58628
 
@@ -59393,8 +59452,8 @@ var selector_panel_src_mainvue_type_script_lang_js_typeof = typeof Symbol === "f
59393
59452
 
59394
59453
  var selector_panel_src_main_component = normalizeComponent(
59395
59454
  packages_selector_panel_src_mainvue_type_script_lang_js_,
59396
- mainvue_type_template_id_3b8fb8f5_render,
59397
- mainvue_type_template_id_3b8fb8f5_staticRenderFns,
59455
+ mainvue_type_template_id_6d73abc3_render,
59456
+ mainvue_type_template_id_6d73abc3_staticRenderFns,
59398
59457
  false,
59399
59458
  null,
59400
59459
  null,
@@ -71198,7 +71257,7 @@ if (typeof window !== 'undefined' && window.Vue) {
71198
71257
  }
71199
71258
 
71200
71259
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
71201
- version: '0.5.27',
71260
+ version: '0.5.29',
71202
71261
  install: install,
71203
71262
  Button: packages_button,
71204
71263
  ButtonGroup: button_group,