|
@@ -922,6 +922,16 @@
|
|
|
>禁用</el-button
|
|
|
>
|
|
|
</el-dropdown-item>
|
|
|
+
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-setting"
|
|
|
+ @click="skipFaceSetting(scope.row)"
|
|
|
+ >跳过人脸</el-button
|
|
|
+ >
|
|
|
+ </el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</div>
|
|
@@ -1726,6 +1736,43 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ skipFaceSetting(row) {
|
|
|
+ this.$confirm("是否跳过人脸?", "提示", {
|
|
|
+ confirmButtonText: "跳过",
|
|
|
+ cancelButtonText: "不跳过",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ let url =
|
|
|
+ EXAM_WORK_API +
|
|
|
+ "/exam/skip/face/setting?enabled=true&examId=" +
|
|
|
+ row.examId +
|
|
|
+ "&examStudentIds=" +
|
|
|
+ row.id;
|
|
|
+
|
|
|
+ this.$httpWithMsg.post(url).then(() => {
|
|
|
+ this.$notify({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ let url =
|
|
|
+ EXAM_WORK_API +
|
|
|
+ "/exam/skip/face/setting?enabled=false&examId=" +
|
|
|
+ row.examId +
|
|
|
+ "&examStudentIds=" +
|
|
|
+ row.id;
|
|
|
+
|
|
|
+ this.$httpWithMsg.post(url).then(() => {
|
|
|
+ this.$notify({
|
|
|
+ type: "success",
|
|
|
+ message: "取消成功!",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
checkIds(row) {
|
|
|
if (row) {
|
|
|
return row.id;
|