style(tunnel): 优化隧道页面样式

- 调整管理员角色下的设备表格和分页样式
- 增加报警隧道的滚动条样式
- 修改分页按钮的样式,使用 min-width 以适应不同屏幕
This commit is contained in:
dj
2025-09-12 16:45:39 +08:00
parent 4df0976f73
commit 49b4c733a3
2 changed files with 1209 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -371,7 +371,23 @@ const btnList = ref([
]);
const serialNumber = ref("");
const roleKey = ref("");
function convertCoordsToArray(coordsArray) {
return coordsArray.map(point => `${point.x},${point.y}`).join(',');
}
// 示例使用:
const coordsData = [
{ x: 163, y: 487 },
{ x: 153, y: 483 },
{ x: 217, y: 480 },
{ x: 170, y: 644 },
{ x: 111, y: 640 },
{ x: 145, y: 483 }
];
const result = convertCoordsToArray(coordsData);
console.log(result);
// 输出: "163,487,153,483,217,480,170,644,111,640,145,483"
const clickHot = (id) => {
console.log('点击热区===============')
router.push('/' + id + '/' + siteId)