-
-
-
-
-
-
-
+
+
+
+
+
- 未处理
- 已处理
+ 男
+ 女
+
+
+
+
+
+
+
+
+ 未处理
+ 已处理
-
+
删除
+
+
-
-
-
-
-
-
-
-
测试者ID
-
{{ selectedPatient.id || '-' }}
-
-
-
姓名
-
{{ selectedPatient.name || '-' }}
-
-
-
性别
-
{{ selectedPatient.gender || '-' }}
-
-
-
-
-
出生日期
-
{{ selectedPatient.birth_date ? formatDate(selectedPatient.birth_date) : '-' }}
-
-
-
年龄
-
{{ calculateAge(selectedPatient.birth_date) }}
-
-
-
民族
-
{{ selectedPatient.nationality || '-' }}
-
-
-
-
-
身高cm
-
{{ selectedPatient.height || '-' }}
-
-
-
体重kg
-
{{ selectedPatient.weight || '-' }}
-
-
-
鞋码
-
{{ selectedPatient.shoe_size || '-' }}
-
-
-
-
-
电话号码
-
{{ selectedPatient.phone || '-' }}
-
-
-
建档时间
-
{{ selectedPatient.created_at ? formatDate(selectedPatient.created_at) : '-' }}
-
-
-
-
-
-
+
+
+
+
+

+
+
+
{{ selectedPatient.name }}
+
—
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- cm
-
-
-
-
-
-
- kg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -261,10 +226,15 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import api, { patientAPI } from '../services/api.js'
import { useAuthStore } from '../stores/index.js'
import Header from '@/views/Header.vue'
+import PatientCreate from '@/views/PatientCreate.vue'
+import Detection from '@/views/Detection.vue'
+
import { color } from 'echarts'
const router = useRouter()
const authStore = useAuthStore()
-
+const isDetection = ref(true) // 显示检查页面
+const patienttype = ref('add')
+const patienttotal = ref(0)
// 响应式数据
const activeNav = ref('detection')
const searchKeyword = ref('')
@@ -361,18 +331,20 @@ const calculateAgeres = (date) => {
}
// 计算属性
const filteredPatients = computed(() => {
- if (!searchKeyword.value) {
- return patients.value
- }
+ // if (!searchKeyword.value) {
+ // return patients.value
+ // }
- return patients.value.filter(patient =>
- patient.name.toLowerCase().includes(searchKeyword.value.toLowerCase())
- )
+ // return patients.value.filter(patient =>
+ // patient.name.toLowerCase().includes(searchKeyword.value.toLowerCase())
+ // )
})
// 方法
const handleSearch = () => {
// 搜索逻辑已在计算属性中处理
+ loadPatients()
+
}
// const selectPatient = (patient) => {
@@ -457,7 +429,8 @@ const startDetection = () => {
ElMessage.warning('请先选择患者')
return
}
- router.push(`/detection/${selectedPatient.value.id}`)
+ isDetection.value = true
+ // router.push(`/detection/${selectedPatient.value.id}`)
}
const createNewPatient = async () => {
@@ -465,7 +438,9 @@ const createNewPatient = async () => {
const response = await api.get('/api/license/info')
const isValid = response && response.success && response.data && response.data.valid
if (isValid) {
- router.push('/patient/create')
+ // router.push('/patient/create')
+ patienttype.value = 'add'
+ isCloseCreat.value =true
return
}
const msg ='['+ (response && response.data && response.data.message)+'],软件使用授权不正确,您不能创建新患者!'
@@ -546,16 +521,24 @@ const calculateAge = (birthDate) => {
}
return age
}
-
+const size =ref(15)
+const page =ref(1)
+const search = ref("")
const loadPatients = async () => {
try {
- const response = await patientAPI.getPatients()
+ const response = await patientAPI.getPatients({
+ page:page.value,
+ size:size.value,
+ search:search.value
+ })
if (response.success) {
// 如果返回的是分页数据对象,提取patients数组
if (response.data && Array.isArray(response.data.patients)) {
patients.value = response.data.patients
+ patienttotal.value =response.data.total
} else if (Array.isArray(response.data)) {
patients.value = response.data
+ patienttotal.value =response.total
} else {
patients.value = []
}
@@ -563,32 +546,7 @@ const loadPatients = async () => {
} catch (error) {
console.error('加载患者列表失败:', error)
// 模拟数据
- patients.value = [
- {
- id: 1,
- name: '张三',
- gender: '男',
- age: 45,
- updated_at: '2023-05-01 14:00:00',
- num: 4
- },
- {
- id: 2,
- name: '李四',
- gender: '女',
- updated_at: '2023-05-01 14:00:00',
- num: 4
- },
- {
- id: 3,
- name: '王五',
- gender: '男',
- age: 52,
- updated_at: '2023-05-01 14:00:00',
- num: 4
-
- }
- ]
+ patients.value = []
}
}
const handleClose = () => {
@@ -639,7 +597,24 @@ function delClick(id) {
.catch(() => {
});
}
-
+const isCloseCreat = ref(false)
+function closecreatbox(e){
+ if(e == true){
+ loadPatients()
+ }
+ isCloseCreat.value = false
+}
+function endChange(){
+ isDetection.value = false
+}
+function handleCurrentChange (val) {
+ page.value = val
+ loadPatients()
+}
+function editClick(){
+ patienttype.value = 'edit'
+ isCloseCreat.value = true
+}
diff --git a/frontend/src/renderer/src/views/Detection - 副本.vue b/frontend/src/renderer/src/views/Detection - 副本.vue
new file mode 100644
index 00000000..8229f853
--- /dev/null
+++ b/frontend/src/renderer/src/views/Detection - 副本.vue
@@ -0,0 +1,3001 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![深度相机视频流]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
旋转角
+
+
{{ headlist.rotation }}°
+
+
左最大:{{
+ headPoseMaxValues.rotationLeftMax.toFixed(1) }}°
+
+
+
+
右最大:{{
+ headPoseMaxValues.rotationRightMax.toFixed(1) }}°
+
+
+
+
+
倾斜角
+
+
{{ headlist.tilt }}°
+
+
左最大:{{
+ headPoseMaxValues.tiltLeftMax.toFixed(1) }}°
+
+
+
+
右最大:{{
+ headPoseMaxValues.tiltRightMax.toFixed(1) }}°
+
+
+
+
俯仰角
+
+
{{ headlist.pitch }}°
+
+
俯最大:{{
+ headPoseMaxValues.pitchDownMax.toFixed(1) }}°
+
+
+
仰最大:{{
+ headPoseMaxValues.pitchUpMax.toFixed(1) }}°
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
姓名
+
{{ patientInfo.name ||
+ '-' }}
+
+
+
测试者ID
+
{{ patientInfo.id || '-' }}
+
+
+
+
+
性别
+
{{ patientInfo.gender || '-' }}
+
+
+
出生日期
+
{{ patientInfo.birth_date ? formatDate(patientInfo.birth_date) : '-' }}
+
+
+
+
+
+
年龄
+
{{ calculateAge(patientInfo.birth_date) }}
+
+
+
民族
+
{{ patientInfo.nationality || '-' }}
+
+
+
+
+
身高cm
+
{{ patientInfo.height || '-' }}
+
+
+
体重kg
+
{{ patientInfo.weight || '-' }}
+
+
+
+
+
鞋码
+
{{ patientInfo.shoe_size || '-' }}
+
+
+
电话号码
+
{{ patientInfo.phone || '-' }}
+
+
+
+
+
建档时间
+
{{ patientInfo.created_at ? formatDate(patientInfo.created_at) : '-' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![camera1]()
+
+ 相机1
+
+
+
+
![camera2]()
+
+ 相机2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
用户ID:
{{ patientInfo.sessionId }}
+
+
+
姓名:{{ patientInfo.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
测试医生:李四
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cm
+
+
+
+
+
+
+ kg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/renderer/src/views/Detection.vue b/frontend/src/renderer/src/views/Detection.vue
index f087f07f..cbbd4d3b 100644
--- a/frontend/src/renderer/src/views/Detection.vue
+++ b/frontend/src/renderer/src/views/Detection.vue
@@ -1,587 +1,292 @@
-
+
+
+
+
检测中...
+
{{ patientInfo.name }}
+
男
+
+
49
+
结束监测
+
+
+
+

+
+
+

+
+
+

+
+
+

+ 录像中: {{ formattedTime }}
+
+
+
+
+
+
+

+
+
+

+
+
+
-