解决合并冲突
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// 选择患者信息
|
||||
export const patientInfo = ref()
|
||||
export function updatePatientInfo(info) {
|
||||
patientInfo.value = info
|
||||
}
|
||||
|
||||
// 多选患者
|
||||
export const patientInfoList = ref([])
|
||||
export function updatePatientInfoList(info) {
|
||||
patientInfoList.value = info
|
||||
}
|
||||
|
||||
// 获取单选患者信息(去掉复选框模式下使用)
|
||||
export function getSinglePatient() {
|
||||
// 如果有选中的患者,只返回第一个患者信息,实现单选效果
|
||||
if (patientInfoList.value && patientInfoList.value.length > 0) {
|
||||
return patientInfoList.value[0];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user