修改表格

master
夜笙歌 2 months ago
parent 7a01290d83
commit c339422a27

@ -93,6 +93,7 @@
}
.threeLabelContent {
display: none;
/*width: 200px;*/
height: auto;
@ -104,6 +105,8 @@
right: 0;
top: 50%;
transform: translateY(-50%);
overflow: auto;
max-height: 90vh;
}
@ -152,6 +155,16 @@
font-size: 2vw;
color: #fff;
}
.rightTH{
display: inline-block;
width: 33%;
}
.rightTable{
width: 20vw;
position: sticky;
top: 0;
background-color: rgba(23, 48, 97);
}
</style>
<body class="gray-bg">
<!-- 29.4 39.8 50.1 59.6 68.8 -->
@ -362,7 +375,7 @@
$.post(ctx + 'api/getCountNumberById', {id: id.toString()}, (e) => {
$("#threeLabelContent").css('display', 'block')
$("#threeLabelContent").html(e.data.map(v => `<p>名称:${v.areaName} 编号:${v.locationCode} 数量: ${v.countNumber}</p>`).join('<br>'))
$("#threeLabelContent").html(`<div class="rightTable"><div class="rightTH">机坪名称</div><div class="rightTH">机位编码</div><div class="rightTH">轮挡数量</div></div>${e.data.map(v => `<div class="rightTH">${v.areaName}</div><div class="rightTH">${v.locationCode}</div><div class="rightTH">${v.countNumber}</div> `).join('<br>')}`)
// new tween.Tween(camera.position).to(new THREE.Vector3(383, 439, 3553), 500).start()
// camera.position.set(383, 439, 3553)

Loading…
Cancel
Save