CN-760 score跳动问题
This commit is contained in:
@@ -86,7 +86,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="item.prop === 'score'" >
|
<template v-else-if="item.prop === 'score'" >
|
||||||
{{scope.row[item.prop] ? unitConvert(scope.row[item.prop], unitTypes.number).join(' ') : '0'}}
|
{{scope.row[item.prop] ? unitConvert(scope.row[item.prop], unitTypes.number).join(' ') : ''}}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<template v-if="showUnit && item.unit">
|
<template v-if="showUnit && item.unit">
|
||||||
@@ -655,10 +655,8 @@ export default {
|
|||||||
}
|
}
|
||||||
this.toggleLoading(false)
|
this.toggleLoading(false)
|
||||||
// 查询需要单独查询的,且需要展示环比图标,列的当前周期的数据
|
// 查询需要单独查询的,且需要展示环比图标,列的当前周期的数据
|
||||||
let scoreNum = 0
|
|
||||||
this.customTableTitles.forEach(tableColumn => {
|
this.customTableTitles.forEach(tableColumn => {
|
||||||
if (tableColumn.columnType === tableColumnType.chainRatio && !tableColumn.isInMainUrl) {
|
if (tableColumn.columnType === tableColumnType.chainRatio && !tableColumn.isInMainUrl) {
|
||||||
scoreNum++
|
|
||||||
get(self.gerColumnUrl(tableColumn), queryParams).then(response => {
|
get(self.gerColumnUrl(tableColumn), queryParams).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
const columnList = response.data.result
|
const columnList = response.data.result
|
||||||
@@ -674,7 +672,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.scoreGroup = item.scoreGroup ? [...item.scoreGroup, 0] : [0]
|
item.scoreGroup = item.scoreGroup ? [...item.scoreGroup, 0] : [0]
|
||||||
}
|
}
|
||||||
if (scoreNum >= 5) {
|
if (item.scoreGroup.length >= 5) {
|
||||||
let score = 0
|
let score = 0
|
||||||
item.scoreGroup.forEach(i => {
|
item.scoreGroup.forEach(i => {
|
||||||
score = Number(score) + Number(i)
|
score = Number(score) + Number(i)
|
||||||
|
|||||||
Reference in New Issue
Block a user