huangxingxing hace 1 año
padre
commit
faea7719ee
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      src/view/components/InfoAnimation.vue

+ 6 - 6
src/view/components/InfoAnimation.vue

@@ -301,12 +301,12 @@ function zdtimechange() {
   getMonitor();
 }
 function regionchange() {
-  // for (let index = 0; index < cocodes.value.length; index++) {
-  //   if (formInline.value.region == cocodes.value[index].cocode) {
-  //     cocodeIndex.value = index + 1;
-  //     break;
-  //   }
-  // }
+  for (let index = 0; index < cocodes.value.length; index++) {
+    if (formInline.value.region == cocodes.value[index].cocode) {
+      cocodeIndex.value = index + 1;
+      break;
+    }
+  }
   tableData2.value = [];
   for (let i = 0; i < chvals.value.length; i++) {
     let chval = chvals.value[i];