| | |
| | | {{getNationName(scope.row.nationCode)}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="最高学历" align="center" prop="eduLevel"/> |
| | | <el-table-column label="最高学历" align="center" prop="eduLevel"> |
| | | <template #default="scope"> |
| | | {{getDegreeName(scope.row.eduLevel)}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="证件照片" align="center" prop="photoPath"> |
| | | <template #default="scope"> |
| | | <el-button type="text" @click="viewFile(scope.row.photoAttachment)">预览</el-button> |
| | |
| | | import { getToken } from "@/utils/auth"; |
| | | export default { |
| | | name: "cPeopleManage", |
| | | dicts: ['sys_nation_code'], |
| | | dicts: ['sys_nation_code','sys_highest_education_code'], |
| | | components: { peopleDialog, experienceDialog, certDialog, trainDialog, examDialog }, |
| | | data() { |
| | | return { |
| | |
| | | if(obj){ |
| | | return obj.label |
| | | }else{ |
| | | return '无' |
| | | return '未知' |
| | | } |
| | | }, |
| | | getDegreeName(code){ |
| | | let obj = JSON.parse(JSON.stringify(this.dict.type.sys_highest_education_code)).find(i=>i.value == code) |
| | | if(obj){ |
| | | return obj.label |
| | | }else{ |
| | | return '未知' |
| | | } |
| | | }, |
| | | openPeople(data,type){ |
| | |
| | | this.getPage() |
| | | }, |
| | | resetQuery(){ |
| | | this.$refs['queryForm'].resetFields() |
| | | this.queryParams = { |
| | | code: '', |
| | | name: '', |
| | | pageNum: 1, |
| | | pageSize: 10 |
| | | } |
| | | this.getPage() |
| | | }, |
| | | handleAdd(){ |
| | | |
| | | }, |
| | | viewFile(file){ |
| | | axios.get(process.env.VUE_APP_BASE_API + file.fileUrl,{headers:{'Content-Type': 'application/json','Authorization': "Bearer " + getToken()},responseType: 'blob'}).then(res=>{ |