master
parent
07f32c175a
commit
d36c96946a
@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getSsttToken(params) {
|
||||
return request({
|
||||
url: '/api/admin/sso/get-token',
|
||||
method: 'get',
|
||||
params:params
|
||||
})
|
||||
}
|
||||
|
||||
export function getSsttIndex(params) {
|
||||
return request({
|
||||
url: '/api/admin/sso/schedule-index',
|
||||
method: 'get',
|
||||
params:params
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
<template>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getSsttToken
|
||||
} from "@/api/sstt";
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
window: {
|
||||
width: 0,
|
||||
height: 0,
|
||||
top: 0,
|
||||
left: 0
|
||||
},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.window.width = screen.availWidth * 0.95
|
||||
this.window.height = screen.availHeight * 0.95
|
||||
this.window.top = (window.screen.height - 30 - this.window.height) / 2
|
||||
this.window.left = (window.screen.width - 10 - this.window.width) / 2
|
||||
this.toSstt()
|
||||
},
|
||||
methods:{
|
||||
async toSstt(){
|
||||
let res = await getSsttToken()
|
||||
let url = 'https://sstt.115.langye.net/admin/#/login?sstt_token='+res.sstt_token
|
||||
let seeBuy = window.open(url, 'follow',
|
||||
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Loading…
Reference in new issue