From 2aa95d808ea12b6be13f04c919ea8ba7441f2627 Mon Sep 17 00:00:00 2001 From: zhangzhang <1747194829@qq.com> Date: Tue, 7 May 2024 14:30:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=B8=A0=E9=81=93=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/perception/meteorologyCheck.js | 16 ++ .../service/PublishingChannelManagement.js | 61 ++++++ .../components/eventQuery/index.vue | 4 +- .../components/roadNetwork/index.vue | 20 +- .../components/weaterData/index.vue | 10 +- .../components/infoWarning/index.vue | 1 - .../components/AddNEditDialog.vue | 189 ++++++++++++++---- .../components/Card.vue | 182 ++++++++++++++--- .../PublishingChannelManagement/data.js | 82 +++++++- .../PublishingChannelManagement/index.vue | 66 +++++- 10 files changed, 541 insertions(+), 90 deletions(-) create mode 100644 ruoyi-ui/src/api/service/PublishingChannelManagement.js diff --git a/ruoyi-ui/src/api/perception/meteorologyCheck.js b/ruoyi-ui/src/api/perception/meteorologyCheck.js index 59101ae2..6613d948 100644 --- a/ruoyi-ui/src/api/perception/meteorologyCheck.js +++ b/ruoyi-ui/src/api/perception/meteorologyCheck.js @@ -63,3 +63,19 @@ export function getListVisibility() { method: "get", }); } + +// 路网交通状况 +export function getTrafficConditions() { + return request({ + url: "/business/weatherMonitoring/getTrafficConditions", + method: "get", + }); +} + +// 获取县城经纬度 +export function getRegionList() { + return request({ + url: "/business/region/list", + method: "get", + }); +} diff --git a/ruoyi-ui/src/api/service/PublishingChannelManagement.js b/ruoyi-ui/src/api/service/PublishingChannelManagement.js new file mode 100644 index 00000000..ee15d18e --- /dev/null +++ b/ruoyi-ui/src/api/service/PublishingChannelManagement.js @@ -0,0 +1,61 @@ +import request from "@/utils/request"; + +// 发布渠道列表 +export function getChannelsList(pageNum, pageSize, data) { + return request({ + url: `/business/channels/list?pageNum=${pageNum}&pageSize=${pageSize}`, + method: "post", + data, + }); +} + +// 导出发布渠道列表 +export function getChannelsExport() { + return request({ + url: "/business/channels/export", + method: "post", + }); +} + +// 获取发布渠道详情 +export function getChannels(id) { + return request({ + url: "/business/channels/" + id, + method: "get", + }); +} + +// 新增发布渠道 +export function addChannels(data) { + return request({ + url: "/business/channels", + method: "post", + data, + }); +} + +// 修改发布渠道 +export function editChannels(data) { + return request({ + url: "/business/channels", + method: "put", + data, + }); +} + +// 删除发布渠道 +export function delChannels(id) { + return request({ + url: "/business/channels/" + id, + method: "delete", + }); +} + +// 发布渠道修改状态 +export function updateEnabledChannels(data) { + return request({ + url: "business/channels/updateEnabled", + method: "post", + data, + }); +} diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue index d316dcfc..56c823e5 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue @@ -388,7 +388,7 @@ export default { // xData.push(it.day.split("-")[2] + "日"); xData.push(it.day + "日"); } - if (this.type == "date") { + if (this.type == "day") { xData.push(it.time + "时"); } if (this.type == "quarter") { @@ -515,7 +515,7 @@ export default { }); //路段范围内桩号分布 getSectionMarkNumber({ - type: qType, + type: this.type, sectionId: this.selectId, createTime: startTime, direction: this.direction, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue index 28a61516..ea524cf0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue @@ -31,7 +31,10 @@ diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/components/Card.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/components/Card.vue index fa854f02..e08d87e2 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/components/Card.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/components/Card.vue @@ -1,23 +1,33 @@ - + - + bgColor="linear-gradient(270deg, rgba(243, 0, 0, 0) 0%, #6B0000 100%)" + > - 交通事故 + {{ typeText }} - + handleChangeSwitcher(val)" + /> - + @@ -25,53 +35,163 @@ -