eoss-ui 0.5.28 → 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.
package/lib/data-table.js CHANGED
@@ -3602,7 +3602,7 @@ module.exports = require("babel-runtime/regenerator");
3602
3602
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3603
3603
 
3604
3604
  "use strict";
3605
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3605
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
3606
3606
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3607
3607
 
3608
3608
 
@@ -3612,231 +3612,12 @@ module.exports = require("babel-runtime/regenerator");
3612
3612
  /* 15 */
3613
3613
  /***/ (function(module, exports) {
3614
3614
 
3615
- module.exports = require("interactjs");
3616
-
3617
- /***/ }),
3618
- /* 16 */
3619
- /***/ (function(module, exports) {
3620
-
3621
3615
  module.exports = require("vue");
3622
3616
 
3623
3617
  /***/ }),
3618
+ /* 16 */,
3624
3619
  /* 17 */,
3625
- /* 18 */
3626
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3627
-
3628
- "use strict";
3629
-
3630
- // 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&
3631
- var render = function () {
3632
- var _vm = this
3633
- var _h = _vm.$createElement
3634
- var _c = _vm._self._c || _h
3635
- return _c(
3636
- "div",
3637
- {
3638
- ref: "move",
3639
- staticClass: "es-layout-item",
3640
- class: _vm.defaultClasss,
3641
- style: _vm.defaultaStyle,
3642
- },
3643
- [
3644
- _c("es-card"),
3645
- _c("div", { staticClass: "es-layout-resizable-width" }),
3646
- _c("div", { staticClass: "es-layout-resizable-height" }),
3647
- _c("div", { staticClass: "es-layout-resizable" }),
3648
- ],
3649
- 1
3650
- )
3651
- }
3652
- var staticRenderFns = []
3653
- render._withStripped = true
3654
-
3655
-
3656
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=template&id=124bb300&
3657
-
3658
- // EXTERNAL MODULE: external "interactjs"
3659
- var external_interactjs_ = __webpack_require__(15);
3660
- var external_interactjs_default = /*#__PURE__*/__webpack_require__.n(external_interactjs_);
3661
-
3662
- // 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&
3663
- //
3664
- //
3665
- //
3666
- //
3667
- //
3668
- //
3669
- //
3670
- //
3671
- //
3672
- //
3673
- //
3674
- //
3675
- //
3676
-
3677
- // import '@interactjs/auto-start';
3678
- // import '@interactjs/auto-scroll';
3679
- // import '@interactjs/actions/drag';
3680
- // import '@interactjs/actions/resize';
3681
- // import '@interactjs/modifiers';
3682
- // import '@interactjs/dev-tools';
3683
-
3684
- /* harmony default export */ var itemvue_type_script_lang_js_ = ({
3685
- name: 'LayoutItem',
3686
- components: {},
3687
- props: {
3688
- redact: {
3689
- type: Boolean,
3690
- default: true
3691
- },
3692
- width: {
3693
- type: String,
3694
- default: '100%'
3695
- },
3696
- height: {
3697
- type: String,
3698
- default: '100px'
3699
- },
3700
- left: String,
3701
- top: String,
3702
- index: Number
3703
- },
3704
- computed: {
3705
- defaultClasss: function defaultClasss() {
3706
- return {
3707
- 'es-dragging': this.dragging
3708
- };
3709
- },
3710
- defaultaStyle: function defaultaStyle() {
3711
- return {
3712
- width: this.width,
3713
- height: this.height,
3714
- left: this.left,
3715
- top: this.top
3716
- };
3717
- },
3718
- cardStyle: function cardStyle() {
3719
- return {
3720
- width: this.width,
3721
- height: this.height
3722
- };
3723
- }
3724
- },
3725
- watch: {},
3726
- data: function data() {
3727
- return {
3728
- position: { x: 0, y: 0 },
3729
- interaction: null,
3730
- dragging: false
3731
- };
3732
- },
3733
- created: function created() {
3734
- this.position = {
3735
- x: parseInt(this.left) || 0,
3736
- y: parseInt(this.top) || 0
3737
- };
3738
- console.log(this.position);
3739
- },
3740
- mounted: function mounted() {
3741
- console.log(external_interactjs_default.a.feedback);
3742
- this.interaction = external_interactjs_default()(this.$refs.move);
3743
- this.interaction.draggable({
3744
- // modifiers: [
3745
- // interact.modifiers.restrictRect({
3746
- // restriction: 'parent',
3747
- // endOnly: false
3748
- // })
3749
- // ],
3750
- // listeners: {
3751
- // start: (event) => {
3752
- // this.dragging = true;
3753
- // console.log(event.type, event.target, 111);
3754
- // },
3755
- // move: (event) => {
3756
- // this.position.x += event.dx;
3757
- // this.position.y += event.dy;
3758
- // event.target.style.transform = `translate(${this.position.x}px, ${this.position.y}px)`;
3759
- // },
3760
- // end: (event) => {
3761
- // this.dragging = false;
3762
- // console.log(event.type, event.target, 222);
3763
- // }
3764
- // }
3765
- inertia: true,
3766
- //autoScroll: { container: '.container' },
3767
- listeners: [external_interactjs_default.a.feedback.pointers()],
3768
- modifiers: [external_interactjs_default.a.modifiers.restrict({
3769
- restriction: 'html',
3770
- elementRect: { left: 0, top: 0, right: 1, bottom: 1 }
3771
- }), external_interactjs_default.a.modifiers.transform(), external_interactjs_default.a.modifiers.spring()]
3772
- });
3773
- this.interaction.resizable({
3774
- modifiers: [
3775
- // keep the edges inside the parent
3776
- external_interactjs_default.a.modifiers.restrictEdges({
3777
- outer: 'parent'
3778
- }),
3779
-
3780
- // minimum size
3781
- external_interactjs_default.a.modifiers.restrictSize({
3782
- min: { width: 100, height: 100 }
3783
- })],
3784
-
3785
- //inertia: true,
3786
- edges: { top: true, left: true, bottom: true, right: true },
3787
- listeners: {
3788
- move: function move(event) {
3789
- console.log(1212);
3790
- var _event$target$dataset = event.target.dataset,
3791
- x = _event$target$dataset.x,
3792
- y = _event$target$dataset.y;
3793
-
3794
-
3795
- x = (parseFloat(x) || 0) + event.deltaRect.left;
3796
- y = (parseFloat(y) || 0) + event.deltaRect.top;
3797
-
3798
- Object.assign(event.target.style, {
3799
- width: event.rect.width + 'px',
3800
- height: event.rect.height + 'px',
3801
- transform: 'translate(' + x + 'px, ' + y + 'px)'
3802
- });
3803
-
3804
- Object.assign(event.target.dataset, { x: x, y: y });
3805
- }
3806
- }
3807
- });
3808
- },
3809
-
3810
- methods: {},
3811
- beforeDestroy: function beforeDestroy() {}
3812
- });
3813
- // CONCATENATED MODULE: ./packages/layout/src/item.vue?vue&type=script&lang=js&
3814
- /* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
3815
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3816
- var componentNormalizer = __webpack_require__(3);
3817
-
3818
- // CONCATENATED MODULE: ./packages/layout/src/item.vue
3819
-
3820
-
3821
-
3822
-
3823
-
3824
- /* normalize component */
3825
-
3826
- var component = Object(componentNormalizer["a" /* default */])(
3827
- src_itemvue_type_script_lang_js_,
3828
- render,
3829
- staticRenderFns,
3830
- false,
3831
- null,
3832
- null,
3833
- null
3834
-
3835
- )
3836
-
3837
- /* harmony default export */ var item = __webpack_exports__["a"] = (component.exports);
3838
-
3839
- /***/ }),
3620
+ /* 18 */,
3840
3621
  /* 19 */,
3841
3622
  /* 20 */,
3842
3623
  /* 21 */,
@@ -3857,8 +3638,8 @@ var component = Object(componentNormalizer["a" /* default */])(
3857
3638
  // ESM COMPAT FLAG
3858
3639
  __webpack_require__.r(__webpack_exports__);
3859
3640
 
3860
- // 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&
3861
- var mainvue_type_template_id_4564aac4_render = function () {
3641
+ // 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&
3642
+ var mainvue_type_template_id_a455250e_render = function () {
3862
3643
  var _vm = this
3863
3644
  var _h = _vm.$createElement
3864
3645
  var _c = _vm._self._c || _h
@@ -4018,6 +3799,7 @@ var mainvue_type_template_id_4564aac4_render = function () {
4018
3799
  align: "center",
4019
3800
  label: "操作",
4020
3801
  fixed: "right",
3802
+ button: _vm.headButton,
4021
3803
  total: false,
4022
3804
  },
4023
3805
  scopedSlots: _vm._u([
@@ -4044,7 +3826,7 @@ var mainvue_type_template_id_4564aac4_render = function () {
4044
3826
  ]
4045
3827
  )
4046
3828
  : _vm._e(),
4047
- !scope.row.cantDelete
3829
+ !scope.row.cantDelete && !_vm.isLeast
4048
3830
  ? _c(
4049
3831
  "el-button",
4050
3832
  {
@@ -4107,10 +3889,10 @@ var mainvue_type_template_id_4564aac4_render = function () {
4107
3889
  )
4108
3890
  }
4109
3891
  var staticRenderFns = []
4110
- mainvue_type_template_id_4564aac4_render._withStripped = true
3892
+ mainvue_type_template_id_a455250e_render._withStripped = true
4111
3893
 
4112
3894
 
4113
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=4564aac4&
3895
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=a455250e&
4114
3896
 
4115
3897
  // EXTERNAL MODULE: ./src/config/api.js
4116
3898
  var api = __webpack_require__(1);
@@ -6060,9 +5842,6 @@ var bus = __webpack_require__(14);
6060
5842
  var external_qs_ = __webpack_require__(4);
6061
5843
  var external_qs_default = /*#__PURE__*/__webpack_require__.n(external_qs_);
6062
5844
 
6063
- // EXTERNAL MODULE: ./packages/layout/src/item.vue + 4 modules
6064
- var src_item = __webpack_require__(18);
6065
-
6066
5845
  // 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&
6067
5846
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
6068
5847
 
@@ -6207,7 +5986,7 @@ var mainvue_type_script_lang_js_components, _watch;
6207
5986
  //
6208
5987
  //
6209
5988
  //
6210
-
5989
+ //
6211
5990
 
6212
5991
 
6213
5992
 
@@ -6373,6 +6152,10 @@ var mainvue_type_script_lang_js_components, _watch;
6373
6152
  type: Boolean,
6374
6153
  default: false
6375
6154
  },
6155
+ theadAdd: {
6156
+ type: Boolean,
6157
+ default: true
6158
+ },
6376
6159
  // 单元格点击事件
6377
6160
  click: {
6378
6161
  type: Boolean,
@@ -6426,6 +6209,11 @@ var mainvue_type_script_lang_js_components, _watch;
6426
6209
  default: function _default() {
6427
6210
  return [];
6428
6211
  }
6212
+ },
6213
+ rowData: [Object, Boolean],
6214
+ least: {
6215
+ type: Boolean,
6216
+ default: false
6429
6217
  }
6430
6218
  },
6431
6219
  data: function data() {
@@ -6546,6 +6334,16 @@ var mainvue_type_script_lang_js_components, _watch;
6546
6334
  set: function set(val) {
6547
6335
  return val;
6548
6336
  }
6337
+ },
6338
+ headButton: function headButton() {
6339
+ return this.theadAdd ? {
6340
+ icon: 'el-icon-circle-plus-outline',
6341
+ type: 'text',
6342
+ event: this.handleClickAddData
6343
+ } : false;
6344
+ },
6345
+ isLeast: function isLeast() {
6346
+ return this.data.length < 2 && this.least;
6549
6347
  }
6550
6348
  },
6551
6349
  watch: (_watch = {
@@ -6739,18 +6537,45 @@ var mainvue_type_script_lang_js_components, _watch;
6739
6537
  this.$emit('row-click', row, column, event);
6740
6538
  },
6741
6539
  handleClickAddData: function handleClickAddData(scope) {
6742
- var data = JSON.parse(JSON.stringify(scope.row));
6743
- var index = scope.$index + 1;
6744
- if (this.page) {
6745
- index += (this.config.pageNum - 1) * this.config.pageSize;
6540
+ if (scope && scope.row) {
6541
+ var data = JSON.parse(JSON.stringify(scope.row));
6542
+ var index = scope.$index + 1;
6543
+ if (this.page) {
6544
+ index += (this.config.pageNum - 1) * this.config.pageSize;
6545
+ }
6546
+ this.data.splice(index, 0, data);
6547
+ this.$emit('dataChange', 'add', data);
6548
+ this.$emit('btnClick', {
6549
+ event: 'addRow',
6550
+ row: data,
6551
+ index: index,
6552
+ data: this.data
6553
+ });
6554
+ } else {
6555
+ var _index = this.data.length;
6556
+ if (this.page) {
6557
+ _index += (this.config.pageNum - 1) * this.config.pageSize;
6558
+ }
6559
+ var rows = {};
6560
+ if (this.rowData && _typeof(this.rowData) == 'object') {
6561
+ rows = this.rowData;
6562
+ } else if (_index && this.rowData === true) {
6563
+ rows = JSON.parse(JSON.stringify(this.data[_index - 1]));
6564
+ } else {
6565
+ this.getRow(this.thead, rows);
6566
+ }
6567
+ this.data.splice(_index, 0, rows);
6746
6568
  }
6747
- this.data.splice(index, 0, data);
6748
- this.$emit('dataChange', 'add', data);
6749
- this.$emit('btnClick', {
6750
- event: 'addRow',
6751
- row: data,
6752
- index: index,
6753
- data: this.data
6569
+ },
6570
+ getRow: function getRow(thead, obj) {
6571
+ var _this4 = this;
6572
+
6573
+ thead.forEach(function (item) {
6574
+ if (item.field) {
6575
+ obj[item['field']] = item.defaultValue || '';
6576
+ } else if (item.children && item.children.length) {
6577
+ _this4.getRow(item.children, obj);
6578
+ }
6754
6579
  });
6755
6580
  },
6756
6581
  handleClickDeleteData: function handleClickDeleteData(scope) {
@@ -6769,27 +6594,27 @@ var mainvue_type_script_lang_js_components, _watch;
6769
6594
  });
6770
6595
  },
6771
6596
  checkSelect: function checkSelect(newVal) {
6772
- var _this4 = this;
6597
+ var _this5 = this;
6773
6598
 
6774
6599
  this.$nextTick(function () {
6775
6600
  if (util["a" /* default */].getObjectType(newVal) === 'array') {
6776
6601
  newVal.forEach(function (row) {
6777
6602
  if (util["a" /* default */].isObject(row)) {
6778
- _this4.$refs.oaTable.toggleRowSelection(row, true);
6779
- } else _this4.datas.forEach(function (item) {
6780
- if (item[_this4.checkedKey] === row) {
6781
- _this4.$refs.oaTable.toggleRowSelection(item, true);
6603
+ _this5.$refs.oaTable.toggleRowSelection(row, true);
6604
+ } else _this5.datas.forEach(function (item) {
6605
+ if (item[_this5.checkedKey] === row) {
6606
+ _this5.$refs.oaTable.toggleRowSelection(item, true);
6782
6607
  return;
6783
6608
  }
6784
6609
  });
6785
6610
  });
6786
6611
  } else if (newVal === true) {
6787
- _this4.toggleAllSelection();
6612
+ _this5.toggleAllSelection();
6788
6613
  }
6789
6614
  });
6790
6615
  },
6791
6616
  getTheads: function getTheads() {
6792
- var _this5 = this;
6617
+ var _this6 = this;
6793
6618
 
6794
6619
  util["a" /* default */].ajax({
6795
6620
  url: this.thead,
@@ -6801,27 +6626,27 @@ var mainvue_type_script_lang_js_components, _watch;
6801
6626
  if (res.rCode === 0) {
6802
6627
  var results = res.results;
6803
6628
  if (Array.isArray(results)) {
6804
- _this5.theadData = results;
6629
+ _this6.theadData = results;
6805
6630
  } else {
6806
- _this5.theadData = results.theadData || [];
6807
- _this5.list = results.data || results.records || [];
6808
- _this5.config.totalCount = results.count || results.total || results.totalCount;
6809
- _this5.getOptions(_this5.theadData);
6631
+ _this6.theadData = results.theadData || [];
6632
+ _this6.list = results.data || results.records || [];
6633
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
6634
+ _this6.getOptions(_this6.theadData);
6810
6635
  }
6811
6636
  } else {
6812
- _this5.theadData = [];
6637
+ _this6.theadData = [];
6813
6638
  var msg = res.msg || '系统错误,请联系管理员!';
6814
- _this5.$message.error(msg);
6639
+ _this6.$message.error(msg);
6815
6640
  }
6816
- _this5.$emit('success', res);
6641
+ _this6.$emit('success', res);
6817
6642
  }).catch(function (err) {
6818
6643
  if (err.message && err.message !== 'canceled') {
6819
- _this5.$message.error(err.message);
6644
+ _this6.$message.error(err.message);
6820
6645
  }
6821
6646
  });
6822
6647
  },
6823
6648
  getTableData: function getTableData(res) {
6824
- var _this6 = this;
6649
+ var _this7 = this;
6825
6650
 
6826
6651
  var where = void 0;
6827
6652
  var first = void 0;
@@ -6851,28 +6676,28 @@ var mainvue_type_script_lang_js_components, _watch;
6851
6676
  params: reqData,
6852
6677
  data: reqData
6853
6678
  }).then(function (res) {
6854
- _this6.tableLoading = false;
6679
+ _this7.tableLoading = false;
6855
6680
  if (res.rCode === 0 || res.status === 'success') {
6856
- _this6.$refs.oaTable && _this6.$refs.oaTable.resetScroll && _this6.$refs.oaTable.resetScroll(0, 0);
6857
- var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
6858
- _this6.list = results.data || results.records || results.list || [];
6859
- _this6.config.totalCount = results.count || results.total || results.totalCount;
6860
- _this6.checked && _this6.$nextTick(function () {
6861
- _this6.checkSelect(_this6.checked);
6681
+ _this7.$refs.oaTable && _this7.$refs.oaTable.resetScroll && _this7.$refs.oaTable.resetScroll(0, 0);
6682
+ var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
6683
+ _this7.list = results.data || results.records || results.list || [];
6684
+ _this7.config.totalCount = results.count || results.total || results.totalCount;
6685
+ _this7.checked && _this7.$nextTick(function () {
6686
+ _this7.checkSelect(_this7.checked);
6862
6687
  });
6863
6688
  } else {
6864
- _this6.list = [];
6689
+ _this7.list = [];
6865
6690
  //this.tableHeight = false;
6866
6691
  var msg = res.msg || '系统错误,请联系管理员!';
6867
- _this6.$message.error(msg);
6692
+ _this7.$message.error(msg);
6868
6693
  }
6869
- _this6.$emit('success', res);
6694
+ _this7.$emit('success', res);
6870
6695
  }).catch(function (err) {
6871
6696
  //this.tableHeight = false;
6872
6697
  if (err.message && err.message !== 'canceled') {
6873
- _this6.$message.error(err.message);
6698
+ _this7.$message.error(err.message);
6874
6699
  }
6875
- _this6.tableLoading = false;
6700
+ _this7.tableLoading = false;
6876
6701
  });
6877
6702
  },
6878
6703
  selectionChange: function selectionChange(data) {
@@ -6917,7 +6742,7 @@ var mainvue_type_script_lang_js_components, _watch;
6917
6742
  this.$emit('change', data, this.datas);
6918
6743
  },
6919
6744
  handleAjax: function handleAjax(handle, row) {
6920
- var _this7 = this;
6745
+ var _this8 = this;
6921
6746
 
6922
6747
  this.changeLoading(true, handle.text + '\u4E2D...');
6923
6748
  var params = handle.param || {};
@@ -6973,9 +6798,9 @@ var mainvue_type_script_lang_js_components, _watch;
6973
6798
  method: handle.method,
6974
6799
  format: handle.format
6975
6800
  }).then(function (res) {
6976
- _this7.changeLoading(false);
6801
+ _this8.changeLoading(false);
6977
6802
  if (res.rCode === 0) {
6978
- _this7.$message({
6803
+ _this8.$message({
6979
6804
  message: handle.text + '\u6210\u529F',
6980
6805
  duration: 2000,
6981
6806
  type: 'success',
@@ -6983,17 +6808,17 @@ var mainvue_type_script_lang_js_components, _watch;
6983
6808
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
6984
6809
  var reload = handle.reload || true;
6985
6810
  if (reload) {
6986
- _this7.reload({}, first);
6811
+ _this8.reload({}, first);
6987
6812
  }
6988
6813
  }
6989
6814
  });
6990
6815
  } else {
6991
- _this7.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
6816
+ _this8.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
6992
6817
  }
6993
6818
  }).catch(function (err) {
6994
- _this7.changeLoading(false);
6819
+ _this8.changeLoading(false);
6995
6820
  if (err.message && err.message !== 'canceled') {
6996
- _this7.$message.error(err.message);
6821
+ _this8.$message.error(err.message);
6997
6822
  }
6998
6823
  });
6999
6824
  },
@@ -7018,7 +6843,7 @@ var mainvue_type_script_lang_js_components, _watch;
7018
6843
  return mainvue_type_script_lang_js_extends({}, obj, item);
7019
6844
  },
7020
6845
  handleClick: function handleClick(res) {
7021
- var _this8 = this;
6846
+ var _this9 = this;
7022
6847
 
7023
6848
  var row = res.row,
7024
6849
  handle = res.handle;
@@ -7054,7 +6879,7 @@ var mainvue_type_script_lang_js_components, _watch;
7054
6879
  cancelButtonText: '取消',
7055
6880
  type: 'warning'
7056
6881
  }).then(function () {
7057
- _this8.handleAjax(handle, rows);
6882
+ _this9.handleAjax(handle, rows);
7058
6883
  }).catch(function () {});
7059
6884
  } else {
7060
6885
  this.handleAjax(handle, rows);
@@ -7142,7 +6967,7 @@ var mainvue_type_script_lang_js_components, _watch;
7142
6967
  var type = ['selection', 'index', 'expand'];
7143
6968
  thead = thead.map(function (item) {
7144
6969
  return item.filter(function (ele) {
7145
- return !type.includes(ele.type) && ele.label !== text && !_this8.exportExcludeLabel.includes(ele.label);
6970
+ return !type.includes(ele.type) && ele.label !== text && !_this9.exportExcludeLabel.includes(ele.label);
7146
6971
  });
7147
6972
  });
7148
6973
  util["a" /* default */].exportXls({
@@ -7248,40 +7073,40 @@ var mainvue_type_script_lang_js_components, _watch;
7248
7073
  }
7249
7074
  },
7250
7075
  resetHeight: function resetHeight(warn) {
7251
- var _this9 = this;
7076
+ var _this10 = this;
7252
7077
 
7253
7078
  this.$nextTick(function () {
7254
- if (_this9.full && !_this9.height && !_this9.maxHeight) {
7255
- var height = _this9.$el.parentNode.offsetHeight;
7079
+ if (_this10.full && !_this10.height && !_this10.maxHeight) {
7080
+ var height = _this10.$el.parentNode.offsetHeight;
7256
7081
  if (height) {
7257
- height = parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'height', '%'), 10);
7258
- height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-bottom'), 10);
7259
- for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
7260
- var ele = _this9.$el.parentNode.childNodes[i];
7261
- if (ele !== _this9.$el && ele.offsetHeight !== undefined) {
7082
+ height = parseInt(util["a" /* default */].getStyle(_this10.$el.parentNode, 'height', '%'), 10);
7083
+ height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this10.$el.parentNode, 'padding-bottom'), 10);
7084
+ for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
7085
+ var ele = _this10.$el.parentNode.childNodes[i];
7086
+ if (ele !== _this10.$el && ele.offsetHeight !== undefined) {
7262
7087
  height = height - ele.offsetHeight - parseInt(util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
7263
7088
  }
7264
7089
  }
7265
- height -= _this9.showToolbar ? 45 : 0;
7266
- height -= _this9.page === false ? 0 : 46;
7267
- height -= _this9.title ? _this9.$refs.title.offsetHeight : 0;
7268
- height -= parseInt(util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-top'), 10);
7269
- height -= parseInt(util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-bottom'), 10);
7270
- var emptyText = _this9.$refs.esTableContent.querySelector('.el-table__empty-text');
7090
+ height -= _this10.showToolbar ? 45 : 0;
7091
+ height -= _this10.page === false ? 0 : 46;
7092
+ height -= _this10.title ? _this10.$refs.title.offsetHeight : 0;
7093
+ height -= parseInt(util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-top'), 10);
7094
+ height -= parseInt(util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-bottom'), 10);
7095
+ var emptyText = _this10.$refs.esTableContent.querySelector('.el-table__empty-text');
7271
7096
  var eht = 0;
7272
7097
  if (emptyText) {
7273
7098
  eht = emptyText.offsetHeight;
7274
- var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
7099
+ var thead = _this10.$refs.esTableContent.querySelector('.el-table__header');
7275
7100
  thead && (eht += thead.offsetHeight);
7276
7101
  }
7277
7102
  if (height > 1 && height - eht > 1) {
7278
- _this9.tableHeight = height;
7103
+ _this10.tableHeight = height;
7279
7104
  } else {
7280
- console.warn(_this9.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7105
+ console.warn(_this10.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7281
7106
  }
7282
7107
  } else if (!warn) {
7283
7108
  setTimeout(function () {
7284
- _this9.resetHeight(true);
7109
+ _this10.resetHeight(true);
7285
7110
  }, 1000);
7286
7111
  }
7287
7112
  }
@@ -7311,31 +7136,31 @@ var mainvue_type_script_lang_js_components, _watch;
7311
7136
  this.$emit('sort-change', res);
7312
7137
  },
7313
7138
  mergeThead: function mergeThead(res) {
7314
- var _this10 = this;
7139
+ var _this11 = this;
7315
7140
 
7316
7141
  this.theadData = res;
7317
7142
  this.icon = true;
7318
7143
  setTimeout(function () {
7319
- _this10.show = true;
7144
+ _this11.show = true;
7320
7145
  }, 100);
7321
7146
  },
7322
7147
  setOptions: function setOptions(val, sysCode) {
7323
7148
  this.$set(this.options, sysCode, val);
7324
7149
  },
7325
7150
  bindEventBus: function bindEventBus() {
7326
- var _this11 = this;
7151
+ var _this12 = this;
7327
7152
 
7328
7153
  this.sysCodes.forEach(function (item) {
7329
7154
  bus["a" /* default */].$on(item, function (val) {
7330
- _this11.setOptions(val, item);
7155
+ _this12.setOptions(val, item);
7331
7156
  });
7332
7157
  });
7333
7158
  },
7334
7159
  unbindEventBus: function unbindEventBus() {
7335
- var _this12 = this;
7160
+ var _this13 = this;
7336
7161
 
7337
7162
  this.sysCodes.forEach(function (item) {
7338
- bus["a" /* default */].$off(item, _this12.setOptions);
7163
+ bus["a" /* default */].$off(item, _this13.setOptions);
7339
7164
  });
7340
7165
  }
7341
7166
  }
@@ -7352,7 +7177,7 @@ var mainvue_type_script_lang_js_components, _watch;
7352
7177
 
7353
7178
  var main_component = Object(componentNormalizer["a" /* default */])(
7354
7179
  src_mainvue_type_script_lang_js_,
7355
- mainvue_type_template_id_4564aac4_render,
7180
+ mainvue_type_template_id_a455250e_render,
7356
7181
  staticRenderFns,
7357
7182
  false,
7358
7183
  null,