diff --git a/mock/echarts.ts b/mock/echarts.ts new file mode 100644 index 0000000..e69de29 diff --git a/mock/pools/echartsData.ts b/mock/pools/echartsData.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/components/Charts/appearanceDailyAlertChart.vue b/src/components/Charts/appearanceDailyAlertChart.vue index cd8de85..e202adb 100644 --- a/src/components/Charts/appearanceDailyAlertChart.vue +++ b/src/components/Charts/appearanceDailyAlertChart.vue @@ -2,7 +2,7 @@ * @Author: donghao donghao@supervision.ltd * @Date: 2025-08-14 10:33:46 * @LastEditors: donghao donghao@supervision.ltd - * @LastEditTime: 2025-08-18 17:03:28 + * @LastEditTime: 2025-08-20 14:35:52 * @FilePath: \5G-Web\src\components\Charts\appearanceDailyAlertChart.vue * @Description: 外观日告警统计 --> @@ -37,7 +37,7 @@ function initChart() { data: [ 80, 30, 120, 80, 100, 60, 70, 50, 40, 60, 110, 30, 80, 100, 120, 150, ], - color: "rgba(212, 145, 20, 1)", + color: "rgba(212, 145, 20, 0.9)", color1: "rgba(212, 145, 20, 0.3)", }, { @@ -46,7 +46,7 @@ function initChart() { 100, 20, 220, 180, 120, 180, 100, 120, 100, 140, 160, 20, 180, 140, 80, 170, ], - color: "rgba(0, 157, 255, 1)", + color: "rgba(0, 157, 255, 0.9)", color1: "rgba(0, 157, 255, 0.3)", }, { @@ -55,7 +55,7 @@ function initChart() { 150, 180, 200, 190, 180, 50, 80, 100, 80, 140, 120, 190, 150, 60, 100, 120, ], - color: "rgba(44, 188, 204, 1)", + color: "rgba(44, 188, 204, 0.9)", color1: "rgba(44, 188, 204, 0.3)", }, { @@ -64,7 +64,7 @@ function initChart() { 120, 140, 180, 170, 80, 140, 130, 110, 140, 100, 100, 140, 120, 80, 140, 140, ], - color: "rgba(13, 233, 138, 1)", + color: "rgba(13, 233, 138, 0.9)", color1: "rgba(13, 233, 138, 0.3)", }, { @@ -73,7 +73,7 @@ function initChart() { 100, 120, 80, 100, 50, 70, 150, 120, 100, 140, 60, 100, 60, 150, 120, 170, ], - color: "rgba(198, 81, 14, 1)", + color: "rgba(198, 81, 14, 0.9)", color1: "rgba(198, 81, 14, 0.3)", }, { @@ -82,7 +82,7 @@ function initChart() { 150, 160, 180, 170, 150, 80, 100, 140, 120, 80, 140, 80, 120, 80, 100, 150, ], - color: "rgba(255, 209, 92, 1)", + color: "rgba(255, 209, 92, 0.9)", color1: "rgba(255, 209, 92, 0.3)", }, ]; @@ -95,7 +95,7 @@ function initChart() { seriesOptions.push({ name: item.name, type: "line", - color: item.color1, + color: item.color, symbolSize: 9, symbol: "none", areaStyle: { @@ -132,9 +132,6 @@ function initChart() { right: 0, top: "5%", icon: "rect", - // itemWidth: 16, - // itemHeight: 16, - // itemGap: 32, textStyle: { fontFamily: "PingFangSC-Semibold", fontSize: 14, @@ -144,10 +141,10 @@ function initChart() { data: legendData, }, grid: { - top: "25%", - left: "2%", - right: "2%", + left: "1%", + right: "1%", bottom: "5%", + top: "25%", containLabel: true, }, xAxis: { diff --git a/src/components/Charts/appearanceDailyDetectionChart.vue b/src/components/Charts/appearanceDailyDetectionChart.vue index ca13eb2..eb6bee0 100644 --- a/src/components/Charts/appearanceDailyDetectionChart.vue +++ b/src/components/Charts/appearanceDailyDetectionChart.vue @@ -2,7 +2,7 @@ * @Author: donghao donghao@supervision.ltd * @Date: 2025-08-14 10:33:22 * @LastEditors: donghao donghao@supervision.ltd - * @LastEditTime: 2025-08-18 17:00:57 + * @LastEditTime: 2025-08-20 16:03:07 * @FilePath: \5G-Web\src\components\Charts\appearanceDailyDetectionChart.vue * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -18,7 +18,7 @@ const props = defineProps({ function initChart() { const chartDom = document.getElementById("appearanceDailyDetectionChart"); const mainChart = echarts.init(chartDom); - const data1 = [ + const data1 = [ { name: "1日", value: 175, @@ -117,23 +117,25 @@ function initChart() { const barWidth = 16; const DOMURL = window.URL || window.webkitURL || window; const insetShadowUrl = DOMURL.createObjectURL(svg); - let xAxisData = []; + let xAxisData = []; let seriesData1 = []; data1.forEach((item) => { xAxisData.push(item.name); seriesData1.push(item.value); }); - const option = { backgroundColor: "", - grid: { - left: "1%", - right: "1%", - bottom: "2%", - top: "15%", - containLabel: true, - }, + tooltip: { + trigger: "axis", + }, + grid: { + left: "1%", + right: "1%", + bottom: "5%", + top: "15%", + containLabel: true, + }, xAxis: { type: "category", axisLine: { @@ -166,7 +168,7 @@ function initChart() { lineStyle: { type: "dashed", color: "rgba(255,255,255,0.1)", - width: 2, + width: 1, }, }, }, @@ -176,14 +178,18 @@ function initChart() { type: "pictorialBar", symbol: "image://" + insetShadowUrl, barWidth: barWidth, + legendHoverLink: false, }, { + tooltip: { + show: false, + }, data: seriesData1, type: "bar", barWidth: barWidth, itemStyle: { color: "transparent", - borderWidth: 3, + borderWidth: 1, borderColor: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { offset: 0, diff --git a/src/components/Charts/diggerDailyDistanceChart.vue b/src/components/Charts/diggerDailyDistanceChart.vue index c435f54..76663d6 100644 --- a/src/components/Charts/diggerDailyDistanceChart.vue +++ b/src/components/Charts/diggerDailyDistanceChart.vue @@ -89,9 +89,10 @@ function initChart() { borderWidth: 1, }, grid: { - left: "2%", - right: "0%", + left: "1%", + right: "1%", bottom: "5%", + top: "15%", containLabel: true, }, toolbox: { @@ -172,42 +173,12 @@ function initChart() { shadowOffsetY: 10, }, itemStyle: { - normal: { - color: "rgba(255, 209, 92, 1)", + color: "rgba(255, 209, 92, 1)", borderColor: "", borderWidth: 3, shadowColor: "rgba(255, 209, 92, 01)", shadowBlur: 5, - }, }, - // areaStyle: { - // //区域填充样式 - // normal: { - // //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。 - // color: new echarts.graphic.LinearGradient( - // 0, - // 0, - // 0, - // 1, - // [ - // { - // offset: 0, - // color: "rgba(165, 170, 247, 1)", - // }, - // { - // offset: 0.5, - // color: "rgba(165, 170, 247, 0.2)", - // }, - // { - // offset: 1, - // color: "rgba(165, 170, 247, 0)", - // }, - // ], - // false - // ), - // shadowBlur: 0, //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。 - // }, - // }, }, ], }; diff --git a/src/components/Charts/diggerHourlyDistanceChart.vue b/src/components/Charts/diggerHourlyDistanceChart.vue index 9e89538..7d2de45 100644 --- a/src/components/Charts/diggerHourlyDistanceChart.vue +++ b/src/components/Charts/diggerHourlyDistanceChart.vue @@ -8,10 +8,8 @@ function generateData(totalNum, bigvalue, smallvalue, color) { name: (i + 1).toString(), value: bigvalue, itemStyle: { - normal: { - color: color, - borderWidth: 0, - }, + color: color, + borderWidth: 0, }, }); } else { @@ -19,10 +17,8 @@ function generateData(totalNum, bigvalue, smallvalue, color) { name: (i + 1).toString(), value: smallvalue, itemStyle: { - normal: { - color: "rgba(0,0,0,0)", - borderWidth: 0, - }, + color: "rgba(0,0,0,0)", + borderWidth: 0, }, }); } @@ -220,8 +216,8 @@ function initChart() { /**区域位置*/ grid: { // Adjust grid for spacing - left: "5%", - right: "0%", + left: "1%", + right: "1%", bottom: "5%", top: "15%", containLabel: true, @@ -239,13 +235,14 @@ function initChart() { barWidth: barWidth, symbolOffset: ["10%", "50%"], itemStyle: { - normal: { - color: function (params) { - return colors[0]; - }, + color: function (params) { + return colors[0]; }, }, data: seriesData1, + tooltip: { + show: false, + }, }, { @@ -257,12 +254,13 @@ function initChart() { symbolOffset: ["0%", "0%"], symbolSize: [barWidth, barWidth * 0.3], itemStyle: { - normal: { - color: function (params) { - return "rgba(0,255,252,0.1)"; - }, + color: function (params) { + return "rgba(0,255,252,0.1)"; }, }, + tooltip: { + show: false, + }, }, { // 实体柱状图顶部 @@ -273,11 +271,9 @@ function initChart() { symbolOffset: ["0%", "-50%"], symbolSize: [barWidth, barWidth * 0.3], itemStyle: { - normal: { - borderWidth: 0, - color: function (params) { - return colors1[0]; - }, + borderWidth: 0, + color: function (params) { + return colors1[0]; }, }, }, diff --git a/src/components/Charts/poleDailyAlertChart.vue b/src/components/Charts/poleDailyAlertChart.vue index e8497b6..5332c8c 100644 --- a/src/components/Charts/poleDailyAlertChart.vue +++ b/src/components/Charts/poleDailyAlertChart.vue @@ -29,7 +29,7 @@ const propsData = { legendData: ["撑杆断裂", "撑杆锈蚀", "撑杆穿孔"], seriesData: { 撑杆断裂: [ - 60, 80, 120, 100, 90, 120, 110, 140, 130, 120, 120, 125, 130, 160, 150, + 210, 80, 120, 100, 90, 120, 110, 140, 130, 120, 120, 125, 130, 160, 150, 100, ], 撑杆锈蚀: [ @@ -51,10 +51,11 @@ const option = { y: 0, x2: 0, y2: 0, + + left: "1%", + right: "1%", + bottom: "5%", top: "25%", - left: "16px", - right: "0%", - bottom: "0%", containLabel: true, }, tooltip: { @@ -128,13 +129,11 @@ const option = { smooth: true, //true曲线; false折线 symbol: "none", itemStyle: { - normal: { - color: "#ffc600", //改变折线点的颜色 + color: "#ffc600", //改变折线点的颜色 lineStyle: { color: "#ffc600", //改变折线颜色 type: "solid", }, - }, }, areaStyle: { //折线图颜色半透明 @@ -166,13 +165,11 @@ const option = { symbol: "none", itemStyle: { - normal: { - color: "#24adfe", //改变折线点的颜色 + color: "#24adfe", //改变折线点的颜色 lineStyle: { color: "#24adfe", //改变折线颜色 type: "solid", }, - }, }, areaStyle: { //折线图颜色半透明 @@ -204,13 +201,11 @@ const option = { symbol: "none", itemStyle: { - normal: { - color: "#0DE98A", //改变折线点的颜色 + color: "#0DE98A", //改变折线点的颜色 lineStyle: { color: "#0DE98A", //改变折线颜色 type: "solid", }, - }, }, areaStyle: { //折线图颜色半透明 diff --git a/src/components/Charts/poleDailyDetectionChart.vue b/src/components/Charts/poleDailyDetectionChart.vue index 163f000..ae56d29 100644 --- a/src/components/Charts/poleDailyDetectionChart.vue +++ b/src/components/Charts/poleDailyDetectionChart.vue @@ -9,7 +9,7 @@ const props = defineProps({ const data1 = [ { name: "1日", - value: 175, + value: 220, }, { name: "2日", @@ -21,7 +21,7 @@ const data1 = [ }, { name: "4日", - value: 115, + value: 245, }, { name: "5日", @@ -41,7 +41,7 @@ const data1 = [ }, { name: "9日", - value: 15, + value: 250, }, { name: "10日", @@ -78,8 +78,8 @@ data1.forEach((item) => { xAxisData.push(item.name); seriesData1.push(item.value); }); -var barWidth = 32; -var barWidthBg = 45; +var barWidth = 16; +var barWidthBg = 25; const color = [ { type: "linear", @@ -113,7 +113,7 @@ const option = { grid: { left: "1%", right: "1%", - bottom: "2%", + bottom: "5%", top: "15%", containLabel: true, }, diff --git a/src/components/Charts/poleMonitorChart.vue b/src/components/Charts/poleMonitorChart.vue index 65cff56..0bca92f 100644 --- a/src/components/Charts/poleMonitorChart.vue +++ b/src/components/Charts/poleMonitorChart.vue @@ -1,5 +1,4 @@ - - diff --git a/src/config/dataView.ts b/src/config/dataView.ts new file mode 100644 index 0000000..66dac96 --- /dev/null +++ b/src/config/dataView.ts @@ -0,0 +1,52 @@ +export const dataViewConfig = { + monthArr: [ + { + name: "1月", + value: "1", + }, + { + name: "2月", + value: "2", + }, + { + name: "3月", + value: "3", + }, + { + name: "4月", + value: "4", + }, + { + name: "5月", + value: "5", + }, + { + name: "6月", + value: "6", + }, + { + name: "7月", + value: "7", + }, + { + name: "8月", + value: "8", + }, + { + name: "9月", + value: "9", + }, + { + name: "10月", + value: "10", + }, + { + name: "11月", + value: "11", + }, + { + name: "12月", + value: "12", + }, + ], +}; diff --git a/src/styles/common.scss b/src/styles/common.scss index b6f6eb8..40c75a7 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -94,7 +94,7 @@ color: white; margin-left: 0; height: 32px; - .icon { + .icon { width: 14px; height: 14px; background-image: url("@/assets/common/search_icon.png"); @@ -213,30 +213,30 @@ width: 100%; & > li { - height: 230px; + // height: 230px; background: url("@/assets/common/long_chart_bg.png") no-repeat center center; background-size: 100% 100%; &:nth-child(1) { - width: calc(50% - 50px); - // background-color: red; + width: calc(50% - 50px - 16px); + // overflow: hidden; } &:nth-child(2) { - width: calc(50% + 50px); - overflow: hidden; + width: calc(50% + 50px - 16px); + // overflow: hidden; } .fg-footer-charts-title { @apply fg-title; font-size: 18px; padding-left: 16px; - padding-top: 8px; + padding-top: 7px; + padding-bottom: 1px; } .fg-footer-charts-content { - max-width: 950px; + overflow: hidden; + max-width: 100%; + height: 195px; // background-color: red; - // overflow-x: auto; - // overflow-y: hidden; - height: calc(230px - 40px); } } } diff --git a/src/styles/element-plus.scss b/src/styles/element-plus.scss index 8ce4df6..9ca6317 100644 --- a/src/styles/element-plus.scss +++ b/src/styles/element-plus.scss @@ -112,6 +112,11 @@ width: 150px; background-color: #032b5c; /* 自定义背景色 */ border: none; /* 可选:去掉边框 */ + --fg-select-height: 32px; // *自定义高度 + &.mini-size { + --fg-select-height: 28px; // *自定义高度 + width: 78px; + } .el-select__selected-item { color: white; /* 文字颜色 */ } @@ -120,7 +125,7 @@ background: rgba(74, 126, 191, 0.1); /* 下拉框背景色 */ border: none !important; /* 边框 */ color: white; /* 文字颜色 */ - height: 32px; + height: var(--fg-select-height); /* 高度 */ box-shadow: none; &::placeholder { @@ -128,8 +133,8 @@ } } .el-select__wrapper { - min-height: 32px; - line-height: 32px; + min-height: var(--fg-select-height); + line-height: var(--fg-select-height); box-shadow: 0 0 0 0 !important; } .el-select__arrow { @@ -159,8 +164,8 @@ height: 32px; } } -.el-progress-bar__outer{ - background: rgba(255,255,255,0.3); +.el-progress-bar__outer { + background: rgba(255, 255, 255, 0.3); } /* 修改下拉菜单背景色 */ @@ -207,4 +212,3 @@ background-color: transparent; } } - diff --git a/src/views/dashboard/DataOverview.scss b/src/views/dashboard/DataOverview.scss index 245a0e7..84fa1bb 100644 --- a/src/views/dashboard/DataOverview.scss +++ b/src/views/dashboard/DataOverview.scss @@ -44,14 +44,15 @@ flex-direction: column; margin: 0 24px; background: url("@/assets/home/realTime_monitor_bg.png") no-repeat center; - background-size: contain; + background-size: 100% 100%; + } .monitor-images { - width: 948px; + width: 100%; display: flex; gap: 16px; - padding: 20px 16px; + padding: 32px 16px 15px; flex-wrap: wrap; .monitor-images-item { width: calc(50% - 8px); diff --git a/src/views/dashboard/DataOverview.vue b/src/views/dashboard/DataOverview.vue index 401c5c5..fad115d 100644 --- a/src/views/dashboard/DataOverview.vue +++ b/src/views/dashboard/DataOverview.vue @@ -1,13 +1,9 @@ -// TODO 界面设计改版 @@ -243,25 +245,22 @@ onMounted(() => {
@@ -281,25 +280,22 @@ onMounted(() => {
@@ -311,26 +307,15 @@ onMounted(() => {
-
-
实时监测画面
- -
- -
{{ imageFault[0]?.fault_type }}
-
-
- -
{{ imageFault[1]?.fault_type }}
-
-
- -
{{ imageFault[0]?.fault_type }}
-
-
- -
{{ imageFault[1]?.fault_type }}
-
+
+ 实时监测画面
+
diff --git a/src/views/dashboard/components/AlarmModal.vue b/src/views/dashboard/components/AlarmModal.vue index 7e6cff1..37b4488 100644 --- a/src/views/dashboard/components/AlarmModal.vue +++ b/src/views/dashboard/components/AlarmModal.vue @@ -1,50 +1,3 @@ - - + + + diff --git a/src/views/dashboard/components/VehiclModal.vue b/src/views/dashboard/components/VehiclModal.vue index e51718d..b83bc15 100644 --- a/src/views/dashboard/components/VehiclModal.vue +++ b/src/views/dashboard/components/VehiclModal.vue @@ -18,10 +18,6 @@ const props = withDefaults(defineProps(), { const emit = defineEmits(); -// 处理对话框关闭事件 -const handleClose = () => { - // emits('close'); -}; const show = computed({ get() { @@ -36,7 +32,7 @@ const show = computed({ const itemCount = 16; // 这里可以根据实际需求动态设置