代码调整

This commit is contained in:
joylink_cuiweidong 2022-06-10 16:48:23 +08:00
parent dc7a117b0f
commit 66892862cb
2 changed files with 15 additions and 1 deletions

View File

@ -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) {

View File

@ -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;