From 574187f2e1eedb8c355090af37be3d9ccc08a585 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 08 一月 2024 08:52:54 +0800
Subject: [PATCH] 远程部署服务部分代码编写,主题库定义分类授权界面增加全选按钮功能

---
 Source/UBCS-WEB/src/page/login/sso.vue |   70 ++++++++++------------------------
 1 files changed, 21 insertions(+), 49 deletions(-)

diff --git a/Source/UBCS-WEB/src/page/login/sso.vue b/Source/UBCS-WEB/src/page/login/sso.vue
index 5521ac4..73ea181 100644
--- a/Source/UBCS-WEB/src/page/login/sso.vue
+++ b/Source/UBCS-WEB/src/page/login/sso.vue
@@ -1,69 +1,41 @@
 <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";
-
+ 
 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",
-
-      },
+      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() {
+      //URL浼犻�掑弬鏁版椂 浼氬皢瀛楃涓蹭腑鐨� %2B 涔熷氨鏄�+鍙疯浆鎹负绌烘牸銆�
+      this.PathString = decodeURIComponent(this.$route.query.empCode.replace(/\s/g, '+'));
+      //console.log(this.$route);
+      //console.log(this.PathString);
+      this.$store.dispatch("LoginBySso", { PathString: this.PathString }).then((res) => {
+        //console.log('res', res)
+        this.$router.push({ path: this.tagWel.value });
+      })
+    }
   }
 }
 </script>
-
+ 
 <style scoped>
-
-</style>
+ 
+</style>
\ No newline at end of file

--
Gitblit v1.9.3