大铁ctc调整
This commit is contained in:
parent
4ef230a4e4
commit
db9ca50400
@ -10,10 +10,11 @@
|
||||
ref="sequenceTable"
|
||||
:data="sequenceList"
|
||||
height="90"
|
||||
:row-class-name="tableRowClassName"
|
||||
border
|
||||
style="width: 650px"
|
||||
:cell-style="{padding: 0}"
|
||||
:default-sort="{prop: 'startTime', order: 'descending'}"
|
||||
:default-sort="{prop: 'startTime', order: 'ascending'}"
|
||||
>
|
||||
<el-table-column type="index" width="30" label="序" label-class-name="bottom-table-label-header" />
|
||||
<el-table-column property="tripNumber" label="车次" width="60" label-class-name="bottom-table-label-header">
|
||||
@ -218,6 +219,22 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
tableRowClassName({row, rowIndex}) {
|
||||
// if (status === '2') {
|
||||
// return '触发完成';
|
||||
// } else if (status === '1') {
|
||||
// return '正在触发';
|
||||
// } else {
|
||||
// return '等待中';
|
||||
// }
|
||||
if (row.status === 0) {
|
||||
return 'bottom-table-route-wait';
|
||||
} else if (row.tripNumber) {
|
||||
return 'bottom-table-route-gray';
|
||||
} else {
|
||||
return 'bottom-table-route-green';
|
||||
}
|
||||
},
|
||||
getRouteName(code) {
|
||||
if (code) {
|
||||
const route = this.$store.state.map.routeData[code];
|
||||
@ -270,4 +287,13 @@ export default {
|
||||
.bottom-table-label-header{
|
||||
background: #FFF3EE;
|
||||
}
|
||||
.bottom-table-route-wait {
|
||||
background: #ff0;
|
||||
}
|
||||
.bottom-table-route-gray{
|
||||
background: #4c4c4c;
|
||||
}
|
||||
.bottom-table-route-green{
|
||||
background: #0f0;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,7 +1,8 @@
|
||||
<template>
|
||||
<div class="menus" :style="{width: width + 'px'}">
|
||||
<menu-bar v-if="isCtc" ref="menuBar" :dateStrin="dateString1" :selected="selected" />
|
||||
<div v-if="isCtc" style="position: absolute; top: 35px;z-index: 10;background: #F0F0F0;padding: 2px;height: 65px;width: 100%;">
|
||||
<div v-if="isCtc" style="font-size: 14px;padding: 0 10px;background: #DEE3F3;line-height: 30px;">{{ `哈尔滨局CTC3.0(车务终端A机)--王岗:${dateString}第一班 18:00 管理员代--` }}</div>
|
||||
<menu-bar v-if="isCtc" ref="menuBar" :date-strin="dateString1" :selected="selected" />
|
||||
<div v-if="isCtc" style="position: absolute; top: 64px;z-index: 10;background: #F0F0F0;padding: 2px;height: 65px;width: 100%;">
|
||||
<div style="display: flex;">
|
||||
<img :src="ctcBarIcon1" class="img-box">
|
||||
<img :src="ctcBarIcon2" class="img-box">
|
||||
|
@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div id="menuBarChengdu3">
|
||||
<div style="font-size: 14px;padding: 0 10px;background: #DEE3F3;">{{ `哈尔滨局CTC3.0(车务终端A机)--王岗:${dateString}第一班 18:00 管理员代--` }}</div>
|
||||
<menu-bar ref="menuBar" :menu-normal="menuNormal" style="width:100%" />
|
||||
<station-control-convert ref="stationControlConvert" />
|
||||
<password-box ref="passwordBox" @setLoginResult="getLoginResult" />
|
||||
|
@ -176,7 +176,7 @@
|
||||
highlight-current-row
|
||||
:row-style="{ background: '#ff0' }"
|
||||
height="180"
|
||||
:default-sort="{prop: 'startTime', order: 'descending'}"
|
||||
:default-sort="{prop: 'startTime', order: 'ascending'}"
|
||||
border
|
||||
>
|
||||
<el-table-column width="50" label="序号" align="center">
|
||||
|
@ -184,9 +184,9 @@ export default {
|
||||
textStatus.style.top = this.offset - 15 + 'px';
|
||||
}
|
||||
if (this.$route.query.ctc) {
|
||||
this.offset = 35;
|
||||
this.offsetBottom = 2;
|
||||
}
|
||||
this.offset = 65;
|
||||
this.offsetBottom = 2;
|
||||
}
|
||||
});
|
||||
},
|
||||
// 缩放设置
|
||||
|
Loading…
Reference in New Issue
Block a user