Browse Source

温度展示bug修改

dengrui 3 months ago
parent
commit
b717265502
2 changed files with 4 additions and 3 deletions
  1. 1 1
      .env.development
  2. 3 2
      src/views/traceability/components/collect.vue

+ 1 - 1
.env.development

@@ -11,7 +11,7 @@ VITE_APP_BASE_API = '/dev-api'
 VITE_APP_UPLOAD_URL = 'http://192.168.1.4:9000'
 
 # 开发接口地址
-VITE_APP_API_URL = 'http://192.168.1.4:8079'
+VITE_APP_API_URL = 'http://121.41.179.41:8079'
 # Websocket地址
 VITE_WEBSOCKET_URL = 'ws://192.168.101.178:8079'
 ``

+ 3 - 2
src/views/traceability/components/collect.vue

@@ -79,7 +79,6 @@ const loading = ref(false);
 const tableData = ref([]);
 const pageS = ref([]);
 const configeObj = (type) => {
-  console.log(type, "222");
   switch (type) {
     //温湿度
     case "WXDJC":
@@ -89,7 +88,7 @@ const configeObj = (type) => {
     case "GDC":
       return ["height"];
     case "WKDLT":
-      return ["temperature"];
+      return ["tipTemperature"];
     //电动螺丝刀
     case "DDLSD":
       return [
@@ -106,6 +105,8 @@ const configeObj = (type) => {
 };
 const showLable = (key) => {
   switch (key) {
+    case "tipTemperature":
+      return "温度";
     case "CH5Val":
       return "CH5";
     case "CH6Val":