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