|
|
|
@ -3,7 +3,7 @@ |
|
|
|
|
<el-drawer title="评阅设置" :visible.sync="setupVisible" size="1200px" :close-on-click-modal="false" |
|
|
|
|
custom-class="setup-dia" @closed="closeDia"> |
|
|
|
|
<div class="flex h-full"> |
|
|
|
|
<el-form class="p-r-10" :model="form" ref="form" label-width="220px" label-suffix=":"> |
|
|
|
|
<el-form class="flex-1 p-r-10" :model="form" ref="form" label-width="220px" label-suffix=":"> |
|
|
|
|
<el-form-item prop="name" label="是否隐藏学生信息"> |
|
|
|
|
<el-radio-group v-model="form.anonymizeStudents"> |
|
|
|
|
<el-radio :label="1">是</el-radio> |
|
|
|
@ -11,34 +11,33 @@ |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-if="row.hasAutoScoreType" prop="name" label="自动判分题是否允许人工评阅"> |
|
|
|
|
<el-radio-group v-model="form.allowManualGrading"> |
|
|
|
|
<el-radio :label="1">是</el-radio> |
|
|
|
|
<el-tooltip placement="top"> |
|
|
|
|
<div slot="content">自动判分题最终得分取最新一次评分</div> |
|
|
|
|
<i class="el-icon-question explain"></i> |
|
|
|
|
</el-tooltip> |
|
|
|
|
<el-radio :label="0">否</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<div class="relative"> |
|
|
|
|
<el-radio-group v-model="form.allowManualGrading"> |
|
|
|
|
<el-radio :label="1">是</el-radio> |
|
|
|
|
<el-radio :label="0">否</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<p class="tips" style="margin-top: -5px">自动判分题最终得分取最新一次评分</p> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<template v-if="row.hasManualScoreType"> |
|
|
|
|
<el-form-item prop="name" label="评阅的时间限制"> |
|
|
|
|
<el-radio-group v-model="form.isTimed"> |
|
|
|
|
<el-radio :label="0" :disabled="!row.resultsDetails">不限时</el-radio> |
|
|
|
|
<el-tooltip placement="top"> |
|
|
|
|
<div slot="content">成绩不公布时,可设置评阅时间不限时</div> |
|
|
|
|
<i class="el-icon-question explain"></i> |
|
|
|
|
</el-tooltip> |
|
|
|
|
<el-radio :label="1" :disabled="!row.resultsDetails">限时</el-radio> |
|
|
|
|
<el-form-item v-if="row.hasManualScoreType || form.allowManualGrading" prop="name" label="评阅的时间限制"> |
|
|
|
|
<div class="relative"> |
|
|
|
|
<el-radio-group :disabled="!row.resultsDetails" v-model="form.isTimed"> |
|
|
|
|
<el-radio :label="0">不限时</el-radio> |
|
|
|
|
<el-radio :label="1">限时</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<el-date-picker v-show="form.isTimed" class="m-l-10" v-model="timed" align="right" unlink-panels |
|
|
|
|
type="datetimerange" start-placeholder="开始日期" end-placeholder="结束日期" clearable |
|
|
|
|
:picker-options="pickerOptions"></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<p class="tips">成绩不公布时,可设置评阅时间不限时</p> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<template v-if="row.hasManualScoreType"> |
|
|
|
|
<el-form-item prop="name" label="评阅人数"> |
|
|
|
|
<el-input class="hide-spin" style="width: 200px;" placeholder="请输入" type="number" |
|
|
|
|
v-model.number="form.reviewersPerQuestion" /> 人<span class="fs-12">(人工判分题和整体评分表的评阅人数)</span> |
|
|
|
|
v-model.number="form.reviewersPerQuestion" /> 人<span class="tips">(人工判分题和整体评分表的评阅人数)</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="name" label="人工判分题最终得分"> |
|
|
|
|
<el-form-item class="relative" prop="name" label="最终得分"> |
|
|
|
|
<p class="tips exp">(人工判分题和整体评分表)</p> |
|
|
|
|
<el-radio-group v-model="form.scoreAggregationRule"> |
|
|
|
|
<el-radio :label="0">取平均分</el-radio> |
|
|
|
|
<el-radio :label="1">取修剪平均分</el-radio> |
|
|
|
@ -76,8 +75,9 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="name" label="成绩是否公布"> |
|
|
|
|
<el-radio v-model="row.resultsDetails" :label="0">是</el-radio> |
|
|
|
|
<span style="margin: 0 10px 0 -20px;font-size: 12px;color: #333;">公布时间:{{ row.resultAnnouncementTime |
|
|
|
|
}}</span> |
|
|
|
|
<span v-if="!row.resultsDetails" style="margin: 0 10px 0 -20px;font-size: 12px;color: #333;">公布时间:{{ |
|
|
|
|
row.resultAnnouncementTime |
|
|
|
|
}}</span> |
|
|
|
|
<el-radio v-model="row.resultsDetails" style="margin-top: 10px" :label="1">否</el-radio> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
@ -110,7 +110,7 @@ export default { |
|
|
|
|
allowManualGrading: 0, |
|
|
|
|
anonymizeStudents: 0, |
|
|
|
|
evaluationId: '', |
|
|
|
|
isTimed: '', |
|
|
|
|
isTimed: 0, |
|
|
|
|
reviewersPerQuestion: '', |
|
|
|
|
scoreAggregationRule: 0, |
|
|
|
|
}, |
|
|
|
@ -160,8 +160,9 @@ export default { |
|
|
|
|
if (!this.row.resultsDetails && this.row.hasManualScoreType) { |
|
|
|
|
const now = await Util.getNow() |
|
|
|
|
this.timed = [dayjs(now).format('YYYY-MM-DD HH:mm:ss'), ''] |
|
|
|
|
this.form.isTimed = 1 // 成绩公布时,默认显示(有主观题时) |
|
|
|
|
} |
|
|
|
|
this.form.isTimed = this.row.resultsDetails ? 0 : 1 // 成绩公布时,默认显示(有主观题时) |
|
|
|
|
|
|
|
|
|
this.getDetail() |
|
|
|
|
}, |
|
|
|
|
// 获取详情 |
|
|
|
@ -240,6 +241,17 @@ export default { |
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tips { |
|
|
|
|
font-size: 12px; |
|
|
|
|
color: #545454; |
|
|
|
|
|
|
|
|
|
&.exp { |
|
|
|
|
position: absolute; |
|
|
|
|
top: 20px; |
|
|
|
|
left: -170px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.explain { |
|
|
|
|
margin: 0 20px 0 -20px; |
|
|
|
|
font-size: 16px; |
|
|
|
@ -248,7 +260,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.info { |
|
|
|
|
flex: 1; |
|
|
|
|
width: 362px; |
|
|
|
|
height: 100%; |
|
|
|
|
border-left: 1px solid #ccc; |
|
|
|
|
|
|
|
|
|