huangxingxing 1 rok temu
rodzic
commit
311b45e66f
1 zmienionych plików z 15 dodań i 10 usunięć
  1. 15 10
      src/view/components/InfoAnimation.vue

+ 15 - 10
src/view/components/InfoAnimation.vue

@@ -215,9 +215,11 @@ const cocodeIndex = ref(0);
 const cocodeIsInit = ref("false");
 const cocodeIsInit = ref("false");
 //滑块
 //滑块
 function sliderchange(val) {
 function sliderchange(val) {
+  newcount.value=count.value;
   fcon.step = count.value;
   fcon.step = count.value;
   console.log(count.value);
   console.log(count.value);
-  vtkScalarRead();
+  // vtkScalarRead();
+  // getMonitor();
 }
 }
 //播放
 //播放
 function play(time) {
 function play(time) {
@@ -232,8 +234,9 @@ function play(time) {
         await sleep(time);
         await sleep(time);
         count.value++;
         count.value++;
         fcon.step = count.value;
         fcon.step = count.value;
-        vtkScalarRead();
-        getMonitor();
+        newcount.value=count.value;
+        // vtkScalarRead();
+        // getMonitor();
       }
       }
     }
     }
   };
   };
@@ -245,9 +248,10 @@ function increment() {
     return;
     return;
   }
   }
   count.value++;
   count.value++;
+  newcount.value=count.value;
   fcon.step = count.value;
   fcon.step = count.value;
-  vtkScalarRead();
-  getMonitor();
+  // vtkScalarRead();
+  // getMonitor();
 }
 }
 //暂停
 //暂停
 function suspend() {
 function suspend() {
@@ -258,16 +262,17 @@ function Prev() {
   isstop.value = false;
   isstop.value = false;
   count.value--;
   count.value--;
   fcon.step = count.value;
   fcon.step = count.value;
-  vtkScalarRead();
-  getMonitor();
+  newcount.value=count.value;
+  // vtkScalarRead();
+  // getMonitor();
 }
 }
 
 
 function zdtimechange() {
 function zdtimechange() {
   const zdtimestamp = Date.parse(zdtime.value);
   const zdtimestamp = Date.parse(zdtime.value);
   const zdtimeDate = new Date(zdtimestamp);
   const zdtimeDate = new Date(zdtimestamp);
   reddate(zdtimeDate);
   reddate(zdtimeDate);
-  vtkScalarRead();
-  getMonitor();
+  // vtkScalarRead();
+  // getMonitor();
 }
 }
 function chengeMonitor(){
 function chengeMonitor(){
     for (let index = 0; index < cocodes.value.length; index++) {
     for (let index = 0; index < cocodes.value.length; index++) {
@@ -333,7 +338,7 @@ function chengeMonitor(){
 
 
 }
 }
 function regionchange() {
 function regionchange() {
-chengeMonitor();
+  chengeMonitor();
   vtkShow();
   vtkShow();
 }
 }
 // aid获取
 // aid获取