Commit 80c5cdef by Tianqing Liu

feat: 人员类型修正,增加countdate字段

1 parent b9a1f14f
......@@ -53,6 +53,7 @@ export default {
age: 1,
gender: 0,
type: 0,
countdate: '',
}
}
const formData = ref(getInitialFormData())
......@@ -61,9 +62,12 @@ export default {
console.log('initDialog', data)
formData.value = getInitialFormData()
formData.value.personUnid = data.person_unid
formData.value.age = data.perrsonList.length > 0 ? data.perrsonList[0].age : 1
formData.value.gender = data.perrsonList.length > 0 ? data.perrsonList[0].gender : 0
formData.value.type = data.perrsonList.length > 0 ? data.perrsonList[0].person_type : 0
if (data.perrsonList.length > 0) {
formData.value.age = data.perrsonList[0].age
formData.value.gender = data.perrsonList[0].gender
formData.value.type = data.perrsonList[0].person_type
formData.value.countdate = data.perrsonList[0].counttime
}
isVisible.value = true;
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!