Browse Source

增加职位下线状态

gcz 3 years ago
parent
commit
0d2ecdc3ed
3 changed files with 14 additions and 3 deletions
  1. 4 1
      src/components/applys.vue
  2. 8 0
      src/components/jobs.scss
  3. 2 2
      src/components/jobs.vue

+ 4 - 1
src/components/applys.vue

@@ -34,6 +34,7 @@
       <Empty v-if="total < 1" text="暂无应聘信息" />
       <div
         class="job-item"
+        :class="{offline:item.postStatus=='1'}"
         v-for="item in applyList"
         :key="item.id"
         @click="goDetails(item)"
@@ -52,7 +53,7 @@
           <div class="resume">使用简历:<span>在线简历</span></div>
         </div>
         <div class="right">
-          <div class="edit">
+          <div class="edit" v-if="item.postStatus==0">
             <span
               v-if="
                 item.interviewMethod == 0 &&
@@ -68,6 +69,7 @@
               >更新面试结果</span
             >
           </div>
+          <div class="edit" v-else>职位已下架</div>
           <div class="bottom">
             <span class="time"> {{ item.createTime }}</span>
             <span class="status"> {{ item.status | verifyStatusFilter }}</span>
@@ -487,6 +489,7 @@ export default {
       }
     }
   }
+  
 }
 .chat{
   // overflow-y: auto;

+ 8 - 0
src/components/jobs.scss

@@ -120,4 +120,12 @@
         }
       }
     }
+    .job-item.offline{
+      border-left-color: #cdcdcd;
+      .right{
+        .edit{
+          color: #666;
+        }
+      }
+    }
   }

+ 2 - 2
src/components/jobs.vue

@@ -18,7 +18,7 @@
     </dl> -->
     <section class="job-list">
       <Empty v-if="total < 1" text="暂无在招职位" />
-      <div class="job-item" v-for="item in jobList" :key="item.id">
+      <div class="job-item" :class="{offline:item.status=='1'}" v-for="item in jobList" :key="item.id">
         <div class="left">
           <div class="name">{{ item.postName }}</div>
           <div class="details">
@@ -33,7 +33,7 @@
           <div class="time">{{ item.updateTime || item.createTime }} 发布</div>
           <div class="tool">
             <span style="color: #4aad78" @click="goDetails(item.id)">查看</span>
-            <span style="color: #4aad78" @click="edit(item)">修改</span>
+            <span style="color: #4aad78" @click="edit(item)" v-if="item.status!='1'">修改</span>
             <span style="color: #ff4343" @click="del(item.id)">删除</span>
           </div>
         </div>