Ver Fonte

add:新增同步考场信息按钮

Tang há 3 anos atrás
pai
commit
caa4937073

+ 16 - 0
src/views/education/examManagement/examArrangement/index.vue

@@ -43,6 +43,7 @@
         >
         <el-button type="text" @click="watchs(props.scope.row)">预览</el-button>
         <el-button type="text" @click="downMaterial(props.scope.row)">下载资料</el-button>
+        <el-button type="text" @click="syncUser(props.scope.row)">同步考场信息</el-button>
         <el-button type="text" @click="syncExam(props.scope.row)"
           >同步信息到考场</el-button
         >
@@ -840,6 +841,21 @@ export default {
     downMaterial(row){
       this.$refs.downMaterial.openBox(row)
     },
+    //同步考场信息
+    syncUser(row){
+       this.$api
+        .appcommonwisdomSyncExamStatus({ applyId: row.applyId })
+        .then((res) => {
+          this.$message.success("同步成功")
+          // if (res.data && res.data.total) {
+          //   res.data.applyId = row.applyId;
+          //   this.syncData = res.data;
+          //   this.dialogExamSync = true;
+          // } else {
+          //   this.$message.error("没有学员推送");
+          // }
+        });
+    },
     //同步信息到考场
     syncExam(row) {
       this.$api