From db9ca504007b3fea069b15823374b8beb9f675aa Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 17 Jun 2022 11:26:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=A7=E9=93=81ctc=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/datie_02/menus/bottomTable.vue | 28 ++++++++++++++++++- src/jmapNew/theme/datie_02/menus/index.vue | 5 ++-- src/jmapNew/theme/datie_02/menus/menuBar.vue | 1 - src/views/newMap/displayCity/lineBoard.vue | 2 +- src/views/newMap/displayNew/index.vue | 6 ++-- 5 files changed, 34 insertions(+), 8 deletions(-) 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 @@