eoss-ui 0.7.75 → 0.7.77

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 +68 -36
  2. package/lib/button.js +68 -36
  3. package/lib/calogin.js +68 -36
  4. package/lib/checkbox-group.js +68 -36
  5. package/lib/data-table-form.js +68 -36
  6. package/lib/data-table.js +68 -36
  7. package/lib/date-picker.js +68 -36
  8. package/lib/dialog.js +68 -36
  9. package/lib/eoss-ui.common.js +245 -113
  10. package/lib/flow-group.js +68 -36
  11. package/lib/flow-list.js +68 -36
  12. package/lib/flow.js +68 -36
  13. package/lib/form.js +68 -36
  14. package/lib/handle-user.js +68 -36
  15. package/lib/handler.js +68 -36
  16. package/lib/icon.js +68 -36
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +68 -36
  19. package/lib/input.js +68 -36
  20. package/lib/login.js +75 -40
  21. package/lib/main.js +227 -98
  22. package/lib/nav.js +68 -36
  23. package/lib/page.js +68 -36
  24. package/lib/pagination.js +68 -36
  25. package/lib/player.js +68 -36
  26. package/lib/qr-code.js +68 -36
  27. package/lib/radio-group.js +68 -36
  28. package/lib/retrial-auth.js +68 -36
  29. package/lib/select-ganged.js +68 -36
  30. package/lib/select.js +68 -36
  31. package/lib/selector-panel.js +68 -36
  32. package/lib/selector.js +68 -36
  33. package/lib/sizer.js +68 -36
  34. package/lib/steps.js +68 -36
  35. package/lib/switch.js +68 -36
  36. package/lib/table-form.js +68 -36
  37. package/lib/tabs.js +68 -36
  38. package/lib/theme-chalk/index.css +1 -1
  39. package/lib/theme-chalk/main.css +1 -1
  40. package/lib/theme-chalk/simplicity-top.css +1 -1
  41. package/lib/tips.js +68 -36
  42. package/lib/tree-group.js +68 -36
  43. package/lib/tree.js +68 -36
  44. package/lib/upload.js +68 -36
  45. package/lib/utils/util.js +68 -36
  46. package/lib/wujie.js +68 -36
  47. package/lib/wxlogin.js +68 -36
  48. package/package.json +1 -1
  49. package/packages/login/src/main.vue +5 -2
  50. package/packages/main/src/main.vue +27 -15
  51. package/packages/main/src/simplicity/index.vue +6 -0
  52. package/packages/main/src/simplicityTop/handler.vue +6 -0
  53. package/packages/main/src/simplicityTop/index.vue +74 -10
  54. package/packages/theme-chalk/lib/index.css +1 -1
  55. package/packages/theme-chalk/lib/main.css +1 -1
  56. package/packages/theme-chalk/lib/simplicity-top.css +1 -1
  57. package/packages/theme-chalk/src/simplicity-top.scss +13 -0
  58. package/src/index.js +1 -1
  59. package/src/utils/util.js +172 -105
package/lib/wxlogin.js CHANGED
@@ -400,7 +400,6 @@ var util_ajax = function ajax(_ref) {
400
400
  loading && loading.close();
401
401
  if (response.headers.authorization) {
402
402
  response.headers.authorization !== getStorage('token') && setStorage({
403
-
404
403
  key: ['token', 'Authorization'],
405
404
  value: response.headers.authorization
406
405
  });
@@ -737,7 +736,11 @@ var ajaxStream = function ajaxStream(_ref2) {
737
736
  } else if (error.response) {
738
737
  errorMessage = '\u670D\u52A1\u5668\u9519\u8BEF (' + error.response.status + '): ' + (error.response.data || '未知错误');
739
738
  }
740
- fail && fail({ status: 0, message: { role: 'assistant', content: errorMessage }, controller: controller });
739
+ fail && fail({
740
+ status: 0,
741
+ message: { role: 'assistant', content: errorMessage },
742
+ controller: controller
743
+ });
741
744
  } finally {
742
745
  final && final({ status: -1, message: null, controller: controller });
743
746
  }
@@ -1503,7 +1506,7 @@ var formatDate = function formatDate(date, fmt) {
1503
1506
  'm+': obj.getMinutes(), // 分钟 (0-59)
1504
1507
  's+': obj.getSeconds(), // 秒 (0-59)
1505
1508
  'q+': quarter[Math.floor(monthNum / 3)], // 季度 (一~四)
1506
- 'S': obj.getMilliseconds() // 毫秒 (0-999)
1509
+ S: obj.getMilliseconds() // 毫秒 (0-999)
1507
1510
  };
1508
1511
 
1509
1512
  // 4. 处理年份
@@ -2162,26 +2165,51 @@ var getZoom = function getZoom() {
2162
2165
 
2163
2166
  var handlerUrl = function handlerUrl(url, param, before) {
2164
2167
  var arry = url.split('?');
2165
- if (arry.length > 2) {
2166
- var ary = arry.splice(1, arry.length);
2167
- arry.push(ary.join('?'));
2168
- }
2169
- if (arry.length > 1) {
2170
- if (arry[1].indexOf('_tt') > -1) {
2171
- var search = arry[1].split('&');
2172
- for (var i in search) {
2173
- if (search[i].indexOf('_tt') > -1) {
2174
- search[i] = '_tt=' + new Date().getTime();
2168
+ // /archives-ui/webpack/index.html?cookie=1#/fullTextSearch
2169
+ if (arry.length > 1 && arry[1].indexOf('#/') > -1) {
2170
+ // 分割成 arry[0] = /archives-ui/webpack/index.html 和 arry[1] = cookie=1#/fullTextSearch
2171
+ var hashs = arry[1].split('#/'); // 分割成 hashs[0] = cookie=1 和 hashs[1] = fullTextSearch
2172
+ if (hashs[1].indexOf('?') === -1) {
2173
+ hashs[1] += '?_tt=' + new Date().getTime();
2174
+ } else {
2175
+ if (hashs[1].indexOf('_tt') === -1) {
2176
+ hashs[1] += '&_tt=' + new Date().getTime();
2177
+ } else {
2178
+ var search = hashs[1].split('&');
2179
+ for (var i in search) {
2180
+ if (search[i].indexOf('_tt') > -1) {
2181
+ search[i] = '_tt=' + new Date().getTime();
2182
+ }
2175
2183
  }
2184
+ hashs[1] = search.join('&');
2176
2185
  }
2177
- arry[1] = search.join('&');
2178
- } else {
2179
- arry[1] += '&_tt=' + new Date().getTime();
2180
2186
  }
2181
- url = arry.join('?');
2187
+ // /archives-ui/webpack/index.html?cookie=1#/fullTextSearch&_tt=1764839214926&false
2188
+ // 会不会存在 参数中也有#/
2189
+ url = arry[0] + '?' + hashs.join('#/');
2182
2190
  } else {
2183
- url += '?_tt=' + new Date().getTime();
2191
+ if (arry.length > 2) {
2192
+ var ary = arry.splice(1, arry.length);
2193
+ arry.push(ary.join('?'));
2194
+ }
2195
+ if (arry.length > 1) {
2196
+ if (arry[1].indexOf('_tt') > -1) {
2197
+ var _search = arry[1].split('&');
2198
+ for (var _i7 in _search) {
2199
+ if (_search[_i7].indexOf('_tt') > -1) {
2200
+ _search[_i7] = '_tt=' + new Date().getTime();
2201
+ }
2202
+ }
2203
+ arry[1] = _search.join('&');
2204
+ } else {
2205
+ arry[1] += '&_tt=' + new Date().getTime();
2206
+ }
2207
+ url = arry.join('?');
2208
+ } else {
2209
+ url += '?_tt=' + new Date().getTime();
2210
+ }
2184
2211
  }
2212
+
2185
2213
  if (param) {
2186
2214
  var str = queryParams(param);
2187
2215
  url += '&' + str;
@@ -2477,7 +2505,11 @@ var isLogined = function () {
2477
2505
  break;
2478
2506
  }
2479
2507
 
2480
- loadingInstance = external_eoss_element_["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
2508
+ loadingInstance = external_eoss_element_["Loading"].service({
2509
+ text: '页面加载中',
2510
+ spinner: 'el-icon-loading',
2511
+ background: 'rgba(0, 0, 0, 0.65)'
2512
+ });
2481
2513
  _context.next = 17;
2482
2514
  return util_ajax({
2483
2515
  method: 'post',
@@ -3575,10 +3607,10 @@ var setStorage = function setStorage(_ref18) {
3575
3607
  }
3576
3608
  }
3577
3609
  } else {
3578
- for (var _i7 in key) {
3579
- var val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
3580
- localStorage.setItem(_i7, val);
3581
- if (_i7 === 'token') {
3610
+ for (var _i8 in key) {
3611
+ var val = _typeof(key[_i8]) === 'object' ? JSON.stringify(key[_i8]) : key[_i8];
3612
+ localStorage.setItem(_i8, val);
3613
+ if (_i8 === 'token') {
3582
3614
  setCookie('token', val);
3583
3615
  }
3584
3616
  }
@@ -3590,17 +3622,17 @@ var setStorage = function setStorage(_ref18) {
3590
3622
  setCookie('token', value);
3591
3623
  }
3592
3624
  } else if (Array.isArray(key)) {
3593
- for (var _i8 in key) {
3594
- sessionStorage.setItem(key[_i8], value);
3595
- if (key[_i8] === 'token') {
3625
+ for (var _i9 in key) {
3626
+ sessionStorage.setItem(key[_i9], value);
3627
+ if (key[_i9] === 'token') {
3596
3628
  setCookie('token', value);
3597
3629
  }
3598
3630
  }
3599
3631
  } else {
3600
- for (var _i9 in key) {
3601
- var _val = _typeof(key[_i9]) === 'object' ? JSON.stringify(key[_i9]) : key[_i9];
3602
- sessionStorage.setItem(_i9, _val);
3603
- if (_i9 === 'token') {
3632
+ for (var _i10 in key) {
3633
+ var _val = _typeof(key[_i10]) === 'object' ? JSON.stringify(key[_i10]) : key[_i10];
3634
+ sessionStorage.setItem(_i10, _val);
3635
+ if (_i10 === 'token') {
3604
3636
  setCookie('token', _val);
3605
3637
  }
3606
3638
  }
@@ -3728,16 +3760,16 @@ var setCookie = function setCookie(name, value) {
3728
3760
  **/
3729
3761
  var getCookie = function getCookie(name) {
3730
3762
  var cookies = document.cookie.split(';');
3731
- for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i10 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
3763
+ for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i11 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
3732
3764
  var _ref19;
3733
3765
 
3734
3766
  if (_isArray) {
3735
- if (_i10 >= _iterator.length) break;
3736
- _ref19 = _iterator[_i10++];
3767
+ if (_i11 >= _iterator.length) break;
3768
+ _ref19 = _iterator[_i11++];
3737
3769
  } else {
3738
- _i10 = _iterator.next();
3739
- if (_i10.done) break;
3740
- _ref19 = _i10.value;
3770
+ _i11 = _iterator.next();
3771
+ if (_i11.done) break;
3772
+ _ref19 = _i11.value;
3741
3773
  }
3742
3774
 
3743
3775
  var cookie = _ref19;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.7.75",
3
+ "version": "0.7.77",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -474,8 +474,8 @@
474
474
  </es-dialog>
475
475
  <es-dialog
476
476
  title="客户端下载"
477
- :width="download.length == 1 ? '450px' : '80%'"
478
- :height="download.length == 1 ? '500px' : '80%'"
477
+ :width="downloadLength == 1 ? '450px' : '80%'"
478
+ :height="downloadLength == 1 ? '500px' : '80%'"
479
479
  custom-class="es-clients-dialog"
480
480
  :visible.sync="showDownLoadApp"
481
481
  >
@@ -785,6 +785,9 @@ export default {
785
785
  }
786
786
  },
787
787
  computed: {
788
+ downloadLength() {
789
+ return this.download ? Object.keys(this.download).length : 0;
790
+ },
788
791
  transform() {
789
792
  let translate = this.translate
790
793
  ? this.translate
@@ -110,7 +110,11 @@ export default {
110
110
  type: Number,
111
111
  default: 3000
112
112
  },
113
- multiple: Boolean
113
+ multiple: Boolean,
114
+ changeThemeReload: {
115
+ type: Boolean,
116
+ default: false
117
+ }
114
118
  },
115
119
  computed: {
116
120
  _launchImage() {
@@ -134,6 +138,10 @@ export default {
134
138
  };
135
139
  },
136
140
  created() {
141
+ const layoutType = localStorage.getItem('layoutType');
142
+ if (layoutType) {
143
+ this.layoutType = layoutType;
144
+ }
137
145
  this.params = util.getParams() || {};
138
146
  this.sysCode = this.params.sysCode;
139
147
  this.appCode = this.params.appCode || this.params.appcode;
@@ -157,10 +165,6 @@ export default {
157
165
  this.$nextTick(() => {
158
166
  // 当主题变化时,重新绑定一次事件 防止事件丢失 或者绑定错误
159
167
  this.bindEvent();
160
- const layoutType = localStorage.getItem('layoutType');
161
- if (layoutType) {
162
- this.layoutType = layoutType;
163
- }
164
168
  });
165
169
  },
166
170
  methods: {
@@ -268,20 +272,29 @@ export default {
268
272
  if (active) {
269
273
  this.layout = active;
270
274
  }
275
+ // 重新加载页面,刷新布局风格配置信息
276
+ // 如果不刷新,会导致事件绑定出现问题,导致事件丢失
277
+ if (this.changeThemeReload) {
278
+ window.top.location.reload();
279
+ return;
280
+ }
281
+
271
282
  let mainConfig = util.getStorage('mainConfig');
272
- if (mainConfig) {
273
- mainConfig = JSON.parse(mainConfig);
274
- this.$nextTick(() => {
283
+ // 切换布局风格后,重新绑定事件
284
+ this.$nextTick(() => {
285
+ this.bindEvent();
286
+ if (mainConfig) {
287
+ mainConfig = JSON.parse(mainConfig);
275
288
  this.$refs.main.init(mainConfig, true);
276
289
  util.getMainConfig((res) => {
277
290
  this.$refs.main.init(res, false);
278
291
  });
279
- });
280
- } else {
281
- util.getMainConfig((res) => {
282
- this.$refs.main.init(res, true);
283
- });
284
- }
292
+ } else {
293
+ util.getMainConfig((res) => {
294
+ this.$refs.main.init(res, true);
295
+ });
296
+ }
297
+ });
285
298
  },
286
299
  /**
287
300
  * @desc:重新登录
@@ -596,7 +609,6 @@ export default {
596
609
  **/
597
610
  busEmit(event, args) {
598
611
  console.log('busEmit', event, args);
599
-
600
612
  WujieVue.bus.$emit(event, args);
601
613
  const iframes = document.getElementsByTagName('iframe');
602
614
  for (let i = 0; i < iframes.length; i++) {
@@ -629,6 +629,10 @@ export default {
629
629
  type: Number,
630
630
  default: 220
631
631
  },
632
+ showTipNums: {
633
+ type: Boolean,
634
+ default: true
635
+ },
632
636
  //路由方式
633
637
  routeType: String,
634
638
  host: {
@@ -1457,6 +1461,8 @@ export default {
1457
1461
  * @date 2024年9月7日
1458
1462
  **/
1459
1463
  setTips(obj) {
1464
+ // 不显示菜单气泡提醒
1465
+ if (!this.showTipNums) return;
1460
1466
  if (!this.menuTips || !Object.keys(this.menuTips).length) {
1461
1467
  return false;
1462
1468
  }
@@ -43,6 +43,12 @@
43
43
  :contents="item.icon"
44
44
  ></es-icon>
45
45
  <span class="es-simplicitytop-handler-text">{{ item.text }}</span>
46
+ <div
47
+ v-if="item.type == 'notice' && nums[item.type] > 0"
48
+ class="es-simplicitytop-handler-badge"
49
+ >
50
+ {{ nums[item.type] > 99 ? '99+' : nums[item.type] }}
51
+ </div>
46
52
  </div>
47
53
  </template>
48
54
  </div>
@@ -86,7 +86,9 @@
86
86
  </div>
87
87
  <div class="es-simplicitytop-menu-item" v-if="myShortcut.length > 0">
88
88
  <div class="es-simplicitytop-menu-title">
89
- <span class="es-simplicitytop-menu-name">我的快捷</span>
89
+ <span class="es-simplicitytop-menu-name" @click="testReloadPage"
90
+ >我的快捷</span
91
+ >
90
92
  </div>
91
93
  <el-scrollbar style="height: calc(100% - 45px)">
92
94
  <div class="es-simplicitytop-menu-children">
@@ -273,6 +275,11 @@
273
275
  @layout="handleLayout"
274
276
  ></settings>
275
277
  <!-- 设置 end-->
278
+
279
+ <!-- 消息提醒 -->
280
+ <notice :data="sysMsg" :winopen="winopen" @opened="handleOpened"></notice>
281
+ <!-- 消息提醒 end -->
282
+
276
283
  <!-- 公用弹窗 -->
277
284
  <es-dialog :title="dialog.title" :visible.sync="dialog.show" size="md">
278
285
  <template v-if="dialog.title == '查看在线人员' && !dialog.src">
@@ -302,6 +309,8 @@ import settings from '../public/settings.vue';
302
309
  import routerPage from './router-page.vue';
303
310
  import online from '../public/online.vue';
304
311
  import search from '../public/search.vue';
312
+ import WujieVue from 'wujie-vue2';
313
+
305
314
  import {
306
315
  wss,
307
316
  logout,
@@ -589,6 +598,10 @@ export default {
589
598
  queryChildMenu: {
590
599
  type: String,
591
600
  default: queryChildMenuUrl
601
+ },
602
+ showTipNums: {
603
+ type: Boolean,
604
+ default: true
592
605
  }
593
606
  },
594
607
  data() {
@@ -1136,7 +1149,7 @@ export default {
1136
1149
  url: getVoteMeetingNum,
1137
1150
  params: {
1138
1151
  userId: util.getStorage('userId'),
1139
- type: 1
1152
+ type: 10
1140
1153
  },
1141
1154
  method: 'get'
1142
1155
  })
@@ -1637,7 +1650,7 @@ export default {
1637
1650
 
1638
1651
  this.menus = rebuildMenu;
1639
1652
  this.setTips(this.menus);
1640
- store.set('nav', this.menus);
1653
+ // store.set('nav', this.menus);
1641
1654
  let obj = this.getMenu(this.menus, this.indexUrl);
1642
1655
  obj = obj
1643
1656
  ? JSON.parse(JSON.stringify(obj))
@@ -1689,6 +1702,7 @@ export default {
1689
1702
  setIframeType(res) {
1690
1703
  let { url } = res;
1691
1704
  let urls = url.split('?');
1705
+ console.log(res);
1692
1706
  if (urls[0].indexOf('.js') > 1 && !isIE) {
1693
1707
  res.method = 'wujie';
1694
1708
  if (!res.appCode) {
@@ -1827,6 +1841,8 @@ export default {
1827
1841
  * @date 2024年9月7日
1828
1842
  **/
1829
1843
  setTips(obj) {
1844
+ // 不显示菜单气泡提醒
1845
+ if (!this.showTipNums) return;
1830
1846
  if (Array.isArray(obj)) {
1831
1847
  obj.forEach((item) => {
1832
1848
  this.setTips(item);
@@ -2045,16 +2061,60 @@ export default {
2045
2061
  this.webSocket.destroy();
2046
2062
  }
2047
2063
  },
2064
+ testReloadPage() {
2065
+ this.handleRefresh(1);
2066
+ },
2048
2067
  /**
2049
2068
  * @desc:刷新选中iframe页签
2050
2069
  * @author huangbo
2051
2070
  * @date 2024年9月7日
2052
2071
  **/
2053
- handleRefresh() {
2072
+ handleRefresh(arg) {
2054
2073
  this.getNums();
2074
+ console.log(arg, 'arg');
2055
2075
  if (window.top.refreshList) {
2056
2076
  window.top.refreshList();
2057
2077
  }
2078
+ if (arg != undefined) {
2079
+ let tab = this.currentPage;
2080
+ if (tab.appCode == 'indexUrl') return;
2081
+ if (isIE || tab.method === 'iframe') {
2082
+ if (arg && arg === 'pageData') {
2083
+ let iframe = document.getElementById(tab.id || tab.appCode);
2084
+ let source = tab.url;
2085
+ if (source && !util.startWith(source, ['http', 'https'], true)) {
2086
+ source = location.origin + source.replace('./', '/');
2087
+ }
2088
+ !iframe && (iframe = document.getElementById(this.iframeId));
2089
+ iframe &&
2090
+ iframe.contentWindow.postMessage(
2091
+ { method: 'pageData' },
2092
+ source || '*'
2093
+ );
2094
+ } else {
2095
+ this.$set(this.currentPage, 'url', util.handlerUrl(tab.url));
2096
+ }
2097
+ return;
2098
+ }
2099
+ if (tab.method === 'wujie' && tab.appCode) {
2100
+ if (arg && arg === 'pageData') {
2101
+ WujieVue.$emit('pageData', tab);
2102
+ } else {
2103
+ window.document
2104
+ .querySelector(`iframe[name=${tab.appCode}]`)
2105
+ .contentWindow.location.reload(true);
2106
+ }
2107
+ return;
2108
+ }
2109
+ if (tab.method === 'router') {
2110
+ if (arg && arg === 'pageData') {
2111
+ const bus = this.bus || this.$root.Bus;
2112
+ bus.$emit('pageData', tab);
2113
+ } else {
2114
+ this.$set(this.currentPage, 'keys', util.uuid());
2115
+ }
2116
+ }
2117
+ }
2058
2118
  },
2059
2119
  /**
2060
2120
  * @desc:删除iframe
@@ -2175,7 +2235,6 @@ export default {
2175
2235
  // util.win.open(this.doorIndex, '_self');
2176
2236
  this.currentPage = { ...this.homePage };
2177
2237
  this.appCodes = 'indexUrl';
2178
- console.log(this.currentPage, 'this.currentPage');
2179
2238
  break;
2180
2239
  case 'userinfo':
2181
2240
  this.$refs.user.handleOpen();
@@ -2394,7 +2453,6 @@ export default {
2394
2453
  * 2.其他地方点击跳转,需要选中跳转的一二级菜单
2395
2454
  **/
2396
2455
  handleSelect(res, params = {}) {
2397
- console.log(res, 'handleSelect');
2398
2456
  const node = res.node ? res.node : res;
2399
2457
  if (node.urlopenmode == 1 || node.openModel == 1) {
2400
2458
  util.win.open(node.url || node.menuurl);
@@ -2404,11 +2462,16 @@ export default {
2404
2462
  let apps = node;
2405
2463
  let param = params;
2406
2464
  let reload = true;
2407
- if (typeof res === 'string') {
2408
- apps = res.split(',');
2465
+ if (typeof node === 'string') {
2466
+ apps = node.split(',');
2409
2467
  } else if (util.isObject(node)) {
2410
2468
  const appCode = node.appCode || node.menuCode;
2411
- apps = Array.isArray(appCode) ? appCode : appCode.split(',');
2469
+ const id = node.id || node.menuId;
2470
+ apps = appCode
2471
+ ? Array.isArray(appCode)
2472
+ ? appCode
2473
+ : appCode.split(',')
2474
+ : [id];
2412
2475
  node.param && (param = { ...node.param, ...params });
2413
2476
  reload = Object.prototype.hasOwnProperty.call(node, 'reload')
2414
2477
  ? node.reload
@@ -2418,6 +2481,7 @@ export default {
2418
2481
  const { currentPage, fourthTabs } = this.findMenuById(
2419
2482
  apps[apps.length - 1]
2420
2483
  );
2484
+ console.log('fourthTabs', fourthTabs, 'currentPage', currentPage);
2421
2485
  if (currentPage) {
2422
2486
  this.currentPage = {};
2423
2487
  this.fourthTabs = [];
@@ -2432,7 +2496,7 @@ export default {
2432
2496
  );
2433
2497
  }
2434
2498
  this.tabActiveName = this.currentPage.id;
2435
- this.appCodes = this.currentPage.appCode;
2499
+ this.appCodes = this.currentPage.appCode || this.currentPage.id;
2436
2500
  } else {
2437
2501
  this.fourthTabs = fourthTabs;
2438
2502
  this.currentPage = this.setIframeType(currentPage);