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="'次数'">