|
@@ -3,7 +3,7 @@
|
|
|
* @Author: gcz
|
|
|
* @Date: 2022-08-25 09:38:41
|
|
|
* @LastEditors: gcz
|
|
|
- * @LastEditTime: 2022-08-25 11:58:28
|
|
|
+ * @LastEditTime: 2022-08-26 16:08:25
|
|
|
* @FilePath: \veterans_client_web\src\views\PersonalCenter\Resume\ResumeEdit.vue
|
|
|
* @Copyright: Copyright (c) 2016~2022 by gcz, All Rights Reserved.
|
|
|
-->
|
|
@@ -27,11 +27,21 @@
|
|
|
<div class="name">{{ memberinfo.name }}</div>
|
|
|
<div class="">
|
|
|
{{ memberinfo.menSex === 1 ? "女" : "男" }} ·
|
|
|
- <span class="position" v-if="memberinfo.jobStatus !== 0">
|
|
|
+ <!-- <span class="position" v-if="memberinfo.jobStatus !== 0">
|
|
|
· <span class="c-yellow">入职中</span>
|
|
|
<span>({{memberinfo.company}})</span>
|
|
|
</span>
|
|
|
- <span class="c-yellow" v-else>未入职</span>
|
|
|
+ <span class="c-yellow" v-else>未入职</span> -->
|
|
|
+ <el-switch
|
|
|
+ @change="updateJobStatus"
|
|
|
+ v-model="jobStatus"
|
|
|
+ active-text="已入职"
|
|
|
+ active-color="#709078"
|
|
|
+ :active-value="1"
|
|
|
+ :inactive-value="0"
|
|
|
+ inactive-text="未入职">
|
|
|
+ </el-switch>
|
|
|
+ <span v-if="jobStatus==1&&memberinfo.company" style="margin-left:10px">({{memberinfo.company}})</span>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
@@ -167,7 +177,7 @@
|
|
|
|
|
|
<script>
|
|
|
import BannerBreadcrumb from "@/components/BannerBreadcrumb";
|
|
|
-import { getPersonInfoData ,saveJobIntention,saveSelfAssessment} from "@/api/PersonalCenter";
|
|
|
+import { getPersonInfoData ,saveJobIntention,saveSelfAssessment ,updateJobStatus} from "@/api/PersonalCenter";
|
|
|
import { regionDataPlus,regionData, CodeToText,TextToCode } from "element-china-area-data";
|
|
|
export default {
|
|
|
name: "Resume",
|
|
@@ -178,6 +188,7 @@ export default {
|
|
|
return {
|
|
|
addressOptions: regionDataPlus,
|
|
|
memberinfo: {},
|
|
|
+ jobStatus:null,
|
|
|
form: {
|
|
|
intentionArea:[],
|
|
|
expectedPost:'',
|
|
@@ -217,6 +228,9 @@ export default {
|
|
|
this.form.intentionArea.push(res?.data?.cityId.toString())
|
|
|
this.form.intentionArea.push(res?.data?.areaId.toString())
|
|
|
|
|
|
+ this.jobStatus = res?.data?.jobStatus;
|
|
|
+ console.log('this.jobStatus',this.jobStatus);
|
|
|
+
|
|
|
this.selfAssessment = res?.data?.selfAssessment||'';
|
|
|
console.log("this.form", this.form);
|
|
|
}
|
|
@@ -253,6 +267,12 @@ export default {
|
|
|
this.$message.success(res.msg)
|
|
|
})
|
|
|
},
|
|
|
+ updateJobStatus(){
|
|
|
+ console.log('updateJobStatusupdateJobStatus');
|
|
|
+ updateJobStatus({jobStatus:this.jobStatus}).then(res=>{
|
|
|
+ this.$message.success(res.msg)
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -371,4 +391,9 @@ export default {
|
|
|
margin-bottom: 24px;
|
|
|
}
|
|
|
}
|
|
|
+:deep(.el-switch){
|
|
|
+ .el-switch__label.is-active{
|
|
|
+ color: #ff6901;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|