排查处理

main
limingtao 11 months ago
parent 63fcdd2a69
commit f838d8bbb1
  1. 1
      pages/investigation/task.vue
  2. 121
      pages/map/index.vue
  3. 6
      pages/mine/index.vue

@ -500,7 +500,6 @@
this.sectionCode = e.sectionCode this.sectionCode = e.sectionCode
this.name = e.taskName this.name = e.taskName
this.sectionName = e.sectionName this.sectionName = e.sectionName
console.log(e)
this.type = e.type; this.type = e.type;
this.getBaseData(e.id); this.getBaseData(e.id);

@ -42,8 +42,8 @@
<view class="search"> <view class="search">
<view class="searchL"> <view class="searchL">
<image src="/static/map/search.png" alt="" /> <image src="/static/map/search.png" alt="" />
<input v-model="search" class="sinput" placeholder-style="color: #BFBFBF;" placeholder="搜索路段或路口" type="text" <input v-model="search" class="sinput" placeholder-style="color: #BFBFBF;" placeholder="搜索路段或路口"
confirm-type="search" @confirm="confirm" /> type="text" confirm-type="search" @confirm="confirm" />
</view> </view>
<view @click="onJump(4)" class="addbtn"> 新增 </view> <view @click="onJump(4)" class="addbtn"> 新增 </view>
</view> </view>
@ -115,7 +115,8 @@
</cover-view> </cover-view>
<cover-view class="umodal" v-show="show2"> <cover-view class="umodal" v-show="show2">
<cover-view class="umodal-box" style="height: 280rpx;"> <cover-view class="umodal-box" style="height: 280rpx;">
<cover-view class="umodal-content" style="padding: 12px 0 0 22px;box-sizing: border-box; height: 180rpx;"> <cover-view class="umodal-content"
style="padding: 12px 0 0 22px;box-sizing: border-box; height: 180rpx;">
<cover-view style="height: 40rpx; margin-top: 2px;">您将进入人工排查智能排查数据将自动转入</cover-view> <cover-view style="height: 40rpx; margin-top: 2px;">您将进入人工排查智能排查数据将自动转入</cover-view>
<cover-view style="height: 40rpx;">人工排查结果但无法再次转回智能排查</cover-view> <cover-view style="height: 40rpx;">人工排查结果但无法再次转回智能排查</cover-view>
<cover-view style="height: 40rpx;">是否继续请确认</cover-view> <cover-view style="height: 40rpx;">是否继续请确认</cover-view>
@ -138,9 +139,13 @@
</template> </template>
<script> <script>
import TopTitle from "../../components/top-title.vue"; import TopTitle from "../../components/top-title.vue";
import { wgs84LL2gcjLL2 } from "./c.js"; import {
wgs84LL2gcjLL2
} from "./c.js";
export default { export default {
components: { TopTitle }, components: {
TopTitle
},
data() { data() {
return { return {
pageHeight: 300, pageHeight: 300,
@ -178,6 +183,9 @@
show2: false, show2: false,
pcType: 0, pcType: 0,
pcTypes: 0, pcTypes: 0,
name: "",
sectionName: '',
sectionCode: '',
}; };
}, },
onLoad(options) { onLoad(options) {
@ -187,7 +195,9 @@
this.operator = options.operator; this.operator = options.operator;
this.deptId = options.deptId; this.deptId = options.deptId;
this.pcType = options.pcType; this.pcType = options.pcType;
this.sectionCode = options.sectionCode
this.name = options.taskName
this.sectionName = options.sectionName
this.type = options.type; this.type = options.type;
this.pageHeight = uni.getSystemInfoSync().windowHeight; this.pageHeight = uni.getSystemInfoSync().windowHeight;
@ -237,21 +247,19 @@
mounted() { mounted() {
let that = this; let that = this;
var maps = uni.createMapContext("maps", this).$getAppMap(); var maps = uni.createMapContext("maps", this).$getAppMap();
maps.onclick = function (point) { maps.onclick = function(point) {
console.log(point, "point"); console.log(point, "point");
if (that.pageType == 4) { if (that.pageType == 4) {
that.longitude = point.longitude; that.longitude = point.longitude;
that.latitude = point.latitude; that.latitude = point.latitude;
that.covers = [ that.covers = [{
{
id: "markers1", id: "markers1",
latitude: that.latitude, latitude: that.latitude,
longitude: that.longitude, longitude: that.longitude,
iconPath: "/static/icon/fill_position.svg", iconPath: "/static/icon/fill_position.svg",
width: 24, // width: 24, //
height: 28, // height: 28, //
}, }, ];
];
} }
// that.covers = []; // that.covers = [];
@ -280,16 +288,16 @@
// App // App
// //
uni.getSystemInfo({ uni.getSystemInfo({
success: function (res) { success: function(res) {
// App // App
// if (res.platform === 'android' || res.platform === 'ios') { // if (res.platform === 'android' || res.platform === 'ios') {
// App // App
uni.getLocation({ uni.getLocation({
success: function (locationRes) { success: function(locationRes) {
console.log('已获取定位信息', locationRes); console.log('已获取定位信息', locationRes);
// //
}, },
fail: function (error) { fail: function(error) {
console.error('获取定位信息失败', error); console.error('获取定位信息失败', error);
if (error.errMsg.indexOf('auth deny') !== -1) { if (error.errMsg.indexOf('auth deny') !== -1) {
// //
@ -297,15 +305,22 @@
title: '提示', title: '提示',
content: '请授权使用您的定位服务', content: '请授权使用您的定位服务',
confirmText: '去授权', confirmText: '去授权',
success: function (modalRes) { success: function(modalRes) {
if (modalRes.confirm) { if (modalRes.confirm) {
uni.openSetting({ uni.openSetting({
success: (settingRes) => { success: (settingRes) => {
console.log('openSetting success', settingRes.authSetting); console.log(
'openSetting success',
settingRes
.authSetting
);
// //
}, },
fail: (settingError) => { fail: (settingError) => {
console.log('openSetting fail', settingError); console.log(
'openSetting fail',
settingError
);
// //
} }
}); });
@ -326,8 +341,9 @@
initData() { initData() {
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/getDangerRoad", "/hiddenDanger/highDanger/getDangerRoad", {
{ businessId: this.businessId }, businessId: this.businessId
},
"GET" "GET"
) )
.then((res) => { .then((res) => {
@ -340,26 +356,22 @@
this.pointType = res.result.pointType; this.pointType = res.result.pointType;
this.longitude = res.result.coordinateList[0].longitude; //118.787575; this.longitude = res.result.coordinateList[0].longitude; //118.787575;
this.latitude = res.result.coordinateList[0].latitude; //32.05024; this.latitude = res.result.coordinateList[0].latitude; //32.05024;
this.covers = [ this.covers = [{
{
id: "markers1", id: "markers1",
latitude: this.latitude, latitude: this.latitude,
longitude: this.longitude, longitude: this.longitude,
iconPath: "/static/icon/fill_position.svg", iconPath: "/static/icon/fill_position.svg",
width: 24, // width: 24, //
height: 28, // height: 28, //
}, }, ];
]; this.polyline = [{
this.polyline = [
{
name: "xian1", name: "xian1",
arrowLine: true, arrowLine: true,
color: "#CC2936", color: "#CC2936",
width: 8, width: 8,
id: 1, id: 1,
points: res.result.coordinateList, points: res.result.coordinateList,
}, }, ];
];
} else { } else {
this.pageType = 2; this.pageType = 2;
this.getLocationInfo(); this.getLocationInfo();
@ -372,8 +384,7 @@
initDat2() { initDat2() {
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/getNearRoadInfo", "/hiddenDanger/highDanger/getNearRoadInfo", {
{
x: this.longitude, x: this.longitude,
y: this.latitude, y: this.latitude,
}, },
@ -387,16 +398,14 @@
this.roadName = this.data[0].name; this.roadName = this.data[0].name;
this.pointType = this.data[0].type; this.pointType = this.data[0].type;
this.rname = this.data[0].name; this.rname = this.data[0].name;
this.polyline = [ this.polyline = [{
{
name: "xian1", name: "xian1",
arrowLine: true, arrowLine: true,
color: "#CC2936", color: "#CC2936",
width: 8, width: 8,
id: 1, id: 1,
points: this.data[0].position, points: this.data[0].position,
}, }, ];
];
} else { } else {
this.$.toast(res.message); this.$.toast(res.message);
} }
@ -430,8 +439,7 @@
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/HighDangerSaveStatus", "/hiddenDanger/highDanger/HighDangerSaveStatus", {
{
businessId: this.businessId, businessId: this.businessId,
pcType: "1", pcType: "1",
}, },
@ -466,8 +474,7 @@
if (t) { if (t) {
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/HighDangerSaveStatus", "/hiddenDanger/highDanger/HighDangerSaveStatus", {
{
businessId: this.businessId, businessId: this.businessId,
pcType: "2", pcType: "2",
}, },
@ -479,7 +486,10 @@
this.pcTypes = 2 this.pcTypes = 2
this.pcType = 2 this.pcType = 2
this.show2 = false; this.show2 = false;
this.$.open("/pages/investigation/task" + "?id=" + this.businessId); // this.$.open("/pages/investigation/task" + "?id=" + this.businessId);
this.$.open("/pages/investigation/task" + "?id=" + this.businessId + '&sectionId=' + this.sectionCode +
'&operator=' + this.operator + '&deptId=' + this.handleDept + '&taskName=' + this.name +
'&pcType' + this.pcType + '&sectionName=' + this.sectionName + '&sectionCode=' + this.sectionCode);
} else { } else {
this.$.toast(res.message); this.$.toast(res.message);
} }
@ -495,13 +505,11 @@
}, },
handleCheck2() { handleCheck2() {
if(this.pcType == 1) { if (this.pcType == 1) {
this.show2 = true this.show2 = true
} } else if (this.pcType == 2) {
else if(this.pcType == 2) {
this.handleCheck(2, true) this.handleCheck(2, true)
} } else {
else {
this.handleCheck(2, true) this.handleCheck(2, true)
} }
}, },
@ -514,8 +522,7 @@
} }
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/saveSectionOrCrossing", "/hiddenDanger/highDanger/saveSectionOrCrossing", {
{
businessId: this.businessId, businessId: this.businessId,
address, address,
coordinate: this.longitude + "," + this.latitude, coordinate: this.longitude + "," + this.latitude,
@ -559,26 +566,22 @@
this.rname = e.name; this.rname = e.name;
this.longitude = e.position[0].longitude; this.longitude = e.position[0].longitude;
this.latitude = e.position[0].latitude; this.latitude = e.position[0].latitude;
this.covers = [ this.covers = [{
{
id: "markers1", id: "markers1",
latitude: e.position[0].latitude, latitude: e.position[0].latitude,
longitude: e.position[0].longitude, longitude: e.position[0].longitude,
iconPath: "/static/icon/fill_position.svg", iconPath: "/static/icon/fill_position.svg",
width: 24, // width: 24, //
height: 28, // height: 28, //
}, }, ];
]; this.polyline = [{
this.polyline = [
{
name: "xian1", name: "xian1",
arrowLine: true, arrowLine: true,
color: "#CC2936", color: "#CC2936",
width: 8, width: 8,
id: 1, id: 1,
points: e.position, points: e.position,
}, }, ];
];
} }
}, },
// //
@ -609,16 +612,14 @@
this.latitude = coord[1]; //32.05024; this.latitude = coord[1]; //32.05024;
// this.longitude = 120.38771; // this.longitude = 120.38771;
// this.latitude = 36.110146; // this.latitude = 36.110146;
this.covers = [ this.covers = [{
{
id: "markers1", id: "markers1",
latitude: this.latitude, latitude: this.latitude,
longitude: this.longitude, longitude: this.longitude,
iconPath: "/static/icon/fill_position.svg", iconPath: "/static/icon/fill_position.svg",
width: 24, // width: 24, //
height: 28, // height: 28, //
}, }, ];
];
this.initDat2(); this.initDat2();
}, },
}); });
@ -682,16 +683,14 @@
}, },
onMapTap(r) { onMapTap(r) {
if (this.pageType == 4) { if (this.pageType == 4) {
this.covers = [ this.covers = [{
{
id: "markers2", id: "markers2",
latitude: this.latitude, latitude: this.latitude,
longitude: this.longitude, longitude: this.longitude,
iconPath: "/static/icon/fill_position.svg", iconPath: "/static/icon/fill_position.svg",
width: 24, // width: 24, //
height: 28, // height: 28, //
}, }, ];
];
} }
console.log(r); console.log(r);
}, },

@ -80,7 +80,7 @@ const base64Avatar ='data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYA
timer: null, timer: null,
num: 0, num: 0,
dataInfo: {}, dataInfo: {},
tabbarShow: true tabbarShow: true,
// funcList: [ // funcList: [
// { id:1,name:'',url:'/pages/logIn/userInfo',icon:'/mine/userinfo.png' }, // { id:1,name:'',url:'/pages/logIn/userInfo',icon:'/mine/userinfo.png' },
// { id:2,name:'',url:'/pages/mine/insurance',icon:'/mine/insurance.png' }, // { id:2,name:'',url:'/pages/mine/insurance',icon:'/mine/insurance.png' },
@ -89,6 +89,7 @@ const base64Avatar ='data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYA
// { id:5,name:'',url:'/pages/mine/jobfind',icon:'/mine/jobfind.png' }, // { id:5,name:'',url:'/pages/mine/jobfind',icon:'/mine/jobfind.png' },
// { id:6,name:'',url:'/pages/mine/worker',icon:'/mine/jobfind.png' }, // { id:6,name:'',url:'/pages/mine/worker',icon:'/mine/jobfind.png' },
// ] // ]
} }
}, },
computed: { computed: {
@ -131,7 +132,8 @@ const base64Avatar ='data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYA
onHide() { onHide() {
// this.timer && clearInterval(this.timer) // this.timer && clearInterval(this.timer)
}, },
onLoad() { onLoad(e) {
}, },
methods: { methods: {

Loading…
Cancel
Save