diff --git a/ruoyi-ui/src/api/MonthlyEquipment/index.js b/ruoyi-ui/src/api/MonthlyEquipment/index.js index 9921dfbb..f1a14095 100644 --- a/ruoyi-ui/src/api/MonthlyEquipment/index.js +++ b/ruoyi-ui/src/api/MonthlyEquipment/index.js @@ -53,3 +53,12 @@ export function getSystemStatusExport(query) { } ); } + +// 拖拽排序 + +export function getStatusRule(rule) { + return request({ + url: "/system/status/rule?rule=" + rule, + method: "get", + }); +} diff --git a/ruoyi-ui/src/assets/images/no_img.png b/ruoyi-ui/src/assets/images/no_img.png new file mode 100644 index 00000000..34ab887d Binary files /dev/null and b/ruoyi-ui/src/assets/images/no_img.png differ diff --git a/ruoyi-ui/src/assets/styles/JiHeExpressway.scss b/ruoyi-ui/src/assets/styles/JiHeExpressway.scss index 7db6541e..f68d1c59 100644 --- a/ruoyi-ui/src/assets/styles/JiHeExpressway.scss +++ b/ruoyi-ui/src/assets/styles/JiHeExpressway.scss @@ -286,5 +286,10 @@ // background-color: #000 !important; } } + .el-image__placeholder{ + background-color: #133242; + background-image: url("~@/assets/images/no_img.png"); + background-size: contain; + } } diff --git a/ruoyi-ui/src/common/menuData.js b/ruoyi-ui/src/common/menuData.js index 70e7f16d..9a1cbf94 100644 --- a/ruoyi-ui/src/common/menuData.js +++ b/ruoyi-ui/src/common/menuData.js @@ -177,12 +177,12 @@ export default [ path: "/service/board", component: "service/board/index.vue", }, - // { - // title: "情报板记录", - // name: "boardRecord", - // path: "/service/boardRecord", - // component: "service/boardRecord/index.vue", - // }, + { + title: "情报板记录", + name: "boardRecord", + path: "/service/boardRecord", + component: "service/boardRecord/index.vue", + }, { title: "情报板敏感词", name: "sensitive", diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index f906e716..cee3f96d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -49,12 +49,12 @@ export const releaseChannel = { default: [], options: { options: [ - { key: "1", label: "微博" }, - { key: "3", label: "微信小程序" }, - { key: "4", label: "服务网站" }, - { key: "5", label: "情报板" }, - { key: "6", label: "手机短信" }, - { key: "7", label: "微信公众号" }, + { key: "1", label: "微博", width: "87px" }, + { key: "3", label: "微信小程序", width: "87px" }, + { key: "4", label: "服务网站", width: "87px" }, + { key: "5", label: "情报板", width: "87px" }, + { key: "6", label: "手机短信", width: "87px" }, + { key: "7", label: "微信公众号", width: "87px" }, ], }, }; @@ -251,33 +251,22 @@ export const startEndStation = { }, }; -// export const direction = { -// label: "方向:", -// key: "direction", -// required: true, -// type: "select", -// options: { -// options: [ -// // { key: "济南方向", label: "济南方向" }, -// // { key: "菏泽方向", label: "菏泽方向" }, -// ], -// }, -// }; - -export const direction = { - label: "路段方向:", - key: "direction", - type: "CheckboxGroup", - isAlone: true, - default: [], - options: { - options: [ - { key: "1", label: "济南方向" }, - { key: "3", label: "菏泽方向" }, - { key: "2", label: "双向" }, - ], - }, -}; +export function directionCreater(type){ + return { + label: "路段方向:", + key: "direction", + type, //CheckboxGroup 或 RadioGroup + isAlone: true, + default: [], + options: { + options: [ + { key: "1", label: "菏泽方向" }, + { key: "2", label: "双向" }, + { key: "3", label: "济南方向" }, + ], + }, + }; +} export const problemDescription = { label: "问题描述:", diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue index 7a574411..6291baa9 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue @@ -113,7 +113,7 @@ export default { height: 100%; background: rgba(0, 0, 0, 0.36); border-radius: 0px 0px 0px 0px; - z-index: 1100; + z-index: 2100; // display: flex; // align-items: center; // justify-content: center; diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/ElCheckboxGroup.vue b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/ElCheckboxGroup.vue index e6bbdb4e..9ed1fe86 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/ElCheckboxGroup.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/FormConfig/components/ElCheckboxGroup.vue @@ -1,14 +1,27 @@ @@ -22,10 +27,11 @@ import VueSlickCarousel from 'vue-slick-carousel' import 'vue-slick-carousel/dist/vue-slick-carousel.css' // optional style for arrows & dots import 'vue-slick-carousel/dist/vue-slick-carousel-theme.css' +import Video from "@screen/components/Video"; export default { name: "Carousel", - components: { VueSlickCarousel }, + components: { VueSlickCarousel,Video }, props: { pictures: { type: Array, @@ -40,6 +46,10 @@ export default { // "require('@screen/images/shareWith/weChat-active.svg')" ] }, + videos: { + type: Array, + default: () => [] + }, }, data() { return { @@ -48,7 +58,7 @@ export default { infinite: true, arrows: false, speed: 600, - slidesToShow: 3, + slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 1800, @@ -77,37 +87,20 @@ export default { .vueSlickCarousel { flex: 1; overflow: hidden; - width: 100%; ::v-deep { .slick-list { height: 100%; - width: 100%; - - .slick-track { - width: 100% !important; - height: 100% !important; - - .slick-slide { - width: 100% !important; - - div { - width: 100%; - height: 100%; - } - } - + div { + height: 100%; } - - } } .item { img { height: 100%; - width: 100%; } } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue index 0fa76476..59cb6169 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue @@ -1,89 +1,44 @@ @@ -124,7 +79,7 @@ export default { activeName: String, formData: { type: Object, - default: () => {}, + default: () => { }, }, }, data() { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue index 89fea858..cf1666aa 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue @@ -294,8 +294,9 @@ 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 = ['https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4', + // 'https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-480p.mp4'] } data.videoType = "mp4"; this.detailDialogFormData = data; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsDay/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsDay/assets/charts.js index af418882..ef60ef77 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsDay/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsDay/assets/charts.js @@ -22,7 +22,7 @@ var options = { grid: { top: "15%", //上边距 right: "0", //右边距 - left: "15px", //左边距 + left: "30px", //左边距 bottom: "10%", //下边距 containLabel: true, }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js index 4ea30c4e..aa240068 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts.js @@ -18,20 +18,24 @@ let data3 = [200, 530, 920, 400, 600, 700, 300, 800]; let options = { tooltip: { show: true, - trigger: "axis", + // trigger: "axis", axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: "shadow", // 默认为直线,可选为:'line' | 'shadow' }, - valueFormatter: function (value) { - return value + " 起"; + formatter: function (params) { + if (params.seriesName == "路段里程数") { + return `
${params.marker} ${params.name} ${params.value} 公里
`; + } else { + return `
${params.marker} ${params.name} ${params.value} 起
`; + } }, }, grid: { left: "0", - right: "0", + right: "30px", top: "90px", - bottom: "20px", + bottom: "-10px", containLabel: true, }, xAxis: { @@ -52,11 +56,14 @@ let options = { interval: 1, align: "center", rotate: "1", - margin: "20", + margin: 30, textStyle: { fontSize: 10, color: "#E5E7E8", }, + formatter: (value) => { + return value.split("-").join("\n\n"); + }, }, }, yAxis: [ @@ -262,7 +269,6 @@ let options = { opacity: 1, color: function (params) { var a = params.name; - // console.log("==========a=============", a); return new echarts.graphic.LinearGradient( 0, 0, @@ -322,7 +328,6 @@ let options = { opacity: 1, color: function (params) { var a = params.name; - // console.log("==========a=============", a); return new echarts.graphic.LinearGradient( 0, 0, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts2.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts2.js index ee01021c..3619aed6 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts2.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts2.js @@ -4,15 +4,30 @@ let lc2 = [400, 550, 200, 140, 400, 550]; let options = { tooltip: { show: true, - trigger: "axis", - valueFormatter: function (value) { - return value + " 起"; + trigger: "item", + formatter: function (params) { + console.log(77, params.seriesName); + // params.forEach((item) => { + // console.log(item); + // if (item.seriesName == "平均处置时长") { + // console.log(77, item.seriesName); + // return `
${item.marker} ${item.name} ${item.value} 分钟
`; + // } + // }); + if (params.seriesName == "平均处置时长") { + console.log(77, params.seriesName); + return `
${params.marker} ${params.name} ${params.value} 分钟
`; + } else if (params.seriesName == "去年同期平均处置时长") { + return `
${params.marker} ${params.name} ${params.value} 分钟
`; + } else { + return `
${params.marker} ${params.name} ${params.value} 起
`; + } }, }, grid: { right: "4%", top: "90px", - left: "2%", + left: "30px", bottom: "0%", containLabel: true, }, @@ -86,12 +101,12 @@ let options = { // formatter: "{value} °C", }, }, - // axisLine: { - // show: false, - // }, - // axisTick: { - // show: false, - // }, + axisLine: { + show: false, + }, + axisTick: { + show: false, + }, splitLine: { show: false, lineStyle: { @@ -227,14 +242,14 @@ let options = { yAxisIndex: 1, data: lc2, type: "line", - symbol: "none", - symbolSize: 20, + // symbol: "none", + symbolSize: 5, smooth: true, color: "#E2BA74", lineStyle: { color: "#E2BA74", width: 1, - type: "dashed", + // type: "dashed", // dashOffset:50 }, }, @@ -243,14 +258,14 @@ let options = { yAxisIndex: 1, data: lc, type: "line", - symbol: "none", - symbolSize: 20, + // symbol: "none", + symbolSize: 5, smooth: true, color: "#FB6D07", lineStyle: { color: "#FB6D07", width: 1, - type: "dashed", + // type: "dashed", // dashOffset:50 }, }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts3.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts3.js index 83691ff5..fa80a0e0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts3.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/assets/charts3.js @@ -23,8 +23,14 @@ var options = { }, tooltip: { show: true, - valueFormatter: function (value) { - return value + " 起"; + trigger: "item", + formatter: function (params) { + if (params.seriesName == "事件数量(起)") { + console.log(77, params.seriesName); + return `
${params.marker} ${params.name} ${params.value} 起
`; + } else { + return `
${params.marker} ${params.name} ${params.value} 分钟
`; + } }, }, legend: { @@ -33,6 +39,7 @@ var options = { itemHeight: 8, itemWidth: 8, top: "5%", + right: "0%", textStyle: { // fontSize: 12, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue index 9a273147..a2cbbfcb 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue @@ -147,7 +147,7 @@ export default { value: "4", }, ], - dateTime: "2024-01-01 00:00:00", + dateTime: moment().format("YYYY-MM-DD HH:mm:ss"), }; }, @@ -217,6 +217,7 @@ export default { }, async searchQuery() { let startTime = ""; + console.log("searchQuery", this.type); if (this.type == 3) { let year = moment().year(); // console.log(year, this.quarter); @@ -237,6 +238,7 @@ export default { // type: this.type, // startTime: startTime, // } + console.log("++++++++++++", startTime); var formData = new FormData(); formData.append("direction", this.direction); formData.append("type", this.type); @@ -319,12 +321,12 @@ export default { display: flex; align-items: center; height: 40px; - width: 100%; + width: 500px; font-size: 14px; margin-bottom: 10px; left: 20px; top: 10px; - z-index: 0; + z-index: 1; div { white-space: nowrap; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue index 4e4f6b20..653eed22 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue @@ -4,47 +4,24 @@
- + 交通事件 感知事件 - + - - + + - - + + @@ -56,11 +33,7 @@
*执行操作:
- +
@@ -70,11 +43,7 @@
*恢复操作:
- + @@ -82,17 +51,9 @@ @@ -111,7 +72,7 @@ import { gzmsMap, eventSubClassMap, trafficKV, - perceptionKV, + WarningTypeList as perceptionKV, } from "@screen/utils/enum.js"; const typeMap = { @@ -141,7 +102,7 @@ export default { visible: Boolean, detail: { type: Object, - default: () => {}, + default: () => { }, }, }, data() { @@ -201,7 +162,7 @@ export default { }, }; }, - mounted() {}, + mounted() { }, computed: { modelVisible: { get() { @@ -212,7 +173,7 @@ export default { this.eventOptions = typeMap[this.detail.eventCategory]; this.mechanismOptions = eventSubClassMap[this.detail.eventCategory || 1][ - this.detail.eventType + this.detail.eventType ]; this.initData(this.detail.id); } else { @@ -327,7 +288,7 @@ export default { this.eventOptions = typeMap[value]; this.changeEventType(1); }, - handleChange() {}, + handleChange() { }, formatData(it, value = 1, id = "") { let data = { ...it, actionType: value, emergencyPlansId: id }; if ( diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue index d1f51a98..21e8bfc2 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/index.vue @@ -56,7 +56,7 @@ export default { return { formData: { type: "day", - warningTime: "", + warningTime: moment().format("YYYY-MM-DD") + " 00:00:01", }, trafficIncidents: null, trafficIncidentsPie: null, @@ -89,6 +89,7 @@ export default { key: "warningTime", required: true, type: "datePicker", + default: moment().format("YYYY-MM-DD") + " 00:00:01", options: { valueFormat: "yyyy-MM-dd", }, @@ -107,6 +108,7 @@ export default { type: "month", valueFormat: "yyyy-MM-dd", }, + default: moment().format("YYYY-MM-DD") + " 00:00:01", visible: (data) => { if (data.type == "month") { return true; @@ -122,6 +124,7 @@ export default { type: "year", valueFormat: "yyyy-MM-dd", }, + default: moment().format("YYYY-MM-DD") + " 00:00:01", visible: (data) => { if (data.type == "year") { return true; @@ -134,9 +137,9 @@ export default { async mounted() { setTimeout(() => { this.$nextTick(async () => { - (this.formData.warningTime = - moment(new Date()).format("YYYY-MM-DD") + " 00:00:01"), - (this.trafficIncidents = echarts.init(this.$refs.trafficIncidents)); + // (this.formData.warningTime = + // moment().format("YYYY-MM-DD") + " 00:00:01"), + this.trafficIncidents = echarts.init(this.$refs.trafficIncidents); this.trafficIncidents.setOption(trafficIncidentsCharts); this.trafficIncidentsPie = echarts.init(this.$refs.trafficIncidentsPie); this.trafficIncidentsPie.setOption(trafficIncidentsChartsPie); @@ -166,6 +169,7 @@ export default { drawRoundRect(context, 410, 406, 320, 24, 10, gr); drawRoundRect(context, 410, 440, 320, 24, 10, gr); drawRoundRect(context, 410, 474, 320, 24, 10, gr); + console.log("this.formData", this.formData); await this.getNonAutomaticWarningType(this.formData); // drawRoundRect(context, 410, 508, 320, 24, 10, gr); }); @@ -174,6 +178,7 @@ export default { methods: { getNonAutomaticWarningType(data) { let that = this; + console.log("data", data); return nonAutomaticWarningType(data).then((res) => { let newData = res.data; let seriesData = []; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsCharts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsCharts.js index f8c4fe7f..3a4a4ed1 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsCharts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Eventfiltering/trafficIncidentsCharts.js @@ -50,6 +50,7 @@ var options = { fontSize: 18, align: "center", }, + minInterval: 1, type: "value", axisLine: { show: false, @@ -70,6 +71,7 @@ var options = { color: "#fff", fontSize: "18px", formatter: (value) => { + console.log(789789, value); return value; }, }, @@ -78,7 +80,7 @@ var options = { series: [ { // name: '审限内结案率', - data: [5, 10, 20, 30], + data: [], type: "pictorialBar", symbol: "roundRect", symbolRepeat: true, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue index 1f7d3ab9..6792a117 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/index.vue @@ -64,7 +64,7 @@ export default { trafficIncidentsPie: null, formData: { type: "day", - warningTime: "", + warningTime: moment().format("YYYY-MM-DD") + " 00:00:01", }, searchFormList: [ { @@ -98,6 +98,7 @@ export default { options: { valueFormat: "yyyy-MM-dd", }, + default: moment().format("YYYY-MM-DD") + " 00:00:01", visible: (data) => { if (data.type == "day") { return true; @@ -113,6 +114,7 @@ export default { type: "month", valueFormat: "yyyy-MM-dd", }, + default: moment().format("YYYY-MM-DD") + " 00:00:01", visible: (data) => { if (data.type == "month") { return true; @@ -128,6 +130,7 @@ export default { type: "year", valueFormat: "yyyy-MM-dd", }, + default: moment().format("YYYY-MM-DD") + " 00:00:01", visible: (data) => { if (data.type == "year") { return true; @@ -155,9 +158,9 @@ export default { getWarningCharts() { setTimeout(() => { this.$nextTick(async () => { - (this.formData.warningTime = - moment(new Date()).format("YYYY-MM-DD") + " 00:00:01"), - (this.trafficIncidents = echarts.init(this.$refs.trafficIncidents)); + // (this.formData.warningTime = + // moment(new Date()).format("YYYY-MM-DD") + " 00:00:01"), + this.trafficIncidents = echarts.init(this.$refs.trafficIncidents); this.trafficIncidents.setOption(trafficIncidentsCharts1); this.trafficIncidentsPie = echarts.init( this.$refs.trafficIncidentsPie diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/trafficIncidentsCharts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/trafficIncidentsCharts.js index f8c4fe7f..921656c8 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/trafficIncidentsCharts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Sitefiltering/trafficIncidentsCharts.js @@ -50,6 +50,7 @@ var options = { fontSize: 18, align: "center", }, + minInterval: 1, type: "value", axisLine: { show: false, @@ -78,7 +79,7 @@ var options = { series: [ { // name: '审限内结案率', - data: [5, 10, 20, 30], + data: [], type: "pictorialBar", symbol: "roundRect", symbolRepeat: true, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue index 9c44505e..d984205b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/index.vue @@ -33,7 +33,7 @@ export default { trafficIncidents: null, formData: { type: "day", - warningTime: "", + warningTime: moment().format("YYYY-MM-DD") + " 00:00:01", }, searchFormList: [ { @@ -67,6 +67,7 @@ export default { options: { valueFormat: "yyyy-MM-dd", }, + default: moment().format("YYYY-MM-DD") + " 00:00:01", visible: (data) => { if (data.type == "day") { return true; @@ -82,6 +83,7 @@ export default { type: "month", valueFormat: "yyyy-MM-dd", }, + default: moment().format("YYYY-MM-DD") + " 00:00:01", visible: (data) => { if (data.type == "month") { return true; @@ -97,6 +99,7 @@ export default { type: "year", valueFormat: "yyyy-MM-dd", }, + default: moment().format("YYYY-MM-DD") + " 00:00:01", visible: (data) => { if (data.type == "year") { return true; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/trafficIncidentsCharts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/trafficIncidentsCharts.js index f8c4fe7f..921656c8 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/trafficIncidentsCharts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/manual/statistic/components/Timefiltering/trafficIncidentsCharts.js @@ -50,6 +50,7 @@ var options = { fontSize: 18, align: "center", }, + minInterval: 1, type: "value", axisLine: { show: false, @@ -78,7 +79,7 @@ var options = { series: [ { // name: '审限内结案率', - data: [5, 10, 20, 30], + data: [], type: "pictorialBar", symbol: "roundRect", symbolRepeat: true, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/chargeableOperations/components/daylyAnalysis/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/chargeableOperations/components/daylyAnalysis/assets/charts.js index 51095a7b..5a5152e7 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/chargeableOperations/components/daylyAnalysis/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/chargeableOperations/components/daylyAnalysis/assets/charts.js @@ -5,7 +5,7 @@ var data2 = [5, 12, 4, 6, 7, 9, 10, 15, 3, 5, 6, 15]; var options = { tooltip: { formatter: function (params) { - console.log("params", params); + // console.log("params", params); if (params.seriesName == "增收金额") { return `
${params.marker} ${params.name} ${params.value} 万元
`; } else { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue index 16ad3715..b33ed278 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceSummary/index.vue @@ -1,148 +1,215 @@ - - - - - \ No newline at end of file +} + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue index 3c30c3c0..267fb5f4 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue @@ -125,7 +125,7 @@ import { getSystemStatusTabList, getSystemStatusType, getSystemStatusExport, -} from "../../../../../api/MonthlyEquipment"; +} from "@/api/MonthlyEquipment"; // import { download } from "../../../../../utils/request.js"; import Pagination from "@screen/components/Pagination.vue"; import InputSearch from "@screen/components/InputSearch/index.vue"; @@ -180,11 +180,16 @@ export default { interval: null, }; }, + provide() { + return { + initDataList: this.initDevice, + }; + }, destroyed() { clearInterval(this.interval); }, methods: { - handleSizeChange(size){ + handleSizeChange(size) { this.pageSize = size; this.initData(); }, @@ -285,8 +290,7 @@ export default { initDevice() { //设备在线离线率接口 - getSystemStatusType().then((res) => { - if (IS_TESTING && (!res.data || res.msg == "暂无数据")) { + if (process.env.NODE_ENV == "development") { this.equipments = []; this.equipSeries.forEach((item) => { this.equipments.push({ @@ -295,28 +299,37 @@ export default { pctOnl: Math.floor(100 * Math.random()) + "%", pctOffl: "25%", pctLose: "15%", - sumUseState: "90%" + sumUseState: "90%", }); }); return; } + + getSystemStatusType().then((res) => { let allList = []; - for (let key in res.data) { - let val = res.data[key]; - let item = { - title: key, - total: val.sum, - pctOnl: val.sucessRate, - pctOffl: val.failRate, - pctLose: val.lostRate, - sumUseState: val.sumUseState - }; - if (key.includes("全部设备")) { - allList.unshift(item); - } else { - allList.push(item); + let sort = res.data["排序规则"].rule.split(","); + sort.forEach((i) => { + for (let key in res.data) { + let val = res.data[key]; + let item = { + title: key, + total: val.sum, + pctOnl: val.sucessRate, + pctOffl: val.failRate, + pctLose: val.lostRate, + sumUseState: val.sumUseState, + }; + if (i === key) { + allList.push(item); + } + // if (key.includes("全部设备")) { + // allList.unshift(item); + // } else { + // allList.push(item); + // } } - } + }); + this.equipments = allList; }); }, @@ -431,7 +444,8 @@ export default { display: inline-flex; width: 100%; flex-direction: row; - flex:1; height: 0; + flex: 1; + height: 0; .tabs-lo { display: inline-flex; @@ -537,16 +551,24 @@ export default { .full_tab { width: 100%; height: 100%; - display: flex; flex-direction: column; flex: 1; - ::v-deep .el-tabs__header{} - ::v-deep .el-tabs__content{ flex: 1; - .el-tab-pane{ width: 100%; height: 100%;} + display: flex; + flex-direction: column; + flex: 1; + ::v-deep .el-tabs__header { + } + ::v-deep .el-tabs__content { + flex: 1; + .el-tab-pane { + width: 100%; + height: 100%; + } } } -.tab_con{ display: flex; flex-direction: column;} - - +.tab_con { + display: flex; + flex-direction: column; +} .topdiv { display: inline-flex; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/classification/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/classification/index.vue index 426dc368..c5539c06 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/classification/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficFlow/components/classification/index.vue @@ -1,6 +1,6 @@