eoss-ui 0.4.92 → 0.4.93

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 (58) hide show
  1. package/lib/button-group.js +54 -35
  2. package/lib/button.js +54 -35
  3. package/lib/card.js +2 -2
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +54 -35
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +53 -34
  8. package/lib/data-table.js +54 -35
  9. package/lib/date-picker.js +54 -35
  10. package/lib/dialog.js +53 -34
  11. package/lib/enterprise.js +2 -2
  12. package/lib/eoss-ui.common.js +300 -110
  13. package/lib/error-page.js +2 -2
  14. package/lib/flow-group.js +54 -35
  15. package/lib/flow-list.js +55 -36
  16. package/lib/flow.js +54 -35
  17. package/lib/form.js +54 -35
  18. package/lib/handle-user.js +54 -35
  19. package/lib/handler.js +54 -35
  20. package/lib/icons.js +2 -2
  21. package/lib/index.js +1 -1
  22. package/lib/input-number.js +54 -35
  23. package/lib/input.js +54 -35
  24. package/lib/label.js +2 -2
  25. package/lib/layout.js +2 -2
  26. package/lib/login.js +53 -34
  27. package/lib/main.js +306 -116
  28. package/lib/menu.js +2 -2
  29. package/lib/nav.js +54 -35
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +54 -35
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +68 -49
  34. package/lib/qr-code.js +61 -42
  35. package/lib/radio-group.js +54 -35
  36. package/lib/retrial-auth.js +54 -35
  37. package/lib/select-ganged.js +54 -35
  38. package/lib/select.js +61 -42
  39. package/lib/selector-panel.js +61 -42
  40. package/lib/selector.js +61 -42
  41. package/lib/sizer.js +54 -35
  42. package/lib/steps.js +54 -35
  43. package/lib/switch.js +54 -35
  44. package/lib/table-form.js +54 -35
  45. package/lib/tabs-panel.js +2 -2
  46. package/lib/tabs.js +54 -35
  47. package/lib/tips.js +54 -35
  48. package/lib/toolbar.js +2 -2
  49. package/lib/tree-group.js +54 -35
  50. package/lib/tree.js +54 -35
  51. package/lib/upload.js +54 -35
  52. package/lib/utils/util.js +41 -22
  53. package/lib/wujie.js +54 -35
  54. package/lib/wxlogin.js +55 -36
  55. package/package.json +2 -2
  56. package/packages/main/src/main.vue +158 -4
  57. package/src/index.js +1 -1
  58. package/src/utils/util.js +48 -26
@@ -91,13 +91,13 @@ module.exports =
91
91
 
92
92
  "use strict";
93
93
  /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
94
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
94
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
95
95
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
96
96
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
97
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
98
98
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8);
99
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
100
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
100
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
101
101
  /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
102
102
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
103
103
 
@@ -1908,8 +1908,6 @@ var isFunction = function isFunction(obj) {
1908
1908
  * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
1909
1909
  **/
1910
1910
  var isLogined = function isLogined(_ref8) {
1911
- var _this = this;
1912
-
1913
1911
  var to = _ref8.to,
1914
1912
  from = _ref8.from,
1915
1913
  next = _ref8.next,
@@ -1928,6 +1926,17 @@ var isLogined = function isLogined(_ref8) {
1928
1926
  if (logined || cookie == true || cookie == 1) {
1929
1927
  if (loginPage) {
1930
1928
  sessionStorage.setItem('loginPage', loginPage);
1929
+ if (!startWith(loginPage, ['http', '/'], true)) {
1930
+ var pathname = win.top.location.pathname;
1931
+ if (pathname !== '/') {
1932
+ pathname = pathname.split('/');
1933
+ pathname.splice(pathname.length - 1);
1934
+ pathname = pathname.join('/');
1935
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1936
+ } else {
1937
+ loginPage = pathname + loginPage.replace('./', '');
1938
+ }
1939
+ }
1931
1940
  }
1932
1941
  next();
1933
1942
  } else {
@@ -1940,7 +1949,7 @@ var isLogined = function isLogined(_ref8) {
1940
1949
  url = win.location.href;
1941
1950
  break;
1942
1951
  case 'blank':
1943
- url = win.location.href;
1952
+ url = win.open(url);
1944
1953
  break;
1945
1954
  case 'parent':
1946
1955
  url = win.parent.location.href;
@@ -1999,31 +2008,41 @@ var isLogined = function isLogined(_ref8) {
1999
2008
  }
2000
2009
  break;
2001
2010
  case 4:
2002
- _this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2011
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2003
2012
  confirmButtonText: '确定',
2004
- type: 'error'
2005
- }).then(function () {
2006
- sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2007
- window.location.href = delUrlParam({ key: 'code' });
2008
- if (loginPage) {
2009
- win.top.location.replace(loginPage);
2010
- } else if (document.referrer) {
2011
- win.top.location.replace(document.referrer);
2012
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2013
- win.top.location.href = './login.html';
2014
- } else {
2015
- next('/login');
2013
+ type: 'error',
2014
+ callback: function callback() {
2015
+ sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2016
+ if (loginPage) {
2017
+ win.top.location.replace(loginPage);
2018
+ } else if (document.referrer) {
2019
+ win.top.location.replace(document.referrer);
2020
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2021
+ win.top.location.href = './login.html';
2022
+ } else {
2023
+ next('/login');
2024
+ }
2016
2025
  }
2017
- }).catch(function (e) {});
2026
+ });
2018
2027
  break;
2019
2028
  default:
2020
2029
  }
2021
2030
  } else {
2022
- if (token) {
2023
- next();
2024
- } else {
2025
- alert(res.msg);
2026
- }
2031
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].alert(res.msg, '提示', {
2032
+ confirmButtonText: '确定',
2033
+ type: 'error',
2034
+ callback: function callback() {
2035
+ if (loginPage) {
2036
+ win.top.location.replace(loginPage);
2037
+ } else if (document.referrer) {
2038
+ win.top.location.replace(document.referrer);
2039
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
2040
+ win.top.location.href = './login.html';
2041
+ } else {
2042
+ next('/login');
2043
+ }
2044
+ }
2045
+ });
2027
2046
  }
2028
2047
  }).catch(function (e) {});
2029
2048
  } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
@@ -3297,13 +3316,13 @@ module.exports = require("interactjs");
3297
3316
  /* 5 */
3298
3317
  /***/ (function(module, exports) {
3299
3318
 
3300
- module.exports = require("axios");
3319
+ module.exports = require("eoss-element");
3301
3320
 
3302
3321
  /***/ }),
3303
3322
  /* 6 */
3304
3323
  /***/ (function(module, exports) {
3305
3324
 
3306
- module.exports = require("eoss-element");
3325
+ module.exports = require("axios");
3307
3326
 
3308
3327
  /***/ }),
3309
3328
  /* 7 */
@@ -47309,8 +47328,8 @@ login_src_main.install = function (Vue) {
47309
47328
  };
47310
47329
 
47311
47330
  /* harmony default export */ var login = (login_src_main);
47312
- // 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&
47313
- var mainvue_type_template_id_08b696ec_render = function () {
47331
+ // 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=b2aea55c&
47332
+ var mainvue_type_template_id_b2aea55c_render = function () {
47314
47333
  var _vm = this
47315
47334
  var _h = _vm.$createElement
47316
47335
  var _c = _vm._self._c || _h
@@ -47735,11 +47754,11 @@ var mainvue_type_template_id_08b696ec_render = function () {
47735
47754
  1
47736
47755
  )
47737
47756
  }
47738
- var mainvue_type_template_id_08b696ec_staticRenderFns = []
47739
- mainvue_type_template_id_08b696ec_render._withStripped = true
47757
+ var mainvue_type_template_id_b2aea55c_staticRenderFns = []
47758
+ mainvue_type_template_id_b2aea55c_render._withStripped = true
47740
47759
 
47741
47760
 
47742
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=08b696ec&
47761
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=b2aea55c&
47743
47762
 
47744
47763
  // 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&
47745
47764
  var userinfovue_type_template_id_799780ee_render = function () {
@@ -49533,8 +49552,12 @@ var external_stompjs_ = __webpack_require__(14);
49533
49552
  var external_stompjs_default = /*#__PURE__*/__webpack_require__.n(external_stompjs_);
49534
49553
 
49535
49554
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
49555
+
49556
+
49536
49557
  var main_src_mainvue_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; };
49537
49558
 
49559
+ function main_src_mainvue_type_script_lang_js_asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
49560
+
49538
49561
  //
49539
49562
  //
49540
49563
  //
@@ -50146,12 +50169,9 @@ var log = utils_util["a" /* default */].getParams('console');
50146
50169
  created: function created() {
50147
50170
  this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : '';
50148
50171
  this.isHeader = utils_util["a" /* default */].getParams('header');
50149
- this.getConfig();
50150
- if (this.socket) {
50151
- this.initWebSocket();
50152
- }
50153
50172
  var sysLogoIco = sessionStorage.getItem('sysLogoIco');
50154
50173
  sysLogoIco && utils_util["a" /* default */].setFavicon(sysLogoIco);
50174
+ this.isLogin();
50155
50175
  },
50156
50176
  mounted: function mounted() {
50157
50177
  utils_util["a" /* default */].win.reLogin = this.handleReLogin;
@@ -50167,6 +50187,176 @@ var log = utils_util["a" /* default */].getParams('console');
50167
50187
  },
50168
50188
 
50169
50189
  methods: {
50190
+ isLogin: function isLogin() {
50191
+ var _this = this;
50192
+
50193
+ return main_src_mainvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
50194
+ var query, token, loginPage, pathname, url;
50195
+ return regenerator_default.a.wrap(function _callee$(_context) {
50196
+ while (1) {
50197
+ switch (_context.prev = _context.next) {
50198
+ case 0:
50199
+ query = _this.$route.query;
50200
+ token = utils_util["a" /* default */].getStorage('token') || utils_util["a" /* default */].getStorage('Authorization');
50201
+ loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
50202
+
50203
+ if (loginPage) {
50204
+ if (!utils_util["a" /* default */].startWith(loginPage, ['http', '/'], true)) {
50205
+ pathname = utils_util["a" /* default */].win.top.location.pathname;
50206
+
50207
+ if (pathname !== '/') {
50208
+ pathname = pathname.split('/');
50209
+ pathname.splice(pathname.length - 1);
50210
+ pathname = pathname.join('/');
50211
+ loginPage = pathname + '/' + loginPage.replace('./', '');
50212
+ } else {
50213
+ loginPage = pathname + loginPage.replace('./', '');
50214
+ }
50215
+ }
50216
+ }
50217
+
50218
+ if (!(!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType'))) {
50219
+ _context.next = 20;
50220
+ break;
50221
+ }
50222
+
50223
+ url = utils_util["a" /* default */].win.top.location.href;
50224
+
50225
+ if (!query.openType) {
50226
+ _context.next = 16;
50227
+ break;
50228
+ }
50229
+
50230
+ _context.t0 = query.openType;
50231
+ _context.next = _context.t0 === 'self' ? 10 : _context.t0 === 'blank' ? 12 : _context.t0 === 'parent' ? 14 : 16;
50232
+ break;
50233
+
50234
+ case 10:
50235
+ url = utils_util["a" /* default */].win.location.href;
50236
+ return _context.abrupt('break', 16);
50237
+
50238
+ case 12:
50239
+ url = utils_util["a" /* default */].win.open(url);
50240
+ return _context.abrupt('break', 16);
50241
+
50242
+ case 14:
50243
+ url = utils_util["a" /* default */].win.parent.location.href;
50244
+ return _context.abrupt('break', 16);
50245
+
50246
+ case 16:
50247
+ _context.next = 18;
50248
+ return utils_util["a" /* default */].ajax({
50249
+ method: 'post',
50250
+ url: api["b" /* authCenter */],
50251
+ data: query
50252
+ }).then(function (res) {
50253
+ if (res.rCode === 0) {
50254
+ _this.getConfig();
50255
+ if (_this.socket) {
50256
+ _this.initWebSocket();
50257
+ }
50258
+ var results = res.results;
50259
+
50260
+ switch (results.statusCode) {
50261
+ case 0:
50262
+ var storage = getStorage('storage');
50263
+ setStorage({
50264
+ type: storage,
50265
+ key: {
50266
+ ssId: results.ssId,
50267
+ token: results.token,
50268
+ Authorization: results.token,
50269
+ deviceUnique: results.deviceUnique
50270
+ }
50271
+ });
50272
+ break;
50273
+ case 1:
50274
+ break;
50275
+ case 2:
50276
+ break;
50277
+ case 3:
50278
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
50279
+ if (query.openType) {
50280
+ switch (query.openType) {
50281
+ case 'self':
50282
+ utils_util["a" /* default */].win.location.href = href;
50283
+ break;
50284
+ case 'blank':
50285
+ utils_util["a" /* default */].win.open(href);
50286
+ break;
50287
+ case 'top':
50288
+ utils_util["a" /* default */].win.top.location.href = href;
50289
+ break;
50290
+ case 'parent':
50291
+ utils_util["a" /* default */].win.parent.location.href = href;
50292
+ break;
50293
+ }
50294
+ } else {
50295
+ if (open) {
50296
+ utils_util["a" /* default */].win.open(href);
50297
+ } else {
50298
+ utils_util["a" /* default */].win.top.location.href = href;
50299
+ }
50300
+ }
50301
+ break;
50302
+ case 4:
50303
+ _this.$alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
50304
+ confirmButtonText: '确定',
50305
+ type: 'error',
50306
+ callback: function callback() {
50307
+ sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
50308
+ //window.location.href = delUrlParam({ key: 'code' });
50309
+ if (loginPage) {
50310
+ utils_util["a" /* default */].win.top.location.replace(loginPage);
50311
+ } else if (document.referrer) {
50312
+ utils_util["a" /* default */].win.top.location.replace(document.referrer);
50313
+ } else if (utils_util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
50314
+ utils_util["a" /* default */].win.top.location.href = './login.html';
50315
+ } else {
50316
+ _this.$router.replace('/login');
50317
+ }
50318
+ }
50319
+ });
50320
+ break;
50321
+ default:
50322
+ }
50323
+ } else {
50324
+ _this.$alert(res.msg, '提示', {
50325
+ confirmButtonText: '确定',
50326
+ type: 'error',
50327
+ callback: function callback() {
50328
+ if (loginPage) {
50329
+ utils_util["a" /* default */].win.top.location.replace(loginPage);
50330
+ } else if (document.referrer) {
50331
+ utils_util["a" /* default */].win.top.location.replace(document.referrer);
50332
+ } else if (utils_util["a" /* default */].win.top.location.href.indexOf('main.html') > -1) {
50333
+ utils_util["a" /* default */].win.top.location.href = './login.html';
50334
+ } else {
50335
+ _this.$router.replace('/login');
50336
+ }
50337
+ }
50338
+ });
50339
+ }
50340
+ }).catch(function (e) {});
50341
+
50342
+ case 18:
50343
+ _context.next = 22;
50344
+ break;
50345
+
50346
+ case 20:
50347
+ _this.getConfig();
50348
+ if (_this.socket) {
50349
+ _this.initWebSocket();
50350
+ }
50351
+
50352
+ case 22:
50353
+ case 'end':
50354
+ return _context.stop();
50355
+ }
50356
+ }
50357
+ }, _callee, _this);
50358
+ }))();
50359
+ },
50170
50360
  menuSuccess: function menuSuccess(res) {
50171
50361
  // this.menus
50172
50362
  this.menuType = 'custom';
@@ -50178,14 +50368,14 @@ var log = utils_util["a" /* default */].getParams('console');
50178
50368
 
50179
50369
  //获取主题模板JSON
50180
50370
  getMainDetail: function getMainDetail(id) {
50181
- var _this = this;
50371
+ var _this2 = this;
50182
50372
 
50183
50373
  var params = {
50184
50374
  url: api["cb" /* mainDetail */],
50185
50375
  params: { id: id }
50186
50376
  };
50187
50377
  utils_util["a" /* default */].ajax(params).then(function (res) {
50188
- var _that = _this;
50378
+ var _that = _this2;
50189
50379
  if (!res.results) {
50190
50380
  _that.showDefault = true;
50191
50381
  }
@@ -50221,7 +50411,7 @@ var log = utils_util["a" /* default */].getParams('console');
50221
50411
  }
50222
50412
  }).catch(function (err) {
50223
50413
  if (err.message && err.message !== 'canceled') {
50224
- _this.$message.error(err.message);
50414
+ _this2.$message.error(err.message);
50225
50415
  }
50226
50416
  });
50227
50417
  },
@@ -50297,7 +50487,7 @@ var log = utils_util["a" /* default */].getParams('console');
50297
50487
 
50298
50488
  //设置主题颜色
50299
50489
  setTheme: function setTheme(color) {
50300
- var _this2 = this;
50490
+ var _this3 = this;
50301
50491
 
50302
50492
  if (!color) {
50303
50493
  return;
@@ -50308,24 +50498,24 @@ var log = utils_util["a" /* default */].getParams('console');
50308
50498
  data: { color: escape(color.toLowerCase()) }
50309
50499
  }).then(function (res) {
50310
50500
  if (res.rCode === 0) {
50311
- _this2.color = color;
50501
+ _this3.color = color;
50312
50502
  localStorage.setItem('theme', color);
50313
50503
  var _mainConfig = JSON.parse(utils_util["a" /* default */].getStorage('mainConfig'));
50314
- _mainConfig.userStyle.color = _this2.color;
50504
+ _mainConfig.userStyle.color = _this3.color;
50315
50505
  sessionStorage.setItem('mainConfig', JSON.stringify(_mainConfig));
50316
- _this2.$emit('setting', 'theme', _this2.color);
50317
- _this2.$message({
50506
+ _this3.$emit('setting', 'theme', _this3.color);
50507
+ _this3.$message({
50318
50508
  message: res.msg,
50319
50509
  type: 'success',
50320
50510
  duration: 2000
50321
50511
  });
50322
50512
  } else {
50323
50513
  var msg = res.msg || '系统错误,请联系管理员!';
50324
- _this2.$message.error(msg);
50514
+ _this3.$message.error(msg);
50325
50515
  }
50326
50516
  }).catch(function (err) {
50327
50517
  if (err.message && err.message !== 'canceled') {
50328
- _this2.$message.error(err.message);
50518
+ _this3.$message.error(err.message);
50329
50519
  }
50330
50520
  });
50331
50521
  },
@@ -50403,7 +50593,7 @@ var log = utils_util["a" /* default */].getParams('console');
50403
50593
 
50404
50594
  //获取用户配置及信息
50405
50595
  getConfig: function getConfig() {
50406
- var _this3 = this;
50596
+ var _this4 = this;
50407
50597
 
50408
50598
  if (utils_util["a" /* default */].getStorage('mainConfig')) {
50409
50599
  var results = JSON.parse(utils_util["a" /* default */].getStorage('mainConfig'));
@@ -50417,36 +50607,36 @@ var log = utils_util["a" /* default */].getParams('console');
50417
50607
  }
50418
50608
  utils_util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
50419
50609
  if (res && res.rCode === 0) {
50420
- _this3.setConfig(res.results, 1);
50421
- if (_this3.remote) {
50422
- _this3.getMenu();
50610
+ _this4.setConfig(res.results, 1);
50611
+ if (_this4.remote) {
50612
+ _this4.getMenu();
50423
50613
  } else {
50424
- _this3.renderMenu();
50614
+ _this4.renderMenu();
50425
50615
  }
50426
50616
  } else {
50427
50617
  var msg = res.msg || '系统错误,请联系管理员!';
50428
- _this3.$message.error(msg);
50618
+ _this4.$message.error(msg);
50429
50619
  }
50430
50620
  }).catch(function (err) {
50431
50621
  if (err.message && err.message !== 'canceled') {
50432
- _this3.$message.error(err.message);
50622
+ _this4.$message.error(err.message);
50433
50623
  }
50434
50624
  });
50435
50625
  },
50436
50626
  reGetConfig: function reGetConfig() {
50437
- var _this4 = this;
50627
+ var _this5 = this;
50438
50628
 
50439
50629
  utils_util["a" /* default */].ajax({ url: this.mainConfig }).then(function (res) {
50440
50630
  if (res && res.rCode === 0) {
50441
50631
  var results = JSON.parse(JSON.stringify(res.results));
50442
- _this4.setConfig(results, 1);
50632
+ _this5.setConfig(results, 1);
50443
50633
  } else {
50444
50634
  var msg = res.msg || '系统错误,请联系管理员!';
50445
- _this4.$message.error(msg);
50635
+ _this5.$message.error(msg);
50446
50636
  }
50447
50637
  }).catch(function (err) {
50448
50638
  if (err.message && err.message !== 'canceled') {
50449
- _this4.$message.error(err.message);
50639
+ _this5.$message.error(err.message);
50450
50640
  }
50451
50641
  });
50452
50642
  },
@@ -50515,24 +50705,24 @@ var log = utils_util["a" /* default */].getParams('console');
50515
50705
 
50516
50706
  //获取应用导航菜单
50517
50707
  getMenu: function getMenu() {
50518
- var _this5 = this;
50708
+ var _this6 = this;
50519
50709
 
50520
50710
  utils_util["a" /* default */].ajax({ url: this.action, params: this.param ? this.param : {} }).then(function (res) {
50521
50711
  if (res.rCode === 0) {
50522
50712
  if (res.results && res.results.length) {
50523
- _this5.menus = JSON.parse(JSON.stringify(res.results));
50713
+ _this6.menus = JSON.parse(JSON.stringify(res.results));
50524
50714
  var applicationid = utils_util["a" /* default */].getParams('applicationid') || utils_util["a" /* default */].getParams('applicationId');
50525
50715
  if (applicationid) {
50526
- var ids = _this5.getId(_this5.menus, applicationid);
50716
+ var ids = _this6.getId(_this6.menus, applicationid);
50527
50717
  if (ids) {
50528
- _this5.defaultActive = ids;
50718
+ _this6.defaultActive = ids;
50529
50719
  }
50530
- } else if (sessionStorage.getItem('jump') && _this5.history) {
50531
- var _ids4 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
50720
+ } else if (sessionStorage.getItem('jump') && _this6.history) {
50721
+ var _ids4 = _this6.getId(_this6.menus, sessionStorage.getItem('jump'), true);
50532
50722
  if (_ids4) {
50533
- _this5.defaultActive = _ids4;
50534
- _this5.navIds = _ids4;
50535
- _this5.setTitle(_ids4[0]);
50723
+ _this6.defaultActive = _ids4;
50724
+ _this6.navIds = _ids4;
50725
+ _this6.setTitle(_ids4[0]);
50536
50726
  }
50537
50727
  } else if (utils_util["a" /* default */].win.location.hash) {
50538
50728
  var hash = utils_util["a" /* default */].win.location.hash;
@@ -50540,34 +50730,34 @@ var log = utils_util["a" /* default */].getParams('console');
50540
50730
  hash = hash.split('?')[0];
50541
50731
  }
50542
50732
  if (hash !== '#/' && hash !== '#/main') {
50543
- var _ids5 = _this5.getId(_this5.menus, utils_util["a" /* default */].win.location.hash, true);
50733
+ var _ids5 = _this6.getId(_this6.menus, utils_util["a" /* default */].win.location.hash, true);
50544
50734
  if (_ids5) {
50545
- _this5.defaultActive = _ids5;
50546
- _this5.navIds = _ids5;
50547
- _this5.setTitle(_ids5[0]);
50735
+ _this6.defaultActive = _ids5;
50736
+ _this6.navIds = _ids5;
50737
+ _this6.setTitle(_ids5[0]);
50548
50738
  }
50549
- } else if (sessionStorage.getItem('jump') && _this5.history) {
50550
- var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
50739
+ } else if (sessionStorage.getItem('jump') && _this6.history) {
50740
+ var _ids6 = _this6.getId(_this6.menus, sessionStorage.getItem('jump'), true);
50551
50741
  if (_ids6) {
50552
- _this5.defaultActive = _ids6;
50553
- _this5.navIds = _ids6;
50554
- _this5.setTitle(_ids6[0]);
50742
+ _this6.defaultActive = _ids6;
50743
+ _this6.navIds = _ids6;
50744
+ _this6.setTitle(_ids6[0]);
50555
50745
  }
50556
50746
  }
50557
50747
  }
50558
- _this5.setTips(_this5.menus);
50559
- utils_store.set('nav', _this5.menus);
50560
- _this5.setMenu(_this5.menus);
50748
+ _this6.setTips(_this6.menus);
50749
+ utils_store.set('nav', _this6.menus);
50750
+ _this6.setMenu(_this6.menus);
50561
50751
  } else {
50562
- _this5.$message.error('未分配菜单权限,请联系管理员!');
50752
+ _this6.$message.error('未分配菜单权限,请联系管理员!');
50563
50753
  }
50564
50754
  } else {
50565
50755
  var msg = res.msg || '系统错误,请联系管理员!';
50566
- _this5.$message.error(msg);
50756
+ _this6.$message.error(msg);
50567
50757
  }
50568
50758
  }).catch(function (err) {
50569
50759
  if (err.message && err.message !== 'canceled') {
50570
- _this5.$message.error(err.message);
50760
+ _this6.$message.error(err.message);
50571
50761
  }
50572
50762
  });
50573
50763
  },
@@ -50689,11 +50879,11 @@ var log = utils_util["a" /* default */].getParams('console');
50689
50879
 
50690
50880
  //遍历设置菜单气泡提醒
50691
50881
  setTips: function setTips(obj) {
50692
- var _this6 = this;
50882
+ var _this7 = this;
50693
50883
 
50694
50884
  if (Array.isArray(obj)) {
50695
50885
  obj.forEach(function (item) {
50696
- _this6.setTips(item);
50886
+ _this7.setTips(item);
50697
50887
  });
50698
50888
  } else {
50699
50889
  if (Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
@@ -50703,7 +50893,7 @@ var log = utils_util["a" /* default */].getParams('console');
50703
50893
  var flag = false;
50704
50894
  if (obj.children && obj.children.length) {
50705
50895
  obj.children.forEach(function (item) {
50706
- if (_this6.setTips(item)) {
50896
+ if (_this7.setTips(item)) {
50707
50897
  flag = true;
50708
50898
  }
50709
50899
  });
@@ -50713,7 +50903,7 @@ var log = utils_util["a" /* default */].getParams('console');
50713
50903
  }
50714
50904
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
50715
50905
  obj.fourthTabs.forEach(function (item) {
50716
- if (_this6.setTips(item)) {
50906
+ if (_this7.setTips(item)) {
50717
50907
  flag = true;
50718
50908
  }
50719
50909
  });
@@ -51007,7 +51197,7 @@ var log = utils_util["a" /* default */].getParams('console');
51007
51197
 
51008
51198
  //头部工具交互事件
51009
51199
  handleClick: function handleClick(res) {
51010
- var _this7 = this;
51200
+ var _this8 = this;
51011
51201
 
51012
51202
  var type = res.type;
51013
51203
 
@@ -51028,7 +51218,7 @@ var log = utils_util["a" /* default */].getParams('console');
51028
51218
  this.setMenu(this.menus);
51029
51219
  }
51030
51220
  this.$nextTick(function () {
51031
- _this7.reset = true;
51221
+ _this8.reset = true;
51032
51222
  });
51033
51223
  break;
51034
51224
  case 'user':
@@ -51056,21 +51246,21 @@ var log = utils_util["a" /* default */].getParams('console');
51056
51246
 
51057
51247
  //刷新子页面、子路由
51058
51248
  handleRefresh: function handleRefresh() {
51059
- var _this8 = this;
51249
+ var _this9 = this;
51060
51250
 
51061
51251
  if (this.method === 'iframe') {
51062
51252
  this.page = utils_util["a" /* default */].handlerUrl(this.page);
51063
51253
  } else {
51064
51254
  this.refresh = false;
51065
51255
  this.$nextTick(function () {
51066
- _this8.refresh = true;
51256
+ _this9.refresh = true;
51067
51257
  });
51068
51258
  }
51069
51259
  },
51070
51260
 
51071
51261
  //跳转页面
51072
51262
  handleJump: function handleJump(page, type, res) {
51073
- var _this9 = this;
51263
+ var _this10 = this;
51074
51264
 
51075
51265
  var prevPage = sessionStorage.getItem('jump');
51076
51266
  console.log(page);
@@ -51101,7 +51291,7 @@ var log = utils_util["a" /* default */].getParams('console');
51101
51291
  this.wjName = 'singlespa';
51102
51292
  this.page = this.host + page;
51103
51293
  this.$nextTick(function () {
51104
- _this9.refresh = true;
51294
+ _this10.refresh = true;
51105
51295
  });
51106
51296
  } else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
51107
51297
  this.method = 'iframe';
@@ -51130,7 +51320,7 @@ var log = utils_util["a" /* default */].getParams('console');
51130
51320
  query: params
51131
51321
  });
51132
51322
  this.$nextTick(function () {
51133
- _this9.refresh = true;
51323
+ _this10.refresh = true;
51134
51324
  });
51135
51325
  } else {
51136
51326
  var urlopenmode = utils_util["a" /* default */].getParams({
@@ -51146,7 +51336,7 @@ var log = utils_util["a" /* default */].getParams('console');
51146
51336
  this.wjName = res && res.appCode ? res.appCode : 'application';
51147
51337
  this.page = this.host + page;
51148
51338
  this.$nextTick(function () {
51149
- _this9.refresh = true;
51339
+ _this10.refresh = true;
51150
51340
  });
51151
51341
  }
51152
51342
  }
@@ -51158,7 +51348,7 @@ var log = utils_util["a" /* default */].getParams('console');
51158
51348
  }
51159
51349
  }
51160
51350
  this.$nextTick(function () {
51161
- _this9.showPage = true;
51351
+ _this10.showPage = true;
51162
51352
  });
51163
51353
  },
51164
51354
 
@@ -51270,7 +51460,7 @@ var log = utils_util["a" /* default */].getParams('console');
51270
51460
 
51271
51461
  //监听改变菜单
51272
51462
  handleListener: function handleListener() {
51273
- var _this10 = this;
51463
+ var _this11 = this;
51274
51464
 
51275
51465
  utils_util["a" /* default */].win.addEventListener('message', function (e) {
51276
51466
  var msg = e.data;
@@ -51279,7 +51469,7 @@ var log = utils_util["a" /* default */].getParams('console');
51279
51469
  if (typeof res === 'string') {
51280
51470
  res = res.split(',');
51281
51471
  }
51282
- _this10.setDefault(_this10.menus, res);
51472
+ _this11.setDefault(_this11.menus, res);
51283
51473
  }
51284
51474
  }, false);
51285
51475
  },
@@ -51298,7 +51488,7 @@ var log = utils_util["a" /* default */].getParams('console');
51298
51488
  this.handleConnect(this.client);
51299
51489
  },
51300
51490
  handleConnect: function handleConnect(client) {
51301
- var _this11 = this;
51491
+ var _this12 = this;
51302
51492
 
51303
51493
  client.connect({}, function () {
51304
51494
  //localStorage.setItem("socket",true);
@@ -51309,22 +51499,22 @@ var log = utils_util["a" /* default */].getParams('console');
51309
51499
  for (var i in data) {
51310
51500
  if (data[i] !== null && data[i] !== undefined) {
51311
51501
  if (i === 'onlineUserNums' && data[i] > 0) {
51312
- _this11.online = data[i];
51502
+ _this12.online = data[i];
51313
51503
  }
51314
51504
  if (i === 'sysMsgNums') {
51315
- _this11.notice = data[i];
51316
- if (_this11.showMsg) {
51317
- _this11.$refs.message.getMsg(true);
51505
+ _this12.notice = data[i];
51506
+ if (_this12.showMsg) {
51507
+ _this12.$refs.message.getMsg(true);
51318
51508
  }
51319
51509
  }
51320
51510
  if (i === 'menuTipsMap') {
51321
- _this11.menuTips = data[i];
51511
+ _this12.menuTips = data[i];
51322
51512
  }
51323
51513
  if (i === 'sysMsgList') {
51324
- _this11.sysMsg = data[i];
51514
+ _this12.sysMsg = data[i];
51325
51515
  }
51326
51516
  if (i === 'extraData') {
51327
- _this11.extraData = data[i];
51517
+ _this12.extraData = data[i];
51328
51518
  }
51329
51519
  }
51330
51520
  }
@@ -51335,13 +51525,13 @@ var log = utils_util["a" /* default */].getParams('console');
51335
51525
  });
51336
51526
  },
51337
51527
  handleOpened: function handleOpened(res) {
51338
- var _this12 = this;
51528
+ var _this13 = this;
51339
51529
 
51340
51530
  if (res === undefined) {
51341
51531
  this.sysMsg = [];
51342
51532
  } else if (res == false && this.sysMsg.length) {
51343
51533
  this.sysMsgOut = setTimeout(function () {
51344
- _this12.sysMsg = [];
51534
+ _this13.sysMsg = [];
51345
51535
  }, 3000);
51346
51536
  } else if (this.sysMsgOut) {
51347
51537
  clearTimeout(this.sysMsgOut);
@@ -51362,7 +51552,7 @@ var log = utils_util["a" /* default */].getParams('console');
51362
51552
  }
51363
51553
  },
51364
51554
  handleReLogin: function handleReLogin(res) {
51365
- var _this13 = this;
51555
+ var _this14 = this;
51366
51556
 
51367
51557
  if (res && typeof res == 'string') {
51368
51558
  res = JSON.parse(res);
@@ -51393,7 +51583,7 @@ var log = utils_util["a" /* default */].getParams('console');
51393
51583
  this.timer = setTimeout(function () {
51394
51584
  console.log('handleReLogin');
51395
51585
  sessionStorage.setItem('remind', 1);
51396
- _this13.$confirm(msg, btn).then(function () {
51586
+ _this14.$confirm(msg, btn).then(function () {
51397
51587
  utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
51398
51588
  var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
51399
51589
  if (loginPage) {
@@ -51468,8 +51658,8 @@ var log = utils_util["a" /* default */].getParams('console');
51468
51658
 
51469
51659
  var main_src_main_component = normalizeComponent(
51470
51660
  packages_main_src_mainvue_type_script_lang_js_,
51471
- mainvue_type_template_id_08b696ec_render,
51472
- mainvue_type_template_id_08b696ec_staticRenderFns,
51661
+ mainvue_type_template_id_b2aea55c_render,
51662
+ mainvue_type_template_id_b2aea55c_staticRenderFns,
51473
51663
  false,
51474
51664
  null,
51475
51665
  null,
@@ -70677,7 +70867,7 @@ if (typeof window !== 'undefined' && window.Vue) {
70677
70867
  }
70678
70868
 
70679
70869
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
70680
- version: '0.4.92',
70870
+ version: '0.4.93',
70681
70871
  install: install,
70682
70872
  Button: packages_button,
70683
70873
  ButtonGroup: button_group,