fix : 修改 terminalLogTable 页面
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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鼠标悬停形式
|
||||||
|
|||||||
Reference in New Issue
Block a user