|
@@ -181,76 +181,67 @@
|
|
|
<h3>
|
|
|
<span>{{ paperDetail.cnNum }}</span> <span>.</span>
|
|
|
<span>{{ paperDetail.name }}</span>
|
|
|
- <span v-if="!paperDetail.selective">
|
|
|
- ({{
|
|
|
- !paperDetail.title ? "本大题" : paperDetail.title + ","
|
|
|
- }}共{{ paperDetail.unitCount }}小题,满分{{
|
|
|
- paperDetail.score
|
|
|
- }}分)
|
|
|
- </span>
|
|
|
- <span v-else>
|
|
|
- ({{
|
|
|
- !paperDetail.title ? "本大题" : paperDetail.title + ","
|
|
|
- }}选做题,{{ paperDetail.unitCount }}选{{
|
|
|
- paperDetail.selectiveCount
|
|
|
- }},{{ paperDetail.selectiveRule | selectiveRuleTypeFilter }})
|
|
|
- </span>
|
|
|
</h3>
|
|
|
</div>
|
|
|
<rich-text
|
|
|
class="edit-cont-body"
|
|
|
:text-json="paperDetail.description"
|
|
|
></rich-text>
|
|
|
- <div class="edit-cont-action">
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- @click="toSelectPaperDetailQues(paperDetail)"
|
|
|
- >选题
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- @click="toEditPaperDetail(paperDetail)"
|
|
|
- >编辑
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- v-if="detailIndex"
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- @click="toMovePaperDetail(paperDetail, 'up')"
|
|
|
- >上移
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- v-if="detailIndex < paper.paperDetails.length - 1"
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- @click="toMovePaperDetail(paperDetail, 'down')"
|
|
|
- >下移
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="danger"
|
|
|
- @click="toDeletePaperDetail(paperDetail)"
|
|
|
- >删除
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- :icon="
|
|
|
- paperDetail.showQuestions
|
|
|
- ? 'el-icon-arrow-up'
|
|
|
- : 'el-icon-arrow-down'
|
|
|
- "
|
|
|
- @click.stop="
|
|
|
- paperDetail.showQuestions = !paperDetail.showQuestions
|
|
|
- "
|
|
|
- ></el-button>
|
|
|
+ <div class="edit-cont-action box-justify">
|
|
|
+ <div>
|
|
|
+ 共{{ paperDetail.unitCount }}小题,满分{{ paperDetail.score }}分
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="toSelectPaperDetailQues(paperDetail)"
|
|
|
+ >选题
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="toEditPaperDetail(paperDetail)"
|
|
|
+ >编辑
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="detailIndex"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="toMovePaperDetail(paperDetail, 'up')"
|
|
|
+ >上移
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="detailIndex < paper.paperDetails.length - 1"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="toMovePaperDetail(paperDetail, 'down')"
|
|
|
+ >下移
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="danger"
|
|
|
+ @click="toDeletePaperDetail(paperDetail)"
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ :icon="
|
|
|
+ paperDetail.showQuestions
|
|
|
+ ? 'el-icon-arrow-up'
|
|
|
+ : 'el-icon-arrow-down'
|
|
|
+ "
|
|
|
+ @click.stop="
|
|
|
+ paperDetail.showQuestions = !paperDetail.showQuestions
|
|
|
+ "
|
|
|
+ ></el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-show="quesTagShow" class="edit-property">
|
|
@@ -269,6 +260,24 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <template v-if="paperDetail.selective">
|
|
|
+ <div class="edit-property-item">
|
|
|
+ <div class="edit-property-body edit-property-danger">
|
|
|
+ <div class="edit-property-title">选做题数</div>
|
|
|
+ <div class="edit-property-content">
|
|
|
+ {{ paperDetail.selectiveCount }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="edit-property-item">
|
|
|
+ <div class="edit-property-body edit-property-danger">
|
|
|
+ <div class="edit-property-title">取分规则</div>
|
|
|
+ <div class="edit-property-content">
|
|
|
+ {{ paperDetail.selectiveRule | selectiveRuleTypeFilter }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|