Commit 569ee5e6 by 王志慧

fixed

1 parent 63d9f58d
......@@ -65,7 +65,8 @@ export default {
{
text: '预计营销结果',
formatter: data => {
return `<span style="font-weight:700;font-size:20px;">${data.estimatedResult ? data.estimatedResult : '--'}</span>`
let classStr = data.estimatedResult == '成交' ? (data.estimatedResult == '战败' ? 'redStr' : 'greenStr') : 'grayStr'
return `<span class="${classStr}" style="font-weight:700;font-size:20px;">${data.estimatedResult ? data.estimatedResult : '--'}</span>`
}
},
{
......@@ -78,7 +79,7 @@ export default {
text: '对话时长',
formatter: data => {
return `<span style="font-weight:700;font-size:20px;">${this.toMinutesAndSeconds(data.duration)}</span>`
},
}
// formatter: data => {
// let strHtml = this.toMinutesAndSeconds(data.duration).h
......@@ -264,6 +265,15 @@ export default {
.content {
color: #333333;
}
.greenStr {
color: #2cca74;
}
.redStr {
color: #eb4e4e;
}
.grayStr {
color: #999999;
}
}
}
.theader {
......@@ -288,13 +298,17 @@ export default {
font-size: 14px;
margin: 0 auto;
}
.gre {
color: #2cca74;
background: #e9f9f1;
}
.red {
color: #eb4e4e;
background: #fdeded;
}
}
</style>
<style>
.redStr {
color: #eb4e4e;
}
.greenStr {
color: #2cca74;
}
.grayStr{
color: #999999;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!