|
@@ -564,7 +564,8 @@ import {
|
|
|
devicesAndCategories,
|
|
|
updateDataRangeSpeed,
|
|
|
mockCacheData,
|
|
|
- setConditionTime
|
|
|
+ setConditionTime,
|
|
|
+ queryDataRangeSpeed
|
|
|
} from "@/api/index";
|
|
|
const wsMockUrl = import.meta.env.VITE_WS_MOCK_URL as string;
|
|
|
const wsMockClient = new WebSocketClient(wsMockUrl);
|
|
@@ -589,9 +590,19 @@ const getHStatus = async () => {
|
|
|
gridData.value = result.data;
|
|
|
};
|
|
|
let lineParamsAllRef = ref([]);
|
|
|
-
|
|
|
+const getQueryDataRangeSpeed = async () => {
|
|
|
+ let result = await queryDataRangeSpeed({});
|
|
|
+ let valueObj = result.data;
|
|
|
+ queryParamsMock.value={
|
|
|
+ sDate:valueObj.start_time,
|
|
|
+ eDate:valueObj.end_time,
|
|
|
+ count:Number(valueObj.batch_size),
|
|
|
+ time:Number(valueObj.interval)
|
|
|
+ }
|
|
|
+};
|
|
|
onMounted(async () => {
|
|
|
getcateData();
|
|
|
+ getQueryDataRangeSpeed()
|
|
|
await getPointData(btnBigIndex.value, "温度");
|
|
|
getHStatus();
|
|
|
if (!!sessionStorage.getItem("runStatus")) {
|