| | |
| | | sums[index] = '合计'; |
| | | return; |
| | | } |
| | | |
| | | // 只对需要计算的列进行求和 |
| | | const needSumColumns = ['sumCount', 'pairCount', 'totalNumber', 'realCount']; |
| | | if (needSumColumns.includes(column.property)) { |
| | |
| | | } |
| | | } |
| | | let socket = null; |
| | | const socketUrl = `ws://${WebSocketHost}:${host}/api/hollowGlass/api/talk/hollowGlassMessage`; |
| | | const socketUrl = `ws://${window.ipConfig.serverUrl}/api/hollowGlass/api/talk/hollowGlassMessage`; |
| | | const handleMessage = (data) => { |
| | | // 报警信息 |
| | | if (data.alarmInfo[0] != null && data.alarmInfo[0].length > 0) { |
| | |
| | | <el-icon><WarnTriangleFilled /></el-icon> |
| | | <span class="alert-text"> |
| | | {{ alertText }} (id:{{ alertMessage }}) |
| | | <span class="confirm-text">{{ $t('hellow.pleaseConfirm') }}</span> |
| | | </span> |
| | | </div> |
| | | <button @click="showAlert = false" class="close-btn">×</button> |
| | |
| | | #app-container { |
| | | padding-top: 60px; /* 根据alert高度调整 */ |
| | | } |
| | | .confirm-text { |
| | | color: rgb(242, 121, 8); |
| | | display: block; /* 强制换行 */ |
| | | text-align: center; /* 水平居中 */ |
| | | margin-top: 4px; /* 与上一行保持间距 */ |
| | | font-weight: 500; /* 加粗突出 */ |
| | | } |
| | | </style> |