From 6bb872ab1a0484a64668bebebfce0bd67f5502b6 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 22 十一月 2023 13:01:43 +0800 Subject: [PATCH] # --- pages/business/plan/modiPlan.vue | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/pages/business/plan/modiPlan.vue b/pages/business/plan/modiPlan.vue index 4cca7d2..769f0bc 100644 --- a/pages/business/plan/modiPlan.vue +++ b/pages/business/plan/modiPlan.vue @@ -479,14 +479,11 @@ that.baseFormData.orderId = element.id } } - // for (element of that.userList) { - // if(element.value == that.baseFormData.userId) { - // that.baseFormData.userId = element.id - // } - // } - for(var i = 1;i <= that.selList.length; i++) { + for(let i = 0; i < that.selList.length;i++) { if (that.selList[i] == that.baseFormData.select_2) { - that.baseFormData.select_2 = 'value' + i + let index = i + 1 + console.log(index); + that.baseFormData.select_2 = 'value' + index } } that.baseFormData.planType = 4 -- Gitblit v1.9.1