eoss-ui 0.5.64 → 0.5.66

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 (52) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +209 -44
  3. package/lib/button.js +65 -37
  4. package/lib/calendar.js +18 -6
  5. package/lib/data-table.js +116 -31
  6. package/lib/eoss-ui.common.js +1143 -719
  7. package/lib/form.js +22 -7
  8. package/lib/index.js +1 -1
  9. package/lib/login.js +11 -2
  10. package/lib/main.js +183 -121
  11. package/lib/selector.js +469 -429
  12. package/lib/theme-chalk/base.css +1 -1
  13. package/lib/theme-chalk/button-group.css +1 -1
  14. package/lib/theme-chalk/button.css +1 -1
  15. package/lib/theme-chalk/calendar.css +1 -1
  16. package/lib/theme-chalk/index.css +1 -1
  17. package/lib/theme-chalk/main.css +1 -1
  18. package/lib/theme-chalk/menu.css +1 -1
  19. package/lib/theme-chalk/sizer.css +1 -1
  20. package/lib/theme-chalk/tree.css +1 -1
  21. package/lib/theme-chalk/upload.css +1 -1
  22. package/lib/toolbar.js +6 -0
  23. package/lib/upload.js +9 -7
  24. package/package.json +2 -2
  25. package/packages/button/src/main.vue +96 -56
  26. package/packages/button-group/src/main.vue +72 -8
  27. package/packages/calendar/src/main.vue +16 -5
  28. package/packages/data-table/src/children.vue +3 -1
  29. package/packages/data-table/src/column.vue +1 -1
  30. package/packages/data-table/src/main.vue +55 -10
  31. package/packages/form/src/main.vue +19 -5
  32. package/packages/login/src/main.vue +8 -0
  33. package/packages/main/src/main.vue +141 -96
  34. package/packages/selector/src/main.vue +31 -5
  35. package/packages/theme-chalk/lib/base.css +1 -1
  36. package/packages/theme-chalk/lib/button-group.css +1 -1
  37. package/packages/theme-chalk/lib/button.css +1 -1
  38. package/packages/theme-chalk/lib/calendar.css +1 -1
  39. package/packages/theme-chalk/lib/index.css +1 -1
  40. package/packages/theme-chalk/lib/main.css +1 -1
  41. package/packages/theme-chalk/lib/menu.css +1 -1
  42. package/packages/theme-chalk/lib/sizer.css +1 -1
  43. package/packages/theme-chalk/lib/tree.css +1 -1
  44. package/packages/theme-chalk/lib/upload.css +1 -1
  45. package/packages/theme-chalk/src/base.scss +3 -0
  46. package/packages/theme-chalk/src/button-group.scss +149 -0
  47. package/packages/theme-chalk/src/button.scss +6 -0
  48. package/packages/theme-chalk/src/calendar.scss +3 -0
  49. package/packages/theme-chalk/src/tree.scss +1 -0
  50. package/packages/toolbar/src/main.vue +6 -0
  51. package/packages/upload/src/main.vue +4 -2
  52. package/src/index.js +1 -1
package/lib/main.js CHANGED
@@ -3828,7 +3828,7 @@ module.exports = require("runtime-import");
3828
3828
  // ESM COMPAT FLAG
3829
3829
  __webpack_require__.r(__webpack_exports__);
3830
3830
 
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=5b54252b&
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&
3832
3832
  var render = function () {
3833
3833
  var _vm = this
3834
3834
  var _h = _vm.$createElement
@@ -4260,7 +4260,7 @@ var staticRenderFns = []
4260
4260
  render._withStripped = true
4261
4261
 
4262
4262
 
4263
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=5b54252b&
4263
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=3910f883&
4264
4264
 
4265
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&
4266
4266
  var userinfovue_type_template_id_75d533de_render = function () {
@@ -6747,7 +6747,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6747
6747
  },
6748
6748
  created: function created() {
6749
6749
  var params = util["a" /* default */].getParams() || {};
6750
- this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : '';
6750
+ if (typeof this.loadHomePage === 'string') {
6751
+ this.homePage = this.loadHomePage;
6752
+ }
6751
6753
  this.isHeader = params.header;
6752
6754
  var sysLogoIco = sessionStorage.getItem('sysLogoIco');
6753
6755
  sysLogoIco && util["a" /* default */].setFavicon(sysLogoIco);
@@ -6867,7 +6869,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6867
6869
  this.setTitle(ids[0]);
6868
6870
  }
6869
6871
  } else if (sessionStorage.getItem('jump') && this.isHistory) {
6870
- var _ids = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6872
+ var _ids = this.getId(this.menus, sessionStorage.getItem('jump'));
6871
6873
  if (_ids) {
6872
6874
  this.defaultActive = _ids;
6873
6875
  this.navIds = _ids;
@@ -6879,14 +6881,14 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6879
6881
  hash = hash.split('?')[0];
6880
6882
  }
6881
6883
  if (hash !== '#/' && hash !== '#/main') {
6882
- 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);
6883
6885
  if (_ids2) {
6884
6886
  this.defaultActive = _ids2;
6885
6887
  this.navIds = _ids2;
6886
6888
  this.setTitle(_ids2[0]);
6887
6889
  }
6888
6890
  } else if (sessionStorage.getItem('jump') && this.isHistory) {
6889
- var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6891
+ var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'));
6890
6892
  if (_ids3) {
6891
6893
  this.defaultActive = _ids3;
6892
6894
  this.navIds = _ids3;
@@ -6969,7 +6971,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
6969
6971
  hash = hash.split('?')[0];
6970
6972
  }
6971
6973
  var jump = sessionStorage.getItem('jump');
6972
- if (!applicationid && (!jump || !this.isHistory) && hash === '#/' && hash === '#/main') {
6974
+ if (!applicationid && (!jump || !this.isHistory) && (hash === '#/' || hash === '#/main') || jump == results[i]) {
6973
6975
  this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : results[i];
6974
6976
  if (this.isHomePage && this.homePage) {
6975
6977
  if (this.menus && this.menus.length) {
@@ -7081,17 +7083,65 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7081
7083
  }
7082
7084
  });
7083
7085
  },
7084
- jumpMenu: function jumpMenu(res, flag, param) {
7085
- 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 };
7086
7097
  if (util["a" /* default */].isObject(res)) {
7087
- 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
+ }
7088
7107
  }
7089
7108
  var ids = void 0;
7090
7109
  if (typeof option.url === 'string') {
7091
- if (option.flag) {
7092
- 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);
7093
7113
  if (!ids) {
7094
- 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
+ });
7095
7145
  return;
7096
7146
  }
7097
7147
  } else {
@@ -7102,14 +7152,20 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7102
7152
  }
7103
7153
  this.setDefault(this.menus, ids, option.param);
7104
7154
  },
7105
- getId: function getId(arry, res, path) {
7106
- 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) {
7107
7163
  return false;
7108
7164
  }
7109
- for (var i = 0; i < arry.length; i++) {
7110
- var item = arry[i];
7165
+ for (var i = 0; i < menus.length; i++) {
7166
+ var item = menus[i];
7111
7167
  if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
7112
- var id = this.getId(item.children, res, path);
7168
+ var id = this.getId(item.children, url);
7113
7169
  if (id) {
7114
7170
  if (typeof id === 'string') {
7115
7171
  this.isTabs = false;
@@ -7122,7 +7178,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7122
7178
  return id;
7123
7179
  }
7124
7180
  } else if (Object.prototype.hasOwnProperty.call(item, 'fourthTabs') && item.fourthTabs.length) {
7125
- var _id = this.getId(item.fourthTabs, res, path);
7181
+ var _id = this.getId(item.fourthTabs, url);
7126
7182
  if (_id) {
7127
7183
  if (typeof _id === 'string') {
7128
7184
  this.isTabs = true;
@@ -7134,12 +7190,12 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7134
7190
  }
7135
7191
  return _id;
7136
7192
  }
7137
- } else if (item.id === res || item.url == res) {
7193
+ } else if (item.id === url || item.url == url) {
7138
7194
  return item.id;
7139
7195
  } else {
7140
- if (path && item.url) {
7141
- var url = new URL(item.url, window.location.origin);
7142
- if (url.hash == res) {
7196
+ if (item.url) {
7197
+ var _url2 = new URL(item.url, window.location.origin);
7198
+ if (_url2.hash == _url2) {
7143
7199
  return item.id;
7144
7200
  }
7145
7201
  }
@@ -7150,67 +7206,60 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7150
7206
 
7151
7207
  //获取应用导航菜单
7152
7208
  getMenu: function getMenu() {
7153
- var _this5 = this;
7209
+ var _this6 = this;
7154
7210
 
7155
7211
  var param = this.menuCode ? { menuCode: this.menuCode } : {};
7156
7212
  var params = mainvue_type_script_lang_js_extends({}, this.param, param);
7157
7213
  util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
7158
7214
  if (res.rCode === 0) {
7159
7215
  if (res.results && res.results.length) {
7160
- _this5.menus = JSON.parse(JSON.stringify(res.results));
7161
- var applicationid = util["a" /* default */].getParams('applicationid') || util["a" /* default */].getParams('applicationId');
7162
- if (applicationid) {
7163
- var ids = _this5.getId(_this5.menus, applicationid);
7164
- if (ids) {
7165
- _this5.defaultActive = ids;
7166
- }
7167
- } else if (sessionStorage.getItem('jump') && _this5.isHistory) {
7168
- var _ids4 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
7169
- if (_ids4) {
7170
- _this5.defaultActive = _ids4;
7171
- _this5.navIds = _ids4;
7172
- _this5.setTitle(_ids4[0]);
7173
- }
7174
- } else if (util["a" /* default */].win.location.hash) {
7175
- var hash = util["a" /* default */].win.location.hash;
7176
- if (hash) {
7177
- hash = hash.split('?')[0];
7178
- }
7179
- if (hash !== '#/' && hash !== '#/main') {
7180
- var _ids5 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
7181
- if (_ids5) {
7182
- _this5.defaultActive = _ids5;
7183
- _this5.navIds = _ids5;
7184
- _this5.setTitle(_ids5[0]);
7185
- }
7186
- } else if (sessionStorage.getItem('jump') && _this5.isHistory) {
7187
- var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
7188
- if (_ids6) {
7189
- _this5.defaultActive = _ids6;
7190
- _this5.navIds = _ids6;
7191
- _this5.setTitle(_ids6[0]);
7192
- }
7193
- }
7194
- }
7195
- _this5.setTips(_this5.menus);
7196
- store["a" /* default */].set('nav', _this5.menus);
7197
- _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);
7198
7220
  } else {
7199
- _this5.$message.error('未分配菜单权限,请联系管理员!');
7221
+ _this6.$message.error('未分配菜单权限,请联系管理员!');
7200
7222
  }
7201
7223
  } else {
7202
7224
  var msg = res.msg || '系统错误,请联系管理员!';
7203
- _this5.$message.error(msg);
7225
+ _this6.$message.error(msg);
7204
7226
  }
7205
7227
  }).catch(function (err) {
7206
7228
  if (err.message && err.message !== 'canceled') {
7207
- _this5.$message.error(err.message);
7229
+ _this6.$message.error(err.message);
7208
7230
  }
7209
7231
  });
7210
7232
  },
7211
7233
 
7212
7234
  //设置默认左侧导航
7213
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
+ }
7214
7263
  if (this.defaultActive && this.defaultActive.length) {
7215
7264
  this.isDefault = false;
7216
7265
  this.setDefault(res, this.defaultActive);
@@ -7218,9 +7267,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7218
7267
  if (this.homePage || !util["a" /* default */].getStorage('mainConfig')) {
7219
7268
  this.isDefault = true;
7220
7269
  if (this.homePage && (!this.defaultActive || !this.defaultActive.length)) {
7221
- var ids = this.getId(this.menus, this.homePage);
7222
- if (ids) {
7223
- this.defaultActive = ids;
7270
+ var _ids6 = this.getId(this.menus, this.homePage);
7271
+ if (_ids6) {
7272
+ this.defaultActive = _ids6;
7224
7273
  this.isDefault = false;
7225
7274
  this.setDefault(res, this.defaultActive);
7226
7275
  return false;
@@ -7282,7 +7331,20 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7282
7331
  if (id && this.menu[0].id !== id) {
7283
7332
  this.active.push(id);
7284
7333
  } else {
7285
- 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
+ }
7286
7348
  }
7287
7349
  }
7288
7350
  }
@@ -7326,11 +7388,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7326
7388
 
7327
7389
  //遍历设置菜单气泡提醒
7328
7390
  setTips: function setTips(obj) {
7329
- var _this6 = this;
7391
+ var _this7 = this;
7330
7392
 
7331
7393
  if (Array.isArray(obj)) {
7332
7394
  obj.forEach(function (item) {
7333
- _this6.setTips(item);
7395
+ _this7.setTips(item);
7334
7396
  });
7335
7397
  } else {
7336
7398
  if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
@@ -7340,7 +7402,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7340
7402
  var flag = false;
7341
7403
  if (obj.children && obj.children.length) {
7342
7404
  obj.children.forEach(function (item) {
7343
- if (_this6.setTips(item)) {
7405
+ if (_this7.setTips(item)) {
7344
7406
  flag = true;
7345
7407
  }
7346
7408
  });
@@ -7350,7 +7412,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7350
7412
  }
7351
7413
  } else if (obj.fourthTabs && obj.fourthTabs.length) {
7352
7414
  obj.fourthTabs.forEach(function (item) {
7353
- if (_this6.setTips(item)) {
7415
+ if (_this7.setTips(item)) {
7354
7416
  flag = true;
7355
7417
  }
7356
7418
  });
@@ -7408,7 +7470,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7408
7470
  break;
7409
7471
  }
7410
7472
  }
7411
- } else {
7473
+ } else if (active && active.length) {
7412
7474
  this.navs = [];
7413
7475
  this.subsystem = [];
7414
7476
  this.menu = res;
@@ -7442,11 +7504,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7442
7504
  }
7443
7505
  if (item.fourthTabs && item.fourthTabs.length) {
7444
7506
  index++;
7445
- var _url2 = this.getUrl(item.fourthTabs, active, index, param);
7446
- if (_url2) {
7507
+ var _url3 = this.getUrl(item.fourthTabs, active, index, param);
7508
+ if (_url3) {
7447
7509
  this.$set(this, 'tabs', item.fourthTabs);
7448
7510
  }
7449
- return _url2;
7511
+ return _url3;
7450
7512
  }
7451
7513
  }
7452
7514
  } else if (item.children && item.children.length) {
@@ -7497,11 +7559,11 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7497
7559
  var subNode = this.getFirst(node);
7498
7560
  if (subNode) {
7499
7561
  this.active = subNode.id;
7500
- this.navIds = [node.id].concat(this.getId(node.children, subNode.url, true));
7562
+ this.navIds = [node.id].concat(this.getId(node.children, subNode.url));
7501
7563
  }
7502
7564
  }
7503
7565
  } else {
7504
- this.navIds = this.getId(this.menus, node.url, true);
7566
+ this.navIds = this.getId(this.menus, node.url);
7505
7567
  this.setTitle(this.navIds[0]);
7506
7568
  this.tabsId = fourthTabs ? node.id : '';
7507
7569
  }
@@ -7519,7 +7581,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7519
7581
  var _subNode = this.getFirst(node);
7520
7582
  if (_subNode) {
7521
7583
  this.active = _subNode.id;
7522
- this.navIds = [node.id].concat(this.getId(node.children, _subNode.url, true));
7584
+ this.navIds = [node.id].concat(this.getId(node.children, _subNode.url));
7523
7585
  }
7524
7586
  }
7525
7587
  this.isSide = true;
@@ -7538,7 +7600,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7538
7600
  var _subNode2 = this.getFirst(node);
7539
7601
  this.active = [node.id];
7540
7602
  if (_subNode2 && node.id !== _subNode2.id) {
7541
- this.navIds = this.getId(this.menus, _subNode2.url, true);
7603
+ this.navIds = this.getId(this.menus, _subNode2.url);
7542
7604
  this.$set(this.active, 1, _subNode2.id);
7543
7605
  }
7544
7606
  }
@@ -7562,7 +7624,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7562
7624
  } else {
7563
7625
  this.active = tab.id;
7564
7626
  }
7565
- this.navIds = this.getId(this.menus, tab.url, true);
7627
+ this.navIds = this.getId(this.menus, tab.url);
7566
7628
  }
7567
7629
  } else {
7568
7630
  var _tab = (node.fourthTabs || []).filter(function (item) {
@@ -7571,9 +7633,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7571
7633
  if (_tab) {
7572
7634
  this.tabs = node.fourthTabs;
7573
7635
  this.tabsId = _tab.id;
7574
- this.navIds = this.getId(this.menus, _tab.url, true);
7636
+ this.navIds = this.getId(this.menus, _tab.url);
7575
7637
  } else {
7576
- this.navIds = this.getId(this.menus, node.url, true);
7638
+ this.navIds = this.getId(this.menus, node.url);
7577
7639
  }
7578
7640
  }
7579
7641
  } else {
@@ -7581,7 +7643,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7581
7643
  this.tabs = node.fourthTabs;
7582
7644
  this.tabsId = this.tabs[0].id;
7583
7645
  this.handleJump(this.tabs[0].url, this.tabs[0].urlopenmode, this.tabs[0]);
7584
- this.navIds = this.getId(this.menus, this.tabs[0].url, true);
7646
+ this.navIds = this.getId(this.menus, this.tabs[0].url);
7585
7647
  }
7586
7648
  }
7587
7649
  } else {
@@ -7594,14 +7656,14 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7594
7656
  } else {
7595
7657
  this.active = _subNode3.id;
7596
7658
  }
7597
- this.navIds = this.getId(this.menus, _subNode3.url, true);
7659
+ this.navIds = this.getId(this.menus, _subNode3.url);
7598
7660
  }
7599
7661
  }
7600
7662
  }
7601
7663
  break;
7602
7664
  case 'tabs':
7603
7665
  this.tabsId = node.id;
7604
- this.navIds = this.getId(this.menus, node.url, true);
7666
+ this.navIds = this.getId(this.menus, node.url);
7605
7667
  break;
7606
7668
  }
7607
7669
  if (node.url) {
@@ -7622,19 +7684,19 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7622
7684
  }
7623
7685
  }
7624
7686
  } else {
7625
- var _path = res.path;
7626
- if (_path !== '/' && _path !== '/404') {
7627
- _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());
7628
7690
  }
7629
7691
  var pathname = url.substring(url.indexOf('#/') + 1);
7630
7692
  pathname = pathname.replace(pathname[1], pathname[1].toLowerCase()).split('?')[0];
7631
- if (res.path !== '/' && pathname == _path) {
7693
+ if (res.path !== '/' && pathname == _path2) {
7632
7694
  return pathname;
7633
7695
  }
7634
7696
  if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
7635
- var _path2 = this.hasRouter(res.children, url);
7636
- if (_path2) {
7637
- return _path2;
7697
+ var _path3 = this.hasRouter(res.children, url);
7698
+ if (_path3) {
7699
+ return _path3;
7638
7700
  }
7639
7701
  }
7640
7702
  }
@@ -7644,7 +7706,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7644
7706
 
7645
7707
  //头部工具交互事件
7646
7708
  handleClick: function handleClick(res) {
7647
- var _this7 = this;
7709
+ var _this8 = this;
7648
7710
 
7649
7711
  var type = res.type;
7650
7712
 
@@ -7665,7 +7727,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7665
7727
  this.setMenu(this.menus);
7666
7728
  }
7667
7729
  this.$nextTick(function () {
7668
- _this7.reset = true;
7730
+ _this8.reset = true;
7669
7731
  });
7670
7732
  break;
7671
7733
  case 'user':
@@ -7693,21 +7755,21 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7693
7755
 
7694
7756
  //刷新子页面、子路由
7695
7757
  handleRefresh: function handleRefresh() {
7696
- var _this8 = this;
7758
+ var _this9 = this;
7697
7759
 
7698
7760
  if (this.method === 'iframe') {
7699
7761
  this.page = util["a" /* default */].handlerUrl(this.page);
7700
7762
  } else {
7701
7763
  this.refresh = false;
7702
7764
  this.$nextTick(function () {
7703
- _this8.refresh = true;
7765
+ _this9.refresh = true;
7704
7766
  });
7705
7767
  }
7706
7768
  },
7707
7769
 
7708
7770
  //跳转页面
7709
7771
  handleJump: function handleJump(page, type, res, param) {
7710
- var _this9 = this;
7772
+ var _this10 = this;
7711
7773
 
7712
7774
  console.log(page);
7713
7775
  var prevPage = sessionStorage.getItem('jump');
@@ -7738,7 +7800,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7738
7800
  this.wjName = 'singlespa';
7739
7801
  this.page = this.host + page;
7740
7802
  this.$nextTick(function () {
7741
- _this9.refresh = true;
7803
+ _this10.refresh = true;
7742
7804
  });
7743
7805
  } else if (urls[0].indexOf('.dhtml') > 0 || urls[0].indexOf('.html') > 0 && urls[0].indexOf('.html#') === -1) {
7744
7806
  this.method = 'iframe';
@@ -7770,7 +7832,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7770
7832
  query: params
7771
7833
  });
7772
7834
  this.$nextTick(function () {
7773
- _this9.refresh = true;
7835
+ _this10.refresh = true;
7774
7836
  });
7775
7837
  } else {
7776
7838
  var urlopenmode = util["a" /* default */].getParams({
@@ -7786,7 +7848,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7786
7848
  this.wjName = res && res.appCode ? res.appCode : 'application';
7787
7849
  this.page = this.host + page;
7788
7850
  this.$nextTick(function () {
7789
- _this9.refresh = true;
7851
+ _this10.refresh = true;
7790
7852
  });
7791
7853
  }
7792
7854
  }
@@ -7798,7 +7860,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7798
7860
  }
7799
7861
  }
7800
7862
  this.$nextTick(function () {
7801
- _this9.showPage = true;
7863
+ _this10.showPage = true;
7802
7864
  });
7803
7865
  },
7804
7866
 
@@ -7910,7 +7972,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7910
7972
 
7911
7973
  //监听改变菜单
7912
7974
  handleListener: function handleListener() {
7913
- var _this10 = this;
7975
+ var _this11 = this;
7914
7976
 
7915
7977
  util["a" /* default */].win.addEventListener('message', function (e) {
7916
7978
  var msg = e.data;
@@ -7919,14 +7981,14 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7919
7981
  if (typeof res === 'string') {
7920
7982
  res = res.split(',');
7921
7983
  }
7922
- _this10.setDefault(_this10.menus, res);
7984
+ _this11.setDefault(_this11.menus, res);
7923
7985
  }
7924
7986
  }, false);
7925
7987
  },
7926
7988
 
7927
7989
  //开启weosocket
7928
7990
  initWebSocket: function initWebSocket() {
7929
- var _this11 = this;
7991
+ var _this12 = this;
7930
7992
 
7931
7993
  this.webSocket = util["a" /* default */].socket({
7932
7994
  url: api["cc" /* wss */],
@@ -7936,32 +7998,32 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7936
7998
  for (var i in data) {
7937
7999
  if (data[i] !== null && data[i] !== undefined) {
7938
8000
  if (i === 'onlineUserNums' && data[i] > 0) {
7939
- _this11.online = data[i];
8001
+ _this12.online = data[i];
7940
8002
  }
7941
8003
  if (i === 'sysMsgNums') {
7942
- _this11.notice = data[i];
7943
- if (_this11.showMsg) {
7944
- _this11.$refs.message.getMsg(true);
8004
+ _this12.notice = data[i];
8005
+ if (_this12.showMsg) {
8006
+ _this12.$refs.message.getMsg(true);
7945
8007
  }
7946
8008
  }
7947
8009
  if (i === 'menuTipsMap') {
7948
- _this11.menuTips = data[i];
8010
+ _this12.menuTips = data[i];
7949
8011
  }
7950
8012
  if (i === 'sysMsgList') {
7951
- _this11.sysMsg = data[i];
8013
+ _this12.sysMsg = data[i];
7952
8014
  }
7953
8015
  if (i === 'extraData') {
7954
- _this11.extraData = data[i];
8016
+ _this12.extraData = data[i];
7955
8017
  }
7956
8018
  }
7957
8019
  }
7958
- if (_this11.$store) {
8020
+ if (_this12.$store) {
7959
8021
  try {
7960
- _this11.$store.commit('websocket', data);
8022
+ _this12.$store.commit('websocket', data);
7961
8023
  } catch (error) {}
7962
8024
  }
7963
- if (_this11.$eventBus) {
7964
- _this11.$eventBus.$emit('websocket', data);
8025
+ if (_this12.$eventBus) {
8026
+ _this12.$eventBus.$emit('websocket', data);
7965
8027
  }
7966
8028
  if (util["a" /* default */].win.eventBus) {
7967
8029
  util["a" /* default */].win.eventBus.$emit('websocket', data);
@@ -7970,13 +8032,13 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7970
8032
  });
7971
8033
  },
7972
8034
  handleOpened: function handleOpened(res) {
7973
- var _this12 = this;
8035
+ var _this13 = this;
7974
8036
 
7975
8037
  if (res === undefined) {
7976
8038
  this.sysMsg = [];
7977
8039
  } else if (res == false && this.sysMsg.length) {
7978
8040
  this.sysMsgOut = setTimeout(function () {
7979
- _this12.sysMsg = [];
8041
+ _this13.sysMsg = [];
7980
8042
  }, 3000);
7981
8043
  } else if (this.sysMsgOut) {
7982
8044
  clearTimeout(this.sysMsgOut);
@@ -7998,7 +8060,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
7998
8060
  }
7999
8061
  },
8000
8062
  handleReLogin: function handleReLogin(res) {
8001
- var _this13 = this;
8063
+ var _this14 = this;
8002
8064
 
8003
8065
  if (res && typeof res == 'string') {
8004
8066
  res = JSON.parse(res);
@@ -8029,7 +8091,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
8029
8091
  this.timer = setTimeout(function () {
8030
8092
  console.log('handleReLogin');
8031
8093
  sessionStorage.setItem('remind', 1);
8032
- _this13.$confirm(msg, btn).then(function () {
8094
+ _this14.$confirm(msg, btn).then(function () {
8033
8095
  util["a" /* default */].removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
8034
8096
  var loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
8035
8097
  try {