eoss-ui 0.5.81-beta6 → 0.5.81-beta7

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
@@ -3929,8 +3929,8 @@ module.exports = require("vue");
3929
3929
  // ESM COMPAT FLAG
3930
3930
  __webpack_require__.r(__webpack_exports__);
3931
3931
 
3932
- // 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=04c7a78c&
3933
- var mainvue_type_template_id_04c7a78c_render = function () {
3932
+ // 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=15de25d9&
3933
+ var mainvue_type_template_id_15de25d9_render = function () {
3934
3934
  var _vm = this
3935
3935
  var _h = _vm.$createElement
3936
3936
  var _c = _vm._self._c || _h
@@ -3951,7 +3951,7 @@ var mainvue_type_template_id_04c7a78c_render = function () {
3951
3951
  attrs: {
3952
3952
  "label-width": "0",
3953
3953
  "element-loading-background": "rgba(0, 0, 0, 0.65)",
3954
- model: _vm.tag === "div" ? "" : _vm.datas,
3954
+ model: _vm.tag === "div" ? "" : _vm.list,
3955
3955
  "element-loading-text": _vm.tableLoadingText,
3956
3956
  },
3957
3957
  },
@@ -4017,10 +4017,10 @@ var mainvue_type_template_id_04c7a78c_render = function () {
4017
4017
  (_vm.theadBorder && _vm.border != "none"
4018
4018
  ? " es-thead-border"
4019
4019
  : ""),
4020
- attrs: { data: _vm.datas },
4020
+ attrs: { data: _vm.list },
4021
4021
  on: {
4022
4022
  "update:data": function ($event) {
4023
- _vm.datas = $event
4023
+ _vm.list = $event
4024
4024
  },
4025
4025
  },
4026
4026
  },
@@ -4202,7 +4202,7 @@ var mainvue_type_template_id_04c7a78c_render = function () {
4202
4202
  _vm._v("共" + _vm._s(_vm.config.totalCount) + "条,"),
4203
4203
  ]),
4204
4204
  _c("span", [
4205
- _vm._v("已加载" + _vm._s(_vm.datas.length) + "条"),
4205
+ _vm._v("已加载" + _vm._s(_vm.list.length) + "条"),
4206
4206
  ]),
4207
4207
  ])
4208
4208
  : _vm.page
@@ -4241,10 +4241,10 @@ var mainvue_type_template_id_04c7a78c_render = function () {
4241
4241
  )
4242
4242
  }
4243
4243
  var staticRenderFns = []
4244
- mainvue_type_template_id_04c7a78c_render._withStripped = true
4244
+ mainvue_type_template_id_15de25d9_render._withStripped = true
4245
4245
 
4246
4246
 
4247
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=04c7a78c&
4247
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=15de25d9&
4248
4248
 
4249
4249
  // EXTERNAL MODULE: ./src/config/api.js
4250
4250
  var api = __webpack_require__(1);
@@ -6780,6 +6780,14 @@ var mainvue_type_script_lang_js_components, _watch;
6780
6780
  return this.data;
6781
6781
  },
6782
6782
  set: function set(val) {
6783
+ var _this3 = this;
6784
+
6785
+ if (this.list && this.list.length) {
6786
+ this.$nextTick(function () {
6787
+ _this3.list = val;
6788
+ });
6789
+ console.log(val, 7777788);
6790
+ }
6783
6791
  this.$emit('update:data', val);
6784
6792
  return val;
6785
6793
  }
@@ -6838,18 +6846,12 @@ var mainvue_type_script_lang_js_components, _watch;
6838
6846
  this.doLayout();
6839
6847
  },
6840
6848
 
6841
- // data: {
6842
- // deep: true,
6843
- // handler(val) {
6844
- // if (
6845
- // this.page &&
6846
- // typeof this.page === 'object' &&
6847
- // !Object.prototype.hasOwnProperty.call(this.page, 'totalCount')
6848
- // ) {
6849
- // this.config.totalCount = val.length - this.lose;
6850
- // }
6851
- // }
6852
- // },
6849
+ data: {
6850
+ deep: true,
6851
+ handler: function handler() {
6852
+ this.list = this.setData();
6853
+ }
6854
+ },
6853
6855
  page: function page() {
6854
6856
  this.resetHeight();
6855
6857
  this.doLayout();
@@ -6873,7 +6875,7 @@ var mainvue_type_script_lang_js_components, _watch;
6873
6875
  }
6874
6876
  },
6875
6877
  checked: function checked(newVal) {
6876
- this.datas.length && this.checkSelect(newVal);
6878
+ this.list.length && this.checkSelect(newVal);
6877
6879
  },
6878
6880
 
6879
6881
  thead: {
@@ -6915,6 +6917,7 @@ var mainvue_type_script_lang_js_components, _watch;
6915
6917
  }, _watch['config.pageNum'] = function configPageNum() {
6916
6918
  if (this.data.length) {
6917
6919
  this.$refs.oaTable && this.$refs.oaTable.resetScroll && this.$refs.oaTable.resetScroll(0, 0);
6920
+ this.list = this.setData();
6918
6921
  }
6919
6922
  }, _watch.height = {
6920
6923
  immediate: true,
@@ -6937,10 +6940,10 @@ var mainvue_type_script_lang_js_components, _watch;
6937
6940
  }
6938
6941
  }, _watch),
6939
6942
  beforeCreate: function beforeCreate() {
6940
- var _this3 = this;
6943
+ var _this4 = this;
6941
6944
 
6942
6945
  this.getTableData = Object(external_throttle_debounce_["debounce"])(500, function (res) {
6943
- _this3.getTableDatas(res);
6946
+ _this4.getTableDatas(res);
6944
6947
  });
6945
6948
  },
6946
6949
  created: function created() {
@@ -6951,11 +6954,27 @@ var mainvue_type_script_lang_js_components, _watch;
6951
6954
  this.chekOpenTotalArea();
6952
6955
  },
6953
6956
  mounted: function mounted() {
6954
- this.datas.length && this.checkSelect(this.checked);
6957
+ if (this.data.length) {
6958
+ this.list = this.setData();
6959
+ }
6960
+ this.list.length && this.checkSelect(this.checked);
6955
6961
  this.resetHeight();
6956
6962
  },
6957
6963
 
6958
6964
  methods: {
6965
+ setData: function setData() {
6966
+ var _this5 = this;
6967
+
6968
+ if (this.page && (_typeof(this.page) === 'object' && (!Object.prototype.hasOwnProperty.call(this.page, 'totalCount') || this.page.totalCount == 0) || this.page === true)) {
6969
+ this.config.totalCount = this.data.length - this.lose;
6970
+ }
6971
+ if (this.page && this.data.length > this.config.pageSize) {
6972
+ return this.data.filter(function (item, index) {
6973
+ return index > (_this5.config.pageNum - 1) * _this5.config.pageSize - 1 && index < _this5.config.pageNum * _this5.config.pageSize;
6974
+ });
6975
+ }
6976
+ return this.data;
6977
+ },
6959
6978
  getRequestKey: function getRequestKey(config) {
6960
6979
  var method = config.method,
6961
6980
  url = config.url,
@@ -6965,55 +6984,55 @@ var mainvue_type_script_lang_js_components, _watch;
6965
6984
  return [method, url, external_qs_default.a.stringify(params), external_qs_default.a.stringify(data)].join('&');
6966
6985
  },
6967
6986
  getOptions: function getOptions(res) {
6968
- var _this4 = this;
6987
+ var _this6 = this;
6969
6988
 
6970
6989
  var sysCodes = [];
6971
6990
  res.forEach(function (item) {
6972
6991
  if (item.sysCode || item.url) {
6973
6992
  item.sysCode && sysCodes.push(item.sysCode);
6974
6993
  var params = util["a" /* default */].extend({}, item.sysCode ? { sysAppCode: item.sysCode, code: item.sysCode } : {}, item.param ? item.param : {});
6975
- var key = _this4.getRequestKey({
6976
- method: _this4.method,
6977
- url: item.sysCode ? _this4.findCode : item.url,
6994
+ var key = _this6.getRequestKey({
6995
+ method: _this6.method,
6996
+ url: item.sysCode ? _this6.findCode : item.url,
6978
6997
  params: params,
6979
6998
  data: {}
6980
6999
  });
6981
- if (!_this4.requests.includes(key)) {
7000
+ if (!_this6.requests.includes(key)) {
6982
7001
  util["a" /* default */].ajax({
6983
- url: item.sysCode ? _this4.findCode : item.url,
6984
- method: _this4.method,
7002
+ url: item.sysCode ? _this6.findCode : item.url,
7003
+ method: _this6.method,
6985
7004
  params: params,
6986
7005
  data: params
6987
7006
  }).then(function (res) {
6988
7007
  if (res.rCode === 0) {
6989
7008
  if (item.type == 'ganged') {
6990
- _this4.$set(_this4.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
7009
+ _this6.$set(_this6.options, item.sysCode || item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
6991
7010
  if (item.sysCode) {
6992
- bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this4.options[item.sysCode])));
7011
+ bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(_this6.options[item.sysCode])));
6993
7012
  }
6994
7013
  } else {
6995
- _this4.$set(_this4.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
7014
+ _this6.$set(_this6.options, item.sysCode || item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
6996
7015
  if (item.sysCode) {
6997
7016
  bus["a" /* default */].$emit(item.sysCode, JSON.parse(JSON.stringify(res.results)));
6998
7017
  }
6999
7018
  }
7000
- _this4.requests.push(key);
7019
+ _this6.requests.push(key);
7001
7020
  } else {
7002
7021
  var msg = res.msg || '系统错误,请联系管理员!';
7003
- _this4.$message.error(msg);
7022
+ _this6.$message.error(msg);
7004
7023
  }
7005
7024
  }).catch(function (err) {
7006
7025
  if (err.message && err.message !== 'canceled') {
7007
- _this4.$message.error(err.message);
7026
+ _this6.$message.error(err.message);
7008
7027
  }
7009
7028
  });
7010
7029
  }
7011
7030
  } else {
7012
7031
  if (item.childHead && item.childHead.length) {
7013
- _this4.getOptions(item.childHead);
7032
+ _this6.getOptions(item.childHead);
7014
7033
  }
7015
7034
  if (item.children && item.children.length) {
7016
- _this4.getOptions(item.children);
7035
+ _this6.getOptions(item.children);
7017
7036
  }
7018
7037
  }
7019
7038
  });
@@ -7025,7 +7044,7 @@ var mainvue_type_script_lang_js_components, _watch;
7025
7044
  return util["a" /* default */].getObjectType(item) === 'object';
7026
7045
  },
7027
7046
  chekOpenTotalArea: function chekOpenTotalArea() {
7028
- var _this5 = this;
7047
+ var _this7 = this;
7029
7048
 
7030
7049
  if (this.total || this.showSummary) {
7031
7050
  this.showTotal = true;
@@ -7034,7 +7053,7 @@ var mainvue_type_script_lang_js_components, _watch;
7034
7053
  var arr = JSON.parse(JSON.stringify(this.theads));
7035
7054
  arr.forEach(function (item) {
7036
7055
  if (item.total) {
7037
- _this5.showTotal = true;
7056
+ _this7.showTotal = true;
7038
7057
  }
7039
7058
  });
7040
7059
  },
@@ -7081,13 +7100,13 @@ var mainvue_type_script_lang_js_components, _watch;
7081
7100
  }
7082
7101
  },
7083
7102
  getRow: function getRow(thead, obj) {
7084
- var _this6 = this;
7103
+ var _this8 = this;
7085
7104
 
7086
7105
  thead.forEach(function (item) {
7087
7106
  if (item.field) {
7088
7107
  obj[item['field']] = item.defaultValue || '';
7089
7108
  } else if (item.children && item.children.length) {
7090
- _this6.getRow(item.children, obj);
7109
+ _this8.getRow(item.children, obj);
7091
7110
  }
7092
7111
  });
7093
7112
  },
@@ -7114,27 +7133,27 @@ var mainvue_type_script_lang_js_components, _watch;
7114
7133
  });
7115
7134
  },
7116
7135
  checkSelect: function checkSelect(newVal) {
7117
- var _this7 = this;
7136
+ var _this9 = this;
7118
7137
 
7119
7138
  this.$nextTick(function () {
7120
7139
  if (util["a" /* default */].getObjectType(newVal) === 'array') {
7121
7140
  newVal.forEach(function (row) {
7122
7141
  if (util["a" /* default */].isObject(row)) {
7123
- _this7.$refs.oaTable.toggleRowSelection(row, true);
7124
- } else _this7.datas.forEach(function (item) {
7125
- if (item[_this7.checkedKey] === row) {
7126
- _this7.$refs.oaTable.toggleRowSelection(item, true);
7142
+ _this9.$refs.oaTable.toggleRowSelection(row, true);
7143
+ } else _this9.list.forEach(function (item) {
7144
+ if (item[_this9.checkedKey] === row) {
7145
+ _this9.$refs.oaTable.toggleRowSelection(item, true);
7127
7146
  return;
7128
7147
  }
7129
7148
  });
7130
7149
  });
7131
7150
  } else if (newVal === true) {
7132
- _this7.toggleAllSelection();
7151
+ _this9.toggleAllSelection();
7133
7152
  }
7134
7153
  });
7135
7154
  },
7136
7155
  getTheads: function getTheads() {
7137
- var _this8 = this;
7156
+ var _this10 = this;
7138
7157
 
7139
7158
  util["a" /* default */].ajax({
7140
7159
  url: this.thead,
@@ -7146,27 +7165,27 @@ var mainvue_type_script_lang_js_components, _watch;
7146
7165
  if (res.rCode === 0) {
7147
7166
  var results = res.results;
7148
7167
  if (Array.isArray(results)) {
7149
- _this8.theadData = results;
7168
+ _this10.theadData = results;
7150
7169
  } else {
7151
- _this8.theadData = results.theadData || [];
7152
- _this8.list = results.data || results.records || [];
7153
- _this8.config.totalCount = results.count || results.total || results.totalCount;
7154
- _this8.getOptions(_this8.theadData);
7170
+ _this10.theadData = results.theadData || [];
7171
+ _this10.list = results.data || results.records || [];
7172
+ _this10.config.totalCount = results.count || results.total || results.totalCount;
7173
+ _this10.getOptions(_this10.theadData);
7155
7174
  }
7156
7175
  } else {
7157
- _this8.theadData = [];
7176
+ _this10.theadData = [];
7158
7177
  var msg = res.msg || '系统错误,请联系管理员!';
7159
- _this8.$message.error(msg);
7178
+ _this10.$message.error(msg);
7160
7179
  }
7161
- _this8.$emit('success', res);
7180
+ _this10.$emit('success', res);
7162
7181
  }).catch(function (err) {
7163
7182
  if (err.message && err.message !== 'canceled') {
7164
- _this8.$message.error(err.message);
7183
+ _this10.$message.error(err.message);
7165
7184
  }
7166
7185
  });
7167
7186
  },
7168
7187
  getTableDatas: function getTableDatas(res) {
7169
- var _this9 = this;
7188
+ var _this11 = this;
7170
7189
 
7171
7190
  var where = void 0;
7172
7191
  var first = void 0;
@@ -7206,42 +7225,42 @@ var mainvue_type_script_lang_js_components, _watch;
7206
7225
  params: reqData,
7207
7226
  data: reqData
7208
7227
  })).then(function (res) {
7209
- _this9.tableLoading = false;
7228
+ _this11.tableLoading = false;
7210
7229
  if (res.rCode === 0 || res.status === 'success') {
7211
- if (_this9.isReload) {
7212
- _this9.list = [];
7213
- _this9.isReload = false;
7230
+ if (_this11.isReload) {
7231
+ _this11.list = [];
7232
+ _this11.isReload = false;
7214
7233
  }
7215
- var results = _this9.parseData !== undefined ? _this9.parseData(res.results || res.data || res) : res.results || res.data;
7216
- if (_this9.infiniteScroll) {
7217
- _this9.list = _this9.list.concat(results.data || results.records || results.list);
7218
- _this9.config.pageNum += 1;
7234
+ var results = _this11.parseData !== undefined ? _this11.parseData(res.results || res.data || res) : res.results || res.data;
7235
+ if (_this11.infiniteScroll) {
7236
+ _this11.list = _this11.list.concat(results.data || results.records || results.list);
7237
+ _this11.config.pageNum += 1;
7219
7238
  } else {
7220
- _this9.list = results.data || results.records || results.list;
7221
- _this9.$nextTick(function () {
7222
- _this9.$refs.oaTable && _this9.$refs.oaTable.resetScroll && _this9.$refs.oaTable.resetScroll(0, 0);
7239
+ _this11.list = results.data || results.records || results.list;
7240
+ _this11.$nextTick(function () {
7241
+ _this11.$refs.oaTable && _this11.$refs.oaTable.resetScroll && _this11.$refs.oaTable.resetScroll(0, 0);
7223
7242
  });
7224
7243
  }
7225
- _this9.config.totalCount = results.count || results.total || results.totalCount;
7226
- _this9.checked && _this9.$nextTick(function () {
7227
- _this9.checkSelect(_this9.checked);
7244
+ _this11.config.totalCount = results.count || results.total || results.totalCount;
7245
+ _this11.checked && _this11.$nextTick(function () {
7246
+ _this11.checkSelect(_this11.checked);
7228
7247
  });
7229
- if (_this9.infiniteScroll && _this9.config.totalCount === _this9.list.length) {
7230
- _this9.infiniteDisabled = true;
7248
+ if (_this11.infiniteScroll && _this11.config.totalCount === _this11.list.length) {
7249
+ _this11.infiniteDisabled = true;
7231
7250
  }
7232
7251
  } else {
7233
- _this9.list = [];
7252
+ _this11.list = [];
7234
7253
  //this.tableHeight = false;
7235
7254
  var msg = res.msg || '系统错误,请联系管理员!';
7236
- _this9.$message.error(msg);
7255
+ _this11.$message.error(msg);
7237
7256
  }
7238
- _this9.$emit('success', res);
7257
+ _this11.$emit('success', res);
7239
7258
  }).catch(function (err) {
7240
7259
  //this.tableHeight = false;
7241
7260
  if (err.message && err.message !== 'canceled') {
7242
- _this9.$message.error(err.message);
7261
+ _this11.$message.error(err.message);
7243
7262
  }
7244
- _this9.tableLoading = false;
7263
+ _this11.tableLoading = false;
7245
7264
  });
7246
7265
  },
7247
7266
  selectionChange: function selectionChange(data) {
@@ -7276,17 +7295,17 @@ var mainvue_type_script_lang_js_components, _watch;
7276
7295
  this.$refs.oaTable.sort(prop, order);
7277
7296
  },
7278
7297
  formBlur: function formBlur(data) {
7279
- this.$emit('blur', data, this.datas);
7298
+ this.$emit('blur', data, this.list);
7280
7299
  },
7281
7300
  formFocus: function formFocus(data) {
7282
- this.$emit('focus', data, this.datas);
7301
+ this.$emit('focus', data, this.list);
7283
7302
  },
7284
7303
  formChange: function formChange(data) {
7285
- this.$emit('edit', data, this.datas);
7286
- this.$emit('change', data, this.datas);
7304
+ this.$emit('edit', data, this.list);
7305
+ this.$emit('change', data, this.list);
7287
7306
  },
7288
7307
  handleAjax: function handleAjax(handle, row) {
7289
- var _this10 = this;
7308
+ var _this12 = this;
7290
7309
 
7291
7310
  this.changeLoading(true, handle.text + '\u4E2D...');
7292
7311
  var params = handle.param || {};
@@ -7342,9 +7361,9 @@ var mainvue_type_script_lang_js_components, _watch;
7342
7361
  method: handle.method,
7343
7362
  format: handle.format
7344
7363
  })).then(function (res) {
7345
- _this10.changeLoading(false);
7364
+ _this12.changeLoading(false);
7346
7365
  if (res.rCode === 0) {
7347
- _this10.$message({
7366
+ _this12.$message({
7348
7367
  message: handle.text + '\u6210\u529F',
7349
7368
  duration: 2000,
7350
7369
  type: 'success',
@@ -7352,17 +7371,17 @@ var mainvue_type_script_lang_js_components, _watch;
7352
7371
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
7353
7372
  var reload = handle.reload || true;
7354
7373
  if (reload) {
7355
- _this10.reload({}, first);
7374
+ _this12.reload({}, first);
7356
7375
  }
7357
7376
  }
7358
7377
  });
7359
7378
  } else {
7360
- _this10.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7379
+ _this12.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
7361
7380
  }
7362
7381
  }).catch(function (err) {
7363
- _this10.changeLoading(false);
7382
+ _this12.changeLoading(false);
7364
7383
  if (err.message && err.message !== 'canceled') {
7365
- _this10.$message.error(err.message);
7384
+ _this12.$message.error(err.message);
7366
7385
  }
7367
7386
  });
7368
7387
  },
@@ -7387,7 +7406,7 @@ var mainvue_type_script_lang_js_components, _watch;
7387
7406
  return mainvue_type_script_lang_js_extends({}, obj, item);
7388
7407
  },
7389
7408
  handleClick: function handleClick(res) {
7390
- var _this11 = this;
7409
+ var _this13 = this;
7391
7410
 
7392
7411
  var row = res.row,
7393
7412
  handle = res.handle;
@@ -7423,7 +7442,7 @@ var mainvue_type_script_lang_js_components, _watch;
7423
7442
  cancelButtonText: '取消',
7424
7443
  type: 'warning'
7425
7444
  }).then(function () {
7426
- _this11.handleAjax(handle, rows);
7445
+ _this13.handleAjax(handle, rows);
7427
7446
  }).catch(function () {});
7428
7447
  } else {
7429
7448
  this.handleAjax(handle, rows);
@@ -7433,7 +7452,7 @@ var mainvue_type_script_lang_js_components, _watch;
7433
7452
  handle.event(mainvue_type_script_lang_js_extends({
7434
7453
  ele: this,
7435
7454
  thead: thead,
7436
- data: this.datas,
7455
+ data: this.list,
7437
7456
  selected: rows
7438
7457
  }, res));
7439
7458
  } else if (handle.event === 'add' || handle.event === 'edit' || handle.event === 'look') {
@@ -7511,18 +7530,18 @@ var mainvue_type_script_lang_js_components, _watch;
7511
7530
  var type = ['selection', 'index', 'expand'];
7512
7531
  thead = thead.map(function (item) {
7513
7532
  return item.filter(function (ele) {
7514
- return !type.includes(ele.type) && ele.label !== text && !_this11.exportExcludeLabel.includes(ele.label);
7533
+ return !type.includes(ele.type) && ele.label !== text && !_this13.exportExcludeLabel.includes(ele.label);
7515
7534
  });
7516
7535
  });
7517
7536
  util["a" /* default */].exportXls({
7518
7537
  thead: thead,
7519
- data: this.datas,
7538
+ data: this.list,
7520
7539
  name: this.fileName,
7521
7540
  option: this.optionDatas
7522
7541
  });
7523
7542
  }
7524
- this.$emit('btnClick', res, this.datas, thead, rows);
7525
- this.$emit('btn-click', res, this.datas, thead, rows);
7543
+ this.$emit('btnClick', res, this.list, thead, rows);
7544
+ this.$emit('btn-click', res, this.list, thead, rows);
7526
7545
  }
7527
7546
  },
7528
7547
  sizeChange: function sizeChange(res) {
@@ -7612,40 +7631,40 @@ var mainvue_type_script_lang_js_components, _watch;
7612
7631
  }
7613
7632
  },
7614
7633
  resetHeight: function resetHeight(warn) {
7615
- var _this12 = this;
7634
+ var _this14 = this;
7616
7635
 
7617
7636
  this.$nextTick(function () {
7618
- if (_this12.full && !_this12.height && !_this12.maxHeight) {
7619
- var height = _this12.$el.parentNode.offsetHeight;
7637
+ if (_this14.full && !_this14.height && !_this14.maxHeight) {
7638
+ var height = _this14.$el.parentNode.offsetHeight;
7620
7639
  if (height) {
7621
- height = parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'height', '%'), 10);
7622
- height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this12.$el.parentNode, 'padding-bottom'), 10);
7623
- for (var i = 0; i < _this12.$el.parentNode.childNodes.length; i++) {
7624
- var ele = _this12.$el.parentNode.childNodes[i];
7625
- if (ele !== _this12.$el && ele.offsetHeight !== undefined) {
7640
+ height = parseInt(util["a" /* default */].getStyle(_this14.$el.parentNode, 'height', '%'), 10);
7641
+ height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this14.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this14.$el.parentNode, 'padding-bottom'), 10);
7642
+ for (var i = 0; i < _this14.$el.parentNode.childNodes.length; i++) {
7643
+ var ele = _this14.$el.parentNode.childNodes[i];
7644
+ if (ele !== _this14.$el && ele.offsetHeight !== undefined) {
7626
7645
  height = height - ele.offsetHeight - parseInt(util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
7627
7646
  }
7628
7647
  }
7629
- height -= _this12.showToolbar ? 45 : 0;
7630
- height -= _this12.page === false ? 0 : 46;
7631
- height -= _this12.title ? _this12.$refs.title.offsetHeight : 0;
7632
- height -= parseInt(util["a" /* default */].getStyle(_this12.$refs.esTableContent, 'padding-top'), 10);
7633
- height -= parseInt(util["a" /* default */].getStyle(_this12.$refs.esTableContent, 'padding-bottom'), 10);
7634
- var emptyText = _this12.$refs.esTableContent.querySelector('.el-table__empty-text');
7648
+ height -= _this14.showToolbar ? 45 : 0;
7649
+ height -= _this14.page === false ? 0 : 46;
7650
+ height -= _this14.title ? _this14.$refs.title.offsetHeight : 0;
7651
+ height -= parseInt(util["a" /* default */].getStyle(_this14.$refs.esTableContent, 'padding-top'), 10);
7652
+ height -= parseInt(util["a" /* default */].getStyle(_this14.$refs.esTableContent, 'padding-bottom'), 10);
7653
+ var emptyText = _this14.$refs.esTableContent.querySelector('.el-table__empty-text');
7635
7654
  var eht = 0;
7636
7655
  if (emptyText) {
7637
7656
  eht = emptyText.offsetHeight;
7638
- var thead = _this12.$refs.esTableContent.querySelector('.el-table__header');
7657
+ var thead = _this14.$refs.esTableContent.querySelector('.el-table__header');
7639
7658
  thead && (eht += thead.offsetHeight);
7640
7659
  }
7641
7660
  if (height > 1 && height - eht > 1) {
7642
- _this12.tableHeight = height;
7661
+ _this14.tableHeight = height;
7643
7662
  } else {
7644
- console.warn(_this12.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7663
+ console.warn(_this14.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
7645
7664
  }
7646
7665
  } else if (!warn) {
7647
7666
  setTimeout(function () {
7648
- _this12.resetHeight(true);
7667
+ _this14.resetHeight(true);
7649
7668
  }, 1000);
7650
7669
  }
7651
7670
  }
@@ -7678,31 +7697,31 @@ var mainvue_type_script_lang_js_components, _watch;
7678
7697
  this.$emit('update-drag-sort', data, event);
7679
7698
  },
7680
7699
  mergeThead: function mergeThead(res) {
7681
- var _this13 = this;
7700
+ var _this15 = this;
7682
7701
 
7683
7702
  this.theadData = res;
7684
7703
  this.icon = true;
7685
7704
  setTimeout(function () {
7686
- _this13.show = true;
7705
+ _this15.show = true;
7687
7706
  }, 100);
7688
7707
  },
7689
7708
  setOptions: function setOptions(val, sysCode) {
7690
7709
  this.$set(this.options, sysCode, val);
7691
7710
  },
7692
7711
  bindEventBus: function bindEventBus() {
7693
- var _this14 = this;
7712
+ var _this16 = this;
7694
7713
 
7695
7714
  this.sysCodes.forEach(function (item) {
7696
7715
  bus["a" /* default */].$on(item, function (val) {
7697
- _this14.setOptions(val, item);
7716
+ _this16.setOptions(val, item);
7698
7717
  });
7699
7718
  });
7700
7719
  },
7701
7720
  unbindEventBus: function unbindEventBus() {
7702
- var _this15 = this;
7721
+ var _this17 = this;
7703
7722
 
7704
7723
  this.sysCodes.forEach(function (item) {
7705
- bus["a" /* default */].$off(item, _this15.setOptions);
7724
+ bus["a" /* default */].$off(item, _this17.setOptions);
7706
7725
  });
7707
7726
  },
7708
7727
  reset: function reset() {
@@ -7722,7 +7741,7 @@ var mainvue_type_script_lang_js_components, _watch;
7722
7741
 
7723
7742
  var main_component = Object(componentNormalizer["a" /* default */])(
7724
7743
  src_mainvue_type_script_lang_js_,
7725
- mainvue_type_template_id_04c7a78c_render,
7744
+ mainvue_type_template_id_15de25d9_render,
7726
7745
  staticRenderFns,
7727
7746
  false,
7728
7747
  null,