From 15fccc0a1fedf1244516b108a4dc8a8acdfa3c7c Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期五, 14 四月 2023 17:14:02 +0800
Subject: [PATCH] 修改警方公告

---
 src/views/cause/Group.vue |   50 ++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 44 insertions(+), 6 deletions(-)

diff --git a/src/views/cause/Group.vue b/src/views/cause/Group.vue
index 0445560..8251778 100644
--- a/src/views/cause/Group.vue
+++ b/src/views/cause/Group.vue
@@ -22,7 +22,7 @@
            <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: 569px" 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"
@@ -102,6 +102,7 @@
   },
   data() {
     return {
+      count: 0,
       sendBtn:true,
       options: [
         {
@@ -139,9 +140,13 @@
   created() {
     this.init();
   },
-  methods:
-      {
-        //缇ょ粍鍚嶇О
+  methods: {
+    load() {
+
+      this.count += 2
+    },
+
+    //缇ょ粍鍚嶇О
         init() {
           getName().then(
               res => {
@@ -177,6 +182,7 @@
                 }
               }
               this.messageList = res
+
               this.sendBtn=false
             })
             getAllNotice(data.id).then(res => this.groupAnList = res)
@@ -229,12 +235,33 @@
           }
         },
         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 = '';
               }
           )
@@ -254,14 +281,22 @@
   background-color: #fff;
   .group-left{
     width: 300px;
+    .inputleft{
+      margin-top: 10px;
+      margin-left: 5px;
+    }
   }
   .group-right{
     margin-left: 10px;
     border-left: 1px solid #ccc;
     padding-left: 10px;
+    background-color: #fff;
     //flex-grow: 1;
     .group-right-name{
       margin-bottom: 10px;
+      font-size: 16px;
+      font-weight: 900;
+      margin-top: 10px;
     }
     .group-right-box{
       display: flex;
@@ -280,6 +315,9 @@
                  color: #ccc;
                  .group-img{
                    width: 25px;
+                   height: 25px;
+                   border-radius: 100px;
+
                  }
                }
                .group-right-left-seach-body-box-text{

--
Gitblit v1.8.0