eoss-ui 0.5.63 → 0.5.65

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 (82) hide show
  1. package/lib/button-group.js +43 -23
  2. package/lib/button.js +65 -39
  3. package/lib/calendar.js +13 -5
  4. package/lib/checkbox-group.js +4 -2
  5. package/lib/data-table-form.js +4 -2
  6. package/lib/data-table.js +112 -25
  7. package/lib/date-picker.js +4 -2
  8. package/lib/dialog.js +4 -2
  9. package/lib/eoss-ui.common.js +635 -393
  10. package/lib/flow-group.js +4 -2
  11. package/lib/flow-list.js +4 -2
  12. package/lib/flow.js +153 -123
  13. package/lib/form.js +9 -4
  14. package/lib/handle-user.js +4 -2
  15. package/lib/handler.js +4 -2
  16. package/lib/icon.js +4 -2
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +4 -2
  19. package/lib/input.js +4 -2
  20. package/lib/login.js +23 -6
  21. package/lib/main.js +189 -128
  22. package/lib/nav.js +4 -2
  23. package/lib/page.js +4 -2
  24. package/lib/player.js +4 -2
  25. package/lib/qr-code.js +13 -13
  26. package/lib/radio-group.js +4 -2
  27. package/lib/retrial-auth.js +4 -2
  28. package/lib/select-ganged.js +4 -2
  29. package/lib/select.js +4 -2
  30. package/lib/selector-panel.js +4 -2
  31. package/lib/selector.js +4 -2
  32. package/lib/sizer.js +4 -2
  33. package/lib/steps.js +4 -2
  34. package/lib/switch.js +4 -2
  35. package/lib/table-form.js +4 -2
  36. package/lib/tabs.js +4 -2
  37. package/lib/theme-chalk/base.css +1 -1
  38. package/lib/theme-chalk/button-group.css +1 -1
  39. package/lib/theme-chalk/button.css +1 -1
  40. package/lib/theme-chalk/calendar.css +1 -1
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/theme-chalk/main.css +1 -1
  43. package/lib/theme-chalk/menu.css +1 -1
  44. package/lib/theme-chalk/qr-code.css +1 -1
  45. package/lib/theme-chalk/sizer.css +1 -1
  46. package/lib/theme-chalk/upload.css +1 -1
  47. package/lib/tips.js +4 -2
  48. package/lib/tree-group.js +4 -2
  49. package/lib/tree.js +4 -2
  50. package/lib/upload.js +12 -8
  51. package/lib/utils/util.js +4 -2
  52. package/lib/wujie.js +4 -2
  53. package/lib/wxlogin.js +4 -2
  54. package/package.json +2 -2
  55. package/packages/button/src/main.vue +92 -56
  56. package/packages/button-group/src/main.vue +10 -1
  57. package/packages/calendar/src/main.vue +11 -4
  58. package/packages/data-table/src/children.vue +3 -1
  59. package/packages/data-table/src/main.vue +55 -10
  60. package/packages/flow/src/processForm.vue +32 -4
  61. package/packages/form/src/main.vue +3 -0
  62. package/packages/login/src/main.vue +12 -1
  63. package/packages/main/src/main.vue +147 -101
  64. package/packages/qr-code/src/main.vue +10 -5
  65. package/packages/theme-chalk/lib/base.css +1 -1
  66. package/packages/theme-chalk/lib/button-group.css +1 -1
  67. package/packages/theme-chalk/lib/button.css +1 -1
  68. package/packages/theme-chalk/lib/calendar.css +1 -1
  69. package/packages/theme-chalk/lib/index.css +1 -1
  70. package/packages/theme-chalk/lib/main.css +1 -1
  71. package/packages/theme-chalk/lib/menu.css +1 -1
  72. package/packages/theme-chalk/lib/qr-code.css +1 -1
  73. package/packages/theme-chalk/lib/sizer.css +1 -1
  74. package/packages/theme-chalk/lib/upload.css +1 -1
  75. package/packages/theme-chalk/src/base.scss +3 -0
  76. package/packages/theme-chalk/src/button-group.scss +110 -0
  77. package/packages/theme-chalk/src/button.scss +6 -0
  78. package/packages/theme-chalk/src/calendar.scss +3 -0
  79. package/packages/theme-chalk/src/qr-code.scss +1 -1
  80. package/packages/upload/src/main.vue +3 -1
  81. package/src/index.js +1 -1
  82. package/src/utils/util.js +4 -1
package/lib/main.js CHANGED
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
2200
2200
  });
2201
2201
  }
2202
2202
  }).catch(function (e) {});
2203
- } else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2203
+ } else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
2204
2204
  if (redirect && (to.path === '/main' || to.path === '/login')) {
2205
2205
  window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
2206
2206
  } else {
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
2890
2890
  * @param {string} [$color] - 颜色值
2891
2891
  **/
2892
2892
  var updateTheme = function updateTheme(color, send) {
2893
- color = color && startWith(color, '#') ? color : '#409eff';
2893
+ if (!color) {
2894
+ return false;
2895
+ }
2894
2896
 
2895
2897
  if (send === undefined) {
2896
2898
  send = true;
@@ -3826,7 +3828,7 @@ module.exports = require("runtime-import");
3826
3828
  // ESM COMPAT FLAG
3827
3829
  __webpack_require__.r(__webpack_exports__);
3828
3830
 
3829
- // 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=8fa53c9e&
3831
+ // 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=3910f883&
3830
3832
  var render = function () {
3831
3833
  var _vm = this
3832
3834
  var _h = _vm.$createElement
@@ -4258,7 +4260,7 @@ var staticRenderFns = []
4258
4260
  render._withStripped = true
4259
4261
 
4260
4262
 
4261
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=8fa53c9e&
4263
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=3910f883&
4262
4264
 
4263
4265
  // 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=75d533de&
4264
4266
  var userinfovue_type_template_id_75d533de_render = function () {
@@ -6382,10 +6384,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6382
6384
  //菜单展开关闭
6383
6385
  icons: Object,
6384
6386
  //logo
6385
- logo: {
6386
- type: String,
6387
- default: 'errorlogo'
6388
- },
6387
+ logo: String,
6389
6388
  //菜单显示类型
6390
6389
  scene: {
6391
6390
  type: String,
@@ -6748,7 +6747,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6748
6747
  },
6749
6748
  created: function created() {
6750
6749
  var params = util["a" /* default */].getParams() || {};
6751
- this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : '';
6750
+ if (typeof this.loadHomePage === 'string') {
6751
+ this.homePage = this.loadHomePage;
6752
+ }
6752
6753
  this.isHeader = params.header;
6753
6754
  var sysLogoIco = sessionStorage.getItem('sysLogoIco');
6754
6755
  sysLogoIco && util["a" /* default */].setFavicon(sysLogoIco);
@@ -6868,7 +6869,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6868
6869
  this.setTitle(ids[0]);
6869
6870
  }
6870
6871
  } else if (sessionStorage.getItem('jump') && this.isHistory) {
6871
- var _ids = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6872
+ var _ids = this.getId(this.menus, sessionStorage.getItem('jump'));
6872
6873
  if (_ids) {
6873
6874
  this.defaultActive = _ids;
6874
6875
  this.navIds = _ids;
@@ -6880,14 +6881,14 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6880
6881
  hash = hash.split('?')[0];
6881
6882
  }
6882
6883
  if (hash !== '#/' && hash !== '#/main') {
6883
- var _ids2 = this.getId(this.menus, util["a" /* default */].win.location.hash, true);
6884
+ var _ids2 = this.getId(this.menus, util["a" /* default */].win.location.hash);
6884
6885
  if (_ids2) {
6885
6886
  this.defaultActive = _ids2;
6886
6887
  this.navIds = _ids2;
6887
6888
  this.setTitle(_ids2[0]);
6888
6889
  }
6889
6890
  } else if (sessionStorage.getItem('jump') && this.isHistory) {
6890
- var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6891
+ var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'));
6891
6892
  if (_ids3) {
6892
6893
  this.defaultActive = _ids3;
6893
6894
  this.navIds = _ids3;
@@ -6970,7 +6971,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6970
6971
  hash = hash.split('?')[0];
6971
6972
  }
6972
6973
  var jump = sessionStorage.getItem('jump');
6973
- if (!applicationid && (!jump || !this.isHistory) && hash === '#/' && hash === '#/main') {
6974
+ if (!applicationid && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
6974
6975
  this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : results[i];
6975
6976
  if (this.isHomePage && this.homePage) {
6976
6977
  if (this.menus && this.menus.length) {
@@ -7082,17 +7083,65 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7082
7083
  }
7083
7084
  });
7084
7085
  },
7085
- jumpMenu: function jumpMenu(res, flag, param) {
7086
- var option = { url: res, flag: flag, param: param };
7086
+
7087
+ /**
7088
+ * @desc 跳转菜单
7089
+ * @param {Object/String} [res] - 菜单id(多个用,隔开)或url地址或系统菜单数据对象
7090
+ * @param {Boolean} [isUrl] - res是否是url地址
7091
+ * @param {Object} [param] - 拼接地址后的参数
7092
+ */
7093
+ jumpMenu: function jumpMenu(res, isUrl, path) {
7094
+ var _this5 = this;
7095
+
7096
+ var option = { url: res, isUrl: isUrl, path: path };
7087
7097
  if (util["a" /* default */].isObject(res)) {
7088
- option = mainvue_type_script_lang_js_extends({}, option, res);
7098
+ if (res.urlopenmode == 1) {
7099
+ util["a" /* default */].win.open(res.url);
7100
+ return;
7101
+ } else if (res.urlopenmode == 2) {
7102
+ location.href = res.url;
7103
+ return;
7104
+ } else {
7105
+ option = mainvue_type_script_lang_js_extends({}, option, res);
7106
+ }
7089
7107
  }
7090
7108
  var ids = void 0;
7091
7109
  if (typeof option.url === 'string') {
7092
- if (option.flag) {
7093
- ids = this.getId(this.menus, option.url, true);
7110
+ if (option.isUrl || option.url.indexOf('.html') > -1 || option.url.indexOf('.dhtml') > -1 || option.url.indexOf('/#/') > -1 || option.url.indexOf('#/') > -1) {
7111
+ option.isUrlc = true;
7112
+ ids = this.getId(this.menus, option.url);
7094
7113
  if (!ids) {
7095
- this.$message.error('未在菜单栏中找到此地址');
7114
+ if (option.url.indexOf('.html') === -1 && option.url.indexOf('#/') === -1) {
7115
+ this.method = 'iframe';
7116
+ this.refresh = false;
7117
+ this.page = option.url;
7118
+ } else {
7119
+ this.method = 'router';
7120
+ var routes = this.$router.options.routes;
7121
+ if (routes) {
7122
+ var _path = this.hasRouter(routes, option.url);
7123
+ if (_path) {
7124
+ var params = util["a" /* default */].getParams({ url: option.url });
7125
+ this.$router.push({
7126
+ path: _path,
7127
+ query: params
7128
+ });
7129
+ } else {
7130
+ if (this.loadWujie === false || this.downgrade && isIE) {
7131
+ this.method = 'iframe';
7132
+ this.refresh = false;
7133
+ this.page = option.url;
7134
+ } else {
7135
+ this.method = 'wujie';
7136
+ this.wjName = 'application' + Date.now();
7137
+ this.page = this.host + option.url;
7138
+ }
7139
+ }
7140
+ }
7141
+ }
7142
+ this.$nextTick(function () {
7143
+ _this5.refresh = true;
7144
+ });
7096
7145
  return;
7097
7146
  }
7098
7147
  } else {
@@ -7103,14 +7152,20 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7103
7152
  }
7104
7153
  this.setDefault(this.menus, ids, option.param);
7105
7154
  },
7106
- getId: function getId(arry, res, path) {
7107
- if (!res) {
7155
+
7156
+ /**
7157
+ * @desc 获取菜单层级id
7158
+ * @param {Array} [menus] - 系统菜单数据对象
7159
+ * @param {String} [url] - 菜单id或url地址
7160
+ */
7161
+ getId: function getId(menus, url) {
7162
+ if (!url) {
7108
7163
  return false;
7109
7164
  }
7110
- for (var i = 0; i < arry.length; i++) {
7111
- var item = arry[i];
7165
+ for (var i = 0; i < menus.length; i++) {
7166
+ var item = menus[i];
7112
7167
  if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
7113
- var id = this.getId(item.children, res, path);
7168
+ var id = this.getId(item.children, url);
7114
7169
  if (id) {
7115
7170
  if (typeof id === 'string') {
7116
7171
  this.isTabs = false;
@@ -7123,7 +7178,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7123
7178
  return id;
7124
7179
  }
7125
7180
  } else if (Object.prototype.hasOwnProperty.call(item, 'fourthTabs') && item.fourthTabs.length) {
7126
- var _id = this.getId(item.fourthTabs, res, path);
7181
+ var _id = this.getId(item.fourthTabs, url);
7127
7182
  if (_id) {
7128
7183
  if (typeof _id === 'string') {
7129
7184
  this.isTabs = true;
@@ -7135,12 +7190,12 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7135
7190
  }
7136
7191
  return _id;
7137
7192
  }
7138
- } else if (item.id === res || item.url == res) {
7193
+ } else if (item.id === url || item.url == url) {
7139
7194
  return item.id;
7140
7195
  } else {
7141
- if (path && item.url) {
7142
- var url = new URL(item.url, window.location.origin);
7143
- if (url.hash == res) {
7196
+ if (item.url) {
7197
+ var _url2 = new URL(item.url, window.location.origin);
7198
+ if (_url2.hash == _url2) {
7144
7199
  return item.id;
7145
7200
  }
7146
7201
  }
@@ -7151,67 +7206,60 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7151
7206
 
7152
7207
  //获取应用导航菜单
7153
7208
  getMenu: function getMenu() {
7154
- var _this5 = this;
7209
+ var _this6 = this;
7155
7210
 
7156
7211
  var param = this.menuCode ? { menuCode: this.menuCode } : {};
7157
7212
  var params = mainvue_type_script_lang_js_extends({}, this.param, param);
7158
7213
  util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
7159
7214
  if (res.rCode === 0) {
7160
7215
  if (res.results && res.results.length) {
7161
- _this5.menus = JSON.parse(JSON.stringify(res.results));
7162
- var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
7163
- if (applicationid) {
7164
- var ids = _this5.getId(_this5.menus, applicationid);
7165
- if (ids) {
7166
- _this5.defaultActive = ids;
7167
- }
7168
- } else if (sessionStorage.getItem('jump') && _this5.isHistory) {
7169
- var _ids4 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
7170
- if (_ids4) {
7171
- _this5.defaultActive = _ids4;
7172
- _this5.navIds = _ids4;
7173
- _this5.setTitle(_ids4[0]);
7174
- }
7175
- } else if (util["a" /* default */].win.location.hash) {
7176
- var hash = util["a" /* default */].win.location.hash;
7177
- if (hash) {
7178
- hash = hash.split('?')[0];
7179
- }
7180
- if (hash !== '#/' && hash !== '#/main') {
7181
- var _ids5 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
7182
- if (_ids5) {
7183
- _this5.defaultActive = _ids5;
7184
- _this5.navIds = _ids5;
7185
- _this5.setTitle(_ids5[0]);
7186
- }
7187
- } else if (sessionStorage.getItem('jump') && _this5.isHistory) {
7188
- var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
7189
- if (_ids6) {
7190
- _this5.defaultActive = _ids6;
7191
- _this5.navIds = _ids6;
7192
- _this5.setTitle(_ids6[0]);
7193
- }
7194
- }
7195
- }
7196
- _this5.setTips(_this5.menus);
7197
- store["a" /* default */].set('nav', _this5.menus);
7198
- _this5.setMenu(_this5.menus);
7216
+ _this6.menus = JSON.parse(JSON.stringify(res.results));
7217
+ _this6.setTips(_this6.menus);
7218
+ store["a" /* default */].set('nav', _this6.menus);
7219
+ _this6.setMenu(_this6.menus);
7199
7220
  } else {
7200
- _this5.$message.error('未分配菜单权限,请联系管理员!');
7221
+ _this6.$message.error('未分配菜单权限,请联系管理员!');
7201
7222
  }
7202
7223
  } else {
7203
7224
  var msg = res.msg || '系统错误,请联系管理员!';
7204
- _this5.$message.error(msg);
7225
+ _this6.$message.error(msg);
7205
7226
  }
7206
7227
  }).catch(function (err) {
7207
7228
  if (err.message && err.message !== 'canceled') {
7208
- _this5.$message.error(err.message);
7229
+ _this6.$message.error(err.message);
7209
7230
  }
7210
7231
  });
7211
7232
  },
7212
7233
 
7213
7234
  //设置默认左侧导航
7214
7235
  setMenu: function setMenu(res) {
7236
+ var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
7237
+ if (applicationid) {
7238
+ var ids = this.getId(this.menus, applicationid);
7239
+ if (ids) {
7240
+ this.defaultActive = ids;
7241
+ }
7242
+ } else if (util["a" /* default */].win.location.hash) {
7243
+ var hash = util["a" /* default */].win.location.hash;
7244
+ if (hash) {
7245
+ hash = hash.split('?')[0];
7246
+ }
7247
+ if (hash !== '#/' && hash !== '#/main') {
7248
+ var _ids4 = this.getId(this.menus, util["a" /* default */].win.location.hash);
7249
+ if (_ids4) {
7250
+ this.defaultActive = _ids4;
7251
+ this.navIds = _ids4;
7252
+ this.setTitle(_ids4[0]);
7253
+ }
7254
+ }
7255
+ } else if (sessionStorage.getItem('jump') && this.isHistory) {
7256
+ var _ids5 = this.getId(this.menus, sessionStorage.getItem('jump'));
7257
+ if (_ids5) {
7258
+ this.defaultActive = _ids5;
7259
+ this.navIds = _ids5;
7260
+ this.setTitle(_ids5[0]);
7261
+ }
7262
+ }
7215
7263
  if (this.defaultActive && this.defaultActive.length) {
7216
7264
  this.isDefault = false;
7217
7265
  this.setDefault(res, this.defaultActive);
@@ -7219,9 +7267,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7219
7267
  if (this.homePage || !util["a" /* default */].getStorage('mainConfig')) {
7220
7268
  this.isDefault = true;
7221
7269
  if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
7222
- var ids = this.getId(this.menus, this.homePage);
7223
- if (ids) {
7224
- this.defaultActive = ids;
7270
+ var _ids6 = this.getId(this.menus, this.homePage);
7271
+ if (_ids6) {
7272
+ this.defaultActive = _ids6;
7225
7273
  this.isDefault = false;
7226
7274
  this.setDefault(res, this.defaultActive);
7227
7275
  return false;
@@ -7283,7 +7331,20 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7283
7331
  if (id && this.menu[0].id !== id) {
7284
7332
  this.active.push(id);
7285
7333
  } else {
7286
- this.handleJump(this.menu[0].url, this.menu[0].urlopenmode, this.menu[0]);
7334
+ var _hash = util["a" /* default */].win.location.hash;
7335
+ if (_hash) {
7336
+ _hash = _hash.split('?')[0];
7337
+ if (_hash !== '#/' && _hash !== '#/main') {
7338
+ this.handleJump(_hash);
7339
+ return;
7340
+ }
7341
+ }
7342
+ var jump = sessionStorage.getItem('jump');
7343
+ if (jump) {
7344
+ this.handleJump(jump);
7345
+ } else {
7346
+ this.handleJump(this.menu[0].url, this.menu[0].urlopenmode, this.menu[0]);
7347
+ }
7287
7348
  }
7288
7349
  }
7289
7350
  }
@@ -7327,11 +7388,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7327
7388
 
7328
7389
  //遍历设置菜单气泡提醒
7329
7390
  setTips: function setTips(obj) {
7330
- var _this6 = this;
7391
+ var _this7 = this;
7331
7392
 
7332
7393
  if (Array.isArray(obj)) {
7333
7394
  obj.forEach(function (item) {
7334
- _this6.setTips(item);
7395
+ _this7.setTips(item);
7335
7396
  });
7336
7397
  } else {
7337
7398
  if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
@@ -7341,7 +7402,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7341
7402
  var flag = false;
7342
7403
  if (obj.children && obj.children.length) {
7343
7404
  obj.children.forEach(function (item) {
7344
- if (_this6.setTips(item)) {
7405
+ if (_this7.setTips(item)) {
7345
7406
  flag = true;
7346
7407
  }
7347
7408
  });
@@ -7351,7 +7412,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7351
7412
  }
7352
7413
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
7353
7414
  obj.fourthTabs.forEach(function (item) {
7354
- if (_this6.setTips(item)) {
7415
+ if (_this7.setTips(item)) {
7355
7416
  flag = true;
7356
7417
  }
7357
7418
  });
@@ -7409,7 +7470,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7409
7470
  break;
7410
7471
  }
7411
7472
  }
7412
- } else {
7473
+ } else if (active && active.length) {
7413
7474
  this.navs = [];
7414
7475
  this.subsystem = [];
7415
7476
  this.menu = res;
@@ -7443,11 +7504,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7443
7504
  }
7444
7505
  if (item.fourthTabs && item.fourthTabs.length) {
7445
7506
  index++;
7446
- var _url2 = this.getUrl(item.fourthTabs, active, index, param);
7447
- if (_url2) {
7507
+ var _url3 = this.getUrl(item.fourthTabs, active, index, param);
7508
+ if (_url3) {
7448
7509
  this.$set(this, 'tabs', item.fourthTabs);
7449
7510
  }
7450
- return _url2;
7511
+ return _url3;
7451
7512
  }
7452
7513
  }
7453
7514
  } else if (item.children && item.children.length) {
@@ -7498,11 +7559,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7498
7559
  var subNode = this.getFirst(node);
7499
7560
  if (subNode) {
7500
7561
  this.active = subNode.id;
7501
- this.navIds = [node.id].concat(this.getId(node.children, subNode.url, true));
7562
+ this.navIds = [node.id].concat(this.getId(node.children, subNode.url));
7502
7563
  }
7503
7564
  }
7504
7565
  } else {
7505
- this.navIds = this.getId(this.menus, node.url, true);
7566
+ this.navIds = this.getId(this.menus, node.url);
7506
7567
  this.setTitle(this.navIds[0]);
7507
7568
  this.tabsId = fourthTabs ? node.id : '';
7508
7569
  }
@@ -7520,7 +7581,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7520
7581
  var _subNode = this.getFirst(node);
7521
7582
  if (_subNode) {
7522
7583
  this.active = _subNode.id;
7523
- this.navIds = [node.id].concat(this.getId(node.children, _subNode.url, true));
7584
+ this.navIds = [node.id].concat(this.getId(node.children, _subNode.url));
7524
7585
  }
7525
7586
  }
7526
7587
  this.isSide = true;
@@ -7539,7 +7600,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7539
7600
  var _subNode2 = this.getFirst(node);
7540
7601
  this.active = [node.id];
7541
7602
  if (_subNode2 && node.id !== _subNode2.id) {
7542
- this.navIds = this.getId(this.menus, _subNode2.url, true);
7603
+ this.navIds = this.getId(this.menus, _subNode2.url);
7543
7604
  this.$set(this.active, 1, _subNode2.id);
7544
7605
  }
7545
7606
  }
@@ -7563,7 +7624,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7563
7624
  } else {
7564
7625
  this.active = tab.id;
7565
7626
  }
7566
- this.navIds = this.getId(this.menus, tab.url, true);
7627
+ this.navIds = this.getId(this.menus, tab.url);
7567
7628
  }
7568
7629
  } else {
7569
7630
  var _tab = (node.fourthTabs || []).filter(function (item) {
@@ -7572,9 +7633,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7572
7633
  if (_tab) {
7573
7634
  this.tabs = node.fourthTabs;
7574
7635
  this.tabsId = _tab.id;
7575
- this.navIds = this.getId(this.menus, _tab.url, true);
7636
+ this.navIds = this.getId(this.menus, _tab.url);
7576
7637
  } else {
7577
- this.navIds = this.getId(this.menus, node.url, true);
7638
+ this.navIds = this.getId(this.menus, node.url);
7578
7639
  }
7579
7640
  }
7580
7641
  } else {
@@ -7582,7 +7643,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7582
7643
  this.tabs = node.fourthTabs;
7583
7644
  this.tabsId = this.tabs[0].id;
7584
7645
  this.handleJump(this.tabs[0].url, this.tabs[0].urlopenmode, this.tabs[0]);
7585
- this.navIds = this.getId(this.menus, this.tabs[0].url, true);
7646
+ this.navIds = this.getId(this.menus, this.tabs[0].url);
7586
7647
  }
7587
7648
  }
7588
7649
  } else {
@@ -7595,14 +7656,14 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7595
7656
  } else {
7596
7657
  this.active = _subNode3.id;
7597
7658
  }
7598
- this.navIds = this.getId(this.menus, _subNode3.url, true);
7659
+ this.navIds = this.getId(this.menus, _subNode3.url);
7599
7660
  }
7600
7661
  }
7601
7662
  }
7602
7663
  break;
7603
7664
  case 'tabs':
7604
7665
  this.tabsId = node.id;
7605
- this.navIds = this.getId(this.menus, node.url, true);
7666
+ this.navIds = this.getId(this.menus, node.url);
7606
7667
  break;
7607
7668
  }
7608
7669
  if (node.url) {
@@ -7623,19 +7684,19 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7623
7684
  }
7624
7685
  }
7625
7686
  } else {
7626
- var _path = res.path;
7627
- if (_path !== '/' && _path !== '/404') {
7628
- _path = _path.replace(_path[1], _path[1].toLowerCase());
7687
+ var _path2 = res.path;
7688
+ if (_path2 !== '/' && _path2 !== '/404') {
7689
+ _path2 = _path2.replace(_path2[1], _path2[1].toLowerCase());
7629
7690
  }
7630
7691
  var pathname = url.substring(url.indexOf('#/') + 1);
7631
7692
  pathname = pathname.replace(pathname[1], pathname[1].toLowerCase()).split('?')[0];
7632
- if (res.path !== '/' && pathname == _path) {
7693
+ if (res.path !== '/' && pathname == _path2) {
7633
7694
  return pathname;
7634
7695
  }
7635
7696
  if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
7636
- var _path2 = this.hasRouter(res.children, url);
7637
- if (_path2) {
7638
- return _path2;
7697
+ var _path3 = this.hasRouter(res.children, url);
7698
+ if (_path3) {
7699
+ return _path3;
7639
7700
  }
7640
7701
  }
7641
7702
  }
@@ -7645,7 +7706,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7645
7706
 
7646
7707
  //头部工具交互事件
7647
7708
  handleClick: function handleClick(res) {
7648
- var _this7 = this;
7709
+ var _this8 = this;
7649
7710
 
7650
7711
  var type = res.type;
7651
7712
 
@@ -7666,7 +7727,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7666
7727
  this.setMenu(this.menus);
7667
7728
  }
7668
7729
  this.$nextTick(function () {
7669
- _this7.reset = true;
7730
+ _this8.reset = true;
7670
7731
  });
7671
7732
  break;
7672
7733
  case 'user':
@@ -7694,21 +7755,21 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7694
7755
 
7695
7756
  //刷新子页面、子路由
7696
7757
  handleRefresh: function handleRefresh() {
7697
- var _this8 = this;
7758
+ var _this9 = this;
7698
7759
 
7699
7760
  if (this.method === 'iframe') {
7700
7761
  this.page = util["a" /* default */].handlerUrl(this.page);
7701
7762
  } else {
7702
7763
  this.refresh = false;
7703
7764
  this.$nextTick(function () {
7704
- _this8.refresh = true;
7765
+ _this9.refresh = true;
7705
7766
  });
7706
7767
  }
7707
7768
  },
7708
7769
 
7709
7770
  //跳转页面
7710
7771
  handleJump: function handleJump(page, type, res, param) {
7711
- var _this9 = this;
7772
+ var _this10 = this;
7712
7773
 
7713
7774
  console.log(page);
7714
7775
  var prevPage = sessionStorage.getItem('jump');
@@ -7728,7 +7789,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7728
7789
  util["a" /* default */].win.open(page);
7729
7790
  } else if (type == 2) {
7730
7791
  location.href = page;
7731
- } else if (type == 3) {
7792
+ } else if (type == 3 || this.loadWujie === false || this.downgrade && isIE) {
7732
7793
  this.method = 'iframe';
7733
7794
  this.refresh = false;
7734
7795
  this.page = util["a" /* default */].handlerUrl(page, param);
@@ -7739,7 +7800,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7739
7800
  this.wjName = 'singlespa';
7740
7801
  this.page = this.host + page;
7741
7802
  this.$nextTick(function () {
7742
- _this9.refresh = true;
7803
+ _this10.refresh = true;
7743
7804
  });
7744
7805
  } else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
7745
7806
  this.method = 'iframe';
@@ -7771,7 +7832,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7771
7832
  query: params
7772
7833
  });
7773
7834
  this.$nextTick(function () {
7774
- _this9.refresh = true;
7835
+ _this10.refresh = true;
7775
7836
  });
7776
7837
  } else {
7777
7838
  var urlopenmode = util["a" /* default */].getParams({
@@ -7787,7 +7848,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7787
7848
  this.wjName = res && res.appCode ? res.appCode : 'application';
7788
7849
  this.page = this.host + page;
7789
7850
  this.$nextTick(function () {
7790
- _this9.refresh = true;
7851
+ _this10.refresh = true;
7791
7852
  });
7792
7853
  }
7793
7854
  }
@@ -7799,7 +7860,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7799
7860
  }
7800
7861
  }
7801
7862
  this.$nextTick(function () {
7802
- _this9.showPage = true;
7863
+ _this10.showPage = true;
7803
7864
  });
7804
7865
  },
7805
7866
 
@@ -7911,7 +7972,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7911
7972
 
7912
7973
  //监听改变菜单
7913
7974
  handleListener: function handleListener() {
7914
- var _this10 = this;
7975
+ var _this11 = this;
7915
7976
 
7916
7977
  util["a" /* default */].win.addEventListener('message', function (e) {
7917
7978
  var msg = e.data;
@@ -7920,14 +7981,14 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7920
7981
  if (typeof res === 'string') {
7921
7982
  res = res.split(',');
7922
7983
  }
7923
- _this10.setDefault(_this10.menus, res);
7984
+ _this11.setDefault(_this11.menus, res);
7924
7985
  }
7925
7986
  }, false);
7926
7987
  },
7927
7988
 
7928
7989
  //开启weosocket
7929
7990
  initWebSocket: function initWebSocket() {
7930
- var _this11 = this;
7991
+ var _this12 = this;
7931
7992
 
7932
7993
  this.webSocket = util["a" /* default */].socket({
7933
7994
  url: api["cc" /* wss */],
@@ -7937,32 +7998,32 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7937
7998
  for (var i in data) {
7938
7999
  if (data[i] !== null && data[i] !== undefined) {
7939
8000
  if (i === 'onlineUserNums' && data[i] > 0) {
7940
- _this11.online = data[i];
8001
+ _this12.online = data[i];
7941
8002
  }
7942
8003
  if (i === 'sysMsgNums') {
7943
- _this11.notice = data[i];
7944
- if (_this11.showMsg) {
7945
- _this11.$refs.message.getMsg(true);
8004
+ _this12.notice = data[i];
8005
+ if (_this12.showMsg) {
8006
+ _this12.$refs.message.getMsg(true);
7946
8007
  }
7947
8008
  }
7948
8009
  if (i === 'menuTipsMap') {
7949
- _this11.menuTips = data[i];
8010
+ _this12.menuTips = data[i];
7950
8011
  }
7951
8012
  if (i === 'sysMsgList') {
7952
- _this11.sysMsg = data[i];
8013
+ _this12.sysMsg = data[i];
7953
8014
  }
7954
8015
  if (i === 'extraData') {
7955
- _this11.extraData = data[i];
8016
+ _this12.extraData = data[i];
7956
8017
  }
7957
8018
  }
7958
8019
  }
7959
- if (_this11.$store) {
8020
+ if (_this12.$store) {
7960
8021
  try {
7961
- _this11.$store.commit('websocket', data);
8022
+ _this12.$store.commit('websocket', data);
7962
8023
  } catch (error) {}
7963
8024
  }
7964
- if (_this11.$eventBus) {
7965
- _this11.$eventBus.$emit('websocket', data);
8025
+ if (_this12.$eventBus) {
8026
+ _this12.$eventBus.$emit('websocket', data);
7966
8027
  }
7967
8028
  if (util["a" /* default */].win.eventBus) {
7968
8029
  util["a" /* default */].win.eventBus.$emit('websocket', data);
@@ -7971,13 +8032,13 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7971
8032
  });
7972
8033
  },
7973
8034
  handleOpened: function handleOpened(res) {
7974
- var _this12 = this;
8035
+ var _this13 = this;
7975
8036
 
7976
8037
  if (res === undefined) {
7977
8038
  this.sysMsg = [];
7978
8039
  } else if (res == false && this.sysMsg.length) {
7979
8040
  this.sysMsgOut = setTimeout(function () {
7980
- _this12.sysMsg = [];
8041
+ _this13.sysMsg = [];
7981
8042
  }, 3000);
7982
8043
  } else if (this.sysMsgOut) {
7983
8044
  clearTimeout(this.sysMsgOut);
@@ -7999,7 +8060,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7999
8060
  }
8000
8061
  },
8001
8062
  handleReLogin: function handleReLogin(res) {
8002
- var _this13 = this;
8063
+ var _this14 = this;
8003
8064
 
8004
8065
  if (res && typeof res == 'string') {
8005
8066
  res = JSON.parse(res);
@@ -8030,7 +8091,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
8030
8091
  this.timer = setTimeout(function () {
8031
8092
  console.log('handleReLogin');
8032
8093
  sessionStorage.setItem('remind', 1);
8033
- _this13.$confirm(msg, btn).then(function () {
8094
+ _this14.$confirm(msg, btn).then(function () {
8034
8095
  util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
8035
8096
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
8036
8097
  try {