From 7e952a339cca0dd65e01f2d0b11fd27c570f6607 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 28 九月 2023 23:26:44 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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..54c3430 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.10.0