first commit
This commit is contained in:
199
pages/terminalDetails/terminalDetails.css
Normal file
199
pages/terminalDetails/terminalDetails.css
Normal file
@@ -0,0 +1,199 @@
|
||||
/* 主体开始 */
|
||||
.terminalDetails-block{
|
||||
background: #F0F0F0;
|
||||
}
|
||||
/* 时间开始 */
|
||||
.time-block{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
background:rgba(255,255,255,1);
|
||||
height: 94rpx;
|
||||
}
|
||||
.time-pic{
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
margin: 26rpx 0rpx 24rpx 40rpx;
|
||||
}
|
||||
.time-text{
|
||||
color: #000000;
|
||||
font-size: 30rpx;
|
||||
margin:26rpx 0 26rpx 20rpx;
|
||||
|
||||
}
|
||||
/* 时间结束 */
|
||||
/* 基础信息开始 */
|
||||
.basic-block{
|
||||
height: 176rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
margin-top: 20rpx;
|
||||
background:rgba(255,255,255,1);
|
||||
|
||||
}
|
||||
.basic-body{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
padding-left: 40rpx;
|
||||
padding-right: 40rpx;
|
||||
}
|
||||
.basic-title{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
height: 42rpx;
|
||||
align-items: center;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.basic-title-left{
|
||||
width: 6rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
.basic-title-right{
|
||||
color: #000000;
|
||||
font-size: 30rpx;
|
||||
margin-left: 14rpx;
|
||||
font-weight:500;
|
||||
}
|
||||
.basic-content{
|
||||
height: 106rpx;
|
||||
font-size: 26rpx;
|
||||
color: #000000;
|
||||
margin-top:20rpx ;
|
||||
}
|
||||
/* 基础信息结束 */
|
||||
/* 终端通讯信息开始 */
|
||||
.eigenvalues-block{
|
||||
height: 350rpx;
|
||||
margin-top: 20rpx;
|
||||
background:rgba(255,255,255,1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.eigenvalues-title{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin-top: 30rpx;
|
||||
height: 42rpx;
|
||||
}
|
||||
.eigenvalues-title-left{
|
||||
margin-left: 40rpx;
|
||||
width: 6rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
.eigenvalues-title-right{
|
||||
font-size: 30rpx;
|
||||
color: #000000;
|
||||
font-weight:500;
|
||||
margin-left: 14rpx;
|
||||
}
|
||||
.eigenvalues-content{
|
||||
width: 670rpx;
|
||||
height: 188rpx;
|
||||
margin: 20rpx 40rpx 50rpx 40rpx;
|
||||
}
|
||||
.eigenvalues-content-title{
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.eigenvalues-content-scroll{
|
||||
height: 160rpx;
|
||||
}
|
||||
.eigenvalues-content-text{
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
}
|
||||
/* 终端通讯信息结束 */
|
||||
/* 终端告警信息开始 */
|
||||
.waveform-block{
|
||||
height: 300rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 20rpx;
|
||||
background:rgba(255,255,255,1);
|
||||
}
|
||||
.waveform-title{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin-top: 30rpx;
|
||||
height: 42rpx;
|
||||
}
|
||||
.waveform-title-left{
|
||||
margin-left: 40rpx;
|
||||
width: 6rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
.waveform-title-right{
|
||||
font-size: 30rpx;
|
||||
color: #000000;
|
||||
font-weight:500;
|
||||
margin-left: 14rpx;
|
||||
}
|
||||
.waveform-content-scroll{
|
||||
height: 160rpx;
|
||||
width: 670rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
margin: 20rpx 40rpx 0 40rpx;
|
||||
}
|
||||
/* 终端告警信息结束 */
|
||||
/* 终端流量信息开始 */
|
||||
.flow-block{
|
||||
height: 262rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 20rpx;
|
||||
background:rgba(255,255,255,1);
|
||||
}
|
||||
.flow-title{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin-top: 30rpx;
|
||||
height: 42rpx;
|
||||
}
|
||||
.flow-title-left{
|
||||
margin-left: 40rpx;
|
||||
width: 6rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
.flow-title-right{
|
||||
font-size: 30rpx;
|
||||
color: #000000;
|
||||
font-weight:500;
|
||||
margin-left: 14rpx;
|
||||
}
|
||||
.flow-content{
|
||||
height: 160rpx;
|
||||
width: 670rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
margin: 20rpx 40rpx 0 40rpx;
|
||||
}
|
||||
/* 终端流量信息结束 */
|
||||
/* 重试页面开始 */
|
||||
.error-block{
|
||||
height: 60%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
top: -10%;
|
||||
margin-top: 300rpx;
|
||||
}
|
||||
.retry_button{
|
||||
margin-top: 10rpx;
|
||||
border-radius: 10%;
|
||||
}
|
||||
/* 重试页面结束 */
|
||||
/* 主体结束 */
|
||||
148
pages/terminalDetails/terminalDetails.vue
Normal file
148
pages/terminalDetails/terminalDetails.vue
Normal file
@@ -0,0 +1,148 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<back :pageNameFlag="pageNameFlag" :showFlag="showFlag" :pageName='pageName'></back>
|
||||
<view class="terminalDetails-block" v-if="errorFlag==0">
|
||||
<!-- 时间模块 -->
|
||||
<view class="time-block">
|
||||
<image src="/static/pic/time.png" class="time-pic"></image>
|
||||
<view class="time-text">
|
||||
{{showTime}}
|
||||
</view>
|
||||
</view>
|
||||
<!-- 终端基础信息 -->
|
||||
<view class="basic-block">
|
||||
<view class="basic-body">
|
||||
<view class="basic-title">
|
||||
<image src="/static/pic/rectangle.png" class="basic-title-left"></image>
|
||||
<view class="basic-title-right">
|
||||
终端基础信息
|
||||
</view>
|
||||
</view>
|
||||
<view class="basic-content">
|
||||
{{devMsg.bdzName}},{{devMsg.devName}},网络参数:{{devMsg.ip}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 终端通讯信息 -->
|
||||
<view class="eigenvalues-block">
|
||||
<view class="eigenvalues-title">
|
||||
<image src="/static/pic/rectangle.png" class="eigenvalues-title-left"></image>
|
||||
<view class="eigenvalues-title-right">
|
||||
终端通讯信息
|
||||
</view>
|
||||
</view>
|
||||
<view class="eigenvalues-content">
|
||||
<view class="eigenvalues-content-title">
|
||||
{{devMsg.devName}}通讯中断{{devMsg.comOutNum}}次,具体如下所示:
|
||||
</view>
|
||||
<scroll-view scroll-y="true" show-scrollbar="true" class="eigenvalues-content-scroll">
|
||||
<view class="" v-for="describe in devMsg.devMsgDescribe">
|
||||
<view class="eigenvalues-content-text" >
|
||||
{{describe}}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 终端告警信息 -->
|
||||
<view class="waveform-block">
|
||||
<view class="waveform-title">
|
||||
<image src="/static/pic/rectangle.png" class="waveform-title-left"></image>
|
||||
<view class="waveform-title-right">
|
||||
终端告警信息
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-y="true" show-scrollbar="true" class="waveform-content-scroll">
|
||||
{{devMsg.alarmInfo}}
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 终端流量信息 -->
|
||||
<view class="flow-block">
|
||||
<view class="flow-title">
|
||||
<image src="/static/pic/rectangle.png" class="flow-title-left"></image>
|
||||
<view class="flow-title-right">
|
||||
终端流量信息
|
||||
</view>
|
||||
</view>
|
||||
<view class="flow-content">
|
||||
{{devMsg.flowInfo}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="error-block" v-else>
|
||||
<view class="error-text">
|
||||
网络出错请重试
|
||||
</view>
|
||||
<button class="retry_button" @click="retry">重试</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import back from '../../components/back.vue';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pageNameFlag:1,
|
||||
showFlag:0,
|
||||
pageName:'终端状态消息详情',
|
||||
radioFlag:0,
|
||||
devIndex:'',
|
||||
timeID:'',
|
||||
showTime:'',
|
||||
errorFlag:0,
|
||||
devMsg:{},
|
||||
queryFlag:0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
devMsgInfo(){
|
||||
var that = this;
|
||||
uni.request({
|
||||
url: that.serverUrl+'/deviceMsg/devMsgInfo',
|
||||
method: 'POST',
|
||||
data: {
|
||||
devIndex: that.devIndex,
|
||||
timeID:that.timeID
|
||||
},
|
||||
header: {
|
||||
'content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
sslVerify: false,
|
||||
success: (res) => {
|
||||
uni.hideLoading();
|
||||
if (res.data.resultCode == '10000') {
|
||||
that.devMsg = eval(res.data.data);
|
||||
} else {
|
||||
that.errorFlag = 1
|
||||
}
|
||||
},
|
||||
fail: (re) => {
|
||||
that.errorFlag = 1
|
||||
}
|
||||
});
|
||||
},
|
||||
retry(){
|
||||
this.errorFlag=0;
|
||||
this.devMsgInfo();
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
uni.showLoading({
|
||||
mask:true,
|
||||
});
|
||||
this.devIndex=e.devIndex;
|
||||
this.timeID=e.timeID;
|
||||
this.showTime=e.showTime;
|
||||
this.devMsgInfo();
|
||||
},
|
||||
components:{
|
||||
back
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url("terminalDetails.css");
|
||||
</style>
|
||||
Reference in New Issue
Block a user