From ef51ae09decb4e016a849d8a5d96be7f44dafc4f Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Wed, 17 Jan 2024 19:28:20 +0800
Subject: [PATCH] 修复问题

---
 subPackage/workbench/views/schoolReportDetail.vue |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/subPackage/workbench/views/schoolReportDetail.vue b/subPackage/workbench/views/schoolReportDetail.vue
index 282c191..73db4b5 100644
--- a/subPackage/workbench/views/schoolReportDetail.vue
+++ b/subPackage/workbench/views/schoolReportDetail.vue
@@ -97,7 +97,7 @@
 	import lineItem from '../components/lineItem.vue'
 	import {
 		getSchoolReportingDetail,
-		setShoolReporting
+		setSchoolReporting
 	} from '@/api/reporting/reporting'
 	import auditAction from '../components/actionBtn.vue'
 	export default {
@@ -223,7 +223,6 @@
 		},
 		onLoad(option) {
 			this.taskId = option.id;
-			this.getDetailInfo(option.id);
 			let roleName = uni.getStorageSync("activeRole").roleName
 			if (roleName == "居民") {
 				this.roleType = 2
@@ -231,6 +230,11 @@
 				this.roleType = 1
 			}
 		},
+
+		onShow() {
+			this.getDetailInfo();
+		},
+
 
 		methods: {
 
@@ -245,9 +249,9 @@
 			},
 
 
-			getDetailInfo(id) {
+			getDetailInfo() {
 				getSchoolReportingDetail({
-					taskId: id
+					taskId: this.taskId
 				}).then(res => {
 					console.log(res);
 					let data = res.data;
@@ -286,7 +290,7 @@
 					// status: this.selectStatus,
 					status: val.type,
 					// remark: this.remark
-					remark: val.remark
+					confirmNotion: val.remark
 				}
 				// if (this.selectStatus == 3 && !this.remark) {
 				// 	uni.showToast({
@@ -321,7 +325,7 @@
 			},
 			navToEdit() {
 				uni.navigateTo({
-					url: `/subPackage/label/school?id=${this.id}`
+					url: `/subPackage/label/school?id=${this.taskId}`
 				})
 			}
 		}

--
Gitblit v1.9.3