代码调整

This commit is contained in:
fan 2022-09-19 11:08:13 +08:00
parent d8c4a1278c
commit a05e429d96
4 changed files with 7 additions and 16 deletions

View File

@ -25,11 +25,11 @@ export function handlerUrl(data) {
// const data = null; // const data = null;
// 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.233/rtss-server'; BASE_API = 'http://192.168.3.233/rtss-server';
// BASE_API = 'http://114.116.51.125/jlcloud'; // BASE_API = 'http://114.116.51.125/jlcloud';
// BASE_API = 'http://192.168.3.90:9100'; // 周寅 // BASE_API = 'http://192.168.3.90:9100'; // 周寅
// BASE_API = 'http://192.168.3.94:9000'; // 旭强 // BASE_API = 'http://192.168.3.94:9000'; // 旭强
BASE_API = 'http://192.168.3.15:9000'; // 张赛 // BASE_API = 'http://192.168.3.15:9000'; // 张赛
// BASE_API = 'http://192.168.3.5:9000'; // 夏增彬 // BASE_API = 'http://192.168.3.5:9000'; // 夏增彬
// BASE_API = 'http://192.168.3.37:9000'; // 卫志宏 // BASE_API = 'http://192.168.3.37:9000'; // 卫志宏
// BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://b29z135112.zicp.vip';

View File

@ -111,12 +111,7 @@ export default {
this.showSumbit = false; this.showSumbit = false;
}, },
shrink() { shrink() {
// const height = this.$refs.dragBody.offsetHeight + 40;
// const top = this.$refs.drapBox.style.top;
if (this.isShrink) { if (this.isShrink) {
//
// this.$refs.drapBox.style.height = '40px';
// this.$refs.drapBox.style.top = '';
this.isShrink = false; this.isShrink = false;
} else { } else {
this.isShrink = true; this.isShrink = true;
@ -126,8 +121,6 @@ export default {
document.querySelector('.reminder-drag').style.bottom = `${document.body.clientHeight - 300}px`; document.querySelector('.reminder-drag').style.bottom = `${document.body.clientHeight - 300}px`;
} }
}); });
// this.$refs.drapBox.style.height = height + 'px';
// this.$refs.drapBox.style.top = top;
} }
}, },
changeMode(val) { changeMode(val) {

View File

@ -65,20 +65,18 @@ export default {
}, },
methods: { methods: {
tipInit() { tipInit() {
if (this.$store.state.trainingNew.teachMode === ScriptMode.TEACH) { if (this.teachMode === ScriptMode.TEACH) {
this.tipShow = true; this.tipShow = true;
const offset = this.$store.state.config.canvasOffset; const offset = this.$store.state.config.canvasOffset;
const trainingDetail = this.$store.state.trainingNew.trainingDetail; const trainingDetail = this.$store.state.trainingNew.trainingDetail;
const stepOrder = this.$store.state.trainingNew.stepOrder; const stepOrder = this.$store.state.trainingNew.stepOrder;
const steps = JSON.parse(trainingDetail.stepJson); const steps = JSON.parse(trainingDetail.stepJson);
console.log(steps, steps[stepOrder - 1]);
if (steps && steps.length) { if (steps && steps.length) {
const step = steps[stepOrder - 1]; const step = steps[stepOrder - 1];
const distance = 5; const distance = 5;
this.tip = this.$store.state.socket.trainingStepTip.content; this.tip = this.$store.state.socket.trainingStepTip.content;
if (step && step.tipPosition && step.tipPosition.deviceCode) { if (step && step.tipPosition && step.tipPosition.deviceCode) {
const position = this.getShapeTipPoint(step.tipPosition); const position = this.getShapeTipPoint(step.tipPosition);
console.log(position, '1111');
if (position) { if (position) {
this.position = { this.position = {
x: position.x + offset.x, x: position.x + offset.x,

View File

@ -101,7 +101,7 @@
</el-button> </el-button>
</el-form-item> </el-form-item>
<div style="display: inline-block;width: 100%;"> <div style="display: inline-block;width: 100%;">
<div class="popover_box active" style="bottom: 50px;" @click="forgetPassword">忘记密码</div> <div class="popover_box active" style="bottom: 50px;" @click="forgetPassword">忘记密码</div>
</div> </div>
</el-form> </el-form>
</div> </div>
@ -286,7 +286,7 @@ export default {
LSW: '检测教员机登录中', LSW: '检测教员机登录中',
ILW: '检测教员机登录中', ILW: '检测教员机登录中',
PIS_TRAIN: '检测教员机登录中', PIS_TRAIN: '检测教员机登录中',
PIS_STAND: '检测教员机登录中', PIS_STAND: '检测教员机登录中'
}; };
return this.$route.query.type ? textMap[this.$route.query.type] : ''; return this.$route.query.type ? textMap[this.$route.query.type] : '';
} }
@ -552,8 +552,8 @@ export default {
} else if (this.$route.query.type === 'ILW') { } else if (this.$route.query.type === 'ILW') {
this.$router.push({ path: `/jointTrainingNew`, query: query }); this.$router.push({ path: `/jointTrainingNew`, query: query });
} else if (this.$route.query.type === 'PIS_STAND' || this.$route.query.type === 'PIS_TRAIN') { } else if (this.$route.query.type === 'PIS_STAND' || this.$route.query.type === 'PIS_TRAIN') {
const config = JSON.parse(res.data.deviceVO.config) const config = JSON.parse(res.data.deviceVO.config);
this.$router.push({ path: `/pis`, query: {...query, ...config}}) this.$router.push({ path: `/pis`, query: {...query, ...config}});
} else { } else {
this.$router.push({ path: `/jointTrainingNew`, query: query }); this.$router.push({ path: `/jointTrainingNew`, query: query });
} }