|
@@ -19,13 +19,13 @@
|
|
|
:data="dataList"
|
|
|
>
|
|
|
<el-table-column label="试题">
|
|
|
- <template slot-scope="scope">
|
|
|
+ <div slot-scope="scope" @click="toViewQuestion(scope.row)">
|
|
|
<rich-text
|
|
|
class="row-question-body"
|
|
|
title="点击查看试题"
|
|
|
:text-json="scope.row.quesBody"
|
|
|
></rich-text>
|
|
|
- </template>
|
|
|
+ </div>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="课程">
|
|
|
<template slot-scope="scope">
|
|
@@ -79,16 +79,22 @@
|
|
|
:question="curQuestion"
|
|
|
@modified="getList"
|
|
|
></question-edit-dialog>
|
|
|
+ <!-- QuestionPreviewDialog -->
|
|
|
+ <question-preview-dialog
|
|
|
+ ref="QuestionPreviewDialog"
|
|
|
+ :question="curQuestion"
|
|
|
+ ></question-preview-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { auditQuestionsUnsubmitPageListApi, submitQuestionApi } from "../api";
|
|
|
-import QuestionEditDialog from "../components/QuestionEditDialog.vue";
|
|
|
+import QuestionEditDialog from "./QuestionEditDialog.vue";
|
|
|
+import QuestionPreviewDialog from "./QuestionPreviewDialog.vue";
|
|
|
|
|
|
export default {
|
|
|
name: "AuditQuestionUnsubmit",
|
|
|
- components: { QuestionEditDialog },
|
|
|
+ components: { QuestionEditDialog, QuestionPreviewDialog },
|
|
|
data() {
|
|
|
return {
|
|
|
filter: { creatorName: "" },
|
|
@@ -124,6 +130,10 @@ export default {
|
|
|
this.pageSize = val;
|
|
|
this.toPage(1);
|
|
|
},
|
|
|
+ toViewQuestion(row) {
|
|
|
+ this.curQuestion = row;
|
|
|
+ this.$refs.QuestionPreviewDialog.open();
|
|
|
+ },
|
|
|
toEdit(row) {
|
|
|
const courseInfo = {
|
|
|
courseId: row.course.id,
|