Ver código fonte

3.1.4-sfc.4 清除打印

liuyanpeng 1 ano atrás
pai
commit
90b933cea5
2 arquivos alterados com 10 adições e 10 exclusões
  1. 1 1
      package.json
  2. 9 9
      src/shelf/DeviceTimingSwitcher.vue

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "client-wms-v3",
   "description": "Leanwo Prodog Client",
-  "version": "3.1.4-sfc.3",
+  "version": "3.1.4-sfc.4",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",

+ 9 - 9
src/shelf/DeviceTimingSwitcher.vue

@@ -238,7 +238,6 @@ const toggleSelectAll = async () => {
 
 // 处理搜索
 const handleSearch = debounce(value => {
-  console.log('value', value);
   searchValue.value = value;
   fetchDevices(value, true);
   // updateAllDeviceIds();
@@ -744,11 +743,11 @@ const saveSelections = () => {
   }
 
 
-  console.log('合并后的日期数量:', finalDates.length);
-  console.log('取消的日期数量:', validCanceledDates.length);
-  console.log('cancelDtos', cancelDtos);
-  console.log('dayDtos', dayDtos);
-  console.log('allTimeDtos', allTimeDtos);
+  // console.log('合并后的日期数量:', finalDates.length);
+  // console.log('取消的日期数量:', validCanceledDates.length);
+  // console.log('cancelDtos', cancelDtos);
+  // console.log('dayDtos', dayDtos);
+  // console.log('allTimeDtos', allTimeDtos);
 
   // 调用保存接口
   saveDate(cancelDtos, dayDtos, allTimeDtos);
@@ -861,14 +860,14 @@ const handleOk = () => {
     // 保存该日期的时间段
     dayTimeRanges.value[currentEditDate.value] = formattedTimeRanges;
 
-    console.log('为日期设置时间段:', currentEditDate.value, formattedTimeRanges);
+    // console.log('为日期设置时间段:', currentEditDate.value, formattedTimeRanges);
 
     // 重置当前编辑的日期
     currentEditDate.value = '';
   } else {
     // 如果是通过"设置时间段"按钮打开的,则只保存到全局时间段设置
     selectedTimers.value = formattedTimeRanges;
-    console.log('设置全局时间段:', formattedTimeRanges);
+    // console.log('设置全局时间段:', formattedTimeRanges);
   }
 
   isShowTimerRange.value = false;
@@ -981,7 +980,8 @@ const fetchAllDeviceIds = async () => {
       },
     );
   } catch (error) {
-    console.error('获取所有设备ID失败:', error);
+    // console.error('获取所有设备ID失败:', error);
+    loading.value = false;
     allDeviceIds.value = [];
   }
 };