折线图修改
parent
9a9a2a10f2
commit
3c79ac9161
|
@ -2,7 +2,7 @@
|
||||||
<view class="target_water_fertilizer_PH">
|
<view class="target_water_fertilizer_PH">
|
||||||
<!-- 目标水肥PH -->
|
<!-- 目标水肥PH -->
|
||||||
<u-navbar :background="background" :is-back='true' back-icon-color='#FFFFFF' :border-bottom="false"
|
<u-navbar :background="background" :is-back='true' back-icon-color='#FFFFFF' :border-bottom="false"
|
||||||
title="目标水肥PH" title-color='#FFFFFF' :title-bold='true' title-size='32'></u-navbar>
|
:title="titleName+echartName" title-color='#FFFFFF' :title-bold='true' title-size='32'></u-navbar>
|
||||||
|
|
||||||
<view class="navbar">
|
<view class="navbar">
|
||||||
<image src="../../static/PH_bg.png" mode=""></image>
|
<image src="../../static/PH_bg.png" mode=""></image>
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<view class="echart">
|
<view class="echart">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<image src="../../static/icon_ph.png" mode=""></image>
|
<image src="../../static/icon_ph.png" mode=""></image>
|
||||||
<text>目标水肥PH</text>
|
<text>{{ titleName+echartName }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view id="echart_p">
|
<view id="echart_p">
|
||||||
<qiun-data-charts type="line" :opts="opts" :chartData="chartData" :ontouch="true"
|
<qiun-data-charts type="line" :opts="opts" :chartData="chartData" :ontouch="true"
|
||||||
|
@ -81,7 +81,11 @@
|
||||||
|
|
||||||
categoriesList:[],
|
categoriesList:[],
|
||||||
valuePH:'',
|
valuePH:'',
|
||||||
valuePHList:[]
|
valuePHList:[],
|
||||||
|
newValuePHList:[],
|
||||||
|
|
||||||
|
titleName:'',
|
||||||
|
echartName:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
|
@ -92,12 +96,15 @@
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if(option.id){
|
if(option.id){
|
||||||
this.equipmentId = option.id
|
this.equipmentId = option.id
|
||||||
console.log(this.equipmentId);
|
|
||||||
}
|
}
|
||||||
if(option.data){
|
if(option.data){
|
||||||
this.valuePH = option.data
|
this.valuePH = option.data
|
||||||
console.log(this.valuePH);
|
|
||||||
}
|
}
|
||||||
|
if(option.name){
|
||||||
|
this.echartName = option.name
|
||||||
|
}
|
||||||
|
|
||||||
|
this.titleName = this.getStatus(option.equipmentNumber,option.targetValue)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getEchartsData()
|
this.getEchartsData()
|
||||||
|
@ -111,8 +118,8 @@
|
||||||
let res = {
|
let res = {
|
||||||
categories: this.categoriesList,
|
categories: this.categoriesList,
|
||||||
series: [{
|
series: [{
|
||||||
name: "目标水肥PH",
|
name: this.titleName+this.echartName,
|
||||||
data: this.valuePHList
|
data: this.newValuePHList
|
||||||
}, ]
|
}, ]
|
||||||
};
|
};
|
||||||
this.chartData = JSON.parse(JSON.stringify(res));
|
this.chartData = JSON.parse(JSON.stringify(res));
|
||||||
|
@ -125,16 +132,33 @@
|
||||||
url:this.api.chart_fsdata + '?equipmentId=' + this.equipmentId,
|
url:this.api.chart_fsdata + '?equipmentId=' + this.equipmentId,
|
||||||
method:'POST'
|
method:'POST'
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
console.log(res,'获取折线图数据');
|
// console.log(res,'获取折线图数据');
|
||||||
res.data.forEach((i,index)=>{
|
res.data.forEach((i,index)=>{
|
||||||
this.categoriesList.push(i.time);
|
this.categoriesList.push(i.time);
|
||||||
this.valuePHList.push(i.value['目标水肥PH'])
|
this.valuePHList.push(i.value)
|
||||||
})
|
})
|
||||||
this.getServerData();
|
this.getServerData();
|
||||||
console.log(this.categoriesList,'this.categoriesList');
|
// console.log(this.categoriesList,'this.categoriesList');
|
||||||
console.log(this.valuePHList,'this.valuePHList');
|
// console.log(this.valuePHList,'this.valuePHList');
|
||||||
|
this.newValuePHList = this.valuePHList.map((e,index)=>{
|
||||||
|
return e[this.titleName+this.echartName]
|
||||||
|
})
|
||||||
|
// console.log(this.newValuePHList,'121212212121211111111');
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 判断是否是平均或者目标,或者是1#
|
||||||
|
getStatus(equipmentNumber,targetValue){
|
||||||
|
if(targetValue == 1){
|
||||||
|
return '目标'
|
||||||
|
}else if(targetValue == 0 && equipmentNumber == 0){
|
||||||
|
return '1#平均'
|
||||||
|
}else if(targetValue == 0 && equipmentNumber == 15){
|
||||||
|
return '2#平均'
|
||||||
|
}else if(targetValue == 0 && equipmentNumber != 0 && equipmentNumber != 15){
|
||||||
|
return equipmentNumber + '#'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<text>{{ item1.deviceTypeName }}</text>
|
<text>{{ item1.deviceTypeName }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="detail">
|
<view class="detail">
|
||||||
<view class="item" v-for="(item2,index2) in item1.childList" :key="index2" @click="toTarget_water_fertilizer_PH(item2.equipmentId,item2.environmentData)">
|
<view class="item" v-for="(item2,index2) in item1.childList" :key="index2" @click="toTarget_water_fertilizer_PH(item2.equipmentId,item2.environmentData,item2.environmentDataId,item2.equipmentNumber,item2.targetValue)">
|
||||||
<image :src='`../../static/icon/icon${ (index2 + 1) < 9 ? (index2 + 1) : 1 }.png`' mode=""></image>
|
<image :src='`../../static/icon/icon${ (index2 + 1) < 9 ? (index2 + 1) : 1 }.png`' mode=""></image>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="">{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}</view>
|
<view class="">{{ getStatus(item2.equipmentNumber,item2.targetValue) + item2.environmentDataId }}</view>
|
||||||
|
@ -354,9 +354,9 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
// 跳转到折线图
|
// 跳转到折线图
|
||||||
toTarget_water_fertilizer_PH(id,data){
|
toTarget_water_fertilizer_PH(id,data,name,equipmentNumber,targetValue){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/target_water_fertilizer_PH/target_water_fertilizer_PH?id=' + id + '&data=' + data
|
url:'/pages/target_water_fertilizer_PH/target_water_fertilizer_PH?id=' + id + '&data=' + data + '&name=' + name + '&equipmentNumber=' + equipmentNumber + '&targetValue=' + targetValue
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
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
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
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
|
@ -1557,7 +1557,7 @@ function initData(vueOptions, context) {
|
||||||
try {
|
try {
|
||||||
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8934,7 +8934,7 @@ function type(obj) {
|
||||||
|
|
||||||
function flushCallbacks$1(vm) {
|
function flushCallbacks$1(vm) {
|
||||||
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
var mpInstance = vm.$scope;
|
var mpInstance = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||||
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
||||||
|
@ -8955,14 +8955,14 @@ function nextTick$1(vm, cb) {
|
||||||
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
||||||
//2.nextTick 之前存在 render watcher
|
//2.nextTick 之前存在 render watcher
|
||||||
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
||||||
if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||||
var mpInstance = vm.$scope;
|
var mpInstance = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||||
']:nextVueTick');
|
']:nextVueTick');
|
||||||
}
|
}
|
||||||
return nextTick(cb, vm)
|
return nextTick(cb, vm)
|
||||||
}else{
|
}else{
|
||||||
if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||||
var mpInstance$1 = vm.$scope;
|
var mpInstance$1 = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
||||||
']:nextMPTick');
|
']:nextMPTick');
|
||||||
|
@ -9058,7 +9058,7 @@ var patch = function(oldVnode, vnode) {
|
||||||
});
|
});
|
||||||
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
||||||
if (Object.keys(diffData).length) {
|
if (Object.keys(diffData).length) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
||||||
']差量更新',
|
']差量更新',
|
||||||
JSON.stringify(diffData));
|
JSON.stringify(diffData));
|
||||||
|
@ -12310,7 +12310,7 @@ function _extends() {
|
||||||
var formatRegExp = /%[sdj%]/g;
|
var formatRegExp = /%[sdj%]/g;
|
||||||
var warning = function warning() {}; // don't print warning message when in production env or node runtime
|
var warning = function warning() {}; // don't print warning message when in production env or node runtime
|
||||||
|
|
||||||
if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
|
if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"greenhouse-wisdom-applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
|
||||||
warning = function warning(type, errors) {
|
warning = function warning(type, errors) {
|
||||||
if (typeof console !== 'undefined' && console.warn) {
|
if (typeof console !== 'undefined' && console.warn) {
|
||||||
if (errors.every(function (e) {
|
if (errors.every(function (e) {
|
||||||
|
|
|
@ -246,7 +246,10 @@ var _default = {
|
||||||
},
|
},
|
||||||
categoriesList: [],
|
categoriesList: [],
|
||||||
valuePH: '',
|
valuePH: '',
|
||||||
valuePHList: []
|
valuePHList: [],
|
||||||
|
newValuePHList: [],
|
||||||
|
titleName: '',
|
||||||
|
echartName: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onReady: function onReady() {
|
onReady: function onReady() {
|
||||||
|
@ -256,12 +259,14 @@ var _default = {
|
||||||
onLoad: function onLoad(option) {
|
onLoad: function onLoad(option) {
|
||||||
if (option.id) {
|
if (option.id) {
|
||||||
this.equipmentId = option.id;
|
this.equipmentId = option.id;
|
||||||
console.log(this.equipmentId);
|
|
||||||
}
|
}
|
||||||
if (option.data) {
|
if (option.data) {
|
||||||
this.valuePH = option.data;
|
this.valuePH = option.data;
|
||||||
console.log(this.valuePH);
|
|
||||||
}
|
}
|
||||||
|
if (option.name) {
|
||||||
|
this.echartName = option.name;
|
||||||
|
}
|
||||||
|
this.titleName = this.getStatus(option.equipmentNumber, option.targetValue);
|
||||||
},
|
},
|
||||||
mounted: function mounted() {
|
mounted: function mounted() {
|
||||||
this.getEchartsData();
|
this.getEchartsData();
|
||||||
|
@ -275,8 +280,8 @@ var _default = {
|
||||||
var res = {
|
var res = {
|
||||||
categories: _this.categoriesList,
|
categories: _this.categoriesList,
|
||||||
series: [{
|
series: [{
|
||||||
name: "目标水肥PH",
|
name: _this.titleName + _this.echartName,
|
||||||
data: _this.valuePHList
|
data: _this.newValuePHList
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
_this.chartData = JSON.parse(JSON.stringify(res));
|
_this.chartData = JSON.parse(JSON.stringify(res));
|
||||||
|
@ -289,15 +294,31 @@ var _default = {
|
||||||
url: this.api.chart_fsdata + '?equipmentId=' + this.equipmentId,
|
url: this.api.chart_fsdata + '?equipmentId=' + this.equipmentId,
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
console.log(res, '获取折线图数据');
|
// console.log(res,'获取折线图数据');
|
||||||
res.data.forEach(function (i, index) {
|
res.data.forEach(function (i, index) {
|
||||||
_this2.categoriesList.push(i.time);
|
_this2.categoriesList.push(i.time);
|
||||||
_this2.valuePHList.push(i.value['目标水肥PH']);
|
_this2.valuePHList.push(i.value);
|
||||||
});
|
});
|
||||||
_this2.getServerData();
|
_this2.getServerData();
|
||||||
console.log(_this2.categoriesList, 'this.categoriesList');
|
// console.log(this.categoriesList,'this.categoriesList');
|
||||||
console.log(_this2.valuePHList, 'this.valuePHList');
|
// console.log(this.valuePHList,'this.valuePHList');
|
||||||
|
_this2.newValuePHList = _this2.valuePHList.map(function (e, index) {
|
||||||
|
return e[_this2.titleName + _this2.echartName];
|
||||||
});
|
});
|
||||||
|
// console.log(this.newValuePHList,'121212212121211111111');
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 判断是否是平均或者目标,或者是1#
|
||||||
|
getStatus: function getStatus(equipmentNumber, targetValue) {
|
||||||
|
if (targetValue == 1) {
|
||||||
|
return '目标';
|
||||||
|
} else if (targetValue == 0 && equipmentNumber == 0) {
|
||||||
|
return '1#平均';
|
||||||
|
} else if (targetValue == 0 && equipmentNumber == 15) {
|
||||||
|
return '2#平均';
|
||||||
|
} else if (targetValue == 0 && equipmentNumber != 0 && equipmentNumber != 15) {
|
||||||
|
return equipmentNumber + '#';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="target_water_fertilizer_PH data-v-3d983434"><u-navbar vue-id="454957e0-1" background="{{background}}" is-back="{{true}}" back-icon-color="#FFFFFF" border-bottom="{{false}}" title="目标水肥PH" title-color="#FFFFFF" title-bold="{{true}}" title-size="32" class="data-v-3d983434" bind:__l="__l"></u-navbar><view class="navbar data-v-3d983434"><image src="../../static/PH_bg.png" mode class="data-v-3d983434"></image></view><view class="content data-v-3d983434"><view class="number data-v-3d983434">{{''+valuePH+''}}</view><view class="data_analysis data-v-3d983434"><image src="../../static/data_analysis.png" mode class="data-v-3d983434"></image><text class="data-v-3d983434">数据分析</text></view><view class="echart data-v-3d983434"><view class="title data-v-3d983434"><image src="../../static/icon_ph.png" mode class="data-v-3d983434"></image><text class="data-v-3d983434">目标水肥PH</text></view><view id="echart_p" class="data-v-3d983434"><qiun-data-charts vue-id="454957e0-2" type="line" opts="{{opts}}" chartData="{{chartData}}" ontouch="{{true}}" background="none" class="data-v-3d983434" bind:__l="__l"></qiun-data-charts></view></view></view></view>
|
<view class="target_water_fertilizer_PH data-v-3d983434"><u-navbar vue-id="454957e0-1" background="{{background}}" is-back="{{true}}" back-icon-color="#FFFFFF" border-bottom="{{false}}" title="{{titleName+echartName}}" title-color="#FFFFFF" title-bold="{{true}}" title-size="32" class="data-v-3d983434" bind:__l="__l"></u-navbar><view class="navbar data-v-3d983434"><image src="../../static/PH_bg.png" mode class="data-v-3d983434"></image></view><view class="content data-v-3d983434"><view class="number data-v-3d983434">{{''+valuePH+''}}</view><view class="data_analysis data-v-3d983434"><image src="../../static/data_analysis.png" mode class="data-v-3d983434"></image><text class="data-v-3d983434">数据分析</text></view><view class="echart data-v-3d983434"><view class="title data-v-3d983434"><image src="../../static/icon_ph.png" mode class="data-v-3d983434"></image><text class="data-v-3d983434">{{titleName+echartName}}</text></view><view id="echart_p" class="data-v-3d983434"><qiun-data-charts vue-id="454957e0-2" type="line" opts="{{opts}}" chartData="{{chartData}}" ontouch="{{true}}" background="none" class="data-v-3d983434" bind:__l="__l"></qiun-data-charts></view></view></view></view>
|
|
@ -754,9 +754,9 @@ var _default = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 跳转到折线图
|
// 跳转到折线图
|
||||||
toTarget_water_fertilizer_PH: function toTarget_water_fertilizer_PH(id, data) {
|
toTarget_water_fertilizer_PH: function toTarget_water_fertilizer_PH(id, data, name, equipmentNumber, targetValue) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/target_water_fertilizer_PH/target_water_fertilizer_PH?id=' + id + '&data=' + data
|
url: '/pages/target_water_fertilizer_PH/target_water_fertilizer_PH?id=' + id + '&data=' + data + '&name=' + name + '&equipmentNumber=' + equipmentNumber + '&targetValue=' + targetValue
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 数据单位
|
// 数据单位
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<view class="timeEnvironment data-v-34c343d8"><u-navbar vue-id="63a4351c-1" background="{{background}}" is-back="{{true}}" back-icon-color="#FFFFFF" border-bottom="{{false}}" title="实时环境" title-color="#FFFFFF" title-bold="{{true}}" title-size="32" class="data-v-34c343d8" bind:__l="__l"></u-navbar><view class="navbar data-v-34c343d8"><image src="../../static/timeEnvironment_bg.png" mode class="data-v-34c343d8"></image></view><view class="content data-v-34c343d8"><view class="title data-v-34c343d8"><image src="../../static/logo_1.png" mode class="data-v-34c343d8"></image><view class="right data-v-34c343d8"><view class="data-v-34c343d8">温室智慧云</view><view class="data-v-34c343d8">Greenhouse wisdom Cloud</view></view></view><view class="subtitle data-v-34c343d8">欢迎使用温室智慧云数据统计</view><block wx:for="{{$root.l1}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="waterAndFertilizerParams data-v-34c343d8"><view class="nav data-v-34c343d8"><image src="../../static/PH.png" mode class="data-v-34c343d8"></image><text class="data-v-34c343d8">{{item1.$orig.deviceTypeName}}</text></view><view class="detail data-v-34c343d8"><block wx:for="{{item1.l0}}" wx:for-item="item2" wx:for-index="index2" wx:key="index2"><view data-event-opts="{{[['tap',[['toTarget_water_fertilizer_PH',['$0','$1'],[[['waterAndFertilizerParamsList','',index1],['childList','',index2,'equipmentId']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'environmentData']]]]]]]}}" class="item data-v-34c343d8" bindtap="__e"><image src="{{'../../static/icon/icon'+(index2+1<9?index2+1:1)+'.png'}}" mode class="data-v-34c343d8"></image><view class="info data-v-34c343d8"><view class="data-v-34c343d8">{{item2.m0+item2.$orig.environmentDataId}}</view><view class="data-v-34c343d8">{{item2.$orig.environmentData+item2.m1}}</view></view></view></block></view><view class="updateTime data-v-34c343d8"><label class="_span data-v-34c343d8"></label><label class="_span data-v-34c343d8">{{"*更新数据时间 : "+updateTime}}</label></view></view></block></view></view>
|
<view class="timeEnvironment data-v-34c343d8"><u-navbar vue-id="63a4351c-1" background="{{background}}" is-back="{{true}}" back-icon-color="#FFFFFF" border-bottom="{{false}}" title="实时环境" title-color="#FFFFFF" title-bold="{{true}}" title-size="32" class="data-v-34c343d8" bind:__l="__l"></u-navbar><view class="navbar data-v-34c343d8"><image src="../../static/timeEnvironment_bg.png" mode class="data-v-34c343d8"></image></view><view class="content data-v-34c343d8"><view class="title data-v-34c343d8"><image src="../../static/logo_1.png" mode class="data-v-34c343d8"></image><view class="right data-v-34c343d8"><view class="data-v-34c343d8">温室智慧云</view><view class="data-v-34c343d8">Greenhouse wisdom Cloud</view></view></view><view class="subtitle data-v-34c343d8">欢迎使用温室智慧云数据统计</view><block wx:for="{{$root.l1}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view class="waterAndFertilizerParams data-v-34c343d8"><view class="nav data-v-34c343d8"><image src="../../static/PH.png" mode class="data-v-34c343d8"></image><text class="data-v-34c343d8">{{item1.$orig.deviceTypeName}}</text></view><view class="detail data-v-34c343d8"><block wx:for="{{item1.l0}}" wx:for-item="item2" wx:for-index="index2" wx:key="index2"><view data-event-opts="{{[['tap',[['toTarget_water_fertilizer_PH',['$0','$1','$2','$3','$4'],[[['waterAndFertilizerParamsList','',index1],['childList','',index2,'equipmentId']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'environmentData']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'environmentDataId']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'equipmentNumber']],[['waterAndFertilizerParamsList','',index1],['childList','',index2,'targetValue']]]]]]]}}" class="item data-v-34c343d8" bindtap="__e"><image src="{{'../../static/icon/icon'+(index2+1<9?index2+1:1)+'.png'}}" mode class="data-v-34c343d8"></image><view class="info data-v-34c343d8"><view class="data-v-34c343d8">{{item2.m0+item2.$orig.environmentDataId}}</view><view class="data-v-34c343d8">{{item2.$orig.environmentData+item2.m1}}</view></view></view></block></view><view class="updateTime data-v-34c343d8"><label class="_span data-v-34c343d8"></label><label class="_span data-v-34c343d8">{{"*更新数据时间 : "+updateTime}}</label></view></view></block></view></view>
|
Loading…
Reference in New Issue