<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)
                        })
                        
                    }
                }
            },

Logo

助力广东及东莞地区开发者,代码托管、在线学习与竞赛、技术交流与分享、资源共享、职业发展,成为松山湖开发者首选的工作与学习平台

更多推荐