Authored by 王涛

Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'

拓扑图标更改



See merge request !91

1.27 KB | W: | H:

1.32 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.31 KB | W: | H:

1.32 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.3 KB | W: | H:

1.33 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -184,6 +184,7 @@ export default {
let seriesCapacityData=[];//容量
let seriesUsageRateData=[];//使用率
let seriesUsageValueData=[];//使用量
let seriesGrowthData=[];//增长量
dataData.map(item=>{
xAxisList.push(item.periodVal);
if(item.capacityValue || item.capacityValue==0){
... ... @@ -195,6 +196,10 @@ export default {
if(item.usageValue || item.usageValue==0){
seriesUsageValueData.push(item.usageValue)
}
//增长量
if(item.growth || item.growth==0){
seriesGrowthData.push(item.growth);
}
})
if(seriesUsageValueData.length>0){
series.push({
... ... @@ -209,7 +214,6 @@ export default {
data:seriesUsageValueData
})
}
if(seriesCapacityData.length>0){
series.push({
type:'bar',
... ... @@ -218,11 +222,24 @@ export default {
})
}else{
series.push({
type:'line',
type:'bar',
name:'',
data:seriesCapacityData
})
}
if(seriesGrowthData.length>0){
series.push({
type:'bar',
name:'增长量',
data:seriesGrowthData
})
}else{
series.push({
type:'bar',
name:'',
data:seriesGrowthData
})
}
if(seriesUsageRateData.length>0){
series.push({
type:'line',
... ...
... ... @@ -135,6 +135,19 @@ export const monitorCustomBarLineChart = {
placeholder: '',
value: 0,
},
{
type: 'el-select',
label: '叠加类型',
name: 'stackStype',
required: false,
placeholder: '',
selectOptions: [
{code: 'total', name: '堆叠'},
{code: 'barGap', name: '叠加'},
{code: 'noStack', name: '不堆叠'},
],
value: 'total'
},
],
},
{
... ...
... ... @@ -42,6 +42,14 @@ export const monitorCustomLiquidFillChart = {
],
value: 'column'
},
{
type: 'el-input-text',
label: '提示信息',
name: 'formula',
required: false,
placeholder: '',
value: '增长率=(本次值-上次值)/上次值;平均增长率 = 总增长率/总增长次数',
},
[
{
name: '水球设置',
... ...
... ... @@ -550,6 +550,7 @@
color: #0d82e9;
cursor: pointer;
margin-right:5px;
text-decoration: underline;
}
.box-item{
margin-left:5px;
... ...
... ... @@ -200,6 +200,7 @@ export default {
flag=val[1].join(",");
}
if(this.optionsSetup.vuexFlagKpiId==kpiId){
this.hackReset=false;
this.optionsData.dynamicData.contextData.flag=flag;
}
}
... ... @@ -621,7 +622,16 @@ export default {
barBorderRadius: null
}
item.barMinHeight=2;
if(this.optionsSetup.stackStype=='total'){
item.stack=this.optionsSetup.stackStype
}else if(this.optionsSetup.stackStype=='barGap'){
item.stack=false;
item.barGap='-100%';
}else if(this.optionsSetup.stackStype=='noStack'){
item.stack=false;
}else{
item.stack='total';
}
//切换页面后bar的宽度改变
item.barWidth = this.optionsSetup.maxWidth;
}else if(item.type=='line'){
... ...
... ... @@ -15,7 +15,15 @@
</div>
</div>
<div class="wave-title" :style="subTitleStyle" v-if="index==0">当前使用率</div>
<div class="wave-title" :style="subTitleStyle" v-if="index==1">{{getIndex2Name()}}</div>
<div class="wave-title" :style="subTitleStyle" v-if="index==1">
<span>{{getIndex2Name()}}</span>
<el-tooltip v-model="visible" placement="right-start">
<template #content>
<div v-for="(item,index) in formula" :key="index" style="padding:5px;">{{item}}</div>
</template>
<i class="el-icon-info" v-if="optionsSetup.formula" style="color:rgb(13, 130, 233);" @mouseenter="optionsSetup.formula?visible = true:visible = false"/>
</el-tooltip>
</div>
</div>
</div>
... ... @@ -36,6 +44,7 @@ export default {
},
data() {
return {
visible:false,
// topStyle:'',//水波纹的大小
fillData:[],//数据
// topNum:0,//水波纹的大小
... ... @@ -127,6 +136,14 @@ export default {
buttonVal(){
return this.buttonVals;
},
//公式分行
formula(){
let arr=[];
if(this.optionsSetup.formula){
arr=this.optionsSetup.formula.split(";")
}
return arr;
},
styleObj() {
return {
position: this.ispreview ? "absolute" : "static",
... ...