From 87e19b5a396ac8fed6a551828b87d263f6425c31 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 16 十月 2025 10:26:12 +0800
Subject: [PATCH] 2025.10.16 修改季度报告生成逻辑
---
src/components/search/OptionDevice.vue | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/components/search/OptionDevice.vue b/src/components/search/OptionDevice.vue
index d5a4d43..093e7b8 100644
--- a/src/components/search/OptionDevice.vue
+++ b/src/components/search/OptionDevice.vue
@@ -18,7 +18,7 @@
</template>
<script>
-import { deviceList } from '@/constant/device-type';
+// import { deviceList } from '@/constant/device-type';
import { mapStores } from 'pinia';
import { useDeviceStore } from '@/stores/device';
@@ -27,7 +27,7 @@
type: String,
modelValue: String
},
- emits: ['update:modelValue'],
+ emits: ['update:modelValue', 'initOver'],
data() {
return {};
},
@@ -61,6 +61,7 @@
this.deviceStore.fetchDevice().then((res) => {
if (res.success && res.data.length > 0) {
this.handleChange(this.deviceOptions[0].value);
+ this.$emit('initOver');
}
});
},
@@ -76,6 +77,7 @@
this.fetchDevice();
} else {
this.handleChange(this.deviceOptions[0].value);
+ this.$emit('initOver');
}
}
};
--
Gitblit v1.9.3