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