From fc94a3e59121707b6f49d0d60c38d9a4d9ac3567 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 21 九月 2023 10:51:26 +0800
Subject: [PATCH] sso单点登录跳转页

---
 Source/UBCS-WEB/src/page/login/userlogin.vue |    9 ++--
 Source/UBCS-WEB/src/page/login/sso.vue       |   63 ++++++++-----------------------
 2 files changed, 21 insertions(+), 51 deletions(-)

diff --git a/Source/UBCS-WEB/src/page/login/sso.vue b/Source/UBCS-WEB/src/page/login/sso.vue
index 5521ac4..3565fc3 100644
--- a/Source/UBCS-WEB/src/page/login/sso.vue
+++ b/Source/UBCS-WEB/src/page/login/sso.vue
@@ -1,5 +1,5 @@
 <template>
-  <p>娴嬭瘯</p>
+
 </template>
 
 <script>
@@ -10,56 +10,25 @@
 export default {
   name: "sso",
   data() {
-    return {
-      loginForm:{
-        //绉熸埛ID
-        tenantId: "",
-        //閮ㄩ棬ID
-        deptId: "",
-        //瑙掕壊ID
-        roleId: "",
-        //鐢ㄦ埛鍚�
-        username: "",
-        //瀵嗙爜
-        password: "",
-        selectInput: '',
-        //涓嬫媺input鏁版嵁
-        value: '绠$悊缁�',
-        //涓嬫媺鑿滃崟
-        region: [],
-        //璐﹀彿绫诲瀷
-        type: "account",
-        //楠岃瘉鐮佺殑绱㈠紩
-        key: "",
-        //棰勫姞杞界櫧鑹茶儗鏅�
-        image: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
-
-      },
-    }
+    return {}
   },
-  computed: {
-    ...mapGetters(["tagWel", "userInfo"])
-  },
+  computed: {},
   created() {
-
+    this.onLoad()
   },
   methods: {
-    // Onload() {
-    //   let name = 'pwdfree'
-    //   oaSsos(name).then(res=>{
-    //     console.log(res)
-    //     if(res.status === 200){
-    //       // this.loginForm.tenantId=res.data.tenant_id;
-    //       // this.loginForm.username=res.data.user_name;
-    //       this.$store.dispatch("LoginBySso").then((res) => {
-    //         console.log('res',res)
-    //           this.$router.push({path: this.tagWel.value});
-    //       })
-    //       // console.log(this.tagWel)
-    //       // this.$router.push({path: this.tagWel.value});
-    //     }
-    //   })
-    // }
+    onLoad() {
+      const loading = this.$loading({
+        lock: true,
+        text: 'Loading',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
+      setTimeout(() => {
+        loading.close();
+      }, 2000);
+
+    }
   }
 }
 </script>
diff --git a/Source/UBCS-WEB/src/page/login/userlogin.vue b/Source/UBCS-WEB/src/page/login/userlogin.vue
index 15c1296..1311274 100644
--- a/Source/UBCS-WEB/src/page/login/userlogin.vue
+++ b/Source/UBCS-WEB/src/page/login/userlogin.vue
@@ -300,10 +300,11 @@
   props: [],
   methods: {
     ChandleLogin() {
-      this.$store.dispatch("LoginBySso").then((res) => {
-        console.log('res', res)
-        this.$router.push({path: this.tagWel.value});
-      })
+      // this.$store.dispatch("LoginBySso").then((res) => {
+      //   console.log('res', res)
+      //   this.$router.push({path: this.tagWel.value});
+      // })
+      this.$router.push({path:'/sso'});
     },
     closehandle() {
       removeToken()

--
Gitblit v1.9.3