eoss-ui 0.4.92 → 0.4.94

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 (59) 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 +5 -5
  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 +308 -119
  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 -117
  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/clients/src/main.vue +1 -1
  57. package/packages/main/src/main.vue +158 -5
  58. package/src/index.js +1 -1
  59. 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 */
@@ -5097,8 +5116,8 @@ cascader_src_main.install = function (Vue) {
5097
5116
  };
5098
5117
 
5099
5118
  /* harmony default export */ var cascader = (cascader_src_main);
5100
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=template&id=343b6fd0&
5101
- var mainvue_type_template_id_343b6fd0_render = function () {
5119
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=template&id=2f0c03c7&
5120
+ var mainvue_type_template_id_2f0c03c7_render = function () {
5102
5121
  var _vm = this
5103
5122
  var _h = _vm.$createElement
5104
5123
  var _c = _vm._self._c || _h
@@ -5144,7 +5163,7 @@ var mainvue_type_template_id_343b6fd0_render = function () {
5144
5163
  1
5145
5164
  )
5146
5165
  : _vm._e(),
5147
- _vm.mac || _vm.win || _vm.linux || 1
5166
+ _vm.mac || _vm.win || _vm.linux
5148
5167
  ? _c("li", { staticClass: "es-clients-item" }, [
5149
5168
  _c(
5150
5169
  "div",
@@ -5191,7 +5210,7 @@ var mainvue_type_template_id_343b6fd0_render = function () {
5191
5210
  ]),
5192
5211
  ])
5193
5212
  }
5194
- var mainvue_type_template_id_343b6fd0_staticRenderFns = [
5213
+ var mainvue_type_template_id_2f0c03c7_staticRenderFns = [
5195
5214
  function () {
5196
5215
  var _vm = this
5197
5216
  var _h = _vm.$createElement
@@ -5220,10 +5239,10 @@ var mainvue_type_template_id_343b6fd0_staticRenderFns = [
5220
5239
  ])
5221
5240
  },
5222
5241
  ]
5223
- mainvue_type_template_id_343b6fd0_render._withStripped = true
5242
+ mainvue_type_template_id_2f0c03c7_render._withStripped = true
5224
5243
 
5225
5244
 
5226
- // CONCATENATED MODULE: ./packages/clients/src/main.vue?vue&type=template&id=343b6fd0&
5245
+ // CONCATENATED MODULE: ./packages/clients/src/main.vue?vue&type=template&id=2f0c03c7&
5227
5246
 
5228
5247
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/clients/src/main.vue?vue&type=script&lang=js&
5229
5248
  var _props;
@@ -5337,8 +5356,8 @@ var _props;
5337
5356
 
5338
5357
  var clients_src_main_component = normalizeComponent(
5339
5358
  packages_clients_src_mainvue_type_script_lang_js_,
5340
- mainvue_type_template_id_343b6fd0_render,
5341
- mainvue_type_template_id_343b6fd0_staticRenderFns,
5359
+ mainvue_type_template_id_2f0c03c7_render,
5360
+ mainvue_type_template_id_2f0c03c7_staticRenderFns,
5342
5361
  false,
5343
5362
  null,
5344
5363
  null,
@@ -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=6cb9a388&
47332
+ var mainvue_type_template_id_6cb9a388_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_6cb9a388_staticRenderFns = []
47758
+ mainvue_type_template_id_6cb9a388_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=6cb9a388&
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 = utils_util["a" /* default */].getParams();
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
+ var results = res.results;
50255
+
50256
+ switch (results.statusCode) {
50257
+ case 0:
50258
+ var storage = getStorage('storage');
50259
+ setStorage({
50260
+ type: storage,
50261
+ key: {
50262
+ ssId: results.ssId,
50263
+ token: results.token,
50264
+ Authorization: results.token,
50265
+ deviceUnique: results.deviceUnique
50266
+ }
50267
+ });
50268
+ _this.getConfig();
50269
+ if (_this.socket) {
50270
+ _this.initWebSocket();
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,24 +51246,23 @@ 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
- console.log(page);
51077
51266
  sessionStorage.setItem('jump', page);
51078
51267
  if (res) {
51079
51268
  if (res.fourthTabs && res.fourthTabs.length) {
@@ -51101,7 +51290,7 @@ var log = utils_util["a" /* default */].getParams('console');
51101
51290
  this.wjName = 'singlespa';
51102
51291
  this.page = this.host + page;
51103
51292
  this.$nextTick(function () {
51104
- _this9.refresh = true;
51293
+ _this10.refresh = true;
51105
51294
  });
51106
51295
  } else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
51107
51296
  this.method = 'iframe';
@@ -51130,7 +51319,7 @@ var log = utils_util["a" /* default */].getParams('console');
51130
51319
  query: params
51131
51320
  });
51132
51321
  this.$nextTick(function () {
51133
- _this9.refresh = true;
51322
+ _this10.refresh = true;
51134
51323
  });
51135
51324
  } else {
51136
51325
  var urlopenmode = utils_util["a" /* default */].getParams({
@@ -51146,7 +51335,7 @@ var log = utils_util["a" /* default */].getParams('console');
51146
51335
  this.wjName = res && res.appCode ? res.appCode : 'application';
51147
51336
  this.page = this.host + page;
51148
51337
  this.$nextTick(function () {
51149
- _this9.refresh = true;
51338
+ _this10.refresh = true;
51150
51339
  });
51151
51340
  }
51152
51341
  }
@@ -51158,7 +51347,7 @@ var log = utils_util["a" /* default */].getParams('console');
51158
51347
  }
51159
51348
  }
51160
51349
  this.$nextTick(function () {
51161
- _this9.showPage = true;
51350
+ _this10.showPage = true;
51162
51351
  });
51163
51352
  },
51164
51353
 
@@ -51270,7 +51459,7 @@ var log = utils_util["a" /* default */].getParams('console');
51270
51459
 
51271
51460
  //监听改变菜单
51272
51461
  handleListener: function handleListener() {
51273
- var _this10 = this;
51462
+ var _this11 = this;
51274
51463
 
51275
51464
  utils_util["a" /* default */].win.addEventListener('message', function (e) {
51276
51465
  var msg = e.data;
@@ -51279,7 +51468,7 @@ var log = utils_util["a" /* default */].getParams('console');
51279
51468
  if (typeof res === 'string') {
51280
51469
  res = res.split(',');
51281
51470
  }
51282
- _this10.setDefault(_this10.menus, res);
51471
+ _this11.setDefault(_this11.menus, res);
51283
51472
  }
51284
51473
  }, false);
51285
51474
  },
@@ -51298,7 +51487,7 @@ var log = utils_util["a" /* default */].getParams('console');
51298
51487
  this.handleConnect(this.client);
51299
51488
  },
51300
51489
  handleConnect: function handleConnect(client) {
51301
- var _this11 = this;
51490
+ var _this12 = this;
51302
51491
 
51303
51492
  client.connect({}, function () {
51304
51493
  //localStorage.setItem("socket",true);
@@ -51309,22 +51498,22 @@ var log = utils_util["a" /* default */].getParams('console');
51309
51498
  for (var i in data) {
51310
51499
  if (data[i] !== null && data[i] !== undefined) {
51311
51500
  if (i === 'onlineUserNums' && data[i] > 0) {
51312
- _this11.online = data[i];
51501
+ _this12.online = data[i];
51313
51502
  }
51314
51503
  if (i === 'sysMsgNums') {
51315
- _this11.notice = data[i];
51316
- if (_this11.showMsg) {
51317
- _this11.$refs.message.getMsg(true);
51504
+ _this12.notice = data[i];
51505
+ if (_this12.showMsg) {
51506
+ _this12.$refs.message.getMsg(true);
51318
51507
  }
51319
51508
  }
51320
51509
  if (i === 'menuTipsMap') {
51321
- _this11.menuTips = data[i];
51510
+ _this12.menuTips = data[i];
51322
51511
  }
51323
51512
  if (i === 'sysMsgList') {
51324
- _this11.sysMsg = data[i];
51513
+ _this12.sysMsg = data[i];
51325
51514
  }
51326
51515
  if (i === 'extraData') {
51327
- _this11.extraData = data[i];
51516
+ _this12.extraData = data[i];
51328
51517
  }
51329
51518
  }
51330
51519
  }
@@ -51335,13 +51524,13 @@ var log = utils_util["a" /* default */].getParams('console');
51335
51524
  });
51336
51525
  },
51337
51526
  handleOpened: function handleOpened(res) {
51338
- var _this12 = this;
51527
+ var _this13 = this;
51339
51528
 
51340
51529
  if (res === undefined) {
51341
51530
  this.sysMsg = [];
51342
51531
  } else if (res == false && this.sysMsg.length) {
51343
51532
  this.sysMsgOut = setTimeout(function () {
51344
- _this12.sysMsg = [];
51533
+ _this13.sysMsg = [];
51345
51534
  }, 3000);
51346
51535
  } else if (this.sysMsgOut) {
51347
51536
  clearTimeout(this.sysMsgOut);
@@ -51362,7 +51551,7 @@ var log = utils_util["a" /* default */].getParams('console');
51362
51551
  }
51363
51552
  },
51364
51553
  handleReLogin: function handleReLogin(res) {
51365
- var _this13 = this;
51554
+ var _this14 = this;
51366
51555
 
51367
51556
  if (res && typeof res == 'string') {
51368
51557
  res = JSON.parse(res);
@@ -51393,7 +51582,7 @@ var log = utils_util["a" /* default */].getParams('console');
51393
51582
  this.timer = setTimeout(function () {
51394
51583
  console.log('handleReLogin');
51395
51584
  sessionStorage.setItem('remind', 1);
51396
- _this13.$confirm(msg, btn).then(function () {
51585
+ _this14.$confirm(msg, btn).then(function () {
51397
51586
  utils_util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
51398
51587
  var loginPage = utils_util["a" /* default */].getStorage('login') || utils_util["a" /* default */].getStorage('loginPage');
51399
51588
  if (loginPage) {
@@ -51468,8 +51657,8 @@ var log = utils_util["a" /* default */].getParams('console');
51468
51657
 
51469
51658
  var main_src_main_component = normalizeComponent(
51470
51659
  packages_main_src_mainvue_type_script_lang_js_,
51471
- mainvue_type_template_id_08b696ec_render,
51472
- mainvue_type_template_id_08b696ec_staticRenderFns,
51660
+ mainvue_type_template_id_6cb9a388_render,
51661
+ mainvue_type_template_id_6cb9a388_staticRenderFns,
51473
51662
  false,
51474
51663
  null,
51475
51664
  null,
@@ -70677,7 +70866,7 @@ if (typeof window !== 'undefined' && window.Vue) {
70677
70866
  }
70678
70867
 
70679
70868
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
70680
- version: '0.4.92',
70869
+ version: '0.4.94',
70681
70870
  install: install,
70682
70871
  Button: packages_button,
70683
70872
  ButtonGroup: button_group,