|
|
@ -20,7 +20,12 @@ |
|
|
|
<view class="status" v-if="pageType1Result.deadlineType == 2">延期</view> |
|
|
|
<view class="status" v-if="pageType1Result.deadlineType == 2">延期</view> |
|
|
|
<!-- <view class="status" v-if="pageType1Result.deadlineType == 3">正常</view> --> |
|
|
|
<!-- <view class="status" v-if="pageType1Result.deadlineType == 3">正常</view> --> |
|
|
|
<view class="top"> |
|
|
|
<view class="top"> |
|
|
|
<image src="/static/logo.png" mode="" style="width: 120px;height: 90px;" class="mimg"></image> |
|
|
|
<image |
|
|
|
|
|
|
|
src="/static/logo.png" |
|
|
|
|
|
|
|
mode="" |
|
|
|
|
|
|
|
style="width: 120px; height: 90px" |
|
|
|
|
|
|
|
class="mimg" |
|
|
|
|
|
|
|
></image> |
|
|
|
<view class="font"> |
|
|
|
<view class="font"> |
|
|
|
<view class="tit">{{ pageType1Result.name }}</view> |
|
|
|
<view class="tit">{{ pageType1Result.name }}</view> |
|
|
|
<view class="desc"> |
|
|
|
<view class="desc"> |
|
|
@ -104,7 +109,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="form-item" v-if="ftype==1"> |
|
|
|
<view class="form-item" v-if="ftype == 1"> |
|
|
|
<view class="form-label">起始路口</view> |
|
|
|
<view class="form-label">起始路口</view> |
|
|
|
<view class="form-tent"> |
|
|
|
<view class="form-tent"> |
|
|
|
<input |
|
|
|
<input |
|
|
@ -115,7 +120,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="form-item" v-if="ftype==1"> |
|
|
|
<view class="form-item" v-if="ftype == 1"> |
|
|
|
<view class="form-label">终止路口</view> |
|
|
|
<view class="form-label">终止路口</view> |
|
|
|
<view class="form-tent"> |
|
|
|
<view class="form-tent"> |
|
|
|
<input |
|
|
|
<input |
|
|
@ -126,7 +131,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="form-item" v-if="ftype==2"> |
|
|
|
<view class="form-item" v-if="ftype == 2"> |
|
|
|
<view class="form-label">路口名称</view> |
|
|
|
<view class="form-label">路口名称</view> |
|
|
|
<view class="form-tent"> |
|
|
|
<view class="form-tent"> |
|
|
|
<input |
|
|
|
<input |
|
|
@ -137,19 +142,30 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="btn-box" :style="ftype == 1 ? 'margin-top: 18px' : 'margin-top: 80px'"> |
|
|
|
<view |
|
|
|
|
|
|
|
class="btn-box" |
|
|
|
|
|
|
|
:style="ftype == 1 ? 'margin-top: 18px' : 'margin-top: 80px'" |
|
|
|
|
|
|
|
> |
|
|
|
<view @click="onJump(3)" class="btn btn6"> 取消 </view> |
|
|
|
<view @click="onJump(3)" class="btn btn6"> 取消 </view> |
|
|
|
<view @click="handleSubmit" class="btn btn7"> 确定 </view> |
|
|
|
<view @click="handleSubmit" class="btn btn7"> 确定 </view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-modal :show="show" content="新增成功" confirm-text="人工排查" cancel-text="智能排查" :showConfirmButton='true' |
|
|
|
<u-modal |
|
|
|
:showCancelButton='true' @confirm="handleCheck(2)" @cancel="handleCheck(1)" |
|
|
|
:show="show" |
|
|
|
:closeOnClickOverlay="false"></u-modal> |
|
|
|
content="新增成功" |
|
|
|
|
|
|
|
confirm-text="人工排查" |
|
|
|
|
|
|
|
cancel-text="智能排查" |
|
|
|
|
|
|
|
:showConfirmButton="true" |
|
|
|
|
|
|
|
:showCancelButton="true" |
|
|
|
|
|
|
|
@confirm="handleCheck(2)" |
|
|
|
|
|
|
|
@cancel="handleCheck(1)" |
|
|
|
|
|
|
|
:closeOnClickOverlay="false" |
|
|
|
|
|
|
|
></u-modal> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</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() { |
|
|
@ -166,11 +182,14 @@ export default { |
|
|
|
max: 0, |
|
|
|
max: 0, |
|
|
|
polyline: [], |
|
|
|
polyline: [], |
|
|
|
pageType: 1, |
|
|
|
pageType: 1, |
|
|
|
ftype: '1', |
|
|
|
ftype: "1", |
|
|
|
faddress: "", |
|
|
|
faddress: "", |
|
|
|
fcoordinate: "", |
|
|
|
fcoordinate: "", |
|
|
|
businessId: "", |
|
|
|
businessId: "", |
|
|
|
pageType1Result: null, |
|
|
|
pageType1Result: { |
|
|
|
|
|
|
|
deadlineType: 3, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
pageType2Result: null, |
|
|
|
rname: "", |
|
|
|
rname: "", |
|
|
|
search: "", |
|
|
|
search: "", |
|
|
|
name1: "", |
|
|
|
name1: "", |
|
|
@ -321,6 +340,7 @@ export default { |
|
|
|
console.log(res); |
|
|
|
console.log(res); |
|
|
|
if (res.code === 200) { |
|
|
|
if (res.code === 200) { |
|
|
|
this.data = res.result; |
|
|
|
this.data = res.result; |
|
|
|
|
|
|
|
this.pageType2Result = this.data[0] |
|
|
|
this.rname = this.data[0].name; |
|
|
|
this.rname = this.data[0].name; |
|
|
|
this.polyline = [ |
|
|
|
this.polyline = [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -352,19 +372,48 @@ export default { |
|
|
|
// this.data = this.data.concat(data); |
|
|
|
// this.data = this.data.concat(data); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCheck(v) { |
|
|
|
handleCheck(v) { |
|
|
|
this.show = false |
|
|
|
this.show = false; |
|
|
|
let url = v == 1 ? "/pages/index/detail" : "/pages/investigation/task"; |
|
|
|
if (v == 1) { |
|
|
|
this.$.open(url + "?id=" + this.businessId); |
|
|
|
let json = this.pageType == 1 ? this.pageType1Result : this.pageType2Result; |
|
|
|
|
|
|
|
// let json = { |
|
|
|
|
|
|
|
// name: "023县道", |
|
|
|
|
|
|
|
// operator: "admin1", |
|
|
|
|
|
|
|
// deptId: "3702000000", |
|
|
|
|
|
|
|
// sectionCode: "37020017609", |
|
|
|
|
|
|
|
// businessId: "000001", |
|
|
|
|
|
|
|
// pointType: '1' |
|
|
|
|
|
|
|
// }; |
|
|
|
|
|
|
|
this.$.open( |
|
|
|
|
|
|
|
"/pages/index/detail?taskId=" + |
|
|
|
|
|
|
|
json.businessId + |
|
|
|
|
|
|
|
"&id=" + |
|
|
|
|
|
|
|
json.sectionCode + |
|
|
|
|
|
|
|
"§ionId=" + |
|
|
|
|
|
|
|
json.sectionCode + |
|
|
|
|
|
|
|
"&roadName=" + |
|
|
|
|
|
|
|
json.name + |
|
|
|
|
|
|
|
"&userId=" + |
|
|
|
|
|
|
|
json.operator + |
|
|
|
|
|
|
|
"&deptId=" + |
|
|
|
|
|
|
|
json.deptId + |
|
|
|
|
|
|
|
"§ionType=" + |
|
|
|
|
|
|
|
json.pointType |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (v == 2) { |
|
|
|
|
|
|
|
this.$.open("/pages/investigation/task" + "?id=" + this.businessId); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// this.$.open(url + "?id=" + 'RX202310210236'); |
|
|
|
// this.$.open(url + "?id=" + 'RX202310210236'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleSubmit() { |
|
|
|
handleSubmit() { |
|
|
|
let address = '' |
|
|
|
let address = ""; |
|
|
|
if(this.ftype == 1) { |
|
|
|
if (this.ftype == 1) { |
|
|
|
address = `${this.name1}(${this.name2}-${this.name3})`; |
|
|
|
address = `${this.name1}(${this.name2}-${this.name3})`; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
address = `${this.name1}(${this.name4})`; |
|
|
|
address = `${this.name1}(${this.name4})`; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.$request |
|
|
|
this.$request |
|
|
|
.globalRequest( |
|
|
|
.globalRequest( |
|
|
|
"/hiddenDanger/highDanger/saveSectionOrCrossing", |
|
|
|
"/hiddenDanger/highDanger/saveSectionOrCrossing", |
|
|
@ -401,6 +450,7 @@ export default { |
|
|
|
onList(e, i) { |
|
|
|
onList(e, i) { |
|
|
|
this.pageType = 2; |
|
|
|
this.pageType = 2; |
|
|
|
this.idx = i; |
|
|
|
this.idx = i; |
|
|
|
|
|
|
|
this.pageType2Result = e |
|
|
|
if (e && e.name && e.position) { |
|
|
|
if (e && e.name && e.position) { |
|
|
|
this.rname = e.name; |
|
|
|
this.rname = e.name; |
|
|
|
this.polyline = [ |
|
|
|
this.polyline = [ |
|
|
@ -432,13 +482,13 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 确认授权后,获取用户位置 |
|
|
|
// 确认授权后,获取用户位置 |
|
|
|
getLocationInfo() { |
|
|
|
getLocationInfo() { |
|
|
|
console.log('getLocationInfo') |
|
|
|
console.log("getLocationInfo"); |
|
|
|
uni.getLocation({ |
|
|
|
uni.getLocation({ |
|
|
|
type: "wgs84", |
|
|
|
type: "wgs84", |
|
|
|
success: (res) => { |
|
|
|
success: (res) => { |
|
|
|
console.log(res); |
|
|
|
console.log(res); |
|
|
|
const coord = wgs84LL2gcjLL2(res.longitude, res.latitude) |
|
|
|
const coord = wgs84LL2gcjLL2(res.longitude, res.latitude); |
|
|
|
console.log(coord) |
|
|
|
console.log(coord); |
|
|
|
this.longitude = coord[0]; //118.787575; |
|
|
|
this.longitude = coord[0]; //118.787575; |
|
|
|
this.latitude = coord[1]; //32.05024; |
|
|
|
this.latitude = coord[1]; //32.05024; |
|
|
|
// this.longitude = 120.38771; |
|
|
|
// this.longitude = 120.38771; |
|
|
@ -548,7 +598,7 @@ export default { |
|
|
|
top: calc(50vh + 80px); |
|
|
|
top: calc(50vh + 80px); |
|
|
|
background: #fff; |
|
|
|
background: #fff; |
|
|
|
border-radius: 16px; |
|
|
|
border-radius: 16px; |
|
|
|
z-index: 99999; |
|
|
|
z-index: 99999; |
|
|
|
cover-image { |
|
|
|
cover-image { |
|
|
|
width: 32px; |
|
|
|
width: 32px; |
|
|
|
height: 32px; |
|
|
|
height: 32px; |
|
|
@ -571,7 +621,7 @@ export default { |
|
|
|
width: 50px; |
|
|
|
width: 50px; |
|
|
|
height: 28px; |
|
|
|
height: 28px; |
|
|
|
line-height: 28px; |
|
|
|
line-height: 28px; |
|
|
|
font-size: 22rpx; |
|
|
|
font-size: 22rpx; |
|
|
|
background: #cc2936; |
|
|
|
background: #cc2936; |
|
|
|
color: #fff; |
|
|
|
color: #fff; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|