Browse Source

天气对接

wangqin
zhangzhang 12 months ago
parent
commit
8b8fae0784
  1. 32
      ruoyi-ui/src/api/perception/meteorologyCheck.js
  2. 171
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue
  3. 720
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/sortFaceForecast/index.vue
  4. 235
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherForecast/index.vue
  5. 299
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherWarning/components/infoWarning/index.vue
  6. 107
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/index.vue
  7. 620
      ruoyi-ui/src/views/event/event/dispatch.vue

32
ruoyi-ui/src/api/perception/meteorologyCheck.js

@ -0,0 +1,32 @@
import request from "@/utils/request";
// 查询天气状况
export function getWeatherFacts() {
return request({
url: "/weatherForecast/weatherFacts",
method: "post",
});
}
// 按小时查询天气状况
export function getHourlyWeather() {
return request({
url: "/weatherForecast/hourlyWeather",
method: "post",
});
}
// 查询气象预警
export function getMeteorologicalEarlyWarning() {
return request({
url: "/weatherForecast/meteorologicalEarlyWarning",
method: "post",
});
}
// 查询气象预警数量
export function getQueryTheNumberOfMeteorologicalWarning() {
return request({
url: "/weatherForecast/queryTheNumberOfMeteorologicalWarning",
method: "post",
});
}

171
ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue

@ -1,99 +1,111 @@
<template> <template>
<div class='congestion'> <div class="congestion">
<WgtTitle :title="'路网交通状况'"></WgtTitle> <WgtTitle :title="'路网交通状况'"></WgtTitle>
<div class="board"> <div class="board">
<div class="showRoad" > <div class="showRoad">
<div :class="it.type?it.type+' item':'item'" v-for="(it,index) in dataList" > <div
<div class="text" >{{ it.text }}</div> :class="it.type ? it.type + ' item' : 'item'"
<div v-if="it.type == null || it.type == 'red'" class="num" > v-for="(it, index) in dataList"
>
<div class="text">{{ it.text }}</div>
<div v-if="it.type == null || it.type == 'red'" class="num">
<span>{{ it.value }}</span> <span>{{ it.value }}</span>
<span class="typeClass" >{{ it.class }}</span> <span class="typeClass">{{ it.class }}</span>
</div> </div>
<div v-if="it.type == 'array' || it.type == 'arrayRed'" class="num" > <div v-if="it.type == 'array' || it.type == 'arrayRed'" class="num">
<span>{{ it.value[0] }}</span> <span>{{ it.value[0] }}</span>
<span class="typeClass" >{{ it.class[0] }}</span> <span class="typeClass">{{ it.class[0] }}</span>
<span class="midd" style="color:#fff;font-weight: 800; margin-right:2px;">/</span> <span
class="midd"
style="color: #fff; font-weight: 800; margin-right: 2px"
>/</span
>
<span>{{ it.value[1] }}</span> <span>{{ it.value[1] }}</span>
<span class="typeClass" >{{ it.class[1] }}</span> <span class="typeClass">{{ it.class[1] }}</span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import WgtTitle from "../../../widgets/title";
import { getQueryTheNumberOfMeteorologicalWarning } from "@/api/perception/meteorologyCheck";
import WgtTitle from '../../../widgets/title' export default {
name: "MonthStatistics",
export default {
name: 'MonthStatistics',
components: { components: {
WgtTitle WgtTitle,
}, },
data() { data() {
return { return {
dataList:[ dataList: [
{ {
text:"气象正常路段里程", text: "气象正常路段里程",
value:"189", value: "189",
class:"km" class: "km",
}, },
{ {
text:"降水路段里程", text: "降水路段里程",
value:"0", value: "0",
class:"km" class: "km",
}, },
{ {
text:"团雾路段里程", text: "团雾路段里程",
type:"array", type: "array",
value:["0",'0'], value: ["0", "0"],
class:['处',"km"] class: ["处", "km"],
}, },
{ {
text:"气象预警信息", text: "气象预警信息",
type:"red", type: "red",
value:"0", value: "0",
class:"" class: "",
}, },
{ {
text:"能见度检测器", text: "能见度检测器",
type:"arrayRed", type: "arrayRed",
value:["0",'5'], value: ["0", "5"],
class:['',""] class: ["", ""],
}
]
}
}, },
],
created() { };
}, },
methods: {
created() {},
methods: {
getWeatherNum() {
getQueryTheNumberOfMeteorologicalWarning().then((res) => {
this.dataList[3].value = res.data;
console.log("res", res);
});
},
}, },
mounted() { mounted() {
setTimeout(() => { this.getWeatherNum();
this.$nextTick(() => { //
});
});
}, },
} };
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
.congestion { .congestion {
width: 100%; width: 100%;
.board{ .board {
height:150px; height: 150px;
width: 100%; width: 100%;
padding: 0px 20px; padding: 0px 20px;
background: linear-gradient(180deg, rgba(6,66,88,0.2) 0%, #064258 100%); background: linear-gradient(180deg, rgba(6, 66, 88, 0.2) 0%, #064258 100%);
border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;
opacity: 1; opacity: 1;
border: 1px solid; border: 1px solid;
border-image: linear-gradient(360deg, rgba(55, 231, 255,0.3), rgba(55, 231, 255, 0)) 1 1; border-image: linear-gradient(
360deg,
rgba(55, 231, 255, 0.3),
rgba(55, 231, 255, 0)
)
1 1;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -101,41 +113,41 @@
.showRoad { .showRoad {
display: inline-flex; display: inline-flex;
width:100%; width: 100%;
height:100%; height: 100%;
padding-top:40px; padding-top: 40px;
.item.red { .item.red {
.num { .num {
font-size: 20px; font-size: 20px;
font-family: PangMenZhengDao; font-family: PangMenZhengDao;
font-weight: 400; font-weight: 400;
color: #D9001B; color: #d9001b;
position: relative; position: relative;
left:30px; left: 30px;
} }
} }
.item.arrayRed { .item.arrayRed {
.num span:first-child { .num span:first-child {
color: #D9001B; color: #d9001b;
margin:0px; margin: 0px;
margin-left:20px; margin-left: 20px;
} }
.midd { .midd {
color:#00D1FF !important; color: #00d1ff !important;
} }
.typeClass { .typeClass {
margin:0px; margin: 0px;
} }
} }
.item { .item {
display: inline-flex; display: inline-flex;
width:20%; width: 20%;
height:90px; height: 90px;
flex-direction: column; flex-direction: column;
.text { .text {
@ -143,21 +155,21 @@
font-size: 14px; font-size: 14px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #ffffff;
} }
.num { .num {
margin-left:8px; margin-left: 8px;
font-size: 20px; font-size: 20px;
font-family: PangMenZhengDao; font-family: PangMenZhengDao;
font-weight: 400; font-weight: 400;
color: #00D1FF; color: #00d1ff;
position: relative; position: relative;
} }
.typeClass { .typeClass {
margin-left:8px; margin-left: 8px;
margin-right:8px; margin-right: 8px;
font-size: 12px; font-size: 12px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
@ -165,13 +177,10 @@
} }
} }
} }
} }
} }
.charts { .charts {
height:180px; height: 180px;
width: 100%; width: 100%;
} }
</style>
</style>

720
ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/sortFaceForecast/index.vue

File diff suppressed because it is too large

235
ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherForecast/index.vue

@ -1,36 +1,36 @@
<template> <template>
<div class='congestion'> <div class="congestion">
<WgtTitle :title="'天气预报'"></WgtTitle> <WgtTitle :title="'天气预报'"></WgtTitle>
<div class="board"> <div class="board">
<div class="showRoad" > <div class="showRoad">
<div class="weaterIcon" > <div class="weaterIcon">
<img src="./assets/weather.png" /> <img src="./assets/weather.png" />
<div > <div>
{{ weaterType }} {{ weaterType }}
</div> </div>
</div> </div>
<div class="weaterNum" > <div class="weaterNum">
<div class="num">{{ weaterNum }}° </div> <div class="num">{{ weaterNum }}°</div>
<div class="maxMin" > <div class="maxMin">
{{ weaterMaxMin }} {{ weaterMaxMin }}
</div> </div>
</div> </div>
<div class="windType" > <div class="windType">
<div class="Warnings" >{{ windWarnings }} </div> <div class="Warnings">{{ windWarnings }}</div>
<div class="windTypeStr" > <div class="windTypeStr">
{{ windType }} {{ windType }}
</div> </div>
</div> </div>
<div class="line" ></div> <div class="line"></div>
<div class="cityType" > <div class="cityType">
<img src="./assets/cityPosition.png" /> <img src="./assets/cityPosition.png" />
<div class="cityText" > <div class="cityText">
{{ city }} {{ city }}
</div> </div>
</div> </div>
<div class="temperature" > <div class="temperature">
<div class="temperItem" v-for="(it,index) in temperatures" > <div class="temperItem" v-for="(it, index) in temperatures">
<div class="text" > <div class="text">
<img src="./assets/polygon.png" /><span>{{ it.text }}</span> <img src="./assets/polygon.png" /><span>{{ it.text }}</span>
</div> </div>
<div class="val"> <div class="val">
@ -41,74 +41,72 @@
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import WgtTitle from "../../../widgets/title";
import WgtTitle from '../../../widgets/title' export default {
name: "MonthStatistics",
export default {
name: 'MonthStatistics',
components: { components: {
WgtTitle WgtTitle,
}, },
data() { data() {
return { return {
weaterNum:"21", weaterNum: "21",
weaterMaxMin:"12 / 23°", weaterMaxMin: "12 / 23°",
weaterType:"睛转小雨", weaterType: "睛转小雨",
windWarnings:"大风预警", windWarnings: "大风预警",
windType:"东北风三级", windType: "东北风三级",
city:"济南", city: "济南",
temperatures:[ temperatures: [
{ {
text:"体感", text: "体感",
value:"-14℃", value: "-14℃",
}, },
{ {
text:"PM2.5", text: "PM2.5",
value:"90", value: "90",
}, },
{ {
text:"湿度", text: "湿度",
value:"94%", value: "94%",
}, },
{ {
text:"紫外线", text: "紫外线",
value:"3", value: "3",
}
]
}
}, },
],
created() { };
}, },
methods: {
}, created() {},
methods: {},
mounted() { mounted() {
setTimeout(() => { setTimeout(() => {
this.$nextTick(() => { this.$nextTick(() => {});
});
}); });
}, },
} };
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
.congestion { .congestion {
width: 100%; width: 100%;
.board{ .board {
height:150px; height: 150px;
width: 100%; width: 100%;
padding: 0px 20px; padding: 0px 20px;
background: linear-gradient(180deg, rgba(6,66,88,0.2) 0%, #064258 100%); background: linear-gradient(180deg, rgba(6, 66, 88, 0.2) 0%, #064258 100%);
border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;
opacity:1; opacity: 1;
border: 1px solid; border: 1px solid;
border-image: linear-gradient(360deg, rgba(55, 231, 255,0.3), rgba(55, 231, 255, 0)) 1 1; border-image: linear-gradient(
360deg,
rgba(55, 231, 255, 0.3),
rgba(55, 231, 255, 0)
)
1 1;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -116,131 +114,131 @@
.showRoad { .showRoad {
display: inline-flex; display: inline-flex;
width:100%; width: 100%;
height:100%; height: 100%;
padding-top:40px; padding-top: 40px;
padding-left:58px; padding-left: 58px;
> div { > div {
display: inline-flex; display: inline-flex;
flex-direction: column; flex-direction: column;
} }
.weaterIcon { .weaterIcon {
display: inline-flex; display: inline-flex;
width:60px; width: 60px;
height:80px; height: 80px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right:27px; margin-right: 27px;
>img { > img {
display: inline-flex; display: inline-flex;
width:43px; width: 43px;
height:43px; height: 43px;
} }
>div { > div {
font-size: 12px; font-size: 12px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #ffffff;
margin-top:10px; margin-top: 10px;
} }
} }
.weaterNum { .weaterNum {
display: inline-flex; display: inline-flex;
width:60px; width: 60px;
height:80px; height: 80px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right:27px; margin-right: 27px;
.num { .num {
font-size: 34px; font-size: 34px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #ffffff;
} }
.maxMin { .maxMin {
font-size: 12px; font-size: 12px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #ffffff;
margin-top:6px; margin-top: 6px;
} }
} }
.windType{ .windType {
display: inline-flex; display: inline-flex;
width:60px; width: 60px;
height:80px; height: 80px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right:27px; margin-right: 27px;
.Warnings { .Warnings {
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-top:23px; margin-top: 23px;
width: 67px; width: 67px;
height: 18px; height: 18px;
background: rgba(245,80,80,0.4); background: rgba(245, 80, 80, 0.4);
border-radius: 2px 2px 2px 2px; border-radius: 2px 2px 2px 2px;
opacity: 1; opacity: 1;
border: 1px solid #F55050; border: 1px solid #f55050;
font-size: 12px; font-size: 12px;
font-family: Source Han Sans SC, Source Han Sans SC; font-family: Source Han Sans SC, Source Han Sans SC;
font-weight: 400; font-weight: 400;
color: #F55050; color: #f55050;
} }
.windTypeStr { .windTypeStr {
font-size: 12px; font-size: 12px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #ffffff;
margin-top:13px; margin-top: 13px;
} }
} }
.line { .line {
margin-left:37px; margin-left: 37px;
margin-right:45px; margin-right: 45px;
width: 1px; width: 1px;
height: 86px; height: 86px;
opacity: 1; opacity: 1;
border: 1px solid; border: 1px solid;
border-image: linear-gradient(320deg, rgba(6, 92, 120, 1), rgba(6, 92, 120, 0)) 1 1; border-image: linear-gradient(
320deg,
rgba(6, 92, 120, 1),
rgba(6, 92, 120, 0)
)
1 1;
} }
.cityType { .cityType {
display: inline-flex; display: inline-flex;
width:60px; width: 60px;
height:80px; height: 80px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right:27px; margin-right: 27px;
img { img {
width:38px; width: 38px;
height:40px; height: 40px;
} }
.cityText { .cityText {
font-size: 12px; font-size: 12px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #ffffff;
margin-top: 10px;; margin-top: 10px;
} }
} }
@ -252,14 +250,19 @@
background: transparent; background: transparent;
opacity: 1; opacity: 1;
border: 1px solid; border: 1px solid;
border-image: linear-gradient(180deg, rgba(1, 37, 48, 0), rgba(1, 149, 196, 1)) 1 1; border-image: linear-gradient(
180deg,
rgba(1, 37, 48, 0),
rgba(1, 149, 196, 1)
)
1 1;
border-radius: 8px; border-radius: 8px;
>div { > div {
display: inline-flex; display: inline-flex;
flex-direction: column; flex-direction: column;
width:25%; width: 25%;
height:100%; height: 100%;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -269,28 +272,26 @@
font-weight: 500; font-weight: 500;
> span { > span {
opacity: 0.5; opacity: 0.5;
margin-left:10px; margin-left: 10px;
} }
} }
.val { .val {
margin-top:10px; margin-top: 10px;
font-size: 14px; font-size: 14px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #ffffff;
position: relative; position: relative;
left:10px; left: 10px;
}
} }
} }
} }
} }
} }
.charts { }
height:180px; .charts {
height: 180px;
width: 100%; width: 100%;
} }
</style>
</style>

299
ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherWarning/components/infoWarning/index.vue

@ -1,149 +1,167 @@
<template> <template>
<div class='congestion'> <div class="congestion">
<WgtTitle :title="'气象预警信息'"></WgtTitle> <WgtTitle :title="'气象预警信息'"></WgtTitle>
<div class="board"> <div class="board">
<div class="weaterMain"> <div class="weaterMain">
<div class="weaterTitle"> <div class="weaterTitle">
<span class="text">当前气象预警信息数</span> <span class="text">当前气象预警信息数</span>
<span class="num">113</span> <span class="num">{{ warningData.length }}</span>
</div> </div>
<div> <div>
<el-select v-model="colorSelect" size="mini" class="selectRoad" placeholder="请选择"> <el-select
<el-option v-for="item in colors" :key="item.value" :label="item.label" :value="item.value"> v-model="colorSelect"
size="mini"
class="selectRoad"
placeholder="请选择"
>
<el-option
v-for="item in colors"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
</div> </div>
<div class="warningList"> <div class="warningList" v-if="warningList.length > 0">
<div class="itemWarning" v-for="(item, i) in warnings"> <div class="itemWarning" v-for="item in warningList">
<div class="left-w"> <div class="left-w">
<div class="left-row"> <div class="left-row">
<div class="label"> <div class="label">预警类型</div>
预警类型
</div>
<div class="value"> <div class="value">
{{ item.class }} {{ item.typeName }}
</div> </div>
</div> </div>
<div class="left-row"> <div class="left-row">
<div class="label"> <div class="label">预警等级</div>
预警等级 <div :class="item.severityColor">
</div> {{ item.severityColor }}
<div :class="'value ' + item.type"> {{
{{ item.lay }} item.severity == "Cancel"
? "取消"
: item.severity == "None"
? "无"
: item.severity == "Unknown"
? "未知"
: item.severity == "Standard"
? "标准"
: item.severity == "Minor"
? "次要"
: item.severity == "Moderate"
? "温和"
: item.severity == "Major"
? "主要"
: item.severity == "Severe"
? "严峻"
: item.severity == "Extreme"
? "极端"
: ""
}}
</div> </div>
</div> </div>
<div class="left-row"> <!-- <div class="left-row">
<div class="label"> <div class="label">预警范围</div>
预警范围
</div>
<div class="value"> <div class="value">
{{ item.scope }} {{ item.scope }}
</div> </div>
</div> </div> -->
<div class="left-row"> <div class="left-row">
<div class="label"> <div class="label">预警发布时间</div>
预警发布时间
</div>
<div class="value"> <div class="value">
{{ item.dateTime }} {{ item.pubTime }}
</div> </div>
</div> </div>
</div> </div>
<div class="right-w"> <div class="right-w">
<div class="right-row"> <div class="right-row">预警内容:</div>
预警内容:
</div>
<div class="right-text"> <div class="right-text">
{{ item.text }} {{ item.text }}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<Empty v-else text="暂无数据..."></Empty>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { color } from 'echarts'; import { color } from "echarts";
import WgtTitle from '../../../../../widgets/title' import WgtTitle from "../../../../../widgets/title";
import { getMeteorologicalEarlyWarning } from "@/api/perception/meteorologyCheck";
export default { export default {
name: 'infoWarning', name: "infoWarning",
components: { components: {
WgtTitle WgtTitle,
}, },
data() { data() {
return { return {
colorSelect: "org", warningList: [],
warningData: [
// { typeName: "warning", severityColor: "Red", severity: "Severe" },
// { typeName: "warning", severityColor: "White", severity: "" },
// { typeName: "warning", severityColor: "Blue", severity: "" },
],
colorSelect: "all",
colors: [ colors: [
{ label: '全部', value: "all" }, { label: "全部", value: "all" },
{ label: '橙色', value: "org" }, { label: "白色", value: "White" },
{ label: '红色', value: "red" }, { label: "蓝色", value: "Blue" },
{ label: '蓝色', value: "bule" }, { label: "绿色", value: "Green" },
{ label: "黄色", value: "Yellow" },
{ label: "橙色", value: "Orange" },
{ label: "红色", value: "Red" },
{ label: "黑色", value: "Black" },
], ],
warnings: [ };
{
type: "org",
class: "道路结冰",
lay: "橙色",
scope: "K100+000",
dateTime: "2023-12-31 13:00:00",
text: "威海市文登区气象台2023年12月21日7时30分将道路结冰黄色预警信号升级为道路结冰橙色预警信号:受降雪和低温影响,我区全部乡镇和街道仍有对交通有较大影响的道路结冰和积雪。请注意防范道路结冰对交通运输、室外作业、农业生产等带来的不利影响。"
},
{
type: "org",
class: "道路结冰",
lay: "橙色",
scope: "K100+000",
dateTime: "2023-12-31 13:00:00",
text: "威海市文登区气象台2023年12月21日7时30分将道路结冰黄色预警信号升级为道路结冰橙色预警信号:受降雪和低温影响,我区全部乡镇和街道仍有对交通有较大影响的道路结冰和积雪。请注意防范道路结冰对交通运输、室外作业、农业生产等带来的不利影响。"
},
{
type: "org",
class: "道路结冰",
lay: "橙色",
scope: "K100+000",
dateTime: "2023-12-31 13:00:00",
text: "威海市文登区气象台2023年12月21日7时30分将道路结冰黄色预警信号升级为道路结冰橙色预警信号:受降雪和低温影响,我区全部乡镇和街道仍有对交通有较大影响的道路结冰和积雪。请注意防范道路结冰对交通运输、室外作业、农业生产等带来的不利影响。"
}, },
{ watch: {
type: "org", colorSelect(val) {
class: "道路结冰", if (val !== "all") {
lay: "橙色", const data = this.warningData.filter(
scope: "K100+000", (item) => item.severityColor === val
dateTime: "2023-12-31 13:00:00", );
text: "威海市文登区气象台2023年12月21日7时30分将道路结冰黄色预警信号升级为道路结冰橙色预警信号:受降雪和低温影响,我区全部乡镇和街道仍有对交通有较大影响的道路结冰和积雪。请注意防范道路结冰对交通运输、室外作业、农业生产等带来的不利影响。" this.warningList = data;
this.warningList = data;
} else {
this.warningList = this.warningData;
} }
]
}
},
created() {
// this.changeValue(val);
}, },
},
created() {},
methods: { methods: {
selectItem(index) { getWarningData() {
this.selectIndex = index; getMeteorologicalEarlyWarning().then((res) => {
console.log("气象预警", res.data);
let data = [];
for (let key in res.data) {
if (res.data[key].length > 0) {
res.data[key].forEach((value) => {
data.push(value);
});
}
}
this.warningData = data;
this.warningList = this.warningData;
});
}, },
}, },
mounted() { mounted() {
this.getWarningData();
setTimeout(() => {
this.$nextTick(() => {
});
});
}, },
} };
</script> </script>
<style lang='scss' scoped> <style lang="scss" scoped>
.selectRoad { .selectRoad {
width: 89px; width: 89px;
margin-top: 5px; margin-top: 5px;
margin-left: 20px; margin-left: 20px;
border: 1px solid #00B3CC; border: 1px solid #00b3cc;
::v-deep { ::v-deep {
.el-input__inner { .el-input__inner {
@ -179,7 +197,7 @@ export default {
width: 100%; width: 100%;
height: calc(100% - 40px); height: calc(100% - 40px);
>div::after { > div::after {
content: ""; content: "";
top: 0; top: 0;
left: -3px; left: -3px;
@ -192,7 +210,7 @@ export default {
transform: rotate(-45deg); transform: rotate(-45deg);
} }
>div::before { > div::before {
content: ""; content: "";
bottom: 0; bottom: 0;
right: -3px; right: -3px;
@ -205,7 +223,7 @@ export default {
transform: rotate(135deg); transform: rotate(135deg);
} }
>div { > div {
position: relative; position: relative;
display: inline-flex; display: inline-flex;
width: 100%; width: 100%;
@ -214,15 +232,20 @@ export default {
border-radius: 2px 2px 2px 2px; border-radius: 2px 2px 2px 2px;
opacity: 1; opacity: 1;
border: 1px solid; border: 1px solid;
border-image: linear-gradient(360deg, rgba(55, 231, 255, 0.2), rgba(55, 231, 255, 0)) 1 1; border-image: linear-gradient(
360deg,
rgba(55, 231, 255, 0.2),
rgba(55, 231, 255, 0)
)
1 1;
margin-top: 20px; margin-top: 20px;
padding: 23px 29px; padding: 23px 29px;
font-size: 14px; font-size: 14px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #37E7FF; color: #37e7ff;
>.left-w { > .left-w {
display: inline-flex; display: inline-flex;
width: 40%; width: 40%;
height: 100%; height: 100%;
@ -235,7 +258,7 @@ export default {
height: 30px; height: 30px;
flex-direction: row; flex-direction: row;
>.value { > .value {
color: #fff; color: #fff;
} }
@ -244,13 +267,33 @@ export default {
margin-top: 2px; margin-top: 2px;
font-family: PangMenZhengDao; font-family: PangMenZhengDao;
font-weight: 400; font-weight: 400;
color: #F4A125 color: #f4a125;
}
.White {
color: #fff;
}
.Blue {
color: blue;
}
.Green {
color: green;
}
.Yellow {
color: yellow;
}
.Orange {
color: orange;
}
.Red {
color: red;
}
.Black {
color: #000;
} }
} }
} }
>.right-w { > .right-w {
margin-left: 30px; margin-left: 30px;
display: inline-flex; display: inline-flex;
width: 100%; width: 100%;
@ -265,7 +308,6 @@ export default {
color: #fff; color: #fff;
} }
} }
} }
} }
@ -275,13 +317,12 @@ export default {
width: 100%; width: 100%;
height: 40px; height: 40px;
.buttons { .buttons {
width: 100%; width: 100%;
height: 38px; height: 38px;
margin-left: 20px; margin-left: 20px;
>div { > div {
display: inline-flex; display: inline-flex;
width: 10%; width: 10%;
height: 35px; height: 35px;
@ -290,17 +331,21 @@ export default {
font-size: 12px; font-size: 12px;
font-family: PangMenZhengDao; font-family: PangMenZhengDao;
font-weight: 800; font-weight: 800;
color: #FFFFFF; color: #ffffff;
z-index: 9; z-index: 9;
} }
>div::after { > div::after {
content: ""; content: "";
position: absolute; position: absolute;
display: inline-flex; display: inline-flex;
width: 55px; width: 55px;
height: 36px; height: 36px;
background: linear-gradient(180deg, #6557D7 0%, rgba(101, 87, 216, 0) 100%); background: linear-gradient(
180deg,
#6557d7 0%,
rgba(101, 87, 216, 0) 100%
);
border-radius: 50%; border-radius: 50%;
opacity: 1; opacity: 1;
z-index: -1; z-index: -1;
@ -308,19 +353,35 @@ export default {
} }
.redSel::after { .redSel::after {
background: linear-gradient(180deg, #E73A14 0%, rgba(240, 92, 9, 0) 100%); background: linear-gradient(
180deg,
#e73a14 0%,
rgba(240, 92, 9, 0) 100%
);
} }
.yelSel::after { .yelSel::after {
background: linear-gradient(180deg, #FFFA79 0%, rgba(255, 208, 137, 0) 100%); background: linear-gradient(
180deg,
#fffa79 0%,
rgba(255, 208, 137, 0) 100%
);
} }
.bluSel::after { .bluSel::after {
background: linear-gradient(180deg, #121ADE 0%, rgba(40, 18, 228, 0) 100%); background: linear-gradient(
180deg,
#121ade 0%,
rgba(40, 18, 228, 0) 100%
);
} }
.orgSel::after { .orgSel::after {
background: linear-gradient(180deg, #FFA623 0%, rgba(255, 173, 53, 0) 100%); background: linear-gradient(
180deg,
#ffa623 0%,
rgba(255, 173, 53, 0) 100%
);
} }
} }
@ -331,7 +392,12 @@ export default {
left: 0px; left: 0px;
width: 100%; width: 100%;
height: 2px; height: 2px;
background: linear-gradient(90deg, rgba(189, 255, 246, 0) 0%, #BDFFF6 52%, rgba(189, 255, 246, 0) 100%); background: linear-gradient(
90deg,
rgba(189, 255, 246, 0) 0%,
#bdfff6 52%,
rgba(189, 255, 246, 0) 100%
);
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
opacity: 1; opacity: 1;
} }
@ -343,7 +409,12 @@ export default {
left: 0px; left: 0px;
width: 100%; width: 100%;
height: 2px; height: 2px;
background: linear-gradient(90deg, rgba(189, 255, 246, 0) 0%, #BDFFF6 52%, rgba(189, 255, 246, 0) 100%); background: linear-gradient(
90deg,
rgba(189, 255, 246, 0) 0%,
#bdfff6 52%,
rgba(189, 255, 246, 0) 100%
);
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
opacity: 1; opacity: 1;
} }
@ -353,23 +424,25 @@ export default {
display: inline-flex; display: inline-flex;
width: 287px; width: 287px;
height: 38px; height: 38px;
background: linear-gradient(269deg, rgba(55, 231, 255, 0) 6%, rgba(55, 231, 255, 0.6) 50%, rgba(55, 231, 255, 0) 92%); background: linear-gradient(
269deg,
rgba(55, 231, 255, 0) 6%,
rgba(55, 231, 255, 0.6) 50%,
rgba(55, 231, 255, 0) 92%
);
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
opacity: 1; opacity: 1;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-left: 30px; margin-left: 30px;
; > span.text {
>span.text {
display: inline-flex; display: inline-flex;
font-size: 16px; font-size: 16px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #ffffff;
} }
.num { .num {
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
@ -377,11 +450,10 @@ export default {
font-size: 20px; font-size: 20px;
font-family: PangMenZhengDao; font-family: PangMenZhengDao;
font-weight: 400; font-weight: 400;
color: #D9001B; color: #d9001b;
} }
} }
} }
} }
} }
@ -390,4 +462,3 @@ export default {
width: 100%; width: 100%;
} }
</style> </style>

107
ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/index.vue

@ -1,13 +1,13 @@
<template> <template>
<div class='TrafficFlow'> <div class="TrafficFlow">
<section class="content"> <section class="content">
<RoadNetwork class="content-l" /> <RoadNetwork class="content-l" />
<WeatherForecast class="content-l" /> <WeatherForecast class="content-l" style="margin-right: 0" />
</section> </section>
<section class="foot"> <section class="foot">
<el-tabs class="footTabs" v-model="activeName" @tab-click="changeTabs"> <el-tabs class="footTabs" v-model="activeName" @tab-click="changeTabs">
<el-tab-pane label="短临预报" name="first"> <el-tab-pane label="短临预报" name="first">
<div class="foot-shot" > <div class="foot-shot">
<SortFaceForecast /> <SortFaceForecast />
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -20,75 +20,72 @@
</el-tabs> </el-tabs>
</section> </section>
</div> </div>
</template> </template>
<script> <script>
import RoadNetwork from './components/roadNetwork'; import RoadNetwork from "./components/roadNetwork";
import WeatherForecast from './components/weatherForecast'; import WeatherForecast from "./components/weatherForecast";
import SortFaceForecast from './components/sortFaceForecast'; import SortFaceForecast from "./components/sortFaceForecast";
import WeatherInfoQuery from './components/weatherInfoQuery'; import WeatherInfoQuery from "./components/weatherInfoQuery";
import WeatherWarning from './components/weatherWarning'; import WeatherWarning from "./components/weatherWarning";
export default { export default {
name: 'MeteorologyCheck', name: "MeteorologyCheck",
components: { components: {
RoadNetwork, RoadNetwork,
WeatherForecast, WeatherForecast,
SortFaceForecast, SortFaceForecast,
WeatherInfoQuery, WeatherInfoQuery,
WeatherWarning WeatherWarning,
}, },
data(){ data() {
return { return {
activeName:"first" activeName: "first",
} };
}, },
methods:{ methods: {
changeTabs(){ changeTabs() {
this.$refs.infoQuery.resizeChart(); this.$refs.infoQuery.resizeChart();
} },
} },
};
} </script>
</script>
<style lang='scss' scoped>
::v-deep .el-tabs__item{ <style lang="scss" scoped>
::v-deep .el-tabs__item {
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
font-size: 16px; font-size: 16px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #ffffff;
min-width:128px; min-width: 128px;
position: relative; position: relative;
left:10px; left: 10px;
} }
::v-deep .el-tabs__active-bar { ::v-deep .el-tabs__active-bar {
min-width:128px; min-width: 128px;
} }
::v-deep .el-tabs__nav-wrap::after { ::v-deep .el-tabs__nav-wrap::after {
background-color: #133242; background-color: #133242;
opacity: 0.1; opacity: 0.1;
} }
.footTabs { .footTabs {
display: inline; display: inline;
width:99%; width: 100%;
}
}
.TrafficFlow { .TrafficFlow {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: relative; position: relative;
z-index: 6; z-index: 6;
color: white; color: white;
.head{ .head {
width: 98%; width: 98%;
margin: auto; margin: auto;
margin-top: 15px; margin-top: 15px;
@ -100,27 +97,25 @@
flex: 1; flex: 1;
pointer-events: none; pointer-events: none;
margin-top: 19px; margin-top: 19px;
>div { > div {
pointer-events: auto; pointer-events: auto;
} }
.content-l { .content-l {
width: calc(50%); width: calc(50%);
min-width:460px; min-width: 460px;
margin-right:20px; margin-right: 20px;
} }
.content-m { .content-m {
display: inline-flex; display: inline-flex;
flex-direction: column; flex-direction: column;
width: calc(100% / 4 ); width: calc(100% / 4);
margin-right:20px; margin-right: 20px;
.content-m-t { .content-m-t {
width:100%; width: 100%;
height:240px; height: 240px;
margin-bottom: 20px; margin-bottom: 20px;
} }
} }
@ -128,7 +123,7 @@
width: 49.4%; width: 49.4%;
} }
} }
.foot{ .foot {
width: 98%; width: 98%;
margin: auto; margin: auto;
display: flex; display: flex;
@ -136,13 +131,12 @@
flex: 1; flex: 1;
pointer-events: none; pointer-events: none;
margin-top: 8px; margin-top: 8px;
>div { > div {
pointer-events: auto; pointer-events: auto;
} }
.foot-w { .foot-w {
width:100%; width: 100%;
} }
.foot-l { .foot-l {
@ -155,6 +149,5 @@
width: 493px; width: 493px;
} }
} }
} }
</style> </style>

620
ruoyi-ui/src/views/event/event/dispatch.vue

File diff suppressed because it is too large
Loading…
Cancel
Save