lrf402788946 пре 5 година
родитељ
комит
aa8aee9d95
2 измењених фајлова са 9 додато и 4 уклоњено
  1. 8 3
      src/layout/index/recruit.vue
  2. 1 1
      src/views/recruit/jobinfo.vue

+ 8 - 3
src/layout/index/recruit.vue

@@ -20,13 +20,18 @@
             </el-col>
           </el-col>
           <el-col :span="24" class="listinfo" v-for="(item, index) in recruitList" :key="index">
-            <el-col :span="6" class="title">
-              <p class="textOver"><span class="dian"></span>{{ item.title }}todo:跳转至公司详情</p>
+            <el-col :span="6" class="title" v-if="item.corpid">
+              <p class="textOver" @click="$router.push({ path: '/corp', query: { id: item.corpid } })"><span class="dian"></span>{{ item.title }}</p>
+            </el-col>
+            <el-col :span="6" class="title" v-else>
+              <p class="textOver"><span class="dian"></span>{{ item.title }}</p>
             </el-col>
             <el-col :span="6" class="jobs">
               <p class="textOver">{{ item.jobs | getJobs }}</p>
             </el-col>
-            <el-col :span="6" class="link"><el-link :underline="false">[点击查看详情]todo:跳转至详情</el-link></el-col>
+            <el-col :span="6" class="link"
+              ><el-link :underline="false" @click="$router.push({ path: '/jobinfoDetail', query: { id: item.id } })">[点击查看详情]</el-link></el-col
+            >
             <el-col :span="6" class="date">{{ item.meta | getDate }}</el-col>
           </el-col>
         </el-col>

+ 1 - 1
src/views/recruit/jobinfo.vue

@@ -52,7 +52,7 @@ export default {
       let jobIds = this.jobInfo.jobs.length > 0 ? this.jobInfo.jobs : [];
       let jobList = [];
       for (const item of jobIds) {
-        result = await this.postOperation({ type: 'search', data: { id: item } });
+        result = await this.getPosts({ type: 'fetch', data: { id: item } });
         if (`${result.errcode}` === '0') {
           jobList.push(result.data);
         }