| | |
| | | {{ scope.row.sex == 0?'男':'女' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="身份证号" align="center" prop="code" /> |
| | | <el-table-column label="身份证号" align="center" prop="code"> |
| | | <template #default="scope"> |
| | | {{scope.row.code | peridcardtm}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="电话" align="center" prop="mobilePhone"/> |
| | | <el-table-column label="民族" align="center" prop="nationCode"> |
| | | <template #default="scope"> |
| | |
| | | this.getPage() |
| | | }, |
| | | viewFile(file){ |
| | | const t = this |
| | | axios.get(process.env.VUE_APP_BASE_API + file.fileUrl,{headers:{'Content-Type': 'application/json','Authorization': "Bearer " + getToken()},responseType: 'blob'}).then(res=>{ |
| | | if (res) { |
| | | if (res && res.data) { |
| | | const link = document.createElement('a') |
| | | let blob = new Blob([res.data],{type: res.data.type}) |
| | | link.style.display = "none"; |
| | | link.href = URL.createObjectURL(blob); // 创建URL |
| | | window.open(link.href) |
| | | } else { |
| | | this.$message.error('获取文件失败') |
| | | t.$message.error('获取文件失败') |
| | | } |
| | | }).catch(function(err){ |
| | | if(err == 'Error: Network Error'){ |
| | | t.$message.error('获取文件失败,请重新上传') |
| | | } |
| | | if(err == 'Error: Request failed with status code 404'){ |
| | | t.$message.error('获取文件失败,请重新上传') |
| | | } |
| | | }) |
| | | }, |