|
@@ -297,6 +297,28 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ v-if="paperDetailUnit.question.quesProperties"
|
|
|
+ class="edit-cont-props"
|
|
|
+ style="margin-top: 10px"
|
|
|
+ >
|
|
|
+ <el-tag
|
|
|
+ v-for="(content, propIndex) in paperDetailUnit.question
|
|
|
+ .quesProperties"
|
|
|
+ :key="propIndex"
|
|
|
+ type="primary"
|
|
|
+ effect="dark"
|
|
|
+ style="margin-right: 5px; margin-bottom: 5px"
|
|
|
+ >
|
|
|
+ {{ content.courseProperty && content.courseProperty.name }}
|
|
|
+ <span style="margin: 0 3px">/</span>
|
|
|
+ {{ content.firstProperty && content.firstProperty.name }}
|
|
|
+ <span v-if="content.secondProperty" style="margin: 0 3px"
|
|
|
+ >/</span
|
|
|
+ >
|
|
|
+ {{ content.secondProperty && content.secondProperty.name }}
|
|
|
+ </el-tag>
|
|
|
+ </div>
|
|
|
<div class="edit-cont-action">
|
|
|
<span class="tips-info">
|
|
|
{{ paperDetailUnit.question.bodyLengthText }}
|
|
@@ -425,6 +447,27 @@
|
|
|
<!-- <rich-text :text-json="subQuestion.quesAnswer"></rich-text> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ v-if="subQuestion.quesProperties"
|
|
|
+ class="edit-cont-props"
|
|
|
+ style="margin-top: 10px"
|
|
|
+ >
|
|
|
+ <el-tag
|
|
|
+ v-for="(content, propIndex) in subQuestion.quesProperties"
|
|
|
+ :key="propIndex"
|
|
|
+ type="primary"
|
|
|
+ effect="dark"
|
|
|
+ style="margin-right: 5px; margin-bottom: 5px"
|
|
|
+ >
|
|
|
+ {{ content.courseProperty && content.courseProperty.name }}
|
|
|
+ <span style="margin: 0 3px">/</span>
|
|
|
+ {{ content.firstProperty && content.firstProperty.name }}
|
|
|
+ <span v-if="content.secondProperty" style="margin: 0 3px"
|
|
|
+ >/</span
|
|
|
+ >
|
|
|
+ {{ content.secondProperty && content.secondProperty.name }}
|
|
|
+ </el-tag>
|
|
|
+ </div>
|
|
|
<div v-show="quesTagShow" class="edit-property">
|
|
|
<div class="edit-property-box">
|
|
|
<div
|
|
@@ -756,10 +799,11 @@ export default {
|
|
|
},
|
|
|
// 大题编辑
|
|
|
toEditPaperDetail(detail) {
|
|
|
- this.curDetail = detail;
|
|
|
+ this.curDetail = { ...detail, detailName: detail.name };
|
|
|
this.$refs.ModifyDetailStruct.open();
|
|
|
},
|
|
|
async detailModified(detail) {
|
|
|
+ detail.name = detail.detailName;
|
|
|
const res = await paperDetailUpdateApi(this.paperId, detail).catch(
|
|
|
(error) => {
|
|
|
this.$notify({
|
|
@@ -776,7 +820,7 @@ export default {
|
|
|
(item) => item.id === detail.id
|
|
|
);
|
|
|
if (!paperDetail) return;
|
|
|
- paperDetail.name = detail.name;
|
|
|
+ paperDetail.name = detail.detailName;
|
|
|
paperDetail.description = detail.description;
|
|
|
},
|
|
|
// 移动大题
|