NEZ-3256 feat:License详情表格增加 hostname 信息

This commit is contained in:
zyh
2023-10-25 15:17:16 +08:00
parent f9bb7b500d
commit 15dd677123

View File

@@ -75,10 +75,16 @@
<span class="data-column__span">{{item.label}} <i class="nz-icon nz-icon-label" v-if="item.type==='label'"/></span> <span class="data-column__span">{{item.label}} <i class="nz-icon nz-icon-label" v-if="item.type==='label'"/></span>
</template> </template>
<template slot-scope="scope" :column="item"> <template slot-scope="scope" :column="item">
<template v-if="item.prop === 'devicesName'"> <!-- hostname -->
<template v-if="item.prop === 'hostname'">
<span>{{scope.row.hostname}}</span>
</template>
<!-- ip -->
<template v-if="item.prop === 'ip'">
<span>{{getLicense(scope.row)}}</span> <span>{{getLicense(scope.row)}}</span>
</template> </template>
<template v-else-if="item.prop === 'status'"> <!-- state -->
<template v-else-if="item.prop === 'state'">
<div v-if="scope.row.status === 0"> <div v-if="scope.row.status === 0">
<div class="active-icon green-bg inline-block"></div> {{ $t('overall.active') }} <div class="active-icon green-bg inline-block"></div> {{ $t('overall.active') }}
</div> </div>
@@ -178,12 +184,16 @@ export default {
tableData: [], tableData: [],
tableTitle: [ tableTitle: [
{ {
label: this.$t('asset.server'), label: this.$t('license.hostname'),
prop: 'devicesName' prop: 'hostname'
},
{
label: 'IP:port',
prop: 'ip'
}, },
{ {
label: this.$t('overall.state'), label: this.$t('overall.state'),
prop: 'status' prop: 'state'
} }
], ],
expData: {}, expData: {},