修改
This commit is contained in:
parent
98aaa63a1c
commit
072cb0fee6
@ -226,7 +226,8 @@ export default {
|
|||||||
var obj = {
|
var obj = {
|
||||||
certificateName: null,
|
certificateName: null,
|
||||||
certificateUrl: null,
|
certificateUrl: null,
|
||||||
idd: this.idd
|
idd: this.idd,
|
||||||
|
sort: null,
|
||||||
};
|
};
|
||||||
if (this.form.nurseStationPersonCertificateList.length == 5) {
|
if (this.form.nurseStationPersonCertificateList.length == 5) {
|
||||||
this.$message.error("最多只能5条");
|
this.$message.error("最多只能5条");
|
||||||
@ -373,7 +374,8 @@ export default {
|
|||||||
nurseStationPersonCertificateList: [{
|
nurseStationPersonCertificateList: [{
|
||||||
certificateName: null,
|
certificateName: null,
|
||||||
certificateUrl: null,
|
certificateUrl: null,
|
||||||
idd: this.idd
|
sort: null,
|
||||||
|
idd: this.idd,
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
@ -472,6 +474,7 @@ export default {
|
|||||||
var obj = {
|
var obj = {
|
||||||
certificateName: null,
|
certificateName: null,
|
||||||
certificateUrl: null,
|
certificateUrl: null,
|
||||||
|
sort: null,
|
||||||
idd: this.idd
|
idd: this.idd
|
||||||
};
|
};
|
||||||
if (this.form.nurseStationPersonCertificateList.length == 0) {
|
if (this.form.nurseStationPersonCertificateList.length == 0) {
|
||||||
@ -498,6 +501,13 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (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) {
|
if (this.form.id != null) {
|
||||||
updatePerson(this.form).then((response) => {
|
updatePerson(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user