|
@@ -715,10 +715,20 @@
|
|
|
</span>
|
|
|
</span>
|
|
|
</el-table-column>
|
|
|
- <el-table-column width="200" label="操作">
|
|
|
+ <el-table-column width="300" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="scope.row.locked">锁定中,请稍后操作</div>
|
|
|
<div v-else>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ :disabled="!scope.row.photoPath"
|
|
|
+ icon="el-icon-picture"
|
|
|
+ @click="showPhoto(scope.row)"
|
|
|
+ >
|
|
|
+ 查看照片
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
v-if="rolePrivileges.update_examStudent"
|
|
|
size="mini"
|
|
@@ -745,17 +755,6 @@
|
|
|
>删除
|
|
|
</el-button></el-dropdown-item
|
|
|
>
|
|
|
- <el-dropdown-item>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- icon="el-icon-picture"
|
|
|
- @click="showPhoto(scope.row)"
|
|
|
- >
|
|
|
- 查看照片
|
|
|
- </el-button>
|
|
|
- </el-dropdown-item>
|
|
|
<el-dropdown-item>
|
|
|
<el-button
|
|
|
v-if="
|
|
@@ -1143,24 +1142,16 @@ export default {
|
|
|
this.photoDialog = false;
|
|
|
},
|
|
|
showPhoto(row) {
|
|
|
- let url =
|
|
|
- CORE_API +
|
|
|
- "/student/getStudentInfo?rootOrgId=" +
|
|
|
- row.rootOrgId +
|
|
|
- "&studentId=" +
|
|
|
- row.studentId;
|
|
|
- this.$httpWithMsg.get(url).then(response => {
|
|
|
- if (response.data.photoPath) {
|
|
|
- this.photo.url = response.data.photoPath;
|
|
|
- this.photoDialog = true;
|
|
|
- } else {
|
|
|
- this.$notify({
|
|
|
- showClose: true,
|
|
|
- message: "未上传照片",
|
|
|
- type: "error"
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ if (row.photoPath) {
|
|
|
+ this.photo.url = row.photoPath;
|
|
|
+ this.photoDialog = true;
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ showClose: true,
|
|
|
+ message: "未上传照片",
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
getExcelTitle(row) {
|
|
|
return "第" + row + "行";
|