diff --git a/src/views/memberManage/addPerson.vue b/src/views/memberManage/addPerson.vue
index c61fa44..0530e6c 100644
--- a/src/views/memberManage/addPerson.vue
+++ b/src/views/memberManage/addPerson.vue
@@ -125,7 +125,7 @@
-
+
@@ -199,7 +199,8 @@
responseAssignShow: false,
deptShowTop: false, // 权属单位下拉是否显示顶级
deptShow: true,
- formLoading: false
+ formLoading: false,
+ idsrc: 'static/IDCard/IDCardReader.htm'
}
},
watch: {
@@ -330,13 +331,14 @@
saveData: function() {
// 照片不为空则对照片进行处理
if (this.photo !== '') {
- if (this.photo.startsWith('http')) { // 上传的普通图片
+ if (this.photo.startsWith('http')) { // 上传的普通图片,去掉static头
let index = this.photo.indexOf('/static/')
if (index !== -1) {
index += 8
}
this.personForm.photo = this.photo.substring(index)
- } else if (this.photo.startsWith('data:image')) { // 读卡器读的base64图片
+ } else if (this.photo.startsWith('data:image')) { // 读卡器读的base64图片,直接传编码
+ console.log()
this.personForm.photo = this.photo
}
}