|
@@ -8,12 +8,6 @@
|
|
|
<span>课程名称:{{ modalForm.courseName }}</span>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-checkbox
|
|
|
- v-if="IS_AUTO_MODE"
|
|
|
- v-model="isSaveStructInfo"
|
|
|
- style="margin-right: 10px"
|
|
|
- >同时保存为试卷结构模板</el-checkbox
|
|
|
- >
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
@@ -121,6 +115,14 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+ <div v-if="IS_AUTO_MODE" style="text-align: right">
|
|
|
+ <el-checkbox v-model="isSaveStructInfo" style="margin-right: 10px"
|
|
|
+ >同时保存为试卷结构模板</el-checkbox
|
|
|
+ >
|
|
|
+ <el-button type="success" size="small" @click="toSelectStruct"
|
|
|
+ >选择试卷结构</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="part-box">
|
|
@@ -130,6 +132,13 @@
|
|
|
:course-id="modalForm.courseId"
|
|
|
></component>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- AutoBuildPaperStructManage -->
|
|
|
+ <auto-build-paper-struct-manage
|
|
|
+ v-if="IS_AUTO_MODE"
|
|
|
+ ref="AutoBuildPaperStructManage"
|
|
|
+ :course-id="modalForm.courseId"
|
|
|
+ ></auto-build-paper-struct-manage>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -137,6 +146,8 @@
|
|
|
import BuildPaperAuto from "../components/BuildPaperAuto.vue";
|
|
|
import BuildPaperManual from "../components/BuildPaperManual.vue";
|
|
|
import BuildPaperSimple from "../components/BuildPaperSimple.vue";
|
|
|
+import AutoBuildPaperStructManage from "../components/AutoBuildPaperStructManage.vue";
|
|
|
+
|
|
|
import { buildPaperApi, autoBuildPaperStructSaveApi } from "../api";
|
|
|
|
|
|
const initModalForm = {
|
|
@@ -154,7 +165,12 @@ const initModalForm = {
|
|
|
|
|
|
export default {
|
|
|
name: "BuildPaper",
|
|
|
- components: { BuildPaperAuto, BuildPaperManual, BuildPaperSimple },
|
|
|
+ components: {
|
|
|
+ BuildPaperAuto,
|
|
|
+ BuildPaperManual,
|
|
|
+ BuildPaperSimple,
|
|
|
+ AutoBuildPaperStructManage,
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
loading: false,
|
|
@@ -219,6 +235,9 @@ export default {
|
|
|
this.modalForm.courseId = genPaperInfo.courseId;
|
|
|
},
|
|
|
methods: {
|
|
|
+ toSelectStruct() {
|
|
|
+ this.$refs.AutoBuildPaperStructManage.open();
|
|
|
+ },
|
|
|
async confirm() {
|
|
|
let valid = await this.$refs.modalFormComp.validate().catch(() => {});
|
|
|
if (!valid) return;
|