|
@@ -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>
|