| | |
| | | { |
| | | "path": "views/editExamine", |
| | | "style": { |
| | | "navigationBarTitleText": "场合维护", |
| | | "navigationBarTitleText": "场所维护", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | |
| | | tabStatus: 1,
|
| | | keyWord: '',
|
| | | loadingStatus: 'nomore', |
| | | clickInfo: {}
|
| | | clickInfo: {}, |
| | | currentRole: {}
|
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.resetParams()
|
| | | this.getSiteList()
|
| | | this.currentRole = uni.getStorageSync("activeRole")
|
| | | },
|
| | | onReachBottom() {
|
| | | this.pagingParams.current++
|
| | |
| | | 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}`)
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | .address {
|
| | | width: 65%;
|
| | | text-align: right;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | <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>
|
| | |
| | | return {
|
| | | form: { |
| | | id: '',
|
| | | placeId: '',
|
| | | localtion: '',
|
| | | placeName: '',
|
| | | legalPerson: '',
|
| | |
| | | },
|
| | | personNum: 1,
|
| | | curSelectSite: {}, |
| | | placeId: '',
|
| | | }
|
| | | },
|
| | | onShow() {
|
| | |
| | | }) |
| | | return |
| | | } |
| | | this.placeId = data.placeId |
| | | const placePractitioner = data?.placePractitioner || [] |
| | | Object.keys(this.form).forEach(key => { |
| | | this.form[key] = data[key] |
| | |
| | | }) |
| | | 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] |
| | | }) |
| | | }) |
| | | }) |
| | |
| | | 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') |
| | | }
|
| | | }
|
| | | }
|