Commit 569ee5e6 by 王志慧

fixed

1 parent 63d9f58d
...@@ -65,7 +65,8 @@ export default { ...@@ -65,7 +65,8 @@ export default {
{ {
text: '预计营销结果', text: '预计营销结果',
formatter: data => { 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 { ...@@ -78,7 +79,7 @@ export default {
text: '对话时长', text: '对话时长',
formatter: data => { formatter: data => {
return `<span style="font-weight:700;font-size:20px;">${this.toMinutesAndSeconds(data.duration)}</span>` return `<span style="font-weight:700;font-size:20px;">${this.toMinutesAndSeconds(data.duration)}</span>`
}, }
// formatter: data => { // formatter: data => {
// let strHtml = this.toMinutesAndSeconds(data.duration).h // let strHtml = this.toMinutesAndSeconds(data.duration).h
...@@ -264,6 +265,15 @@ export default { ...@@ -264,6 +265,15 @@ export default {
.content { .content {
color: #333333; color: #333333;
} }
.greenStr {
color: #2cca74;
}
.redStr {
color: #eb4e4e;
}
.grayStr {
color: #999999;
}
} }
} }
.theader { .theader {
...@@ -288,13 +298,17 @@ export default { ...@@ -288,13 +298,17 @@ export default {
font-size: 14px; font-size: 14px;
margin: 0 auto; margin: 0 auto;
} }
.gre { }
color: #2cca74; </style>
background: #e9f9f1; <style>
}
.red { .redStr {
color: #eb4e4e; color: #eb4e4e;
background: #fdeded; }
} .greenStr {
color: #2cca74;
}
.grayStr{
color: #999999;
} }
</style> </style>
\ No newline at end of file \ 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!