Commit 34baa1179cece27079584a8dfb15675aec10b74a

Authored by ww
1 parent 12028af0

fix: 修复设备详情物模型趋势数据排序无效

... ... @@ -145,10 +145,13 @@
145 145 if (!hasDeviceAttr()) return;
146 146 // 发送请求
147 147 loading.value = true;
148   - const res = await getDeviceHistoryInfo({
149   - ...searchParams,
150   - entityId: props.deviceDetail.tbDeviceId,
151   - });
  148 + const res = await getDeviceHistoryInfo(
  149 + {
  150 + ...searchParams,
  151 + entityId: props.deviceDetail.tbDeviceId,
  152 + },
  153 + searchParams.orderBy as OrderByEnum
  154 + );
152 155 historyData.value = getTableHistoryData(res);
153 156 loading.value = false;
154 157 // 判断数据对象是否为空
... ...