修改水质设备

master
ihzero 2024-05-28 23:11:27 +08:00
parent abdb92ee74
commit c88411f9c2
2 changed files with 40 additions and 1 deletions

View File

@ -1,3 +1,3 @@
ENV = 'development' ENV = 'development'
VUE_APP_BASE_API = 'https://lcny.sk797.cn' VUE_APP_BASE_API = 'http://36.133.205.221:81'

View File

@ -164,6 +164,24 @@
/> />
</view> </view>
</view> </view>
<!-- 氨氮 -->
<view class="chart_section" v-if="chart_nh3n">
<view class="top_box">
<view class="tit">氨氮<text class="unit">mg/L</text></view>
<view class="name">{{ addressName }}</view>
</view>
<view class="mb-20rpx">
<u-line></u-line>
</view>
<view class="cart_box">
<qiun-data-charts
:loadingType="loadingType"
type="area"
:opts="opts"
:chartData="chart_nh3n"
/>
</view>
</view>
<!-- PH --> <!-- PH -->
<view class="chart_section" v-if="chart_ph"> <view class="chart_section" v-if="chart_ph">
<view class="top_box"> <view class="top_box">
@ -237,6 +255,7 @@
</view> </view>
<scroll-view class="scroll-y" scroll-y="true"> <scroll-view class="scroll-y" scroll-y="true">
<view class="form_cont"> <view class="form_cont">
<u-form v-for="(info, k) in formInfo" :key="k"> <u-form v-for="(info, k) in formInfo" :key="k">
<view class="title2 u-border-bottom">{{ keyToName[k] }}</view> <view class="title2 u-border-bottom">{{ keyToName[k] }}</view>
<u-form-item <u-form-item
@ -334,6 +353,7 @@ export default {
chart_conductivity: {}, // chart_conductivity: {}, //
chart_chlorine: {}, // chart_chlorine: {}, //
chart_oxygen: {}, // chart_oxygen: {}, //
chart_nh3n: {}, //
chart_ph: {}, //PH chart_ph: {}, //PH
chart_temperature: {}, // chart_temperature: {}, //
chart_turbidity: {}, // chart_turbidity: {}, //
@ -368,6 +388,7 @@ export default {
conductivity: '电导率', conductivity: '电导率',
chlorine: '氯', chlorine: '氯',
oxygen: '氧气', oxygen: '氧气',
nh3n: '氨氮',
ph: 'PH', ph: 'PH',
turbidity: '浊度', turbidity: '浊度',
}, },
@ -376,6 +397,7 @@ export default {
conductivity: 'us/cm', conductivity: 'us/cm',
chlorine: 'mg/L', chlorine: 'mg/L',
oxygen: 'mg/L', oxygen: 'mg/L',
nh3n: 'mg/L',
ph: '', ph: '',
turbidity: 'NTU', turbidity: 'NTU',
}, },
@ -677,6 +699,23 @@ export default {
}else{ }else{
this.chart_oxygen = null this.chart_oxygen = null
} }
//start nh3n
if (chartInfo.nh3n) {
let res7 = {
categories: chartInfo.nh3n.categories,
series: [
{
name: '氨氮',
legendShape: 'circle',
data: chartInfo.nh3n.data,
},
],
}
this.chart_nh3n = JSON.parse(JSON.stringify(res7))
}else{
this.chart_nh3n = null
}
//end //end
//start PH //start PH
if (chartInfo.ph) { if (chartInfo.ph) {