perf:1.取消图表选择单位组件可输入 2.traffic setting tags为空时统一为空对象

This commit is contained in:
wangwenrui
2020-05-21 18:05:46 +08:00
parent 0961be217b
commit fac7af468a
3 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<template> <template>
<div style="display: flex;justify-content: flex-start"> <div style="display: flex;justify-content: flex-start">
<button class="input-prepend nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square nz-input-group-prepend" @click="openSeletor">{{$t('dashboard.panel.chartForm.unit')}}</button> <button class="input-prepend nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square nz-input-group-prepend" @click="openSeletor">{{$t('dashboard.panel.chartForm.unit')}}</button>
<el-cascader filterable placeholder="" popper-class="no-style-class unit-pop-class" size="mini" <el-cascader placeholder="" popper-class="no-style-class unit-pop-class" size="mini"
:options="chartUnits" :options="chartUnits"
class="chart-unit" class="chart-unit"
:props="{ expandTrigger: 'click' ,emitPath:false}" :props="{ expandTrigger: 'click' ,emitPath:false}"

View File

@@ -83,7 +83,7 @@
direction:[], direction:[],
ifindex:null, ifindex:null,
ifdescr:' ', ifdescr:' ',
tags:"", tags:{},
edit:true, edit:true,
} }
] ]
@@ -120,7 +120,7 @@
direction:[], direction:[],
ifindex:null, ifindex:null,
ifdescr:' ', ifdescr:' ',
tags:"", tags:{},
edit:true, edit:true,
} }
] ]
@@ -146,7 +146,7 @@
direction:[], direction:[],
ifindex:null, ifindex:null,
ifdescr:' ', ifdescr:' ',
tags:"", tags:{},
edit:true, edit:true,
} }
] ]

View File

@@ -321,7 +321,7 @@
direction:[], direction:[],
ifindex:null, ifindex:null,
ifdescr:' ', ifdescr:' ',
tags:"", tags:{},
edit:true, edit:true,
}) })
this.tableLabels=this.tableLabels.map(item=>{ this.tableLabels=this.tableLabels.map(item=>{
@@ -342,7 +342,7 @@
direction:[], direction:[],
ifindex:null, ifindex:null,
ifdescr:' ', ifdescr:' ',
tags:"", tags:{},
edit:true, edit:true,
} }
] ]