From 73b536bb9f59799041ff0c227c61a731a2f79989 Mon Sep 17 00:00:00 2001 From: waibao2 <1@qq.com> Date: Wed, 29 Oct 2025 17:10:58 +0800 Subject: [PATCH] =?UTF-8?q?docs=EF=BC=9A=E7=BB=9F=E8=AE=A1=E5=88=86?= =?UTF-8?q?=E6=9E=90-=E9=9B=A8=E9=87=8F=E7=BB=9F=E8=AE=A1-=E6=97=B6?= =?UTF-8?q?=E6=AE=B5=E9=99=8D=E9=9B=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/common.scss | 19 +- src/components/ChartsBarLine/index.vue | 2 +- src/components/ChartsTimeBar/index.vue | 2 +- src/components/ChartsTimeLine/index.vue | 2 +- src/components/ESelectSingle/index.vue | 18 +- src/views/statistic/rain/area_rain.vue | 502 ++++++++++++++++++++++++ src/views/statistic/rain/sdjsl.vue | 261 ++++++++++++ 7 files changed, 788 insertions(+), 18 deletions(-) create mode 100644 src/views/statistic/rain/area_rain.vue create mode 100644 src/views/statistic/rain/sdjsl.vue diff --git a/src/assets/styles/common.scss b/src/assets/styles/common.scss index 6053090..baab07b 100644 --- a/src/assets/styles/common.scss +++ b/src/assets/styles/common.scss @@ -106,6 +106,7 @@ } } // 表格始终显示右侧滚动条 +.scrollable-table, .scrollable-table .el-table__body-wrapper { &::-webkit-scrollbar { -webkit-appearance: none; @@ -117,19 +118,31 @@ border-radius: 8px; background-color: rgba(144, 147, 153, 0.5); box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); + visibility: visible !important; + opacity: 1 !important; } &::-webkit-scrollbar-track { background-color: rgba(0, 0, 0, 0.05); } - overflow-y: scroll !important; + // 确保滚动条始终显示 + &::-webkit-scrollbar-thumb { + visibility: visible !important; + } + + overflow-y: auto !important; // 使用 auto 而不是 scroll 避免始终显示滚动条轨道 } -::v-deep .scrollable-table .el-table__body-wrapper { - overflow-x: hidden !important; +// 确保滚动条始终可见的关键规则 +.scrollable-table::-webkit-scrollbar-thumb { + visibility: visible !important; + opacity: 1 !important; } +::v-deep .scrollable-table .el-table__body-wrapper { + overflow-x: auto !important; // 改为 auto 以支持横向滚动 +} .vxe-select--panel.is--transfer { z-index: 999999 !important; } diff --git a/src/components/ChartsBarLine/index.vue b/src/components/ChartsBarLine/index.vue index 593a7bf..854a9ff 100644 --- a/src/components/ChartsBarLine/index.vue +++ b/src/components/ChartsBarLine/index.vue @@ -148,7 +148,7 @@ return { name: props.legendData[index], type: item.type, - barWidth: "20", + barWidth: item.data.length > 100 ? '15%' : "20", yAxisIndex: index, showSymbol: false, itemStyle: { diff --git a/src/components/ChartsTimeBar/index.vue b/src/components/ChartsTimeBar/index.vue index 0ca5275..148b878 100644 --- a/src/components/ChartsTimeBar/index.vue +++ b/src/components/ChartsTimeBar/index.vue @@ -182,7 +182,7 @@ return { name: props.legendData[index], type: props.echartType, - barWidth: "20", + barWidth: item.data.length > 100 ? '15%' : "20", showSymbol: false, itemStyle: { normal: { diff --git a/src/components/ChartsTimeLine/index.vue b/src/components/ChartsTimeLine/index.vue index 64d1f54..75437ce 100644 --- a/src/components/ChartsTimeLine/index.vue +++ b/src/components/ChartsTimeLine/index.vue @@ -173,7 +173,7 @@ return { name: props.legendData[index], type: "line", - barWidth: "20", + barWidth: item.data.length > 100 ? '15%' : "20", showSymbol: false, itemStyle: { normal: { diff --git a/src/components/ESelectSingle/index.vue b/src/components/ESelectSingle/index.vue index 638477f..19d506e 100644 --- a/src/components/ESelectSingle/index.vue +++ b/src/components/ESelectSingle/index.vue @@ -1,14 +1,7 @@ - + @@ -45,7 +38,9 @@ const stnmId = ref('') - const handleChange = (val) => { + const handleChange = (id,name) => { + console.log(id,name) + return stnmId.value = val emit('stationChange', val, options.value, stnm.value) emit('loadingChange', false); @@ -65,8 +60,7 @@ } await nextTick() stnmId.value = options.value[0].stnmId - stnm.value = options.value[0].stnm - + stnm.value = options.value[0].stnm || options.value[0].name emit('stationChange', stnmId.value, options.value, stnm.value) } catch (error) { diff --git a/src/views/statistic/rain/area_rain.vue b/src/views/statistic/rain/area_rain.vue new file mode 100644 index 0000000..6eb3a9b --- /dev/null +++ b/src/views/statistic/rain/area_rain.vue @@ -0,0 +1,502 @@ + + + \ No newline at end of file diff --git a/src/views/statistic/rain/sdjsl.vue b/src/views/statistic/rain/sdjsl.vue new file mode 100644 index 0000000..2fd3464 --- /dev/null +++ b/src/views/statistic/rain/sdjsl.vue @@ -0,0 +1,261 @@ + + + \ No newline at end of file