|
|
@@ -746,7 +746,7 @@
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]" class="row45" label="在校时间">
|
|
|
- <el-date-picker v-model="perjectObj.resumesTime" type="daterange"
|
|
|
+ <el-date-picker v-model="perjectObj.resumesTime" type="monthrange"
|
|
|
range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" />
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="resumesContent" class="row45" label="在校经历(选填)">
|
|
|
@@ -1369,12 +1369,8 @@ export default {
|
|
|
school: this.perjectObj.resumesTitle || '', // 学校名称
|
|
|
profession: this.perjectObj.resumesPost || '', // 专业
|
|
|
degree: this.perjectObj.degree || '', // 学历
|
|
|
- startTime: this.getFormDate(
|
|
|
- this.perjectObj.resumesTime[0]
|
|
|
- ), // 开始时间
|
|
|
- endTime: this.getFormDate(
|
|
|
- this.perjectObj.resumesTime[1]
|
|
|
- ), // 结束时间
|
|
|
+ startTime: this.getFormDate(this.perjectObj.resumesTime[0],'1'), // 开始时间
|
|
|
+ endTime: this.getFormDate(this.perjectObj.resumesTime[1],'1'), // 结束时间
|
|
|
detail: this.perjectObj.resumesContent || '', // 详细描述
|
|
|
};
|
|
|
|
|
|
@@ -1543,17 +1539,26 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//时间对象转:2023-11-21格式
|
|
|
- getFormDate(formData) {
|
|
|
+ getFormDate(formData,type) {
|
|
|
let time = new Date(formData);
|
|
|
- return (
|
|
|
- time.getFullYear() +
|
|
|
- '-' +
|
|
|
- (time.getMonth() + 1 < 10
|
|
|
- ? '0' + (time.getMonth() + 1)
|
|
|
- : time.getMonth() + 1) +
|
|
|
- '-' +
|
|
|
- (time.getDate() < 10 ? '0' + time.getDate() : time.getDate())
|
|
|
- );
|
|
|
+ if(type){
|
|
|
+ return (
|
|
|
+ time.getFullYear() +
|
|
|
+ '-' +
|
|
|
+ (time.getMonth() + 1 < 10
|
|
|
+ ? '0' + (time.getMonth() + 1)
|
|
|
+ : time.getMonth() + 1) +
|
|
|
+ '-' + '01'
|
|
|
+ );
|
|
|
+ }else{
|
|
|
+ return (
|
|
|
+ time.getFullYear() +
|
|
|
+ '-' +
|
|
|
+ (time.getMonth() + 1 < 10
|
|
|
+ ? '0' + (time.getMonth() + 1)
|
|
|
+ : time.getMonth() + 1)
|
|
|
+ );
|
|
|
+ }
|
|
|
},
|
|
|
//修改/添加工作经验
|
|
|
editInteWork() {
|