|
@@ -117,13 +117,15 @@ export default {
|
|
|
this.form=info;
|
|
|
this.form.categoryName=info.positionCategoryName
|
|
|
this.form.categoryId=info.positionCategoryId;
|
|
|
-
|
|
|
- this.pirList=info.resumeUrls.split(',');
|
|
|
- this.fileList=this.pirList.map((item)=>{
|
|
|
- return {
|
|
|
- url:item
|
|
|
- }
|
|
|
- });
|
|
|
+ if(info.resumeUrls){
|
|
|
+ this.pirList=info.resumeUrls.split(',');
|
|
|
+ this.fileList=this.pirList.map((item)=>{
|
|
|
+ return {
|
|
|
+ url:item
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
this.workExp=work.map((item)=>{
|
|
|
item.timeS=item.startTime;
|
|
|
item.timeE=item.endTime;
|
|
@@ -171,6 +173,56 @@ export default {
|
|
|
})
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ var b=false;
|
|
|
+ this.workExp.find((item)=>{
|
|
|
+ debugger
|
|
|
+ if(!item.timeS||!item.timeE){
|
|
|
+ uni.showToast({
|
|
|
+ title:"请完善工作经历中的工作时间"
|
|
|
+
|
|
|
+ })
|
|
|
+ b=true
|
|
|
+ return true;
|
|
|
+ }else if(!item.name||!item.remark||!item.content){
|
|
|
+ uni.showToast({
|
|
|
+ title:"请完善工作经历中的详细信息"
|
|
|
+ })
|
|
|
+ b=true
|
|
|
+ return true;
|
|
|
+ }else{
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if(b){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ this.educationExp.find((item)=>{
|
|
|
+ debugger
|
|
|
+ if(!item.timeS||!item.timeE){
|
|
|
+ uni.showToast({
|
|
|
+ title:"请完善教育经历中的在校时间"
|
|
|
+
|
|
|
+ })
|
|
|
+ b=true
|
|
|
+ return true;
|
|
|
+ }else if(!item.name||!item.remark||!item.content){
|
|
|
+ uni.showToast({
|
|
|
+ title:"请完善教育经历中的详细信息"
|
|
|
+ })
|
|
|
+ b=true
|
|
|
+ return true;
|
|
|
+ }else{
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ if(b){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
uni.showLoading({
|
|
|
title:"提交中"
|
|
|
})
|
|
@@ -179,7 +231,15 @@ export default {
|
|
|
educationExp:this.educationExp,
|
|
|
}
|
|
|
this.form.expJson=JSON.stringify(expJson);
|
|
|
- this.form.resumeUrls=this.picList.join();
|
|
|
+ this.form.resumeUrls=this.picList.filter(item=>{
|
|
|
+ if(item){
|
|
|
+ return true;
|
|
|
+ }else{
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }).join();
|
|
|
+
|
|
|
+
|
|
|
API.submitResume(this.form).then((response) => {
|
|
|
|
|
|
uni.showToast({
|
|
@@ -377,10 +437,15 @@ export default {
|
|
|
beforeUpload(index, list){
|
|
|
console.log(list);
|
|
|
},
|
|
|
+ onErrorUpload(){
|
|
|
+ this.picList.push("")
|
|
|
+ },
|
|
|
successUpload(data, index, lists, name){
|
|
|
+ console.log(this.picList);
|
|
|
this.picList.push(data.data)
|
|
|
},
|
|
|
removeUpload(data, index, lists, name){
|
|
|
+ debugger
|
|
|
this.picList.splice(data,1)
|
|
|
}
|
|
|
},
|