Explorar el Código

bug - paper by hand missing subject

hehaitao hace 1 año
padre
commit
db1c2275e7

+ 2 - 1
src/views/questioncenter/components/generate-tabs/paper-by-hand.vue

@@ -349,7 +349,8 @@ export default {
           'paperData',
           JSON.stringify({
             paperTitle: null,
-            subjectId: this.queryOutput.subjectId
+            subjectId: this.queryOutput.subjectId,
+            subjectName: this.queryOutput.subjectName
           })
         )
         localStorage.setItem(

+ 7 - 7
src/views/questioncenter/components/generate-tabs/paper-record.vue

@@ -13,8 +13,8 @@
             <el-link @click="clickEditPaperName(scope.row)"><i class="el-icon-edit"></i>{{ scope.row.name }}</el-link>
           </template>
         </el-table-column>
-        <el-table-column prop="remark" label="试卷概要"></el-table-column>
-        <el-table-column prop="status" label="状态"></el-table-column>
+        <!--        <el-table-column prop="remark" label="试卷概要"></el-table-column>-->
+        <!--        <el-table-column prop="status" label="状态"></el-table-column>-->
         <el-table-column prop="createdTime" label="组卷时间"></el-table-column>
         <el-table-column label="操作">
           <template slot-scope="scope">
@@ -53,15 +53,15 @@ import {
   download,
   listCustomerPaperQeustions,
   paperRecords,
-  saveToPersonResources, updateNameById
+  saveToPersonResources,
+  updateNameById
 } from '@/api/webApi/webQue'
-import consts from '@/common/mx-const'
-import { mapGetters } from 'vuex'
+import {mapGetters} from 'vuex'
 
 export default {
   mixins: [PaperWorkIdentifierMixin],
   name: 'paper-record',
-  components: { MxCondition },
+  components: {MxCondition},
   data() {
     return {
       queryParams: {
@@ -130,7 +130,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       })
-      await deletePaper({ paperId })
+      await deletePaper({paperId})
       this.msgSuccess('删除成功!')
       this.getPaperRecords()
     },

+ 1 - 0
src/views/questioncenter/paper.vue

@@ -291,6 +291,7 @@ export default {
       let param = {
         ...this.extraData,
         subjectid: this.jsonData.subjectId ? this.jsonData.subjectId : 0,
+        subjectName: this.jsonData.subjectName || '',
         gradeId: this.jsonData.gradeId,
         buildType: this.jsonData.buildType,
         name: this.papername,