diff --git a/src/components/myEcahts.vue b/src/components/myEcahts.vue
index 6cdf7d8..13fc87e 100644
--- a/src/components/myEcahts.vue
+++ b/src/components/myEcahts.vue
@@ -19,6 +19,10 @@ const props = defineProps({
label: {
type: String,
default: ''
+ },
+ xAxis:{
+ type: Array,
+ default: () => []
}
})
onMounted(() => {
@@ -40,7 +44,7 @@ onMounted(() => {
},
xAxis: {
type: 'category',
- data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
+ data: props.xAxis,
boundaryGap: false,
},
diff --git a/src/components/myEcahtsSh.vue b/src/components/myEcahtsSh.vue
index 0bc5b4a..993f330 100644
--- a/src/components/myEcahtsSh.vue
+++ b/src/components/myEcahtsSh.vue
@@ -41,6 +41,10 @@ const props = defineProps({
label: {
type: String,
default: ''
+ },
+ xAxis:{
+ type: Array,
+ default: () => []
}
})
@@ -79,7 +83,7 @@ onMounted(() => {
},
xAxis: {
type: 'category',
- data: props.months,
+ data: props.xAxis,
boundaryGap: false,
},
yAxis: {
diff --git a/src/views/user/userDetail.vue b/src/views/user/userDetail.vue
index 602b1be..de03390 100644
--- a/src/views/user/userDetail.vue
+++ b/src/views/user/userDetail.vue
@@ -74,6 +74,7 @@