master
许宏杰 1 year ago
parent 7ccfc6138f
commit c3cb20e09a

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

@ -1,65 +1,73 @@
<template>
<div class="firm-info">
<div class="info-content">
<div class="list-item">
<div class="item-title">巡查单位</div>
<div class="item-value">{{ checksinfo.enterpriseName }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">巡查类别</div>
<div class="item-value">{{ checksinfo.typeName }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">巡查内容</div>
<div class="item-value">{{ checksinfo.content }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">打卡人</div>
<div class="item-value">{{ checksinfo.addUserName }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">打卡位置</div>
<div class="item-value">{{ checksinfo.inAddress }}</div>
</div>
<div class="cell-map" id="show-maps">
<img class="cell-map-point" src="@/assets/image/vxEwm/location.png" v-if="showPosition"></img>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">打卡时间</div>
<div class="item-value">{{ checksinfo.checkDate }}</div>
</div>
<van-divider />
<div class="list-item" v-show="isShow2">
<div class="item-title">现场图片</div>
<div class="item-value value-image">
<van-image
fit="cover"
:src="filePath + item.src"
v-for="(item, index) in attachmentImgList"
:key="index"
@click="pic(index)"
/>
</div>
</div>
<van-divider />
<div class="list-item-two" v-show="isShow1">
<div class="item-title">隐患上报记录</div>
<div class="item-two-value" v-for="(item, index) in troublelist" :key="index">
<div class="two-value-wai-bg">
<div class="two-value-nei-bg">
<span>{{ index + 1 }}</span>
</div>
<div class="value-title">{{ item.description }}</div>
</div>
<div class="list-item">
<div class="item-title">巡查单位</div>
<div class="item-value">{{ checksinfo.enterpriseName }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">巡查类别</div>
<div class="item-value">{{ checksinfo.typeName }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">巡查内容</div>
<div class="item-value">{{ checksinfo.content }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">打卡人</div>
<div class="item-value">{{ checksinfo.addUserName }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">打卡位置</div>
<div class="item-value">{{ checksinfo.inAddress }}</div>
</div>
<div class="cell-map" id="show-maps">
<img
class="cell-map-point"
src="@/assets/image/vxEwm/location.png"
v-if="showPosition"
/>
</div>
<van-divider />
<div class="list-item">
<div class="item-title">打卡时间</div>
<div class="item-value">{{ checksinfo.checkDate }}</div>
</div>
<van-divider />
<div class="list-item" v-show="isShow2">
<div class="item-title">现场图片</div>
<div class="item-value value-image">
<van-image
fit="cover"
:src="filePath + item.src"
v-for="(item, index) in attachmentImgList"
:key="index"
@click="pic(index)"
/>
</div>
</div>
<van-divider />
<div class="list-item-two" v-show="isShow1">
<div class="item-title">隐患上报记录</div>
<div
class="item-two-value"
v-for="(item, index) in troublelist"
:key="index"
>
<div class="two-value-wai-bg">
<div class="two-value-nei-bg">
<span>{{ index + 1 }}</span>
</div>
<div class="value-title">{{ item.description }}</div>
</div>
<van-divider />
</div>
</div>
<van-divider />
</div>
</div>
</template>
<script>
@ -75,7 +83,7 @@ export default {
data() {
return {
filePath: process.env.VUE_APP_FILE_HOST,
globalMap:null,
globalMap: null,
//
isShow1: true,
isShow2: true,
@ -86,13 +94,13 @@ export default {
showPosition: false,
}
},
mounted(){
this.$nextTick(()=>{
mounted() {
this.$nextTick(() => {
this.initMap()
this.initData()
})
},
methods:{
methods: {
initMap() {
//
this.globalMap = L.map('show-maps', {
@ -129,7 +137,6 @@ export default {
// console.log(res)
this.checksinfo = res.data
document.title = this.checksinfo.enterpriseName || '企业' //
//
var longitude = Number(res.data.longitude)
@ -190,20 +197,17 @@ export default {
}
</script>
<style lang="scss" scoped>
div{
div {
box-sizing: border-box;
}
.firm-info {
width: 100%;
height: 100%;
overflow: hidden;
padding:0.25rem 0.21rem;
background: #FFFFFF;
padding: 0.25rem 0.21rem;
background: #ffffff;
border-radius: 20px;
.info-content {
height: calc(100% - 0.1rem);
overflow-y: auto;
.list-item {
@ -229,11 +233,11 @@ div{
text-align: left;
// line-height: 0.8rem;
}
.value-image{
display: flex;
align-items: center;
flex-wrap: wrap;
}
.value-image {
display: flex;
align-items: center;
flex-wrap: wrap;
}
}
.list-item-two {
display: flex;
@ -272,7 +276,7 @@ div{
font-family: PingFang-SC, PingFang-SC;
font-weight: bold;
font-size: 0.19rem;
color: #FFFFFF;
color: #ffffff;
// line-height: 0.34rem;
}
}
@ -283,23 +287,21 @@ div{
color: #333333;
margin-left: 0.2rem;
}
}
}
}
}
}
}
}
#show-maps{
#show-maps {
border-radius: 6px;
border: 1px solid #ACD5FE;
border: 1px solid #acd5fe;
}
/deep/.van-image{
/deep/.van-image {
width: 1.44rem;
height: 0.96rem;
height: 0.96rem;
border-radius: 6px;
overflow: hidden;
margin: 0 0.1rem 0.1rem 0;
}
</style>

@ -1,167 +0,0 @@
<template>
<div class="vx-container">
<div class="general-header"></div>
<div class="general-info-bg"></div>
<div
:class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'"
>
<router-view />
</div>
<div class="general-footnote">
<div
class="back-home"
v-show="$store.state.showBtnData.isShow == 'true'"
@click="backHome"
>
返回{{ $store.state.showBtnData.text }}
</div>
<div class="app-download-hint"></div>
<div class="download-btn" @click="handlerDownload()">
<span>></span>
<a>点击下载</a>
<span><</span>
</div>
</div>
</div>
</template>
<script>
import { phoneIf } from '@/util/sbIf.js'
import { Toast } from 'vant'
export default {
data() {
return {
isShow: true,
urlAndorid: 'https://www.pgyer.com/6TpZ',
urliOS:
'https://apps.apple.com/cn/app/%E6%9C%A8%E6%B8%8E%E6%99%BA%E6%85%A7%E5%AE%89%E7%9B%91/id1597682147',
}
},
created() {
console.log(this.$store.state.showBtnData, '值')
document.title = this.$route.query.name || '企业' //
let windowBar = document.getElementById('statusBar')
windowBar.style.height = 0 + 'px'
this.isShow = this.$route.query.isShow
},
methods: {
backHome() {
this.$router.back()
},
/**
* 下载APP
*/
handlerDownload() {
const equipment = phoneIf()
if (equipment == 'IOS') {
if (window.plus) window.plus.runtime.openURL(this.urliOS)
} else if (equipment == 'Android') {
if (window.plus) window.plus.runtime.openURL(this.urlAndorid)
} else {
Toast(`暂未开发${equipment}版本app`)
}
},
},
}
</script>
<style lang="scss" scoped>
.vx-container {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100vh;
overflow: hidden;
}
.general-header {
position: absolute;
top: 0;
left: 0;
z-index: 10;
width: 100%;
height: 16%;
background: url('~@/assets/image/vxEwm/top-header-bg.png');
background-size: 100% 100%;
}
.general-info-bg {
position: absolute;
top: 15%;
left: 0;
z-index: 10;
width: 100%;
height: 74%;
background: url('~@/assets/image/vxEwm/middle-bg.png');
background-size: 100% 100%;
}
.general-view {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -53%);
z-index: 20;
width: 100%;
height: 75%;
background-color: #e8f3fc;
border-radius: 20px;
overflow: hidden;
box-sizing: border-box;
padding: 0.3rem 0.21rem;
}
.general-view-two {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 20;
width: 90%;
height: 70%;
background-color: #ffffff;
border-radius: 20px;
overflow: hidden;
box-sizing: border-box;
padding: 0.21rem;
}
.general-footnote {
position: absolute;
bottom: 0;
left: 0;
z-index: 10;
width: 100%;
height: 20%;
background: url('~@/assets/image/vxEwm/bottom-foot-bg.png');
background-size: 100% 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
.back-home {
width: 1.94rem;
height: 0.5rem;
color: #177fd4;
font-weight: bold;
font-size: 0.22rem;
border-radius: 28px;
line-height: 0.52rem;
background-image: linear-gradient(to right, #accbee, #e7f0fd);
}
.app-download-hint {
width: 4.11rem;
height: 0.4rem;
margin: 0.1rem 0;
background: url('~@/assets/image/vxEwm/download-text.png');
background-size: 100% 100%;
}
.download-btn {
margin-bottom: 0.1rem;
display: flex;
align-items: center;
justify-content: center;
color: #feffff;
a {
margin: 0 0.1rem;
text-decoration: underline;
}
}
}
</style>

@ -1,8 +1,15 @@
<template>
<div class="vx-container">
<div class="general-header"></div>
<div class="header-bg"></div>
<div
:class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'"
:style="{
height: $store.state.showBtnData.isShow == 'true' ? '' : '79%',
top: $store.state.showBtnData.isShow == 'true' ? '' : '46%',
transform:
$store.state.showBtnData.isShow == 'true' ? '' : 'translateY(-46%)',
}"
>
<router-view />
</div>
@ -23,6 +30,7 @@
<span><</span>
</div>
</div>
<div class="footonte-bg"></div>
</div>
</template>
@ -40,15 +48,14 @@ export default {
},
methods: {
backHome() {
console.log('sasasa')
this.$router.back()
},
handlerDownload() {
let temp = document.createElement('a') // a
const equipment = phoneIf()
if (equipment == 'IOS') {
Toast('请点击右上角 “...” 选择默认浏览器打开')
// temp.href =
// 'https://apps.apple.com/cn/app/%E6%9C%A8%E6%B8%8E%E6%99%BA%E6%85%A7%E5%AE%89%E7%9B%91/id1597682147' //
temp.href = 'https://www.jichuanglanhai.com/demo/vx-url.html' //
} else if (equipment == 'Android') {
temp.href = 'https://www.pgyer.com/6TpZ' //
} else {
@ -70,14 +77,26 @@ export default {
background-size: cover;
overflow: hidden;
.header-bg {
position: absolute;
top: 0;
left: 0;
height: 25vh;
width: 100%;
z-index: 9;
background: url('~@/assets/image/vxEwm/bg1.png');
background-size: 100% 100%;
}
.general-header {
position: absolute;
top: 1vh;
left: 50%;
transform: translateX(-50%);
z-index: 10;
width: 4.8rem;
height: 8.3vh;
background: url('~@/assets/image/vxEwm/logo.png');
background-size: 100% 100%;
}
@ -88,16 +107,28 @@ export default {
transform: translateY(-37%);
height: 73%;
width: 100%;
z-index: 20;
background: #e8f3fc;
border-radius: 30px;
overflow: hidden;
box-sizing: border-box;
padding: 0.3rem 0.21rem 0 0.21rem;
}
.footonte-bg {
position: absolute;
bottom: 0;
left: 0;
z-index: 9;
width: 100%;
height: 15vh;
background: url('~@/assets/image/vxEwm/bg2.png');
background-size: 100% 100%;
}
.general-view-two {
position: absolute;
top: 37%;
transform: translateY(-37%);
z-index: 10;
height: 73%;
width: 100%;
// background: #e8f3fc;
@ -108,7 +139,7 @@ export default {
}
.general-footnote {
position: absolute;
bottom: 3vh;
bottom: 0;
left: 0;
z-index: 10;
width: 100%;
@ -137,11 +168,12 @@ export default {
font-size: 0.25rem;
color: #fff;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
font-family: 'PingFang-SC-Regular';
}
.download-btn {
margin-top: 0.1rem;
padding-bottom: 3vh;
display: flex;
align-items: center;
justify-content: center;

@ -240,7 +240,7 @@
<div class="item-value">{{ parkList.status | fiterStatus }}</div>
</div>
<van-divider />
<div class="list-item">
<div class="list-item" style="margin: 0">
<div class="item-title">入住园区</div>
<div class="item-value">{{ parkList.parkName }}</div>
</div>

@ -1,6 +1,7 @@
<template>
<div class="vx-container">
<div class="general-header"></div>
<div class="header-bg"></div>
<div class="general-view">
<router-view />
</div>
@ -13,6 +14,7 @@
<span><</span>
</div>
</div>
<div class="footonte-bg"></div>
</div>
</template>
@ -29,9 +31,7 @@ export default {
let temp = document.createElement('a') // a
const equipment = phoneIf()
if (equipment == 'IOS') {
temp.href =
'https://apps.apple.com/cn/app/%E6%9C%A8%E6%B8%8E%E6%99%BA%E6%85%A7%E5%AE%89%E7%9B%91/id1597682147' //
Toast('请点击右上角 “...” 选择默认浏览器打开')
temp.href = 'https://www.jichuanglanhai.com/demo/vx-url.html' //
} else if (equipment == 'Android') {
temp.href = 'https://www.pgyer.com/6TpZ' //
} else {
@ -53,14 +53,25 @@ export default {
background-size: cover;
overflow: hidden;
.header-bg {
position: absolute;
top: 0;
left: 0;
height: 25vh;
width: 100%;
z-index: 9;
background: url('~@/assets/image/vxEwm/bg1.png');
background-size: 100% 100%;
}
.general-header {
position: absolute;
top: 1vh;
left: 50%;
transform: translateX(-50%);
z-index: 10;
width: 4.8rem;
height: 8.3vh;
background: url('~@/assets/image/vxEwm/logo.png');
background-size: 100% 100%;
}
@ -73,10 +84,21 @@ export default {
width: 100%;
background: #e8f3fc;
border-radius: 30px;
z-index: 20;
overflow: hidden;
box-sizing: border-box;
padding: 0.3rem 0.21rem 0 0.21rem;
}
.footonte-bg {
position: absolute;
bottom: 0;
left: 0;
z-index: 9;
width: 100%;
height: 15vh;
background: url('~@/assets/image/vxEwm/bg2.png');
background-size: 100% 100%;
}
.general-footnote {
position: absolute;
bottom: 3vh;
@ -87,7 +109,7 @@ export default {
font-size: 0.25rem;
color: #fff;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
font-family: 'PingFang-SC-Regular';
}
.download-btn {

@ -246,12 +246,16 @@ export default {
},
},
created() {
this.querParams.parkProfileId = this.$route.query.id
mapJson.forEach((item) => {
if (item.parkOrgId == this.$route.query.id) {
this.querParams.parkProfileId = item.id
}
})
this.loading = Toast.loading('加载中...')
this.$nextTick(() => {
this.getList()
this.initMap()
this.getWuzi()
this.getFzr()
this.loading.clear()
@ -331,7 +335,7 @@ export default {
let parkId = this.$route.query.id
let parkName = ''
mapJson.forEach((item) => {
if (item.id == parkId) {
if (item.parkOrgId == parkId) {
parkName = item.parkName
}
})

Loading…
Cancel
Save