单点登录

master
liangliang.Li 3 years ago
commit f631f82d52
  1. 4
      src/components/page/Index.vue
  2. 4
      src/components/page/Login.vue
  3. 6
      src/components/page/ProjectPattern.vue
  4. 6
      src/config/index.js
  5. 10
      src/utils/api.js
  6. 1
      src/utils/http.js

@ -51,7 +51,6 @@ export default {
mounted() {
this.showChangePass()
},
methods: {
setPassword(){
if(this.regForm.password !== this.regForm.rePassword){
return this.$message.warning('两次输入的密码不一致,请重新输入')
@ -72,13 +71,12 @@ export default {
}).catch(err=>{})
},
toFuture(){
sessionStorage.setItem("model",0);//
this.core.toSubSystem('','','',0)
},
toNext(val) {
this.$router.push(`ProjectIntro?isFuture=${val}`)
},
}
};
</script>
<style lang="scss" scoped>

@ -91,11 +91,11 @@ export default {
}).catch(err=>{})
},
toClient(){
location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdclient/#/clientLogin' : 'http://122.9.154.146/kdclient/#/clientLogin'
location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdclient/#/clientLogin' : 'https://finance.uestc.cn/kdclient/#/clientLogin'
this.visiteShow = false
},
toMang(){
location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdserver/#/login' : 'http://122.9.154.146/kdserver/#/login'
location.href = location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdserver/#/login' : 'https://finance.uestc.cn/kdserver/#/login'
},
toExpert(){
this.loadIns = Loading.service({

@ -49,19 +49,19 @@ export default {
pattern: Number(this.$route.query.pattern),
projectList:[{
title:'期权套期保值实验',
url:'http://122.9.154.146/kd/#/Dashboard',
url:'https://finance.uestc.cn/kd/#/Dashboard',
principle:'本实验根据《金融交易策略设计与模拟》等理论课程的大纲要求,将期权基础知识考核、期权实战规则、模拟开户和期权策略设计等内容融会贯通于十个步骤,考察学生利用期权策略减少价格波动对企业经营影响的能力。',
step:'1. 实验背景介绍;2. 期权实战规则;3. 模拟开户;4. 银期转账;5. 实验角色选择;6. 行情查看与期权选择;7. 期权开仓;8. 期权平仓;9. 核算损益;10. 填写实验报告',
prepare:'完成此实验前,应该了解期货期权的相关定义、期权的交易规则、期权交易的核算规则等相关知识点。'
},{
title:'期权组合保险实验',
url:'http://122.9.154.146/kdChallenge/#/Dashboard',
url:'https://finance.uestc.cn/kdChallenge/#/Dashboard',
principle:'本实验根据《金融交易策略设计与模拟》等理论课程的大纲要求,将期权delta风险中性策略、交叉对冲和期权组合策略设计等知识点融会贯通于十个步骤,考察学生利用期权组合策略减少价格波动对企业经营影响的能力。',
step:'1.关于delta动态调仓的实验背景;2.关于交叉对冲的实验背景;3.实验案例;4.最优对冲比率计算;5.合约选择;6.期权组合开仓;7.期权组合调仓;8.期权组合平仓;9.核算损益;10.填写实验报告;',
prepare:'开始实验前,应了解期权定义、期权交易规则、希腊字母delta、交叉对冲和不同期权组合策略的盈亏图。'
},{
title:'期货套期保值实验',
url:'http://122.9.154.146/future/#/Dashboard',
url:'https://finance.uestc.cn/future/#/Dashboard',
principle:'本实验根据《金融交易策略设计与模拟》等理论课程的大纲要求,将期货基础知识考核、期货实战规则、模拟开户和期货策略设计等内容融会贯通于十个步骤,考察学生利用期货策略减少价格波动对企业经营影响的能力。',
step:'1. 期货交易实例;2. 期货实战规则;3. 期货账户开户;4. 银期转账;5. 实验案例和实验角色选择;6. 期货合约选择;7. 期货合约开仓;8. 期货合约平仓;9.核算损益;10. 填写实验报告',
prepare:'完成此实验前,应该了解期货的相关定义、期货的交易规则、期货交易的核算规则等相关知识点。'

@ -12,15 +12,15 @@ export default {
/**
* @description 基础模式子系统链接
*/
subSystem1: location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kd/#/Dashboard' : 'http://122.9.154.146/kd/#/Dashboard',
subSystem1: location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kd/#/Dashboard' : 'https://finance.uestc.cn/kd/#/Dashboard',
/**
* @description 挑战模式子系统链接
*/
subSystem2: location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdChallenge/#/Dashboard' : 'http://122.9.154.146/kdChallenge/#/Dashboard',
subSystem2: location.host.includes('116.63.168.79') ? 'http://116.63.168.79/kdChallenge/#/Dashboard' : 'https://finance.uestc.cn/kdChallenge/#/Dashboard',
/**
* @description 期货模式
*/
subSystem3: location.host.includes('116.63.168.79') ? 'http://116.63.168.79/future/#/Dashboard' : 'http://122.9.154.146/future/#/Dashboard',
subSystem3: location.host.includes('116.63.168.79') ? 'http://116.63.168.79/future/#/Dashboard' : 'https://finance.uestc.cn/future/#/Dashboard',
/**
* @description 专家账号
*/

@ -3,14 +3,14 @@ import axios from 'axios';
// let host = 'http://192.168.31.151:9090'//榕
// let host = 'http://192.168.31.137:9090'//陈
// let host = 'http://192.168.31.205:9090'//杨
// let host = 'http://122.9.154.146'
// let host = 'https://finance.uestc.cn'
// let host = 'http://122.9.154.146'//学校内网
// let host = 'https://finance.uestc.cn'//学校内网
let host = ''
if(process.env.NODE_ENV === 'development'){
// host = 'http://122.9.154.146'
host = 'http://122.9.154.146'
axios.defaults.baseURL = location.host.includes('116.63.168.79') ? 'http://116.63.168.79' : 'http://122.9.154.146'
// host = 'https://finance.uestc.cn'
host = 'https://finance.uestc.cn'
axios.defaults.baseURL = location.host.includes('116.63.168.79') ? 'http://116.63.168.79' : 'https://finance.uestc.cn'
}
export default {

@ -28,7 +28,6 @@ axios.interceptors.request.use(config => {
config.headers.token = token
}
return config;
}, err => {
Message.error({
message: '退出登陆',

Loading…
Cancel
Save