From c6bbcc03fc5005c6cf963cec176be1275a82e4de Mon Sep 17 00:00:00 2001
From: xy <271556543@qq.com>
Date: Tue, 14 Jan 2025 10:42:45 +0800
Subject: [PATCH] 1
---
src/views/preview/index.vue | 1 +
src/views/system/DashboardComponents/department.vue | 3 +++
src/views/system/DashboardComponents/type.vue | 6 ++++--
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/views/preview/index.vue b/src/views/preview/index.vue
index 0c71de3..81c7eac 100644
--- a/src/views/preview/index.vue
+++ b/src/views/preview/index.vue
@@ -7,6 +7,7 @@
+
diff --git a/src/views/system/DashboardComponents/department.vue b/src/views/system/DashboardComponents/department.vue
index 3f81320..7d022f4 100644
--- a/src/views/system/DashboardComponents/department.vue
+++ b/src/views/system/DashboardComponents/department.vue
@@ -92,6 +92,9 @@ export default {
show: true
},
xAxis: {
+ axisLabel: {
+ rotate: 45 // 文字倾斜45度
+ },
data: this.list.map((item) => item.plan_department?.name || item.plan_department_id || ' ')
},
yAxis: {
diff --git a/src/views/system/DashboardComponents/type.vue b/src/views/system/DashboardComponents/type.vue
index aafa373..7b5aedf 100644
--- a/src/views/system/DashboardComponents/type.vue
+++ b/src/views/system/DashboardComponents/type.vue
@@ -85,7 +85,7 @@ export default {
table: [
{
title: '预算类别',
- width: 100,
+ width: 140,
key: 'type_text',
ellipsis: true,
tooltip: true,
@@ -138,7 +138,9 @@ export default {
}
}
},
- created() {},
+ created() {
+ this.getData()
+ },
mounted() {
this.init()
},