|
|
@ -565,7 +565,7 @@ export default { |
|
|
// 处理展开行变化 |
|
|
// 处理展开行变化 |
|
|
handleExpandChange(row, expandedRows) { |
|
|
handleExpandChange(row, expandedRows) { |
|
|
// 展开时加载明细数据 |
|
|
// 展开时加载明细数据 |
|
|
if (!row.details || row.details.length === 0) { |
|
|
|
|
|
|
|
|
// if (!row.details || row.details.length === 0) { |
|
|
getTransportTaskDetails(row.taskNo).then(({data}) => { |
|
|
getTransportTaskDetails(row.taskNo).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
// 使用Vue.set确保响应式更新 |
|
|
// 使用Vue.set确保响应式更新 |
|
|
@ -577,7 +577,7 @@ export default { |
|
|
console.error('获取任务明细失败:', error) |
|
|
console.error('获取任务明细失败:', error) |
|
|
this.$message.error('获取任务明细失败') |
|
|
this.$message.error('获取任务明细失败') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
|
|
|
// } |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 获取状态文本 |
|
|
// 获取状态文本 |
|
|
|