eoss-ui 0.4.90 → 0.4.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.
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/input.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/login.js CHANGED
@@ -448,11 +448,11 @@ var ajax = function ajax(_ref) {
448
448
  }
449
449
  if (method === 'post' && format) {
450
450
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
451
- if (!header['content-type']) {
451
+ if (!header['content-type'] && !header['Content-Type']) {
452
452
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
453
453
  }
454
454
  } else {
455
- if (!header['content-type']) {
455
+ if (!header['content-type'] && !header['Content-Type']) {
456
456
  header['content-type'] = 'application/json;charset=UTF-8';
457
457
  }
458
458
  }
package/lib/main.js CHANGED
@@ -448,11 +448,11 @@ var ajax = function ajax(_ref) {
448
448
  }
449
449
  if (method === 'post' && format) {
450
450
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
451
- if (!header['content-type']) {
451
+ if (!header['content-type'] && !header['Content-Type']) {
452
452
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
453
453
  }
454
454
  } else {
455
- if (!header['content-type']) {
455
+ if (!header['content-type'] && !header['Content-Type']) {
456
456
  header['content-type'] = 'application/json;charset=UTF-8';
457
457
  }
458
458
  }
@@ -3484,7 +3484,7 @@ module.exports = require("stompjs");
3484
3484
  // ESM COMPAT FLAG
3485
3485
  __webpack_require__.r(__webpack_exports__);
3486
3486
 
3487
- // 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=6641fcac&
3487
+ // 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=08b696ec&
3488
3488
  var render = function () {
3489
3489
  var _vm = this
3490
3490
  var _h = _vm.$createElement
@@ -3914,7 +3914,7 @@ var staticRenderFns = []
3914
3914
  render._withStripped = true
3915
3915
 
3916
3916
 
3917
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=6641fcac&
3917
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=08b696ec&
3918
3918
 
3919
3919
  // 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&
3920
3920
  var userinfovue_type_template_id_799780ee_render = function () {
@@ -6454,32 +6454,32 @@ var log = util["a" /* default */].getParams('console');
6454
6454
  this.navIds = ids;
6455
6455
  this.setTitle(ids[0]);
6456
6456
  }
6457
+ } else if (sessionStorage.getItem('jump') && this.history) {
6458
+ var _ids = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6459
+ if (_ids) {
6460
+ this.defaultActive = _ids;
6461
+ this.navIds = _ids;
6462
+ this.setTitle(_ids[0]);
6463
+ }
6457
6464
  } else if (util["a" /* default */].win.location.hash) {
6458
6465
  var hash = util["a" /* default */].win.location.hash;
6459
6466
  if (hash) {
6460
6467
  hash = hash.split('?')[0];
6461
6468
  }
6462
6469
  if (hash !== '#/' && hash !== '#/main') {
6463
- var _ids = this.getId(this.menus, util["a" /* default */].win.location.hash, true);
6464
- if (_ids) {
6465
- this.defaultActive = _ids;
6466
- this.navIds = _ids;
6467
- this.setTitle(_ids[0]);
6468
- }
6469
- } else if (sessionStorage.getItem('jump') && this.history) {
6470
- var _ids2 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6470
+ var _ids2 = this.getId(this.menus, util["a" /* default */].win.location.hash, true);
6471
6471
  if (_ids2) {
6472
6472
  this.defaultActive = _ids2;
6473
6473
  this.navIds = _ids2;
6474
6474
  this.setTitle(_ids2[0]);
6475
6475
  }
6476
- }
6477
- } else if (sessionStorage.getItem('jump') && this.history) {
6478
- var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6479
- if (_ids3) {
6480
- this.defaultActive = _ids3;
6481
- this.navIds = _ids3;
6482
- this.setTitle(_ids3[0]);
6476
+ } else if (sessionStorage.getItem('jump') && this.history) {
6477
+ var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6478
+ if (_ids3) {
6479
+ this.defaultActive = _ids3;
6480
+ this.navIds = _ids3;
6481
+ this.setTitle(_ids3[0]);
6482
+ }
6483
6483
  }
6484
6484
  }
6485
6485
  this.setMenu(this.menus);
@@ -6718,32 +6718,32 @@ var log = util["a" /* default */].getParams('console');
6718
6718
  if (ids) {
6719
6719
  _this5.defaultActive = ids;
6720
6720
  }
6721
+ } else if (sessionStorage.getItem('jump') && _this5.history) {
6722
+ var _ids4 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6723
+ if (_ids4) {
6724
+ _this5.defaultActive = _ids4;
6725
+ _this5.navIds = _ids4;
6726
+ _this5.setTitle(_ids4[0]);
6727
+ }
6721
6728
  } else if (util["a" /* default */].win.location.hash) {
6722
6729
  var hash = util["a" /* default */].win.location.hash;
6723
6730
  if (hash) {
6724
6731
  hash = hash.split('?')[0];
6725
6732
  }
6726
6733
  if (hash !== '#/' && hash !== '#/main') {
6727
- var _ids4 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
6728
- if (_ids4) {
6729
- _this5.defaultActive = _ids4;
6730
- _this5.navIds = _ids4;
6731
- _this5.setTitle(_ids4[0]);
6732
- }
6733
- } else if (sessionStorage.getItem('jump') && _this5.history) {
6734
- var _ids5 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6734
+ var _ids5 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
6735
6735
  if (_ids5) {
6736
6736
  _this5.defaultActive = _ids5;
6737
6737
  _this5.navIds = _ids5;
6738
6738
  _this5.setTitle(_ids5[0]);
6739
6739
  }
6740
- }
6741
- } else if (sessionStorage.getItem('jump') && _this5.history) {
6742
- var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6743
- if (_ids6) {
6744
- _this5.defaultActive = _ids6;
6745
- _this5.navIds = _ids6;
6746
- _this5.setTitle(_ids6[0]);
6740
+ } else if (sessionStorage.getItem('jump') && _this5.history) {
6741
+ var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6742
+ if (_ids6) {
6743
+ _this5.defaultActive = _ids6;
6744
+ _this5.navIds = _ids6;
6745
+ _this5.setTitle(_ids6[0]);
6746
+ }
6747
6747
  }
6748
6748
  }
6749
6749
  _this5.setTips(_this5.menus);
package/lib/nav.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/page.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/player.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/qr-code.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/select.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/selector.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/sizer.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/steps.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/switch.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/table-form.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/tabs.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/tips.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/tree-group.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -3419,7 +3419,7 @@ module.exports = require("json-bigint");
3419
3419
  // ESM COMPAT FLAG
3420
3420
  __webpack_require__.r(__webpack_exports__);
3421
3421
 
3422
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=11d86630&
3422
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/main.vue?vue&type=template&id=29d92df1&
3423
3423
  var render = function () {
3424
3424
  var _vm = this
3425
3425
  var _h = _vm.$createElement
@@ -3462,6 +3462,10 @@ var render = function () {
3462
3462
  },
3463
3463
  },
3464
3464
  _vm._l(_vm.tabs, function (item, index) {
3465
+ var arguments$1 = arguments
3466
+ var i = arguments.length,
3467
+ argsArray = Array(i)
3468
+ while (i--) argsArray[i] = arguments[i]
3465
3469
  return _c(
3466
3470
  "el-tab-pane",
3467
3471
  {
@@ -3477,9 +3481,24 @@ var render = function () {
3477
3481
  ref: item.ref ? item.ref : "groupTree" + index,
3478
3482
  refInFor: true,
3479
3483
  on: {
3480
- "node-click": _vm.handleNodeClick,
3481
- "check-change": _vm.handleCheckChange,
3482
- "current-first": _vm.handleCurrentFirst,
3484
+ "node-click": function (data, node) {
3485
+ _vm.handleNodeClick(data, node, item)
3486
+ },
3487
+ "check-change": function () {
3488
+ _vm.handleCheckChange.apply(
3489
+ void 0,
3490
+ arguments$1.concat([item])
3491
+ )
3492
+ },
3493
+ results: function (res) {
3494
+ _vm.handleResults(res, item)
3495
+ },
3496
+ "sub-results": function (res) {
3497
+ _vm.handleSubResults(res, item)
3498
+ },
3499
+ "current-first": function (type, res) {
3500
+ _vm.handleCurrentFirst(type, res, item)
3501
+ },
3483
3502
  },
3484
3503
  },
3485
3504
  "es-tree",
@@ -3537,6 +3556,7 @@ var render = function () {
3537
3556
  "check-change": _vm.handleCheckChange,
3538
3557
  results: _vm.handleResults,
3539
3558
  "sub-results": _vm.handleSubResults,
3559
+ "current-first": _vm.handleCurrentFirst,
3540
3560
  },
3541
3561
  },
3542
3562
  "es-tree",
@@ -3732,7 +3752,7 @@ var staticRenderFns = []
3732
3752
  render._withStripped = true
3733
3753
 
3734
3754
 
3735
- // CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=11d86630&
3755
+ // CONCATENATED MODULE: ./packages/tree-group/src/main.vue?vue&type=template&id=29d92df1&
3736
3756
 
3737
3757
  // EXTERNAL MODULE: ./src/utils/util.js
3738
3758
  var util = __webpack_require__(0);
@@ -3888,6 +3908,29 @@ var util = __webpack_require__(0);
3888
3908
  //
3889
3909
  //
3890
3910
  //
3911
+ //
3912
+ //
3913
+ //
3914
+ //
3915
+ //
3916
+ //
3917
+ //
3918
+ //
3919
+ //
3920
+ //
3921
+ //
3922
+ //
3923
+ //
3924
+ //
3925
+ //
3926
+ //
3927
+ //
3928
+ //
3929
+ //
3930
+ //
3931
+ //
3932
+ //
3933
+ //
3891
3934
 
3892
3935
 
3893
3936
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
@@ -4128,14 +4171,14 @@ var util = __webpack_require__(0);
4128
4171
  handleSelect: function handleSelect() {
4129
4172
  this.$emit('tab-click', this.tabs[parseInt(this.active, 10)]);
4130
4173
  },
4131
- handleNodeClick: function handleNodeClick(data, node) {
4174
+ handleNodeClick: function handleNodeClick(data, node, tabs) {
4132
4175
  if (this.clickedAsSearch) {
4133
4176
  this.checkeds = data;
4134
4177
  }
4135
4178
  if (this.onNodeClick) {
4136
- this.onNodeClick(this, data, node);
4179
+ this.onNodeClick(this, data, node, tabs);
4137
4180
  } else {
4138
- this.$emit('node-click', this, data, node);
4181
+ this.$emit('node-click', this, data, node, tabs);
4139
4182
  }
4140
4183
  },
4141
4184
  handleCheckChange: function handleCheckChange() {
@@ -4157,14 +4200,14 @@ var util = __webpack_require__(0);
4157
4200
  this.checkeds = res;
4158
4201
  this.$emit('enterprise-confirm', res);
4159
4202
  },
4160
- handleResults: function handleResults(res) {
4203
+ handleResults: function handleResults(res, tabs) {
4161
4204
  if (this.tree.showCheckbox && this.tree.checkedFirst && this.checkedAsSearch || this.tree.currentFirst) {
4162
4205
  this.checkeds = res[0];
4163
4206
  }
4164
- this.$emit('results', res);
4207
+ this.$emit('results', res, tabs);
4165
4208
  },
4166
- handleSubResults: function handleSubResults(res) {
4167
- this.$emit('sub-results', res);
4209
+ handleSubResults: function handleSubResults(res, tabs) {
4210
+ this.$emit('sub-results', res, tabs);
4168
4211
  },
4169
4212
  setCurrentKey: function setCurrentKey(keys, leafOnly) {
4170
4213
  var _this2 = this;
@@ -4177,6 +4220,9 @@ var util = __webpack_require__(0);
4177
4220
  getTree: function getTree() {
4178
4221
  var ref = this.tabs && this.tabs.length ? this.tabs[Number(this.active)].ref ? this.tabs[Number(this.active)].ref : 'groupTree' + this.active : 'groupTree';
4179
4222
  return this.$refs[ref];
4223
+ },
4224
+ handleCurrentFirst: function handleCurrentFirst(type, res, tabs) {
4225
+ this.$emit('current-first', type, res, tabs);
4180
4226
  }
4181
4227
  }
4182
4228
  });
package/lib/tree.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -3419,7 +3419,7 @@ module.exports = require("json-bigint");
3419
3419
  // ESM COMPAT FLAG
3420
3420
  __webpack_require__.r(__webpack_exports__);
3421
3421
 
3422
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=1caf3025&
3422
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/main.vue?vue&type=template&id=ad13099c&
3423
3423
  var render = function () {
3424
3424
  var _vm = this
3425
3425
  var _h = _vm.$createElement
@@ -3613,7 +3613,7 @@ var staticRenderFns = []
3613
3613
  render._withStripped = true
3614
3614
 
3615
3615
 
3616
- // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=1caf3025&
3616
+ // CONCATENATED MODULE: ./packages/tree/src/main.vue?vue&type=template&id=ad13099c&
3617
3617
 
3618
3618
  // EXTERNAL MODULE: ./src/config/api.js
3619
3619
  var api = __webpack_require__(1);
@@ -3781,10 +3781,6 @@ var util = __webpack_require__(0);
3781
3781
  type: String,
3782
3782
  default: api["H" /* getOrgMainTree */]
3783
3783
  },
3784
- currentFirstNode: {
3785
- type: Boolean,
3786
- default: false
3787
- },
3788
3784
  system: {
3789
3785
  type: Boolean,
3790
3786
  default: false
@@ -4014,6 +4010,7 @@ var util = __webpack_require__(0);
4014
4010
  if (_this.currentFirst) {
4015
4011
  var currentNode = treeList[0].id;
4016
4012
  if (!_this.currentNodeKey && _this.currentNodeKey != 0) {
4013
+ _this.$emit('current-first', 'current', treeList[0]);
4017
4014
  _this.$nextTick(function () {
4018
4015
  _this.$refs.oaTree.setCurrentKey(currentNode);
4019
4016
  });
@@ -4022,6 +4019,7 @@ var util = __webpack_require__(0);
4022
4019
  if (_this.checkedFirst) {
4023
4020
  var checkedNode = treeList[0].id;
4024
4021
  if (_this.defaultCheckedKeys && _this.defaultCheckedKeys.indexOf(checkedNode) == -1) {
4022
+ _this.$emit('current-first', 'checked', treeList[0]);
4025
4023
  _this.checkedKeys = [checkedNode];
4026
4024
  }
4027
4025
  }
package/lib/upload.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }