-
测试时间:2025/5/28 下午14:38
-
测试医生:李四
+
@@ -415,8 +418,8 @@
-
+
@@ -460,8 +463,8 @@
-
+
@@ -483,6 +486,74 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -507,6 +578,7 @@ const depthCameraImgSrc = ref('') // 深度相机视频流
const screenshotLoading = ref(false)
const dataCollectionLoading = ref(false)
const isRecording = ref(false)
+const cameraDialogVisible =ref(false) // 设置相机参数弹框
// 录像相关变量
let mediaRecorder = null
@@ -545,6 +617,9 @@ const resDialogVisible = ref(false)
const reshandleClose = () => {
resDialogVisible.value = false
}
+const cameraHandleClose = () => {
+ cameraDialogVisible.value = false
+}
const dialogVisible = ref(false)
const handleClose = () => {
dialogVisible.value = false
@@ -568,17 +643,32 @@ const patientForm = ref({
workplace: '',
email: ''
})
-const occupationOptions = ref([
- { label: '学生', value: '学生' }
-])
-const nationalityOptions = ref([
- { label: '汉族', value: '汉族' }
-])
+const occupationOptions = ref(["学生", "教师", "医生", "护士", "工程师", "程序员", "设计师",
+"会计师", "律师", "警察", "消防员", "军人", "公务员", "销售", "市场营销",
+"人力资源", "行政", "财务", "咨询师", "建筑师", "科研人员", "记者", "编辑",
+"作家", "艺术家", "音乐家", "演员", "导演", "摄影师", "厨师", "服务员",
+"司机", "快递员", "外卖员", "农民", "工人", "电工", "焊工", "机械师",
+"飞行员", "空乘", "船员", "导游", "翻译", "心理咨询师", "社会工作者",
+"运动员", "教练", "经纪人", "投资人", "企业家", "自由职业者"])
+const nationalityOptions = ref(["汉族", "满族", "蒙古族", "回族", "藏族", "维吾尔族", "苗族", "彝族", "壮族",
+"布依族", "朝鲜族", "侗族", "瑶族", "白族", "土家族", "哈尼族", "哈萨克族", "傣族",
+"黎族", "傈僳族", "佤族", "畲族", "高山族", "拉祜族", "水族", "东乡族", "纳西族",
+"景颇族", "柯尔克孜族", "土族", "达斡尔族", "仫佬族", "羌族", "布朗族", "撒拉族",
+"毛南族", "仡佬族", "锡伯族", "阿昌族", "普米族", "塔吉克族", "怒族", "乌孜别克族",
+"俄罗斯族", "鄂温克族", "德昂族", "保安族", "裕固族", "京族", "塔塔尔族", "独龙族",
+"鄂伦春族", "赫哲族", "门巴族", "珞巴族", "基诺族"])
const diagnosticForm = ref({
diagnosis_info: '',
treatment_info: '',
suggestion_info: ''
})
+const cameraForm = ref({ // 相机参数
+ device_index: '', // 序号
+ depth_mode: '', // 相机模式
+ depth_range_min: '', // 距离范围最小值
+ depth_range_max: '', // 距离范围最大值
+ imu_port: '', // IMU串口号
+})
const calculatedAge = ref(null)
//修改
@@ -782,6 +872,9 @@ const savePatient = async () => {
function routeTo(path) {
router.push(`/`)
}
+function cameraUpdate() { // 相机设置数据更新弹框
+ cameraDialogVisible.value = true
+}
const calculateAge = (birthDate) => {
if (!birthDate) return '-'
const today = new Date()
@@ -2152,6 +2245,29 @@ const calibrationClick = async () => {
}
}
+
+const cameraSubmit = async () => {
+
+
+ const response = await fetch(`${BACKEND_URL}/api/devices/calibrate/imu`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(cameraForm.value)
+ })
+ if (response.ok) {
+ const result = await response.json()
+ if (result.success) {
+ ElMessage.success(result.message)
+ } else {
+ ElMessage.error(result.message)
+ }
+ }
+}
+
+
+
onMounted(() => {
// 加载患者信息
loadPatientInfo()
@@ -2294,6 +2410,12 @@ onUnmounted(() => {
margin-left: 40px;
}
+.start-title-btn {
+ font-size: 16px;
+ padding: 8px 24px;
+ margin-left: 20px;
+}
+
.top-bar-right {
display: flex;
align-items: center;
@@ -2722,11 +2844,11 @@ onUnmounted(() => {
}
:deep(.el-form-item__label) {
- color: #ffffff !important;
- font-size: 14px !important;
- font-family: '苹方 粗体', '苹方 中等', '苹方', sans-serif !important;
- font-weight: 700 !important;
- font-style: normal !important;
+ color: #ffffff ;
+ font-size: 16px ;
+ font-family: '苹方 粗体', '苹方 中等', '苹方', sans-serif ;
+ /* font-weight: 700 ; */
+ font-style: normal ;
}
@@ -2870,6 +2992,7 @@ onUnmounted(() => {
}
:deep(.tsDialog.el-dialog .el-select__wrapper) {
+ font-size: 16px;
background-color: #242424;
border: none;
box-shadow: none;
@@ -2901,6 +3024,18 @@ onUnmounted(() => {
:deep(.el-dialog__footer) {
padding: 0px 20px;
}
+:deep(.el-radio__label){
+ font-size: 16px;
+ color: #fff;
+}
+
+
+.cameraFormTitle{
+ font-size: 18px;
+ color: #fff;
+ font-weight: 700;
+ margin: 30px 0px;
+}
\ No newline at end of file
diff --git a/frontend/src/renderer/src/views/Header.vue b/frontend/src/renderer/src/views/Header.vue
index 816655b8..fbc36a73 100644
--- a/frontend/src/renderer/src/views/Header.vue
+++ b/frontend/src/renderer/src/views/Header.vue
@@ -9,6 +9,8 @@
平衡体态检测系统
diff --git a/frontend/src/renderer/src/views/Recording.vue b/frontend/src/renderer/src/views/Recording.vue
index 2085f31d..a28ee8e0 100644
--- a/frontend/src/renderer/src/views/Recording.vue
+++ b/frontend/src/renderer/src/views/Recording.vue
@@ -1473,6 +1473,7 @@ onUnmounted(() => {
:deep(.el-input__inner) {
color: #fff;
+ font-size: 16px;
}
:deep(.el-textarea__inner) {