|
|
|
|
@ -53,6 +53,7 @@
|
|
|
|
|
padding: '8px 0',
|
|
|
|
|
transition: 'background-color 0.3s ease'
|
|
|
|
|
}"
|
|
|
|
|
:title="getCellTooltip(scope.row.specification, column.prop)"
|
|
|
|
|
>
|
|
|
|
|
<span v-if="!showDifference">
|
|
|
|
|
{{ scope.row[column.prop] || '-' }}
|
|
|
|
|
@ -507,6 +508,19 @@ const getEquipmentCodeColor = (specification, columnProp) => {
|
|
|
|
|
return status.equipment_color;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 方法:获取单元格悬停提示
|
|
|
|
|
const getCellTooltip = (specification, columnProp) => {
|
|
|
|
|
// 构建包含规格的key
|
|
|
|
|
const keyWithSpec = `${columnProp}::${specification}`;
|
|
|
|
|
|
|
|
|
|
if (!uidProductionStatusMap.value.has(keyWithSpec)) {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const status = uidProductionStatusMap.value.get(keyWithSpec);
|
|
|
|
|
return `机台: ${status.equipment_code}\n完成度: ${(status.wight_completion/100).toFixed(2)}%`;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 方法:刷新数据
|
|
|
|
|
const refreshData = () => {
|
|
|
|
|
fetchData();
|
|
|
|
|
|