优化大屏报警滚动速度

This commit is contained in:
zhanghan11 2024-04-12 16:14:41 +08:00
parent 808dcd6e49
commit 15957682cf
3 changed files with 12 additions and 3 deletions

View File

@ -122,9 +122,9 @@ public class IpcDataShowServiceImpl implements IIpcDataShowService {
ipcAlarmRecord.setAlarmStatus("0");
List<IpcAlarmRecord> list = ipcAlarmRecordService.selectIpcAlarmRecordList(ipcAlarmRecord);
// 颗粒度报警
map.put("pzAlarmStr", String.join(IpcConstant.DATA_SEPARATOR, list.stream().filter(ipcAlarmRecord1 -> ipcAlarmRecord1.getNameKey().startsWith("pz")).map(IpcAlarmRecord::getAlarmDetail).collect(Collectors.toList())));
map.put("pzAlarmStr", String.join(IpcConstant.DATA_SEPARATOR, list.stream().filter(ipcAlarmRecord1 -> ipcAlarmRecord1.getNameKey().startsWith("pz")).limit(IpcConstant.BIGSCREEN_ALARM_RECORD_NUM_5).map(IpcAlarmRecord::getAlarmDetail).collect(Collectors.toList())));
// 其他报警
map.put("otherAlarmStr", String.join(IpcConstant.DATA_SEPARATOR, list.stream().filter(ipcAlarmRecord1 -> !ipcAlarmRecord1.getNameKey().startsWith("pz")).map(IpcAlarmRecord::getAlarmDetail).collect(Collectors.toList())));
map.put("otherAlarmStr", String.join(IpcConstant.DATA_SEPARATOR, list.stream().filter(ipcAlarmRecord1 -> !ipcAlarmRecord1.getNameKey().startsWith("pz")).limit(IpcConstant.BIGSCREEN_ALARM_RECORD_NUM_10).map(IpcAlarmRecord::getAlarmDetail).collect(Collectors.toList())));
// 根据位置处理
if (part.endsWith(IpcConstant.OPERATION_PROFILE)) {
// 操作侧

View File

@ -109,4 +109,13 @@ public class IpcConstant {
*/
public static final String RULE_TYPE_IN_RUNNING = "in_running";
/**
* 大屏滚动展示报警条数
*/
public static final Long BIGSCREEN_ALARM_RECORD_NUM_5 = 5L;
/**
* 大屏滚动展示报警条数
*/
public static final Long BIGSCREEN_ALARM_RECORD_NUM_10 = 10L;
}

View File

@ -1431,7 +1431,7 @@ export default {
.scroll-inner {
position: absolute;
white-space: nowrap;
animation: scrollAnimation 300s linear infinite;
animation: scrollAnimation 30s linear infinite;
}
}