Merge branch 'bjxz-dev' of http://139.9.66.234:18023/dhp/zhgdyunapp into bjxz-dev
1353
pages.json
@ -12,15 +12,15 @@
|
|||||||
<view class="coordinate">
|
<view class="coordinate">
|
||||||
<view class="coordinate-header">
|
<view class="coordinate-header">
|
||||||
<view>
|
<view>
|
||||||
<image src="@/static/ppt.png" mode=""></image>
|
<image src="@/static/inspecteIcon-normal.png" mode=""></image>
|
||||||
已巡检-正常
|
已巡检-正常
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view class="abnormal">
|
||||||
<image src="@/static/ppt.png" mode=""></image>
|
<image src="@/static/inspectelcon-abnormal.png" mode=""></image>
|
||||||
已巡检-异常
|
已巡检-异常
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<image src="@/static/ppt.png" mode=""></image>
|
<image src="@/static/inspectelcon-not.png" mode=""></image>
|
||||||
未巡检
|
未巡检
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -92,7 +92,7 @@
|
|||||||
//获取我整改的巡查记录数量
|
//获取我整改的巡查记录数量
|
||||||
this.sendRequest({
|
this.sendRequest({
|
||||||
url: 'xmgl/checkingPoint/selectPage',
|
url: 'xmgl/checkingPoint/selectPage',
|
||||||
method: 'get',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
projectSn: this.projectSn,
|
projectSn: this.projectSn,
|
||||||
xzCheckingRouteTaskId: this.info.xzCheckingRoute.id,
|
xzCheckingRouteTaskId: this.info.xzCheckingRoute.id,
|
||||||
@ -106,10 +106,10 @@
|
|||||||
},
|
},
|
||||||
getcheckingInfo() {
|
getcheckingInfo() {
|
||||||
let that = this;
|
let that = this;
|
||||||
//获取我整改的巡查记录数量
|
//获取我整改的巡查记录详情
|
||||||
this.sendRequest({
|
this.sendRequest({
|
||||||
url: 'xmgl/checkingPointInfo/selectPage',
|
url: 'xmgl/checkingPointInfo/selectPage',
|
||||||
method: 'get',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
projectSn: this.projectSn,
|
projectSn: this.projectSn,
|
||||||
xzCheckingRouteTaskId: this.info.xzCheckingRoute.id,
|
xzCheckingRouteTaskId: this.info.xzCheckingRoute.id,
|
||||||
@ -218,13 +218,18 @@
|
|||||||
>view {
|
>view {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
>image {
|
>image {
|
||||||
width: 50rpx;
|
width: 50rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
margin-right: 8rpx;
|
margin-right: 8rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.abnormal{
|
||||||
|
>image {
|
||||||
|
width: 60rpx !important;
|
||||||
|
height: 60rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.coordinate-item {
|
.coordinate-item {
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text>巡检点情况:</text>
|
<text>巡检点情况:</text>
|
||||||
<text>10/15</text>
|
<text>10/{{item.checkingPointNum}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-box">
|
<view class="item-box">
|
||||||
|
|||||||
@ -214,8 +214,9 @@
|
|||||||
border-top: 2rpx solid #f0f0f0;
|
border-top: 2rpx solid #f0f0f0;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
line-height: 80rpx;
|
// line-height: 80rpx;
|
||||||
padding-top: 40rpx;
|
padding-top: 40rpx;
|
||||||
|
margin: 0 20rpx;
|
||||||
|
|
||||||
.inputFrom {
|
.inputFrom {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="fullHeight">
|
<view class="fullHeight">
|
||||||
<!-- <levitatedsphere :x="100" :y="80"></levitatedsphere> -->
|
<!-- <levitatedsphere id="levitatedsphere" :x="100" :y="80"></levitatedsphere> -->
|
||||||
<view>
|
<view>
|
||||||
<!-- :webview-styles="styles" -->
|
<!-- :webview-styles="styles" -->
|
||||||
<web-view class="webView" :src="work_url" :fullscreen="false"
|
<web-view class="webView" :src="work_url" :fullscreen="false" @onPostMessage="handlePostMessage">
|
||||||
@onPostMessage="handlePostMessage"></web-view>
|
|
||||||
|
</web-view>
|
||||||
</view>
|
</view>
|
||||||
<footers class="footer" activeTab="submit"></footers>
|
<footers class="footer" activeTab="submit"></footers>
|
||||||
</view>
|
</view>
|
||||||
@ -20,7 +21,7 @@
|
|||||||
return {
|
return {
|
||||||
styles: {
|
styles: {
|
||||||
height: '0',
|
height: '0',
|
||||||
screenHeight:''
|
screenHeight: '',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -41,21 +42,36 @@
|
|||||||
token: userInfo.token,
|
token: userInfo.token,
|
||||||
loginUser: userInfo
|
loginUser: userInfo
|
||||||
};
|
};
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
console.log(JSON.stringify(currentWebview.children()[0]));
|
||||||
let wv = currentWebview.children()[0]
|
let wv = currentWebview.children()[0]
|
||||||
wv.setStyle({
|
wv.setStyle({
|
||||||
top: 50,
|
top: 50,
|
||||||
height: ((this.screenHeight - 300)),
|
height: ((this.screenHeight - 300)),
|
||||||
bottom: uni.upx2px(110)
|
bottom: uni.upx2px(110)
|
||||||
})
|
})
|
||||||
|
// let query=uni.createSelectorQuery();
|
||||||
|
// let dom = query.select("#levitatedsphere");
|
||||||
|
// console.log(dom);
|
||||||
|
// currentWebview.appendChild(dom)
|
||||||
wv.evalJS(`${_funName}(${JSON.stringify(_data)})`);
|
wv.evalJS(`${_funName}(${JSON.stringify(_data)})`);
|
||||||
|
console.log(1111111111,currentWebview);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
//TODO handle the exception
|
//TODO handle the exception
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleLoad(data){
|
||||||
|
console.log(11111,data);
|
||||||
|
let query=uni.createSelectorQuery();
|
||||||
|
let dom = query.select("#levitatedsphere");
|
||||||
|
console.log(dom);
|
||||||
|
console.log(uni.createSelectorQuery().select("#app"));
|
||||||
|
console.log(document.body);
|
||||||
|
uni.createSelectorQuery().select("#app").appendChild(dom);
|
||||||
|
},
|
||||||
handlePostMessage(data) {
|
handlePostMessage(data) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -73,9 +89,10 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.fullHeight{
|
.fullHeight {
|
||||||
height: 100vh
|
height: 100vh
|
||||||
}
|
}
|
||||||
|
|
||||||
.webView {
|
.webView {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 80vh;
|
height: 80vh;
|
||||||
|
|||||||
BIN
static/inspecteIcon-normal.png
Normal file
|
After Width: | Height: | Size: 757 B |
|
Before Width: | Height: | Size: 988 B After Width: | Height: | Size: 710 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 898 B |
|
Before Width: | Height: | Size: 873 B After Width: | Height: | Size: 548 B |
|
Before Width: | Height: | Size: 892 B After Width: | Height: | Size: 626 B |
BIN
static/inspectelcon-abnormal.png
Normal file
|
After Width: | Height: | Size: 884 B |
BIN
static/inspectelcon-not.png
Normal file
|
After Width: | Height: | Size: 1019 B |