wkw 6 месяцев назад
Родитель
Сommit
d30e40c193
3 измененных файлов с 20 добавлено и 46 удалено
  1. 1 1
      comment/api.js
  2. 12 43
      src/views/resume/addResume.vue
  3. 7 2
      src/views/resume/resumeInfo.vue

+ 1 - 1
comment/api.js

@@ -4,7 +4,7 @@ import { ROOTPATH } from './httpUrl'
 
 const apiClient = axios.create({
 	baseURL: ROOTPATH,
-	timeout: 5000
+	timeout: 10000
 })
 
 // 请求拦截器

+ 12 - 43
src/views/resume/addResume.vue

@@ -1627,10 +1627,10 @@ export default {
                 this.workObj.positionSkills = this.industryArr;
             } else if (this.type) {
                 // 为表单设置行业
-                this.form.industryName = this.industryArr.join(',');
+                this.form.industryName = this.industryArr.join('/');
             } else {
                 // 为求职意向设置行业
-                this.intentionJob.industry = this.industryArr.join(',');
+                this.intentionJob.industry = this.industryArr.join('/');
             }
 
             this.industryDialog = false;
@@ -1987,37 +1987,6 @@ export default {
         },
         //修改求职意向
         editInteJob() {
-            // 额外的字段验证
-            if (!this.intentionJob.ruleClassifyId) {
-                ElMessage({
-                    message: '请选择工作职位',
-                    type: 'warning',
-                    duration: 1500,
-                    offset: this.screenHeight / 2
-                });
-                return;
-            }
-            
-            if (!this.intentionJob.citys) {
-                ElMessage({
-                    message: '请选择城市',
-                    type: 'warning',
-                    duration: 1500,
-                    offset: this.screenHeight / 2
-                });
-                return;
-            }
-            
-            if (!this.intentionJob.industry) {
-                ElMessage({
-                    message: '请选择从事方向',
-                    type: 'warning',
-                    duration: 1500,
-                    offset: this.screenHeight / 2
-                });
-                return;
-            }
-            
             let formRef = this.$refs.formRef;
             formRef.validate(valid => {
                 if (valid) {
@@ -2041,9 +2010,8 @@ export default {
                         industryOneId: 200,
                         classifyOneId: 0,
                         classifyTwoId: 0,
-                        isDefault: this.intentionJob.isDefault || 1
+                        isDefault: 1
                     };
-                    
                     this.$Request.post("/app/intention/saveUpdate", data,{type:'json'}).then((res) => {
                         this.isWork = false;
                         this.loading = false;
@@ -2061,14 +2029,15 @@ export default {
                             
                             // 更新求职意向列表
                             this.getJobType();
-                        } else {
-                            ElMessage({
-                                message: res.msg,
-                                type: 'error',
-                                duration: 1500,
-                                offset: this.screenHeight / 2
-                            });
-                        }
+                        } 
+                        // else {
+                        //     ElMessage({
+                        //         message: res.msg,
+                        //         type: 'error',
+                        //         duration: 1500,
+                        //         offset: this.screenHeight / 2
+                        //     });
+                        // }
                     });
                 } else {
                     console.log('error submit!');

+ 7 - 2
src/views/resume/resumeInfo.vue

@@ -50,7 +50,7 @@
 						{{ info.resumesListDtoList?.adv || '暂无个人优势。(最多展示三行)' }}
 					</div>
 					<div class="postInfo-box-labels-r flex align-center">
-						<!-- <div @click.stop="setCollection()"
+						<div @click.stop="setCollection()"
 							class="postInfo-box-labels-r-s flex align-center justify-center">
 							<el-icon v-if="info.isCollection==0" :size="20" style="margin-right: 6px;">
 								<Star />
@@ -59,7 +59,7 @@
 								<StarFilled />
 							</el-icon>
 							{{info.isCollection==0?'收藏':'已收藏'}}
-						</div> -->
+						</div>
 						<div @click.stop="openMeg()" class="postInfo-box-labels-r-l flex align-center justify-center">
 							立即沟通
 						</div>
@@ -351,6 +351,11 @@
 					type: 2
 				}).then(res => {
 					if (res.code == 0) {
+						ElMessage({
+							message: res.msg,
+							type: 'success',
+							duration: 1500
+						})
 						this.getJobInfo()
 					}
 				})