|
@@ -108,6 +108,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="right" v-if="peopleId">
|
|
|
+ <div class="score_box">总分:<span>{{ scoList2.reduce((acc, curr) => acc + curr.sco, 0) }}</span></div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<!-- pc端 查看切换 isDesktop-->
|
|
@@ -1591,6 +1594,17 @@
|
|
|
>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ label="审核状态"
|
|
|
+ width="120px"
|
|
|
+ fixed="right"
|
|
|
+ v-if="peopleId"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-checkbox @change="reviewChange(scope.row)" true-label="1" false-label="0" v-model="scope.row.isReview">审核通过</el-checkbox>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<!-- 按人员手机端 !isDesktop-->
|
|
@@ -2387,6 +2401,15 @@ export default {
|
|
|
}
|
|
|
return _result;
|
|
|
}
|
|
|
+ },
|
|
|
+ scoList2(){
|
|
|
+ let result = [];
|
|
|
+ if(this.peopleId){
|
|
|
+ result = this.scoList.filter(i=>this.tableWorksArray.map(i=>i.id).indexOf(i.id) != -1)
|
|
|
+ }else{
|
|
|
+ result = this.scoList;
|
|
|
+ }
|
|
|
+ return result
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -3128,6 +3151,7 @@ ${JSON.stringify(forAllList)}
|
|
|
name: this.works[i].username ? this.works[i].username : "匿名",
|
|
|
time: this.works[i].time,
|
|
|
array: _json2,
|
|
|
+ isReview:this.works[i].isReview,
|
|
|
cut: 0,
|
|
|
uteaName: this.works[i].uteaName,
|
|
|
courseJson: JSON.parse(this.works[i].courseJson),
|
|
@@ -4569,6 +4593,24 @@ ${JSON.stringify(item.array)}
|
|
|
console.log(e);
|
|
|
})
|
|
|
},
|
|
|
+ reviewChange(row){
|
|
|
+
|
|
|
+ console.log(row);
|
|
|
+
|
|
|
+ let params = [{
|
|
|
+ id:row.id,
|
|
|
+ isReview:row.isReview
|
|
|
+ }]
|
|
|
+
|
|
|
+ this.ajax.post(this.$store.state.api+"update_testCourseWorks_isReviewById",params).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ }).catch(e=>{
|
|
|
+ console.log(e);
|
|
|
+ })
|
|
|
+ // console.log(row);
|
|
|
+ // this.tableWorksArray.find(i=>i.id===row.id).isReview = "1";
|
|
|
+ // this.$forceUpdate()
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
beforeDestroy() {
|
|
@@ -5717,4 +5759,15 @@ ${JSON.stringify(item.array)}
|
|
|
height:100%;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+
|
|
|
+.el-checkbox{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
+.score_box{
|
|
|
+ font-size: 22px;
|
|
|
+ margin-right: 20px;
|
|
|
+ font-weight:bold;
|
|
|
+}
|
|
|
</style>
|