diff --git a/src/views/system/station/index.vue b/src/views/system/station/index.vue index 88a0260..cdc17e7 100644 --- a/src/views/system/station/index.vue +++ b/src/views/system/station/index.vue @@ -710,7 +710,7 @@ export default { looknurseStationLabel: [ { labelDescription: "", - sort: "", + labelSort: "", ids: 1, }, ], @@ -842,7 +842,7 @@ export default { this.looknurseStationLabel = [ { labelDescription: "", - sort: "", + labelSort: "", ids: 1, }, ]; @@ -856,12 +856,14 @@ export default { if (this.looknurseStationLabel.length == 5) { this.$message.error("最多只能5条"); } else { - this.ids++; + this.ids+=1; var obj = { labelDescription: "", - sort: "", + labelSort: "", ids: this.ids, }; + + this.looknurseStationLabel.push(obj); } console.log(this.looknurseStationLabel); @@ -1027,7 +1029,7 @@ export default { this.looknurseStationLabel = [ { labelDescription: "", - labelSort:"", + labeSort:"", ids: 1, }, ];