Merge branch 'dev' of https://git.qcloud.com/joylink/jl-nclient into dev
This commit is contained in:
commit
554db95dd6
@ -32,6 +32,7 @@ export default {
|
|||||||
pointY: 'Coordinates y:',
|
pointY: 'Coordinates y:',
|
||||||
direct: 'The direction of:',
|
direct: 'The direction of:',
|
||||||
basisLink: 'Based on the Link:',
|
basisLink: 'Based on the Link:',
|
||||||
|
sectionRelSwitchCode: 'sectionRelSwitchCode',
|
||||||
|
|
||||||
pleaseSelectSectionName: 'Select the section name',
|
pleaseSelectSectionName: 'Select the section name',
|
||||||
pleaseFillOffset: 'Please fill in the offset',
|
pleaseFillOffset: 'Please fill in the offset',
|
||||||
|
@ -114,7 +114,7 @@ export default {
|
|||||||
automaticSignalCode: '自动信号编码',
|
automaticSignalCode: '自动信号编码',
|
||||||
signalCodeName: '信号机名称',
|
signalCodeName: '信号机名称',
|
||||||
signalCode: '信号机code',
|
signalCode: '信号机code',
|
||||||
sectionData: '区段数据',
|
sectionData: '区段列表',
|
||||||
preview: '预览',
|
preview: '预览',
|
||||||
operation: '操作',
|
operation: '操作',
|
||||||
compile: '编辑',
|
compile: '编辑',
|
||||||
@ -124,11 +124,11 @@ export default {
|
|||||||
sectionList: '区段列表',
|
sectionList: '区段列表',
|
||||||
automaticSignal: '自动信号',
|
automaticSignal: '自动信号',
|
||||||
|
|
||||||
signalID: '信号机ID:',
|
signalID: '信号机:',
|
||||||
activate: '激活',
|
activate: '激活',
|
||||||
|
|
||||||
pleaseSelectSignal: '请选择信号机',
|
pleaseSelectSignal: '请选择信号机',
|
||||||
triggerSegmentData: '请选择进路自动触发区段数据',
|
triggerSegmentData: '请选择进路自动触发区段',
|
||||||
automaticSignalSuccessful: '创建自动信号成功!',
|
automaticSignalSuccessful: '创建自动信号成功!',
|
||||||
failedCreateSignal: '创建自动信号失败',
|
failedCreateSignal: '创建自动信号失败',
|
||||||
automaticSignalUpdateSucceeded: '更新自动信号成功!',
|
automaticSignalUpdateSucceeded: '更新自动信号成功!',
|
||||||
@ -212,7 +212,7 @@ export default {
|
|||||||
sectionLogicalNumber: '逻辑区段数量',
|
sectionLogicalNumber: '逻辑区段数量',
|
||||||
sectionLsectioncode: '左侧区段名称:',
|
sectionLsectioncode: '左侧区段名称:',
|
||||||
sectionRsectioncode: '右侧区段名称:',
|
sectionRsectioncode: '右侧区段名称:',
|
||||||
associatedSection: '关联物理区段:',
|
associatedSection: '所属物理/道岔区段:',
|
||||||
blockCoding: '区段编码:',
|
blockCoding: '区段编码:',
|
||||||
sectionType: '区段类型:',
|
sectionType: '区段类型:',
|
||||||
sectionNameColon: '区段名称:',
|
sectionNameColon: '区段名称:',
|
||||||
@ -239,12 +239,12 @@ export default {
|
|||||||
destinationCodeShow: '是否显示目的地码:',
|
destinationCodeShow: '是否显示目的地码:',
|
||||||
leftStopPointOffset: '左向停车点偏移量:',
|
leftStopPointOffset: '左向停车点偏移量:',
|
||||||
rightStopPointOffset: '右向停车点偏移量:',
|
rightStopPointOffset: '右向停车点偏移量:',
|
||||||
isSwitchSection: '是否道岔区段:',
|
isSwitchSection: '是否关联道岔:',
|
||||||
relSwitchCode: '关联道岔Code:',
|
relSwitchCode: '关联道岔:',
|
||||||
logicSectionNameSort: '逻辑区段排序:',
|
logicSectionNameSort: '逻辑区段排序:',
|
||||||
fromSmallToLarge: '从小到大',
|
fromSmallToLarge: '从小到大',
|
||||||
fromLargeToSmall: '从大到小',
|
fromLargeToSmall: '从大到小',
|
||||||
relevanceLinkCode: '关联的Link:',
|
relevanceLinkCode: '所在Link:',
|
||||||
sepTypeLeft: '左侧分隔符类型:',
|
sepTypeLeft: '左侧分隔符类型:',
|
||||||
sectionOffsetLeft: '左侧Link偏移量:',
|
sectionOffsetLeft: '左侧Link偏移量:',
|
||||||
sepTypeRight: '右侧分隔符类型:',
|
sepTypeRight: '右侧分隔符类型:',
|
||||||
@ -269,17 +269,22 @@ export default {
|
|||||||
potLampType: '点灯类型:',
|
potLampType: '点灯类型:',
|
||||||
signalDirectionType: '方向类型:',
|
signalDirectionType: '方向类型:',
|
||||||
signalPositionType: '信号机位置类型:',
|
signalPositionType: '信号机位置类型:',
|
||||||
signalOffset: '偏移量:',
|
signalOffset: '所属link偏移量:',
|
||||||
|
signalLinkCode: '所属link',
|
||||||
signalPositionX: '信号机x:',
|
signalPositionX: '信号机x:',
|
||||||
signalPositionY: '信号机y:',
|
signalPositionY: '信号机y:',
|
||||||
|
signalPosition: '信号机坐标:',
|
||||||
signalNamePositionX: '信号机名字偏移量 x:',
|
signalNamePositionX: '信号机名字偏移量 x:',
|
||||||
signalNamePositionY: '信号机名字偏移量 y:',
|
signalNamePositionY: '信号机名字偏移量 y:',
|
||||||
|
signalNamePosition: '信号机名字偏移量:',
|
||||||
signalButtonShow: '是否显示按钮:',
|
signalButtonShow: '是否显示按钮:',
|
||||||
signalButtonPositionX: '按钮x:',
|
signalButtonPositionX: '按钮x:',
|
||||||
signalButtonPositionY: '按钮y:',
|
signalButtonPositionY: '按钮y:',
|
||||||
|
signalButtonPosition: '按钮:',
|
||||||
signalGuideShow: '是否显示引导信号灯:',
|
signalGuideShow: '是否显示引导信号灯:',
|
||||||
signalGuidePositionX: '引导信号x:',
|
signalGuidePositionX: '引导信号x:',
|
||||||
signalGuidePositionY: '引导信号y:',
|
signalGuidePositionY: '引导信号y:',
|
||||||
|
signalGuidePosition: '引导信号:',
|
||||||
|
|
||||||
concentrateStationCode: '所属联锁站编码:',
|
concentrateStationCode: '所属联锁站编码:',
|
||||||
stationCode: '车站编码:',
|
stationCode: '车站编码:',
|
||||||
@ -296,7 +301,9 @@ export default {
|
|||||||
stationKmPostFontColor: '公里标字体颜色:',
|
stationKmPostFontColor: '公里标字体颜色:',
|
||||||
stationPositionX: 'x坐标:',
|
stationPositionX: 'x坐标:',
|
||||||
stationPositionY: 'y坐标:',
|
stationPositionY: 'y坐标:',
|
||||||
|
stationPosition: '车站坐标:',
|
||||||
|
|
||||||
|
stationControlPosition: '控制模式坐标:',
|
||||||
stationControlCode: '控制模式编码:',
|
stationControlCode: '控制模式编码:',
|
||||||
stationControlName: '控制模式名称:',
|
stationControlName: '控制模式名称:',
|
||||||
zokContent: '中控内容:',
|
zokContent: '中控内容:',
|
||||||
@ -313,6 +320,7 @@ export default {
|
|||||||
stationstandShowName: '是否显示名称:',
|
stationstandShowName: '是否显示名称:',
|
||||||
stationstandWidth: '宽度 w:',
|
stationstandWidth: '宽度 w:',
|
||||||
stationstandHeight: '高度 h:',
|
stationstandHeight: '高度 h:',
|
||||||
|
stationstandPosition: '车站坐标:',
|
||||||
|
|
||||||
switchCode: '道岔编码:',
|
switchCode: '道岔编码:',
|
||||||
switchName: '道岔名称:',
|
switchName: '道岔名称:',
|
||||||
@ -320,6 +328,7 @@ export default {
|
|||||||
switchShowName: '是否显示道岔名称:',
|
switchShowName: '是否显示道岔名称:',
|
||||||
switchPositionX: '道岔名称x偏移量:',
|
switchPositionX: '道岔名称x偏移量:',
|
||||||
switchPositionY: '道岔名称y偏移量:',
|
switchPositionY: '道岔名称y偏移量:',
|
||||||
|
switchPosition: '道岔名称偏移量:',
|
||||||
turnTime: '道岔转换时间:',
|
turnTime: '道岔转换时间:',
|
||||||
timeoutShow: '是否显示道岔倒计时时间:',
|
timeoutShow: '是否显示道岔倒计时时间:',
|
||||||
sectionACode: '关联的A Section Code:',
|
sectionACode: '关联的A Section Code:',
|
||||||
@ -327,6 +336,11 @@ export default {
|
|||||||
sectionCCode: '关联的C Section Code:',
|
sectionCCode: '关联的C Section Code:',
|
||||||
switchTpX: '时间x坐标偏移量:',
|
switchTpX: '时间x坐标偏移量:',
|
||||||
switchTpY: '时间y坐标偏移量:',
|
switchTpY: '时间y坐标偏移量:',
|
||||||
|
switchTp: '时间坐标偏移量:',
|
||||||
|
counterPosition: '计数器坐标:',
|
||||||
|
delayUnlockPosition: '延迟解锁坐标:',
|
||||||
|
trainWindowPoints: '车次窗坐标:',
|
||||||
|
textPoints: '坐标:',
|
||||||
|
|
||||||
textCode: '文字编码:',
|
textCode: '文字编码:',
|
||||||
textContent: '文本内容:',
|
textContent: '文本内容:',
|
||||||
@ -370,7 +384,7 @@ export default {
|
|||||||
startingSignalName: '始端信号机名称',
|
startingSignalName: '始端信号机名称',
|
||||||
endingSignalName: '终端信号机名称',
|
endingSignalName: '终端信号机名称',
|
||||||
|
|
||||||
routeID: '进路ID',
|
routeID: '进路',
|
||||||
routeName: '进路名称:',
|
routeName: '进路名称:',
|
||||||
routeStationName: '所属车站名称',
|
routeStationName: '所属车站名称',
|
||||||
|
|
||||||
@ -381,16 +395,16 @@ export default {
|
|||||||
accessType: '进路性质类型',
|
accessType: '进路性质类型',
|
||||||
automaticRouteType: '自动进路类型',
|
automaticRouteType: '自动进路类型',
|
||||||
nearSectionCode: '接近区段名称',
|
nearSectionCode: '接近区段名称',
|
||||||
continueProtectSwitchData: '延续保护道岔数据',
|
continueProtectSwitchData: '延续保护道岔',
|
||||||
accessSideTurnoutData: '进路侧防道岔数据',
|
accessSideTurnoutData: '进路侧防道岔',
|
||||||
|
|
||||||
turnBackRailName: '折返轨名称',
|
turnBackRailName: '折返轨名称',
|
||||||
routeSegmentData: '进路自动触发区段数据',
|
routeSegmentData: '进路自动触发区段',
|
||||||
routeProtectsData: '进路延续保护区段数据',
|
routeProtectsData: '进路延续保护区段',
|
||||||
accessPhysical: '进路物理区段数据',
|
accessPhysical: '进路物理区段',
|
||||||
routeRouteScreenData: '进路屏蔽门数据',
|
routeRouteScreenData: '进路屏蔽门',
|
||||||
routeRouteTurnoutData: '进路道岔数据',
|
routeRouteTurnoutData: '进路道岔',
|
||||||
hostileApproachData: '敌对进路数据',
|
hostileApproachData: '敌对进路',
|
||||||
relation: '关系',
|
relation: '关系',
|
||||||
associatedRoute: '关联进路:',
|
associatedRoute: '关联进路:',
|
||||||
|
|
||||||
@ -401,20 +415,20 @@ export default {
|
|||||||
accessTypeColon: '进路性质类型:',
|
accessTypeColon: '进路性质类型:',
|
||||||
|
|
||||||
automaticRouteTypeColon: '自动进路类型:',
|
automaticRouteTypeColon: '自动进路类型:',
|
||||||
startSignalId: '始端信号机ID:',
|
startSignalId: '始端信号机:',
|
||||||
endSignalId: '终端信号机ID:',
|
endSignalId: '终端信号机:',
|
||||||
|
|
||||||
switchType: '道岔类型',
|
switchType: '道岔类型',
|
||||||
switchId: '道岔ID',
|
switchId: '道岔',
|
||||||
accessSwitchList: '进路道岔数据:',
|
accessSwitchList: '进路道岔:',
|
||||||
accessStandList: '进路屏蔽门数据:',
|
accessStandList: '进路屏蔽门:',
|
||||||
accessSectionList: '进路物理区段数据:',
|
accessSectionList: '进路物理区段:',
|
||||||
turnBackSectionCode: '折返轨ID:',
|
turnBackSectionCode: '折返轨:',
|
||||||
routeFlankProtectionList: '侧防道岔数据:',
|
routeFlankProtectionList: '侧防道岔:',
|
||||||
routeOverlapSwitchList: '延续保护道岔数据:',
|
routeOverlapSwitchList: '延续保护道岔:',
|
||||||
routeOverlapSectionList: '进路延续保护区段数据:',
|
routeOverlapSectionList: '进路延续保护区段:',
|
||||||
routeTriggerSectionList: '进路自动触发区段数据:',
|
routeTriggerSectionList: '进路自动触发区段:',
|
||||||
nearSectionCodeColon: '接近区段ID:',
|
nearSectionCodeColon: '接近区段:',
|
||||||
|
|
||||||
thenList: '交路列表',
|
thenList: '交路列表',
|
||||||
startStation: '起始站',
|
startStation: '起始站',
|
||||||
@ -485,7 +499,7 @@ export default {
|
|||||||
routingDirection: '方向',
|
routingDirection: '方向',
|
||||||
remarks: '描述',
|
remarks: '描述',
|
||||||
remarksColon: '描述:',
|
remarksColon: '描述:',
|
||||||
trafficSegmentData: '交路区段数据:',
|
trafficSegmentData: '交路区段:',
|
||||||
startSectionColon: '起始区段:',
|
startSectionColon: '起始区段:',
|
||||||
endStationColon: '终到站:',
|
endStationColon: '终到站:',
|
||||||
endSectionColon: '终到区段:',
|
endSectionColon: '终到区段:',
|
||||||
|
@ -184,6 +184,7 @@ export default {
|
|||||||
chooseUser: '请选择用户',
|
chooseUser: '请选择用户',
|
||||||
pleaseInputLessonName: '请输入课程名称',
|
pleaseInputLessonName: '请输入课程名称',
|
||||||
pleaseSelectTraining: '请选择实训',
|
pleaseSelectTraining: '请选择实训',
|
||||||
|
sectionRelSwitchCode: '请选择关联道岔',
|
||||||
|
|
||||||
maxScaling: '(缩放比例最大为8级)',
|
maxScaling: '(缩放比例最大为8级)',
|
||||||
skinCodingInput: '请输入皮肤编码',
|
skinCodingInput: '请输入皮肤编码',
|
||||||
|
@ -12,7 +12,11 @@ class SkinCode extends defaultStyle {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this[deviceType.Section] = {
|
this[deviceType.Section] = {
|
||||||
text: {
|
active: {
|
||||||
|
routeColor: false // 进路触发颜色
|
||||||
|
},
|
||||||
|
text: { // 物理区段名称
|
||||||
|
show: true, // 物理区段名称显示
|
||||||
position: -1, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: -1, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 11, // 文字离区段距离
|
distance: 11, // 文字离区段距离
|
||||||
fontSize: 11, // 字体大小
|
fontSize: 11, // 字体大小
|
||||||
@ -22,7 +26,8 @@ class SkinCode extends defaultStyle {
|
|||||||
textPosition: 'inside', // 文字位置
|
textPosition: 'inside', // 文字位置
|
||||||
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
||||||
},
|
},
|
||||||
logicText: {
|
logicText: { // 逻辑区段名称
|
||||||
|
show: true, // 逻辑区段名称显示
|
||||||
position: -1, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: -1, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 11, // 文字离区段距离
|
distance: 11, // 文字离区段距离
|
||||||
fontSize: 11, // 字体大小
|
fontSize: 11, // 字体大小
|
||||||
@ -32,7 +37,8 @@ class SkinCode extends defaultStyle {
|
|||||||
textPosition: 'inside', // 文字位置
|
textPosition: 'inside', // 文字位置
|
||||||
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
||||||
},
|
},
|
||||||
standText: {
|
standText: { // 站台轨名称
|
||||||
|
show: true, // 站台轨名称显示
|
||||||
opposite: true, // 对称相反
|
opposite: true, // 对称相反
|
||||||
position: 1, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: 1, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 11, // 文字离区段距离
|
distance: 11, // 文字离区段距离
|
||||||
@ -43,7 +49,8 @@ class SkinCode extends defaultStyle {
|
|||||||
textPosition: 'inside', // 文字位置
|
textPosition: 'inside', // 文字位置
|
||||||
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
||||||
},
|
},
|
||||||
reentryText: {
|
reentryText: { // 折返轨名称
|
||||||
|
show: true, // 折返轨名称显示
|
||||||
opposite: true, // 对称相反
|
opposite: true, // 对称相反
|
||||||
position: 1, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: 1, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 11, // 文字离区段距离
|
distance: 11, // 文字离区段距离
|
||||||
@ -54,7 +61,8 @@ class SkinCode extends defaultStyle {
|
|||||||
textPosition: 'inside', // 文字位置
|
textPosition: 'inside', // 文字位置
|
||||||
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
||||||
},
|
},
|
||||||
transferText: {
|
transferText: { // 转换轨名称
|
||||||
|
show: true, // 转换轨名称显示
|
||||||
opposite: true, // 对称相反
|
opposite: true, // 对称相反
|
||||||
position: 1, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: 1, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 11, // 文字离区段距离
|
distance: 11, // 文字离区段距离
|
||||||
@ -65,7 +73,8 @@ class SkinCode extends defaultStyle {
|
|||||||
textPosition: 'inside', // 文字位置
|
textPosition: 'inside', // 文字位置
|
||||||
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
textVerticalAlign: 'middle' // 文字垂直对齐方式
|
||||||
},
|
},
|
||||||
destinationText: {
|
destinationText: { // 目的码名称
|
||||||
|
show: true, // 目的码名称显示
|
||||||
position: 1, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: 1, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 11, // 文字离区段距离
|
distance: 11, // 文字离区段距离
|
||||||
fontSize: 11, // 字体大小
|
fontSize: 11, // 字体大小
|
||||||
@ -262,7 +271,7 @@ class SkinCode extends defaultStyle {
|
|||||||
emergencyControlShow: true, // 紧急站控显示
|
emergencyControlShow: true, // 紧急站控显示
|
||||||
centerControlShow: true, // 中控显示
|
centerControlShow: true, // 中控显示
|
||||||
substationControlShow: true, // 站控按钮显示
|
substationControlShow: true, // 站控按钮显示
|
||||||
turnedAroundControlShow: true // 按图折返显示
|
turnedAroundControlShow: false // 按图折返显示
|
||||||
},
|
},
|
||||||
arrow: {
|
arrow: {
|
||||||
show: false // 控制模式箭头显隐
|
show: false // 控制模式箭头显隐
|
||||||
|
@ -12,6 +12,9 @@ class SkinCode extends defaultStyle {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this[deviceType.Section] = {
|
this[deviceType.Section] = {
|
||||||
|
active: {
|
||||||
|
routeColor: true // 进路触发颜色
|
||||||
|
},
|
||||||
text: {
|
text: {
|
||||||
position: 0, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: 0, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 10, // 文字离区段距离
|
distance: 10, // 文字离区段距离
|
||||||
@ -262,7 +265,11 @@ class SkinCode extends defaultStyle {
|
|||||||
grayColor: '#7F7F7F', // 控制模式灰色
|
grayColor: '#7F7F7F', // 控制模式灰色
|
||||||
greenColor: '#00FF00', // 控制模式绿色
|
greenColor: '#00FF00', // 控制模式绿色
|
||||||
redColor: '#FF0000', // 控制模式红色
|
redColor: '#FF0000', // 控制模式红色
|
||||||
yellowColor: '#FFFF00' // 控制模式黄色
|
yellowColor: '#FFFF00', // 控制模式黄色
|
||||||
|
emergencyControlShow: true, // 紧急站控显示
|
||||||
|
centerControlShow: true, // 中控显示
|
||||||
|
substationControlShow: true, // 站控按钮显示
|
||||||
|
turnedAroundControlShow: false // 按图折返显示
|
||||||
},
|
},
|
||||||
arrow: {
|
arrow: {
|
||||||
show: false // 控制模式箭头显隐
|
show: false // 控制模式箭头显隐
|
||||||
|
@ -12,6 +12,9 @@ class SkinCode extends defaultStyle {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this[deviceType.Section] = {
|
this[deviceType.Section] = {
|
||||||
|
active: {
|
||||||
|
routeColor: false // 进路触发颜色
|
||||||
|
},
|
||||||
text: {
|
text: {
|
||||||
position: 0, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: 0, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 10, // 文字离区段距离
|
distance: 10, // 文字离区段距离
|
||||||
@ -259,7 +262,11 @@ class SkinCode extends defaultStyle {
|
|||||||
grayColor: '#C0C0C0', // 控制模式灰色
|
grayColor: '#C0C0C0', // 控制模式灰色
|
||||||
greenColor: 'green', // 控制模式绿色
|
greenColor: 'green', // 控制模式绿色
|
||||||
redColor: 'red', // 控制模式红色
|
redColor: 'red', // 控制模式红色
|
||||||
yellowColor: 'yellow' // 控制模式黄色
|
yellowColor: 'yellow', // 控制模式黄色
|
||||||
|
emergencyControlShow: true, // 紧急站控显示
|
||||||
|
centerControlShow: true, // 中控显示
|
||||||
|
substationControlShow: true, // 站控按钮显示
|
||||||
|
turnedAroundControlShow: false // 按图折返显示
|
||||||
},
|
},
|
||||||
arrow: {
|
arrow: {
|
||||||
show: false // 控制模式箭头显隐
|
show: false // 控制模式箭头显隐
|
||||||
|
@ -12,6 +12,9 @@ class SkinCode extends defaultStyle {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this[deviceType.Section] = {
|
this[deviceType.Section] = {
|
||||||
|
active: {
|
||||||
|
routeColor: false // 进路触发颜色
|
||||||
|
},
|
||||||
text: {
|
text: {
|
||||||
position: 0, // 区段名称位置 1 上面 -1 下面 0 对称
|
position: 0, // 区段名称位置 1 上面 -1 下面 0 对称
|
||||||
distance: 18, // 文字离区段距离
|
distance: 18, // 文字离区段距离
|
||||||
@ -241,7 +244,11 @@ class SkinCode extends defaultStyle {
|
|||||||
grayColor: '#7F7F7F', // 控制模式灰色
|
grayColor: '#7F7F7F', // 控制模式灰色
|
||||||
greenColor: '#00FF00', // 控制模式绿色
|
greenColor: '#00FF00', // 控制模式绿色
|
||||||
redColor: '#FF0000', // 控制模式红色
|
redColor: '#FF0000', // 控制模式红色
|
||||||
yellowColor: '#FFFF00' // 控制模式黄色
|
yellowColor: '#FFFF00', // 控制模式黄色
|
||||||
|
emergencyControlShow: false, // 紧急站控显示
|
||||||
|
centerControlShow: true, // 中控显示
|
||||||
|
substationControlShow: true, // 站控按钮显示
|
||||||
|
turnedAroundControlShow: false // 按图折返显示
|
||||||
},
|
},
|
||||||
arrow: {
|
arrow: {
|
||||||
show: true // 控制模式箭头显隐
|
show: true // 控制模式箭头显隐
|
||||||
|
@ -308,8 +308,10 @@ class Jlmap {
|
|||||||
} else {
|
} else {
|
||||||
const elem = list[idex];
|
const elem = list[idex];
|
||||||
if (elem) {
|
if (elem) {
|
||||||
Object.keys(elem).forEach(key => {
|
Object.keys(model).forEach(key => {
|
||||||
|
if (key != 'instance') {
|
||||||
elem[key] = model[key];
|
elem[key] = model[key];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
list.push(Object.assign({}, model));
|
list.push(Object.assign({}, model));
|
||||||
|
@ -731,12 +731,21 @@ export default class Section extends Group {
|
|||||||
/** 设置状态*/
|
/** 设置状态*/
|
||||||
setState(model) {
|
setState(model) {
|
||||||
this.recover();
|
this.recover();
|
||||||
|
if (model.status == '01') {
|
||||||
|
if (this.name && this.style.Section.active.routeColor) {
|
||||||
|
this.name.setStyle({textFill: this.style.Section.text.fontColor});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (this.name && this.style.Section.active.routeColor) {
|
||||||
|
this.name.setStyle({textFill: 'green'});
|
||||||
|
}
|
||||||
|
}
|
||||||
switch (model.status) {
|
switch (model.status) {
|
||||||
case '00': /** 未定义*/
|
case '00': /** 未定义*/
|
||||||
this.undefine();
|
this.undefine();
|
||||||
break;
|
break;
|
||||||
case '01': /** 空闲*/
|
case '01': /** 空闲*/
|
||||||
this.spare();
|
this.spare(); // 空闲状态下 名称白色 其他条件为绿色
|
||||||
break;
|
break;
|
||||||
case '02': /** 通信车占用*/
|
case '02': /** 通信车占用*/
|
||||||
this.communicationOccupied();
|
this.communicationOccupied();
|
||||||
|
@ -26,6 +26,7 @@ export default class StationControl extends Group {
|
|||||||
create() {
|
create() {
|
||||||
const model = this.model;
|
const model = this.model;
|
||||||
// 紧急站控
|
// 紧急站控
|
||||||
|
if (this.style.StationControl.lamp.emergencyControlShow) {
|
||||||
this.emergencyControl = new ESingleControl({
|
this.emergencyControl = new ESingleControl({
|
||||||
_subType: 'emergency',
|
_subType: 'emergency',
|
||||||
style: this.style,
|
style: this.style,
|
||||||
@ -38,7 +39,10 @@ export default class StationControl extends Group {
|
|||||||
context: model.jjzkContent,
|
context: model.jjzkContent,
|
||||||
pop: false
|
pop: false
|
||||||
});
|
});
|
||||||
|
this.add(this.emergencyControl);
|
||||||
|
}
|
||||||
// 中控按钮
|
// 中控按钮
|
||||||
|
if (this.style.StationControl.lamp.centerControlShow) {
|
||||||
this.centerControl = new ESingleControl({
|
this.centerControl = new ESingleControl({
|
||||||
_subType: 'center',
|
_subType: 'center',
|
||||||
style: this.style,
|
style: this.style,
|
||||||
@ -51,7 +55,10 @@ export default class StationControl extends Group {
|
|||||||
context: model.zokContent,
|
context: model.zokContent,
|
||||||
pop: false
|
pop: false
|
||||||
});
|
});
|
||||||
|
this.add(this.centerControl);
|
||||||
|
}
|
||||||
// 站控按钮
|
// 站控按钮
|
||||||
|
if (this.style.StationControl.lamp.substationControlShow) {
|
||||||
this.substationControl = new ESingleControl({
|
this.substationControl = new ESingleControl({
|
||||||
_subType: 'substation',
|
_subType: 'substation',
|
||||||
style: this.style,
|
style: this.style,
|
||||||
@ -64,7 +71,10 @@ export default class StationControl extends Group {
|
|||||||
context: model.zakContent,
|
context: model.zakContent,
|
||||||
pop: false
|
pop: false
|
||||||
});
|
});
|
||||||
|
this.add(this.substationControl);
|
||||||
|
}
|
||||||
// 按图折返
|
// 按图折返
|
||||||
|
if (this.style.StationControl.lamp.turnedAroundControlShow) {
|
||||||
this.turnedAroundControl = new ESingleControl({
|
this.turnedAroundControl = new ESingleControl({
|
||||||
_subType: 'turnedAround',
|
_subType: 'turnedAround',
|
||||||
style: this.style,
|
style: this.style,
|
||||||
@ -77,6 +87,8 @@ export default class StationControl extends Group {
|
|||||||
context: '按图折返',
|
context: '按图折返',
|
||||||
pop: false
|
pop: false
|
||||||
});
|
});
|
||||||
|
this.add(this.turnedAroundControl);
|
||||||
|
}
|
||||||
// 箭头
|
// 箭头
|
||||||
if (this.style.StationControl.arrow.show) {
|
if (this.style.StationControl.arrow.show) {
|
||||||
const point = arrow(this.model.position.x, this.model.position.y + this.style.StationControl.lamp.radiusR / 2, this.style.StationControl.lamp.distance / 6, this.style.StationControl.lamp.radiusR * 0.8);
|
const point = arrow(this.model.position.x, this.model.position.y + this.style.StationControl.lamp.radiusR / 2, this.style.StationControl.lamp.distance / 6, this.style.StationControl.lamp.radiusR * 0.8);
|
||||||
@ -95,14 +107,6 @@ export default class StationControl extends Group {
|
|||||||
});
|
});
|
||||||
this.add(this.arrowsControl);
|
this.add(this.arrowsControl);
|
||||||
}
|
}
|
||||||
this.add(this.substationControl);
|
|
||||||
this.add(this.centerControl);
|
|
||||||
if (this.style.StationControl.lamp.count == 3) {
|
|
||||||
this.add(this.emergencyControl);
|
|
||||||
} else if (this.style.StationControl.lamp.count == 4) {
|
|
||||||
this.add(this.emergencyControl);
|
|
||||||
this.add(this.turnedAroundControl);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置状态
|
// 设置状态
|
||||||
|
@ -89,7 +89,7 @@ export default {
|
|||||||
{ label: '综合演练', value: 'Joint'},
|
{ label: '综合演练', value: 'Joint'},
|
||||||
{ label: '大屏', value: 'BigScreen'},
|
{ label: '大屏', value: 'BigScreen'},
|
||||||
{ label: '琏计划', value: 'RunPlan'},
|
{ label: '琏计划', value: 'RunPlan'},
|
||||||
{ label: '任务录制', value: 'ScriptRecord'}
|
{ label: '剧本录制', value: 'ScriptWrite'}
|
||||||
],
|
],
|
||||||
|
|
||||||
skinCode: [
|
skinCode: [
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="font_box">
|
||||||
<el-select v-model="font" :placeholder="$t('global.font')" @input="$emit('input', inputValue)">
|
<el-select v-model="font" :placeholder="$t('global.font')" @input="$emit('input', inputValue)">
|
||||||
<el-option v-for="option in fontList" :key="option.code" :label="option.name" :value="option.code" />
|
<el-option v-for="option in fontList" :key="option.code" :label="option.name" :value="option.code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -65,9 +65,20 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
.format {
|
.format {
|
||||||
background-color: #C0C4CC;
|
background-color: #C0C4CC;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
padding-left: 15px;
|
||||||
|
}
|
||||||
|
.font_box{
|
||||||
|
/deep/ {
|
||||||
|
.el-select{
|
||||||
|
max-width: 50%;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -80,18 +80,18 @@ export default {
|
|||||||
selectCheckShow: false,
|
selectCheckShow: false,
|
||||||
indexShow: true,
|
indexShow: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
// {
|
||||||
title: this.$t('map.routeID'),
|
// title: this.$t('map.routeID'),
|
||||||
prop: 'code'
|
// prop: 'code'
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: this.$t('map.pathName'),
|
title: this.$t('map.pathName'),
|
||||||
prop: 'name'
|
prop: 'name'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: this.$t('map.pathUnitMapName'),
|
// title: this.$t('map.pathUnitMapName'),
|
||||||
prop: 'mapId'
|
// prop: 'mapId'
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: this.$t('map.routeStationName'),
|
title: this.$t('map.routeStationName'),
|
||||||
prop: 'stationCode'
|
prop: 'stationCode'
|
||||||
|
@ -37,6 +37,20 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('map.turnBackSectionCode')" prop="turnBackSectionCode">
|
||||||
|
<el-select v-model="addModel.turnBackSectionCode" clearable :filterable="true">
|
||||||
|
<el-option
|
||||||
|
v-for="item in sectionList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="item.name + ' (' + item.code+ ')'"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<el-button
|
||||||
|
:type=" field === 'turnBackSectionCode' ? 'danger' : 'primary'"
|
||||||
|
@click="hover('turnBackSectionCode')"
|
||||||
|
>{{ $t('map.activate') }}</el-button>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.automaticRouteTypeColon')" prop="autoType">
|
<el-form-item :label="$t('map.automaticRouteTypeColon')" prop="autoType">
|
||||||
<el-select v-model="addModel.autoType" :filterable="true">
|
<el-select v-model="addModel.autoType" :filterable="true">
|
||||||
<el-option
|
<el-option
|
||||||
@ -89,13 +103,6 @@
|
|||||||
@click="hover('nearSectionCode')"
|
@click="hover('nearSectionCode')"
|
||||||
>{{ $t('map.activate') }}</el-button>
|
>{{ $t('map.activate') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="自动触发区段ID:" prop="autoTriggerSectionCode">
|
|
||||||
<el-select v-model="addModel.autoTriggerSectionCode" clearable :filterable="true">
|
|
||||||
<el-option v-for="item in sectionList" :key="item.code" :label="item.name + ' (' + item.code+ ')'"
|
|
||||||
:value="item.code"></el-option>
|
|
||||||
</el-select>
|
|
||||||
<el-button @click="hover('autoTriggerSectionCode')" :type=" field === 'autoTriggerSectionCode' ? 'danger' : 'primary'">{{ $t('map.activate') }}</el-button>
|
|
||||||
</el-form-item> -->
|
|
||||||
<el-form-item :label="$t('map.routeTriggerSectionList')" prop="routeTriggerSectionList">
|
<el-form-item :label="$t('map.routeTriggerSectionList')" prop="routeTriggerSectionList">
|
||||||
<el-select v-model="addModel.routeTriggerSectionList" multiple clearable :filterable="true">
|
<el-select v-model="addModel.routeTriggerSectionList" multiple clearable :filterable="true">
|
||||||
<el-option
|
<el-option
|
||||||
@ -110,142 +117,6 @@
|
|||||||
@click="hover('routeTriggerSectionList')"
|
@click="hover('routeTriggerSectionList')"
|
||||||
>{{ $t('map.activate') }}</el-button>
|
>{{ $t('map.activate') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.routeOverlapSectionList')" prop="routeOverlapSectionList">
|
|
||||||
<el-select v-model="addModel.routeOverlapSectionList" multiple clearable :filterable="true">
|
|
||||||
<el-option
|
|
||||||
v-for="item in sectionList"
|
|
||||||
:key="item.code"
|
|
||||||
:label="item.name + ' (' + item.code+ ')'"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<el-button
|
|
||||||
:type=" field === 'routeOverlapSectionList' ? 'danger' : 'primary'"
|
|
||||||
@click="hover('routeOverlapSectionList')"
|
|
||||||
>{{ $t('map.activate') }}</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<!-- <el-form-item label="延续保护道岔ID:" prop="routeOverlapSwitchList">
|
|
||||||
<el-select v-model="addModel.routeOverlapSwitchList" multiple :filterable="true">
|
|
||||||
<el-option v-for="item in switchList" :key="item.code" :label="item.name + ' (' + item.code+ ')'"
|
|
||||||
:value="item.code"></el-option>
|
|
||||||
</el-select>
|
|
||||||
<el-button @click="hover('routeOverlapSwitchList')" :type=" field === 'routeOverlapSwitchList' ? 'danger' : 'primary'">{{ $t('map.activate') }}</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="延续保护道岔位置类型:" prop="overlapSwitchLocateType">
|
|
||||||
<el-select v-model="addModel.overlapSwitchLocateType" :filterable="true">
|
|
||||||
<el-option v-for="item in SwitchLocateTypeList" :key="item.code" :label="item.name" :value="item.code"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item> -->
|
|
||||||
|
|
||||||
<el-form-item :label="$t('map.routeOverlapSwitchList')" prop="routeOverlapSwitchList">
|
|
||||||
<el-select v-model="overlapCode" clearable :filterable="true" :placeholder="$t('map.pleaseSelect')">
|
|
||||||
<el-option
|
|
||||||
v-for="item in switchList"
|
|
||||||
:key="item.code"
|
|
||||||
:label="`${item.name}(${item.code})`"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<el-button
|
|
||||||
:type=" field === 'routeOverlapSwitchList' ? 'danger' : 'primary'"
|
|
||||||
@click="hover('routeOverlapSwitchList')"
|
|
||||||
>{{ $t('map.activate') }}</el-button>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
@click="pushSwitch(addModel.routeOverlapSwitchList, {switchCode:overlapCode, switchLocateType:overlapType})"
|
|
||||||
>{{ $t('map.add') }}
|
|
||||||
</el-button>
|
|
||||||
<el-select v-model="overlapType" :filterable="true" :placeholder="$t('map.pleaseSelect')">
|
|
||||||
<el-option
|
|
||||||
v-for="item in SwitchLocateTypeList"
|
|
||||||
:key="item.code"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<el-table :data="addModel.routeOverlapSwitchList" border style="width: 97%">
|
|
||||||
<el-table-column prop="switchCode" :label="$t('map.switchId')">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ swictchName(scope.row.switchCode) }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="switchLocateType" :label="$t('map.switchType')" />
|
|
||||||
<el-table-column fixed="right" :label="$t('map.operation')" width="50">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
size="small"
|
|
||||||
@click.native.prevent="deleteSwitch(addModel.routeOverlapSwitchList, scope.$index)"
|
|
||||||
>
|
|
||||||
{{ $t('map.remove') }}
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item :label="$t('map.routeFlankProtectionList')" prop="routeFlankProtectionList">
|
|
||||||
<el-select v-model="flankCode" clearable :filterable="true" :placeholder="$t('map.pleaseSelect')">
|
|
||||||
<el-option
|
|
||||||
v-for="item in switchList"
|
|
||||||
:key="item.code"
|
|
||||||
:label="`${item.name}(${item.code})`"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<el-button
|
|
||||||
:type=" field === 'routeFlankProtectionList' ? 'danger' : 'primary'"
|
|
||||||
@click="hover('routeFlankProtectionList')"
|
|
||||||
>{{ $t('map.activate') }}</el-button>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
@click="pushSwitch(addModel.routeFlankProtectionList, {switchCode:flankCode, switchLocateType:flankType})"
|
|
||||||
>{{ $t('map.add') }}
|
|
||||||
</el-button>
|
|
||||||
<el-select v-model="flankType" :filterable="true" :placeholder="$t('map.pleaseSelect')">
|
|
||||||
<el-option
|
|
||||||
v-for="item in SwitchLocateTypeList"
|
|
||||||
:key="item.code"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<el-table :data="addModel.routeFlankProtectionList" border style="width: 97%">
|
|
||||||
<el-table-column prop="switchCode" :label="$t('map.switchId')">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ swictchName(scope.row.switchCode) }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="switchLocateType" :label="$t('map.switchType')" />
|
|
||||||
<el-table-column fixed="right" label="操作" width="50">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
size="small"
|
|
||||||
@click.native.prevent="deleteSwitch(addModel.routeFlankProtectionList, scope.$index)"
|
|
||||||
>
|
|
||||||
{{ $t('map.remove') }}
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item :label="$t('map.turnBackSectionCode')" prop="turnBackSectionCode">
|
|
||||||
<el-select v-model="addModel.turnBackSectionCode" clearable :filterable="true">
|
|
||||||
<el-option
|
|
||||||
v-for="item in sectionList"
|
|
||||||
:key="item.code"
|
|
||||||
:label="item.name + ' (' + item.code+ ')'"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<el-button
|
|
||||||
:type=" field === 'turnBackSectionCode' ? 'danger' : 'primary'"
|
|
||||||
@click="hover('turnBackSectionCode')"
|
|
||||||
>{{ $t('map.activate') }}</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="进路物理区段数据:" prop="routeSectionList">
|
<el-form-item label="进路物理区段数据:" prop="routeSectionList">
|
||||||
<el-select v-model="addModel.routeSectionList" multiple :filterable="true" placeholder="请选择">
|
<el-select v-model="addModel.routeSectionList" multiple :filterable="true" placeholder="请选择">
|
||||||
<el-option
|
<el-option
|
||||||
@ -260,20 +131,6 @@
|
|||||||
@click="hover('routeSectionList')"
|
@click="hover('routeSectionList')"
|
||||||
>激活</el-button>
|
>激活</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="进路屏蔽门数据:" prop="routeStandList">
|
|
||||||
<el-select v-model="addModel.routeStandList" multiple :filterable="true" placeholder="请选择">
|
|
||||||
<el-option
|
|
||||||
v-for="item in stationStandList"
|
|
||||||
:key="item.code"
|
|
||||||
:label="item.code"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<el-button
|
|
||||||
:type=" field === 'routeStandList' ? 'danger' : 'primary'"
|
|
||||||
@click="hover('routeStandList')"
|
|
||||||
>激活</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="进路道岔数据:" prop="routeSwitchList">
|
<el-form-item label="进路道岔数据:" prop="routeSwitchList">
|
||||||
<el-select v-model="routeCode" clearable :filterable="true" placeholder="请选择道岔数据">
|
<el-select v-model="routeCode" clearable :filterable="true" placeholder="请选择道岔数据">
|
||||||
<el-option
|
<el-option
|
||||||
@ -289,7 +146,7 @@
|
|||||||
>激活</el-button>
|
>激活</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="pushSwitch(addModel.routeSwitchList, { switchCode: routeCode, switchLocateType: routeType } )"
|
@click="pushSwitch(addModel.routeSwitchList, { switchCode: routeCode, switchLocateType: routeType, switchType: overlapType == '01' ? '定位' : '反位' } )"
|
||||||
>添加</el-button>
|
>添加</el-button>
|
||||||
<el-select v-model="routeType" :filterable="true" placeholder="请选择道岔类型">
|
<el-select v-model="routeType" :filterable="true" placeholder="请选择道岔类型">
|
||||||
<el-option
|
<el-option
|
||||||
@ -300,12 +157,12 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-table :data="addModel.routeSwitchList" border style="width: 97%">
|
<el-table :data="addModel.routeSwitchList" border style="width: 97%">
|
||||||
<el-table-column prop="switchCode" label="道岔ID">
|
<el-table-column prop="switchCode" label="道岔">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ swictchName(scope.row.switchCode) }}</span>
|
<span>{{ swictchName(scope.row.switchCode) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="switchLocateType" :label="$t('map.switchType')" />
|
<el-table-column prop="switchType" :label="$t('map.switchType')" />
|
||||||
<el-table-column fixed="right" :label="$t('map.operation')" width="50">
|
<el-table-column fixed="right" :label="$t('map.operation')" width="50">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -319,6 +176,126 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="进路屏蔽门数据:" prop="routeStandList">
|
||||||
|
<el-select v-model="addModel.routeStandList" multiple :filterable="true" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="item in stationStandList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="item.code"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<el-button
|
||||||
|
:type=" field === 'routeStandList' ? 'danger' : 'primary'"
|
||||||
|
@click="hover('routeStandList')"
|
||||||
|
>激活</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('map.routeFlankProtectionList')" prop="routeFlankProtectionList">
|
||||||
|
<el-select v-model="flankCode" clearable :filterable="true" :placeholder="$t('map.pleaseSelect')">
|
||||||
|
<el-option
|
||||||
|
v-for="item in switchList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="`${item.name}(${item.code})`"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<el-button
|
||||||
|
:type=" field === 'routeFlankProtectionList' ? 'danger' : 'primary'"
|
||||||
|
@click="hover('routeFlankProtectionList')"
|
||||||
|
>{{ $t('map.activate') }}</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click="pushSwitch(addModel.routeFlankProtectionList, {switchCode:flankCode, switchLocateType:flankType, switchType: overlapType == '01' ? '定位' : '反位'})"
|
||||||
|
>{{ $t('map.add') }}
|
||||||
|
</el-button>
|
||||||
|
<el-select v-model="flankType" :filterable="true" :placeholder="$t('map.pleaseSelect')">
|
||||||
|
<el-option
|
||||||
|
v-for="item in SwitchLocateTypeList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<el-table :data="addModel.routeFlankProtectionList" border style="width: 97%">
|
||||||
|
<el-table-column prop="switchCode" :label="$t('map.switchId')">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ swictchName(scope.row.switchCode) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="switchType" :label="$t('map.switchType')" />
|
||||||
|
<el-table-column fixed="right" label="操作" width="50">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.prevent="deleteSwitch(addModel.routeFlankProtectionList, scope.$index)"
|
||||||
|
>
|
||||||
|
{{ $t('map.remove') }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('map.routeOverlapSectionList')" prop="routeOverlapSectionList">
|
||||||
|
<el-select v-model="addModel.routeOverlapSectionList" multiple clearable :filterable="true">
|
||||||
|
<el-option
|
||||||
|
v-for="item in sectionList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="item.name + ' (' + item.code+ ')'"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<el-button
|
||||||
|
:type=" field === 'routeOverlapSectionList' ? 'danger' : 'primary'"
|
||||||
|
@click="hover('routeOverlapSectionList')"
|
||||||
|
>{{ $t('map.activate') }}</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item :label="$t('map.routeOverlapSwitchList')" prop="routeOverlapSwitchList">
|
||||||
|
<el-select v-model="overlapCode" clearable :filterable="true" :placeholder="$t('map.pleaseSelect')">
|
||||||
|
<el-option
|
||||||
|
v-for="item in switchList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="`${item.name}(${item.code})`"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<el-button
|
||||||
|
:type=" field === 'routeOverlapSwitchList' ? 'danger' : 'primary'"
|
||||||
|
@click="hover('routeOverlapSwitchList')"
|
||||||
|
>{{ $t('map.activate') }}</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click="pushSwitch(addModel.routeOverlapSwitchList, {switchCode:overlapCode, switchLocateType:overlapType, switchType: overlapType == '01' ? '定位' : '反位'})"
|
||||||
|
>{{ $t('map.add') }}
|
||||||
|
</el-button>
|
||||||
|
<el-select v-model="overlapType" :filterable="true" :placeholder="$t('map.pleaseSelect')">
|
||||||
|
<el-option
|
||||||
|
v-for="item in SwitchLocateTypeList"
|
||||||
|
:key="item.code"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<el-table :data="addModel.routeOverlapSwitchList" border style="width: 97%">
|
||||||
|
<el-table-column prop="switchCode" :label="$t('map.switchId')">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ swictchName(scope.row.switchCode) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="switchType" :label="$t('map.switchType')" />
|
||||||
|
<el-table-column fixed="right" :label="$t('map.operation')" width="50">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.prevent="deleteSwitch(addModel.routeOverlapSwitchList, scope.$index)"
|
||||||
|
>
|
||||||
|
{{ $t('map.remove') }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button-group>
|
<el-button-group>
|
||||||
<el-button v-if="isSave" type="primary" size="small" :loading="loading" @click="save">{{ $t('map.save') }}
|
<el-button v-if="isSave" type="primary" size="small" :loading="loading" @click="save">{{ $t('map.save') }}
|
||||||
|
@ -111,7 +111,7 @@ export default {
|
|||||||
]),
|
]),
|
||||||
dataForm() {
|
dataForm() {
|
||||||
const form = {
|
const form = {
|
||||||
labelWidth: '150px',
|
labelWidth: '130px',
|
||||||
items: {
|
items: {
|
||||||
code: {
|
code: {
|
||||||
name: '',
|
name: '',
|
||||||
@ -126,7 +126,7 @@ export default {
|
|||||||
{ prop: 'height', label: this.$t('map.imageHeight'), type: 'number', min: 0 },
|
{ prop: 'height', label: this.$t('map.imageHeight'), type: 'number', min: 0 },
|
||||||
{ prop: 'zIndex', label: this.$t('map.imageZindex'), type: 'number', min: 0 },
|
{ prop: 'zIndex', label: this.$t('map.imageZindex'), type: 'number', min: 0 },
|
||||||
{ prop: 'rotate', label: this.$t('map.rotateAngle'), type: 'number', min: 0 },
|
{ prop: 'rotate', label: this.$t('map.rotateAngle'), type: 'number', min: 0 },
|
||||||
{ prop: 'position', label: this.$t('map.imagePoint'), type: 'coordinate', width: '140px', children: [
|
{ prop: 'position', label: this.$t('map.imagePoint'), type: 'coordinate', width: '120px', children: [
|
||||||
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px' },
|
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px' },
|
||||||
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px' }
|
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px' }
|
||||||
] }
|
] }
|
||||||
@ -206,8 +206,6 @@ export default {
|
|||||||
y: selected.position.y
|
y: selected.position.y
|
||||||
};
|
};
|
||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -194,7 +194,11 @@ export default {
|
|||||||
} else if (label == 'label') {
|
} else if (label == 'label') {
|
||||||
return option.label;
|
return option.label;
|
||||||
} else if (label == 'name&&code') {
|
} else if (label == 'name&&code') {
|
||||||
|
if (option.code) {
|
||||||
return option.name + ' (' + option.code+ ')';
|
return option.name + ' (' + option.code+ ')';
|
||||||
|
} else {
|
||||||
|
return option.name;
|
||||||
|
}
|
||||||
} else if (label == 'code&&name') {
|
} else if (label == 'code&&name') {
|
||||||
return option.code + ' (' + option.name+ ')';
|
return option.code + ' (' + option.name+ ')';
|
||||||
} else {
|
} else {
|
||||||
|
@ -209,7 +209,11 @@ export default {
|
|||||||
} else if (label == 'label') {
|
} else if (label == 'label') {
|
||||||
return option.label;
|
return option.label;
|
||||||
} else if (label == 'name&&code') {
|
} else if (label == 'name&&code') {
|
||||||
|
if (option.code) {
|
||||||
return option.name + ' (' + option.code+ ')';
|
return option.name + ' (' + option.code+ ')';
|
||||||
|
} else {
|
||||||
|
return option.name;
|
||||||
|
}
|
||||||
} else if (label == 'code&&name') {
|
} else if (label == 'code&&name') {
|
||||||
return option.code + ' (' + option.name+ ')';
|
return option.code + ' (' + option.name+ ')';
|
||||||
} else {
|
} else {
|
||||||
|
@ -150,8 +150,10 @@ export default {
|
|||||||
{ prop: 'name', label: this.$t('map.counterName'), type: 'input' },
|
{ prop: 'name', label: this.$t('map.counterName'), type: 'input' },
|
||||||
{ prop: 'type', label: this.$t('map.counterType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.typeList },
|
{ prop: 'type', label: this.$t('map.counterType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.typeList },
|
||||||
{ prop: 'max', label: this.$t('map.countMax'), type: 'number', min: 0, placeholder: '个' },
|
{ prop: 'max', label: this.$t('map.countMax'), type: 'number', min: 0, placeholder: '个' },
|
||||||
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: this.$t('map.pointX'), type: 'number', placeholder: 'px' },
|
{ prop: 'position', label: this.$t('map.counterPosition'), type: 'coordinate', width: '110px', children: [
|
||||||
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: this.$t('map.pointY'), type: 'number', placeholder: 'px' }
|
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -200,8 +202,6 @@ export default {
|
|||||||
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
||||||
this.addModel.stationCode = selected.code;
|
this.addModel.stationCode = selected.code;
|
||||||
this.activeName = 'second';
|
this.activeName = 'second';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -132,8 +132,10 @@ export default {
|
|||||||
{ prop: 'unlockTime', label: this.$t('map.delayTime'), type: 'number', min: 0, max: 1000, placeholder: 's' },
|
{ prop: 'unlockTime', label: this.$t('map.delayTime'), type: 'number', min: 0, max: 1000, placeholder: 's' },
|
||||||
{ prop: 'fontFamily', label: this.$t('map.font'), type: 'font' },
|
{ prop: 'fontFamily', label: this.$t('map.font'), type: 'font' },
|
||||||
{ prop: 'textFontColor', label: this.$t('map.color'), type: 'color' },
|
{ prop: 'textFontColor', label: this.$t('map.color'), type: 'color' },
|
||||||
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: this.$t('map.pointX'), type: 'number', placeholder: 'px' },
|
{ prop: 'position', label: this.$t('map.delayUnlockPosition'), type: 'coordinate', width: '110px', children: [
|
||||||
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: this.$t('map.pointY'), type: 'number', placeholder: 'px' }
|
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -182,8 +184,6 @@ export default {
|
|||||||
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
||||||
this.addModel.stationCode = selected.code;
|
this.addModel.stationCode = selected.code;
|
||||||
this.activeName = 'second';
|
this.activeName = 'second';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$refs.form.clearValidate();
|
this.$refs.form.clearValidate();
|
||||||
|
@ -185,8 +185,6 @@ export default {
|
|||||||
y: selected.position.y
|
y: selected.position.y
|
||||||
};
|
};
|
||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -176,8 +176,6 @@ export default {
|
|||||||
y: selected.position.y
|
y: selected.position.y
|
||||||
};
|
};
|
||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -208,8 +208,6 @@ export default {
|
|||||||
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
||||||
this.addModel.stationName = selected.name;
|
this.addModel.stationName = selected.name;
|
||||||
this.activeName = 'second';
|
this.activeName = 'second';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addPoint(index) {
|
addPoint(index) {
|
||||||
|
@ -170,20 +170,19 @@ export default {
|
|||||||
item: [
|
item: [
|
||||||
{ prop: 'code', label: this.$t('map.linkCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList, change: true, deviceChange: this.deviceChange },
|
{ prop: 'code', label: this.$t('map.linkCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList, change: true, deviceChange: this.deviceChange },
|
||||||
{ prop: 'name', label: this.$t('map.linkName'), type: 'input' },
|
{ prop: 'name', label: this.$t('map.linkName'), type: 'input' },
|
||||||
{ prop: 'lengthShow', label: this.$t('map.linkDisplayLength'), type: 'number', min: 50, placeholder: 'px' },
|
{ prop: 'lp', label: this.$t('map.linkLp'), type: 'coordinate', width: '119px', children: [
|
||||||
{ prop: 'color', label: this.$t('map.linkColor'), type: 'color' },
|
|
||||||
{ prop: 'leftFdCode', label: this.$t('map.linkLeftFdCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList },
|
|
||||||
{ prop: 'leftSdCode', label: this.$t('map.linkLeftSdCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList },
|
|
||||||
{ prop: 'rightFdCode', label: this.$t('map.linkRightFdCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList },
|
|
||||||
{ prop: 'rightSdCode', label: this.$t('map.linkRightSdCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList },
|
|
||||||
{ prop: 'lp', label: this.$t('map.linkLp'), type: 'coordinate', width: '160px', children: [
|
|
||||||
{ prop: 'lp.x', firstLevel: 'lp', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px', disabled: false },
|
{ prop: 'lp.x', firstLevel: 'lp', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px', disabled: false },
|
||||||
{ prop: 'lp.y', firstLevel: 'lp', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px', disabled: false }
|
{ prop: 'lp.y', firstLevel: 'lp', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px', disabled: false }
|
||||||
] },
|
] },
|
||||||
{ prop: 'rp', label: this.$t('map.linkRp'), type: 'coordinate', width: '160px', children: [
|
{ prop: 'rp', label: this.$t('map.linkRp'), type: 'coordinate', width: '119px', children: [
|
||||||
{ prop: 'rp.x', firstLevel: 'rp', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px', disabled: false },
|
{ prop: 'rp.x', firstLevel: 'rp', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px', disabled: false },
|
||||||
{ prop: 'rp.y', firstLevel: 'rp', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px', disabled: false }
|
{ prop: 'rp.y', firstLevel: 'rp', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px', disabled: false }
|
||||||
] }
|
] },
|
||||||
|
{ prop: 'color', label: this.$t('map.linkColor'), type: 'color' },
|
||||||
|
{ prop: 'leftFdCode', label: this.$t('map.linkLeftFdCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkLists },
|
||||||
|
{ prop: 'leftSdCode', label: this.$t('map.linkLeftSdCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkLists },
|
||||||
|
{ prop: 'rightFdCode', label: this.$t('map.linkRightFdCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkLists },
|
||||||
|
{ prop: 'rightSdCode', label: this.$t('map.linkRightSdCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkLists }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -279,6 +278,10 @@ export default {
|
|||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
this.$refs.dataform.clearValidate();
|
this.$refs.dataform.clearValidate();
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
linkList(value) {
|
||||||
|
this.linkLists = JSON.parse(JSON.stringify(this.linkList));
|
||||||
|
this.linkLists.unshift({code: '', name: '无'});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -301,10 +304,10 @@ export default {
|
|||||||
this.editModel.lengthShow = Math.sqrt(Math.pow(selected.rp.x - selected.lp.x, 2) + Math.pow(selected.rp.y - selected.lp.y, 2));
|
this.editModel.lengthShow = Math.sqrt(Math.pow(selected.rp.x - selected.lp.x, 2) + Math.pow(selected.rp.y - selected.lp.y, 2));
|
||||||
this.editModel.lengthFact = selected.lengthFact;
|
this.editModel.lengthFact = selected.lengthFact;
|
||||||
this.editModel.color = selected.color;
|
this.editModel.color = selected.color;
|
||||||
this.editModel.leftFdCode = selected.leftFdCode;
|
this.editModel.leftFdCode = selected.leftFdCode || '';
|
||||||
this.editModel.leftSdCode = selected.leftSdCode;
|
this.editModel.leftSdCode = selected.leftSdCode || '';
|
||||||
this.editModel.rightFdCode = selected.rightFdCode;
|
this.editModel.rightFdCode = selected.rightFdCode || '';
|
||||||
this.editModel.rightSdCode = selected.rightSdCode;
|
this.editModel.rightSdCode = selected.rightSdCode || '';
|
||||||
this.editModel.lp = {
|
this.editModel.lp = {
|
||||||
x: selected.lp.x,
|
x: selected.lp.x,
|
||||||
y: selected.lp.y
|
y: selected.lp.y
|
||||||
@ -314,8 +317,6 @@ export default {
|
|||||||
y: selected.rp.y
|
y: selected.rp.y
|
||||||
};
|
};
|
||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -136,30 +136,6 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane class="view-control" :label="$t('map.rulesChange')" name="six">
|
|
||||||
<el-scrollbar wrap-class="scrollbar-wrapper" :style="{ height: cardHeight +'px' }">
|
|
||||||
<el-form ref="fiveRule" :model="editRuleModel" label-width="120px" size="mini" :rules="editRule">
|
|
||||||
<el-form-item :label="$t('map.pointY')" prop="pointY">
|
|
||||||
<el-input-number v-model="editRuleModel.pointY" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('map.trainDirection')" prop="trainType">
|
|
||||||
<el-select v-model="editRuleModel.trainType" filterable :placeholder="$t('map.pleaseSelect')">
|
|
||||||
<el-option
|
|
||||||
v-for="option in TrainPositionTypeList"
|
|
||||||
:key="option.code"
|
|
||||||
:label="option.name"
|
|
||||||
:value="option.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</el-scrollbar>
|
|
||||||
<div class="button_box">
|
|
||||||
<el-button-group class="map-draft-group">
|
|
||||||
<el-button type="primary" size="small" @click="editSectionTrain">{{ $t('map.updateObj') }}</el-button>
|
|
||||||
</el-button-group>
|
|
||||||
</div>
|
|
||||||
</el-tab-pane>
|
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -235,13 +211,14 @@ export default {
|
|||||||
offsetLeft: 0,
|
offsetLeft: 0,
|
||||||
sepTypeRight: '',
|
sepTypeRight: '',
|
||||||
offsetRight: 0,
|
offsetRight: 0,
|
||||||
trainPosType: '',
|
trainPosType: '01',
|
||||||
|
// pointY: '',
|
||||||
parentCode: '',
|
parentCode: '',
|
||||||
points: [],
|
points: [],
|
||||||
isCurve: false
|
isCurve: false
|
||||||
},
|
},
|
||||||
editRuleModel: {
|
editRuleModel: {
|
||||||
trainType: '01',
|
// trainType: '01',
|
||||||
pointY: 0
|
pointY: 0
|
||||||
},
|
},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
@ -304,15 +281,13 @@ export default {
|
|||||||
item: [
|
item: [
|
||||||
{ prop: 'code', label: this.$t('map.blockCoding'), type: 'select', mode: false, optionLabel: 'name&&code', optionValue: 'code', options: this.sectionList, change: true, deviceChange: this.deviceChange },
|
{ prop: 'code', label: this.$t('map.blockCoding'), type: 'select', mode: false, optionLabel: 'name&&code', optionValue: 'code', options: this.sectionList, change: true, deviceChange: this.deviceChange },
|
||||||
{ prop: 'name', label: this.$t('map.sectionNameColon'), type: 'input' },
|
{ prop: 'name', label: this.$t('map.sectionNameColon'), type: 'input' },
|
||||||
{ prop: 'parentCode', label: this.$t('map.associatedSection'), type: 'select', mode: true, optionLabel: 'code&&name', optionValue: 'code', disabled: true, options: this.sectionList, isHidden: !this.isParentCode },
|
|
||||||
{ prop: 'namePoint', label: this.$t('map.sectionNameOffset'), type: 'coordinate', width: '150px', children: [
|
{ prop: 'namePoint', label: this.$t('map.sectionNameOffset'), type: 'coordinate', width: '150px', children: [
|
||||||
{ prop: 'namePoint.x', firstLevel: 'namePoint', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px' },
|
{ prop: 'namePoint.x', firstLevel: 'namePoint', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
{ prop: 'namePoint.y', firstLevel: 'namePoint', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px' }
|
{ prop: 'namePoint.y', firstLevel: 'namePoint', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
] },
|
] },
|
||||||
{ prop: 'nameShow', label: this.$t('map.displayExtentName'), type: 'checkbox', isHidden: !this.isSectionType },
|
{ prop: 'type', label: this.$t('map.sectionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SectionTypeList, disabled: true },
|
||||||
{ prop: 'axleShow', label: this.$t('map.displayAxleCounter'), type: 'checkbox', disabled: this.isStationAxleShow, isHidden: !this.isSectionType},
|
{ prop: 'linkCode', label: this.$t('map.relevanceLinkCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList, disabled: true, isHidden: !this.isSectionType },
|
||||||
{ prop: 'logicSectionShow', label: this.$t('map.displayLogicalExtents'), type: 'checkbox', isHidden: !this.isSectionType },
|
{ prop: 'parentCode', label: this.$t('map.associatedSection'), type: 'select', mode: true, optionLabel: 'name&&code', optionValue: 'code', disabled: true, options: this.sectionList, isHidden: !this.isParentCode },
|
||||||
{ prop: 'logicSectionNameShow', label: this.$t('map.displayLogicalWxtentNames'), type: 'checkbox', disabled: this.islogicSectionNameShow, isHidden: !this.isSectionType },
|
|
||||||
{ prop: 'isStandTrack', label: this.$t('map.isStandTrack'), type: 'checkbox', isHidden: !this.isSectionType },
|
{ prop: 'isStandTrack', label: this.$t('map.isStandTrack'), type: 'checkbox', isHidden: !this.isSectionType },
|
||||||
{ prop: 'standTrackName', label: this.$t('map.standTrackName'), type: 'input', isHidden: !this.isstandTrackNameShow },
|
{ prop: 'standTrackName', label: this.$t('map.standTrackName'), type: 'input', isHidden: !this.isstandTrackNameShow },
|
||||||
{ prop: 'standTrackNamePosition', label: this.$t('map.standTrackNamePosition'), type: 'coordinate', width: '150px', isHidden: !this.isstandTrackNameShow, children: [
|
{ prop: 'standTrackNamePosition', label: this.$t('map.standTrackNamePosition'), type: 'coordinate', width: '150px', isHidden: !this.isstandTrackNameShow, children: [
|
||||||
@ -342,11 +317,12 @@ export default {
|
|||||||
{ prop: 'rightStopPointOffset', label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, isHidden: !this.isStopPointOffset },
|
{ prop: 'rightStopPointOffset', label: this.$t('map.rightStopPointOffset'), type: 'number', min: 0, isHidden: !this.isStopPointOffset },
|
||||||
{ prop: 'isSwitchSection', label: this.$t('map.isSwitchSection'), type: 'checkbox', isHidden: !this.isSectionType },
|
{ prop: 'isSwitchSection', label: this.$t('map.isSwitchSection'), type: 'checkbox', isHidden: !this.isSectionType },
|
||||||
{ prop: 'relSwitchCode', label: this.$t('map.relSwitchCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.switchList, change: true, deviceChange: this.deviceChange, isHidden: !this.isRelSwitchCode },
|
{ prop: 'relSwitchCode', label: this.$t('map.relSwitchCode'), type: 'select', optionLabel: 'code&&name', optionValue: 'code', options: this.switchList, change: true, deviceChange: this.deviceChange, isHidden: !this.isRelSwitchCode },
|
||||||
|
{ prop: 'logicSectionShow', label: this.$t('map.displayLogicalExtents'), type: 'checkbox', isHidden: !this.isSectionType },
|
||||||
|
{ prop: 'logicSectionNameShow', label: this.$t('map.displayLogicalWxtentNames'), type: 'checkbox', disabled: this.islogicSectionNameShow, isHidden: !this.isSectionType },
|
||||||
{ prop: 'logicSectionNameSort', label: this.$t('map.logicSectionNameSort'), type: 'radio', isHidden: !this.isLogicSectionNameSort, radioList: [
|
{ prop: 'logicSectionNameSort', label: this.$t('map.logicSectionNameSort'), type: 'radio', isHidden: !this.isLogicSectionNameSort, radioList: [
|
||||||
{value: true, label: this.$t('map.fromSmallToLarge')},
|
{value: true, label: this.$t('map.fromSmallToLarge')},
|
||||||
{value: false, label: this.$t('map.fromLargeToSmall')}
|
{value: false, label: this.$t('map.fromLargeToSmall')}
|
||||||
] },
|
] },
|
||||||
{ prop: 'linkCode', label: this.$t('map.relevanceLinkCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList, disabled: true, isHidden: !this.isSectionType },
|
|
||||||
{ prop: 'sepTypeLeft', label: this.$t('map.sepTypeLeft'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SectionSepTypeList, isHidden: !this.isSectionType },
|
{ prop: 'sepTypeLeft', label: this.$t('map.sepTypeLeft'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SectionSepTypeList, isHidden: !this.isSectionType },
|
||||||
{ prop: 'sepTypeRight', label: this.$t('map.sepTypeRight'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SectionSepTypeList, isHidden: !this.isSectionType },
|
{ prop: 'sepTypeRight', label: this.$t('map.sepTypeRight'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SectionSepTypeList, isHidden: !this.isSectionType },
|
||||||
{ prop: 'isSegmentation', label: this.$t('map.isSegmentation'), type: 'checkbox', isHidden: !this.isSectionType },
|
{ prop: 'isSegmentation', label: this.$t('map.isSegmentation'), type: 'checkbox', isHidden: !this.isSectionType },
|
||||||
@ -364,10 +340,9 @@ export default {
|
|||||||
{ prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', mode: true, optionLabel: 'name&&code', optionValue: 'code', disabled: this.isStationCodeDisabled, options: this.stationList },
|
{ prop: 'stationCode', label: this.$t('map.equipmentStation'), type: 'select', mode: true, optionLabel: 'name&&code', optionValue: 'code', disabled: this.isStationCodeDisabled, options: this.stationList },
|
||||||
{ prop: 'offsetLeft', label: this.$t('map.sectionOffsetLeft'), type: 'number', min: 0, placeholder: '米', isHidden: !this.isSectionType },
|
{ prop: 'offsetLeft', label: this.$t('map.sectionOffsetLeft'), type: 'number', min: 0, placeholder: '米', isHidden: !this.isSectionType },
|
||||||
{ prop: 'offsetRight', label: this.$t('map.sectionOffsetRight'), type: 'number', min: 0, placeholder: '米', isHidden: !this.isSectionType },
|
{ prop: 'offsetRight', label: this.$t('map.sectionOffsetRight'), type: 'number', min: 0, placeholder: '米', isHidden: !this.isSectionType },
|
||||||
{ prop: 'region', label: this.$t('map.sectionColon'), type: 'select', optionLabel: 'label', optionValue: 'value', options: this.regionList },
|
{ prop: 'region', label: this.$t('map.sectionColon'), type: 'select', optionLabel: 'label', optionValue: 'value', options: this.regionList, isHidden: !this.sectionColonShow },
|
||||||
{ prop: 'kmRangeLeft', label: this.$t('map.leftKilometerMark'), type: 'number', min: 0 },
|
{ prop: 'kmRangeLeft', label: this.$t('map.leftKilometerMark'), type: 'number', min: 0 },
|
||||||
{ prop: 'kmRangeRight', label: this.$t('map.rightKilometerMark'), type: 'number', min: 0 },
|
{ prop: 'kmRangeRight', label: this.$t('map.rightKilometerMark'), type: 'number', min: 0 },
|
||||||
{ prop: 'type', label: this.$t('map.sectionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SectionTypeList },
|
|
||||||
{ prop: 'trainPosType', label: this.$t('map.trainDirection'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.TrainPositionTypeList, isHidden: !this.isSectionType }
|
{ prop: 'trainPosType', label: this.$t('map.trainDirection'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.TrainPositionTypeList, isHidden: !this.isSectionType }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -424,6 +399,9 @@ export default {
|
|||||||
],
|
],
|
||||||
sepTypeRight: [
|
sepTypeRight: [
|
||||||
{ required: true, message: this.$t('rules.sectionSepTypeRight'), trigger: 'change' }
|
{ required: true, message: this.$t('rules.sectionSepTypeRight'), trigger: 'change' }
|
||||||
|
],
|
||||||
|
relSwitchCode: [
|
||||||
|
{ required: true, message: this.$t('rules.sectionRelSwitchCode'), trigger: 'change' }
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
return rules;
|
return rules;
|
||||||
@ -460,6 +438,7 @@ export default {
|
|||||||
|
|
||||||
// 判断显隐
|
// 判断显隐
|
||||||
isParentCode() {
|
isParentCode() {
|
||||||
|
// true 显示 false 隐藏
|
||||||
return this.editModel.type == '02' || this.editModel.relSwitchCode;
|
return this.editModel.type == '02' || this.editModel.relSwitchCode;
|
||||||
},
|
},
|
||||||
isStationCodeDisabled() {
|
isStationCodeDisabled() {
|
||||||
@ -510,6 +489,12 @@ export default {
|
|||||||
},
|
},
|
||||||
pointDisabledName() {
|
pointDisabledName() {
|
||||||
return this.editModel.type == '02';
|
return this.editModel.type == '02';
|
||||||
|
},
|
||||||
|
sectionColonShow() {
|
||||||
|
if (this.$store.state.map.map) {
|
||||||
|
return this.$store.state.map.map.skinVO.code == '03';
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -639,7 +624,7 @@ export default {
|
|||||||
this.computedLogicSectionNumList(this.editModel.logicSectionNum);
|
this.computedLogicSectionNumList(this.editModel.logicSectionNum);
|
||||||
|
|
||||||
// 激活选择Section
|
// 激活选择Section
|
||||||
this.activeName = 'three';
|
// this.activeName = 'three';
|
||||||
if (this.field.toUpperCase() === 'splitSection'.toUpperCase()) {
|
if (this.field.toUpperCase() === 'splitSection'.toUpperCase()) {
|
||||||
this.addModel.code = selected.code;
|
this.addModel.code = selected.code;
|
||||||
} else if (this.field.toUpperCase() === 'leftSection'.toUpperCase()) {
|
} else if (this.field.toUpperCase() === 'leftSection'.toUpperCase()) {
|
||||||
@ -650,7 +635,7 @@ export default {
|
|||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.activeName = 'second';
|
// this.activeName = 'second';
|
||||||
this.tableData = [];
|
this.tableData = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -766,16 +751,6 @@ export default {
|
|||||||
this.$emit('addOrUpdateMapModel', models);
|
this.$emit('addOrUpdateMapModel', models);
|
||||||
this.$emit('delMapModel', remove);
|
this.$emit('delMapModel', remove);
|
||||||
},
|
},
|
||||||
editSectionTrain() {
|
|
||||||
const data = [];
|
|
||||||
this.sectionList.forEach(ele => {
|
|
||||||
if (ele.points[0].y == this.editRuleModel.pointY && ele.points[ele.points.length - 1].y == this.editRuleModel.pointY) {
|
|
||||||
ele.trainPosType = this.editRuleModel.trainType;
|
|
||||||
data.push(ele);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.$emit('addOrUpdateMapModel', data);
|
|
||||||
},
|
|
||||||
addPoint(index) {
|
addPoint(index) {
|
||||||
const data = { x: 0, y: 0 };
|
const data = { x: 0, y: 0 };
|
||||||
this.editModel.points.splice(index + 1, 0, data);
|
this.editModel.points.splice(index + 1, 0, data);
|
||||||
@ -977,6 +952,10 @@ export default {
|
|||||||
section.trainPosType = model.trainPosType;
|
section.trainPosType = model.trainPosType;
|
||||||
edits.push(section);
|
edits.push(section);
|
||||||
}
|
}
|
||||||
|
// if (section.points[0].y == this.editModel.pointY && section.points[section.points.length - 1].y == this.editModel.pointY) {
|
||||||
|
// section.trainPosType = this.editModel.trainPosType;
|
||||||
|
// edits.push(section);
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
edits.push(model);
|
edits.push(model);
|
||||||
this.fieldS = '';
|
this.fieldS = '';
|
||||||
|
@ -219,22 +219,30 @@ export default {
|
|||||||
item: [
|
item: [
|
||||||
{ prop: 'code', label: this.$t('map.signalCodeColon'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.signalList, change: true, deviceChange: this.deviceChange },
|
{ prop: 'code', label: this.$t('map.signalCodeColon'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.signalList, change: true, deviceChange: this.deviceChange },
|
||||||
{ prop: 'name', label: this.$t('map.signalNameColon'), type: 'input' },
|
{ prop: 'name', label: this.$t('map.signalNameColon'), type: 'input' },
|
||||||
{ prop: 'nameShow', label: this.$t('map.signalDisplayName'), type: 'checkbox' },
|
{ prop: 'position', label: this.$t('map.signalPosition'), type: 'coordinate', width: '140px', children: [
|
||||||
|
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] },
|
||||||
|
// { prop: 'nameShow', label: this.$t('map.signalDisplayName'), type: 'checkbox' },
|
||||||
{ prop: 'lampPostType', label: this.$t('map.lampPostType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalLampPostTypeList },
|
{ prop: 'lampPostType', label: this.$t('map.lampPostType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalLampPostTypeList },
|
||||||
{ prop: 'lampPositionType', label: this.$t('map.lampPositionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalLampPositionTypeList },
|
{ prop: 'lampPositionType', label: this.$t('map.lampPositionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalLampPositionTypeList },
|
||||||
{ prop: 'directionType', label: this.$t('map.signalDirectionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalDirectionTypeList },
|
{ prop: 'directionType', label: this.$t('map.signalDirectionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalDirectionTypeList },
|
||||||
{ prop: 'positionType', label: this.$t('map.signalPositionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalPositionTypeList },
|
{ prop: 'positionType', label: this.$t('map.signalPositionType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalPositionTypeList },
|
||||||
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: this.$t('map.signalPositionX'), type: 'number', placeholder: 'px' },
|
|
||||||
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: this.$t('map.signalPositionY'), type: 'number', placeholder: 'px' },
|
|
||||||
{ prop: 'rotate', label: this.$t('map.rotateAngle'), type: 'number', min: -90, max: 90, placeholder: this.$t('tip.angle') },
|
{ prop: 'rotate', label: this.$t('map.rotateAngle'), type: 'number', min: -90, max: 90, placeholder: this.$t('tip.angle') },
|
||||||
{ prop: 'namePosition.x', firstLevel: 'namePosition', secondLevel: 'x', label: this.$t('map.signalNamePositionX'), type: 'number', placeholder: 'px' },
|
{ prop: 'namePosition', label: this.$t('map.signalNamePosition'), type: 'coordinate', width: '140px', children: [
|
||||||
{ prop: 'namePosition.y', firstLevel: 'namePosition', secondLevel: 'x', label: this.$t('map.signalNamePositionY'), type: 'number', placeholder: 'px' },
|
{ prop: 'namePosition.x', firstLevel: 'namePosition', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'namePosition.y', firstLevel: 'namePosition', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] },
|
||||||
{ prop: 'buttonShow', label: this.$t('map.signalButtonShow'), type: 'checkbox' },
|
{ prop: 'buttonShow', label: this.$t('map.signalButtonShow'), type: 'checkbox' },
|
||||||
{ prop: 'buttonPosition.x', firstLevel: 'buttonPosition', secondLevel: 'x', label: this.$t('map.signalButtonPositionX'), type: 'number', placeholder: 'px' },
|
{ prop: 'buttonPosition', label: this.$t('map.signalButtonPosition'), type: 'coordinate', width: '140px', children: [
|
||||||
{ prop: 'buttonPosition.y', firstLevel: 'buttonPosition', secondLevel: 'x', label: this.$t('map.signalButtonPositionY'), type: 'number', placeholder: 'px' },
|
{ prop: 'buttonPosition.x', firstLevel: 'buttonPosition', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'buttonPosition.y', firstLevel: 'buttonPosition', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] },
|
||||||
{ prop: 'guideShow', label: this.$t('map.signalGuideShow'), type: 'checkbox' },
|
{ prop: 'guideShow', label: this.$t('map.signalGuideShow'), type: 'checkbox' },
|
||||||
{ prop: 'guidePosition.x', firstLevel: 'guidePosition', secondLevel: 'x', label: this.$t('map.signalGuidePositionX'), type: 'number', placeholder: 'px' },
|
{ prop: 'guidePosition', label: this.$t('map.signalGuidePosition'), type: 'coordinate', width: '140px', children: [
|
||||||
{ prop: 'guidePosition.y', firstLevel: 'guidePosition', secondLevel: 'x', label: this.$t('map.signalGuidePositionY'), type: 'number', placeholder: 'px' }
|
{ prop: 'guidePosition.x', firstLevel: 'guidePosition', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'guidePosition.y', firstLevel: 'guidePosition', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -244,7 +252,7 @@ export default {
|
|||||||
{ prop: 'uniqueName', label: this.$t('map.signalUniqueName'), type: 'input' },
|
{ prop: 'uniqueName', label: this.$t('map.signalUniqueName'), type: 'input' },
|
||||||
{ prop: 'useType', label: this.$t('map.signalUseType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalUseTypeList },
|
{ prop: 'useType', label: this.$t('map.signalUseType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalUseTypeList },
|
||||||
{ prop: 'potLampType', label: this.$t('map.potLampType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalPotLampTypeList },
|
{ prop: 'potLampType', label: this.$t('map.potLampType'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.SignalPotLampTypeList },
|
||||||
{ prop: 'linkCode', label: 'LinkCode:', type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList },
|
{ prop: 'linkCode', label: this.$t('map.signalLinkCode')+':', type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.linkList },
|
||||||
{ prop: 'offset', label: this.$t('map.signalOffset'), type: 'number', min: 0, placeholder: this.$t('tip.meter') }
|
{ prop: 'offset', label: this.$t('map.signalOffset'), type: 'number', min: 0, placeholder: this.$t('tip.meter') }
|
||||||
|
|
||||||
]
|
]
|
||||||
@ -267,9 +275,6 @@ export default {
|
|||||||
offset: [
|
offset: [
|
||||||
{ required: true, message: this.$t('rules.pleaseEnterSignalOffset'), trigger: 'blur' }
|
{ required: true, message: this.$t('rules.pleaseEnterSignalOffset'), trigger: 'blur' }
|
||||||
],
|
],
|
||||||
stationCode: [
|
|
||||||
{ required: true, message: this.$t('rules.pleaseEnterSignalStation'), trigger: 'change' }
|
|
||||||
],
|
|
||||||
'position.x': [
|
'position.x': [
|
||||||
{ required: true, message: this.$t('rules.pleaseEnterSignalPositionX'), trigger: 'blur' }
|
{ required: true, message: this.$t('rules.pleaseEnterSignalPositionX'), trigger: 'blur' }
|
||||||
],
|
],
|
||||||
@ -395,8 +400,6 @@ export default {
|
|||||||
this.addModel.sectionCode = selected.code;
|
this.addModel.sectionCode = selected.code;
|
||||||
}
|
}
|
||||||
this.activeName = 'second';
|
this.activeName = 'second';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hover(field) {
|
hover(field) {
|
||||||
|
@ -103,7 +103,7 @@ export default {
|
|||||||
]),
|
]),
|
||||||
form() {
|
form() {
|
||||||
const form = {
|
const form = {
|
||||||
labelWidth: '150px',
|
labelWidth: '130px',
|
||||||
items: {
|
items: {
|
||||||
code: {
|
code: {
|
||||||
name: '',
|
name: '',
|
||||||
@ -114,16 +114,18 @@ export default {
|
|||||||
item: [
|
item: [
|
||||||
{ prop: 'code', label: this.$t('map.stationCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList, change: true, deviceChange: this.deviceChange },
|
{ prop: 'code', label: this.$t('map.stationCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationList, change: true, deviceChange: this.deviceChange },
|
||||||
{ prop: 'name', label: this.$t('map.stationName'), type: 'input' },
|
{ prop: 'name', label: this.$t('map.stationName'), type: 'input' },
|
||||||
{ prop: 'visible', label: this.$t('map.stationVisible'), type: 'checkbox' },
|
{ prop: 'position', label: this.$t('map.stationPosition'), type: 'coordinate', width: '120px', children: [
|
||||||
|
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] },
|
||||||
|
// { prop: 'visible', label: this.$t('map.stationVisible'), type: 'checkbox' },
|
||||||
{ prop: 'nameFont', label: this.$t('map.stationNameFont'), type: 'font', placeholder: this.$t('tip.stationFont') },
|
{ prop: 'nameFont', label: this.$t('map.stationNameFont'), type: 'font', placeholder: this.$t('tip.stationFont') },
|
||||||
{ prop: 'nameFontColor', label: this.$t('map.stationNameFontColor'), type: 'color' },
|
{ prop: 'nameFontColor', label: this.$t('map.stationNameFontColor'), type: 'color' },
|
||||||
{ prop: 'kmPostShow', label: this.$t('map.stationKmPostShow'), type: 'checkbox' },
|
// { prop: 'kmPostShow', label: this.$t('map.stationKmPostShow'), type: 'checkbox' },
|
||||||
{ prop: 'kmRange', label: this.$t('map.stationKmRange'), type: 'number', min: 0, placeholder: this.$t('tip.meter') },
|
{ prop: 'kmRange', label: this.$t('map.stationKmRange'), type: 'number', min: 0, placeholder: this.$t('tip.meter') },
|
||||||
{ prop: 'kmPost', label: this.$t('map.stationKmPost'), type: 'input' },
|
{ prop: 'kmPost', label: this.$t('map.stationKmPost'), type: 'input' },
|
||||||
{ prop: 'kmPostFont', label: this.$t('map.stationKmPostFont'), type: 'font', placeholder: this.$t('tip.kilometerFont') },
|
{ prop: 'kmPostFont', label: this.$t('map.stationKmPostFont'), type: 'font', placeholder: this.$t('tip.kilometerFont') },
|
||||||
{ prop: 'kmPostFontColor', label: this.$t('map.stationKmPostFontColor'), type: 'color' },
|
{ prop: 'kmPostFontColor', label: this.$t('map.stationKmPostFontColor'), type: 'color' }
|
||||||
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: this.$t('map.stationPositionX'), type: 'number', placeholder: 'px' },
|
|
||||||
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: this.$t('map.stationPositionY'), type: 'number', placeholder: 'px' }
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -227,8 +229,6 @@ export default {
|
|||||||
this.addModel.sectionCode = selected.code;
|
this.addModel.sectionCode = selected.code;
|
||||||
}
|
}
|
||||||
this.activeName = 'second';
|
this.activeName = 'second';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -109,8 +109,10 @@ export default {
|
|||||||
{ prop: 'zakContent', label: this.$t('map.zakContent'), type: 'input' },
|
{ prop: 'zakContent', label: this.$t('map.zakContent'), type: 'input' },
|
||||||
{ prop: 'jjzkContent', label: this.$t('map.jjzkContent'), type: 'input' },
|
{ prop: 'jjzkContent', label: this.$t('map.jjzkContent'), type: 'input' },
|
||||||
{ prop: 'zzkContent', label: this.$t('map.zzkContent'), type: 'input' },
|
{ prop: 'zzkContent', label: this.$t('map.zzkContent'), type: 'input' },
|
||||||
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: this.$t('map.pointX'), type: 'number', placeholder: 'px' },
|
{ prop: 'position', label: this.$t('map.stationControlPosition'), type: 'coordinate', width: '150px', children: [
|
||||||
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: this.$t('map.pointY'), type: 'number', placeholder: 'px' }
|
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -200,8 +202,6 @@ export default {
|
|||||||
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
||||||
this.addModel.stationCode = selected.code;
|
this.addModel.stationCode = selected.code;
|
||||||
this.activeName = 'second';
|
this.activeName = 'second';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -134,16 +134,18 @@ export default {
|
|||||||
name: this.$t('map.drawData'),
|
name: this.$t('map.drawData'),
|
||||||
item: [
|
item: [
|
||||||
{ prop: 'code', label: this.$t('map.relStandCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationStandList, change: true, deviceChange: this.deviceChange },
|
{ prop: 'code', label: this.$t('map.relStandCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.stationStandList, change: true, deviceChange: this.deviceChange },
|
||||||
{ prop: 'name', label: this.$t('map.stationstandNameColon'), type: 'input', disabled: true },
|
{ prop: 'name', label: this.$t('map.stationstandNameColon'), type: 'input' },
|
||||||
|
{ prop: 'position', label: this.$t('map.stationstandPosition'), type: 'coordinate', width: '120px', children: [
|
||||||
|
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] },
|
||||||
{ prop: 'direction', label: this.$t('map.stationstandTopBottom'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.RunDirectionTypeList },
|
{ prop: 'direction', label: this.$t('map.stationstandTopBottom'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.RunDirectionTypeList },
|
||||||
{ prop: 'visible', label: this.$t('map.stationVisible'), type: 'checkbox' },
|
{ prop: 'visible', label: this.$t('map.stationVisible'), type: 'checkbox' },
|
||||||
{ prop: 'nameShow', label: this.$t('map.stationstandShowName'), type: 'checkbox' },
|
// { prop: 'nameShow', label: this.$t('map.stationstandShowName'), type: 'checkbox' },
|
||||||
{ prop: 'doorLocationType', label: this.$t('map.stationstandDirection'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.DoorLocationTypeList },
|
{ prop: 'doorLocationType', label: this.$t('map.stationstandDirection'), type: 'select', optionLabel: 'name', optionValue: 'code', options: this.DoorLocationTypeList },
|
||||||
{ prop: 'hasDoor', label: this.$t('map.stationstandHasDoor'), type: 'checkbox' },
|
{ prop: 'hasDoor', label: this.$t('map.stationstandHasDoor'), type: 'checkbox' },
|
||||||
{ prop: 'width', label: this.$t('map.stationstandWidth'), type: 'number', min: 0, max: 2000, placeholder: 'px' },
|
{ prop: 'width', label: this.$t('map.stationstandWidth'), type: 'number', min: 0, max: 2000, placeholder: 'px' },
|
||||||
{ prop: 'height', label: this.$t('map.stationstandHeight'), type: 'number', min: 0, max: 2000, placeholder: 'px' },
|
{ prop: 'height', label: this.$t('map.stationstandHeight'), type: 'number', min: 0, max: 2000, placeholder: 'px' }
|
||||||
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: this.$t('map.pointX'), type: 'number', placeholder: 'px' },
|
|
||||||
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: this.$t('map.pointY'), type: 'number', placeholder: 'px' }
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -261,8 +263,6 @@ export default {
|
|||||||
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
||||||
this.addModel.stationCode = selected.code;
|
this.addModel.stationCode = selected.code;
|
||||||
this.activeName = 'second';
|
this.activeName = 'second';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -110,12 +110,15 @@ export default {
|
|||||||
item: [
|
item: [
|
||||||
{ prop: 'code', label: this.$t('map.switchCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.switchList, change: true, deviceChange: this.deviceChange },
|
{ prop: 'code', label: this.$t('map.switchCode'), type: 'select', optionLabel: 'name&&code', optionValue: 'code', options: this.switchList, change: true, deviceChange: this.deviceChange },
|
||||||
{ prop: 'name', label: this.$t('map.switchName'), type: 'input' },
|
{ prop: 'name', label: this.$t('map.switchName'), type: 'input' },
|
||||||
{ prop: 'nameShow', label: this.$t('map.switchShowName'), type: 'checkbox' },
|
// { prop: 'nameShow', label: this.$t('map.switchShowName'), type: 'checkbox' },
|
||||||
{ prop: 'namePoint.x', firstLevel: 'namePoint', secondLevel: 'x', label: this.$t('map.switchPositionX'), type: 'number', placeholder: 'px' },
|
{ prop: 'namePoint', label: this.$t('map.switchPosition'), type: 'coordinate', width: '160px', children: [
|
||||||
{ prop: 'namePoint.y', firstLevel: 'namePoint', secondLevel: 'y', label: this.$t('map.switchPositionY'), type: 'number', placeholder: 'px' },
|
{ prop: 'namePoint.x', firstLevel: 'namePoint', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
// { prop: 'timeoutShow', label: this.$t('map.timeoutShow'), type: 'checkbox' },
|
{ prop: 'namePoint.y', firstLevel: 'namePoint', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
{ prop: 'tp.x', firstLevel: 'tp', secondLevel: 'x', label: this.$t('map.switchTpX'), type: 'number', placeholder: 'px' },
|
] },
|
||||||
{ prop: 'tp.y', firstLevel: 'tp', secondLevel: 'y', label: this.$t('map.switchTpY'), type: 'number', placeholder: 'px' }
|
{ prop: 'tp', label: this.$t('map.switchTp'), type: 'coordinate', width: '160px', children: [
|
||||||
|
{ prop: 'tp.x', firstLevel: 'tp', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px' },
|
||||||
|
{ prop: 'tp.y', firstLevel: 'tp', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
|
||||||
|
] }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -146,9 +149,6 @@ export default {
|
|||||||
'namePoint.y': [
|
'namePoint.y': [
|
||||||
{ required: true, message: this.$t('rules.switchNamePointY'), trigger: 'blur' }
|
{ required: true, message: this.$t('rules.switchNamePointY'), trigger: 'blur' }
|
||||||
],
|
],
|
||||||
stationCode: [
|
|
||||||
{ required: true, message: this.$t('rules.switchStationCode'), trigger: 'change' }
|
|
||||||
],
|
|
||||||
turnTime: [
|
turnTime: [
|
||||||
{ required: true, message: this.$t('rules.switchTurnTime'), trigger: 'blur' }
|
{ required: true, message: this.$t('rules.switchTurnTime'), trigger: 'blur' }
|
||||||
],
|
],
|
||||||
|
@ -23,12 +23,25 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.pointX')" prop="position.x">
|
<div class="coordinate">
|
||||||
<el-input-number v-model="addModel.position.x" />px
|
<span class="title" style="width: 110px">{{ $t('map.textPoints') }}</span>
|
||||||
|
<el-form-item
|
||||||
|
label="x:"
|
||||||
|
prop="position.x"
|
||||||
|
style="display: table; float: left; margin-right: 20px;"
|
||||||
|
label-width="25px"
|
||||||
|
>
|
||||||
|
<el-input-number v-model="addModel.position.x" label="x:" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.pointY')" prop="position.y">
|
<el-form-item
|
||||||
<el-input-number v-model="addModel.position.y" />px
|
label="y:"
|
||||||
|
prop="position.y"
|
||||||
|
style="display: table; float: left;"
|
||||||
|
label-width="25px"
|
||||||
|
>
|
||||||
|
<el-input-number v-model="addModel.position.y" label="y:" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
<div class="button_box">
|
<div class="button_box">
|
||||||
@ -137,8 +150,10 @@ export default {
|
|||||||
{ prop: 'content', label: this.$t('map.textContent'), type: 'fontContent', content: 'content', prepend: 'prepend', placeholder: this.$t('map.pleaseSelect') },
|
{ prop: 'content', label: this.$t('map.textContent'), type: 'fontContent', content: 'content', prepend: 'prepend', placeholder: this.$t('map.pleaseSelect') },
|
||||||
{ prop: 'font', label: this.$t('map.textFont'), type: 'font', placeholder: this.$t('map.font') },
|
{ prop: 'font', label: this.$t('map.textFont'), type: 'font', placeholder: this.$t('map.font') },
|
||||||
{ prop: 'fontColor', label: this.$t('map.textFontColor'), type: 'color' },
|
{ prop: 'fontColor', label: this.$t('map.textFontColor'), type: 'color' },
|
||||||
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: this.$t('map.pointX'), type: 'number', placeholder: 'px' },
|
{ prop: 'position', label: this.$t('map.textPoints'), type: 'coordinate', width: '120px', children: [
|
||||||
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: this.$t('map.pointY'), type: 'number', placeholder: 'px' }
|
{ prop: 'position.x', firstLevel: 'position', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '25px', disabled: false },
|
||||||
|
{ prop: 'position.y', firstLevel: 'position', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px', disabled: false }
|
||||||
|
] }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -182,8 +197,6 @@ export default {
|
|||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
} else if (selected && selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
||||||
this.activeName = 'second';
|
this.activeName = 'second';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
@ -253,6 +266,25 @@ export default {
|
|||||||
background: #f0f0f0;
|
background: #f0f0f0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
.coordinate {
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
text-align: right;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #606266;
|
||||||
|
line-height: 40px;
|
||||||
|
padding: 0 12px 0 0;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
line-height: 28px;
|
||||||
|
width: 120px;
|
||||||
|
font-weight: bold;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
margin-right: 7px;
|
||||||
|
}
|
||||||
|
}
|
||||||
/deep/ {
|
/deep/ {
|
||||||
.el-select .el-input {
|
.el-select .el-input {
|
||||||
width: 130px;
|
width: 130px;
|
||||||
|
@ -64,7 +64,8 @@ export default {
|
|||||||
},
|
},
|
||||||
groupNumber: '',
|
groupNumber: '',
|
||||||
modelCode: ''
|
modelCode: ''
|
||||||
}
|
},
|
||||||
|
errorTip: this.$t('tip.selectValidInterval')
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -79,7 +80,7 @@ export default {
|
|||||||
range.end >= range.beg) {
|
range.end >= range.beg) {
|
||||||
callback();
|
callback();
|
||||||
} else {
|
} else {
|
||||||
callback(new Error(this.$t('tip.selectValidInterval')));
|
callback(new Error(this.errorTip));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
|
@ -87,7 +87,7 @@ export default {
|
|||||||
this.deviceSelect(val);
|
this.deviceSelect(val);
|
||||||
},
|
},
|
||||||
$route() {
|
$route() {
|
||||||
this.activeName = 'first';
|
// this.activeName = 'first';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -100,9 +100,9 @@ export default {
|
|||||||
this.editModel.code = selected.code;
|
this.editModel.code = selected.code;
|
||||||
this.editModel.modelCode = selected.modelCode;
|
this.editModel.modelCode = selected.modelCode;
|
||||||
this.editModel.groupNumber = selected.groupNumber;
|
this.editModel.groupNumber = selected.groupNumber;
|
||||||
this.activeName = 'first';
|
// this.activeName = 'first';
|
||||||
} else {
|
} else {
|
||||||
this.activeName = 'second';
|
// this.activeName = 'second';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create(list) {
|
create(list) {
|
||||||
|
@ -142,8 +142,10 @@ export default {
|
|||||||
{ prop: 'code', label: this.$t('map.trainWindowCode'), type: 'select', optionLabel: 'code', optionValue: 'code', options: this.trainWindowList, change: true, deviceChange: this.deviceChange },
|
{ prop: 'code', label: this.$t('map.trainWindowCode'), type: 'select', optionLabel: 'code', optionValue: 'code', options: this.trainWindowList, change: true, deviceChange: this.deviceChange },
|
||||||
{ prop: 'width', label: this.$t('map.trainWindowWidth'), type: 'number', min: 0, placeholder: 'px' },
|
{ prop: 'width', label: this.$t('map.trainWindowWidth'), type: 'number', min: 0, placeholder: 'px' },
|
||||||
{ prop: 'height', label: this.$t('map.trainWindowHeight'), type: 'number', min: 0, placeholder: 'px' },
|
{ prop: 'height', label: this.$t('map.trainWindowHeight'), type: 'number', min: 0, placeholder: 'px' },
|
||||||
{ prop: 'point.x', firstLevel: 'point', secondLevel: 'x', label: this.$t('map.pointX'), type: 'number', placeholder: 'px' },
|
{ prop: 'point', label: this.$t('map.trainWindowPoints'), type: 'coordinate', width: '110px', children: [
|
||||||
{ prop: 'point.y', firstLevel: 'point', secondLevel: 'y', label: this.$t('map.pointY'), type: 'number', placeholder: 'px' }
|
{ prop: 'point.x', firstLevel: 'point', secondLevel: 'x', label: 'x:', type: 'number', labelWidth: '20px', disabled: false },
|
||||||
|
{ prop: 'point.y', firstLevel: 'point', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '20px', disabled: false }
|
||||||
|
] }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
@ -191,8 +193,6 @@ export default {
|
|||||||
y: selected.point.y
|
y: selected.point.y
|
||||||
};
|
};
|
||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createModel(opts) {
|
createModel(opts) {
|
||||||
|
@ -184,8 +184,6 @@ export default {
|
|||||||
y: selected.position.y
|
y: selected.position.y
|
||||||
};
|
};
|
||||||
this.activeName = 'first';
|
this.activeName = 'first';
|
||||||
} else {
|
|
||||||
this.activeName = 'second';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -11,9 +11,6 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@submit.native.prevent
|
@submit.native.prevent
|
||||||
>
|
>
|
||||||
<el-form-item :label="$t('map.mapName')" prop="name">
|
|
||||||
<el-input v-model="editModel.name" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('map.skinName')" prop="skinCode">
|
<el-form-item :label="$t('map.skinName')" prop="skinCode">
|
||||||
<el-select v-model="editModel.skinCode" :placeholder="$t('map.pleaseSelect')" size="mini">
|
<el-select v-model="editModel.skinCode" :placeholder="$t('map.pleaseSelect')" size="mini">
|
||||||
<el-option
|
<el-option
|
||||||
@ -24,11 +21,14 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.selectCity')" prop="cityCode">
|
<el-form-item :label="$t('map.mapName')" prop="name">
|
||||||
|
<el-input v-model="editModel.name" />
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item :label="$t('map.selectCity')" prop="cityCode">
|
||||||
<el-select v-model="editModel.cityCode" :placeholder="$t('map.pleaseSelect')" size="mini">
|
<el-select v-model="editModel.cityCode" :placeholder="$t('map.pleaseSelect')" size="mini">
|
||||||
<el-option v-for="item in cityList" :key="item.code" :label="item.name" :value="item.code" />
|
<el-option v-for="item in cityList" :key="item.code" :label="item.name" :value="item.code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
@ -49,7 +49,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.scalingColon')" prop="scaling">
|
<el-form-item :label="$t('map.scalingColon')" prop="scaling">
|
||||||
<el-input-number v-model="updtModel.scaling" :precision="1" :step="0.2" disabled />
|
<el-input-number v-model="updtModel.scaling" :precision="1" :step="0.2" disabled />
|
||||||
<!-- <el-input v-model="updtModel.scaling" :label="$t('map.scaling')" /> -->
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
@ -95,7 +94,7 @@ export default {
|
|||||||
editModel: {
|
editModel: {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
skinCode: '',
|
skinCode: '01',
|
||||||
cityCode: ''
|
cityCode: ''
|
||||||
},
|
},
|
||||||
updtModel: {
|
updtModel: {
|
||||||
|
@ -44,7 +44,7 @@ export default {
|
|||||||
editModel: {
|
editModel: {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
cityCode: ''
|
cityCode: '000000'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -79,8 +79,6 @@ export default {
|
|||||||
},
|
},
|
||||||
mapSelectChange(id){
|
mapSelectChange(id){
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
// debugger;
|
|
||||||
// this.$store
|
|
||||||
localStore.set("script_mapId", id);
|
localStore.set("script_mapId", id);
|
||||||
this.$store.dispatch('scriptRecord/updateScriptId',id);
|
this.$store.dispatch('scriptRecord/updateScriptId',id);
|
||||||
this.getQuestPageList(id);
|
this.getQuestPageList(id);
|
||||||
|
@ -1,24 +1,37 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="reminder-drag">
|
<div class="reminder-drag">
|
||||||
<div class="reminder-box" ref="drapBox" :style="{height:'100%'}">
|
<div class="reminder-box" ref="drapBox" :style="{height:'100%'}">
|
||||||
<div class="actionPane">
|
<el-container class="actionPane">
|
||||||
<get-action ref="getAction" :group="group"></get-action>
|
<el-header style="height:50px;">
|
||||||
</div>
|
<el-row class="actionList">
|
||||||
|
<span class="titleStyle">剧本编制</span>
|
||||||
|
</el-row>
|
||||||
|
</el-header>
|
||||||
|
<el-main style="padding-top:10px;padding-bottom:10px;">
|
||||||
|
<add-role :group="group" ref="addRole" @refresh="refresh"></add-role>
|
||||||
|
<add-action ref="addAction" :group="group" :size="size" @create="create" @setDisabled="setDisabled"></add-action>
|
||||||
|
<get-action ref="getAction" :group="group" :size="size" @setAction="setAction"></get-action>
|
||||||
|
</el-main>
|
||||||
|
<el-footer>
|
||||||
<el-button-group class="button-group">
|
<el-button-group class="button-group">
|
||||||
<el-button type="primary" @click="pauseScript" v-if="isPause" :disabled="executeDisabled">暂停</el-button>
|
<el-button type="primary" @click="pauseScript" v-if="isPause" :disabled="executeDisabled">暂停</el-button>
|
||||||
<el-button type="primary" @click="executePlayScript" v-else :disabled="executeDisabled">恢复并执行</el-button>
|
<el-button type="primary" @click="executePlayScript" v-else :disabled="executeDisabled">恢复并执行</el-button>
|
||||||
<!-- <el-button type="primary" @click="saveMaplocation">{{$t('scriptRecord.saveMaplocation')}}</el-button> -->
|
|
||||||
<el-button type="danger" @click="dumpScenesData">重置剧本</el-button>
|
<el-button type="danger" @click="dumpScenesData">重置剧本</el-button>
|
||||||
<el-button type="primary" @click="saveScenesStage" :disabled="backDisabled">{{$t('scriptRecord.saveBackground')}}</el-button>
|
<el-button type="primary" @click="saveScenesStage" :disabled="backDisabled">{{$t('scriptRecord.saveBackground')}}</el-button>
|
||||||
<el-button type="success" @click="saveScenesData" :loading="isSavingScript" >{{$t('scriptRecord.saveData')}}</el-button>
|
<el-button type="success" @click="saveScenesData" :loading="isSavingScript" >{{$t('scriptRecord.saveData')}}</el-button>
|
||||||
<!-- 暂停 -->
|
<!-- 暂停 -->
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
|
</el-footer>
|
||||||
|
</el-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
import AddAction from '../scriptRecord/addAction';
|
||||||
import GetAction from '../scriptRecord/getAction';
|
import GetAction from '../scriptRecord/getAction';
|
||||||
|
import AddRole from '../scriptRecord/addRole';
|
||||||
|
import WindowResizeHandler from '@/mixin/WindowResizeHandler';
|
||||||
import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scriptPause, executeScript} from '@/api/simulation';
|
import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scriptPause, executeScript} from '@/api/simulation';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -31,7 +44,10 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
GetAction,
|
GetAction,
|
||||||
|
AddRole,
|
||||||
|
AddAction
|
||||||
},
|
},
|
||||||
|
mixins: [WindowResizeHandler],
|
||||||
// this.$t('scriptRecord.scriptTitle')
|
// this.$t('scriptRecord.scriptTitle')
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -40,9 +56,13 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
|||||||
mapLocation:{},
|
mapLocation:{},
|
||||||
autoSaveScript: null,
|
autoSaveScript: null,
|
||||||
isSavingScript:false,
|
isSavingScript:false,
|
||||||
isPause:false,
|
isPause:true,
|
||||||
executeDisabled:false,
|
executeDisabled:false,
|
||||||
backDisabled:false,
|
backDisabled:false,
|
||||||
|
size:{
|
||||||
|
width:350,
|
||||||
|
height:window.innerHeight-130-212,
|
||||||
|
}
|
||||||
// isSaveStage: true,
|
// isSaveStage: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -56,26 +76,13 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
|||||||
mounted(){
|
mounted(){
|
||||||
this.initAutoSaveScript();
|
this.initAutoSaveScript();
|
||||||
this.backDisabled=this.$store.state.scriptRecord.bgSet;
|
this.backDisabled=this.$store.state.scriptRecord.bgSet;
|
||||||
// this.shrink();
|
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.clearAutoSave();
|
this.clearAutoSave();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
jump(obj) {
|
resizeHandler() {
|
||||||
},
|
this.size = { width:350, height:window.innerHeight-130-212};
|
||||||
shrink() {
|
|
||||||
let height = this.$refs.dragBody.offsetHeight + 40;
|
|
||||||
let top = this.$refs.drapBox.style.top;
|
|
||||||
if (this.isShrink) {
|
|
||||||
this.$refs.drapBox.style.height = '40px';
|
|
||||||
this.$refs.drapBox.style.top = '';
|
|
||||||
this.isShrink = false;
|
|
||||||
} else {
|
|
||||||
this.$refs.drapBox.style.height = height + 'px';
|
|
||||||
this.$refs.drapBox.style.top = top;
|
|
||||||
this.isShrink = true;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
setIsParse(isPause){
|
setIsParse(isPause){
|
||||||
this.isPause=isPause;
|
this.isPause=isPause;
|
||||||
@ -114,7 +121,6 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
saveScenesStage() {
|
saveScenesStage() {
|
||||||
|
|
||||||
let data=Vue.prototype.$jlmap.$options;
|
let data=Vue.prototype.$jlmap.$options;
|
||||||
let group=this.$route.query.group;
|
let group=this.$route.query.group;
|
||||||
let dataZoom={scale:data.scaleRate,x:data.offsetX,y:data.offsetY};
|
let dataZoom={scale:data.scaleRate,x:data.offsetX,y:data.offsetY};
|
||||||
@ -161,8 +167,8 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
|||||||
// this.isSaveStage = true;
|
// this.isSaveStage = true;
|
||||||
this.$parent.$refs['display'].$refs['menuScript'].resetBeginTime();
|
this.$parent.$refs['display'].$refs['menuScript'].resetBeginTime();
|
||||||
this.$refs["getAction"].loadInitData();
|
this.$refs["getAction"].loadInitData();
|
||||||
this.$refs["getAction"].$refs["addRole"].initData();
|
this.$refs["addRole"].initData();
|
||||||
this.$refs["getAction"].$refs["addBehavior"].initData();
|
this.$refs["addAction"].initData();
|
||||||
this.initAutoSaveScript();
|
this.initAutoSaveScript();
|
||||||
this.$store.dispatch('scriptRecord/updateBgSet',false);
|
this.$store.dispatch('scriptRecord/updateBgSet',false);
|
||||||
this.$message.success('重置数据成功');
|
this.$message.success('重置数据成功');
|
||||||
@ -173,25 +179,22 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
|||||||
this.initAutoSaveScript();
|
this.initAutoSaveScript();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
refresh(){
|
||||||
|
this.$refs['addAction'].initData();
|
||||||
|
},
|
||||||
|
create(){
|
||||||
|
this.$refs['getAction'].loadInitData();
|
||||||
|
},
|
||||||
|
setAction(row){
|
||||||
|
debugger;
|
||||||
|
this.$refs['addAction'].doShow(row);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
@import "src/styles/mixin.scss";
|
@import "src/styles/mixin.scss";
|
||||||
|
|
||||||
// .tip-body-box {
|
|
||||||
// position: relative;
|
|
||||||
// height:100%;
|
|
||||||
// }
|
|
||||||
.tab-pane-big{
|
|
||||||
height:420px;
|
|
||||||
// width:100%;
|
|
||||||
// height:100%;
|
|
||||||
}
|
|
||||||
.breadColor{
|
|
||||||
color:#fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reminder-box {
|
.reminder-box {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
float: left;
|
float: left;
|
||||||
@ -206,31 +209,22 @@ import {saveScriptScenes, saveScriptData, dumpScriptData, updateMapLocation, scr
|
|||||||
|
|
||||||
.actionPane{
|
.actionPane{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding-bottom: 80px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-label {
|
|
||||||
width: 105px;
|
|
||||||
}
|
|
||||||
.button-group{
|
.button-group{
|
||||||
position: absolute;
|
margin-bottom: 20px;
|
||||||
bottom: 30px;
|
float: right;
|
||||||
right: 20px;
|
|
||||||
}
|
|
||||||
.actionInfo{
|
|
||||||
margin-top:30px;
|
|
||||||
}
|
|
||||||
.conditionVO{
|
|
||||||
width:400px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.actionList{
|
.actionList{
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-left: 5px;
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
margin-bottom:10px;
|
padding-top: 5px;
|
||||||
|
border-bottom: 1px #ccc solid;
|
||||||
|
height: 35px;
|
||||||
}
|
}
|
||||||
.titleStyle{
|
.titleStyle{
|
||||||
margin-left:10px;
|
margin-left:5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<el-scrollbar class="addScript" :style="{width:size.width+'px',height:size.height+'px'}" ref="elActionScrollbar" wrapClass="scrollbar-wrapper">
|
||||||
<!-- <el-card class="scriptTop">
|
|
||||||
<add-role :group="group" ref="addRole"></add-role>
|
|
||||||
</el-card> -->
|
|
||||||
<el-card class="conversitionCard">
|
<el-card class="conversitionCard">
|
||||||
<div class="addConversition">添加对话</div>
|
<div class="addConversition">添加对话</div>
|
||||||
<el-form size="mini" :model="modalData" ref="modalData" :rules="rules" label-width="100px" class="conversitionInfo" label-position="right">
|
<el-form size="mini" :model="modalData" ref="modalData" :rules="rules" label-width="100px" class="conversitionInfo" label-position="right">
|
||||||
@ -67,7 +64,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</el-scrollbar>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
@ -82,22 +79,12 @@
|
|||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
buttonName:{
|
size:{
|
||||||
type:String,
|
type: Object,
|
||||||
required: true
|
|
||||||
},
|
|
||||||
operateType:{
|
|
||||||
type:String,
|
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
'$store.state.socket.simulationStart': function (val) {
|
|
||||||
if(val)
|
|
||||||
{
|
|
||||||
this.$parent.$parent.$refs['addRole'].initData();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'$store.state.map.mapViewLoadedCount': function (val) {
|
'$store.state.map.mapViewLoadedCount': function (val) {
|
||||||
Vue.prototype.$jlmap.setOptions(this.$store.state.scriptRecord.mapLocation);
|
Vue.prototype.$jlmap.setOptions(this.$store.state.scriptRecord.mapLocation);
|
||||||
this.isPause=!(this.$store.state.scriptRecord.simulationPause);
|
this.isPause=!(this.$store.state.scriptRecord.simulationPause);
|
||||||
@ -117,13 +104,14 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
buttonName:"添加对话",
|
||||||
|
operateType:"add",
|
||||||
modalData:{
|
modalData:{
|
||||||
actionVO:{
|
actionVO:{
|
||||||
memberId:"",
|
memberId:"",
|
||||||
targetId:"",
|
targetId:"",
|
||||||
reply:"",
|
reply:"",
|
||||||
type:"Conversation",
|
type:"Conversation",
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
commandData:{
|
commandData:{
|
||||||
@ -235,8 +223,8 @@
|
|||||||
addScriptAction(group,data).then(response=>{
|
addScriptAction(group,data).then(response=>{
|
||||||
this.adding=false;
|
this.adding=false;
|
||||||
this.$message.success('添加指令成功');
|
this.$message.success('添加指令成功');
|
||||||
this.$emit('create',true);
|
this.$emit('create');
|
||||||
this.$parent.$parent.$refs['addRole'].resetData([this.commandData.action.memberId]);
|
// this.$parent.$parent.$refs['addRole'].resetData([this.commandData.action.memberId]);
|
||||||
// this.initCommandActionData();
|
// this.initCommandActionData();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.adding=false;
|
this.adding=false;
|
||||||
@ -257,14 +245,14 @@
|
|||||||
let data=this.modalData.actionVO;
|
let data=this.modalData.actionVO;
|
||||||
let obj=this;
|
let obj=this;
|
||||||
this.modifying=true;
|
this.modifying=true;
|
||||||
if(this.$props.operateType=="add")
|
if(this.operateType=="add")
|
||||||
{
|
{
|
||||||
addScriptAction(group,data).then(response=>{
|
addScriptAction(group,data).then(response=>{
|
||||||
this.modifying=false;
|
this.modifying=false;
|
||||||
this.$message.success('添加对话成功');
|
this.$message.success('添加对话成功');
|
||||||
this.$emit('create',true);
|
this.$emit('create');
|
||||||
// this.initActionData();
|
// this.initActionData();
|
||||||
this.$parent.$parent.$refs['addRole'].resetData([this.modalData.actionVO.memberId,this.modalData.actionVO.targetId]);
|
// this.$parent.$parent.$refs['addRole'].resetData([this.modalData.actionVO.memberId,this.modalData.actionVO.targetId]);
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.modifying=false;
|
this.modifying=false;
|
||||||
this.$messageBox(`添加对话失败: ${error.message}`);
|
this.$messageBox(`添加对话失败: ${error.message}`);
|
||||||
@ -276,10 +264,11 @@
|
|||||||
modifyScriptAction(group,actionId,data).then(response=>{
|
modifyScriptAction(group,actionId,data).then(response=>{
|
||||||
this.modifying=false;
|
this.modifying=false;
|
||||||
this.isNotModify=true;
|
this.isNotModify=true;
|
||||||
this.$parent.$parent.$parent.setDisabled(this.isNotModify);
|
this.$emit("setDisabled",this.isNotModify);
|
||||||
this.$emit('modifyButtonName');
|
this.buttonName="添加对话";
|
||||||
|
this.operateType="add";
|
||||||
this.$message.success('修改对话成功');
|
this.$message.success('修改对话成功');
|
||||||
this.$emit('create',false);
|
this.$emit('create');
|
||||||
// this.$parent.$parent.$refs['addRole'].resetData([this.modalData.action.memberId,this.modalData.action.targetId]);
|
// this.$parent.$parent.$refs['addRole'].resetData([this.modalData.action.memberId,this.modalData.action.targetId]);
|
||||||
this.initActionData();
|
this.initActionData();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
@ -316,6 +305,7 @@
|
|||||||
initCommandActionData(){
|
initCommandActionData(){
|
||||||
if(this.$refs['commandData'])
|
if(this.$refs['commandData'])
|
||||||
{
|
{
|
||||||
|
this.deviceCommandList=[];
|
||||||
this.$refs['commandData'].resetFields();
|
this.$refs['commandData'].resetFields();
|
||||||
this.commandData.action.memberId="";
|
this.commandData.action.memberId="";
|
||||||
this.commandData.param.startStation="";
|
this.commandData.param.startStation="";
|
||||||
@ -350,9 +340,11 @@
|
|||||||
doShow(data){
|
doShow(data){
|
||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
|
this.buttonName="修改对话";
|
||||||
|
this.operateType="modify";
|
||||||
this.clearValidate();
|
this.clearValidate();
|
||||||
this.isNotModify=false;
|
this.isNotModify=false;
|
||||||
this.$parent.$parent.$parent.setDisabled(this.isNotModify);
|
this.$emit("setDisabled",this.isNotModify);
|
||||||
// this.initData();
|
// this.initData();
|
||||||
this.modalData.actionVO.id=data.id;
|
this.modalData.actionVO.id=data.id;
|
||||||
this.modalData.actionVO.memberId=data.memberId;
|
this.modalData.actionVO.memberId=data.memberId;
|
||||||
@ -363,20 +355,6 @@
|
|||||||
this.modalData.actionVO.targetId=data.targetId;
|
this.modalData.actionVO.targetId=data.targetId;
|
||||||
this.modalData.actionVO.reply=data.reply;
|
this.modalData.actionVO.reply=data.reply;
|
||||||
}
|
}
|
||||||
// else if(data.type=="Command")
|
|
||||||
// {
|
|
||||||
// this.isJinLu=false;
|
|
||||||
// this.isConversitionAdd=false;
|
|
||||||
// // this.isCommandAdd=true;
|
|
||||||
// this.modalData.actionVO.reply="";
|
|
||||||
// this.modalData.actionVO.deviceCommand=data.deviceCommand;
|
|
||||||
// if(this.modalData.actionVO.deviceCommand=="Train_Manual_Route_Blocking_Drive")
|
|
||||||
// {
|
|
||||||
// this.isJinLu=true;
|
|
||||||
// this.modalData.param.startStation=data.commandParamList[0];
|
|
||||||
// this.modalData.param.endStation=data.commandParamList[1];
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -409,7 +387,6 @@
|
|||||||
width:200px;
|
width:200px;
|
||||||
}
|
}
|
||||||
.conversitionCard{
|
.conversitionCard{
|
||||||
margin-left: 20px;
|
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
@ -418,7 +395,6 @@
|
|||||||
padding: 20px 10px;
|
padding: 20px 10px;
|
||||||
}
|
}
|
||||||
.commandCard{
|
.commandCard{
|
||||||
margin-left: 20px;
|
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
@ -452,9 +428,9 @@
|
|||||||
border-right: 1px #c0c4cc solid;
|
border-right: 1px #c0c4cc solid;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
}
|
}
|
||||||
.scriptTop{
|
.addScript{
|
||||||
margin-left: 20px;
|
margin-top:20px;
|
||||||
padding: 15px 0px 30px 0px;
|
float:left;
|
||||||
width: 360px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<el-card class="scriptTop">
|
||||||
<!-- <div class="selectRole">选择角色</div> -->
|
|
||||||
<el-transfer v-model="selectRoleData" :data="allRoleData" class="script-player-choose" :titles="['所有角色', '演员角色']" @change="handleChange">
|
<el-transfer v-model="selectRoleData" :data="allRoleData" class="script-player-choose" :titles="['所有角色', '演员角色']" @change="handleChange">
|
||||||
<span slot-scope="{option}">
|
<span slot-scope="{option}">
|
||||||
<span>{{option.role+(option.name==undefined?'':option.name)}}</span>
|
<span>{{option.role+(option.name==undefined?'':option.name)}}</span>
|
||||||
@ -10,7 +9,7 @@
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</span>
|
</span>
|
||||||
</el-transfer>
|
</el-transfer>
|
||||||
</div>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
@ -34,6 +33,14 @@
|
|||||||
mounted(){
|
mounted(){
|
||||||
this.initData();
|
this.initData();
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
'$store.state.socket.simulationStart': function (val) {
|
||||||
|
if(val)
|
||||||
|
{
|
||||||
|
this.initData();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
methods:{
|
methods:{
|
||||||
initData(){
|
initData(){
|
||||||
let group=this.$props.group;
|
let group=this.$props.group;
|
||||||
@ -66,7 +73,7 @@
|
|||||||
let data=movedKeys;
|
let data=movedKeys;
|
||||||
selectScriptMembers(group,data).then(response=>{
|
selectScriptMembers(group,data).then(response=>{
|
||||||
this.$message.success('选择剧本角色成功');
|
this.$message.success('选择剧本角色成功');
|
||||||
this.$parent.$parent.$refs['addBehavior'].initData();
|
this.$emit("refresh");
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.$messageBox(`选择剧本角色失败: ${error.message}`);
|
this.$messageBox(`选择剧本角色失败: ${error.message}`);
|
||||||
@ -78,7 +85,7 @@
|
|||||||
let group=this.$props.group;
|
let group=this.$props.group;
|
||||||
let data=movedKeys;
|
let data=movedKeys;
|
||||||
cancleScriptMembers(group,data).then(response=>{
|
cancleScriptMembers(group,data).then(response=>{
|
||||||
this.$parent.$parent.$refs['addBehavior'].initData();
|
this.$emit("refresh");
|
||||||
this.$message.success('取消剧本角色成功');
|
this.$message.success('取消剧本角色成功');
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
@ -116,14 +123,14 @@
|
|||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
@import "src/styles/mixin.scss";
|
@import "src/styles/mixin.scss";
|
||||||
.selectRole{
|
|
||||||
font-size: 15px;
|
|
||||||
padding: 0px 20px 15px 15px;
|
|
||||||
}
|
|
||||||
.elTransfer{
|
.elTransfer{
|
||||||
margin-left:20px;
|
margin-left:20px;
|
||||||
width:700px;
|
width:700px;
|
||||||
}
|
}
|
||||||
|
.scriptTop{
|
||||||
|
padding: 10px 10px;
|
||||||
|
width: 730px;
|
||||||
|
}
|
||||||
/deep/ {
|
/deep/ {
|
||||||
.script-player-choose .el-transfer-panel__body{
|
.script-player-choose .el-transfer-panel__body{
|
||||||
height: 120px;
|
height: 120px;
|
||||||
@ -132,14 +139,17 @@
|
|||||||
height: 120px;
|
height: 120px;
|
||||||
}
|
}
|
||||||
.script-player-choose .el-transfer-panel{
|
.script-player-choose .el-transfer-panel{
|
||||||
width: 300px;
|
width: 310px;
|
||||||
|
}
|
||||||
|
.el-transfer-panel__item{
|
||||||
|
margin-right:0px;
|
||||||
|
}
|
||||||
|
.el-transfer__buttons{
|
||||||
|
padding: 0 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.elTransfer .el-transfer-panel{
|
|
||||||
width:300px ;
|
|
||||||
}
|
|
||||||
.sexGroup{
|
.sexGroup{
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
@ -1,26 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="actionPaneInner">
|
<el-scrollbar wrapClass="scrollbar-wrapper" ref="elActionScrollbar" class="scriptBottom" :style="{width:370+'px',height:size.height+'px'}">
|
||||||
<div class="actionList">
|
|
||||||
<span class="titleStyle">剧本编制</span>
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane-big">
|
|
||||||
<el-card class="scriptTop">
|
|
||||||
<add-role :group="group" ref="addRole"></add-role>
|
|
||||||
</el-card>
|
|
||||||
<div class="scriptPane">
|
|
||||||
<!-- <el-card class="scriptTop">
|
|
||||||
<template>
|
|
||||||
<div class="selectRole">选择角色</div>
|
|
||||||
<el-transfer v-model="selectRoleData" :data="allRoleData" class="elTransfer" :titles="['待选成员角色', '已选成员角色']"></el-transfer>
|
|
||||||
</template>
|
|
||||||
</el-card> -->
|
|
||||||
|
|
||||||
<div class="scriptBottom">
|
|
||||||
<el-scrollbar wrapClass="scrollbar-wrapper" ref="elScrollbar" class="elScrollbar">
|
|
||||||
<add-action ref="addBehavior" :group="group" @create="create" :buttonName="buttonName" :operateType="operateType" @modifyButtonName="modifyButtonName" class="addScript"></add-action>
|
|
||||||
</el-scrollbar>
|
|
||||||
<div class="block actionListTable">
|
|
||||||
<el-scrollbar wrapClass="scrollbar-wrapper" ref="elActionScrollbar">
|
|
||||||
<el-timeline :reverse="reverse" class="el_timeline">
|
<el-timeline :reverse="reverse" class="el_timeline">
|
||||||
<el-timeline-item v-for="(actionInfo,index) in actionInfoList" :key="index">
|
<el-timeline-item v-for="(actionInfo,index) in actionInfoList" :key="index">
|
||||||
<el-card>
|
<el-card>
|
||||||
@ -49,16 +28,9 @@
|
|||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
</el-timeline>
|
</el-timeline>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import AddAction from './addAction';
|
|
||||||
import AddRole from './addRole';
|
|
||||||
import {getScriptRecord,deleteScriptAction,getAvailableDeviceCommand,getScriptPlayMember,getScriptMemberData} from '@/api/simulation';
|
import {getScriptRecord,deleteScriptAction,getAvailableDeviceCommand,getScriptPlayMember,getScriptMemberData} from '@/api/simulation';
|
||||||
import ConstConfig from '@/scripts/ConstConfig';
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
export default {
|
export default {
|
||||||
@ -68,24 +40,21 @@
|
|||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
|
size:{
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// actionList:[],
|
|
||||||
actionInfoList:[],
|
actionInfoList:[],
|
||||||
deviceCommandList:[],
|
deviceCommandList:[],
|
||||||
reverse:true,
|
reverse:true,
|
||||||
loading:true,
|
loading:true,
|
||||||
behaviorName:"",
|
// behaviorName:"",
|
||||||
memberName:"",
|
memberName:"",
|
||||||
operateType:"add",
|
|
||||||
buttonName:"添加对话",
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
|
||||||
AddAction,
|
|
||||||
AddRole
|
|
||||||
},
|
|
||||||
mounted(){
|
mounted(){
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
@ -174,57 +143,17 @@
|
|||||||
reloadTable(){
|
reloadTable(){
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
create(data){
|
// create(data){
|
||||||
this.reloadTable();
|
// this.reloadTable();
|
||||||
},
|
// },
|
||||||
modifyAction(row){
|
modifyAction(row){
|
||||||
this.operateType="modify";
|
this.$emit("setAction",row);
|
||||||
this.buttonName="修改对话"
|
|
||||||
this.$refs.addBehavior.doShow(row);
|
|
||||||
},
|
|
||||||
modifyButtonName(){
|
|
||||||
this.buttonName="添加对话",
|
|
||||||
this.operateType="add"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
@import "src/styles/mixin.scss";
|
@import "src/styles/mixin.scss";
|
||||||
.actionPaneInner{
|
|
||||||
height:100%;
|
|
||||||
padding-top:45px;
|
|
||||||
}
|
|
||||||
.addScript{
|
|
||||||
float:left;
|
|
||||||
width:380px;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.actionListTable{
|
|
||||||
font-size: 15px;
|
|
||||||
width:380px;
|
|
||||||
display: inline-block;
|
|
||||||
margin-left:380px;
|
|
||||||
height:100%;
|
|
||||||
}
|
|
||||||
.actionList{
|
|
||||||
height: 35px;
|
|
||||||
font-size: 18px;
|
|
||||||
padding-top: 5px;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 740px;
|
|
||||||
border-bottom: 1px #ccc solid;
|
|
||||||
}
|
|
||||||
.titleStyle{
|
|
||||||
margin-left:10px;
|
|
||||||
}
|
|
||||||
.tab-pane-big{
|
|
||||||
height:100%;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.actionTable{
|
.actionTable{
|
||||||
width:280px;
|
width:280px;
|
||||||
padding: 15px 0px 10px 15px;
|
padding: 15px 0px 10px 15px;
|
||||||
@ -237,20 +166,10 @@
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.vertialLine{
|
|
||||||
height: 100%;
|
|
||||||
margin-left: 440px;
|
|
||||||
border-right: 1px #dadada solid;
|
|
||||||
position:absolute;
|
|
||||||
width: 0px;
|
|
||||||
}
|
|
||||||
.el_timeline{
|
.el_timeline{
|
||||||
width: 360px;
|
width: 350px;
|
||||||
margin-top:10px;
|
margin-top:20px;
|
||||||
}
|
padding-left: 25px;
|
||||||
.elScrollbar{
|
|
||||||
width: 380px;
|
|
||||||
position: absolute;
|
|
||||||
}
|
}
|
||||||
.roleClass{
|
.roleClass{
|
||||||
color:#409EFF
|
color:#409EFF
|
||||||
@ -263,22 +182,7 @@
|
|||||||
padding-top:200px;
|
padding-top:200px;
|
||||||
}
|
}
|
||||||
.scriptBottom{
|
.scriptBottom{
|
||||||
height: 100%;
|
margin-left:360px;
|
||||||
position: relative;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
.scriptTop{
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 20px;
|
|
||||||
padding: 10px 10px;
|
|
||||||
width: 730px;
|
|
||||||
}
|
|
||||||
// .elTransfer{
|
|
||||||
// height:230px;
|
|
||||||
// margin-left:100px;
|
|
||||||
// }
|
|
||||||
// .selectRole{
|
|
||||||
// font-size: 15px;
|
|
||||||
// padding: 0px 20px 15px 15px;
|
|
||||||
// }
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,108 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-dialog :title="title" :visible.sync="dialogVisible" width="25%" :before-close="doClose" center>
|
|
||||||
<data-form ref="dataform" :form="form" :formModel="formModel" :rules="rules"></data-form>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button type="primary" @click="doCreate">确 定</el-button>
|
|
||||||
<el-button @click="doClose">取 消</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { listPublishMap } from '@/api/jmap/map'
|
|
||||||
|
|
||||||
import { getQuestById} from '@/api/quest';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'ScriptDraft',
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
dialogVisible: false,
|
|
||||||
mapList: [],
|
|
||||||
taskStatusList: [],
|
|
||||||
disabled:null,
|
|
||||||
formModel: {
|
|
||||||
name: '',
|
|
||||||
mapId: '',
|
|
||||||
description:''
|
|
||||||
},
|
|
||||||
isShow: false,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
props: {
|
|
||||||
title: String,
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
form() {
|
|
||||||
let isAdd = this.type === 'ADD'
|
|
||||||
let form = {
|
|
||||||
labelWidth: '100px',
|
|
||||||
items: [
|
|
||||||
{ prop: 'name', label: '剧本名称', type: 'text', required: true},
|
|
||||||
{ prop: 'mapId', label: '地图', type: 'select', required: true, options: this.mapList,disabled:this.disabled},
|
|
||||||
{ prop: 'description', label: '剧本描述', type: 'textarea', required: true},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
return form
|
|
||||||
},
|
|
||||||
rules() {
|
|
||||||
let crules = {
|
|
||||||
name: [
|
|
||||||
{ required: true, message: '请输入剧本', trigger: 'blur' },
|
|
||||||
],
|
|
||||||
mapId: [
|
|
||||||
{ required: true, message: '请选择地图', trigger: 'change' },
|
|
||||||
],
|
|
||||||
description:[
|
|
||||||
{ required: true, message: '请输入剧本描述', trigger: 'blur' },
|
|
||||||
]
|
|
||||||
}
|
|
||||||
return crules
|
|
||||||
},
|
|
||||||
// title() {
|
|
||||||
// return '创建剧本'
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.loadInitData();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
loadInitData() {
|
|
||||||
this.mapList = [];
|
|
||||||
listPublishMap().then(response => {
|
|
||||||
this.mapList = response.data.map(elem => { return { value: elem.id, label: elem.name } });
|
|
||||||
})
|
|
||||||
},
|
|
||||||
doShow(questid) {
|
|
||||||
if(questid)
|
|
||||||
{
|
|
||||||
getQuestById(questid).then(resp=>{
|
|
||||||
let data={'name':resp.data.name,'description':resp.data.description,'mapId':resp.data.mapId};
|
|
||||||
this.formModel=data;
|
|
||||||
this.formModel.id=questid;
|
|
||||||
this.disabled="disabled";
|
|
||||||
this.dialogVisible = true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.disabled=null;
|
|
||||||
this.dialogVisible = true
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
doCreate() {
|
|
||||||
let self = this
|
|
||||||
this.$refs.dataform.validateForm(() => {
|
|
||||||
self.$emit('create', Object.assign({}, this.formModel));
|
|
||||||
self.doClose()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
doClose() {
|
|
||||||
this.$refs.dataform.resetForm();
|
|
||||||
this.isShow = false;
|
|
||||||
this.dialogVisible = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,173 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
|
||||||
<create-script ref="createScript" title="创建脚本" @reloadTable="reloadTable" @create="handleConfirmCreate" />
|
|
||||||
<create-script ref="modifyScript" title="修改脚本" @reloadTable="reloadTable" @create="handleConfirmModify" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// import { listPublishMap } from '@/api/jmap/mapdraft';
|
|
||||||
import { listPublishMap } from '@/api/jmap/map';
|
|
||||||
// import { getSkinCodeList } from '@/api/management/mapskin'
|
|
||||||
import { UrlConfig } from '@/router/index';
|
|
||||||
import { getQuestPageList, createQuest, deleteQuest, updateQuest} from '@/api/quest';
|
|
||||||
import { scriptRecordNotify } from '@/api/simulation';
|
|
||||||
import { launchFullscreen } from '@/utils/screen';
|
|
||||||
import CreateScript from './create';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'ScriptManage',
|
|
||||||
components: {
|
|
||||||
CreateScript
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
mapList: [],
|
|
||||||
pagerConfig: {
|
|
||||||
pageSize: 'pageSize',
|
|
||||||
pageIndex: 'pageNum'
|
|
||||||
},
|
|
||||||
queryForm: {
|
|
||||||
labelWidth: '140px',
|
|
||||||
reset: true,
|
|
||||||
queryObject: {
|
|
||||||
mapId: {
|
|
||||||
type: 'select',
|
|
||||||
label: '地图',
|
|
||||||
config: {
|
|
||||||
data: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
queryList: {
|
|
||||||
query: getQuestPageList,
|
|
||||||
selectCheckShow: false,
|
|
||||||
indexShow: true,
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
title: '剧本名称',
|
|
||||||
prop: 'name'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '地图',
|
|
||||||
prop: 'mapId',
|
|
||||||
type: 'tag',
|
|
||||||
columnValue: (row) => {
|
|
||||||
return this.$convertField(row.mapId, this.mapList, ['id', 'name']);
|
|
||||||
},
|
|
||||||
tagType: (row) => { return ''; }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '创建时间',
|
|
||||||
prop: 'createTime'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'button',
|
|
||||||
title: '操作',
|
|
||||||
width: '350',
|
|
||||||
// hide: () => { return this.$store.state.user.roles.indexOf(superAdmin) < 0; },
|
|
||||||
buttons: [
|
|
||||||
{
|
|
||||||
name: '录制',
|
|
||||||
handleClick: this.handleRecord,
|
|
||||||
type: 'success'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '删除',
|
|
||||||
handleClick: this.handleDelete,
|
|
||||||
type: 'danger'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '修改',
|
|
||||||
handleClick: this.handleModify,
|
|
||||||
type: ''
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
actions: [
|
|
||||||
{ text: '创建', btnCode: 'employee_insert', handler: this.handleCreate }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
currentModel: {}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.loadInitData();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
loadInitData() {
|
|
||||||
this.mapList = [];
|
|
||||||
listPublishMap().then(response => {
|
|
||||||
this.mapList = response.data;
|
|
||||||
// this.mapList = response.data.map(elem => { return { value: elem.id, label: elem.name } });
|
|
||||||
response.data.forEach(elem => {
|
|
||||||
this.queryForm.queryObject.mapId.config.data.push({ value: elem.id, label: elem.name });
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 确定创建
|
|
||||||
handleConfirmCreate(data) {
|
|
||||||
createQuest(data).then(resp => {
|
|
||||||
this.reloadTable();
|
|
||||||
this.$message.success('创建剧本成功');
|
|
||||||
}).catch(error => {
|
|
||||||
this.$messageBox(`创建剧本失败: ${error.message}`);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 修改
|
|
||||||
handleModify(index, row) {
|
|
||||||
this.$refs.modifyScript.doShow(row.id);
|
|
||||||
},
|
|
||||||
// 确认修改
|
|
||||||
handleConfirmModify(data) {
|
|
||||||
updateQuest(data.id, data).then(resp => {
|
|
||||||
this.reloadTable();
|
|
||||||
this.$message.success('修改剧本成功');
|
|
||||||
}).catch(error => {
|
|
||||||
this.$messageBox(`修改剧本失败: ${error.message}`);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 创建
|
|
||||||
handleCreate(index, row) {
|
|
||||||
this.$refs.createScript.doShow(null);
|
|
||||||
},
|
|
||||||
// 录制
|
|
||||||
handleRecord(index, row) {
|
|
||||||
scriptRecordNotify(row.id).then(resp => {
|
|
||||||
const query = { mapId: row.mapId, group: resp.data, scriptId: row.id };
|
|
||||||
this.$router.push({ path: `${UrlConfig.scriptDisplay}/script`, query });
|
|
||||||
launchFullscreen();
|
|
||||||
}).catch(error => {
|
|
||||||
this.$messageBox(`创建仿真失败: ${error.message}`);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 删除
|
|
||||||
handleDelete(index, row) {
|
|
||||||
this.$confirm('此操作将删除此剧本脚本, 是否继续?', '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
cancelButtonText: '取消',
|
|
||||||
type: 'warning'
|
|
||||||
}).then(() => {
|
|
||||||
deleteQuest(row.id).then(response => {
|
|
||||||
this.$message.success('删除成功');
|
|
||||||
this.reloadTable();
|
|
||||||
}).catch(error => {
|
|
||||||
this.reloadTable();
|
|
||||||
if (error.code == 500) {
|
|
||||||
this.$messageBox('删除失败');
|
|
||||||
} else if (error.code == 500009) {
|
|
||||||
this.$messageBox('该模板已被加载计划使用,无法删除');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}).catch(() => { });
|
|
||||||
},
|
|
||||||
reloadTable() {
|
|
||||||
this.queryList.reload();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
Loading…
Reference in New Issue
Block a user