fix : 修改 terminalLogTable 页面

This commit is contained in:
likexuan
2022-11-29 17:56:57 +08:00
parent 923b6ff1a6
commit 6b92844c9b
2 changed files with 6 additions and 6 deletions

View File

@@ -82,6 +82,8 @@ export default {
methods: {
async getTableData () {
this.$set(this.searchLabel, 'uuid', this.obj.uuid)
this.$set(this.searchLabel, 'pageNo', this.pageObj.pageNo)
this.$set(this.searchLabel, 'pageSize', -1)
this.tools.loading = true
this.$get(this.url, this.searchLabel).then(response => {
this.tools.loading = false

View File

@@ -67,12 +67,12 @@
</template>
<template v-else-if="item.prop === 'cmdNum'">
<div style="cursor: pointer" @click="showBottomBox('cmdTab', scope.row)">
{{scope.row[item.prop] ? scope.row[item.prop] : '-'}}
{{scope.row[item.prop] ? scope.row[item.prop] : 0}}
</div>
</template>
<template v-else-if="item.prop === 'sftpNum'">
<div style="cursor: pointer" @click="showBottomBox('sftpTab', scope.row)">
{{scope.row[item.prop] ? scope.row[item.prop] : '-'}}
{{scope.row[item.prop] ? scope.row[item.prop] : 0}}
</div>
</template>
<template v-else-if="item.prop === 'authType'">
@@ -197,15 +197,13 @@ export default {
label: this.$t('config.terminallog.cmd.cmd'),
prop: 'cmdNum',
show: false,
width: 120,
sortable: 'custom'
width: 100
},
{
label: this.$t('terminal.sftp'),
prop: 'sftpNum',
show: false,
width: 100,
sortable: 'custom'
width: 80
},
{
label: this.$t('overall.state'), // killusername鼠标悬停形式