flx:巡检点新增导航 新增默认展示
This commit is contained in:
parent
6740bc5d25
commit
e549e90fdc
@ -101,7 +101,7 @@
|
||||
return {
|
||||
editId: "",
|
||||
coordType: "gcj02",
|
||||
standOptions: [30, 50, 100, 200, 300],
|
||||
standOptions: [5, 10, 20, 30, 50, 100, 200, 300],
|
||||
mobileTopHeight: 0,
|
||||
projectSn: '',
|
||||
userInfo: {},
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
<view :class="{'abnormal':item.inspectStatus == 2}" @click="onClickSelect(item)"
|
||||
v-for="item in checkingList" :key="item.id">
|
||||
<image :src="statusList[item.inspectStatus].image" mode=""></image>
|
||||
<text>{{item.checkingPointName}}</text>
|
||||
<text :class="{'color_037dff': checkingInfoDetail.id == item.id}">{{item.checkingPointName}}</text>
|
||||
</view>
|
||||
<!-- <view class="abnormal">
|
||||
<image src="@/static/inspectelcon-abnormal.png" mode=""></image>
|
||||
@ -62,17 +62,38 @@
|
||||
<view class="title">
|
||||
{{item.checkingPointName}}
|
||||
</view>
|
||||
<view class="detail-content">
|
||||
<view>巡检点名称:{{item.checkingPointName}}</view>
|
||||
<view>巡检点位置:{{item.position}}</view>
|
||||
<view>巡检人员:{{item.checkingPointUserName}}</view>
|
||||
<view>巡检通知人员:{{item.noticeUserNames}}</view>
|
||||
<view>状态:{{item.status == 1 ? '正常' : '异常'}}</view>
|
||||
<view>巡检时间:{{item.createDate}}</view>
|
||||
<view>巡检详情:{{item.alarmDetails}}</view>
|
||||
<view class="detail-content" v-if="item.status == 3">
|
||||
<view>巡检点名称:{{item.checkingPointName}}</view>
|
||||
<view class="marktapbox">
|
||||
<view>
|
||||
巡检点位置:{{item.position}}
|
||||
</view>
|
||||
<view class="marktap" @click="markTap(item)">
|
||||
<image src="@/static/marktap.png" mode=""></image>
|
||||
去这里
|
||||
</view>
|
||||
</view>
|
||||
<view>最低巡检时间:{{item.minInspectTime}}分钟</view>
|
||||
</view>
|
||||
<view class="detail-content" v-else>
|
||||
<view>巡检点名称:{{item.checkingPointName}}</view>
|
||||
<view class="marktapbox">
|
||||
<view>
|
||||
巡检点位置:{{item.position}}
|
||||
</view>
|
||||
<view class="marktap" @click="markTap(item)">
|
||||
<image src="@/static/marktap.png" mode=""></image>
|
||||
去这里
|
||||
</view>
|
||||
</view>
|
||||
<view>巡检人员:{{item.checkingPointUserName}}</view>
|
||||
<view>巡检通知人员:{{item.noticeUserNames}}</view>
|
||||
<view>状态:{{item.status == 1 ? '正常' : '异常'}}</view>
|
||||
<view>巡检时间:{{item.createDate}}</view>
|
||||
<view>巡检详情:{{item.alarmDetails}}</view>
|
||||
<!-- v-if="item.status == 2" -->
|
||||
<view class="detail-image">
|
||||
巡检图片:
|
||||
巡检图片:
|
||||
<view v-if="item.alarmImage && JSON.parse(item.alarmImage).length > 0">
|
||||
<image v-for="ele in JSON.parse(item.alarmImage)"
|
||||
@click="previewImage(url_config+'image/'+ele.url)" :src="url_config+'image/'+ele.url"
|
||||
@ -81,8 +102,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="checkingInfoList.length == 0 && btnAuth && info.inspectStatus !== 1" class="scancodebtn" @click="getScanCode()">
|
||||
|
||||
<!-- v-if="checkingInfoList.length == 0 && btnAuth && info.inspectStatus !== 1" -->
|
||||
<view v-if="btnAuth && info.inspectStatus !== 1" class="scancodebtn" @click="getScanCode()">
|
||||
扫码巡检
|
||||
</view>
|
||||
</view>
|
||||
@ -134,6 +156,30 @@
|
||||
// this.getcheckingInfo();
|
||||
},
|
||||
methods: {
|
||||
markTap() {
|
||||
console.log('ccccccc')
|
||||
console.log(this.checkingInfoDetail.latitude, this.checkingInfoDetail.longitude)
|
||||
console.log('ccccccc')
|
||||
uni.openLocation({
|
||||
// 目标位置的经纬度
|
||||
latitude: parseFloat(this.checkingInfoDetail.latitude),
|
||||
longitude: parseFloat(this.checkingInfoDetail.longitude),
|
||||
name: this.checkingInfoDetail.checkingPointName,
|
||||
// 调用成功时的回调函数
|
||||
success: function(res) {
|
||||
console.log('调用成功:', res)
|
||||
},
|
||||
// 调用失败时的回调函数
|
||||
fail: function(res) {
|
||||
console.log('调用失败:', res)
|
||||
},
|
||||
// 调用完成时的回调函数
|
||||
complete: function(res) {
|
||||
console.log('调用完成:', res)
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
getcheckingList() {
|
||||
let that = this;
|
||||
//获取我整改的巡查记录数量
|
||||
@ -164,10 +210,10 @@
|
||||
},
|
||||
getcheckingInfo() {
|
||||
let that = this;
|
||||
|
||||
let url = this.checkingInfoDetail.inspectStatus == 0 ? 'xmgl/checkingPoint/getTaskDetailPage' : 'xmgl/checkingPointInfo/selectPage';
|
||||
//获取我整改的巡查记录详情
|
||||
this.sendRequest({
|
||||
url: 'xmgl/checkingPointInfo/selectPage',
|
||||
url: url,
|
||||
method: 'post',
|
||||
data: {
|
||||
projectSn: this.projectSn,
|
||||
@ -231,6 +277,24 @@
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.marktapbox {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.marktap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #448BFB;
|
||||
image {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.color_037dff{
|
||||
color: #037DFF;
|
||||
}
|
||||
.fixedheader {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
showMap: false,
|
||||
coordType: "gcj02",
|
||||
map: null,
|
||||
standOptions: [30, 50, 100, 200, 300],
|
||||
standOptions: [5, 10, 20, 30, 50, 100, 200, 300],
|
||||
standArea: undefined,
|
||||
searchVal: ""
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user