diff --git a/src/views/system/order/indexjs.js b/src/views/system/order/indexjs.js index d6b2f7d..bf81437 100644 --- a/src/views/system/order/indexjs.js +++ b/src/views/system/order/indexjs.js @@ -184,15 +184,13 @@ export default { } }); this.query = res.data[0]; - this.query.evaluateSatisfaction = null if (row.orderStatus == 'EVALUATED') { - selectOrderEvaluate(id).then(res => { if (res.data) { - if (res.data.evaluateSatisfaction == 'COMMONLY') { + if (res.data[0].evaluateSatisfaction == 'COMMONLY') { this.query.evaluateSatisfaction = '一般' - } else if (res.data.evaluateSatisfaction == 'SATISFIED') { + } else if (res.data[0].evaluateSatisfaction == 'SATISFIED') { this.query.evaluateSatisfaction = '满意' - } else if (res.data.evaluateSatisfaction == 'DISSATISFIED') { + } else if (res.data[0].evaluateSatisfaction == 'DISSATISFIED') { this.query.evaluateSatisfaction = '不满意' } this.loading = false @@ -202,7 +200,7 @@ export default { this.loading = false this.innerVisible4 = true; } - }) + } else { this.loading = false this.innerVisible4 = true;