Merge remote-tracking branch 'origin/codeCheck' into codeCheck
This commit is contained in:
@@ -3,7 +3,9 @@
|
|||||||
* index:yAxis 默认第二个参数 y轴的位置
|
* index:yAxis 默认第二个参数 y轴的位置
|
||||||
* type:自定义参数,用于区分是y轴调用还是tooltip调用,以设置不同精度 type =1 y轴调用 type=2 tooltip调用
|
* type:自定义参数,用于区分是y轴调用还是tooltip调用,以设置不同精度 type =1 y轴调用 type=2 tooltip调用
|
||||||
* */
|
* */
|
||||||
function none(value,index){
|
import {parse} from "echarts/extension-src/dataTool/gexf";
|
||||||
|
|
||||||
|
function none(value, index){
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
function short(value,index,type=1){
|
function short(value,index,type=1){
|
||||||
@@ -255,6 +257,16 @@ function days(value,index,type=1){
|
|||||||
* unitIndex:不需要传递,用于递归获取units中的单位
|
* unitIndex:不需要传递,用于递归获取units中的单位
|
||||||
* */
|
* */
|
||||||
function asciiCompute(num,ascii,units,dot=2,unitIndex=0){
|
function asciiCompute(num,ascii,units,dot=2,unitIndex=0){
|
||||||
|
num=Number(num)
|
||||||
|
let carry=0;
|
||||||
|
if(num > 0){
|
||||||
|
let log=Math.log(num)/Math.log(ascii)
|
||||||
|
carry = parseInt(log)
|
||||||
|
num = num / Math.pow(ascii,carry)
|
||||||
|
}
|
||||||
|
return num.toFixed(dot) +' '+units[carry];
|
||||||
|
}
|
||||||
|
function asciiCompute2(num,ascii,units,dot=2,unitIndex=0){
|
||||||
num=Number(num)
|
num=Number(num)
|
||||||
let quotient=num / ascii;
|
let quotient=num / ascii;
|
||||||
if(unitIndex <= units.length-1){
|
if(unitIndex <= units.length-1){
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
<template v-if="item.prop == 'alertRule'">
|
<template v-if="item.prop == 'alertRule'">
|
||||||
<div class="too-long-split" :id="'view-rule-'+scope.row[item.prop].id"
|
<div class="too-long-split" :id="'view-rule-'+scope.row[item.prop].id"
|
||||||
v-if="scope.row[item.prop].alertName">{{scope.row[item.prop].alertName + ' ' + $t('overall.active')}}</div>
|
v-if="scope.row[item.prop].alertName">{{scope.row[item.prop].alertName}}</div>
|
||||||
<template v-else>-</template>
|
<template v-else>-</template>
|
||||||
</template>
|
</template>
|
||||||
<!--<div v-else-if="item.prop == 'type'" class="content-right-options">
|
<!--<div v-else-if="item.prop == 'type'" class="content-right-options">
|
||||||
|
|||||||
@@ -739,6 +739,7 @@
|
|||||||
}
|
}
|
||||||
.nz-icon-navmore{
|
.nz-icon-navmore{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
line-height: 51.5px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,6 @@
|
|||||||
:width="item.width"
|
:width="item.width"
|
||||||
:key="`col-${index}`"
|
:key="`col-${index}`"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:sortable="item.prop!='option'&&item.prop!='status'?'custom':false"
|
|
||||||
:prop="item.prop"
|
:prop="item.prop"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope" :column="item">
|
<template slot-scope="scope" :column="item">
|
||||||
|
|||||||
@@ -380,7 +380,7 @@
|
|||||||
switch(prop){
|
switch(prop){
|
||||||
case 'id': return'mo.id';
|
case 'id': return'mo.id';
|
||||||
case 'name': return'mo.name';
|
case 'name': return'mo.name';
|
||||||
case 'type': return'dict1.value';
|
case 'type': return'dictt.value';
|
||||||
case 'vendor': return'dict.value';
|
case 'vendor': return'dict.value';
|
||||||
default : return prop;
|
default : return prop;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user