From c65c1c77843fd627327b8e10bc3dd0baa699ff49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 7 Mar 2023 15:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AE=E8=83=8E=E7=94=9F?= =?UTF-8?q?=E5=91=BD=E5=91=A8=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/tireManagement/lifecycle/index.vue | 48 +++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/ruoyi-ui/src/views/tireManagement/lifecycle/index.vue b/ruoyi-ui/src/views/tireManagement/lifecycle/index.vue index 0aba820..fc4e77c 100644 --- a/ruoyi-ui/src/views/tireManagement/lifecycle/index.vue +++ b/ruoyi-ui/src/views/tireManagement/lifecycle/index.vue @@ -3,9 +3,9 @@
+ style="color:white;line-height:26px;margin-left: 10px;width: calc(100% - 150px);display: inline-block;vertical-align:top;">
{{ tireInfo.title }}
-
品牌:{{ tireInfo.info1 }} 规格:{{ tireInfo.info2 }} 花纹:{{ tireInfo.info3 }}
+
品牌:{{ tireInfo.info1 }} 规格:{{ tireInfo.info2 }} 花纹:{{ tireInfo.info3 }}
使用时间   {{ tireInfo.info4 }}   @@ -16,7 +16,7 @@
预计剩余里程   - {{ tireInfo.info7 }}   + {{ tireInfo.info7 }}km   最长连续工作时间   {{ tireInfo.info8 }}   历史最高胎温   @@ -36,7 +36,7 @@ 已行驶 约占整个生命周期的{{ percentage }}% {{ run }}km -
+
@@ -73,20 +73,23 @@ const way = ref() const wayWheel = (e) => { way.value.scrollLeft += (e.deltaY || 0) } + const percentage = '3.33' + const run = '3.33' + const tireInfo = { title: 'F35D090D785', info1: '品牌', info2: '规格', info3: '花纹', - info4: '使用时间', - info5: '最长连续报警时间', - info6: '历史最高胎压', - info7: '预计剩余里程', - info8: '最长连续工作时间', - info9: '历史最高胎温', - info10: '报警次数', + info4: '10h', + info5: '10h', + info6: '40°C', + info7: '666', + info8: '10h', + info9: '40°C', + info10: '1', war: [ { type: '高温', @@ -94,8 +97,6 @@ const tireInfo = { } ] } -const wayList = ref([]) -const repetitiveBackground = ref(0) let list = [ { @@ -131,6 +132,7 @@ let list = [ info: '5' }, ] + const fun = () => { list = list.sort((a, b) => { return a.time - b.time @@ -150,6 +152,10 @@ const fun = () => { wayList.value = arr repetitiveBackground.value = Math.ceil(arr.at(-1).step / 10) } + +const wayList = ref([]) +const repetitiveBackground = ref(0) + fun()