gcz 3 роки тому
батько
коміт
90000ff592
4 змінених файлів з 14 додано та 5 видалено
  1. 10 3
      src/components/applys.vue
  2. 2 2
      src/components/jobs.vue
  3. 1 0
      src/utils/index.js
  4. 1 0
      src/views/Home.vue

+ 10 - 3
src/components/applys.vue

@@ -34,7 +34,7 @@
       <Empty v-if="total < 1" text="暂无应聘信息" />
       <div
         class="job-item"
-        :class="{offline:item.postStatus=='1'}"
+        :class="{offline:item.postStatus=='0'}"
         v-for="item in applyList"
         :key="item.id"
         @click="goDetails(item)"
@@ -53,7 +53,7 @@
           <div class="resume">使用简历:<span>在线简历</span></div>
         </div>
         <div class="right">
-          <div class="edit" v-if="item.postStatus==0">
+          <div class="edit" v-if="item.postStatus==1">
             <span
               v-if="
                 item.interviewMethod == 0 &&
@@ -206,7 +206,8 @@ export default {
         // { label: "已接受面试", value: 30 },
         // { label: "已拒绝面试", value: 40 },
         { label: "面试通过", value: 50 },
-        { label: "不合适", value: 11 },
+        { label: "面试未通过", value: 60 },
+        { label: "不合适(邀请面试后不能选此项)", value: 11 },
         { label: "未参加面试", value: 70 },
         // { label: "已拒绝入职", value: 80 },
         // { label: "已入职", value: 90 },
@@ -272,6 +273,7 @@ export default {
       });
     },
     handlegetApplyList() {
+      this.$emit("getTotal");
       getApplyList(this.queryParams)
         .then((res) => {
           console.log("getComPostList", res);
@@ -325,6 +327,11 @@ export default {
           status: this.form.status,
           hiredate: this.form.hiredate,
         };
+      }else if(this.form.status == "11"){
+        param = {
+          id: this.form.id,
+          status: this.form.status,
+        };
       }
 
       // console.log("res", res);

+ 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" :class="{offline:item.status=='1'}" v-for="item in jobList" :key="item.id">
+      <div class="job-item" :class="{offline:item.status=='0'}" 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)" v-if="item.status!='1'">修改</span>
+            <span style="color: #4aad78" @click="edit(item)" v-if="item.status!='0'">修改</span>
             <span style="color: #ff4343" @click="del(item.id)">删除</span>
           </div>
         </div>

+ 1 - 0
src/utils/index.js

@@ -1,4 +1,5 @@
 export function parseTime(time, cFormat) {
+    if(!time){return null}
     if (arguments.length === 0) {
         return null
     }

+ 1 - 0
src/views/Home.vue

@@ -149,6 +149,7 @@
         <Applys
           v-if="companymenuIndex == '3'"
           :lastMonthRecruitNum="companyTotal.lastMonthRecruitNum"
+          @getTotal="getCompanyInfo"
         />
       </div>
       <div class="base-info">