时间选择范围上下时段

This commit is contained in:
白菜
2025-09-26 18:43:38 +08:00
parent 6600a5db7a
commit b5956822ab
3 changed files with 24 additions and 23 deletions

View File

@ -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(()=>{