develop
commit
d1c7d2741a
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
ENV = 'test'
|
ENV = 'test'
|
||||||
|
|
||||||
VUE_APP_BASE_API = 'http://lcny.sk797.cn'
|
VUE_APP_BASE_API = 'https://lcny.sk797.cn'
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title></title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title></title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="https://lcny.sk797.cn/h5/static/index.97465e7b.css"></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div><script src="https://lcny.sk797.cn/h5/static/js/chunk-vendors.959091ef.js"></script><script src="https://lcny.sk797.cn/h5/static/js/index.eadd280b.js"></script></body></html>
|
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="https://lcny.sk797.cn/h5/static/index.97465e7b.css"></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div><script src="https://lcny.sk797.cn/h5/static/js/chunk-vendors.959091ef.js"></script><script src="https://lcny.sk797.cn/h5/static/js/index.eabbf6b4.js"></script></body></html>
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -8,7 +8,6 @@
|
||||||
"build:app-plus": "cross-env NODE_ENV=production UNI_PLATFORM=app-plus vue-cli-service uni-build",
|
"build:app-plus": "cross-env NODE_ENV=production UNI_PLATFORM=app-plus vue-cli-service uni-build",
|
||||||
"build:custom": "cross-env NODE_ENV=production uniapp-cli custom",
|
"build:custom": "cross-env NODE_ENV=production uniapp-cli custom",
|
||||||
"build:h5": "cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build",
|
"build:h5": "cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build",
|
||||||
"build:h5:test": "cross-env NODE_ENV=test UNI_PLATFORM=h5 vue-cli-service uni-build",
|
|
||||||
"build:mp-360": "cross-env NODE_ENV=production UNI_PLATFORM=mp-360 vue-cli-service uni-build",
|
"build:mp-360": "cross-env NODE_ENV=production UNI_PLATFORM=mp-360 vue-cli-service uni-build",
|
||||||
"build:mp-alipay": "cross-env NODE_ENV=production UNI_PLATFORM=mp-alipay vue-cli-service uni-build",
|
"build:mp-alipay": "cross-env NODE_ENV=production UNI_PLATFORM=mp-alipay vue-cli-service uni-build",
|
||||||
"build:mp-baidu": "cross-env NODE_ENV=production UNI_PLATFORM=mp-baidu vue-cli-service uni-build",
|
"build:mp-baidu": "cross-env NODE_ENV=production UNI_PLATFORM=mp-baidu vue-cli-service uni-build",
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@ export default {
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import 'uview-ui/index.scss';
|
@import 'uview-ui/index.scss';
|
||||||
/*每个页面公共css */
|
/*每个页面公共css */
|
||||||
|
uni-modal {
|
||||||
|
z-index: 999999 !important;
|
||||||
|
}
|
||||||
|
|
||||||
body,
|
body,
|
||||||
uni-page-body {
|
uni-page-body {
|
||||||
|
|
@ -293,7 +296,7 @@ uni-page-body {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 24rpx 30rpx;
|
padding: 24rpx 30rpx;
|
||||||
margin-bottom: 20rpx;
|
// margin-bottom: 20rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
.tit {
|
.tit {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
<view class="flex-1">{{formInfo.created_at|timeFormat}}</view>
|
<view class="flex-1">{{formInfo.created_at|timeFormat}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="plist u-border-bottom">
|
<view class="plist u-border-bottom">
|
||||||
<view class="label_t">地址</view>
|
<view class="label_t">内容</view>
|
||||||
<view class="flex-1">{{formInfo.content}}</view>
|
<view class="flex-1">{{formInfo.content}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,11 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="h-80vh flex-center">
|
<view class="h-80vh flex-center">
|
||||||
<view class="w-full">
|
<view class="w-full">
|
||||||
<qiun-data-charts type="column" :opts="opts" :chartData="chartData" />
|
<qiun-data-charts
|
||||||
|
type="column"
|
||||||
|
:opts="opts"
|
||||||
|
:chartData="chartData"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -212,7 +216,10 @@ export default {
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
async getData() {
|
async getData() {
|
||||||
if (!this.filterParmas.device_id) return
|
if (!this.filterParmas.device_id) {
|
||||||
|
this.$u.toast('没有关联基地')
|
||||||
|
return (this.chartData = { series: [] })
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const { data } = await http.get(
|
const { data } = await http.get(
|
||||||
`/api/devices/${this.filterParmas.device_id}/worm-statics`,
|
`/api/devices/${this.filterParmas.device_id}/worm-statics`,
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,11 @@ export default {
|
||||||
this.mescroll.resetUpScroll()
|
this.mescroll.resetUpScroll()
|
||||||
},
|
},
|
||||||
async getData(e) {
|
async getData(e) {
|
||||||
if (!e.device_id) return
|
if (!e.device_id) {
|
||||||
|
this.mescroll.endByPage(0, 0)
|
||||||
|
|
||||||
|
return this.$u.toast('没有关联基地')
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const { data } = await http.get(
|
const { data } = await http.get(
|
||||||
`/api/devices/${e.device_id}/worm-photos`,
|
`/api/devices/${e.device_id}/worm-photos`,
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,9 @@ export default {
|
||||||
this.mescroll.resetUpScroll()
|
this.mescroll.resetUpScroll()
|
||||||
},
|
},
|
||||||
async getData(e) {
|
async getData(e) {
|
||||||
if (!e.device_id) return
|
if (!e.device_id) {
|
||||||
|
return this.$u.toast('没有关联基地')
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const { data } = await http.get(
|
const { data } = await http.get(
|
||||||
`/api/devices/${e.device_id}/worm-photos`,
|
`/api/devices/${e.device_id}/worm-photos`,
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,9 @@ export default {
|
||||||
},
|
},
|
||||||
async getData() {
|
async getData() {
|
||||||
this.chatList = []
|
this.chatList = []
|
||||||
if (!this.filterParmas.device_id) return
|
if (!this.filterParmas.device_id){
|
||||||
|
return this.$u.toast('没有关联基地')
|
||||||
|
}
|
||||||
const { data } = await http.get('/api/monitoring-data', {
|
const { data } = await http.get('/api/monitoring-data', {
|
||||||
params: this.filterParmas,
|
params: this.filterParmas,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -399,15 +399,21 @@
|
||||||
}
|
}
|
||||||
this.$http.get('/api/agricultural-device-basic',{params:params}).then(({data})=>{
|
this.$http.get('/api/agricultural-device-basic',{params:params}).then(({data})=>{
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|
||||||
if(data.code==200){
|
if(data.code==200){
|
||||||
let _data = data.data;
|
let _data = data.data;
|
||||||
|
if(_data.length==0){
|
||||||
|
return this.$u.toast('没有关联基地');
|
||||||
|
}
|
||||||
for(let item of _data){
|
for(let item of _data){
|
||||||
item['label'] = item.name;
|
item['label'] = item.name;
|
||||||
item['value'] = item.id;
|
item['value'] = item.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.deviceAddressList = _data;
|
this.deviceAddressList = _data;
|
||||||
this.addressValue = _data[0].id;
|
this.addressValue = _data[0].id;
|
||||||
this.addressName = _data[0].name;
|
this.addressName = _data[0].name;
|
||||||
|
|
||||||
this.queryAddressDevicePoints(this.addressValue);
|
this.queryAddressDevicePoints(this.addressValue);
|
||||||
}
|
}
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
|
|
|
||||||
|
|
@ -406,6 +406,7 @@ export default {
|
||||||
params['is_recommend'] = this.is_recommend
|
params['is_recommend'] = this.is_recommend
|
||||||
}
|
}
|
||||||
this.loading = 'loading'
|
this.loading = 'loading'
|
||||||
|
|
||||||
this.$http
|
this.$http
|
||||||
.get('/api/devices', { params: params })
|
.get('/api/devices', { params: params })
|
||||||
.then(async ({ data }) => {
|
.then(async ({ data }) => {
|
||||||
|
|
@ -533,6 +534,10 @@ export default {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
let _data = data.data
|
let _data = data.data
|
||||||
|
if(_data.length==0){
|
||||||
|
this.loading = 'nomore'
|
||||||
|
return this.$u.toast('没有关联基地')
|
||||||
|
}
|
||||||
for (let item of _data) {
|
for (let item of _data) {
|
||||||
item['label'] = item.name
|
item['label'] = item.name
|
||||||
item['value'] = item.id
|
item['value'] = item.id
|
||||||
|
|
|
||||||
|
|
@ -41,12 +41,17 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="warning-section">
|
<view class="warning-section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="flex justify-between items-center">
|
||||||
<view class="tit">预警数据统计</view>
|
<view class="tit">预警数据统计</view>
|
||||||
<view class="set_warning">
|
<view class="set_warning">
|
||||||
<u-button v-auth="['endpoint.soil.setting','endpoint.soil.setting_edit']" class="set_btn" @click="setWarnInfo()" size="mini">设置</u-button>
|
<u-button v-auth="['endpoint.soil.setting','endpoint.soil.setting_edit']" class="set_btn" @click="setWarnInfo()" size="mini">设置</u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="my-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="cont-box">
|
<view class="cont-box">
|
||||||
<view class="warning-item" @click="warningClickFn(1)">
|
<view class="warning-item" @click="warningClickFn(1)">
|
||||||
<view class="name">Ⅰ级预警</view>
|
<view class="name">Ⅰ级预警</view>
|
||||||
|
|
@ -68,10 +73,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 电导率 -->
|
<!-- 电导率 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">电导率<text class="unit">us/cm</text></view>
|
<view class="tit">电导率<text class="unit">us/cm</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -82,10 +90,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 湿度 -->
|
<!-- 湿度 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">湿度<text class="unit">%RH</text></view>
|
<view class="tit">湿度<text class="unit">%RH</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -96,10 +107,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 温度 -->
|
<!-- 温度 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">温度<text class="unit">℃</text></view>
|
<view class="tit">温度<text class="unit">℃</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -110,10 +124,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 氮 -->
|
<!-- 氮 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">氮<text class="unit">mg/kg</text></view>
|
<view class="tit">氮<text class="unit">mg/kg</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -124,10 +141,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 磷 -->
|
<!-- 磷 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">磷<text class="unit">mg/kg</text></view>
|
<view class="tit">磷<text class="unit">mg/kg</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -138,10 +158,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 钾 -->
|
<!-- 钾 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">钾<text class="unit">mg/kg</text></view>
|
<view class="tit">钾<text class="unit">mg/kg</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -405,6 +428,9 @@
|
||||||
console.log(data);
|
console.log(data);
|
||||||
if(data.code==200){
|
if(data.code==200){
|
||||||
let _data = data.data;
|
let _data = data.data;
|
||||||
|
if(_data.length==0){
|
||||||
|
return this.$u.toast('没有关联基地');
|
||||||
|
}
|
||||||
for(let item of _data){
|
for(let item of _data){
|
||||||
item['label'] = item.name;
|
item['label'] = item.name;
|
||||||
item['value'] = item.id;
|
item['value'] = item.id;
|
||||||
|
|
@ -429,6 +455,9 @@
|
||||||
console.log(data);
|
console.log(data);
|
||||||
if(data.code==200){
|
if(data.code==200){
|
||||||
let _data = data.data;
|
let _data = data.data;
|
||||||
|
if(_data.length==0){
|
||||||
|
// return this.$u.toast('监测点为空');
|
||||||
|
}
|
||||||
let options = [];
|
let options = [];
|
||||||
for(let k in _data){
|
for(let k in _data){
|
||||||
let item = {};
|
let item = {};
|
||||||
|
|
@ -646,7 +675,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 24rpx;
|
// margin-bottom: 24rpx;
|
||||||
padding-bottom: 20rpx;
|
padding-bottom: 20rpx;
|
||||||
.tit{
|
.tit{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
||||||
|
|
@ -41,12 +41,15 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="warning-section">
|
<view class="warning-section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">预警数据统计</view>
|
<view class="tit">预警数据统计</view>
|
||||||
<view class="set_warning">
|
<view class="set_warning">
|
||||||
<u-button v-auth="['endpoint.water.setting','endpoint.water.setting_edit']" class="set_btn" @click="setWarnInfo()" size="mini">设置</u-button>
|
<u-button v-auth="['endpoint.water.setting','endpoint.water.setting_edit']" class="set_btn" @click="setWarnInfo()" size="mini">设置</u-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cont-box">
|
<view class="cont-box">
|
||||||
<view class="warning-item" @click="warningClickFn(1)">
|
<view class="warning-item" @click="warningClickFn(1)">
|
||||||
<view class="name">Ⅰ级预警</view>
|
<view class="name">Ⅰ级预警</view>
|
||||||
|
|
@ -68,10 +71,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 氯 -->
|
<!-- 氯 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">氯<text class="unit">mg/L</text></view>
|
<view class="tit">氯<text class="unit">mg/L</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -82,10 +88,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 电导率 -->
|
<!-- 电导率 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">电导率<text class="unit">us/cm</text></view>
|
<view class="tit">电导率<text class="unit">us/cm</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -97,10 +106,13 @@
|
||||||
|
|
||||||
<!-- 氧气 -->
|
<!-- 氧气 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">氧气<text class="unit">mg/L</text></view>
|
<view class="tit">氧气<text class="unit">mg/L</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -111,10 +123,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- PH -->
|
<!-- PH -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">PH<text class="unit"></text></view>
|
<view class="tit">PH<text class="unit"></text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -125,10 +140,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 温度 -->
|
<!-- 温度 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">温度<text class="unit">℃</text></view>
|
<view class="tit">温度<text class="unit">℃</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -139,10 +157,13 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 浊度 -->
|
<!-- 浊度 -->
|
||||||
<view class="chart_section">
|
<view class="chart_section">
|
||||||
<view class="top_box u-border-bottom">
|
<view class="top_box">
|
||||||
<view class="tit">浊度<text class="unit">NTU</text></view>
|
<view class="tit">浊度<text class="unit">NTU</text></view>
|
||||||
<view class="name">{{addressName}}</view>
|
<view class="name">{{addressName}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="mb-20rpx">
|
||||||
|
<u-line></u-line>
|
||||||
|
</view>
|
||||||
<view class="cart_box">
|
<view class="cart_box">
|
||||||
<qiun-data-charts
|
<qiun-data-charts
|
||||||
type="area"
|
type="area"
|
||||||
|
|
@ -407,6 +428,9 @@
|
||||||
console.log(data);
|
console.log(data);
|
||||||
if(data.code==200){
|
if(data.code==200){
|
||||||
let _data = data.data;
|
let _data = data.data;
|
||||||
|
if(_data.length==0){
|
||||||
|
return this.$u.toast('没有关联基地');
|
||||||
|
}
|
||||||
for(let item of _data){
|
for(let item of _data){
|
||||||
item['label'] = item.name;
|
item['label'] = item.name;
|
||||||
item['value'] = item.id;
|
item['value'] = item.id;
|
||||||
|
|
@ -432,6 +456,9 @@
|
||||||
console.log(data);
|
console.log(data);
|
||||||
if(data.code==200){
|
if(data.code==200){
|
||||||
let _data = data.data;
|
let _data = data.data;
|
||||||
|
if(_data.length==0){
|
||||||
|
// return this.$u.toast('监测点为空');
|
||||||
|
}
|
||||||
let options = [];
|
let options = [];
|
||||||
for(let k in _data){
|
for(let k in _data){
|
||||||
let item = {};
|
let item = {};
|
||||||
|
|
@ -652,7 +679,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 24rpx;
|
// margin-bottom: 24rpx;
|
||||||
padding-bottom: 20rpx;
|
padding-bottom: 20rpx;
|
||||||
.tit{
|
.tit{
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
v-model="password"
|
v-model="password"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<button @tap="login()" type="button">登 录</button>
|
<u-button type="primary" shape="circle" @tap="login()">登 录</u-button>
|
||||||
<!-- <view class="reg" @tap="reg()">注 册</view> -->
|
<!-- <view class="reg" @tap="reg()">注 册</view> -->
|
||||||
</form>
|
</form>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -134,15 +134,7 @@ export default {
|
||||||
padding-top: 80rpx;
|
padding-top: 80rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.t-login button {
|
|
||||||
font-size: 28rpx;
|
|
||||||
background: #2796f2;
|
|
||||||
color: #fff;
|
|
||||||
height: 90rpx;
|
|
||||||
line-height: 90rpx;
|
|
||||||
border-radius: 50rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.t-login input {
|
.t-login input {
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue