|
|
@@ -319,7 +319,7 @@ export default {
|
|
|
} else if (this.activeLeftTab === 'trunkLine') { // 干线
|
|
|
// TODO: 干线Tab的顶部图表
|
|
|
} else if (this.activeLeftTab === 'specialDuty') { // 特勤
|
|
|
- this.openDutyDetailDialog();
|
|
|
+ this.openDutyDetailDialog({id: 'route_' + new Date().getTime(), label: '特勤路口'});
|
|
|
}
|
|
|
},
|
|
|
// 显示总览弹窗组
|
|
|
@@ -491,7 +491,7 @@ export default {
|
|
|
// 这里判断的条件改为 id
|
|
|
if (action === 'open-dialog' && id) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.openDutyDetailDialog(id); // 打开特勤弹窗
|
|
|
+ this.openDutyDetailDialog({id: id, label: '特勤路口'}); // 打开特勤弹窗
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
@@ -514,14 +514,16 @@ export default {
|
|
|
},
|
|
|
|
|
|
// === 特勤详情弹窗 (你需要根据实际组件名替换) ===
|
|
|
- async openDutyDetailDialog(dutyId) {
|
|
|
- console.log('准备打开特勤线路详情,ID:', dutyId);
|
|
|
+ async openDutyDetailDialog(nodeData) {
|
|
|
+ console.log('准备打开特勤线路详情:', nodeData);
|
|
|
// 1. 获取数据
|
|
|
const panelData = await this.fetchSpecialTaskData();
|
|
|
-
|
|
|
+
|
|
|
+ panelData.taskInfo.name = nodeData.label;
|
|
|
+ const id = 'special-task-dialog' + new Date().getTime();
|
|
|
// 2. 呼出弹窗
|
|
|
this.$refs.layout.openDialog({
|
|
|
- id: 'special-task-dialog',
|
|
|
+ id: id,
|
|
|
title: ' ', // 留空以隐藏默认标题,使用自定义 Header
|
|
|
width: 1400, // 弹窗宽一点,容纳 3 列
|
|
|
height: 700,
|
|
|
@@ -532,14 +534,13 @@ export default {
|
|
|
// 挂载主体组件和数据
|
|
|
component: 'SpecialTaskMonitorPanel',
|
|
|
data: { panelData: panelData },
|
|
|
-
|
|
|
// 挂载自定义 Header 和数据
|
|
|
headerComponent: 'TaskMonitorHeader',
|
|
|
headerProps: {
|
|
|
taskData: panelData.taskInfo,
|
|
|
onEndTask: () => {
|
|
|
console.log('点击了结束任务');
|
|
|
- this.$refs.layout.handleDialogClose('special-task-dialog');
|
|
|
+ this.$refs.layout.handleDialogClose(id);
|
|
|
}
|
|
|
}
|
|
|
});
|