From d46a4b1d0f71b5e60a38da891bb7fe2064633cf7 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Sun, 28 Jan 2024 10:29:35 +0800
Subject: [PATCH] 更新

---
 subPackage/workbench/views/audit.vue |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/subPackage/workbench/views/audit.vue b/subPackage/workbench/views/audit.vue
index 1100f49..aaeac90 100644
--- a/subPackage/workbench/views/audit.vue
+++ b/subPackage/workbench/views/audit.vue
@@ -20,7 +20,7 @@
 
 		<view class="list">
 			<view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k"
-				@click="navTo(i.id,i.reportType,i.status)">
+				@click="navTo(i.id,i.reportType,i.status,i.type)">
 				<view class="item-title flex a-i-c j-c-s-b mb-20">
 					<text class="f-32 fw">{{i.name}}</text>
 					<u-tag v-if="i.status == 4" text="待接收" type="warning" plain plainFill></u-tag>
@@ -186,38 +186,38 @@
 					this.loadingStatus = 'nomore'
 				})
 			},
-			navTo(id, type, status) {
+			navTo(id, reportType, status, type) {
 				if (status == 4) {
 					if (uni.getStorageSync("activeRole").roleName == "民警") {
-						this.navToDetail(type, id)
+						this.navToDetail(reportType, id, type)
 					} else {
-						this.navToEdit(type, id);
+						this.navToEdit(reportType, id, type);
 					}
 				} else {
-					this.navToDetail(type, id)
+					this.navToDetail(reportType, id, type)
 				}
 			},
 
-			navToEdit(type, id) {
-				if (type == 1) {
+			navToEdit(reportType, id, type) {
+				if (reportType == 1) {
 					this.$u.func.globalNavigator(`/subPackage/label/bail?id=${id}`)
-				} else if (type == 2) {
+				} else if (reportType == 2 || type == 7) {
 					this.$u.func.globalNavigator(`/subPackage/label/hotel?id=${id}`)
-				} else if (type == 3 || type == 4 || type == 5) {
+				} else if (reportType == 3 || reportType == 4 || reportType == 5) {
 					this.$u.func.globalNavigator(`/subPackage/label/form?id=${id}`)
-				} else if (type == 6) {
+				} else if (reportType == 6) {
 					this.$u.func.globalNavigator(`/subPackage/label/school?id=${id}`)
 				}
 			},
 
-			navToDetail(type, id) {
-				if (type == 1) {
+			navToDetail(reportType, id, type) {
+				if (reportType == 1) {
 					this.$u.func.globalNavigator(`bailReportDetail?id=${id}`)
-				} else if (type == 2) {
+				} else if (reportType == 2 || type == 7) {
 					this.$u.func.globalNavigator(`hotelReportDetail?id=${id}`)
-				} else if (type == 3 || type == 4 || type == 5) {
+				} else if (reportType == 3 || reportType == 4 || reportType == 5) {
 					this.$u.func.globalNavigator(`labelReportDetail?id=${id}`)
-				} else if (type == 6) {
+				} else if (reportType == 6) {
 					this.$u.func.globalNavigator(`schoolReportDetail?id=${id}`)
 				}
 			},

--
Gitblit v1.9.3