This commit is contained in:
曹辉 2023-04-13 16:07:39 +08:00
parent 9532a4a2b5
commit d074f65faa

View File

@ -206,33 +206,35 @@
//
uploadcertificateimgs() {
let that = this
if (this.uploadcertificateimg && this.uploadcertificateimg.length > 0) {
this.uploadcertificateimg.forEach(e => {
uni.uploadFile({
url: baseurl +
'/nurseApplet/personCenter/uploadNurseStationPersonCertificateUrl',
filePath: e, //file: (filePath)
name: 'file',
formData: { //
'nursePersonId': that.nursePersonId,
},
timeout: 10000,
success(res) {
var img = {
certificateUrl: JSON.parse(res.data).imgUrl
if (!that.timer) {
if (this.uploadcertificateimg && this.uploadcertificateimg.length > 0) {
this.uploadcertificateimg.forEach(e => {
uni.uploadFile({
url: baseurl +
'/nurseApplet/personCenter/uploadNurseStationPersonCertificateUrl',
filePath: e, //file: (filePath)
name: 'file',
formData: { //
'nursePersonId': that.nursePersonId,
},
timeout: 10000,
success(res) {
var img = {
certificateUrl: JSON.parse(res.data).imgUrl
}
that.appPersonallist.nurseStationPersonCheckList.push(img)
if (that.appPersonallist.nurseStationPersonCheckList.length == that
.uploadcertificateimg.length) {
that.gofinish();
that.appPersonallist.nurseStationPersonCheckList = []
that.uploadcertificateimg = []
}
}
that.appPersonallist.nurseStationPersonCheckList.push(img)
if (that.appPersonallist.nurseStationPersonCheckList.length == that
.uploadcertificateimg.length) {
that.gofinish();
that.appPersonallist.nurseStationPersonCheckList = []
that.uploadcertificateimg = []
}
}
})
})
})
} else {
that.gofinish();
} else {
that.gofinish();
}
}
},
//