From 3fbb5e3166522734fd5407bcdf76c384d40e9dfa Mon Sep 17 00:00:00 2001
From: 明梦爽 <2972214568@qq.com>
Date: 星期一, 10 一月 2022 16:03:25 +0800
Subject: [PATCH] 1.0

---
 src/api/api.js                       |    2 
 src/views/homePage/noticeMessage.vue |    5 
 src/views/school.vue                 |    9 +
 src/views/work.vue                   |   41 ++++---
 src/components/Home.vue              |   48 +++-----
 src/views/homePage/moreMessage.vue   |  114 +++++++++++++---------
 src/router.js                        |    8 +
 src/views/notice.vue                 |   27 ++--
 8 files changed, 139 insertions(+), 115 deletions(-)

diff --git a/src/api/api.js b/src/api/api.js
index 839ac98..4f9856f 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -2,7 +2,7 @@
 //post璇锋眰鍙傛暟鏀惧湪data閲岄潰锛実et璇锋眰鍙傛暟鏀惧湪params閲岃竟
 
 import request from "../utils/request";
-//瀵艰埅鏍忓垪琛�
+// 瀵艰埅鏍忓垪琛�
 export const getNavList = data => {
   return request({
     method: 'GET',
diff --git a/src/components/Home.vue b/src/components/Home.vue
index a1c4611..b2af2cb 100644
--- a/src/components/Home.vue
+++ b/src/components/Home.vue
@@ -11,20 +11,8 @@
     </el-header>
     <!-- 涓婚〉瀵艰埅鏍� -->
     <el-row>
-      <el-menu
-        mode="horizontal"
-        background-color="rgb(64, 112, 186)"
-        text-color="white"
-        class="menu"
-        active-text-color="#000000"
-        :default-active="activeIndex"
-        @select="handleSelect"
-      >
-        <el-menu-item
-          :key="index"
-          v-for="(item, index) in menuList"
-          :index="(item.id).toString()"
-        >
+      <el-menu mode="horizontal" background-color="rgb(64, 112, 186)" text-color="white" class="menu" active-text-color="#000000" :default-active="activeIndex" @select="handleSelect">
+        <el-menu-item :key="index" v-for="(item, index) in menuList" :index="(item.id).toString()">
           {{ item.contypeName }}
         </el-menu-item>
       </el-menu>
@@ -46,28 +34,30 @@
   data() {
     return {
       activeIndex: '1',
-      menuList: [],
+      menuList: [{contypeName: '棣栭〉',id: 1},{contypeName: '绉戝崗姒傚喌',id: 2},{contypeName: '鏀跨瓥娉曡',id: 3},{contypeName: '绉戝崗椤圭洰',id: 4},
+      {contypeName: '瀛︽湳浜ゆ祦',id: 5},{contypeName: '鍔炰簨鎸囧崡',id: 6},{contypeName: '绉戞櫘椋庨噰',id: 7},{contypeName: '瀛︽牎棣栭〉',id: 8},
+      {contypeName: '鑱旂郴鎴戜滑',id: 9}],
     }
   },
   created() {
-    this.getNavArr();
+    // this.getNavArr();
   },
   mounted() {},
   watch: {},
   methods: {
-    //鑾峰彇瀵艰埅鏍�
-    getNavArr(){
-      const data ={};
-      //.then() 涓昏鐢ㄤ簬涓�涓嚱鏁扮敤鍒板彟涓�涓嚱鏁扮殑杩斿洖鍊�
-      getNavList(data).then(res => {
-        console.log('res', res)
-        if(res.code == 200){
-          this.menuList = res.data
-        }
-      }).catch(err => {
-        console.log('err', err)
-      })
-    },
+    // //鑾峰彇瀵艰埅鏍�
+    // getNavArr(){
+    //   const data ={};
+    //   getNavList(data).then(res => {
+    //     console.log('res', res)
+    //     if(res.code == 200){
+    //       this.menuList = res.data
+    //     }
+    //   }).catch(err => {
+    //     console.log('err', err)
+    //   })
+    // },
+
     formatterTitle(t){
       switch(t){
         case '1':
diff --git a/src/router.js b/src/router.js
index 7205a9a..c95cde3 100644
--- a/src/router.js
+++ b/src/router.js
@@ -97,7 +97,13 @@
         },
       ]
     }
-  ]
+  ],
+  scrollBehavior(to, from, savedPosition) { //椤甸潰璺宠浆鍚庤嚜鍔ㄥ洖鍒伴《閮�
+    if (savedPosition) {
+        return savedPosition
+    }
+    return {x: 0, y: 0}
+  }
 })
 
 // 鎸傝浇璺敱瀵艰埅瀹堝崼
diff --git a/src/views/homePage/moreMessage.vue b/src/views/homePage/moreMessage.vue
index 3142aab..d0673e5 100644
--- a/src/views/homePage/moreMessage.vue
+++ b/src/views/homePage/moreMessage.vue
@@ -6,36 +6,42 @@
     <div class="mart15">
       <div v-if="this.$route.query.type == '閫氱煡鍏憡'">
         <ul>
-          <li
-            class="lieBiao flex-v flex-conter padt10 liPointer"
-            :key="index"
-            v-for="(item, index) in noticeList"
-          >
+          <li class="lieBiao flex-v flex-between" :key="index" v-for="(item, index) in noticeList">
             <div class="time">
-              <span>{{ item.date }}</span>
-              <span>{{ item.years }}</span>
+              <span>{{ item.year }}</span>
+              <span>{{ item.month }}</span>
             </div>
-            <div class="title" @click="toNoticeMsg(item.title)">
-              {{ item.title }}
+            <div class="title liPointer" @click="toNoticeMsg(item.id,item.count)">
+              {{ item.news }}
             </div>
           </li>
         </ul>
       </div>
       <div v-if="this.$route.query.type == '瀛﹂櫌鍔ㄦ��'">
         <ul>
-          <li :key="index" v-for="(item, index) in schoolList" class="liPointer">
+          <li class="lieBiao flex-v flex-between" :key="index" v-for="(item, index) in schoolList">
             <!-- <a href="item.path"> {{ item.title }} </a> -->
             <!-- <router-link :to="{name:'schoolMessage',params:{id:item.id}}" >{{ item.title }} </router-link> -->
-            <div @click="toNoticeMsg(item.title)">{{ item.title }}</div>
+            <div class="time">
+              <span>{{ item.year }}</span>
+              <span>{{ item.month }}</span>
+            </div>
+            <div  class="title liPointer" @click="toSchoolMsg(item.id,item.count)">
+              {{ item.news }}
+            </div>
           </li>
         </ul>
       </div>
       <div v-if="this.$route.query.type == '宸ヤ綔鐘舵��'">
         <ul>
-          <li :key="index" v-for="(item, index) in workList" class="liPointer">
+          <li class="lieBiao flex-v flex-between" :key="index" v-for="(item, index) in workList">
             <!-- <a href="item.path"> {{ item.title }} </a> -->
             <!-- <router-link :to="{name:'schoolMessage',params:{id:item.id}}" >{{ item.title }} </router-link> -->
-            <div @click="toNoticeMsg(item.title)">{{ item.title }}</div>
+            <div class="time">
+              <span>{{ item.year }}</span>
+              <span>{{ item.month }}</span>
+            </div>
+            <div class="title liPointer" @click="toWorkMsg(item.id,item.count)">{{ item.news }}</div>
           </li>
         </ul>
       </div>
@@ -47,39 +53,55 @@
   name: 'moreMessage',
   data() {
     return {
-      noticeList: [
-        { years: '2021', date: '11-2', title: '鎴戞槸鏍囬1' },
-        { years: '2021', date: '11-2', title: '鎴戞槸鏍囬2' },
-        { years: '2021', date: '11-2', title: '鎴戞槸鏍囬3' },
-        { years: '2021', date: '11-2', title: '鎴戞槸鏍囬4' },
-        { years: '2021', date: '11-2', title: '鎴戞槸鏍囬5' }
-      ],
-      schoolList: [
-        { id: '1', title: '瀛︽牎鐘舵��1' },
-        { id: '2', title: '瀛︽牎鐘舵��2' },
-        { id: '3', title: '瀛︽牎鐘舵��3' },
-        { id: '4', title: '瀛︽牎鐘舵��4' },
-        { id: '5', title: '瀛︽牎鐘舵��5' },
-        { id: '6', title: '瀛︽牎鐘舵��6' }
-      ],
-      workList: [
-        { id:'1', title: '宸ヤ綔鐘舵��1' },
-        { id:'2', title: '宸ヤ綔鐘舵��2' },
-        { id:'3', title: '宸ヤ綔鐘舵��3' },
-        { id:'4', title: '宸ヤ綔鐘舵��4' },
-        { id:'5', title: '宸ヤ綔鐘舵��5' },
-        { id:'6', title: '宸ヤ綔鐘舵��6' },
-      ]
+      noticeList: [{id:1,year: 2022,month:'1-10',count:10, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:2,year: 2022,month:'1-10',count:11, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:3,year: 2022,month:'1-10',count:12, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:4,year: 2022,month:'1-10',count:13, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:5,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:15, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:17, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'}],
+      
+      schoolList: [{id:1,year: 2022,month:'1-10',count:10, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},{id:2,year: 2022,month:'1-10',count:11, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},
+      {id:3,year: 2022,month:'1-10',count:12, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},{id:4,year: 2022,month:'1-10',count:13, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},
+      {id:5,year: 2022,month:'1-10',count:14, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},{id:6,year: 2022,month:'1-10',count:14, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},
+      {id:6,year: 2022,month:'1-10',count:15, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},{id:6,year: 2022,month:'1-10',count:16, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},
+      {id:6,year: 2022,month:'1-10',count:16, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'},{id:6,year: 2022,month:'1-10',count:17, news:'鍞愪笁钘忓弬瑙佸コ鐜嬮櫅涓�'}],
+
+      workList: [{id:1,year: 2022,month:'1-10',count:10, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},{id:2,year: 2022,month:'1-10',count:11, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},
+      {id:3,year: 2022,month:'1-10',count:12, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},{id:4,year: 2022,month:'1-10',count:13, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},
+      {id:5,year: 2022,month:'1-10',count:14, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},{id:6,year: 2022,month:'1-10',count:14, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},
+      {id:6,year: 2022,month:'1-10',count:15, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},{id:6,year: 2022,month:'1-10',count:16, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},
+      {id:6,year: 2022,month:'1-10',count:16, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'},{id:6,year: 2022,month:'1-10',count:17, news:'榛戜汉瓒呯櫧绔圭偔娣辨磥鐗欒啅'}],
     }
   },
   methods: {
-    toNoticeMsg(t) {
+    toNoticeMsg(id,count) {
       this.$router.push({
         path: '/home/noticeMessage',
         query: {
-          title: t
+          id: id,
+          count: count
         }
       })
+      window.location.reload()
+    },
+    toSchoolMsg(id,count) {
+      this.$router.push({
+        path: '/home/schoolMessage',
+        query: {
+          id: id,
+          count: count
+        }
+      })
+      window.location.reload()
+    },
+    toWorkMsg(id,count) {
+      this.$router.push({
+        path: '/home/workMessage',
+        query: {
+          id: id,
+          count: count
+        }
+      })
+      window.location.reload()
     }
   }
 }
@@ -90,20 +112,22 @@
 }
 .lieBiao {
   width: 95%;
-  height: 80px;
-  background: rgb(202, 202, 202);
-  overflow: hidden;
+  height: 60px;
+  background: rgb(241, 241, 241);
   margin-bottom: 10px;
 }
 .time {
-  width: 100px;
-  overflow: hidden;
+  width: 80px;
   display: flex;
   flex-direction: column;
+  padding: 8px;
+  background-color: rgb(1, 72, 153);
+  color: white;
+  text-align: center;
 }
 .title {
-  width: 500px;
+  width: 1030px;
   height: 70px;
   overflow: hidden;
 }
-</style>
\ No newline at end of file
+</style> 
\ No newline at end of file
diff --git a/src/views/homePage/noticeMessage.vue b/src/views/homePage/noticeMessage.vue
index f874e20..3e126cb 100644
--- a/src/views/homePage/noticeMessage.vue
+++ b/src/views/homePage/noticeMessage.vue
@@ -1,7 +1,6 @@
 <template>
   <div>
-    <span>noticeMessage</span>
-    <p>{{ this.$route.query.title }}</p>
+    <p>{{ this.$route.query.id }} 鐐瑰嚮閲忥細銆恵{this.$route.query.count}}銆�</p>
     <div v-html="message"></div>
   </div>
 </template>
@@ -14,7 +13,7 @@
     }
   },
   created(){
-    console.log(">>>>>>>>",this.$route.query.title);
+    console.log(">>>>>>>>",this.$route.query.id);
     this.queryAll();
   },
   methods:{
diff --git a/src/views/notice.vue b/src/views/notice.vue
index 23c8736..2c73869 100644
--- a/src/views/notice.vue
+++ b/src/views/notice.vue
@@ -10,17 +10,13 @@
     <!-- 閫氱煡鍏憡鏂伴椈鍒楄〃 -->
     <div style="max-height:382px;overflow:hidden;">
       <ul>
-        <li
-          class="lieBiao liPointer"
-          :key="index"
-          v-for="(item, index) in noticeList"
-        >
+        <li class="lieBiao liPointer" :key="index" v-for="(item, index) in noticeList">
           <div class="time">
-            <span>{{ item.contypeId }}</span>
-            <span>{{ item.categoryId }}</span>
+            <span>{{ item.year }}</span>
+            <span>{{ item.month }}</span>
           </div>
-          <div class="title" @click="toNoticeMsg(item.title,item.id)">
-            {{ item.dataString }}
+          <div class="title" @click="toNoticeMsg(item.id,item.count)">
+            {{ item.news }}
           </div>
         </li>
       </ul>
@@ -33,8 +29,11 @@
   name: 'notice',
   data() {
     return {
-      noticeList: [
-      ]
+     noticeList: [{id:1,year: 2022,month:'1-10',count:10, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:2,year: 2022,month:'1-10',count:11, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:3,year: 2022,month:'1-10',count:12, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:4,year: 2022,month:'1-10',count:13, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:5,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:15, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:17, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'}],
     }
   },
   created() {
@@ -58,12 +57,12 @@
       })
     },
     // 鍘诲埌鏂伴椈灞曠ず椤�
-    toNoticeMsg(t,id) {
+    toNoticeMsg(id,count) {
       this.$router.push({
         path: '/home/noticeMessage',
         query: {
-          title: t,
-          id:id
+          id:id,
+          count:count
         }
       })
     },
diff --git a/src/views/school.vue b/src/views/school.vue
index 9e2a0af..8515aee 100644
--- a/src/views/school.vue
+++ b/src/views/school.vue
@@ -12,7 +12,7 @@
           <!-- <a href="item.path"> {{ item.title }} </a> -->
           <!-- <router-link :to="{name:'schoolMessage',params:{id:item.id}}" >{{ item.title }} </router-link> -->
           <div @click="toSchoolMsg(item.title)" class="bgc mart10">
-            {{ item.title }}
+            {{ item.news }}
           </div>
         </li>
       </ul>
@@ -25,8 +25,11 @@
   name: 'school',
   data() {
     return {
-      schoolList: [
-      ]
+      schoolList: [{id:1,year: 2022,month:'1-10',count:10, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:2,year: 2022,month:'1-10',count:11, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:3,year: 2022,month:'1-10',count:12, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:4,year: 2022,month:'1-10',count:13, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:5,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:15, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:17, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'}],
     }
   },
   created() {
diff --git a/src/views/work.vue b/src/views/work.vue
index 1b4b51f..2b54ea9 100644
--- a/src/views/work.vue
+++ b/src/views/work.vue
@@ -10,7 +10,7 @@
       <ul>
         <li :key="index" v-for="(item, index) in workList" class="liPointer">
           <div @click="toWorkMsg(item.title)" class="bgc mart10">
-            {{ item.dataString }}
+            {{ item.news }}
           </div>
         </li>
       </ul>
@@ -23,30 +23,33 @@
   name:'work',
   data(){
     return{
-      workList: [ 
-      ]
+      workList: [{id:1,year: 2022,month:'1-10',count:10, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:2,year: 2022,month:'1-10',count:11, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:3,year: 2022,month:'1-10',count:12, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:4,year: 2022,month:'1-10',count:13, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:5,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:14, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:15, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},
+      {id:6,year: 2022,month:'1-10',count:16, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'},{id:6,year: 2022,month:'1-10',count:17, news:'浣犺蛋杩囩殑鍦版柟鍙墿涓嬫�濆康闅炬嵄锛屾妸浣犺棌鍦ㄥ績澶达紝姣忓ぉ姣忓鎯充綘'}],
     }
   },
   created() {
-    this.getnews();
+    // this.getnews();
   },
   methods:{
     //鑾峰彇鏂伴椈鍒楄〃
-    getnews() {
-      const data = {
-        categoryId: 2,//灏忔爣棰業D
-        contypeId: 2,//澶ф爣棰業D
-        p: 0//褰撳墠椤�
-      };
-      getNewsList(data).then(res => {
-        console.log('res',res);
-        if(res.code == 200){
-          this.workList = res.data.records
-        }
-      }).catch(err => {
-        console.log('err',err);
-      })
-    },
+    // getnews() {
+    //   const data = {
+    //     categoryId: 2,//灏忔爣棰業D
+    //     contypeId: 2,//澶ф爣棰業D
+    //     p: 0//褰撳墠椤�
+    //   };
+    //   getNewsList(data).then(res => {
+    //     console.log('res',res);
+    //     if(res.code == 200){
+    //       this.workList = res.data.records
+    //     }
+    //   }).catch(err => {
+    //     console.log('err',err);
+    //   })
+    // },
     toWorkMsg(t) {
       this.$router.push({
         path:'/home/workMessage',

--
Gitblit v1.8.0