竞赛系统调整
This commit is contained in:
parent
3b2d431400
commit
bfb3c9357c
@ -2,12 +2,12 @@ export function getBaseUrl() {
|
|||||||
let BASE_API;
|
let BASE_API;
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// BASE_API = 'https://joylink.club/jlcloud';
|
// BASE_API = 'https://joylink.club/jlcloud';
|
||||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
BASE_API = 'https://test.joylink.club/jlcloud';
|
||||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||||
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||||
BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||||
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
||||||
// BASE_API = 'http://192.168.3.41:9000'; // 张S赛
|
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||||
// BASE_API = 'http://b29z135112.zicp.vip';
|
// BASE_API = 'http://b29z135112.zicp.vip';
|
||||||
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
|
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
|
||||||
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛
|
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛
|
||||||
|
@ -1,27 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="errPage-container">
|
<div class="errPage-container">
|
||||||
<el-button icon="arrow-left" class="pan-back-btn" @click="back">
|
<el-button icon="arrow-left" class="pan-back-btn" @click="back">
|
||||||
{{$t('global.back')}}
|
{{ $t('global.back') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<h1 class="text-jumbo text-ginormous">
|
<h1 class="text-jumbo text-ginormous">
|
||||||
Oops!
|
Oops!
|
||||||
</h1>
|
</h1>
|
||||||
{{$t('error.gifSource')}}<a href="https://zh.airbnb.com/" target="_blank">airbnb</a> {{$t('error.page')}}
|
{{ $t('error.gifSource') }}<a href="https://zh.airbnb.com/" target="_blank">airbnb</a> {{ $t('error.page') }}
|
||||||
<h2>{{$t('error.noPermissionToGoToThisPage')}}</h2>
|
<h2>{{ $t('error.noPermissionToGoToThisPage') }}</h2>
|
||||||
<h6>{{$t('error.dissatisfied')}}</h6>
|
<h6>{{ $t('error.dissatisfied') }}</h6>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li>{{$t('error.orYouCanGo')}}</li>
|
<li>{{ $t('error.orYouCanGo') }}</li>
|
||||||
<li class="link-type">
|
<li class="link-type">
|
||||||
<router-link to="/dashboard">
|
<router-link to="/dashboard">
|
||||||
{{$t('error.backToHome')}}
|
{{ $t('error.backToHome') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li class="link-type">
|
<li class="link-type">
|
||||||
<a href="https://www.taobao.com/">{{$t('error.justLookingAround')}}</a>
|
<a href="https://www.taobao.com/">{{ $t('error.justLookingAround') }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#" @click.prevent="dialogVisible=true">{{$t('error.pointMeToSeeThePicture')}}</a></li>
|
<li><a href="#" @click.prevent="dialogVisible=true">{{ $t('error.pointMeToSeeThePicture') }}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@ -35,27 +35,27 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import errGif from '@/assets/401_images/401.gif'
|
import errGif from '@/assets/401_images/401.gif';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Page401',
|
name: 'Page401',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
errGif: errGif + '?' + +new Date(),
|
errGif: errGif + '?' + +new Date(),
|
||||||
ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',
|
ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',
|
||||||
dialogVisible: false
|
dialogVisible: false
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
back() {
|
back() {
|
||||||
if (this.$route.query.noGoBack) {
|
if (this.$route.query.noGoBack) {
|
||||||
this.$router.push({ path: '/dashboard' })
|
this.$router.push({ path: '/dashboard' });
|
||||||
} else {
|
} else {
|
||||||
this.$router.go(-1)
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -49,7 +49,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { examNotify, examNotifyNew } from '@/api/simulation';
|
|
||||||
import { getExamLessonDetail } from '@/api/management/exam';
|
import { getExamLessonDetail } from '@/api/management/exam';
|
||||||
import { generateExamList } from '@/api/management/userexam';
|
import { generateExamList } from '@/api/management/userexam';
|
||||||
import { PermissionType } from '@/scripts/ConstDic';
|
import { PermissionType } from '@/scripts/ConstDic';
|
||||||
@ -195,7 +194,7 @@ export default {
|
|||||||
this.$router.push(`/jsxt/theory/detail/${this.$route.query.mapId}`);
|
this.$router.push(`/jsxt/theory/detail/${this.$route.query.mapId}`);
|
||||||
} else {
|
} else {
|
||||||
// this.disabled = true;
|
// this.disabled = true;
|
||||||
const query = { lineCode: '06', mapId: '34', group: '52-128-102', roomId: '380' };
|
const query = { lineCode: '11', mapId: '41', group: '15-4-482', roomId: '385' };
|
||||||
this.$router.replace({ path: `/jointTrainingNew`, query: query});
|
this.$router.replace({ path: `/jointTrainingNew`, query: query});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -9,6 +9,10 @@
|
|||||||
<el-button type="success" :disabled="isDisable || dataError" @click="selectBeginTime">{{ $t('joinTraining.drivingByPlan') }}</el-button>
|
<el-button type="success" :disabled="isDisable || dataError" @click="selectBeginTime">{{ $t('joinTraining.drivingByPlan') }}</el-button>
|
||||||
<el-button type="danger" :disabled="!isDisable" @click="end">{{ $t('joinTraining.exitPlan') }}</el-button>
|
<el-button type="danger" :disabled="!isDisable" @click="end">{{ $t('joinTraining.exitPlan') }}</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="project==='jsxt'">
|
||||||
|
<el-button :disabled="jsStart" type="success">开始</el-button>
|
||||||
|
<el-button :disabled="canJsEnd" type="danger">结束</el-button>
|
||||||
|
</template>
|
||||||
<el-button type="primary" :loading="backLoading" @click="back">{{ $t('global.back') }}</el-button>
|
<el-button type="primary" :loading="backLoading" @click="back">{{ $t('global.back') }}</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</div>
|
</div>
|
||||||
@ -20,8 +24,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import QrCode from '@/components/QrCode';
|
import QrCode from '@/components/QrCode';
|
||||||
// import ChartWindow from './chatWindow';
|
|
||||||
// import ChartView from './chartView';
|
|
||||||
import ChatBox from './chatBox';
|
import ChatBox from './chatBox';
|
||||||
import SetTime from '@/views/newMap/displayNew/demon/setTime';
|
import SetTime from '@/views/newMap/displayNew/demon/setTime';
|
||||||
import { ranAsPlan, exitRunPlan } from '@/api/simulation';
|
import { ranAsPlan, exitRunPlan } from '@/api/simulation';
|
||||||
@ -71,7 +73,9 @@ export default {
|
|||||||
offset: 10,
|
offset: 10,
|
||||||
userId: '',
|
userId: '',
|
||||||
stationList: [],
|
stationList: [],
|
||||||
stationLists: []
|
stationLists: [],
|
||||||
|
jsStart: true,
|
||||||
|
canJsEnd: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -89,6 +93,9 @@ export default {
|
|||||||
},
|
},
|
||||||
isProject() {
|
isProject() {
|
||||||
return getSessionStorage('project').endsWith('gzb') && this.userRole === 'CI';
|
return getSessionStorage('project').endsWith('gzb') && this.userRole === 'CI';
|
||||||
|
},
|
||||||
|
project() {
|
||||||
|
return getSessionStorage('project');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -263,11 +270,15 @@ export default {
|
|||||||
back() {
|
back() {
|
||||||
this.$store.dispatch('training/over').then(() => {
|
this.$store.dispatch('training/over').then(() => {
|
||||||
this.backLoading = true;
|
this.backLoading = true;
|
||||||
putJointTrainingSimulationUserNew(this.group).then(() => {
|
if (this.project === 'jsxt') {
|
||||||
this.$router.replace({ path: `/trainroom`, query: { lineCode: this.lineCode, group: this.group, drawWay: true } });
|
this.$router.go(-1);
|
||||||
exitFullscreen();
|
} else {
|
||||||
this.backLoading = false;
|
putJointTrainingSimulationUserNew(this.group).then(() => {
|
||||||
});
|
this.$router.replace({ path: `/trainroom`, query: { lineCode: this.lineCode, group: this.group, drawWay: true } });
|
||||||
|
exitFullscreen();
|
||||||
|
this.backLoading = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
jumpjlmap3d() {
|
jumpjlmap3d() {
|
||||||
|
Loading…
Reference in New Issue
Block a user