Jelajahi Sumber

日常开发

林旭祥 2 minggu lalu
induk
melakukan
34219a77e0

+ 7 - 1
src/components/OnlineFaceWindow/index.vue

@@ -57,21 +57,25 @@ onMounted(() => {
  * 初始化
  */
 const getInit = async () => {
+  console.log("触发人脸识别")
   let deviceid = localStorage.getItem('deviceid') || '';
   if (!deviceid) {
     proxy?.$modal.msgError(`请重新登录绑定设备号后使用`);
     return false;
   }
   faceWs((e: any) => {
+    console.log("faceWS",e)
     if (e?.wksid) {
       //获取设备信息
       startDevice({ deviceid: deviceid });
+      console.log("获取设备信息")
     }
     if (e?.type == 'fe_device_init_result') {
       //接收设备信息并发送请求
       if (e?.device_info) {
         deviceInfo.value = e.device_info;
         getCheckFace();
+        console.log("返回设备信息,检查是否支持人脸识别")
       } else {
         proxy?.$modal.msgError(`设备信息缺失,请重新登录绑定设备号后使用`);
       }
@@ -81,6 +85,7 @@ const getInit = async () => {
       if (e?.code == 0) {
         //查看人脸识别状态,如果不处于关闭就先关闭再重新启动(可能会APP退出然后工作站还在运行的可能性)
         getFaceState(handcontroller_id);
+        console.log("查看人脸识别状态")
       } else {
         let msg = "";
         if (e.code == 102402) {
@@ -95,7 +100,8 @@ const getInit = async () => {
           }
         } else {
           msg = `人脸识别模块不可用,code:${e.code}`;
-        } proxy?.$modal.msgWarning(msg);
+        }
+        proxy?.$modal.msgWarning(msg);
         getCloseFace();
       }
     }

+ 2 - 2
src/components/ReportList/index.vue

@@ -133,7 +133,7 @@ const getScroll = (event?: any) => {
   let clientHeight = obj.clientHeight;
   //提前100高度加载数据
   if (scrollTop + clientHeight + 150 >= scrollHeight) {
-    console.log('到底了!')
+    // console.log('到底了!')
     //继续加载下一页
     if (debounceTime.value) {
       clearTimeout(debounceTime.value)
@@ -143,7 +143,7 @@ const getScroll = (event?: any) => {
       getReportList();
     }, 500)
   } else {
-    console.log('没到底')
+    // console.log('没到底')
   }
 };
 

+ 2 - 2
src/views/analysis/index.vue

@@ -182,7 +182,7 @@ const getScroll = (event?: any) => {
   let clientHeight = obj.clientHeight;
   //提前100高度加载数据
   if (scrollTop + clientHeight + 150 >= scrollHeight) {
-    console.log('到底了!');
+    // console.log('到底了!');
     //继续加载下一页
     if (debounceTime.value) {
       clearTimeout(debounceTime.value);
@@ -192,7 +192,7 @@ const getScroll = (event?: any) => {
       getReportList();
     }, 500);
   } else {
-    console.log('没到底');
+    // console.log('没到底');
   }
 };
 

+ 2 - 2
src/views/ranking/index.vue

@@ -613,7 +613,7 @@ const getScroll = (event?: any, grade?: any) => {
   let clientHeight = obj.clientHeight;
   //提前100高度加载数据
   if (scrollTop + clientHeight + 150 >= scrollHeight) {
-    console.log('到底了!')
+    // console.log('到底了!')
     //继续加载下一页
     if (debounceTime.value) {
       clearTimeout(debounceTime.value)
@@ -623,7 +623,7 @@ const getScroll = (event?: any, grade?: any) => {
       getGradeList(grade);
     }, 500)
   } else {
-    console.log('没到底')
+    // console.log('没到底')
   }
 };
 

+ 2 - 2
src/views/score/index.vue

@@ -169,7 +169,7 @@ const getNext = (event?: any) => {
   let clientHeight = obj.clientHeight;
   //提前100高度加载数据
   if (scrollTop + clientHeight + 200 >= scrollHeight) {
-    console.log('到底了!');
+    // console.log('到底了!');
     //继续加载下一页
     if (debounceTime.value) {
       clearTimeout(debounceTime.value);
@@ -179,7 +179,7 @@ const getNext = (event?: any) => {
       getReportList();
     }, 500);
   } else {
-    console.log('没到底');
+    // console.log('没到底');
   }
 };