Commit 05693548 authored by 纪泽龙's avatar 纪泽龙

优化

parent 07a700b5
File added
......@@ -2,21 +2,28 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2026-03-11 09:36:51
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-03-11 17:25:53
* @LastEditTime: 2026-03-12 14:24:05
* @FilePath: /chuanganqi/src/views/ind2.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="device-box f-d-c">
<div class="back">
<!-- <div class="back">
<el-link @click="$router.back()" type="primary">返回</el-link>
</div>
</div> -->
<div class="t f-c">
<div class="title" v-for="(item, index) in titleArr" :key="item.text">
<div class="text">{{ item.text }}</div>
<div class="num" :class="index == 1 ? 'small-text' : ''">
{{ item.num }}
</div>
<div
v-if="index == 1"
class="num"
:class="index == 1 ? 'small-text' : ''"
>
{{ item.num2 }}
</div>
</div>
</div>
<div class="b">
......@@ -61,8 +68,9 @@ export default {
num: 111,
},
{
text: "开始时间",
text: "老化时间",
num: 111,
num2: "2026-3-10 12:12",
},
{
text: "老化进度",
......@@ -85,7 +93,18 @@ export default {
},
created(e) {
this.titleArr[0].num = this.$route.query.code;
this.titleArr[1].num = this.$route.query.startTime;
this.titleArr[1].num = "起" + this.$route.query.startTime;
console.log(
this.$dayjs(this.$route.query.startTime)
.add(3, "day")
.format("YYYY-MM-DD HH:MM"),
);
this.titleArr[1].num2 =
"止" +
( this.$dayjs(this.$route.query.startTime)
.add(3, "day")
.format("YYYY-M-DD"))+" "+this.$route.query.startTime.slice(10) ;
this.titleArr[2].num = this.$route.query.jd;
this.change(+this.$route.query.allNum);
},
......@@ -106,11 +125,14 @@ export default {
this.titleArr[4].num = num - gzNum;
this.titleArr[5].num = gzNum;
for (let i = 0; i < myNum; i++) {
const c =(32 + Math.ceil(Math.random() * 5)) /10 +'';
let data = {
a: "DEV-" + (i + 1),
i: i + 1,
c: 30 + Math.ceil(Math.random() * 4),
c:c[0]+c[1]+c[2]
};
if (i >= num) {
data = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment