Browse Source

mod:运行并拍照改成 数字

panqiuyao 8 months ago
parent
commit
91b3c4170e
2 changed files with 8 additions and 6 deletions
  1. 1 1
      frontend/src/router/index.ts
  2. 7 5
      frontend/src/views/Setting/index.vue

+ 1 - 1
frontend/src/router/index.ts

@@ -5,7 +5,7 @@ import { authGuard } from './plugins/authGuard'
 const routes: RouteRecordRaw[] = [
     {
         path: "/",
-        redirect: "/photography/check"
+        redirect: "/home"
     },
     {
         path: "/home",

+ 7 - 5
frontend/src/views/Setting/index.vue

@@ -823,15 +823,15 @@ function testShoesFlip(){
     socketStore.sendMessage({
       type: 'run_mcu_single',
       data: {
-        camera_height: editRowData.value.camera_height,
-        camera_angle: editRowData.value.camera_angle,
+``        camera_height: Number(editRowData.value.camera_height),
+        camera_angle:  Number(editRowData.value.camera_angle),
         led_switch:editRowData.value.led_switch,
         id:0,
         mode_type:'执行'+ activeTab.value === 'left' ? '左脚' : '右脚'+'程序',
-        turntable_position:editRowData.value.turntable_position,
+        turntable_position:Number(editRowData.value.turntable_position),
         action_name:editRowData.value.action_name || '测试',
-        turntable_angle: editRowData.value.turntable_angle,
-        shoe_upturn: editRowData.value.shoe_upturn,
+        turntable_angle: Number(editRowData.value.turntable_angle),
+        shoe_upturn: Number(editRowData.value.shoe_upturn),
         action_index:1,
         number_focus:0,
         take_picture:false,
@@ -844,6 +844,7 @@ function testShoesFlip(){
 
     clientStore.ipc.on(icpList.socket.message+'_run_mcu_single_finish', async (event, result) => {
 
+/*
       clientStore.ipc.removeAllListeners(icpList.camera.takePictures);
       clientStore.ipc.send(icpList.camera.takePictures,false);
       clientStore.ipc.on(icpList.camera.takePictures, async (event, result) => {
@@ -854,6 +855,7 @@ function testShoesFlip(){
         },5000)
         clientStore.ipc.removeAllListeners(icpList.camera.takePictures);
       })
+*/
 
 
     })