|
@@ -183,6 +183,10 @@
|
|
|
</span>
|
|
|
</h3>
|
|
|
</div>
|
|
|
+ <rich-text
|
|
|
+ class="edit-cont-body"
|
|
|
+ :text-json="paperDetail.description"
|
|
|
+ ></rich-text>
|
|
|
<div
|
|
|
:id="paperDetail.id"
|
|
|
class="edit-cont-action"
|
|
@@ -242,10 +246,6 @@
|
|
|
@click.stop="showContent(detailIndex)"
|
|
|
></el-button>
|
|
|
</div>
|
|
|
- <rich-text
|
|
|
- class="edit-cont-body"
|
|
|
- :text-json="paperDetail.description"
|
|
|
- ></rich-text>
|
|
|
</div>
|
|
|
<div v-show="quesTagShow" class="edit-property">
|
|
|
<div class="edit-property-box">
|
|
@@ -298,6 +298,25 @@
|
|
|
></rich-text>
|
|
|
<span> ({{ paperDetailUnit.score }}分) </span>
|
|
|
</div>
|
|
|
+ <div class="edit-cont-body">
|
|
|
+ <div
|
|
|
+ v-for="(quesOption, optionIndex) in paperDetailUnit.question
|
|
|
+ .quesOptions"
|
|
|
+ :key="optionIndex"
|
|
|
+ class="paper-option"
|
|
|
+ >
|
|
|
+ <span>{{ optionIndex | optionOrderWordFilter }}. </span>
|
|
|
+ <rich-text :text-json="quesOption.optionBody"></rich-text>
|
|
|
+ </div>
|
|
|
+ <div v-if="!isNested(paperDetailUnit.questionType)">
|
|
|
+ <div v-show="quesAnswerShow" class="paper-answer">
|
|
|
+ <span>答案:</span>
|
|
|
+ <question-answer
|
|
|
+ :data="paperDetailUnit.question"
|
|
|
+ ></question-answer>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div
|
|
|
:id="paperDetailUnit.id"
|
|
|
class="edit-cont-action"
|
|
@@ -379,25 +398,6 @@
|
|
|
@click.stop="showSubContent(detailIndex + '-' + unitIndex)"
|
|
|
></el-button>
|
|
|
</div>
|
|
|
- <div class="edit-cont-body">
|
|
|
- <div
|
|
|
- v-for="(quesOption, optionIndex) in paperDetailUnit.question
|
|
|
- .quesOptions"
|
|
|
- :key="optionIndex"
|
|
|
- class="paper-option"
|
|
|
- >
|
|
|
- <span>{{ optionIndex | optionOrderWordFilter }}. </span>
|
|
|
- <rich-text :text-json="quesOption.optionBody"></rich-text>
|
|
|
- </div>
|
|
|
- <div v-if="!isNested(paperDetailUnit.questionType)">
|
|
|
- <div v-show="quesAnswerShow" class="paper-answer">
|
|
|
- <span>答案:</span>
|
|
|
- <question-answer
|
|
|
- :data="paperDetailUnit.question"
|
|
|
- ></question-answer>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div v-show="quesTagShow" class="edit-property">
|
|
|
<div class="edit-property-box">
|
|
@@ -442,6 +442,35 @@
|
|
|
quesMouseOut(getSubQuesEditId(paperDetailUnit, subQuestion))
|
|
|
"
|
|
|
>
|
|
|
+ <div class="edit-cont-title">
|
|
|
+ <span>{{ subQuestion.subNumber }}. </span>
|
|
|
+ <rich-text :text-json="subQuestion.quesBody"></rich-text>
|
|
|
+ <span
|
|
|
+ >({{ paperDetailUnit.subScoreList[subIndex] }}分)</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="!isMatchingQuestion(paperDetailUnit.questionType)"
|
|
|
+ class="edit-cont-body"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ v-for="(
|
|
|
+ subQuesOption, subOptIndex
|
|
|
+ ) in subQuestion.quesOptions"
|
|
|
+ :key="subOptIndex"
|
|
|
+ class="paper-option"
|
|
|
+ >
|
|
|
+ <span>{{ subOptIndex | optionOrderWordFilter }}. </span>
|
|
|
+ <rich-text
|
|
|
+ :text-json="subQuesOption.optionBody"
|
|
|
+ ></rich-text>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-show="quesAnswerShow" class="paper-answer">
|
|
|
+ <span>答案:</span>
|
|
|
+ <question-answer :data="subQuestion"></question-answer>
|
|
|
+ <!-- <rich-text :text-json="subQuestion.quesAnswer"></rich-text> -->
|
|
|
+ </div>
|
|
|
<div
|
|
|
:id="getSubQuesEditId(paperDetailUnit, subQuestion)"
|
|
|
class="edit-cont-action"
|
|
@@ -483,36 +512,6 @@
|
|
|
>下移
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <div class="edit-cont-title">
|
|
|
- <span>{{ subQuestion.subNumber }}. </span>
|
|
|
- <rich-text :text-json="subQuestion.quesBody"></rich-text>
|
|
|
- <span
|
|
|
- >({{ paperDetailUnit.subScoreList[subIndex] }}分)</span
|
|
|
- >
|
|
|
- </div>
|
|
|
-
|
|
|
- <div
|
|
|
- v-if="!isMatchingQuestion(paperDetailUnit.questionType)"
|
|
|
- class="edit-cont-body"
|
|
|
- >
|
|
|
- <div
|
|
|
- v-for="(
|
|
|
- subQuesOption, subOptIndex
|
|
|
- ) in subQuestion.quesOptions"
|
|
|
- :key="subOptIndex"
|
|
|
- class="paper-option"
|
|
|
- >
|
|
|
- <span>{{ subOptIndex | optionOrderWordFilter }}. </span>
|
|
|
- <rich-text
|
|
|
- :text-json="subQuesOption.optionBody"
|
|
|
- ></rich-text>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div v-show="quesAnswerShow" class="paper-answer">
|
|
|
- <span>答案:</span>
|
|
|
- <question-answer :data="subQuestion"></question-answer>
|
|
|
- <!-- <rich-text :text-json="subQuestion.quesAnswer"></rich-text> -->
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div v-show="quesTagShow" class="edit-property">
|
|
|
<div class="edit-property-box">
|
|
@@ -1180,6 +1179,7 @@ import PaperBasicComposition from "./PaperBasicComposition.vue";
|
|
|
import PaperQuestionType from "./PaperQuestionType.vue";
|
|
|
import PaperBlue from "./PaperBlue.vue";
|
|
|
import AuditInfo from "./AuditInfo.vue";
|
|
|
+import { checkRichTextContentIsEmpty } from "@/plugins/utils";
|
|
|
|
|
|
export default {
|
|
|
name: "EditPaperApp",
|
|
@@ -2268,6 +2268,18 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ if (
|
|
|
+ this.quesModel.quesOptions.length &&
|
|
|
+ this.quesModel.quesOptions.some((item) =>
|
|
|
+ checkRichTextContentIsEmpty(item.optionBody)
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ this.$notify({
|
|
|
+ message: "有选项内容为空",
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
if (this.paper.paperType == "GENERATE") {
|
|
|
this.$confirm(
|