Browse Source

Merge branch 'develop' of http://39.106.31.193:9211/mengff/jihe-hs into develop

wangqin
qingzhengli 1 year ago
parent
commit
5f8b9f2f27
  1. 32
      ruoyi-ui/src/api/perception/meteorologyCheck.js
  2. 15
      ruoyi-ui/src/assets/styles/JiHeExpressway.scss
  3. 181
      ruoyi-ui/src/main.js
  4. 8
      ruoyi-ui/src/utils/request.js
  5. 4
      ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue
  6. 94
      ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue
  7. 81
      ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue
  8. 35
      ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue
  9. 19
      ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue
  10. 54
      ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue
  11. 4
      ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue
  12. 2
      ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardTplPreview.vue
  13. 3
      ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js
  14. 70
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/index.vue
  15. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue
  16. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue
  17. 96
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue
  18. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
  19. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js
  20. 40
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue
  21. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue
  22. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue
  23. 16
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue
  24. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue
  25. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue
  26. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/data.js
  27. 13
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue
  28. 42
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue
  29. 27
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/progressBar.vue
  30. 321
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue
  31. 1304
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/sortFaceForecast/index.vue
  32. 525
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherForecast/index.vue
  33. 16
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherInfoQuery/components/TemperatureTrend/assets/charts.js
  34. 16
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherInfoQuery/components/visibilityTrends/assets/charts.js
  35. 755
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherWarning/components/infoWarning/index.vue
  36. 277
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/index.vue
  37. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/flowstate/assets/charts.js
  38. 39
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/flowstate/index.vue
  39. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/index.vue
  40. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js
  41. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js
  42. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js
  43. 3
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js
  44. 30
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/chartsRadar.js
  45. 147
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue
  46. 202
      ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue
  47. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue
  48. 4
      ruoyi-ui/src/views/JiHeExpressway/utils/enum.js
  49. 1108
      ruoyi-ui/src/views/event/event/dispatch.vue
  50. 4
      ruoyi-ui/vue.config.js

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",
});
}

15
ruoyi-ui/src/assets/styles/JiHeExpressway.scss

@ -1,14 +1,17 @@
.theme-jihe {
$lightBlue: #3de8ff;
$textColor: #f4f4f4;
$inputHeight: 26px;
color: $textColor;
.text-center{ text-align: center;}
.tc-lb{ color: $lightBlue;}
.el-tabs__item {
color: $textColor;
}
.el-form-item {
margin-bottom: 14px;
margin-bottom: 8px;
}
.el-form-item__label {
@ -47,11 +50,14 @@
// 多选框组
.el-checkbox-group {
// height: $inputHeight;
.el-checkbox__label {
color: $textColor;
padding-left: 6px;
}
.el-checkbox {
margin-right: 16px;
.el-checkbox__inner {
width: 20px;
height: 20px;
@ -92,12 +98,17 @@
color: #fff;
&.is-disabled {
color: #006a99;
color: #096d8c;
}
}
.el-input {
margin: 0;
.el-input__inner{
height: calc($inputHeight + 2px);
background-color: #096d8c;
padding:0 28px;
}
}
}
// 单选按钮

181
ruoyi-ui/src/main.js

@ -1,83 +1,90 @@
import Vue from 'vue'
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';
import Cookies from 'js-cookie'
import Element from 'element-ui'
import './assets/styles/element-variables.scss'
import './views/iot/css/iot.css'
import '@/assets/styles/index.scss' // global css
import '@/assets/styles/ruoyi.scss' // ruoyi css
import App from './App'
import store from './store'
import router from './router/routerCreater'
import directive from './directive' //directive
import plugins from './plugins' // plugins
import './assets/icon/iconfont.css' // 阿里巴巴icon
import './assets/icons' // icon
import './permission' // permission control
import { Socket } from './utils/socket'
import Vue from "vue";
import CollapseTransition from "element-ui/lib/transitions/collapse-transition";
import Cookies from "js-cookie";
import Element from "element-ui";
import "./assets/styles/element-variables.scss";
import "./views/iot/css/iot.css";
import "@/assets/styles/index.scss"; // global css
import "@/assets/styles/ruoyi.scss"; // ruoyi css
import App from "./App";
import store from "./store";
import router from "./router/routerCreater";
import directive from "./directive"; //directive
import plugins from "./plugins"; // plugins
import "./assets/icon/iconfont.css"; // 阿里巴巴icon
import "./assets/icons"; // icon
import "./permission"; // permission control
import { Socket } from "./utils/socket";
import { getDicts } from "@/api/system/dict/data";
import { getConfigKey } from "@/api/system/config";
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree, numberMul } from "@/utils/ruoyi";
import {
parseTime,
resetForm,
addDateRange,
selectDictLabel,
selectDictLabels,
handleTree,
numberMul,
} from "@/utils/ruoyi";
// 分页组件
import Pagination from "@/components/Pagination";
// 自定义表格工具组件
import RightToolbar from "@/components/RightToolbar"
import RightToolbar from "@/components/RightToolbar";
// 富文本组件
import Editor from "@/components/Editor"
import Editor from "@/components/Editor";
// 文件上传组件
import FileUpload from "@/components/FileUpload"
import FileUpload from "@/components/FileUpload";
// 图片上传组件
import ImageUpload from "@/components/ImageUpload"
import ImageUpload from "@/components/ImageUpload";
// 字典标签组件
import DictTag from '@/components/DictTag'
import DictTag from "@/components/DictTag";
// 头部标签组件
import VueMeta from 'vue-meta'
import VueMeta from "vue-meta";
// 字典数据组件
import DictData from '@/components/DictData'
import DictData from "@/components/DictData";
// 无缝滚动组件
import VueSeamlessScroll from 'vue-seamless-scroll'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
import VueSeamlessScroll from "vue-seamless-scroll";
import VueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/css/swiper.css";
//el-table无线滚动
// 事件弹窗组件
import eventDialog from '@/components/eventDialogTable/eventDialog.vue'
import eventDialogTable from '@/components/eventDialogTable'
import evtDialogOneThing from '@/components/eventDialogTable/evtDialogOneThing.vue'
import evtDialogVideo from '@/components/eventDialogTable/video.vue'
import eventDialog from "@/components/eventDialogTable/eventDialog.vue";
import eventDialogTable from "@/components/eventDialogTable";
import evtDialogOneThing from "@/components/eventDialogTable/evtDialogOneThing.vue";
import evtDialogVideo from "@/components/eventDialogTable/video.vue";
// 大屏适配
import dataV from '@jiaminghi/data-view'
import dataV from "@jiaminghi/data-view";
// 字典标签组件
// import reproductionImage from '@/components/reproductionImage'
// jQuery
import $ from 'jquery'
import preventClick from './api/clickOnceAtime'
import $ from "jquery";
import preventClick from "./api/clickOnceAtime";
// gisMap
// import gisMap from 'gis-map-tunnel'
// import gisMap from 'gis-map-admin'
import config from '../public/config'
import config from "../public/config";
import request from '../public/config'
import moment from 'moment'
window.moment = moment
import dayjs from "dayjs"
import request from "../public/config";
import moment from "moment";
window.moment = moment;
import dayjs from "dayjs";
//定义全局过滤器
Vue.filter('dateformat', function (dataStr, pattern = 'YYY-MM-DD HH:mm:ss') {
Vue.filter("dateformat", function (dataStr, pattern = "YYY-MM-DD HH:mm:ss") {
if (dataStr === null || dataStr === "") {
return "";
}
return moment(dataStr).format(pattern)
return moment(dataStr).format(pattern);
//filter两个参数 第一个是函数名,第二个是时间格式化处理的函数
//(函数里面的参数 第一个是传递的数据,第二个是需要转换的时间格式)
})
});
window.IS_TESTING = false;
if (process.env.NODE_ENV == 'development'){
if (process.env.NODE_ENV == "development") {
window.IS_TESTING = false;
}
@ -86,47 +93,45 @@ Vue.component("Empty", Empty);
// 全局方法挂载
Vue.prototype.dayjs = dayjs;
Vue.prototype.getDicts = getDicts
Vue.prototype.getConfigKey = getConfigKey
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.socket = Socket
Vue.prototype.numberMul = numberMul
// gis
Vue.prototype.$GlobalConfig = config.GlobalConfig
Vue.use(preventClick)
Vue.use(VueAwesomeSwiper)
Vue.use(dataV)
Vue.prototype.getDicts = getDicts;
Vue.prototype.getConfigKey = getConfigKey;
Vue.prototype.parseTime = parseTime;
Vue.prototype.resetForm = resetForm;
Vue.prototype.addDateRange = addDateRange;
Vue.prototype.selectDictLabel = selectDictLabel;
Vue.prototype.selectDictLabels = selectDictLabels;
Vue.prototype.handleTree = handleTree;
Vue.prototype.socket = Socket;
Vue.prototype.numberMul = numberMul;
// gis
Vue.prototype.$GlobalConfig = config.GlobalConfig;
Vue.use(preventClick);
Vue.use(VueAwesomeSwiper);
Vue.use(dataV);
// 全局组件挂载
Vue.component('DictTag', DictTag)
Vue.component('Pagination', Pagination)
Vue.component('RightToolbar', RightToolbar)
Vue.component('Editor', Editor)
Vue.component('FileUpload', FileUpload)
Vue.component('ImageUpload', ImageUpload)
Vue.component('VueSeamlessScroll', VueSeamlessScroll)
Vue.component('eventDialog', eventDialog)
Vue.component('eventDialogTable', eventDialogTable)
Vue.component('evtDialogOneThing', evtDialogOneThing)
Vue.component('evtDialogVideo', evtDialogVideo)
Vue.component(CollapseTransition.name, CollapseTransition)
Vue.component("DictTag", DictTag);
Vue.component("Pagination", Pagination);
Vue.component("RightToolbar", RightToolbar);
Vue.component("Editor", Editor);
Vue.component("FileUpload", FileUpload);
Vue.component("ImageUpload", ImageUpload);
Vue.component("VueSeamlessScroll", VueSeamlessScroll);
Vue.component("eventDialog", eventDialog);
Vue.component("eventDialogTable", eventDialogTable);
Vue.component("evtDialogOneThing", evtDialogOneThing);
Vue.component("evtDialogVideo", evtDialogVideo);
Vue.component(CollapseTransition.name, CollapseTransition);
// Vue.component('reproductionImage', reproductionImage)
Vue.use(directive)
Vue.use(plugins)
Vue.use(directive);
Vue.use(plugins);
// Vue.use(gisMap)
Vue.use(VueMeta)
DictData.install()
Vue.use(VueMeta);
DictData.install();
/**
* If you don't want to use mock-server
* you want to use MockJs for mock api
@ -137,14 +142,14 @@ DictData.install()
*/
Vue.use(Element, {
size: Cookies.get('size') || 'medium' // set element-ui default size
})
size: Cookies.get("size") || "medium", // set element-ui default size
});
Vue.config.productionTip = false
Vue.config.productionTip = false;
new Vue({
el: '#app',
el: "#app",
router,
store,
render: h => h(App)
})
render: (h) => h(App),
});

8
ruoyi-ui/src/utils/request.js

@ -141,6 +141,14 @@ service.interceptors.response.use(res => {
else if (message.includes("Request failed with status code")) {
message = "系统接口" + message.substr(message.length - 3) + "异常";
}
else if (message.includes("client_offline"))
{
message = "设备离线"
}
else if (message.includes("time_out"))
{
message = "连接超时"
}
Message({
message: message,
type: 'error',

4
ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue

@ -51,8 +51,8 @@ export default {
return this.scale
}
},
watch:{
headerHeight(){
watch: {
headerHeight() {
}
},
methods: {

94
ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue

@ -1,20 +1,37 @@
<template>
<div class='Descriptions keep-ratio' origin="left" :style="getStyle()">
<div class="item" v-for="(item, index) in getResolveList" :key="`${item.key || item.label}${index}`"
:style="[gridStyle(item, index), transformStyle(itemStyle)]">
<div class="text title" :style="{
...transformStyle(titleStyle),
width: labelWidth
}">
<div class="Descriptions keep-ratio" origin="left" :style="getStyle()">
<div
class="item"
v-for="(item, index) in getResolveList"
:key="`${item.key || item.label}${index}`"
:style="[gridStyle(item, index), transformStyle(itemStyle)]"
>
<div
class="text title"
:style="{
...transformStyle(titleStyle),
width: labelWidth,
}"
>
<p>
<slot :name="`title-${item.key || item.label}`" :data="item">
{{ item.label || '-' }}
{{ item.label || "-" }}
</slot>
</p>:
</p>
:
</div>
<ContentText :style="transformStyle(titleStyle)" class="content text" :data="data" :_config="item">
<ContentText
:style="transformStyle(titleStyle)"
class="content text"
:data="data"
:_config="item"
>
<template #default="{ value }">
<slot :name="`content-${item.key || item.label}`" :value="value" :data="item">
<slot
:name="`content-${item.key || item.label}`"
:value="value"
:data="item"
>
{{ value }}
</slot>
</template>
@ -24,18 +41,18 @@
</template>
<script>
import { getContent } from "@screen/components/FormConfig/utils/index.js"
import ContentText from "@screen/components/FormConfig/components/Text.vue"
import { getContent } from "@screen/components/FormConfig/utils/index.js";
import ContentText from "@screen/components/FormConfig/components/Text.vue";
export default {
name: 'Descriptions',
name: "Descriptions",
components: {
ContentText
ContentText,
},
props: {
data: {
type: Object,
default: () => ({})
default: () => ({}),
},
/**
* {
@ -47,74 +64,73 @@ export default {
*/
list: {
type: Array,
default: () => []
default: () => [],
},
column: {
type: String,
default: "2"
default: "2",
},
labelWidth: String,
titleStyle: {
type: [String, Object],
default: null
default: null,
},
contentStyle: {
type: [String, Object],
default: null
default: null,
},
itemStyle: {
type: [String, Object],
default: null
}
default: null,
},
},
computed: {
gridStyle() {
return (item, index) => ({
gridRow: `span ${item.gridRow || 1}`,
gridColumn: `span ${item.gridColumn || 1}`,
})
});
},
getText() {
return (item) => getContent(this.data, item)
return (item) => getContent(this.data, item);
},
getResolveList() {
return this.list.reduce((prev, data) => {
if (typeof data.visible === 'function') {
if (typeof data.visible === "function") {
if (!data.visible(data)) return prev;
}
prev.push(data);
return prev
}, [])
}
return prev;
}, []);
},
},
methods: {
getStyle() {
return {
gridTemplateColumns: `repeat(${this.column}, 1fr)`,
}
};
},
getComponent(type) {
return `Form${type.replace(/^[a-z]/, word => word.toUpperCase())}`
return `Form${type.replace(/^[a-z]/, (word) => word.toUpperCase())}`;
},
transformStyle(style) {
if (typeof style != 'string') return style;
if (typeof style != "string") return style;
return style.split(';').reduce((prev, cur) => {
return style.split(";").reduce((prev, cur) => {
const [key, value] = cur.split(":");
prev[key] = value;
return prev;
}, {});
}
}
}
},
},
};
</script>
<style lang='scss' scoped>
<style lang="scss" scoped>
.Descriptions {
display: grid;
gap: 9px;
@ -123,7 +139,7 @@ export default {
font-size: 15px;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #FFF;
color: #fff;
line-height: 18px;
gap: 3px;
display: flex;
@ -135,7 +151,7 @@ export default {
gap: 6px;
.title {
color: #3DE8FF;
color: #3de8ff;
p {
width: 100%;

81
ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue

@ -1,22 +1,38 @@
<template>
<Teleport>
<Transition name="fade">
<div :class="['mask-layer', { 'none-mask': noneMask }]" v-if="modelVisible">
<BackgroundClip class='dialog'
<div
:class="['mask-layer', { 'none-mask': noneMask }]"
v-if="modelVisible"
>
<BackgroundClip
class="dialog"
clipPath="polygon(calc(100% - var(--clip-width)) 0, 100% var(--clip-width), 100% 100%, var(--clip-width) 100%, 0 calc(100% - var(--clip-width)), 0 0)"
borderColor="linear-gradient(180deg, rgba(78, 174, 204, .9), rgba(78, 174, 204, 0))"
bgColor="linear-gradient(180deg, rgba(14, 69, 92, 0.9) 0%, rgba(20, 89, 119, 0.9) 100%)" ref="DialogContentRef">
bgColor="linear-gradient(180deg, rgba(14, 69, 92, 0.9) 0%, rgba(20, 89, 119, 0.9) 100%)"
ref="DialogContentRef"
>
<div class="dialog-title">
<img class="title-icon" src="@screen/images/dialog/title-icon.svg" />
<img
class="title-icon"
src="@screen/images/dialog/title-icon.svg"
/>
<span>{{ title }}</span>
<img class="icon-close" @click.stop="modelVisible = false" src="@screen/images/dialog/icon-close.svg" />
<img
class="icon-close"
@click.stop="modelVisible = false"
src="@screen/images/dialog/icon-close.svg"
/>
</div>
<div class="dialog-content">
<slot />
</div>
<img class="bottom-right" src="@screen/images/dialog/right-bottom.svg">
<img
class="bottom-right"
src="@screen/images/dialog/right-bottom.svg"
/>
<div class="footer" v-if="$slots.footer">
<slot name="footer"></slot>
@ -28,71 +44,74 @@
</template>
<script>
import Teleport from '../Teleport.vue';
import Teleport from "../Teleport.vue";
import BackgroundClip from "@screen/components/Decorations/BackgroundClip.vue";
import { moveable, stopPropagation } from "./utils"
import { moveable, stopPropagation } from "./utils";
export default {
components: {
Teleport,
BackgroundClip
BackgroundClip,
},
model: {
prop: 'visible',
event: "update:value"
prop: "visible",
event: "update:value",
},
name: 'Dialog',
name: "Dialog",
props: {
title: {
type: String
type: String,
},
visible: Boolean,
noneMask: {
type: Boolean,
default: false
}
default: false,
},
},
watch: {
visible: {
deep: true,
handler(bool) {
this.$nextTick(() => {
if (!bool) return this.destroyMoveable?.()
if (!bool) return this.destroyMoveable?.();
const container = this.$refs.DialogContentRef.$el;
this.destroyMoveable = moveable(container, { target: container.querySelector(".dialog-title") });
this.destroyMoveable = moveable(container, {
target: container.querySelector(".dialog-title"),
});
stopPropagation(container.querySelector(".dialog-title").lastChild)
stopPropagation(container.querySelector(".dialog-title").lastChild);
this.$once("hook:beforeDestroy", () => this.destroyMoveable?.());
})
}
}
});
},
},
},
computed: {
modelVisible: {
get() {
return this.visible
return this.visible;
},
set(val) {
this.$emit('update:value', val)
}
}
console.log("val", val);
this.$emit("update:value", val);
},
},
},
beforeDestroy() {
this.modelVisible = false;
},
}
};
</script>
<style lang='scss' scoped>
<style lang="scss" scoped>
.mask-layer {
position: fixed;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .36);
background: rgba(0, 0, 0, 0.36);
border-radius: 0px 0px 0px 0px;
z-index: 100;
display: flex;
@ -111,7 +130,7 @@ export default {
.fade-enter-active,
.fade-leave-active {
transition: opacity .24s;
transition: opacity 0.24s;
}
.fade-enter,
@ -165,7 +184,7 @@ export default {
.dialog-content {
padding: 9px 21px 27px 21px;
max-height: 90vh;
max-height: 75vh;
overflow-y: auto;
}
@ -185,7 +204,7 @@ export default {
padding: 0 27px;
::v-deep {
>div {
> div {
min-width: 96px;
}
}

35
ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue

@ -1,5 +1,6 @@
<template>
<div class="from-content" style="width: 100%">
<!-- <div ref="mask" style="position: fixed; z-index: 9999999; left: 0; top:0; bottom: 0; right: 0; background: rgba(0, 0, 0, 0.5);" @click.prevent="onClickMask" v-if="visible"></div> -->
<ElPopover
ref="PopoverRef"
placement="bottom"
@ -21,19 +22,20 @@
style="width: 100%"
v-model="value"
:placeholder="placeholder"
clearable
@change="handleSearch"
></ElInput>
<img src="./search.svg" v-show="!disable" @click="visible = !visible" />
></ElInput>
<img src="./search.svg" v-show="!disable" @click="onOpenPop" />
</div>
<div
class="InputSearch"
v-else
slot="reference"
ref="ReferenceInputRef"
@click="visible = !visible"
@click="onOpenPop"
>
<span>{{ placeholder }}</span>
<img src="./search.svg" />
<img src="./search.svg"/>
</div>
<div style="width: 100%; max-height: 360px" v-show="visible">
@ -104,6 +106,7 @@ export default {
},
data() {
return {
isClickedBtn: false,
visible: false,
types: this.type,
value: "",
@ -125,15 +128,33 @@ export default {
};
},
},
mounted(){
// document.getElementById("app")
document.addEventListener("click" , ()=>{
if(!this.isClickedBtn){
setTimeout(() => {
this.visible = false;
}, 100)
}
this.isClickedBtn = false;
} , false)
},
methods: {
onOpenPop(){
this.isClickedBtn = true;
this.visible = !this.visible;
},
onClickMask(){
this.visible = false;
},
handleShow() {
if (this.width) return;
this.width = this.$refs.ReferenceInputRef.getBoundingClientRect().width;
},
handleResetForm() {
this.visible = true;
// this.visible = true;
this.$refs.FormConfigRef?.reset();
this.$refs.FormConfigRef.$refs.ElFormRef.resetFields();
// this.$refs.PopoverRef.doClose();
@ -144,7 +165,7 @@ export default {
"reset"
);
},
async handleSearch() {
async handleSearch(value) {
if (this.types === "input") {
let params = {};
params[this.params] = this.value;
@ -172,7 +193,7 @@ export default {
console.log("catch");
});
}
},
}
},
};
</script>

19
ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue

@ -2,8 +2,14 @@
<BorderRadiusImage class='RoadStateCard' borderRadius="2px"
borderColor="linear-gradient(360deg, rgba(55, 231, 255, 0.3), rgba(55, 231, 255, 0))" borderWidth="2px">
<div class="left">
<img :src="(cardData.pictures ? cardData.pictures[0] : null) || require(`./test.png`)">
<!-- <img :src="(cardData.pictures ? cardData.pictures[0] : null) || require(`./test.png`)"> -->
<!-- <img :src="require(`./test.png`)"> -->
<ElImage style="width: 212px; height: 159px;" :src="cardData.pictures ? cardData.pictures[0] : null"
:preview-src-list="cardData.pictures || []">
<div slot="error">
<i class="el-icon-picture-outline icon"></i>
</div>
</ElImage>
</div>
<div class="right">
<div class="info">
@ -23,7 +29,7 @@
</div>
</div>
<img v-if="cardData.state" class="status" :src="require(`./images/${statusMap[cardData.state]}.svg`)" />
<img v-if="cardData.state" class="status" :src="require(`./images/${statusMap[cardData.state]}.svg`) " />
</BorderRadiusImage>
</template>
@ -135,6 +141,15 @@ export default {
width: 212px;
height: 159px;
}
.icon {
display:inline-block;
width: 212px;
height: 159px;
line-height: 157px;
text-align: center;
border: 1px solid #fff;
}
}
.right {

54
ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardInfoEditor.vue

@ -101,6 +101,7 @@
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
v-if="+(item.dictValue.replace('px',''))<=maxFontSize"
>
</el-option>
</el-select>
@ -191,6 +192,7 @@ import { debounce } from "lodash";
export default {
data() {
return {
maxFontSize:100,
alignmentNum: 2,
content: "",
boardWidth: "",
@ -316,6 +318,17 @@ export default {
speechSpeed: "0",
font: "3",
},
templateDefault: {
category: "",
formatStyle: "2",
content: "",
fontColor: "",
fontSize: "",
fontType: "",
stopTime: 50,
inScreenMode: "",
screenSize: "",
},
isLocked: false,
};
},
@ -361,6 +374,26 @@ export default {
},
},
watch: {
screenSize(newV){
if(newV){
let boardH = newV.split("*")[1];
let fontSize = "20";
if (['64', '48'].includes(boardH)) {
this.maxFontSize = +boardH
fontSize = boardH + ""
} else if (['80'].includes(boardH)) {
this.maxFontSize = +boardH / 2
fontSize = +boardH / 2 + ""
} else if (['160'].includes(boardH)) {
this.maxFontSize = +boardH / 2
fontSize = +boardH / 4 + ""
}
this.deviceCttDefault.fontSize = fontSize
this.templateDefault.screenSize = newV;
this.templateDefault.fontSize = fontSize;
}
},
visible: {
handler(newV) {
this.dialogVisible = newV;
@ -400,21 +433,30 @@ export default {
},
mounted() {},
created() {
this.templateDefault.fontType = this.fontTypeList[0].dictValue //
this.getDicts("iot_devices_font_color").then((res) => {
this.colorList = res.data;
this.templateDefault.fontColor = this.colorList[0].dictValue
// console.log(this.colorList, "");
});
this.getDicts("iot_device_font_inScreen_mode").then((res) => {
this.inScreenModeList = res.data;
this.templateDefault.inScreenMode = this.inScreenModeList[0].dictValue
// console.log(this.inScreenModeList, "");
});
this.getDicts("iot_template_category").then((res) => {
this.templateCategoryList = res.data;
this.templateDefault.category = this.templateCategoryList[0].dictValue
});
this.getDicts("iot_device_font_size").then((res) => {
this.fontSizeList = res.data;
// this.templateDefault.fontSize = this.fontSizeList[0].dictValue
// this.dataForm.FONT_SIZE = res.data[1].dictValue
});
},
methods: {
initData() {
@ -433,17 +475,7 @@ export default {
if (this.mode == "add") {
let tempTpl = null;
if (this.type == "template") {
tempTpl = {
category: this.templateCategoryList[0].dictValue,
formatStyle: 0,
content: "",
fontColor: this.colorList[0].dictValue,
fontSize: this.fontSizeList[0].dictValue,
fontType: this.fontTypeList[0].dictValue,
stopTime: 50,
inScreenMode: this.inScreenModeList[0].dictValue,
screenSize: this.screenSize,
};
tempTpl = _.merge({}, this.templateDefault, this.tpl);
} else {
tempTpl = _.merge({}, this.deviceCttDefault, this.tpl.origin); //
}

4
ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue

@ -40,7 +40,7 @@ export default {
},
tpl:{
handler(newV){
this.contentArr = this.tpl.textContent.replaceAll(/\\\\n/g, '\n').replaceAll(/ /g, '&nbsp').split('\n');
this.contentArr = this.tpl.textContent.replaceAll(/\\\\n/g, '\n').replaceAll(/\\=/g, '=').replaceAll(/\\,/g, ',').replaceAll(/ /g, '&nbsp').split('\n');
this.setStyle();
},
deep:true,
@ -113,6 +113,8 @@ export default {
color: #f00;
line-height: 1;
margin-bottom: 0;
word-break: keep-all;
white-space: nowrap;
}
}
}

2
ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardTplPreview.vue

@ -110,6 +110,8 @@ export default {
color: #f00;
line-height: 1;
margin-bottom: 0;
word-break: keep-all;
white-space: nowrap;
}
}
}

3
ruoyi-ui/src/views/JiHeExpressway/mixins/InfoBoard.js

@ -11,13 +11,14 @@ export default{
// 新增待下发
____onAddDeviceItem() {
let arr = this.selectedSize.split("*");
this.editDialog = {
visible: true,
mode: "add",
type: "device",
tpl: {
"textContent": "",
origin: {
"origin": {
displayAreaWidth: +arr[0],
displayAreaHeight: +arr[1]
}

70
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/FatigueWakesUp/index.vue

@ -2,42 +2,56 @@
<Dialog v-model="obverseVisible" title="疲劳唤醒弹窗">
<div class="FatigueWakesUp">
<Video class="video-stream" :pileNum="dialogData.stakeMark" />
<Descriptions labelWidth="72px" :list="list" :data="data" style="gap: 18px" />
<ElTabs v-model="activeName" @tab-click="handleClickTabs" class="tabs">
<ElTabPane label="基本信息" name="first">
<Descriptions
labelWidth="72px"
:list="list"
:data="data"
style="gap: 18px"
/>
</ElTabPane>
<ElTabPane label="设备参数" name="second">设备参数</ElTabPane>
<ElTabPane label="在线率统计" name="third">在线率统计</ElTabPane>
</ElTabs>
</div>
<template #footer>
<Button @click.native="deviceControlVisible = true">设备操作</Button>
</template>
<DeviceControlDialog v-model="deviceControlVisible" :deviceId="dialogData.iotDeviceId" />
<DeviceControlDialog
v-model="deviceControlVisible"
:deviceId="dialogData.iotDeviceId"
/>
</Dialog>
</template>
<script>
import Dialog from "@screen/components/Dialog/index.vue";
import Descriptions from '@screen/components/Descriptions.vue';
import Button from "@screen/components/Buttons/Button.vue"
import Descriptions from "@screen/components/Descriptions.vue";
import Button from "@screen/components/Buttons/Button.vue";
// import { getRoadInfoByStakeMark, getProduct } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js"
import Video from "@screen/components/Video"
import DeviceControlDialog from "./components/DeviceControlDialog.vue"
import Video from "@screen/components/Video";
import DeviceControlDialog from "./components/DeviceControlDialog.vue";
import request from "@/utils/request";
import { dialogDelayVisible } from "./../mixin"
import { dialogDelayVisible } from "./../mixin";
//
export default {
name: 'FatigueWakesUp',
name: "FatigueWakesUp",
mixins: [dialogDelayVisible],
components: {
Dialog,
Descriptions,
Video,
DeviceControlDialog,
Button
Button,
},
data() {
return {
activeName: "first",
deviceControlVisible: false,
data: {
deviceType: "行车诱导",
@ -49,52 +63,52 @@ export default {
},
list: [
{
label: '设备名称',
label: "设备名称",
key: "deviceName",
},
{
label: '设备桩号',
label: "设备桩号",
key: "stakeMark",
},
{
label: '道路名称',
label: "道路名称",
key: "roadName",
},
{
label: '设备方向',
label: "设备方向",
key: "direction",
enum: "CameraDirectionEnum"
enum: "CameraDirectionEnum",
},
{
label: '设备状态',
label: "设备状态",
key: "deviceState",
enum: "DeviceTypeEnum"
enum: "DeviceTypeEnum",
},
{
label: '设备厂商',
label: "设备厂商",
key: "brand",
},
]
}
],
};
},
async created() {
this.data = { ...this.dialogData };
getProduct(this.dialogData.productId)
.then(data => {
this.dialogData.brand = data.brand;
})
getProduct(this.dialogData.productId).then((data) => {
this.dialogData.brand = data.brand;
});
const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark);
if (roadInfo) this.data.roadName = roadInfo.roadName;
},
methods: {
}
}
handleClickTabs() {},
},
};
</script>
<style lang='scss' scoped>
<style lang="scss" scoped>
.FatigueWakesUp {
width: 420px;
color: #fff;
@ -130,7 +144,7 @@ export default {
align-items: center;
justify-content: end;
>div {
> div {
font-size: 16px;
padding: 6px 12px;
}

4
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue

@ -129,8 +129,8 @@ export default {
methods: {
async handleSwitcherChange(value, data) {
data.state = value;
const isContinue = await confirm({ message: "是否要删除该辖段信息?" })
let op = ["关闭", "开启"][+data.state];
const isContinue = await confirm({ message: `${op}该支路?` })
.catch(() => {
data.state = !value;
});

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/TrafficIncidents/index.vue

@ -132,7 +132,7 @@ export default {
if (code != 200) return;
this.data = { ...data, ...this.data };
console.log(data);
console.log('trafficIncidents',data);
})
.catch((err) => {});
},

96
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFilter/index.vue

@ -1,24 +1,38 @@
<template>
<div class='HomeFilter'>
<ElPopover trigger="manual" :value="activeIcon === 'filter'" :visibleArrow="false" placement="left"
popper-class="global-input-search-popover">
<Button :class="['btn', { 'btn-active': activeIcon }]" slot="reference" @click.native="handleClick('filter')">
<img src="@screen/images/home-filter/filter.svg">
<div class="HomeFilter">
<ElPopover
trigger="manual"
:value="activeIcon === 'filter'"
:visibleArrow="false"
placement="left"
popper-class="global-input-search-popover"
>
<Button
:class="['btn', { 'btn-active': activeIcon }]"
slot="reference"
@click.native="handleClick('filter')"
>
<img src="@screen/images/home-filter/filter.svg" />
</Button>
<div class="body">
<div class="title">
设备筛选
</div>
<Form labelWidth="90px" column="1" class="form" ref="FormConfigRef" :formList="formList" />
<div class="title">设备筛选</div>
<Form
labelWidth="90px"
column="1"
class="form"
ref="FormConfigRef"
:formList="formList"
/>
<div class="footer">
<Button style="background-color: rgba(0, 179, 204, .3);" @click.native="handleResetForm">
<Button
style="background-color: rgba(0, 179, 204, 0.3)"
@click.native="handleResetForm"
>
重置
</Button>
<Button @click.native="handleSearch">
搜索
</Button>
<Button @click.native="handleSearch"> 搜索 </Button>
</div>
</div>
</ElPopover>
@ -26,17 +40,18 @@
</template>
<script>
import Button from '@screen/components/Buttons/Button.vue';
import Form from '@screen/components/FormConfig';
import Button from "@screen/components/Buttons/Button.vue";
import Form from "@screen/components/FormConfig";
import * as PresetFormItems from "@screen/common/PresetFormItems.js";
import { merge, cloneDeep } from "lodash"
import { merge, cloneDeep } from "lodash";
import request from "@/utils/request";
import { log } from "mathjs";
export default {
name: 'HomeFilter',
name: "HomeFilter",
components: {
Button,
Form
Form,
},
data() {
return {
@ -49,7 +64,7 @@ export default {
key: "deviceType",
type: "select",
options: {
options: []
options: [],
},
// visible: data => {
// if (data.searchType == 1) {
@ -57,29 +72,32 @@ export default {
// }
// },
},
]
}
],
};
},
methods: {
handleClick(type) {
console.log("type: ", type);
this.activeIcon = this.activeIcon === type ? null : type;
console.log("this.activeIcon", this.activeIcon);
},
filterEnd(data) {
this.activeIcon = null;
// this.filterData = data;
this.$parent.$refs.RoadAndEventsRef?.setFilterData?.(data);
},
async handleResetForm() {
this.$refs.FormConfigRef?.reset();
this.filterEnd(null)
this.activeIcon = "filter";
this.filterEnd(null);
},
async handleSearch() {
const data = await this.$refs.FormConfigRef.validate();
if (!data.startStakeMark[0] || !data.startStakeMark[1]) delete data.startStakeMark;
if (!data.endStakeMark[0] || !data.endStakeMark[1]) delete data.endStakeMark;
this.filterEnd(data)
if (!data.startStakeMark[0] || !data.startStakeMark[1])
delete data.startStakeMark;
if (!data.endStakeMark[0] || !data.endStakeMark[1])
delete data.endStakeMark;
this.activeIcon = null;
this.filterEnd(data);
},
async getDeviceTypeOptions() {
// try {
@ -90,15 +108,15 @@ export default {
// });
// } catch (e) { console.error(e); }
// return ;
}
},
},
async created() {
// await this.getDeviceTypeOptions();
}
}
},
};
</script>
<style lang='scss'>
<style lang="scss">
div.el-popper.global-input-search-popover {
background: rgba(6, 66, 88, 0.8);
border: 1px solid rgba(42, 217, 253, 0.6);
@ -108,23 +126,25 @@ div.el-popper.global-input-search-popover {
.body {
.title {
background: linear-gradient(90deg, #237E9B 0%, rgba(23, 145, 184, 0) 100%);
background: linear-gradient(
90deg,
#237e9b 0%,
rgba(23, 145, 184, 0) 100%
);
padding: 3px 9px;
position: absolute;
top: 0;
left: 0;
width: 100%;
}
}
}
</style>
<style lang='scss' scoped>
<style lang="scss" scoped>
.HomeFilter {
.btn {
padding: 9px;
background: linear-gradient(180deg, #152E3C 0%, #163A45 100%);
background: linear-gradient(180deg, #152e3c 0%, #163a45 100%);
border-radius: 4px;
overflow: hidden;
height: unset;
@ -132,7 +152,7 @@ div.el-popper.global-input-search-popover {
}
.btn-active {
background: linear-gradient(180deg, #005C79 0%, #009BCC 100%);
background: linear-gradient(180deg, #005c79 0%, #009bcc 100%);
}
}
</style>

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js

@ -230,7 +230,7 @@ export const eventMap = {
iconClass: "el-icon-loading",
});
}
const data = await getPerceiveEventList()
const data = await getPerceiveEventList({warningState: 1})
.then(async (data) => {
await delay(600);
return data;

4
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js

@ -297,12 +297,12 @@ export function getEventTopicList(eventType) {
* 感知事件根据类型获取
* @param {number} eventType
*/
export function getPerceiveEventList() {
export function getPerceiveEventList(data = {}) {
return new Promise((resolve, reject) => {
request({
url: `/perceivedEvents/warning/perceivedEventsList`,
method: "POST",
data: {},
data: {...data},
})
.then(({ code, rows }) => {
if (code != 200) {

40
ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue

@ -1,6 +1,9 @@
<template>
<div class='Home'>
<AMapContainer ref="AMapContainerRef" @update:isGisCompleted="(data) => { this.isGisCompleted = data; }" />
<div class="Home">
<AMapContainer ref="AMapContainerRef" @update:isGisCompleted="(data) => {
this.isGisCompleted = data;
}
" />
<section class="content">
<!-- 左侧 -->
<div class="content-l">
@ -25,7 +28,7 @@
<footer class="footer card-menu">
<div class="footer-title">
<span>济菏高速缩略图</span>
<i class="el-icon-s-fold" style="color: #2AD9FD; transform: rotate(-90deg);" @click.stop="handleShrink" />
<i class="el-icon-s-fold" style="color: #2ad9fd; transform: rotate(-90deg)" @click.stop="handleShrink" />
</div>
<div class="footer-content">
<Thumbnail />
@ -48,7 +51,7 @@ import Button from '@screen/components/Buttons/Button.vue';
// import InfoBoard from "./components/InfoBoard"
export default {
name: 'Home',
name: "Home",
components: {
FocusedMonitoring,
ConditionStatistics,
@ -66,34 +69,37 @@ export default {
isShowInfoBoard: false,
selectedDevice: null,
isGisCompleted: false,
}
};
},
provide() {
return {
getMap: () => this.$refs.AMapContainerRef.getMapInstance()
}
getMap: () => this.$refs.AMapContainerRef.getMapInstance(),
};
},
methods: {
handleShrink(e) {
const translateXElement = e.target.parentElement.parentElement;
const result = (e.target.style.transform.match(/[-0-9]+/)?.[0] || -90) * -1
const result =
(e.target.style.transform.match(/[-0-9]+/)?.[0] || -90) * -1;
e.target.style.transform = `rotate(${result}deg)`;
if (translateXElement.style.transform !== `translateY(calc(100% - 36px))`) {
translateXElement.style.transform = `translateY(calc(100% - 36px))`
if (
translateXElement.style.transform !== `translateY(calc(100% - 36px))`
) {
translateXElement.style.transform = `translateY(calc(100% - 36px))`;
translateXElement.style.position = `absolute`;
translateXElement.style.bottom = `0px`;
} else {
translateXElement.style.transform = `translateY(0)`
translateXElement.style.transform = `translateY(0)`;
translateXElement.style.position = `relative`;
}
}
}
}
},
},
};
</script>
<style lang='scss' scoped>
<style lang="scss" scoped>
.Home {
height: 100%;
z-index: 6;
@ -104,7 +110,7 @@ export default {
justify-content: center;
.card-menu {
transition: all .24s linear;
transition: all 0.24s linear;
}
.content {
@ -202,7 +208,7 @@ export default {
}
i {
transition: all .24s linear;
transition: all 0.24s linear;
cursor: pointer;
}

5
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue

@ -39,9 +39,9 @@
</div>
<template #footer>
<Button style="padding: 0 24px;" @click.native="submitTable">确认</Button>
<Button :style="{ backgroundColor: '#C9C9C9', padding: '0 24px' }" @click.native="modelVisible = false">
取消</Button>
<Button style="padding: 0 24px;" @click.native="submitTable">确认</Button>
</template>
</Dialog>
</template>
@ -235,7 +235,8 @@ export default {
display: flex;
gap: 9px;
width: 836px;
height: 768px;
// height: 768px;
min-height: 500px;
margin-top: 20px;
flex-direction: column;

5
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue

@ -47,9 +47,9 @@
</div>
<template #footer>
<Button style="padding: 0 24px;" @click.native="submitTable">确认</Button>
<Button :style="{ backgroundColor: '#C9C9C9', padding: '0 24px' }" @click.native="modelVisible = false">
取消</Button>
<Button style="padding: 0 24px;" @click.native="submitTable">确认</Button>
</template>
</Dialog>
</template>
@ -276,7 +276,8 @@ export default {
display: flex;
gap: 9px;
width: 836px;
height: 768px;
min-height: 500px;
// height: 768px;
flex-direction: column;
.video-pic {

16
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue

@ -8,13 +8,13 @@
<Transition name="fade">
<Form class="form" ref="FormConfigRef" :formList="formConfig.list" v-bind="getFormOptions" labelWidth="120px" />
</Transition>
<div class="footer">
<Button style="padding:0 24px;" @click.native="handleSubmit" :loading="submitting">保存</Button>
<Button style="background: #C9C9C9;padding:0 24px;"
@click.native="modelVisible = false, submitting = false">取消</Button>
</div>
</div>
<template #footer>
<Button style="background: #C9C9C9;padding:0 24px;"
@click.native="modelVisible = false, submitting = false">取消</Button>
<Button style="padding:0 24px;" @click.native="handleSubmit" :loading="submitting">保存</Button>
</template>
</Dialog>
</template>
@ -195,7 +195,7 @@ export default {
Message.error("提交失败");
}).finally(() => {
this.submitting = false;
this.$emit('queryData',true);
this.$emit('queryData', true);
})
})
@ -219,7 +219,7 @@ export default {
.EventDetailDialog {
gap: 9px;
width: 1050px;
height: 810px;
// height: 810px;
display: flex;
flex-direction: column;

6
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue

@ -359,8 +359,8 @@ export default {
data.visibility = otherConfig.visibility;
data.pictures = otherConfig.pictures || [];
// data.videoList = otherConfig.videoList || []
data.videoList = otherConfig.videoList || ['https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4']
data.videoList = otherConfig.videoList || []
// data.videoList = otherConfig.videoList || ['https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4']
}
this.detailDialogFormData = data;
@ -377,7 +377,7 @@ export default {
let data = result.data;
data.stringDirection = gzDirectionMapping[data.direction] || data.direction;
data.videoList = ['https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4'];
data.videoList = [];
if (data.otherConfig) {
let otherConfig = JSON.parse(data.otherConfig);
// data.pictures = otherConfig.pictures || [];

5
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/auditAnalytics/StatsDialogVisible/index.vue

@ -1,5 +1,6 @@
<template>
<Dialog v-model="modelVisible" title="收费站管制统计" style="width: 100%">
{{ modelVisible }}
<div class="search">
<InputSearch
:formList="searchFormList"
@ -379,9 +380,7 @@ export default {
});
this.searchFormList[2].options.options = dataList;
this.facilityIds = res[0].value.data.map((item) => item.id);
this.searchFormList[2].default = res[0].value.data.map(
(item) => item.id
);
this.searchFormList[2].default = dataList.map((item) => item.key);
console.log(56, this.searchFormList[2].default);
let currentMonth = moment().format("YYYY-MM");
let currentDate = moment().format("YYYY-MM-DD");

5
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/data.js

@ -29,6 +29,10 @@ export const searchFormList = [
key: "time",
required: true,
type: "datePicker",
default: [
moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"),
],
options: {
format: "yyyy-MM-dd",
type: "daterange",
@ -39,6 +43,7 @@ export const searchFormList = [
key: "type",
required: true,
type: "select",
default: "1",
options: {
options: [
{

13
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue

@ -202,8 +202,7 @@ export default {
initData() {
this.startTime = moment().startOf("month").format("YYYY-MM-DD HH:mm:ss");
this.time = moment().format("YYYY-MM-DD HH:mm:ss");
this.typeQuery = searchFormList[1].options.options[0].value;
console.log(8888, this.startTime, this.time, this.typeQuery);
this.typeQuery = this.searchFormList[1].options.options[0].value;
clearInterval(this.interval);
if (this.activeName == "first") {
this.initDevice();
@ -247,8 +246,8 @@ export default {
handleSearch(data) {
console.log(777, data);
this.typeQuery = data.type;
this.startTime = this.formatDate(data.time[0]);
this.time = this.formatDate(data.time[1]);
this.startTime = moment(data.time[0]).format("YYYY-MM-DD HH:mm:ss");
this.time = moment(data.time[1]).format("YYYY-MM-DD HH:mm:ss");
let typeText =
this.searchFormList[1].options.options[this.typeQuery - 1].label;
this.searchText = `${moment(this.startTime).format(
@ -259,7 +258,6 @@ export default {
},
changeTabs() {
this.initData();
console.log("======================", this.queryChart);
this.$nextTick(() => {
this.queryChart.resize();
});
@ -414,8 +412,9 @@ export default {
});
},
},
mounted() {
this.initData();
async mounted() {
console.log("__________________", searchFormList[0].default);
await this.initData();
},
};
</script>

42
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue

@ -1,12 +1,13 @@
<template>
<div class="congestion">
<div class="board">
<ProgressBar class="keep-ratio" @selectItem="selectProgress" :dataList="dataList" :selectIndex="selectIndex" />
<ProgressBar class="keep-ratio" @selectItem="selectProgress" :dataList="dataList" :selectIndex="selectIndex"
:reset="reset" />
<div class="searchPanel">
<RadioGroup :options="[
{ key: '1', label: '菏泽' },
{ key: '3', label: '济南' },
]" v-model="direction" type="button" />
{ key: '1', label: '菏泽' },
{ key: '3', label: '济南' },
]" v-model="direction" type="button" />
<el-select v-model="type" size="mini" class="selectRoad" placeholder="请选择" @change="changeType">
<el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value">
</el-option>
@ -18,15 +19,16 @@
</el-select>
<el-date-picker size="mini" v-if="type != 'quarter'" class="selectRoad" v-model="dateTime" style="width: 140px"
:type="type == 'date'
? 'date'
: type == 'month'
? 'month'
: type == 'year'
? 'year'
: ''
" placeholder="请选择" :clearable="false" />
<el-button type="primary" size="mini" class="btnSearch" @click="searchQuery" icon="el-icon-search">查询</el-button>
? 'date'
: type == 'month'
? 'month'
: type == 'year'
? 'year'
: ''
" placeholder="请选择" :clearable="false" />
<el-button type="primary" size="mini" class="btnSearch" @click="searchQuery"
icon="el-icon-search">查询</el-button>
<el-button class="btnReset" size="mini" icon="el-icon-refresh-left" @click="onReset">重置</el-button>
</div>
</div>
@ -149,8 +151,9 @@ export default {
dateTime: "2024",
direction: "1",
dataList: [],
selectIndex: 2,
selectId: 2,
selectIndex: 1,
selectId: 1,
reset: false,
type: "year",
chart1List: [],
chart2List: [],
@ -206,16 +209,17 @@ export default {
selectProgress(item, index) {
this.selectIndex = index;
this.selectId = item.id;
this.reset = false;
this.searchQuery();
},
onReset() {
this.direction = "1";
this.type = "year";
this.dateTime = "2024";
this.selectId = this.dataList[0].id;
this.selectId = 2;
this.selectIndex = 2;
this.searchQuery()
this.selectId = 1;
this.selectIndex = 1;
this.reset = true;
this.searchQuery();
},
searchQuery() {
let startTime = "";

27
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/progressBar.vue

@ -3,9 +3,9 @@
<div>
<!-- :style="{ width: dataList.length * 300 }" -->
<div :class="selectIndex == index ?
(selectLine < 1 ? 'item action Abefore' : 'item action Aafter') :
(selectIndex + selectLine == index ?
(selectLine < 1 ? 'item action Aafter' : 'item action Abefore') : 'item')"
(selectLine < 1 ? 'item action Abefore' : 'item action Aafter') :
(selectIndex + selectLine == index ?
(selectLine < 1 ? 'item action Aafter' : 'item action Abefore') : 'item')"
v-for="(item, index) in dataList" :key="index">
<i class="after" v-if="index === 0"></i>
<i class="after" v-else @click="selectItem(index, -1, dataList[index - 1])"></i>
@ -19,7 +19,7 @@
</div>
</div>
</template>
<script>
export default {
@ -36,6 +36,10 @@ export default {
selectIndex: {
type: Number,
default: 1
},
reset: {
type: Boolean,
default: false
}
},
data() {
@ -46,6 +50,16 @@ export default {
},
created() {
},
watch: {
reset: {
handler(newV) {
if (newV) {
this.selectLine = -1;
}
},
immediate: true,
},
},
methods: {
selectItem(index, num, item) {
@ -60,7 +74,7 @@ export default {
},
}
</script>
<style lang='scss' scoped>
.congestion {
width: 100%;
@ -204,5 +218,4 @@ export default {
}
}
}
</style>
</style>

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

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

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

File diff suppressed because it is too large

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

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

16
ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherInfoQuery/components/TemperatureTrend/assets/charts.js

@ -6,10 +6,10 @@ var options = {
},
color: "#FFD15C",
grid: {
left: "2%",
right: "5%",
bottom: "10%",
top: "10%",
left: "0",
right: "0",
bottom: "0",
top: "30px",
containLabel: true,
},
legend: {
@ -72,14 +72,12 @@ var options = {
],
},
yAxis: {
name: "℃ ",
type: "value",
min: 0,
max: 40,
minInterval: 1,
nameTextStyle: {
fontSize: 10,
fontSize: 12,
color: "#fff",
align: "center",
align: "right",
},
splitLine: {
lineStyle: {

16
ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/weatherInfoQuery/components/visibilityTrends/assets/charts.js

@ -11,10 +11,10 @@ var options = {
// },
},
grid: {
left: "2%",
right: "5%",
bottom: "10%",
top: "10%",
left: "0",
right: "0",
bottom: "0",
top: "30px",
containLabel: true,
},
legend: {
@ -75,15 +75,13 @@ var options = {
],
},
yAxis: {
name: "M ",
type: "value",
min: 0,
max: 40,
minInterval: 5,
splitNumber: 5,
nameTextStyle: {
fontSize: 12,
color: "#BDD8FB",
align: "center",
color: "#fff",
align: "right",
},
splitLine: {
lineStyle: {

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

@ -1,393 +1,464 @@
<template>
<div class='congestion'>
<WgtTitle :title="'气象预警信息'"></WgtTitle>
<div class="board">
<div class="weaterMain">
<div class="weaterTitle">
<span class="text">当前气象预警信息数</span>
<span class="num">113</span>
</div>
<div>
<el-select 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-select>
</div>
<div class="congestion">
<WgtTitle :title="'气象预警信息'"></WgtTitle>
<div class="board">
<div class="weaterMain">
<div class="weaterTitle">
<span class="text">当前气象预警信息数</span>
<span class="num">{{ warningData.length }}</span>
</div>
<div>
<el-select
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-select>
</div>
</div>
<div class="warningList" v-if="warningList.length > 0">
<div class="itemWarning" v-for="item in warningList">
<div class="left-w">
<div class="left-row">
<div class="label">预警类型</div>
<div class="value">
{{ item.typeName }}
</div>
</div>
<div class="left-row">
<div class="label">预警等级</div>
<div :class="item.severityColor">
{{ item.severityColor }}
{{
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 class="warningList">
<div class="itemWarning" v-for="(item, i) in warnings">
<div class="left-w">
<div class="left-row">
<div class="label">
预警类型
</div>
<div class="value">
{{ item.class }}
</div>
</div>
<div class="left-row">
<div class="label">
预警等级
</div>
<div :class="'value ' + item.type">
{{ item.lay }}
</div>
</div>
<div class="left-row">
<div class="label">
预警范围
</div>
<div class="value">
{{ item.scope }}
</div>
</div>
<div class="left-row">
<div class="label">
预警发布时间
</div>
<div class="value">
{{ item.dateTime }}
</div>
</div>
</div>
<div class="right-w">
<div class="right-row">
预警内容:
</div>
<div class="right-text">
{{ item.text }}
</div>
</div>
</div>
<!-- <div class="left-row">
<div class="label">预警范围</div>
<div class="value">
{{ item.scope }}
</div>
</div> -->
<div class="left-row">
<div class="label">预警发布时间</div>
<div class="value">
{{ item.pubTime }}
</div>
</div>
</div>
<div class="right-w">
<div class="right-row">预警内容:</div>
<div class="right-text">
{{ item.text }}
</div>
</div>
</div>
</div>
<Empty v-else text="暂无数据..."></Empty>
</div>
</div>
</template>
<script>
import { color } from 'echarts';
import WgtTitle from '../../../../../widgets/title'
import { color } from "echarts";
import WgtTitle from "../../../../../widgets/title";
import { getMeteorologicalEarlyWarning } from "@/api/perception/meteorologyCheck";
export default {
name: 'infoWarning',
components: {
WgtTitle
name: "infoWarning",
components: {
WgtTitle,
},
data() {
return {
warningList: [],
warningData: [
// { typeName: "warning", severityColor: "Red", severity: "Severe" },
// { typeName: "warning", severityColor: "White", severity: "" },
// { typeName: "warning", severityColor: "Blue", severity: "" },
],
colorSelect: "all",
colors: [
{ label: "全部", value: "all" },
{ label: "白色", value: "White" },
{ label: "蓝色", value: "Blue" },
{ label: "绿色", value: "Green" },
{ label: "黄色", value: "Yellow" },
{ label: "橙色", value: "Orange" },
{ label: "红色", value: "Red" },
{ label: "黑色", value: "Black" },
],
};
},
watch: {
colorSelect(val) {
if (val !== "all") {
const data = this.warningData.filter(
(item) => item.severityColor === val
);
this.warningList = data;
this.warningList = data;
} else {
this.warningList = this.warningData;
}
// this.changeValue(val);
},
data() {
return {
colorSelect: "org",
colors: [
{ label: '全部', value: "all" },
{ label: '橙色', value: "org" },
{ label: '红色', value: "red" },
{ label: '蓝色', value: "bule" },
],
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分将道路结冰黄色预警信号升级为道路结冰橙色预警信号:受降雪和低温影响,我区全部乡镇和街道仍有对交通有较大影响的道路结冰和积雪。请注意防范道路结冰对交通运输、室外作业、农业生产等带来的不利影响。"
},
{
type: "org",
class: "道路结冰",
lay: "橙色",
scope: "K100+000",
dateTime: "2023-12-31 13:00:00",
text: "威海市文登区气象台2023年12月21日7时30分将道路结冰黄色预警信号升级为道路结冰橙色预警信号:受降雪和低温影响,我区全部乡镇和街道仍有对交通有较大影响的道路结冰和积雪。请注意防范道路结冰对交通运输、室外作业、农业生产等带来的不利影响。"
}
]
}
},
created() {
},
methods: {
selectItem(index) {
this.selectIndex = index;
},
},
mounted() {
setTimeout(() => {
this.$nextTick(() => {
},
created() {},
methods: {
getWarningData() {
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() {
this.getWarningData();
},
};
</script>
<style lang='scss' scoped>
.selectRoad {
width: 89px;
margin-top: 5px;
margin-left: 20px;
border: 1px solid #00B3CC;
::v-deep {
.el-input__inner {
background-color: #064258 !important;
border-width: 0px !important;
}
<style lang="scss" scoped>
.selectRoad {
width: 89px;
margin-top: 5px;
margin-left: 20px;
border: 1px solid #00b3cc;
::v-deep {
.el-input__inner {
background-color: #064258 !important;
border-width: 0px !important;
}
}
}
.congestion {
display: inline-flex;
display: inline-flex;
width: 100%;
height: 600px;
flex-direction: column;
width: 100%;
height: 100%;
.board {
height: 690px;
width: 100%;
height: 600px;
padding: 0px 0px;
border-radius: 5px 5px 5px 5px;
opacity: 1;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: column;
width: 100%;
height: 100%;
.board {
height: 690px;
margin-top: 20px;
.warningList {
display: inline-flex;
flex-direction: column;
width: 100%;
height: calc(100% - 40px);
> div::after {
content: "";
top: 0;
left: -3px;
position: absolute;
width: 0;
height: 0;
border-right: 6px solid transparent;
border-left: 6px solid transparent;
border-bottom: 6px solid rgba(55, 231, 255, 1);
transform: rotate(-45deg);
}
> div::before {
content: "";
bottom: 0;
right: -3px;
position: absolute;
width: 0;
height: 0;
border-right: 6px solid transparent;
border-left: 6px solid transparent;
border-bottom: 6px solid rgba(55, 231, 255, 1);
transform: rotate(135deg);
}
> div {
position: relative;
display: inline-flex;
width: 100%;
padding: 0px 0px;
border-radius: 5px 5px 5px 5px;
height: 138px;
background: #133242;
border-radius: 2px 2px 2px 2px;
opacity: 1;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: column;
border: 1px solid;
border-image: linear-gradient(
360deg,
rgba(55, 231, 255, 0.2),
rgba(55, 231, 255, 0)
)
1 1;
margin-top: 20px;
.warningList {
padding: 23px 29px;
font-size: 14px;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #37e7ff;
> .left-w {
display: inline-flex;
width: 40%;
height: 100%;
flex-direction: column;
.left-row {
margin: 2px;
display: inline-flex;
flex-direction: column;
width: 100%;
height: calc(100% - 40px);
height: 30px;
flex-direction: row;
>div::after {
content: "";
top: 0;
left: -3px;
position: absolute;
width: 0;
height: 0;
border-right: 6px solid transparent;
border-left: 6px solid transparent;
border-bottom: 6px solid rgba(55, 231, 255, 1);
transform: rotate(-45deg);
> .value {
color: #fff;
}
>div::before {
content: "";
bottom: 0;
right: -3px;
position: absolute;
width: 0;
height: 0;
border-right: 6px solid transparent;
border-left: 6px solid transparent;
border-bottom: 6px solid rgba(55, 231, 255, 1);
transform: rotate(135deg);
.org {
font-size: 14px !important;
margin-top: 2px;
font-family: PangMenZhengDao;
font-weight: 400;
color: #f4a125;
}
>div {
position: relative;
display: inline-flex;
width: 100%;
height: 138px;
background: #133242;
border-radius: 2px 2px 2px 2px;
opacity: 1;
border: 1px solid;
border-image: linear-gradient(360deg, rgba(55, 231, 255, 0.2), rgba(55, 231, 255, 0)) 1 1;
margin-top: 20px;
padding: 23px 29px;
font-size: 14px;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #37E7FF;
>.left-w {
display: inline-flex;
width: 40%;
height: 100%;
flex-direction: column;
.left-row {
margin: 2px;
display: inline-flex;
width: 100%;
height: 30px;
flex-direction: row;
>.value {
color: #fff;
}
.org {
font-size: 14px !important;
margin-top: 2px;
font-family: PangMenZhengDao;
font-weight: 400;
color: #F4A125
}
}
}
>.right-w {
margin-left: 30px;
display: inline-flex;
width: 100%;
height: 100%;
flex-direction: column;
.right-row {
margin-bottom: 10px;
}
.right-text {
color: #fff;
}
}
.White {
color: #fff;
}
.Blue {
color: blue;
}
.Green {
color: green;
}
.Yellow {
color: yellow;
}
.Orange {
color: orange;
}
.Red {
color: red;
}
.Black {
color: #000;
}
}
}
.weaterMain {
display: inline-flex;
flex-direction: row;
width: 100%;
height: 40px;
> .right-w {
margin-left: 30px;
display: inline-flex;
width: 100%;
height: 100%;
flex-direction: column;
.right-row {
margin-bottom: 10px;
}
.buttons {
width: 100%;
height: 38px;
margin-left: 20px;
>div {
display: inline-flex;
width: 10%;
height: 35px;
justify-content: center;
align-items: center;
font-size: 12px;
font-family: PangMenZhengDao;
font-weight: 800;
color: #FFFFFF;
z-index: 9;
}
>div::after {
content: "";
position: absolute;
display: inline-flex;
width: 55px;
height: 36px;
background: linear-gradient(180deg, #6557D7 0%, rgba(101, 87, 216, 0) 100%);
border-radius: 50%;
opacity: 1;
z-index: -1;
cursor: pointer;
}
.redSel::after {
background: linear-gradient(180deg, #E73A14 0%, rgba(240, 92, 9, 0) 100%);
}
.right-text {
color: #fff;
}
}
}
}
.yelSel::after {
background: linear-gradient(180deg, #FFFA79 0%, rgba(255, 208, 137, 0) 100%);
}
.weaterMain {
display: inline-flex;
flex-direction: row;
width: 100%;
height: 40px;
.bluSel::after {
background: linear-gradient(180deg, #121ADE 0%, rgba(40, 18, 228, 0) 100%);
}
.buttons {
width: 100%;
height: 38px;
margin-left: 20px;
> div {
display: inline-flex;
width: 10%;
height: 35px;
justify-content: center;
align-items: center;
font-size: 12px;
font-family: PangMenZhengDao;
font-weight: 800;
color: #ffffff;
z-index: 9;
}
.orgSel::after {
background: linear-gradient(180deg, #FFA623 0%, rgba(255, 173, 53, 0) 100%);
}
}
> div::after {
content: "";
position: absolute;
display: inline-flex;
width: 55px;
height: 36px;
background: linear-gradient(
180deg,
#6557d7 0%,
rgba(101, 87, 216, 0) 100%
);
border-radius: 50%;
opacity: 1;
z-index: -1;
cursor: pointer;
}
.weaterTitle::after {
content: "";
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 2px;
background: linear-gradient(90deg, rgba(189, 255, 246, 0) 0%, #BDFFF6 52%, rgba(189, 255, 246, 0) 100%);
border-radius: 0px 0px 0px 0px;
opacity: 1;
}
.redSel::after {
background: linear-gradient(
180deg,
#e73a14 0%,
rgba(240, 92, 9, 0) 100%
);
}
.weaterTitle::before {
content: "";
position: absolute;
top: 38px;
left: 0px;
width: 100%;
height: 2px;
background: linear-gradient(90deg, rgba(189, 255, 246, 0) 0%, #BDFFF6 52%, rgba(189, 255, 246, 0) 100%);
border-radius: 0px 0px 0px 0px;
opacity: 1;
}
.yelSel::after {
background: linear-gradient(
180deg,
#fffa79 0%,
rgba(255, 208, 137, 0) 100%
);
}
.weaterTitle {
position: relative;
display: inline-flex;
width: 287px;
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%);
border-radius: 0px 0px 0px 0px;
opacity: 1;
justify-content: center;
align-items: center;
margin-left: 30px;
;
.bluSel::after {
background: linear-gradient(
180deg,
#121ade 0%,
rgba(40, 18, 228, 0) 100%
);
}
>span.text {
display: inline-flex;
font-size: 16px;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #FFFFFF;
}
.orgSel::after {
background: linear-gradient(
180deg,
#ffa623 0%,
rgba(255, 173, 53, 0) 100%
);
}
}
.weaterTitle::after {
content: "";
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 2px;
background: linear-gradient(
90deg,
rgba(189, 255, 246, 0) 0%,
#bdfff6 52%,
rgba(189, 255, 246, 0) 100%
);
border-radius: 0px 0px 0px 0px;
opacity: 1;
}
.num {
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 20px;
font-family: PangMenZhengDao;
font-weight: 400;
color: #D9001B;
}
}
.weaterTitle::before {
content: "";
position: absolute;
top: 38px;
left: 0px;
width: 100%;
height: 2px;
background: linear-gradient(
90deg,
rgba(189, 255, 246, 0) 0%,
#bdfff6 52%,
rgba(189, 255, 246, 0) 100%
);
border-radius: 0px 0px 0px 0px;
opacity: 1;
}
.weaterTitle {
position: relative;
display: inline-flex;
width: 287px;
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%
);
border-radius: 0px 0px 0px 0px;
opacity: 1;
justify-content: center;
align-items: center;
margin-left: 30px;
> span.text {
display: inline-flex;
font-size: 16px;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #ffffff;
}
.num {
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 20px;
font-family: PangMenZhengDao;
font-weight: 400;
color: #d9001b;
}
}
}
}
}
.charts {
height: 180px;
width: 100%;
height: 180px;
width: 100%;
}
</style>

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

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

6
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/flowstate/assets/charts.js

@ -9,7 +9,11 @@ var options = {
""
)}<br/>${params[0].marker}${
params[0].seriesName
}: <span style="font-weight:bold;"> ${params[0].value} </span>`;
}: <span style="font-weight:bold;"> ${params[0].value} </span><br/>${
params[1].marker
}${params[1].seriesName}: <span style="font-weight:bold;"> ${
params[1].value
} </span>`;
},
},
axisPointer: {

39
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/flowstate/index.vue

@ -1,47 +1,42 @@
<template>
<div class='flowstate'>
<div class="flowstate">
<WgtTitle :title="'全路车流量状况'"></WgtTitle>
<div class="board">
<div class="tag1">方向济南</div>
<div class="tag2">方向菏泽</div>
<div class="charts keep-ratio " id="flowStateEchartBox"></div>
<div class="charts keep-ratio" id="flowStateEchartBox"></div>
</div>
</div>
</template>
<script>
import WgtTitle from '../../../widgets/title'
import WgtTitle from "../../../widgets/title";
import * as echarts from "echarts";
import chartsStatistics from "./assets/charts";
export default {
name: 'Flowstate',
name: "Flowstate",
components: {
WgtTitle
WgtTitle,
},
data() {
return {
}
return {};
},
mounted() {
setTimeout(() => {
this.$nextTick(() => {
var myChart = echarts.init(document.getElementById('flowStateEchartBox'));
var myChart = echarts.init(
document.getElementById("flowStateEchartBox")
);
myChart.setOption(chartsStatistics);
});
});
},
created() {
},
methods: {
}
}
created() {},
methods: {},
};
</script>
<style lang='scss' scoped>
<style lang="scss" scoped>
.flowstate {
width: 100%;
@ -53,11 +48,15 @@ export default {
border-radius: 5px 5px 5px 5px;
opacity: 1;
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;
justify-content: space-between;
align-items: center;
}
.charts {

1
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/index.vue

@ -6,7 +6,6 @@
<!-- 在途车流量车型分类 -->
<!-- 全路段拥堵状况 -->
<Congestion class="content-l"></Congestion>
<!-- 畅通率 -->
<!-- <Unblocked class="content-m" /> -->
<!-- 全路车流量状况 -->

5
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js

@ -11,6 +11,9 @@ var options = {
tooltip: {
show: true,
trigger: "axis",
valueFormatter: function (value) {
return value + " 指标";
},
},
xAxis: {
type: "category",
@ -44,7 +47,7 @@ var options = {
},
yAxis: {
type: "value",
name: '(指标)',
name: "(指标)",
nameTextStyle: {
color: "#fff",
fontSize: 10,

5
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js

@ -11,6 +11,9 @@ var options = {
tooltip: {
show: true,
trigger: "axis",
valueFormatter: function (value) {
return value + " 指标";
},
},
xAxis: {
type: "category",
@ -44,7 +47,7 @@ var options = {
},
yAxis: {
type: "value",
name: '(指标)',
name: "(指标)",
nameTextStyle: {
color: "#fff",
fontSize: 10,

5
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js

@ -4,6 +4,9 @@ var options = {
tooltip: {
show: true,
trigger: "axis",
valueFormatter: function (value) {
return value + " 指标";
},
},
grid: {
left: "2px",
@ -45,7 +48,7 @@ var options = {
},
yAxis: {
type: "value",
name: '(指标)',
name: "(指标)",
nameTextStyle: {
color: "#fff",
fontSize: 10,

3
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js

@ -62,6 +62,9 @@ var options = {
tooltip: {
show: true,
trigger: "axis",
valueFormatter: function (value) {
return value + " 指标";
},
},
legend: {
// orient: 'vertical',

30
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/chartsRadar.js

@ -1,14 +1,22 @@
import * as echarts from "echarts";
window.radarData = { 交通特征: 9, 拥挤度: 8, 饱和度: 5 };
let options = {
legend: {
show: false,
},
tooltip: {
trigger: "item",
formatter: function (params) {
let data = params.data;
return `<span style="width:60px;display:inline-block">交通特征:</span> <span style="font-weight: bold;"> ${data.value[0]} 指标</span><br><span style="width:60px;display:inline-block">拥挤度: </span><span style="font-weight: bold;"> ${data.value[1]} 指标</span><br><span style="width:60px;display:inline-block">饱和度:</span> <span style="font-weight: bold;"> ${data.value[2]} 指标</span>`;
},
},
radar: [
{
indicator: [
{ text: "Indicator1" },
{ text: "Indicator2" },
{ text: "Indicator3" },
{ name: "交通特征", max: 10 },
{ name: "拥挤度", max: 10 },
{ name: "饱和度", max: 10 },
],
center: ["50%", "55%"],
radius: 70,
@ -16,8 +24,10 @@ let options = {
splitNumber: 4,
shape: "circle",
axisName: {
formatter: "{value}",
color: "#428BD4",
formatter: function (value) {
return value + " " + (radarData[value] / 10) * 100 + "%";
},
color: "#fff",
},
splitArea: {
areaStyle: {
@ -45,8 +55,8 @@ let options = {
},
data: [
{
value: [1, 5, 1],
name: "Data B",
value: [9, 8, 5],
name: "月指标",
areaStyle: {
color: {
type: "linear",
@ -56,12 +66,12 @@ let options = {
y2: 1,
colorStops: [
{
offset: 0.1,
offset: 0,
color: "#DC6A00", // 0% 处的颜色
},
{
offset: 0.5,
color: "#5D887C", // 100% 处的颜色
color: "#5D887C", // 50% 处的颜色
},
{
offset: 1,

147
ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue

@ -33,87 +33,38 @@
<el-button type="primary" size="mini" class="btnSearch" icon="el-icon-search">查询</el-button>
<el-button class="btnReset" size="mini" icon="el-icon-refresh-left" >重置</el-button>
</div> -->
<ProgressBar
:dataList="dataList"
class="keep-ratio progressbar"
:selectIndex="7"
/>
<ProgressBar :dataList="dataList" class="keep-ratio progressbar" :selectIndex="7" />
<div class="body">
<div class="body-l">
<div class="searchPanel_1">
<!-- <el-from ref="form"> -->
<RadioGroup
:options="[
{ key: '1', label: '菏泽' },
{ key: '3', label: '济南' },
]"
v-model="direction"
type="button"
/>
<el-select
v-model="type"
size="mini"
class="selectRoad"
placeholder="请选择"
>
<el-option
v-for="item in typeOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
<RadioGroup :options="[
{ key: '1', label: '菏泽' },
{ key: '3', label: '济南' },
]" v-model="direction" type="button" />
<el-select v-model="type" size="mini" class="selectRoad" placeholder="请选择">
<el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
<el-select
v-model="quarter"
size="medium"
v-if="type == '3'"
class="selectRoad-medium"
placeholder="请选择"
>
<el-option
v-for="item in quarterOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
<el-select v-model="quarter" size="medium" v-if="type == '3'" class="selectRoad-medium" placeholder="请选择">
<el-option v-for="item in quarterOptions" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
<!-- <el-quarter-picker size="mini" class="selectRoad" style="width:180px;" v-if="type == '3'" v-model="dateTime"
aria-placeholder="请选季度" /> -->
<el-date-picker
size="mini"
v-if="type != '3'"
class="selectRoad"
v-model="dateTime"
style="width: 140px"
:type="
type == 1
? 'date'
: type == 2
? 'month'
: type == 4
? 'year'
: ''
"
placeholder="请选择"
/>
<el-button
type="primary"
size="mini"
class="btnSearch"
@click="searchQuery"
icon="el-icon-search"
>查询</el-button
>
<el-button
class="btnReset"
size="mini"
icon="el-icon-refresh-left"
@click="handleClear"
>重置</el-button
>
<el-date-picker size="mini" v-if="type != '3'" class="selectRoad" v-model="dateTime" style="width: 140px"
:type="type == 1
? 'date'
: type == 2
? 'month'
: type == 4
? 'year'
: ''
" placeholder="请选择" />
<el-button type="primary" size="mini" class="btnSearch" @click="searchQuery"
icon="el-icon-search">查询</el-button>
<el-button class="btnReset" size="mini" icon="el-icon-refresh-left" @click="handleClear">重置</el-button>
<!-- </el-from> -->
</div>
<!-- <div class="searchPanel_1">
@ -138,7 +89,7 @@
<div class="chartOrg">
<div class="itemChart">
<div class="title">上月指标</div>
<div id="chart2" class="keep-ratio"></div>
<div id="chart2" class=""></div>
</div>
<div class="itemChart">
<div class="title">本月指标</div>
@ -338,7 +289,7 @@ export default {
};
},
created() {},
created() { },
methods: {},
mounted() {
setTimeout(() => {
@ -358,46 +309,60 @@ export default {
canvas.height = parentDiv.offsetHeight;
parentDiv.appendChild(canvas);
const context = canvas.getContext("2d");
context.lineWidth = 1; // 线
//
var gr = context.createLinearGradient(247, 63, 450, 0);
var gr = context.createLinearGradient(140, 0, 180, 0);
//
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
context.lineWidth = 1; // 线
//
drawRoundRect(context, 300, 78, 160, 24, 12, gr);
drawRoundRect(context, 98, 1, 90, 22, 12, gr);
var gr = context.createLinearGradient(240, 63, 450, 0);
var gr = context.createLinearGradient(35, 0, 75, 0);
//
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
drawRoundRect(context, 300, 148, 160, 24, 12, gr);
drawRoundRect(context, -1, 136, 80, 20, 12, gr);
var gr = context.createLinearGradient(240, 63, 450, 0);
var gr = context.createLinearGradient(230, 0, 275, 0);
//
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
drawRoundRect(context, 300, 218, 160, 24, 12, gr);
context.lineWidth = 1; // 线
drawRoundRect(context, 211, 136, 220, 20, 12, gr);
var gr = context.createLinearGradient(400, 63, 450, 0);
const domMap3 = document.getElementById("chart3");
let parentDiv3 = domMap3.firstChild;
// canvas
let canvas3 = document.createElement("canvas");
canvas3.width = parentDiv3.offsetWidth;
canvas3.height = parentDiv3.offsetHeight;
parentDiv3.appendChild(canvas3);
const context3 = canvas3.getContext("2d");
context3.lineWidth = 1; // 线
//
var gr = context3.createLinearGradient(140, 0, 180, 0);
//
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
//
drawRoundRect(context3, 98, 4, 90, 20, 12, gr);
drawRoundRect(context, 460, 78, 160, 24, 12, gr);
var gr = context.createLinearGradient(350, 63, 450, 0);
var gr = context3.createLinearGradient(35, 0, 75, 0);
//
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
drawRoundRect(context, 460, 148, 160, 24, 12, gr);
var gr = context.createLinearGradient(300, 63, 450, 0);
drawRoundRect(context3, -1, 138, 80, 20, 12, gr);
var gr = context3.createLinearGradient(240, 0, 290, 0);
//
gr.addColorStop(1, "rgba(92,197,255,0)");
gr.addColorStop(0, "rgba(92,197,255,0.5)");
drawRoundRect(context, 460, 218, 160, 24, 12, gr);
context3.lineWidth = 1; // 线
drawRoundRect(context3, 211, 138, 220, 20, 12, gr);
});
});
},
@ -420,7 +385,7 @@ export default {
width: 100%;
font-size: 14px;
> div {
>div {
display: inline-flex;
flex-direction: column;
height: 100%;
@ -436,7 +401,7 @@ export default {
.chartOrg {
flex-direction: row !important;
> div {
>div {
display: inline-flex;
flex-direction: column;
width: 50%;
@ -444,7 +409,7 @@ export default {
}
.itemChart {
> .title {
>.title {
display: inline-flex;
width: 100%;
height: 30px;

202
ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue

@ -10,28 +10,63 @@
<!-- </div> -->
<WgtTitle :title="'情报板列表'"></WgtTitle>
<el-form
ref="form"
:model="form"
class="partCon"
style="display: flex; flex-direction: column"
:model="form"
class="formSearch" size="mini"
>
<el-form-item style="margin-bottom: 12px">
<el-select
v-model="form.selectedDirection"
size="medium"
placeholder="请选择方向"
class="direction"
>
<el-option
v-for="item in boardDirectionList"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
@click.native="____changeDirection(item.dictValue)"
/>
</el-select>
<!-- class="partCon" -->
<!-- style="display: flex; flex-direction: column" -->
<!-- ref="form" -->
<el-form-item>
<el-col :span="12">
<el-select
v-model="form.selectedDirection"
size="medium"
placeholder="请选择方向"
class="direction"
>
<el-option
v-for="item in boardDirectionList"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
/>
<!-- @click.native="____changeDirection(item.dictValue)" -->
</el-select>
</el-col>
<el-col :span="11" :offset="1">
<el-checkbox-group v-model="form.status" style="height:26px">
<el-checkbox label="1">在线</el-checkbox>
<el-checkbox label="0">离线</el-checkbox>
</el-checkbox-group>
</el-col>
</el-form-item>
<el-form-item label="开始桩号:">
<el-col :span="2" class="text-center tc-lb">K</el-col>
<el-col :span="7">
<el-input-number v-model="form.stakeFrom[0]" style="width: 100%;" :precision="0" :min="0" :max="1000"></el-input-number>
</el-col>
<el-col :span="2" class="text-center tc-lb">+</el-col>
<el-col :span="7">
<el-input-number v-model="form.stakeFrom[1]" style="width: 100%;" :precision="0" :min="0" :max="1000"></el-input-number>
</el-col>
</el-form-item>
<el-form-item label="结束桩号:">
<el-col :span="2" class="text-center tc-lb">K</el-col>
<el-col :span="7">
<el-input-number v-model="form.stakeTo[0]" style="width: 100%;" :precision="0" :min="0" :max="1000"></el-input-number>
</el-col>
<el-col :span="2" class="text-center tc-lb">+</el-col>
<el-col :span="7">
<el-input-number v-model="form.stakeTo[1]" style="width: 100%;" :precision="0" :min="0" :max="1000"></el-input-number>
</el-col>
</el-form-item>
<vuescroll :ops="scrollOptions" style="flex: 1; height: 0">
<el-form-item style="display: flex; justify-content: center;">
<el-button class="btnInfoBoard" type="add" @click.native="____onSearchDevice()">搜索</el-button>
<el-button type="publish" @click.native="____onResetSearchDevice()">重置</el-button>
</el-form-item>
</el-form>
<div style="flex:1; height: 0; padding:0 10px 10px">
<vuescroll :ops="scrollOptions">
<el-collapse
v-model="selectedSize"
accordion
@ -46,7 +81,7 @@
>
<div v-if="item.list.length > 0">
<el-checkbox-group
class="checkbox"
class="deviceList"
v-model="checkedDeviceIds"
:max="2"
@change="____onSelectDevices"
@ -57,8 +92,8 @@
:key="index"
>
<div class="title">{{ itm.deviceName }}</div>
<el-tooltip :content="(item.deviceState == 0 || item.deviceState == null) ? '离线' : '在线'" placement="top">
<img src="@/assets/jihe/images/offline.svg" class="state" v-if="item.deviceState==0 || item.deviceState==null">
<el-tooltip :content="(itm.deviceState == 0 || itm.deviceState == null) ? '离线' : '在线'" placement="top">
<img src="@/assets/jihe/images/offline.svg" class="state" v-if="itm.deviceState=='0' || itm.deviceState==null">
<img src="@/assets/jihe/images/online.svg" class="state" v-else>
</el-tooltip>
<el-tooltip content="回读" placement="top">
@ -80,7 +115,7 @@
</el-collapse-item>
</el-collapse>
</vuescroll>
</el-form>
</div>
</div>
<!-- ++++++++++中间部分单个设备++++++++++ -->
<div style="width: 37.8%" class="part partMiddle">
@ -357,13 +392,7 @@ export default {
deviceList: [], //
checkedDeviceIds: [], //
templateAvailable: [],
form: {
selectedDirection: "",
company: null,
mechanism: null,
localInfo: null,
selectedPixel: null,
}, //
form: {},
supplier: null, //
activeNames: [], //
tplCategory: [], //
@ -408,6 +437,7 @@ export default {
// }
},
created() {
this.____resetForm();
Promise.all([
this.____initDirection(),
this.____getBoardPixel(),
@ -455,7 +485,7 @@ export default {
res.data.forEach((item) => {
this.boardSizeDic[item.dictValue] = {
label: item.dictLabel,
list: [],
list: []
};
});
});
@ -501,9 +531,25 @@ export default {
this.____getIotBoard();
},
____onSearchDevice(){
this.____getIotBoard();
},
____resetForm(){
this.form = {
selectedDirection: "",
status: ["0", "1"],
stakeFrom: [55, 378],
stakeTo: [208, 153]
}
},
____onResetSearchDevice(){
this.____resetForm();
this.____initDirection();
this.____getIotBoard();
},
//
____getIotBoard() {
this.checkAll = false;
// this.checkAll = false;
for (let key in this.boardSizeDic) {
this.boardSizeDic[key].list = [];
}
@ -511,6 +557,13 @@ export default {
let param = {
direction: this.form.selectedDirection,
};
let stakeFrom = this.form.stakeFrom[0] * 1000 + this.form.stakeFrom[1];
let stakeTo = this.form.stakeTo[0] * 1000 + this.form.stakeTo[1];
let statusForm = _.cloneDeep(this.form.status);
if(statusForm.includes("0")){
statusForm.push(null)
}
if (IS_TESTING) {
let res = testDeviceList;
res.data.forEach((item) => {
@ -533,7 +586,13 @@ export default {
if (_.isString(item.otherConfig)) {
item.otherConfig = JSON.parse(item.otherConfig);
}
this.boardSizeDic[item.otherConfig.screenSize].list.push(item);
item.iotDeviceId = item.iotDeviceId || "null_" + item.id;
let stakeThis = +item?.stakeMark?.replace(/[K\+]/g, "") || -1;
if(stakeThis >= stakeFrom && stakeThis <= stakeTo && statusForm.includes(item.deviceState)){
this.boardSizeDic[item.otherConfig.screenSize].list.push(item);
}
if (!this.selectedSize) {
this.selectedSize = item.otherConfig.screenSize;
}
@ -569,7 +628,7 @@ export default {
this.selectedBdMsg = [];
this.selectedBdMsg = _.cloneDeep(testDeviceInfo.data["3A"].content);
} else {
if (!deviceFrom.iotDeviceId) {
if (!deviceFrom.iotDeviceId || deviceFrom.iotDeviceId.includes("null_")) {
this.$message.warning("设备未接入!");
return;
}
@ -586,12 +645,16 @@ export default {
}
},
____onAddTemplate() {
// if(selectedSize){
// fontSize = "64px"
// }
this.editDialog = {
visible: true,
mode: "add",
type: "template",
tpl: {
content: "",
content: ""
},
};
},
@ -783,8 +846,8 @@ export default {
return;
}
this.checkedDeviceIds = [arr.pop()];
if (!this.checkedDeviceIds[0]) {
this.$message.warning("该设备缺少iotDeviceId参数!");
if (!this.checkedDeviceIds[0] || this.checkedDeviceIds[0].includes("null_")) {
this.$message.warning("设备未接入!");
}
this.selectedDevice = _.find(this.boardSizeDic[this.selectedSize].list, {
iotDeviceId: this.checkedDeviceIds[0],
@ -1104,10 +1167,15 @@ export default {
};
</script>
<style lang="scss" scoped>
::v-deep .formSearch{
padding: 20px 20px 0;
.el-form-item__label{ color: #fff;}
}
.direction {
::v-deep .el-input {
.el-input__inner {
font-size: 16px !important;
font-size: 14px !important;
padding: 8px 5px;
}
}
@ -1286,32 +1354,34 @@ export default {
padding-bottom: 0px;
}
::v-deep .el-checkbox__label {
display: flex !important;
justify-content: space-between;
width: 100%;
.title{ flex:1; width:0; overflow: hidden; text-overflow: ellipsis; word-break: keep-all;}
.state{ width: 18px; height: 18px; margin-right: 4px;}
.huiduButton {
background: transparent;
border: none;
height: 18px;
width: 18px;
line-height: 20px;
padding: 0;
color: #fff;
font-size: 16px;
}
.deviceList{
::v-deep .el-checkbox__label {
display: flex !important;
justify-content: space-between;
width: 100%;
.title{ flex:1; width:0; overflow: hidden; text-overflow: ellipsis; word-break: keep-all;}
.state{ width: 18px; height: 18px; margin-right: 4px;}
.huiduButton {
background: transparent;
border: none;
height: 18px;
width: 18px;
line-height: 20px;
padding: 0;
color: #fff;
font-size: 16px;
}
.huiduButton:hover {
color: #05afe3 !important;
.huiduButton:hover {
color: #05afe3 !important;
}
}
}
.el-checkbox {
display: flex !important;
padding-top: 10px;
margin: 0;
.el-checkbox {
display: flex !important;
padding-top: 10px;
margin: 0;
}
}
::v-deep .el-table {
@ -1378,10 +1448,6 @@ export default {
padding-left: 5px;
}
::v-deep .el-checkbox + .el-checkbox {
margin-left: 0px !important;
}
::v-deep .el-collapse-item__header {
background-color: #053b4f;
color: #fff;
@ -1405,10 +1471,6 @@ export default {
border: none;
}
::v-deep .el-checkbox__label {
color: #ff0;
}
::v-deep .el-button--medium {
width: 96px;
height: 23px;

7
ruoyi-ui/src/views/JiHeExpressway/pages/service/sensitive/index.vue

@ -32,7 +32,6 @@
type="input"
params="word"
:disable="true"
:placeholder="searchText"
@handleSearch="handleSearch"
/>
</div>
@ -85,7 +84,7 @@
:total="numTotal"
:current-page.sync="currentPage"
:page-size="pageSize"
layout="total,prev, pager, next, jumper"
layout="total,sizes,prev, pager, next, jumper"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
@ -140,10 +139,6 @@ export default {
key: "word",
label: "关键词",
},
{
key: "id",
label: "id",
},
{
key: "createTime",
label: "创建时间",

4
ruoyi-ui/src/views/JiHeExpressway/utils/enum.js

@ -40,13 +40,13 @@ export const CameraDirectionEnum = {
// text: "上下行 (双向)",
// },
1: {
text: "上行(菏泽方向)",
text: "菏泽方向",
},
2: {
text: "中",
},
3: {
text: "下行(济南方向)",
text: "济南方向",
},
};

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

File diff suppressed because it is too large

4
ruoyi-ui/vue.config.js

@ -51,8 +51,8 @@ module.exports = {
// target: `http://10.0.81.204:8087`, //现场后台 刘文阁
// target: `http://10.168.69.255:8087`, //正晨后台 连现场物联 刘文阁
// target: `http://10.168.78.135:8087`, //王钦
// target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2
target: `http://10.168.68.42:8087`, //王思祥
target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2
// target: `http://10.168.68.42:8087`, //王思祥
changeOrigin: true,
pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "",

Loading…
Cancel
Save