在单选模式下点击新单元格时,先清除所有之前激活的单元格状态
@ -806,6 +806,12 @@ const handleCellClick = async (row, column, cell, event) => {
return;
}
// 如果激活了其他单元格,先取消所有之前的激活状态(单选模式)
if (activeCells.value.size > 0) {
console.log('取消所有之前激活的单元格:', Array.from(activeCells.value));
activeCells.value.clear();
// 获取对应的机台信息和轴数
let equipmentCode = 'QB002'; // 默认值
let axleNumber = '左边'; // 默认值