From 19bab3fcd2d8c4b944e6874517acf5b68766c281 Mon Sep 17 00:00:00 2001 From: "@zuopngfei" Date: Thu, 3 Jul 2025 18:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=84=BF=E7=A7=91=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/myEcahts.vue | 6 ++++-- src/views/user/userDetail.vue | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/myEcahts.vue b/src/components/myEcahts.vue index 9bd3d58..6cdf7d8 100644 --- a/src/components/myEcahts.vue +++ b/src/components/myEcahts.vue @@ -40,11 +40,13 @@ onMounted(() => { }, xAxis: { type: 'category', - data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'] + data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + boundaryGap: false, + }, yAxis: { type: 'value', - smooth: true + smooth: true, }, series: [ { diff --git a/src/views/user/userDetail.vue b/src/views/user/userDetail.vue index 33a36ed..602b1be 100644 --- a/src/views/user/userDetail.vue +++ b/src/views/user/userDetail.vue @@ -200,7 +200,7 @@ const userInfo = ref({}) const isLoading = ref(true) const chatData = ref({ - height: [75, 77, 80], + height: [], weight: [], totalBilirubin: [], directBilirubin: [] @@ -218,14 +218,14 @@ const getTableData = async () => { tableData.value = questionnairesRes.list chatData.value = { - height: [75, 77, 80], + height: [], weight: [], totalBilirubin: [], directBilirubin: [] } chatRes.list.forEach(item => { - // chatData.value.height.push(item.height) + chatData.value.height.push(item.height) chatData.value.weight.push(item.weight) chatData.value.totalBilirubin.push(item.total_bilirubin) chatData.value.directBilirubin.push(item.direct_bilirubin)