haoxuan
2023-09-27 2f9bdedfecd2b71ff6062563d716eaa81b010739
因为目前数据是循环动态的,输入 输出资源的动画问题修改
1个文件已修改
15 ■■■■■ 已修改文件
src/views/visualization.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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])
        );