diff --git a/tzipc-ui/src/api/ipc/dataLog.js b/tzipc-ui/src/api/ipc/dataLog.js index da30284..8b87f0f 100644 --- a/tzipc-ui/src/api/ipc/dataLog.js +++ b/tzipc-ui/src/api/ipc/dataLog.js @@ -1,17 +1,19 @@ import request from "@/utils/request"; // 查询plc数据记录 -export function getPlcDataLog(part) { +export function getPlcDataLog(query) { return request({ - url: "/ipc/dataLog/plc/" + part, + url: "/ipc/dataLog/plc", method: "get", + params: query, }); } // 查询传感器温振数据记录 -export function getSensorDataLog(part) { +export function getSensorDataLog(query) { return request({ - url: "/ipc/dataLog/sensor/" + part, + url: "/ipc/dataLog/sensor", method: "get", + params: query, }); } diff --git a/tzipc-ui/src/views/ipc/dataLog/sensorDataLog.vue b/tzipc-ui/src/views/ipc/dataLog/sensorDataLog.vue index 11e785d..c4c15dd 100644 --- a/tzipc-ui/src/views/ipc/dataLog/sensorDataLog.vue +++ b/tzipc-ui/src/views/ipc/dataLog/sensorDataLog.vue @@ -1,18 +1,64 @@ -