数据源
This commit is contained in:
@@ -1201,11 +1201,17 @@ const handleDataSourceChange = () => {
|
||||
// 判断是否同时包含 '3s' 和 '分钟'
|
||||
const hasThreeSeconds = selectedLabels.some(label => label.includes('3s'))
|
||||
const hasMinuteStats = selectedLabels.some(label => label.includes('分钟'))
|
||||
const hasLuBo = selectedLabels.some(label => label.includes('录波'))
|
||||
|
||||
if (hasThreeSeconds && hasMinuteStats) {
|
||||
ElMessage.warning('3s实时数据与分钟统计数据不能同时选择')
|
||||
formContent.datasourceIds = []
|
||||
}
|
||||
|
||||
if(hasLuBo && hasMinuteStats){
|
||||
ElMessage.warning('录波数据与分钟统计数据不能同时选择')
|
||||
formContent.datasourceIds = []
|
||||
}
|
||||
// 判断是否选择了多个“分钟统计数据”项
|
||||
const minuteStatLabels = selectedLabels.filter(label => label.includes('分钟'))
|
||||
if (minuteStatLabels.length > 1) {
|
||||
|
||||
Reference in New Issue
Block a user