From bcaa572e87c7228d19ac4c73ae096b496f7a4793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 3 Jul 2025 16:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chart/Bar.vue | 15 ++ src/views/zh/hy/tdcs/index.vue | 2 +- src/views/zh/hy/tdzl/index.vue | 2 +- src/views/zh/hy/zc/index.vue | 2 +- src/views/zh/shebei/tdcs/index.vue | 15 +- src/views/zh/shebei/zcxx/DeviceInfo.api.ts | 55 +------ src/views/zh/shebei/zcxx/DeviceInfo.data.ts | 74 ++++----- src/views/zh/shebei/zcxx/DeviceInfoList.vue | 168 ++++---------------- 8 files changed, 93 insertions(+), 240 deletions(-) diff --git a/src/components/chart/Bar.vue b/src/components/chart/Bar.vue index 796330f..b0e5b8c 100644 --- a/src/components/chart/Bar.vue +++ b/src/components/chart/Bar.vue @@ -37,6 +37,19 @@ type: String, default: '#1890ff', }, + axisLabel: { + type: Object, + default: () => ({ rotate: 0}), + }, + grid: { + type: Object, + default: () => ({ + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true + }), + }, // update-end--author:liaozhiyang---date:20240407---for:【QQYUN-8762】首页默认及echars颜色调整 }, setup(props) { @@ -53,9 +66,11 @@ }, }, }, + grid: props.grid, xAxis: { type: 'category', data: [], + axisLabel: props.axisLabel, }, yAxis: { type: 'value', diff --git a/src/views/zh/hy/tdcs/index.vue b/src/views/zh/hy/tdcs/index.vue index 65a596b..274a4c6 100644 --- a/src/views/zh/hy/tdcs/index.vue +++ b/src/views/zh/hy/tdcs/index.vue @@ -272,13 +272,13 @@ const handleBlock = (record) => { onMounted(() => { - getHousingestates(); if (parmas.type == '1') { parmas.beginTime = getPreviousDate(0) + ' 00:00:00'; parmas.endTime = getPreviousDate(0) + ' 23:59:59'; } loadDate(); loadListDate(); + getHousingestates(); }) diff --git a/src/views/zh/hy/tdzl/index.vue b/src/views/zh/hy/tdzl/index.vue index 13f72ee..fd6c454 100644 --- a/src/views/zh/hy/tdzl/index.vue +++ b/src/views/zh/hy/tdzl/index.vue @@ -95,12 +95,12 @@ } onMounted(() => { - getHousingestates(); if(parmas.type=='1'){ parmas.beginTime=getPreviousDate(2)+' 00:00:00'; parmas.endTime=getPreviousDate(0)+' 23:59:59'; } loadDate(); + getHousingestates(); }) diff --git a/src/views/zh/hy/zc/index.vue b/src/views/zh/hy/zc/index.vue index 692ec2c..55b5837 100644 --- a/src/views/zh/hy/zc/index.vue +++ b/src/views/zh/hy/zc/index.vue @@ -74,11 +74,11 @@ } onMounted(() => { - getHousingestates(); if(parmas.dateString==''){ parmas.dateString=getCurrent(); } loadDate(); + getHousingestates(); }) diff --git a/src/views/zh/shebei/tdcs/index.vue b/src/views/zh/shebei/tdcs/index.vue index 9971fb2..e538784 100644 --- a/src/views/zh/shebei/tdcs/index.vue +++ b/src/views/zh/shebei/tdcs/index.vue @@ -16,8 +16,7 @@ 全部 - {{ - item.housingestateName }} + {{item.housingestateName }} @@ -41,7 +40,9 @@ + :itemStyle="{ normal: { label: { show: true, position: 'top' } } }" + :axisLabel="{ rotate: 45}" + :seriesName="'次数'">