This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nezha-nezha-fronted/nezha-fronted/src/components/page/dashboard/overview/overview.vue

908 lines
31 KiB
Vue
Raw Normal View History

<template>
<div class="overview">
<!--左侧菜单栏-->
<div class="overview-left content-left">
<div class="sidebar-title">{{$t('dashboard.title')}}</div>
<div class="sidebar-info">
<div class="sidebar-info-item sidebar-info-item-active" >{{$t('dashboard.overview.title')}}</div>
<div class="sidebar-info-item sidebar-info-top " @click="jumpTo('panel')">{{$t('dashboard.panel.title')}}</div>
<div class="sidebar-info-item" @click="jumpTo('metricPreview')">{{$t('dashboard.metricPreview.title')}}</div>
</div>
</div>
<!--右侧内容-->
<div class="overview-right content-right" id="mainDisplay">
<!--标题-->
<div class="overview-content-header">
<div class="header-title">{{$t('dashboard.overview.contentTitle')}}</div>
<div class="header-tool">
<div class="tool-container">
<div class="time">{{sysTime}}</div>
<div class="date">
<div class="week">{{sysWeek}}</div>
<div class="sys-date">{{sysDate}}</div>
</div>
<div class="operation" @click="godView"><span ><i class="nz-icon nz-icon-maxview"></i></span></div>
</div>
</div>
</div>
<!--内容-->
<div class="overview-content">
2020-03-18 19:22:45 +08:00
<el-scrollbar style="height: 100%" ref="overviewScrollbar">
<div class="content-row-box" >
<div class="content-col-box box-height-200 " style="flex:3;">
<table-box :pop-data="assetStatData" ref="assetTab" ></table-box>
2020-03-19 19:21:12 +08:00
</div>
<div class="content-col-box box-height-200 " style="flex: 2">
<table-box :pop-data="projectStatData" ref="projectTab"></table-box>
</div>
<div class="content-col-box box-height-200 " style="flex:1;">
<table-box :pop-data="endpointStatData" ref="endpointTab"></table-box>
2020-03-18 19:22:45 +08:00
</div>
</div>
<div class="content-row-box">
2020-03-19 19:21:12 +08:00
<div class="content-col-box box-height-250 " style="flex: 1;">
<div class="flex-container">
<div style="flex: 2;">
<table-box :pop-data="dataCenterStatData" ref="dataCenterTab" ></table-box>
2020-03-19 19:21:12 +08:00
</div>
<div style="flex: 3;"></div>
</div>
</div>
</div>
<div class="content-row-box">
<div class="content-col-box box-height-290 "style="flex: 3">
<div class="sub-title">
<!--<el-select v-model="topNFilter.default" placeholder="" size="mini" style="display: inline-block;width: 200px" @change="topNChange">
<el-option v-for="(item,index) in topNFilter.options" :label="item.label" :value="item.value" :key="item.value+index"></el-option>
</el-select>
<el-select v-model="topNFilter.defaultTop" placeholder="" size="mini" style="display: inline-block;width: 100px" @change="topNChange">
<el-option v-for="(item,index) in topNFilter.tops" :label="item.label" :value="item.value" :key="item.value+index"></el-option>
</el-select>-->
<el-dropdown trigger="click">
<span>{{topNFilter.options.find((item)=>{return item.value==topNFilter.default})['label']}}<i class="el-icon-arrow-down el-icon--right"></i></span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="(item,index) in topNFilter.options" :key="item.value+index" @click.native="()=>{topNFilter.default=item.value;topNChange();}">{{item.label}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-divider direction="vertical"></el-divider>
<el-dropdown trigger="click">
<span>{{topNFilter.tops.find((item)=>{return item.value==topNFilter.defaultTop})['label']}}<i class="el-icon-arrow-down el-icon--right"></i></span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="(item,index) in topNFilter.tops" :key="item.value+index" @click.native="()=>{topNFilter.defaultTop=item.value;topNChange();}">{{item.label}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<table-box :pop-data="topNStatData" ref="topNTab" style="height: 90%;"></table-box>
2020-03-19 19:21:12 +08:00
</div>
<div class="content-col-box box-height-290 "style="flex: 8;" id="alertTrendBox">
<chart-box ref="chartbox" :chart-title="$t('dashboard.overview.alert.chart.chartTitle')"></chart-box>
</div>
<div class="content-col-box box-height-290 "style="flex: 2;">
2020-03-19 19:21:12 +08:00
<table-box :pop-data="alertRuleStatData" ref="alertRuleTab" ></table-box>
</div>
</div>
</el-scrollbar>
</div>
</div>
</div>
</template>
<script>
2020-03-18 19:22:45 +08:00
import tableBox from "./tableBox";
import chart from "./chart";
2020-03-18 19:22:45 +08:00
import axios from 'axios';
export default {
name: "overview",
2020-03-18 19:22:45 +08:00
components:{
'table-box':tableBox,
'chart-box':chart,
2020-03-18 19:22:45 +08:00
},
props:[],
data(){
return {
2020-03-18 19:22:45 +08:00
assetStatData:{},
typeFilter: 'typeStat',
2020-03-19 19:21:12 +08:00
projectStatData:{},
endpointStatData:{},
dataCenterStatData:{},
topNStatData:{},
topNFilter:{
default:'alertRule',
defaultTop:10,
options:[
{label:this.$t('dashboard.overview.alert.alertRuleTopN'),value:'alertRule'},
{label:this.$t('dashboard.overview.alert.assetTopN'),value:'asset'},
],
tops:[
{label:this.$t('dashboard.overview.alert.top')+'10',value:10},
{label:this.$t('dashboard.overview.alert.top')+'20',value:20},
{label:this.$t('dashboard.overview.alert.top')+'50',value:50},
]
},
chartSeries:[],
2020-03-19 19:21:12 +08:00
alertRuleStatData:{},
isGodView:false,
sysTime:'',
sysDate:'',
sysWeek:'',
}
},
created() {
},
methods:{
2020-03-18 19:22:45 +08:00
/*加载数据 start*/
2020-03-19 19:21:12 +08:00
initData:function(){
this.queryAssetData();
this.queryProjectData();
this.queryEndpointData();
this.queryDataCenterData();
this.topNChange();
2020-03-19 19:21:12 +08:00
this.queryAlertRuleStatData();
this.queryAlertTrendData();
2020-03-19 19:21:12 +08:00
},
2020-03-18 19:22:45 +08:00
queryAssetData:function(){
2020-03-19 19:21:12 +08:00
this.$refs.assetTab.startLoading();
2020-03-18 19:22:45 +08:00
axios.get('/overview/assetStat').then((res)=>{
let response=res.data;
if(response.msg == 'success'){
let showData=response.data[this.typeFilter];
2020-03-18 19:22:45 +08:00
this.assetStatData=this.formatAssetData(showData,response.data.totalStat);
2020-03-19 19:21:12 +08:00
this.$refs.assetTab.endLoading();
}else{
this.$message.error(response.msg)
2020-03-18 19:22:45 +08:00
}
})
},
formatAssetData:function(data,totalData){
if(data && totalData){
data=data.map((item)=>{
item.alertInfo=`<span style="color: #FE6565;">${item.alertHigh}</span>/<span style="color: orange;">${item.alertMedium}</span>/<span style="color: #90ee90">${item.alertLow}</span>`;
return item;
})
2020-03-18 19:22:45 +08:00
let assetStatData={
screen:{ //左侧概览信息
show:true,
2020-03-19 19:21:12 +08:00
direction:'row',
2020-03-18 19:22:45 +08:00
total:{ //左侧上方大图标及total信息
show:true,
2020-03-19 19:21:12 +08:00
direction:'row',
num:`<span style="font-size:1.875rem;"><span style="color: #1166bb">${totalData.total}</span>/<span style="color:#90EE90;">${totalData.inStock}</span>/<span style="color:orange">${totalData.outStock}</span></span>`,
2020-03-18 19:22:45 +08:00
title:this.$t('dashboard.overview.asset.title'),
showPopover:true,
2020-03-19 19:21:12 +08:00
icon:'nz-icon nz-icon-asset',
2020-03-18 19:22:45 +08:00
popover:[
{
label:this.$t('dashboard.overview.asset.inStock'),
value:totalData.inStock
},
{
label:this.$t('dashboard.overview.asset.outStock'),
value:totalData.outStock
},
{
label:this.$t('dashboard.overview.asset.alertLow'),
value:totalData.alertLow
},
{
label:this.$t('dashboard.overview.asset.alertMedium'),
value:totalData.alertMedium
},
{
label:this.$t('dashboard.overview.asset.alertHigh'),
value:totalData.alertHigh
},
]
},
stat:{//左侧下方 小图标,
show:true,
up:totalData.pingUp,
down:totalData.pingDown
}
},
table:{//右侧table
show:true,
tableData:data,
tableLabel:[
{
label:this.getAssetTabTitle(),
2020-03-18 19:22:45 +08:00
prop:'name',
show:true,
renderHeader:this.assetRenderHeader,
2020-03-18 19:22:45 +08:00
},
{
label:this.$t('dashboard.overview.asset.num'),
prop:'total',
show:true,
showPopover:true,
popover:[
{
label:this.$t('dashboard.overview.asset.inStock'),
prop:'inStock'
},
{
label:this.$t('dashboard.overview.asset.outStock'),
prop:'outStock'
},
{
label:this.$t('dashboard.overview.asset.pingUp'),
prop:'pingUp'
},
{
label:this.$t('dashboard.overview.asset.pingDown'),
prop:'pingDown'
},
]
},
{
label:this.$t('dashboard.overview.asset.alert'),
prop:'alertInfo',
2020-03-18 19:22:45 +08:00
show:true,
showPopover:true,
popover:[
{
label:this.$t('dashboard.overview.asset.alertTotal'),
prop:'alertTotal'
},
2020-03-18 19:22:45 +08:00
{
label:this.$t('dashboard.overview.asset.alertLow'),
prop:'alertLow'
},
{
label:this.$t('dashboard.overview.asset.alertMedium'),
prop:'alertMedium'
},
{
label:this.$t('dashboard.overview.asset.alertHigh'),
prop:'alertHigh'
},
]
}
]
}
}
return assetStatData;
}else{
2020-03-19 19:21:12 +08:00
console.error('the param is invalid');
2020-03-18 19:22:45 +08:00
return {};
2020-03-19 19:21:12 +08:00
}
},
queryProjectData:function(){
this.$refs.projectTab.startLoading();
this.$get('/overview/projectStat').then(response=>{
if(response.msg == 'success'){
let showData=response.data;
this.projectStatData=this.formatProjectData(showData);
this.$refs.projectTab.endLoading();
}else{
this.$message.error(response.msg)
}
})
},
formatProjectData:function(data){
if(data){
return {
screen:{ //左侧概览信息
show:true,
direction:'row',
total:{ //左侧上方大图标及total信息
show:true,
direction:'row',
num:data.total,
title:this.$t('dashboard.overview.project.project'),
showPopover:false,
icon:'nz-icon nz-icon-project',
popover:[]
},
stat:{//左侧下方 小图标,
show:false,
up:0,
down:0
}
},
table:{//右侧table
show:true,
tableData:data.projectStat,
tableLabel:[
{
label:this.$t('dashboard.overview.project.name'),
prop:'name',
show:true,
showPopover:true,
popover:[
{
label:this.$t('dashboard.overview.project.module'),
prop:'moduleNum'
},
{
label:this.$t('dashboard.overview.project.endpoint'),
prop:'endpointNum'
}
]
},
{
label:this.$t('dashboard.overview.asset.alert'),
prop:'alertNum',
show:true,
showPopover: false
}
]
}
}
}else{
console.error('the param is invalid');
return {}
}
},
queryEndpointData:function(){
this.$refs.endpointTab.startLoading();
this.$get('/overview/endpointStat').then(response=>{
if(response.msg == 'success'){
let showData=response.data;
this.endpointStatData=this.formatEndpointData(showData);
this.$refs.endpointTab.endLoading();
}else{
this.$message.error(response.msg)
}
})
},
formatEndpointData:function(data){
if(data){
return {
screen:{ //左侧概览信息
show:true,
direction:'row',
total:{ //左侧上方大图标及total信息
show:true,
direction:'row',
num:data.total,
title:this.$t('dashboard.overview.project.endpoint'),
showPopover:false,
icon:'nz-icon nz-icon-project',
popover:[]
},
stat:{//左侧下方 小图标,
show:true,
up:data.up,
down:data.down
}
},
table:{//右侧table
show:false,
tableData:[],
tableLabel:[]
}
}
}else{
2020-03-18 19:22:45 +08:00
console.error('the param is invalid');
2020-03-19 19:21:12 +08:00
return {}
2020-03-18 19:22:45 +08:00
}
2020-03-19 19:21:12 +08:00
},
queryDataCenterData:function(){
this.$refs.dataCenterTab.startLoading();
this.$get('/overview/datacenterStat').then(response=>{
if(response.msg == 'success') {
let showData = response.data;
this.dataCenterStatData = this.formatDataCenterData(showData);
this.$refs.dataCenterTab.endLoading();
}else{
this.$message.error(response.msg)
}
})
},
formatDataCenterData:function(data){
if(data){
return {
screen:{ //左侧概览信息
show:true,
direction:'row',
total:{ //左侧上方大图标及total信息
show:true,
direction:'column',
num:data.dcTotal,
title:this.$t('dashboard.overview.dataCenter.dataCenter'),
showPopover:true,
icon:'nz-icon nz-icon-page',
popover:[
{
label:this.$t('dashboard.overview.dataCenter.cabinet'),
value:data.cabinetTotal
}
]
},
stat:{//左侧下方 小图标,
show:false,
up:0,
down:0
}
},
table:{//右侧table
show:true,
tableData:data.dcStat,
tableLabel:[
{
label:this.$t('dashboard.overview.project.name'),
prop:'name',
show:true,
showPopover:true,
popover:[
{
label:this.$t('dashboard.overview.asset.pingUp'),
prop:'endpointUp'
},
{
label:this.$t('dashboard.overview.asset.pingDown'),
prop:'endpointDown'
},
]
},
{
label:this.$t('dashboard.overview.dataCenter.promServer'),
prop:'promTotal',
show:true,
showPopover: true,
popover: [
{
label:this.$t('dashboard.overview.asset.pingUp'),
prop:'promUp'
},
{
label:this.$t('dashboard.overview.asset.pingDown'),
prop:'promDown'
},
]
},
{
label:this.$t('dashboard.overview.asset.title'),
prop:'assetTotal',
show:true,
showPopover: true,
popover: [
{
label:this.$t('dashboard.overview.asset.inStock'),
prop:'assetInStock'
},
{
label:this.$t('dashboard.overview.asset.outStock'),
prop:'assetOutStock'
},
{
label:this.$t('dashboard.overview.asset.pingUp'),
prop:'assetPingUp'
},
{
label:this.$t('dashboard.overview.asset.pingDown'),
prop:'assetPingDown'
},
]
},
{
label:this.$t('dashboard.overview.asset.alert'),
prop:'alertTotal',
show:true,
showPopover: true,
popover: [
{
label:this.$t('dashboard.overview.asset.alertLow'),
prop:'alertLow'
},
{
label:this.$t('dashboard.overview.asset.alertMedium'),
prop:'alertMedium'
},
{
label:this.$t('dashboard.overview.asset.alertHigh'),
prop:'alertHigh'
},
]
}
]
}
}
}else{
console.error('the param is invalid');
return {}
}
},
queryAlertTopNData:function(){
this.$refs.topNTab.startLoading();
this.$get('/overview/alertStatByRule?top='+this.topNFilter.defaultTop).then(response=>{
2020-03-19 19:21:12 +08:00
if(response.msg == 'success') {
let showData = response.data.list;
this.topNStatData = this.formatAlertTopNData(showData);
this.$refs.topNTab.endLoading();
}else{
this.$message.error(response.msg)
}
})
},
formatAlertTopNData:function(data){
if(data){
return {
screen:{ //左侧概览信息
show:false,
direction:'row',
total:{ //左侧上方大图标及total信息
show:true,
direction:'row',
num:0,
title:'',
showPopover:false,
icon:'',
popover:[]
},
stat:{//左侧下方 小图标,
show:false,
up:0,
down:0
}
},
table:{//右侧table
show:true,
tableData:data,
tableLabel:[
{
label:this.$t('dashboard.overview.project.name'),
prop:'alertName',
show:true,
showPopover:false,
popover:[]
},
{
label:this.$t('dashboard.overview.alert.level'),
prop:'level',
show:true,
showPopover:false,
popover:[]
},
{
label:this.$t('dashboard.overview.asset.num'),
prop:'nums',
show:true,
showPopover:false,
popover:[]
},
]
}
}
}else{
console.error('the param is invalid');
return {}
}
},
queryAssetTopNData:function(){
this.$refs.topNTab.startLoading();
this.$get('/overview/alertStatByAsset?top='+this.topNFilter.defaultTop).then(response=>{
2020-03-19 19:21:12 +08:00
if(response.msg == 'success') {
let showData=response.data.list;
this.topNStatData=this.formatAssetTopNData(showData);
this.$refs.topNTab.endLoading();
}else{
this.$message.error(response.msg)
}
})
},
formatAssetTopNData:function(data){
if(data){
return {
screen:{ //左侧概览信息
show:false,
direction:'row',
total:{ //左侧上方大图标及total信息
show:true,
direction:'row',
num:0,
title:'',
showPopover:false,
icon:'',
popover:[]
},
stat:{//左侧下方 小图标,
show:false,
up:0,
down:0
}
},
table:{//右侧table
show:true,
tableData:data,
tableLabel:[
{
label:this.$t('dashboard.overview.asset.host'),
prop:'host',
show:true,
showPopover:false,
popover:[]
},
2020-03-18 19:22:45 +08:00
2020-03-19 19:21:12 +08:00
{
label:this.$t('dashboard.overview.asset.num'),
prop:'nums',
show:true,
showPopover:false,
popover:[]
},
]
}
}
}else{
console.error('the param is invalid');
return {}
}
},
queryAlertRuleStatData:function(){
this.$refs.alertRuleTab.startLoading();
this.$get('/overview/alertRuleStat').then(response=>{
if(response.msg == 'success') {
let showData=response.data;
this.alertRuleStatData=this.formatAlertRuleData(showData);
this.$refs.alertRuleTab.endLoading();
}else{
this.$message.error(response.msg)
}
})
},
formatAlertRuleData:function(data){
if(data){
return {
screen:{ //左侧概览信息
show:true,
direction:'column',
total:{ //左侧上方大图标及total信息
show:true,
direction:'row',
num:data.alertRuleTotal,
title:this.$t('dashboard.overview.alert.alertRule'),
showPopover:false,
icon:'nz-icon nz-icon-page',
popover:[]
},
stat:{//左侧下方 小图标,
show:false,
up:0,
down:0
}
},
table:{//右侧table
show:true,
tableData:data.alertRule,
tableLabel:[
{
label:this.$t('dashboard.overview.alert.level'),
prop:'level',
show:true,
showPopover:false,
popover:[]
},
{
label:this.$t('dashboard.overview.alert.ruleNum'),
prop:'ruleNum',
show:true,
showPopover:false,
popover:[]
},
{
label:this.$t('dashboard.overview.alert.alertNum'),
prop:'alertNum',
show:true,
showPopover:false,
popover:[]
},
]
}
}
}else{
console.error('the param is invalid');
return {}
}
2020-03-18 19:22:45 +08:00
},
queryAlertTrendData:function(){
this.$refs.chartbox.startLoading();
let cur=this.dateFormat('yyyy-mm-dd HH:MM:SS',new Date());
let beforeDate=new Date();
beforeDate.setHours(new Date().getHours()-1);
let before=this.dateFormat('yyyy-mm-dd HH:MM:SS',beforeDate);
let params={
query:'sum(nz_alert_nums)',
start:before,
end:cur,
step:'15s'
}
this.$get('/prom/api/v1/query_range',params).then(response=>{
if(response.status == 'success'){
if(response.data.result){
let series={
name: 'nz_alert_nums',
symbol:'none', //去掉点
smooth:true, //曲线变平滑
data: [],
type:'line',
areaStyle:{}
}
series.data=response.data.result[0].values.map((item)=>{
return [item[0]*1000,item[1]];
})
this.chartSeries=[series];
this.$refs.chartbox.setSeries(this.chartSeries);
this.$refs.chartbox.endLoading();
}
}else{
console.error(response)
}
})
},
2020-03-18 19:22:45 +08:00
/*加载数据 end*/
getAssetTabTitle:function(){
switch (this.typeFilter) {
case "typeStat":
return this.$t('dashboard.overview.asset.assetType');
case "modelStat":
return this.$t('dashboard.overview.asset.modelStat');
case "dcStat":
return this.$t('dashboard.overview.asset.dcStat');
}
},
assetRenderHeader:function(h, { column, $index }){ //修改header为dropdown
let filters = [
{text:this.$t('dashboard.overview.asset.dropDownLabel.type'),value:'typeStat'},
{text:this.$t('dashboard.overview.asset.dropDownLabel.model'),value:'modelStat'},
{text:this.$t('dashboard.overview.asset.dropDownLabel.dc'),value:'dcStat'},
];
return h('div',
{
},
[
h('el-dropdown',
{
attrs:{
trigger:'click'
}
},
[
h('span',
{
domProps: {
innerHTML: column.label+'<i class="el-icon-arrow-down el-icon--right"></i>'
}
}
),
h('el-dropdown-menu',
{
attrs:{
slot:'dropdown'
}
},
[
filters.map(item => {
return h("el-dropdown-item", {
domProps: {
innerHTML:item.text
},
nativeOn:{
click:this.assetTabFilterChange.bind(this,item.value)
}
});
})
]
)
]
)
]
)
2020-03-19 19:21:12 +08:00
},
assetTabFilterChange:function(type){
this.typeFilter=type;
this.queryAssetData();
},
topNChange:function(item){
if(this.topNFilter.default == 'alertRule'){
this.queryAlertTopNData();
}else if(this.topNFilter.default == 'asset'){
this.queryAssetTopNData();
}
},
godView:function(el){
},
exitGodView:function(el){
2020-03-19 19:21:12 +08:00
},
/*header 时间处理 start*/
initDate:function(){
this.sysTime=this.getTime();
this.sysDate=this.getDate();
this.sysWeek=this.getWeek();
this.freshTime();
},
freshTime:function(){
let $temp=this;
setInterval(function(){
$temp.sysTime=$temp.getTime()
$temp.sysDate=$temp.getDate();
$temp.sysWeek=$temp.getWeek();
},1000)
},
getTime:function(){
let date=new Date();
let hours=date.getHours()>9?date.getHours():'0'+date.getHours();
let minutes=date.getMinutes()>9?date.getMinutes():'0'+date.getMinutes();
let seconds=date.getSeconds()>9?date.getSeconds():'0'+date.getSeconds();
return hours+':'+minutes+':'+seconds;
},
getDate:function(){
let date=new Date();
let years=date.getFullYear();
let months=date.getMonth()+1>9?date.getMonth()+1:'0'+(date.getMonth()+1);
let days=date.getDate()>9?date.getDate():'0'+date.getDate();
return years+'-'+months+'-'+days;
},
getWeek:function(){
let language=localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en';
let enWeeks=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
let cnWeeks=['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
let date=new Date();
let day=date.getDay();
if(language == 'en'){
return enWeeks[day];
}else if(language == 'cn'){
return cnWeeks[day];
}else{
return enWeeks[day];
}
},
dateFormat:function(fmt, date) {
let ret;
const opt = {
"y+": date.getFullYear().toString(), // 年
"m+": (date.getMonth() + 1).toString(), // 月
"d+": date.getDate().toString(), // 日
"H+": date.getHours().toString(), // 时
"M+": date.getMinutes().toString(), // 分
"S+": date.getSeconds().toString() // 秒
// 有其他格式化字符需求可以继续添加,必须转化成字符串
};
for (let k in opt) {
ret = new RegExp("(" + k + ")").exec(fmt);
if (ret) {
fmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0")))
};
};
return fmt;
},
/*header 时间处理end*/
jumpTo(data, id) {
//this.$store.state.assetData.moduleData = data
//this.$store.state.assetData.selectedData = id
this.$router.push({
path: "/" + data,
query: {
t: +new Date()
}
});
},
},
computed:{
},
mounted() {
this.initDate();
2020-03-19 19:21:12 +08:00
this.initData();
}
}
</script>
<style scoped>
@import "overview.scss";
</style>
<style>
.overview .el-scrollbar__wrap{
margin-bottom: 0px !important;
}
.overview-table .el-table__body{
width: 100% !important;
}
</style>