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)