优化大屏报警滚动速度
This commit is contained in:
parent
808dcd6e49
commit
15957682cf
@ -122,9 +122,9 @@ public class IpcDataShowServiceImpl implements IIpcDataShowService {
|
|||||||
ipcAlarmRecord.setAlarmStatus("0");
|
ipcAlarmRecord.setAlarmStatus("0");
|
||||||
List<IpcAlarmRecord> list = ipcAlarmRecordService.selectIpcAlarmRecordList(ipcAlarmRecord);
|
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)) {
|
if (part.endsWith(IpcConstant.OPERATION_PROFILE)) {
|
||||||
// 操作侧
|
// 操作侧
|
||||||
|
@ -109,4 +109,13 @@ public class IpcConstant {
|
|||||||
*/
|
*/
|
||||||
public static final String RULE_TYPE_IN_RUNNING = "in_running";
|
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;
|
||||||
}
|
}
|
||||||
|
@ -1431,7 +1431,7 @@ export default {
|
|||||||
.scroll-inner {
|
.scroll-inner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
animation: scrollAnimation 300s linear infinite;
|
animation: scrollAnimation 30s linear infinite;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user