zhangjie 2 anni fa
parent
commit
959de59a00

+ 4 - 4
src/modules/paper/api.js

@@ -105,22 +105,22 @@ export const paperQuestionUnitDeleteApi = ({ unitid, questionId }) => {
 
 // audit-paper
 export const auditPaperWaitPageListApi = (datas) => {
-  return $httpWithMsg.get(`${QUESTION_API}/find_pending_trial_paper`, {
+  return $httpWithMsg.post(`${QUESTION_API}/find_pending_trial_paper`, {
     params: datas,
   });
 };
 export const auditPaperAuditedPageListApi = (datas) => {
-  return $httpWithMsg.get(`${QUESTION_API}/find_my_audit_paper`, {
+  return $httpWithMsg.post(`${QUESTION_API}/find_my_audit_paper`, {
     params: datas,
   });
 };
 export const auditPaperApplyPageListApi = (datas) => {
-  return $httpWithMsg.get(`${QUESTION_API}/find_my_paper_status`, {
+  return $httpWithMsg.post(`${QUESTION_API}/find_my_paper_status`, {
     params: datas,
   });
 };
 export const auditPaperUnsubmitPageListApi = (datas) => {
-  return $httpWithMsg.get(`${QUESTION_API}/find_will_submit_paper`, {
+  return $httpWithMsg.post(`${QUESTION_API}/find_will_submit_paper`, {
     params: datas,
   });
 };

+ 3 - 1
src/modules/paper/components/BuildPaperManual.vue

@@ -85,7 +85,9 @@
     <!-- SelectQuestionDialog -->
     <select-question-dialog
       ref="SelectQuestionDialog"
-      :course-d="courseId"
+      :course-id="courseId"
+      :question-type="curDetail.questionType"
+      disabled-question-type
       :disabled-question-ids="disabledQuestionIds"
       @confirm="questionSelected"
     ></select-question-dialog>

+ 20 - 3
src/modules/paper/components/SelectQuestionDialog.vue

@@ -14,7 +14,12 @@
       <el-button size="mini" type="primary" @click="confirm">确定</el-button>
     </div>
 
-    <el-tabs v-model="tabType" type="card" @tab-click="tabChange">
+    <el-tabs
+      v-model="tabType"
+      class="part-box"
+      type="card"
+      @tab-click="tabChange"
+    >
       <el-tab-pane name="1">
         <span slot="label">试题筛选</span>
 
@@ -22,7 +27,10 @@
           <div class="part-filter-form">
             <el-form class="part-filter-form" :inline="true" :model="filter">
               <el-form-item label="题型">
-                <question-type-select v-model="filter.questionType">
+                <question-type-select
+                  v-model="filter.questionType"
+                  :disabled="disabledQuestionType"
+                >
                 </question-type-select>
               </el-form-item>
               <el-form-item label="题目内容">
@@ -45,7 +53,7 @@
           </div>
         </div>
 
-        <el-table :data="questions" border>
+        <el-table :data="questions">
           <el-table-column
             width="60"
             type="index"
@@ -190,6 +198,14 @@ export default {
       type: [String, Number],
       default: "",
     },
+    questionType: {
+      type: String,
+      default: "",
+    },
+    disabledQuestionType: {
+      type: Boolean,
+      default: false,
+    },
     selectedQuestionIds: {
       type: Array,
       default() {
@@ -226,6 +242,7 @@ export default {
   methods: {
     initData() {
       this.filter.courseId = this.courseId;
+      this.filter.questionType = this.questionType;
       this.curSelectedQuestions = [];
       this.curSelectedQuestionIds = [];
       this.toPage(this.currentPage);