eoss-ui 0.5.91 → 0.5.92

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/main.js CHANGED
@@ -8581,8 +8581,8 @@ var online_component = Object(componentNormalizer["a" /* default */])(
8581
8581
  )
8582
8582
 
8583
8583
  /* harmony default export */ var online = (online_component.exports);
8584
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=template&id=fa3bcf48&
8585
- var searchvue_type_template_id_fa3bcf48_render = function () {
8584
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=template&id=4c2b6f24&
8585
+ var searchvue_type_template_id_4c2b6f24_render = function () {
8586
8586
  var _vm = this
8587
8587
  var _h = _vm.$createElement
8588
8588
  var _c = _vm._self._c || _h
@@ -8992,11 +8992,11 @@ var searchvue_type_template_id_fa3bcf48_render = function () {
8992
8992
  1
8993
8993
  )
8994
8994
  }
8995
- var searchvue_type_template_id_fa3bcf48_staticRenderFns = []
8996
- searchvue_type_template_id_fa3bcf48_render._withStripped = true
8995
+ var searchvue_type_template_id_4c2b6f24_staticRenderFns = []
8996
+ searchvue_type_template_id_4c2b6f24_render._withStripped = true
8997
8997
 
8998
8998
 
8999
- // CONCATENATED MODULE: ./packages/main/src/public/search.vue?vue&type=template&id=fa3bcf48&
8999
+ // CONCATENATED MODULE: ./packages/main/src/public/search.vue?vue&type=template&id=4c2b6f24&
9000
9000
 
9001
9001
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=script&lang=js&
9002
9002
  var searchvue_type_script_lang_js_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; };
@@ -9234,7 +9234,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
9234
9234
  _this.searchAll(res);
9235
9235
  });
9236
9236
  this.handleSearchd = Object(external_throttle_debounce_["debounce"])(500, function (obj, index) {
9237
- _this.handleSearch(obj, index);
9237
+ _this.handleSearch(obj, index, false);
9238
9238
  });
9239
9239
  },
9240
9240
  created: function created() {
@@ -9329,7 +9329,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
9329
9329
  this.$set(this.noMore, item.id || String(i), true);
9330
9330
  } else if (item.dataRequestUrl) {
9331
9331
  this.isLoading = true;
9332
- this.handleSearch(item, i);
9332
+ this.handleSearch(item, i, true);
9333
9333
  } else {
9334
9334
  this.types[i].records = [];
9335
9335
  this.types[i].totalCount = 0;
@@ -9367,7 +9367,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
9367
9367
  });
9368
9368
  return records;
9369
9369
  },
9370
- handleSearch: function handleSearch(obj, index) {
9370
+ handleSearch: function handleSearch(obj, index, reset) {
9371
9371
  var _this4 = this;
9372
9372
 
9373
9373
  if (obj.pageNum < obj.pageCount && this.keyWords) {
@@ -9403,7 +9403,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
9403
9403
  obj.totalCount = results.totalCount;
9404
9404
  obj.pageCount = results.pageCount;
9405
9405
  obj.pageNum = results.pageNum;
9406
- obj.records = obj.records.concat(results.records);
9406
+ obj.records = reset ? results.records : obj.records.concat(results.records);
9407
9407
  _this4.$set(_this4.noMore, obj.id || String(index), results.pageNum >= results.pageCount);
9408
9408
  } else {
9409
9409
  _this4.types[index].records = [];
@@ -9453,8 +9453,8 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
9453
9453
 
9454
9454
  var search_component = Object(componentNormalizer["a" /* default */])(
9455
9455
  public_searchvue_type_script_lang_js_,
9456
- searchvue_type_template_id_fa3bcf48_render,
9457
- searchvue_type_template_id_fa3bcf48_staticRenderFns,
9456
+ searchvue_type_template_id_4c2b6f24_render,
9457
+ searchvue_type_template_id_4c2b6f24_staticRenderFns,
9458
9458
  false,
9459
9459
  null,
9460
9460
  null,
@@ -3947,7 +3947,7 @@ module.exports = require("sortablejs");
3947
3947
  // ESM COMPAT FLAG
3948
3948
  __webpack_require__.r(__webpack_exports__);
3949
3949
 
3950
- // 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=6fde3a69&
3950
+ // 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=1990039f&
3951
3951
  var render = function () {
3952
3952
  var _vm = this
3953
3953
  var _h = _vm.$createElement
@@ -4214,7 +4214,7 @@ var staticRenderFns = []
4214
4214
  render._withStripped = true
4215
4215
 
4216
4216
 
4217
- // CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=6fde3a69&
4217
+ // CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=1990039f&
4218
4218
 
4219
4219
  // 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&
4220
4220
  var treevue_type_template_id_24ad732a_render = function () {
@@ -5506,11 +5506,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5506
5506
  this.nodeData = this.trees[active].nodeData;
5507
5507
  } else {
5508
5508
  if (typeof this.selection === 'string') {
5509
+ var params = this.param[this.activeName] ? this.param[this.activeName] : this.param;
5509
5510
  util["a" /* default */].ajax({
5510
5511
  method: this.method,
5511
5512
  url: this.host + this.selection,
5512
- params: this.param,
5513
- data: this.param
5513
+ params: params,
5514
+ data: params
5514
5515
  }).then(function (res) {
5515
5516
  if (res.rCode === 0) {
5516
5517
  _this3.selections = JSON.parse(JSON.stringify(res.results));
@@ -5530,7 +5531,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5530
5531
  getTreeData: function getTreeData(url, params, id) {
5531
5532
  var _this4 = this;
5532
5533
 
5533
- var data = util["a" /* default */].extend({}, params, this.param);
5534
+ var data = util["a" /* default */].extend({}, params, this.param[this.activeName] ? this.param[this.activeName] : this.param);
5534
5535
  if (id !== undefined) {
5535
5536
  data.id = id;
5536
5537
  }
@@ -5559,7 +5560,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5559
5560
  if (flag) {
5560
5561
  if (data.selection === undefined || data.selection.length === 0) {
5561
5562
  this.checkAll = false;
5562
- var params = util["a" /* default */].extend({}, this.param);
5563
+ var params = util["a" /* default */].extend({}, this.param[this.activeName] ? this.param[this.activeName] : this.param);
5563
5564
  params.type = this.activeName;
5564
5565
  params.mid = data.id;
5565
5566
  if (this.activeName === 'enterprise') {
@@ -5600,7 +5601,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
5600
5601
  data.state = '';
5601
5602
  }
5602
5603
  if (data.state !== '' && (!data.children || data.children.length === 0)) {
5603
- var _params = util["a" /* default */].extend({}, this.newTabs[this.activeName].param, this.param);
5604
+ var _params = util["a" /* default */].extend({}, this.newTabs[this.activeName].param, this.param[this.activeName] ? this.param[this.activeName] : this.param);
5604
5605
  _params.id = data.id;
5605
5606
  util["a" /* default */].ajax({
5606
5607
  method: this.method,
package/lib/selector.js CHANGED
@@ -3771,7 +3771,7 @@ module.exports = require("axios");
3771
3771
  // ESM COMPAT FLAG
3772
3772
  __webpack_require__.r(__webpack_exports__);
3773
3773
 
3774
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=b8fc187a&
3774
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=495533b9&
3775
3775
  var render = function () {
3776
3776
  var _vm = this
3777
3777
  var _h = _vm.$createElement
@@ -4294,6 +4294,7 @@ var render = function () {
4294
4294
  isShowLevel3: _vm.isShowLevel3,
4295
4295
  },
4296
4296
  on: {
4297
+ tabschage: _vm.tabschage,
4297
4298
  "!click": function ($event) {
4298
4299
  return _vm.stopd($event)
4299
4300
  },
@@ -4327,7 +4328,7 @@ var staticRenderFns = []
4327
4328
  render._withStripped = true
4328
4329
 
4329
4330
 
4330
- // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=b8fc187a&
4331
+ // CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=495533b9&
4331
4332
 
4332
4333
  // EXTERNAL MODULE: ./src/utils/util.js
4333
4334
  var util = __webpack_require__(0);
@@ -4552,6 +4553,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
4552
4553
  //
4553
4554
  //
4554
4555
  //
4556
+ //
4555
4557
 
4556
4558
 
4557
4559
 
@@ -4877,6 +4879,9 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
4877
4879
  handleBlur: function handleBlur() {
4878
4880
  this.focus = false;
4879
4881
  },
4882
+ tabschage: function tabschage(trees, active) {
4883
+ this.$emit('tabs-change', trees, active);
4884
+ },
4880
4885
  handleClose: function handleClose(res) {
4881
4886
  if (!this.multiple && this.selected[0] === this.words) {
4882
4887
  this.selected = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.91",
3
+ "version": "0.5.92",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -235,7 +235,7 @@ export default {
235
235
  this.searchAll(res);
236
236
  });
237
237
  this.handleSearchd = debounce(500, (obj, index) => {
238
- this.handleSearch(obj, index);
238
+ this.handleSearch(obj, index, false);
239
239
  });
240
240
  },
241
241
  created() {
@@ -335,7 +335,7 @@ export default {
335
335
  this.$set(this.noMore, item.id || String(i), true);
336
336
  } else if (item.dataRequestUrl) {
337
337
  this.isLoading = true;
338
- this.handleSearch(item, i);
338
+ this.handleSearch(item, i, true);
339
339
  } else {
340
340
  this.types[i].records = [];
341
341
  this.types[i].totalCount = 0;
@@ -371,7 +371,7 @@ export default {
371
371
  });
372
372
  return records;
373
373
  },
374
- handleSearch(obj, index) {
374
+ handleSearch(obj, index, reset) {
375
375
  if (obj.pageNum < obj.pageCount && this.keyWords) {
376
376
  this.$set(this.loadings, obj.id || String(index), true);
377
377
  if (this.active == '0') {
@@ -406,7 +406,9 @@ export default {
406
406
  obj.totalCount = results.totalCount;
407
407
  obj.pageCount = results.pageCount;
408
408
  obj.pageNum = results.pageNum;
409
- obj.records = obj.records.concat(results.records);
409
+ obj.records = reset
410
+ ? results.records
411
+ : obj.records.concat(results.records);
410
412
  this.$set(
411
413
  this.noMore,
412
414
  obj.id || String(index),
@@ -203,6 +203,7 @@
203
203
  :type="types"
204
204
  :mix="mix"
205
205
  :isShowLevel3="isShowLevel3"
206
+ @tabschage="tabschage"
206
207
  @click.capture="stopd"
207
208
  @confirm="handleConfirm"
208
209
  @cancel="handleCancel"
@@ -536,6 +537,9 @@ export default {
536
537
  handleBlur() {
537
538
  this.focus = false;
538
539
  },
540
+ tabschage(trees, active) {
541
+ this.$emit('tabs-change', trees, active);
542
+ },
539
543
  handleClose(res) {
540
544
  if (!this.multiple && this.selected[0] === this.words) {
541
545
  this.selected = [];
@@ -652,12 +652,15 @@ export default {
652
652
  this.nodeData = this.trees[active].nodeData;
653
653
  } else {
654
654
  if (typeof this.selection === 'string') {
655
+ let params = this.param[this.activeName]
656
+ ? this.param[this.activeName]
657
+ : this.param;
655
658
  util
656
659
  .ajax({
657
660
  method: this.method,
658
661
  url: this.host + this.selection,
659
- params: this.param,
660
- data: this.param
662
+ params: params,
663
+ data: params
661
664
  })
662
665
  .then((res) => {
663
666
  if (res.rCode === 0) {
@@ -677,7 +680,11 @@ export default {
677
680
  }
678
681
  },
679
682
  getTreeData(url, params, id) {
680
- let data = util.extend({}, params, this.param);
683
+ let data = util.extend(
684
+ {},
685
+ params,
686
+ this.param[this.activeName] ? this.param[this.activeName] : this.param
687
+ );
681
688
  if (id !== undefined) {
682
689
  data.id = id;
683
690
  }
@@ -715,7 +722,12 @@ export default {
715
722
  if (flag) {
716
723
  if (data.selection === undefined || data.selection.length === 0) {
717
724
  this.checkAll = false;
718
- let params = util.extend({}, this.param);
725
+ let params = util.extend(
726
+ {},
727
+ this.param[this.activeName]
728
+ ? this.param[this.activeName]
729
+ : this.param
730
+ );
719
731
  params.type = this.activeName;
720
732
  params.mid = data.id;
721
733
  if (this.activeName === 'enterprise') {
@@ -772,7 +784,9 @@ export default {
772
784
  let params = util.extend(
773
785
  {},
774
786
  this.newTabs[this.activeName].param,
775
- this.param
787
+ this.param[this.activeName]
788
+ ? this.param[this.activeName]
789
+ : this.param
776
790
  );
777
791
  params.id = data.id;
778
792
  util
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.91',
124
+ version: '0.5.92',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,