From 9b2e0c608a4ec2bf036cd5fabf0b2ad7b229a1b4 Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 30 Nov 2022 16:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BB=B7=E6=BB=A1=E6=84=8F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/order/indexjs.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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;