diff --git a/src/jmapNew/theme/datie_02/menus/bottomTable.vue b/src/jmapNew/theme/datie_02/menus/bottomTable.vue
index 4081c5f3b..a5c0a7948 100644
--- a/src/jmapNew/theme/datie_02/menus/bottomTable.vue
+++ b/src/jmapNew/theme/datie_02/menus/bottomTable.vue
@@ -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'}"
>
@@ -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;
+ }
diff --git a/src/jmapNew/theme/datie_02/menus/index.vue b/src/jmapNew/theme/datie_02/menus/index.vue
index c4f724d80..8aec7a23c 100644
--- a/src/jmapNew/theme/datie_02/menus/index.vue
+++ b/src/jmapNew/theme/datie_02/menus/index.vue
@@ -1,7 +1,8 @@