From a3004991e3fd269f2521b8e7446f968b99f43e5b Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Wed, 03 Jan 2024 15:04:15 +0800
Subject: [PATCH] 更新
---
subPackage/workbench/views/editExamine.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/subPackage/workbench/views/editExamine.vue b/subPackage/workbench/views/editExamine.vue
index fa62515..098208b 100644
--- a/subPackage/workbench/views/editExamine.vue
+++ b/subPackage/workbench/views/editExamine.vue
@@ -47,7 +47,7 @@
</view>
<view class="practitioner">
<box-title title="从业人员信息"></box-title>
- <view class="info" v-for="(item, index) in personNum" :key="i">
+ <view class="info" v-for="(item, index) in personNum" :key="index">
<view class="title">人员信息-#{{ index*1 + 1 }}</view>
<formItem ref="formItemRef"></formItem>
</view>
@@ -198,10 +198,16 @@
}
this.personNum = placePractitioner.length
- const componetns = this.$refs.formItemRef || []
- this.$refs.formItemRef.forEach((item, index) => {
- item.form = placePractitioner[index]
+ // const componetns = this.$refs.formItemRef || []
+ placePractitioner.forEach((item, index) => {
+ this.$nextTick(() => {
+ this.$refs.formItemRef[index].form = item
+ })
})
+
+ // this.$refs.formItemRef.forEach((item, index) => {
+ // item.form = placePractitioner[index]
+ // })
})
},
--
Gitblit v1.9.3