diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 7d12c9bf..0897069d 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -316,11 +316,11 @@ >更多 - 人脸上传 - + --> - + + + + + + + + + + @@ -1002,6 +1027,8 @@ export default { loginType: null, } this.resetForm('form') + this.checkUrlList = [] + this.checkUrlNameList = [] }, /** 搜索按钮操作 */ handleQuery() { @@ -1075,6 +1102,9 @@ export default { this.roleOptions = response.roles this.$set(this.form, 'postIds', response.postIds) this.$set(this.form, 'roleIds', response.roleIds) + // console.log(store.getters.face) + this.fileList=[{url:response.data.photoUrl}] + this.checkUrlList=[response.data.photoUrl] this.open = true this.title = '修改用户' this.form.password = '' @@ -1170,6 +1200,12 @@ export default { submitForm: function () { this.$refs['form'].validate((valid) => { this.form.loginType = this.loginTypeArr.toString() + if(this.checkUrlList.length==0){ + this.form.photoUrl = null + // this.$message.warning('请先上传人脸图片') + }else{ + this.form.photoUrl = this.checkUrlList[0] + } if (valid) { if (this.form.userId != undefined) { updateUser(this.form).then((response) => {