/** * 车辆数据页面组件 */ export default class Vehicle { constructor(container, route) { this.container = container; this.route = route; this.init(); } async init() { try { this.render(); this.bindEvents(); this.loadVehicleData(); } catch (error) { console.error('Vehicle init error:', error); this.showError(error); } } render() { this.container.innerHTML = `
查看和管理车辆实时数据
| ID | 车辆ID | 车架号 | 数据类型 | 数据内容 | 时间戳 | 操作 |
|---|---|---|---|---|---|---|
| 加载中... | ||||||
${error.message || '未知错误'}