|
@@ -44,19 +44,19 @@
|
|
|
<Button class="base-info-btn" type="info" @click="goAnswerSheet"
|
|
|
v-show="paperInfo.item.length && paperInfo.id">{{ paper.sheet ? $t('evaluation.paperList.reCreateSheet') : $t('evaluation.paperList.createSheet') }}</Button>
|
|
|
</div>
|
|
|
- <div v-if="isExamPaper && !isPreviewItems">
|
|
|
+ <div v-if="isExamPaper && !isPreviewItems && paperInfo.item.length">
|
|
|
<Button class="base-info-btn" type="info" @click="onHandleToggle"
|
|
|
- v-show="paperInfo.item.length && !isShowAnalysis">{{ isAllOpen ? $t('evaluation.index.collapseAll') : $t('evaluation.index.openAll')}}</Button>
|
|
|
+ v-show="!isShowAnalysis">{{ isAllOpen ? $t('evaluation.index.collapseAll') : $t('evaluation.index.openAll')}}</Button>
|
|
|
<Button class="base-info-btn" type="info" @click="onViewModelChange"
|
|
|
- v-show="paperInfo.item.length && !isShowAnalysis">{{ `${ viewModel === 'type' ? this.$t('evaluation.paperList.orderByList') : this.$t('evaluation.paperList.orderByType') }` }}</Button>
|
|
|
+ v-show="!isShowAnalysis">{{ `${ viewModel === 'type' ? this.$t('evaluation.paperList.orderByList') : this.$t('evaluation.paperList.orderByType') }` }}</Button>
|
|
|
<Button class="base-info-btn" type="info" @click="isShowAnalysis = !isShowAnalysis"
|
|
|
- v-show="paperInfo.item.length && !isHideAnalysis">{{ isShowAnalysis ? this.$t('evaluation.paperList.paperDetails') : this.$t('evaluation.paperList.paperAnalysis')}}</Button>
|
|
|
+ v-show="!isHideAnalysis">{{ isShowAnalysis ? this.$t('evaluation.paperList.paperDetails') : this.$t('evaluation.paperList.paperAnalysis')}}</Button>
|
|
|
<Button class="base-info-btn" type="info" @click="downloadSheet" :loading="downLoading"
|
|
|
- v-show="paperInfo.item.length && paperInfo.id && paper.sheet && !hideSheet && !isSharePreview">{{ $t('evaluation.paperList.goAnswerSheet') }}</Button>
|
|
|
+ v-show="paperInfo.id && paper.sheet && !hideSheet && !isSharePreview">{{ $t('evaluation.paperList.goAnswerSheet') }}</Button>
|
|
|
<Button class="base-info-btn" type="info" @click="goAnswerSheet"
|
|
|
- v-show="paperInfo.item.length && paperInfo.id && !hideSheet && !isSharePreview">{{ paper.sheet ? $t('evaluation.paperList.reCreateSheet') : $t('evaluation.paperList.createSheet') }}</Button>
|
|
|
+ v-show="paperInfo.id && !hideSheet && !isSharePreview">{{ paper.sheet ? $t('evaluation.paperList.reCreateSheet') : $t('evaluation.paperList.createSheet') }}</Button>
|
|
|
<Button class="base-info-btn" type="info" @click="exitPreview"
|
|
|
- v-show="paperInfo.item.length && paperInfo.id && isSharePreview">{{ $t('evaluation.index.backList') }}</Button>
|
|
|
+ v-show="paperInfo.id && isSharePreview">{{ $t('evaluation.index.backList') }}</Button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 试卷头部信息 -->
|
|
@@ -68,7 +68,7 @@
|
|
|
</ExamPaperAnalysis>
|
|
|
<!-- 题目类型及列表 -->
|
|
|
<BaseExerciseList :paper="paperInfo" @dataUpdate="onListUpdate" v-show="!isShowAnalysis"
|
|
|
- ref="exList" :isShowTools="!isPreview" :isExamPaper="isExamPaper || isPreviewItems" @toggleChange="onToggleChange"
|
|
|
+ ref="exList" :isShowTools="!isPreview" :canFix="canFix" :isExamPaper="isExamPaper || isPreviewItems" @toggleChange="onToggleChange"
|
|
|
@scoreUpdate="scoreUpdate"></BaseExerciseList>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -159,6 +159,10 @@
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
+ canFix: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|