|
|
@@ -163,9 +163,9 @@
|
|
|
@preview="handlePreview"
|
|
|
>
|
|
|
|
|
|
- <div v-if="fileListIntroduction.length < 1">
|
|
|
+ <div v-if="fileListUserCertificate.length < 1">
|
|
|
<a-icon type="plus"/>
|
|
|
- <div class="ant-upload-text">点我上传介绍信</div>
|
|
|
+ <div class="ant-upload-text">点我上传使用人证件</div>
|
|
|
</div>
|
|
|
|
|
|
</a-upload>
|
|
|
@@ -665,10 +665,10 @@ export default {
|
|
|
|
|
|
async exeBaseIntroduction(file) {
|
|
|
await this.getBase64(file, (imageUrl) => {
|
|
|
- if (this.fileListBusiness.length < 1 && this.preventRepeatBusiness(imageUrl)) {//判断图片数量及去重
|
|
|
+ if (this.fileListIntroduction.length < 1 && this.preventRepeatIntroduction(imageUrl)) {//判断图片数量及去重
|
|
|
const file2 = file
|
|
|
file2.url = imageUrl
|
|
|
- this.fileListBusiness = [...this.fileListBusiness, file]
|
|
|
+ this.fileListIntroduction = [...this.fileListIntroduction, file]
|
|
|
this.loading = false
|
|
|
}
|
|
|
}).then((result) => {
|
|
|
@@ -830,6 +830,15 @@ export default {
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
+ preventRepeatIntroduction(url){
|
|
|
+ // 排除相同图片
|
|
|
+ for (let i = 0, len = this.fileListIntroduction.length; i < len; i++) {
|
|
|
+ if (this.fileListIntroduction[i].url === url) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ },
|
|
|
|
|
|
preventRepeatUserCertificate(url) {
|
|
|
// 排除相同图片
|