diff --git a/src/views/memberManage/listStaff.vue b/src/views/memberManage/listStaff.vue
index cab8dc2..b482ce0 100644
--- a/src/views/memberManage/listStaff.vue
+++ b/src/views/memberManage/listStaff.vue
@@ -91,24 +91,7 @@
批量导入
-
-
导出记录
- 人员同步至面板机
-
-
- 照片批量导入
-
-
删除
新增
@@ -123,6 +106,11 @@
{{ scope.row[column.value] ? scope.row[column.value] : scope.row.ext[column.value] }}
+
+
+
+
+
编辑
@@ -198,7 +186,10 @@
deleteFileList: [],
personNewList: [],
timeRange: [], // 时间范围
- updateTimeRange: [] // 时间范围
+ updateTimeRange: [], // 时间范围
+ base_url: process.env.BASE_API + '/static/',
+ defaultPhoto: require('@/assets/global_images/photo.png'),
+ defaultPhotoError: require('@/assets/global_images/photo_error.png')
}
},
computed: {
@@ -373,6 +364,12 @@
this.dialogFormVisible = true
this.$refs.captureIris.initDialog(this.dialogFormVisible, row, '0')
},
+ // 图片加载失败
+ errorImg(e) {
+ const img = e.srcElement
+ img.src = this.defaultPhotoError
+ img.onerror = null // 防止闪图
+ },
initAnnualLeave() {
this.$confirm(
'此操作不可撤销!仍要将所有员工的剩余年假设置为初始值吗?',
@@ -393,7 +390,7 @@
},
// 照片批量上传导入格式大小限制
beforeUpload(file) {
- const isZip = file.name.split(".")[1] === "zip"
+ const isZip = file.name.split(".")[1] === "zip"
// const isLt5M = file.size / 1024 / 1024 < 5;
if (!isZip) {
this.$message({
@@ -412,7 +409,7 @@
return isZip
},
// 照片批量导入
- batchPhotoUpload(param) {
+ batchPhotoUpload(param) {
// 判断文件大小是否符合要求
const _file = param.file
// let isZipExt = (_file.name && _file.name.split('.')[1]) === 'zip'