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/views/work.vue |   41 ++++++++++++++++++++++-------------------
 1 files changed, 22 insertions(+), 19 deletions(-)

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