竞赛系统调整

This commit is contained in:
fan 2020-05-19 17:06:34 +08:00
parent 3b2d431400
commit bfb3c9357c
4 changed files with 50 additions and 40 deletions

View File

@ -2,12 +2,12 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// 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.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.41:9000'; // 张S
// BASE_API = 'http://192.168.3.41:9000'; // 张
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛

View File

@ -35,7 +35,7 @@
</template>
<script>
import errGif from '@/assets/401_images/401.gif'
import errGif from '@/assets/401_images/401.gif';
export default {
name: 'Page401',
@ -44,18 +44,18 @@ export default {
errGif: errGif + '?' + +new Date(),
ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',
dialogVisible: false
}
};
},
methods: {
back() {
if (this.$route.query.noGoBack) {
this.$router.push({ path: '/dashboard' })
this.$router.push({ path: '/dashboard' });
} else {
this.$router.go(-1)
}
this.$router.go(-1);
}
}
}
};
</script>
<style lang="scss" scoped>

View File

@ -49,7 +49,6 @@
</div>
</template>
<script>
import { examNotify, examNotifyNew } from '@/api/simulation';
import { getExamLessonDetail } from '@/api/management/exam';
import { generateExamList } from '@/api/management/userexam';
import { PermissionType } from '@/scripts/ConstDic';
@ -195,7 +194,7 @@ export default {
this.$router.push(`/jsxt/theory/detail/${this.$route.query.mapId}`);
} else {
// 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});
}
},

View File

@ -9,6 +9,10 @@
<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>
</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-group>
</div>
@ -20,8 +24,6 @@
<script>
import QrCode from '@/components/QrCode';
// import ChartWindow from './chatWindow';
// import ChartView from './chartView';
import ChatBox from './chatBox';
import SetTime from '@/views/newMap/displayNew/demon/setTime';
import { ranAsPlan, exitRunPlan } from '@/api/simulation';
@ -71,7 +73,9 @@ export default {
offset: 10,
userId: '',
stationList: [],
stationLists: []
stationLists: [],
jsStart: true,
canJsEnd: true
};
},
computed: {
@ -89,6 +93,9 @@ export default {
},
isProject() {
return getSessionStorage('project').endsWith('gzb') && this.userRole === 'CI';
},
project() {
return getSessionStorage('project');
}
},
watch: {
@ -263,11 +270,15 @@ export default {
back() {
this.$store.dispatch('training/over').then(() => {
this.backLoading = true;
if (this.project === 'jsxt') {
this.$router.go(-1);
} else {
putJointTrainingSimulationUserNew(this.group).then(() => {
this.$router.replace({ path: `/trainroom`, query: { lineCode: this.lineCode, group: this.group, drawWay: true } });
exitFullscreen();
this.backLoading = false;
});
}
});
},
jumpjlmap3d() {