diff --git a/ui/dasadmin/src/views/backend/statAnalysis/trendComparison.vue b/ui/dasadmin/src/views/backend/statAnalysis/trendComparison.vue
index 14dabebc..d2f0bf55 100644
--- a/ui/dasadmin/src/views/backend/statAnalysis/trendComparison.vue
+++ b/ui/dasadmin/src/views/backend/statAnalysis/trendComparison.vue
@@ -50,7 +50,7 @@
row-key="id"
>
-
+
-
+
@@ -200,7 +200,7 @@ onMounted(() => {
})
const tableDataLeft = ref([])
const tableDataRight = ref([])
-
+const iotModelId = ref('')
const selectedLeft = ref([])
const selectedRight = ref([])
@@ -213,9 +213,12 @@ const queryWindTurbines = () => {
queryWindTurbinesPages().then((res) => {
if (res.code == 200) {
const resData = res.data
- const middleIndex = Math.ceil(resData.length / 2)
- tableDataLeft.value = resData.slice(0, middleIndex)
- tableDataRight.value = resData.slice(middleIndex)
+ if (resData.length) {
+ iotModelId.value = resData[0]['modelId']
+ const middleIndex = Math.ceil(resData.length / 2)
+ tableDataLeft.value = resData.slice(0, middleIndex)
+ tableDataRight.value = resData.slice(middleIndex)
+ }
}
})
}
@@ -233,7 +236,7 @@ const getcurrentPage = () => {
const getCompleteData = () => {
const requestData: any = {
- iotModelId: '',
+ iotModelId: iotModelId.value,
pageNum: pageSetting.current,
pageSize: pageSetting.pageSize,
attributeType: radioActiveName.value,