style(tunnel): 优化隧道页面样式
- 调整管理员角色下的设备表格和分页样式 - 增加报警隧道的滚动条样式 - 修改分页按钮的样式,使用 min-width 以适应不同屏幕
This commit is contained in:
1193
src/views/tunnel/index-back.vue
Normal file
1193
src/views/tunnel/index-back.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user