NEZ-3480 fix: 列表页面 二级页面打开 切换tab错误

This commit is contained in:
zyh
2024-05-28 10:00:00 +08:00
parent 1569281632
commit 51f6daaed1
2 changed files with 7 additions and 7 deletions

View File

@@ -296,7 +296,7 @@ export default {
sameLabels: ['instance', 'module', 'project', 'asset', 'endpoint', 'datacenter'],
legend: [],
searchTime: [],
searchTimeHeader: [bus.timeFormate(new Date(bus.computeTimezone(new Date().getTime())).setHours(new Date(bus.computeTimezone(new Date().getTime())).getHours() - 24 * 7)), bus.timeFormate(new Date(bus.computeTimezone(new Date().getTime()))), '7d'],
searchTimeHeader: [bus.timeFormate(new Date(bus.computeTimezone(new Date().getTime())).setHours(new Date(bus.computeTimezone(new Date().getTime())).getHours() - 1)), bus.timeFormate(new Date(bus.computeTimezone(new Date().getTime()))), '1h'],
searchTimeSelect: bus.getTimezontDateRange(),
currentMsg: {},
chartUnit: 5,
@@ -311,9 +311,9 @@ export default {
isError: false,
errorContent: '',
chartInfo: {},
defaultPick: 10,
defaultPickType: 'date',
defaultPickVal: 7
defaultPick: 4,
defaultPickType: 'hour',
defaultPickVal: 1
}
},
created () {

View File

@@ -287,9 +287,9 @@ export default {
},
showBottomBox (targetTab, row) {
this.sign = row.id
if (!this.bottomBox.showSubList) {
this.bottomBox.targetTab = targetTab
}
// if (!this.bottomBox.showSubList) {
this.bottomBox.targetTab = targetTab
// }
this.bottomBox.object = JSON.parse(JSON.stringify(row))
this.bottomBox.showSubList = true
},