xiatian 3 lat temu
rodzic
commit
a7125aee82
1 zmienionych plików z 36 dodań i 0 usunięć
  1. 36 0
      src/modules/questions/views/GenPaper.vue

+ 36 - 0
src/modules/questions/views/GenPaper.vue

@@ -295,6 +295,15 @@
                       ><i class="el-icon-share"></i> 发送</el-button
                     >
                   </el-dropdown-item>
+                  <el-dropdown-item>
+                    <el-button
+                      size="mini"
+                      type="primary"
+                      plain
+                      @click="audit(scope.row)"
+                      ><i class="el-icon-share"></i> 试卷审核</el-button
+                    >
+                  </el-dropdown-item>
                   <!-- <el-dropdown-item>
                     <el-button
                       size="mini"
@@ -621,6 +630,33 @@ export default {
     this.searchOrgName();
   },
   methods: {
+    audit(row) {
+      this.$confirm(
+        "请通过试卷预览或编辑功能,认真检查试卷结构和题目,确认试卷无问题,则可以审核确认。",
+        "试卷内容是否确认通过",
+        {
+          type: "info",
+        }
+      ).then(() => {
+        this.loading = true;
+        this.$http.get(QUESTION_API + "/paper/audit/" + row.id).then(
+          () => {
+            this.$notify({
+              message: "操作成功",
+              type: "success",
+            });
+            this.loading = false;
+          },
+          (response) => {
+            this.$notify({
+              message: response.response.data.desc,
+              type: "error",
+            });
+            this.loading = false;
+          }
+        );
+      });
+    },
     exportOriginalPaper(row) {
       var key = this.user.key;
       var token = this.user.token;