Browse Source

修改AGC日期格式

shilin 3 years ago
parent
commit
1b37c0b75f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/Agc/Agc.vue

+ 3 - 2
src/views/Agc/Agc.vue

@@ -131,7 +131,8 @@ export default {
 
 
               keys.forEach((key, keyIndex) => {
               keys.forEach((key, keyIndex) => {
                 pEle.tb.forEach((cEle, cIndex) => {
                 pEle.tb.forEach((cEle, cIndex) => {
-                  tb[keyIndex].value.push({ text: String(cIndex + 1), value: cEle[keys[keyIndex]] || 0 });
+                 // debugger;
+                  tb[keyIndex].value.push({ text: new Date(cEle.time).formatDate("hh:mm"), value: cEle[keys[keyIndex]] || 0 });
                 });
                 });
               });
               });
 
 
@@ -153,7 +154,7 @@ export default {
       that.requestData(false);
       that.requestData(false);
       that.timmer = setInterval(() => {
       that.timmer = setInterval(() => {
         that.requestData(false);
         that.requestData(false);
-      }, that.$store.state.websocketTimeSec);
+      }, 10000);
     });
     });
   },
   },