删除仿真、绘图、运行图编制的心跳检测
This commit is contained in:
parent
e49840afc8
commit
2438b9f0a0
@ -2,11 +2,11 @@ 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.8.107:9000'; // 袁琪
|
||||
// BASE_API = 'http://192.168.3.83: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://b29z135112.zicp.vip';
|
||||
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
|
||||
|
@ -8,7 +8,6 @@
|
||||
import MapCommon from './common/index';
|
||||
import { getToken } from '@/utils/auth';
|
||||
import { creatSubscribe, clearSubscribe, displayTopic, getTopic } from '@/utils/stomp';
|
||||
import { checkLoginLine } from '@/api/login';
|
||||
import { getSimulationMemberList, getAllSimulationUser } from '@/api/simulation';
|
||||
import { getMemberListCommon, getUserListCommon } from '@/api/rtSimulation';
|
||||
import parseStatus from '@/utils/parseStatus';
|
||||
@ -25,7 +24,6 @@ export default {
|
||||
stomp: null,
|
||||
currentMap: null,
|
||||
ierval: null,
|
||||
checkLine: null,
|
||||
mouseNum: 1,
|
||||
mouseNumTime: 0,
|
||||
mapBoxP: null,
|
||||
@ -80,7 +78,6 @@ export default {
|
||||
this.mode = this.$route.params.mode || '';
|
||||
this.currentMap = this.$refs.mapCommon;
|
||||
this.groupModel = this.$route.query.group;
|
||||
this.checkLoginLineTimer(); // 心跳发送
|
||||
this.checkMouseStatusTimer(); // 鼠标样式变化检测
|
||||
this.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
@ -152,19 +149,6 @@ export default {
|
||||
clearInterval(this.ierval);
|
||||
this.ierval = null;
|
||||
}
|
||||
if (this.checkLine) {
|
||||
clearInterval(this.checkLine);
|
||||
this.checkLine = null;
|
||||
}
|
||||
},
|
||||
// 设置检查在线定时器
|
||||
checkLoginLineTimer() {
|
||||
if (this.checkLine) {
|
||||
clearTimeout(this.checkLine);
|
||||
}
|
||||
this.checkLine = setInterval(() => {
|
||||
checkLoginLine();
|
||||
}, 5000 * 60);
|
||||
},
|
||||
// 设置手标显示状态
|
||||
checkMouseStatusTimer() {
|
||||
|
@ -52,7 +52,6 @@
|
||||
<script>
|
||||
import { saveMap, getMapDetail, verifyMap, postBuildMapImport, getRouteNewList, getAutoReentryList } from '@/api/jmap/mapdraft';
|
||||
import { ViewMode, TrainingMode, getDeviceMenuByDeviceType, DeviceMenu } from '@/scripts/ConstDic';
|
||||
import { checkLoginLine } from '@/api/login';
|
||||
import JlmapVisual from '@/views/newMap/jlmapNew/index';
|
||||
import MapOperate from './mapoperate/index';
|
||||
import { EventBus } from '@/scripts/event-bus';
|
||||
@ -85,7 +84,6 @@ export default {
|
||||
autoSaveTask: null,
|
||||
selected: null,
|
||||
mapInfo: { name: this.$t('map.pleaseSelectMap') },
|
||||
timeDemon: null,
|
||||
oldDevice: null,
|
||||
draftShow: false,
|
||||
size: {
|
||||
@ -138,9 +136,6 @@ export default {
|
||||
mounted() {
|
||||
this.setWindowSize();
|
||||
this.loadInitPage();
|
||||
this.timeDemon = setInterval(() => {
|
||||
checkLoginLine();
|
||||
}, 5000 * 60);
|
||||
EventBus.$on('SELECTON', () => {
|
||||
this.selected = null;
|
||||
});
|
||||
@ -149,9 +144,6 @@ export default {
|
||||
EventBus.$off('SELECTON');
|
||||
this.clearAutoSave();
|
||||
this.$store.dispatch('map/mapClear');
|
||||
if (this.timeDemon) {
|
||||
clearTimeout(this.timeDemon);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
clickRightBtn() {
|
||||
|
@ -36,7 +36,6 @@
|
||||
<script>
|
||||
import { saveMap, verifyMap, getMapDetail, postBuildMapImport, getRouteNewList, getAutoReentryList } from '@/api/jmap/mapdraft';
|
||||
import { ViewMode, TrainingMode, getDeviceMenuByDeviceType, DeviceMenu } from '@/scripts/ConstDic';
|
||||
import { checkLoginLine } from '@/api/login';
|
||||
import JlmapVisual from '@/views/newMap/jlmapNew/index';
|
||||
import MapOperate from './mapoperate/index';
|
||||
import { EventBus } from '@/scripts/event-bus';
|
||||
@ -59,7 +58,6 @@ export default {
|
||||
autoSaveTask: null,
|
||||
selected: null,
|
||||
mapInfo: { name: this.$t('map.pleaseSelectMap') },
|
||||
timeDemon: null,
|
||||
oldDevice: null,
|
||||
draftShow: false,
|
||||
size: {
|
||||
@ -112,9 +110,6 @@ export default {
|
||||
mounted() {
|
||||
this.setWindowSize();
|
||||
this.loadInitPage();
|
||||
this.timeDemon = setInterval(() => {
|
||||
checkLoginLine();
|
||||
}, 5000 * 60);
|
||||
EventBus.$on('SELECTON', () => {
|
||||
this.selected = null;
|
||||
});
|
||||
@ -123,9 +118,6 @@ export default {
|
||||
EventBus.$off('SELECTON');
|
||||
this.clearAutoSave();
|
||||
this.$store.dispatch('map/mapClear');
|
||||
if (this.timeDemon) {
|
||||
clearTimeout(this.timeDemon);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
clickRightBtn() {
|
||||
|
@ -64,7 +64,6 @@ import MovePlaningTrain from '../components/menus/movePlaningTrain';
|
||||
import ModifyingStationIntervalTime from '../components/menus/modifyingStationIntervalTime';
|
||||
import ModifyingStationStopTime from '../components/menus/modifyingStationStopTime';
|
||||
import { deletePlanService } from '@/api/runplan';
|
||||
import { checkLoginLine } from '@/api/login';
|
||||
import { loadMapDataById } from '@/utils/loaddata';
|
||||
|
||||
export default {
|
||||
@ -92,7 +91,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
PlanParser: {},
|
||||
timeDemon: null,
|
||||
runPlanList: [],
|
||||
loadRunPlanId: '',
|
||||
loadRunPlanName: '',
|
||||
@ -114,9 +112,6 @@ export default {
|
||||
this.PlanParser = this.$theme.loadPlanParser(this.lineCode);
|
||||
},
|
||||
async mounted() {
|
||||
this.timeDemon = setInterval(() => {
|
||||
checkLoginLine();
|
||||
}, 5000 * 60);
|
||||
this.loadRunPlanName = this.$route.query.planName;
|
||||
if (this.$route.query.mapId) {
|
||||
// this.refreshRunPlanList(true);
|
||||
@ -124,9 +119,6 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (this.timeDemon) {
|
||||
clearTimeout(this.timeDemon);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
dispatchDialog(dialogObj) {
|
||||
|
@ -50,7 +50,6 @@ import MovePlaningTrain from '../components/menus/movePlaningTrain';
|
||||
import ModifyingStationIntervalTime from '../components/menus/modifyingStationIntervalTime';
|
||||
import ModifyingStationStopTime from '../components/menus/modifyingStationStopTime';
|
||||
import { deletePlanService } from '@/api/runplan';
|
||||
import { checkLoginLine } from '@/api/login';
|
||||
import { loadMapDataById } from '@/utils/loaddata';
|
||||
|
||||
export default {
|
||||
@ -79,7 +78,6 @@ export default {
|
||||
planId: '',
|
||||
planTitle: '',
|
||||
PlanParser: {},
|
||||
timeDemon: null,
|
||||
runplanLoading: false
|
||||
};
|
||||
},
|
||||
@ -104,13 +102,9 @@ export default {
|
||||
if (this.mapId) {
|
||||
this.runplanLoading = true;
|
||||
await loadMapDataById(this.mapId, 'parse');
|
||||
this.timeDemon = setInterval(_ => checkLoginLine(), 5000 * 60);
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (this.timeDemon) {
|
||||
clearTimeout(this.timeDemon);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
dispatchDialog(dialogObj) {
|
||||
|
@ -68,7 +68,6 @@ import ModifyingStationIntervalTime from '../components/menus/modifyingStationIn
|
||||
import ModifyingStationStopTime from '../components/menus/modifyingStationStopTime';
|
||||
import CreateEmptyPlan from './menus/createEmptyPlan';
|
||||
import { deletePlanService } from '@/api/runplan';
|
||||
import { checkLoginLine } from '@/api/login';
|
||||
import { loadMapDataById } from '@/utils/loaddata';
|
||||
import { getRpListByMapId } from '@/api/runplan';
|
||||
|
||||
@ -98,7 +97,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
PlanParser: {},
|
||||
timeDemon: null,
|
||||
runPlanList: [],
|
||||
loadRunPlanId: '',
|
||||
loadRunPlanName: '',
|
||||
@ -119,9 +117,6 @@ export default {
|
||||
this.PlanParser = this.$theme.loadPlanParser(this.lineCode);
|
||||
},
|
||||
async mounted() {
|
||||
this.timeDemon = setInterval(() => {
|
||||
checkLoginLine();
|
||||
}, 5000 * 60);
|
||||
// this.loadRunPlanName = this.$route.query.planName;
|
||||
if (this.$route.query.mapId) {
|
||||
this.refreshRunPlanList(true);
|
||||
@ -129,9 +124,6 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
if (this.timeDemon) {
|
||||
clearTimeout(this.timeDemon);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
dispatchDialog(dialogObj) {
|
||||
|
Loading…
Reference in New Issue
Block a user