dev_2022-05-11
luoJunYong.123 3 years ago
commit 8909c9bf75
  1. 30
      src/pages/achievement/ass/index.vue
  2. 14
      src/pages/achievement/show/index.vue
  3. 2
      src/pages/assessment/list/index.vue

@ -90,7 +90,15 @@ export default {
classId: this.$route.query.classId,
projectId: this.$route.query.projectId,
assessmentId:'',
classInfo: [],
classInfo: [
{
architectureId: "",
className: "全部",
createTime: "2021-12-30 12:02:33",
id: "",
isDel: 0,
}
],
experimentalName: this.$route.query.experimentalName,
className: this.$route.query.class,
keyword: "",
@ -106,29 +114,39 @@ export default {
},
created() {
this.getData();
this.classInfo = JSON.parse(this.$route.query.classInfo)
let classInfo = JSON.parse(this.$route.query.classInfo)
for (var i=0;i<classInfo.length;i++){
this.classInfo.push(classInfo[i])
}
console.log(this.classInfo)
for(var i=0;i<this.classInfo.length;i++){
let id = this.classInfo[i].id
this.classInfo[i].id = id.toString()
}
const activeName2 = sessionStorage.getItem('activeName2')
if(activeName2 && this.classInfo.some(item => item.id === activeName2)) {
this.classId = activeName2
this.activeName = activeName2
this.classId = ""
this.activeName = ""
}else {
this.classId = this.classInfo[0].id;
this.activeName = this.classInfo[0].id;
this.classId = "";
this.activeName = "";
}
this.id = this.$route.query.id
},
methods: {
handleClick(tab, event) {
sessionStorage.setItem('activeName2', tab.name)
if(this.activeName == 0){
this.activeName = ''
}
this.getData()
},
getData() {
this.$post(`${this.api.getAssessmentDetail}?assessmentId=${+this.id}&pageNum=${this.page}&pageSize=${this.pageSize}&classId=${this.activeName}`).then(res => {
if (res.status == 200){
if(this.activeName == ''){
this.activeName = '0'
}
this.avg = res.avgScore
this.total = res.peopleNum
let list = res.page.records;

@ -53,22 +53,22 @@
<div class="meta-title-wrap">
<p class="meta-title">实验数据</p>
</div>
<el-table :data="expData" class="table" stripe header-align="center">
<el-table-column type="index" width="50" label="序号" align="center">
<el-table :data="expData" class="table" stripe border header-align="center">
<el-table-column type="index" label="序号" align="center" width="100">
<template slot-scope="scope">
{{ scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column prop="judgmentName" width="150" label="任务名称" align="center">
<el-table-column prop="judgmentName" label="任务名称" align="center">
</el-table-column>
<el-table-column v-if='project' prop="userAnswer" label="考核点" align="center">
<el-table-column v-if='project' prop="userAnswer" label="考核点" align="center" >
<template slot-scope="scope">
<div v-for="(item, index) in scope.row.lcRuleRecords">
<span>{{index+1}}. </span>{{item.name}}
</div>
</template>
</el-table-column>
<el-table-column prop="answer" label="参考答案" align="center">
<el-table-column prop="answer" label="参考答案" align="center" width="400">
<template slot-scope="scope">
<div v-if=' scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords">
@ -80,7 +80,7 @@
</div>
</template>
</el-table-column>
<el-table-column prop="userAnswer" label="学生答案" align="center">
<el-table-column prop="userAnswer" label="学生答案" align="center" width="400">
<template slot-scope="scope">
<div v-if=' scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords">
@ -93,7 +93,7 @@
</template>
</el-table-column>
<el-table-column prop="score" width="50" label="得分" align="center">
<el-table-column prop="score" label="得分" align="center" width="100">
</el-table-column>
</el-table>
</div>

@ -39,7 +39,7 @@
<div class="tool mul">
<ul class="filter">
<li>
<el-input placeholder="请输入实验班级/项目名称" prefix-icon="el-icon-search" v-model.trim="keyWord" clearable style="width: 300px"></el-input>
<el-input placeholder="请输入实验班级/项目名称/考核名称" prefix-icon="el-icon-search" v-model.trim="keyWord" clearable style="width: 300px"></el-input>
</li>
</ul>
<div>

Loading…
Cancel
Save