NEZ-2427 fix : Web terminal logs 列表页面增加显示两列数据

This commit is contained in:
likexuan
2022-11-29 16:55:58 +08:00
parent 2c692d580b
commit 1c81231fa7
3 changed files with 28 additions and 2 deletions

View File

@@ -69,6 +69,16 @@ export default {
orderBy: { order: 'ascending', prop: 'id' }
}
},
watch: {
obj: {
deep: true,
handler (n) {
if (n) {
this.getTableData()
}
}
}
},
methods: {
async getTableData () {
this.$set(this.searchLabel, 'uuid', this.obj.uuid)

View File

@@ -214,7 +214,20 @@ export default {
width: 150,
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: {

View File

@@ -1,5 +1,5 @@
<template>
<div class="about">
<div class="about" v-my-loading='loading'>
<div class="app">
<div class="app-header">
<div class="header-logo"><img width="60" height="60" src="../../../assets/img/logo1-2.png"></div>
@@ -45,6 +45,7 @@ export default {
noData: false,
timeLineData: [],
// language: '',
loading: false,
version: {
nezha: { name: '', version: '' },
components: [{ name: '', version: '' }]
@@ -273,9 +274,11 @@ export default {
},
methods: {
getVersion () {
this.loading = true
this.$get('/about').then(response => {
// this.language = localStorage.getItem('nz-language') || 'en'
this.version = response.data
this.loading = false
})
}
},