代码调整
This commit is contained in:
parent
dc7a117b0f
commit
66892862cb
@ -156,6 +156,7 @@ export default {
|
||||
},
|
||||
methods:{
|
||||
doShow(tableData, activeDepartRunPlan, activeArriveRunPlan, filterSectionList) {
|
||||
this.addModel.planParamList = [];
|
||||
this.tableData1 = [];
|
||||
tableData.forEach(element => {
|
||||
if (element.arriveRunPlan && element.arriveRunPlan.sectionCode) {
|
||||
|
@ -51,7 +51,19 @@ export default {
|
||||
methods:{
|
||||
removeTab(targetName) {
|
||||
const tabs = this.currentTabs;
|
||||
const activeName = this.activeTab;
|
||||
let activeName = this.activeTab;
|
||||
if (activeName === targetName) {
|
||||
tabs.forEach((tab, index) => {
|
||||
if (tab.name === targetName) {
|
||||
const nextTab = tabs[index + 1] || tabs[index - 1];
|
||||
if (nextTab) {
|
||||
activeName = nextTab.name;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
this.activeTab = activeName;
|
||||
this.currentTabs = tabs.filter(tab => tab.name !== targetName);
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,6 +92,7 @@ export default {
|
||||
padding: 5px 15px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
height: 29px;
|
||||
}
|
||||
.eachBTRpMenuBar:hover{
|
||||
background: #a6cdfb;
|
||||
|
Loading…
Reference in New Issue
Block a user