diff --git a/src/assets/css/reset.css b/src/assets/css/reset.css index b045743..deca14c 100644 --- a/src/assets/css/reset.css +++ b/src/assets/css/reset.css @@ -35,18 +35,22 @@ a { /* 整个滚动条 */ ::-webkit-scrollbar { width: 8px; - height: 8px; } /* 滚动条上的滚动滑块 */ ::-webkit-scrollbar-thumb { background-color: #ccc; /* 关键代码 */ - border-radius: 32px; + border-radius: 2px; } /* 滚动条轨道 */ ::-webkit-scrollbar-track { background-color: #f0f0f0; - border-radius: 32px; + border-radius: 2px; +} +.el-table__fixed, +.el-table__fixed-right { + height: auto !important; + bottom: 15px !important; } diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 17b64e6..d5d2268 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -98,6 +98,10 @@ export default { index: "/property", title: "资产管理", subs: [ + { + index: "/dyInformation", + title: "电压信息管理", + }, { index: "/lineInformation", title: "线路信息管理", diff --git a/src/router/index.js b/src/router/index.js index a62dd83..5de4b8a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -121,6 +121,17 @@ const routes = [ name: "globalTools", meta: { title: "全局设置", keepAlive: true, requiresAuth: true }, }, + { + path: "/dyInformation", + component: () => import("../views/dyInformation/index.vue"), + name: "dyInformation", + meta: { + title: "电压信息管理", + icon: "", + keepAlive: true, + requiresAuth: true, + }, + }, { path: "/lineInformation", component: () => import("../views/lineInformation/index.vue"), diff --git a/src/utils/api/index.js b/src/utils/api/index.js index 63e4b76..84fee90 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -365,6 +365,38 @@ export function getdyListJoggle(data) { data, }); } +//1.电压列表信息 +export function getDyListJoggle(data) { + return request({ + url: "/xymanager/dy/listAll", + method: "post", + data, + }); +} +//2.添加单个或者多个电压信息 +export function addDyJoggle(data) { + return request({ + url: "/xymanager/dy/add", + method: "post", + data, + }); +} +//3.删除电压信息 +export function deleteDyJoggle(data) { + return request({ + url: "/xymanager/dy/delete", + method: "post", + data, + }); +} +//4.修改电压信息 +export function updateDyJoggle(data) { + return request({ + url: "/xymanager/dy/update", + method: "post", + data, + }); +} //1.线路列表信息 export function getLineListJoggle(data) { return request({ diff --git a/src/utils/api/reportApi.js b/src/utils/api/reportApi.js index c9a6c9f..ac22dd4 100644 --- a/src/utils/api/reportApi.js +++ b/src/utils/api/reportApi.js @@ -25,3 +25,20 @@ export function getphotoApi(data) { data, }); } +//获取心跳历史 +export function getIpList(data) { + return request({ + url: "/xymanager/terminal/heartbeat", + method: "get", + params: data, + }); +} + +//获取装置状态统表 +export function gettermAllList(data) { + return request({ + url: "/xymanager/terminal/listWithAll", + method: "get", + params: data, + }); +} diff --git a/src/views/dyInformation/components/addDyDialog.vue b/src/views/dyInformation/components/addDyDialog.vue new file mode 100644 index 0000000..554c8c8 --- /dev/null +++ b/src/views/dyInformation/components/addDyDialog.vue @@ -0,0 +1,128 @@ + + + diff --git a/src/views/dyInformation/index.vue b/src/views/dyInformation/index.vue new file mode 100644 index 0000000..1e2e2fd --- /dev/null +++ b/src/views/dyInformation/index.vue @@ -0,0 +1,271 @@ + + + diff --git a/src/views/lineInformation/index.vue b/src/views/lineInformation/index.vue index fd0997d..06973ef 100644 --- a/src/views/lineInformation/index.vue +++ b/src/views/lineInformation/index.vue @@ -9,6 +9,17 @@