From e2feb34a33953dc44219c79a3329dfd29142662c Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 22 九月 2023 17:08:04 +0800
Subject: [PATCH] 完整单点登录测试-已完成

---
 Source/UBCS-WEB/src/page/login/sso.vue |   57 +++++++++++++--------------------------------------------
 1 files changed, 13 insertions(+), 44 deletions(-)

diff --git a/Source/UBCS-WEB/src/page/login/sso.vue b/Source/UBCS-WEB/src/page/login/sso.vue
index 5521ac4..26e9510 100644
--- a/Source/UBCS-WEB/src/page/login/sso.vue
+++ b/Source/UBCS-WEB/src/page/login/sso.vue
@@ -1,9 +1,9 @@
 <template>
-  <p>娴嬭瘯</p>
+
 </template>
 
 <script>
-import {oaSsos} from "@/api/system/user.js"
+import {ssoLogin} from "@/api/system/user.js"
 import {mapGetters} from "vuex";
 import {setStore} from "@/util/store";
 
@@ -11,55 +11,24 @@
   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",
-
-      },
+      PathString:'',
     }
   },
   computed: {
-    ...mapGetters(["tagWel", "userInfo"])
+    ...mapGetters(["tagWel"])
   },
   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() {
+      this.PathString=this.$route.query.empCode;
+      this.$store.dispatch("LoginBySso", { PathString: this.PathString }).then((res) => {
+        console.log('res', res)
+        this.$router.push({ path: this.tagWel.value });
+      })
+    }
   }
 }
 </script>

--
Gitblit v1.9.3