| | |
| | | let formData = new FormData(); |
| | | let { id, tel, phone, departId, faceId, roleId, name } = this.info; |
| | | let params = {}; |
| | | let operation; |
| | | if (this.isEdit) { |
| | | operation = editUser; |
| | | params = { id, tel, phone, departId, faceId, roleId }; |
| | |
| | | formData.append("file", this.fileList[0].originFileObj); |
| | | } |
| | | formData.append("json", json); |
| | | let operation; |
| | | operation(formData).then((res) => { |
| | | res = res.data; |
| | | // console.log(res); |
| | |
| | | res = res.data; |
| | | if (res.code && res.data) { |
| | | self.$message.success("操作成功"); |
| | | self.$emit('search'); |
| | | self.info.dface.url = ''; |
| | | self.$emit("search"); |
| | | self.info.dface.url = ""; |
| | | } else { |
| | | self.$message.error("操作失败"); |
| | | } |