|
@@ -298,7 +298,9 @@
|
|
|
@click="toMovePaperDetail(paperDetail, 'up')"
|
|
|
>上移</span
|
|
|
>
|
|
|
- <span v-if="detailIndex < paper.paperDetails.length - 1"
|
|
|
+ <span
|
|
|
+ v-if="detailIndex < paper.paperDetails.length - 1"
|
|
|
+ @click="toMovePaperDetail(paperDetail, 'down')"
|
|
|
>下移</span
|
|
|
>
|
|
|
<span @click="toDeletePaperDetail(paperDetail)">删除</span>
|
|
@@ -905,14 +907,16 @@ export default {
|
|
|
this.initPaper();
|
|
|
},
|
|
|
methods: {
|
|
|
- async initPaper(bool) {
|
|
|
+ async initPaper(bool, bool2) {
|
|
|
const res = await paperDetailApi(this.paperId);
|
|
|
- res.data.paperDetails.forEach((detail) => {
|
|
|
- detail.showQuestions = true;
|
|
|
- detail.paperDetailUnits.forEach((question) => {
|
|
|
- question.showSubQuestions = true;
|
|
|
+ if (!bool2) {
|
|
|
+ res.data.paperDetails.forEach((detail) => {
|
|
|
+ detail.showQuestions = true;
|
|
|
+ detail.paperDetailUnits.forEach((question) => {
|
|
|
+ question.showSubQuestions = true;
|
|
|
+ });
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
this.paper = res.data;
|
|
|
this.paper.title = this.paper.title || this.paper.name;
|
|
|
this.showCheckDuplicate();
|
|
@@ -1176,7 +1180,7 @@ export default {
|
|
|
|
|
|
if (!res) return;
|
|
|
this.$message.success("操作成功!");
|
|
|
- this.initPaper();
|
|
|
+ this.initPaper(false, true);
|
|
|
},
|
|
|
// 删除大题
|
|
|
async toDeletePaperDetail(detail) {
|