commit
This commit is contained in:
@@ -327,12 +327,14 @@ layout("/mobile/platform.html"){
|
||||
})
|
||||
const result = (resultScore / source) * 100
|
||||
|
||||
if (result >= 80) {
|
||||
if (result > 95) {
|
||||
this.reviewResult = '非常满意'
|
||||
} else if (result > 80 && result <= 94) {
|
||||
this.reviewResult = '满意'
|
||||
} else if (result >= 60 && result <= 79) {
|
||||
this.reviewResult = '基本满意'
|
||||
} else if (result > 60 && result <= 79) {
|
||||
this.reviewResult = '良好'
|
||||
} else {
|
||||
this.reviewResult = '不满意'
|
||||
this.reviewResult = '一般'
|
||||
}
|
||||
|
||||
/*this.bzList.forEach(v => {
|
||||
@@ -345,8 +347,6 @@ layout("/mobile/platform.html"){
|
||||
} else {
|
||||
this.reviewResult = '不满意'
|
||||
}*/
|
||||
console.log(source)
|
||||
console.log(resultScore)
|
||||
console.log(this.reviewResult)
|
||||
vant.Dialog.alert({
|
||||
title: '测评结果',
|
||||
@@ -354,14 +354,26 @@ layout("/mobile/platform.html"){
|
||||
confirmButtonColor: '#1867b0'
|
||||
})
|
||||
} else if (this.commentatorData.assessmentMode === 2) {
|
||||
const result = this.bzList.filter(v => v.resultScore === '满意' || v.resultScore === '基本满意')
|
||||
if (result.length >= 8) {
|
||||
const result = this.bzList.filter(v => v.resultScore === '满意')
|
||||
const satisfactionPercentage = (result.length / this.bzList.length) * 100;
|
||||
|
||||
if (satisfactionPercentage > 95) {
|
||||
this.reviewResult = '非常满意'
|
||||
} else if (satisfactionPercentage > 80 && satisfactionPercentage <= 94) {
|
||||
this.reviewResult = '满意'
|
||||
} else if (satisfactionPercentage > 60 && satisfactionPercentage <= 79) {
|
||||
this.reviewResult = '良好'
|
||||
} else {
|
||||
this.reviewResult = '一般'
|
||||
}
|
||||
|
||||
/*if (result.length >= 8) {
|
||||
this.reviewResult = '满意'
|
||||
} else if (result.length >= 6 && result.length <= 7) {
|
||||
this.reviewResult = '基本满意'
|
||||
} else {
|
||||
this.reviewResult = '不满意'
|
||||
}
|
||||
}*/
|
||||
console.log(result)
|
||||
console.log(this.reviewResult)
|
||||
vant.Dialog.alert({
|
||||
|
||||
Reference in New Issue
Block a user