From dbbffd39c2ef1cfeed690ca99246fb71a132780d Mon Sep 17 00:00:00 2001 From: liuyongli <1598631486@qq.com> Date: Thu, 10 Mar 2022 14:22:18 +0800 Subject: [PATCH] no message --- src/views/Scoresituation/index.vue | 39 ++++++++++++++++++------------ 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/src/views/Scoresituation/index.vue b/src/views/Scoresituation/index.vue index 12d13a0..5d26a76 100644 --- a/src/views/Scoresituation/index.vue +++ b/src/views/Scoresituation/index.vue @@ -30,27 +30,34 @@ export default { data() { return { initData: {}, - state:'', + state: "", + numerical: "", }; }, - methods: { - // onSubmit() { - // let state = state; - // if (initData.total >= 80 && initData.total <=100){ - // state << "优秀" - // }else if (initData.total >= 50 && initData.total <=70){ - // state ="良好" - // } - // else if (initData.total >= 20 && initData.total <=20){ - // state ="一般" - // } - // console.log("submit!"); - // }, - + methods: { + onSubmit() { + let state = state; + // if (initData.total >= 80 && initData.total <= 100) { + // state = "优秀"; + // } else if (initData.total >= 50 && initData.total <= 70) { + // state = "良好"; + // } else if (initData.total >= 20 && initData.total <= 20) { + // state = "一般"; + // } + // let numerical = numerical; + // if ((state = 100 && state >= 70 && state >= 40)) { + // numerical = "最高值"; + // } else if (state > 90 && state >= 50 && state >= 30) { + // numerical = "中间值"; + // } else if (state > 80 && state >= 50 && state >= 20) { + // numerical = "最低值"; + // } + console.log("submit!"); + }, }, created() { this.initData = this.getScoreData; - console.log( this.initData) + console.log(this.initData); }, };