修改
This commit is contained in:
parent
9532a4a2b5
commit
d074f65faa
@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
//修改
|
||||
|
||||
Loading…
Reference in New Issue
Block a user