成都一号线菜单调整
This commit is contained in:
parent
7f54b99883
commit
a4ebf22bab
@ -128,14 +128,18 @@ export default {
|
||||
this.dialogShow = false;
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
},
|
||||
doShow() {
|
||||
doShow(step, selected) {
|
||||
this.dialogShow = true;
|
||||
this.selected = selected;
|
||||
},
|
||||
cancel() {
|
||||
this.doClose();
|
||||
},
|
||||
commit() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: OperationEvent.StationStand.setStopTime.menu.operation});
|
||||
}
|
||||
// if (valid) {
|
||||
// const operate = {
|
||||
// send: true,
|
||||
|
@ -155,7 +155,8 @@ export default {
|
||||
{key: 'ATP', label: 'ATP'},
|
||||
{key: 'iATO', label: 'iATO'},
|
||||
{key: 'NRM', label: 'NRM'}
|
||||
]
|
||||
],
|
||||
selected: null
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -185,10 +186,10 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
doShow(operate) {
|
||||
this.operate = operate || {};
|
||||
doShow(step, selected) {
|
||||
// this.operate = operate || {};
|
||||
// this.operation = operate.operation;
|
||||
|
||||
this.selected = selected;
|
||||
// 非断电激活时设置初始值
|
||||
if (!this.dialogShow) {
|
||||
this.loading = false;
|
||||
@ -205,12 +206,17 @@ export default {
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
},
|
||||
commit() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, Operation: OperationEvent.Section.setSpeed.menu.operation});
|
||||
}
|
||||
});
|
||||
// this.$refs['form'].validate((valid) => {
|
||||
// if (valid) {
|
||||
// const operate = {
|
||||
// send: true,
|
||||
//
|
||||
// operation: OperationEvent.Command.planTrain.addPlanTrain.operation
|
||||
// operation: OperationEvent.Section.setSpeed.menu.operation
|
||||
// };
|
||||
//
|
||||
// this.loading = true;
|
||||
|
120
src/jmapNew/theme/chengdu_01/menus/menuDialog/playBack.vue
Normal file
120
src/jmapNew/theme/chengdu_01/menus/menuDialog/playBack.vue
Normal file
@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-dialogDrag
|
||||
class="chengdou-03__systerm stand-stop-time"
|
||||
:title="title"
|
||||
:visible.sync="show"
|
||||
width="500px"
|
||||
:before-close="doClose"
|
||||
:z-index="2000"
|
||||
:modal="false"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form ref="form" size="small" label-width="50px" :model="addModel" :rules="rules">
|
||||
<el-row>
|
||||
<el-col :span="12" :offset="0">
|
||||
<div style="text-align: center;">日期</div>
|
||||
</el-col>
|
||||
<el-col :span="12" :offset="0">
|
||||
<div style="text-align: center;">时间</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="开始" prop="startData">
|
||||
<el-input v-model="addModel.startData" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label-width="0" prop="startTime">
|
||||
<el-input v-model="addModel.startTime" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="结束" prop="endData">
|
||||
<el-input v-model="addModel.endData" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label-width="0" prop="endTime">
|
||||
<el-input v-model="addModel.endTime" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<div style="text-align: center;">Start Playback Session</div>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<div style="text-align: center;">RETRIEVAL OPTIONS:</div>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col>
|
||||
<el-form-item label-width="0" prop="wayList">
|
||||
<el-checkbox-group v-model="addModel.wayList">
|
||||
<el-checkbox label="playbackSoftware">回放软件</el-checkbox>
|
||||
<el-checkbox label="snapshotFile">快照文件</el-checkbox>
|
||||
<el-checkbox label="eventLogFiles">事件日志文件</el-checkbox>
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-row justify="center" class="button-group">
|
||||
<el-col :span="16" :offset="5">
|
||||
<el-button type="primary" :loading="loading" @click="commit">确定</el-button>
|
||||
<el-button @click="cancel">取消</el-button>
|
||||
<el-button>帮助</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'SystemLogin',
|
||||
data() {
|
||||
return {
|
||||
addModel: {
|
||||
startData: '',
|
||||
startTime: '',
|
||||
endData: '',
|
||||
endTime: '',
|
||||
wayList: []
|
||||
},
|
||||
rules: {},
|
||||
dialogShow: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
show() {
|
||||
return this.dialogShow && !this.$store.state.menuOperation.break;
|
||||
},
|
||||
title() {
|
||||
return '回放时间输入';
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
doClose() {
|
||||
this.loading = false;
|
||||
this.dialogShow = false;
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
},
|
||||
doShow() {
|
||||
this.dialogShow = true;
|
||||
},
|
||||
cancel() {
|
||||
this.doClose();
|
||||
},
|
||||
commit() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -4,7 +4,7 @@
|
||||
class="chengdou-03__systerm stand-stop-time"
|
||||
:title="title"
|
||||
:visible.sync="show"
|
||||
width="500px"
|
||||
width="400px"
|
||||
:before-close="doClose"
|
||||
:z-index="2000"
|
||||
:modal="false"
|
||||
@ -12,22 +12,22 @@
|
||||
>
|
||||
<el-form ref="form" size="small" label-width="0" :model="addModel" :rules="rules">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-col :span="7">
|
||||
<div style="text-align: center;">用户名</div>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="7" :offset="10">
|
||||
<div style="text-align: center;">密码</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item prop="username">
|
||||
<el-input v-model="addModel.username" style="width:200px;" />
|
||||
<el-input v-model="addModel.username" style="width:110px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="7" :offset="5">
|
||||
<el-form-item prop="password">
|
||||
<el-input v-model="addModel.password" />
|
||||
<el-input v-model="addModel.password" style="width: 110px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -37,18 +37,25 @@
|
||||
<el-row>
|
||||
<el-col :span="12" :offset="6">
|
||||
<el-form-item prop="role">
|
||||
<div />
|
||||
<div style="box-shadow: 0 2px 4px rgba(0, 0, 0, .12);">
|
||||
<el-scrollbar class="table_device" wrap-class="scrollbar-wrapper" style="height: 150px; width: 100%;">
|
||||
<div v-for="item in roleList" :id="item.value" :key="item.value" style="color: #000; width: 100%;background: #5F9EA0" @click="clickEvent(item.value)">
|
||||
<span style="position: relative; left: 20px;">{{ item.label }}</span><br>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<hr style="height:1px;border:none;border-top:1px solid #555555;width: 400px;position: absolute; left: 0">
|
||||
<el-row style="margin-top: 20px">
|
||||
<el-form-item prop="notes">
|
||||
<el-input v-model="addModel.notes" type="textarea" :rows="3" />
|
||||
<el-input v-model="addModel.notes" type="textarea" :rows="2" />
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-row justify="center" class="button-group">
|
||||
<el-col :span="16" :offset="5">
|
||||
<el-col :span="20" :offset="2">
|
||||
<el-button type="primary" :loading="loading" @click="commit">确定</el-button>
|
||||
<el-button @click="cancel">取消</el-button>
|
||||
<el-button>帮助</el-button>
|
||||
@ -69,7 +76,20 @@ export default {
|
||||
note: ''
|
||||
},
|
||||
rules: {},
|
||||
dialogShow: false
|
||||
dialogShow: false,
|
||||
roleList: [
|
||||
{ label: '调度1', value:'dispatcher1'},
|
||||
{ label: '调度2', value:'dispatcher2'},
|
||||
{ label: '调度3', value:'dispatcher3'},
|
||||
{ label: '调度4', value:'dispatcher4'},
|
||||
{ label: '调度5', value:'dispatcher5'},
|
||||
{ label: '调度6', value:'dispatcher6'},
|
||||
{ label: '调度7', value:'dispatcher7'},
|
||||
{ label: '调度8', value:'dispatcher8'},
|
||||
{ label: '调度9', value:'dispatcher9'},
|
||||
{ label: '调度10', value:'dispatcher10'},
|
||||
{ label: '调度11', value:'dispatcher11'}
|
||||
]
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -95,11 +115,21 @@ export default {
|
||||
commit() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
});
|
||||
},
|
||||
clickEvent(val) {
|
||||
console.log(val, '--------', this.addModel.role, '========', document.getElementById(val));
|
||||
this.addModel.role && document.getElementById(this.addModel.role).setAttribute('style', 'background: #5F9EA0;color: #000; width:100%');
|
||||
this.addModel.role = val;
|
||||
document.getElementById(val).setAttribute('style', 'background: #000;color: #5F9EA0; width:100%');
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
/deep/ .table_device {
|
||||
.el-scrollbar__thumb {
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-dialogDrag
|
||||
class="chengdou-03__systerm stand-stop-time"
|
||||
:title="title"
|
||||
:visible.sync="show"
|
||||
width="300px"
|
||||
:before-close="doClose"
|
||||
:z-index="2000"
|
||||
:modal="false"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form ref="form" size="small" label-width="80px" :model="addModel" :rules="rules">
|
||||
<el-form-item label="名字" prop="console">
|
||||
<el-input v-model="addModel.console" />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户" prop="user">
|
||||
<el-input v-model="addModel.user" />
|
||||
</el-form-item>
|
||||
<el-form-item label="密码" prop="password">
|
||||
<el-input v-model="addModel.password" />
|
||||
</el-form-item>
|
||||
<el-form-item prop="notes">
|
||||
<el-input v-model="addModel.notes" type="textarea" :rows="3" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row justify="center" class="button-group">
|
||||
<el-col :span="16" :offset="5">
|
||||
<el-button type="primary" :loading="loading" @click="commit">确定</el-button>
|
||||
<el-button @click="cancel">取消</el-button>
|
||||
<el-button>帮助</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'SystemLogin',
|
||||
data() {
|
||||
return {
|
||||
addModel: {
|
||||
console: '',
|
||||
user: '',
|
||||
password: '',
|
||||
note: ''
|
||||
},
|
||||
rules: {},
|
||||
dialogShow: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
show() {
|
||||
return this.dialogShow && !this.$store.state.menuOperation.break;
|
||||
},
|
||||
title() {
|
||||
return '注销';
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
doClose() {
|
||||
this.loading = false;
|
||||
this.dialogShow = false;
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
},
|
||||
doShow() {
|
||||
this.dialogShow = true;
|
||||
},
|
||||
cancel() {
|
||||
this.doClose();
|
||||
},
|
||||
commit() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -45,22 +45,16 @@ export default {
|
||||
menu: [],
|
||||
menuNormal: {
|
||||
Local: [
|
||||
// {
|
||||
// label: '区故解',
|
||||
// handler: this.fault,
|
||||
// disabledCallback: MenuDisabledState.Section.fault,
|
||||
// auth: { station: true, center: false }
|
||||
// }
|
||||
],
|
||||
Center: [
|
||||
{
|
||||
label: '轨道封锁',
|
||||
handler: '',
|
||||
handler: this.lock,
|
||||
cmdType: CMD.Section.CMD_SECTION_UNBLOCK
|
||||
},
|
||||
{
|
||||
label: '轨道封锁解除',
|
||||
handler: '',
|
||||
handler: this.unlock,
|
||||
cmdType: CMD.Section.CMD_SECTION_BLOCK
|
||||
},
|
||||
{
|
||||
@ -68,24 +62,6 @@ export default {
|
||||
handler: this.setSpeed,
|
||||
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
|
||||
}
|
||||
// {
|
||||
// label: '区故解',
|
||||
// handler: this.fault,
|
||||
// auth: { station: true, center: false },
|
||||
// cmdType: CMD.Section.CMD_SECTION_FAULT_UNLOCK
|
||||
// },
|
||||
// {
|
||||
// label: '设置临时限速',
|
||||
// handler: this.setSpeed,
|
||||
// auth: { station: false, center: true },
|
||||
// cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED
|
||||
// },
|
||||
// {
|
||||
// label: '属性',
|
||||
// handler: this.detail,
|
||||
// auth: { station: false, center: true },
|
||||
// cmdType:''
|
||||
// }
|
||||
]
|
||||
},
|
||||
menuForce: [
|
||||
@ -174,40 +150,7 @@ export default {
|
||||
this.$refs.noticeInfo.doShow(step);
|
||||
});
|
||||
},
|
||||
// 故障解锁
|
||||
fault() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.Section.fault.menu.operation,
|
||||
param: {
|
||||
Section_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.sectionControl.doShow(step, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
detail() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.Section.detail.menu.operation,
|
||||
param: {
|
||||
Section_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.sectionDetail.doShow(step, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 设置故障
|
||||
setStoppage() {
|
||||
const step = {
|
||||
@ -267,6 +210,38 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
lock() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.Section.lock.menu.operation,
|
||||
param: {
|
||||
Section_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({valid}) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', {break: true});
|
||||
this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: OperationEvent.Section.lock.menu.operation});
|
||||
}
|
||||
});
|
||||
},
|
||||
unlock() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.Section.unlock.menu.operation,
|
||||
param: {
|
||||
Section_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({valid}) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', {break: true});
|
||||
this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: OperationEvent.Section.unlock.menu.operation});
|
||||
}
|
||||
});
|
||||
},
|
||||
undeveloped() {
|
||||
this.doClose();
|
||||
this.$alert('实现中......', '提示', {
|
||||
|
@ -1,11 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<pop-menu ref="popMenu" :menu="menu" />
|
||||
<route-selection ref="routeSelection" />
|
||||
<route-control ref="routeControl" />
|
||||
<route-detail ref="routeDetail" />
|
||||
<route-guide ref="routeGuide" />
|
||||
<route-hand-control ref="routeHandControl" />
|
||||
<notice-info ref="noticeInfo" />
|
||||
<create-device-label ref="createDeviceLabel" />
|
||||
</div>
|
||||
@ -14,9 +11,6 @@
|
||||
<script>
|
||||
import PopMenu from '@/components/PopMenu';
|
||||
import RouteControl from './dialog/routeControl';
|
||||
import RouteSelection from './dialog/routeSelection';
|
||||
import RouteDetail from './dialog/routeDetail';
|
||||
import RouteHandControl from './dialog/routeHandControl';
|
||||
import RouteGuide from './dialog/routeGuide';
|
||||
import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo';
|
||||
import CreateDeviceLabel from './dialog/createDeviceLabel';
|
||||
@ -25,16 +19,12 @@ import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
|
||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
|
||||
import { querySignalStatus } from '@/api/simulation';
|
||||
|
||||
export default {
|
||||
name: 'SignalMenu',
|
||||
components: {
|
||||
PopMenu,
|
||||
RouteControl,
|
||||
RouteSelection,
|
||||
RouteHandControl,
|
||||
RouteDetail,
|
||||
RouteGuide,
|
||||
NoticeInfo,
|
||||
CreateDeviceLabel
|
||||
@ -54,7 +44,7 @@ export default {
|
||||
Local: [
|
||||
{
|
||||
label: '始端/终端选择',
|
||||
handler: '',
|
||||
handler: this.arrangementRoute,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE
|
||||
},
|
||||
{
|
||||
@ -64,12 +54,12 @@ export default {
|
||||
},
|
||||
{
|
||||
label: '开放自动进路',
|
||||
handler: '',
|
||||
handler: this.atsAutoControl,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING
|
||||
},
|
||||
{
|
||||
label: '关闭自动进路',
|
||||
handler: '',
|
||||
handler: this.humanControl,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING
|
||||
},
|
||||
{
|
||||
@ -84,7 +74,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: '引导信号',
|
||||
handler: '',
|
||||
handler: this.guide,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE
|
||||
},
|
||||
{
|
||||
@ -118,7 +108,7 @@ export default {
|
||||
Center: [
|
||||
{
|
||||
label: '始端/终端选择',
|
||||
handler: '',
|
||||
handler: this.arrangementRoute,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE
|
||||
},
|
||||
{
|
||||
@ -128,12 +118,12 @@ export default {
|
||||
},
|
||||
{
|
||||
label: '开放自动进路',
|
||||
handler: '',
|
||||
handler: this.atsAutoControl,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING
|
||||
},
|
||||
{
|
||||
label: '关闭自动进路',
|
||||
handler: '',
|
||||
handler: this.humanControl,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING
|
||||
},
|
||||
{
|
||||
@ -148,7 +138,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: '引导信号',
|
||||
handler: '',
|
||||
handler: this.guide,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE
|
||||
},
|
||||
{
|
||||
@ -323,12 +313,9 @@ export default {
|
||||
};
|
||||
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
if (valid) {
|
||||
querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
||||
const tempData = resp.data;
|
||||
this.$refs.routeSelection.doShow(step.operation, this.selected, tempData);
|
||||
});
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true});
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected.code, operation: OperationEvent.Signal.arrangementRoute.menu.operation});
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$refs.noticeInfo.doShow(step);
|
||||
@ -345,12 +332,9 @@ export default {
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid, response }) => {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
if (valid) {
|
||||
querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
||||
const tempData = resp.data;
|
||||
this.$refs.routeGuide.doShow(step.operation, this.selected, tempData);
|
||||
});
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: OperationEvent.Signal.guide.menu.operation});
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -364,44 +348,10 @@ export default {
|
||||
Signal_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
// this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
// if (valid) {
|
||||
// this.$refs.routeControl.doShow(step, this.selected);
|
||||
// }
|
||||
// });
|
||||
},
|
||||
// 总人解
|
||||
humanTrainRoute() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.Signal.humanTrainRoute.menu.operation,
|
||||
param: {
|
||||
Signal_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
if (valid) {
|
||||
this.$refs.routeControl.doShow(step, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 信号重开
|
||||
reopenSignal() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.Signal.reopenSignal.menu.operation,
|
||||
param: {
|
||||
Signal_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.routeControl.doShow(step, this.selected);
|
||||
this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation: OperationEvent.Signal.cancelTrainRoute.menu.operation});
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -415,15 +365,14 @@ export default {
|
||||
Signal_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
|
||||
// this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
// if (valid) {
|
||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
// this.$refs.routeControl.doShow(step, this.selected);
|
||||
// }
|
||||
// }).catch(() => {
|
||||
// this.$refs.noticeInfo.doShow(step);
|
||||
// });
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.Signal.lock.menu.operation });
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$refs.noticeInfo.doShow(step);
|
||||
});
|
||||
},
|
||||
// 信号解封
|
||||
unlock() {
|
||||
@ -435,12 +384,12 @@ export default {
|
||||
Signal_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
// this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
// if (valid) {
|
||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
// this.$refs.routeControl.doShow(step, this.selected);
|
||||
// }
|
||||
// });
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.Signal.unlock.menu.operation});
|
||||
}
|
||||
});
|
||||
},
|
||||
// 进路交人工控
|
||||
humanControl() {
|
||||
@ -455,10 +404,7 @@ export default {
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
||||
const tempData = resp.data;
|
||||
this.$refs.routeHandControl.doShow(step, this.selected, tempData);
|
||||
});
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.Signal.humanControl.menu.operation});
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -475,30 +421,7 @@ export default {
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
||||
const tempData = resp.data;
|
||||
this.$refs.routeHandControl.doShow(step, this.selected, tempData);
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
// 查询进路状态
|
||||
detail() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.Signal.detail.menu.operation,
|
||||
param: {
|
||||
Signal_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
querySignalStatus(this.group, {signalCode: `${this.selected.code}`}).then(resp => {
|
||||
const tempData = resp.data;
|
||||
this.$refs.routeDetail.doShow(step, this.selected, tempData);
|
||||
});
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.Signal.atsAutoControl.menu.operation});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -81,57 +81,6 @@ export default {
|
||||
}
|
||||
]
|
||||
},
|
||||
menuNormal: {
|
||||
Local: [
|
||||
{
|
||||
label: '设置跳停',
|
||||
handler: this.setJumpStop,
|
||||
cmdType:CMD.Stand.CMD_STAND_SET_JUMP_STOP
|
||||
},
|
||||
{
|
||||
label: '取消跳停',
|
||||
handler: this.cancelJumpStop,
|
||||
cmdType: CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP
|
||||
}
|
||||
],
|
||||
Center: [
|
||||
{
|
||||
label: '设置扣车',
|
||||
handler: this.setDetainTrain,
|
||||
cmdType: CMD.Stand.CMD_STAND_SET_HOLD_TRAIN
|
||||
},
|
||||
{
|
||||
label: '取消扣车',
|
||||
handler: this.cancelDetainTrain,
|
||||
cmdType: CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN
|
||||
},
|
||||
{
|
||||
label: '设置跳停',
|
||||
handler: this.setJumpStop,
|
||||
cmdType: CMD.Stand.CMD_STAND_SET_JUMP_STOP
|
||||
},
|
||||
{
|
||||
label: '取消跳停',
|
||||
handler: this.cancelJumpStop,
|
||||
cmdType: CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP
|
||||
},
|
||||
{
|
||||
label: '设置停站时间',
|
||||
handler: this.setStopTime,
|
||||
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME
|
||||
},
|
||||
{
|
||||
label: '设置站间运行等级',
|
||||
handler: this.setRunLevel,
|
||||
cmdType: CMD.Stand.CMD_STAND_SET_RUN_TIME
|
||||
},
|
||||
{
|
||||
label: '属性',
|
||||
handler: this.detail,
|
||||
cmdType: CMD.Stand.CMD_STAND_VIEW_STATUS
|
||||
}
|
||||
]
|
||||
},
|
||||
menuForce: [
|
||||
{
|
||||
label: '设置故障',
|
||||
@ -155,15 +104,6 @@ export default {
|
||||
'buttonOperation'
|
||||
])
|
||||
},
|
||||
// watch: {
|
||||
// '$store.state.menuOperation.menuCount': function (val) {
|
||||
// if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.StationStand) && !this.buttonOperation) {
|
||||
// this.doShow(this.$store.state.menuOperation.menuPosition);
|
||||
// } else {
|
||||
// this.doClose();
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
methods: {
|
||||
clickEvent() {
|
||||
const self = this;
|
||||
@ -245,41 +185,6 @@ export default {
|
||||
this.$refs.noticeInfo.doShow(step);
|
||||
});
|
||||
},
|
||||
// 设置扣车
|
||||
setDetainTrain() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.StationStand.setDetainTrain.menu.operation,
|
||||
param: {
|
||||
StationStand_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.standControl.doShow(step, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 取消扣车
|
||||
cancelDetainTrain() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.StationStand.cancelDetainTrain.menu.operation,
|
||||
param: {
|
||||
StationStand_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.standControl.doShow(step, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 设置跳停
|
||||
setJumpStop() {
|
||||
const step = {
|
||||
@ -293,7 +198,8 @@ export default {
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.standControl.doShow(step, this.selected);
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.StationStand.setJumpStop.menu.operation});
|
||||
// this.$refs.standControl.doShow(step, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -310,7 +216,8 @@ export default {
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.standControl.doShow(step, this.selected);
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.StationStand.cancelJumpStop.menu.operation });
|
||||
// this.$refs.standControl.doShow(step, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -337,50 +244,6 @@ export default {
|
||||
}).catch(() => {
|
||||
this.$refs.noticeInfo.doShow(step);
|
||||
});
|
||||
},
|
||||
// 设置运行等级
|
||||
setRunLevel() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.StationStand.setRunLevel.menu.operation,
|
||||
param: {
|
||||
StationStand_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid, response }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
Handler.execute(CMD.Stand.CMD_STAND_VIEW_STATUS, {StationStand_Code: `${this.selected.code}`}).then(resp => {
|
||||
const tempData = resp.data;
|
||||
this.$refs.standControl.doShow(step, this.selected, tempData);
|
||||
});
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$refs.noticeInfo.doShow(step);
|
||||
});
|
||||
},
|
||||
// 查询站台状态
|
||||
detail() {
|
||||
const step = {
|
||||
start: true,
|
||||
code: `${this.selected.code}`,
|
||||
operation: OperationEvent.StationStand.detail.menu.operation,
|
||||
param: {
|
||||
StationStand_Code: `${this.selected.code}`
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', step).then(({ valid, response }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
Handler.execute(CMD.Stand.CMD_STAND_VIEW_STATUS, {StationStand_Code: `${this.selected.code}`}).then(resp => {
|
||||
const tempData = resp.data;
|
||||
this.$refs.standDetail.doShow(step, this.selected, tempData);
|
||||
});
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$refs.noticeInfo.doShow(step);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -210,12 +210,13 @@ export default {
|
||||
Switch_Code: this.selected.code
|
||||
}
|
||||
};
|
||||
// this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
// if (valid) {
|
||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.Switch.lock.menu.operation } );
|
||||
// this.$refs.switchControl.doShow(operate, this.selected);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
});
|
||||
},
|
||||
// 道岔解锁
|
||||
unlock() {
|
||||
@ -226,74 +227,11 @@ export default {
|
||||
Switch_Code: this.selected.code
|
||||
}
|
||||
};
|
||||
// this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
// if (valid) {
|
||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.Switch.unlock.menu.operation });
|
||||
// this.$refs.switchControl.doShow(operate, this.selected);
|
||||
// }
|
||||
// });
|
||||
},
|
||||
// 道岔封锁
|
||||
block() {
|
||||
const operate = {
|
||||
start: true,
|
||||
operation: OperationEvent.Switch.block.menu.operation,
|
||||
param: {
|
||||
Switch_Code: this.selected.code
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.switchControl.doShow(operate, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 道岔解封
|
||||
unblock() {
|
||||
const operate = {
|
||||
start: true,
|
||||
operation: OperationEvent.Switch.unblock.menu.operation,
|
||||
param: {
|
||||
Switch_Code: this.selected.code
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.switchControl.doShow(operate, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 道岔故障解锁/ 区故解
|
||||
fault() {
|
||||
const operate = {
|
||||
start: true,
|
||||
operation: OperationEvent.Switch.fault.menu.operation,
|
||||
param: {
|
||||
Switch_Code: this.selected.code
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.switchControl.doShow(operate, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 区段激活
|
||||
active() {
|
||||
const operate = {
|
||||
start: true,
|
||||
operation: OperationEvent.Switch.active.menu.operation,
|
||||
param: {
|
||||
Switch_Code: this.selected.code
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$refs.switchControl.doShow(operate, this.selected);
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -306,12 +244,13 @@ export default {
|
||||
Switch_Code: this.selected.code
|
||||
}
|
||||
};
|
||||
// this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
// if (valid) {
|
||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.Switch.locate.menu.operation});
|
||||
// this.$refs.switchControl.doShow(operate, this.selected);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
});
|
||||
},
|
||||
// 单操到反位
|
||||
reverse() {
|
||||
@ -322,12 +261,13 @@ export default {
|
||||
Switch_Code: this.selected.code
|
||||
}
|
||||
};
|
||||
// this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
// if (valid) {
|
||||
// this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: OperationEvent.Switch.reverse.menu.operation });
|
||||
// this.$refs.switchControl.doShow(operate, this.selected);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
});
|
||||
},
|
||||
undeveloped() {
|
||||
this.doClose();
|
||||
|
@ -18,7 +18,8 @@ const menuOperation = {
|
||||
menuParam: '', // 弹出菜单参数
|
||||
magnifyCount: 0, // 地图放大比例标识
|
||||
shrinkCount: 0, // 地图缩小比例标识
|
||||
mapDrawSelectCount: 0 // 地图编辑点击标识
|
||||
mapDrawSelectCount: 0, // 地图编辑点击标识
|
||||
requestList: [] // 成都一号线请求堆栈
|
||||
},
|
||||
|
||||
getters: {
|
||||
@ -39,6 +40,9 @@ const menuOperation = {
|
||||
},
|
||||
selectedCount:(state)=>{
|
||||
return state.selectedCount;
|
||||
},
|
||||
requestList: (state)=>{
|
||||
return state.requestList;
|
||||
}
|
||||
},
|
||||
|
||||
@ -99,6 +103,12 @@ const menuOperation = {
|
||||
},
|
||||
setMapDrawSelectCount: (state) => {
|
||||
state.mapDrawSelectCount += 1;
|
||||
},
|
||||
pushRequestList: (state, request) => {
|
||||
state.requestList.push(request);
|
||||
},
|
||||
resetRequestList: (state) => {
|
||||
state.requestList = [];
|
||||
}
|
||||
},
|
||||
|
||||
@ -172,6 +182,10 @@ const menuOperation = {
|
||||
|
||||
setMapDrawSelectCount: ({ commit }) => {
|
||||
commit('setMapDrawSelectCount');
|
||||
},
|
||||
|
||||
pushRequestList: ({ commit }, request) => {
|
||||
commit('pushRequestList', request);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user