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: { methods: {
async getTableData () { async getTableData () {
this.$set(this.searchLabel, 'uuid', this.obj.uuid) 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.tools.loading = true
this.$get(this.url, this.searchLabel).then(response => { this.$get(this.url, this.searchLabel).then(response => {
this.tools.loading = false this.tools.loading = false

View File

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