大屏增加开关

This commit is contained in:
曹磊 2025-09-03 08:47:29 +08:00
parent bc48ba4734
commit d8a3452465
1 changed files with 4 additions and 3 deletions

View File

@ -62,8 +62,9 @@
<span>二次网供压</span>
<span>二次网回压</span>
<div>
<span v-if="tableCanScroll" @click="stopScroll()"></span>
<span v-else @click="startScroll()"></span>
<!-- <span v-if="tableCanScroll" @click="stopScroll()"></span>
<span v-else @click="startScroll()"></span>-->
<a-switch v-model:checked="checked1" checked-children="" un-checked-children="" />
</div>
<!-- <img src="./dashboard/dp_icon4-right.png" class="left-icon" /> -->
</div>
@ -315,7 +316,7 @@ function updateChartMain() {
return content;
},
},
xAxis: { type: 'category', data: names, axisLabel: { rotate: 35, interval: 0, color: jbztys.value }, axisTick: { show: false }, axisLine: { show: true, lineStyle: { color: jbzbzys.value } } },
xAxis: { type: 'category', data: names, axisLabel: { rotate: 0, interval: 0, color: jbztys.value }, axisTick: { show: false }, axisLine: { show: true, lineStyle: { color: jbzbzys.value } } },
yAxis: { type: 'value', axisLabel: { color: jbztys.value, margin: 8 }, axisTick: { show: false }, axisLine: { show: true, lineStyle: { color: jbzbzys.value } }, splitLine: { show: false } },
series: [
{ type: 'bar', barWidth: '15px', data: names.map(() => maxVal), barGap: '-100%', itemStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'rgba(106,211,255,0.06)' }, { offset: 1, color: 'rgba(106,211,255,0.01)' }] } }, z: 1, silent: true },