eoss-ui 0.4.87 → 0.4.88

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.
@@ -5355,8 +5355,8 @@ clients_src_main.install = function (Vue) {
5355
5355
  };
5356
5356
 
5357
5357
  /* harmony default export */ var clients = (clients_src_main);
5358
- // 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=5ae5ffe4&
5359
- var mainvue_type_template_id_5ae5ffe4_render = function () {
5358
+ // 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=8d31e592&
5359
+ var mainvue_type_template_id_8d31e592_render = function () {
5360
5360
  var _vm = this
5361
5361
  var _h = _vm.$createElement
5362
5362
  var _c = _vm._self._c || _h
@@ -5691,11 +5691,11 @@ var mainvue_type_template_id_5ae5ffe4_render = function () {
5691
5691
  1
5692
5692
  )
5693
5693
  }
5694
- var mainvue_type_template_id_5ae5ffe4_staticRenderFns = []
5695
- mainvue_type_template_id_5ae5ffe4_render._withStripped = true
5694
+ var mainvue_type_template_id_8d31e592_staticRenderFns = []
5695
+ mainvue_type_template_id_8d31e592_render._withStripped = true
5696
5696
 
5697
5697
 
5698
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=5ae5ffe4&
5698
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=8d31e592&
5699
5699
 
5700
5700
  // 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=796433ee&
5701
5701
  var childrenvue_type_template_id_796433ee_render = function () {
@@ -8422,7 +8422,12 @@ var mainvue_type_script_lang_js_components;
8422
8422
 
8423
8423
  theads: {
8424
8424
  get: function get() {
8425
- return typeof this.thead === 'string' ? this.theadData : this.thead;
8425
+ if (typeof this.thead === 'string') {
8426
+ this.theadData.length && this.setMinWidth(this.theadData);
8427
+ return this.theadData;
8428
+ }
8429
+ this.setMinWidth(this.thead);
8430
+ return this.thead;
8426
8431
  },
8427
8432
  set: function set(val) {
8428
8433
  return val;
@@ -8557,6 +8562,7 @@ var mainvue_type_script_lang_js_components;
8557
8562
  this.getOptions(this.thead);
8558
8563
  }
8559
8564
  this.immediate && this.getTableData();
8565
+ this.chekOpenTotalArea();
8560
8566
  },
8561
8567
  mounted: function mounted() {
8562
8568
  this.datas.length && this.checkSelect(this.checked);
@@ -8579,54 +8585,64 @@ var mainvue_type_script_lang_js_components;
8579
8585
  }
8580
8586
  return false;
8581
8587
  },
8582
- getOptions: function getOptions(res) {
8588
+ setMinWidth: function setMinWidth(obj) {
8583
8589
  var _this2 = this;
8584
8590
 
8585
- res.forEach(function (item) {
8586
- if ((!item.childHead || !item.childHead.length) && (!item.children || !item.children.length) && !item.width && !item.minWidth && item.title) {
8591
+ obj.forEach(function (item) {
8592
+ if (item.childHead && item.childHead.length) {
8593
+ _this2.setMinWidth(item.childHead);
8594
+ } else if (item.children && item.children.length) {
8595
+ _this2.setMinWidth(item.children);
8596
+ } else if (!item.width && !item.minWidth && item.title) {
8587
8597
  var width = item.title.length * 14 + 20;
8588
8598
  if (width > 80) {
8589
8599
  _this2.$set(item, 'minWidth', width);
8590
8600
  }
8591
8601
  }
8602
+ });
8603
+ },
8604
+ getOptions: function getOptions(res) {
8605
+ var _this3 = this;
8606
+
8607
+ res.forEach(function (item) {
8592
8608
  if (item.sysCode || item.url) {
8593
8609
  var params = utils_util["a" /* default */].extend({}, item.sysCode ? { sysAppCode: item.sysCode } : {}, item.param ? item.param : {});
8594
- var key = _this2.getRequestKey({
8595
- method: _this2.method,
8610
+ var key = _this3.getRequestKey({
8611
+ method: _this3.method,
8596
8612
  url: item.sysCode ? api["u" /* findSysCode */] : item.url,
8597
8613
  params: params,
8598
8614
  data: {}
8599
8615
  });
8600
- if (!_this2.requests.includes(key)) {
8616
+ if (!_this3.requests.includes(key)) {
8601
8617
  utils_util["a" /* default */].ajax({
8602
8618
  url: item.sysCode ? api["u" /* findSysCode */] : item.url,
8603
- method: _this2.method,
8619
+ method: _this3.method,
8604
8620
  params: params,
8605
8621
  data: params
8606
8622
  }).then(function (res) {
8607
8623
  if (res.rCode === 0) {
8608
8624
  if (item.type == 'ganged') {
8609
- _this2.$set(_this2.options, item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
8625
+ _this3.$set(_this3.options, item.field || item.prop, [JSON.parse(JSON.stringify(res.results))]);
8610
8626
  } else {
8611
- _this2.$set(_this2.options, item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
8627
+ _this3.$set(_this3.options, item.field || item.prop, JSON.parse(JSON.stringify(res.results)));
8612
8628
  }
8613
- _this2.requests.push(key);
8629
+ _this3.requests.push(key);
8614
8630
  } else {
8615
8631
  var msg = res.msg || '系统错误,请联系管理员!';
8616
- _this2.$message.error(msg);
8632
+ _this3.$message.error(msg);
8617
8633
  }
8618
8634
  }).catch(function (err) {
8619
8635
  if (err.message && err.message !== 'canceled') {
8620
- _this2.$message.error(err.message);
8636
+ _this3.$message.error(err.message);
8621
8637
  }
8622
8638
  });
8623
8639
  }
8624
8640
  } else {
8625
8641
  if (item.childHead && item.childHead.length) {
8626
- _this2.getOptions(item.childHead);
8642
+ _this3.getOptions(item.childHead);
8627
8643
  }
8628
8644
  if (item.children && item.children.length) {
8629
- _this2.getOptions(item.children);
8645
+ _this3.getOptions(item.children);
8630
8646
  }
8631
8647
  }
8632
8648
  });
@@ -8635,7 +8651,7 @@ var mainvue_type_script_lang_js_components;
8635
8651
  return utils_util["a" /* default */].getObjectType(item) === 'object';
8636
8652
  },
8637
8653
  chekOpenTotalArea: function chekOpenTotalArea() {
8638
- var _this3 = this;
8654
+ var _this4 = this;
8639
8655
 
8640
8656
  if (this.total || this.showSummary) {
8641
8657
  this.showTotal = true;
@@ -8644,7 +8660,7 @@ var mainvue_type_script_lang_js_components;
8644
8660
  var arr = JSON.parse(JSON.stringify(this.theads));
8645
8661
  arr.forEach(function (item) {
8646
8662
  if (item.total) {
8647
- _this3.showTotal = true;
8663
+ _this4.showTotal = true;
8648
8664
  }
8649
8665
  });
8650
8666
  },
@@ -8677,27 +8693,27 @@ var mainvue_type_script_lang_js_components;
8677
8693
  });
8678
8694
  },
8679
8695
  checkSelect: function checkSelect(newVal) {
8680
- var _this4 = this;
8696
+ var _this5 = this;
8681
8697
 
8682
8698
  this.$nextTick(function () {
8683
8699
  if (utils_util["a" /* default */].getObjectType(newVal) === 'array') {
8684
8700
  newVal.forEach(function (row) {
8685
8701
  if (utils_util["a" /* default */].isObject(row)) {
8686
- _this4.$refs.oaTable.toggleRowSelection(row, true);
8687
- } else _this4.datas.forEach(function (item) {
8688
- if (item[_this4.checkedKey] === row) {
8689
- _this4.$refs.oaTable.toggleRowSelection(item, true);
8702
+ _this5.$refs.oaTable.toggleRowSelection(row, true);
8703
+ } else _this5.datas.forEach(function (item) {
8704
+ if (item[_this5.checkedKey] === row) {
8705
+ _this5.$refs.oaTable.toggleRowSelection(item, true);
8690
8706
  return;
8691
8707
  }
8692
8708
  });
8693
8709
  });
8694
8710
  } else if (newVal === true) {
8695
- _this4.toggleAllSelection();
8711
+ _this5.toggleAllSelection();
8696
8712
  }
8697
8713
  });
8698
8714
  },
8699
8715
  getTheads: function getTheads() {
8700
- var _this5 = this;
8716
+ var _this6 = this;
8701
8717
 
8702
8718
  utils_util["a" /* default */].ajax({
8703
8719
  url: this.thead,
@@ -8709,27 +8725,27 @@ var mainvue_type_script_lang_js_components;
8709
8725
  if (res.rCode === 0) {
8710
8726
  var results = res.results;
8711
8727
  if (Array.isArray(results)) {
8712
- _this5.theadData = results;
8728
+ _this6.theadData = results;
8713
8729
  } else {
8714
- _this5.theadData = results.theadData || [];
8715
- _this5.list = results.data || results.records || [];
8716
- _this5.config.totalCount = results.count || results.total || results.totalCount;
8717
- _this5.getOptions(_this5.theadData);
8730
+ _this6.theadData = results.theadData || [];
8731
+ _this6.list = results.data || results.records || [];
8732
+ _this6.config.totalCount = results.count || results.total || results.totalCount;
8733
+ _this6.getOptions(_this6.theadData);
8718
8734
  }
8719
8735
  } else {
8720
- _this5.theadData = [];
8736
+ _this6.theadData = [];
8721
8737
  var msg = res.msg || '系统错误,请联系管理员!';
8722
- _this5.$message.error(msg);
8738
+ _this6.$message.error(msg);
8723
8739
  }
8724
- _this5.$emit('success', res);
8740
+ _this6.$emit('success', res);
8725
8741
  }).catch(function (err) {
8726
8742
  if (err.message && err.message !== 'canceled') {
8727
- _this5.$message.error(err.message);
8743
+ _this6.$message.error(err.message);
8728
8744
  }
8729
8745
  });
8730
8746
  },
8731
8747
  getTableData: function getTableData(res) {
8732
- var _this6 = this;
8748
+ var _this7 = this;
8733
8749
 
8734
8750
  var where = void 0;
8735
8751
  var first = void 0;
@@ -8759,27 +8775,27 @@ var mainvue_type_script_lang_js_components;
8759
8775
  params: reqData,
8760
8776
  data: reqData
8761
8777
  }).then(function (res) {
8762
- _this6.tableLoading = false;
8778
+ _this7.tableLoading = false;
8763
8779
  if (res.rCode === 0 || res.status === 'success') {
8764
- var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
8765
- _this6.list = results.data || results.records || results.list || [];
8766
- _this6.config.totalCount = results.count || results.total || results.totalCount;
8767
- _this6.checked && _this6.$nextTick(function () {
8768
- _this6.checkSelect(_this6.checked);
8780
+ var results = _this7.parseData !== undefined ? _this7.parseData(res.results || res.data || res) : res.results || res.data;
8781
+ _this7.list = results.data || results.records || results.list || [];
8782
+ _this7.config.totalCount = results.count || results.total || results.totalCount;
8783
+ _this7.checked && _this7.$nextTick(function () {
8784
+ _this7.checkSelect(_this7.checked);
8769
8785
  });
8770
8786
  } else {
8771
- _this6.list = [];
8787
+ _this7.list = [];
8772
8788
  //this.tableHeight = false;
8773
8789
  var msg = res.msg || '系统错误,请联系管理员!';
8774
- _this6.$message.error(msg);
8790
+ _this7.$message.error(msg);
8775
8791
  }
8776
- _this6.$emit('success', res);
8792
+ _this7.$emit('success', res);
8777
8793
  }).catch(function (err) {
8778
8794
  //this.tableHeight = false;
8779
8795
  if (err.message && err.message !== 'canceled') {
8780
- _this6.$message.error(err.message);
8796
+ _this7.$message.error(err.message);
8781
8797
  }
8782
- _this6.tableLoading = false;
8798
+ _this7.tableLoading = false;
8783
8799
  });
8784
8800
  },
8785
8801
  selectionChange: function selectionChange(data) {
@@ -8824,7 +8840,7 @@ var mainvue_type_script_lang_js_components;
8824
8840
  this.$emit('change', data, this.datas);
8825
8841
  },
8826
8842
  handleAjax: function handleAjax(handle, row) {
8827
- var _this7 = this;
8843
+ var _this8 = this;
8828
8844
 
8829
8845
  this.changeLoading(true, handle.text + '\u4E2D...');
8830
8846
  var params = handle.param || {};
@@ -8880,9 +8896,9 @@ var mainvue_type_script_lang_js_components;
8880
8896
  method: handle.method,
8881
8897
  format: handle.format
8882
8898
  }).then(function (res) {
8883
- _this7.changeLoading(false);
8899
+ _this8.changeLoading(false);
8884
8900
  if (res.rCode === 0) {
8885
- _this7.$message({
8901
+ _this8.$message({
8886
8902
  message: handle.text + '\u6210\u529F',
8887
8903
  duration: 2000,
8888
8904
  type: 'success',
@@ -8890,17 +8906,17 @@ var mainvue_type_script_lang_js_components;
8890
8906
  var first = Object.prototype.hasOwnProperty.call(handle, 'first') ? handle.first : false;
8891
8907
  var reload = handle.reload || true;
8892
8908
  if (reload) {
8893
- _this7.reload({}, first);
8909
+ _this8.reload({}, first);
8894
8910
  }
8895
8911
  }
8896
8912
  });
8897
8913
  } else {
8898
- _this7.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8914
+ _this8.$message.error(res.msg || handle.text + '\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01');
8899
8915
  }
8900
8916
  }).catch(function (err) {
8901
- _this7.changeLoading(false);
8917
+ _this8.changeLoading(false);
8902
8918
  if (err.message && err.message !== 'canceled') {
8903
- _this7.$message.error(err.message);
8919
+ _this8.$message.error(err.message);
8904
8920
  }
8905
8921
  });
8906
8922
  },
@@ -8925,7 +8941,7 @@ var mainvue_type_script_lang_js_components;
8925
8941
  return data_table_src_mainvue_type_script_lang_js_extends({}, obj, item);
8926
8942
  },
8927
8943
  handleClick: function handleClick(res) {
8928
- var _this8 = this;
8944
+ var _this9 = this;
8929
8945
 
8930
8946
  var row = res.row,
8931
8947
  handle = res.handle;
@@ -8961,7 +8977,7 @@ var mainvue_type_script_lang_js_components;
8961
8977
  cancelButtonText: '取消',
8962
8978
  type: 'warning'
8963
8979
  }).then(function () {
8964
- _this8.handleAjax(handle, rows);
8980
+ _this9.handleAjax(handle, rows);
8965
8981
  }).catch(function () {});
8966
8982
  } else {
8967
8983
  this.handleAjax(handle, rows);
@@ -9154,40 +9170,40 @@ var mainvue_type_script_lang_js_components;
9154
9170
  }
9155
9171
  },
9156
9172
  resetHeight: function resetHeight(warn) {
9157
- var _this9 = this;
9173
+ var _this10 = this;
9158
9174
 
9159
9175
  this.$nextTick(function () {
9160
- if (_this9.full && !_this9.height && !_this9.maxHeight) {
9161
- var height = _this9.$el.parentNode.offsetHeight;
9176
+ if (_this10.full && !_this10.height && !_this10.maxHeight) {
9177
+ var height = _this10.$el.parentNode.offsetHeight;
9162
9178
  if (height) {
9163
- height = parseInt(utils_util["a" /* default */].getStyle(_this9.$el.parentNode, 'height', '%'), 10);
9164
- 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);
9165
- for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
9166
- var ele = _this9.$el.parentNode.childNodes[i];
9167
- if (ele !== _this9.$el && ele.offsetHeight !== undefined) {
9179
+ height = parseInt(utils_util["a" /* default */].getStyle(_this10.$el.parentNode, 'height', '%'), 10);
9180
+ 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);
9181
+ for (var i = 0; i < _this10.$el.parentNode.childNodes.length; i++) {
9182
+ var ele = _this10.$el.parentNode.childNodes[i];
9183
+ if (ele !== _this10.$el && ele.offsetHeight !== undefined) {
9168
9184
  height = height - ele.offsetHeight - parseInt(utils_util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(utils_util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
9169
9185
  }
9170
9186
  }
9171
- height -= _this9.showToolbar ? 45 : 0;
9172
- height -= _this9.page === false ? 0 : 46;
9173
- height -= _this9.title ? _this9.$refs.title.offsetHeight : 0;
9174
- height -= parseInt(utils_util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-top'), 10);
9175
- height -= parseInt(utils_util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-bottom'), 10);
9176
- var emptyText = _this9.$refs.esTableContent.querySelector('.el-table__empty-text');
9187
+ height -= _this10.showToolbar ? 45 : 0;
9188
+ height -= _this10.page === false ? 0 : 46;
9189
+ height -= _this10.title ? _this10.$refs.title.offsetHeight : 0;
9190
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-top'), 10);
9191
+ height -= parseInt(utils_util["a" /* default */].getStyle(_this10.$refs.esTableContent, 'padding-bottom'), 10);
9192
+ var emptyText = _this10.$refs.esTableContent.querySelector('.el-table__empty-text');
9177
9193
  var eht = 0;
9178
9194
  if (emptyText) {
9179
9195
  eht = emptyText.offsetHeight;
9180
- var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
9196
+ var thead = _this10.$refs.esTableContent.querySelector('.el-table__header');
9181
9197
  thead && (eht += thead.offsetHeight);
9182
9198
  }
9183
9199
  if (height > 1 && height - eht > 1) {
9184
- _this9.tableHeight = height;
9200
+ _this10.tableHeight = height;
9185
9201
  } else {
9186
- console.warn(_this9.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9202
+ console.warn(_this10.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
9187
9203
  }
9188
9204
  } else if (!warn) {
9189
9205
  setTimeout(function () {
9190
- _this9.resetHeight(true);
9206
+ _this10.resetHeight(true);
9191
9207
  }, 1000);
9192
9208
  }
9193
9209
  }
@@ -9215,12 +9231,12 @@ var mainvue_type_script_lang_js_components;
9215
9231
  this.$emit('sort-change', res);
9216
9232
  },
9217
9233
  mergeThead: function mergeThead(res) {
9218
- var _this10 = this;
9234
+ var _this11 = this;
9219
9235
 
9220
9236
  this.theadData = res;
9221
9237
  this.icon = true;
9222
9238
  setTimeout(function () {
9223
- _this10.show = true;
9239
+ _this11.show = true;
9224
9240
  }, 100);
9225
9241
  }
9226
9242
  }
@@ -9237,8 +9253,8 @@ var mainvue_type_script_lang_js_components;
9237
9253
 
9238
9254
  var data_table_src_main_component = normalizeComponent(
9239
9255
  packages_data_table_src_mainvue_type_script_lang_js_,
9240
- mainvue_type_template_id_5ae5ffe4_render,
9241
- mainvue_type_template_id_5ae5ffe4_staticRenderFns,
9256
+ mainvue_type_template_id_8d31e592_render,
9257
+ mainvue_type_template_id_8d31e592_staticRenderFns,
9242
9258
  false,
9243
9259
  null,
9244
9260
  null,
@@ -12636,8 +12652,8 @@ error_page_src_main.install = function (Vue) {
12636
12652
  };
12637
12653
 
12638
12654
  /* harmony default export */ var error_page = (error_page_src_main);
12639
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=57e29fe4&
12640
- var mainvue_type_template_id_57e29fe4_render = function () {
12655
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=d86ee862&
12656
+ var mainvue_type_template_id_d86ee862_render = function () {
12641
12657
  var _vm = this
12642
12658
  var _h = _vm.$createElement
12643
12659
  var _c = _vm._self._c || _h
@@ -23502,11 +23518,11 @@ var mainvue_type_template_id_57e29fe4_render = function () {
23502
23518
  )
23503
23519
  : _vm._e()
23504
23520
  }
23505
- var mainvue_type_template_id_57e29fe4_staticRenderFns = []
23506
- mainvue_type_template_id_57e29fe4_render._withStripped = true
23521
+ var mainvue_type_template_id_d86ee862_staticRenderFns = []
23522
+ mainvue_type_template_id_d86ee862_render._withStripped = true
23507
23523
 
23508
23524
 
23509
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=57e29fe4&
23525
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=d86ee862&
23510
23526
 
23511
23527
  // CONCATENATED MODULE: ./src/utils/rules.js
23512
23528
  // 手机号
@@ -28497,7 +28513,7 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28497
28513
  }
28498
28514
  var obj = JSON.parse(JSON.stringify(models));
28499
28515
  if (this.within) {
28500
- //within:把提交数据装到指定属性中
28516
+ //within:把提交数据装到指定属性中(分表)
28501
28517
  var newData = {};
28502
28518
  if (typeof this.within === 'string') {
28503
28519
  newData[this.within] = obj;
@@ -28580,8 +28596,8 @@ function src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function
28580
28596
 
28581
28597
  var form_src_main_component = normalizeComponent(
28582
28598
  packages_form_src_mainvue_type_script_lang_js_,
28583
- mainvue_type_template_id_57e29fe4_render,
28584
- mainvue_type_template_id_57e29fe4_staticRenderFns,
28599
+ mainvue_type_template_id_d86ee862_render,
28600
+ mainvue_type_template_id_d86ee862_staticRenderFns,
28585
28601
  false,
28586
28602
  null,
28587
28603
  null,
@@ -47258,8 +47274,8 @@ login_src_main.install = function (Vue) {
47258
47274
  };
47259
47275
 
47260
47276
  /* harmony default export */ var login = (login_src_main);
47261
- // 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=4b1d4233&
47262
- var mainvue_type_template_id_4b1d4233_render = function () {
47277
+ // 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=5d84af02&
47278
+ var mainvue_type_template_id_5d84af02_render = function () {
47263
47279
  var _vm = this
47264
47280
  var _h = _vm.$createElement
47265
47281
  var _c = _vm._self._c || _h
@@ -47684,11 +47700,11 @@ var mainvue_type_template_id_4b1d4233_render = function () {
47684
47700
  1
47685
47701
  )
47686
47702
  }
47687
- var mainvue_type_template_id_4b1d4233_staticRenderFns = []
47688
- mainvue_type_template_id_4b1d4233_render._withStripped = true
47703
+ var mainvue_type_template_id_5d84af02_staticRenderFns = []
47704
+ mainvue_type_template_id_5d84af02_render._withStripped = true
47689
47705
 
47690
47706
 
47691
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=4b1d4233&
47707
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=5d84af02&
47692
47708
 
47693
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/userinfo.vue?vue&type=template&id=799780ee&
47694
47710
  var userinfovue_type_template_id_799780ee_render = function () {
@@ -50093,13 +50109,9 @@ var log = utils_util["a" /* default */].getParams('console');
50093
50109
  };
50094
50110
  },
50095
50111
  created: function created() {
50112
+ this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : '';
50096
50113
  this.isHeader = utils_util["a" /* default */].getParams('header');
50097
50114
  this.getConfig();
50098
- if (this.remote) {
50099
- this.getMenu();
50100
- } else {
50101
- this.renderMenu();
50102
- }
50103
50115
  if (this.socket) {
50104
50116
  this.initWebSocket();
50105
50117
  }
@@ -50309,12 +50321,8 @@ var log = utils_util["a" /* default */].getParams('console');
50309
50321
  if (i === 'initApplication' && results[i]) {
50310
50322
  this.results[i] = results[i].split(',');
50311
50323
  }
50312
- if (this.loadHomePage) {
50313
- if (typeof this.loadHomePage === 'string') {
50314
- this.homePage = this.loadHomePage;
50315
- } else if (i === 'indexUrl') {
50316
- this.homePage = results[i];
50317
- }
50324
+ if (i === 'indexUrl' && this.loadHomePage) {
50325
+ this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : results[i];
50318
50326
  if (this.isHomePage && this.homePage) {
50319
50327
  if (this.menus && this.menus.length) {
50320
50328
  var ids = null;
@@ -50327,7 +50335,6 @@ var log = utils_util["a" /* default */].getParams('console');
50327
50335
  this.setMenu(this.menus);
50328
50336
  }
50329
50337
  }
50330
- //this.isHomePage && this.handleJump(this.homePage);
50331
50338
  }
50332
50339
  if (i === 'doorIndex' && results[i]) {
50333
50340
  window.open(results[i]);
@@ -50366,11 +50373,21 @@ var log = utils_util["a" /* default */].getParams('console');
50366
50373
  if (utils_util["a" /* default */].getStorage('mainConfig')) {
50367
50374
  var results = JSON.parse(utils_util["a" /* default */].getStorage('mainConfig'));
50368
50375
  this.setConfig(results);
50376
+ if (this.remote) {
50377
+ this.getMenu();
50378
+ } else {
50379
+ this.renderMenu();
50380
+ }
50369
50381
  return true;
50370
50382
  }
50371
50383
  utils_util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
50372
50384
  if (res && res.rCode === 0) {
50373
50385
  _this3.setConfig(res.results, 1);
50386
+ if (_this3.remote) {
50387
+ _this3.getMenu();
50388
+ } else {
50389
+ _this3.renderMenu();
50390
+ }
50374
50391
  } else {
50375
50392
  var msg = res.msg || '系统错误,请联系管理员!';
50376
50393
  _this3.$message.error(msg);
@@ -51415,8 +51432,8 @@ var log = utils_util["a" /* default */].getParams('console');
51415
51432
 
51416
51433
  var main_src_main_component = normalizeComponent(
51417
51434
  packages_main_src_mainvue_type_script_lang_js_,
51418
- mainvue_type_template_id_4b1d4233_render,
51419
- mainvue_type_template_id_4b1d4233_staticRenderFns,
51435
+ mainvue_type_template_id_5d84af02_render,
51436
+ mainvue_type_template_id_5d84af02_staticRenderFns,
51420
51437
  false,
51421
51438
  null,
51422
51439
  null,
@@ -70580,7 +70597,7 @@ if (typeof window !== 'undefined' && window.Vue) {
70580
70597
  }
70581
70598
 
70582
70599
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
70583
- version: '0.4.87',
70600
+ version: '0.4.88',
70584
70601
  install: install,
70585
70602
  Button: packages_button,
70586
70603
  ButtonGroup: button_group,
package/lib/form.js CHANGED
@@ -3430,7 +3430,7 @@ module.exports = require("axios");
3430
3430
  // ESM COMPAT FLAG
3431
3431
  __webpack_require__.r(__webpack_exports__);
3432
3432
 
3433
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=57e29fe4&
3433
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=d86ee862&
3434
3434
  var render = function () {
3435
3435
  var _vm = this
3436
3436
  var _h = _vm.$createElement
@@ -14300,7 +14300,7 @@ var staticRenderFns = []
14300
14300
  render._withStripped = true
14301
14301
 
14302
14302
 
14303
- // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=57e29fe4&
14303
+ // CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=d86ee862&
14304
14304
 
14305
14305
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
14306
14306
  var regenerator_ = __webpack_require__(9);
@@ -19285,7 +19285,7 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
19285
19285
  }
19286
19286
  var obj = JSON.parse(JSON.stringify(models));
19287
19287
  if (this.within) {
19288
- //within:把提交数据装到指定属性中
19288
+ //within:把提交数据装到指定属性中(分表)
19289
19289
  var newData = {};
19290
19290
  if (typeof this.within === 'string') {
19291
19291
  newData[this.within] = obj;