|
@@ -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 {
|