| | |
| | | </view> |
| | | <view class="item-row flex j-c-s-b a-i-c"> |
| | | <text>走访地址</text> |
| | | <text>{{houseHold.currentAddress}}</text> |
| | | <text class="item-content">{{houseHold.currentAddress}}</text> |
| | | </view> |
| | | <view class="item-row flex j-c-s-b a-i-c"> |
| | | <text>内容</text> |
| | | <text>{{info.context}}</text> |
| | | <text class="item-content">{{info.context}}</text> |
| | | </view> |
| | | <view class="item-row flex j-c-s-b a-i-c"> |
| | | <text>内容</text> |
| | | <text>{{info.wordTime}}</text> |
| | | <text>走访时间</text> |
| | | <text>{{info.workTime}}</text> |
| | | </view> |
| | | |
| | | <view class="image-wrap bgc-ff"> |
| | | <view class="mb-20"> |
| | | 走访图片 |
| | | </view> |
| | | <view class="image-item" v-for="(i,k) in images" @click="previewImage(i)"> |
| | | <u-image :src="i" width="80rpx" height="80rpx"></u-image> |
| | | <u-image :src="i" width="100rpx" height="100rpx"></u-image> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | import { |
| | | getHouseholdDetail |
| | | } from '@/api/house/household.js' |
| | | import { |
| | | bizDictionary, |
| | | update |
| | | } from '@/api/system/dict.js' |
| | | import { |
| | | getLabelListByParentId |
| | | } from "@/api/label/label.js"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | async onLoad(option) { |
| | | await this.getTypeList(); |
| | | await this.getLabelLit(); |
| | | await this.getLabelList(); |
| | | this.getDetail(option.id); |
| | | }, |
| | | methods: { |
| | |
| | | }).then(res => { |
| | | this.info = res.data; |
| | | this.images = this.$setImageUrl(res.data.url); |
| | | this.getHousehold(res.data.houseHold); |
| | | this.typeName = this.getTypeValue(res.data.type); |
| | | this.labelName = this.getLabelValue(res.data.personType); |
| | | this.getHousehold(res.data.householdId); |
| | | this.typeName = this.$getIndex(this.typeList, res.data.type, "dictKey", "dictValue").name; |
| | | this.labelName = this.$getIndex(this.labelList, res.data.personType, "id", "name").name; |
| | | }) |
| | | }, |
| | | |
| | |
| | | }) |
| | | }, |
| | | |
| | | getLabelLit() { |
| | | getLabelList() { |
| | | getLabelListByParentId({ |
| | | parentId: 100 |
| | | }).then(res => { |
| | | console.log(res); |
| | | this.labelList = res.data; |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | |
| | | getLabelValue(value) { |
| | | |
| | | for (let i = 0, ii = this.labelList.length; i < ii; i++) { |
| | | if (value == this.labelList[i].id) { |
| | | return this.labelList[i].name |
| | |
| | | border-bottom: 1px solid #f5f5f5; |
| | | font-size: 28rpx; |
| | | background-color: #fff; |
| | | |
| | | .item-content { |
| | | width: 70%; |
| | | text-align: right; |
| | | } |
| | | } |
| | | |
| | | .image-wrap { |