代码调整

This commit is contained in:
joylink_cuiweidong 2021-03-22 14:51:34 +08:00
parent 9b4309d0c1
commit 42b59cc752

View File

@ -122,17 +122,30 @@ export default {
tipsMsg: '',
pwdDisplay: true,
trainingList: [
// {
// title: '(TA1601)',
// id: '613144'
// },
// {
// title: '(W0304)',
// id: '612112'
// },
// {
// title: '(S0304-S0301)',
// id: '610065'
// }
{
title: '区段封锁(TA1601)',
id: '613144'
title: '站台扣车(车站五05-下行站台)',
id: '4991355'
},
{
title: '道岔封锁(W0304)',
id: '612112'
title: '道岔封锁(W0904)',
id: '4993548'
},
{
title: '进路选排(S0304-S0301)',
id: '610065'
title: '进路选排(S0916-S0901)',
id: '4991607'
}
],
loginForm: {
@ -197,7 +210,9 @@ export default {
// &noPreLogout=true
// window.location.origin +
// setSessionStorage('project', 'DEFAULT');
this.src = `https://joylink.club/cbtc/demoTraining/teach?lessonId=195&mapId=59&lineCode=02&prdType=01&trainingId=${el.id}&token=${this.token}&project=DEFAULT`;
// lessonId=101&mapId=49&prdType=01
// lessonId=195&mapId=59&lineCode=02&prdType=01
this.src = `https://test.joylink.club/cbtc/demoTraining/teach?lessonId=101&mapId=49&lineCode=02&prdType=01&trainingId=${el.id}&token=${this.token}&project=DEFAULT`;
this.loading = true;
setTimeout(()=>{
this.show = true;
@ -213,7 +228,8 @@ export default {
},
loginRefresh() {
// this.loadingCode = true;
this.$store.dispatch('setBaseUrl', 'https://api.joylink.club/jlcloud');
// this.$store.dispatch('setBaseUrl', 'https://api.joylink.club/jlcloud');
this.$store.dispatch('setBaseUrl', 'https://test.joylink.club/jlcloud');
const self = this;
const params = LoginParams['LianKeTang'];
params.project = 'DEFAULT';
@ -286,7 +302,8 @@ export default {
// secret: "joylink"
this.$refs.loginForm.validate(valid => {
if (valid) {
this.$store.dispatch('setBaseUrl', 'https://api.joylink.club/jlcloud');
// this.$store.dispatch('setBaseUrl', 'https://api.joylink.club/jlcloud');
this.$store.dispatch('setBaseUrl', 'https://test.joylink.club/jlcloud');
const model = Object.assign({}, this.loginForm);
model.password = md5(model.password);
model.type = 'class';