qinhb преди 1 месец
родител
ревизия
c067ec2a72
променени са 1 файла, в които са добавени 11 реда и са изтрити 73 реда
  1. 11 73
      src/views/pro/traceability/components/collectionCom.vue

+ 11 - 73
src/views/pro/traceability/components/collectionCom.vue

@@ -199,26 +199,20 @@ const showLable = (key) => {
   switch (key) {
     case "tipTemperature":
       return "温度";
-    case "errCode":
-      return "错误代码";
-    case "Finalangle":
-      return "最终角度";
-    case "Finaltime":
-      return "最终时间";
-    case "Tighteningresult":
-      return "最终结果";
-    case "Finaltorque":
+    case "Pset":
+      return "Pset号";
+    case "torque":
       return "最终扭矩";
+    case "angle":
+      return "最终角度";
+    case "duration":
+      return "持续时间";
     case "DataTimes":
       return "采集时间";
-    case "taskNo":
-      return "当前任务号";
-    case "warning":
+    case "result":
+      return "拧紧结果";
+    case "error":
       return "警报";
-    case "tightenResult":
-      return "最终拧紧结果";
-    case "totalCycles":
-      return "总圈数";
     case "length":
       return "长度";
     case "height":
@@ -227,62 +221,6 @@ const showLable = (key) => {
       return "电烙铁通道1温度";
     case "ch2_temperature":
       return "电烙铁通道2温度";
-    case "DDLSD3":
-      return "目标扭力";
-    case "DDLSD4":
-      return "扭力保持时间";
-    case "DDLSD5":
-      return "浮高界定圈数";
-    case "DDLSD6":
-      return "滑牙界定圈数";
-    case "DDLSD7":
-      return "触发速度切换的扭力比值";
-    case "DDLSD8":
-      return "扭力补偿值";
-    case "DDLSD9":
-      return "开启浮高滑牙检测";
-    case "DDLSD10":
-      return "触发速度切换的扭力";
-    case "DDLSD11":
-      return "触发速度切换的速度比值";
-    case "DDLSD12":
-      return "扭力偏差上限";
-    case "DDLSD13":
-      return "扭力偏差下限";
-    case "DDLSD14":
-      return "扭力免检圈数";
-    case "DDLSD17":
-      return "自由旋转方向";
-    case "DDLSD18":
-      return "STEP-00拧紧圈数";
-    case "DDLSD19":
-      return "STEP-00拧紧速度";
-    case "DDLSD20":
-      return "STEP-01拧紧圈数";
-    case "DDLSD21":
-      return "STEP-01拧紧速度";
-    case "DDLSD22":
-      return "STEP-02拧紧圈数";
-    case "DDLSD23":
-      return "STEP-02拧紧速度";
-    case "DDLSD24":
-      return "STEP-03拧紧圈数";
-    case "DDLSD25":
-      return "STEP-03拧紧速度";
-    case "DDLSD26":
-      return "STEP-04拧紧圈数";
-    case "DDLSD27":
-      return "STEP-04拧紧速度";
-    case "DDLSD28":
-      return "STEP-00拧松圈数";
-    case "DDLSD29":
-      return "STEP-00拧松速度";
-    case "DDLSD30":
-      return "STEP-01拧松圈数";
-    case "DDLSD31":
-      return "STEP-01拧松速度";
-    case "DDLSD32":
-      return "STEP-02拧松圈数";
     case "humidity":
       return "湿度";
     case "temp":
@@ -290,7 +228,7 @@ const showLable = (key) => {
     case "ts":
       return "时间";
     default:
-      return null;
+      return key;
   }
 };
 const dataShow = (dataJSON) => {