This commit is contained in:
sunzhenyu 2020-12-22 14:08:33 +08:00
commit af7e9d8dbf
78 changed files with 971 additions and 652 deletions

View File

@ -98,3 +98,11 @@ export function createPost(data) {
data data
}); });
} }
// 修改留言板
export function updatePost(postId, data) {
return request({
url: `/api/learn/${postId}`,
method: 'put',
data
});
}

View File

@ -329,6 +329,18 @@
</el-table> </el-table>
</div> </div>
</template> </template>
<template v-else-if="checkFieldType(item, 'switchBox')">
<el-form-item :key="item.prop" :prop="item.prop" :label="item.label" :required="item.required">
<el-switch
v-model="formModel[item.prop]"
:active-color="item.activeColor || '#13ce66'"
:inactive-color="item.inactiveColor || '#ff4949'"
/>
<!-- <el-radio-group v-model="formModel[item.prop]">
<el-radio v-for="item in item.children" :key="item.value" :label="item.value">{{ item.name }}</el-radio>
</el-radio-group> -->
</el-form-item>
</template>
</template> </template>
</el-form> </el-form>

View File

@ -116,7 +116,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.5, // 分隔符宽度 width: 1.5, // 物理区段分隔符宽度
logicWidth:1.5, // 逻辑区段分隔符宽度
endWidth: 1.5, // 尽头分隔符宽度 endWidth: 1.5, // 尽头分隔符宽度
endColor: '#7F7F7F', // 尽头分隔符颜色 endColor: '#7F7F7F', // 尽头分隔符颜色
color: '#7F7F7F', // 区段边界符颜色 color: '#7F7F7F', // 区段边界符颜色

View File

@ -124,7 +124,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.5, // 分隔符宽度 width: 1.5, // 物理区段分隔符宽度
logicWidth:1.5, // 逻辑区段分隔符宽度
endWidth: 1.5, // 尽头分隔符宽度 endWidth: 1.5, // 尽头分隔符宽度
endColor: '#FFFFFF', // 尽头分隔符颜色 endColor: '#FFFFFF', // 尽头分隔符颜色
color: 'white', // 区段边界符颜色 color: 'white', // 区段边界符颜色

View File

@ -124,7 +124,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.5, // 分隔符宽度 width: 1.5, // 物理区段分隔符宽度
logicWidth:1.5, // 逻辑区段分隔符宽度
endWidth: 1.5, // 尽头分隔符宽度 endWidth: 1.5, // 尽头分隔符宽度
endColor: '#FFFFFF', // 尽头分隔符颜色 endColor: '#FFFFFF', // 尽头分隔符颜色
color: '#FFFFFF', // 区段边界符颜色 color: '#FFFFFF', // 区段边界符颜色

View File

@ -108,7 +108,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.2, // 分隔符宽度 width: 1.2, // 物理区段分隔符宽度
logicWidth:1.2, // 逻辑区段分隔符宽度
endWidth: 3.5, // 尽头分隔符宽度 endWidth: 3.5, // 尽头分隔符宽度
endColor: '#3F3F3F', // 尽头分隔符颜色 endColor: '#3F3F3F', // 尽头分隔符颜色
color: '#3149C3', // 区段边界符颜色 color: '#3149C3', // 区段边界符颜色

View File

@ -108,7 +108,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.2, // 分隔符宽度 width: 1.2, // 物理区段分隔符宽度
logicWidth:1.2, // 逻辑区段分隔符宽度
endWidth: 3.5, // 尽头分隔符宽度 endWidth: 3.5, // 尽头分隔符宽度
endColor: '#3F3F3F', // 尽头分隔符颜色 endColor: '#3F3F3F', // 尽头分隔符颜色
color: '#3149C3', // 区段边界符颜色 color: '#3149C3', // 区段边界符颜色

View File

@ -128,14 +128,6 @@ class SkinCode extends defaultStyle {
drogueWidth: 15, // 浮标宽度 drogueWidth: 15, // 浮标宽度
drogueHeight: 12 // 浮标高度 drogueHeight: 12 // 浮标高度
}, },
separator: {
z: 3, // 分割符层级
width: 1.2, // 分隔符宽度
endWidth: 3.5, // 尽头分隔符宽度
endColor: '#3F3F3F', // 尽头分隔符颜色
color: '#3149C3', // 区段边界符颜色
halfHeight: 5 // 区段分隔符高度的一半
},
trainPosition:{ trainPosition:{
display: false // 列车实时位置显示 display: false // 列车实时位置显示
} }

View File

@ -6,7 +6,7 @@ class SkinCode extends defaultStyle {
super(); super();
this.fontFamily = '宋体'; this.fontFamily = '宋体';
this[deviceType.Section] = { this[deviceType.Section] = {
elemnetType:['name', 'logicText', 'standTrackText', 'reentryTrackText', 'transferTrackText', 'line', 'lineBorder', 'sectionBlock', 'speedLimitName'], elemnetType:['name', 'logicText', 'standTrackText', 'reentryTrackText', 'transferTrackText', 'line', 'lineBorder', 'sectionBlock', 'separator', 'speedLimitName'],
active: { active: {
routeColor: false // 进路触发颜色 routeColor: false // 进路触发颜色
}, },
@ -130,11 +130,14 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.2, // 分隔符宽度 width: 3, // 物理区段分隔符宽度
logicWidth:1.5, // 逻辑区段分隔符宽度
endWidth: 3.5, // 尽头分隔符宽度 endWidth: 3.5, // 尽头分隔符宽度
endColor: '#3F3F3F', // 尽头分隔符颜色 endColor: '#C0C0C0', // 尽头分隔符颜色
color: '#3149C3', // 区段边界符颜色 color: '#000', // 区段边界符颜色
halfHeight: 5 // 区段分隔符高度的一半 halfHeight: 5, // 区段分隔符高度的一半
sepical:true, // 特殊类型 道岔C区段 分隔符为横向
isLikeT:true // 特殊类型尽头分隔 类似与右躺着的T
}, },
trainPosition:{ trainPosition:{
display: false // 列车实时位置显示 display: false // 列车实时位置显示
@ -172,7 +175,7 @@ class SkinCode extends defaultStyle {
stopWidth: 2, // 禁止线宽度 stopWidth: 2, // 禁止线宽度
borderWidth: 0, // 信号灯边框线宽度 borderWidth: 0, // 信号灯边框线宽度
borderColor: '#FF0000', // 信号灯边框线颜色 (虚拟信号机) borderColor: '#FF0000', // 信号灯边框线颜色 (虚拟信号机)
radiusR: 4, // 信号灯半径 radiusR: 5, // 信号灯半径
blockColor: '#EF0C08', // 信号灯锁闭 blockColor: '#EF0C08', // 信号灯锁闭
grayColor: '#7F7F7F', // 信号灯灰色 grayColor: '#7F7F7F', // 信号灯灰色
redColor: '#FF0000', // 信号灯红色 redColor: '#FF0000', // 信号灯红色
@ -686,7 +689,7 @@ class SkinCode extends defaultStyle {
}, },
travelSigns: { travelSigns: {
trainTravelLeftSignsOffset: { x:3, y: 3}, trainTravelLeftSignsOffset: { x:3, y: 3},
trainTravelRightSignsOffset: { x: 62, y: 3} trainTravelRightSignsOffset: { x: 65, y: 3}
}, },
delayTime: { delayTime: {
trainDelayTimeOffset: { x:5, y: 14} trainDelayTimeOffset: { x:5, y: 14}
@ -706,14 +709,14 @@ class SkinCode extends defaultStyle {
trainServer: { trainServer: {
serviceNumberPrefix: '000', // 服务号(表号)前缀 serviceNumberPrefix: '000', // 服务号(表号)前缀
defaultServiceNumber: 'BBB', // 默认服务号(表号) defaultServiceNumber: 'BBB', // 默认服务号(表号)
trainServerOffset: { x: 33, y: 3 }, // 列车服务号偏移 trainServerOffset: { x: 36, y: 3 }, // 列车服务号偏移
fontColor: '#00C300' fontColor: '#00C300'
}, },
trainTarget: { trainTarget: {
tripNumberPrefix: '00', // 车次号前缀 tripNumberPrefix: '00', // 车次号前缀
defaultDirectionCode: '', // 默认车次号1 defaultDirectionCode: '', // 默认车次号1
defaultTripNumber: 'CC', // 默认车次号2 defaultTripNumber: 'CC', // 默认车次号2
trainTargetOffset: { x: 53, y: 3 }, // 列车车次号偏移 trainTargetOffset: { x: 56, y: 3 }, // 列车车次号偏移
fontColor: '#00C300' fontColor: '#00C300'
}, },
trainTargetNumber: { trainTargetNumber: {

View File

@ -108,7 +108,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.5, // 分隔符宽度 width: 1.5, // 物理区段分隔符宽度
logicWidth:1.5, // 逻辑区段分隔符宽度
endWidth: 1.5, // 尽头分隔符宽度 endWidth: 1.5, // 尽头分隔符宽度
endColor: '#FFFFFF', // 尽头分隔符颜色 endColor: '#FFFFFF', // 尽头分隔符颜色
color: 'white', // 区段边界符颜色 color: 'white', // 区段边界符颜色

View File

@ -139,7 +139,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: -1, // 分割符层级 z: -1, // 分割符层级
width: 1.5, // 分隔符宽度 width: 1.5, // 物理区段分隔符宽度
logicWidth:1.5, // 逻辑区段分隔符宽度
endWidth: 1.5, // 尽头分隔符宽度 endWidth: 1.5, // 尽头分隔符宽度
endColor: '#000000', // 尽头分隔符颜色 endColor: '#000000', // 尽头分隔符颜色
color: '#000000', // 区段边界符颜色 color: '#000000', // 区段边界符颜色

View File

@ -132,7 +132,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.5, // 分隔符宽度 width: 1.5, // 物理区段分隔符宽度
logicWidth:1.5, // 逻辑区段分隔符宽度
endWidth: 1.5, // 尽头分隔符宽度 endWidth: 1.5, // 尽头分隔符宽度
endColor: '#7F7F7F', // 尽头分隔符颜色 endColor: '#7F7F7F', // 尽头分隔符颜色
color: '#7F7F7F', // 区段边界符颜色 color: '#7F7F7F', // 区段边界符颜色

View File

@ -116,7 +116,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.2, // 分隔符宽度 width: 1.2, // 物理区段分隔符宽度
logicWidth:1.2, // 逻辑区段分隔符宽度
endWidth: 3.5, // 尽头分隔符宽度 endWidth: 3.5, // 尽头分隔符宽度
endColor: '#3F3F3F', // 尽头分隔符颜色 endColor: '#3F3F3F', // 尽头分隔符颜色
color: '#3149C3', // 区段边界符颜色 color: '#3149C3', // 区段边界符颜色

View File

@ -125,7 +125,8 @@ class SkinCode extends defaultStyle {
}, },
separator: { separator: {
z: 3, // 分割符层级 z: 3, // 分割符层级
width: 1.5, // 分隔符宽度 width: 1.5, // 物理区段分隔符宽度
logicWidth:1.5, // 逻辑区段分隔符宽度
endWidth: 1.5, // 尽头分隔符宽度 endWidth: 1.5, // 尽头分隔符宽度
endColor: '#FFFFFF', // 尽头分隔符颜色 endColor: '#FFFFFF', // 尽头分隔符颜色
color: '#AAA9A9', // 区段边界符颜色 color: '#AAA9A9', // 区段边界符颜色

View File

@ -1,4 +1,3 @@
import Line from 'zrender/src/graphic/shape/Line';
import Group from 'zrender/src/container/Group'; import Group from 'zrender/src/container/Group';
import {isShowThePrdType} from '../../utils/handlePath'; import {isShowThePrdType} from '../../utils/handlePath';
import Polygon from 'zrender/src/graphic/shape/Polygon'; import Polygon from 'zrender/src/graphic/shape/Polygon';
@ -11,7 +10,7 @@ export default class Arrow extends Group {
this.zlevel = model.zlevel; this.zlevel = model.zlevel;
this.z = 0; this.z = 0;
this.model = model; this.model = model;
this.style = style; // this.style = style;
this.isShowShape = true; this.isShowShape = true;
if (isShowThePrdType(model.prdType, model.showConditions) || model.previewOrMapDraw) { if (isShowThePrdType(model.prdType, model.showConditions) || model.previewOrMapDraw) {
this.create(); this.create();
@ -24,36 +23,25 @@ export default class Arrow extends Group {
create() { create() {
const model = this.model; const model = this.model;
this.triangle = new Polygon({ this.arrow = new Polygon({
zlevel: this.zlevel, zlevel: this.zlevel,
z: this.z, z: this.z,
shape: { shape: {
points: [ points: [
[model.position.x, model.position.y], [model.position.x, model.position.y],
[model.position.x + model.triangleLength, model.position.y + model.triangleHeight / 2], [model.position.x + model.triangleLength, model.position.y - model.triangleHeight / 2],
[model.position.x + model.triangleLength, model.position.y - model.triangleHeight / 2] [model.position.x + model.triangleLength, model.position.y - model.lineWidth / 2],
[model.position.x + model.length, model.position.y - model.lineWidth / 2],
[model.position.x + model.length, model.position.y + model.lineWidth / 2],
[model.position.x + model.triangleLength, model.position.y + model.lineWidth / 2],
[model.position.x + model.triangleLength, model.position.y + model.triangleHeight / 2]
] ]
}, },
style: { style: {
fill: model.color fill: model.color
} }
}); });
this.line = new Line({ this.add(this.arrow);
zlevel: this.zlevel,
z: this.z,
shape: {
x1: model.position.x + model.triangleLength,
y1: model.position.y,
x2: model.position.x + model.length,
y2: model.position.y
},
style: {
lineWidth: model.lineWidth,
stroke: model.color
}
});
this.add(this.triangle);
this.add(this.line);
} }
setState(model) { setState(model) {
@ -64,26 +52,18 @@ export default class Arrow extends Group {
const showMode = this.model.showMode; const showMode = this.model.showMode;
const showConditions = this.model.showConditions; const showConditions = this.model.showConditions;
if (!showConditions || showConditions === '01' || showMode === showConditions) { if (!showConditions || showConditions === '01' || showMode === showConditions) {
this.eachChild((child) => { this.arrow.show();
child.show();
});
} else { } else {
this.eachChild((child) => { this.arrow.hide();
child.hide();
});
} }
} }
setShowStation(stationCode) { setShowStation(stationCode) {
if (!stationCode || this.model.stationCode === stationCode) { if (!stationCode || this.model.stationCode === stationCode) {
this.eachChild((child) => { this.arrow.show();
child.show();
});
this.isShowShape = true; this.isShowShape = true;
this.setState(this.model); this.setState(this.model);
} else { } else {
this.eachChild((child) => { this.arrow.hide();
child.hide();
});
this.isShowShape = false; this.isShowShape = false;
} }
} }

View File

@ -1,6 +1,6 @@
import Line from 'zrender/src/graphic/shape/Line';
import Group from 'zrender/src/container/Group'; import Group from 'zrender/src/container/Group';
import {isShowThePrdType} from '../../utils/handlePath'; import {isShowThePrdType} from '../../utils/handlePath';
import Polyline from 'zrender/src/graphic/shape/Polyline';
export default class Line2 extends Group { export default class Line2 extends Group {
constructor(model, style) { constructor(model, style) {
@ -10,7 +10,7 @@ export default class Line2 extends Group {
this.zlevel = model.zlevel; this.zlevel = model.zlevel;
this.z = 0; this.z = 0;
this.model = model; this.model = model;
this.style = style; this.style = style.Line;
this.isShowShape = true; this.isShowShape = true;
if (isShowThePrdType(model.prdType, model.showConditions) || model.previewOrMapDraw) { if (isShowThePrdType(model.prdType, model.showConditions) || model.previewOrMapDraw) {
this.create(); this.create();
@ -23,24 +23,25 @@ export default class Line2 extends Group {
create() { create() {
const model = this.model; const model = this.model;
const style = this.style;
if (model && model.points.length > 1) { if (model && model.points.length > 1) {
for (let i = 0; i < (model.points.length - 1); i++) { const points = [];
this.add(new Line({ const modelPoints = model.points;
zlevel: model.zlevel, const length = modelPoints.length;
for (let i = 0; i < length; i++) {
points.push([modelPoints[i].x, modelPoints[i].y]);
}
this.segment = new Polyline({
zlevel: this.zlevel,
z:this.z, z:this.z,
shape: { shape: {
x1: model.points[i].x, points:points
y1: model.points[i].y,
x2: model.points[i + 1].x,
y2: model.points[i + 1].y
}, },
style: { style: {
lineWidth: model.width, lineWidth: model.width,
stroke: model.lineColor || style.Line.lineColor stroke: model.lineColor || this.style.lineColor
}
}));
} }
});
this.add(this.segment);
} }
} }
@ -48,13 +49,17 @@ export default class Line2 extends Group {
switch (type) { switch (type) {
case '01': break; case '01': break;
case '02': case '02':
this.eachChild((child) => { this.segment.setStyle('lineDash', this.style.lineDash || [4]);
child.setStyle('lineDash', this.style.Line.lineDash || [4]);
});
break; break;
} }
} }
getBoundingRect() {
if (this.segment) {
return this.segment.getBoundingRect().clone();
}
}
setState(model) { setState(model) {
if (!this.isShowShape) return; if (!this.isShowShape) return;
this.setLineType(model.type); this.setLineType(model.type);
@ -64,26 +69,18 @@ export default class Line2 extends Group {
const showMode = this.model.showMode; const showMode = this.model.showMode;
const showConditions = this.model.showConditions; const showConditions = this.model.showConditions;
if (!showConditions || showConditions === '01' || showMode === showConditions) { if (!showConditions || showConditions === '01' || showMode === showConditions) {
this.eachChild((child) => { this.segment && this.segment.show();
child.show();
});
} else { } else {
this.eachChild((child) => { this.segment && this.segment.hide();
child.hide();
});
} }
} }
setShowStation(stationCode) { setShowStation(stationCode) {
if (!stationCode || this.model.stationCode === stationCode) { if (!stationCode || this.model.stationCode === stationCode) {
this.eachChild((child) => { this.segment && this.segment.show();
child.show();
});
this.isShowShape = true; this.isShowShape = true;
this.setState(this.model); this.setState(this.model);
} else { } else {
this.eachChild((child) => { this.segment && this.segment.hide();
child.hide();
});
this.isShowShape = false; this.isShowShape = false;
} }
} }

View File

@ -70,6 +70,10 @@ class EHorizontal2Door extends Group {
this.stand2.setStyle('fill', style.Psd.horizontal2Door.defaultColor); this.stand2.setStyle('fill', style.Psd.horizontal2Door.defaultColor);
} }
} }
if (model.noStatus) {
this.stand1.setStyle('fill', '#7F7F7F');
this.stand2.setStyle('fill', '#7F7F7F');
}
} }
} }

View File

@ -28,7 +28,8 @@ export default class ESeparator extends Group {
y: model.points[0].y y: model.points[0].y
}, },
sepType: model.sepTypeLeft, sepType: model.sepTypeLeft,
drict: -1 // 方向 drict: -1, // 方向
type:model.type // 区段类型
}); });
/** 创建右侧分隔符*/ /** 创建右侧分隔符*/
@ -40,25 +41,27 @@ export default class ESeparator extends Group {
y: model.points[model.points.length - 1].y y: model.points[model.points.length - 1].y
}, },
sepType: model.sepTypeRight, sepType: model.sepTypeRight,
drict: 1 // 方向 drict: 1, // 方向
type:model.type // 区段类型
}); });
this.add(this.lPartition); this.add(this.lPartition);
this.add(this.rPartition); this.add(this.rPartition);
} }
} }
createModel(modelData, points, lineWidth, stroke) { createModel(modelData, points, lineWidth, stroke, rotation) {
const partition = new Polyline({ const partition = new Polyline({
zlevel: this.zlevel, zlevel: this.zlevel,
z: this.z, z: this.z,
origin: [modelData.point.x, modelData.point.y], origin: [modelData.point.x, modelData.point.y],
rotation: Math.PI * 2 - Math.atan2(modelData.traingle.absy, modelData.traingle.absx) * modelData.traingle.drictx * modelData.traingle.dricty, rotation: rotation || Math.PI * 2 - Math.atan2(modelData.traingle.absy, modelData.traingle.absx) * modelData.traingle.drictx * modelData.traingle.dricty,
shape: { shape: {
points: points points: points
}, },
style: { style: {
lineWidth: lineWidth || this.style.Section.separator.width, lineWidth: lineWidth || this.style.Section.separator.width,
stroke: stroke || this.style.Section.separator.color stroke: stroke || this.style.Section.separator.color
// fill:stroke || this.style.Section.separator.color
} }
}); });
return partition; return partition;
@ -112,11 +115,27 @@ export default class ESeparator extends Group {
if (modelData && style && modelData.traingle) { if (modelData && style && modelData.traingle) {
let partition = null; let partition = null;
if (type === '01') { // 普通分割 if (type === '01') { // 普通分割
const points = [ let points = [];
let lineWidth = 0;
const tanRate = modelData.traingle.getTanRate();
if (style.Section.separator.sepical && modelData.type == '03' && tanRate != 0 && tanRate != 1) {
// 转换坐标系计算
const dataDirection = modelData.traingle.getRotation() > 0 ? 1 : -1;
points = [
[modelData.point.x - (style.Section.separator.halfHeight) * modelData.traingle.getCosRate(),
modelData.point.y + dataDirection * (style.Section.separator.halfHeight) * modelData.traingle.getSinRate()],
[modelData.point.x + (style.Section.separator.halfHeight) * modelData.traingle.getCosRate(),
modelData.point.y - dataDirection * (style.Section.separator.halfHeight) * modelData.traingle.getSinRate()]
];
partition = this.createModel(modelData, points);
} else {
points = [
[modelData.point.x, modelData.point.y - (style.Section.separator.halfHeight)], [modelData.point.x, modelData.point.y - (style.Section.separator.halfHeight)],
[modelData.point.x, modelData.point.y + (style.Section.separator.halfHeight)] [modelData.point.x, modelData.point.y + (style.Section.separator.halfHeight)]
]; ];
partition = this.createModel(modelData, points); lineWidth = modelData.type == '02' ? style.Section.separator.logicWidth : style.Section.separator.width;
partition = this.createModel(modelData, points, lineWidth);
}
} else if (type === '02') { // 单侧分割符 } else if (type === '02') { // 单侧分割符
const points = [ const points = [
[modelData.point.x + modelData.drict * (style.Section.separator.halfHeight), modelData.point.y - (style.Section.separator.halfHeight * 1.5)], [modelData.point.x + modelData.drict * (style.Section.separator.halfHeight), modelData.point.y - (style.Section.separator.halfHeight * 1.5)],
@ -125,12 +144,22 @@ export default class ESeparator extends Group {
]; ];
partition = this.createModel(modelData, points); partition = this.createModel(modelData, points);
} else if (type === '03') { // 尽头分隔符 } else if (type === '03') { // 尽头分隔符
const points = [ let points = [];
if (style.Section.separator.isLikeT) {
points = [
[modelData.point.x + modelData.drict * style.Section.separator.width, modelData.point.y],
[modelData.point.x + modelData.drict * (style.Section.separator.width + style.Section.separator.halfHeight * 1.2), modelData.point.y],
[modelData.point.x + modelData.drict * (style.Section.separator.width + style.Section.separator.halfHeight * 1.2), modelData.point.y - style.Section.separator.halfHeight * 1.2],
[modelData.point.x + modelData.drict * (style.Section.separator.width + style.Section.separator.halfHeight * 1.2), modelData.point.y + style.Section.separator.halfHeight * 1.2]
];
} else {
points = [
[modelData.point.x + modelData.drict * (style.Section.separator.halfHeight) * 1.2, modelData.point.y - (style.Section.separator.halfHeight * 1.2)], [modelData.point.x + modelData.drict * (style.Section.separator.halfHeight) * 1.2, modelData.point.y - (style.Section.separator.halfHeight * 1.2)],
[modelData.point.x, modelData.point.y - (style.Section.separator.halfHeight * 1.2)], [modelData.point.x, modelData.point.y - (style.Section.separator.halfHeight * 1.2)],
[modelData.point.x, modelData.point.y + (style.Section.separator.halfHeight * 1.2)], [modelData.point.x, modelData.point.y + (style.Section.separator.halfHeight * 1.2)],
[modelData.point.x + modelData.drict * (style.Section.separator.halfHeight) * 1.2, modelData.point.y + (style.Section.separator.halfHeight * 1.2)] [modelData.point.x + modelData.drict * (style.Section.separator.halfHeight) * 1.2, modelData.point.y + (style.Section.separator.halfHeight * 1.2)]
]; ];
}
const lineWidth = style.Section.separator.endWidth; const lineWidth = style.Section.separator.endWidth;
const stroke = style.Section.separator.endColor; const stroke = style.Section.separator.endColor;
partition = this.createModel(modelData, points, lineWidth, stroke); partition = this.createModel(modelData, points, lineWidth, stroke);

View File

@ -144,7 +144,9 @@ class ETextName extends Group {
hide() { hide() {
this.text && this.text.hide(); this.text && this.text.hide();
} }
setStyle(styles) {
this.text && this.text.setStyle(styles);
}
getBoundingRect() { getBoundingRect() {
if (this.text) { if (this.text) {
return this.text.getBoundingRect().clone(); return this.text.getBoundingRect().clone();
@ -153,6 +155,8 @@ class ETextName extends Group {
recover() { recover() {
// 暂时不做状态初始化 // 暂时不做状态初始化
const styleModel = this.model.style.Section[this.model.type];
this.text && this.text.setStyle({textFill: this.model.approach && this.model.type === 'name' ? styleModel.approachColor : styleModel.fontColor });
} }
setState() { setState() {

View File

@ -81,6 +81,7 @@ export default class Section extends Group {
lineWidth: this.style.Section.line.width lineWidth: this.style.Section.line.width
}); });
} }
this.name && this.name.recover();
this.speedLimit && this.speedLimit.hide(); this.speedLimit && this.speedLimit.hide();
this.speedLimitName && this.speedLimitName.hide(); this.speedLimitName && this.speedLimitName.hide();
@ -238,7 +239,11 @@ export default class Section extends Group {
this.speedLimitName && this.speedLimitName.show(speedUpLimit); this.speedLimitName && this.speedLimitName.show(speedUpLimit);
} }
} }
/** 设置灰显 */
setAshShow() {
this.line && this.line.setStyle({stroke: '#7F7F7F'});
this.name && this.name.setStyle({textFill: '#7F7F7f'});
}
/** 设置状态*/ /** 设置状态*/
setState(model, flag = false) { setState(model, flag = false) {
if (!this.isShowShape) return; if (!this.isShowShape) return;
@ -246,12 +251,12 @@ export default class Section extends Group {
// 哈尔滨线路 道岔相关区段设置 默认颜色 // 哈尔滨线路 道岔相关区段设置 默认颜色
if (this.style.Switch.sectionAction.flag && model.relSwitchCode && !flag) { if (this.style.Switch.sectionAction.flag && model.relSwitchCode && !flag) {
const switchModel = Vue.prototype.$jlmap.mapDevice[model.relSwitchCode]; const switchModel = Vue.prototype.$jlmap.mapDevice[model.relSwitchCode];
if (switchModel.normalPosition != 0) { // 定位情况 if (switchModel && switchModel.normalPosition != 0) { // 定位情况
const sectionC = Vue.prototype.$jlmap.mapDevice[switchModel.sectionCCode]; const sectionC = Vue.prototype.$jlmap.mapDevice[switchModel.sectionCCode];
sectionC && sectionC.instance && sectionC.instance.line.setStyle({ stroke: this.style.Switch.sectionAction.spareColor }); sectionC && sectionC.instance && sectionC.instance.line.setStyle({ stroke: this.style.Switch.sectionAction.spareColor });
const sectionB = Vue.prototype.$jlmap.mapDevice[switchModel.sectionBCode]; const sectionB = Vue.prototype.$jlmap.mapDevice[switchModel.sectionBCode];
sectionB && sectionB.instance && sectionB.instance.setState(sectionB, true); sectionB && sectionB.instance && sectionB.instance.setState(sectionB, true);
} else if (switchModel.normalPosition == 0) { // 反位情况 } else if (switchModel && switchModel.normalPosition == 0) { // 反位情况
const sectionB = Vue.prototype.$jlmap.mapDevice[switchModel.sectionBCode]; const sectionB = Vue.prototype.$jlmap.mapDevice[switchModel.sectionBCode];
sectionB && sectionB.instance && sectionB.instance.line.setStyle({ stroke: this.style.Switch.sectionAction.spareColor }); sectionB && sectionB.instance && sectionB.instance.line.setStyle({ stroke: this.style.Switch.sectionAction.spareColor });
const sectionC = Vue.prototype.$jlmap.mapDevice[switchModel.sectionCCode]; const sectionC = Vue.prototype.$jlmap.mapDevice[switchModel.sectionCCode];
@ -278,7 +283,8 @@ export default class Section extends Group {
// 区段计轴预复位状态 (未处理) // 区段计轴预复位状态 (未处理)
// 区段故障锁闭 之前是fault 暂时设置为faultLock // 区段故障锁闭 之前是fault 暂时设置为faultLock
model.faultLock && this.faultLock(); model.faultLock && this.faultLock();
// 设置灰显
model.noStatus && this.setAshShow();
/** 道岔区段更新岔心颜色 */ /** 道岔区段更新岔心颜色 */
if (model.type === '03' && model.switch) { if (model.type === '03' && model.switch) {
const sectionSwitch = store.getters['map/getDeviceByCode'](model.switch.code); const sectionSwitch = store.getters['map/getDeviceByCode'](model.switch.code);

View File

@ -79,6 +79,7 @@ class ESigPost extends Group {
setColor(color) { setColor(color) {
if (color) { if (color) {
this.ver && this.ver.setStyle({ stroke: color }); this.ver && this.ver.setStyle({ stroke: color });
this.ver && this.ver.setStyle({ fill: color });
this.hor && this.hor.setStyle({ stroke: color }); this.hor && this.hor.setStyle({ stroke: color });
} }
} }

View File

@ -11,15 +11,12 @@ class EVirtualSignal extends Group {
create() { create() {
const model = this.model; const model = this.model;
const style = this.model.style; const style = this.model.style;
// const rotation = model.drict != 1 ? -Math.PI / 180 * Number(30) : Math.PI / 180 * Number(30);
const drict = model.drict !== 1 ? -1 : 1; const drict = model.drict !== 1 ? -1 : 1;
this.lamp = new Polygon({ this.lamp = new Polygon({
name: model.index, name: model.index,
zlevel: model.zlevel, zlevel: model.zlevel,
z: model.z, z: model.z,
// origin: [model.x, model.y],
// rotation: rotation,
shape: { shape: {
points: [ points: [
[model.x - (3 * drict), model.y + Math.sqrt(3) * 3], [model.x - (3 * drict), model.y + Math.sqrt(3) * 3],

View File

@ -597,7 +597,12 @@ class Signal extends Group {
this.remainTImeName.show(); this.remainTImeName.show();
this.remainTImeName && this.remainTImeName.setStyle({ text: number }); this.remainTImeName && this.remainTImeName.setStyle({ text: number });
} }
setAshShow() {
this.lamps.forEach(item=> { item.setStyle({fill: '#7F7F7F', stroke: '#7F7F7F'}); });
this.sigName && this.sigName.setStyle({ textFill: '#7F7F7F' });
this.sigPost && this.sigPost.setColor('#7F7F7F');
this.virtualSignal && this.virtualSignal.setColor('#7F7F7F');
}
// 恢复状态 // 恢复状态
recover() { recover() {
this.lamps.forEach(item=> { item.show(); }); this.lamps.forEach(item=> { item.show(); });
@ -705,6 +710,8 @@ class Signal extends Group {
}); });
} }
} }
// 设置灰显
model.noStatus && this.setAshShow();
} }
getBoundingRect() { getBoundingRect() {

View File

@ -34,62 +34,50 @@ export default class SplitStation extends Group {
stroke: style.SplitStation.strokeColor stroke: style.SplitStation.strokeColor
} }
}); });
this.triangleLeft = new Polygon({ this.arrowLeft = new Polygon({
zlevel: this.zlevel, zlevel: this.zlevel,
z: this.z, z: this.z,
shape: { shape: {
points: [ points: [
[model.position.x, model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2], [model.position.x, model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2],
[model.position.x - style.SplitStation.horizontalDistance, model.position.y + style.SplitStation.height], [model.position.x - style.SplitStation.horizontalDistance, model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance],
[model.position.x - style.SplitStation.horizontalDistance, model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance] [model.position.x - style.SplitStation.horizontalDistance,
model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2 - style.SplitStation.lineWidth / 2],
[model.position.x - style.SplitStation.horizontalDistance - style.SplitStation.lineLength,
model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2 - style.SplitStation.lineWidth / 2],
[model.position.x - style.SplitStation.horizontalDistance - style.SplitStation.lineLength,
model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2 + style.SplitStation.lineWidth / 2],
[model.position.x - style.SplitStation.horizontalDistance,
model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2 + style.SplitStation.lineWidth / 2],
[model.position.x - style.SplitStation.horizontalDistance, model.position.y + style.SplitStation.height]
] ]
}, },
style: { style: {
fill: style.SplitStation.triangleFillColor fill: style.SplitStation.triangleFillColor
} }
}); });
this.triangleRight = new Polygon({ this.arrowRight = new Polygon({
zlevel: this.zlevel, zlevel: this.zlevel,
z: this.z, z: this.z,
shape: { shape: {
points: [ points: [
[model.position.x, model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2], [model.position.x, model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2],
[model.position.x + style.SplitStation.horizontalDistance, model.position.y + style.SplitStation.height], [model.position.x + style.SplitStation.horizontalDistance, model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance],
[model.position.x + style.SplitStation.horizontalDistance, model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance] [model.position.x + style.SplitStation.horizontalDistance,
model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2 - style.SplitStation.lineWidth / 2],
[model.position.x + style.SplitStation.horizontalDistance + style.SplitStation.lineLength,
model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2 - style.SplitStation.lineWidth / 2],
[model.position.x + style.SplitStation.horizontalDistance + style.SplitStation.lineLength,
model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2 + style.SplitStation.lineWidth / 2],
[model.position.x + style.SplitStation.horizontalDistance,
model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2 + style.SplitStation.lineWidth / 2],
[model.position.x + style.SplitStation.horizontalDistance, model.position.y + style.SplitStation.height]
] ]
}, },
style: { style: {
fill: style.SplitStation.triangleFillColor fill: style.SplitStation.triangleFillColor
} }
}); });
this.leftLine = new Line({
zlevel: this.zlevel,
z: this.z,
shape: {
x1: model.position.x - style.SplitStation.horizontalDistance,
y1: model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2,
x2: model.position.x - style.SplitStation.horizontalDistance - style.SplitStation.lineLength,
y2: model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2
},
style: {
lineWidth: style.SplitStation.lineWidth,
stroke: style.SplitStation.strokeColor
}
});
this.rightLine = new Line({
zlevel: this.zlevel,
z: this.z,
shape: {
x1: model.position.x + style.SplitStation.horizontalDistance,
y1: model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2,
x2: model.position.x + style.SplitStation.horizontalDistance + style.SplitStation.lineLength,
y2: model.position.y + style.SplitStation.height - style.SplitStation.verticalDistance / 2
},
style: {
lineWidth: style.SplitStation.lineWidth,
stroke: style.SplitStation.strokeColor
}
});
this.leftText = new Text({ this.leftText = new Text({
zlevel: this.zlevel, zlevel: this.zlevel,
z: this.z, z: this.z,
@ -125,10 +113,8 @@ export default class SplitStation extends Group {
this.leftText.setStyle('x', model.position.x - style.SplitStation.horizontalDistance - style.SplitStation.lineLength - leftTextWidth / 2); this.leftText.setStyle('x', model.position.x - style.SplitStation.horizontalDistance - style.SplitStation.lineLength - leftTextWidth / 2);
this.rightText.setStyle('x', model.position.x + style.SplitStation.horizontalDistance + style.SplitStation.lineLength + rightTextWidth / 2); this.rightText.setStyle('x', model.position.x + style.SplitStation.horizontalDistance + style.SplitStation.lineLength + rightTextWidth / 2);
this.add(this.verticalLine); this.add(this.verticalLine);
this.add(this.triangleLeft); this.add(this.arrowLeft);
this.add(this.triangleRight); this.add(this.arrowRight);
this.add(this.leftLine);
this.add(this.rightLine);
this.add(this.leftText); this.add(this.leftText);
this.add(this.rightText); this.add(this.rightText);
} }

View File

@ -43,11 +43,16 @@ class ETime extends Group {
showMode() { showMode() {
this.trainSetButton && this.trainSetButton.show(); this.trainSetButton && this.trainSetButton.show();
} }
setColor(color) {
this.trainSetButton && this.trainSetButton.setStyle({textFill: color});
}
recover() { recover() {
const style = this.model.style;
this.setColor(style.StationStand.trainSetButton.textColor);
} }
setState(model) { setState(model) {
model.noStatus && this.setColor('#7F7F7F');
} }
} }

View File

@ -74,10 +74,19 @@ class EGapStand extends Group {
} }
recover() { recover() {
const style = this.model.style;
this.stand1 && this.stand1.setStyle({ fill:style.StationStand.gapStand.spareColor });
this.stand2 && this.stand2.setStyle({ fill:style.StationStand.gapStand.spareColor });
this.standText && this.standText.setStyle({ textFill:style.StationStand.gapStand.textFill });
}
setColor(color) {
this.stand1 && this.stand1.setStyle({ fill:color });
this.stand2 && this.stand2.setStyle({ fill:color });
this.standText && this.standText.setStyle({ textFill:color });
} }
setState(model) { setState(model) {
// 设置灰显
model.noStatus && this.setColor('#7F7F7F');
} }
} }

View File

@ -512,7 +512,12 @@ export default class Switch extends Group {
section.hide(); section.hide();
} }
} }
setAshShow() {
this.shapeModelA.setColor('#7F7F7F');
this.shapeModelB.setColor('#7F7F7F');
this.shapeModelC.setColor('#7F7F7F');
this.name.getNameText().setStyle({textFill: '#7F7F7F'});
}
setState(model) { setState(model) {
if (!this.isShowShape) return; if (!this.isShowShape) return;
this.recover(); this.recover();
@ -545,6 +550,7 @@ export default class Switch extends Group {
sectionB && sectionB.instance && sectionB.instance.setState(sectionB); sectionB && sectionB.instance && sectionB.instance.setState(sectionB);
} }
} }
model.noStatus && this.setAshShow();
} }
getBoundingRect() { getBoundingRect() {

View File

@ -172,16 +172,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -283,7 +283,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确定】按钮' }, { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确定】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '15' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -331,7 +331,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确定】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确定】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '35' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },

View File

@ -108,16 +108,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -110,16 +110,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -181,13 +181,6 @@ export default {
this.stationName = ''; this.stationName = '';
this.operation = operate.operation; this.operation = operate.operation;
this.cmdType = operate.cmdType; this.cmdType = operate.cmdType;
if (selected._type == 'Station') {
if (selected.zcCode) {
selected = this.$store.getters['map/getDeviceByCode'](selected.zcCode);
} else {
selected._type = '';
}
}
let name = selected.name; let name = selected.name;
if (selected._type == 'Train') { if (selected._type == 'Train') {
name = selected.serviceNumber; name = selected.serviceNumber;

View File

@ -116,7 +116,7 @@ export default {
over: true, over: true,
operation: OperationEvent.Station.atsAutoControlALL.menu.operation, operation: OperationEvent.Station.atsAutoControlALL.menu.operation,
cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING, cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING,
val: this.mode, val: `${!!this.mode}`,
param: { param: {
CheckConflict: this.mode CheckConflict: this.mode
} }

View File

@ -146,16 +146,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -271,7 +271,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确定】按钮' }, { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确定】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '15' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },

View File

@ -164,16 +164,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -65,7 +65,7 @@
<div> <div>
<div style="display: inline-block;width: 150px;">新的车次号</div> <div style="display: inline-block;width: 150px;">新的车次号</div>
<el-input v-model="newTripNum" style="display: inline-block;width: 200px;" size="small" /> <el-input v-model="newTripNum" style="display: inline-block;width: 200px;" size="small" />
<div v-if="newTripNumError" style="font-size: 10px;color: #F00;margin-left: 160px;height: 10px;line-height: 10px"> 请输入正确的车次号</div> <div v-if="newTripNumError" style="font-size: 10px;color: #F00;margin-left: 160px;height: 10px;line-height: 10px;"> 请输入正确的车次号</div>
</div> </div>
<div> <div>
<div style="display: inline-block;width: 150px;">自动排列</div> <div style="display: inline-block;width: 150px;">自动排列</div>

View File

@ -727,11 +727,19 @@ export default {
} }
}, },
initMenus() { initMenus() {
this.basicParamList = [ this.basicParamList = this.$store.state.training.prdType === '01' ? [
{ name: '接收控制', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menu, show: false, disabledName: 'controlMode', mode: 'Center' }, { name: '接收控制', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menu, show: false, disabledName: 'controlMode', mode: 'Center' },
{ name: '交出控制', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menu, show: false, disabledName: 'controlMode', mode: 'None' }, { name: '交出控制', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menu, show: false, disabledName: 'controlMode', mode: 'None' },
{ name: '强行站控', cmdType: CMD.ControlConvertMenu.CMD_CM_FORCE_STATION_CONTROL, operate: OperationEvent.StationControl.forcedStationControl.menu, show:false, securityCommand: true }, { name: '强行站控', cmdType: CMD.ControlConvertMenu.CMD_CM_FORCE_STATION_CONTROL, operate: OperationEvent.StationControl.forcedStationControl.menu, show:false, securityCommand: true },
// { name: '', cmdType: CMD.Section.CMD_SECTION_BLOCK, operate: OperationEvent.Section.lock.menu, show:false, securityCommand: true }, { name: '重启令解', cmdType: CMD.Station.CMD_STATION_RESTART, operate:OperationEvent.Station.stationRestart.menuButton, show: false, securityCommand: true},
{ name: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menu, show: false },
{ name: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menu, show: false },
{ name: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menu, show: false },
{ name: '自排全开', cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING, operate: OperationEvent.Station.atsAutoControlALL.menu, show: false },
{ name: '自排全关', cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING, operate: OperationEvent.Station.humanControlALL.menu, show: false }
] : [{ name: '接收控制', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menu, show: false, disabledName: 'controlMode', mode: 'Center' },
{ name: '交出控制', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menu, show: false, disabledName: 'controlMode', mode: 'None' },
{ name: '强行站控', cmdType: CMD.ControlConvertMenu.CMD_CM_FORCE_STATION_CONTROL, operate: OperationEvent.StationControl.forcedStationControl.menu, show:false, securityCommand: true },
{ name: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menu, show: false }, { name: '追踪全开', cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER, operate: OperationEvent.Station.setAutoTrigger.menu, show: false },
{ name: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menu, show: false }, { name: '追踪全关', cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER, operate: OperationEvent.Station.cancelAutoTrigger.menu, show: false },
{ name: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menu, show: false }, { name: '关区信号', cmdType: CMD.Station.CMD_STATION_CIAREA_CLOSE_ALLSIGNAL, operate: OperationEvent.Station.ciAreaCloseAllSignal.menu, show: false },
@ -795,7 +803,7 @@ export default {
{ name: '扣车', cmdType: CMD.Stand.CMD_STAND_SET_HOLD_TRAIN, operate: OperationEvent.StationStand.setDetainTrain.menuButton, show: false }, { name: '扣车', cmdType: CMD.Stand.CMD_STAND_SET_HOLD_TRAIN, operate: OperationEvent.StationStand.setDetainTrain.menuButton, show: false },
{ name: '取消扣车', cmdType: CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN, operate: OperationEvent.StationStand.cancelDetainTrain.menuButton, show: false }, { name: '取消扣车', cmdType: CMD.Stand.CMD_STAND_CANCEL_HOLD_TRAIN, operate: OperationEvent.StationStand.cancelDetainTrain.menuButton, show: false },
{ name: '越站', cmdType: CMD.Stand.CMD_STAND_SET_JUMP_STOP, operate: OperationEvent.StationStand.setJumpStop.menuButton, show: false }, { name: '越站', cmdType: CMD.Stand.CMD_STAND_SET_JUMP_STOP, operate: OperationEvent.StationStand.setJumpStop.menuButton, show: false },
{ name: '取消越站', cmdType: CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP, operate: OperationEvent.StationStand.cancelJumpStop.menuButton, show: false, securityCommand: true } { name: '取消越站', cmdType: CMD.Stand.CMD_STAND_CANCEL_JUMP_STOP, operate: OperationEvent.StationStand.cancelJumpStop.menuButton, show: false }
]; ];
this.directionRodParamList = [ this.directionRodParamList = [
{ name: '切换左向', cmdType: CMD.DirectionRod.CMD_DIRECTION_CHANGE, operate: OperationEvent.StationStand.setDetainTrain.menuButton, show: false }, { name: '切换左向', cmdType: CMD.DirectionRod.CMD_DIRECTION_CHANGE, operate: OperationEvent.StationStand.setDetainTrain.menuButton, show: false },

View File

@ -183,10 +183,8 @@ export default {
} }
}; };
</script> </script>
<style lang="scss" scoped>
<style scoped>
/deep/ .el-dialog .el-input { /deep/ .el-dialog .el-input {
border: 0 !important; border: 0 !important;
} }
</style> </style>

View File

@ -52,6 +52,16 @@ export default {
handler: this.cancelStoppage, handler: this.cancelStoppage,
cmdType: CMD.Station.CMD_STATION_REMOVE_FAULT cmdType: CMD.Station.CMD_STATION_REMOVE_FAULT
}, },
{
label: '设置车站故障',
handler: this.setStationStoppage,
cmdType: CMD.Station.CMD_STATION_ADD_FAULT
},
{
label: '取消车站故障',
handler: this.cancelStationStoppage,
cmdType: CMD.Station.CMD_STATION_REMOVE_FAULT
},
{ {
label: '触发故障管理', label: '触发故障管理',
handler: this.triggerFaultManagement, handler: this.triggerFaultManagement,
@ -111,16 +121,36 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid && this.selected.zcCode) {
const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
}
});
},
setStationStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) { if (valid) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
} }
}); });
}, },
cancelStationStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
});
},
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -108,7 +108,7 @@ export default {
// { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, // { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
// { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' }, // { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
// { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, // { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
// { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, // { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '5' },
// { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } // { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
// ] // ]
// }, // },

View File

@ -151,16 +151,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -297,7 +297,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '5' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -316,7 +316,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '0' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -520,7 +520,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '10' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -539,7 +539,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '0' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -850,7 +850,7 @@ export default {
productTypes: ['02'], productTypes: ['02'],
stepVOList: [ stepVOList: [
{ deviceType: '05', orderNum: 1, operateCode: '606', tip: '鼠标右键菜单选择【所有进路自排开】'}, { deviceType: '05', orderNum: 1, operateCode: '606', tip: '鼠标右键菜单选择【所有进路自排开】'},
{ deviceType: '05', orderNum: 2, operateCode: '606', tip: '鼠标左键点击【确定】' } { deviceType: '05', orderNum: 2, operateCode: '606', tip: '鼠标左键点击【确定】', val: 'true' }
] ]
}, },
{ {

View File

@ -146,16 +146,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -282,7 +282,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '5' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -301,7 +301,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '0' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -506,7 +506,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '10' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -525,7 +525,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '0' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },

View File

@ -151,16 +151,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -520,7 +520,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '10' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -539,7 +539,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '0' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },

View File

@ -165,16 +165,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -74,7 +74,7 @@
</el-form> </el-form>
<el-row justify="center" class="button-group"> <el-row justify="center" class="button-group">
<el-col :span="12" :offset="7"> <el-col :span="12" :offset="7">
<el-button :id="domIdConfirm" type="primary" :loading="loading" @click="commit">确认</el-button> <el-button :id="domIdConfirm" type="primary" @click="commit">确认</el-button>
<el-button :id="domIdCancel" @click="cancel">取消</el-button> <el-button :id="domIdCancel" @click="cancel">取消</el-button>
<el-button>帮助</el-button> <el-button>帮助</el-button>
</el-col> </el-col>
@ -85,6 +85,7 @@
<script> <script>
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'; import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
export default { export default {
name: 'PlatformDwell', name: 'PlatformDwell',
@ -101,7 +102,6 @@ export default {
maximumDwell: '60', maximumDwell: '60',
notes: '' notes: ''
}, },
loading: false,
rules: {}, rules: {},
dialogShow: false dialogShow: false
}; };
@ -133,7 +133,6 @@ export default {
}, },
methods: { methods: {
doClose() { doClose() {
this.loading = false;
this.dialogShow = false; this.dialogShow = false;
this.$store.dispatch('training/emitTipFresh'); this.$store.dispatch('training/emitTipFresh');
}, },
@ -156,29 +155,14 @@ export default {
commit() { commit() {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
this.$store.dispatch('menuOperation/pushRequestList', {device: this.selected, operation:{ code: OperationEvent.StationStand.setStopTime.menu.operation, name: '设置站台停站时间'}}); this.$store.dispatch('menuOperation/pushRequestList', {
device: this.selected,
operation: { code: OperationEvent.StationStand.setStopTime.menu.operation, name: '设置站台停站时间'},
cmdType: CMD.Stand.CMD_STAND_SET_PARK_TIME,
param: { parkingTime: this.addModel.defaultDwellTime, parkingAlwaysValid: true }
});
this.doClose();
} }
// if (valid) {
// const operate = {
// send: true,
// operation: OperationEvent.Command.planTrain.addPlanTrain.operation
// };
// this.loading = true;
// this.$store.dispatch('training/nextNew', operate).then(({valid}) => {
// this.loading = false;
// if (valid) {
// this.doClose();
// } else {
// this.$refs.noticeInfo.doShow();
// }
// }).catch(() => {
// this.loading = false;
// this.doClose();
// this.$refs.noticeInfo.doShow();
// });
// } else {
// return false;
// }
}); });
} }
} }

View File

@ -13,10 +13,10 @@
</el-table> </el-table>
<el-row justify="center" class="button-group"> <el-row justify="center" class="button-group">
<el-col :span="2" :offset="4" class="button-top"> <el-col :span="2" :offset="4" class="button-top">
<el-button :id="domIdConfirm" size="mini" style="float: left;" :loading="loading" @click="commit">重做</el-button> <el-button size="mini" style="float: left;" :loading="loading" @click="commit">重做</el-button>
</el-col> </el-col>
<el-col :span="2" :offset="12" class="button-top"> <el-col :span="2" :offset="12" class="button-top">
<el-button :id="domIdCancel" size="mini" style="float: right;" @click="cancel">撤销</el-button> <el-button size="mini" style="float: right;" @click="cancel">撤销</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row justify="center" class="button-group"> <el-row justify="center" class="button-group">
@ -60,10 +60,10 @@ export default {
'requestList' 'requestList'
]), ]),
domIdConfirm() { domIdConfirm() {
return OperationEvent.Signal.arrangementRoute.menu.domId; return OperationEvent.Command.commandXian.confirm.domId;
}, },
domIdCancel() { domIdCancel() {
return OperationEvent.Command.cancel.menu.domId; return OperationEvent.Command.commandXian.cancel.domId;
} }
}, },
watch: { watch: {

View File

@ -301,6 +301,7 @@ export default {
}); });
step = { step = {
code: `${this.selected.code}`, code: `${this.selected.code}`,
val: `${routeCode}`,
operation: OperationEvent.Signal.arrangementRoute.menu.operation, operation: OperationEvent.Signal.arrangementRoute.menu.operation,
param: { param: {
routeCode: routeCode routeCode: routeCode

View File

@ -231,16 +231,22 @@ export default {
// //
setStoppage() { setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.setFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.setFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },
// //
cancelStoppage() { cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{ commitOperate(menuOperate.Common.cancelFault, { code: this.selected.zcCode }, 0).then(({valid, operate})=>{
if (valid) { if (valid && this.selected.zcCode) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected); const zcSelected = this.$store.getters['map/getDeviceByCode'](this.selected.zcCode);
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, zcSelected);
} else if (!this.selected.zcCode) {
console.error('该车站无zc设备');
} }
}); });
}, },

View File

@ -253,11 +253,12 @@ export default {
}, },
clickEvent(val) { clickEvent(val) {
this.dialogShow = true; this.dialogShow = true;
if (val === 'adjustDwell') { if (val == 'adjustDwell') {
this.setAdjustDwell(); this.setAdjustDwell();
} }
event.stopPropagation(); event.stopPropagation();
}, },
//
setAdjustDwell() { setAdjustDwell() {
const step = { const step = {
start: true, start: true,

View File

@ -28,48 +28,48 @@ export default {
{ deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' } { deviceType: '06', orderNum: 2, operateCode: '505', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ // {
maxDuration: 8, // maxDuration: 8,
minDuration: 5, // minDuration: 5,
operateType: 'Stand_Set_Hold_Train_Batch', // operateType: 'Stand_Set_Hold_Train_Batch',
skinCode: '06', // skinCode: '06',
trainingName: '批量扣车({10}-{12} 站台)', // trainingName: '批量扣车({10}-{12} 站台)',
trainingRemark: '批量扣车功能', // trainingRemark: '批量扣车功能',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // 产品类型 01 现地 02 行调 // productTypes: ['02'], // 产品类型 01 现地 02 行调
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '515', tip: '鼠标右键菜单选择【批量扣车】' }, // { deviceType: '06', orderNum: 1, operateCode: '515', tip: '鼠标右键菜单选择【批量扣车】' },
{ deviceType: '06', orderNum: 2, operateCode: '515', tip: '鼠标左键点击【确定】按钮' } // { deviceType: '06', orderNum: 2, operateCode: '515', tip: '鼠标左键点击【确定】按钮' }
] // ]
}, // },
{ // {
maxDuration: 8, // maxDuration: 8,
minDuration: 5, // minDuration: 5,
operateType: 'Stand_Cancel_Hold_Train_Batch', // operateType: 'Stand_Cancel_Hold_Train_Batch',
skinCode: '06', // skinCode: '06',
trainingName: '取消批量扣车({10}-{12} 站台)', // trainingName: '取消批量扣车({10}-{12} 站台)',
trainingRemark: '取消批量扣车功能', // trainingRemark: '取消批量扣车功能',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // 产品类型 01 现地 02 行调 // productTypes: ['02'], // 产品类型 01 现地 02 行调
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '516', tip: '鼠标右键菜单选择【取消批量扣车】' }, // { deviceType: '06', orderNum: 1, operateCode: '516', tip: '鼠标右键菜单选择【取消批量扣车】' },
{ deviceType: '06', orderNum: 2, operateCode: '516', tip: '鼠标左键点击【确定】按钮' } // { deviceType: '06', orderNum: 2, operateCode: '516', tip: '鼠标左键点击【确定】按钮' }
] // ]
}, // },
{ // {
maxDuration: 15, // maxDuration: 15,
minDuration: 8, // minDuration: 8,
operateType: 'Stand_Early_Depart', // operateType: 'Stand_Early_Depart',
skinCode: '06', // skinCode: '06',
trainingName: '提前发车({10}-{12}站台)', // trainingName: '提前发车({10}-{12}站台)',
trainingRemark: '提前发车功能', // trainingRemark: '提前发车功能',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['01', '02'], // productTypes: ['01', '02'],
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '501', tip: '鼠标右键菜单选择【提前发车】' }, // { deviceType: '06', orderNum: 1, operateCode: '501', tip: '鼠标右键菜单选择【提前发车】' },
{ deviceType: '06', orderNum: 2, operateCode: '501', tip: '鼠标左键点击【确定】按钮' } // { deviceType: '06', orderNum: 2, operateCode: '501', tip: '鼠标左键点击【确定】按钮' }
] // ]
}, // },
{ {
maxDuration: 15, maxDuration: 15,
minDuration: 8, minDuration: 8,
@ -98,115 +98,115 @@ export default {
{ deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮' } { deviceType: '06', orderNum: 2, operateCode: '503', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ // {
maxDuration: 15, // maxDuration: 15,
minDuration: 8, // minDuration: 8,
operateType: 'Stand_Set_Park_Time', // operateType: 'Stand_Set_Park_Time',
skinCode: '06', // skinCode: '06',
trainingName: '设置停站时间({10}-{12}站台)', // trainingName: '设置停站时间({10}-{12}站台)',
trainingRemark: '设置停站时间(自动, 一直有效)', // trainingRemark: '设置停站时间(自动, 一直有效)',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // productTypes: ['02'],
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' }, // { deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' },
{ deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【自动】', val: '01' }, // { deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【自动】', val: '01' },
{ deviceType: '06', orderNum: 3, operateCode: '509', tip: '鼠标左键点击【确认】按钮' } // { deviceType: '06', orderNum: 3, operateCode: '509', tip: '鼠标左键点击【确认】按钮' }
] // ]
}, // },
{ // {
maxDuration: 15, // maxDuration: 15,
minDuration: 8, // minDuration: 8,
operateType: 'Stand_Set_Park_Time', // operateType: 'Stand_Set_Park_Time',
skinCode: '06', // skinCode: '06',
trainingName: '设置停站时间({10}-{12}站台)', // trainingName: '设置停站时间({10}-{12}站台)',
trainingRemark: '设置停站时间(人工, 20秒, 一直有效)', // trainingRemark: '设置停站时间(人工, 20秒, 一直有效)',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // productTypes: ['02'],
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' }, // { deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' },
{ deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【全人工】', val: '02' }, // { deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【全人工】', val: '02' },
{ deviceType: '06', orderNum: 3, operateCode: '5094', tip: '输入或鼠标点击调整为【20】', val: '20' }, // { deviceType: '06', orderNum: 3, operateCode: '5094', tip: '输入或鼠标点击调整为【20】', val: '20' },
{ deviceType: '06', orderNum: 4, operateCode: '509', tip: '鼠标左键点击【确认】按钮' } // { deviceType: '06', orderNum: 4, operateCode: '509', tip: '鼠标左键点击【确认】按钮' }
] // ]
}, // },
{ // {
maxDuration: 15, // maxDuration: 15,
minDuration: 8, // minDuration: 8,
operateType: 'Stand_Set_Park_Time', // operateType: 'Stand_Set_Park_Time',
skinCode: '06', // skinCode: '06',
trainingName: '设置停站时间({10}-{12}站台)', // trainingName: '设置停站时间({10}-{12}站台)',
trainingRemark: '设置停站时间(人工, 20秒, 一次有效)', // trainingRemark: '设置停站时间(人工, 20秒, 一次有效)',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // productTypes: ['02'],
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' }, // { deviceType: '06', orderNum: 1, operateCode: '509', tip: '鼠标右键菜单选择【设置停站时间】' },
{ deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【全人工】', val: '02' }, // { deviceType: '06', orderNum: 2, operateCode: '5092', tip: '鼠标左键点击,选择【全人工】', val: '02' },
{ deviceType: '06', orderNum: 3, operateCode: '5094', tip: '输入或鼠标点击调整为【20】', val: '20' }, // { deviceType: '06', orderNum: 3, operateCode: '5094', tip: '输入或鼠标点击调整为【20】', val: '20' },
{ deviceType: '06', orderNum: 4, operateCode: '5093', tip: '鼠标左键点击,选择【一次有效】', val: 'false' }, // { deviceType: '06', orderNum: 4, operateCode: '5093', tip: '鼠标左键点击,选择【一次有效】', val: 'false' },
{ deviceType: '06', orderNum: 5, operateCode: '509', tip: '鼠标左键点击【确认】按钮' } // { deviceType: '06', orderNum: 5, operateCode: '509', tip: '鼠标左键点击【确认】按钮' }
] // ]
}, // },
{ // {
maxDuration: 15, // maxDuration: 15,
minDuration: 8, // minDuration: 8,
operateType: 'Stand_Set_Run_Time', // operateType: 'Stand_Set_Run_Time',
skinCode: '06', // skinCode: '06',
trainingName: '设置运行等级({10}-{12} 站台)', // trainingName: '设置运行等级({10}-{12} 站台)',
trainingRemark: '设置运行等级(设置区间 运行等级1运行时间为115一直有效)', // trainingRemark: '设置运行等级(设置区间 运行等级1运行时间为115一直有效)',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // productTypes: ['02'],
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '510', tip: '鼠标右键菜单选择【设置运行等级】' }, // { deviceType: '06', orderNum: 1, operateCode: '510', tip: '鼠标右键菜单选择【设置运行等级】' },
{ deviceType: '06', orderNum: 2, operateCode: '5104', tip: '鼠标左键点击选择【1】', val: '1' }, // { deviceType: '06', orderNum: 2, operateCode: '5104', tip: '鼠标左键点击选择【1】', val: '1' },
{ deviceType: '06', orderNum: 3, operateCode: '5101', tip: '鼠标左键点击选择【115】', val: '115' }, // { deviceType: '06', orderNum: 3, operateCode: '5101', tip: '鼠标左键点击选择【115】', val: '115' },
{ deviceType: '06', orderNum: 4, operateCode: '5103', tip: '鼠标左键点击,选择【一直有效】', val: 'true' }, // { deviceType: '06', orderNum: 4, operateCode: '5103', tip: '鼠标左键点击,选择【一直有效】', val: 'true' },
{ deviceType: '06', orderNum: 5, operateCode: '510', tip: '鼠标左键点击【确认】按钮' } // { deviceType: '06', orderNum: 5, operateCode: '510', tip: '鼠标左键点击【确认】按钮' }
] // ]
}, // },
{ // {
maxDuration: 15, // maxDuration: 15,
minDuration: 8, // minDuration: 8,
operateType: 'Stand_Set_Run_Time', // operateType: 'Stand_Set_Run_Time',
skinCode: '06', // skinCode: '06',
trainingName: '设置运行等级({10}-{12} 站台)', // trainingName: '设置运行等级({10}-{12} 站台)',
trainingRemark: '设置运行等级(设置区间 运行等级自动,一直有效)', // trainingRemark: '设置运行等级(设置区间 运行等级自动,一直有效)',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // productTypes: ['02'],
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '510', tip: '鼠标右键菜单选择【设置运行等级】' }, // { deviceType: '06', orderNum: 1, operateCode: '510', tip: '鼠标右键菜单选择【设置运行等级】' },
{ deviceType: '06', orderNum: 2, operateCode: '5104', tip: '鼠标左键点击,选择【自动】', val: '0' }, // { deviceType: '06', orderNum: 2, operateCode: '5104', tip: '鼠标左键点击,选择【自动】', val: '0' },
{ deviceType: '06', orderNum: 3, operateCode: '5103', tip: '鼠标左键点击,选择【一直有效】', val: 'true' }, // { deviceType: '06', orderNum: 3, operateCode: '5103', tip: '鼠标左键点击,选择【一直有效】', val: 'true' },
{ deviceType: '06', orderNum: 4, operateCode: '510', tip: '鼠标左键点击【确认】按钮' } // { deviceType: '06', orderNum: 4, operateCode: '510', tip: '鼠标左键点击【确认】按钮' }
] // ]
}, // },
{ // {
maxDuration: 15, // maxDuration: 15,
minDuration: 8, // minDuration: 8,
operateType: 'Stand_Set_Hold_Train_Auto', // operateType: 'Stand_Set_Hold_Train_Auto',
skinCode: '06', // skinCode: '06',
trainingName: '区间列车数量限制({10}-{12}站台)', // trainingName: '区间列车数量限制({10}-{12}站台)',
trainingRemark: '区间列车数量限制', // trainingRemark: '区间列车数量限制',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // productTypes: ['02'],
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '517', tip: '鼠标右键菜单选择【区间列车数量限制】' }, // { deviceType: '06', orderNum: 1, operateCode: '517', tip: '鼠标右键菜单选择【区间列车数量限制】' },
{ deviceType: '06', orderNum: 2, operateCode: '517', tip: '鼠标左键点击【确认】按钮' } // { deviceType: '06', orderNum: 2, operateCode: '517', tip: '鼠标左键点击【确认】按钮' }
] // ]
}, // },
{ // {
maxDuration: 15, // maxDuration: 15,
minDuration: 8, // minDuration: 8,
operateType: 'Stand_Cancel_Hold_Train_Auto', // operateType: 'Stand_Cancel_Hold_Train_Auto',
skinCode: '06', // skinCode: '06',
trainingName: '取消区间列车数量限制({10}-{12}站台)', // trainingName: '取消区间列车数量限制({10}-{12}站台)',
trainingRemark: '取消区间列车数量限制', // trainingRemark: '取消区间列车数量限制',
trainingType: 'Stand', // trainingType: 'Stand',
productTypes: ['02'], // productTypes: ['02'],
stepVOList: [ // stepVOList: [
{ deviceType: '06', orderNum: 1, operateCode: '518', tip: '鼠标右键菜单选择【取消区间列车数量限制】' }, // { deviceType: '06', orderNum: 1, operateCode: '518', tip: '鼠标右键菜单选择【取消区间列车数量限制】' },
{ deviceType: '06', orderNum: 2, operateCode: '518', tip: '鼠标左键点击【确认】按钮' } // { deviceType: '06', orderNum: 2, operateCode: '518', tip: '鼠标左键点击【确认】按钮' }
] // ]
}, // },
{ {
maxDuration: 8, maxDuration: 8,
minDuration: 5, minDuration: 5,
@ -282,7 +282,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '5' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -301,7 +301,7 @@ export default {
{ deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '03', orderNum: 3, operateCode: '4071', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '03', orderNum: 4, operateCode: '4072', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '03', orderNum: 5, operateCode: '4073', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '03', orderNum: 6, operateCode: '4074', tip: '鼠标左键点击【确认2】按钮', val: '0' },
{ deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '03', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -366,7 +366,7 @@ export default {
productTypes: ['01', '02'], productTypes: ['01', '02'],
stepVOList: [ stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '101', tip: '鼠标左键菜单选择【定操】' }, { deviceType: '02', orderNum: 1, operateCode: '101', tip: '鼠标左键菜单选择【定操】' },
{ deviceType: '02', orderNum: 2, operateCode: '101', tip: '鼠标左键点击【确定】按钮' } { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -380,7 +380,7 @@ export default {
productTypes: ['01', '02'], productTypes: ['01', '02'],
stepVOList: [ stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '102', tip: '鼠标右键菜单选择【反操】' }, { deviceType: '02', orderNum: 1, operateCode: '102', tip: '鼠标右键菜单选择【反操】' },
{ deviceType: '02', orderNum: 2, operateCode: '102', tip: '鼠标左键点击【确定】按钮' } { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -394,7 +394,7 @@ export default {
productTypes: ['02'], productTypes: ['02'],
stepVOList: [ stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【区段切除】' }, { deviceType: '02', orderNum: 1, operateCode: '111', tip: '鼠标右键菜单选择【区段切除】' },
{ deviceType: '02', orderNum: 2, operateCode: '111', tip: '鼠标左键点击【确定】按钮' } { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -408,7 +408,7 @@ export default {
productTypes: ['02'], productTypes: ['02'],
stepVOList: [ stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【区段激活】' }, { deviceType: '02', orderNum: 1, operateCode: '112', tip: '鼠标右键菜单选择【区段激活】' },
{ deviceType: '02', orderNum: 2, operateCode: '112', tip: '鼠标左键点击【确定】按钮' } { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -440,7 +440,7 @@ export default {
productTypes: ['01'], productTypes: ['01'],
stepVOList: [ stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '103', tip: '鼠标右键菜单选择【道岔单锁】' }, { deviceType: '02', orderNum: 1, operateCode: '103', tip: '鼠标右键菜单选择【道岔单锁】' },
{ deviceType: '02', orderNum: 2, operateCode: '103', tip: '鼠标左键点击【确定】按钮' } { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -471,7 +471,7 @@ export default {
productTypes: ['01'], productTypes: ['01'],
stepVOList: [ stepVOList: [
{ deviceType: '02', orderNum: 1, operateCode: '105', tip: '鼠标右键菜单选择【道岔封锁】' }, { deviceType: '02', orderNum: 1, operateCode: '105', tip: '鼠标右键菜单选择【道岔封锁】' },
{ deviceType: '02', orderNum: 2, operateCode: '105', tip: '鼠标左键点击【确定】按钮' } { deviceType: '02', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -506,7 +506,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '10' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -525,7 +525,7 @@ export default {
{ deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' }, { deviceType: '02', orderNum: 3, operateCode: '1131', tip: '鼠标左键点击【下达】按钮' },
{ deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' }, { deviceType: '02', orderNum: 4, operateCode: '1132', tip: '鼠标左键点击【确认】按钮' },
{ deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' }, { deviceType: '02', orderNum: 5, operateCode: '1133', tip: '鼠标左键点击【确认1】按钮' },
{ deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮' }, { deviceType: '02', orderNum: 6, operateCode: '1134', tip: '鼠标左键点击【确认2】按钮', val: '0' },
{ deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' } { deviceType: '02', orderNum: 7, operateCode: '001', tip: '鼠标左键点击【关闭】按钮' }
] ]
}, },
@ -540,9 +540,9 @@ export default {
trainingType: 'Signal', trainingType: 'Signal',
productTypes: ['01', '02'], productTypes: ['01', '02'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '301', tip: '鼠标右键菜单选择【排列进路】' }, { deviceType: '04', orderNum: 1, operateCode: '301', tip: '鼠标右键菜单选择【始端/终端选择】', codeType:'START_SIGNAL' },
{ deviceType: '04', orderNum: 2, operateCode: '3011', tip: '鼠标左键选择进路名称【{3}】', val: '{4}' }, { deviceType: '04', orderNum: 2, operateCode: '301', tip: '鼠标左键选择进路名称【{3}】', val: '{4}', codeType:'END_SIGNAL' },
{ deviceType: '04', orderNum: 3, operateCode: '301', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 3, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -556,7 +556,7 @@ export default {
productTypes: ['01', '02'], productTypes: ['01', '02'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '303', tip: '鼠标右键菜单选择【取消进路】' }, { deviceType: '04', orderNum: 1, operateCode: '303', tip: '鼠标右键菜单选择【取消进路】' },
{ deviceType: '04', orderNum: 2, operateCode: '303', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -570,7 +570,7 @@ export default {
productTypes: ['01', '02'], productTypes: ['01', '02'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '304', tip: '鼠标右键菜单选择【信号重开】' }, { deviceType: '04', orderNum: 1, operateCode: '304', tip: '鼠标右键菜单选择【信号重开】' },
{ deviceType: '04', orderNum: 2, operateCode: '304', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -585,7 +585,7 @@ export default {
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '315', tip: '鼠标右键菜单选择【进路交自动控】' }, { deviceType: '04', orderNum: 1, operateCode: '315', tip: '鼠标右键菜单选择【进路交自动控】' },
{ deviceType: '04', orderNum: 2, operateCode: '3151', tip: '鼠标左键选择【{3}】进路', val: '{4}' }, { deviceType: '04', orderNum: 2, operateCode: '3151', tip: '鼠标左键选择【{3}】进路', val: '{4}' },
{ deviceType: '04', orderNum: 3, operateCode: '315', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 3, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -600,7 +600,7 @@ export default {
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '314', tip: '鼠标右键菜单选择【进路交人工控】' }, { deviceType: '04', orderNum: 1, operateCode: '314', tip: '鼠标右键菜单选择【进路交人工控】' },
{ deviceType: '04', orderNum: 2, operateCode: '3141', tip: '鼠标左键选择【{3}】进路', val: '{4}' }, { deviceType: '04', orderNum: 2, operateCode: '3141', tip: '鼠标左键选择【{3}】进路', val: '{4}' },
{ deviceType: '04', orderNum: 3, operateCode: '314', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 3, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -614,7 +614,7 @@ export default {
productTypes: ['02'], productTypes: ['02'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '309', tip: '鼠标右键菜单选择【设置通过模式】' }, { deviceType: '04', orderNum: 1, operateCode: '309', tip: '鼠标右键菜单选择【设置通过模式】' },
{ deviceType: '04', orderNum: 2, operateCode: '309', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -628,7 +628,7 @@ export default {
productTypes: ['01'], productTypes: ['01'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '309', tip: '鼠标右键菜单选择【Fleet进路办理】' }, { deviceType: '04', orderNum: 1, operateCode: '309', tip: '鼠标右键菜单选择【Fleet进路办理】' },
{ deviceType: '04', orderNum: 2, operateCode: '309', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -642,7 +642,7 @@ export default {
productTypes: ['02'], productTypes: ['02'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '310', tip: '鼠标右键菜单选择【取消通过模式】' }, { deviceType: '04', orderNum: 1, operateCode: '310', tip: '鼠标右键菜单选择【取消通过模式】' },
{ deviceType: '04', orderNum: 2, operateCode: '310', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -656,7 +656,7 @@ export default {
productTypes: ['01'], productTypes: ['01'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '310', tip: '鼠标右键菜单选择【Fleet进路取消】' }, { deviceType: '04', orderNum: 1, operateCode: '310', tip: '鼠标右键菜单选择【Fleet进路取消】' },
{ deviceType: '04', orderNum: 2, operateCode: '310', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -670,7 +670,7 @@ export default {
productTypes: ['01', '02'], productTypes: ['01', '02'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '318', tip: '鼠标右键菜单选择【人工解锁进路】' }, { deviceType: '04', orderNum: 1, operateCode: '318', tip: '鼠标右键菜单选择【人工解锁进路】' },
{ deviceType: '04', orderNum: 2, operateCode: '318', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -684,7 +684,7 @@ export default {
productTypes: ['01'], productTypes: ['01'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '308', tip: '鼠标右键菜单选择【信号机引导办理】' }, { deviceType: '04', orderNum: 1, operateCode: '308', tip: '鼠标右键菜单选择【信号机引导办理】' },
{ deviceType: '04', orderNum: 2, operateCode: '308', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -698,7 +698,7 @@ export default {
productTypes: ['01'], productTypes: ['01'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '306', tip: '鼠标右键菜单选择【信号封锁】' }, { deviceType: '04', orderNum: 1, operateCode: '306', tip: '鼠标右键菜单选择【信号封锁】' },
{ deviceType: '04', orderNum: 2, operateCode: '306', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },
{ {
@ -729,7 +729,7 @@ export default {
productTypes: ['01', '02'], productTypes: ['01', '02'],
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '316', tip: '鼠标右键菜单选择【查询进路控制状态】' }, { deviceType: '04', orderNum: 1, operateCode: '316', tip: '鼠标右键菜单选择【查询进路控制状态】' },
{ deviceType: '04', orderNum: 2, operateCode: '316', tip: '鼠标左键点击【确定】按钮' } { deviceType: '04', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【确定】按钮' }
] ]
}, },

View File

@ -489,7 +489,7 @@ export const goOtherPlatformMenu = { // 导航栏快速切换平台
designsdy: '/login?project=sdy', designsdy: '/login?project=sdy',
ntyl: '/design/login?project=ntyl', ntyl: '/design/login?project=ntyl',
designntyl: '/login?project=ntyl', designntyl: '/login?project=ntyl',
ntyc: '/design/login?project=ntyl', ntyc: '/design/login?project=ntyc',
designntyc: '/login?project=ntyc' designntyc: '/login?project=ntyc'
}; };
export const ProjectList = [ export const ProjectList = [

View File

@ -204,7 +204,9 @@ export default {
/** 关站信号 */ /** 关站信号 */
CMD_STATION_CLOSE_ALLSIGNAL: {value: 'Station_Close_AllSignal', label:'关站信号'}, CMD_STATION_CLOSE_ALLSIGNAL: {value: 'Station_Close_AllSignal', label:'关站信号'},
/** 关区信号 */ /** 关区信号 */
CMD_STATION_CIAREA_CLOSE_ALLSIGNAL: {value: 'Station_CIArea_Close_AllSignal', label: '关区信号'} CMD_STATION_CIAREA_CLOSE_ALLSIGNAL: {value: 'Station_CIArea_Close_AllSignal', label: '关区信号'},
/** 重启令解 */
CMD_STATION_RESTART: {value: 'Station_Restart', label: '重启令解'}
}, },
// 列车 // 列车

View File

@ -48,6 +48,9 @@ export const deviceFaultType = {
ZcControl:[ ZcControl:[
{label: 'zc故障', value: 'FAULT'} {label: 'zc故障', value: 'FAULT'}
], ],
Station: [
{label: '联锁机故障', value: 'INTERLOCK_MACHINE_FAULT'}
],
Train: [ Train: [
{label: '通信异常', value: 'COMMUNICATION_ABNORMAL'}, {label: '通信异常', value: 'COMMUNICATION_ABNORMAL'},
{label: '驾驶故障', value: 'DRIVE_FAULT'} {label: '驾驶故障', value: 'DRIVE_FAULT'}

View File

@ -234,6 +234,16 @@ export const OperationEvent = {
operation: '0082', operation: '0082',
domId: '_Tips-commandHaerbin-confirmCr2{BOTTOM}' domId: '_Tips-commandHaerbin-confirmCr2{BOTTOM}'
} }
},
commandXian: {
confirm: {
operation: '009',
domId: '_Tips-commandXian-confirm{TOP}'
},
cancel: {
operation: '0091',
domId: '_Tips-commandXian-cancel{TOP}'
}
} }
}, },
@ -2052,6 +2062,12 @@ export const OperationEvent = {
operation: '6124', operation: '6124',
domId: '_Tips-Station-ciAreaCloseAllSignal-menu{BOTTOM}' domId: '_Tips-Station-ciAreaCloseAllSignal-menu{BOTTOM}'
} }
},
stationRestart: {
menuButton: {
operation: '613',
domId: '_Tips-Station-stationRestart'
}
} }
}, },

View File

@ -58,7 +58,6 @@ export default {
}, },
getMapByCode() { getMapByCode() {
const project = getSessionStorage('project'); const project = getSessionStorage('project');
console.log(project, GetMapListByProjectList.includes(project));
return GetMapListByProjectList.includes(project); return GetMapListByProjectList.includes(project);
} }
}, },

View File

@ -1,41 +1,6 @@
<template> <template>
<el-dialog :title="title" :visible.sync="dialogVisible" width="500px" :before-close="doClose" center> <el-dialog :title="title" :visible.sync="dialogVisible" width="500px" :before-close="doClose" center>
<!--<data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />--> <data-form ref="dataform" :form="form" :form-model="formModel" :rules="rules" />
<el-form ref="form" :model="formModel" label-width="120px" :rules="rules">
<el-form-item label="发布数据地图" prop="dataMapId">
<el-select v-model="formModel.dataMapId" placeholder="请选择" @change="changeMapId">
<el-option
v-for="item in mapList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="发布地图车站" prop="dataStationCode">
<el-select v-model="formModel.dataStationCode" placeholder="请选择">
<el-option
v-for="item in dataStationList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="公共数据" prop="common">
<el-switch v-model="formModel.common" />
</el-form-item>
<el-form-item v-if="!formModel.common" label="关联车站" prop="stationCode">
<el-select v-model="formModel.stationCode" placeholder="请选择">
<el-option
v-for="item in stationList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="doCreate">{{ $t('global.confirm') }}</el-button> <el-button type="primary" @click="doCreate">{{ $t('global.confirm') }}</el-button>
<el-button @click="doClose">{{ $t('global.cancel') }}</el-button> <el-button @click="doClose">{{ $t('global.cancel') }}</el-button>
@ -61,7 +26,7 @@ export default {
common: false, common: false,
stationCode: '' stationCode: ''
}, },
mapList: [], mapList: [], // 线
dataStationList: [], dataStationList: [],
ibpStationMap: {}, ibpStationMap: {},
ibpMap: {} ibpMap: {}
@ -74,6 +39,7 @@ export default {
items: [ items: [
{ prop: 'dataMapId', label: '发布数据地图:', type: 'select', options: this.mapList, change: true, onChange: this.changeMapId}, { prop: 'dataMapId', label: '发布数据地图:', type: 'select', options: this.mapList, change: true, onChange: this.changeMapId},
{ prop: 'dataStationCode', label: '发布地图车站:', type: 'select', options: this.dataStationList }, { prop: 'dataStationCode', label: '发布地图车站:', type: 'select', options: this.dataStationList },
{ prop: 'common', label: '公共数据:', type: 'switchBox' },
{ prop: 'stationCode', label: '关联车站:', type: 'select', options: this.stationList } { prop: 'stationCode', label: '关联车站:', type: 'select', options: this.stationList }
] ]
}; };
@ -96,7 +62,6 @@ export default {
}, },
async created () { async created () {
this.getIbpList(); this.getIbpList();
this.getStationLIst();
}, },
methods: { methods: {
async getIbpList() { async getIbpList() {
@ -145,9 +110,10 @@ export default {
}, },
doShow() { doShow() {
this.dialogVisible = true; this.dialogVisible = true;
this.getStationLIst();
}, },
doCreate() { doCreate() {
this.$refs.form.validate(() => { this.$refs.dataform.validateForm(() => {
const param = { const param = {
mapId: this.$route.params.mapId, mapId: this.$route.params.mapId,
ibpId: this.ibpMap[this.formModel.dataMapId + '-' + this.formModel.dataStationCode], ibpId: this.ibpMap[this.formModel.dataMapId + '-' + this.formModel.dataStationCode],
@ -163,13 +129,13 @@ export default {
}); });
}, },
doClose() { doClose() {
this.$refs.form.resetFields(); this.$refs.dataform.resetForm();
this.dialogVisible = false; this.dialogVisible = false;
}, },
async changeMapId(val) { async changeMapId(val) {
try { try {
const res = await getStationList(val); const res = await getStationList(val);
this.dataStationList = []; this.dataStationList = []; //
this.formModel.dataStationCode = ''; this.formModel.dataStationCode = '';
if (res.code == 200 || this.ibpStationMap[val]) { if (res.code == 200 || this.ibpStationMap[val]) {
res.data.forEach(station => { res.data.forEach(station => {

View File

@ -89,9 +89,14 @@ export default {
watch: { watch: {
'$route' () { '$route' () {
this.reloadTable(); this.reloadTable();
this.getStationLists();
} }
}, },
async created () { async created () {
this.getStationLists();
},
methods: {
async getStationLists() {
try { try {
const res = await getStationList(this.$route.params.mapId); const res = await getStationList(this.$route.params.mapId);
this.stationList = []; this.stationList = [];
@ -108,7 +113,6 @@ export default {
console.log(error); console.log(error);
} }
}, },
methods: {
queryFunction(params) { queryFunction(params) {
const param = { const param = {
...params, ...params,

View File

@ -141,6 +141,7 @@ export default {
this.$store.dispatch('ibp/deleteIbpDevices', model); this.$store.dispatch('ibp/deleteIbpDevices', model);
}, },
async handleSave() { async handleSave() {
if (this.$store.state.ibp.ibp.background) {
try { try {
const param = { const param = {
drawData: this.$store.state.ibp.ibp drawData: this.$store.state.ibp.ibp
@ -150,6 +151,9 @@ export default {
} catch (error) { } catch (error) {
this.$message.success('保存失败:' + error.message); this.$message.success('保存失败:' + error.message);
} }
} else {
this.$message.error('ibp盘背景错误请检查数据后重试');
}
}, },
setIbpShow(data) { setIbpShow(data) {
if (data) { if (data) {

View File

@ -197,7 +197,7 @@ export default {
} catch (error) { } catch (error) {
console.log(error, '==='); console.log(error, '===');
this.loading = false; this.loading = false;
this.$alert('当前ibp盘数据不存在', '信息', { this.$alert('当前ibp盘数据有问题请检查', '信息', {
confirmButtonText: '确定', confirmButtonText: '确定',
callback: action => {} callback: action => {}
}); });

View File

@ -11,6 +11,9 @@
<script> <script>
import { postTrainingRulesData, putTrainingRulesData, getPlaceholderList } from '@/api/management/operation'; import { postTrainingRulesData, putTrainingRulesData, getPlaceholderList } from '@/api/management/operation';
import { getPublishMapListOnline } from '@/api/jmap/map'; import { getPublishMapListOnline } from '@/api/jmap/map';
import ConstConfig from '@/scripts/ConstConfig';
import Cookies from 'js-cookie';
import { getTrainingOperateTypeMap } from '@/scripts/ConstDic';
export default { export default {
name: 'TrainingEdit', name: 'TrainingEdit',
@ -102,13 +105,9 @@ export default {
created() { created() {
this.init(); this.init();
}, },
// beforeupdate(data) {
// this.$refs.dataform.clearValidate();
// },
methods: { methods: {
init() { init() {
// //
// this.$refs.dataform.resetForm();
this.mapIdList = []; this.mapIdList = [];
this.productTypesList = [{ value:'01', label:'现地'}, {value:'02', label:'行调'}]; this.productTypesList = [{ value:'01', label:'现地'}, {value:'02', label:'行调'}];
getPublishMapListOnline().then(response => { getPublishMapListOnline().then(response => {
@ -122,73 +121,13 @@ export default {
// //
this.trainingTypeList = []; this.trainingTypeList = [];
this.$Dictionary.trainingType().then(list => { const trainingDeviceTypeList = ConstConfig.ConstSelect.trainingDeviceType || {};
this.trainingTypeList = list.map(item => { for (const val in trainingDeviceTypeList) {
const params = {}; this.trainingTypeList.push({value: val, label: Cookies.get('user_lang') == 'en' ? trainingDeviceTypeList[val].enlabel : trainingDeviceTypeList[val].label});
params.label = item.name; }
params.value = item.code;
return params;
});
});
//
this.trainingOperateTypeMap = {};
this.$Dictionary.stationControl().then(list => {
this.trainingOperateTypeMap['01'] = list.map(item => {
const params = {};
params.label = item.name;
params.value = item.code;
return params;
}); //
});
this.$Dictionary.signalOperation().then(list => {
this.trainingOperateTypeMap['02'] = list.map(item => {
const params = {};
params.label = item.name;
params.value = item.code;
return params;
}); //
});
this.$Dictionary.switchOperation().then(list => {
this.trainingOperateTypeMap['03'] = list.map(item => {
const params = {};
params.label = item.name;
params.value = item.code;
return params;
}); //
});
this.$Dictionary.sectionOperation().then(list => {
this.trainingOperateTypeMap['04'] = list.map(item => {
const params = {};
params.label = item.name;
params.value = item.code;
return params;
}); //
});
this.$Dictionary.stationStandOperation().then(list => {
this.trainingOperateTypeMap['05'] = list.map(item => {
const params = {};
params.label = item.name;
params.value = item.code;
return params;
}); //
});
this.$Dictionary.trainPlanOperation().then(list => {
this.trainingOperateTypeMap['06'] = list.map(item => {
const params = {};
params.label = item.name;
params.value = item.code;
return params;
}); //
});
this.$Dictionary.trainOperation().then(list => {
this.trainingOperateTypeMap['07'] = list.map(item => {
const params = {};
params.label = item.name;
params.value = item.code;
return params;
}); //
});
//
this.trainingOperateTypeMap = getTrainingOperateTypeMap();
}, },
async show(data) { async show(data) {
this.loading = false; this.loading = false;
@ -210,9 +149,6 @@ export default {
}; };
} else { } else {
this.formModel.mapId = this.$route.query.mapId; this.formModel.mapId = this.$route.query.mapId;
// this.formModel = {
// mapId: this.$route.query.mapId
// };
} }
}, },
repliceName(fieldValue, enumList) { repliceName(fieldValue, enumList) {
@ -307,7 +243,6 @@ export default {
productTypes:[] productTypes:[]
}; };
this.$refs.dataform.resetForm(); this.$refs.dataform.resetForm();
// this.$refs.dataform.clearValidate();
this.dialogVisible = false; this.dialogVisible = false;
} }
} }

View File

@ -301,7 +301,7 @@ export default {
}, },
mounted() { mounted() {
document.title = loginInfo[this.project].browserTitle || loginInfo[this.project].title; document.title = loginInfo[this.project].browserTitle || loginInfo[this.project].title;
if (!this.syncLogin && !this.project.endsWith('heb') && !this.project.endsWith('ntyl')) { if (!(!this.syncLogin && this.project.endsWith('heb')) && !this.project.endsWith('ntyl')) {
this.loginRefresh(); this.loginRefresh();
} }
}, },

View File

@ -1,6 +1,6 @@
<template> <template>
<el-dialog <el-dialog
title="创建留言板" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="30%" width="30%"
:before-close="handleClose" :before-close="handleClose"
@ -10,7 +10,7 @@
<el-input v-model="form.title" style="width: 200px;" /> <el-input v-model="form.title" style="width: 200px;" />
</el-form-item> </el-form-item>
<el-form-item label="归属项目:" prop="project"> <el-form-item label="归属项目:" prop="project">
<el-select v-model="form.project" placeholder="请选择"> <el-select v-model="form.project" :disabled="update" placeholder="请选择">
<el-option <el-option
v-for="item in projectOptionList" v-for="item in projectOptionList"
:key="item.value" :key="item.value"
@ -22,13 +22,14 @@
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="handleClose"> </el-button> <el-button @click="handleClose"> </el-button>
<el-button type="primary" @click="commit"> </el-button> <el-button v-if="!update" type="primary" @click="commit"> </el-button>
<el-button v-if="update" type="primary" @click="updateCommit"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { createPost } from '@/api/learn'; import { createPost, updatePost } from '@/api/learn';
export default { export default {
name: 'Create', name: 'Create',
props:{ props:{
@ -42,10 +43,13 @@ export default {
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
postId: '',
form:{ form:{
title: '', title: '',
project: '' project: ''
}, },
title: '',
update: false,
rules: { rules: {
title: [ title: [
{ required: true, message: '请填写留言板名称', trigger: 'blur' } { required: true, message: '请填写留言板名称', trigger: 'blur' }
@ -58,11 +62,35 @@ export default {
}, },
methods: { methods: {
handleClose() { handleClose() {
this.form = { title: '', project: '' };
this.$refs.form.resetFields(); this.$refs.form.resetFields();
this.dialogVisible = false; this.dialogVisible = false;
}, },
doShow() { doShow(data) {
this.dialogVisible = true; this.dialogVisible = true;
this.postId = '';
this.update = false;
this.title = '创建留言板';
if (data) {
this.update = true;
this.title = '修改留言板';
this.form.title = data.title;
this.form.project = data.project;
this.postId = data.id;
}
},
updateCommit() {
this.$refs['form'].validate((valid) => {
if (valid) {
updatePost(this.postId, this.form).then(resp => {
this.$emit('reloadTable');
this.handleClose();
}).catch(() => {
this.$message.error('修改留言板失败!');
this.handleClose();
});
}
});
}, },
commit() { commit() {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {

View File

@ -9,6 +9,7 @@
import { queryPostPage } from '@/api/learn'; import { queryPostPage } from '@/api/learn';
import { ProjectList} from '@/scripts/ProjectConfig'; import { ProjectList} from '@/scripts/ProjectConfig';
import CreateDraft from './create'; import CreateDraft from './create';
export default { export default {
name: 'Manage', name: 'Manage',
components:{ components:{
@ -60,6 +61,10 @@ export default {
{ {
name: '进入', name: '进入',
handleClick: this.handleEnter handleClick: this.handleEnter
},
{
name: '修改',
handleClick: this.handleUpdate
} }
] ]
} }
@ -104,6 +109,9 @@ export default {
} }
}); });
window.open(routeData.href, '_blank', 'noopener noreferrer'); window.open(routeData.href, '_blank', 'noopener noreferrer');
},
handleUpdate(index, row) {
this.$refs.createDraft.doShow(row);
} }
} }
}; };

View File

@ -23,7 +23,7 @@
@runPlanLoadShow="runPlanLoadShow" @runPlanLoadShow="runPlanLoadShow"
/> />
<div class="display-draft" :class="{'haerbin_btn_box': $route.query.lineCode == '07'}" :style="{bottom: offsetBottom + 'px'}"> <div class="display-draft" :class="{'haerbin_btn_box': $route.query.lineCode == '07'||$route.query.lineCode == '14'}" :style="{bottom: offsetBottom + 'px'}">
<el-button-group class="button-group-box"> <el-button-group class="button-group-box">
<el-button v-if="project !='bjd'" type="primary" size="small" @click="back">{{ projectDevice?'退出':$t('display.demon.back') }}</el-button> <el-button v-if="project !='bjd'" type="primary" size="small" @click="back">{{ projectDevice?'退出':$t('display.demon.back') }}</el-button>
<template v-if="!dataError&&project != 'bjd'"> <template v-if="!dataError&&project != 'bjd'">

View File

@ -26,7 +26,7 @@
<el-button v-if="messageBoard" size="small" @click="messageBoardShow">留言板</el-button> <el-button v-if="messageBoard" size="small" @click="messageBoardShow">留言板</el-button>
</el-button-group> </el-button-group>
</div> </div>
<div class="display-draft" :class="{'display-type-hb': lineCode == '07' && $store.state.training.prdType=='01', 'haerbin_btn_box': lineCode == '07'}" :style="{bottom: offsetBottom + 'px'}"> <div class="display-draft" :class="{'haerbin_btn_box': lineCode == '07'||lineCode=='14'}" :style="{bottom: offsetBottom + 'px'}">
<el-button-group class="button-group-box"> <el-button-group class="button-group-box">
<el-button type="primary" :loading="backLoading" size="small" @click="back">退出</el-button> <el-button type="primary" :loading="backLoading" size="small" @click="back">退出</el-button>
<template v-if="!dataError"> <!-- 地图错误判断 --> <template v-if="!dataError"> <!-- 地图错误判断 -->

View File

@ -115,7 +115,7 @@ export default {
this.selected = device; this.selected = device;
this.$store.dispatch('menuOperation/setSelected', {device: device, subType: em.subType}); this.$store.dispatch('menuOperation/setSelected', {device: device, subType: em.subType});
this.$store.dispatch('menuOperation/setLeftClickCount'); this.$store.dispatch('menuOperation/setLeftClickCount');
if (this.$route.query.lineCode == '07') { if (this.$route.query.lineCode == '07' || this.$route.query.lineCode == '14') {
this.$store.dispatch('menuOperation/setMenuChange', {device: device, subType: em.subType}); this.$store.dispatch('menuOperation/setMenuChange', {device: device, subType: em.subType});
} }
this.$store.dispatch('training/emitTipFresh'); this.$store.dispatch('training/emitTipFresh');

View File

@ -501,10 +501,7 @@ export default {
model.rightStopPointOffset = model.rightStopPointOffset || model.lengthFact - 5; model.rightStopPointOffset = model.rightStopPointOffset || model.lengthFact - 5;
} }
const changeSectionList = this.handleOtherSectionChange(model); const changeSectionList = this.handleOtherSectionChange(model);
// let changeStandList = [];
// if (this.editModel.stationCode != this.selected.stationCode) { //
const changeStandList = this.handleRelevanceStand(model); const changeStandList = this.handleRelevanceStand(model);
// }
models = [...changeSectionList, ...changeStandList]; models = [...changeSectionList, ...changeStandList];
this.$emit('updateMapModel', models); this.$emit('updateMapModel', models);
@ -512,8 +509,10 @@ export default {
this.oldLeftSectionCode = model.leftSectionCode; this.oldLeftSectionCode = model.leftSectionCode;
this.oldRightSectionCode = model.rightSectionCode; this.oldRightSectionCode = model.rightSectionCode;
this.field = ''; this.field = '';
this.$emit('deviceSelect', ''); //
} else { } else {
this.$message('还有属性未填写,修改未生效!'); this.$message('还有属性未填写,修改未生效!');
this.$emit('deviceSelect', '');
} }
}); });
}, },

View File

@ -23,6 +23,8 @@ export default {
methods:{ methods:{
create() { // create() { //
const createArr = []; // model const createArr = []; // model
// const changeSectionLists = [];
// const changeSectionList = this.changeSectionsAttr(); //
const changeSectionList = this.changeSectionAttr(); // const changeSectionList = this.changeSectionAttr(); //
changeSectionList.forEach(section => { changeSectionList.forEach(section => {
if (section['typeModel'] && section['typeModel'] == 'start') { // if (section['typeModel'] && section['typeModel'] == 'start') { //
@ -35,7 +37,7 @@ export default {
if (this.handleResetPoint(item.points)) { if (this.handleResetPoint(item.points)) {
sectionEnd = item.points[item.points.length - 1]; sectionEnd = item.points[item.points.length - 1];
} else { } else {
sectionEnd = item.points[0]; sectionEnd = item.points.length == 2 ? item.points[0] : item.points[item.points.length - 2];
} }
if ((sectionEnd.y == section.points[section.points.length - 1].y) || (sectionEnd.x == section.points[section.points.length - 1].x)) { // if ((sectionEnd.y == section.points[section.points.length - 1].y) || (sectionEnd.x == section.points[section.points.length - 1].x)) { //
sectionB = item; sectionB = item;
@ -50,13 +52,13 @@ export default {
if (this.handleResetPoint(section.points)) { if (this.handleResetPoint(section.points)) {
intersection = section.points[section.points.length - 1]; intersection = section.points[section.points.length - 1];
} else { } else {
intersection = section.points[0]; intersection = section.points.length == 2 ? section.points[0] : section.points[section.points.length - 2];
} }
let skew; let skew;
if (this.handleResetPoint(sectionC.points)) { if (this.handleResetPoint(sectionC.points)) {
skew = sectionC.points[sectionC.points.length - 1]; skew = sectionC.points[sectionC.points.length - 1];
} else { } else {
skew = sectionC.points[0]; skew = sectionC.points.length == 2 ? sectionC.points[0] : sectionC.points[sectionC.points.length - 2];
} }
const data = { const data = {
code: getUID('W', [...this.switchList, ...createArr]), code: getUID('W', [...this.switchList, ...createArr]),
@ -91,7 +93,7 @@ export default {
list.forEach(item => { list.forEach(item => {
let sectionStart; let sectionStart;
if (this.handleResetPoint(item.points)) { if (this.handleResetPoint(item.points)) {
sectionStart = item.points[0]; sectionStart = item.points.length == 2 ? item.points[0] : item.points[item.points.length - 2];
} else { } else {
sectionStart = item.points[item.points.length - 1]; sectionStart = item.points[item.points.length - 1];
} }
@ -106,13 +108,13 @@ export default {
const switchModel = getModel('Switch'); const switchModel = getModel('Switch');
let intersection; let intersection;
if (this.handleResetPoint(section.points)) { if (this.handleResetPoint(section.points)) {
intersection = section.points[0]; intersection = section.points.length == 2 ? section.points[0] : section.points[section.points.length - 2];
} else { } else {
intersection = section.points[section.points.length - 1]; intersection = section.points[section.points.length - 1];
} }
let skew; let skew;
if (this.handleResetPoint(sectionC.points)) { if (this.handleResetPoint(sectionC.points)) {
skew = sectionC.points[0]; skew = sectionC.points.length == 2 ? sectionC.points[0] : sectionC.points[sectionC.points.length - 2];
} else { } else {
skew = sectionC.points[sectionC.points.length - 1]; skew = sectionC.points[sectionC.points.length - 1];
} }
@ -140,6 +142,92 @@ export default {
!swch && createArr.push(model); // !swch && createArr.push(model); //
} }
} }
// if (item['typeModel'] == 'start') { //
// const section = item.A;
// const sectionB = item.B;
// const sectionC = item.C;
// if (section.code && sectionB.code && sectionC.code) {
// const uname = 'W' + section.name.replace('T', '');
// const switchModel = getModel('Switch');
// let intersection;
// if (this.handleResetPoint(section.points)) {
// intersection = section.points[section.points.length - 1];
// } else {
// intersection = section.points.length == 2 ? section.points[0] : section.points[section.points.length - 2];
// }
// let skew;
// if (this.handleResetPoint(sectionC.points)) {
// skew = sectionC.points[sectionC.points.length - 1];
// } else {
// skew = sectionC.points.length == 2 ? sectionC.points[0] : sectionC.points[sectionC.points.length - 2];
// }
// const data = {
// code: getUID('W', [...this.switchList, ...createArr]),
// name: uname,
// nameShow: true,
// timeoutShow: true,
// sectionACode: section.code,
// sectionBCode: sectionB.code,
// sectionCCode: sectionC.code,
// turnTime: 3,
// intersection: {
// x: intersection.x,
// y: intersection.y
// },
// skew: {
// x: skew.x,
// y: skew.y
// },
// normalPosition: 1 //
// };
// const model = Object.assign(switchModel, data);
// const swch = this.findSwitchData(model.sectionACode, model.sectionBCode, model.sectionCCode);
// !swch && createArr.push(model); //
// }
// }
// if (item['typeModel'] == 'end') { //
// const section = item.A;
// const sectionB = item.B;
// const sectionC = item.C;
// if (section.code && sectionB.code && sectionC.code) {
// const uname = 'W' + section.name.replace('T', '');
// const switchModel = getModel('Switch');
// let intersection;
// if (this.handleResetPoint(section.points)) {
// intersection = section.points.length == 2 ? section.points[0] : section.points[section.points.length - 2];
// } else {
// intersection = section.points[section.points.length - 1];
// }
// let skew;
// if (this.handleResetPoint(sectionC.points)) {
// skew = sectionC.points.length == 2 ? sectionC.points[0] : sectionC.points[sectionC.points.length - 2];
// } else {
// skew = sectionC.points[sectionC.points.length - 1];
// }
// const data = {
// code: getUID('W', [...this.switchList, ...createArr]),
// name: uname,
// nameShow: true,
// timeoutShow: true,
// sectionACode: section.code,
// sectionBCode: sectionB.code,
// sectionCCode: sectionC.code,
// turnTime: 3,
// intersection: {
// x: intersection.x,
// y: intersection.y
// },
// skew: {
// x: skew.x,
// y: skew.y
// },
// normalPosition: 1 //
// };
// const model = Object.assign(switchModel, data);
// const swch = this.findSwitchData(model.sectionACode, model.sectionBCode, model.sectionCCode);
// !swch && createArr.push(model); //
// }
// }
} }
}); });
this.$confirm(this.$t('tip.confirmBatchGeneration'), this.$t('tip.hint'), { this.$confirm(this.$t('tip.confirmBatchGeneration'), this.$t('tip.hint'), {
@ -147,6 +235,8 @@ export default {
cancelButtonText: this.$t('tip.cancel'), cancelButtonText: this.$t('tip.cancel'),
type: 'warning' type: 'warning'
}).then((res) => { }).then((res) => {
// console.log(createArr, changeSectionLists);
// debugger;
const modelsList = this.createSwitchSection(createArr, changeSectionList); const modelsList = this.createSwitchSection(createArr, changeSectionList);
modelsList.forEach(item => { modelsList.forEach(item => {
createArr.push(item); createArr.push(item);
@ -157,6 +247,133 @@ export default {
this.$message( this.$t('tip.cancelGeneration')); this.$message( this.$t('tip.cancelGeneration'));
}); });
}, },
findArr(arr) {
if (arr[0].slope !== arr[1].slope && arr[0].slope !== arr[2].slope) {
return arr[0];
}
for (var i = 0, len = arr.length; i < len; i++) {
if (arr[i].slope !== arr[0].slope) {
return arr[i];
}
}
},
//
// changeSectionsAttr() {
// const pointMap = {};
// const ponitMapNew = {};
// this.sectionList.forEach(item=> {
// if (item.type == '01' || item.type == '03') {
// const ponits = item.points;
// const startKey = ponits[0].x + '-' + ponits[0].y;
// const endKey = ponits[ponits.length - 1].x + '-' + ponits[ponits.length - 1].y;
// if (pointMap[startKey]) {
// pointMap[startKey].count++;
// pointMap[startKey].lists.push(item);
// if (pointMap[startKey].count >= 2) { ponitMapNew[startKey] = pointMap[startKey]; }
// } else {
// pointMap[startKey] = {count: 0, lists: [item]};
// }
// if (pointMap[endKey]) {
// pointMap[endKey].count++;
// pointMap[endKey].lists.push(item);
// if (pointMap[endKey].count >= 2) { ponitMapNew[endKey] = pointMap[endKey]; }
// } else {
// pointMap[endKey] = {count: 0, lists: [item]};
// }
// }
// });
// const keys = Object.keys(ponitMapNew);
// const switchSections = [];
// keys.forEach(key => {
// if (ponitMapNew[key].count == 2) {
// const slopeList = [];
// ponitMapNew[key].lists.forEach(sectionModel => {
// let slope = '';
// const points = sectionModel.points;
// const startKey = points[0].x + '-' + points[0].y;
// const endKey = points[points.length - 1].x + '-' + points[points.length - 1].y;
// if (key == startKey) {
// slope = ( points[1].y - points[0].y ) / ( points[1].x - points[0].x );
// }
// if (key == endKey) {
// slope = ( points[points.length - 1].y - points[points.length - 2].y ) / ( points[points.length - 1].x - points[points.length - 2].x );
// }
// slopeList.push({slope: slope, code: sectionModel.code, model: sectionModel});
// });
// const arr = [];
// let A, B;
// const sectionModelC = this.findArr(slopeList);
// slopeList.forEach(ele => {
// if (ele.slope != sectionModelC.slope) {
// arr.push(ele);
// }
// });
// const C = sectionModelC.model;
// const pointsC = C.points;
// arr.forEach(item => {
// const sectionModel = item.model;
// const points = sectionModel.points;
// const startKey = points[0].x + '-' + points[0].y;
// const endKey = points[points.length - 1].x + '-' + points[points.length - 1].y;
// const startKeyC = pointsC[0].x + '-' + pointsC[0].y;
// const endKeyC = pointsC[pointsC.length - 1].x + '-' + pointsC[pointsC.length - 1].y;
// let pointC = null;
// if (key == startKeyC) {
// pointC = JSON.parse(JSON.stringify(pointsC[1]));
// }
// if (key == endKeyC) {
// pointC = JSON.parse(JSON.stringify(pointsC[pointsC.length - 2]));
// }
// let acuteAngle;
// if (key == startKey) {
// acuteAngle = this.handleAngle([points[1], points[0], pointC]);
// }
// if (key == endKey) {
// acuteAngle = this.handleAngle([points[points.length - 2], points[points.length - 1], pointC]);
// }
// if (acuteAngle) {
// B = item.model;
// } else {
// A = item.model;
// }
// });
// let typeModel;
// if (key == A.points[A.points.length - 1].x + '-' + A.points[A.points.length - 1].y) {
// A.rightSectionCode = '';
// A.sepTypeRight = '00'; //
// B.leftSectionCode = '';
// B.sepTypeLeft = '00';
// C.leftSectionCode = '';
// C.sepTypeLeft = '00';
// typeModel = 'start';
// }
// if (key == A.points[0].x + '-' + A.points[0].y) {
// A.leftSectionCode = '';
// A.sepTypeLeft = '00'; //
// B.rightSectionCode = '';
// B.sepTypeRight = '00';
// C.rightSectionCode = '';
// C.sepTypeRight = '00';
// typeModel = 'end';
// }
// A.type = '03';
// B.type = '03';
// C.type = '03';
// switchSections.push({A: A, B: B, C: C, typeModel: typeModel });
// }
// });
// console.log(switchSections);
// return switchSections;
// },
// handleAngle(points) {
// const A = points[0];
// const B = points[1];
// const C = points[2];
// var AB = Math.sqrt(Math.pow(A.x - B.x, 2) + Math.pow(A.y - B.y, 2));
// var AC = Math.sqrt(Math.pow(A.x - C.x, 2) + Math.pow(A.y - C.y, 2));
// var BC = Math.sqrt(Math.pow(B.x - C.x, 2) + Math.pow(B.y - C.y, 2));
// return Math.pow(AB, 2) + Math.pow(BC, 2) > Math.pow(AC, 2);
// },
findSectionA(pointX, pointY, lists, code) { findSectionA(pointX, pointY, lists, code) {
const list = []; const list = [];
lists.forEach(item => { lists.forEach(item => {
@ -208,19 +425,19 @@ export default {
}, },
// //
handleResetPoint(points) { handleResetPoint(points) {
return (points[points.length - 1].x >= points[0].x) && (points[points.length - 1].y >= points[0].y); return points[points.length - 1].x >= points[points.length - 2].x;
}, },
// //
changeSectionAttr() { changeSectionAttr() {
const changeSectionList = []; // const changeSectionList = []; //
this.sectionList.forEach(section => { this.sectionList.forEach(section => {
if (section.type == '01') { if (section.type == '01' || section.type == '03') {
const oneSection = section.points[section.points.length - 1]; const oneSection = section.points[section.points.length - 1];
const oneSectionStar = section.points[0]; const oneSectionStar = section.points[0];
let countA = 0; let countA = 0;
let countB = 0; let countB = 0;
this.sectionList.forEach(elem => { this.sectionList.forEach(elem => {
if (elem.type == '01' && section.code != elem.code) { if ((elem.type == '01' || section.type == '03') && section.code != elem.code) {
let twoSection, twoSectionEnd; let twoSection, twoSectionEnd;
if (this.handleResetPoint(elem.points)) { if (this.handleResetPoint(elem.points)) {
twoSection = elem.points[0]; twoSection = elem.points[0];
@ -276,34 +493,34 @@ export default {
}); });
return changeSectionList; return changeSectionList;
}, },
checkAddListA(points, code) { // list () // checkAddListA(points, code) { // list ()
let flag = false; // let flag = false;
this.sectionList.forEach(section => { // this.sectionList.forEach(section => {
section.points.forEach((point, index) => { // section.points.forEach((point, index) => {
if (index > 0 && section.code != code) { // if (index > 0 && section.code != code) {
if (point.x == points.x && point.y == points.y) { // if (point.x == points.x && point.y == points.y) {
flag = true; // flag = true;
} // }
} // }
}); // });
}); // });
return flag; // return flag;
}, // },
checkAddListB(points, code) { // list () // checkAddListB(points, code) { // list ()
let flag = false; // let flag = false;
this.sectionList.forEach(section => { // this.sectionList.forEach(section => {
section.points.forEach((point, index) => { // section.points.forEach((point, index) => {
if (index == 0 && section.code != code) { // if (index == 0 && section.code != code) {
if (point.x == points.x && point.y == points.y) { // if (point.x == points.x && point.y == points.y) {
flag = true; // flag = true;
} // }
} // }
}); // });
}); // });
return flag; // return flag;
}, // },
// //
createSwitchSection(list, sectionLists) { createSwitchSection(list, sectionLists) {
const models = []; const models = [];

View File

@ -250,7 +250,11 @@ export default {
}).then(() => { }).then(() => {
if (this.hasRelease) { if (this.hasRelease) {
publishRunPlan(row.id, {runPlanName: name}).then(resp => { publishRunPlan(row.id, {runPlanName: name}).then(resp => {
if (resp.data.length <= 0) {
this.$message.success(this.$t('tip.publishRunPlanSuccess')); this.$message.success(this.$t('tip.publishRunPlanSuccess'));
} else {
this.$messageBox(`${this.$t('tip.publishRunPlanFail')}: ${resp.data[0]}`);
}
this.refresh(); this.refresh();
}).catch(() => { }).catch(() => {
this.$messageBox(this.$t('tip.publishRunPlanFail')); this.$messageBox(this.$t('tip.publishRunPlanFail'));

View File

@ -612,7 +612,11 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
publishRunPlan(param.planId, {runPlanName: param.planName}).then(resp => { publishRunPlan(param.planId, {runPlanName: param.planName}).then(resp => {
if (resp.data.length <= 0) {
this.$message.success(this.$t('tip.publishRunPlanSuccess')); this.$message.success(this.$t('tip.publishRunPlanSuccess'));
} else {
this.$messageBox(`${this.$t('tip.publishRunPlanFail')}: ${resp.data[0]}`);
}
}).catch(() => { }).catch(() => {
this.$messageBox(this.$t('tip.publishRunPlanFail')); this.$messageBox(this.$t('tip.publishRunPlanFail'));
}); });

View File

@ -11,7 +11,7 @@
<el-input v-model="addModel.name" /> <el-input v-model="addModel.name" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('map.startStationCodeColon')" prop="startStationCode"> <el-form-item :label="$t('map.startStationCodeColon')" prop="startStationCode">
<el-select v-model="addModel.startStationCode" clearable :filterable="true" @change="changeStartStation"> <el-select v-model="addModel.startStationCode" clearable :filterable="true" disabled @change="changeStartStation">
<el-option <el-option
v-for="item in filterStationList" v-for="item in filterStationList"
:key="item.code" :key="item.code"
@ -19,10 +19,10 @@
:value="item.code" :value="item.code"
/> />
</el-select> </el-select>
<el-button <!-- <el-button
:type=" field === 'startStationCode' ? 'danger' : 'primary'" :type=" field === 'startStationCode' ? 'danger' : 'primary'"
@click="hover('startStationCode')" @click="hover('startStationCode')"
>{{ $t('map.activate') }}</el-button> >{{ $t('map.activate') }}</el-button> -->
</el-form-item> </el-form-item>
<el-form-item :label="$t('map.startSectionColon')" prop="startSectionCode"> <el-form-item :label="$t('map.startSectionColon')" prop="startSectionCode">
<el-select v-model="addModel.startSectionCode" clearable :filterable="true" :disabled="editShow" @change="changeStartSection"> <el-select v-model="addModel.startSectionCode" clearable :filterable="true" :disabled="editShow" @change="changeStartSection">
@ -40,7 +40,8 @@
>{{ $t('map.activate') }}</el-button> >{{ $t('map.activate') }}</el-button>
</el-form-item> </el-form-item>
<el-form-item :label="$t('map.endStationColon')" prop="endStationCode"> <el-form-item :label="$t('map.endStationColon')" prop="endStationCode">
<el-select v-model="addModel.endStationCode" clearable :filterable="true" :disabled="!isStartSelected" @change="changeEndStation"> <!-- :disabled="!isStartSelected" -->
<el-select v-model="addModel.endStationCode" clearable :filterable="true" disabled @change="changeEndStation">
<el-option <el-option
v-for="item in filterStationList" v-for="item in filterStationList"
:key="item.code" :key="item.code"
@ -48,11 +49,11 @@
:value="item.code" :value="item.code"
/> />
</el-select> </el-select>
<el-button <!-- <el-button
:disabled="!isStartSelected" :disabled="!isStartSelected"
:type=" field === 'endStationCode' ? 'danger' : 'primary'" :type=" field === 'endStationCode' ? 'danger' : 'primary'"
@click="hover('endStationCode')" @click="hover('endStationCode')"
>{{ $t('map.activate') }}</el-button> >{{ $t('map.activate') }}</el-button> -->
</el-form-item> </el-form-item>
<el-form-item :label="$t('map.endSectionColon')" prop="endSectionCode"> <el-form-item :label="$t('map.endSectionColon')" prop="endSectionCode">
<el-select v-model="addModel.endSectionCode" clearable :filterable="true" :disabled="editShow || !isStartSelected" @change="changeEndSection"> <el-select v-model="addModel.endSectionCode" clearable :filterable="true" :disabled="editShow || !isStartSelected" @change="changeEndSection">

View File

@ -111,7 +111,6 @@ export default {
SDTNumber: `${this.model.serviceNumber}${tripNumber}` SDTNumber: `${this.model.serviceNumber}${tripNumber}`
}; };
getRoutingBySDTNumber(model).then(resp => { getRoutingBySDTNumber(model).then(resp => {
debugger;
const taskObj = { const taskObj = {
id:index + 1, id:index + 1,
tripNumber: tripNumber, tripNumber: tripNumber,

View File

@ -93,8 +93,7 @@ export default {
{ {
name: this.$t('systemGenerate.deleteData'), name: this.$t('systemGenerate.deleteData'),
handleClick: this.deleteData, handleClick: this.deleteData,
type: 'danger', type: 'danger'
showControl: (row) => { return Boolean(row.customized); }
} }
] ]
} }