From 7b51535a166a261a87eaad45ed70f805ada331a9 Mon Sep 17 00:00:00 2001
From: 楚江漓i <85093541@qq.com>
Date: 星期一, 08 三月 2021 00:30:35 +0800
Subject: [PATCH] 档案,在职,离职,信息录入页面样式调整
---
src/views/user/Informationinput.vue | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/views/user/Informationinput.vue b/src/views/user/Informationinput.vue
index 87d14a5..d64d69e 100644
--- a/src/views/user/Informationinput.vue
+++ b/src/views/user/Informationinput.vue
@@ -81,11 +81,24 @@
</template>
</el-table-column>
<el-table-column label="照片" width="80">
- <template slot-scope="scope" width="90">
- <img :src="scope.row.imagePath">
+ <template slot-scope="scope">
+ <!-- <img :src="scope.row.imagePath">-->
+ <el-image
+ v-if="scope.row.imagePath && scope.row.imagePath != ''"
+ style="width: 30px; height: 30px"
+ :src="scope.row.imagePath"
+ fit="cover"
+ />
+
+ <el-image
+ v-else
+ style="width: 30px; height: 30px"
+ :src="defaultImg"
+ fit="cover"
+ />
</template>
</el-table-column>
- <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
+ <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" />
<el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" />
<el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" />
<el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="50" />
@@ -2131,6 +2144,7 @@
components: { Treeselect, Pagination },
data() {
return {
+ defaultImg: require('../../assets/avatar/20180414165936.jpg'),
baseicInformationForm: {},
dialogShowDryg: false,
empBaseInfoImageUrl: '',
--
Gitblit v1.8.0