eoss-ui 0.8.39 → 0.8.40

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 (41) hide show
  1. package/lib/eoss-ui.common.js +736 -1086
  2. package/lib/flow-list.js +83 -22
  3. package/lib/flow.js +167 -111
  4. package/lib/index.js +1 -1
  5. package/lib/selector-panel.js +189 -110
  6. package/lib/selector.js +164 -700
  7. package/lib/theme-chalk/flow-list.css +1 -1
  8. package/lib/theme-chalk/flow.css +1 -1
  9. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  10. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  11. package/lib/theme-chalk/form.css +1 -1
  12. package/lib/theme-chalk/index.css +1 -1
  13. package/lib/theme-chalk/selector-panel.css +1 -1
  14. package/lib/theme-chalk/selector.css +1 -1
  15. package/lib/theme-chalk/tree.css +1 -1
  16. package/package.json +2 -2
  17. package/packages/flow/src/flow.vue +26 -11
  18. package/packages/flow/src/main.vue +10 -5
  19. package/packages/flow/src/selectUser.vue +1 -0
  20. package/packages/flow-list/src/main.vue +72 -14
  21. package/packages/selector/src/main.vue +120 -269
  22. package/packages/selector-panel/src/main.vue +1071 -1036
  23. package/packages/selector-panel/src/tree.vue +24 -18
  24. package/packages/theme-chalk/lib/flow-list.css +1 -1
  25. package/packages/theme-chalk/lib/flow.css +1 -1
  26. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  27. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  28. package/packages/theme-chalk/lib/form.css +1 -1
  29. package/packages/theme-chalk/lib/index.css +1 -1
  30. package/packages/theme-chalk/lib/selector-panel.css +1 -1
  31. package/packages/theme-chalk/lib/selector.css +1 -1
  32. package/packages/theme-chalk/lib/tree.css +1 -1
  33. package/packages/theme-chalk/src/flow-list.scss +61 -55
  34. package/packages/theme-chalk/src/flow.scss +16 -2
  35. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  36. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  37. package/packages/theme-chalk/src/form.scss +5 -1
  38. package/packages/theme-chalk/src/selector-panel.scss +36 -6
  39. package/packages/theme-chalk/src/selector.scss +66 -115
  40. package/packages/theme-chalk/src/tree.scss +1 -1
  41. package/src/index.js +1 -1
@@ -4713,7 +4713,7 @@ module.exports = require("sortablejs");
4713
4713
  // ESM COMPAT FLAG
4714
4714
  __webpack_require__.r(__webpack_exports__);
4715
4715
 
4716
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=4765b5a0&
4716
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=17c26d73&
4717
4717
  var render = function () {
4718
4718
  var _vm = this
4719
4719
  var _h = _vm.$createElement
@@ -4748,7 +4748,11 @@ var render = function () {
4748
4748
  [
4749
4749
  _vm.isShowTree
4750
4750
  ? _c("tree", {
4751
- attrs: { data: items.data, loading: _vm.loading },
4751
+ attrs: {
4752
+ "tree-title": _vm.treeTitle,
4753
+ data: items.data,
4754
+ loading: _vm.loading,
4755
+ },
4752
4756
  on: { loadsub: _vm.loadsub, search: _vm.searchTree },
4753
4757
  })
4754
4758
  : _vm._e(),
@@ -4773,6 +4777,16 @@ var render = function () {
4773
4777
  [
4774
4778
  _c(
4775
4779
  "el-form-item",
4780
+ {
4781
+ directives: [
4782
+ {
4783
+ name: "show",
4784
+ rawName: "v-show",
4785
+ value: _vm.showSwitch,
4786
+ expression: "showSwitch",
4787
+ },
4788
+ ],
4789
+ },
4776
4790
  [
4777
4791
  _c("es-switch", {
4778
4792
  attrs: { data: _vm.options },
@@ -4924,6 +4938,41 @@ var render = function () {
4924
4938
  expression: "checkeds",
4925
4939
  },
4926
4940
  }),
4941
+ _c(
4942
+ "div",
4943
+ { staticClass: "es-selector-selection-divider" },
4944
+ [
4945
+ _c(
4946
+ "el-button",
4947
+ {
4948
+ attrs: { type: "text", size: "small" },
4949
+ on: { click: _vm.handleDelete },
4950
+ },
4951
+ [
4952
+ _c("i", { staticClass: "el-icon-delete" }),
4953
+ _vm._v("清空"),
4954
+ ]
4955
+ ),
4956
+ _vm.multiple && _vm.checkeds.length > 0
4957
+ ? _c(
4958
+ "span",
4959
+ { staticClass: "es-selector-selection-count" },
4960
+ [
4961
+ _vm._v("\n 已选:\n "),
4962
+ _c(
4963
+ "span",
4964
+ {
4965
+ staticClass:
4966
+ "es-selector-selection-count-num",
4967
+ },
4968
+ [_vm._v(_vm._s(_vm.checkeds.length))]
4969
+ ),
4970
+ ]
4971
+ )
4972
+ : _vm._e(),
4973
+ ],
4974
+ 1
4975
+ ),
4927
4976
  _c("selection", {
4928
4977
  attrs: {
4929
4978
  genre: "delete",
@@ -4957,19 +5006,6 @@ var render = function () {
4957
5006
  "div",
4958
5007
  { staticClass: "es-selector-handle" },
4959
5008
  [
4960
- _vm.multiple && _vm.checkeds.length > 0
4961
- ? _c(
4962
- "span",
4963
- { staticStyle: { "margin-right": "20px", color: "red" } },
4964
- [
4965
- _vm._v(
4966
- "\n 已选 " +
4967
- _vm._s(_vm.checkeds.length) +
4968
- "\n "
4969
- ),
4970
- ]
4971
- )
4972
- : _vm._e(),
4973
5009
  _c(
4974
5010
  "el-button",
4975
5011
  {
@@ -4996,10 +5032,10 @@ var staticRenderFns = []
4996
5032
  render._withStripped = true
4997
5033
 
4998
5034
 
4999
- // CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=4765b5a0&
5035
+ // CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=17c26d73&
5000
5036
 
5001
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/tree.vue?vue&type=template&id=24ad732a&
5002
- var treevue_type_template_id_24ad732a_render = function () {
5037
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/tree.vue?vue&type=template&id=3d3025d8&
5038
+ var treevue_type_template_id_3d3025d8_render = function () {
5003
5039
  var _vm = this
5004
5040
  var _h = _vm.$createElement
5005
5041
  var _c = _vm._self._c || _h
@@ -5007,35 +5043,41 @@ var treevue_type_template_id_24ad732a_render = function () {
5007
5043
  "div",
5008
5044
  { staticClass: "es-selector-tree" },
5009
5045
  [
5010
- _c(
5011
- "el-input",
5012
- {
5013
- staticClass: "es-selector-tree-search",
5014
- attrs: { placeholder: "请输入搜索关键字" },
5015
- on: { change: _vm.handleChangeSearch },
5016
- model: {
5017
- value: _vm.seachkey,
5018
- callback: function ($$v) {
5019
- _vm.seachkey = $$v
5020
- },
5021
- expression: "seachkey",
5022
- },
5023
- },
5024
- [
5025
- _c(
5026
- "template",
5027
- { slot: "append" },
5028
- [
5029
- _c("el-button", {
5030
- attrs: { icon: "el-icon-search", type: "primary" },
5031
- on: { click: _vm.handleSearch },
5032
- }),
5033
- ],
5034
- 1
5035
- ),
5036
- ],
5037
- 2
5038
- ),
5046
+ _vm.treeTitle
5047
+ ? _c("div", { staticClass: "es-selector-tree-title" }, [
5048
+ _vm._v("\n " + _vm._s(_vm.treeTitle) + "\n "),
5049
+ ])
5050
+ : [
5051
+ _c(
5052
+ "el-input",
5053
+ {
5054
+ staticClass: "es-selector-tree-search",
5055
+ attrs: { placeholder: "请输入搜索关键字" },
5056
+ on: { change: _vm.handleChangeSearch },
5057
+ model: {
5058
+ value: _vm.searchkey,
5059
+ callback: function ($$v) {
5060
+ _vm.searchkey = $$v
5061
+ },
5062
+ expression: "searchkey",
5063
+ },
5064
+ },
5065
+ [
5066
+ _c(
5067
+ "template",
5068
+ { slot: "append" },
5069
+ [
5070
+ _c("el-button", {
5071
+ attrs: { icon: "el-icon-search", type: "primary" },
5072
+ on: { click: _vm.handleSearch },
5073
+ }),
5074
+ ],
5075
+ 1
5076
+ ),
5077
+ ],
5078
+ 2
5079
+ ),
5080
+ ],
5039
5081
  _c(
5040
5082
  "div",
5041
5083
  {
@@ -5129,14 +5171,14 @@ var treevue_type_template_id_24ad732a_render = function () {
5129
5171
  1
5130
5172
  ),
5131
5173
  ],
5132
- 1
5174
+ 2
5133
5175
  )
5134
5176
  }
5135
- var treevue_type_template_id_24ad732a_staticRenderFns = []
5136
- treevue_type_template_id_24ad732a_render._withStripped = true
5177
+ var treevue_type_template_id_3d3025d8_staticRenderFns = []
5178
+ treevue_type_template_id_3d3025d8_render._withStripped = true
5137
5179
 
5138
5180
 
5139
- // CONCATENATED MODULE: ./packages/selector-panel/src/tree.vue?vue&type=template&id=24ad732a&
5181
+ // CONCATENATED MODULE: ./packages/selector-panel/src/tree.vue?vue&type=template&id=3d3025d8&
5140
5182
 
5141
5183
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/tree.vue?vue&type=script&lang=js&
5142
5184
  //
@@ -5204,10 +5246,16 @@ treevue_type_template_id_24ad732a_render._withStripped = true
5204
5246
  //
5205
5247
  //
5206
5248
  //
5249
+ //
5250
+ //
5251
+ //
5252
+ //
5253
+ //
5207
5254
 
5208
5255
  /* harmony default export */ var treevue_type_script_lang_js_ = ({
5209
5256
  name: 'Tree',
5210
5257
  props: {
5258
+ treeTitle: String,
5211
5259
  data: {
5212
5260
  type: [Array, Object],
5213
5261
  default: function _default() {
@@ -5229,7 +5277,7 @@ treevue_type_template_id_24ad732a_render._withStripped = true
5229
5277
  label: 'name',
5230
5278
  children: 'children'
5231
5279
  },
5232
- seachkey: '',
5280
+ searchkey: '',
5233
5281
  chooseNode: ''
5234
5282
  };
5235
5283
  },
@@ -5258,13 +5306,13 @@ treevue_type_template_id_24ad732a_render._withStripped = true
5258
5306
  this.$emit('load', node, resolve);
5259
5307
  },
5260
5308
  handleChangeSearch: function handleChangeSearch() {
5261
- if (this.seachkey === '') {
5309
+ if (this.searchkey === '') {
5262
5310
  this.$emit('search', '');
5263
5311
  }
5264
5312
  },
5265
5313
  handleSearch: function handleSearch() {
5266
- if (this.seachkey !== '') {
5267
- this.$emit('search', this.seachkey);
5314
+ if (this.searchkey !== '') {
5315
+ this.$emit('search', this.searchkey);
5268
5316
  }
5269
5317
  }
5270
5318
  }
@@ -5284,8 +5332,8 @@ var componentNormalizer = __webpack_require__(3);
5284
5332
 
5285
5333
  var component = Object(componentNormalizer["a" /* default */])(
5286
5334
  src_treevue_type_script_lang_js_,
5287
- treevue_type_template_id_24ad732a_render,
5288
- treevue_type_template_id_24ad732a_staticRenderFns,
5335
+ treevue_type_template_id_3d3025d8_render,
5336
+ treevue_type_template_id_3d3025d8_staticRenderFns,
5289
5337
  false,
5290
5338
  null,
5291
5339
  null,
@@ -5784,6 +5832,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5784
5832
  //
5785
5833
  //
5786
5834
  //
5835
+ //
5836
+ //
5837
+ //
5838
+ //
5839
+ //
5840
+ //
5841
+ //
5842
+ //
5843
+ //
5844
+ //
5845
+ //
5846
+ //
5787
5847
 
5788
5848
 
5789
5849
 
@@ -5819,6 +5879,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5819
5879
  type: String,
5820
5880
  default: '560px'
5821
5881
  },
5882
+ treeTitle: String,
5822
5883
  //树结构
5823
5884
  tree: {
5824
5885
  type: Boolean,
@@ -5893,6 +5954,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5893
5954
  default: function _default() {
5894
5955
  return [];
5895
5956
  }
5957
+ },
5958
+ //是否显示切换按钮
5959
+ showSwitch: {
5960
+ type: Boolean,
5961
+ default: true
5896
5962
  }
5897
5963
  },
5898
5964
  data: function data() {
@@ -6306,6 +6372,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6306
6372
  getAjaxActive: function getAjaxActive(active) {
6307
6373
  var _this3 = this;
6308
6374
 
6375
+ console.log('getAjaxActive', active);
6309
6376
  if (this.isShowTree) {
6310
6377
  if ((!this.trees[active].data || this.trees[active].data && this.trees[active].data.length === 0) && this.newTabs[active].url) {
6311
6378
  this.loading = true;
@@ -6354,14 +6421,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6354
6421
  }
6355
6422
  util["a" /* default */].ajax({ method: this.method, url: url, params: data, data: data }).then(function (res) {
6356
6423
  if (res.rCode === 0) {
6357
- _this4.loading = false;
6358
6424
  if (!Object.prototype.hasOwnProperty.call(params, 'seachkey')) {
6359
6425
  _this4.$set(_this4.defaults[_this4.activeName], 'data', JSON.parse(JSON.stringify(res.results)));
6360
6426
  }
6427
+ console.log('res.results', res.results);
6361
6428
  if (res.results.length && res.results[0].name === '无搜索数据') {
6362
6429
  _this4.$set(_this4.trees[_this4.activeName], 'data', null);
6430
+ _this4.loading = false;
6363
6431
  } else {
6364
6432
  _this4.$set(_this4.trees[_this4.activeName], 'data', JSON.parse(JSON.stringify(res.results)));
6433
+ if (_this4.activeName === 'myemployee') {
6434
+ var _params = util["a" /* default */].extend({}, _this4.param[_this4.activeName] ? _this4.param[_this4.activeName] : _this4.param);
6435
+ _params.type = _this4.activeName;
6436
+ _params.mid = _this4.trees[_this4.activeName].data[0].id;
6437
+ _this4.getSelections(_params, _this4.trees[_this4.activeName].data[0]);
6438
+ } else {
6439
+ _this4.loading = false;
6440
+ }
6365
6441
  }
6366
6442
  }
6367
6443
  }).catch(function (err) {
@@ -6370,9 +6446,33 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6370
6446
  }
6371
6447
  });
6372
6448
  },
6373
- loadsub: function loadsub(data, node, flag) {
6449
+ getSelections: function getSelections(params, data) {
6374
6450
  var _this5 = this;
6375
6451
 
6452
+ util["a" /* default */].ajax({
6453
+ method: this.method,
6454
+ url: this.host + this.selection,
6455
+ params: params,
6456
+ data: params
6457
+ }).then(function (res) {
6458
+ if (res.rCode === 0) {
6459
+ data.selection = JSON.parse(JSON.stringify(res.results));
6460
+ _this5.$set(_this5.trees[_this5.activeName], 'selection', JSON.parse(JSON.stringify(res.results)));
6461
+ _this5.$set(_this5.trees[_this5.activeName], 'nodeData', data);
6462
+ _this5.nodeData = _this5.trees[_this5.activeName].nodeData;
6463
+ _this5.checkboxs = _this5.trees[_this5.activeName].selection;
6464
+ }
6465
+ }).catch(function (err) {
6466
+ if (err.message && err.message !== 'canceled') {
6467
+ _this5.$message.error(err.message);
6468
+ }
6469
+ }).finally(function () {
6470
+ _this5.loading = false;
6471
+ });
6472
+ },
6473
+ loadsub: function loadsub(data, node, flag) {
6474
+ var _this6 = this;
6475
+
6376
6476
  node;
6377
6477
  if (flag) {
6378
6478
  if (data.selection === undefined || data.selection.length === 0) {
@@ -6389,24 +6489,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6389
6489
  // if (this.activeName === 'department') {
6390
6490
  // params.querymode = 0;
6391
6491
  // }
6392
- util["a" /* default */].ajax({
6393
- method: this.method,
6394
- url: this.host + this.selection,
6395
- params: params,
6396
- data: params
6397
- }).then(function (res) {
6398
- if (res.rCode === 0) {
6399
- data.selection = JSON.parse(JSON.stringify(res.results));
6400
- _this5.$set(_this5.trees[_this5.activeName], 'selection', JSON.parse(JSON.stringify(res.results)));
6401
- _this5.$set(_this5.trees[_this5.activeName], 'nodeData', data);
6402
- _this5.nodeData = _this5.trees[_this5.activeName].nodeData;
6403
- _this5.checkboxs = _this5.trees[_this5.activeName].selection;
6404
- }
6405
- }).catch(function (err) {
6406
- if (err.message && err.message !== 'canceled') {
6407
- _this5.$message.error(err.message);
6408
- }
6409
- });
6492
+ this.getSelections(params, data);
6410
6493
  } else {
6411
6494
  this.trees[this.activeName].selection = data.selection;
6412
6495
  this.trees[this.activeName].nodeData = data;
@@ -6418,22 +6501,22 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6418
6501
  data.state = '';
6419
6502
  }
6420
6503
  if (data.state !== '' && (!data.children || data.children.length === 0)) {
6421
- var _params = util["a" /* default */].extend({}, this.newTabs[this.activeName].param, this.param[this.activeName] ? this.param[this.activeName] : this.param);
6422
- _params.id = data.id;
6504
+ var _params2 = util["a" /* default */].extend({}, this.newTabs[this.activeName].param, this.param[this.activeName] ? this.param[this.activeName] : this.param);
6505
+ _params2.id = data.id;
6423
6506
  util["a" /* default */].ajax({
6424
6507
  method: this.method,
6425
6508
  url: this.host + this.newTabs[this.activeName].url,
6426
- data: _params,
6427
- params: _params
6509
+ data: _params2,
6510
+ params: _params2
6428
6511
  }).then(function (res) {
6429
6512
  if (res.rCode === 0) {
6430
- _this5.loading = false;
6431
- _this5.$set(data, 'children', JSON.parse(JSON.stringify(res.results)));
6432
- _this5.$set(_this5.defaults[_this5.activeName], 'data', JSON.parse(JSON.stringify(_this5.trees[_this5.activeName].data)));
6513
+ _this6.loading = false;
6514
+ _this6.$set(data, 'children', JSON.parse(JSON.stringify(res.results)));
6515
+ _this6.$set(_this6.defaults[_this6.activeName], 'data', JSON.parse(JSON.stringify(_this6.trees[_this6.activeName].data)));
6433
6516
  }
6434
6517
  }).catch(function (err) {
6435
6518
  if (err.message && err.message !== 'canceled') {
6436
- _this5.$message.error(err.message);
6519
+ _this6.$message.error(err.message);
6437
6520
  }
6438
6521
  });
6439
6522
  }
@@ -6450,8 +6533,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6450
6533
  this.$set(this.trees[this.activeName], 'data', this.defaults[this.activeName].data);
6451
6534
  }
6452
6535
  },
6536
+ handleDelete: function handleDelete() {
6537
+ this.checkeds = [];
6538
+ },
6453
6539
  handleCheckAll: function handleCheckAll(res) {
6454
- var _this6 = this;
6540
+ var _this7 = this;
6455
6541
 
6456
6542
  if (this.checkboxs.length > 0) {
6457
6543
  var isObject = util["a" /* default */].isObject(this.checkboxs[0]);
@@ -6471,9 +6557,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6471
6557
  if (this.isShowTree) {
6472
6558
  this.nodeData.checkAll = false;
6473
6559
  this.checkboxs.forEach(function (element) {
6474
- for (var i in _this6.checkeds) {
6475
- if (isObject && _this6.checkeds[i][_this6.valueKey] === element[_this6.valueKey] || _this6.checkeds[i] === element) {
6476
- _this6.checkeds.splice(i, 1);
6560
+ for (var i in _this7.checkeds) {
6561
+ if (isObject && _this7.checkeds[i][_this7.valueKey] === element[_this7.valueKey] || _this7.checkeds[i] === element) {
6562
+ _this7.checkeds.splice(i, 1);
6477
6563
  break;
6478
6564
  }
6479
6565
  }
@@ -6492,7 +6578,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6492
6578
  this.$emit('filtratechage', this.trees, this.activeName);
6493
6579
  },
6494
6580
  handleChangeSearch: function handleChangeSearch() {
6495
- var _this7 = this;
6581
+ var _this8 = this;
6496
6582
 
6497
6583
  if (this.search === '') {
6498
6584
  if (this.isShowTree) {
@@ -6506,11 +6592,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6506
6592
  var arry = [];
6507
6593
  this.nodeData.selection.forEach(function (item) {
6508
6594
  if (util["a" /* default */].isObject(item)) {
6509
- if (item[_this7.labelKey].indexOf(_this7.search) > -1) {
6595
+ if (item[_this8.labelKey].indexOf(_this8.search) > -1) {
6510
6596
  arry.push(item);
6511
6597
  }
6512
6598
  } else {
6513
- if (item.indexOf(_this7.search) > -1) {
6599
+ if (item.indexOf(_this8.search) > -1) {
6514
6600
  arry.push(item);
6515
6601
  }
6516
6602
  }
@@ -6521,11 +6607,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6521
6607
  var _arry = [];
6522
6608
  this.selections.forEach(function (item) {
6523
6609
  if (util["a" /* default */].isObject(item)) {
6524
- if (item[_this7.labelKey].indexOf(_this7.search) > -1) {
6610
+ if (item[_this8.labelKey].indexOf(_this8.search) > -1) {
6525
6611
  _arry.push(item);
6526
6612
  }
6527
6613
  } else {
6528
- if (item.indexOf(_this7.search) > -1) {
6614
+ if (item.indexOf(_this8.search) > -1) {
6529
6615
  _arry.push(item);
6530
6616
  }
6531
6617
  }
@@ -6535,7 +6621,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6535
6621
  }
6536
6622
  },
6537
6623
  handleSearch: function handleSearch() {
6538
- var _this8 = this;
6624
+ var _this9 = this;
6539
6625
 
6540
6626
  if (this.isShowTree) {
6541
6627
  if (this.nodeData && this.nodeData.selection) {
@@ -6543,11 +6629,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6543
6629
  var arry = [];
6544
6630
  this.nodeData.selection.forEach(function (item) {
6545
6631
  if (util["a" /* default */].isObject(item)) {
6546
- if (item[_this8.labelKey].indexOf(_this8.search) > -1) {
6632
+ if (item[_this9.labelKey].indexOf(_this9.search) > -1) {
6547
6633
  arry.push(item);
6548
6634
  }
6549
6635
  } else {
6550
- if (item.indexOf(_this8.search) > -1) {
6636
+ if (item.indexOf(_this9.search) > -1) {
6551
6637
  arry.push(item);
6552
6638
  }
6553
6639
  }
@@ -6569,11 +6655,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6569
6655
  }
6570
6656
  }).then(function (res) {
6571
6657
  if (res.rCode === 0) {
6572
- _this8.checkboxs = JSON.parse(JSON.stringify(res.results));
6658
+ _this9.checkboxs = JSON.parse(JSON.stringify(res.results));
6573
6659
  }
6574
6660
  }).catch(function (err) {
6575
6661
  if (err.message && err.message !== 'canceled') {
6576
- _this8.$message.error(err.message);
6662
+ _this9.$message.error(err.message);
6577
6663
  }
6578
6664
  });
6579
6665
  }
@@ -6582,11 +6668,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6582
6668
  var _arry2 = [];
6583
6669
  this.selections.forEach(function (item) {
6584
6670
  if (util["a" /* default */].isObject(item)) {
6585
- if (item[_this8.labelKey].indexOf(_this8.search) > -1) {
6671
+ if (item[_this9.labelKey].indexOf(_this9.search) > -1) {
6586
6672
  _arry2.push(item);
6587
6673
  }
6588
6674
  } else {
6589
- if (item.indexOf(_this8.search) > -1) {
6675
+ if (item.indexOf(_this9.search) > -1) {
6590
6676
  _arry2.push(item);
6591
6677
  }
6592
6678
  }
@@ -6600,15 +6686,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6600
6686
  },
6601
6687
  handleChange: function handleChange() {},
6602
6688
  handleConfirm: function handleConfirm() {
6603
- if (!this.checkeds || this.multiple && this.checkeds.length === 0) {
6604
- this.$message({
6605
- message: '请选择',
6606
- type: 'warning'
6607
- });
6608
- } else {
6609
- this.$emit('input', this.checkeds);
6610
- this.$emit('confirm', this.checkeds);
6611
- }
6689
+ this.$emit('input', this.checkeds);
6690
+ this.$emit('confirm', this.checkeds);
6612
6691
  },
6613
6692
  handleCancel: function handleCancel() {
6614
6693
  this.$emit('cancel', false);