This commit is contained in:
joylink_cuiweidong 2021-06-11 09:17:55 +08:00
commit e2165918bf
7 changed files with 84 additions and 62 deletions

View File

@ -135,8 +135,6 @@ export function JLmapDriving(dom,data,mapId,storemod,translation,routegroup,proj
// sound.play(); // sound.play();
// }); // });
let controls3 = new MouseControls(camera, 1.6); let controls3 = new MouseControls(camera, 1.6);
controls3.enabled = false; controls3.enabled = false;
// controls3.getObject().rotation.x = Math.PI/2; // controls3.getObject().rotation.x = Math.PI/2;

View File

@ -2,9 +2,9 @@ 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.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.3.83:9000'; // 旭强 有线 BASE_API = 'http://192.168.3.83:9000'; // 旭强 有线
// BASE_API = 'http://192.168.8.114:9000'; // 旭强 无线 // BASE_API = 'http://192.168.8.114:9000'; // 旭强 无线
// BASE_API = 'http://192.168.3.120:9000'; // 张赛 // BASE_API = 'http://192.168.3.120:9000'; // 张赛
// BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://192.168.8.140:9000'; // 杜康

View File

@ -17,6 +17,7 @@
<el-option label="VR模型" value="VrModel"></el-option> <el-option label="VR模型" value="VrModel"></el-option>
<el-option label="客流场景" value="客流模型"></el-option> <el-option label="客流场景" value="客流模型"></el-option>
<el-option label="三维课程" value="三维课程"></el-option> <el-option label="三维课程" value="三维课程"></el-option>
<el-option label="小程序模型" value="WxModel"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="设备类型"> <el-form-item label="设备类型">

View File

@ -9,6 +9,7 @@
<el-option label="站台列表名称贴图" value="textureStation"></el-option> <el-option label="站台列表名称贴图" value="textureStation"></el-option>
<el-option label="信号机贴图" value="textureSignal"></el-option> <el-option label="信号机贴图" value="textureSignal"></el-option>
<el-option label="单体设备贴图" value="textureDevice"></el-option> <el-option label="单体设备贴图" value="textureDevice"></el-option>
<el-option label="小程序大铁贴图" value="textureRailwayWx"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="所属项目"> <el-form-item label="所属项目">

View File

@ -4,12 +4,12 @@
<img class="buttonimg2" :src="start" /> <img class="buttonimg2" :src="start" />
</div> --> </div> -->
<div id="direct" class="brakebutton" style="bottom:5%;left:110px;"> <!-- <div id="direct" class="brakebutton" style="bottom:5%;left:110px;">
<img class="brakeimg" :src="brakeallimgurl" /> <img class="brakeimg" :src="brakeallimgurl" />
<img id="directimgbrakeall" class="brakeimg" :src="brakeallimgurlt" :style="{transform:braketransall}" @mousedown="touchstartbrakeall" /> <img id="directimgbrakeall" class="brakeimg" :src="brakeallimgurlt" :style="{transform:braketransall}" @mousedown="touchstartbrakeall" />
</div> </div> -->
<div id="direct" class="brakebutton" style="bottom:5%;left:440px;"> <div id="direct" class="brakebutton" style="bottom:5%;left:100px;">
<img class="brakeimg" :src="brakeimgurl" /> <img class="brakeimg" :src="brakeimgurl" />
<img id="directimgbrake" class="brakeimg" :src="brakeimgurlt" :style="{transform:braketrans}" @mousedown="touchstartbrake" /> <img id="directimgbrake" class="brakeimg" :src="brakeimgurlt" :style="{transform:braketrans}" @mousedown="touchstartbrake" />
</div> </div>

View File

@ -362,7 +362,7 @@ import axios from 'axios';
<style> <style>
.drivepane{ .drivepane{
width:60%; width:30%;
height:333px; height:333px;
right:0; right:0;
bottom:0; bottom:0;

View File

@ -17,19 +17,19 @@
<div class="buttontext">{{ $t('jlmap3d.emergencyBraking') }}</div> <div class="buttontext">{{ $t('jlmap3d.emergencyBraking') }}</div>
</div> --> </div> -->
<div id="stallpane" class="stalldiv" style="top:10%;left:0%;"> <!-- <div id="stallpane" class="stalldiv" style="top:10%;left:0%;">
<img id="nowstall" :style="{top:stalltop,left:stallleft}" class="nowstallimg" :src="nowstallimgurl" /> <img id="nowstall" :style="{top:stalltop,left:stallleft}" class="nowstallimg" :src="nowstallimgurl" />
<img class="stallimg" :src="stallimgurl" /> <img class="stallimg" :src="stallimgurl" />
</div> </div> -->
<div id="directpane" class="directbutton" style="bottom:10%;left:0;"> <div id="directpane" class="directbutton" style="bottom:10%;right:5%;">
<img class="rightbuttonbcimg" :src="zuoimg" /> <img class="rightbuttonbcimg" :src="zuoimg" />
<img id="directimgdiv" class="rightbuttonbcimg" :src="niuimg" :style="{transform:doordirecttou}" @mousedown='doordirecttouchstart' /> <img id="directimgdiv" class="rightbuttonbcimg" :src="niuimg" :style="{transform:doordirecttou}" @mousedown='doordirecttouchstart' />
</div> </div>
<div id="clutch" class="directbutton" style="bottom:10%;left:150px;"> <!-- <div id="clutch" class="directbutton" style="bottom:10%;left:150px;">
<img class="rightbuttonbcimg" :src="liheimg" /> <img class="rightbuttonbcimg" :src="liheimg" />
</div> </div> -->
</div> </div>
</template> </template>
@ -199,55 +199,55 @@
this.oldDirectType = 2; this.oldDirectType = 2;
} }
switch (data[3]) { // switch (data[3]) {
case -1: // case -1:
this.stallh = 0; // this.stallh = 0;
this.stalll = 0; // this.stalll = 0;
break; // break;
case 0: // case 0:
this.stallh = 1; // this.stallh = 1;
this.stalll = 2; // this.stalll = 2;
break; // break;
case 1: // case 1:
this.stallh = 2; // this.stallh = 2;
this.stalll = 0; // this.stalll = 0;
break; // break;
case 2: // case 2:
this.stallh = 0; // this.stallh = 0;
this.stalll = 1; // this.stalll = 1;
break; // break;
case 3: // case 3:
this.stallh = 2; // this.stallh = 2;
this.stalll = 1; // this.stalll = 1;
break; // break;
case 4: // case 4:
this.stallh = 2; // this.stallh = 2;
this.stalll = 2; // this.stalll = 2;
break; // break;
case 5: // case 5:
this.stallh = 0; // this.stallh = 0;
this.stalll = 2; // this.stalll = 2;
break; // break;
case 6: // case 6:
this.stallh = 0; // this.stallh = 0;
this.stalll = 3; // this.stalll = 3;
break; // break;
case 7: // case 7:
this.stallh = 2; // this.stallh = 2;
this.stalll = 3; // this.stalll = 3;
break; // break;
case 8: // case 8:
this.stallh = 0; // this.stallh = 0;
this.stalll = 4; // this.stalll = 4;
break; // break;
case 9: // case 9:
this.stallh = 2; // this.stallh = 2;
this.stalll = 4; // this.stalll = 4;
} // }
//
//
this.stalltop = this.stalls[this.stallh][this.stalll].t +"px"; // this.stalltop = this.stalls[this.stallh][this.stalll].t +"px";
this.stallleft = this.stalls[this.stallh][this.stalll].l +"px"; // this.stallleft = this.stalls[this.stallh][this.stalll].l +"px";
}, },
handleKeyup(event){ handleKeyup(event){
const e = event || window.event || arguments.callee.caller.arguments[0]; const e = event || window.event || arguments.callee.caller.arguments[0];
@ -372,26 +372,42 @@
} }
angle = angle + 180; angle = angle + 180;
let paramGear = {
// id:this.groupNum,
id:"001",
pos:''
};
// console.log(angle); // console.log(angle);
if(angle<=356){ if(angle<=356){
this.doordirecttou = "rotate("+320+"deg)"; this.doordirecttou = "rotate("+320+"deg)";
this.directType = 1; this.directType = 1;
paramGear.pos = '4';
} }
if(angle>356 && angle<372){ if(angle>356 && angle<372){
this.doordirecttou = "rotate("+360+"deg)"; this.doordirecttou = "rotate("+360+"deg)";
this.directType = 0; this.directType = 0;
paramGear.pos = '0';
} }
if(angle>372 && angle<421){ if(angle>372 && angle<421){
this.doordirecttou = "rotate("+399+"deg)"; this.doordirecttou = "rotate("+399+"deg)";
this.directType = -1; this.directType = -1;
paramGear.pos = '4';
} }
if(angle>421){ if(angle>421){
this.doordirecttou = "rotate("+442+"deg)"; this.doordirecttou = "rotate("+442+"deg)";
this.directType = 2; this.directType = 2;
paramGear.pos = '4';
} }
if(this.oldDirectType != this.directType){ if(this.oldDirectType != this.directType){
this.oldDirectType = this.directType; this.oldDirectType = this.directType;
let param = { let param = {
@ -401,6 +417,12 @@
}; };
const userInfo = store.state.training.simulationUserList.find(el => el.id == store.state.user.id); const userInfo = store.state.training.simulationUserList.find(el => el.id == store.state.user.id);
trainSimulationForce(this.group,userInfo.memberId,paramGear,"Train_Drive_Gear_Change").then(res => {
// console.log(res);
}).catch((error) => {
console.log(error);
});
trainSimulationForce(this.group,userInfo.memberId,param,"Train_Drive_Change_Over_Switch").then(res => { trainSimulationForce(this.group,userInfo.memberId,param,"Train_Drive_Change_Over_Switch").then(res => {
// console.log(res); // console.log(res);
}).catch((error) => { }).catch((error) => {