-
-
+
+
+
就医次数
@@ -69,8 +69,8 @@
-
-
+
+
+
就医费用
@@ -82,8 +82,8 @@
-
-
+
+
+
常去医院
@@ -93,8 +93,8 @@
-
-
+
+
+
常去科室
@@ -104,8 +104,8 @@
-
-
+
+
+
常看大夫
@@ -117,8 +117,8 @@
-
-
+
+
+
门诊次数
@@ -129,8 +129,8 @@
-
-
+
+
+
急诊次数
@@ -141,8 +141,8 @@
-
-
+
+
+
输液次数
@@ -154,8 +154,8 @@
-
-
+
+
+
住院次数
@@ -166,8 +166,8 @@
-
-
+
+
+
线上问诊次数
@@ -248,6 +248,7 @@
import dayjs from 'dayjs'
import * as echarts from 'echarts'
import { ElMessage } from 'element-plus'
+import { Document, Money, OfficeBuilding, DataBoard, User, FirstAidKit, Notification, House, ChatDotRound } from '@element-plus/icons-vue'
import yearPicker from '@/components/YearPicker/index.vue'
import { getDoctorAnalysis } from '@/api/health/statisticAnalysis'
import { listPerson, getPerson } from '@/api/health/person'
@@ -550,6 +551,9 @@ const drawBar = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const drawLine = (data) => {
@@ -645,21 +649,67 @@ const drawLine = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const currentType = ref('就医费用柱状图')
const handleRadioChange = (type) => {
currentType.value = type
- switch (type) {
- case '就医费用柱状图':
- drawBar(chartData.value)
- break
- case '就医费用折线图':
- drawLine(chartData.value)
- break
- default:
- break
- }
+ nextTick(() => {
+ switch (type) {
+ case '就医费用柱状图':
+ drawBar(chartData.value)
+ break
+ case '就医费用折线图':
+ drawLine(chartData.value)
+ break
+ default:
+ break
+ }
+ })
}
getPersonList()
+
+
diff --git a/src/views/health/healthAnalysis/index.vue b/src/views/health/healthAnalysis/index.vue
index b110d8c..7df2a45 100644
--- a/src/views/health/healthAnalysis/index.vue
+++ b/src/views/health/healthAnalysis/index.vue
@@ -1,195 +1,291 @@
-
-
健康档案数据总览
-
-
-
-
-
+
diff --git a/src/views/health/healthStatistic/index.vue b/src/views/health/healthStatistic/index.vue
index b1eeffc..7d1eea3 100644
--- a/src/views/health/healthStatistic/index.vue
+++ b/src/views/health/healthStatistic/index.vue
@@ -57,8 +57,8 @@
-
-
+ 成员总数
- {{ personCount }}人
-
+
+
+
-
+ 健康档案数据总览
-
-
-
-
-
-
- 档案数量
- {{ healthRecordCount }}份
-
-
-
-
-
-
- 活动次数
- {{ activityCount }}次
-
-
-
-
-
-
- 活动费用
- {{ activityCost }}元
-
-
-
-
-
-
-
-
- 就医医院
- {{ hospitalCount }}个
-
-
-
-
-
-
- 就诊大夫
- {{ doctorTotalCount }}个
-
-
-
-
-
-
- 就医次数
- {{ doctorCount }}次
-
-
-
-
-
-
- 就医费用
- {{ doctorCost }}元
-
-
-
-
-
-
-
-
- 用药天数
- {{ marDayCount }}天
-
-
-
-
-
-
- 用药次数
- {{ marCount }}次
-
-
-
-
-
-
- 用药种类
- {{ medicalTypeCount }}种
-
-
-
-
-
-
- 测量体温次数
- {{ temperatureTotalCount }}次
-
-
-
-
-
-
-
-
- 发烧天数(>=37℃)
- {{ feverDayCount }}天
-
-
-
-
-
-
- 低烧次数(36.9~37.5℃)
- {{ lowerTempCount }}次
-
-
-
-
-
-
- 中烧次数(37.5~38.5℃)
- {{ middleTempCount }}次
-
-
-
-
-
-
- 高烧次数(>=38.5℃)
- {{ higherTempCount }}次
-
-
-
+ {{ item.personName + '-健康档案概览' }}
-
-
-
-
-
-
-
-
- 档案数量
- {{ item.healthRecordCount }}份
-
-
-
-
-
-
- 就医医院
- {{ item.hospitalCount }}个
-
-
-
-
-
-
- 就诊大夫
- {{ item.doctorTotalCount }}个
-
-
-
-
-
-
- 就医次数
- {{ item.doctorCount }}次
-
-
-
-
-
-
-
-
- 就医费用
- {{ item.doctorCost }}元
-
-
-
-
-
-
- 用药天数
- {{ item.marDayCount }}天
-
-
-
-
-
-
- 用药次数
- {{ item.marCount }}次
-
-
-
-
-
-
- 发烧天数(>=37℃)
- {{ item.feverDayCount }}天
-
+
+
+
+
+
+
+
+
+
+
+ 成员总数
+ {{ personCount }}人
+
+
+
+
+
+
+
+
+ 档案数量
+ {{ healthRecordCount }}份
+
+
+
+
+
+
+
+
+ 活动次数
+ {{ activityCount }}次
+
+
+
+
+
+
+
+ 活动费用
+ {{ activityCost }}元
+
+
+
+
+
+
+
+
+
+
+
+ 就医医院
+ {{ hospitalCount }}个
+
+
+
+
+
+
+
+
+ 就诊大夫
+ {{ doctorTotalCount }}个
+
+
+
+
+
+
+
+
+ 就医次数
+ {{ doctorCount }}次
+
+
+
+
+
+
+
+ 就医费用
+ {{ doctorCost }}元
+
+
+
+
+
+
+
+
+
+
+
+ 用药天数
+ {{ marDayCount }}天
+
+
+
+
+
+
+
+
+ 用药次数
+ {{ marCount }}次
+
+
+
+
+
+
+
+
+ 用药种类
+ {{ medicalTypeCount }}种
+
+
+
+
+
+
+
+ 测量体温次数
+ {{ temperatureTotalCount }}次
+
+
+
+
+
+
+
+
+
+
+
+
+ 发烧天数(>=37℃)
+ {{ feverDayCount }}天
+
+
+
+
+
+
+
+
+ 低烧次数(36.9~37.5℃)
+ {{ lowerTempCount }}次
+
+
+
+
+
+
+
+
+ 中烧次数(37.5~38.5℃)
+ {{ middleTempCount }}次
+
+
+
+
+
+
+
+ 高烧次数(>=38.5℃)
+ {{ higherTempCount }}次
+
+
+
+ {{ item.personName }} - 健康档案概览
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 档案数量
+ {{ item.healthRecordCount }}份
+
+
+
+
+
+
+
+
+ 就医医院
+ {{ item.hospitalCount }}个
+
+
+
+
+
+
+
+
+ 就诊大夫
+ {{ item.doctorTotalCount }}个
+
+
+
+
+
+
+
+ 就医次数
+ {{ item.doctorCount }}次
+
+
+
+
+
+
+
+
+
+
+ 就医费用
+ {{ item.doctorCost }}元
+
+
+
+
+
+
+
+
+ 用药天数
+ {{ item.marDayCount }}天
+
+
+
+
+
+
+
+
+ 用药次数
+ {{ item.marCount }}次
+
+
+
+
+
+
+
+ 发烧天数(>=37℃)
+ {{ item.feverDayCount }}天
+
-
-
+
+
+
档案数量
@@ -69,8 +69,8 @@
-
-
+
+
+
档案过程记录次数
@@ -81,8 +81,8 @@
-
-
+
+
+
平均康复周期
@@ -94,8 +94,8 @@
-
-
+
+
+
就医医院
@@ -107,8 +107,8 @@
-
-
+
+
+
就诊大夫
@@ -121,8 +121,8 @@
-
-
+
+
+
就医次数
@@ -133,8 +133,8 @@
-
-
+
+
+
就医费用
@@ -145,8 +145,8 @@
-
-
+
+
+
用药天数
@@ -157,8 +157,8 @@
-
-
+
+
+
用药次数
@@ -169,8 +169,8 @@
-
-
+
+
+
发烧天数
@@ -218,6 +218,7 @@
import dayjs from 'dayjs'
import * as echarts from 'echarts'
import { ElMessage } from 'element-plus'
+import { FolderOpened, Document, Timer, OfficeBuilding, User, FirstAidKit, Money, Calendar, Sunny } from '@element-plus/icons-vue'
import yearPicker from '@/components/YearPicker/index.vue'
import { getRecordAnalysis } from '@/api/health/statisticAnalysis'
import { listPerson } from '@/api/health/person'
@@ -508,6 +509,9 @@ const drawBar = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const drawLine = (data) => {
@@ -604,21 +608,67 @@ const drawLine = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const currentType = ref('档案费用柱状图')
const handleRadioChange = (type) => {
currentType.value = type
- switch (type) {
- case '档案费用柱状图':
- drawBar(chartData.value)
- break
- case '档案费用折线图':
- drawLine(chartData.value)
- break
- default:
- break
- }
+ nextTick(() => {
+ switch (type) {
+ case '档案费用柱状图':
+ drawBar(chartData.value)
+ break
+ case '档案费用折线图':
+ drawLine(chartData.value)
+ break
+ default:
+ break
+ }
+ })
}
getPersonList()
+
+
diff --git a/src/views/health/marStatistic/index.vue b/src/views/health/marStatistic/index.vue
index 30150c4..7dfa571 100644
--- a/src/views/health/marStatistic/index.vue
+++ b/src/views/health/marStatistic/index.vue
@@ -57,8 +57,8 @@
-
-
+
+
+
用药天数
@@ -69,8 +69,8 @@
-
-
+
+
+
用药种类
@@ -81,8 +81,8 @@
-
-
+
+
+
用药次数
@@ -94,8 +94,8 @@
-
-
+
+
+
{{ mar.top1Name }}
@@ -106,8 +106,8 @@
-
-
+
+
+
{{ mar.top2Name }}
@@ -118,8 +118,8 @@
-
-
+
+
+
{{ mar.top3Name }}
@@ -131,8 +131,8 @@
-
-
+
+
+
{{ mar.top4Name }}
@@ -143,8 +143,8 @@
-
-
+
+
+
{{ mar.top5Name }}
@@ -154,8 +154,8 @@
-
-
+
+
+
{{ mar.top6Name }}
@@ -166,8 +166,8 @@
-
-
+
+
+
{{ mar.top7Name }}
@@ -178,8 +178,8 @@
-
-
+
+
+
{{ mar.top8Name }}
@@ -189,8 +189,8 @@
-
-
+
+
+
{{ mar.top9Name }}
@@ -260,6 +260,7 @@
import dayjs from 'dayjs'
import * as echarts from 'echarts'
import { ElMessage } from 'element-plus'
+import { Calendar, Collection, Medal, Memo } from '@element-plus/icons-vue'
import yearPicker from '@/components/YearPicker/index.vue'
import { getMarAnalysis } from '@/api/health/statisticAnalysis'
import { listPerson, getPerson } from '@/api/health/person'
@@ -567,6 +568,9 @@ const drawBar = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const drawLine = (data) => {
@@ -673,21 +677,67 @@ const drawLine = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const currentType = ref('用药次数柱状图')
const handleRadioChange = (type) => {
currentType.value = type
- switch (type) {
- case '用药次数柱状图':
- drawBar(chartData.value)
- break
- case '用药次数折线图':
- drawLine(chartData.value)
- break
- default:
- break
- }
+ nextTick(() => {
+ switch (type) {
+ case '用药次数柱状图':
+ drawBar(chartData.value)
+ break
+ case '用药次数折线图':
+ drawLine(chartData.value)
+ break
+ default:
+ break
+ }
+ })
}
getPersonList()
+
+
diff --git a/src/views/health/milkPowderStatistic/index.vue b/src/views/health/milkPowderStatistic/index.vue
index 377ad97..42340b3 100644
--- a/src/views/health/milkPowderStatistic/index.vue
+++ b/src/views/health/milkPowderStatistic/index.vue
@@ -52,8 +52,8 @@
-
-
+
+
+
今日吃奶次数
@@ -64,8 +64,8 @@
-
-
+
+
+
今日吃奶量
@@ -76,8 +76,8 @@
-
-
+
+
+
今日单次平均吃奶量
@@ -88,8 +88,8 @@
-
-
+
+
+
近7日吃奶量
@@ -101,8 +101,8 @@
-
-
+
+
+
近7日日平均吃奶量
@@ -115,8 +115,8 @@
-
-
+
+
+
近1月吃奶量
@@ -127,8 +127,8 @@
-
-
+
+
+
近3月吃奶量
@@ -139,8 +139,8 @@
-
-
+
+
+
近6月吃奶量
@@ -151,8 +151,8 @@
-
-
+
+
+
近1年吃奶量
@@ -163,8 +163,8 @@
-
-
+
+
+
总吃奶量
@@ -205,6 +205,7 @@
import dayjs from 'dayjs'
import * as echarts from 'echarts'
import { ElMessage } from 'element-plus'
+import { Clock, MilkTea, DataAnalysis, TrendCharts, DataLine, Calendar, DataBoard, Histogram, PieChart } from '@element-plus/icons-vue'
import yearPicker from '@/components/YearPicker/index.vue'
import { getMilkPowderAnalysis } from '@/api/health/statisticAnalysis'
import { listPerson } from '@/api/health/person'
@@ -476,6 +477,9 @@ const drawBar = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const drawLine = (data) => {
@@ -572,21 +576,67 @@ const drawLine = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const currentType = ref('柱状图')
const handleRadioChange = (type) => {
currentType.value = type
- switch (type) {
- case '柱状图':
- drawBar(chartData.value)
- break
- case '折线图':
- drawLine(chartData.value)
- break
- default:
- break
- }
+ nextTick(() => {
+ switch (type) {
+ case '柱状图':
+ drawBar(chartData.value)
+ break
+ case '折线图':
+ drawLine(chartData.value)
+ break
+ default:
+ break
+ }
+ })
}
getPersonList()
+
+
diff --git a/src/views/health/temperatureStatistic/index.vue b/src/views/health/temperatureStatistic/index.vue
index 7abcfd4..699babd 100644
--- a/src/views/health/temperatureStatistic/index.vue
+++ b/src/views/health/temperatureStatistic/index.vue
@@ -56,9 +56,9 @@
-
-
-
+
+
+
+
发烧天数
@@ -69,8 +69,8 @@
-
-
+
+
+
测量次数
@@ -81,8 +81,8 @@
-
-
+
+
+
最高体温
@@ -93,8 +93,8 @@
-
-
+
+
+
最低体温
@@ -105,8 +105,8 @@
-
-
+
+
+
平均体温
@@ -118,8 +118,8 @@
-
-
+
+
+
正常次数
@@ -129,8 +129,8 @@
-
-
+
+
+
低烧次数
@@ -140,8 +140,8 @@
-
-
+
+
+
中烧次数
@@ -151,8 +151,8 @@
-
-
+
+
+
高烧次数
@@ -201,6 +201,7 @@
import dayjs from 'dayjs'
import * as echarts from 'echarts'
import { ElMessage } from 'element-plus'
+import { TrendCharts, Histogram, Sunny, Cloudy, DataLine, CircleCheck, Warning } from '@element-plus/icons-vue'
import yearPicker from '@/components/YearPicker/index.vue'
import { getTemperatureAnalysis } from '@/api/health/statisticAnalysis'
import { listPerson, getPerson } from '@/api/health/person'
@@ -508,6 +509,9 @@ const drawBar = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const drawLine = (data) => {
@@ -614,21 +618,67 @@ const drawLine = (data) => {
}
myChart.setOption(option)
+ setTimeout(() => {
+ myChart.resize()
+ }, 100)
}
const currentType = ref('柱状图')
const handleRadioChange = (type) => {
currentType.value = type
- switch (type) {
- case '柱状图':
- drawBar(chartData.value)
- break
- case '折线图':
- drawLine(chartData.value)
- break
- default:
- break
- }
+ nextTick(() => {
+ switch (type) {
+ case '柱状图':
+ drawBar(chartData.value)
+ break
+ case '折线图':
+ drawLine(chartData.value)
+ break
+ default:
+ break
+ }
+ })
}
getPersonList()
+
+