Skip to content

Commit

Permalink
feat: 人员管理模块新增头像上传
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 4, 2021
1 parent f615a16 commit fe236eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"axios": "^0.19.2",
"core-js": "3.6.5",
"dayjs": "1.8.20",
"element-pro-crud": "^0.8.6-2",
"element-pro-crud": "^0.8.6-6",
"element-ui": "^2.15.0",
"inquirer": "^6.5.2",
"lodash": "^4.17.14",
Expand Down Expand Up @@ -48,6 +48,7 @@
"chai": "^4.2.0",
"compression-webpack-plugin": "^4.0.0",
"conventional-changelog-cli": "^2.1.0",
"element-pro-crud": "^0.8.6-6",
"eslint": "^6.0.1",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-vue": "^5.2.3",
Expand Down
Binary file added src/assets/404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/views/person/Person.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
orderCondition="timestamp desc"
:visibleList="{
btnDel: true,
tableTitle: true
}"
>
<template #columnFormatter="{row,prop}">
<template #columnFormatter="{row,prop}">
<el-tag v-if="prop === 'jobno'">{{ row.jobno }}</el-tag>
<span v-if="prop === 'personname'"><i class="el-icon el-icon-user" style="color: red"></i>{{ row.personname }}</span>
<el-avatar fit="fill" v-if="prop === 'avatar'" shape="square" :src="row.avatar">
<img src="@/assets/404.png" />
</el-avatar>
</template>
</CrudTable>
</div>
Expand Down

0 comments on commit fe236eb

Please sign in to comment.