xieqy 2 年之前
父節點
當前提交
b0c934c49a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/views/vmSubsystem/VideoOverview/HistoryForm.vue

+ 3 - 0
src/views/vmSubsystem/VideoOverview/HistoryForm.vue

@@ -162,6 +162,9 @@ export default class HistoryForm extends Vue {
         date: item.time
       }
     })
+    this.tableData.sort((a, b) => {
+      return b.date.localeCompare(a.date)
+    })
     this.total = this.tableData.length
     this.chartData = { timeData, valData }
   }