提交 eba866a2 authored 作者: 王鹏飞's avatar 王鹏飞

优化互评功能模块

上级 2a9a1cd5
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
</el-form> </el-form>
</template> </template>
</div> </div>
<p style="color: red" v-if="deadline">{{ $t('viewerWork.deadline', { date: deadline }) }}</p> <p style="color: red" v-if="deadline && detail.status !== 1">
{{ $t('viewerWork.deadline', { date: deadline }) }}
</p>
<!-- 驳回状态 --> <!-- 驳回状态 -->
<template v-if="detail.status === 8"> <template v-if="detail.status === 8">
<div class="work-bottom"> <div class="work-bottom">
...@@ -44,7 +46,7 @@ ...@@ -44,7 +46,7 @@
</template> </template>
<!-- 正常状态 --> <!-- 正常状态 -->
<template v-else> <template v-else>
<div class="work-bottom"> <div class="work-bottom" v-if="detail.status !== 1">
<div class="info"> <div class="info">
<template v-if="isRevised"> <template v-if="isRevised">
<div class="paper-check"> <div class="paper-check">
...@@ -73,7 +75,13 @@ ...@@ -73,7 +75,13 @@
submitText submitText
}}</el-button> }}</el-button>
</el-tooltip> </el-tooltip>
<span v-if="hasComment">{{ $t('viewerWork.commentTips') }}</span> <!-- 驳回 -->
<template v-if="detail.status === 1">
<span>提交后不可修改,请检查好作业内容再做提交。</span>
</template>
<template v-else>
<span v-if="hasComment">{{ $t('viewerWork.commentTips') }}</span>
</template>
</div> </div>
</template> </template>
</container> </container>
...@@ -86,7 +94,7 @@ ...@@ -86,7 +94,7 @@
id="comment" id="comment"
/> />
<el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="400px"> <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="500px">
<div class="paper-check-item"> <div class="paper-check-item">
<p>您本次的作业被老师驳回,请您重新编辑作业提交!</p> <p>您本次的作业被老师驳回,请您重新编辑作业提交!</p>
</div> </div>
...@@ -98,11 +106,11 @@ ...@@ -98,11 +106,11 @@
<span>{{ $t('viewerWork.rejectContent') }}</span> <span>{{ $t('viewerWork.rejectContent') }}</span>
<div class="edit_html" v-html="detail.check_comments"></div> <div class="edit_html" v-html="detail.check_comments"></div>
</div> </div>
<div class="paper-check-item">
<p>注:重新提交后不可修改,请检查好作业内容再做提交。</p>
</div>
<template #footer> <template #footer>
<el-button type="primary" @click="onReEdit">重新编辑</el-button> <div style="text-align: center">
<el-button type="primary" @click="onReEdit">重新编辑</el-button>
<p style="margin-top: 16px; color: #f00">注:重新提交后不可修改,请检查好作业内容再做提交。</p>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
<el-button type="primary" :disabled="disabled" @click="handleSubmit">{{ <el-button type="primary" :disabled="disabled" @click="handleSubmit">{{
$t('viewerWork.commentSubmitText') $t('viewerWork.commentSubmitText')
}}</el-button> }}</el-button>
<p>{{ $t('viewerWork.commentSubmitTips', { date: endDate }) }}</p> <p v-if="status === 1">注:重新提交后不可修改,请检查好作业内容再做提交。</p>
<p v-else>{{ $t('viewerWork.commentSubmitTips', { date: endDate }) }}</p>
</div> </div>
<div class="more"> <div class="more">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论