From c2d3a6e9aaedcda8efbba97773749be5275f3ff3 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 02 十二月 2023 10:09:30 +0800
Subject: [PATCH] #
---
pages/business/plan/addPlan2.vue | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/pages/business/plan/addPlan2.vue b/pages/business/plan/addPlan2.vue
index 91b91c3..032fd8f 100644
--- a/pages/business/plan/addPlan2.vue
+++ b/pages/business/plan/addPlan2.vue
@@ -420,14 +420,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_3) {
- that.baseFormData.select_3 = 'value' + i
+ let index = i + 1
+ console.log(index);
+ that.baseFormData.select_3 = 'value' + index
}
}
that.baseFormData.planType = 5
--
Gitblit v1.9.1