diff --git a/zfipc-server/zfipc-system/src/main/java/com/inspur/industrial/domain/IpcRunningStatusRecord.java b/zfipc-server/zfipc-system/src/main/java/com/inspur/industrial/domain/IpcRunningStatusRecord.java index 5fafe88..4ea8df1 100644 --- a/zfipc-server/zfipc-system/src/main/java/com/inspur/industrial/domain/IpcRunningStatusRecord.java +++ b/zfipc-server/zfipc-system/src/main/java/com/inspur/industrial/domain/IpcRunningStatusRecord.java @@ -26,7 +26,7 @@ public class IpcRunningStatusRecord extends BaseEntity private String runningStatus; /** 开始时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss") @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd") private Date startTime; diff --git a/zfipc-ui/src/api/equip/equip.js b/zfipc-ui/src/api/equip/equip.js index afcd0c1..ea45c50 100644 --- a/zfipc-ui/src/api/equip/equip.js +++ b/zfipc-ui/src/api/equip/equip.js @@ -41,6 +41,7 @@ export function getEquipTreeByDept(query) { params: query, }); } + // 查询设备信息详细 export function getInfo(id) { return request({ @@ -49,6 +50,15 @@ export function getInfo(id) { }); } +// 查询设备信息列表 +export function listInfoStatus(query) { + return request({ + url: "/equip/info/listEquipStatus", + method: "get", + params: query, + }); +} + // 新增设备信息 export function addInfo(data) { return request({ diff --git a/zfipc-ui/src/views/eqmanagement/eqinfo/index.vue b/zfipc-ui/src/views/eqmanagement/eqinfo/index.vue index ae7fb72..e65a4c1 100644 --- a/zfipc-ui/src/views/eqmanagement/eqinfo/index.vue +++ b/zfipc-ui/src/views/eqmanagement/eqinfo/index.vue @@ -314,6 +314,46 @@ icon="el-icon-document" @click="handleDetails(scope.row)" >详情 + +
+ + + + + + + +
加载中...
+
+ 状态数据 + +
{ + this.timelineData = response.data; + this.timeLoading = false; + }); + }, + changeIcon(index) { + if (index === 0) { + return "el-icon-check"; + } + }, + changeColor(index) { + if (index === 0) { + return "green"; + } + }, + statusDataTitle(row) { + return row.equipName + "的状态数据"; + }, //图纸下载 cancelDownload() { this.downloadOpen = false;