@@ -77,6 +78,9 @@
+
+
+
CM
@@ -189,7 +193,8 @@ function reset() {
birthday: null,
nickName: null,
height: null,
- weight: null
+ weight: null,
+ ranking: 0
}
proxy.resetForm('personRef')
}
diff --git a/src/views/health/temperatureRecord/index.vue b/src/views/health/temperatureRecord/index.vue
index d4f346d..9d6abaf 100644
--- a/src/views/health/temperatureRecord/index.vue
+++ b/src/views/health/temperatureRecord/index.vue
@@ -174,6 +174,9 @@ const handlePersonChange = (personId) => {
queryHealthRecordParams.personId = personId
listHealthRecord(queryHealthRecordParams).then((response) => {
healthRecordList.value = response.rows
+ if (response.rows.length > 0) {
+ form.value.healthRecordId = healthRecordList.value[0].id
+ }
})
}
@@ -274,6 +277,16 @@ const handleView = (row) => {
/** 新增按钮操作 */
function handleAdd() {
reset()
+ if (personList.value.length > 0) {
+ form.value.personId = personList.value[0].id
+ queryHealthRecordParams.personId = personList.value[0].id
+ listHealthRecord(queryHealthRecordParams).then((response) => {
+ healthRecordList.value = response.rows
+ if (response.rows.length > 0) {
+ form.value.healthRecordId = healthRecordList.value[0].id
+ }
+ })
+ }
open.value = true
title.value = '添加体温记录'
}