|
@@ -1709,7 +1709,9 @@
|
|
|
<div class="workImg">
|
|
|
<img
|
|
|
src="../assets/icon/works/noImg.png"
|
|
|
- @click="openPj(w.works)"
|
|
|
+ @click="
|
|
|
+ openPj(w.works, jdIndex, rwIndex, toolIndex)
|
|
|
+ "
|
|
|
alt
|
|
|
/>
|
|
|
</div>
|
|
@@ -1738,7 +1740,9 @@
|
|
|
>
|
|
|
<div
|
|
|
class="commentImg"
|
|
|
- @click="commentOther(w)"
|
|
|
+ @click="
|
|
|
+ commentOther(w, jdIndex, rwIndex, toolIndex)
|
|
|
+ "
|
|
|
>
|
|
|
<img
|
|
|
src="../assets/icon/comment/comment.png"
|
|
@@ -2497,10 +2501,9 @@
|
|
|
<div>{{ e.value }}</div>
|
|
|
<el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
|
|
|
</div>
|
|
|
- <div>{{ e.detail }}</div>
|
|
|
+ <div v-if="e.detail">{{ e.detail }}</div>
|
|
|
</div>
|
|
|
<div class="bz">
|
|
|
- <div>备注</div>
|
|
|
<textarea
|
|
|
disabled
|
|
|
rows="4"
|
|
@@ -2666,10 +2669,9 @@
|
|
|
:disabled="isStar"
|
|
|
></el-rate>
|
|
|
</div>
|
|
|
- <div>{{ e.detail }}</div>
|
|
|
+ <div v-if="e.detail">{{ e.detail }}</div>
|
|
|
</div>
|
|
|
<div class="bz">
|
|
|
- <div>备注</div>
|
|
|
<textarea
|
|
|
:disabled="isStar == true"
|
|
|
rows="4"
|
|
@@ -3164,7 +3166,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- commentOther(w) {
|
|
|
+ commentOther(w, jdIndex, rwIndex, toolIndex) {
|
|
|
this.commentDetail = [];
|
|
|
this.commentDialogVisible = true;
|
|
|
if (w.works && w.type == 1) {
|
|
@@ -3197,9 +3199,9 @@ export default {
|
|
|
this.commentDetail = w;
|
|
|
this.eScore = JSON.parse(w.works);
|
|
|
this.rateJson =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].toolChoose[this.toolindex].rateJson;
|
|
|
+ this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
|
|
|
+ rwIndex
|
|
|
+ ].toolChoose[toolIndex].rateJson;
|
|
|
} else {
|
|
|
this.commentDetail = w;
|
|
|
}
|
|
@@ -4739,40 +4741,49 @@ export default {
|
|
|
a = this.evalCount;
|
|
|
this.toolsCount(a, t);
|
|
|
}
|
|
|
- for (
|
|
|
- var k = 0;
|
|
|
- k < this.worksStudent[this.courseType][index][i].length;
|
|
|
- k++
|
|
|
- ) {
|
|
|
- if (
|
|
|
- this.userid ==
|
|
|
- this.worksStudent[this.courseType][index][i][k].userid
|
|
|
+ if (this.worksStudent[this.courseType][index][i].length) {
|
|
|
+ for (
|
|
|
+ var k = 0;
|
|
|
+ k < this.worksStudent[this.courseType][index][i].length;
|
|
|
+ k++
|
|
|
) {
|
|
|
- this.eScore = JSON.parse(
|
|
|
- this.worksStudent[this.courseType][index][i][k].works
|
|
|
- );
|
|
|
- this.rateJson =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- index
|
|
|
- ].toolChoose[i].rateJson;
|
|
|
- } else {
|
|
|
- this.rateJson =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- index
|
|
|
- ].toolChoose[i].rateJson;
|
|
|
+ if (
|
|
|
+ this.userid ==
|
|
|
+ this.worksStudent[this.courseType][index][i][k].userid
|
|
|
+ ) {
|
|
|
+ this.eScore = JSON.parse(
|
|
|
+ this.worksStudent[this.courseType][index][i][k].works
|
|
|
+ );
|
|
|
+ this.rateJson =
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ index
|
|
|
+ ].toolChoose[i].rateJson;
|
|
|
+ break;
|
|
|
+ } else {
|
|
|
+ this.rateJson =
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ index
|
|
|
+ ].toolChoose[i].rateJson;
|
|
|
+ }
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.rateJson =
|
|
|
+ this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ index
|
|
|
+ ].toolChoose[i].rateJson;
|
|
|
}
|
|
|
+
|
|
|
this.isStar = false;
|
|
|
this.studentEvalDialogVisible = true;
|
|
|
}
|
|
|
},
|
|
|
- openPj(w) {
|
|
|
+ openPj(w, jd, rw, toolindex) {
|
|
|
this.isStar = true;
|
|
|
this.eScore = JSON.parse(w);
|
|
|
this.rateJson =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
- this.taskCount
|
|
|
- ].toolChoose[this.toolindex].rateJson;
|
|
|
+ this.chapInfoList[jd].chapterInfo[0].taskJson[rw].toolChoose[
|
|
|
+ toolindex
|
|
|
+ ].rateJson;
|
|
|
this.studentEvalDialogVisible = true;
|
|
|
},
|
|
|
toolsCount(a, t) {
|
|
@@ -6076,9 +6087,11 @@ export default {
|
|
|
justify-content: flex-start;
|
|
|
align-content: center;
|
|
|
width: 240px;
|
|
|
- height: 170px;
|
|
|
+ height: 140px;
|
|
|
margin-right: 10px;
|
|
|
overflow: hidden;
|
|
|
+ box-shadow: 0 0 6px 1px #dfdada;
|
|
|
+ border-radius: 15px;
|
|
|
}
|
|
|
.workImg {
|
|
|
width: 100%;
|