时间选择范围上下时段
This commit is contained in:
@ -283,8 +283,8 @@ export default {
|
||||
if(this.isDtdc && (this.form.child.length === 0 || this.form.child.length > 5 )){
|
||||
return this.$message.error('请选择单体电池且不能超过5个');
|
||||
}
|
||||
this.loading = true
|
||||
const{siteIds,dataUnit,categoryName,pointName,dataRange:[start='',end=''],child}=this.form
|
||||
if(!start || !end) return this.$message.error('请选择时间');
|
||||
let siteDeviceMap={}
|
||||
child.forEach(([first,second,third])=>{
|
||||
if(siteDeviceMap[first]){
|
||||
@ -307,7 +307,7 @@ export default {
|
||||
}else{
|
||||
endDate=end
|
||||
}
|
||||
|
||||
this.loading = true
|
||||
getPointValueList({siteIds:[siteIds],dataUnit,categoryName,pointName,startDate,endDate,siteDeviceMap}).then(response => {
|
||||
this.setOption(response?.data || [])
|
||||
}).finally(()=>{
|
||||
|
||||
Reference in New Issue
Block a user