Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
8c7a78a545
@ -5,6 +5,7 @@
|
|||||||
<switch-control ref="switchControl" pop-class="beijing-01__systerm" />
|
<switch-control ref="switchControl" pop-class="beijing-01__systerm" />
|
||||||
<speed-limit-control ref="speedLimitControl" />
|
<speed-limit-control ref="speedLimitControl" />
|
||||||
<alxe-effective ref="alxeEffective" />
|
<alxe-effective ref="alxeEffective" />
|
||||||
|
<switch-hook-lock ref="switchHookLock" pop-class="beijing-01__systerm" />
|
||||||
<notice-info ref="noticeInfo" pop-class="beijing-01__systerm" />
|
<notice-info ref="noticeInfo" pop-class="beijing-01__systerm" />
|
||||||
<set-fault ref="setFault" pop-class="beijing-01__systerm" />
|
<set-fault ref="setFault" pop-class="beijing-01__systerm" />
|
||||||
</div>
|
</div>
|
||||||
@ -17,6 +18,7 @@ import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl
|
|||||||
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
||||||
import SpeedLimitControl from './dialog/speedLimitControl';
|
import SpeedLimitControl from './dialog/speedLimitControl';
|
||||||
import AlxeEffective from './dialog/alxeEffective';
|
import AlxeEffective from './dialog/alxeEffective';
|
||||||
|
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { OperateMode } from '@/scripts/ConstDic';
|
import { OperateMode } from '@/scripts/ConstDic';
|
||||||
@ -35,7 +37,8 @@ export default {
|
|||||||
SpeedLimitControl,
|
SpeedLimitControl,
|
||||||
AlxeEffective,
|
AlxeEffective,
|
||||||
NoticeInfo,
|
NoticeInfo,
|
||||||
SetFault
|
SetFault,
|
||||||
|
SwitchHookLock
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selected: {
|
selected: {
|
||||||
@ -90,13 +93,15 @@ export default {
|
|||||||
menuForce: [
|
menuForce: [
|
||||||
{
|
{
|
||||||
label: '设置故障',
|
label: '设置故障',
|
||||||
handler: this.setStoppage,
|
handler: this.setStoppage
|
||||||
cmdType: CMD.Fault.CMD_SET_FAULT
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage,
|
handler: this.cancelStoppage
|
||||||
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
},
|
||||||
|
{
|
||||||
|
label: '道岔钩锁',
|
||||||
|
handler: this.hookLock
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -282,6 +287,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 道岔钩锁
|
||||||
|
hookLock() {
|
||||||
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
|
},
|
||||||
undeveloped() {
|
undeveloped() {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$alert('实现中......', '提示', {
|
this.$alert('实现中......', '提示', {
|
||||||
|
@ -228,6 +228,14 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越引导信号行驶',
|
||||||
|
handler: this.handleOverFuideSignal
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越红灯行驶',
|
||||||
|
handler: this.handleOverEedLight
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -338,6 +346,30 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverFuideSignal() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverEedLight() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<notice-info ref="noticeInfo" pop-class="chengdou-01__system" />
|
<notice-info ref="noticeInfo" pop-class="chengdou-01__system" />
|
||||||
<switch-control ref="switchControl" pop-class="chengdou-01__system" />
|
<switch-control ref="switchControl" pop-class="chengdou-01__system" />
|
||||||
<create-device-label ref="createDeviceLabel" />
|
<create-device-label ref="createDeviceLabel" />
|
||||||
|
<switch-hook-lock ref="switchHookLock" pop-class="chengdou-01__system" />
|
||||||
<set-fault ref="setFault" pop-class="chengdou-01__system" />
|
<set-fault ref="setFault" pop-class="chengdou-01__system" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -14,6 +15,7 @@ import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'
|
|||||||
import CreateDeviceLabel from './dialog/createDeviceLabel';
|
import CreateDeviceLabel from './dialog/createDeviceLabel';
|
||||||
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
|
import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl';
|
||||||
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
||||||
|
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
|
||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
import CancelMouseState from '@/mixin/CancelMouseState';
|
import CancelMouseState from '@/mixin/CancelMouseState';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
@ -29,7 +31,8 @@ export default {
|
|||||||
NoticeInfo,
|
NoticeInfo,
|
||||||
CreateDeviceLabel,
|
CreateDeviceLabel,
|
||||||
SwitchControl,
|
SwitchControl,
|
||||||
SetFault
|
SetFault,
|
||||||
|
SwitchHookLock
|
||||||
},
|
},
|
||||||
mixins: [
|
mixins: [
|
||||||
CancelMouseState
|
CancelMouseState
|
||||||
@ -121,13 +124,15 @@ export default {
|
|||||||
menuForce: [
|
menuForce: [
|
||||||
{
|
{
|
||||||
label: '设置故障',
|
label: '设置故障',
|
||||||
handler: this.setStoppage,
|
handler: this.setStoppage
|
||||||
cmdType: CMD.Fault.CMD_SET_FAULT
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage,
|
handler: this.cancelStoppage
|
||||||
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
},
|
||||||
|
{
|
||||||
|
label: '道岔钩锁',
|
||||||
|
handler: this.hookLock
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -263,6 +268,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 道岔钩锁
|
||||||
|
hookLock() {
|
||||||
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
|
},
|
||||||
undeveloped() {
|
undeveloped() {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$alert('实现中......', '提示', {
|
this.$alert('实现中......', '提示', {
|
||||||
|
@ -141,6 +141,14 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越引导信号行驶',
|
||||||
|
handler: this.handleOverFuideSignal
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越红灯行驶',
|
||||||
|
handler: this.handleOverEedLight
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -245,6 +253,30 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverFuideSignal() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverEedLight() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<section-control ref="sectionControl" pop-class="chengdou-03__systerm" />
|
<section-control ref="sectionControl" pop-class="chengdou-03__systerm" />
|
||||||
<switch-control ref="switchControl" pop-class="chengdou-03__systerm" />
|
<switch-control ref="switchControl" pop-class="chengdou-03__systerm" />
|
||||||
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
<notice-info ref="noticeInfo" pop-class="chengdou-03__systerm" />
|
||||||
|
<switch-hook-lock ref="switchHookLock" pop-class="chengdou-03__systerm" />
|
||||||
<set-fault ref="setFault" pop-class="chengdou-03__systerm" />
|
<set-fault ref="setFault" pop-class="chengdou-03__systerm" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -15,6 +16,7 @@ import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl
|
|||||||
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
|
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
|
||||||
import CancelMouseState from '@/mixin/CancelMouseState';
|
import CancelMouseState from '@/mixin/CancelMouseState';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
||||||
@ -28,7 +30,8 @@ export default {
|
|||||||
SectionControl,
|
SectionControl,
|
||||||
SwitchControl,
|
SwitchControl,
|
||||||
NoticeInfo,
|
NoticeInfo,
|
||||||
SetFault
|
SetFault,
|
||||||
|
SwitchHookLock
|
||||||
},
|
},
|
||||||
mixins: [
|
mixins: [
|
||||||
CancelMouseState
|
CancelMouseState
|
||||||
@ -93,13 +96,15 @@ export default {
|
|||||||
menuForce: [
|
menuForce: [
|
||||||
{
|
{
|
||||||
label: '设置故障',
|
label: '设置故障',
|
||||||
handler: this.setStoppage,
|
handler: this.setStoppage
|
||||||
cmdType: CMD.Fault.CMD_SET_FAULT
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage,
|
handler: this.cancelStoppage
|
||||||
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
},
|
||||||
|
{
|
||||||
|
label: '道岔钩锁',
|
||||||
|
handler: this.hookLock
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -231,6 +236,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 道岔钩锁
|
||||||
|
hookLock() {
|
||||||
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
|
},
|
||||||
undeveloped() {
|
undeveloped() {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$alert('实现中......', '提示', {
|
this.$alert('实现中......', '提示', {
|
||||||
|
@ -124,6 +124,14 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越引导信号行驶',
|
||||||
|
handler: this.handleOverFuideSignal
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越红灯行驶',
|
||||||
|
handler: this.handleOverEedLight
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -225,6 +233,30 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverFuideSignal() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverEedLight() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<switch-control ref="switchControl" pop-class="foshan-01__systerm" />
|
<switch-control ref="switchControl" pop-class="foshan-01__systerm" />
|
||||||
<switch-un-lock ref="switchUnLock" />
|
<switch-un-lock ref="switchUnLock" />
|
||||||
<speed-limit-control ref="speedLimitControl" />
|
<speed-limit-control ref="speedLimitControl" />
|
||||||
|
<switch-hook-lock ref="switchHookLock" pop-class="foshan-01__systerm" />
|
||||||
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
|
<notice-info ref="noticeInfo" pop-class="foshan-01__systerm" />
|
||||||
<set-fault ref="setFault" pop-class="foshan-01__systerm" />
|
<set-fault ref="setFault" pop-class="foshan-01__systerm" />
|
||||||
</div>
|
</div>
|
||||||
@ -15,6 +16,7 @@ import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl
|
|||||||
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
||||||
import SwitchUnLock from './dialog/switchUnLock';
|
import SwitchUnLock from './dialog/switchUnLock';
|
||||||
import SpeedLimitControl from './dialog/speedLimitControl';
|
import SpeedLimitControl from './dialog/speedLimitControl';
|
||||||
|
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
import {menuOperate, commitOperate} from '@/jmapNew/theme/components/utils/menuOperate';
|
||||||
@ -31,7 +33,8 @@ export default {
|
|||||||
SwitchUnLock,
|
SwitchUnLock,
|
||||||
SpeedLimitControl,
|
SpeedLimitControl,
|
||||||
NoticeInfo,
|
NoticeInfo,
|
||||||
SetFault
|
SetFault,
|
||||||
|
SwitchHookLock
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selected: {
|
selected: {
|
||||||
@ -90,6 +93,10 @@ export default {
|
|||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage,
|
handler: this.cancelStoppage,
|
||||||
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '道岔钩锁',
|
||||||
|
handler: this.hookLock
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -302,6 +309,10 @@ export default {
|
|||||||
this.$refs.noticeInfo.doShow({}, error.message);
|
this.$refs.noticeInfo.doShow({}, error.message);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 道岔钩锁
|
||||||
|
hookLock() {
|
||||||
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
|
},
|
||||||
// 设置临时限速
|
// 设置临时限速
|
||||||
// setSpeed() {
|
// setSpeed() {
|
||||||
// const operate = {
|
// const operate = {
|
||||||
|
@ -133,6 +133,14 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越引导信号行驶',
|
||||||
|
handler: this.handleOverFuideSignal
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越红灯行驶',
|
||||||
|
handler: this.handleOverEedLight
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -235,6 +243,30 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverFuideSignal() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverEedLight() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<switch-cmd-control ref="switchCmdControl" />
|
<switch-cmd-control ref="switchCmdControl" />
|
||||||
<speed-cmd-control ref="speedCmdControl" />
|
<speed-cmd-control ref="speedCmdControl" />
|
||||||
<notice-info ref="noticeInfo" pop-class="fuzhou-01__systerm" />
|
<notice-info ref="noticeInfo" pop-class="fuzhou-01__systerm" />
|
||||||
|
<switch-hook-lock ref="switchHookLock" pop-class="fuzhou-01__systerm" />
|
||||||
<set-fault ref="setFault" pop-class="fuzhou-01__systerm" />
|
<set-fault ref="setFault" pop-class="fuzhou-01__systerm" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -15,6 +16,7 @@ import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl
|
|||||||
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
||||||
import SwitchCmdControl from './dialog/switchCmdControl';
|
import SwitchCmdControl from './dialog/switchCmdControl';
|
||||||
import SpeedCmdControl from './dialog/speedCmdControl';
|
import SpeedCmdControl from './dialog/speedCmdControl';
|
||||||
|
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
@ -31,7 +33,8 @@ export default {
|
|||||||
SwitchCmdControl,
|
SwitchCmdControl,
|
||||||
SpeedCmdControl,
|
SpeedCmdControl,
|
||||||
NoticeInfo,
|
NoticeInfo,
|
||||||
SetFault
|
SetFault,
|
||||||
|
SwitchHookLock
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selected: {
|
selected: {
|
||||||
@ -158,13 +161,15 @@ export default {
|
|||||||
menuForce: [
|
menuForce: [
|
||||||
{
|
{
|
||||||
label: this.$t('menu.menuSwitch.setFault'),
|
label: this.$t('menu.menuSwitch.setFault'),
|
||||||
handler: this.setStoppage,
|
handler: this.setStoppage
|
||||||
cmdType:CMD.Fault.CMD_SET_FAULT
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.$t('menu.menuSwitch.cancelFault'),
|
label: this.$t('menu.menuSwitch.cancelFault'),
|
||||||
handler: this.cancelStoppage,
|
handler: this.cancelStoppage
|
||||||
cmdType:CMD.Fault.CMD_CANCEL_FAULT
|
},
|
||||||
|
{
|
||||||
|
label: '道岔钩锁',
|
||||||
|
handler: this.hookLock
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -329,6 +334,10 @@ export default {
|
|||||||
this.$refs.speedCmdControl.doShow(operate, this.selected);
|
this.$refs.speedCmdControl.doShow(operate, this.selected);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
// 道岔钩锁
|
||||||
|
hookLock() {
|
||||||
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -101,6 +101,14 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越引导信号行驶',
|
||||||
|
handler: this.handleOverFuideSignal
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越红灯行驶',
|
||||||
|
handler: this.handleOverEedLight
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -218,6 +226,30 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverFuideSignal() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverEedLight() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<pop-menu ref="popMenu" :menu="menu" pop-menu-class="haerbin-01__systerm" />
|
<pop-menu ref="popMenu" :menu="menu" pop-menu-class="haerbin-01__systerm" />
|
||||||
<notice-info ref="noticeInfo" pop-class="haerbin-01__systerm" />
|
<notice-info ref="noticeInfo" pop-class="haerbin-01__systerm" />
|
||||||
|
<switch-hook-lock ref="switchHookLock" pop-class="haerbin-01__systerm" />
|
||||||
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
|
<set-fault ref="setFault" pop-class="haerbin-01__systerm" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -10,6 +11,7 @@
|
|||||||
import PopMenu from '@/components/PopMenu';
|
import PopMenu from '@/components/PopMenu';
|
||||||
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
|
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
|
||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
||||||
@ -22,7 +24,8 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
PopMenu,
|
PopMenu,
|
||||||
NoticeInfo,
|
NoticeInfo,
|
||||||
SetFault
|
SetFault,
|
||||||
|
SwitchHookLock
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selected: {
|
selected: {
|
||||||
@ -51,6 +54,10 @@ export default {
|
|||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage,
|
handler: this.cancelStoppage,
|
||||||
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '道岔钩锁',
|
||||||
|
handler: this.hookLock
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -115,6 +122,10 @@ export default {
|
|||||||
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
|
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
// 道岔钩锁
|
||||||
|
hookLock() {
|
||||||
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -72,6 +72,14 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越引导信号行驶',
|
||||||
|
handler: this.handleOverFuideSignal
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越红灯行驶',
|
||||||
|
handler: this.handleOverEedLight
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -190,6 +198,30 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverFuideSignal() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverEedLight() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<switch-un-lock ref="switchUnLock" />
|
<switch-un-lock ref="switchUnLock" />
|
||||||
<speed-limit-control ref="speedLimitControl" />
|
<speed-limit-control ref="speedLimitControl" />
|
||||||
<alxe-effective ref="alxeEffective" />
|
<alxe-effective ref="alxeEffective" />
|
||||||
|
<switch-hook-lock ref="switchHookLock" pop-class="ningbo-01__systerm" />
|
||||||
<notice-info ref="noticeInfo" pop-class="ningbo-01__systerm" />
|
<notice-info ref="noticeInfo" pop-class="ningbo-01__systerm" />
|
||||||
<set-fault ref="setFault" pop-class="ningbo-01__systerm" />
|
<set-fault ref="setFault" pop-class="ningbo-01__systerm" />
|
||||||
</div>
|
</div>
|
||||||
@ -17,6 +18,7 @@ import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
|||||||
import SwitchUnLock from './dialog/switchUnLock';
|
import SwitchUnLock from './dialog/switchUnLock';
|
||||||
import SpeedLimitControl from './dialog/speedLimitControl';
|
import SpeedLimitControl from './dialog/speedLimitControl';
|
||||||
import AlxeEffective from './dialog/alxeEffective';
|
import AlxeEffective from './dialog/alxeEffective';
|
||||||
|
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
@ -34,7 +36,8 @@ export default {
|
|||||||
SpeedLimitControl,
|
SpeedLimitControl,
|
||||||
AlxeEffective,
|
AlxeEffective,
|
||||||
NoticeInfo,
|
NoticeInfo,
|
||||||
SetFault
|
SetFault,
|
||||||
|
SwitchHookLock
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selected: {
|
selected: {
|
||||||
@ -137,6 +140,10 @@ export default {
|
|||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage,
|
handler: this.cancelStoppage,
|
||||||
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '道岔钩锁',
|
||||||
|
handler: this.hookLock
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -289,6 +296,10 @@ export default {
|
|||||||
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
|
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
// 道岔钩锁
|
||||||
|
hookLock() {
|
||||||
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -216,6 +216,14 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越引导信号行驶',
|
||||||
|
handler: this.handleOverFuideSignal
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越红灯行驶',
|
||||||
|
handler: this.handleOverEedLight
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -318,6 +326,30 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverFuideSignal() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverEedLight() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
|
@ -102,12 +102,12 @@ export default {
|
|||||||
label: '道岔取消限速',
|
label: '道岔取消限速',
|
||||||
handler: this.cancelSpeed,
|
handler: this.cancelSpeed,
|
||||||
cmdType:CMD.Switch.CMD_SWITCH_CANCEL_LIMIT_SPEED
|
cmdType:CMD.Switch.CMD_SWITCH_CANCEL_LIMIT_SPEED
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '道岔钩锁',
|
|
||||||
handler: this.hookLock,
|
|
||||||
cmdType:CMD.Switch.CMD_SWITCH_HOOK_LOCK
|
|
||||||
}
|
}
|
||||||
|
// {
|
||||||
|
// label: '道岔钩锁',
|
||||||
|
// handler: this.hookLock,
|
||||||
|
// cmdType:CMD.Switch.CMD_SWITCH_HOOK_LOCK
|
||||||
|
// }
|
||||||
],
|
],
|
||||||
Center: [
|
Center: [
|
||||||
{
|
{
|
||||||
@ -179,7 +179,7 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '道岔钩锁',
|
label: '道岔钩锁',
|
||||||
handler: this.hookLock
|
handler: this.hookLock
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -337,11 +337,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 道岔钩锁
|
// 道岔钩锁
|
||||||
hookLock() {
|
hookLock() {
|
||||||
// commitOperate(menuOperate.Switch.hookLock, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{
|
|
||||||
// if (valid) {
|
|
||||||
// this.$refs.switchHookLock.doShow(operate, this.selected);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
this.$refs.switchHookLock.doShow(this.selected);
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<switch-un-lock ref="switchUnLock" />
|
<switch-un-lock ref="switchUnLock" />
|
||||||
<speed-limit-control ref="speedLimitControl" />
|
<speed-limit-control ref="speedLimitControl" />
|
||||||
<notice-info ref="noticeInfo" pop-class="xian-02__system" />
|
<notice-info ref="noticeInfo" pop-class="xian-02__system" />
|
||||||
|
<switch-hook-lock ref="switchHookLock" pop-class="xian-02__system" />
|
||||||
<set-fault ref="setFault" pop-class="xian-02__system" />
|
<set-fault ref="setFault" pop-class="xian-02__system" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -15,6 +16,7 @@ import SwitchControl from '@/jmapNew/theme/components/menus/dialog/switchControl
|
|||||||
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
|
||||||
import SwitchUnLock from './dialog/switchUnLock';
|
import SwitchUnLock from './dialog/switchUnLock';
|
||||||
import SpeedLimitControl from './dialog/speedLimitControl';
|
import SpeedLimitControl from './dialog/speedLimitControl';
|
||||||
|
import SwitchHookLock from '@/jmapNew/theme/components/menus/dialog/switchHookLock';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
@ -31,7 +33,8 @@ export default {
|
|||||||
SwitchUnLock,
|
SwitchUnLock,
|
||||||
SpeedLimitControl,
|
SpeedLimitControl,
|
||||||
NoticeInfo,
|
NoticeInfo,
|
||||||
SetFault
|
SetFault,
|
||||||
|
SwitchHookLock
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
selected: {
|
selected: {
|
||||||
@ -151,6 +154,10 @@ export default {
|
|||||||
label: '取消故障',
|
label: '取消故障',
|
||||||
handler: this.cancelStoppage,
|
handler: this.cancelStoppage,
|
||||||
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
cmdType: CMD.Fault.CMD_CANCEL_FAULT
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '道岔钩锁',
|
||||||
|
handler: this.hookLock
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -319,6 +326,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 道岔钩锁
|
||||||
|
hookLock() {
|
||||||
|
this.$refs.switchHookLock.doShow(this.selected);
|
||||||
|
},
|
||||||
undeveloped() {
|
undeveloped() {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$alert('实现中......', '提示', {
|
this.$alert('实现中......', '提示', {
|
||||||
|
@ -230,6 +230,14 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '进路闭塞法行车',
|
label: '进路闭塞法行车',
|
||||||
handler: this.routeBlockRun
|
handler: this.routeBlockRun
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越引导信号行驶',
|
||||||
|
handler: this.handleOverFuideSignal
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '越红灯行驶',
|
||||||
|
handler: this.handleOverEedLight
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -335,6 +343,30 @@ export default {
|
|||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverFuideSignal() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Guide_Signal',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleOverEedLight() {
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Drive_Through_The_Red_Light',
|
||||||
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
|
params: {}
|
||||||
|
};
|
||||||
|
commitTrainSend(group, param).then(({valid, operate})=>{
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$refs.noticeInfo.doShow(error.message);
|
this.$refs.noticeInfo.doShow(error.message);
|
||||||
});
|
});
|
||||||
|
@ -188,7 +188,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.map-view {
|
.map-view {
|
||||||
float: left;
|
// float: left;
|
||||||
width: auto;
|
width: auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<div class="record_tip_cancle" @click="cancleRecording()">取消</div>
|
<div class="record_tip_cancle" @click="cancleRecording()">取消</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<chat-member-list ref="chatMemberList" :current-member-list="currentMemberListData" />
|
<chat-member-list ref="chatMemberList" :current-member-list="currentMemberList" />
|
||||||
</div>
|
</div>
|
||||||
<div class="chat-box-footer">
|
<div class="chat-box-footer">
|
||||||
<div v-if="isShow">
|
<div v-if="isShow">
|
||||||
@ -144,10 +144,6 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
'currentMemberList':(val)=>{
|
|
||||||
debugger;
|
|
||||||
this.currentMemberListData = val;
|
|
||||||
},
|
|
||||||
'$store.state.map.mapViewLoadedCount':function(val) {
|
'$store.state.map.mapViewLoadedCount':function(val) {
|
||||||
const object = document.querySelector('.menuButton');
|
const object = document.querySelector('.menuButton');
|
||||||
if (object) {
|
if (object) {
|
||||||
|
@ -2,19 +2,19 @@
|
|||||||
<div class="chatcontentIn">
|
<div class="chatcontentIn">
|
||||||
<div class="chatcontentInner">
|
<div class="chatcontentInner">
|
||||||
<div v-for="(chatContent,index) in chatContentList" :key="index" class="chatContentInClass">
|
<div v-for="(chatContent,index) in chatContentList" :key="index" class="chatContentInClass">
|
||||||
<!-- <div :class="chatContent.userId?'rightUser':'leftUser'">
|
<div :class="chatContent.self?'rightUser':'leftUser'">
|
||||||
<div class="userHeader">
|
<div class="userHeader">
|
||||||
<div v-if="!chatContent.self" class="userName">{{ covertName(chatContent,false) }}</div>
|
<div v-if="!chatContent.self" class="userName">{{ chatContent.member.label }}</div>
|
||||||
<div :class="chatContent.self?'userChatTime textRight':'userChatTime'">{{ chatContent.time }}</div>
|
<div :class="chatContent.self?'userChatTime textRight':'userChatTime'">{{ chatContent.chatTime }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="userBubble" @click="playAudio(baseUrl+chatContent.src)">
|
<div class="userBubble" @click="playAudio(baseUrl+chatContent.src)">
|
||||||
<div class="userMessage">
|
<div class="userMessage">
|
||||||
<span class="el-icon-video-play playicon" />
|
<span class="el-icon-video-play playicon" />
|
||||||
<span class="messageText">{{ chatContent.content }}</span>
|
<span class="messageText">{{ chatContent.message }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<audio id="audioPlay" style="display:none" />
|
<audio id="audioPlay" style="display:none" />
|
||||||
</div> -->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -101,7 +101,7 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.chatcontentIn{
|
.chatcontentIn{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 380px;
|
width: 360px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
|
@ -26,12 +26,6 @@ export default {
|
|||||||
return this.$store.state.user.id;
|
return this.$store.state.user.id;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
|
||||||
'currentMemberList':()=>{
|
|
||||||
debugger;
|
|
||||||
this.currentMemberList;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
@ -341,8 +341,10 @@ export default {
|
|||||||
this.userRole = 'AUDIENCE';
|
this.userRole = 'AUDIENCE';
|
||||||
}
|
}
|
||||||
const memberList = this.$store.state.training.memberData;
|
const memberList = this.$store.state.training.memberData;
|
||||||
|
if (data.id) {
|
||||||
memberList[data.id].userId = this.$store.state.user.id;
|
memberList[data.id].userId = this.$store.state.user.id;
|
||||||
memberList[data.id].disabled = true;
|
memberList[data.id].disabled = true;
|
||||||
|
}
|
||||||
let lastData = JSON.stringify(memberList);
|
let lastData = JSON.stringify(memberList);
|
||||||
const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;
|
const roleTypeList = ConstConfig.ConstSelect.roleTypeNew;
|
||||||
roleTypeList.forEach(function(element) {
|
roleTypeList.forEach(function(element) {
|
||||||
|
@ -55,13 +55,13 @@ export default {
|
|||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
'$store.state.socket.createConversition':function(val) {
|
'$store.state.socket.createConversition':function(val) {
|
||||||
this.isHasCoversition = true;
|
|
||||||
this.isStartRecord = true;
|
|
||||||
this.conversitionId = val.id;
|
|
||||||
this.scriptTip = '';
|
this.scriptTip = '';
|
||||||
if (this.memberData.length > 0) {
|
if (this.memberData.length > 0) {
|
||||||
const member = this.memberData.find(member=>{ return member.id == val.creatorId; });
|
const member = this.memberData.find(member=>{ return member.id == val.creatorId; });
|
||||||
if (member && member.userId == this.$store.state.user.id) {
|
if (member && member.userId == this.$store.state.user.id) {
|
||||||
|
this.isHasCoversition = true;
|
||||||
|
this.isStartRecord = true;
|
||||||
|
this.conversitionId = val.id;
|
||||||
const memberList = [];
|
const memberList = [];
|
||||||
val.memberIds.forEach(id=>{
|
val.memberIds.forEach(id=>{
|
||||||
if (val.creatorId == id) {
|
if (val.creatorId == id) {
|
||||||
@ -74,7 +74,8 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.currentMemberList = memberList;
|
this.currentMemberList = memberList;
|
||||||
|
} else {
|
||||||
|
this.currentMemberList = this.memberData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
@ -94,11 +95,13 @@ export default {
|
|||||||
// this.conversitionId = val.id;
|
// this.conversitionId = val.id;
|
||||||
},
|
},
|
||||||
'$store.state.socket.acceptConversionInvite':function(val) {
|
'$store.state.socket.acceptConversionInvite':function(val) {
|
||||||
this.currentMemberList.forEach(member => {
|
const memberList = this.currentMemberList.map(member => {
|
||||||
if (member.id == val.memberId) {
|
if (member.id == val.memberId) {
|
||||||
member.connect = true;
|
member.connect = true;
|
||||||
}
|
}
|
||||||
|
return member;
|
||||||
});
|
});
|
||||||
|
this.currentMemberList = memberList;
|
||||||
},
|
},
|
||||||
'$store.state.socket.simulationScriptTip':function(val, old) {
|
'$store.state.socket.simulationScriptTip':function(val, old) {
|
||||||
if (val) {
|
if (val) {
|
||||||
@ -135,11 +138,38 @@ export default {
|
|||||||
this.chatContentList.push(this.addContent(simulationText.message));
|
this.chatContentList.push(this.addContent(simulationText.message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'$store.state.socket.scriptFinish':function(val, old) {
|
||||||
|
this.$message('剧本执行完成');
|
||||||
|
},
|
||||||
|
'$store.state.socket.overConversition': function (val) {
|
||||||
|
if (val.id === this.conversitionId) {
|
||||||
|
this.conversitionId = '';
|
||||||
|
this.scriptTip = '';
|
||||||
|
this.currentMemberList = [];
|
||||||
|
this.chatContentList = [];
|
||||||
|
this.isHasCoversition = false;
|
||||||
|
this.isStartRecord = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
setScriptTip(scriptTip) {
|
setScriptTip(scriptTip) {
|
||||||
this.scriptTip = scriptTip;
|
this.scriptTip = scriptTip;
|
||||||
|
},
|
||||||
|
addContent(simulationText) {
|
||||||
|
const text = {};
|
||||||
|
const member = this.currentMemberList.find(member=>{
|
||||||
|
return member.id == simulationText.memberId;
|
||||||
|
});
|
||||||
|
if (member) {
|
||||||
|
text.self = (this.$store.state.user.id == member.userId);
|
||||||
|
text.member = member;
|
||||||
|
text.chatTime = simulationText.time;
|
||||||
|
text.src = simulationText.audioPath;
|
||||||
|
text.message = simulationText.content;
|
||||||
|
}
|
||||||
|
return text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user