system-clients 3.2.41 → 3.2.42

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.
@@ -1,15 +1,15 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import all from 'vue-client/src/all'
4
-
5
- all()
6
- require('../../src/styles/less/bootstrap.less');
7
-
8
- Vue.component('login-page', (resolve) => { require(['../../src/components/server/LoginPage'], resolve) })
9
- Vue.component('login-view', (resolve) => { require(['../../src/components/server/LoginView'], resolve) })
10
-
11
- /* eslint-disable no-new */
12
- new Vue({
13
- el: 'body',
14
- components: { App }
15
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import all from 'vue-client/src/all'
4
+
5
+ all()
6
+ require('../../src/styles/less/bootstrap.less');
7
+
8
+ Vue.component('login-page', (resolve) => { require(['../../src/components/server/LoginPage'], resolve) })
9
+ Vue.component('login-view', (resolve) => { require(['../../src/components/server/LoginView'], resolve) })
10
+
11
+ /* eslint-disable no-new */
12
+ new Vue({
13
+ el: 'body',
14
+ components: { App }
15
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.41",
3
+ "version": "3.2.42",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <div class="syslogin" v-if="showlogin">
2
+ <div class="ssoLoadingMain" v-show="!showlogin && isSso">
3
+ <img class="ssoLoadingImg" src="../../../static/newStyle/login-do.gif">
4
+ </div>
5
+ <div class="syslogin" v-show="showlogin">
3
6
  <img style="position: fixed; left: 50px; top: 50px; height: 70px" src="../../../static/furuike/logo2.jpg">
4
7
  <div class="login-title" >
5
8
  <div class="row auto">
@@ -247,6 +250,7 @@ export default {
247
250
  title: '登录',
248
251
  async ready () {
249
252
  if (window.location.href.includes('ticket')) {
253
+ this.isSso = true
250
254
  this.showlogin = false
251
255
  let url = window.location.href.split("?")[1]
252
256
  let obj = {}
@@ -261,6 +265,7 @@ export default {
261
265
  this.$resetpost('/sso/logic/serviceValidate', params,{resolveMsg: null, rejectMsg: null}).then((re) => {
262
266
  // this.$showMessage("re----" + JSON.stringify(re))
263
267
  if (re.data.code === 200) {
268
+ this.showlogin = false
264
269
  let condition = `ename = '${re.data.data.userName}'`
265
270
  this.$resetpost('rs/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
266
271
  if (res.data && res.data.length > 0) {
@@ -271,7 +276,10 @@ export default {
271
276
  return co(gen)
272
277
  }
273
278
  })
279
+ } else {
280
+ this.showlogin = true
274
281
  }
282
+ this.isSso = false
275
283
  })
276
284
  } else {
277
285
  this.titleShow = this.$appdata.getSingleValue('关于我们')
@@ -338,6 +346,7 @@ export default {
338
346
  serviceKey: '5d83a22dd2824234b1580ede32530e99'
339
347
  },
340
348
  showlogin: true,
349
+ isSso: false,
341
350
  titleShow: true, //标题显示
342
351
  otherLogin:false,
343
352
  login: false,
@@ -531,6 +540,7 @@ export default {
531
540
 
532
541
  async depPromptConfirm () {
533
542
  this.depPromptShow = false
543
+ this.showlogin = false
534
544
  return this.$goto('home-page', {functions: this.$login.f,config: this.config})
535
545
  },
536
546
 
@@ -555,4 +565,12 @@ export default {
555
565
  </script>
556
566
 
557
567
  <style>
568
+ .ssoLoadingMain .ssoLoadingImg {
569
+ position: absolute;
570
+ top:0;
571
+ left: 0;
572
+ bottom: 0;
573
+ right: 0;
574
+ margin: auto;
575
+ }
558
576
  </style>