修改
This commit is contained in:
parent
38ffe56664
commit
f884761ffb
@ -948,20 +948,22 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.form.hospitalPersonCertificateList.forEach(e => {
|
||||
if (!e.certificateName && !e.certificateUrl && !e.certificateSort) {
|
||||
this.form.hospitalPersonCertificateList = this.form.hospitalPersonCertificateList.filter(
|
||||
el => el.idd != e.idd
|
||||
);
|
||||
if (this.form.hospitalPersonCertificateList.length > 0) {
|
||||
this.form.hospitalPersonCertificateList.forEach(e => {
|
||||
if (!e.certificateName && !e.certificateUrl && !e.certificateSort) {
|
||||
this.form.hospitalPersonCertificateList = this.form.hospitalPersonCertificateList.filter(
|
||||
el => el.idd != e.idd
|
||||
);
|
||||
}
|
||||
});
|
||||
if (this.form.hospitalPersonCertificateList.length == 0) {
|
||||
var obj = {
|
||||
certificateSort: null,
|
||||
certificateName: null,
|
||||
certificateUrl: null
|
||||
};
|
||||
this.form.hospitalPersonCertificateList.push(obj);
|
||||
}
|
||||
});
|
||||
if (this.form.hospitalPersonCertificateList.length == 0) {
|
||||
var obj = {
|
||||
certificateSort: null,
|
||||
certificateName: null,
|
||||
certificateUrl: null
|
||||
};
|
||||
this.form.hospitalPersonCertificateList.push(obj);
|
||||
}
|
||||
if (this.form.consultingFee) {
|
||||
this.form.consultingFee = Number(this.form.consultingFee);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user