diff --git a/src/jmapNew/config/skinCode/nanjing_02.js b/src/jmapNew/config/skinCode/nanjing_02.js
index 4ec901de7..2dccc435d 100644
--- a/src/jmapNew/config/skinCode/nanjing_02.js
+++ b/src/jmapNew/config/skinCode/nanjing_02.js
@@ -93,7 +93,7 @@ class SkinCode extends defaultStyle {
protectiveLockColor: '#9DFF6E', // 区段保护锁闭
delayUnlockColor: '#00FF00', // 延时解锁
- faultLockColor: '#9B4A0A', // 区段故障锁定颜色
+ faultLockColor: '#00FF00', // 区段故障锁定颜色
invalidColor: '#ff0000', // 计轴故障
undefinedColor: '#0071C1', // 区段未定义颜色
diff --git a/src/jmapNew/shape/graph/Psd/EHorizontal2Door.js b/src/jmapNew/shape/graph/Psd/EHorizontal2Door.js
index 40e38894b..fcf71c13c 100644
--- a/src/jmapNew/shape/graph/Psd/EHorizontal2Door.js
+++ b/src/jmapNew/shape/graph/Psd/EHorizontal2Door.js
@@ -84,7 +84,7 @@ class EHorizontal2Door extends Group {
this.stand2.setStyle('fill', style.Psd.horizontal2Door.defaultColor);
}
}
- if (model.noStatus) {
+ if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.stand1.setStyle('fill', '#7F7F7F');
this.stand2.setStyle('fill', '#7F7F7F');
}
diff --git a/src/jmapNew/shape/graph/Psd/ERectDoor.js b/src/jmapNew/shape/graph/Psd/ERectDoor.js
index 465a4ce3f..b79958014 100644
--- a/src/jmapNew/shape/graph/Psd/ERectDoor.js
+++ b/src/jmapNew/shape/graph/Psd/ERectDoor.js
@@ -51,7 +51,7 @@ class ERect2Door extends Group {
this.psd.setStyle('fill', style.Psd.rectDoor.defaultColor);
}
}
- if (model.noStatus) {
+ if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.psd.setStyle('fill', '#7F7F7F');
}
}
diff --git a/src/jmapNew/shape/graph/Section/index.js b/src/jmapNew/shape/graph/Section/index.js
index 43e7fcfef..06d09d403 100644
--- a/src/jmapNew/shape/graph/Section/index.js
+++ b/src/jmapNew/shape/graph/Section/index.js
@@ -493,7 +493,9 @@ export default class Section extends Group {
// 区段故障锁闭 之前是fault 暂时设置为faultLock
model.faultLock && this.faultLock();
// 设置灰显
- model.noStatus && this.setAshShow();
+ if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
+ this.setAshShow();
+ }
// 设置脱轨器
model.signalDerailer && exec(DerailerMap[model.signalDerailer], this.derailer, this.style);
diff --git a/src/jmapNew/shape/graph/Signal/ESigLamp.js b/src/jmapNew/shape/graph/Signal/ESigLamp.js
index 326b714d0..42dbf3263 100644
--- a/src/jmapNew/shape/graph/Signal/ESigLamp.js
+++ b/src/jmapNew/shape/graph/Signal/ESigLamp.js
@@ -3,7 +3,7 @@ import Arc from 'zrender/src/graphic/shape/Arc';
import Sector from 'zrender/src/graphic/shape/Sector';
import Group from 'zrender/src/container/Group';
// import Path from 'zrender/src/graphic/Path';
-import {ESigFault} from './ESigFault';
+// import {ESigFault} from './ESigFault';
class ESigLamp extends Group {
constructor(model) {
diff --git a/src/jmapNew/shape/graph/Signal/index.js b/src/jmapNew/shape/graph/Signal/index.js
index 85171c4a2..75def38cf 100644
--- a/src/jmapNew/shape/graph/Signal/index.js
+++ b/src/jmapNew/shape/graph/Signal/index.js
@@ -319,7 +319,7 @@ class Signal extends Group {
});
this.add(this.insideTriangle);
}
- if (style.Signal.sigBack || (style.Signal.virtual.bg && model.virtual)) {
+ if (style.Signal.sigBack || (style.Signal.virtual && style.Signal.virtual.bg && model.virtual)) {
const bgObj = style.Signal.sigBack || style.Signal.virtual.bg;
const signalRect = this.sigPost.getBoundingRect().clone();
this.lamps.forEach(elem => {
@@ -771,7 +771,7 @@ class Signal extends Group {
this.sigPost.setColor(this.style.Signal.post.approachLockColor);
}
}
- fault() {
+ noOpenFault() {
if (this.style.Signal.lamp.faultType == 'flash') {
// this.lamps[0].faultShow();
} else if (this.style.Signal.lamp.faultType == 'cross') {
@@ -792,6 +792,25 @@ class Signal extends Group {
this.lamps[0].setAnimationStart('red');
}
}
+ lightingUnitFaultName() {
+ this.sigName && this.sigName.setAnimationStart('#F00');
+ }
+ lightingUnitFaultHead() {
+ this.lamps && this.lamps[0] && this.lamps[0].setAnimationStart('#F00');
+ }
+ fault(faultType) {
+ switch (faultType) {
+ case 'NO_OPEN':
+ this.noOpenFault();
+ break;
+ case 'LIGHTING_UNIT_FAULT_NAME':
+ this.lightingUnitFaultName();
+ break;
+ case 'LIGHTING_UNIT_FAULT_HEAD':
+ this.lightingUnitFaultHead();
+ break;
+ }
+ }
// 逻辑点灯
logicalLight() {
@@ -1115,14 +1134,14 @@ class Signal extends Group {
}
model.approachLock && this.handleApproachLock();
// 信号机故障
- model.fault && this.fault();
+ model.fault && this.fault(model.fault);
if (model.guideTime) {
this.tText && this.tText.setStyle('text', model.guideTime);
this.tText && this.tText.show();
}
this.model.virtual && this.sigBack && this.sigBack.show();
// 设置灰显
- if (model.noStatus) {
+ if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
this.setAshShow();
}
diff --git a/src/jmapNew/shape/graph/StationStand/ETrainSetButton.js b/src/jmapNew/shape/graph/StationStand/ETrainSetButton.js
index 86392a53d..25dc4c2eb 100644
--- a/src/jmapNew/shape/graph/StationStand/ETrainSetButton.js
+++ b/src/jmapNew/shape/graph/StationStand/ETrainSetButton.js
@@ -1,5 +1,6 @@
import Group from 'zrender/src/container/Group';
import Text from 'zrender/src/graphic/Text';
+import store from '@/store/index';
class ETrainSetButton extends Group {
constructor(model) {
@@ -53,7 +54,9 @@ class ETrainSetButton extends Group {
}
setState(model) {
- model.noStatus && this.setColor('#7F7F7F');
+ if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
+ this.setColor('#7F7F7F');
+ }
}
}
diff --git a/src/jmapNew/shape/graph/StationStand/safeStand/EGapStand.js b/src/jmapNew/shape/graph/StationStand/safeStand/EGapStand.js
index 0bb914610..fa7a409ef 100644
--- a/src/jmapNew/shape/graph/StationStand/safeStand/EGapStand.js
+++ b/src/jmapNew/shape/graph/StationStand/safeStand/EGapStand.js
@@ -1,6 +1,7 @@
import Group from 'zrender/src/container/Group';
import Rect from 'zrender/src/graphic/shape/Rect';
import Text from 'zrender/src/graphic/Text';
+import store from '@/store/index';
class EGapStand extends Group {
constructor(model) {
@@ -108,7 +109,9 @@ class EGapStand extends Group {
this.setClose();
}
}
- model.noStatus && this.setColor('#7F7F7F');
+ if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
+ this.setColor('#7F7F7F');
+ }
}
}
diff --git a/src/jmapNew/shape/graph/Switch/index.js b/src/jmapNew/shape/graph/Switch/index.js
index 76441ad41..b153e9a14 100644
--- a/src/jmapNew/shape/graph/Switch/index.js
+++ b/src/jmapNew/shape/graph/Switch/index.js
@@ -739,7 +739,9 @@ export default class Switch extends Group {
const sectionC = this.mapDevice[switchModel.sectionCCode];
sectionC && sectionC.instance && sectionC.instance.handleSwitchSection(sectionC);
}
- model.noStatus && this.setAshShow();
+ if (model.noStatus || (model.atsNoStatus && store.state.training.prdType == '02')) {
+ this.setAshShow();
+ }
!model.auto && this.artificialArc && this.artificialArc.show();
}
}
diff --git a/src/jmapNew/theme/components/menus/dialog/setFault.vue b/src/jmapNew/theme/components/menus/dialog/setFault.vue
index 4f2aba875..cf35255dd 100644
--- a/src/jmapNew/theme/components/menus/dialog/setFault.vue
+++ b/src/jmapNew/theme/components/menus/dialog/setFault.vue
@@ -184,6 +184,8 @@ export default {
}
if (name) {
this.deviceName = deviceType[selected._type] + '-' + name;
+ } else if (selected._type == 'Server') {
+ this.deviceName = '服务器';
} else {
this.deviceName = deviceType[selected._type];
}
@@ -224,6 +226,28 @@ export default {
{label: '红光带故障', value: 'AXLE_FAULT'},
{label: '橙光带故障', value: 'ARB'}
];
+ } else if (selected._type === 'Switch' && this.popClass === 'nanjing-02__systerm' ) {
+ this.faultList = [
+ {label: '短闪', value: 'SPLIT'},
+ {label: '短闪(4次恢复)', value: 'SPLIT_4'},
+ {label: '定位短闪', value: 'NORMAL_SPLIT'},
+ {label: '反位短闪', value: 'REVERSE_SPLIT'},
+ {label: '长闪', value: 'SQUEEZE'},
+ {label: '道岔区段灰显', value: 'SECTION_NO_STATUS'},
+ {label: '通信车占用', value: 'CBTC_OCCUPIED_FAULT'},
+ {label: '红光带故障', value: 'AXLE_FAULT'},
+ {label: '橙光带故障', value: 'ARB'}
+ ];
+ } else if (selected._type === 'Server' && this.popClass === 'nanjing-02__systerm') {
+ this.faultList = [
+ {label: 'ATS故障', value: 'ATS_FAULT' }
+ ];
+ } else if (selected._type === 'Signal' && this.popClass === 'nanjing-02__systerm') {
+ this.faultList = [
+ {label: '无法开放(非CTC)', value: 'NO_OPEN'},
+ {label: '编号闪', value: 'LIGHTING_UNIT_FAULT_NAME'},
+ {label: '机头闪', value: 'LIGHTING_UNIT_FAULT_HEAD'}
+ ];
}
if (this.faultList && this.faultList.length) {
this.form.faultType = this.faultList[0].value;
diff --git a/src/jmapNew/theme/nanjing_02/menus/index.vue b/src/jmapNew/theme/nanjing_02/menus/index.vue
index 77a382f34..4b5eb486a 100644
--- a/src/jmapNew/theme/nanjing_02/menus/index.vue
+++ b/src/jmapNew/theme/nanjing_02/menus/index.vue
@@ -11,11 +11,14 @@
+
+