From e51f9bde6facd98e32ac7daeab1b7a6dc4932613 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Mon, 21 Apr 2025 13:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E8=84=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/index.vue | 42 ++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) 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) => {