diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 247b928..ae15b7e 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -167,6 +167,10 @@ export default { index: "/aiWork", title: "AI绘图", }, + { + index: "/weatherIceConfig", + title: "覆冰微气象转发", + }, ], }, ], diff --git a/src/router/index.js b/src/router/index.js index cebf06e..033cbe6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -231,6 +231,18 @@ const routes = [ requiresAuth: true, }, }, + { + path: "/weatherIceConfig", + component: () => import("../views/system/weatherIceConfig.vue"), + name: "weatherIceConfig", + meta: { + title: "微气象覆冰转发", + icon: "", + keepAlive: true, + requiresAuth: true, + }, + }, + { path: "/echarts", component: () => import("../echartsDemo.vue"), diff --git a/src/utils/api/iceApi.js b/src/utils/api/iceApi.js index 433c5b2..b8202e7 100644 --- a/src/utils/api/iceApi.js +++ b/src/utils/api/iceApi.js @@ -76,3 +76,67 @@ export function exportJoggle(data) { responseType: "blob", }); } + +//查询天气装置列表 +export function getWeatherListApi(data) { + return request({ + url: "/xymanager/henan/getWeatherList", + method: "get", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} +//查询拉力装置点表 +export function getPointListApi(data) { + return request({ + url: "/xymanager/henan/getPointList", + method: "get", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} + +//新增微气象转发 +export function addWeatherApi(data) { + return request({ + url: "/xymanager/henan/addWeather", + method: "post", + data, + }); +} +//新增覆冰转发 +export function addIcePointApi(data) { + return request({ + url: "/xymanager/henan/addPoint", + method: "post", + data, + }); +} + +//删除微气象转发 +export function delWeatherApi(data) { + return request({ + url: "/xymanager/henan/delWeather", + method: "post", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} + +//删除覆冰转发 +export function delPointApi(data) { + return request({ + url: "/xymanager/henan/delPoint", + method: "post", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} diff --git a/src/views/system/weatherIceConfig.vue b/src/views/system/weatherIceConfig.vue new file mode 100644 index 0000000..b2b6301 --- /dev/null +++ b/src/views/system/weatherIceConfig.vue @@ -0,0 +1,363 @@ + + +