wuhongyuq 5 years ago
parent
commit
5f311bc036
2 changed files with 6 additions and 34 deletions
  1. 2 2
      src/layout/personnel/rencaiShow.vue
  2. 4 32
      src/views/personnel/personnel.vue

+ 2 - 2
src/layout/personnel/rencaiShow.vue

@@ -11,8 +11,8 @@
         <el-col :span="24" class="list">
           <ul>
             <li v-for="(item, index) in rencaiShowList" :key="index">
-              <el-link :underline="false">
-                <el-image style="width:185px;height:247px;" :src="item.pic"></el-image>
+              <el-link :underline="false" @click.native="$router.push({ path: '/personnel/rencai', query: { id: item.id } })">
+                <el-image style="width:185px;height:247px;" :src="item.imgpath"></el-image>
                 <p class="title textOver">{{ item.title }}</p>
               </el-link>
             </li>

+ 4 - 32
src/views/personnel/personnel.vue

@@ -17,7 +17,6 @@
 
 <script>
 import personnelDetail from '@/components/personnel/personnel.vue';
-
 import { createNamespacedHelpers, mapGetters } from 'vuex';
 const { mapActions: mapSite } = createNamespacedHelpers('site');
 const { mapActions: mapColumn } = createNamespacedHelpers('policiesColumn');
@@ -62,38 +61,14 @@ export default {
         title: '标题',
       },
     ],
-    rencaiShowList: [
-      {
-        pic: require('@/assets/talent1.jpg'),
-        title: '标题',
-      },
-      {
-        pic: require('@/assets/talent1.jpg'),
-        title: '标题',
-      },
-      {
-        pic: require('@/assets/talent1.jpg'),
-        title: '标题',
-      },
-      {
-        pic: require('@/assets/talent1.jpg'),
-        title: '标题',
-      },
-      {
-        pic: require('@/assets/talent1.jpg'),
-        title: '标题',
-      },
-      {
-        pic: require('@/assets/talent1.jpg'),
-        title: '标题',
-      },
-    ],
+    rencaiShowList: [],
   }),
   async created() {
     this.searchSite();
     this.searchColumn();
     this.searchInfo();
     this.searchInfos();
+    // this.searchRencaiShow();
   },
   computed: {},
   methods: {
@@ -116,16 +91,13 @@ export default {
     async searchColumn({ ...info } = {}) {
       const res = await this.columnList({ ...info });
       this.$set(this, `liebiaoList`, res.data);
-      console.log(res);
-      // for (const val of res.data) {
-      //   this.tpxwSearch({ column_id: val.id, site: val.site });
-      // }
     },
-
+    // 查询找人才-人才展示
     async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
       const res = await this.newsList({ skip, limit, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `rencaiData`, res.data);
+        this.$set(this, `rencaiShowList`, res.data);
       }
     },