lsc před 1 rokem
rodič
revize
2c94ca8010

+ 1 - 1
dist/index.html

@@ -18,7 +18,7 @@
       border-radius: 10px;
       -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
       background-color: rgba(0, 0, 0, 0.1);
-    }</style><link href=./static/css/app.b8dede21564d7c055e006af5e8b4407d.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.99a913bcc02dad4e392a.js></script><script type=text/javascript src=./static/js/app.a9d81e748ac53f9257c3.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.0f8db443fced77a06d3361222fe33fc3.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.99a913bcc02dad4e392a.js></script><script type=text/javascript src=./static/js/app.d8fe1dd8cfa2ebd8e2fe.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/css/app.0f8db443fced77a06d3361222fe33fc3.css


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/css/app.0f8db443fced77a06d3361222fe33fc3.css.map


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/css/app.b8dede21564d7c055e006af5e8b4407d.css.map


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/js/app.a9d81e748ac53f9257c3.js


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/js/app.d8fe1dd8cfa2ebd8e2fe.js


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/js/app.d8fe1dd8cfa2ebd8e2fe.js.map


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 2 - 2
src/components/courseDetail.vue

@@ -1913,7 +1913,7 @@ export default {
           <meta charset="UTF-8">
           <meta http-equiv="X-UA-Compatible" content="IE=edge">
           <meta name="viewport" content="width=device-width, initial-scale=1.0">
-          <title>报告</title>
+          <title>${a.title}</title>
           <style>
           </style>
       </head>
@@ -1924,7 +1924,7 @@ export default {
       // debugger
       // 生成报告
       const link = document.createElement("a");
-      let dname = a.title + ".docx";
+      let dname = a.title + ".doc";
       // link.download = "报告.html"; // 文件名
       link.download = dname; // 文件名
       link.style.display = "none";

+ 160 - 91
src/components/easy2/studyStudent.vue

@@ -2313,7 +2313,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -2595,6 +2595,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -2610,10 +2615,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -2871,7 +2873,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -2887,6 +2889,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -2902,10 +2909,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3028,7 +3032,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3044,6 +3048,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -3059,10 +3068,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3184,7 +3190,7 @@
                         class="corOpen"
                         @click="contract(toolIndex)"
                         v-if="
-                          worksStudent[toolIndex].length > 3 &&
+                          (isCloseList[toolIndex].isCloseBoolean) &&
                           isCloseList[toolIndex].isClose == 0
                         "
                       >
@@ -3199,6 +3205,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -3214,10 +3225,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3510,7 +3518,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3529,6 +3537,11 @@
                     </div>
                     <div>
                       <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3536,10 +3549,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           @click="
@@ -3694,7 +3704,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3712,6 +3722,11 @@
                     </div>
                     <div>
                       <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3719,10 +3734,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           @click="
@@ -3789,7 +3801,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3807,6 +3819,11 @@
                     </div>
                     <div>
                       <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3814,10 +3831,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           style="width: 160px;height: 65px;line-height: 65px;"
@@ -3893,7 +3907,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4042,6 +4056,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4050,10 +4069,7 @@
                     >
                       <div
                         class="works"
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <div
@@ -4187,7 +4203,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4332,6 +4348,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4347,10 +4368,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
@@ -4467,7 +4485,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4612,6 +4630,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4627,10 +4650,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -4747,7 +4767,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4892,6 +4912,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4907,10 +4932,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -5026,7 +5048,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5171,6 +5193,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5186,10 +5213,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -5306,7 +5330,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5323,6 +5347,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5332,10 +5361,7 @@
                       <div
                         class="works"
                         style="width: 240px; height: 140px; overflow: hidden"
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -5411,7 +5437,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5428,6 +5454,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5443,10 +5474,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -5611,7 +5639,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5628,6 +5656,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5635,10 +5668,7 @@
                       "
                     >
                       <div
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         class="isWorksName2"
                         @click="openXz(w, toolIndex)"
@@ -5859,7 +5889,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5876,6 +5906,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5884,10 +5919,7 @@
                     >
                       <!-- @click="openXz(w, toolIndex)" -->
                       <div
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         class="isWorksName2"
                         @click="openSen(w, toolIndex)"
@@ -5942,7 +5974,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5959,6 +5991,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5974,10 +6011,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -6169,7 +6203,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -6186,6 +6220,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -6201,10 +6240,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -14673,6 +14709,15 @@ export default {
           }
           this.worksStudent = _worksStudent;
           this.selectWorksStudent();
+          for (let ci = 0; ci < this.isCloseList.length; ci++) {
+            this.$nextTick(()=>{
+              setTimeout(()=>{
+                setTimeout(()=>{
+                  this.panToolHeight('tool-'+ci);
+                }, 500)
+              }, 0)
+            })
+          }
         })
         .catch((err) => {
           console.error(err);
@@ -15483,6 +15528,14 @@ export default {
       }
       for (var ci = 0; ci < this.isCloseList.length; ci++) {
         this.isCloseList[ci].isClose = 0;
+        this.isCloseList[ci].isCloseBoolean = false;
+        this.$nextTick(()=>{
+          setTimeout(()=>{
+            setTimeout(()=>{
+              this.panToolHeight('tool-'+ci);
+            }, 0)
+          }, 0)
+        })
       }
       this.showType = 0;
       this.isNoHomeWork = false;
@@ -19105,6 +19158,15 @@ export default {
       }
       this.$forceUpdate();
     },
+    panToolHeight(tool) {
+      var _tool = document.querySelectorAll('#'+tool)[0]
+      var _toolA = _tool ? _tool.offsetHeight : 0
+      var _toolC = 0
+      var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
+      let boolean2 = (_toolA > _toolC) ? true : false
+      this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
+      this.$forceUpdate();
+    },
   },
   directives: {
     // 使用局部注册指令的方式
@@ -19204,6 +19266,12 @@ export default {
         return srcList;
       };
     },
+    retrnToolHeight(){
+      return function (tool) {
+        var _tool = document.querySelectorAll('#'+tool)[0]
+        return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
+      };
+    }
   },
   mounted() {
     document.body.addEventListener("click", (e) => {
@@ -20890,7 +20958,8 @@ export default {
   flex-wrap: wrap;
   align-items: flex-end;
   justify-content: flex-start;
-  padding: 15px 0;
+  padding: 15px 5px;
+  box-sizing: border-box;
 }
 
 .works {

+ 160 - 91
src/components/easy3/studyStudent.vue

@@ -2300,7 +2300,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -2582,6 +2582,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -2597,10 +2602,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -2858,7 +2860,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -2874,6 +2876,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -2889,10 +2896,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3015,7 +3019,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3031,6 +3035,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -3046,10 +3055,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3171,7 +3177,7 @@
                         class="corOpen"
                         @click="contract(toolIndex)"
                         v-if="
-                          worksStudent[toolIndex].length > 3 &&
+                          (isCloseList[toolIndex].isCloseBoolean) &&
                           isCloseList[toolIndex].isClose == 0
                         "
                       >
@@ -3186,6 +3192,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -3201,10 +3212,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3497,7 +3505,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3516,6 +3524,11 @@
                     </div>
                     <div>
                       <div
+                        :id="'tool-' + toolIndex"
+                        :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3523,10 +3536,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           @click="
@@ -3681,7 +3691,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3699,6 +3709,11 @@
                     </div>
                     <div>
                       <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3706,10 +3721,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           @click="
@@ -3776,7 +3788,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3794,6 +3806,11 @@
                     </div>
                     <div>
                       <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3801,10 +3818,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           style="width: 160px;height: 65px;line-height: 65px;"
@@ -3880,7 +3894,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4029,6 +4043,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4037,10 +4056,7 @@
                     >
                       <div
                         class="works"
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <div
@@ -4174,7 +4190,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4319,6 +4335,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4334,10 +4355,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
@@ -4454,7 +4472,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4599,6 +4617,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4614,10 +4637,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -4734,7 +4754,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4879,6 +4899,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4894,10 +4919,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -5013,7 +5035,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5158,6 +5180,11 @@
                       </div>
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5173,10 +5200,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -5293,7 +5317,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5310,6 +5334,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5319,10 +5348,7 @@
                       <div
                         class="works"
                         style="width: 240px; height: 140px; overflow: hidden"
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -5398,7 +5424,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5415,6 +5441,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5430,10 +5461,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -5598,7 +5626,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5615,6 +5643,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5622,10 +5655,7 @@
                       "
                     >
                       <div
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         class="isWorksName2"
                         @click="openXz(w, toolIndex)"
@@ -5846,7 +5876,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5863,6 +5893,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5871,10 +5906,7 @@
                     >
                       <!-- @click="openXz(w, toolIndex)" -->
                       <div
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         class="isWorksName2"
                         @click="openSen(w, toolIndex)"
@@ -5929,7 +5961,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5946,6 +5978,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5961,10 +5998,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -6156,7 +6190,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -6173,6 +6207,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -6188,10 +6227,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -14662,6 +14698,15 @@ export default {
           }
           this.worksStudent = _worksStudent;
           this.selectWorksStudent();
+          for (let ci = 0; ci < this.isCloseList.length; ci++) {
+            this.$nextTick(()=>{
+              setTimeout(()=>{
+                setTimeout(()=>{
+                  this.panToolHeight('tool-'+ci);
+                }, 500)
+              }, 0)
+            })
+          }
         })
         .catch((err) => {
           console.error(err);
@@ -15472,6 +15517,14 @@ export default {
       }
       for (var ci = 0; ci < this.isCloseList.length; ci++) {
         this.isCloseList[ci].isClose = 0;
+        this.isCloseList[ci].isCloseBoolean = false;
+        this.$nextTick(()=>{
+          setTimeout(()=>{
+            setTimeout(()=>{
+              this.panToolHeight('tool-'+ci);
+            }, 0)
+          }, 0)
+        })
       }
       this.showType = 0;
       this.isNoHomeWork = false;
@@ -19096,6 +19149,15 @@ export default {
       }
       this.$forceUpdate();
     },
+    panToolHeight(tool) {
+      var _tool = document.querySelectorAll('#'+tool)[0]
+      var _toolA = _tool ? _tool.offsetHeight : 0
+      var _toolC = 0
+      var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
+      let boolean2 = (_toolA > _toolC) ? true : false
+      this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
+      this.$forceUpdate();
+    },
   },
   directives: {
     // 使用局部注册指令的方式
@@ -19195,6 +19257,12 @@ export default {
         return srcList;
       };
     },
+    retrnToolHeight(){
+      return function (tool) {
+        var _tool = document.querySelectorAll('#'+tool)[0]
+        return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
+      };
+    }
   },
   mounted() {
     document.body.addEventListener("click", (e) => {
@@ -20881,7 +20949,8 @@ export default {
   flex-wrap: wrap;
   align-items: flex-end;
   justify-content: flex-start;
-  padding: 15px 0;
+  padding: 15px 5px;
+  box-sizing: border-box;
 }
 
 .works {

+ 161 - 92
src/components/studyStudent.vue

@@ -2309,7 +2309,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -2591,6 +2591,11 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -2606,10 +2611,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -2867,7 +2869,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -2883,7 +2885,12 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
                       class="worksDetailBox"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       v-if="
                         worksStudent.length &&
                         worksStudent[toolIndex].length > 0
@@ -2898,10 +2905,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3024,7 +3028,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3040,7 +3044,12 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
                       class="worksDetailBox"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       v-if="
                         worksStudent.length &&
                         worksStudent[toolIndex].length > 0
@@ -3055,10 +3064,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3180,7 +3186,7 @@
                         class="corOpen"
                         @click="contract(toolIndex)"
                         v-if="
-                          worksStudent[toolIndex].length > 3 &&
+                          (isCloseList[toolIndex].isCloseBoolean) &&
                           isCloseList[toolIndex].isClose == 0
                         "
                       >
@@ -3195,6 +3201,11 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                        height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                        overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                      }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -3210,10 +3221,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -3506,7 +3514,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3525,6 +3533,11 @@
                     </div>
                     <div>
                       <div
+                        :id="'tool-' + toolIndex"
+                        :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3532,10 +3545,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           @click="
@@ -3690,7 +3700,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3708,6 +3718,11 @@
                     </div>
                     <div>
                       <div
+                        :id="'tool-' + toolIndex"
+                        :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3715,10 +3730,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           @click="
@@ -3785,7 +3797,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -3803,6 +3815,11 @@
                     </div>
                     <div>
                       <div
+                        :id="'tool-' + toolIndex"
+                        :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                         class="worksDetailBox"
                         v-if="
                           worksStudent.length &&
@@ -3810,10 +3827,7 @@
                         "
                       >
                         <div
-                          v-for="(w, wIndex) in isCloseList[toolIndex]
-                            .isClose == 0
-                            ? worksStudent[toolIndex]
-                            : worksStudent[toolIndex].slice(0, 3)"
+                          v-for="(w, wIndex) in worksStudent[toolIndex]"
                           :key="wIndex"
                           class="isWorksName2"
                           style="width: 160px;height: 65px;line-height: 65px;"
@@ -3889,7 +3903,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4038,6 +4052,11 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4046,10 +4065,7 @@
                     >
                       <div
                         class="works"
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <div
@@ -4183,7 +4199,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4328,6 +4344,11 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4343,10 +4364,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
@@ -4463,7 +4481,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4608,6 +4626,11 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4623,10 +4646,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -4743,7 +4763,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -4888,6 +4908,11 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -4903,10 +4928,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -5022,7 +5044,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5167,6 +5189,11 @@
                       </div>
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5182,10 +5209,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                       >
                         <!-- @click="previewImg(w.works)" -->
@@ -5302,7 +5326,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5319,6 +5343,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5328,10 +5357,7 @@
                       <div
                         class="works"
                         style="width: 240px; height: 140px; overflow: hidden"
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -5407,7 +5433,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5424,6 +5450,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                    :id="'tool-' + toolIndex"
+                    :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5439,10 +5470,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -5607,7 +5635,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5624,6 +5652,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5631,10 +5664,7 @@
                       "
                     >
                       <div
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         class="isWorksName2"
                         @click="openXz(w, toolIndex)"
@@ -5855,7 +5885,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5872,6 +5902,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5880,10 +5915,7 @@
                     >
                       <!-- @click="openXz(w, toolIndex)" -->
                       <div
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         class="isWorksName2"
                         @click="openSen(w, toolIndex)"
@@ -5938,7 +5970,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -5955,6 +5987,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -5970,10 +6007,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -6165,7 +6199,7 @@
                           class="corOpen"
                           @click="contract(toolIndex)"
                           v-if="
-                            worksStudent[toolIndex].length > 3 &&
+                            (isCloseList[toolIndex].isCloseBoolean) &&
                             isCloseList[toolIndex].isClose == 0
                           "
                         >
@@ -6182,6 +6216,11 @@
                       <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
                     </div>
                     <div
+                      :id="'tool-' + toolIndex"
+                      :style="{
+                          height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
+                          overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
+                        }"
                       class="worksDetailBox"
                       v-if="
                         worksStudent.length &&
@@ -6197,10 +6236,7 @@
                           border-radius: 15px;
                           box-shadow: 0 0 6px 1px #dfdada;
                         "
-                        v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
-                        0
-                          ? worksStudent[toolIndex]
-                          : worksStudent[toolIndex].slice(0, 3)"
+                        v-for="(w, wIndex) in worksStudent[toolIndex]"
                         :key="wIndex"
                         :class="w.type == 1 ? 'isTypeOne' : ''"
                       >
@@ -14642,6 +14678,15 @@ export default {
           }
           this.worksStudent = _worksStudent;
           this.selectWorksStudent();
+          for (let ci = 0; ci < this.isCloseList.length; ci++) {
+            this.$nextTick(()=>{
+              setTimeout(()=>{
+                setTimeout(()=>{
+                  this.panToolHeight('tool-'+ci);
+                }, 500)
+              }, 0)
+            })
+          }
         })
         .catch((err) => {
           console.error(err);
@@ -15453,8 +15498,16 @@ export default {
         ].isLook = true;
         this.addCourseState(3);
       }
-      for (var ci = 0; ci < this.isCloseList.length; ci++) {
+      for (let ci = 0; ci < this.isCloseList.length; ci++) {
         this.isCloseList[ci].isClose = 0;
+        this.isCloseList[ci].isCloseBoolean = false;
+        this.$nextTick(()=>{
+          setTimeout(()=>{
+            setTimeout(()=>{
+              this.panToolHeight('tool-'+ci);
+            }, 0)
+          }, 0)
+        })
       }
       this.showType = 0;
       this.isNoHomeWork = false;
@@ -19072,6 +19125,15 @@ export default {
       }
       this.$forceUpdate();
     },
+    panToolHeight(tool) {
+      var _tool = document.querySelectorAll('#'+tool)[0]
+      var _toolA = _tool ? _tool.offsetHeight : 0
+      var _toolC = 0
+      var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
+      let boolean2 = (_toolA > _toolC) ? true : false
+      this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
+      this.$forceUpdate();
+    },
   },
   directives: {
     // 使用局部注册指令的方式
@@ -19168,6 +19230,12 @@ export default {
         return srcList;
       };
     },
+    retrnToolHeight(){
+      return function (tool) {
+        var _tool = document.querySelectorAll('#'+tool)[0]
+        return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
+      };
+    }
   },
   mounted() {
     document.body.addEventListener("click", (e) => {
@@ -20854,7 +20922,8 @@ export default {
   flex-wrap: wrap;
   align-items: flex-end;
   justify-content: flex-start;
-  padding: 15px 0;
+  padding: 15px 5px;
+  box-sizing: border-box;
 }
 
 .works {

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů