|
|
@@ -231,6 +231,25 @@ export default {
|
|
|
onViewSelect(item) {
|
|
|
console.log('你点击了:', item.label);
|
|
|
this.currentView = item.value;
|
|
|
+ this.$refs.layout.clearDialogs(); // 清空全部弹窗
|
|
|
+ // 列表模式弹窗
|
|
|
+ if (this.currentView === 'list-mode') {
|
|
|
+ this.$refs.layout.openDialog({
|
|
|
+ id: 'crossing-list', // 这里的 ID 可以根据实际业务场景动态生成
|
|
|
+ title: '',
|
|
|
+ component: 'CrossingListPanel',
|
|
|
+ width: 1720,
|
|
|
+ height: 682,
|
|
|
+ center: false,
|
|
|
+ showClose: true,
|
|
|
+ noPadding: false,
|
|
|
+ enableDblclickExpand: false,
|
|
|
+ position: {x: 100, y:150},
|
|
|
+ data: {
|
|
|
+ onViewDetail: (rowData) => this.handleCrossingViewDetail(rowData)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
// 处理tab点击
|
|
|
handleTabClick(nodeData) {
|
|
|
@@ -273,26 +292,6 @@ export default {
|
|
|
showCrossingDalogs(nodeData) {
|
|
|
console.log('显示干线弹窗组', nodeData.id, nodeData.label);
|
|
|
|
|
|
- // 列表模式弹窗
|
|
|
- if (this.currentView === 'list-mode') {
|
|
|
- this.$refs.layout.openDialog({
|
|
|
- id: 'crossing-list' + nodeData.id, // 这里的 ID 可以根据实际业务场景动态生成
|
|
|
- title: nodeData.label,
|
|
|
- component: 'CrossingListPanel',
|
|
|
- width: 1315,
|
|
|
- height: 682,
|
|
|
- center: true,
|
|
|
- showClose: true,
|
|
|
- // position: { x: 750, y: 130 },
|
|
|
- noPadding: false,
|
|
|
- enableDblclickExpand: false,
|
|
|
- data: {
|
|
|
- onViewDetail: (rowData) => this.handleCrossingViewDetail(rowData)
|
|
|
- }
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
this.$refs.layout.openDialog({
|
|
|
id: 'crossing_' + nodeData.id, // 这里的 ID 可以根据实际业务场景动态生成
|
|
|
title: '',
|