<el-dropdown trigger="click" placement='bottom-start' @command='addGroupChat'>
<span>
<span class="el-dropdown-link">
<i class="el-icon-circle-plus-outline"></i>
</span>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command='cust'>添加群聊</el-dropdown-item>
<el-dropdown-item command='inner'>内部群聊</el-dropdown-item>
<el-dropdown-item command='addFriend'>添加好友</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
// 创建群聊
addGroupChat(type) {
if(type === 'addFriend') {
this.layerShow1 = true
}else{
this.layerShow = true
var saveEntInfo = JSON.parse(localStorage.getItem('saveEntInfo'))
if(saveEntInfo) {
this.curEntInfo = saveEntInfo
console.log(1)
}else{
this.curEntInfo = this.getEntList[0]
console.log(this.curEntInfo, this.getEntList)
}
if(type === 'inner') {
this.groupChatType = 3
this.layerWidth = '300px'
this.layerTitle = '选择企业'
}
if(type === 'cust') {
this.groupChatType = 4
this.layerCount = 1
this.layerWidth = '680px'
this.layerTitle = '选择群聊成员'
this.$nextTick(() => {
this.$refs.addCpnt.getEpDepa(this.curEntInfo.rootDepaId, true)
})
}
}
},
@command使用
最新推荐文章于 2022-11-13 13:42:36 发布