This commit is contained in:
曹辉 2023-04-07 16:34:32 +08:00
parent 360afb46c7
commit a4d545bc98

View File

@ -252,6 +252,7 @@ export default {
var obj = {
certificateName: null,
certificateUrl: null,
sort: null,
idd: this.idd
};
if (this.form.nurseStationPersonCertificateList.length == 5) {
@ -412,6 +413,7 @@ export default {
nurseStationPersonCertificateList: [{
certificateName: null,
certificateUrl: null,
sort: null,
idd: this.idd
}]
};
@ -508,6 +510,7 @@ export default {
var obj = {
certificateName: null,
certificateUrl: null,
sort: null,
idd: this.idd
};
if (this.form.nurseStationPersonCertificateList.length == 0) {
@ -527,6 +530,13 @@ export default {
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.nurseStationPersonCertificateList.length > 0) {
this.form.nurseStationPersonCertificateList.forEach(e => {
if (!e.certificateName && !e.certificateUrl && !e.sort) {
this.form.nurseStationPersonCertificateList = this.form.nurseStationPersonCertificateList.filter(el => el != e)
}
})
}
if (this.form.id != null) {
updatePerson(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");