fix: 学院列表bug修复

This commit is contained in:
kaizheng(郑凯) 2025-03-04 13:20:54 +08:00
parent eff0bcb677
commit 56c8cc4473

View File

@ -34,7 +34,7 @@
</el-form-item>
<el-form-item label="">
<el-select
v-model="formInline.commentBlackStatus"
v-model="formInline.isForbidden"
placeholder="选择禁言状态"
clearable
>
@ -72,14 +72,14 @@
</el-table-column>
<el-table-column prop="address" label="禁言状态">
<template slot-scope="scope">
{{ commentBlackStatusOption[scope.row.commentBlackStatus] }}
{{ commentBlackStatusOption[scope.row.isForbidden] }}
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="100">
<template slot-scope="scope">
<el-button type="text" size="small"> 私聊</el-button>
<el-button type="text" size="small">{{
scope.row.commentBlackStatus === 2 ? "禁言" : "取消禁言"
scope.row.isForbidden === 2 ? "禁言" : "取消禁言"
}}</el-button>
</template>
</el-table-column>
@ -101,7 +101,7 @@
<forbidSpeak
ref="forbidSpeakRef"
:product-type="41"
:product-id="groupId"
:product-id="formInline.groupId"
:scope="2"
@callback="forbidSpeakCallback"
/>
@ -125,12 +125,12 @@ export default {
3: "即将到期",
4: "新学员"
},
groupId: this.$route.query.id,
formInline: {
groupId: this.$route.query.id,
userId: "",
nickName: "",
isOnline: "",
commentBlackStatus: "",
isForbidden: "",
size: 10,
current: 1
},
@ -162,7 +162,7 @@ export default {
}
},
prohibition(item) {
if (item.commentBlackStatus === 1) {
if (item.isForbidden === 1) {
this.$confirm(`您确定取消禁言?`, {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -171,7 +171,7 @@ export default {
.then(() => {
removeCommentBlack({
userPhone: item.userId,
productId: this.groupId,
productId: this.formInline.groupId,
productType: 41
}).then(res => {
if (res.code === 0) {
@ -203,7 +203,7 @@ export default {
},
forbidSpeakCallback(userId) {
this.clickItem[userId].forEach(item => {
item.commentBlackStatus = 1;
item.isForbidden = 1;
});
}
}