(hyx_SpecialUserBug)

编辑特种作业人员信息时无法上传图片问题修复
hyx_specialUserBug
huangyuxuan 2024-12-03 11:45:31 +08:00
parent fa39606861
commit 498ef3a993
1 changed files with 4 additions and 2 deletions

View File

@ -335,7 +335,8 @@ export default {
this.form.REVIEW_TIME = uni.$u.timeFormat(event.value, 'yyyy-mm-dd')
},
fnAfterRead(event) {
var houzhui = event.file.url.replace(/.+\./, "");
console.log(event.file)
var houzhui = event.file.name.substring(event.file.name.lastIndexOf('.') + 1);
console.log(houzhui);
if (houzhui == "jpg" || houzhui == "png") {
this.form.fileList.push(event.file)
@ -346,7 +347,8 @@ export default {
}
},
fnAfterRead1(event) {
var houzhui = event.file.url.replace(/.+\./, "");
console.log(event.file)
var houzhui = event.file.name.substring(event.file.name.lastIndexOf('.') + 1);
console.log(houzhui);
if (houzhui == "jpg" || houzhui == "png") {
this.form.fileListBack.push(event.file)