fix: bug修复
This commit is contained in:
parent
56c8cc4473
commit
5cdabdc693
@ -55,7 +55,7 @@
|
|||||||
<el-table-column prop="date" label="头像" width="180">
|
<el-table-column prop="date" label="头像" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<img
|
<img
|
||||||
:src="scope.row.headPicUrl"
|
:src="scope.row.userHeadPicUrl"
|
||||||
style="max-width: 50x;max-height: 50px;"
|
style="max-width: 50x;max-height: 50px;"
|
||||||
alt=""
|
alt=""
|
||||||
srcset=""
|
srcset=""
|
||||||
@ -75,12 +75,14 @@
|
|||||||
{{ commentBlackStatusOption[scope.row.isForbidden] }}
|
{{ 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="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" size="small"> 私聊</el-button>
|
<el-button type="text" size="small" @click="toPrivate(scope.row)">
|
||||||
<el-button type="text" size="small">{{
|
私聊
|
||||||
scope.row.isForbidden === 2 ? "禁言" : "取消禁言"
|
</el-button>
|
||||||
}}</el-button>
|
<el-button type="text" size="small" @click="prohibition(scope.row)"
|
||||||
|
>{{ scope.row.isForbidden === 2 ? "禁言" : "取消禁言" }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -180,14 +182,7 @@ export default {
|
|||||||
showClose: false,
|
showClose: false,
|
||||||
type: "success"
|
type: "success"
|
||||||
});
|
});
|
||||||
this.msgUserIdsObj[item.userId].forEach(item => {
|
|
||||||
item.isForbidden = 2;
|
item.isForbidden = 2;
|
||||||
});
|
|
||||||
this.modifyStateCallback({
|
|
||||||
userId: item.userId,
|
|
||||||
isForbidden: 2,
|
|
||||||
modifyType: 2
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@ -201,10 +196,17 @@ export default {
|
|||||||
forbidSpeakRef.formProhibition.content = "";
|
forbidSpeakRef.formProhibition.content = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
forbidSpeakCallback(userId) {
|
forbidSpeakCallback() {
|
||||||
this.clickItem[userId].forEach(item => {
|
this.clickItem.isForbidden = 1;
|
||||||
item.isForbidden = 1;
|
},
|
||||||
});
|
toPrivate(row) {
|
||||||
|
this.$router.push(
|
||||||
|
`/circle/detail?id=${
|
||||||
|
this.formInline.groupId
|
||||||
|
}&chatType=2&privateUserId=${row.userId}&privateUserName=${
|
||||||
|
row.nickName
|
||||||
|
}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user