浏览代码

mod:photography/check 拍摄物体镜头矫正

panqiuyao 7 月之前
父节点
当前提交
9c35962d7d
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      frontend/src/stores/modules/check.ts

+ 4 - 4
frontend/src/stores/modules/check.ts

@@ -58,9 +58,9 @@ export const checkInfo = defineStore('checkInfo', () => {
     // 计算完成进度
     const getProgress = computed(() => {
         let completed = 0;
-        const total = Object.keys(devices).length;
+        const total = Object.keys(devices).length -1; //去掉蓝牙
         for (const device of Object.values(devices)) {
-            if (device.status === 2) completed++;
+            if (device.status === 2 && device.msg_type !== 'connect_bluetooth') completed++;
         }
         let value = parseFloat((completed / total * 100).toFixed(2));
         return value
@@ -209,10 +209,10 @@ export const checkInfo = defineStore('checkInfo', () => {
 
 
             if(checkTime.value >= 60){
-                if( devices.blue_tooth &&  devices.blue_tooth.status === 0){
+       /*         if( devices.blue_tooth &&  devices.blue_tooth.status === 0){
                     devices.blue_tooth.status = -1;
                     devices.blue_tooth.msg = '遥控器未连接。';
-                }
+                }*/
                 if( devices.mcu.status !== 2 || mcu.status !== 2 ){
                     devices.mcu.status = -1;
                     mcu.status = -1;