|
@@ -3,13 +3,6 @@
|
|
<div class="build-step-title">
|
|
<div class="build-step-title">
|
|
<h3><span>试卷结构设置</span></h3>
|
|
<h3><span>试卷结构设置</span></h3>
|
|
<div>
|
|
<div>
|
|
- <el-button
|
|
|
|
- v-if="!isEdit"
|
|
|
|
- type="success"
|
|
|
|
- size="small"
|
|
|
|
- @click="toSelectStruct"
|
|
|
|
- >选择试卷结构</el-button
|
|
|
|
- >
|
|
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
size="small"
|
|
size="small"
|
|
@@ -73,6 +66,7 @@
|
|
courseId,
|
|
courseId,
|
|
sourceDetailId: detail.sourceDetailId,
|
|
sourceDetailId: detail.sourceDetailId,
|
|
}"
|
|
}"
|
|
|
|
+ :data-source="detail"
|
|
@count-change="(val) => structCountChange(val, detail)"
|
|
@count-change="(val) => structCountChange(val, detail)"
|
|
></question-group-struct>
|
|
></question-group-struct>
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
@@ -84,19 +78,12 @@
|
|
:detail="curDetail"
|
|
:detail="curDetail"
|
|
@modified="detailModified"
|
|
@modified="detailModified"
|
|
></modify-detail-struct>
|
|
></modify-detail-struct>
|
|
- <!-- AutoBuildPaperStructManage -->
|
|
|
|
- <auto-build-paper-struct-manage
|
|
|
|
- v-if="!isEdit"
|
|
|
|
- ref="AutoBuildPaperStructManage"
|
|
|
|
- :course-id="courseId"
|
|
|
|
- ></auto-build-paper-struct-manage>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import ModifyDetailStruct from "./ModifyDetailStruct.vue";
|
|
import ModifyDetailStruct from "./ModifyDetailStruct.vue";
|
|
import QuestionGroupStruct from "./QuestionGroupStruct.vue";
|
|
import QuestionGroupStruct from "./QuestionGroupStruct.vue";
|
|
-import AutoBuildPaperStructManage from "./AutoBuildPaperStructManage.vue";
|
|
|
|
import { isAnEmptyRichText } from "@/utils/utils";
|
|
import { isAnEmptyRichText } from "@/utils/utils";
|
|
import { deepCopy } from "@/plugins/utils";
|
|
import { deepCopy } from "@/plugins/utils";
|
|
|
|
|
|
@@ -105,7 +92,6 @@ export default {
|
|
components: {
|
|
components: {
|
|
ModifyDetailStruct,
|
|
ModifyDetailStruct,
|
|
QuestionGroupStruct,
|
|
QuestionGroupStruct,
|
|
- AutoBuildPaperStructManage,
|
|
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
courseId: {
|
|
courseId: {
|
|
@@ -126,11 +112,6 @@ export default {
|
|
activeNames: [],
|
|
activeNames: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- computed: {
|
|
|
|
- isEdit() {
|
|
|
|
- return !!(this.detailSource && this.detailSource.length);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
mounted() {
|
|
mounted() {
|
|
if (this.detailSource) {
|
|
if (this.detailSource) {
|
|
this.details = deepCopy(this.detailSource);
|
|
this.details = deepCopy(this.detailSource);
|
|
@@ -138,9 +119,6 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
isAnEmptyRichText,
|
|
isAnEmptyRichText,
|
|
- toSelectStruct() {
|
|
|
|
- this.$refs.AutoBuildPaperStructManage.open();
|
|
|
|
- },
|
|
|
|
addDetail() {
|
|
addDetail() {
|
|
this.curDetail = { courseId: this.courseId };
|
|
this.curDetail = { courseId: this.courseId };
|
|
this.$refs.ModifyDetailStruct.open();
|
|
this.$refs.ModifyDetailStruct.open();
|