2022-07-12 17:17:38 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="tabs">
|
|
|
|
|
<el-tabs v-model="activeTab"
|
|
|
|
|
class="cn-chart__tabs"
|
|
|
|
|
@tab-click="handleClick"
|
|
|
|
|
>
|
2022-07-20 19:47:53 +08:00
|
|
|
<template v-for="(tab,index) in list">
|
|
|
|
|
<el-tab-pane v-if="tab.checked"
|
|
|
|
|
:name="tab.label"
|
2022-07-12 17:17:38 +08:00
|
|
|
:key="index"
|
|
|
|
|
:ref="`chart-tab-${index}`"
|
|
|
|
|
class="tab-pane"
|
|
|
|
|
>
|
2022-07-20 19:47:53 +08:00
|
|
|
<template #label>
|
|
|
|
|
{{$t(tab.label)}}
|
|
|
|
|
</template>
|
2022-07-12 17:17:38 +08:00
|
|
|
<el-table
|
2022-07-20 19:47:53 +08:00
|
|
|
:id="`tabTable_${index}`"
|
|
|
|
|
:ref="`dataTable_${index}`"
|
2022-07-12 17:17:38 +08:00
|
|
|
:data="tableData"
|
|
|
|
|
border
|
|
|
|
|
:cell-style="tableCellStyle"
|
|
|
|
|
:header-cell-style="tableHeaderCellStyle"
|
|
|
|
|
class="tab-table"
|
|
|
|
|
height="100%"
|
|
|
|
|
>
|
2022-07-22 18:22:00 +08:00
|
|
|
<template v-for="(item,index) in customTableTitles">
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.checked"
|
|
|
|
|
class="data-column"
|
|
|
|
|
>
|
|
|
|
|
<template #header>
|
|
|
|
|
<span class="data-column__span">{{$t(item.label)}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
<template #default="scope" :column="item">
|
|
|
|
|
<div class="data-total" >
|
|
|
|
|
{{scope.row[item.prop]}}
|
|
|
|
|
<template v-if="item.prop === 'total'" >
|
|
|
|
|
<div v-if="scope.row['trend'] === 'up'" class="data-total-trend data-total-trend-red">
|
|
|
|
|
<i class="cn-icon-rise1 cn-icon"></i>{{scope.row['trendValue']}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="scope.row['trend'] === 'down'" class="data-total-trend data-total-trend-green">
|
|
|
|
|
<i class="cn-icon-decline cn-icon"></i>{{scope.row['trendValue']}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else class="data-total-trend data-total-trend-black">
|
|
|
|
|
<i class="cn-icon-constant cn-icon"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
2022-07-12 17:17:38 +08:00
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
</el-tab-pane>
|
2022-07-20 19:47:53 +08:00
|
|
|
</template>
|
2022-07-12 17:17:38 +08:00
|
|
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
<div class="tab-search" >
|
|
|
|
|
<div class="search-select" >
|
2022-07-14 17:46:06 +08:00
|
|
|
<span>{{$t('network.metric')}}:</span>
|
2022-07-12 17:17:38 +08:00
|
|
|
<el-select v-model="metric"
|
|
|
|
|
class="option__select select-column"
|
2022-07-21 10:19:03 +08:00
|
|
|
popper-class="option-popper metric-select"
|
2022-07-14 17:46:06 +08:00
|
|
|
:popper-append-to-body="false"
|
2022-07-12 17:17:38 +08:00
|
|
|
size="mini">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in options"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
2022-07-22 18:22:00 +08:00
|
|
|
<el-popover placement="bottom-end"
|
|
|
|
|
:width="240"
|
2022-07-20 19:47:53 +08:00
|
|
|
:show-arrow="false"
|
2022-07-22 18:22:00 +08:00
|
|
|
:append-to-body="true"
|
2022-07-20 19:47:53 +08:00
|
|
|
:hide-after="0"
|
|
|
|
|
popper-class="customize-tab__popper"
|
2022-07-22 18:22:00 +08:00
|
|
|
@show="handleCustomizeButton(true)"
|
|
|
|
|
@hide="handleCustomizeButton(false)"
|
2022-07-20 19:47:53 +08:00
|
|
|
trigger="click">
|
|
|
|
|
<template #reference>
|
2022-07-22 18:22:00 +08:00
|
|
|
<div class="search-customize-tab " :class="showBackground?'search-customize-tab__active':''" >
|
|
|
|
|
<i class="cn-icon-gear cn-icon icon-gear"></i> <span> {{$t('network.customize')}}</span>
|
2022-07-20 19:47:53 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
2022-07-12 17:17:38 +08:00
|
|
|
|
2022-07-22 18:22:00 +08:00
|
|
|
<el-tabs v-model="activeCustomize"
|
|
|
|
|
@tab-click="handleCustomizeClick"
|
|
|
|
|
type="card"
|
|
|
|
|
>
|
|
|
|
|
<el-tab-pane :label="$t('network.tabs')" name="tabs" width="50%" >
|
|
|
|
|
<transition-group name="dragTabs" class="list" tag="ul" ref="tabs">
|
|
|
|
|
<li v-for="(item, index) in list"
|
2022-07-20 19:47:53 +08:00
|
|
|
:key="item.label"
|
|
|
|
|
class="list-item"
|
2022-07-22 18:22:00 +08:00
|
|
|
@dragenter="dragenter($event, index)"
|
|
|
|
|
@dragover="dragover($event, index)"
|
|
|
|
|
@dragstart="dragstart(index)"
|
|
|
|
|
draggable="true"
|
|
|
|
|
>
|
|
|
|
|
<i class="cn-icon-sort cn-icon icon-drag"
|
|
|
|
|
|
|
|
|
|
:key="item.label"
|
|
|
|
|
></i> <el-checkbox @change="tabChange" v-model="item.checked" :label="$t(item.label) " size="small" :key="item.label"/>
|
|
|
|
|
</li>
|
|
|
|
|
</transition-group>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane :label="$t('network.metric')" name="metrics" width="50%" >
|
|
|
|
|
<transition-group name="dragMetric" class="list" tag="ul" ref="metric">
|
|
|
|
|
<li v-for="(item, index) in customTableTitles"
|
|
|
|
|
:key="item.label"
|
|
|
|
|
class="list-item"
|
|
|
|
|
@dragenter="dragMetricEnter($event, index)"
|
|
|
|
|
@dragover="dragMetricOver($event, index)"
|
|
|
|
|
@dragstart="dragMetricStart(index)"
|
|
|
|
|
draggable="true"
|
|
|
|
|
>
|
|
|
|
|
<i class="cn-icon-sort cn-icon icon-drag"
|
|
|
|
|
:key="item.label"
|
|
|
|
|
></i> <el-checkbox @change="metricChange" v-model="item.checked" :label="$t(item.label) " size="small" :key="item.label"/>
|
|
|
|
|
</li>
|
|
|
|
|
</transition-group>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
2022-07-20 19:47:53 +08:00
|
|
|
</el-popover>
|
2022-07-12 17:17:38 +08:00
|
|
|
</div>
|
2022-07-20 19:47:53 +08:00
|
|
|
|
2022-07-12 17:17:38 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import _ from 'lodash'
|
|
|
|
|
import { ref } from 'vue'
|
2022-07-14 17:46:06 +08:00
|
|
|
import { networkOverviewTabs } from '@/utils/constants'
|
2022-07-12 17:17:38 +08:00
|
|
|
|
|
|
|
|
export default {
|
2022-07-14 17:46:06 +08:00
|
|
|
name: 'NetworkOverviewTabs',
|
2022-07-12 17:17:38 +08:00
|
|
|
data () {
|
|
|
|
|
return {
|
2022-07-22 18:22:00 +08:00
|
|
|
metric: 'Bits',
|
2022-07-12 17:17:38 +08:00
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
value: 'Bits',
|
|
|
|
|
label: 'Bits'
|
2022-07-14 17:46:06 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'Bits2',
|
|
|
|
|
label: 'Bits2'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: 'Bits3',
|
|
|
|
|
label: 'Bits3'
|
2022-07-12 17:17:38 +08:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
tableData: [
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'up',
|
|
|
|
|
trendValue: '33%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trendValue: '6%',
|
|
|
|
|
trend: '',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'up',
|
|
|
|
|
trendValue: '6%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: '',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'up',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-22 18:22:00 +08:00
|
|
|
tab: 'cate',
|
2022-07-12 17:17:38 +08:00
|
|
|
total: 10,
|
|
|
|
|
trend: 'down',
|
|
|
|
|
trendValue: '2%',
|
|
|
|
|
inbound: 0.1,
|
|
|
|
|
outbound: 0.89
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
customTableTitles: [
|
2022-07-22 18:22:00 +08:00
|
|
|
{ label: 'network.ips', prop: 'tab', checked: true, tabColumn: true },
|
|
|
|
|
{ label: 'network.total', prop: 'total', checked: true, tabColumn: false },
|
|
|
|
|
{ label: 'network.inbound', prop: 'inbound', checked: true, tabColumn: false },
|
|
|
|
|
{ label: 'network.outbound', prop: 'outbound', checked: true, tabColumn: false }
|
2022-07-20 19:47:53 +08:00
|
|
|
],
|
|
|
|
|
list: [
|
|
|
|
|
{
|
|
|
|
|
label: 'network.ips',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: true
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.countries',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: true
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.asns',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: true
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.applications',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: true
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.providers',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: true
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.domains',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: true
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.protocols',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: true
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.idcTenants',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: true
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.provinces',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: false
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.cities',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: false
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.isps',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: false
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.applicationCategories',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: false
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.domainCategories',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: false
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.hosts',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: false
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.snis',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: false
|
|
|
|
|
}, {
|
|
|
|
|
label: 'network.protocolPorts',
|
2022-07-22 18:22:00 +08:00
|
|
|
prop: 'tab',
|
2022-07-20 19:47:53 +08:00
|
|
|
checked: false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
dragIndex: '',
|
2022-07-22 18:22:00 +08:00
|
|
|
dragMetricIndex: '',
|
|
|
|
|
showBackground: false
|
2022-07-12 17:17:38 +08:00
|
|
|
}
|
2022-07-20 19:47:53 +08:00
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
|
2022-07-12 17:17:38 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2022-07-20 19:47:53 +08:00
|
|
|
shuffle () {
|
|
|
|
|
this.list = _.shuffle(this.list)
|
|
|
|
|
},
|
2022-07-22 18:22:00 +08:00
|
|
|
handleCustomizeButton (status) {
|
|
|
|
|
console.log(this.showBackground)
|
|
|
|
|
this.showBackground = status
|
|
|
|
|
},
|
2022-07-20 19:47:53 +08:00
|
|
|
tabChange () {
|
|
|
|
|
const tabList = this.list.filter(item => item.checked == true)
|
|
|
|
|
if (tabList && tabList.length > 0) {
|
|
|
|
|
this.activeTab = tabList[0].label
|
2022-07-22 18:22:00 +08:00
|
|
|
this.customTableTitles.forEach(item => {
|
|
|
|
|
if (item.tabColumn) {
|
|
|
|
|
item.label = tabList[0].label
|
|
|
|
|
item.prop = tabList[0].prop
|
|
|
|
|
}
|
|
|
|
|
})
|
2022-07-20 19:47:53 +08:00
|
|
|
}
|
|
|
|
|
},
|
2022-07-22 18:22:00 +08:00
|
|
|
metricChange () {
|
|
|
|
|
// const metricList = this.customTableTitles.filter(item => item.checked == true)
|
|
|
|
|
// if (metricList && metricList.length > 0) {
|
|
|
|
|
// this.activeCustomize = metricList[0].label
|
|
|
|
|
// this.customTableTitles[0].label = this.$t(metricList[0].label)
|
|
|
|
|
// }
|
|
|
|
|
},
|
2022-07-20 19:47:53 +08:00
|
|
|
dragstart (index) {
|
|
|
|
|
this.dragIndex = index
|
|
|
|
|
},
|
|
|
|
|
dragenter (e, index) {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
if (this.dragIndex !== index) {
|
|
|
|
|
const moving = this.list[this.dragIndex]
|
|
|
|
|
this.list.splice(this.dragIndex, 1)
|
|
|
|
|
this.list.splice(index, 0, moving)
|
|
|
|
|
this.dragIndex = index
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
dragover (e, index) {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
},
|
2022-07-22 18:22:00 +08:00
|
|
|
dragMetricStart (index) {
|
|
|
|
|
this.dragMetricIndex = index
|
|
|
|
|
},
|
|
|
|
|
dragMetricEnter (e, index) {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
if (this.dragMetricIndex !== index) {
|
|
|
|
|
const moving = this.customTableTitles[this.dragMetricIndex]
|
|
|
|
|
this.customTableTitles.splice(this.dragMetricIndex, 1)
|
|
|
|
|
this.customTableTitles.splice(index, 0, moving)
|
|
|
|
|
this.dragMetricIndex = index
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
dragMetricOver (e, index) {
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
},
|
2022-07-12 17:17:38 +08:00
|
|
|
handleClick (tab) {
|
2022-07-22 18:22:00 +08:00
|
|
|
this.customTableTitles.forEach(item => {
|
|
|
|
|
if (item.tabColumn) {
|
|
|
|
|
item.label = tab.paneName
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
// this.customTableTitles[0].label = tab.paneName
|
2022-07-12 17:17:38 +08:00
|
|
|
// this.activeTab = tab.paneName
|
|
|
|
|
},
|
2022-07-22 18:22:00 +08:00
|
|
|
handleCustomizeClick (tab) {
|
|
|
|
|
// this.customTableTitles[0].label = tab.paneName
|
|
|
|
|
this.activeCustomize = tab.paneName
|
|
|
|
|
},
|
2022-07-12 17:17:38 +08:00
|
|
|
tableCellStyle ({ row, column, rowIndex, columnIndex }) {
|
2022-07-14 17:46:06 +08:00
|
|
|
let style = 'border-right:0px;font-size:12px;padding:7px 0 !important;border-bottom: 1px solid #ECECEC;'
|
2022-07-12 17:17:38 +08:00
|
|
|
if (rowIndex === this.tableData.length - 1) {
|
|
|
|
|
style = style + 'border-bottom:0px !important;'
|
|
|
|
|
}
|
|
|
|
|
if (columnIndex === 0) {
|
2022-07-14 17:46:06 +08:00
|
|
|
style = style + 'color:#046ECA;'
|
2022-07-12 17:17:38 +08:00
|
|
|
}
|
|
|
|
|
return style
|
|
|
|
|
},
|
|
|
|
|
tableHeaderCellStyle ({ row, column, rowIndex, columnIndex }) {
|
2022-07-14 17:46:06 +08:00
|
|
|
return 'border-right:0px;font-size:12px;font-weight:500;padding:4px 0 !important;border-bottom: 1px solid #E2E5EC;'
|
2022-07-12 17:17:38 +08:00
|
|
|
}
|
|
|
|
|
},
|
2022-07-20 19:47:53 +08:00
|
|
|
mounted () {
|
|
|
|
|
},
|
2022-07-12 17:17:38 +08:00
|
|
|
setup (props) {
|
2022-07-20 19:47:53 +08:00
|
|
|
const activeTab = ref(networkOverviewTabs[0])
|
2022-07-12 17:17:38 +08:00
|
|
|
if (props.chartInfo) {
|
|
|
|
|
if (!_.isEmpty(props.chartInfo.children)) {
|
2022-07-20 19:47:53 +08:00
|
|
|
// activeTab = `${props.chartInfo.children[0].id}`
|
2022-07-12 17:17:38 +08:00
|
|
|
}
|
|
|
|
|
// const dataList = [...props.chartInfo.children]
|
|
|
|
|
}
|
2022-07-22 18:22:00 +08:00
|
|
|
const activeCustomize = ref('tabs')
|
2022-07-12 17:17:38 +08:00
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
activeTab,
|
2022-07-22 18:22:00 +08:00
|
|
|
activeCustomize,
|
2022-07-14 17:46:06 +08:00
|
|
|
networkOverviewTabs
|
2022-07-12 17:17:38 +08:00
|
|
|
// dataList
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|