eoss-ui 0.5.69 → 0.5.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/lib/button-group.js +34 -36
  2. package/lib/button.js +34 -36
  3. package/lib/checkbox-group.js +70 -56
  4. package/lib/data-table-form.js +37 -39
  5. package/lib/data-table.js +59 -59
  6. package/lib/date-picker.js +34 -36
  7. package/lib/dialog.js +49 -51
  8. package/lib/eoss-ui.common.js +665 -573
  9. package/lib/flow-group.js +34 -36
  10. package/lib/flow-list.js +36 -38
  11. package/lib/flow.js +40 -42
  12. package/lib/form.js +410 -376
  13. package/lib/handle-user.js +36 -38
  14. package/lib/handler.js +34 -36
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +34 -36
  17. package/lib/input.js +65 -48
  18. package/lib/layout.js +2 -2
  19. package/lib/login.js +54 -55
  20. package/lib/main.js +39 -41
  21. package/lib/menu.js +5 -4
  22. package/lib/nav.js +34 -36
  23. package/lib/page.js +34 -36
  24. package/lib/player.js +34 -36
  25. package/lib/qr-code.js +34 -36
  26. package/lib/radio-group.js +69 -53
  27. package/lib/retrial-auth.js +34 -36
  28. package/lib/select-ganged.js +122 -106
  29. package/lib/select.js +115 -105
  30. package/lib/selector-panel.js +90 -76
  31. package/lib/selector.js +34 -36
  32. package/lib/sizer.js +36 -38
  33. package/lib/steps.js +60 -44
  34. package/lib/switch.js +34 -36
  35. package/lib/table-form.js +36 -38
  36. package/lib/tabs.js +34 -36
  37. package/lib/theme-chalk/index.css +1 -1
  38. package/lib/theme-chalk/login.css +1 -1
  39. package/lib/tips.js +59 -42
  40. package/lib/tree-group.js +34 -36
  41. package/lib/tree.js +93 -77
  42. package/lib/upload.js +111 -94
  43. package/lib/utils/util.js +34 -36
  44. package/lib/wujie.js +34 -36
  45. package/lib/wxlogin.js +34 -36
  46. package/package.json +2 -2
  47. package/packages/checkbox-group/src/main.vue +7 -1
  48. package/packages/data-table/src/main.vue +4 -2
  49. package/packages/dialog/src/main.vue +2 -3
  50. package/packages/form/src/main.vue +11 -2
  51. package/packages/input/src/main.vue +8 -1
  52. package/packages/login/src/main.vue +15 -11
  53. package/packages/menu/src/main.vue +3 -2
  54. package/packages/radio-group/src/main.vue +7 -1
  55. package/packages/select/src/main.vue +10 -10
  56. package/packages/select-ganged/src/main.vue +7 -1
  57. package/packages/selector-panel/src/main.vue +7 -1
  58. package/packages/steps/src/main.vue +9 -3
  59. package/packages/theme-chalk/lib/index.css +1 -1
  60. package/packages/theme-chalk/lib/login.css +1 -1
  61. package/packages/theme-chalk/src/login.scss +1 -1
  62. package/packages/tips/src/main.vue +8 -1
  63. package/packages/tree/src/main.vue +8 -2
  64. package/packages/upload/src/main.vue +11 -2
  65. package/src/index.js +1 -1
  66. package/src/utils/util.js +34 -34
package/lib/select.js CHANGED
@@ -154,21 +154,17 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
154
154
  * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
155
155
  **/
156
156
  // 请求
157
- var pendingRequest = new Map();
158
- function getRequestKey(config) {
159
- var method = config.method,
160
- url = config.url,
161
- params = config.params,
162
- data = config.data;
163
-
164
- return [method, url, qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(params), qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data)].join('&');
165
- };
166
- function delPendingRequest(config) {
167
- var requestKey = getRequestKey(config);
168
- if (pendingRequest.has(requestKey)) {
169
- pendingRequest.delete(requestKey);
170
- }
171
- }
157
+ // const pendingRequest = new Map();
158
+ // function getRequestKey(config) {
159
+ // const { method, url, params, data } = config;
160
+ // return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
161
+ // };
162
+ // function delPendingRequest(config) {
163
+ // let requestKey = getRequestKey(config);
164
+ // if (pendingRequest.has(requestKey)) {
165
+ // pendingRequest.delete(requestKey);
166
+ // }
167
+ // }
172
168
  var ajax = function ajax(_ref) {
173
169
  var headers = _ref.headers,
174
170
  method = _ref.method,
@@ -217,30 +213,32 @@ var ajax = function ajax(_ref) {
217
213
  http.interceptors.request.use(function (config) {
218
214
  config.headers.common = getStorage();
219
215
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
220
- var requestKey = getRequestKey(config);
221
- // 判断请求是否重复
222
- if (pendingRequest.has(requestKey)) {
223
- // 取消上次请求
224
- var cancel = pendingRequest.get(requestKey);
225
- cancel();
226
- // 删除请求信息
227
- pendingRequest.delete(requestKey);
228
- }
229
- // 把请求信息,添加请求到map当中
230
- // 生成取消方法
231
- config.cancelToken = config.cancelToken || new axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken(function (cancel) {
232
- // 把取消方法添加到map
233
- if (!pendingRequest.has(requestKey)) {
234
- pendingRequest.set(requestKey, cancel);
235
- }
236
- });
216
+ // let requestKey = getRequestKey(config);
217
+ // // 判断请求是否重复
218
+ // if (pendingRequest.has(requestKey)) {
219
+ // // 取消上次请求
220
+ // let cancel = pendingRequest.get(requestKey);
221
+ // cancel();
222
+ // // 删除请求信息
223
+ // pendingRequest.delete(requestKey);
224
+ // }
225
+ // // 把请求信息,添加请求到map当中
226
+ // // 生成取消方法
227
+ // config.cancelToken =
228
+ // config.cancelToken ||
229
+ // new axios.CancelToken(cancel => {
230
+ // // 把取消方法添加到map
231
+ // if (!pendingRequest.has(requestKey)) {
232
+ // pendingRequest.set(requestKey, cancel);
233
+ // }
234
+ // });
237
235
  return config;
238
236
  }, function (err) {
239
237
  return err;
240
238
  });
241
239
  // 响应拦截
242
240
  http.interceptors.response.use(function (response) {
243
- delPendingRequest(response.config);
241
+ // delPendingRequest(response.config);
244
242
  loading && loading.close();
245
243
  if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
246
244
  if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
@@ -357,9 +355,9 @@ var ajax = function ajax(_ref) {
357
355
  }
358
356
  }, function (error) {
359
357
  loading && loading.close();
360
- if (!axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error)) {
361
- delPendingRequest(error.config || {});
362
- }
358
+ // if (!axios.isCancel(error)) {
359
+ // delPendingRequest(error.config || {});
360
+ // }
363
361
  if (error && error.response) {
364
362
  if (error.response.status) {
365
363
  switch (error.response.status) {
@@ -3498,6 +3496,13 @@ module.exports = require("sm-crypto");
3498
3496
  /***/ }),
3499
3497
 
3500
3498
  /***/ 11:
3499
+ /***/ (function(module, exports) {
3500
+
3501
+ module.exports = require("throttle-debounce");
3502
+
3503
+ /***/ }),
3504
+
3505
+ /***/ 12:
3501
3506
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3502
3507
 
3503
3508
  "use strict";
@@ -3525,11 +3530,11 @@ window.__store = store;
3525
3530
 
3526
3531
  /***/ }),
3527
3532
 
3528
- /***/ 14:
3533
+ /***/ 15:
3529
3534
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3530
3535
 
3531
3536
  "use strict";
3532
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
3537
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3533
3538
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3534
3539
 
3535
3540
 
@@ -3537,7 +3542,7 @@ window.__store = store;
3537
3542
 
3538
3543
  /***/ }),
3539
3544
 
3540
- /***/ 15:
3545
+ /***/ 16:
3541
3546
  /***/ (function(module, exports) {
3542
3547
 
3543
3548
  module.exports = require("vue");
@@ -3820,14 +3825,17 @@ __webpack_require__.r(__webpack_exports__);
3820
3825
  // EXTERNAL MODULE: ./src/config/api.js
3821
3826
  var api = __webpack_require__(1);
3822
3827
 
3828
+ // EXTERNAL MODULE: external "throttle-debounce"
3829
+ var external_throttle_debounce_ = __webpack_require__(11);
3830
+
3823
3831
  // EXTERNAL MODULE: ./src/utils/store.js
3824
- var store = __webpack_require__(11);
3832
+ var store = __webpack_require__(12);
3825
3833
 
3826
3834
  // EXTERNAL MODULE: ./src/utils/util.js
3827
3835
  var util = __webpack_require__(0);
3828
3836
 
3829
3837
  // EXTERNAL MODULE: ./src/utils/bus.js
3830
- var bus = __webpack_require__(14);
3838
+ var bus = __webpack_require__(15);
3831
3839
 
3832
3840
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/main.vue?vue&type=script&lang=js&
3833
3841
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -3838,6 +3846,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3838
3846
 
3839
3847
 
3840
3848
 
3849
+
3841
3850
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3842
3851
  name: 'EsSelect',
3843
3852
  componentName: 'EsSelect',
@@ -3908,10 +3917,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3908
3917
  remoteMethod: Function,
3909
3918
  // 选择项远程地址
3910
3919
  url: String,
3911
- wait: {
3912
- type: Boolean,
3913
- default: true
3914
- },
3915
3920
  // 选择项获取代码表数据(优先级大于url)
3916
3921
  sysCode: String,
3917
3922
  filtrate: [String, Object, Array],
@@ -4035,6 +4040,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4035
4040
  immediate: true,
4036
4041
  handler: function handler(val, old) {
4037
4042
  if (val && val !== old) {
4043
+ console.log(1);
4038
4044
  this.label = this.service ? 'label' : 'shortName';
4039
4045
  this.valKey = this.service ? 'value' : 'cciValue';
4040
4046
  var options = store["a" /* default */].get(val);
@@ -4056,6 +4062,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4056
4062
  param: {
4057
4063
  deep: true,
4058
4064
  handler: function handler(val, old) {
4065
+ console.log(3);
4059
4066
  if (this.url && JSON.stringify(val) !== JSON.stringify(old)) {
4060
4067
  this.options = [];
4061
4068
  this.getData(this.sysCode);
@@ -4063,18 +4070,21 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4063
4070
  }
4064
4071
  }
4065
4072
  },
4073
+ beforeCreate: function beforeCreate() {
4074
+ var _this2 = this;
4075
+
4076
+ this.getData = Object(external_throttle_debounce_["debounce"])(500, function (sysCode, param, reload) {
4077
+ _this2.getDatas(sysCode, param, reload);
4078
+ });
4079
+ },
4066
4080
  created: function created() {
4067
4081
  this.bindEventBus();
4068
4082
  },
4069
- mounted: function mounted() {
4070
- if (this.wait) {
4071
- this.getData();
4072
- }
4073
- },
4083
+ mounted: function mounted() {},
4074
4084
 
4075
4085
  methods: {
4076
4086
  createOption: function createOption(_ref) {
4077
- var _this2 = this;
4087
+ var _this3 = this;
4078
4088
 
4079
4089
  var filtrate = _ref.filtrate,
4080
4090
  data = _ref.data,
@@ -4085,23 +4095,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4085
4095
  var filte = filtrate && util["a" /* default */].isObject(filtrate) ? filtrate[this.valKey] : filtrate;
4086
4096
  var eles = [];
4087
4097
  data.forEach(function (item) {
4088
- if (_this2.models === undefined && item.selected) {
4089
- _this2.$emit('input', _this2.valueType === 'object' ? item : item[_this2.valKey]);
4098
+ if (_this3.models === undefined && item.selected) {
4099
+ _this3.$emit('input', _this3.valueType === 'object' ? item : item[_this3.valKey]);
4090
4100
  }
4091
4101
  if ((Object.prototype.hasOwnProperty.call(item, 'children') || Object.prototype.hasOwnProperty.call(item, 'options')) && (item.children || item.options)) {
4092
4102
  var children = item.children || item.options;
4093
4103
  if (readonly) {
4094
- eles.push(_this2.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h }));
4104
+ eles.push(_this3.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h }));
4095
4105
  } else {
4096
- eles.push(h('el-option-group', { attrs: { label: item[_this2.label] || item.label } }, _this2.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h })));
4106
+ eles.push(h('el-option-group', { attrs: { label: item[_this3.label] || item.label } }, _this3.createOption({ filtrate: filtrate, data: children, readonly: readonly, h: h })));
4097
4107
  }
4098
4108
  } else {
4099
4109
  if (readonly) {
4100
- if (item[_this2.valKey] === filte) {
4101
- eles.push(item[_this2.label] || item.label);
4110
+ if (item[_this3.valKey] === filte) {
4111
+ eles.push(item[_this3.label] || item.label);
4102
4112
  }
4103
4113
  } else {
4104
- if (filte === null || filte === undefined || filte === '' || filte === item[_this2.filtrateKey]) {
4114
+ if (filte === null || filte === undefined || filte === '' || filte === item[_this3.filtrateKey]) {
4105
4115
  if (typeof item === 'string') {
4106
4116
  eles.push(h('el-option', {
4107
4117
  attrs: {
@@ -4110,7 +4120,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4110
4120
  }
4111
4121
  }));
4112
4122
  } else {
4113
- var content = [item[_this2.label] || item.label];
4123
+ var content = [item[_this3.label] || item.label];
4114
4124
  if (item.render) {
4115
4125
  content = [item.render(h, item)];
4116
4126
  }
@@ -4122,8 +4132,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4122
4132
  }
4123
4133
  eles.push(h('el-option', {
4124
4134
  attrs: {
4125
- label: item[_this2.label] || item.label,
4126
- value: _this2.isObject ? item : item[_this2.valKey],
4135
+ label: item[_this3.label] || item.label,
4136
+ value: _this3.isObject ? item : item[_this3.valKey],
4127
4137
  disabled: item.disabled
4128
4138
  }
4129
4139
  }, content));
@@ -4134,8 +4144,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4134
4144
  });
4135
4145
  return eles;
4136
4146
  },
4137
- getData: function getData(sysCode, param, reload) {
4138
- var _this3 = this;
4147
+ getDatas: function getDatas(sysCode, param, reload) {
4148
+ var _this4 = this;
4139
4149
 
4140
4150
  if (!reload && (!this.ajax || !this.isNoParamRequest && Object.keys(this.param).length == 0)) {
4141
4151
  return false;
@@ -4156,35 +4166,35 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4156
4166
  params: params,
4157
4167
  data: params
4158
4168
  }).then(function (res) {
4159
- _this3.loading = false;
4160
- _this3.canceled = false;
4169
+ _this4.loading = false;
4170
+ _this4.canceled = false;
4161
4171
  if (res.rCode === 0) {
4162
- if (_this3.parseData) {
4163
- _this3.options = _this3.parseData(JSON.parse(JSON.stringify(res.results)));
4172
+ if (_this4.parseData) {
4173
+ _this4.options = _this4.parseData(JSON.parse(JSON.stringify(res.results)));
4164
4174
  } else {
4165
- _this3.options = JSON.parse(JSON.stringify(res.results));
4175
+ _this4.options = JSON.parse(JSON.stringify(res.results));
4166
4176
  }
4167
- if (sysCode || _this3.dataKey) {
4168
- bus["a" /* default */].$emit(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
4169
- store["a" /* default */].set(sysCode, JSON.parse(JSON.stringify(_this3.options)));
4177
+ if (sysCode || _this4.dataKey) {
4178
+ bus["a" /* default */].$emit(sysCode || _this4.dataKey, JSON.parse(JSON.stringify(_this4.options)));
4179
+ store["a" /* default */].set(sysCode, JSON.parse(JSON.stringify(_this4.options)));
4170
4180
  }
4171
4181
  } else {
4172
- _this3.$message.error(res.msg);
4182
+ _this4.$message.error(res.msg);
4173
4183
  }
4174
4184
  }).catch(function (err) {
4175
- _this3.loading = false;
4185
+ _this4.loading = false;
4176
4186
  if (err.message) {
4177
4187
  if (err.message !== 'canceled') {
4178
- _this3.$message.error(err.message);
4188
+ _this4.$message.error(err.message);
4179
4189
  }
4180
4190
  if (err.message === 'canceled' && sysCode) {
4181
- _this3.canceled = true;
4191
+ _this4.canceled = true;
4182
4192
  }
4183
4193
  }
4184
4194
  });
4185
4195
  },
4186
4196
  search: function search(query) {
4187
- var _this4 = this;
4197
+ var _this5 = this;
4188
4198
 
4189
4199
  if (query && query !== '') {
4190
4200
  if (this.url && this.url !== '') {
@@ -4198,14 +4208,14 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4198
4208
  params: params,
4199
4209
  data: params
4200
4210
  }).then(function (res) {
4201
- _this4.loading = false;
4211
+ _this5.loading = false;
4202
4212
  if (res.rCode === 0) {
4203
- _this4.options = JSON.parse(JSON.stringify(res.results));
4213
+ _this5.options = JSON.parse(JSON.stringify(res.results));
4204
4214
  }
4205
4215
  }).catch(function (err) {
4206
- _this4.loading = false;
4216
+ _this5.loading = false;
4207
4217
  if (err.message && err.message !== 'canceled') {
4208
- _this4.$message.error(err.message);
4218
+ _this5.$message.error(err.message);
4209
4219
  }
4210
4220
  });
4211
4221
  } else {
@@ -4216,7 +4226,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4216
4226
  }
4217
4227
  },
4218
4228
  renderd: function renderd(doms, h, type) {
4219
- var _this5 = this;
4229
+ var _this6 = this;
4220
4230
 
4221
4231
  if (typeof this.$attrs[type] === 'boolean') {
4222
4232
  if (this.$attrs.render) {
@@ -4241,8 +4251,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4241
4251
  domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
4242
4252
  on: {
4243
4253
  click: function click(e) {
4244
- _this5.$attrs[type].click && _this5.$attrs[type].click(_this5, _this5.model);
4245
- _this5.$attrs[type].event && _this5.$attrs[type].event(_this5, _this5.model);
4254
+ _this6.$attrs[type].click && _this6.$attrs[type].click(_this6, _this6.model);
4255
+ _this6.$attrs[type].event && _this6.$attrs[type].event(_this6, _this6.model);
4246
4256
  }
4247
4257
  },
4248
4258
  ref: 'selectBtn'
@@ -4296,7 +4306,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4296
4306
 
4297
4307
  //请求子节点数据
4298
4308
  loadsub: function loadsub(data, node) {
4299
- var _this6 = this;
4309
+ var _this7 = this;
4300
4310
 
4301
4311
  if (data.state !== '' && (!data.children || data.children.length === 0)) {
4302
4312
  var param = {};
@@ -4313,13 +4323,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4313
4323
  }
4314
4324
  if (this.onLoadsub) {
4315
4325
  this.onLoadsub({ data: data, params: params, node: node }).then(function (res) {
4316
- _this6.loading = false;
4317
- _this6.$set(data, 'children', JSON.parse(JSON.stringify(res)));
4318
- if (_this6.dataKey && _this6.esForm) {
4319
- _this6.esForm.setSysCodes(_this6.dataKey, JSON.parse(JSON.stringify(_this6.options)));
4326
+ _this7.loading = false;
4327
+ _this7.$set(data, 'children', JSON.parse(JSON.stringify(res)));
4328
+ if (_this7.dataKey && _this7.esForm) {
4329
+ _this7.esForm.setSysCodes(_this7.dataKey, JSON.parse(JSON.stringify(_this7.options)));
4320
4330
  }
4321
4331
  }).catch(function (e) {
4322
- _this6.loading = false;
4332
+ _this7.loading = false;
4323
4333
  });
4324
4334
  } else {
4325
4335
  util["a" /* default */].ajax({
@@ -4329,27 +4339,27 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4329
4339
  params: params
4330
4340
  }).then(function (res) {
4331
4341
  if (res.rCode === 0) {
4332
- _this6.loading = false;
4342
+ _this7.loading = false;
4333
4343
  var results = JSON.parse(JSON.stringify(res.results));
4334
4344
  if (Array.isArray(results)) {
4335
4345
  if (data.id === results[0].id) {
4336
- _this6.$set(data, 'children', results[0].children);
4346
+ _this7.$set(data, 'children', results[0].children);
4337
4347
  } else {
4338
- _this6.$set(data, 'children', results);
4348
+ _this7.$set(data, 'children', results);
4339
4349
  }
4340
4350
  } else if (data.id === results.id) {
4341
- _this6.$set(data, 'children', results.children);
4351
+ _this7.$set(data, 'children', results.children);
4342
4352
  } else {
4343
4353
  console.error('tree数据格式错误');
4344
4354
  }
4345
- if (_this6.dataKey && _this6.esForm) {
4346
- _this6.esForm.setSysCodes(_this6.dataKey, JSON.parse(JSON.stringify(_this6.options)));
4355
+ if (_this7.dataKey && _this7.esForm) {
4356
+ _this7.esForm.setSysCodes(_this7.dataKey, JSON.parse(JSON.stringify(_this7.options)));
4347
4357
  }
4348
4358
  }
4349
4359
  }).catch(function (err) {
4350
- _this6.loading = false;
4360
+ _this7.loading = false;
4351
4361
  if (err.message && err.message !== 'canceled') {
4352
- _this6.$message.error(err.message);
4362
+ _this7.$message.error(err.message);
4353
4363
  }
4354
4364
  });
4355
4365
  }
@@ -4372,7 +4382,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4372
4382
  this.unbindEventBus();
4373
4383
  },
4374
4384
  render: function render(h) {
4375
- var _this7 = this;
4385
+ var _this8 = this;
4376
4386
 
4377
4387
  if (!this.hide) {
4378
4388
  if (this.readonly) {
@@ -4380,12 +4390,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4380
4390
  if (Array.isArray(this.models)) {
4381
4391
  dom = this.models.map(function (item) {
4382
4392
  if (util["a" /* default */].isObject(item)) {
4383
- if (!item[_this7.label] && !item.label) {
4384
- return _this7.getLabel(value[_this7.valKey], data);
4393
+ if (!item[_this8.label] && !item.label) {
4394
+ return _this8.getLabel(value[_this8.valKey], data);
4385
4395
  }
4386
- return item[_this7.label] || item.label;
4396
+ return item[_this8.label] || item.label;
4387
4397
  }
4388
- return _this7.getLabel(item, _this7.results);
4398
+ return _this8.getLabel(item, _this8.results);
4389
4399
  });
4390
4400
  } else if (util["a" /* default */].isObject(this.models)) {
4391
4401
  if (!this.models[this.label] && !this.models.label) {
@@ -4411,10 +4421,10 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4411
4421
  doms = this.filtrate.map(function (item) {
4412
4422
  return h('el-option-group', {
4413
4423
  attrs: {
4414
- label: item[_this7.label] || item.label,
4415
- key: item[_this7.valKey]
4424
+ label: item[_this8.label] || item.label,
4425
+ key: item[_this8.valKey]
4416
4426
  }
4417
- }, _this7.createOption({ filtrate: item, data: _this7.results, h: h }));
4427
+ }, _this8.createOption({ filtrate: item, data: _this8.results, h: h }));
4418
4428
  });
4419
4429
  } else {
4420
4430
  doms = this.createOption({