成都三号线右键操作代码调整
This commit is contained in:
parent
4fe4fd44b8
commit
47186e0948
@ -109,6 +109,10 @@ export default {
|
|||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chengdou-03__systerm .el-dialog span .el-icon-arrow-up{
|
||||||
|
line-height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
.chengdou-03__systerm .el-dialog .el-dialog__footer {
|
.chengdou-03__systerm .el-dialog .el-dialog__footer {
|
||||||
background: #ECE9D8;
|
background: #ECE9D8;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -212,21 +212,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 信号关灯
|
// 信号关灯
|
||||||
signalClose() {
|
signalClose() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.signalClose, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.signalClose.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$refs.routeControl.doShow(operate, this.selected);
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
|
||||||
this.$refs.noticeInfo.doShow(step);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 设置故障
|
// 设置故障
|
||||||
@ -245,208 +234,93 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 获取进路列表
|
||||||
|
getRouteList(selectType) {
|
||||||
|
const routes = [];
|
||||||
|
this.routeList.forEach(elem => {
|
||||||
|
if (elem.startSignalCode === selectType.code) {
|
||||||
|
routes.push(elem);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return routes;
|
||||||
|
},
|
||||||
// 设置进路
|
// 设置进路
|
||||||
arrangementRoute() {
|
arrangementRoute() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.arrangementRoute, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.arrangementRoute.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
const routes = [];
|
this.$refs.routeSelection.doShow(operate, this.selected, this.getRouteList(this.selected));
|
||||||
this.routeList.forEach(elem => {
|
|
||||||
if (elem.startSignalCode === this.selected.code) {
|
|
||||||
routes.push(elem);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.$refs.routeSelection.doShow(step.operation, this.selected, routes);
|
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
|
||||||
this.$refs.noticeInfo.doShow(step);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路引导
|
// 进路引导
|
||||||
guide() {
|
guide() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.guide, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.guide.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid, response }) => {
|
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
const routes = [];
|
this.$refs.passwordBox.doShow({...operate, ...{selected: this.selected}, ...{routesList: this.getRouteList(this.selected)}});
|
||||||
this.routeList.forEach(elem => {
|
|
||||||
if (elem.startSignalCode === this.selected.code) {
|
|
||||||
routes.push(elem);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.$refs.passwordBox.doShow({...step, ...{selected: this.selected}, ...{routesList: routes}});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 取消进路
|
// 取消进路
|
||||||
cancelTrainRoute() {
|
cancelTrainRoute() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.cancelTrainRoute.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
this.$refs.routeControl.doShow(operate, this.selected);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 总人解
|
// 总人解
|
||||||
humanTrainRoute() {
|
humanTrainRoute() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.humanTrainRoute, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.humanTrainRoute.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.passwordBox.doShow({...step, ...{selected: this.selected}});
|
this.$refs.passwordBox.doShow({...operate, ...{selected: this.selected}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号重开
|
// 信号重开
|
||||||
reopenSignal() {
|
reopenSignal() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.reopenSignal, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.reopenSignal.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$refs.routeControl.doShow(operate, this.selected);
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号封锁
|
// 信号封锁
|
||||||
lock() {
|
lock() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.lock, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.lock.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$refs.routeControl.doShow(operate, this.selected);
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
|
||||||
this.$refs.noticeInfo.doShow(step);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 信号解封
|
// 信号解封
|
||||||
unlock() {
|
unlock() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.unlock, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.unlock.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$refs.routeControl.doShow(operate, this.selected);
|
||||||
this.$refs.routeControl.doShow(step, this.selected);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路交人工控
|
// 进路交人工控
|
||||||
humanControl() {
|
humanControl() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.humanControl, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.humanControl.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
|
||||||
const routes = [];
|
|
||||||
this.routeList.forEach(elem => {
|
|
||||||
if (elem.startSignalCode === this.selected.code) {
|
|
||||||
routes.push(elem);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.$refs.routeHandControl.doShow(step, this.selected, routes);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 查询进路状态
|
// 查询进路状态
|
||||||
detail() {
|
detail() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.detail, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.detail.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$refs.routeDetail.doShow(operate, this.selected, this.getRouteList(this.selected));
|
||||||
const routes = [];
|
|
||||||
this.routeList.forEach(elem => {
|
|
||||||
if (elem.startSignalCode === this.selected.code) {
|
|
||||||
routes.push(elem);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.$refs.routeDetail.doShow(step, this.selected, routes);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路交自动控
|
// 进路交自动控
|
||||||
atsAutoControl() {
|
atsAutoControl() {
|
||||||
const step = {
|
commitOperate(menuOperate.Signal.atsAutoControl, {signalCode: this.selected.code}, 0).then(({valid, operate}) => {
|
||||||
start: true,
|
|
||||||
code: `${this.selected.code}`,
|
|
||||||
operation: OperationEvent.Signal.atsAutoControl.menu.operation,
|
|
||||||
param: {
|
|
||||||
signalCode: `${this.selected.code}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
|
||||||
const routes = [];
|
|
||||||
this.routeList.forEach(elem => {
|
|
||||||
if (elem.startSignalCode === this.selected.code) {
|
|
||||||
routes.push(elem);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.$refs.routeHandControl.doShow(step, this.selected, routes);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PopMenu from '@/components/PopMenu';
|
import PopMenu from '@/components/PopMenu';
|
||||||
|
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import CancelMouseState from '@/mixin/CancelMouseState';
|
import CancelMouseState from '@/mixin/CancelMouseState';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
@ -34,9 +35,9 @@ export default {
|
|||||||
return {
|
return {
|
||||||
menu: [],
|
menu: [],
|
||||||
menuNormal: {
|
menuNormal: {
|
||||||
local: [
|
Local: [
|
||||||
],
|
],
|
||||||
central: [
|
Center: [
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
menuForce: [
|
menuForce: [
|
||||||
@ -78,11 +79,11 @@ export default {
|
|||||||
},
|
},
|
||||||
initMenu() {
|
initMenu() {
|
||||||
// 编辑模式菜单列表
|
// 编辑模式菜单列表
|
||||||
if (this.selected.centralized) {
|
this.menu = MenuContextHandler.covert(this.menuNormal);
|
||||||
// 故障模式菜单列表
|
|
||||||
if (this.operatemode === OperateMode.FAULT) {
|
// 故障模式菜单列表
|
||||||
this.menu = [...this.menuForce];
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
}
|
this.menu = this.menuForce;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import PopMenu from '@/components/PopMenu';
|
import PopMenu from '@/components/PopMenu';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
|
||||||
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -23,8 +24,12 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
menu: [],
|
menu: [],
|
||||||
menuNormal: [
|
menuNormal: {
|
||||||
],
|
Local: [
|
||||||
|
],
|
||||||
|
Center: [
|
||||||
|
]
|
||||||
|
},
|
||||||
menuForce: [
|
menuForce: [
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
@ -54,9 +59,23 @@ export default {
|
|||||||
self.doClose();
|
self.doClose();
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
initMenu() {
|
||||||
|
// 编辑模式菜单列表
|
||||||
|
this.menu = MenuContextHandler.covert(this.menuNormal);
|
||||||
|
|
||||||
|
// 故障模式菜单列表
|
||||||
|
if (this.operatemode === OperateMode.FAULT) {
|
||||||
|
this.menu = this.menuForce;
|
||||||
|
}
|
||||||
|
},
|
||||||
doShow(point) {
|
doShow(point) {
|
||||||
if (this.$refs && this.$refs.popMenu) {
|
// if (this.$refs && this.$refs.popMenu) {
|
||||||
this.$refs.popMenu.close();
|
// this.$refs.popMenu.close();
|
||||||
|
// }
|
||||||
|
this.clickEvent();
|
||||||
|
this.initMenu();
|
||||||
|
if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) {
|
||||||
|
this.$refs.popMenu.resetShowPosition(point);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doClose() {
|
doClose() {
|
||||||
|
Loading…
Reference in New Issue
Block a user