线路:西安2

问题:核对和修改西安2号线实训以及操作存在的问题
This commit is contained in:
lVAL 2021-02-25 15:02:01 +08:00
parent 2994b833fa
commit a482e3a866
14 changed files with 103 additions and 46 deletions

View File

@ -1,6 +1,6 @@
<template>
<div v-if="show" class="pop-menu" :class="popMenuClass" :style="{ left: tPosition.x+'px', top: tPosition.y+'px' }">
<pop-menu-item v-for="(option, i) in menu" :key="i" :option="option" :pop-class="popClass" @close="close" />
<pop-menu-item v-for="(option, i) in menu" :key="i" :option="option" :pop-class="popClass" :allowedColor="allowedColor" :disabledColor="disabledColor" @close="close" />
</div>
</template>
@ -29,7 +29,15 @@ export default {
default() {
return '';
}
}
},
allowedColor: {
type: String,
default: '#000'
},
disabledColor: {
type: String,
default: '#ccc'
}
},
data() {
return {

View File

@ -11,7 +11,7 @@
<ul v-if="isPopup" ref="popup" class="menu" :style="{display: isShow? 'block': 'table', marginLeft: marginLeft+'px'}">
<div class="menu-pop pop-menu">
<div v-show="isShow" class="arrow el-icon-arrow-down" />
<pop-menu-item v-for="(el, i) in option.children" :key="i" :option="el" :pop-class="popClass" @close="close" />
<pop-menu-item v-for="(el, i) in option.children" :key="i" :option="el" :pop-class="popClass" :allowedColor="allowedColor" :disabledColor="disabledColor" @close="close" />
<div v-show="isShow" class="arrow el-icon-arrow-up" />
</div>
</ul>
@ -51,13 +51,19 @@ export default {
disabled: {
type: Boolean,
default: false
}
},
disabledColor: {
type: String,
default: '#000',
},
allowedColor: {
type: String,
default: '#ccc'
}
},
data() {
return {
active: -1,
allowedColor: '#000',
disabledColor: '#ccc'
active: -1
};
},
computed: {

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" />
<pop-menu ref="popMenu" :menu="menu" disabledColor="#aaa"/>
<turn-back-control ref="turnBackControl" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" />
<pop-menu ref="popMenu" :menu="menu" disabledColor="#aaa"/>
<section-alxe-reset ref="sectionAlxeReset" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" pop-class="xian-02__pop_tip_station" />
<pop-menu ref="popMenu" :menu="menu" pop-class="xian-02__pop_tip_station" disabledColor="#aaa"/>
<notice-info ref="noticeInfo" pop-class="xian-02__system" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" />
<pop-menu ref="popMenu" :menu="menu" disabledColor="#aaa"/>
<cancel-all-limit ref="cancelAllLimit" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" pop-class="xian-02__pop_tip_station" :tip-msg="topTip" :tip-subhead="tipSubhead" />
<pop-menu ref="popMenu" :menu="menu" pop-class="xian-02__pop_tip_station" :tip-msg="topTip" disabledColor="#aaa"/>
<section-control ref="sectionControl" pop-class="xian-02__system" />
<section-un-lock ref="sectionUnLock" />
<speed-limit-control ref="speedLimitControl" pop-class="xian-02__system" />
@ -56,7 +56,6 @@ export default {
data() {
return {
topTip: '',
tipSubhead: '',
menu: [],
menuNormal: {
Local: [
@ -98,22 +97,28 @@ export default {
cmdType: CMD.Section.CMD_SECTION_UNBLOCK
},
{
// disabled
label: '设备标签',
disabled: true,
children: [
{
label: '创建设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '查看设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '更改设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '删除设备标签',
disabled: true,
handler: this.undeveloped
}
]
@ -125,6 +130,7 @@ export default {
},
{
label: '帮助',
disabled: true,
handler: this.undeveloped
}
]
@ -304,7 +310,9 @@ export default {
setSpeed() {
commitOperate(menuOperate.Section.setSpeed, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.speedLimit.doShow(operate, this.selected);
// 使
// this.$refs.speedLimit.doShow(operate, this.selected);
this.$refs.speedLimitControl.doShow(operate, this.selected);
}
});
},

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" :tip-msg="topTip" :tip-subhead="tipSubhead" pop-class="xian-02__pop_tip_station" />
<pop-menu ref="popMenu" :menu="menu" :tip-msg="topTip" disabledColor="#aaa" pop-class="xian-02__pop_tip_station" />
<route-detail ref="routeDetail" />
<notice-info ref="noticeInfo" pop-class="xian-02__system" />
<set-fault ref="setFault" pop-class="xian-02__system" />
@ -38,7 +38,6 @@ export default {
data() {
return {
topTip: '',
tipSubhead: '',
menu: [],
menuNormal: {
Local: [
@ -77,23 +76,29 @@ export default {
handler: this.guideSignal,
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE
},
// disabled
{
label: '设备标签',
disabled: true,
children: [
{
label: '创建设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '查看设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '更改设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '删除设备标签',
disabled: true,
handler: this.undeveloped
}
]
@ -141,22 +146,28 @@ export default {
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE
},
{
// disabled
label: '设备标签',
disabled: true,
children: [
{
label: '创建设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '查看设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '更改设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '删除设备标签',
disabled: true,
handler: this.undeveloped
}
]

View File

@ -1,6 +1,6 @@
<template>
<div class="xian-02__system">
<pop-menu ref="popMenu" :menu="menu" pop-class="xian-02__pop_tip_station" :tip-msg="topTip" :tip-subhead="tipSubhead" />
<pop-menu ref="popMenu" :menu="menu" pop-class="xian-02__pop_tip_station" :tip-msg="topTip" disabledColor="#aaa"/>
<station-cmd-control ref="stationCmdControl" />
<notice-info ref="noticeInfo" pop-class="xian-02__systerm" />
<set-fault ref="setFault" pop-class="xian-02__system" />
@ -39,7 +39,6 @@ export default {
data() {
return {
topTip: '车站 (CP)',
tipSubhead: '',
menu: [],
menuNormal: {
Local: [
@ -77,18 +76,24 @@ export default {
{
label: '请求',
handler: this.setStationControl,
cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL
cmdType: CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL
},
{
// disabled
label: '授权',
disabled: true,
handler: this.undeveloped
},
{
// disabled
label: '取消',
disabled: true,
handler: this.undeveloped
},
{
{
// disabled
label: '紧急本地控制',
disabled: true,
handler: this.undeveloped
}
]
@ -109,14 +114,18 @@ export default {
]
},
{
// disabled
label: '通信',
disabled: true,
children: [
{
label: '本地',
disabled: true,
handler: this.undeveloped
},
{
label: '重新连接',
disabled: true,
handler: this.undeveloped
}
]
@ -139,35 +148,45 @@ export default {
// ]
// },
{
// disabled
label: '设备标签',
disabled: true,
children: [
{
label: '创建设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '查看设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '更改设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '删除设备标签',
disabled: true,
handler: this.undeveloped
}
]
},
{
// disabled
label: '取消验证',
disabled: true,
children: [
{
label: '取消验证',
disabled: true,
handler: this.undeveloped
},
{
label: '恢复验证',
disabled: true,
handler: this.undeveloped
}
]
@ -353,7 +372,7 @@ export default {
return each.label == type;
});
if (strategy) {
commitOperate(menuOperate.StationControl.setBackStrategy, {stationCode: this.selected.code, id:strategy.id}, 3).then(({valid, operate})=>{
commitOperate(menuOperate.StationControl.setBackStrategy, {stationCode: this.selected.code, id:strategy.id}, 0).then(({valid, operate})=>{
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('menuOperation/pushRequestList', {
device: this.selected,

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" />
<pop-menu ref="popMenu" :menu="menu" disabledColor="#aaa"/>
<station-control ref="stationControl" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" pop-class="xian-02__pop_tip_station" :tip-msg="topTip" :tip-subhead="tipSubhead" />
<pop-menu ref="popMenu" :menu="menu" pop-class="xian-02__pop_tip_station" :tip-msg="topTip" disabledColor="#aaa" />
<switch-control ref="switchControl" pop-class="xian-02__system" />
<section-un-lock ref="sectionUnLock" pop-class="xian-02__system" />
<speed-limit-control ref="speedLimitControl" pop-class="xian-02__system" />
@ -48,7 +48,6 @@ export default {
data() {
return {
topTip: '',
tipSubhead: '',
menu: [],
menuNormal: {
Local: [
@ -105,28 +104,35 @@ export default {
cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK
},
{
// disabled
label: '设备标签',
disabled: true,
children: [
{
label: '创建设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '查看设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '更改设备标签',
disabled: true,
handler: this.undeveloped
},
{
label: '删除设备标签',
disabled: true,
handler: this.undeveloped
}
]
},
{
label: '帮助',
disabled: true,
handler: this.undeveloped
}
]

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" :tip-msg="topTip" :tip-subhead="tipSubhead" pop-class="xian-02__pop_tip_station" />
<pop-menu ref="popMenu" :menu="menu" :tip-msg="topTip" pop-class="xian-02__pop_tip_station" disabledColor="#aaa" />
<notice-info ref="noticeInfo" pop-class="xian-02__system" />
<train-destination ref="trainDestination" />
<train-del-destination ref="trainDelDestination" />
@ -62,7 +62,6 @@ export default {
data() {
return {
topTip: '',
tipSubhead: '',
menu: [],
menuNormal: {
Local: [

View File

@ -1,6 +1,6 @@
<template>
<div>
<pop-menu ref="popMenu" :menu="menu" trigger="click" :tip-msg="topTip" text-align="left" pop-class="xian-02__pop_tip_station" />
<pop-menu ref="popMenu" :menu="menu" trigger="click" :tip-msg="topTip" text-align="left" pop-class="xian-02__pop_tip_station" disabledColor="#aaa" />
<notice-info ref="noticeInfo" pop-class="xian-02__system" />
<update-stand-plan ref="updateStandPlan" :selected="selected" />
<warning-confirm ref="warningConfirm" :selected="selected" />

View File

@ -189,25 +189,25 @@ export default {
// { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
// ]
// },
// {
// maxDuration: 15,
// minDuration: 8,
// operateType: 'Section_Set_Limit_Speed',
// skinCode: '09',
// trainingName: '设置临时限速({8}{9})',
// trainingRemark: '设置临时限速功能-取消临时限速(限速值:不限速)',
// trainingType: 'Section',
// productTypes: ['02'],
// stepVOList: [
// { deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【设置临时限速】' },
// { deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【不限速】', val: '0' },
// { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
// { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
// { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
// { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '0' },
// { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
// ]
// },
{
maxDuration: 15,
minDuration: 8,
operateType: 'Section_Set_Limit_Speed',
skinCode: '09',
trainingName: '设置临时限速({8}{9})',
trainingRemark: '设置临时限速功能-取消临时限速(限速值:不限速)',
trainingType: 'Section',
productTypes: ['02'],
stepVOList: [
{ deviceType: '03', orderNum: 1, operateCode: '407', tip: '鼠标右键菜单选择【设置临时限速】' },
{ deviceType: '03', orderNum: 2, operateCode: '4076', tip: '鼠标左键选择【不限速】', val: '0' },
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '0' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
]
},
{
maxDuration: 15,
minDuration: 8,