|
|
@ -64,7 +64,7 @@ |
|
|
|
<el-card shadow="hover"> |
|
|
|
<el-card shadow="hover"> |
|
|
|
<el-table :data="taskList" :stripe="true" height="405"> |
|
|
|
<el-table :data="taskList" :stripe="true" height="405"> |
|
|
|
<el-table-column type="index"></el-table-column> |
|
|
|
<el-table-column type="index"></el-table-column> |
|
|
|
<el-table-column prop="name" label="判分标准" align="center"></el-table-column> |
|
|
|
<el-table-column prop="name" label="判分点" align="center"></el-table-column> |
|
|
|
<el-table-column label="完成结果" align="center"> |
|
|
|
<el-table-column label="完成结果" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template v-if="isSubmit"> |
|
|
|
<template v-if="isSubmit"> |
|
|
@ -208,11 +208,17 @@ export default { |
|
|
|
const projectId = this.projectId |
|
|
|
const projectId = this.projectId |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
this.$get(this.api.getProjectDetail, { |
|
|
|
this.$get(this.api.getProjectDetail, { |
|
|
|
projectId |
|
|
|
projectId, |
|
|
|
|
|
|
|
stuAssessent: 1 |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
const points = res.projectJudgmentVos |
|
|
|
const points = res.projectJudgmentVos |
|
|
|
const project = res.projectManage |
|
|
|
const project = res.projectManage |
|
|
|
const curReq = [] |
|
|
|
const curReq = [] |
|
|
|
|
|
|
|
if (!points.length) { |
|
|
|
|
|
|
|
this.$message.error('该项目没有判分点,请换个项目重试') |
|
|
|
|
|
|
|
this.projectId = this.projectList[0].projectId |
|
|
|
|
|
|
|
this.getProDetail() |
|
|
|
|
|
|
|
} |
|
|
|
points.map((e, i) => { |
|
|
|
points.map((e, i) => { |
|
|
|
e.code = '' // 后端返回的字段没有code,要手动加上以存储运行的代码 |
|
|
|
e.code = '' // 后端返回的字段没有code,要手动加上以存储运行的代码 |
|
|
|
e.codeId = '' // 代码通过接口传给后端运行后,接口会返回一个codeId,提交的时候需要传这个codeId |
|
|
|
e.codeId = '' // 代码通过接口传给后端运行后,接口会返回一个codeId,提交的时候需要传这个codeId |
|
|
|