eoss-ui 0.4.58 → 0.4.60

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 (74) hide show
  1. package/lib/button-group.js +20 -5
  2. package/lib/button.js +20 -5
  3. package/lib/checkbox-group.js +20 -5
  4. package/lib/clients.js +95 -4
  5. package/lib/data-table-form.js +20 -5
  6. package/lib/data-table.js +25 -11
  7. package/lib/date-picker.js +20 -5
  8. package/lib/dialog.js +20 -5
  9. package/lib/eoss-ui.common.js +1400 -1086
  10. package/lib/flow-group.js +929 -860
  11. package/lib/flow-list.js +20 -5
  12. package/lib/flow.js +33 -16
  13. package/lib/form.js +20 -5
  14. package/lib/handle-user.js +20 -5
  15. package/lib/handler.js +41 -15
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +20 -5
  18. package/lib/input.js +32 -10
  19. package/lib/login.js +103 -33
  20. package/lib/main.js +85 -38
  21. package/lib/mainComp.js +69 -30
  22. package/lib/nav.js +20 -5
  23. package/lib/page.js +20 -5
  24. package/lib/player.js +20 -5
  25. package/lib/qr-code.js +20 -5
  26. package/lib/radio-group.js +20 -5
  27. package/lib/retrial-auth.js +20 -5
  28. package/lib/select-ganged.js +20 -5
  29. package/lib/select.js +20 -5
  30. package/lib/selector-panel.js +20 -5
  31. package/lib/selector.js +20 -5
  32. package/lib/sizer.js +20 -5
  33. package/lib/steps.js +20 -5
  34. package/lib/switch.js +20 -5
  35. package/lib/table-form.js +27 -11
  36. package/lib/tabs.js +20 -5
  37. package/lib/theme-chalk/clients.css +1 -1
  38. package/lib/theme-chalk/flow-group.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/theme-chalk/login.css +1 -1
  41. package/lib/tips.js +20 -5
  42. package/lib/toolbar.js +0 -1
  43. package/lib/tree-group.js +20 -5
  44. package/lib/tree.js +20 -5
  45. package/lib/upload.js +91 -52
  46. package/lib/utils/util.js +20 -5
  47. package/lib/wujie.js +20 -5
  48. package/lib/wxlogin.js +20 -5
  49. package/package.json +2 -2
  50. package/packages/clients/src/main.vue +60 -2
  51. package/packages/data-table/src/main.vue +0 -1
  52. package/packages/flow/src/main.vue +1 -0
  53. package/packages/flow/src/startTaskRead.vue +2 -2
  54. package/packages/flow-group/src/main.vue +284 -265
  55. package/packages/form/src/table.vue +3 -2
  56. package/packages/handler/src/main.vue +22 -10
  57. package/packages/input/src/main.vue +7 -2
  58. package/packages/login/src/main.vue +77 -27
  59. package/packages/main/src/main.vue +52 -32
  60. package/packages/main/src/userinfo.vue +22 -9
  61. package/packages/mainComp/src/main.vue +23 -10
  62. package/packages/mainComp/src/userinfo.vue +22 -9
  63. package/packages/theme-chalk/lib/clients.css +1 -1
  64. package/packages/theme-chalk/lib/flow-group.css +1 -1
  65. package/packages/theme-chalk/lib/index.css +1 -1
  66. package/packages/theme-chalk/lib/login.css +1 -1
  67. package/packages/theme-chalk/src/clients.scss +8 -0
  68. package/packages/theme-chalk/src/flow-group.scss +9 -3
  69. package/packages/theme-chalk/src/login.scss +3 -0
  70. package/packages/toolbar/src/main.vue +0 -1
  71. package/packages/upload/src/main.vue +43 -26
  72. package/src/index.js +1 -1
  73. package/src/utils/util.js +22 -10
  74. package/CHANGELOG.md +0 -929
@@ -264,20 +264,35 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ src = pathname + loginPage.replace('./', '/');
275
+ } else {
276
+ src = pathname + loginPage.replace('./', '');
277
+ }
278
+ } else {
279
+ src = loginPage;
280
+ }
281
+ win.top.location.href = src;
268
282
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
283
  win.top.location.href = './login.html';
270
284
  } else {
271
285
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
286
+ if (hash) {
273
287
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
288
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
289
  } else {
277
290
  win.top.location.href = '/login.html';
278
291
  }
279
292
  }
280
- }).catch(function (e) {});
293
+ }).catch(function (e) {
294
+ sessionStorage.removeItem('remind');
295
+ });
281
296
  }, 1000));
282
297
  }
283
298
  } else if (response.data.rCode === 61) {
package/lib/input.js CHANGED
@@ -264,20 +264,35 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ src = pathname + loginPage.replace('./', '/');
275
+ } else {
276
+ src = pathname + loginPage.replace('./', '');
277
+ }
278
+ } else {
279
+ src = loginPage;
280
+ }
281
+ win.top.location.href = src;
268
282
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
283
  win.top.location.href = './login.html';
270
284
  } else {
271
285
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
286
+ if (hash) {
273
287
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
288
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
289
  } else {
277
290
  win.top.location.href = '/login.html';
278
291
  }
279
292
  }
280
- }).catch(function (e) {});
293
+ }).catch(function (e) {
294
+ sessionStorage.removeItem('remind');
295
+ });
281
296
  }, 1000));
282
297
  }
283
298
  } else if (response.data.rCode === 61) {
@@ -2943,7 +2958,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
2943
2958
  readonly: Boolean,
2944
2959
  plain: Boolean,
2945
2960
  text: [String, Number],
2946
- scope: {}
2961
+ scope: {},
2962
+ exclude: Boolean
2947
2963
  },
2948
2964
  data: function data() {
2949
2965
  return {
@@ -3036,12 +3052,18 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3036
3052
  }
3037
3053
  },
3038
3054
  searchFilter: function searchFilter(query) {
3055
+ var _this3 = this;
3056
+
3039
3057
  return function (state) {
3040
- return state.value.toLowerCase().indexOf(query.toLowerCase()) === 0;
3058
+ if (_this3.exclude) {
3059
+ return state.value.toLowerCase().indexOf(query.toLowerCase()) === -1;
3060
+ } else {
3061
+ return state.value.toLowerCase().indexOf(query.toLowerCase()) === 0;
3062
+ }
3041
3063
  };
3042
3064
  },
3043
3065
  renderd: function renderd(doms, h, type) {
3044
- var _this3 = this;
3066
+ var _this4 = this;
3045
3067
 
3046
3068
  if (typeof this.$attrs[type] === 'boolean') {
3047
3069
  if (this.$attrs.render) {
@@ -3067,8 +3089,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
3067
3089
  domProps: this.$attrs[type].icon ? { innerHTML: this.$attrs[type].icon } : {},
3068
3090
  on: {
3069
3091
  click: function click() {
3070
- _this3.$attrs[type].click && _this3.$attrs[type].click(_this3, _this3.model, _this3.scope);
3071
- _this3.$attrs[type].event && _this3.$attrs[type].event(_this3, _this3.model, _this3.scope);
3092
+ _this4.$attrs[type].click && _this4.$attrs[type].click(_this4, _this4.model, _this4.scope);
3093
+ _this4.$attrs[type].event && _this4.$attrs[type].event(_this4, _this4.model, _this4.scope);
3072
3094
  }
3073
3095
  }
3074
3096
  }, [this.$attrs[type].text]));
package/lib/login.js CHANGED
@@ -264,20 +264,35 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ src = pathname + loginPage.replace('./', '/');
275
+ } else {
276
+ src = pathname + loginPage.replace('./', '');
277
+ }
278
+ } else {
279
+ src = loginPage;
280
+ }
281
+ win.top.location.href = src;
268
282
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
283
  win.top.location.href = './login.html';
270
284
  } else {
271
285
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
286
+ if (hash) {
273
287
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
288
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
289
  } else {
277
290
  win.top.location.href = '/login.html';
278
291
  }
279
292
  }
280
- }).catch(function (e) {});
293
+ }).catch(function (e) {
294
+ sessionStorage.removeItem('remind');
295
+ });
281
296
  }, 1000));
282
297
  }
283
298
  } else if (response.data.rCode === 61) {
@@ -2858,7 +2873,7 @@ function normalizeComponent(
2858
2873
  // ESM COMPAT FLAG
2859
2874
  __webpack_require__.r(__webpack_exports__);
2860
2875
 
2861
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=49ebf1b6&
2876
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=6f4e7cde&
2862
2877
  var render = function () {
2863
2878
  var _vm = this
2864
2879
  var _h = _vm.$createElement
@@ -2988,16 +3003,19 @@ var render = function () {
2988
3003
  },
2989
3004
  [
2990
3005
  _c(
2991
- "el-input",
3006
+ "es-input",
2992
3007
  {
2993
3008
  attrs: {
2994
3009
  size: "large",
2995
3010
  type: "text",
2996
3011
  name: "username",
3012
+ exclude: "",
2997
3013
  placeholder: _vm.username.placeholder,
3014
+ focusShow: _vm.focusShow,
3015
+ data: _vm.users,
2998
3016
  autocomplete: "off",
2999
3017
  },
3000
- on: { blur: _vm.handleBlur },
3018
+ on: { select: _vm.handleBlur },
3001
3019
  model: {
3002
3020
  value: _vm.formData.username,
3003
3021
  callback: function ($$v) {
@@ -3207,9 +3225,11 @@ var render = function () {
3207
3225
  name: "show",
3208
3226
  rawName: "v-show",
3209
3227
  value:
3210
- _vm.remember && _vm.active == "0",
3228
+ _vm.remember &&
3229
+ (_vm.active == "0" ||
3230
+ _vm.active == "12"),
3211
3231
  expression:
3212
- "remember && active == '0'",
3232
+ "remember && (active == '0' || active == '12')",
3213
3233
  },
3214
3234
  ],
3215
3235
  model: {
@@ -3297,6 +3317,10 @@ var render = function () {
3297
3317
  {
3298
3318
  staticClass:
3299
3319
  "es-login-app-name es-pointer",
3320
+ attrs: {
3321
+ target: "_blank",
3322
+ href: _vm.downloadApp,
3323
+ },
3300
3324
  },
3301
3325
  [
3302
3326
  _vm._v(
@@ -3415,7 +3439,6 @@ var render = function () {
3415
3439
  : _vm.email.placeholder,
3416
3440
  autocomplete: "off",
3417
3441
  },
3418
- on: { blur: _vm.handleBlur },
3419
3442
  model: {
3420
3443
  value: _vm.formData.target,
3421
3444
  callback: function ($$v) {
@@ -3708,7 +3731,7 @@ var staticRenderFns = []
3708
3731
  render._withStripped = true
3709
3732
 
3710
3733
 
3711
- // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=49ebf1b6&
3734
+ // CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=6f4e7cde&
3712
3735
 
3713
3736
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/resetPassword.vue?vue&type=template&id=4f5da52e&
3714
3737
  var resetPasswordvue_type_template_id_4f5da52e_render = function () {
@@ -4443,6 +4466,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4443
4466
  //
4444
4467
  //
4445
4468
  //
4469
+ //
4470
+ //
4471
+ //
4472
+ //
4473
+ //
4474
+ //
4446
4475
 
4447
4476
 
4448
4477
 
@@ -4490,7 +4519,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4490
4519
  default: function _default() {
4491
4520
  return {
4492
4521
  placeholder: '请输入账号',
4493
- rules: [{ required: true, message: '账号不能为空', trigger: 'blur' }]
4522
+ rules: [{ required: true, message: '账号不能为空', trigger: 'change' }]
4494
4523
  };
4495
4524
  }
4496
4525
  },
@@ -4612,6 +4641,12 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4612
4641
  default: true
4613
4642
  },
4614
4643
  downloadApp: String,
4644
+ downLoadUrls: {
4645
+ type: Object,
4646
+ default: function _default() {
4647
+ return {};
4648
+ }
4649
+ },
4615
4650
  onDownLoadApp: [Function, Boolean],
4616
4651
  redirect_uri: String,
4617
4652
  position: {
@@ -4757,7 +4792,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4757
4792
  checked: function checked(val) {
4758
4793
  if (!val) {
4759
4794
  localStorage.removeItem('unpd');
4760
- localStorage.removeItem('remember');
4795
+ //localStorage.removeItem('remember');
4761
4796
  }
4762
4797
  },
4763
4798
 
@@ -4785,6 +4820,8 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4785
4820
  submit: false,
4786
4821
  checked: false,
4787
4822
  formData: this.model,
4823
+ focusShow: false,
4824
+ users: [],
4788
4825
  imageCode: '',
4789
4826
  secret: null,
4790
4827
  identifyingId: '',
@@ -4876,27 +4913,38 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4876
4913
  return url;
4877
4914
  },
4878
4915
  getRemember: function getRemember(user) {
4879
- if (!user) {
4880
- user = localStorage.getItem('remember');
4881
- if (user) {
4882
- user = util["a" /* default */].esDecode(user);
4883
- } else {
4884
- return false;
4885
- }
4886
- }
4887
4916
  var values = localStorage.getItem('unpd');
4888
4917
  var value = {};
4889
4918
  if (values) {
4890
4919
  try {
4891
4920
  values = JSON.parse(values);
4921
+ var users = [];
4892
4922
  for (var i in values) {
4893
- value[util["a" /* default */].esDecode(i)] = util["a" /* default */].esDecode(values[i]);
4923
+ var k = util["a" /* default */].esDecode(i);
4924
+ value[k] = util["a" /* default */].esDecode(values[i]);
4925
+ users.push({ value: k });
4894
4926
  }
4895
- if (value[user]) {
4927
+ this.users = users;
4928
+ var keys = Object.keys(value);
4929
+ if (keys.length) {
4896
4930
  this.checked = true;
4897
4931
  }
4898
- this.$set(this.formData, 'username', user);
4899
- this.$set(this.formData, 'password', value[user]);
4932
+ if (!user && keys.length == 1) {
4933
+ user = keys[0];
4934
+ // user = localStorage.getItem('remember');
4935
+ // if (user) {
4936
+ // user = util.esDecode(user);
4937
+ // } else {
4938
+ // user = keys[0];
4939
+ // }
4940
+ }
4941
+ if (keys.length > 1) {
4942
+ this.focusShow = true;
4943
+ }
4944
+ if (user) {
4945
+ this.$set(this.formData, 'username', user);
4946
+ this.$set(this.formData, 'password', value[user]);
4947
+ }
4900
4948
  } catch (error) {
4901
4949
  localStorage.removeItem('unpd');
4902
4950
  }
@@ -4917,7 +4965,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4917
4965
  }
4918
4966
  }
4919
4967
  if (this.checked) {
4920
- localStorage.setItem('remember', util["a" /* default */].esEncode(this.formData.username));
4968
+ //localStorage.setItem('remember', util.esEncode(this.formData.username));
4921
4969
  value[this.formData.username] = this.formData.password;
4922
4970
  var data = {};
4923
4971
  for (var _i in value) {
@@ -4935,7 +4983,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4935
4983
  } else {
4936
4984
  localStorage.removeItem('unpd');
4937
4985
  }
4938
- localStorage.removeItem('remember');
4986
+ //localStorage.removeItem('remember');
4939
4987
  }
4940
4988
  },
4941
4989
 
@@ -4956,7 +5004,7 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4956
5004
  this.$refs.login && this.$refs.login.clearValidate();
4957
5005
  if (res != 1) {
4958
5006
  this.active = res;
4959
- this.formData = JSON.parse(JSON.stringify(this.defaultModel));
5007
+ Object.keys(this.defaultModel).length && (this.formData = JSON.parse(JSON.stringify(this.defaultModel)));
4960
5008
  }
4961
5009
  this.countdown = 0;
4962
5010
  this.$emit('change-type', res, this.identifyingId);
@@ -4998,10 +5046,22 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
4998
5046
  var host = util["a" /* default */].getStorage('host');
4999
5047
  this.identifyingId = res.identifyingId;
5000
5048
  this.getImgCode();
5001
- this.download = {
5002
- android: res.androidDownloadUrl,
5003
- ios: res.iosDownloadUrl || res.iosDownloadUrl2
5004
- };
5049
+ var downloads = {};
5050
+ if (res.androidDownloadUrl) {
5051
+ downloads['android'] = res.androidDownloadUrl;
5052
+ }
5053
+ if (res.iosDownloadUrl || res.iosDownloadUrl2) {
5054
+ downloads['ios'] = res.iosDownloadUrl || res.iosDownloadUrl2;
5055
+ }
5056
+ if (res.macDownloadUrl) {
5057
+ downloads['mac'] = res.macDownloadUrl;
5058
+ }
5059
+ if (res.winDownloadUrl) {
5060
+ downloads['win'] = res.winDownloadUrl;
5061
+ }
5062
+ if (res.linuxDownloadUrl) {
5063
+ downloads['linux'] = res.linuxDownloadUrl;
5064
+ }
5005
5065
  this.secret = res.secret;
5006
5066
  this.setup = res.setup;
5007
5067
  this.sysName = res.subsystemName;
@@ -5036,10 +5096,20 @@ var mainvue_type_script_lang_js_extends = Object.assign || function (target) { f
5036
5096
  util["a" /* default */].updateTheme(res.subsystemExtend.themeColor);
5037
5097
  localStorage.setItem('theme', res.subsystemExtend.themeColor);
5038
5098
  }
5099
+ if (res.subsystemExtend.macDownloadUrl) {
5100
+ downloads.mac = res.subsystemExtend.macDownloadUrl;
5101
+ }
5102
+ if (res.subsystemExtend.winDownloadUrl) {
5103
+ downloads.win = res.subsystemExtend.winDownloadUrl;
5104
+ }
5105
+ if (res.subsystemExtend.linuxDownloadUrl) {
5106
+ downloads.linux = res.subsystemExtend.linuxDownloadUrl;
5107
+ }
5039
5108
  }
5040
5109
  this.passModifyModel = res.passModifyModel;
5041
5110
  this.wechatAppid = res.wechatAppid;
5042
5111
  this.wechatScope = res.wechatScope;
5112
+ this.download = mainvue_type_script_lang_js_extends({}, this.downLoadUrls, downloads);
5043
5113
  if (res.sysLogoIco) {
5044
5114
  util["a" /* default */].setFavicon(res.sysLogoIco);
5045
5115
  }
package/lib/main.js CHANGED
@@ -263,20 +263,35 @@ var ajax = function ajax(_ref) {
263
263
  }).then(function () {
264
264
  var loginPage = getStorage('login') || getStorage('loginPage');
265
265
  if (loginPage) {
266
- win.top.location.href = loginPage;
266
+ var src = void 0;
267
+ if (!startWith(loginPage, ['http', '/'])) {
268
+ var pathname = win.top.location.pathname;
269
+ if (pathname !== '/') {
270
+ pathname = pathname.split('/');
271
+ pathname.splice(pathname.length - 1);
272
+ pathname = pathname.join('/');
273
+ src = pathname + loginPage.replace('./', '/');
274
+ } else {
275
+ src = pathname + loginPage.replace('./', '');
276
+ }
277
+ } else {
278
+ src = loginPage;
279
+ }
280
+ win.top.location.href = src;
267
281
  } else if (win.top.location.href.indexOf('main.html') > -1) {
268
282
  win.top.location.href = './login.html';
269
283
  } else {
270
284
  var hash = win.top.location.hash;
271
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
285
+ if (hash) {
272
286
  var len = win.top.location.href.indexOf(hash);
273
- var href = win.top.location.href.slice(0, len) + '#/login';
274
- win.top.location.href = href;
287
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
275
288
  } else {
276
289
  win.top.location.href = '/login.html';
277
290
  }
278
291
  }
279
- }).catch(function (e) {});
292
+ }).catch(function (e) {
293
+ sessionStorage.removeItem('remind');
294
+ });
280
295
  }, 1000));
281
296
  }
282
297
  } else if (response.data.rCode === 61) {
@@ -2919,7 +2934,7 @@ module.exports = require("stompjs");
2919
2934
  // ESM COMPAT FLAG
2920
2935
  __webpack_require__.r(__webpack_exports__);
2921
2936
 
2922
- // 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=558be874&
2937
+ // 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=56c41b7d&
2923
2938
  var render = function () {
2924
2939
  var _vm = this
2925
2940
  var _h = _vm.$createElement
@@ -3347,10 +3362,10 @@ var staticRenderFns = []
3347
3362
  render._withStripped = true
3348
3363
 
3349
3364
 
3350
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=558be874&
3365
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=56c41b7d&
3351
3366
 
3352
- // 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=327101d6&
3353
- var userinfovue_type_template_id_327101d6_render = function () {
3367
+ // 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=74e15191&
3368
+ var userinfovue_type_template_id_74e15191_render = function () {
3354
3369
  var _vm = this
3355
3370
  var _h = _vm.$createElement
3356
3371
  var _c = _vm._self._c || _h
@@ -3366,11 +3381,11 @@ var userinfovue_type_template_id_327101d6_render = function () {
3366
3381
  2
3367
3382
  )
3368
3383
  }
3369
- var userinfovue_type_template_id_327101d6_staticRenderFns = []
3370
- userinfovue_type_template_id_327101d6_render._withStripped = true
3384
+ var userinfovue_type_template_id_74e15191_staticRenderFns = []
3385
+ userinfovue_type_template_id_74e15191_render._withStripped = true
3371
3386
 
3372
3387
 
3373
- // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=327101d6&
3388
+ // CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=74e15191&
3374
3389
 
3375
3390
  // EXTERNAL MODULE: ./src/config/api.js
3376
3391
  var api = __webpack_require__(1);
@@ -3706,7 +3721,24 @@ var util = __webpack_require__(0);
3706
3721
  closeOnClickModal: false,
3707
3722
  type: 'warning'
3708
3723
  }).then(function () {
3709
- if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
3724
+ var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
3725
+ if (loginPage) {
3726
+ var src = void 0;
3727
+ if (!util["a" /* default */].startWith(loginPage, ['http', '/'])) {
3728
+ var pathname = util["a" /* default */].win.top.location.pathname;
3729
+ if (pathname !== '/') {
3730
+ pathname = pathname.split('/');
3731
+ pathname.splice(pathname.length - 1);
3732
+ pathname = pathname.join('/');
3733
+ src = pathname + loginPage.replace('./', '/');
3734
+ } else {
3735
+ src = pathname + loginPage.replace('./', '');
3736
+ }
3737
+ } else {
3738
+ src = loginPage;
3739
+ }
3740
+ util["a" /* default */].win.top.location.href = src;
3741
+ } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
3710
3742
  util["a" /* default */].win.top.location.href = './login.html';
3711
3743
  } else {
3712
3744
  var hash = util["a" /* default */].win.top.location.hash;
@@ -3714,12 +3746,7 @@ var util = __webpack_require__(0);
3714
3746
  var len = util["a" /* default */].win.top.location.href.indexOf(hash);
3715
3747
  util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
3716
3748
  } else {
3717
- var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
3718
- if (loginPage) {
3719
- util["a" /* default */].win.top.location.href = loginPage;
3720
- } else {
3721
- util["a" /* default */].win.top.location.href = '/login.html';
3722
- }
3749
+ util["a" /* default */].win.top.location.href = '/login.html';
3723
3750
  }
3724
3751
  }
3725
3752
  }).catch(function (e) {});
@@ -3779,8 +3806,8 @@ var componentNormalizer = __webpack_require__(3);
3779
3806
 
3780
3807
  var component = Object(componentNormalizer["a" /* default */])(
3781
3808
  src_userinfovue_type_script_lang_js_,
3782
- userinfovue_type_template_id_327101d6_render,
3783
- userinfovue_type_template_id_327101d6_staticRenderFns,
3809
+ userinfovue_type_template_id_74e15191_render,
3810
+ userinfovue_type_template_id_74e15191_staticRenderFns,
3784
3811
  false,
3785
3812
  null,
3786
3813
  null,
@@ -5733,7 +5760,8 @@ var log = util["a" /* default */].getParams('console');
5733
5760
  isTabs: false,
5734
5761
  isHeader: '',
5735
5762
  isSide: null,
5736
- navIds: null
5763
+ navIds: null,
5764
+ timer: null
5737
5765
  };
5738
5766
  },
5739
5767
  created: function created() {
@@ -6807,6 +6835,8 @@ var log = util["a" /* default */].getParams('console');
6807
6835
  }
6808
6836
  },
6809
6837
  handleReLogin: function handleReLogin(res) {
6838
+ var _this13 = this;
6839
+
6810
6840
  if (res && typeof res == 'string') {
6811
6841
  res = JSON.parse(res);
6812
6842
  }
@@ -6826,30 +6856,46 @@ var log = util["a" /* default */].getParams('console');
6826
6856
  type: 'warning'
6827
6857
  };
6828
6858
  } else {
6829
- console.log('handleReLogin');
6830
6859
  msg = '登录已过期,请重新登录!';
6831
6860
  }
6832
6861
  }
6833
- this.$confirm(msg, btn).then(function () {
6834
- util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
6835
- if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
6836
- util["a" /* default */].win.top.location.href = './login.html';
6837
- } else {
6838
- var hash = util["a" /* default */].win.top.location.hash;
6839
- if (hash) {
6840
- var len = util["a" /* default */].win.top.location.href.indexOf(hash);
6841
- var href = util["a" /* default */].win.top.location.href.slice(0, len) + '#/login';
6842
- util["a" /* default */].win.top.location.href = href;
6862
+ !this.timer && (this.timer = setTimeout(function () {
6863
+ console.log('handleReLogin');
6864
+ _this13.$confirm(msg, btn).then(function () {
6865
+ util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
6866
+ var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
6867
+ if (loginPage) {
6868
+ var src = void 0;
6869
+ if (!util["a" /* default */].startWith(loginPage, ['http', '/'])) {
6870
+ var pathname = util["a" /* default */].win.top.location.pathname;
6871
+ if (pathname !== '/') {
6872
+ pathname = pathname.split('/');
6873
+ pathname.splice(pathname.length - 1);
6874
+ pathname = pathname.join('/');
6875
+ src = pathname + loginPage.replace('./', '/');
6876
+ } else {
6877
+ src = pathname + loginPage.replace('./', '');
6878
+ }
6879
+ } else {
6880
+ src = loginPage;
6881
+ }
6882
+ util["a" /* default */].win.top.location.href = src;
6883
+ } else if (util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
6884
+ util["a" /* default */].win.top.location.href = './login.html';
6843
6885
  } else {
6844
- var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
6845
- if (loginPage) {
6846
- util["a" /* default */].win.top.location.href = loginPage;
6886
+ var hash = util["a" /* default */].win.top.location.hash;
6887
+ if (hash) {
6888
+ var len = util["a" /* default */].win.top.location.href.indexOf(hash);
6889
+ util["a" /* default */].win.top.location.href = util["a" /* default */].win.location.href.slice(0, len) + '#/login';
6847
6890
  } else {
6848
6891
  util["a" /* default */].win.top.location.href = '/login.html';
6849
6892
  }
6850
6893
  }
6851
- }
6852
- }).catch(function (e) {});
6894
+ }).catch(function (e) {
6895
+ clearTimeout(_this13.timer);
6896
+ _this13.timer = null;
6897
+ });
6898
+ }, 1000));
6853
6899
  },
6854
6900
  openPage: function openPage(url, name, width, height) {
6855
6901
  var src = url;
@@ -6872,6 +6918,7 @@ var log = util["a" /* default */].getParams('console');
6872
6918
  }
6873
6919
  },
6874
6920
  beforeDestroy: function beforeDestroy() {
6921
+ this.timer = null;
6875
6922
  if (this.client && this.client.connected) {
6876
6923
  this.client.disconnect();
6877
6924
  }