From bbddbdf9c384b0c34cda34947b358e6aa95ca35c Mon Sep 17 00:00:00 2001
From: GULIMMO <2820890765@qq.com>
Date: Sat, 11 Nov 2023 18:05:49 +0800
Subject: [PATCH] 场所维护修改
---
subPackage/workbench/views/editExamine.vue | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/subPackage/workbench/views/editExamine.vue b/subPackage/workbench/views/editExamine.vue
index 07a0ba3..d7edc75 100644
--- a/subPackage/workbench/views/editExamine.vue
+++ b/subPackage/workbench/views/editExamine.vue
@@ -45,7 +45,7 @@
<u-button type="success" plain class="add-person" @click="addPerson">在加一人</u-button>
<view class="btn-group">
<u-button class="btn-item" type="primary" @click="submit">提交</u-button>
- <u-button class="btn-item">我上报的事件</u-button>
+ <u-button class="btn-item" @click="pushPage">我上报的事件</u-button>
</view>
</div>
</template>
@@ -66,7 +66,8 @@
data() {
return {
form: {
- id: '',
+ id: '',
+ placeId: '',
localtion: '',
placeName: '',
legalPerson: '',
@@ -92,8 +93,7 @@
}
},
personNum: 1,
- curSelectSite: {},
- placeId: '',
+ curSelectSite: {},
}
},
onShow() {
@@ -113,7 +113,6 @@
})
return
}
- this.placeId = data.placeId
const placePractitioner = data?.placePractitioner || []
Object.keys(this.form).forEach(key => {
this.form[key] = data[key]
@@ -124,8 +123,9 @@
})
this.personNum = placePractitioner.length
this.$nextTick(() => {
+ console.log(placePractitioner);
this.$refs.formItemRef.forEach((item, index) => {
- item.form = this.$refs.formItemRef[index].form
+ item.form = placePractitioner[index]
})
})
})
@@ -159,11 +159,14 @@
submit() {
const placePractitioner = []
this.$refs.formItemRef.forEach(item => {
- item.form.placeId = this.placeId
+ item.form.placeId = this.form.placeId
placePractitioner.push(item.form)
})
this.form.placePractitioner = placePractitioner
this.updatePlaceExt(this.form)
+ },
+ pushPage() {
+ this.$u.func.globalNavigator('/subPackage/workbench/views/cshw')
}
}
}
--
Gitblit v1.9.3