wkw 6 месяцев назад
Родитель
Сommit
3fac43e1d1
1 измененных файлов с 5 добавлено и 6 удалено
  1. 5 6
      src/components/header/header.vue

+ 5 - 6
src/components/header/header.vue

@@ -1175,7 +1175,7 @@
 				formRef.validate((valid) => {
 				formRef.validate((valid) => {
 					if (valid) {
 					if (valid) {
 						let form = JSON.parse(JSON.stringify(this.form));
 						let form = JSON.parse(JSON.stringify(this.form));
-						console.log(form)
+						
 						const data = {
 						const data = {
 							companyAllName: form.companyName,
 							companyAllName: form.companyName,
 							companyPeople: form.companyPeople,
 							companyPeople: form.companyPeople,
@@ -1250,8 +1250,8 @@
 			},
 			},
 			// PDF 上传成功
 			// PDF 上传成功
 			handlePdfSuccess(res, file) {
 			handlePdfSuccess(res, file) {
-				this.form.employmentVerification = res.url
-				this.pdfFileList = [{ name: file.name, url: res.url }]
+				this.form.employmentVerification = res.data
+				this.pdfFileList = [{ name: file.name, url: res.data }]
 			},
 			},
 			handlePdfRemove() {
 			handlePdfRemove() {
 				this.form.employmentVerification = ''
 				this.form.employmentVerification = ''
@@ -1260,13 +1260,13 @@
 			// 公司证明上传成功
 			// 公司证明上传成功
 			handleProofSuccess(res, file, fileList) {
 			handleProofSuccess(res, file, fileList) {
 				this.form.companyVerification = fileList.map(
 				this.form.companyVerification = fileList.map(
-					item => item.response ? item.response.url : item.url
+					item => item.response ? item.response.data : item.url
 				)
 				)
 				this.proofFileList = fileList
 				this.proofFileList = fileList
 			},
 			},
 			handleProofRemove(file, fileList) {
 			handleProofRemove(file, fileList) {
 				this.form.companyVerification = fileList.map(
 				this.form.companyVerification = fileList.map(
-					item => item.response ? item.response.url : item.url
+					item => item.response ? item.response.data : item.url
 				)
 				)
 				this.proofFileList = fileList
 				this.proofFileList = fileList
 			},
 			},
@@ -1690,7 +1690,6 @@
 							} else {
 							} else {
 								this.isUserVip = false
 								this.isUserVip = false
 								this.$store.commit('SET_IS_COMPANY_VIP', false);
 								this.$store.commit('SET_IS_COMPANY_VIP', false);
-
 							}
 							}
 						}
 						}
 					}
 					}