eoss-ui 0.5.13 → 0.5.15

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 (69) hide show
  1. package/lib/button-group.js +5 -1
  2. package/lib/button.js +7 -3
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +44 -22
  5. package/lib/data-table-form.js +8 -3
  6. package/lib/data-table.js +1205 -1517
  7. package/lib/date-picker.js +7 -3
  8. package/lib/dialog.js +14 -10
  9. package/lib/eoss-ui.common.js +1211 -1752
  10. package/lib/flow-group.js +5 -1
  11. package/lib/flow-list.js +7 -3
  12. package/lib/flow.js +12 -7
  13. package/lib/form.js +9 -10
  14. package/lib/handle-user.js +5 -1
  15. package/lib/handler.js +5 -1
  16. package/lib/icons.js +2 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +7 -3
  19. package/lib/input.js +7 -3
  20. package/lib/label.js +2 -2
  21. package/lib/layout.js +166 -152
  22. package/lib/login.js +5 -1
  23. package/lib/main.js +11 -6
  24. package/lib/menu.js +2 -2
  25. package/lib/nav.js +14 -10
  26. package/lib/notify.js +2 -2
  27. package/lib/page.js +7 -3
  28. package/lib/pagination.js +2 -2
  29. package/lib/player.js +13 -9
  30. package/lib/qr-code.js +9 -5
  31. package/lib/radio-group.js +48 -22
  32. package/lib/retrial-auth.js +7 -3
  33. package/lib/select-ganged.js +30 -6
  34. package/lib/select.js +46 -19
  35. package/lib/selector-panel.js +11 -6
  36. package/lib/selector.js +9 -5
  37. package/lib/sizer.js +7 -3
  38. package/lib/steps.js +14 -10
  39. package/lib/switch.js +7 -3
  40. package/lib/table-form.js +7 -3
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +7 -3
  43. package/lib/theme-chalk/data-table.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/tips.js +7 -3
  46. package/lib/toolbar.js +2 -2
  47. package/lib/tree-group.js +7 -3
  48. package/lib/tree.js +7 -3
  49. package/lib/upload.js +8 -4
  50. package/lib/utils/util.js +5 -1
  51. package/lib/wujie.js +7 -3
  52. package/lib/wxlogin.js +7 -3
  53. package/package.json +2 -2
  54. package/packages/checkbox-group/src/main.vue +20 -30
  55. package/packages/data-table/src/children.vue +4 -8
  56. package/packages/data-table/src/column.vue +524 -575
  57. package/packages/data-table/src/main.vue +95 -119
  58. package/packages/form/src/main.vue +2 -7
  59. package/packages/radio-group/src/main.vue +20 -30
  60. package/packages/select/src/main.vue +20 -29
  61. package/packages/select-ganged/src/main.vue +1 -3
  62. package/packages/theme-chalk/lib/data-table.css +1 -1
  63. package/packages/theme-chalk/lib/index.css +1 -1
  64. package/packages/theme-chalk/src/data-table.scss +2 -1
  65. package/src/index.js +1 -1
  66. package/src/utils/util.js +5 -1
  67. package/packages/data-table/src/column copy.vue +0 -977
  68. package/packages/data-table/src/main copy.vue +0 -1325
  69. package/packages/data-table/src/mixins/table.js +0 -12
package/lib/player.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 53);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 54);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3320,7 +3324,7 @@ module.exports = require("sm-crypto");
3320
3324
 
3321
3325
  /***/ }),
3322
3326
 
3323
- /***/ 18:
3327
+ /***/ 19:
3324
3328
  /***/ (function(module, exports) {
3325
3329
 
3326
3330
  module.exports = require("video.js");
@@ -3334,14 +3338,14 @@ module.exports = require("eoss-element");
3334
3338
 
3335
3339
  /***/ }),
3336
3340
 
3337
- /***/ 22:
3341
+ /***/ 23:
3338
3342
  /***/ (function(module, exports) {
3339
3343
 
3340
3344
  module.exports = require("video.js/dist/lang/zh-CN.json");
3341
3345
 
3342
3346
  /***/ }),
3343
3347
 
3344
- /***/ 26:
3348
+ /***/ 27:
3345
3349
  /***/ (function(module, exports) {
3346
3350
 
3347
3351
  module.exports = require("video.js/dist/video-js.css");
@@ -3467,7 +3471,7 @@ module.exports = require("axios");
3467
3471
 
3468
3472
  /***/ }),
3469
3473
 
3470
- /***/ 53:
3474
+ /***/ 54:
3471
3475
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3472
3476
 
3473
3477
  "use strict";
@@ -3495,15 +3499,15 @@ render._withStripped = true
3495
3499
  // CONCATENATED MODULE: ./packages/player/src/main.vue?vue&type=template&id=29c1659e&
3496
3500
 
3497
3501
  // EXTERNAL MODULE: external "video.js"
3498
- var external_video_js_ = __webpack_require__(18);
3502
+ var external_video_js_ = __webpack_require__(19);
3499
3503
  var external_video_js_default = /*#__PURE__*/__webpack_require__.n(external_video_js_);
3500
3504
 
3501
3505
  // EXTERNAL MODULE: external "video.js/dist/lang/zh-CN.json"
3502
- var zh_CN_json_ = __webpack_require__(22);
3506
+ var zh_CN_json_ = __webpack_require__(23);
3503
3507
  var zh_CN_json_default = /*#__PURE__*/__webpack_require__.n(zh_CN_json_);
3504
3508
 
3505
3509
  // EXTERNAL MODULE: external "video.js/dist/video-js.css"
3506
- var video_js_css_ = __webpack_require__(26);
3510
+ var video_js_css_ = __webpack_require__(27);
3507
3511
 
3508
3512
  // EXTERNAL MODULE: ./src/utils/util.js
3509
3513
  var util = __webpack_require__(0);
package/lib/qr-code.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 54);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 55);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3327,7 +3331,7 @@ module.exports = require("eoss-element");
3327
3331
 
3328
3332
  /***/ }),
3329
3333
 
3330
- /***/ 27:
3334
+ /***/ 28:
3331
3335
  /***/ (function(module, exports) {
3332
3336
 
3333
3337
  module.exports = require("qrcode");
@@ -3453,7 +3457,7 @@ module.exports = require("axios");
3453
3457
 
3454
3458
  /***/ }),
3455
3459
 
3456
- /***/ 54:
3460
+ /***/ 55:
3457
3461
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3458
3462
 
3459
3463
  "use strict";
@@ -3526,7 +3530,7 @@ var util = __webpack_require__(0);
3526
3530
  //
3527
3531
 
3528
3532
 
3529
- var QRCode = __webpack_require__(27);
3533
+ var QRCode = __webpack_require__(28);
3530
3534
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3531
3535
  name: 'EsQrCode',
3532
3536
  props: {
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 55);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 56);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3348,6 +3352,25 @@ window.__store = store;
3348
3352
 
3349
3353
  /***/ }),
3350
3354
 
3355
+ /***/ 14:
3356
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3357
+
3358
+ "use strict";
3359
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3360
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3361
+
3362
+
3363
+ /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
3364
+
3365
+ /***/ }),
3366
+
3367
+ /***/ 16:
3368
+ /***/ (function(module, exports) {
3369
+
3370
+ module.exports = require("vue");
3371
+
3372
+ /***/ }),
3373
+
3351
3374
  /***/ 2:
3352
3375
  /***/ (function(module, exports) {
3353
3376
 
@@ -3474,14 +3497,14 @@ module.exports = require("axios");
3474
3497
 
3475
3498
  /***/ }),
3476
3499
 
3477
- /***/ 55:
3500
+ /***/ 56:
3478
3501
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3479
3502
 
3480
3503
  "use strict";
3481
3504
  // ESM COMPAT FLAG
3482
3505
  __webpack_require__.r(__webpack_exports__);
3483
3506
 
3484
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
3507
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=template&id=4b2ba50e&
3485
3508
  var render = function () {
3486
3509
  var _vm = this
3487
3510
  var _h = _vm.$createElement
@@ -3615,7 +3638,7 @@ var staticRenderFns = []
3615
3638
  render._withStripped = true
3616
3639
 
3617
3640
 
3618
- // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=a0afa96c&
3641
+ // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=template&id=4b2ba50e&
3619
3642
 
3620
3643
  // EXTERNAL MODULE: ./src/config/api.js
3621
3644
  var api = __webpack_require__(1);
@@ -3626,6 +3649,9 @@ var store = __webpack_require__(11);
3626
3649
  // EXTERNAL MODULE: ./src/utils/util.js
3627
3650
  var util = __webpack_require__(0);
3628
3651
 
3652
+ // EXTERNAL MODULE: ./src/utils/bus.js
3653
+ var bus = __webpack_require__(14);
3654
+
3629
3655
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio-group/src/main.vue?vue&type=script&lang=js&
3630
3656
  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; };
3631
3657
 
@@ -3691,15 +3717,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3691
3717
 
3692
3718
 
3693
3719
 
3720
+
3694
3721
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3695
3722
  name: 'EsRadioGroup',
3696
3723
  inheritAttrs: false,
3697
3724
  inject: {
3698
3725
  esForm: {
3699
3726
  default: ''
3700
- },
3701
- sysCodes: {
3702
- default: ''
3703
3727
  }
3704
3728
  },
3705
3729
  props: {
@@ -3858,21 +3882,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3858
3882
  handler: function handler() {
3859
3883
  this.url && this.getData(this.url);
3860
3884
  }
3861
- },
3862
- sysCodes: {
3863
- deep: true,
3864
- handler: function handler(val) {
3865
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
3866
- if (this.parseData) {
3867
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
3868
- } else {
3869
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
3870
- }
3871
- }
3872
- }
3873
3885
  }
3874
3886
  },
3875
- created: function created() {},
3887
+ created: function created() {
3888
+ this.bindEventBus();
3889
+ },
3876
3890
  mounted: function mounted() {},
3877
3891
 
3878
3892
  methods: {
@@ -3900,7 +3914,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3900
3914
  if (res.rCode === 0) {
3901
3915
  _this2.options = JSON.parse(JSON.stringify(res.results));
3902
3916
  if (sysCode || _this2.dataKey) {
3903
- _this2.esForm && _this2.esForm.setSysCodes(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
3917
+ bus["a" /* default */].$emit(sysCode || _this2.dataKey, JSON.parse(JSON.stringify(_this2.options)));
3904
3918
  store["a" /* default */].set(sysCode, JSON.parse(JSON.stringify(res.results)));
3905
3919
  }
3906
3920
  }
@@ -3921,7 +3935,19 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3921
3935
  this.$emit('input', this.valueType === 'object' ? res : res[this.valKey]);
3922
3936
  }
3923
3937
  return util["a" /* default */].isObject(res) ? _extends({}, attrs, res) : attrs;
3938
+ },
3939
+ setOptions: function setOptions(val) {
3940
+ this.options = val;
3941
+ },
3942
+ bindEventBus: function bindEventBus() {
3943
+ bus["a" /* default */].$on(this.sysCode || this.dataKey, this.setOptions);
3944
+ },
3945
+ unbindEventBus: function unbindEventBus() {
3946
+ bus["a" /* default */].$off(this.sysCode || this.dataKey, this.setOptions);
3924
3947
  }
3948
+ },
3949
+ beforeDestroy: function beforeDestroy() {
3950
+ this.unbindEventBus();
3925
3951
  }
3926
3952
  });
3927
3953
  // CONCATENATED MODULE: ./packages/radio-group/src/main.vue?vue&type=script&lang=js&
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 56);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 57);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3446,7 +3450,7 @@ module.exports = require("axios");
3446
3450
 
3447
3451
  /***/ }),
3448
3452
 
3449
- /***/ 56:
3453
+ /***/ 57:
3450
3454
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3451
3455
 
3452
3456
  "use strict";
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 76);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 77);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3320,6 +3324,25 @@ module.exports = require("sm-crypto");
3320
3324
 
3321
3325
  /***/ }),
3322
3326
 
3327
+ /***/ 14:
3328
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3329
+
3330
+ "use strict";
3331
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3332
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3333
+
3334
+
3335
+ /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
3336
+
3337
+ /***/ }),
3338
+
3339
+ /***/ 16:
3340
+ /***/ (function(module, exports) {
3341
+
3342
+ module.exports = require("vue");
3343
+
3344
+ /***/ }),
3345
+
3323
3346
  /***/ 2:
3324
3347
  /***/ (function(module, exports) {
3325
3348
 
@@ -3586,7 +3609,7 @@ var WebSocket = function () {
3586
3609
 
3587
3610
  /***/ }),
3588
3611
 
3589
- /***/ 76:
3612
+ /***/ 77:
3590
3613
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3591
3614
 
3592
3615
  "use strict";
@@ -3596,10 +3619,14 @@ __webpack_require__.r(__webpack_exports__);
3596
3619
  // EXTERNAL MODULE: ./src/utils/util.js
3597
3620
  var util = __webpack_require__(0);
3598
3621
 
3622
+ // EXTERNAL MODULE: ./src/utils/bus.js
3623
+ var bus = __webpack_require__(14);
3624
+
3599
3625
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select-ganged/src/main.vue?vue&type=script&lang=js&
3600
3626
  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; };
3601
3627
 
3602
3628
 
3629
+
3603
3630
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3604
3631
  name: 'EsSelectGanged',
3605
3632
  componentName: 'EsSelectGanged',
@@ -3613,9 +3640,6 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3613
3640
  inject: {
3614
3641
  esForm: {
3615
3642
  default: ''
3616
- },
3617
- sysCodes: {
3618
- default: ''
3619
3643
  }
3620
3644
  },
3621
3645
  props: {
package/lib/select.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 75);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 76);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3348,6 +3352,25 @@ window.__store = store;
3348
3352
 
3349
3353
  /***/ }),
3350
3354
 
3355
+ /***/ 14:
3356
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3357
+
3358
+ "use strict";
3359
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3360
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3361
+
3362
+
3363
+ /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
3364
+
3365
+ /***/ }),
3366
+
3367
+ /***/ 16:
3368
+ /***/ (function(module, exports) {
3369
+
3370
+ module.exports = require("vue");
3371
+
3372
+ /***/ }),
3373
+
3351
3374
  /***/ 2:
3352
3375
  /***/ (function(module, exports) {
3353
3376
 
@@ -3614,7 +3637,7 @@ var WebSocket = function () {
3614
3637
 
3615
3638
  /***/ }),
3616
3639
 
3617
- /***/ 75:
3640
+ /***/ 76:
3618
3641
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3619
3642
 
3620
3643
  "use strict";
@@ -3630,6 +3653,9 @@ var store = __webpack_require__(11);
3630
3653
  // EXTERNAL MODULE: ./src/utils/util.js
3631
3654
  var util = __webpack_require__(0);
3632
3655
 
3656
+ // EXTERNAL MODULE: ./src/utils/bus.js
3657
+ var bus = __webpack_require__(14);
3658
+
3633
3659
  // 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&
3634
3660
  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; };
3635
3661
 
@@ -3638,6 +3664,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3638
3664
 
3639
3665
 
3640
3666
 
3667
+
3641
3668
  /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3642
3669
  name: 'EsSelect',
3643
3670
  componentName: 'EsSelect',
@@ -3651,9 +3678,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3651
3678
  inject: {
3652
3679
  esForm: {
3653
3680
  default: ''
3654
- },
3655
- sysCodes: {
3656
- default: ''
3657
3681
  }
3658
3682
  },
3659
3683
  props: {
@@ -3857,20 +3881,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3857
3881
  this.getData(this.sysCode);
3858
3882
  }
3859
3883
  }
3860
- },
3861
- sysCodes: {
3862
- deep: true,
3863
- handler: function handler(val) {
3864
- if (this.canceled && val && (this.sysCode && val[this.sysCode] || this.dataKey && val[this.dataKey])) {
3865
- if (this.parseData) {
3866
- this.options = this.parseData(JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey])));
3867
- } else {
3868
- this.options = JSON.parse(JSON.stringify(val[this.sysCode || this.dataKey]));
3869
- }
3870
- }
3871
- }
3872
3884
  }
3873
3885
  },
3886
+ created: function created() {
3887
+ this.bindEventBus();
3888
+ },
3874
3889
  mounted: function mounted() {
3875
3890
  if (this.wait) {
3876
3891
  this.getData();
@@ -3959,7 +3974,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3959
3974
  _this3.options = JSON.parse(JSON.stringify(res.results));
3960
3975
  }
3961
3976
  if (sysCode || _this3.dataKey) {
3962
- _this3.esForm && _this3.esForm.setSysCodes(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
3977
+ bus["a" /* default */].$emit(sysCode || _this3.dataKey, JSON.parse(JSON.stringify(_this3.options)));
3963
3978
  store["a" /* default */].set(sysCode, JSON.parse(JSON.stringify(_this3.options)));
3964
3979
  }
3965
3980
  } else {
@@ -4151,8 +4166,20 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
4151
4166
  },
4152
4167
  toggleMenu: function toggleMenu() {
4153
4168
  this.$refs.elSelect.toggleMenu();
4169
+ },
4170
+ setOptions: function setOptions(val) {
4171
+ this.options = val;
4172
+ },
4173
+ bindEventBus: function bindEventBus() {
4174
+ bus["a" /* default */].$on(this.sysCode || this.dataKey, this.setOptions);
4175
+ },
4176
+ unbindEventBus: function unbindEventBus() {
4177
+ bus["a" /* default */].$off(this.sysCode || this.dataKey, this.setOptions);
4154
4178
  }
4155
4179
  },
4180
+ beforeDestroy: function beforeDestroy() {
4181
+ this.unbindEventBus();
4182
+ },
4156
4183
  render: function render(h) {
4157
4184
  var _this7 = this;
4158
4185
 
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 32);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 33);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -1965,7 +1965,11 @@ var isLogined = function isLogined(_ref8) {
1965
1965
  // const logined = getStorage('logined');
1966
1966
  // eslint-disable-next-line eqeqeq
1967
1967
  if (token || cookie == true || cookie == 1) {
1968
- next && next();
1968
+ if (to.path === '/main' || to.path === '/login') {
1969
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1970
+ } else {
1971
+ next && next();
1972
+ }
1969
1973
  } else {
1970
1974
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1971
1975
  ajax({
@@ -3601,20 +3605,21 @@ module.exports = require("sm-crypto");
3601
3605
  /* 21 */,
3602
3606
  /* 22 */,
3603
3607
  /* 23 */,
3604
- /* 24 */
3608
+ /* 24 */,
3609
+ /* 25 */
3605
3610
  /***/ (function(module, exports) {
3606
3611
 
3607
3612
  module.exports = require("sortablejs");
3608
3613
 
3609
3614
  /***/ }),
3610
- /* 25 */,
3611
3615
  /* 26 */,
3612
3616
  /* 27 */,
3613
3617
  /* 28 */,
3614
3618
  /* 29 */,
3615
3619
  /* 30 */,
3616
3620
  /* 31 */,
3617
- /* 32 */
3621
+ /* 32 */,
3622
+ /* 33 */
3618
3623
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3619
3624
 
3620
3625
  "use strict";
@@ -4307,7 +4312,7 @@ selectionvue_type_template_id_66e09547_render._withStripped = true
4307
4312
  // CONCATENATED MODULE: ./packages/selector-panel/src/selection.vue?vue&type=template&id=66e09547&
4308
4313
 
4309
4314
  // EXTERNAL MODULE: external "sortablejs"
4310
- var external_sortablejs_ = __webpack_require__(24);
4315
+ var external_sortablejs_ = __webpack_require__(25);
4311
4316
  var external_sortablejs_default = /*#__PURE__*/__webpack_require__.n(external_sortablejs_);
4312
4317
 
4313
4318
  // EXTERNAL MODULE: ./src/utils/util.js
package/lib/selector.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 57);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 58);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3327,7 +3331,7 @@ module.exports = require("eoss-element");
3327
3331
 
3328
3332
  /***/ }),
3329
3333
 
3330
- /***/ 23:
3334
+ /***/ 24:
3331
3335
  /***/ (function(module, exports) {
3332
3336
 
3333
3337
  module.exports = require("eoss-element/src/utils/clickoutside");
@@ -3453,7 +3457,7 @@ module.exports = require("axios");
3453
3457
 
3454
3458
  /***/ }),
3455
3459
 
3456
- /***/ 57:
3460
+ /***/ 58:
3457
3461
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3458
3462
 
3459
3463
  "use strict";
@@ -3951,7 +3955,7 @@ var util = __webpack_require__(0);
3951
3955
  var api = __webpack_require__(1);
3952
3956
 
3953
3957
  // EXTERNAL MODULE: external "eoss-element/src/utils/clickoutside"
3954
- var clickoutside_ = __webpack_require__(23);
3958
+ var clickoutside_ = __webpack_require__(24);
3955
3959
  var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
3956
3960
 
3957
3961
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=script&lang=js&
package/lib/sizer.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 58);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 59);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -1966,7 +1966,11 @@ var isLogined = function isLogined(_ref8) {
1966
1966
  // const logined = getStorage('logined');
1967
1967
  // eslint-disable-next-line eqeqeq
1968
1968
  if (token || cookie == true || cookie == 1) {
1969
- next && next();
1969
+ if (to.path === '/main' || to.path === '/login') {
1970
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1971
+ } else {
1972
+ next && next();
1973
+ }
1970
1974
  } else {
1971
1975
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1972
1976
  ajax({
@@ -3453,7 +3457,7 @@ module.exports = require("axios");
3453
3457
 
3454
3458
  /***/ }),
3455
3459
 
3456
- /***/ 58:
3460
+ /***/ 59:
3457
3461
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3458
3462
 
3459
3463
  "use strict";