fix: bug修复

This commit is contained in:
kaizheng(郑凯) 2025-03-04 13:55:48 +08:00
parent 56c8cc4473
commit 5cdabdc693

View File

@ -55,7 +55,7 @@
<el-table-column prop="date" label="头像" width="180">
<template slot-scope="scope">
<img
:src="scope.row.headPicUrl"
:src="scope.row.userHeadPicUrl"
style="max-width: 50x;max-height: 50px;"
alt=""
srcset=""
@ -75,12 +75,14 @@
{{ commentBlackStatusOption[scope.row.isForbidden] }}
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="100">
<el-table-column fixed="right" label="操作" width="120">
<template slot-scope="scope">
<el-button type="text" size="small"> 私聊</el-button>
<el-button type="text" size="small">{{
scope.row.isForbidden === 2 ? "禁言" : "取消禁言"
}}</el-button>
<el-button type="text" size="small" @click="toPrivate(scope.row)">
私聊
</el-button>
<el-button type="text" size="small" @click="prohibition(scope.row)"
>{{ scope.row.isForbidden === 2 ? "禁言" : "取消禁言" }}
</el-button>
</template>
</el-table-column>
</el-table>
@ -180,14 +182,7 @@ export default {
showClose: false,
type: "success"
});
this.msgUserIdsObj[item.userId].forEach(item => {
item.isForbidden = 2;
});
this.modifyStateCallback({
userId: item.userId,
isForbidden: 2,
modifyType: 2
});
item.isForbidden = 2;
}
});
})
@ -201,10 +196,17 @@ export default {
forbidSpeakRef.formProhibition.content = "";
}
},
forbidSpeakCallback(userId) {
this.clickItem[userId].forEach(item => {
item.isForbidden = 1;
});
forbidSpeakCallback() {
this.clickItem.isForbidden = 1;
},
toPrivate(row) {
this.$router.push(
`/circle/detail?id=${
this.formInline.groupId
}&chatType=2&privateUserId=${row.userId}&privateUserName=${
row.nickName
}`
);
}
}
};