NEZ-336 perf:修改显示更多的按钮内容 以及位置
This commit is contained in:
@@ -53,6 +53,9 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.nz-icon-warning{
|
||||||
|
color: #e6a23c;
|
||||||
|
}
|
||||||
.legend-container-screen.legend-container {
|
.legend-container-screen.legend-container {
|
||||||
max-height: 80px;
|
max-height: 80px;
|
||||||
min-height:25px;
|
min-height:25px;
|
||||||
@@ -131,7 +134,7 @@
|
|||||||
border-left: 28px solid #e02f44;
|
border-left: 28px solid #e02f44;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
border-bottom: 28px solid rgba(0,0,0,0);
|
border-bottom: 28px solid rgba(0,0,0,0);
|
||||||
}
|
}
|
||||||
.panel-info-corner-inner {
|
.panel-info-corner-inner {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
@@ -157,6 +160,41 @@
|
|||||||
max-width:280px;
|
max-width:280px;
|
||||||
border: 1px solid #e02f44;
|
border: 1px solid #e02f44;
|
||||||
}
|
}
|
||||||
|
.chart-warring-popper[x-placement^=top] .popper__arrow::after {
|
||||||
|
border-top-color: #e6a23c;
|
||||||
|
bottom:0px;
|
||||||
|
}
|
||||||
|
.chart-warring-popper[x-placement^=bottom] .popper__arrow::after {
|
||||||
|
border-bottom-color: #e6a23c;
|
||||||
|
}
|
||||||
|
.popper__arrow::after{
|
||||||
|
border:solid 3px yellow
|
||||||
|
}
|
||||||
|
.chart-warring-popper{
|
||||||
|
background-color:#e6a23c;
|
||||||
|
color:#FFF;
|
||||||
|
word-wrap:break-word;
|
||||||
|
word-break:break-word;
|
||||||
|
max-width:280px;
|
||||||
|
border: 1px solid #e6a23c;
|
||||||
|
}
|
||||||
|
.moreTitle{
|
||||||
|
.panel-info-corner--error .panel-info-corner-inner {
|
||||||
|
border-left: 28px solid #e6a23c;
|
||||||
|
border-right: none;
|
||||||
|
border-bottom: 28px solid rgba(0,0,0,0);
|
||||||
|
}
|
||||||
|
.panel-info-corner-inner {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
.nz-icon-warning:before {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
.nz-chart-resize {
|
.nz-chart-resize {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -20,6 +20,20 @@
|
|||||||
<span class="panel-info-corner-inner"></span>
|
<span class="panel-info-corner-inner"></span>
|
||||||
</span>
|
</span>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
<span class="moreTitle">
|
||||||
|
<el-popover
|
||||||
|
v-if="seriesItem.length!==seriesItemArr.length"
|
||||||
|
placement="top-start"
|
||||||
|
:close-delay=10
|
||||||
|
trigger="hover"
|
||||||
|
popper-class="chart-warring-popper">
|
||||||
|
<div class="moreTitle">{{$t('dashboard.panel.moreTitle')}}{{$t('dashboard.panel.showAll')}}{{seriesItem.length}}</div>
|
||||||
|
<span slot="reference" class="panel-info-corner panel-info-corner--error" @click="loadMore">
|
||||||
|
<i class="nz-icon nz-icon-warning fa"></i>
|
||||||
|
<span class="panel-info-corner-inner"></span>
|
||||||
|
</span>
|
||||||
|
</el-popover>
|
||||||
|
</span>
|
||||||
<el-dropdown trigger="click" class="nz-chart-top" :key="'chartDropdown'+chartIndex" v-clickoutside="clickos">
|
<el-dropdown trigger="click" class="nz-chart-top" :key="'chartDropdown'+chartIndex" v-clickoutside="clickos">
|
||||||
<el-dropdown-menu style="display: none"></el-dropdown-menu>
|
<el-dropdown-menu style="display: none"></el-dropdown-menu>
|
||||||
<span class="el-dropdown-link chart-title" @click="dropdownMenuShow=!dropdownMenuShow">
|
<span class="el-dropdown-link chart-title" @click="dropdownMenuShow=!dropdownMenuShow">
|
||||||
@@ -40,7 +54,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="seriesItem.length!==seriesItemArr.length" class="more"><i class="el-icon-warning"></i> {{$t('dashboard.panel.moreFirstTitle')}} {{seriesLength}}{{$t('dashboard.panel.moreSecondTitle')}}<span @click="loadMore" class="moreClick">{{$t('dashboard.panel.moreThirdTitle')}}{{seriesItem.length}}</span></div>
|
<!--<div v-if="seriesItem.length!==seriesItemArr.length" class="more"><i class="el-icon-warning"></i> {{$t('dashboard.panel.moreFirstTitle')}} {{seriesLength}}{{$t('dashboard.panel.moreSecondTitle')}}<span @click="loadMore" class="moreClick">{{$t('dashboard.panel.moreThirdTitle')}}{{seriesItem.length}}</span></div>-->
|
||||||
<div class="line-area" ref="lineChartArea" :id="'lineChartArea'+chartIndex" v-show="firstShow" style="width:100%;"></div>
|
<div class="line-area" ref="lineChartArea" :id="'lineChartArea'+chartIndex" v-show="firstShow" style="width:100%;"></div>
|
||||||
<div class="chart-no-data" v-show="noData">No Data</div>
|
<div class="chart-no-data" v-show="noData">No Data</div>
|
||||||
<div class='legend-container' id="legendArea" ref="legendArea" v-show="firstShow" v-scrollBar:legend>
|
<div class='legend-container' id="legendArea" ref="legendArea" v-show="firstShow" v-scrollBar:legend>
|
||||||
@@ -69,6 +83,20 @@
|
|||||||
<span class="panel-info-corner-inner"></span>
|
<span class="panel-info-corner-inner"></span>
|
||||||
</span>
|
</span>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
<span class="moreTitle">
|
||||||
|
<el-popover
|
||||||
|
v-if="seriesItemScreen.length!==seriesItemArrScreen.length"
|
||||||
|
placement="top-start"
|
||||||
|
:close-delay=10
|
||||||
|
trigger="hover"
|
||||||
|
popper-class="chart-warring-popper">
|
||||||
|
<div class="moreTitle">{{$t('dashboard.panel.moreTitle')}}{{$t('dashboard.panel.showAll')}}{{seriesItemScreen.length}}</div>
|
||||||
|
<span slot="reference" class="panel-info-corner panel-info-corner--error" @click="loadScreenMore">
|
||||||
|
<i class="nz-icon nz-icon-warning fa-model"></i>
|
||||||
|
<span class="panel-info-corner-inner"></span>
|
||||||
|
</span>
|
||||||
|
</el-popover>
|
||||||
|
</span>
|
||||||
<div slot="title" >
|
<div slot="title" >
|
||||||
<span class="nz-dialog-title" v-show="!isExplore">{{data.title}}</span>
|
<span class="nz-dialog-title" v-show="!isExplore">{{data.title}}</span>
|
||||||
<span class="nz-dialog-title" v-show="isExplore"> </span>
|
<span class="nz-dialog-title" v-show="isExplore"> </span>
|
||||||
@@ -77,7 +105,6 @@
|
|||||||
<time-picker ref="calendarPanel" class="nz-dashboard-picker" style="margin-top: -12px;" @change="dateChange"></time-picker>
|
<time-picker ref="calendarPanel" class="nz-dashboard-picker" style="margin-top: -12px;" @change="dateChange"></time-picker>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="seriesItemScreen.length!==seriesItemArrScreen.length" class="more"><i class="el-icon-warning"></i>{{$t('dashboard.panel.moreFirstTitle')}} {{seriesLength}}{{$t('dashboard.panel.moreSecondTitle')}} <span @click="loadScreenMore" class="moreClick">{{$t('dashboard.panel.moreThirdTitle')}}{{seriesItemScreen.length}}</span></div>
|
|
||||||
<div class="line-area" ref="screenShowArea" id="screenShowArea" style="margin-top:0px;" @mouseenter="mouseEnterFullChart" @mouseleave="mouseLeaveFullChart"></div>
|
<div class="line-area" ref="screenShowArea" id="screenShowArea" style="margin-top:0px;" @mouseenter="mouseEnterFullChart" @mouseleave="mouseLeaveFullChart"></div>
|
||||||
<div class="chart-no-data" v-show="noData">No Data</div>
|
<div class="chart-no-data" v-show="noData">No Data</div>
|
||||||
<div class="legend-container legend-container-screen" :id="'screenLegendArea'+chartIndex" @mouseenter="mouseEnterFullChart" @mouseleave="mouseLeaveFullChart" v-show="showLegend" v-scrollBar:legend>
|
<div class="legend-container legend-container-screen" :id="'screenLegendArea'+chartIndex" @mouseenter="mouseEnterFullChart" @mouseleave="mouseLeaveFullChart" v-show="showLegend" v-scrollBar:legend>
|
||||||
@@ -702,11 +729,10 @@
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
let divHeight = self.$refs.legendArea.offsetHeight;
|
let divHeight = self.$refs.legendArea.offsetHeight;
|
||||||
let moreTilteHeight=(self.seriesItem.length==self.seriesItemArr.length)?0:20;
|
|
||||||
if(!chartInfo.height){
|
if(!chartInfo.height){
|
||||||
self.echartStore.resize({height:(400-divHeight-self.$chartResizeTool.titleHeight-self.$chartResizeTool.chartBlankHeight-moreTilteHeight)});
|
self.echartStore.resize({height:(400-divHeight-self.$chartResizeTool.titleHeight-self.$chartResizeTool.chartBlankHeight)});
|
||||||
}else {
|
}else {
|
||||||
self.echartStore.resize({height:(chartInfo.height-divHeight-self.$chartResizeTool.titleHeight-self.$chartResizeTool.chartBlankHeight-moreTilteHeight)});
|
self.echartStore.resize({height:(chartInfo.height-divHeight-self.$chartResizeTool.titleHeight-self.$chartResizeTool.chartBlankHeight)});
|
||||||
}
|
}
|
||||||
if(dataArg&&dataArg.length>0){
|
if(dataArg&&dataArg.length>0){
|
||||||
self.echartStore.clear();
|
self.echartStore.clear();
|
||||||
@@ -839,7 +865,7 @@
|
|||||||
let sumHeight = Math.floor(screenHeight*0.99*0.8);//margin-top:1vh; dailog:80%
|
let sumHeight = Math.floor(screenHeight*0.99*0.8);//margin-top:1vh; dailog:80%
|
||||||
//console.log("11____00",sumHeight,divHeight,legendDiv)
|
//console.log("11____00",sumHeight,divHeight,legendDiv)
|
||||||
self.$refs.screenShowArea.style.height = `${sumHeight - divHeight - self.screenTitleHeight}px`;
|
self.$refs.screenShowArea.style.height = `${sumHeight - divHeight - self.screenTitleHeight}px`;
|
||||||
self.echartModalStore.resize({height: (sumHeight - divHeight - self.screenTitleHeight-5)});//图表的高度
|
self.echartModalStore.resize({height: (sumHeight - divHeight - self.screenTitleHeight)});//图表的高度
|
||||||
console.log(self.seriesItemScreen,self.seriesItemArrScreen);
|
console.log(self.seriesItemScreen,self.seriesItemArrScreen);
|
||||||
self.echartModalStore.off('finished');
|
self.echartModalStore.off('finished');
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -206,9 +206,8 @@ const cn = {
|
|||||||
confirm: "Ok",
|
confirm: "Ok",
|
||||||
cancel: "取消",
|
cancel: "取消",
|
||||||
lastTwoDay: "最近2天",
|
lastTwoDay: "最近2天",
|
||||||
moreFirstTitle:'仅显示',
|
moreTitle:'仅显示20个时间序列。',
|
||||||
moreSecondTitle:'个时间序列。',
|
showAll:'全部显示 ',
|
||||||
moreThirdTitle:'全部显示',
|
|
||||||
},
|
},
|
||||||
metric: {
|
metric: {
|
||||||
name: "指标名称",
|
name: "指标名称",
|
||||||
|
|||||||
@@ -218,9 +218,8 @@ const en = {
|
|||||||
view:'View',//'查看'
|
view:'View',//'查看'
|
||||||
confirm:'Ok',// OK
|
confirm:'Ok',// OK
|
||||||
cancel:'Cancel',//'取消',
|
cancel:'Cancel',//'取消',
|
||||||
moreFirstTitle:'Showing only ',
|
moreTitle:'Showing only20time series. ',
|
||||||
moreSecondTitle:'time series. ',
|
showAll:'Show all ',
|
||||||
moreThirdTitle:'Show all ',
|
|
||||||
},
|
},
|
||||||
metric:{
|
metric:{
|
||||||
name:'Metric name', //"指标名称"
|
name:'Metric name', //"指标名称"
|
||||||
|
|||||||
Reference in New Issue
Block a user