huangxingxing há 1 ano atrás
pai
commit
de6e2e3e95
1 ficheiros alterados com 8 adições e 5 exclusões
  1. 8 5
      src/view/index/first-left.vue

+ 8 - 5
src/view/index/first-left.vue

@@ -181,6 +181,9 @@ let jcname=ref("监测点");
 let state=ref();
 let state=ref();
 let warnin=ref(0);
 let warnin=ref(0);
 let warnin2=ref(0);
 let warnin2=ref(0);
+const min = ref(0);
+const max = ref(1);
+
 const dynamicHeaders = ref([
 const dynamicHeaders = ref([
 
 
 ]);
 ]);
@@ -646,7 +649,6 @@ function reddate(date) {
   const accstamp = Date.parse(job.value.acctime);
   const accstamp = Date.parse(job.value.acctime);
   var timeDifference = parseInt((timestamp - accstamp) / 1000);
   var timeDifference = parseInt((timestamp - accstamp) / 1000);
   fcon.stepsum = parseInt(job.value.totaltime) / parseInt(job.value.reportstep);
   fcon.stepsum = parseInt(job.value.totaltime) / parseInt(job.value.reportstep);
-  max.value = fcon.stepsum;
   if (timeDifference < parseInt(job.value.totaltime)) {
   if (timeDifference < parseInt(job.value.totaltime)) {
     //最长时间范围
     //最长时间范围
     fcon.step = parseInt(timeDifference / parseInt(job.value.reportstep));
     fcon.step = parseInt(timeDifference / parseInt(job.value.reportstep));
@@ -700,7 +702,7 @@ function vtkShow() {
     return;
     return;
   }
   }
 
 
-  // console.log("scalarArray:", scalarArray);
+  console.log("scalarArray:", scalarArray);
   const dataArray = vtkDataArray.newInstance({
   const dataArray = vtkDataArray.newInstance({
     name: formInline.value.region,
     name: formInline.value.region,
     size: fcon.polydata.getNumberOfPoints(),
     size: fcon.polydata.getNumberOfPoints(),
@@ -723,7 +725,7 @@ function vtkShow() {
   actor.getProperty().setOpacity(0.5);
   actor.getProperty().setOpacity(0.5);
   // vtkmodel.renderer.resetCamera();
   // vtkmodel.renderer.resetCamera();
   vtkmodel.renderWindow.render();
   vtkmodel.renderWindow.render();
- 
+  
 }
 }
 
 
 function vtkGridRead() {
 function vtkGridRead() {
@@ -733,7 +735,7 @@ function vtkGridRead() {
     .then((result) => {
     .then((result) => {
       console.log(result);
       console.log(result);
      vtkScalarRead();
      vtkScalarRead();
-   
+    vtkmodel.renderWindowWith.resize();
     })
     })
     .catch((err) => {});
     .catch((err) => {});
 }
 }
@@ -741,7 +743,7 @@ function vtkScalarRead() {
   fcon
   fcon
     .getScalrsByStep(fcon.step)
     .getScalrsByStep(fcon.step)
     .then((result) => {
     .then((result) => {
-      velocityRead() ;
+      // velocityRead() ;
       vtkShow();
       vtkShow();
     })
     })
     .catch((err) => {
     .catch((err) => {
@@ -754,6 +756,7 @@ watch(
 console.log("值改变了", newVal, oldVal);
 console.log("值改变了", newVal, oldVal);
     fcon.step = newVal;
     fcon.step = newVal;
     getMonitor();
     getMonitor();
+    vtkScalarRead();
  //   vtkScalarRead();
  //   vtkScalarRead();
 
 
   },
   },