Browse Source

18号工作

bulusiLuo 3 years ago
parent
commit
f4172daf34

+ 1 - 1
src/components/notice/index.vue

@@ -1,6 +1,6 @@
 <template>
   <ul>
-    <li v-for="item,index in records" :key="index">
+    <li v-for="item in records" :key="item.id">
       <div class="l" @click="toDetail(item.id)">{{item.theme}}</div>
       <div class="r">{{item.createTime.slice(0,10)}}</div>
     </li>

+ 0 - 1
src/layout/components/Header/index.vue

@@ -14,7 +14,6 @@
           class="el-menu-demo"
           mode="horizontal"
           background-color="transparent"
-          active-background-color="#0f0f0f"
           text-color="#000"
           active-text-color="#000"
           :router="true" 

+ 6 - 1
src/views/currentSystem/InfoDisclosure/announcement.vue

@@ -30,12 +30,16 @@ export default {
   },
   data() {
     return {
+      // 是否展示详情页
       ishowDetails: true,
+      // 返回的公告总数据
       result: {},
+      // 详情页数据
       detailObj: {},
     };
   },
   created() {
+    // 请求停水列表数据与详情
     getCurrentPage().then((res) => {
       console.log(res);
       if (res.code === 1) {
@@ -44,12 +48,12 @@ export default {
     });
   },
   methods: {
+    // 点击标题
     toDetail(proId) {
       this.ishowDetails = false;
       this.result.records.forEach((item) => {
         if (item.id === proId) {
           this.detailObj = item;
-          console.log("111", this.detailObj);
         }
       });
     },
@@ -65,6 +69,7 @@ export default {
   width: 100%;
 }
 ul {
+  min-height: 50vh;
   li {
     display: flex;
     justify-content: space-between;