From db8e416fec0ab844026eb7bc91d9f59a457f4e6e Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 16 Jan 2024 17:41:30 +0800
Subject: [PATCH] 标签事件审核调整,优化

---
 subPackage/task/workLogDetail.vue |   37 +++++++++++++++++++++++++++----------
 1 files changed, 27 insertions(+), 10 deletions(-)

diff --git a/subPackage/task/workLogDetail.vue b/subPackage/task/workLogDetail.vue
index 6250532..cca25cd 100644
--- a/subPackage/task/workLogDetail.vue
+++ b/subPackage/task/workLogDetail.vue
@@ -18,20 +18,23 @@
 		</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>
@@ -46,6 +49,13 @@
 	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 {
@@ -60,7 +70,7 @@
 		},
 		async onLoad(option) {
 			await this.getTypeList();
-			await this.getLabelLit();
+			await this.getLabelList();
 			this.getDetail(option.id);
 		},
 		methods: {
@@ -70,9 +80,9 @@
 				}).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;
 				})
 			},
 
@@ -86,10 +96,11 @@
 				})
 			},
 
-			getLabelLit() {
+			getLabelList() {
 				getLabelListByParentId({
 					parentId: 100
 				}).then(res => {
+					console.log(res);
 					this.labelList = res.data;
 				})
 			},
@@ -103,6 +114,7 @@
 			},
 
 			getLabelValue(value) {
+
 				for (let i = 0, ii = this.labelList.length; i < ii; i++) {
 					if (value == this.labelList[i].id) {
 						return this.labelList[i].name
@@ -142,6 +154,11 @@
 		border-bottom: 1px solid #f5f5f5;
 		font-size: 28rpx;
 		background-color: #fff;
+
+		.item-content {
+			width: 70%;
+			text-align: right;
+		}
 	}
 
 	.image-wrap {

--
Gitblit v1.9.3