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