|
|
@@ -155,7 +155,7 @@
|
|
|
|
|
|
<h4 style="font-size: 16px;font-weight: bold; display: inline-block;">人脸照片</h4>
|
|
|
<el-button type="primary" style="margin-left: 20px;" plain icon="el-icon-plus" size="mini"
|
|
|
- @click="dialogVisibleFace = true">新增</el-button>
|
|
|
+ @click="handleFaceAdd()">新增</el-button>
|
|
|
<el-table :data="faceList" stripe height="300" style="width: 100%">
|
|
|
<el-table-column prop="fid" label="编号"/>
|
|
|
<el-table-column prop="faceBase" label="人脸照片">
|
|
|
@@ -526,6 +526,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleFaceAdd() {
|
|
|
+ this.dialogVisibleFace = true
|
|
|
+ this.imgUrl= []
|
|
|
+ this.face.faceBase = ""
|
|
|
+ },
|
|
|
// 监听图片上传事件
|
|
|
handleImageUpload(value) {
|
|
|
// value 是组件传出的字符串,如 "humanFace/xxx.jpg"
|
|
|
@@ -552,8 +557,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
addFace(){
|
|
|
- if(this.face.faceBase == '' && this.face.faceBase == undefined) {
|
|
|
+ if(this.face.faceBase == "" || this.face.faceBase == undefined) {
|
|
|
this.$modal.msgError('请上传人脸!');
|
|
|
+ return
|
|
|
}
|
|
|
this.face.userId = this.defaultVal.id
|
|
|
this.face.faceName = this.defaultVal.name
|