| | |
| | | <el-button style="margin-left: 5px" type="primary" @click="search">搜索</el-button> |
| | | </div> |
| | | <div class="group-right-left-seach-body-box"> |
| | | <ul v-infinite-scroll="load" style="overflow:auto;height: 558px" class="group-right-left-seach-body-box-ul"> |
| | | <ul style="overflow:auto;height: 558px" class="group-right-left-seach-body-box-ul"> |
| | | <li v-for="messageOne in messageList" class="group-right-left-seach-body-box-li" > |
| | | <div class="group-right-left-seach-body-box-imgmessage"> |
| | | <img class="group-img" v-if="messageOne.pic != null && messageOne.pic != ''" :src="messageOne.pic" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | count: 0, |
| | | sendBtn:true, |
| | | options: [ |
| | | { |
| | |
| | | created() { |
| | | this.init(); |
| | | }, |
| | | methods: |
| | | { |
| | | //群组名称 |
| | | methods: { |
| | | load() { |
| | | |
| | | this.count += 2 |
| | | }, |
| | | |
| | | //群组名称 |
| | | init() { |
| | | getName().then( |
| | | res => { |
| | |
| | | } |
| | | } |
| | | this.messageList = res |
| | | |
| | | this.sendBtn=false |
| | | }) |
| | | getAllNotice(data.id).then(res => this.groupAnList = res) |
| | |
| | | } |
| | | }, |
| | | seedMessage() { |
| | | seed(this.field103, this.groupId).then(res => { |
| | | seed(this.field103, this.groupId).then(async res => { |
| | | this.$message({ |
| | | message: '回复成功', |
| | | type: 'success' |
| | | }); |
| | | getAllMessage(this.groupId).then(res => this.messageList = res) |
| | | await getAllMessage(this.groupId).then(res => { |
| | | res.map(item=>{ |
| | | if (item.pic === '' || item.pic === null){ |
| | | |
| | | }else { |
| | | item.pic='/minio/img/'+item.pic |
| | | } |
| | | |
| | | }) |
| | | this.messageList = res |
| | | // console.log(res) |
| | | }) |
| | | |
| | | // for (let item of this.messageList) { |
| | | // if (item.pic === '' || item.pic === null) { |
| | | // } else { |
| | | // getImgUrl(item.pic).then(res => { |
| | | // item.pic = res |
| | | // }) |
| | | // } |
| | | // } |
| | | |
| | | this.field103 = ''; |
| | | } |
| | | ) |
| | |
| | | color: #ccc; |
| | | .group-img{ |
| | | width: 25px; |
| | | height: 25px; |
| | | border-radius: 100px; |
| | | |
| | | } |
| | | } |
| | | .group-right-left-seach-body-box-text{ |