GULIMMO
2023-11-12 617abfbb0287f647b81a0fce1500886b996bed05
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) {