|
@@ -29,7 +29,8 @@
|
|
|
<div v-html="item.pointer" /> -->
|
|
|
<div>
|
|
|
{{ item.label }}
|
|
|
- <span :class="Number(item.chainRatio) > 0 ? 'textRed count' : 'textBlue count'">{{ item.countStr }}</span>
|
|
|
+<!-- <span :class="Number(item.chainRatio) > 0 ? 'textRed count' : 'textBlue count'">{{ item.countStr }}</span>-->
|
|
|
+ <span :class="isRed(item.label) ? 'textRed count' : 'textBlue count'">{{ item.countStr }}</span>
|
|
|
<span>
|
|
|
{{ item.label.includes('率') ? '%' : '个' }}
|
|
|
</span>
|
|
@@ -188,6 +189,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
changeList() {},
|
|
|
+ // 判断数字红色
|
|
|
+ isRed(label) {
|
|
|
+ return label.search(/^(延期需求|紧急需求率)/) > -1
|
|
|
+ },
|
|
|
changeTab(type, value) {
|
|
|
this[type] = value
|
|
|
this.$emit('search', { [type]: value })
|