xiaofei 1 anno fa
parent
commit
210e83772a
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      src/modules/print/api.js
  2. 2 2
      src/modules/print/views/PrintTaskManage.vue

+ 2 - 2
src/modules/print/api.js

@@ -113,8 +113,8 @@ export const getPrintTaskPdf = (examDetailId) => {
 export const downloadPrintTaskPdf = (ids) => {
   return $post("/api/admin/exam/print/task_download_pdf", { ids });
 };
-export const rebuildPrintTaskPdf = (examDetailId) => {
-  return $post("/api/admin/exam/print/task_build_pdf", { examDetailId });
+export const rebuildPrintTaskPdf = (id) => {
+  return $postParam("/api/admin/data/task/reset_create_pdf", { id });
 };
 export const printTaskTemplateView = (printPlanId) => {
   return $post("/api/admin/exam/print/template_view", { printPlanId });

+ 2 - 2
src/modules/print/views/PrintTaskManage.vue

@@ -332,7 +332,7 @@
               >查看pdf</el-button
             >
             <el-button
-              v-if="checkPrivilege('link', 'download')"
+              v-if="checkPrivilege('link', 'createpdf')"
               class="btn-primary"
               type="text"
               @click="toRebuildPdf(scope.row)"
@@ -644,7 +644,7 @@ export default {
       ).catch(() => {});
       if (action !== "confirm") return;
 
-      const res = await rebuildPrintTaskPdf(row.examDetailId);
+      const res = await rebuildPrintTaskPdf(row.taskId);
       if (!res) return;
       this.$message.success("操作成功!");
     },