eoss-ui 0.5.94 → 0.5.96

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.
package/lib/table-form.js CHANGED
@@ -3796,8 +3796,8 @@ module.exports = require("json-bigint");
3796
3796
  // ESM COMPAT FLAG
3797
3797
  __webpack_require__.r(__webpack_exports__);
3798
3798
 
3799
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=38b43090&
3800
- var tablevue_type_template_id_38b43090_render = function () {
3799
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=270d4342&
3800
+ var tablevue_type_template_id_270d4342_render = function () {
3801
3801
  var _vm = this
3802
3802
  var _h = _vm.$createElement
3803
3803
  var _c = _vm._self._c || _h
@@ -6590,10 +6590,10 @@ var tablevue_type_template_id_38b43090_render = function () {
6590
6590
  )
6591
6591
  }
6592
6592
  var staticRenderFns = []
6593
- tablevue_type_template_id_38b43090_render._withStripped = true
6593
+ tablevue_type_template_id_270d4342_render._withStripped = true
6594
6594
 
6595
6595
 
6596
- // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=38b43090&
6596
+ // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=270d4342&
6597
6597
 
6598
6598
  // EXTERNAL MODULE: ./src/utils/rules.js
6599
6599
  var rules = __webpack_require__(14);
@@ -7955,6 +7955,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
7955
7955
  this.cols = widths;
7956
7956
  },
7957
7957
  handleClick: function handleClick(res) {
7958
+ if (res.event && typeof res.event === 'function') {
7959
+ res.event(res);
7960
+ }
7958
7961
  this.$emit('btnClick', res, this.models);
7959
7962
  this.$emit('btn-click', res, this.models);
7960
7963
  },
@@ -8019,7 +8022,7 @@ var componentNormalizer = __webpack_require__(3);
8019
8022
 
8020
8023
  var component = Object(componentNormalizer["a" /* default */])(
8021
8024
  src_tablevue_type_script_lang_js_,
8022
- tablevue_type_template_id_38b43090_render,
8025
+ tablevue_type_template_id_270d4342_render,
8023
8026
  staticRenderFns,
8024
8027
  false,
8025
8028
  null,
package/lib/upload.js CHANGED
@@ -3977,8 +3977,8 @@ module.exports = require("js-base64");
3977
3977
  // ESM COMPAT FLAG
3978
3978
  __webpack_require__.r(__webpack_exports__);
3979
3979
 
3980
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=12134e47&
3981
- var mainvue_type_template_id_12134e47_render = function () {
3980
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=2842c2fa&
3981
+ var mainvue_type_template_id_2842c2fa_render = function () {
3982
3982
  var _vm = this
3983
3983
  var _h = _vm.$createElement
3984
3984
  var _c = _vm._self._c || _h
@@ -4359,10 +4359,10 @@ var mainvue_type_template_id_12134e47_render = function () {
4359
4359
  : _vm._e()
4360
4360
  }
4361
4361
  var staticRenderFns = []
4362
- mainvue_type_template_id_12134e47_render._withStripped = true
4362
+ mainvue_type_template_id_2842c2fa_render._withStripped = true
4363
4363
 
4364
4364
 
4365
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=12134e47&
4365
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=2842c2fa&
4366
4366
 
4367
4367
  // EXTERNAL MODULE: ./src/config/api.js
4368
4368
  var api = __webpack_require__(1);
@@ -4985,8 +4985,6 @@ var _props;
4985
4985
  });
4986
4986
  this.filesTotalSize = filesTotalSize;
4987
4987
  this.$emit('input', val);
4988
- } else {
4989
- this.getFiles(this.params);
4990
4988
  }
4991
4989
  }
4992
4990
  },
@@ -5095,6 +5093,7 @@ var _props;
5095
5093
  dochubConfig: _this3.dochubConfig
5096
5094
  });
5097
5095
  }
5096
+ _this3.getFiles(_this3.params);
5098
5097
  }
5099
5098
  }).catch(function (err) {
5100
5099
  if (err.message && err.message !== 'canceled') {
@@ -5110,9 +5109,10 @@ var _props;
5110
5109
  if (!this.show || this.fileList && Array.isArray(this.fileList) && this.fileList.length || this.requiredOwnId && !Object.prototype.hasOwnProperty.call(params, 'ownId')) {
5111
5110
  return false;
5112
5111
  }
5112
+ var url = typeof this.fileList === 'string' ? this.fileList : this.dochubConfig.getDocumentList ? this.dochubConfig.getDocumentList : api["z" /* getAdjunctFileInfos */];
5113
5113
  util["a" /* default */].ajax({
5114
5114
  method: this.method,
5115
- url: this.getAdjunctFileInfos,
5115
+ url: url,
5116
5116
  data: params,
5117
5117
  params: params,
5118
5118
  format: false
@@ -5507,7 +5507,7 @@ var componentNormalizer = __webpack_require__(3);
5507
5507
 
5508
5508
  var component = Object(componentNormalizer["a" /* default */])(
5509
5509
  src_mainvue_type_script_lang_js_,
5510
- mainvue_type_template_id_12134e47_render,
5510
+ mainvue_type_template_id_2842c2fa_render,
5511
5511
  staticRenderFns,
5512
5512
  false,
5513
5513
  null,
package/lib/wujie.js CHANGED
@@ -3771,7 +3771,7 @@ module.exports = require("json-bigint");
3771
3771
  // ESM COMPAT FLAG
3772
3772
  __webpack_require__.r(__webpack_exports__);
3773
3773
 
3774
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/wujie/src/main.vue?vue&type=template&id=332bb271&
3774
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/wujie/src/main.vue?vue&type=template&id=86017ede&
3775
3775
  var render = function () {
3776
3776
  var _vm = this
3777
3777
  var _h = _vm.$createElement
@@ -3819,7 +3819,7 @@ var staticRenderFns = []
3819
3819
  render._withStripped = true
3820
3820
 
3821
3821
 
3822
- // CONCATENATED MODULE: ./packages/wujie/src/main.vue?vue&type=template&id=332bb271&
3822
+ // CONCATENATED MODULE: ./packages/wujie/src/main.vue?vue&type=template&id=86017ede&
3823
3823
 
3824
3824
  // EXTERNAL MODULE: ./src/utils/util.js
3825
3825
  var util = __webpack_require__(0);
@@ -3868,6 +3868,10 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3868
3868
  height: { type: String, default: '100%' },
3869
3869
  name: { type: String, default: '' },
3870
3870
  loading: { type: HTMLElement, default: undefined },
3871
+ host: {
3872
+ type: String,
3873
+ default: ''
3874
+ },
3871
3875
  url: { type: String, default: '' },
3872
3876
  sync: { type: Boolean, default: false },
3873
3877
  prefix: { type: Object, default: undefined },
@@ -3941,8 +3945,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3941
3945
  if (val) {
3942
3946
  var urls = val.split('?');
3943
3947
  var plugins = this.plugins;
3948
+ var defaultUrl = '';
3944
3949
  if (urls[0].indexOf('.js') > 1) {
3945
- this.defaultUrl = this.param ? util["a" /* default */].urlJoinParams({
3950
+ defaultUrl = this.param ? util["a" /* default */].urlJoinParams({
3946
3951
  url: './primary.html',
3947
3952
  param: this.param,
3948
3953
  timestamp: true
@@ -3951,8 +3956,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
3951
3956
  jsBeforeLoaders: [{ src: val }]
3952
3957
  });
3953
3958
  } else {
3954
- this.defaultUrl = val;
3959
+ defaultUrl = val;
3955
3960
  }
3961
+ this.defaultUrl = util["a" /* default */].startWith(defaultUrl, 'http') ? defaultUrl : this.host + defaultUrl;
3956
3962
  this.defaultPlugins = plugins;
3957
3963
  }
3958
3964
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.94",
3
+ "version": "0.5.96",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
Binary file
@@ -97,11 +97,14 @@
97
97
  ></es-icon>
98
98
  </template>
99
99
  </el-table-column>
100
- <el-table-column
100
+ <template
101
101
  v-else-if="item.type === 'index' || item.type === 'selection'"
102
- :key="item.key || item.label || item.title || index"
103
- v-bind="dragSort ? { ...item, fixed: false } : item"
104
- ></el-table-column>
102
+ >
103
+ <el-table-column
104
+ :key="item.key || item.label || item.title || index"
105
+ v-bind="dragSort ? { ...item, fixed: false } : item"
106
+ ></el-table-column>
107
+ </template>
105
108
  <template v-else>
106
109
  <children
107
110
  :tag="item.tag"
@@ -1368,6 +1368,9 @@ export default {
1368
1368
  this.cols = widths;
1369
1369
  },
1370
1370
  handleClick(res) {
1371
+ if (res.event && typeof res.event === 'function') {
1372
+ res.event(res);
1373
+ }
1371
1374
  this.$emit('btnClick', res, this.models);
1372
1375
  this.$emit('btn-click', res, this.models);
1373
1376
  },
Binary file
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ul class="es-handler">
3
- <li v-for="(item, index) in lists" :key="index" class="es-handler-item">
4
- <template v-if="!item.hide">
3
+ <template v-for="(item, index) in lists">
4
+ <li v-if="!item.hide" :key="index" class="es-handler-item">
5
5
  <es-handle-user
6
6
  v-if="item.type === 'user'"
7
7
  class="es-handler-user"
@@ -99,8 +99,8 @@
99
99
  :class="item.icon"
100
100
  @click.stop="handleClick(item)"
101
101
  ></div>
102
- </template>
103
- </li>
102
+ </li>
103
+ </template>
104
104
  </ul>
105
105
  </template>
106
106
  <script>
@@ -314,8 +314,7 @@ export default {
314
314
  'menus',
315
315
  'useCaseCodes',
316
316
  'mainConfig',
317
- 'jump',
318
- 'showLaunch'
317
+ 'jump'
319
318
  ]);
320
319
  if (this.onQuit && typeof this.onQuit === 'function') {
321
320
  this.onQuit();
Binary file
@@ -862,10 +862,7 @@ export default {
862
862
  showLaunch: false,
863
863
  launchImages: this.launchImage,
864
864
  launchKey: 'day',
865
- launchTime: {
866
- type: Number,
867
- default: 3000
868
- }
865
+ launchTime: 3000
869
866
  };
870
867
  },
871
868
  beforeCreate() {
@@ -880,12 +877,10 @@ export default {
880
877
  'deviceUnique',
881
878
  'userId',
882
879
  'userName',
883
- 'useCaseCodes',
884
- 'showLaunch'
880
+ 'useCaseCodes'
885
881
  ]);
886
882
  },
887
883
  created() {
888
- sessionStorage.setItem('launchImage', JSON.stringify(this.launchImages));
889
884
  this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
890
885
  if (ceshi == 'true' || ceshi == true) {
891
886
  this.loginModel = '0';
@@ -1082,7 +1077,7 @@ export default {
1082
1077
  async getLogin() {
1083
1078
  const config = util.getStorage('initLogin');
1084
1079
  if (config) {
1085
- this.setConfig(config);
1080
+ this.setConfig(JSON.parse(config));
1086
1081
  }
1087
1082
  await util
1088
1083
  .ajax({ url: this.initLogin })
@@ -1134,7 +1129,6 @@ export default {
1134
1129
  downloads['linux'] = res.linuxDownloadUrl;
1135
1130
  }
1136
1131
  this.sysName = res.subsystemName;
1137
- sessionStorage.setItem('sysName', this.sysName);
1138
1132
  this.secret = res.secret;
1139
1133
  this.setup = res.setup;
1140
1134
  this.downloadSetup = res.downloadSetup;
@@ -1220,19 +1214,11 @@ export default {
1220
1214
  this.warningText = res.subsystemExtend.warningText;
1221
1215
  }
1222
1216
  if (res.subsystemExtend.launchTime) {
1223
- sessionStorage.setItem('launchTime', res.subsystemExtend.launchTime);
1217
+ this.launchTime = parseInt(res.subsystemExtend.launchTime, 10);
1224
1218
  }
1225
1219
  if (res.subsystemExtend.launchImage) {
1226
1220
  if (!this.launchShow) {
1227
1221
  this.launchShow = true;
1228
- setTimeout(
1229
- () => {
1230
- this.launchShow = false;
1231
- },
1232
- res.subsystemExtend.launchTime
1233
- ? parseInt(res.subsystemExtend.launchTime)
1234
- : this.launchTime
1235
- );
1236
1222
  }
1237
1223
  if (
1238
1224
  res.subsystemExtend.launchImage != 'true' &&
@@ -1244,10 +1230,6 @@ export default {
1244
1230
  ? JSON.parse(res.subsystemExtend.launchImage)
1245
1231
  : res.subsystemExtend.launchImage;
1246
1232
  }
1247
- sessionStorage.setItem(
1248
- 'launchImage',
1249
- JSON.stringify(this.launchImages)
1250
- );
1251
1233
  }
1252
1234
  }
1253
1235
  this.passModifyModel = res.passModifyModel;
@@ -1576,12 +1558,7 @@ export default {
1576
1558
  useCaseCodes: results.resourceCodes
1577
1559
  }
1578
1560
  });
1579
- if (
1580
- this.launchShow &&
1581
- !this.toUrl &&
1582
- !results.doorIndex &&
1583
- !this.doorIndex
1584
- ) {
1561
+ if (this.launchShow) {
1585
1562
  this.$message({
1586
1563
  message: '登录成功!',
1587
1564
  type: 'success',
@@ -1589,18 +1566,24 @@ export default {
1589
1566
  });
1590
1567
  this.showLaunch = true;
1591
1568
  setTimeout(() => {
1592
- sessionStorage.setItem('showLaunch', 1);
1593
- if (window.location.href.indexOf('login.html') > -1) {
1594
- window.location.href = './main.html';
1569
+ if (this.toUrl) {
1570
+ window.location.href = this.toUrl;
1571
+ } else if (results.doorIndex && this.doorIndex) {
1572
+ sessionStorage.setItem('doorIndex', results.doorIndex);
1573
+ localStorage.setItem('isLogined', true);
1574
+ window.location.href = results.doorIndex;
1595
1575
  } else {
1596
- this.$router.push({ name: 'main' });
1576
+ if (window.location.href.indexOf('login.html') > -1) {
1577
+ window.location.href = './main.html';
1578
+ } else {
1579
+ this.$router.push({ name: 'main' });
1580
+ this.$nextTick(() => {
1581
+ this.showLaunch = false;
1582
+ });
1583
+ }
1597
1584
  }
1598
- this.showLaunch = false;
1599
- }, 3000);
1585
+ }, this.launchTime);
1600
1586
  } else {
1601
- if (this.launchShow) {
1602
- sessionStorage.setItem('launch', this.launchShow);
1603
- }
1604
1587
  this.$message({
1605
1588
  message: '登录成功!',
1606
1589
  type: 'success',
Binary file
Binary file
@@ -149,8 +149,8 @@
149
149
  <template v-else-if="method === 'router' && refresh">
150
150
  <router-view v-if="!isKeepAlive" :key="routerKey" />
151
151
  <keep-alive>
152
- <router-view v-if="isKeepAlive" :key="routerKey"
153
- /></keep-alive>
152
+ <router-view v-if="isKeepAlive" :key="routerKey" />
153
+ </keep-alive>
154
154
  </template>
155
155
  </div>
156
156
  <message
@@ -382,7 +382,7 @@ export default {
382
382
  default: true
383
383
  },
384
384
  loadHomePage: {
385
- type: [Boolean, String],
385
+ type: Boolean,
386
386
  default: true
387
387
  },
388
388
  appCode: String,
@@ -586,6 +586,7 @@ export default {
586
586
  selectPage: '',
587
587
  //主页面
588
588
  homePage: '',
589
+ isLoadHomePage: this.loadHomePage,
589
590
  //header背景
590
591
  mainLogo: null,
591
592
  headerImg: this.headerImage,
@@ -639,8 +640,8 @@ export default {
639
640
  },
640
641
  created() {
641
642
  let params = util.getParams() || {};
642
- if (typeof this.loadHomePage === 'string') {
643
- this.homePage = this.loadHomePage;
643
+ if (params.homePage == 0) {
644
+ this.isLoadHomePage = false;
644
645
  }
645
646
  this.isHeader = params.header;
646
647
  let sysLogoIco = sessionStorage.getItem('sysLogoIco');
@@ -813,39 +814,38 @@ export default {
813
814
  if (i === 'initApplication' && results[i]) {
814
815
  this.results[i] = results[i].split(',');
815
816
  }
816
- if (i === 'indexUrl' && results[i] && this.loadHomePage) {
817
- let applicationid =
818
- util.getParams('applicationid') || util.getParams('applicationId');
819
- let hash = util.win.location.hash;
820
- if (hash) {
821
- hash = hash.split('?')[0];
822
- }
823
- let jump = sessionStorage.getItem('jump');
824
- if (
825
- (!applicationid &&
826
- !this.menuCode &&
827
- (!jump || !this.isHistory) &&
828
- (hash === '#/' || hash === '#/main')) ||
829
- jump == results[i]
830
- ) {
831
- this.homePage =
832
- typeof this.loadHomePage === 'string'
833
- ? this.loadHomePage
834
- : results[i];
835
- if (this.isHomePage && this.homePage) {
836
- if (this.menus && this.menus.length) {
837
- let ids = null;
838
- this.homePage && (ids = this.getId(this.menus, this.homePage));
839
- if (ids) {
840
- this.defaultActive = ids;
841
- } else if (this.homePage) {
842
- this.handleJump(this.homePage);
817
+ if (i === 'indexUrl' && results[i]) {
818
+ this.homePage = results[i];
819
+ if (this.isLoadHomePage) {
820
+ let applicationid =
821
+ util.getParams('applicationid') ||
822
+ util.getParams('applicationId');
823
+ let hash = util.win.location.hash;
824
+ if (hash) {
825
+ hash = hash.split('?')[0];
826
+ }
827
+ let jump = sessionStorage.getItem('jump');
828
+ if (
829
+ (!applicationid &&
830
+ !this.menuCode &&
831
+ (!jump || !this.isHistory) &&
832
+ (hash === '#/' || hash === '#/main')) ||
833
+ jump == results[i]
834
+ ) {
835
+ if (this.isHomePage) {
836
+ if (this.menus && this.menus.length) {
837
+ let ids = (ids = this.getId(this.menus, this.homePage));
838
+ if (ids) {
839
+ this.defaultActive = ids;
840
+ } else {
841
+ this.handleJump(this.homePage);
842
+ }
843
+ this.setMenu(this.menus);
843
844
  }
844
- this.setMenu(this.menus);
845
845
  }
846
+ } else if (this.menus && this.menus.length) {
847
+ this.setMenu(this.menus);
846
848
  }
847
- } else if (this.menus && this.menus.length) {
848
- this.setMenu(this.menus);
849
849
  }
850
850
  }
851
851
  if (i === 'doorIndex' && results[i]) {
@@ -1173,10 +1173,10 @@ export default {
1173
1173
  this.isDefault = false;
1174
1174
  this.setDefault(res, this.defaultActive);
1175
1175
  } else {
1176
- if (this.homePage || !util.getStorage('mainConfig')) {
1177
- this.isDefault = true;
1176
+ if (this.homePage) {
1177
+ this.isDefault = this.isLoadHomePage;
1178
1178
  if (
1179
- this.homePage &&
1179
+ this.isLoadHomePage &&
1180
1180
  (!this.defaultActive || !this.defaultActive.length)
1181
1181
  ) {
1182
1182
  let ids = this.getId(this.menus, this.homePage);
@@ -37,15 +37,6 @@
37
37
  ></iframe>
38
38
  </es-dialog>
39
39
  <!-- 公用弹窗 end -->
40
-
41
- <transition name="launch-fade">
42
- <div class="es-launch-image" :style="_launchImage" v-show="launchShow">
43
- <p class="es-launch-text es-launch-user-name">{{ userName }},你好!</p>
44
- <p class="es-launch-text es-launch-system-name">
45
- 欢迎进入{{ sysName }}
46
- </p>
47
- </div>
48
- </transition>
49
40
  </div>
50
41
  </template>
51
42
  <script>
@@ -99,18 +90,10 @@ export default {
99
90
  appCode: '',
100
91
  params: {},
101
92
  dialogs: [],
102
- visibles: [],
103
- sysName: '',
104
- userName: '',
105
- launchShow: this.launch,
106
- showLaunch: false,
107
- launchImages: this.launchImage,
108
- launchKey: 'day',
109
- launchTimer: null
93
+ visibles: []
110
94
  };
111
95
  },
112
96
  created() {
113
- this.init();
114
97
  this.params = util.getParams() || {};
115
98
  this.sysCode = this.params.sysCode;
116
99
  this.appCode = this.params.appCode;
@@ -171,40 +154,6 @@ export default {
171
154
  });
172
155
  },
173
156
  methods: {
174
- /**
175
- * @desc:初始化
176
- * @author huangbo
177
- * @date 2024年9月7日
178
- **/
179
- init() {
180
- this.userName = util.getStorage('userName');
181
- this.sysName = util.getStorage('sysName');
182
- this.launchKey = 5 < new Date().getHours() < 18 ? 'day' : 'night';
183
- const showLaunch = sessionStorage.getItem('showLaunch');
184
- const launch = sessionStorage.getItem('launch');
185
- const launchImage = sessionStorage.getItem('launchImage');
186
- const launchTime = util.getStorage('launchTime');
187
- if (launchImage) {
188
- this.launchImages = JSON.parse(launchImage);
189
- }
190
- if (showLaunch) {
191
- this.launchShow = false;
192
- } else if (launch) {
193
- if (launch == 'true') {
194
- this.launchShow = true;
195
- clearTimeout(this.launchTimer);
196
- this.launchTimer = setTimeout(
197
- () => {
198
- this.launchShow = false;
199
- sessionStorage.setItem('showLaunch', 1);
200
- },
201
- launchTime ? parseInt(launchTime, 10) : this.launchTime
202
- );
203
- } else {
204
- this.launchShow = false;
205
- }
206
- }
207
- },
208
157
  /**
209
158
  * @desc:重新登录
210
159
  * @author huangbo
@@ -253,8 +202,7 @@ export default {
253
202
  'menus',
254
203
  'useCaseCodes',
255
204
  'mainConfig',
256
- 'jump',
257
- 'showLaunch'
205
+ 'jump'
258
206
  ]);
259
207
  const loginPage =
260
208
  util.getStorage('login') || util.getStorage('loginPage');
@@ -317,45 +265,10 @@ export default {
317
265
  let mainConfig = util.getStorage('mainConfig');
318
266
  if (!mainConfig || mainConfig == '{}') {
319
267
  util.getMainConfig((res) => {
320
- this.userName =
321
- res.results.userModel.username || res.userModel.userName;
322
- this.sysName = res.subsystemName;
323
- if (res.subsystemExtend && res.subsystemExtend.launchImage) {
324
- if (!this.launchShow) {
325
- this.launchShow = true;
326
- clearTimeout(this.launchTimer);
327
- this.launchTimer = setTimeout(
328
- () => {
329
- this.launchShow = false;
330
- sessionStorage.setItem('showLaunch', 1);
331
- },
332
- res.subsystemExtend.launchTime
333
- ? parseInt(res.subsystemExtend.launchTime, 10)
334
- : this.launchTime
335
- );
336
- }
337
- if (
338
- res.subsystemExtend.launchImage != 'true' &&
339
- res.subsystemExtend.launchImage != true
340
- ) {
341
- this.launchImages =
342
- res.subsystemExtend.launchImage.indexOf('{') > -1 &&
343
- res.subsystemExtend.launchImage.indexOf('}') > -1
344
- ? JSON.parse(res.subsystemExtend.launchImage)
345
- : res.subsystemExtend.launchImage;
346
- }
347
- sessionStorage.setItem(
348
- 'launchImage',
349
- JSON.stringify(this.launchImages)
350
- );
351
- }
352
268
  this.$refs.main.init(res);
353
269
  });
354
270
  } else {
355
271
  mainConfig = JSON.parse(mainConfig);
356
- this.userName =
357
- mainConfig.userModel.username || mainConfig.userModel.userName;
358
- this.sysName = mainConfig.subsystemName;
359
272
  }
360
273
  },
361
274
  /**