闸门智控小程序
This commit is contained in:
@@ -0,0 +1,147 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<tui-list-cell :hover="false">
|
||||
<view class="tui-line-cell">
|
||||
<view class="tui-title">名称</view>
|
||||
<input placeholder-class="tui-phcolor" class="tui-input" name="hospital" v-model="basic_info.name"
|
||||
maxlength="50" type="text" disabled />
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
<tui-list-cell :hover="false">
|
||||
<view class="tui-line-cell">
|
||||
<view class="tui-title">所属场站</view>
|
||||
<input placeholder-class="tui-phcolor" class="tui-input" name="department" v-model="basic_info.terminal_name"
|
||||
maxlength="50" type="text" disabled />
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
<tui-list-cell :hover="false">
|
||||
<view class="tui-line-cell">
|
||||
<view class="tui-title">地址</view>
|
||||
<input placeholder-class="tui-phcolor" class="tui-input" name="batch" v-model="basic_info.address"
|
||||
maxlength="50" type="text" disabled />
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
<tui-list-cell :hover="false">
|
||||
<view class="tui-line-cell">
|
||||
<view class="tui-title">IMEI</view>
|
||||
<input placeholder-class="tui-phcolor" class="tui-input" name="name" v-model="basic_info.imei"
|
||||
maxlength="50" type="text" disabled />
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
<tui-list-cell :hover="false">
|
||||
<view class="tui-line-cell">
|
||||
<view class="tui-title">IMSI</view>
|
||||
<input placeholder-class="tui-phcolor" class="tui-input" name="name" v-model="basic_info.imsi"
|
||||
maxlength="50" type="text" disabled />
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
<tui-list-cell :hover="false">
|
||||
<view class="tui-line-cell">
|
||||
<view class="tui-title">ICCID</view>
|
||||
<input placeholder-class="tui-phcolor" class="tui-input" name="name" v-model="basic_info.iccid"
|
||||
maxlength="50" type="text" disabled />
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
<tui-list-cell :hover="false">
|
||||
<view class="tui-line-cell">
|
||||
<view class="tui-title">信号强度</view>
|
||||
<input placeholder-class="tui-phcolor" class="tui-input" name="name" v-model="basic_info.csq"
|
||||
maxlength="50" type="text" disabled />
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
<tui-list-cell :hover="false">
|
||||
<view class="tui-line-cell">
|
||||
<view class="tui-title">设备编号</view>
|
||||
<input placeholder-class="tui-phcolor" class="tui-input" name="name" v-model="basic_info.device_name"
|
||||
maxlength="50" type="text" disabled />
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import myapp from '@/common/js/myapp.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
basic_info: []
|
||||
}
|
||||
},
|
||||
onShow: function() {
|
||||
// 检验是否登录
|
||||
let user = myapp.checkLogin()
|
||||
let that = this;
|
||||
let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
|
||||
let curRoute = routes[routes.length - 1].route //获取当前页面路由
|
||||
let curParam = routes[routes.length - 1].options; //获取路由参数
|
||||
// 获取选中曝气机基本信息
|
||||
myapp.request('/?c=aerator&a=getSelectAeratorTerminalInfo',function(res) {
|
||||
that.basic_info = res.data.data
|
||||
},{aerator_id:curParam.id})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
padding: 20rpx 0 50rpx 0;
|
||||
}
|
||||
|
||||
.tui-line-cell {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tui-title {
|
||||
line-height: 32rpx;
|
||||
font-size: 28rpx;
|
||||
min-width: 120rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tui-input {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
padding-left: 20rpx;
|
||||
flex: 1;
|
||||
overflow: visible;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.radio-group {
|
||||
margin-left: auto;
|
||||
transform: scale(0.8);
|
||||
transform-origin: 100% center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tui-radio {
|
||||
display: inline-block;
|
||||
padding-left: 28rpx;
|
||||
font-size: 36rpx;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
.tui-btn-box {
|
||||
padding: 40rpx 50rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tui-button-gray {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
.tui-tips {
|
||||
padding: 30rpx;
|
||||
color: #999;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.picker {
|
||||
text-align: left;
|
||||
font-size: 32rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user