This commit is contained in:
joylink_cuiweidong 2022-06-17 11:34:22 +08:00
commit 8b475d497f
5 changed files with 34 additions and 8 deletions

View File

@ -10,10 +10,11 @@
ref="sequenceTable" ref="sequenceTable"
:data="sequenceList" :data="sequenceList"
height="90" height="90"
:row-class-name="tableRowClassName"
border border
style="width: 650px" style="width: 650px"
:cell-style="{padding: 0}" :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 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"> <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) { getRouteName(code) {
if (code) { if (code) {
const route = this.$store.state.map.routeData[code]; const route = this.$store.state.map.routeData[code];
@ -270,4 +287,13 @@ export default {
.bottom-table-label-header{ .bottom-table-label-header{
background: #FFF3EE; background: #FFF3EE;
} }
.bottom-table-route-wait {
background: #ff0;
}
.bottom-table-route-gray{
background: #4c4c4c;
}
.bottom-table-route-green{
background: #0f0;
}
</style> </style>

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="menus" :style="{width: width + 'px'}"> <div class="menus" :style="{width: width + 'px'}">
<menu-bar v-if="isCtc" ref="menuBar" :dateStrin="dateString1" :selected="selected" /> <menu-bar v-if="isCtc" ref="menuBar" :date-strin="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="position: absolute; top: 64px;z-index: 10;background: #F0F0F0;padding: 2px;height: 65px;width: 100%;">
<div style="display: flex;"> <div style="display: flex;">
<img :src="ctcBarIcon1" class="img-box"> <img :src="ctcBarIcon1" class="img-box">
<img :src="ctcBarIcon2" class="img-box"> <img :src="ctcBarIcon2" class="img-box">
@ -90,6 +90,7 @@ import CtcBarIcon15 from '@/assets/ctc_icon/pic15.png';
import CtcBarIcon16 from '@/assets/ctc_icon/pic16.png'; import CtcBarIcon16 from '@/assets/ctc_icon/pic16.png';
import CtcBarIcon17 from '@/assets/ctc_icon/pic17.png'; import CtcBarIcon17 from '@/assets/ctc_icon/pic17.png';
import CtcBarIcon18 from '@/assets/ctc_icon/pic18.png'; import CtcBarIcon18 from '@/assets/ctc_icon/pic18.png';
// <div v-if="isCtc" style="font-size: 14px;padding: 0 10px;background: #DEE3F3;line-height: 30px;">{{ `CTC3.0(A)--${dateString} 18:00 --` }}</div>
export default { export default {
name: 'Menus', name: 'Menus',

View File

@ -1,6 +1,5 @@
<template> <template>
<div id="menuBarChengdu3"> <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%" /> <menu-bar ref="menuBar" :menu-normal="menuNormal" style="width:100%" />
<station-control-convert ref="stationControlConvert" /> <station-control-convert ref="stationControlConvert" />
<password-box ref="passwordBox" @setLoginResult="getLoginResult" /> <password-box ref="passwordBox" @setLoginResult="getLoginResult" />

View File

@ -176,7 +176,7 @@
highlight-current-row highlight-current-row
:row-style="{ background: '#ff0' }" :row-style="{ background: '#ff0' }"
height="180" height="180"
:default-sort="{prop: 'startTime', order: 'descending'}" :default-sort="{prop: 'startTime', order: 'ascending'}"
border border
> >
<el-table-column width="50" label="序号" align="center"> <el-table-column width="50" label="序号" align="center">

View File

@ -184,9 +184,9 @@ export default {
textStatus.style.top = this.offset - 15 + 'px'; textStatus.style.top = this.offset - 15 + 'px';
} }
if (this.$route.query.ctc) { if (this.$route.query.ctc) {
this.offset = 35; this.offset = 65;
this.offsetBottom = 2; this.offsetBottom = 2;
} }
}); });
}, },
// //