|
|
|
|
@ -57,6 +57,8 @@
|
|
|
|
|
:header-cell-style="{ backgroundColor: '#f5f7fa', color: '#606266' }"
|
|
|
|
|
empty-text="暂无数据"
|
|
|
|
|
:scrollbar-always-on="true"
|
|
|
|
|
height="1000"
|
|
|
|
|
:max-height="1000"
|
|
|
|
|
@cell-click="handleCellClick"
|
|
|
|
|
@cell-dblclick="handleCellDblClick"
|
|
|
|
|
>
|
|
|
|
|
@ -674,7 +676,7 @@ const fetchTransitionProbabilities = async (equipmentCode, axleNumber, model, sp
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
console.error('获取转移概率数据失败:', result.code, result.message);
|
|
|
|
|
ElMessage.error(`获取转移概率数据失败: ${result.message || '未知错误'}`);
|
|
|
|
|
ElMessage.warning(`获取转移概率数据失败: ${result.message || '未知错误'}`);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
@ -1223,14 +1225,27 @@ const handleCellDblClick = async (row, column, cell, event) => {
|
|
|
|
|
clickTimeoutId = null;
|
|
|
|
|
console.log('双击事件已清除单击延时器');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 调试信息
|
|
|
|
|
console.log('双击事件触发:', {
|
|
|
|
|
row,
|
|
|
|
|
column,
|
|
|
|
|
columnProperty: column.property,
|
|
|
|
|
cellValue: row[column.property],
|
|
|
|
|
cellValueType: typeof row[column.property]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const cellValue = row[column.property];
|
|
|
|
|
|
|
|
|
|
// 检查单元格是否有值
|
|
|
|
|
if (!cellValue || cellValue === '-' || cellValue === null || cellValue === undefined) {
|
|
|
|
|
// 放宽单元格值检查条件,只在明确为空的情况下才返回
|
|
|
|
|
if (cellValue === null || cellValue === undefined) {
|
|
|
|
|
ElMessage.warning('该单元格暂无数据');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 移除对空字符串和'-'的检查,让这些值也能打开对话框
|
|
|
|
|
console.log('单元格值检查通过,继续执行');
|
|
|
|
|
|
|
|
|
|
// 检查是否是规格列或总计列,这些列不需要显示WMS详情
|
|
|
|
|
if (column.property === 'specification' || column.property === 'total') {
|
|
|
|
|
ElMessage.info('该列不支持查看详情');
|
|
|
|
|
@ -1940,6 +1955,10 @@ onMounted(() => {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-align: center; /* 可选:居中对齐列头 */
|
|
|
|
|
padding: 8px 0; /* 调整列头内间距,以适应两行显示 */
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
border-bottom: 2px solid #dcdfe6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:deep(.el-table td) {
|
|
|
|
|
|