From 617abfbb0287f647b81a0fce1500886b996bed05 Mon Sep 17 00:00:00 2001
From: GULIMMO <2820890765@qq.com>
Date: Sun, 12 Nov 2023 17:57:25 +0800
Subject: [PATCH] 场所维护、标签管理更新
---
subPackage/workbench/views/editExamine.vue | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/subPackage/workbench/views/editExamine.vue b/subPackage/workbench/views/editExamine.vue
index 29d507e..2a7e476 100644
--- a/subPackage/workbench/views/editExamine.vue
+++ b/subPackage/workbench/views/editExamine.vue
@@ -44,7 +44,7 @@
<view class="title">人员信息-#{{ i }}</view>
<formItem ref="formItemRef"></formItem>
</view>
-
+
<view class="add-person">
<u-button type="success" plain @click="addPerson">在加一人</u-button>
</view>
@@ -122,7 +122,8 @@
// }
// })
// },
- getCsDetails() {
+ getCsDetails() {
+ const that = this
getPlaceDetail({
placeId: this.curSelectSite.id
}).then(detailRes => {
@@ -137,32 +138,34 @@
})
return
}
- const placePractitioner = data?.placePractitioner || []
+ const placePractitioner = data?.placePractitioner || []
console.log(data);
Object.keys(this.form).forEach(key => {
this.form[key] = data[key]
- if (key === 'imageUrls' || key === 'planImageUrls') {
+ if (key === 'imageUrls' || key === 'planImageUrls') {
data[key] = data[key] || ''
this.form[key] = []
if (!!data[key]) {
data[key] = JSON.parse(data[key])
if (Array.isArray(data[key])) {
this.form[key] = data[key]
- } else {
- this.form[key].push(data[key])
+ } else {
+ this.form[key].push(data[key])
}
}
}
})
- console.log(this.form);
- this.personNum = placePractitioner.length
- this.$nextTick(() => {
+ that.personNum = placePractitioner.length
+ // that.$nextTick(() => {
console.log(placePractitioner);
- this.$refs.formItemRef.forEach((item, index) => {
- item.form = placePractitioner[index]
- })
- })
+ setTimeout(() => {
+ const componetns = this.$refs.formItemRef || []
+ componetns.forEach((item, index) => {
+ item.form = placePractitioner[index]
+ })
+ }, 0)
+ // })
})
},
updatePlaceExt(data) {
--
Gitblit v1.9.3