明梦爽
2022-04-17 5529b7077126be368abd444d45ec085d8c7779e3
src/views/work.vue
@@ -2,9 +2,7 @@
  <div>
    <el-row type="flex" justify="space-between" class="underline row-bg">
      <span class="color"><b>工作动态</b></span>
      <span @click="goMore('工作状态')" class="liPointer"
        >更多<i class="el-icon-d-arrow-right"></i>
      </span>
      <span @click="goMore('工作状态')" class="liPointer">更多<i class="el-icon-d-arrow-right"></i> </span>
    </el-row>
    <div style="max-height:420px;overflow:hidden;">
      <ul>
@@ -23,7 +21,7 @@
  name:'work',
  data(){
    return{
      workList: [],
      workList: []
    }
  },
  created() {
@@ -37,20 +35,22 @@
        newsCategoryId:43,
        size:6
      }
      getNewsList(data).then(res => {
        console.log(res);
      getNewsList(data)
        .then(res => {
          console.log(res)
        if(res.code == 200){
          this.workList = res.data.records
        }
      }).catch(error => {
        console.log(error);
        })
        .catch(error => {
          console.log(error)
      })
    },
    toWorkMsg(id) {
      this.$router.push({
        path:'/home/news',
        query: {
          id:id,
          id: id
        }
      })
    },
@@ -58,7 +58,7 @@
      this.$router.push({
        path:'moreMessage',
        query:{
          type:val,
          type: val
        }
      })
    }