|
@@ -29,6 +29,7 @@
|
|
|
:on-success="(response, file, fileList) => {
|
|
|
return handleAvatarSuccess(response, file, fileList, null, 'head')
|
|
|
}"
|
|
|
+ :before-upload="checkIsPic"
|
|
|
>
|
|
|
<img style="width: 150px; height: 150px; line-height: 150px" v-if="inputForm.headshotLsUrl" :src="inputForm.headshotLsUrl"/>
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
@@ -146,6 +147,7 @@
|
|
|
:on-success="(response, file, fileList) => {
|
|
|
return handleAvatarSuccess(response, file, fileList, null, 'front')
|
|
|
}"
|
|
|
+ :before-upload="checkIsPic"
|
|
|
>
|
|
|
<!-- :before-upload="beforeAvatarUpload"-->
|
|
|
<img v-if="inputForm.certificatesFrontLsUrl"
|
|
@@ -172,6 +174,7 @@
|
|
|
:on-success="(response, file, fileList) => {
|
|
|
return handleAvatarSuccess(response, file, fileList, null, 'back')
|
|
|
}"
|
|
|
+ :before-upload="checkIsPic"
|
|
|
>
|
|
|
<img v-if="inputForm.certificatesBackLsUrl"
|
|
|
style="width: 150px; height: 150px; line-height: 150px"
|
|
@@ -593,6 +596,7 @@
|
|
|
:on-success="(response, file, fileList) => {
|
|
|
return handleAvatarSuccess(response, file, fileList, index_bank, 'bank')
|
|
|
}"
|
|
|
+ :before-upload="checkIsPic"
|
|
|
>
|
|
|
<img v-if="inputForm.rosterBankCardsDTOList[index_bank].payrollCardPicLsUrl"
|
|
|
style="width: 150px; height: 150px; line-height: 150px"
|
|
@@ -712,6 +716,7 @@
|
|
|
:on-success="(response, file, fileList) => {
|
|
|
return handleAvatarSuccess(response, file, fileList, index_educate, 'educate_first')
|
|
|
}"
|
|
|
+ :before-upload="checkIsPic"
|
|
|
>
|
|
|
<img v-if="inputForm.rosterEducateDTOList[index_educate].educationCertFirstLsUrl"
|
|
|
style="width: 150px; height: 150px; line-height: 150px"
|
|
@@ -737,6 +742,7 @@
|
|
|
:on-success="(response, file, fileList) => {
|
|
|
return handleAvatarSuccess(response, file, fileList, index_educate, 'educate_second')
|
|
|
}"
|
|
|
+ :before-upload="checkIsPic"
|
|
|
>
|
|
|
<img v-if="inputForm.rosterEducateDTOList[index_educate].educationCertSecondLsUrl"
|
|
|
style="width: 150px; height: 150px; line-height: 150px"
|
|
@@ -887,6 +893,7 @@
|
|
|
:on-success="(response, file, fileList) => {
|
|
|
return handleAvatarSuccess(response, file, fileList, index_family, 'family')
|
|
|
}"
|
|
|
+ :before-upload="checkIsPic"
|
|
|
>
|
|
|
<img v-if="inputForm.rosterFamilyDTOList[index_family].birthCertificateLsUrl"
|
|
|
style="width: 150px; height: 150px; line-height: 150px"
|
|
@@ -1609,6 +1616,9 @@
|
|
|
} else {
|
|
|
callback()
|
|
|
}
|
|
|
+ },
|
|
|
+ checkIsPic (file) {
|
|
|
+ return this.commonJS.isPic(file)
|
|
|
}
|
|
|
}
|
|
|
}
|