|
@@ -134,7 +134,7 @@
|
|
|
</td>
|
|
</td>
|
|
|
<td class="record-cell">
|
|
<td class="record-cell">
|
|
|
<span class="intention-degree">
|
|
<span class="intention-degree">
|
|
|
- {{ getIntentionDegreeFromRecord(record) }}%
|
|
|
|
|
|
|
+ {{ getIntentionDegreeFromRecord(record) }}
|
|
|
</span>
|
|
</span>
|
|
|
</td>
|
|
</td>
|
|
|
<td class="record-cell">{{ record.createTime }}</td>
|
|
<td class="record-cell">{{ record.createTime }}</td>
|
|
@@ -262,7 +262,7 @@
|
|
|
<div class="progress-bar-modern">
|
|
<div class="progress-bar-modern">
|
|
|
<div class="progress-fill-modern"
|
|
<div class="progress-fill-modern"
|
|
|
:style="{
|
|
:style="{
|
|
|
- width: getIntentionDegree() + '%',
|
|
|
|
|
|
|
+ width: getIntentionDegree() ,
|
|
|
background: getProgressGradient(getIntentionDegree())
|
|
background: getProgressGradient(getIntentionDegree())
|
|
|
}"
|
|
}"
|
|
|
:class="getIntentionClass(getIntentionDegree())">
|
|
:class="getIntentionClass(getIntentionDegree())">
|
|
@@ -556,9 +556,7 @@ export default {
|
|
|
return -1;
|
|
return -1;
|
|
|
}
|
|
}
|
|
|
const latestRecord = this.communicationRecords[0];
|
|
const latestRecord = this.communicationRecords[0];
|
|
|
- const degree = parseInt(latestRecord.intentionDegree);
|
|
|
|
|
- // 如果是有效数字且在 0-100 之间,返回该值,否则返回 -1 表示无数据
|
|
|
|
|
- return (degree >= 0 && degree <= 100) ? degree : -1;
|
|
|
|
|
|
|
+ return latestRecord.intentionDegree
|
|
|
},
|
|
},
|
|
|
// 获取单条记录的风险等级数值
|
|
// 获取单条记录的风险等级数值
|
|
|
getRecordAttritionLevel(record) {
|
|
getRecordAttritionLevel(record) {
|
|
@@ -580,8 +578,7 @@ export default {
|
|
|
// 获取单条记录的客户意向度
|
|
// 获取单条记录的客户意向度
|
|
|
getIntentionDegreeFromRecord(record) {
|
|
getIntentionDegreeFromRecord(record) {
|
|
|
if (!record) return 0;
|
|
if (!record) return 0;
|
|
|
- const degree = parseInt(record.intentionDegree);
|
|
|
|
|
- return (degree >= 0 && degree <= 100) ? degree : 0;
|
|
|
|
|
|
|
+ return record.intentionDegree;
|
|
|
},
|
|
},
|
|
|
// 获取流失风险等级样式类
|
|
// 获取流失风险等级样式类
|
|
|
getRiskLevelClass() {
|
|
getRiskLevelClass() {
|