From 08ffcf9d7ffafaa82d8de7f9b5fcfdb49e9c3688 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 05 十一月 2025 17:33:54 +0800
Subject: [PATCH] 动态溯源 1. 修复CO因子文本没有正常显示的问题;
---
src/views/realtimemode/component/DeviceChange.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/views/realtimemode/component/DeviceChange.vue b/src/views/realtimemode/component/DeviceChange.vue
index 4b78b7e..345b996 100644
--- a/src/views/realtimemode/component/DeviceChange.vue
+++ b/src/views/realtimemode/component/DeviceChange.vue
@@ -33,14 +33,18 @@
}
},
watch: {
- // formSearch(nV, oV) {
- // if (nV != oV) {
- // this.handleChange(nV[0].value);
- // }
- // }
+ // 褰撹澶囩紪鍙烽娆′粠鍚庣鑾峰彇鏃讹紝瑙﹀彂閫氱煡浜嬩欢
+ ['formSearch.deviceCode'](nV, oV) {
+ if (oV == undefined && nV != oV) {
+ this.handleClick();
+ }
+ }
},
mounted() {
- this.$emit('change', this.formSearch);
+ // 褰撹澶囩紪鍙峰凡缁忎粠鍚庣鑾峰彇瀹屾垚鏃讹紝鐩存帴瑙﹀彂閫氱煡浜嬩欢
+ if (this.formSearch.deviceCode) {
+ this.handleClick();
+ }
}
};
</script>
--
Gitblit v1.9.3