Merge remote-tracking branch 'origin/test'
This commit is contained in:
commit
a9f18f6d61
@ -32,14 +32,21 @@ export function updateTraining(data) {
|
||||
data
|
||||
});
|
||||
}
|
||||
/** 更新实训标签 */
|
||||
export function updateTrainingLabel(data) {
|
||||
/** 更新发布实训信息(标签, 描述, 标题) */
|
||||
export function updateTrainingInfo(data) {
|
||||
return request({
|
||||
url: `/api/v2/training/published/update/label`,
|
||||
url: `/api/v2/training/published/update`,
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
/** 已发布实训转为草稿 */
|
||||
export function saveAsTrainingDraft(trainingId) {
|
||||
return request({
|
||||
url: `/api/v2/training/published/${trainingId}/saveAsDraft`,
|
||||
method: 'post'
|
||||
});
|
||||
}
|
||||
/** 查询步骤列表 */
|
||||
export function getTrainingStepList(trainingId) {
|
||||
return request({
|
||||
|
BIN
src/assets/bg_pis.png
Normal file
BIN
src/assets/bg_pis.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
BIN
src/assets/bg_tms.png
Normal file
BIN
src/assets/bg_tms.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 130 KiB |
@ -357,7 +357,7 @@ export default class Station extends Group {
|
||||
zlevel: this.zlevel,
|
||||
z: this.z,
|
||||
style: {
|
||||
x: computedControlModePoint.x + this.style.Station.StationControl.text.offsetX,
|
||||
x: computedControlModePoint.x,
|
||||
y: computedControlModePoint.y + this.style.Station.StationControl.text.offsetY,
|
||||
fontWeight: this.style.Station.StationControl.text.fontWeight,
|
||||
fontSize: this.style.Station.StationControl.text.fontSize,
|
||||
|
@ -145,6 +145,10 @@ export default {
|
||||
handler: this.handlerApplyRmMode
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: '停车',
|
||||
handler: this.handleParkingTrain
|
||||
}
|
||||
],
|
||||
menuSpeed: [
|
||||
@ -352,6 +356,13 @@ export default {
|
||||
this.$refs.noticeInfo.doShow();
|
||||
});
|
||||
},
|
||||
handleParkingTrain() {
|
||||
commitOperate(menuOperate.Train.driverStop, { groupNumber: this.selected.code }, 3).then(({ valid, operate }) => {
|
||||
}).catch((error) => {
|
||||
console.error(error);
|
||||
this.$refs.noticeInfo.doShow();
|
||||
});
|
||||
},
|
||||
// 限速行驶
|
||||
limitSpeed() {
|
||||
const step = {
|
||||
|
@ -50,7 +50,7 @@ export default {
|
||||
children: [
|
||||
{
|
||||
label: '请求',
|
||||
handler: this.setStationControl,
|
||||
handler: this.work === 'localWork' ? this.setStationControl : this.setCenterControl,
|
||||
cmdType: this.work === 'localWork' ? CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_STATION_CONTROL : CMD.ControlConvertMenu.CMD_CM_APPLY_FOR_CENTER_CONTROL,
|
||||
isDisabled: (station, work) => {
|
||||
if (work === 'localWork') {
|
||||
|
@ -498,7 +498,7 @@ export default {
|
||||
trainOrder(orderStop) {
|
||||
const operate = {
|
||||
start: true,
|
||||
send: true,
|
||||
// send: true,
|
||||
param:{},
|
||||
code: this.selected.code
|
||||
};
|
||||
|
@ -148,26 +148,6 @@ export default {
|
||||
{ label: '会话', value: 'Conversation' }
|
||||
],
|
||||
|
||||
simulationDeviceList: [
|
||||
{ label: '区段', value: 'SECTION' },
|
||||
{ label: '计轴器', value: 'AXLE_COUNTER' },
|
||||
{ label: '道岔', value: 'SWITCH' },
|
||||
{ label: '信号机', value: 'SIGNAL' },
|
||||
{ label: '车站', value: 'STATION' },
|
||||
{ label: '站台', value: 'STAND' },
|
||||
{ label: '屏蔽门', value: 'PSD' },
|
||||
{ label: '紧急停车按钮', value: 'ESP' },
|
||||
{ label: '区域控制器', value: 'ZC' },
|
||||
{ label: '线路控制器', value: 'LC' },
|
||||
{ label: '进路', value: 'ROUTE' },
|
||||
{ label: '进路延续保护', value: 'OVERLAP' },
|
||||
{ label: '自动信号', value: 'AUTO_SIGNAL' },
|
||||
{ label: '自动折返', value: 'CYCLE' },
|
||||
{ label: '列车', value: 'TRAIN' },
|
||||
{ label: '列车门', value: 'TRAIN_DOOR' },
|
||||
{ label: '交路', value: 'ROUTING' },
|
||||
{ label: '站间运行等级', value: 'RUN_LEVEL' }
|
||||
],
|
||||
QuestionTypeList: [
|
||||
{ label: '选择题', value: 'select' },
|
||||
{ label: '判断题', value: 'judge' },
|
||||
@ -175,17 +155,6 @@ export default {
|
||||
{ label: '填空题', value: 'fill' },
|
||||
{ label: '问答题', value: 'answer' }
|
||||
],
|
||||
// 新版的产品类型枚举
|
||||
prdType: [
|
||||
{ enlabel: 'ATS local workstation', label: 'ATS现地工作站', value: '01' },
|
||||
{ enlabel: 'ATS Traffic dispatching workstation', label: 'ATS行调工作站', value: '02' },
|
||||
{ enlabel: 'Comprehensive exercise cloud platform', label: '综合演练云平台', value: '03' },
|
||||
{ enlabel: 'Driver simulation driving system', label: '司机模拟驾驶系统', value: '04' },
|
||||
{ enlabel: 'Dispatch workstation', label: '派班工作站', value: '05' },
|
||||
{ enlabel: 'ISCS workstation', label: 'ISCS工作站', value: '06' },
|
||||
{ enlabel: 'Interlocking station at depot', label: '车辆段联锁工作站', value: '09' },
|
||||
{ enlabel: 'Large screen vehicle real workstation', label: '应急调度指挥系统', value: '10' }
|
||||
],
|
||||
trainingDeviceType: {
|
||||
Switch: { enlabel: 'Switch training', label: '道岔实训' },
|
||||
Section: { enlabel: 'Section training', label: '区段实训' },
|
||||
@ -234,21 +203,9 @@ export default {
|
||||
{ label: '列车', value: 'TRAIN' },
|
||||
{ label: 'UDP客户端', value: 'UDP_CLIENT' },
|
||||
{ label: '站台PIS', value: 'PIS_STAND' },
|
||||
{ label: '列车PIS', value: 'PIS_TRAIN' }
|
||||
],
|
||||
ossList: [
|
||||
{ name: '场景1', url: '场景1—桂花园道岔故障(配分版60分).pdf' },
|
||||
{ name: '场景2', url: '场景2—体育馆道岔故障(配分版60分).pdf' },
|
||||
{ name: '场景3', url: '场景3—火车站道岔故障(配分版60分).pdf' },
|
||||
{ name: '场景4', url: '场景4—列车救援(配分版60分).pdf' },
|
||||
{ name: '场景5', url: '场景5—接触网无电(配分版60分).pdf' },
|
||||
{ name: '场景6', url: '场景6—计轴故障试题(配分版60分).pdf' },
|
||||
{ name: '场景7', url: '场景7—大学城道岔故障(配分版40分).pdf' },
|
||||
{ name: '场景8', url: '场景8—车站照明故障(配分版40分).pdf' },
|
||||
{ name: '场景9', url: '场景9—车站站台门故障(配分版40分).pdf' },
|
||||
{ name: '场景10', url: '场景10—列车限速(配分版40分).pdf' },
|
||||
{ name: '场景11', url: '场景11—区间疏导乘客(配分版40分).pdf' },
|
||||
{ name: '场景12', url: '场景12—区域控制器故障(配分版40分).pdf' }
|
||||
{ label: '列车PIS', value: 'PIS_TRAIN' },
|
||||
{ label: '乘客PIS', value: 'PIS' },
|
||||
{ label: 'TMS', value: 'TMS' }
|
||||
],
|
||||
responderTypeList: [{ name: '固定应答器', value: 'FB' }, { name: '可变应答器', value: 'VB' }, { name: '填充应答器', value: 'IB' }],
|
||||
loadRuleList: [
|
||||
|
@ -33,10 +33,10 @@ export function getTopic(type, group, param) {
|
||||
break;
|
||||
case 'ISCSGATE':
|
||||
topic = `/queue/simulation/${group}/iscs/gate/${param.stationCode}`;
|
||||
break;
|
||||
case 'TMS':
|
||||
topic = `/queue/simulation/${group}/train/001/tms`
|
||||
break;
|
||||
break;
|
||||
case 'TMS':
|
||||
topic = `/queue/simulation/${group}/train/001/tms`;
|
||||
break;
|
||||
case 'PIS_STAND':
|
||||
topic = `/queue/simulation/${group}/standPis/${param.standCode}`;
|
||||
break;
|
||||
|
@ -1,304 +1,430 @@
|
||||
<template>
|
||||
<div id="container">
|
||||
<div id="content">
|
||||
<table id="trainInfo">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td rowspan="2">运行</td>
|
||||
<td>网压</td>
|
||||
<td>网流</td>
|
||||
<td>速度</td>
|
||||
<td>牵引/制动级位</td>
|
||||
<td>里程标</td>
|
||||
<td>下一站</td>
|
||||
<td>目的站</td>
|
||||
<td rowspan="2">2022/02/02</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ trainInfo.voltage }}V</td>
|
||||
<td>{{ trainInfo.current }}A</td>
|
||||
<td>{{ trainInfo.speed }} km/h</td>
|
||||
<td :class="{ bg_g: trainInfo.tractionPercent > 0, bg_r: trainInfo.tractionPercent < 0 }">
|
||||
{{ Math.abs(trainInfo.tractionPercent) }}%
|
||||
</td>
|
||||
<td>{{ trainInfo.mileage || '--' }}</td>
|
||||
<td>{{ trainInfo.nextStation }}</td>
|
||||
<td>{{ trainInfo.destination }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<img id="trainImg" :src="localStatic + '/jl3d/tms/PMsa2.png'" />
|
||||
<table id="carInfo">
|
||||
<tbody>
|
||||
<tr v-for="([k, v], i) in Object.entries({ 车号: [0, 1, 2, 3, 4, 5], ...carInfo })" :key="k">
|
||||
<td>{{ k }}</td>
|
||||
<template v-if="k === '车号'">
|
||||
<td v-for="(item, j) in v" :key="j">{{ j + 1 }}</td>
|
||||
</template>
|
||||
<template v-else-if="k === '辅助状态'">
|
||||
<td :class="{ bg_g: item === 'ON', bg_r: item === 'OFF' }" v-for="(item, j) in v" :key="j">
|
||||
{{ `${item === '--' ? '' : '辅助'}${item}` }}
|
||||
</td>
|
||||
</template>
|
||||
<template v-else-if="k === '牵引系统状态'">
|
||||
<td :class="{ bg_g: item !== 0 }" v-for="(item, j) in v" :key="j">
|
||||
{{ item === 0 ? '--' : `${item} A` }}
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '制动缸压力'">
|
||||
<td v-for="(item, j) in v" :key="j">
|
||||
<div class="multi">
|
||||
<div style="width: 50%">{{ item }}</div>
|
||||
<div style="width: 50%">{{ item }}</div>
|
||||
</div>
|
||||
</td>
|
||||
</template>
|
||||
<template v-else-if="k === '转向架切除'">
|
||||
<td v-for="(item, j) in v" :key="j">
|
||||
<div class="multi">
|
||||
<div style="width: 50%">{{ item[0] }}</div>
|
||||
<div style="width: 50%">{{ item[1] }}</div>
|
||||
</div>
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '1侧门'">
|
||||
<td v-for="j in 6" :key="j">
|
||||
<div class="multi">
|
||||
<div :class="v ? 'bg_g' : 'bg_r'" style="width: 25%">{{ j < 3 ? 1 : 8 }}</div>
|
||||
<div :class="v ? 'bg_g' : 'bg_r'" style="width: 25%">{{ j < 3 ? 3 : 6 }}</div>
|
||||
<div :class="v ? 'bg_g' : 'bg_r'" style="width: 25%">{{ j < 3 ? 5 : 4 }}</div>
|
||||
<div :class="v ? 'bg_g' : 'bg_r'" style="width: 25%">{{ j < 3 ? 7 : 2 }}</div>
|
||||
</div>
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '2侧门'">
|
||||
<td v-for="j in 6" :key="j">
|
||||
<div class="multi">
|
||||
<div :class="v ? 'bg_g' : 'bg_r'" style="width: 25%">{{ j < 3 ? 2 : 7 }}</div>
|
||||
<div :class="v ? 'bg_g' : 'bg_r'" style="width: 25%">{{ j < 3 ? 4 : 5 }}</div>
|
||||
<div :class="v ? 'bg_g' : 'bg_r'" style="width: 25%">{{ j < 3 ? 6 : 3 }}</div>
|
||||
<div :class="v ? 'bg_g' : 'bg_r'" style="width: 25%">{{ j < 3 ? 8 : 1 }}</div>
|
||||
</div>
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '交流输出电压'">
|
||||
<td v-for="(item, j) in v" :key="j">{{ item }}</td></template
|
||||
>
|
||||
<template v-else-if="k === '空压机状态'">
|
||||
<td v-for="(item, j) in v" :key="j">{{ item }}</td></template
|
||||
>
|
||||
<template v-else-if="k === '停放制动施加状态'">
|
||||
<td :class="Number(item) < 1 ? 'bg_r' : 'bg_g'" v-for="(item, j) in v" :key="j">
|
||||
{{ item }} bar
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === 'HSCB状态'">
|
||||
<td :class="{ bg_g: item }" v-for="(item, j) in v" :key="j">{{ item ? '' : '-- --' }}</td></template
|
||||
>
|
||||
<template v-else-if="k === '牵引脉冲使能'">
|
||||
<td :class="{ bg_g: item }" v-for="(item, j) in v" :key="j">{{ item ? '' : '-- --' }}</td></template
|
||||
>
|
||||
<td v-if="i === 0" :rowspan="Object.keys(carInfo).length + 1">
|
||||
<div class="speedBg">
|
||||
<img :src="`${localStatic}/jl3d/tms/PMS3.png`" />
|
||||
<div
|
||||
id="accBar"
|
||||
:style="{
|
||||
transform: `scaleY(${Math.abs(trainInfo.tractionPercent) / 100})`,
|
||||
}"
|
||||
:class="{ bg_g: trainInfo.tractionPercent > 0, bg_r: trainInfo.tractionPercent < 0 }"
|
||||
></div>
|
||||
<div class="gap"></div>
|
||||
<div id="speedBar" :style="{ transform: `scaleY(${trainInfo.speed / 80})` }"></div>
|
||||
</div>
|
||||
<div>{{ trainInfo.speed }} km/h</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="container">
|
||||
<div id="content">
|
||||
<table id="trainInfo">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td rowspan="2">运行</td>
|
||||
<td>网压</td>
|
||||
<td>网流</td>
|
||||
<td>速度</td>
|
||||
<td>牵引/制动级位</td>
|
||||
<td>里程标</td>
|
||||
<td>下一站</td>
|
||||
<td>目的站</td>
|
||||
<td rowspan="2">2022/02/02</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ trainInfo.voltage }}V</td>
|
||||
<td>{{ trainInfo.current }}A</td>
|
||||
<td>{{ trainInfo.speed }} km/h</td>
|
||||
<td
|
||||
:class="{
|
||||
bg_g: trainInfo.tractionPercent > 0,
|
||||
bg_r: trainInfo.tractionPercent < 0
|
||||
}"
|
||||
>
|
||||
{{ Math.abs(trainInfo.tractionPercent) }}%
|
||||
</td>
|
||||
<td>{{ trainInfo.mileage || "--" }}</td>
|
||||
<td>{{ trainInfo.nextStation }}</td>
|
||||
<td>{{ trainInfo.destination }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<img id="trainImg" :src="localStatic + '/jl3d/tms/PMsa2.png'" />
|
||||
<table id="carInfo">
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="([k, v], i) in Object.entries({
|
||||
车号: [0, 1, 2, 3, 4, 5],
|
||||
...carInfo
|
||||
})"
|
||||
:key="k"
|
||||
>
|
||||
<td>{{ k }}</td>
|
||||
<template v-if="k === '车号'">
|
||||
<td v-for="(item, j) in v" :key="j">{{ j + 1 }}</td>
|
||||
</template>
|
||||
<template v-else-if="k === '辅助状态'">
|
||||
<td
|
||||
:class="{
|
||||
bg_g: item === 'ON',
|
||||
bg_r: item === 'OFF'
|
||||
}"
|
||||
v-for="(item, j) in v"
|
||||
:key="j"
|
||||
>
|
||||
{{ `${item === "--" ? "" : "辅助"}${item}` }}
|
||||
</td>
|
||||
</template>
|
||||
<template v-else-if="k === '牵引系统状态'">
|
||||
<td
|
||||
:class="{ bg_g: item !== 0 }"
|
||||
v-for="(item, j) in v"
|
||||
:key="j"
|
||||
>
|
||||
{{ item === 0 ? "--" : `${item} A` }}
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '制动缸压力'">
|
||||
<td v-for="(item, j) in v" :key="j">
|
||||
<div class="multi">
|
||||
<div style="width: 50%">{{ item }}</div>
|
||||
<div style="width: 50%">{{ item }}</div>
|
||||
</div>
|
||||
</td>
|
||||
</template>
|
||||
<template v-else-if="k === '转向架切除'">
|
||||
<td v-for="(item, j) in v" :key="j">
|
||||
<div class="multi">
|
||||
<div style="width: 50%">{{ item[0] }}</div>
|
||||
<div style="width: 50%">{{ item[1] }}</div>
|
||||
</div>
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '1侧门'">
|
||||
<td v-for="j in 6" :key="j">
|
||||
<div class="multi">
|
||||
<div
|
||||
:class="v ? 'bg_r' : 'bg_g'"
|
||||
style="width: 25%"
|
||||
>
|
||||
{{ j < 3 ? 1 : 8 }}
|
||||
</div>
|
||||
<div
|
||||
:class="v ? 'bg_r' : 'bg_g'"
|
||||
style="width: 25%"
|
||||
>
|
||||
{{ j < 3 ? 3 : 6 }}
|
||||
</div>
|
||||
<div
|
||||
:class="v ? 'bg_r' : 'bg_g'"
|
||||
style="width: 25%"
|
||||
>
|
||||
{{ j < 3 ? 5 : 4 }}
|
||||
</div>
|
||||
<div
|
||||
:class="v ? 'bg_r' : 'bg_g'"
|
||||
style="width: 25%"
|
||||
>
|
||||
{{ j < 3 ? 7 : 2 }}
|
||||
</div>
|
||||
</div>
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '2侧门'">
|
||||
<td v-for="j in 6" :key="j">
|
||||
<div class="multi">
|
||||
<div
|
||||
:class="v ? 'bg_r' : 'bg_g'"
|
||||
style="width: 25%"
|
||||
>
|
||||
{{ j < 3 ? 2 : 7 }}
|
||||
</div>
|
||||
<div
|
||||
:class="v ? 'bg_r' : 'bg_g'"
|
||||
style="width: 25%"
|
||||
>
|
||||
{{ j < 3 ? 4 : 5 }}
|
||||
</div>
|
||||
<div
|
||||
:class="v ? 'bg_r' : 'bg_g'"
|
||||
style="width: 25%"
|
||||
>
|
||||
{{ j < 3 ? 6 : 3 }}
|
||||
</div>
|
||||
<div
|
||||
:class="v ? 'bg_r' : 'bg_g'"
|
||||
style="width: 25%"
|
||||
>
|
||||
{{ j < 3 ? 8 : 1 }}
|
||||
</div>
|
||||
</div>
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '交流输出电压'">
|
||||
<td v-for="(item, j) in v" :key="j">
|
||||
{{ item }}
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '空压机状态'">
|
||||
<td v-for="(item, j) in v" :key="j">
|
||||
{{ item }}
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '停放制动施加状态'">
|
||||
<td
|
||||
:class="Number(item) < 1 ? 'bg_r' : 'bg_g'"
|
||||
v-for="(item, j) in v"
|
||||
:key="j"
|
||||
>
|
||||
{{ item }} bar
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === 'HSCB状态'">
|
||||
<td
|
||||
:class="{ bg_g: item }"
|
||||
v-for="(item, j) in v"
|
||||
:key="j"
|
||||
>
|
||||
{{ item ? "" : "-- --" }}
|
||||
</td></template
|
||||
>
|
||||
<template v-else-if="k === '牵引脉冲使能'">
|
||||
<td
|
||||
:class="{ bg_g: item }"
|
||||
v-for="(item, j) in v"
|
||||
:key="j"
|
||||
>
|
||||
{{ item ? "" : "-- --" }}
|
||||
</td></template
|
||||
>
|
||||
<td
|
||||
v-if="i === 0"
|
||||
:rowspan="Object.keys(carInfo).length + 1"
|
||||
>
|
||||
<div class="speedBg">
|
||||
<img
|
||||
:src="`${localStatic}/jl3d/tms/PMS3.png`"
|
||||
/>
|
||||
<div
|
||||
id="accBar"
|
||||
:style="{
|
||||
transform: `scaleY(${Math.abs(
|
||||
trainInfo.tractionPercent
|
||||
) / 100})`
|
||||
}"
|
||||
:class="{
|
||||
bg_g: trainInfo.tractionPercent > 0,
|
||||
bg_r: trainInfo.tractionPercent < 0
|
||||
}"
|
||||
></div>
|
||||
<div class="gap"></div>
|
||||
<div
|
||||
id="speedBar"
|
||||
:style="{
|
||||
transform: `scaleY(${trainInfo.speed /
|
||||
80})`
|
||||
}"
|
||||
></div>
|
||||
</div>
|
||||
<div>{{ trainInfo.speed }} km/h</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { JL3D_LOCAL_STATIC } from '@/api/jlmap3d/assets3d.js';
|
||||
import { creatSubscribe, clearSubscribe, getTopic } from '@/utils/stomp';
|
||||
import { getToken } from '@/utils/auth';
|
||||
import { JL3D_LOCAL_STATIC } from "@/api/jlmap3d/assets3d.js";
|
||||
import { creatSubscribe, clearSubscribe, getTopic } from "@/utils/stomp";
|
||||
import { getToken } from "@/utils/auth";
|
||||
|
||||
let timer = null;
|
||||
|
||||
export default {
|
||||
name: 'tmsPage',
|
||||
data() {
|
||||
return {
|
||||
localStatic: JL3D_LOCAL_STATIC,
|
||||
trainInfo: {
|
||||
voltage: 1600,
|
||||
current: 317,
|
||||
speed: 0,
|
||||
tractionPercent: 0,
|
||||
mileage: '--',
|
||||
nextStation: '',
|
||||
destination: '',
|
||||
},
|
||||
carInfo: {
|
||||
辅助状态: ['ON', '--', 'OFF', '--', '--', 'ON'],
|
||||
牵引系统状态: [0, 58, 47, 52, 50, 0],
|
||||
制动缸压力: [0, 0, 0, 0, 0, 0],
|
||||
转向架切除: [[' ', ' '], [' ', ' '], [' ', ' '], [' ', ' '], [' ', ' '], [' ', ' ']],
|
||||
'1侧门': true,
|
||||
'2侧门': true,
|
||||
交流输出电压: [378, '--', '--', '--', '--', 378],
|
||||
空压机状态: ['--', '--', '', '', '--', '--'],
|
||||
停放制动施加状态: [7.85, 7.85, 7.85, 7.85, 7.85, 7.85],
|
||||
HSCB状态: [false, true, true, true, true, false],
|
||||
牵引脉冲使能: [true, false, false, false, false, true],
|
||||
},
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.group = this.$route.query.group;
|
||||
this.subscribe();
|
||||
this.setTractionWave(true);
|
||||
},
|
||||
unmounted() {
|
||||
this.unsubscribe();
|
||||
if (timer) {
|
||||
clearInterval(timer);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
subscribe() {
|
||||
const header = { group: this.group || '', 'X-Token': getToken() };
|
||||
creatSubscribe(getTopic('TMS', this.group), header, msg => {
|
||||
let res = JSON.parse(msg.body);
|
||||
console.log(res);
|
||||
if (!res) return;
|
||||
name: "tmsPage",
|
||||
data() {
|
||||
return {
|
||||
localStatic: JL3D_LOCAL_STATIC,
|
||||
trainInfo: {
|
||||
voltage: 1600,
|
||||
current: 317,
|
||||
speed: 0,
|
||||
tractionPercent: 0,
|
||||
mileage: "--",
|
||||
nextStation: "",
|
||||
destination: ""
|
||||
},
|
||||
carInfo: {
|
||||
辅助状态: ["ON", "--", "OFF", "--", "--", "ON"],
|
||||
牵引系统状态: [0, 58, 47, 52, 50, 0],
|
||||
制动缸压力: [0, 0, 0, 0, 0, 0],
|
||||
转向架切除: [
|
||||
[" ", " "],
|
||||
[" ", " "],
|
||||
[" ", " "],
|
||||
[" ", " "],
|
||||
[" ", " "],
|
||||
[" ", " "]
|
||||
],
|
||||
"1侧门": false,
|
||||
"2侧门": false,
|
||||
交流输出电压: [378, "--", "--", "--", "--", 378],
|
||||
空压机状态: ["--", "--", "", "", "--", "--"],
|
||||
停放制动施加状态: [7.85, 7.85, 7.85, 7.85, 7.85, 7.85],
|
||||
HSCB状态: [false, true, true, true, true, false],
|
||||
牵引脉冲使能: [true, false, false, false, false, true]
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.group = this.$route.query.group;
|
||||
this.subscribe();
|
||||
this.setTractionWave(true);
|
||||
},
|
||||
unmounted() {
|
||||
this.unsubscribe();
|
||||
if (timer) {
|
||||
clearInterval(timer);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
subscribe() {
|
||||
const header = { group: this.group || "", "X-Token": getToken() };
|
||||
creatSubscribe(getTopic("TMS", this.group), header, msg => {
|
||||
let res = JSON.parse(msg.body);
|
||||
console.log(res);
|
||||
console.log(res.parkingBreakPressure);
|
||||
if (!res) return;
|
||||
|
||||
if (res.current) this.trainInfo.current = res.current;
|
||||
if (res.voltage) this.trainInfo.voltage = res.voltage;
|
||||
if (res.speed) this.trainInfo.speed = res.speed.toFixed(2);
|
||||
if (res.tbLevelPercent) this.trainInfo.tractionPercent = res.tbLevelPercent;
|
||||
if (res.mileage) this.trainInfo.mileage = res.mileage;
|
||||
if (res.nextStation) this.trainInfo.nextStation = res.nextStation;
|
||||
if (res.destination) this.trainInfo.destination = res.destination;
|
||||
if (res.pressureOfBrakeCylinder)
|
||||
this.carInfo.制动缸压力 = Array(6).fill(res.pressureOfBrakeCylinder.toFixed(2));
|
||||
if (res.oneSideDoorOpened) this.carInfo['1侧门'] = res.oneSideDoorOpened;
|
||||
if (res.twoSideDoorOpened) this.carInfo['2侧门'] = res.twoSideDoorOpened;
|
||||
if (res.parkingBreakPressure) this.carInfo.停放制动施加状态 = Array(6).fill(res.parkingBreakPressure);
|
||||
this.setTractionWave(res.traction);
|
||||
});
|
||||
},
|
||||
unsubscribe() {
|
||||
clearSubscribe(getTopic('TMS', this.group));
|
||||
},
|
||||
setTractionWave(flag) {
|
||||
if (timer) {
|
||||
clearInterval(timer);
|
||||
}
|
||||
if (flag) {
|
||||
timer = setInterval(() => {
|
||||
this.carInfo.牵引系统状态 = Array(6)
|
||||
.fill(true)
|
||||
.map(b => (b ? (Math.random() * 10 + 46).toFixed() : '--'));
|
||||
}, 1000);
|
||||
}
|
||||
},
|
||||
},
|
||||
if (res.current !== undefined)
|
||||
this.trainInfo.current = res.current;
|
||||
if (res.voltage !== undefined)
|
||||
this.trainInfo.voltage = res.voltage;
|
||||
if (res.speed !== undefined)
|
||||
this.trainInfo.speed = res.speed.toFixed(2);
|
||||
if (res.tbLevelPercent !== undefined)
|
||||
this.trainInfo.tractionPercent = res.tbLevelPercent;
|
||||
if (res.mileage !== undefined)
|
||||
this.trainInfo.mileage = res.mileage;
|
||||
if (res.nextStation !== undefined)
|
||||
this.trainInfo.nextStation = res.nextStation;
|
||||
if (res.destination !== undefined)
|
||||
this.trainInfo.destination = res.destination;
|
||||
if (res.pressureOfBrakeCylinder !== undefined)
|
||||
this.carInfo.制动缸压力.splice(
|
||||
0,
|
||||
6,
|
||||
...Array(6).fill(res.pressureOfBrakeCylinder.toFixed(2))
|
||||
);
|
||||
if (res.oneSideDoorOpened !== undefined)
|
||||
this.carInfo["1侧门"] = res.oneSideDoorOpened;
|
||||
if (res.twoSideDoorOpened !== undefined)
|
||||
this.carInfo["2侧门"] = res.twoSideDoorOpened;
|
||||
if (res.parkingBreakPressure !== undefined)
|
||||
this.carInfo.停放制动施加状态.splice(
|
||||
0,
|
||||
6,
|
||||
...Array(6).fill(res.parkingBreakPressure)
|
||||
);
|
||||
this.setTractionWave(res.traction);
|
||||
});
|
||||
},
|
||||
unsubscribe() {
|
||||
clearSubscribe(getTopic("TMS", this.group));
|
||||
},
|
||||
setTractionWave(flag) {
|
||||
if (timer) {
|
||||
clearInterval(timer);
|
||||
}
|
||||
if (flag) {
|
||||
timer = setInterval(() => {
|
||||
this.carInfo.牵引系统状态 = Array(6)
|
||||
.fill(true)
|
||||
.map(b =>
|
||||
b ? (Math.random() * 10 + 46).toFixed() : "--"
|
||||
);
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
#container {
|
||||
background: #000;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.bg_g {
|
||||
background: #0f0;
|
||||
color: #000;
|
||||
}
|
||||
.bg_r {
|
||||
background: #f00;
|
||||
}
|
||||
#content {
|
||||
width: 80%;
|
||||
height: 90%;
|
||||
padding: 5px;
|
||||
display: flex;
|
||||
color: #fff;
|
||||
user-select: none;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
table {
|
||||
width: 100%;
|
||||
font-size: 1.4rem;
|
||||
text-align: center;
|
||||
border-collapse: collapse;
|
||||
td {
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
}
|
||||
#trainInfo {
|
||||
height: 25%;
|
||||
}
|
||||
#trainImg {
|
||||
width: 75%;
|
||||
height: 10%;
|
||||
margin-top: 5px;
|
||||
}
|
||||
#carInfo {
|
||||
height: 58%;
|
||||
td {
|
||||
width: 12.5%;
|
||||
padding: 0;
|
||||
.multi {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: stretch;
|
||||
& > div {
|
||||
border-right: 1px solid #fff;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
& :last-child {
|
||||
border-right: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.speedBg {
|
||||
height: 90%;
|
||||
padding: 2px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 10%;
|
||||
width: 80%;
|
||||
height: 100%;
|
||||
}
|
||||
background: #000;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.bg_g {
|
||||
background: #0f0;
|
||||
color: #000;
|
||||
}
|
||||
.bg_r {
|
||||
background: #f00;
|
||||
}
|
||||
#content {
|
||||
width: 80%;
|
||||
height: 90%;
|
||||
padding: 5px;
|
||||
display: flex;
|
||||
color: #fff;
|
||||
user-select: none;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
table {
|
||||
width: 100%;
|
||||
font-size: 1.4rem;
|
||||
text-align: center;
|
||||
border-collapse: collapse;
|
||||
td {
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
}
|
||||
#trainInfo {
|
||||
height: 25%;
|
||||
}
|
||||
#trainImg {
|
||||
width: 75%;
|
||||
height: 10%;
|
||||
margin-top: 5px;
|
||||
}
|
||||
#carInfo {
|
||||
height: 58%;
|
||||
td {
|
||||
width: 12.5%;
|
||||
padding: 0;
|
||||
.multi {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: stretch;
|
||||
& > div {
|
||||
border-right: 1px solid #fff;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
& :last-child {
|
||||
border-right: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.speedBg {
|
||||
height: 90%;
|
||||
padding: 2px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 10%;
|
||||
width: 80%;
|
||||
height: 100%;
|
||||
}
|
||||
.gap {
|
||||
width: 4%;
|
||||
}
|
||||
div {
|
||||
width: 23%;
|
||||
transform-origin: bottom;
|
||||
transform: scaleY(0.5);
|
||||
}
|
||||
#speedBar {
|
||||
background: #0ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
div {
|
||||
width: 23%;
|
||||
transform-origin: bottom;
|
||||
transform: scaleY(0.5);
|
||||
}
|
||||
#speedBar {
|
||||
background: #0ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -22,7 +22,7 @@
|
||||
<div class="left-logo-box">
|
||||
<img class="logo" :src="loginProLogo ? $store.state.user.ossUrl + '/logo/' + loginProLogo:''" :style="{ width: loginProLogoWidth+'px'}">
|
||||
<span>{{ loginOrgTitle }}</span>
|
||||
<img v-if="project === 'cdgxy'" class="logo" :src="zhIcon" >
|
||||
<img v-if="project === 'cdgxy'" class="logo" :src="zhIcon">
|
||||
</div>
|
||||
<div class="content-box">
|
||||
<div class="text-box">{{ loginProtitle }}</div>
|
||||
@ -57,6 +57,8 @@ import bgIscsImg from '@/assets/bg_iscs.jpg';
|
||||
import bgCctvImg from '@/assets/bg_cctv.jpg';
|
||||
import bgLswImg from '@/assets/bg_lsw.jpg';
|
||||
import bgPsdImg from '@/assets/bg_psd.png';
|
||||
import bgPisImg from '@/assets/bg_pis.png';
|
||||
import bgTmsImg from '@/assets/bg_tms.png';
|
||||
import ZongheIcon from '@/assets/icon/icon_zonghe.png';
|
||||
import { getLoginWmurl, checkLoginStatus, getLoginInfo } from '@/api/login';
|
||||
import { getToken} from '@/utils/auth';
|
||||
@ -97,7 +99,7 @@ export default {
|
||||
return this.$route.query.type;
|
||||
},
|
||||
syncLogin() {
|
||||
const synchronousLogin = ['VR_IBP', 'LSW', 'CCTV', 'ISCS_LW', 'ISCS_CW', 'VR_PSD', 'SANDBOX', 'ILW', 'PIS_STAND', 'PIS_TRAIN'];
|
||||
const synchronousLogin = ['VR_IBP', 'LSW', 'CCTV', 'ISCS_LW', 'ISCS_CW', 'VR_PSD', 'SANDBOX', 'ILW', 'PIS_STAND', 'PIS_TRAIN', 'PIS', 'TMS'];
|
||||
return this.type ? synchronousLogin.includes(this.type) : false;
|
||||
},
|
||||
bgImg() {
|
||||
@ -142,7 +144,9 @@ export default {
|
||||
ILW:{text:'检测教员机登录中', Img:bgLswImg},
|
||||
PIS_TRAIN:{text:'检测教员机登录中'},
|
||||
PIS_STAND:{text:'检测教员机登录中'},
|
||||
SANDBOX:{Img:bgLswImg, text:'检测教员机登录中'}
|
||||
SANDBOX:{Img:bgLswImg, text:'检测教员机登录中'},
|
||||
PIS:{text:'检测教员机登录中', Img: bgPisImg},
|
||||
TMS:{text:'检测列车驾驶终端登录中', Img: bgTmsImg}
|
||||
};
|
||||
this.loadingText = deviceMap[this.type].text;
|
||||
this.deviceImg = deviceMap[this.type].Img;
|
||||
|
@ -24,7 +24,7 @@ import { loadTrainingBg } from '@/api/jmap/training';
|
||||
import Cookies from 'js-cookie';
|
||||
import ConstConfig from '@/scripts/ConstConfig';
|
||||
import { loadDraftTraining } from '@/api/jmap/training';
|
||||
import { deleteTraining, publishTraining } from '@/api/trainingManage';
|
||||
import { deleteTraining, publishTraining, jumpToTraining } from '@/api/trainingManage';
|
||||
import { OperateMode } from '@/scripts/ConstDic';
|
||||
|
||||
export default {
|
||||
@ -206,6 +206,18 @@ export default {
|
||||
this.$jlmap && this.$jlmap.updateTransform(mapLocation.scale, {x:mapLocation.x, y:mapLocation.y});
|
||||
}
|
||||
this.$emit('updateDetails', resp.data);
|
||||
if (resp.data && resp.data.needRunToFinalStep) {
|
||||
this.$confirm('此草稿实训为转存后实训且未保存步骤背景,如需编辑则需快速仿真到最后一步!', this.$t('global.tips'), {
|
||||
confirmButtonText: '快速仿真',
|
||||
cancelButtonText: this.$t('global.cancel'),
|
||||
type: 'info'
|
||||
}).then(() => {
|
||||
const stepList = JSON.parse(resp.data.stepJson);
|
||||
jumpToTraining(this.$route.query.group, stepList[stepList.length - 1].id).then(()=>{
|
||||
this.$message.success('开始快速仿真!');
|
||||
}).catch(e => this.$message.error('开始快速仿真失败!'));
|
||||
});
|
||||
}
|
||||
}).catch((e) => {
|
||||
console.error(e);
|
||||
this.$emit('updateDetails', {});
|
||||
|
@ -53,7 +53,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { updateTrainingLabel } from '@/api/trainingManage';
|
||||
import { updateTrainingInfo } from '@/api/trainingManage';
|
||||
import ConstConfig from '@/scripts/ConstConfig';
|
||||
|
||||
export default {
|
||||
@ -87,8 +87,8 @@ export default {
|
||||
const form = {
|
||||
labelWidth: '90px',
|
||||
items: [
|
||||
{ prop: 'name', label: '名称', type: 'text', required: true, disabled: true },
|
||||
{ prop: 'description', label: '描述', type: 'textarea', isAutoSize: true, required: true, disabled: true },
|
||||
{ prop: 'name', label: '名称', type: 'text', required: true },
|
||||
{ prop: 'description', label: '描述', type: 'textarea', isAutoSize: true, required: true },
|
||||
{ prop: 'type', label: '类型', type: 'select', options: ConstConfig.ConstSelect.trainingType, required: true, disabled: true }
|
||||
]
|
||||
};
|
||||
@ -168,8 +168,9 @@ export default {
|
||||
const cpData = Object.assign({}, this.formModel);
|
||||
cpData.client = this.formModel.type === 'SINGLE' ? this.tagForm.client : '';
|
||||
cpData.labelJson = JSON.stringify(this.tagForm.dynamicTags);
|
||||
const api = updateTrainingLabel;
|
||||
const api = updateTrainingInfo;
|
||||
const mes = '编辑标签';
|
||||
console.log(cpData, 'cpData');
|
||||
api(cpData).then(res => {
|
||||
this.$message.success(`${mes}成功!`);
|
||||
this.$emit('editLabel');
|
||||
|
@ -14,7 +14,7 @@ import { launchFullscreen } from '@/utils/screen';
|
||||
import editTraining from './editTraining';
|
||||
import { superAdmin, admin } from '@/router/index';
|
||||
import { getAllPublishTrainingList, getManageTrainingListInOrg, publishTrainingPutOn, publishTrainingPutOff, publishTrainingDelete } from '@/api/jmap/training';
|
||||
import { exportTrainingData, importTrainingData } from '@/api/trainingManage';
|
||||
import { exportTrainingData, importTrainingData, saveAsTrainingDraft } from '@/api/trainingManage';
|
||||
export default {
|
||||
name:'TrainingManage',
|
||||
components: {
|
||||
@ -102,7 +102,7 @@ export default {
|
||||
{
|
||||
type: 'button',
|
||||
title: this.$t('trainingManage.operate'),
|
||||
width: '240',
|
||||
width: '330',
|
||||
buttons: [
|
||||
// {
|
||||
// name: '加载',
|
||||
@ -111,11 +111,17 @@ export default {
|
||||
// showControl:(row) => { return row.mapSystem; }
|
||||
// }
|
||||
{
|
||||
name: '修改标签',
|
||||
name: '修改信息',
|
||||
handleClick: this.handlerEditLabel,
|
||||
type: 'primary',
|
||||
showControl: row => { return this.isAdmin; }
|
||||
},
|
||||
{
|
||||
name: '存为草稿',
|
||||
handleClick: this.handlerSaveDraft,
|
||||
type: 'primary',
|
||||
showControl: row => { return this.isAdmin; }
|
||||
},
|
||||
{
|
||||
name: '上架',
|
||||
handleClick: this.handlerShelf,
|
||||
@ -226,6 +232,17 @@ export default {
|
||||
handlerEditLabel(index, data) {
|
||||
this.$refs.editTraining.doShow(data);
|
||||
},
|
||||
handlerSaveDraft(index, data) {
|
||||
this.$confirm('此操作将实训转存为草稿, 是否继续?', this.$t('global.tips'), {
|
||||
confirmButtonText: this.$t('global.confirm'),
|
||||
cancelButtonText: this.$t('global.cancel'),
|
||||
type: 'info'
|
||||
}).then(() => {
|
||||
saveAsTrainingDraft(data.id).then(resp=>{
|
||||
this.$message.success('转存为草稿成功!');
|
||||
}).catch(e => this.$message.error('转存为草稿失败!'));
|
||||
});
|
||||
},
|
||||
handlerShelf(index, data) {
|
||||
publishTrainingPutOn({ids: [data.id]}).then(resp=>{
|
||||
this.queryList.reload();
|
||||
|
@ -484,7 +484,6 @@ export default {
|
||||
handleMember(member, stationList) {
|
||||
const data = { value: member.id, label: '', memberType: member.type };
|
||||
const device = stationList.find(station => station.code === member.deviceCode) || {};
|
||||
console.log(member, '====');
|
||||
switch (member.type) {
|
||||
case 'DISPATCHER':
|
||||
data.label = '行调' + (member.name ? `-${member.name }` : '');
|
||||
|
@ -82,7 +82,9 @@ export default {
|
||||
UDP_CLIENT: 'UDP客户端',
|
||||
PIS_STAND: '站台PIS',
|
||||
PIS_TRAIN: '列车PIS',
|
||||
UDP_LOW:'UDP下位机'
|
||||
UDP_LOW:'UDP下位机',
|
||||
PIS: '乘客PIS',
|
||||
TMS: 'TMS'
|
||||
},
|
||||
mapList: [],
|
||||
roleList:[],
|
||||
@ -115,7 +117,6 @@ export default {
|
||||
this.jsonConfig = JSON.stringify(JSON.parse(resp.data.config), null, 4);
|
||||
}
|
||||
}).catch((e)=> {
|
||||
console.error(e, '======');
|
||||
this.$message.error('获取项目设备详情失败!');
|
||||
});
|
||||
// if (row.type === 'PSL' || row.type === 'PSC') {
|
||||
@ -153,7 +154,7 @@ export default {
|
||||
// } else {
|
||||
const data = {id: this.data.id, project: this.data.project, code: this.data.code, type: this.data.type, config: this.jsonConfig };
|
||||
flag && setDeviceConfig(data).then(response => {
|
||||
self.$message.success('设置设备网关映射配置成功');
|
||||
self.$message.success('设置设备配置成功');
|
||||
self.handleClose();
|
||||
self.$emit('reloadTable');
|
||||
}).catch(error => {
|
||||
@ -173,7 +174,7 @@ export default {
|
||||
// this.standCode = '';
|
||||
this.dialogVisible = false;
|
||||
this.$refs.form && this.$refs.form.resetFields();
|
||||
},
|
||||
}
|
||||
// mapIdChange(mapId, functionId) {
|
||||
// if (mapId) {
|
||||
// querySimulationStationsByMapId(mapId).then(resp => {
|
||||
@ -236,76 +237,76 @@ export default {
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
handleMember(member, stationList) {
|
||||
const data = { value: member.id, label: '', memberType: member.type };
|
||||
const device = stationList.find(station => station.code === member.deviceCode) || {};
|
||||
switch (member.type) {
|
||||
case 'DISPATCHER':
|
||||
data.label = '行调' + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'STATION_SUPERVISOR':
|
||||
data.label = '行值-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'DRIVER':
|
||||
data.label = '司机-' + member.deviceCode;
|
||||
break;
|
||||
case 'MAINTAINER':
|
||||
data.label = '通号' + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'DEPOT_DISPATCHER':
|
||||
data.label = '调度-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'SIGNAL_BUILDING':
|
||||
data.label = '信号楼-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'STATION_ASSISTANT':
|
||||
data.label = '助理-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'STATION_MASTER':
|
||||
data.label = '站长-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'STATION_SIGNALER':
|
||||
data.label = '信号员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'STATION_PASSENGER':
|
||||
data.label = '客运员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'STATION_SWITCH_MAN':
|
||||
data.label = '扳道员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'STATION_FACILITATOR':
|
||||
data.label = '引导员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'STATION_WORKER':
|
||||
data.label = '工务工-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'DEVICE_MANAGER':
|
||||
data.label = '设备管理员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'TRAIN_MASTER':
|
||||
data.label = '车务段段长' + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'ELECTRIC_DISPATCHER':
|
||||
data.label = '工电调度' + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'PARENT_DEPARTMENT':
|
||||
data.label = '上级部分' + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'SCHEDULING':
|
||||
data.label = '派班员' + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'SHIFT_MANAGER':
|
||||
data.label = '值班主任' + (member.name ? `-${member.name }` : '');
|
||||
break;
|
||||
case 'ENVIRONMENT_DISPATCHER':
|
||||
data.label = '环控调度' + (member.name ? `-${member.name}` : '');
|
||||
break;
|
||||
case 'STATION_ELECTRIC_WORKER':
|
||||
data.label = '电力工务 ' + (member.name ? `-${member.name}` : '');
|
||||
break;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
// handleMember(member, stationList) {
|
||||
// const data = { value: member.id, label: '', memberType: member.type };
|
||||
// const device = stationList.find(station => station.code === member.deviceCode) || {};
|
||||
// switch (member.type) {
|
||||
// case 'DISPATCHER':
|
||||
// data.label = '行调' + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'STATION_SUPERVISOR':
|
||||
// data.label = '行值-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'DRIVER':
|
||||
// data.label = '司机-' + member.deviceCode;
|
||||
// break;
|
||||
// case 'MAINTAINER':
|
||||
// data.label = '通号' + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'DEPOT_DISPATCHER':
|
||||
// data.label = '调度-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'SIGNAL_BUILDING':
|
||||
// data.label = '信号楼-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'STATION_ASSISTANT':
|
||||
// data.label = '助理-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'STATION_MASTER':
|
||||
// data.label = '站长-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'STATION_SIGNALER':
|
||||
// data.label = '信号员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'STATION_PASSENGER':
|
||||
// data.label = '客运员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'STATION_SWITCH_MAN':
|
||||
// data.label = '扳道员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'STATION_FACILITATOR':
|
||||
// data.label = '引导员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'STATION_WORKER':
|
||||
// data.label = '工务工-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'DEVICE_MANAGER':
|
||||
// data.label = '设备管理员-' + device.name + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'TRAIN_MASTER':
|
||||
// data.label = '车务段段长' + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'ELECTRIC_DISPATCHER':
|
||||
// data.label = '工电调度' + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'PARENT_DEPARTMENT':
|
||||
// data.label = '上级部分' + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'SCHEDULING':
|
||||
// data.label = '派班员' + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'SHIFT_MANAGER':
|
||||
// data.label = '值班主任' + (member.name ? `-${member.name }` : '');
|
||||
// break;
|
||||
// case 'ENVIRONMENT_DISPATCHER':
|
||||
// data.label = '环控调度' + (member.name ? `-${member.name}` : '');
|
||||
// break;
|
||||
// case 'STATION_ELECTRIC_WORKER':
|
||||
// data.label = '电力工务 ' + (member.name ? `-${member.name}` : '');
|
||||
// break;
|
||||
// }
|
||||
// return data;
|
||||
// }
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -111,7 +111,7 @@ export default {
|
||||
{ prop: 'deviceCode', label: '教研机:', type: 'select', options: this.deviceList, optionLabel: 'code', optionValue: 'code' },
|
||||
{ prop: 'quadrant', label: '屏幕配置:', type: 'select', options: this.screenList, optionLabel: 'label', optionValue: 'value'},
|
||||
{ prop: 'roleCode', label: '关联角色:', type: 'select', options: this.roleList, optionLabel: 'label', optionValue: 'value' },
|
||||
{ prop: 'client', label: '初始客户端:', type: 'select', options: this.clientList, optionLabel: 'label', optionValue: 'value' },
|
||||
{ prop: 'client', label: '初始客户端:', type: 'select', options: this.clientList, optionLabel: 'name', optionValue: 'id' },
|
||||
{ prop: 'clientList', label: '客户端列表:', type: 'select', options: this.clientList, optionLabel: 'name', optionValue: 'id' }
|
||||
]
|
||||
};
|
||||
@ -121,7 +121,7 @@ export default {
|
||||
items: [
|
||||
{ prop: 'deviceCode', label: '教研机:', type: 'select', options: this.deviceList, optionLabel: 'code', optionValue: 'code' },
|
||||
{ prop: 'roleCode', label: '关联角色:', type: 'select', options: this.roleList, optionLabel: 'label', optionValue: 'value' },
|
||||
{ prop: 'client', label: '关联客户端:', type: 'select', options: this.clientList, optionLabel: 'label', optionValue: 'value' },
|
||||
{ prop: 'client', label: '关联客户端:', type: 'select', options: this.clientList, optionLabel: 'name', optionValue: 'id' },
|
||||
{ prop: 'clientList', label: '客户端列表:', type: 'select', options: this.clientList, optionLabel: 'name', optionValue: 'id' }
|
||||
]
|
||||
};
|
||||
@ -131,7 +131,7 @@ export default {
|
||||
items: [
|
||||
{ prop: 'deviceCode', label: '教研机', type: 'select', options: this.deviceList, optionLabel: 'code', optionValue: 'code'},
|
||||
{ prop: 'roleCode', label: '关联角色:', type: 'select', options: this.roleList, optionLabel: 'label', optionValue: 'value' },
|
||||
{ prop: 'client', label: '关联客户端:', type: 'select', options: this.clientList, optionLabel: 'label', optionValue: 'value' },
|
||||
{ prop: 'client', label: '关联客户端:', type: 'select', options: this.clientList, optionLabel: 'name', optionValue: 'id' },
|
||||
{ prop: 'clientList', label: '客户端列表:', type: 'select', options: this.clientList, optionLabel: 'name', optionValue: 'id' }
|
||||
]
|
||||
};
|
||||
@ -141,7 +141,7 @@ export default {
|
||||
items: [
|
||||
{ prop: 'deviceCode', label: '教研机', type: 'select', options: this.deviceList, optionLabel: 'code', optionValue: 'code'},
|
||||
{ prop: 'roleCode', label: '关联角色:', type: 'select', options: this.roleList, optionLabel: 'label', optionValue: 'value' },
|
||||
{ prop: 'client', label: '关联客户端:', type: 'select', options: this.clientList, optionLabel: 'label', optionValue: 'value' },
|
||||
{ prop: 'client', label: '关联客户端:', type: 'select', options: this.clientList, optionLabel: 'name', optionValue: 'id' },
|
||||
{ prop: 'clientList', label: '客户端列表:', type: 'select', options: this.clientList, optionLabel: 'name', optionValue: 'id' }
|
||||
]
|
||||
};
|
||||
|
@ -187,7 +187,7 @@ export default {
|
||||
});
|
||||
},
|
||||
editConfig(index, row) {
|
||||
const configGatewayList = ['SWITCH', 'SIGNAL', 'PSD', 'PSL', 'PSC', 'UDP_LOW', 'SECTION', 'TRAIN', 'UDP_CLIENT', 'PIS_STAND', 'PIS_TRAIN'];
|
||||
const configGatewayList = ['SWITCH', 'SIGNAL', 'PSD', 'PSL', 'PSC', 'UDP_LOW', 'SECTION', 'TRAIN', 'UDP_CLIENT', 'PIS_STAND', 'PIS_TRAIN', 'PIS', 'TMS'];
|
||||
if (['LW', 'VR_IBP', 'ISCS_LW', 'ISCS_CW', 'IM', 'CW', 'DRIVE', 'DEPOT'].includes(row.type)) {
|
||||
this.$refs.editConfig.doShow(row);
|
||||
} else if (configGatewayList.includes(row.type)) {
|
||||
|
Loading…
Reference in New Issue
Block a user