NEZ-2427 fix : Web terminal logs 列表页面增加显示两列数据
This commit is contained in:
@@ -69,6 +69,16 @@ export default {
|
|||||||
orderBy: { order: 'ascending', prop: 'id' }
|
orderBy: { order: 'ascending', prop: 'id' }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
obj: {
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
if (n) {
|
||||||
|
this.getTableData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getTableData () {
|
async getTableData () {
|
||||||
this.$set(this.searchLabel, 'uuid', this.obj.uuid)
|
this.$set(this.searchLabel, 'uuid', this.obj.uuid)
|
||||||
|
|||||||
@@ -214,7 +214,20 @@ export default {
|
|||||||
width: 150,
|
width: 150,
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
timer: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
showBottomBox (targetTab, row) {
|
||||||
|
if (this.timer) {
|
||||||
|
clearTimeout(this.timer)
|
||||||
|
}
|
||||||
|
const self = this
|
||||||
|
this.timer = setTimeout(() => {
|
||||||
|
self.$emit('showBottomBox', targetTab, row)
|
||||||
|
self.timer = null
|
||||||
|
}, 200)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="about">
|
<div class="about" v-my-loading='loading'>
|
||||||
<div class="app">
|
<div class="app">
|
||||||
<div class="app-header">
|
<div class="app-header">
|
||||||
<div class="header-logo"><img width="60" height="60" src="../../../assets/img/logo1-2.png"></div>
|
<div class="header-logo"><img width="60" height="60" src="../../../assets/img/logo1-2.png"></div>
|
||||||
@@ -45,6 +45,7 @@ export default {
|
|||||||
noData: false,
|
noData: false,
|
||||||
timeLineData: [],
|
timeLineData: [],
|
||||||
// language: '',
|
// language: '',
|
||||||
|
loading: false,
|
||||||
version: {
|
version: {
|
||||||
nezha: { name: '', version: '' },
|
nezha: { name: '', version: '' },
|
||||||
components: [{ name: '', version: '' }]
|
components: [{ name: '', version: '' }]
|
||||||
@@ -273,9 +274,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getVersion () {
|
getVersion () {
|
||||||
|
this.loading = true
|
||||||
this.$get('/about').then(response => {
|
this.$get('/about').then(response => {
|
||||||
// this.language = localStorage.getItem('nz-language') || 'en'
|
// this.language = localStorage.getItem('nz-language') || 'en'
|
||||||
this.version = response.data
|
this.version = response.data
|
||||||
|
this.loading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user