eoss-ui 0.5.94 → 0.5.95

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.
@@ -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
  /**
@@ -1707,8 +1707,7 @@ export default {
1707
1707
  'menus',
1708
1708
  'useCaseCodes',
1709
1709
  'mainConfig',
1710
- 'jump',
1711
- 'showLaunch'
1710
+ 'jump'
1712
1711
  ]);
1713
1712
  if (this.onQuit && typeof this.onQuit === 'function') {
1714
1713
  this.onQuit();
@@ -638,8 +638,6 @@ export default {
638
638
  });
639
639
  this.filesTotalSize = filesTotalSize;
640
640
  this.$emit('input', val);
641
- } else {
642
- this.getFiles(this.params);
643
641
  }
644
642
  }
645
643
  },
@@ -758,6 +756,7 @@ export default {
758
756
  dochubConfig: this.dochubConfig
759
757
  });
760
758
  }
759
+ this.getFiles(this.params);
761
760
  }
762
761
  })
763
762
  .catch((err) => {
@@ -779,10 +778,16 @@ export default {
779
778
  ) {
780
779
  return false;
781
780
  }
781
+ let url =
782
+ typeof this.fileList === 'string'
783
+ ? this.fileList
784
+ : this.dochubConfig.getDocumentList
785
+ ? this.dochubConfig.getDocumentList
786
+ : getAdjunctFileInfos;
782
787
  util
783
788
  .ajax({
784
789
  method: this.method,
785
- url: this.getAdjunctFileInfos,
790
+ url: url,
786
791
  data: params,
787
792
  params: params,
788
793
  format: false
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.94',
124
+ version: '0.5.95',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,