Commit 5091a6b6 authored by 陈明豪's avatar 陈明豪

数据统计-接口对接

parent ed0a56dc
......@@ -105,6 +105,6 @@ export default {
<style scoped>
.radarChart {
width: 100%;
height: 584px;
height: 680px;
}
</style>
<template>
<div>
<div v-if="value >= 0" class="upPercentDiv">
+{{ value || 0 }}% <img src="../../../assets/data_statistics/caiwu_icon_sheng.png" height="12" width="8">
</div>
<div v-else class="downPercentDiv">
{{ value || 0 }}% <img src="../../../assets/data_statistics/caiwu_icon_zjiang.png" height="12" width="8">
</div>
</div>
</template>
<script>
export default {
name: 'IncreasePercentTool',
props: ['value'],
data() {
return {}
},
watch: {},
created() {
},
methods: {}
}
</script>
<style scoped>
.upPercentDiv {
padding-top: 8px;
font-size: 12px;
font-family: Microsoft YaHei;
font-weight: bold;
color: #5FB54B;
text-align: right;
}
.downPercentDiv {
padding-top: 8px;
font-size: 12px;
font-family: Microsoft YaHei;
font-weight: bold;
color: #DB4747;
text-align: right;
}
</style>
......@@ -61,7 +61,6 @@ export default {
},
methods: {
formatPercent(percentage) {
console.log('调用格式')
if (this.percent > 0) {
return '+' + this.percent + '%'
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment