src/views/EquipmentView.vue
@@ -176,6 +176,12 @@ components: { V2Echarts, }, props: { selectedId: { type: String, default: "", }, }, data() { return { equipmentSelected: "", @@ -496,6 +502,16 @@ }; }, }, watch: { selectedId: { handler(newVal) { console.log("设备界面接收到的数据:", newVal); // 处理数据变化的逻辑 }, deep: true, // 深度监听对象内部变化 immediate: true, // 立即执行一次 }, }, methods: { handleControlBtnClick(tab) { this.currentTab = tab; @@ -749,5 +765,4 @@ .progress-inner { display: none; } </style>