From c3f580e112c2d8ecc3933f32a24a5177fa09dde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 8 Nov 2022 13:03:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A4=E7=90=86=E7=AB=99=E7=9A=84=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/station/index.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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, }, ];