소스 검색

auto commit

gcz 3 년 전
부모
커밋
e401def1d3
5개의 변경된 파일43개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      src/components/applys.vue
  2. 1 1
      src/components/jobs.vue
  3. 9 0
      src/utils/api.js
  4. 31 3
      src/views/applicant.vue
  5. 1 0
      src/views/home.scss

+ 1 - 1
src/components/applys.vue

@@ -31,7 +31,7 @@
       </dd>
     </dl>
     <section class="job-list applys-list">
-      <Empty v-if="applyList.length < 1" text="暂无应聘信息" />
+      <Empty v-if="total < 1" text="暂无应聘信息" />
       <div
         class="job-item"
         v-for="item in applyList"

+ 1 - 1
src/components/jobs.vue

@@ -17,7 +17,7 @@
       </dd>
     </dl> -->
     <section class="job-list">
-      <Empty v-if="jobList.length < 1" text="暂无在招职位" />
+      <Empty v-if="total < 1" text="暂无在招职位" />
       <div class="job-item" v-for="item in jobList" :key="item.id">
         <div class="left">
           <div class="name">{{ item.postName }}</div>

+ 9 - 0
src/utils/api.js

@@ -161,6 +161,15 @@ export function updateStatus(data) {
   })
 }
 
+// 应聘-邀请面试
+export function invite(data) {
+  return request({
+    url: '/memberDel/invite/view',
+    method: 'post',
+    data: data
+  })
+}
+
 // 政策法规
 export function getPolicyList(params) {
   return request({

+ 31 - 3
src/views/applicant.vue

@@ -97,8 +97,10 @@
       </section>
       <!-- left end -->
       <section class="right">
-        <div class="btn">邀请面试</div>
-        <div class="btn refused" @click="refused">不合适</div>
+        <div class="btn" @click="handleinvite">邀请面试</div>
+        <div class="btn refused" v-if="status <= 10" @click="refused">
+          不合适
+        </div>
       </section>
     </section>
   </div>
@@ -107,7 +109,7 @@
 <script>
 import Header from "@/components/header.vue";
 import Mainmenu from "@/components/mainmenu.vue";
-import { getapplicantInfo, updateStatus } from "@/utils/api";
+import { getapplicantInfo, updateStatus, invite } from "@/utils/api";
 export default {
   name: "",
   components: {
@@ -160,6 +162,32 @@ export default {
           console.log("err", err);
         });
     },
+    handleinvite() {
+      let param = {
+        id: "",
+        interviewMethod: "",
+        interviewArea: "",
+        interviewTime: "",
+        interviewAddress: "",
+      };
+      let that = this;
+      this.$confirm("确认邀请?")
+        .then((res) => {
+          console.log("res", res);
+          invite(param).then((res) => {
+            this.$message({
+              message: res.msg,
+              type: "success",
+              duration: 1000,
+              onClose: function () {},
+            });
+            // console.log("updateStatus", res);
+          });
+        })
+        .catch((err) => {
+          console.log("err", err);
+        });
+    },
   },
 };
 </script>

+ 1 - 0
src/views/home.scss

@@ -67,6 +67,7 @@
                         font-weight: 400;
                         color: #1F1F1F;
                         line-height: 28px;
+                        margin-bottom: 5px;
                     }
                     .tip{
                         font-size: 12px;