iscs 代码调整
实训平台 缓存跳转代码调整
This commit is contained in:
parent
841afe35a1
commit
d0ed6ed859
@ -134,11 +134,19 @@ export function previewRunPlan(planId) {
|
||||
/** 加载剧本 */
|
||||
export function loadDraftScript(scriptId, memberId, group) {
|
||||
return request({
|
||||
url: `api/simulation/${group}/scriptDraft/${scriptId}?memberId=${memberId}`,
|
||||
url: `/api/simulation/${group}/scriptDraft/${scriptId}?memberId=${memberId}`,
|
||||
method: 'post'
|
||||
});
|
||||
}
|
||||
|
||||
/** 剧本预览选择角色 */
|
||||
export function loadDraftScriptNew(scriptId, memberId, group) {
|
||||
return request({
|
||||
url: `/simulation/${group}/${memberId}`,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
/** 获取已发布的有地图的城市列表*/
|
||||
export function publisMapCityList(data) {
|
||||
return request({
|
||||
|
File diff suppressed because one or more lines are too long
@ -35,6 +35,7 @@ import { simulationNotify, schedulingNotify, createSimulationNew } from '@/api/s
|
||||
import LimitList from '@/views/components/limits/index';
|
||||
import { getSubSystemDetail } from '@/api/trainingPlatform';
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
import localStore from 'storejs';
|
||||
|
||||
export default {
|
||||
name: 'ExamDetailList',
|
||||
@ -152,8 +153,15 @@ export default {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
this.loading = false;
|
||||
this.$message.error(this.$t('error.refreshFailed'));
|
||||
if (error.code == 30001) {
|
||||
const url = localStore.get('orignalTrainingPlatformRoute' + this.$store.state.user.id);
|
||||
if (url) {
|
||||
this.$router.push(url);
|
||||
}
|
||||
} else {
|
||||
this.loading = false;
|
||||
this.$message.error(this.$t('error.refreshFailed'));
|
||||
}
|
||||
}
|
||||
},
|
||||
refresh() {
|
||||
|
@ -49,8 +49,15 @@ export default {
|
||||
if (resp.data) {
|
||||
this.tableData = resp.data.lessonList;
|
||||
}
|
||||
}).catch(()=>{
|
||||
this.$messageBox(this.$t('error.obtainCourseInformationFailed'));
|
||||
}).catch((error)=>{
|
||||
if (error.code == 30001) {
|
||||
const url = localStore.get('orignalTrainingPlatformRoute' + this.$store.state.user.id);
|
||||
if (url) {
|
||||
this.$router.push(url);
|
||||
}
|
||||
} else {
|
||||
this.$messageBox(this.$t('error.obtainCourseInformationFailed'));
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -51,8 +51,15 @@ export default {
|
||||
} else {
|
||||
this.tableData = [];
|
||||
}
|
||||
}).catch(()=>{
|
||||
this.$messageBox(this.$t('error.obtainCourseInformationFailed'));
|
||||
}).catch((error)=>{
|
||||
if (error.code == 30001) {
|
||||
const url = localStore.get('orignalTrainingPlatformRoute' + this.$store.state.user.id);
|
||||
if (url) {
|
||||
this.$router.push(url);
|
||||
}
|
||||
} else {
|
||||
this.$messageBox(this.$t('error.obtainCourseInformationFailed'));
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -50,6 +50,7 @@ export default {
|
||||
launchFullscreen();
|
||||
const path = localStore.get('trainingPlatformRoute' + this.userId);
|
||||
if (path && path.startsWith('/trainingPlatform')) {
|
||||
localStore.set('orignalTrainingPlatformRoute' + this.userId, `/trainingPlatform/permission/${data[0].id}`);
|
||||
this.$router.push(path);
|
||||
} else if (data && data[0]) {
|
||||
this.$router.push(`/trainingPlatform/permission/${data[0].id}`);
|
||||
|
Loading…
Reference in New Issue
Block a user