监测站点修改
This commit is contained in:
parent
1fc0c41540
commit
a70a36a747
|
|
@ -165,7 +165,7 @@
|
||||||
xAxis: {
|
xAxis: {
|
||||||
disableGrid: true,
|
disableGrid: true,
|
||||||
itemCount: 8,
|
itemCount: 8,
|
||||||
scrollShow: true,
|
scrollShow: false,
|
||||||
scrollAlign: 'left',
|
scrollAlign: 'left',
|
||||||
labelCount: 14,
|
labelCount: 14,
|
||||||
boundaryGap: 'justify',
|
boundaryGap: 'justify',
|
||||||
|
|
@ -508,7 +508,7 @@
|
||||||
name: '最高阈值',
|
name: '最高阈值',
|
||||||
data: Array(this.timeList?.length || 0).fill(highValNum),
|
data: Array(this.timeList?.length || 0).fill(highValNum),
|
||||||
color: "#FF4242",
|
color: "#FF4242",
|
||||||
lineType: "solid",
|
lineType: "dashed",
|
||||||
showLabel: true,
|
showLabel: true,
|
||||||
dataLabel: false,
|
dataLabel: false,
|
||||||
});
|
});
|
||||||
|
|
@ -519,7 +519,7 @@
|
||||||
name: '最低阈值',
|
name: '最低阈值',
|
||||||
data: Array(this.timeList?.length || 0).fill(lowValNum),
|
data: Array(this.timeList?.length || 0).fill(lowValNum),
|
||||||
color: "#19D58A",
|
color: "#19D58A",
|
||||||
lineType: "solid",
|
lineType: "dashed",
|
||||||
showLabel: true,
|
showLabel: true,
|
||||||
dataLabel: false,
|
dataLabel: false,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,8 @@
|
||||||
show:false,
|
show:false,
|
||||||
show1:false,
|
show1:false,
|
||||||
top:0,
|
top:0,
|
||||||
list:[]
|
list:[],
|
||||||
|
listsiol:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
@ -92,13 +93,22 @@
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getList(){
|
getList(){
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中'
|
title: '加载中'
|
||||||
});
|
});
|
||||||
this.$http.get('/applet/survStationInfo/deviceList').then(res =>{
|
|
||||||
this.list = res.data.data
|
// 使用 Promise.all 同时发起两个请求
|
||||||
uni.hideLoading();
|
Promise.all([
|
||||||
})
|
this.$http.get('/applet/survStationInfo/deviceList'),
|
||||||
|
this.$http.get('/applet/survStationInfo/fdeviceList')
|
||||||
|
]).then(([res1, res2]) => {
|
||||||
|
// 合并两个数组
|
||||||
|
this.list = res1.data.data.concat(res2.data.data);
|
||||||
|
uni.hideLoading();
|
||||||
|
}).catch(error => {
|
||||||
|
console.error('请求失败:', error);
|
||||||
|
uni.hideLoading();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
todetail(item,index){
|
todetail(item,index){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@
|
||||||
{
|
{
|
||||||
"path": "pages/vidio/index",
|
"path": "pages/vidio/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "站点监测",
|
"navigationBarTitleText": "设备管理",
|
||||||
"navigationStyle": "default",
|
"navigationStyle": "default",
|
||||||
"navigationBarBackgroundColor":"#0F6EFF"
|
"navigationBarBackgroundColor":"#0F6EFF"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@
|
||||||
path: '/packDetail/pages/Site/index'
|
path: '/packDetail/pages/Site/index'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '站点监测',
|
name: '设备管理',
|
||||||
img: require('../../static/home_icon_shebei.png'),
|
img: require('../../static/home_icon_shebei.png'),
|
||||||
path: '/packDetail/pages/vidio/index'
|
path: '/packDetail/pages/vidio/index'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue