|
|
|
@ -75,10 +75,6 @@ |
|
|
|
<div class="info-label">来源地址</div> |
|
|
|
<div class="info-value">{{ userInfo.sourceUrl }}</div> |
|
|
|
</div> |
|
|
|
<div class="info-item"> |
|
|
|
<div class="info-label">性别</div> |
|
|
|
<div class="info-value">{{ userInfo.sex === 1 ? '女' : '男' }}</div> |
|
|
|
</div> |
|
|
|
<div class="info-item"> |
|
|
|
<div class="info-label">标签</div> |
|
|
|
<div class="info-value"> |
|
|
|
@ -108,6 +104,7 @@ |
|
|
|
<el-select |
|
|
|
v-model="selectedGroup" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="width:120px;" |
|
|
|
@change="handleSelectUserGroup" |
|
|
|
> |
|
|
|
@ -911,17 +908,22 @@ export default { |
|
|
|
if (!value.trim()) return |
|
|
|
this.createNewGroup(value.trim()) |
|
|
|
}) |
|
|
|
} else if (groupId === '' || groupId === null || groupId === undefined) { |
|
|
|
// 清空分组 |
|
|
|
this.doSaveGroup('') |
|
|
|
} else { |
|
|
|
this.doSaveGroup(groupId) |
|
|
|
} |
|
|
|
}, |
|
|
|
doSaveGroup(groupId) { |
|
|
|
// 如果 groupId 为空字符串,表示移除分组 |
|
|
|
const saveGroupId = groupId || ''; |
|
|
|
this.$http.post('/user/group/save', { |
|
|
|
userId: this.userInfo.id, |
|
|
|
groupIds: String(groupId) |
|
|
|
groupIds: String(saveGroupId) |
|
|
|
}).then(() => { |
|
|
|
console.log('res',groupId) |
|
|
|
this.$message.success('分组设置成功') |
|
|
|
console.log('res', saveGroupId) |
|
|
|
this.$message.success(saveGroupId ? '分组设置成功' : '已移除分组') |
|
|
|
this.loadFriend(this.chat.targetId) |
|
|
|
}) |
|
|
|
}, |
|
|
|
@ -1376,7 +1378,7 @@ export default { |
|
|
|
word-break: break-all; |
|
|
|
::v-deep .el-select { |
|
|
|
.el-tag { |
|
|
|
background-color: #4d4949 !important; |
|
|
|
background-color: #bdbaba !important; |
|
|
|
color: #fff !important; |
|
|
|
border-color: #1d1b1b !important; |
|
|
|
.el-tag__close { |
|
|
|
|