From 2f9bdedfecd2b71ff6062563d716eaa81b010739 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 27 九月 2023 17:48:22 +0800
Subject: [PATCH] 因为目前数据是循环动态的,输入 输出资源的动画问题修改

---
 src/views/visualization.vue |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/views/visualization.vue b/src/views/visualization.vue
index 19e36c6..bb3fe69 100644
--- a/src/views/visualization.vue
+++ b/src/views/visualization.vue
@@ -1,6 +1,6 @@
 
 <template>
-  <div class="home">
+  <div class="home" ref="homeRef">
     <!-- v-if="Tasks&&Tasks.length>0" -->
     <template >
       <div class="left">
@@ -853,11 +853,16 @@
     setInterCard(value, name, i) {
       if (this.TasksCopy[i].Procedure.procedure[value]!=null) {
         let height = 200;
-        let num = 1;
-        if (this.$refs[name]) {
-          height = this.$refs[name].$el?this.$refs[name].$el.offsetHeight:200;
-          num = Math.floor(height / 80);
+        let num = 3;
+        // if (this.$refs[name]) {
+        //   height = this.$refs[name].$el?this.$refs[name].$el.offsetHeight:200;
+        //   num = Math.floor(height / 80);
+        // }
+        height = this.$refs['homeRef']?(this.$refs['homeRef'].offsetHeight-470-90-20):200;
+        if(this.activeName==2){
+          height=height-610-90-20
         }
+        num = Math.floor(height / 80);
         let inputMaterials = JSON.parse(
           JSON.stringify(this.TasksCopy[i].Procedure.procedure[value])
         );

--
Gitblit v1.8.0