From 641731dcebd5a6d881486101f679a8257096d029 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 23 Sep 2025 14:27:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B7=A5=E8=89=BA=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E5=BA=8F=E5=8F=B7=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/route_form.vue | 11 +++++++++-- src/views/mtm/routepack_form.vue | 4 ++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index 511e60d2..a572433b 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -320,6 +320,7 @@ const defaultForm = { }; export default { props: { + count: { type: Number, default : 0 }, routepack: { type: String, default: "" }, }, emits: ["success", "closed"], @@ -455,8 +456,14 @@ export default { }, //显示 open(mode = "add") { - this.mode = mode; - this.visible = true; + let that = this; + that.mode = mode; + that.visible = true; + that.$nextTick(() => { + if(that.count){ + that.form.sort = that.count+1; + } + }) return this; }, //表单注入数据 diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index 752d949b..0192dbcd 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -185,6 +185,7 @@ { this.$refs.saveDialog.open("add");