GULIMMO
2023-11-11 bbddbdf9c384b0c34cda34947b358e6aa95ca35c
场所维护修改
3 files modified
24 ■■■■ changed files
pages.json 2 ●●● patch | view | raw | blame | history
subPackage/workbench/views/cshw.vue 9 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/editExamine.vue 13 ●●●●● patch | view | raw | blame | history
pages.json
@@ -237,7 +237,7 @@
                {
                    "path": "views/editExamine",
                    "style": {
                        "navigationBarTitleText": "场合维护",
                        "navigationBarTitleText": "场所维护",
                        "enablePullDownRefresh": false,
                        "navigationBarBackgroundColor": "#fff",
                        "navigationBarTextStyle": "black"
subPackage/workbench/views/cshw.vue
@@ -66,12 +66,14 @@
                tabStatus: 1,
                keyWord: '',
                loadingStatus: 'nomore',
                clickInfo: {}
                clickInfo: {},
                currentRole: {}
            }
        },
        onShow() {
            this.resetParams()
            this.getSiteList()
            this.currentRole = uni.getStorageSync("activeRole")
        },
        onReachBottom() {
            this.pagingParams.current++
@@ -130,6 +132,10 @@
                return res
            },
            pushPage(placeId, id) {
                const { roleAlias } = this.currentRole
                if (roleAlias === "inhabitant") {
                    return
                }
                this.$u.func.globalNavigator(`/subPackage/workbench/views/examine?id=${id}&placeId=${placeId}`)
            }
        }
@@ -167,6 +173,7 @@
            .address {
                width: 65%;
                text-align: right;
            }
        }
    }
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>
@@ -67,6 +67,7 @@
            return {
                form: {
                    id: '',
                    placeId: '',
                    localtion: '',
                    placeName: '',
                    legalPerson: '',
@@ -93,7 +94,6 @@
                },
                personNum: 1,
                curSelectSite: {},
                placeId: '',
            }
        },
        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')
            }
        }
    }