xiaofei 1 year ago
parent
commit
61c604bee6

+ 3 - 3
src/modules/mark/components/ScoreClassDetail.vue

@@ -157,7 +157,7 @@
 </template>
 
 <script>
-import { scoreDetailListPage, scoreClassDetailScoreExport } from "../api";
+import { scoreClassDetailListPage, scoreClassDetailScoreExport } from "../api";
 import SimpleImagePreview from "@/components/SimpleImagePreview";
 import { downloadByApi } from "@/plugins/download";
 import markMinxin from "../markMinxin";
@@ -206,7 +206,7 @@ export default {
       const datas = {
         ...this.filter,
         examId: this.instance.examId,
-        paperNumber: this.instance.pageNumber,
+        paperNumber: this.instance.paperNumber,
         pageNumber: this.current,
         pageSize: this.size,
       };
@@ -215,7 +215,7 @@ export default {
       if (datas.breach !== null && datas.breach !== "")
         datas.breach = !!datas.breach;
 
-      const data = await scoreDetailListPage(datas);
+      const data = await scoreClassDetailListPage(datas);
       this.dataList = data.records;
       this.total = data.total;
     },

+ 2 - 2
src/modules/mark/views/ScoreManage.vue

@@ -115,14 +115,14 @@
         >
           <template slot-scope="scope">
             <el-button
-              v-if="checkPrivilege('link', 'Preview')"
+              v-if="checkPrivilege('link', 'ClassScoreDetail')"
               class="btn-primary"
               type="text"
               @click="toClass(scope.row)"
               >班级详情</el-button
             >
             <el-button
-              v-if="checkPrivilege('link', 'Preview')"
+              v-if="checkPrivilege('link', 'ScoreReport')"
               class="btn-primary"
               type="text"
               @click="toReport(scope.row)"