From 032d11cb832b69c4deb7521ae44a4fadbdcced62 Mon Sep 17 00:00:00 2001
From: zhangqun <179111901@qq.com>
Date: Fri, 26 Jul 2024 14:38:14 +0800
Subject: [PATCH] 1
---
pages/index/index.vue | 2 +-
pages/investigation/index.vue | 9 +++--
pages/map/index.vue | 74 ++++++++++++++++++++++++-----------
3 files changed, 58 insertions(+), 27 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 76049d5..3ac5f88 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -172,7 +172,7 @@
if(row.pcType == 2) {
this.$.open("/pages/investigation/task" + "?id=" + this.businessId);
} else {
- this.$.open('/pages/map/index?businessId=' + row.businessId + '§ionId=' + row.sectionCode + '&deptId=' + row.handleDept + '&taskName=' + row.name)
+ this.$.open('/pages/map/index?businessId=' + row.businessId + '§ionId=' + row.sectionCode + '&deptId=' + row.handleDept + '&taskName=' + row.name + '&pcType' + row.pcType)
}
},
konw() {
diff --git a/pages/investigation/index.vue b/pages/investigation/index.vue
index c693251..0045c33 100644
--- a/pages/investigation/index.vue
+++ b/pages/investigation/index.vue
@@ -3,12 +3,12 @@
-
+
@@ -196,8 +196,9 @@
this.$.open("/pages/investigation/task" + "?id=" + this.businessId);
} else {
this.$.open('/pages/map/index?businessId=' + row.businessId +
- '&operator' + row.operator +
- '&deptId' + row.handleDept +
+ '&operator=' + row.operator +
+ '&deptId=' + row.handleDept +
+ '&pcType=' + row.pcType +
'&type=' + (this.tab == 1 ? 'edit' : 'view'))
// this.$.open('/pages/map/index?businessId=' + row.businessId)
}
diff --git a/pages/map/index.vue b/pages/map/index.vue
index 2354142..545066c 100644
--- a/pages/map/index.vue
+++ b/pages/map/index.vue
@@ -24,7 +24,7 @@
智能排查
- 人工排查
+ 人工排查
查看排查详情
@@ -34,7 +34,7 @@
更换
智能排查
- 人工排查
+ 人工排查
查看排查详情
@@ -103,7 +103,7 @@
新增成功
-
+
人工排查
@@ -176,7 +176,8 @@
show: false,
type: 'edit',
show2: false,
- pcType: 0
+ pcType: 0,
+ pcTypes: 0,
};
},
onLoad(options) {
@@ -185,6 +186,7 @@
this.businessId = options.businessId;
this.operator = options.operator;
this.deptId = options.deptId;
+ this.pcType = options.pcType;
this.type = options.type;
this.pageHeight = uni.getSystemInfoSync().windowHeight;
@@ -194,8 +196,8 @@
this.getSystemInfo()
},
onShow() {
- if (this.pcType == 2) {
- this.pcType = 0
+ if (this.pcTypes == 2) {
+ this.pcTypes = 0
this.backPage()
}
},
@@ -425,22 +427,40 @@
// businessId: "000001",
// pointType: '1'
// };
- this.$.open(
- "/pages/index/detail?taskId=" +
- this.businessId +
- "&id=" +
- this.sectionCode +
- "§ionId=" +
- this.sectionCode +
- "&roadName=" +
- this.roadName +
- "&userId=" +
- this.operator +
- "&deptId=" +
- this.deptId +
- "§ionType=" +
- this.pointType
- );
+
+ this.$request
+ .globalRequest(
+ "/hiddenDanger/highDanger/HighDangerSaveStatus",
+ {
+ businessId: this.businessId,
+ pcType: "1",
+ },
+ "GET"
+ )
+ .then((res) => {
+ console.log(res);
+ if (res.code === 200) {
+ this.pcType = 1
+ this.$.open(
+ "/pages/index/detail?taskId=" +
+ this.businessId +
+ "&id=" +
+ this.sectionCode +
+ "§ionId=" +
+ this.sectionCode +
+ "&roadName=" +
+ this.roadName +
+ "&userId=" +
+ this.operator +
+ "&deptId=" +
+ this.deptId +
+ "§ionType=" +
+ this.pointType
+ );
+ } else {
+ this.$.toast(res.message);
+ }
+ });
}
if (v == 2) {
if (t) {
@@ -456,6 +476,7 @@
.then((res) => {
console.log(res);
if (res.code === 200) {
+ this.pcTypes = 2
this.pcType = 2
this.show2 = false;
this.$.open("/pages/investigation/task" + "?id=" + this.businessId);
@@ -472,6 +493,15 @@
// this.$.open(url + "?id=" + 'RX202310210236');
},
+ handleCheck2() {
+ if(this.pcType == 1) {
+ this.show2 = true
+ }
+ if(this.pcType == 2) {
+ this.handleCheck(2, true)
+ }
+
+ },
handleSubmit() {
let address = "";
if (this.ftype == 1) {