diff --git a/src/i18n/langs/en/global.js b/src/i18n/langs/en/global.js
index 14dc8c063..630ba7ee0 100644
--- a/src/i18n/langs/en/global.js
+++ b/src/i18n/langs/en/global.js
@@ -159,5 +159,8 @@ export default {
enterLastStep: 'Please enter a hint and click next',
pleaseOpearte: 'Please proceed',
help: 'help',
- city: 'City'
+ city: 'City',
+ simulationSystem: 'The simulation system',
+ lessonSystem: 'The lesson system',
+ examSystem: 'The exam system'
};
diff --git a/src/i18n/langs/zh/global.js b/src/i18n/langs/zh/global.js
index 801450af3..47813af43 100644
--- a/src/i18n/langs/zh/global.js
+++ b/src/i18n/langs/zh/global.js
@@ -159,5 +159,8 @@ export default {
enterLastStep: '请输入提示并点击下一步',
pleaseOpearte: '请开始操作',
help: '帮助',
- city: '城市'
+ city: '城市',
+ simulationSystem: '仿真系统',
+ lessonSystem: '课程系统',
+ examSystem: '考试系统'
};
diff --git a/src/jlmap3d/jl3ddrive/jl3ddrive.js b/src/jlmap3d/jl3ddrive/jl3ddrive.js
index 4cd1fff72..4d6949890 100644
--- a/src/jlmap3d/jl3ddrive/jl3ddrive.js
+++ b/src/jlmap3d/jl3ddrive/jl3ddrive.js
@@ -96,7 +96,7 @@ export function JLmapDriving(dom, data, skinCode,storemod) {
// 地图模型数据
let mapdata = new Jl3ddata();
- let camera = new THREE.PerspectiveCamera(70, dom.clientWidth/dom.clientHeight, 1, 11000);
+ let camera = new THREE.PerspectiveCamera(70, dom.clientWidth/dom.clientHeight, 1, 1000);
camera.position.set( 0, 0, 0 );
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js
index f67da179f..7b443c5e0 100644
--- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js
+++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js
@@ -157,13 +157,13 @@ export function Jl3dDriving(updatemmi,sound) {
if (trainlisttest.list[code].runMode == '02') {
if (trainlisttest.list[code].isStandTrack == true) {
- trainlisttest.list[code].speeds = parseFloat(data.body[tl].v*10/36/21/trainlisttest.list[code].len);
+ trainlisttest.list[code].speeds = parseFloat(data.body[tl].v*10/36/23/trainlisttest.list[code].len);
} else {
- trainlisttest.list[code].speeds = parseFloat(data.body[tl].v*10/36/21/trainlisttest.list[code].len);
+ trainlisttest.list[code].speeds = parseFloat(data.body[tl].v*10/36/23/trainlisttest.list[code].len);
}
} else {
- trainlisttest.list[code].speeds = parseFloat(data.body[tl].v*10/36/21/trainlisttest.list[code].len);
+ trainlisttest.list[code].speeds = parseFloat(data.body[tl].v*10/36/23/trainlisttest.list[code].len);
}
if (code == drivingcode) {
@@ -357,7 +357,7 @@ export function Jl3dDriving(updatemmi,sound) {
// trainlisttest.list[code].startmark = 1;
}else{
trainlisttest.list[code].speeds = data.body[i].speed;
- trainlisttest.list[code].speeds = parseFloat(data.body[i].speed*10/36/22/trainlisttest.list[code].len);
+ trainlisttest.list[code].speeds = parseFloat(data.body[i].speed*10/36/23/trainlisttest.list[code].len);
}
@@ -505,7 +505,7 @@ export function Jl3dDriving(updatemmi,sound) {
trainlisttest.list[code].curve = rails.linkrail[data.body[i].linkCode].lineleft;
trainlisttest.list[code].len = rails.linkrail[data.body[i].linkCode].lengthfact;
trainlisttest.list[code].progress = data.body[i].linkOffsetPercent;
- trainlisttest.list[code].speeds = parseFloat(trainlisttest.list[code].speed*10/36/21/trainlisttest.list[code].len);
+ trainlisttest.list[code].speeds = parseFloat(trainlisttest.list[code].speed*10/36/23/trainlisttest.list[code].len);
}
}else if(data.body[i].directionType == '03'){
if(rails.linkrail[data.body[i].linkCode].lineright){
@@ -513,7 +513,7 @@ export function Jl3dDriving(updatemmi,sound) {
trainlisttest.list[code].curve = rails.linkrail[data.body[i].linkCode].lineright;
trainlisttest.list[code].len = rails.linkrail[data.body[i].linkCode].lengthfact;
trainlisttest.list[code].progress = 1-data.body[i].linkOffsetPercent;
- trainlisttest.list[code].speeds = parseFloat(trainlisttest.list[code].speed*10/36/21/trainlisttest.list[code].len);
+ trainlisttest.list[code].speeds = parseFloat(trainlisttest.list[code].speed*10/36/23/trainlisttest.list[code].len);
}
}
trainlisttest.list[code].nextcode = nextcode;
diff --git a/src/jlmap3d/jl3ddrive/moveupdate/UpdateTrain.js b/src/jlmap3d/jl3ddrive/moveupdate/UpdateTrain.js
index e2c0363f8..d309ac76e 100644
--- a/src/jlmap3d/jl3ddrive/moveupdate/UpdateTrain.js
+++ b/src/jlmap3d/jl3ddrive/moveupdate/UpdateTrain.js
@@ -142,11 +142,11 @@ export function UpdateTrain(camera,traindata,control){
// if(trainmodel.status == '02'){
// }else if(trainmodel.status == '03'){
// }
-
+
trainmodel.progress = 0;
trainmodel.len = trainmodel.nextlen;
trainmodel.nowcode = trainmodel.nextcode;
- trainmodel.speeds = parseFloat(trainmodel.speed*10/36/21/trainmodel.len);
+ trainmodel.speeds = parseFloat(trainmodel.speed*10/36/22/trainmodel.len);
trainmodel.curve = trainmodel.nextcurve;
trainmodel.nextcurve = null;
diff --git a/src/jlmap3d/main/loaders/AssetLoader.js b/src/jlmap3d/main/loaders/AssetLoader.js
index 9410a6329..1996acd77 100644
--- a/src/jlmap3d/main/loaders/AssetLoader.js
+++ b/src/jlmap3d/main/loaders/AssetLoader.js
@@ -9,7 +9,7 @@ let defaultsignal = {
deviceType:"signal",
type:"low",
picUrl:"",
- assetUrl:"https://test.joylink.club/oss/models/signal/d3d.FBX"
+ assetUrl:"https://joylink.club/oss/models/signal/d3d.FBX"
}
let defaulttrain = {
@@ -18,7 +18,7 @@ let defaulttrain = {
deviceType:"train",
type:"num4",
picUrl:"",
- assetUrl:"https://test.joylink.club/oss/models/train/train.FBX"
+ assetUrl:"https://joylink.club/oss/models/train/train.FBX"
}
@@ -28,7 +28,7 @@ let defaultstation = {
deviceType:"stand",
type:"num4",
picUrl:"",
- assetUrl:"https://test.joylink.club/oss/models/station/fuzhou/fuzhou.FBX"
+ assetUrl:"https://joylink.club/oss/models/station/fuzhou/fuzhou.FBX"
}
//https://test.joylink.club/oss/models/station/fuzhou/fuzhou.FBX
//https://joylink.club/oss/models/station/fuzhou/fuzhou.FBX
@@ -58,7 +58,7 @@ let defaultsuidao = {
deviceType:"suidao",
type:"suidao",
picUrl:"",
- assetUrl:"https://test.joylink.club/oss/models/suidao/suidao.FBX"
+ assetUrl:"https://joylink.club/oss/models/suidao/suidao.FBX"
}
//https://test.joylink.club/oss/models/suidao/suidao.FBX
//https://joylink.club/oss/models/suidao/suidao.FBX
@@ -70,7 +70,7 @@ let defaultautorail = {
deviceType:"autorail",
type:"autorail",
picUrl:"",
- assetUrl:"../../static/model/auto/rail.FBX"
+ assetUrl:"https://joylink.club/oss/models/auto/rail.FBX"
}
let defaultautosuidao = {
@@ -79,7 +79,7 @@ let defaultautosuidao = {
deviceType:"autosuidao",
type:"autosuidao",
picUrl:"",
- assetUrl:"https://test.joylink.club/oss/models/auto/suidao.FBX"
+ assetUrl:"https://joylink.club/oss/models/auto/suidao.FBX"
}
let autoswitch1 = {
@@ -88,7 +88,7 @@ let autoswitch1 = {
deviceType:"autoswitch1",
type:"fuzhou",
picUrl:"",
- assetUrl:"https://test.joylink.club/oss/models/auto/switch1.FBX"
+ assetUrl:"https://joylink.club/oss/models/auto/switch1.FBX"
}
let autoswitch2 = {
@@ -97,7 +97,7 @@ let autoswitch2 = {
deviceType:"autoswitch2",
type:"fuzhou",
picUrl:"",
- assetUrl:"https://test.joylink.club/oss/models/auto/switch2.FBX"
+ assetUrl:"https://joylink.club/oss/models/auto/switch2.FBX"
}
export function AssetLoader(){
diff --git a/src/router/index.js b/src/router/index.js
index bdbd75af7..74914726c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -358,11 +358,11 @@ export const asyncRouter = [
component: Mapedit,
hidden: true
},
- // {
- // path: 'lesson/edit/:type',
- // component: LessonEdit,
- // hidden: true
- // },
+ {
+ path: 'lesson/edit/:type',
+ component: LessonEdit,
+ hidden: true
+ },
{
path: 'runPlan/detail/:mapId',
component: PlanMonitorDetail,
diff --git a/src/utils/login.js b/src/utils/login.js
index 7697c4cfa..f1e412017 100644
--- a/src/utils/login.js
+++ b/src/utils/login.js
@@ -2,8 +2,8 @@
// 登陆配置参数
export const LoginParams = {
LianKeTang: { clientId: '1', secret: 'joylink' }, // "琏课堂"
- DaPing: { clientId: '2', secret: 'bigscreen' }, // "大屏系统"
- LianJiHua: { clientId: '3', secret: 'linkplan' }, // "琏计划"
+ // DaPing: { clientId: '2', secret: 'bigscreen' }, // "大屏系统"
+ // LianJiHua: { clientId: '3', secret: 'linkplan' }, // "琏计划"
Assistant: { clientId: '4', secret: 'linkassistant' }, // "琏课堂助手"
- Design: { clientId: '6', secret: 'design' } // "城市轨道交通设计平台"
+ Design: { clientId: '2', secret: 'design' } // "城市轨道交通设计平台"
};
diff --git a/src/views/designPlatform/demonList.vue b/src/views/designPlatform/demonList.vue
index 3acbc2e59..098e8b2c1 100644
--- a/src/views/designPlatform/demonList.vue
+++ b/src/views/designPlatform/demonList.vue
@@ -29,7 +29,6 @@
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 1a553d0ff..2ad369192 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -173,20 +173,8 @@ export default {
model.project = this.$route.params.project;
removeSessionStorage('againEnter');
this.$store.dispatch('Login', model).then(() => {
- this.$store.dispatch('GetUserConfigInfo');
- this.$store.dispatch('SetAccount', model.username);
- // 设置路由
- this.loading = false;
- this.tipsMsg = '';
- let path = localStore.get('trainingPlatformRoute'+model.username);
- if (!path || !path.startsWith('/trainingPlatform')) {
- path = UrlConfig.trainingPlatform.trainingPlatformHome;
- }
- this.$nextTick(() => {
- this.$i18n.locale = 'zh';
- Cookies.set('user_lang', 'zh');
- });
- this.$router.push({ path: path });
+ this.$store.dispatch('SetAccount', model.username);
+ this.handleLoginSucessRoute();
}).catch(error => {
this.tipsMsg = error.message;
this.loading = false;
@@ -237,15 +225,7 @@ export default {
self.$store.dispatch('QrLoginSetting', { key: 'SET_TOKEN', value: response.data.token }).then(() => {
// 清除定时器,设置路由
self.clearTimer(self.checkLogin);
- let path = '/login';
- if (this.project) {
- path = path + '/' + this.project;
- }
- self.$router.push({ path: path });
- self.$nextTick(() => {
- self.$i18n.locale = 'zh';
- Cookies.set('user_lang', 'zh');
- });
+ this.handleLoginSucessRoute();
});
}).catch(error => {
if (error.data && error.data.status == '1') {
@@ -278,20 +258,8 @@ export default {
}
removeSessionStorage('againEnter');
this.$store.dispatch('Login', model).then(() => {
- this.$store.dispatch('GetUserConfigInfo');
- this.$store.dispatch('SetAccount', model.username);
- // 设置路由
- this.loading = false;
- this.tipsMsg = '';
- let path = localStore.get('trainingPlatformRoute'+model.username);
- if (!path || !path.startsWith('/trainingPlatform')) {
- path = UrlConfig.trainingPlatform.trainingPlatformHome;
- }
- this.$nextTick(() => {
- this.$i18n.locale = 'zh';
- Cookies.set('user_lang', 'zh');
- });
- this.$router.push({ path: path });
+ this.$store.dispatch('SetAccount', model.username);
+ this.handleLoginSucessRoute();
}).catch(error => {
this.tipsMsg = error.message;
this.loading = false;
@@ -302,7 +270,18 @@ export default {
return false;
}
});
- }
+ },
+ handleLoginSucessRoute() {
+ // 设置路由
+ this.loading = false;
+ this.tipsMsg = '';
+ const path = UrlConfig.trainingPlatform.trainingPlatformHome;
+ this.$nextTick(() => {
+ this.$i18n.locale = 'zh';
+ Cookies.set('user_lang', 'zh');
+ });
+ this.$router.push({ path: path });
+ }
}
};
diff --git a/src/views/login/loginDesign.vue b/src/views/login/loginDesign.vue
index 9fb58082e..519472729 100644
--- a/src/views/login/loginDesign.vue
+++ b/src/views/login/loginDesign.vue
@@ -206,12 +206,15 @@ export default {
// 设置扫码登录
self.$store.dispatch('QrLoginSetting', { key: 'SET_TOKENDESIGN', value: response.data.token }).then(() => {
// 清除定时器,设置路由
- self.clearTimer(self.checkLogin);
- self.$router.push({ path: '/design/login' });
+ self.clearTimer(self.checkLogin);
+
+ this.$router.push({ path: `${UrlConfig.design.prefix}` });
self.$nextTick(() => {
self.$i18n.locale = 'zh';
Cookies.set('user_lang', 'zh');
- });
+ });
+
+
});
}).catch(error => {
if (error.data && error.data.status == '1') {
@@ -244,16 +247,25 @@ export default {
model.type = 'design';
this.loading = true;
- this.$store.dispatch('Login', model).then(() => {
- this.$store.dispatch('GetUserConfigInfo');
- // 设置路由
- this.loading = false;
- this.tipsMsg = '';
- this.$nextTick(() => {
- this.$i18n.locale = 'zh';
- Cookies.set('user_lang', 'zh');
- });
- this.$router.push({ path: `${UrlConfig.design.prefix}` });
+ // this.$store.dispatch('Login', model).then(() => {
+ // this.$store.dispatch('GetUserConfigInfo');
+ // // 设置路由
+ // this.loading = false;
+ // this.tipsMsg = '';
+ // this.$nextTick(() => {
+ // this.$i18n.locale = 'zh';
+ // Cookies.set('user_lang', 'zh');
+ // });
+ // this.$router.push({ path: `${UrlConfig.design.prefix}` });
+ // }).catch(error => {
+ // this.tipsMsg = error.message;
+ // this.loading = false;
+ // setTimeout(() => { this.tipsMsg = ''; }, 5000);
+ // });
+
+ this.$store.dispatch('Login', model).then(() => {
+ this.$store.dispatch('SetAccount', model.username);
+ this.handleLoginSucessRoute();
}).catch(error => {
this.tipsMsg = error.message;
this.loading = false;
@@ -265,7 +277,18 @@ export default {
return false;
}
});
- }
+ },
+ handleLoginSucessRoute() {
+ // 设置路由
+ this.loading = false;
+ this.tipsMsg = '';
+ const path = UrlConfig.design.prefix;
+ this.$nextTick(() => {
+ this.$i18n.locale = 'zh';
+ Cookies.set('user_lang', 'zh');
+ });
+ this.$router.push({ path: path });
+ }
}
};
diff --git a/src/views/login/loginEn.vue b/src/views/login/loginEn.vue
index 1236534bc..fbe084b77 100644
--- a/src/views/login/loginEn.vue
+++ b/src/views/login/loginEn.vue
@@ -167,15 +167,14 @@ export default {
model.project = this.$route.params.project;
removeSessionStorage('againEnter');
this.$store.dispatch('Login', model).then(() => {
- this.$store.dispatch('GetUserConfigInfo');
this.$store.dispatch('SetAccount', model.username);
// 设置路由
this.loading = false;
this.tipsMsg = '';
- let path = localStore.get('trainingPlatformRoute'+model.username);
- if (!path || !path.startsWith('/trainingPlatform')) {
+ // let path = localStore.get('trainingPlatformRoute'+model.username);
+ // if (!path || !path.startsWith('/trainingPlatform')) {
path = UrlConfig.trainingPlatform.trainingPlatformHome;
- }
+ // }
this.$nextTick(() => {
this.$i18n.locale = 'en';
Cookies.set('user_lang', 'en');
@@ -273,21 +272,10 @@ export default {
Cookies.set('UserToken', model.password, { expires: 1/48});
}
removeSessionStorage('againEnter');
- this.$store.dispatch('Login', model).then(() => {
- this.$store.dispatch('GetUserConfigInfo');
- this.$store.dispatch('SetAccount', model.username);
- // 设置路由
- this.loading = false;
- this.tipsMsg = '';
- let path = localStore.get('trainingPlatformRoute'+model.username);
- if (!path || !path.startsWith('/trainingPlatform')) {
- path = UrlConfig.trainingPlatform.trainingPlatformHome;
- }
- this.$nextTick(() => {
- this.$i18n.locale = 'en';
- Cookies.set('user_lang', 'en');
- });
- this.$router.push({ path: path });
+
+ this.$store.dispatch('Login', model).then(() => {
+ this.$store.dispatch('SetAccount', model.username);
+ this.handleLoginSucessRoute();
}).catch(error => {
this.tipsMsg = error.message;
this.loading = false;
@@ -298,7 +286,18 @@ export default {
return false;
}
});
- }
+ },
+ handleLoginSucessRoute() {
+ // 设置路由
+ this.loading = false;
+ this.tipsMsg = '';
+ const path = UrlConfig.trainingPlatform.trainingPlatformHome;
+ this.$nextTick(() => {
+ this.$i18n.locale = 'en';
+ Cookies.set('user_lang', 'en');
+ });
+ this.$router.push({ path: path });
+ }
}
};
diff --git a/src/views/login/loginEnDesign.vue b/src/views/login/loginEnDesign.vue
index df11a95fd..1d8ae5da0 100644
--- a/src/views/login/loginEnDesign.vue
+++ b/src/views/login/loginEnDesign.vue
@@ -214,7 +214,8 @@ export default {
self.$store.dispatch('QrLoginSetting', { key: 'SET_TOKENDESIGN', value: response.data.token }).then(() => {
// 清除定时器,设置路由
self.clearTimer(self.checkLogin);
- self.$router.push({ path: '/design/login' });
+ // self.$router.push({ path: '/design/login' });
+ this.$router.push({ path: `${UrlConfig.design.prefix}` });
self.$nextTick(() => {
self.$i18n.locale = 'en';
Cookies.set('user_lang', 'en');
@@ -249,16 +250,25 @@ export default {
}
this.loading = true;
- this.$store.dispatch('Login', model).then(() => {
- this.$store.dispatch('GetUserConfigInfo');
- // 设置路由
- this.loading = false;
- this.tipsMsg = '';
- this.$router.push({ path: `${UrlConfig.design.prefix}` });
- this.$nextTick(() => {
- this.$i18n.locale = 'en';
- Cookies.set('user_lang', 'en');
- });
+ // this.$store.dispatch('Login', model).then(() => {
+ // this.$store.dispatch('GetUserConfigInfo');
+ // // 设置路由
+ // this.loading = false;
+ // this.tipsMsg = '';
+ // this.$router.push({ path: `${UrlConfig.design.prefix}` });
+ // this.$nextTick(() => {
+ // this.$i18n.locale = 'en';
+ // Cookies.set('user_lang', 'en');
+ // });
+ // }).catch(error => {
+ // this.tipsMsg = error.message;
+ // this.loading = false;
+ // setTimeout(() => { this.tipsMsg = ''; }, 5000);
+ // });
+
+ this.$store.dispatch('Login', model).then(() => {
+ this.$store.dispatch('SetAccount', model.username);
+ this.handleLoginSucessRoute();
}).catch(error => {
this.tipsMsg = error.message;
this.loading = false;
@@ -270,7 +280,18 @@ export default {
return false;
}
});
- }
+ },
+ handleLoginSucessRoute() {
+ // 设置路由
+ this.loading = false;
+ this.tipsMsg = '';
+ const path = UrlConfig.design.prefix;
+ this.$nextTick(() => {
+ this.$i18n.locale = 'en';
+ Cookies.set('user_lang', 'en');
+ });
+ this.$router.push({ path: path });
+ }
}
};
diff --git a/src/views/scriptManage/detail/index.vue b/src/views/scriptManage/detail/index.vue
index aabb955d3..a6f5838b6 100644
--- a/src/views/scriptManage/detail/index.vue
+++ b/src/views/scriptManage/detail/index.vue
@@ -17,11 +17,6 @@
-
-
-
-
-