修改再登大屏问题和显示样式
This commit is contained in:
parent
5cccdf2e29
commit
05c8572071
@ -14,8 +14,8 @@
|
|||||||
<div class="box" :key="keynum" :style="{width:boxSize.width,height:boxSize.height,position:'relative' }">
|
<div class="box" :key="keynum" :style="{width:boxSize.width,height:boxSize.height,position:'relative' }">
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="on">已安装</li>
|
<li class="on">已调试</li>
|
||||||
<li class="off">未安装</li>
|
<li class="off">未调试</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div v-for="(res,index) in data" :style="{width:'150px',height:'150px'}" >
|
<div v-for="(res,index) in data" :style="{width:'150px',height:'150px'}" >
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
<template v-slot>
|
<template v-slot>
|
||||||
<div class="box" :key="keynum" :style="{width:boxSize.width,height:boxSize.height,position:'relative' }"><div class="type">
|
<div class="box" :key="keynum" :style="{width:boxSize.width,height:boxSize.height,position:'relative' }"><div class="type">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="on">已安装</li>
|
<li class="on">已调试</li>
|
||||||
<li class="off">未安装</li>
|
<li class="off">未调试</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div v-for="(res,index) in data" :style="{width:'150px',height:'150px'}" >
|
<div v-for="(res,index) in data" :style="{width:'150px',height:'150px'}" >
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
:title="'东莞-物联网关状态'"
|
:title="'东莞-物联网关状态'"
|
||||||
></offsitegateway> -->
|
></offsitegateway> -->
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<topTitle ref="topTitleRef" :title="t('messages.DevPreviewChart')"></topTitle>
|
<topTitle ref="topTitleRef" :title="t('messages.DevPreviewChart')" ></topTitle>
|
||||||
<topTitle ref="topTitleRef2" :title="t('messages.DevPreviewChart')"></topTitle>
|
<topTitle ref="topTitleRef2" :title="t('messages.DevPreviewChart')"></topTitle>
|
||||||
<topTitle ref="topTitleRef3" :title="t('messages.DevPreviewChart')"></topTitle>
|
<topTitle ref="topTitleRef3" :title="t('messages.DevPreviewChart')"></topTitle>
|
||||||
</div>
|
</div>
|
||||||
@ -194,7 +194,7 @@ function setDataList(val: any) {
|
|||||||
//设置页面数据
|
//设置页面数据
|
||||||
topTitleRef.value.setData({ title: t('messages.OnlineNum'), num: tipdata.ison });
|
topTitleRef.value.setData({ title: t('messages.OnlineNum'), num: tipdata.ison });
|
||||||
topTitleRef2.value.setData({ title: t('messages.TOTAL'), num: tipdata.isall });
|
topTitleRef2.value.setData({ title: t('messages.TOTAL'), num: tipdata.isall });
|
||||||
topTitleRef3.value.setData({ title: t('messages.OffNum'), num: tipdata.isoff });
|
topTitleRef3.value.setData({ title: t('messages.OffNum'), num: tipdata.isoff,color:'rgb(228, 57, 97)' });
|
||||||
changedevlist(val.citylist);
|
changedevlist(val.citylist);
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<template v-slot>
|
<template v-slot>
|
||||||
<div class="box" :key="keynum" :style="{ width: boxWH.width, height: boxWH.height }">
|
<div class="box" :key="keynum" :style="{ width: boxWH.width, height: boxWH.height }">
|
||||||
|
|
||||||
<p>{{ data.num }}<span>{{t('messages.units')}}</span></p>
|
<p :style="{color:data.color?data.color:''}">{{ data.num }}<span>{{t('messages.units')}}</span></p>
|
||||||
<h2>{{ data.title }}</h2>
|
<h2>{{ data.title }}</h2>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -39,6 +39,7 @@ let keynum = ref(0);
|
|||||||
let data = reactive({
|
let data = reactive({
|
||||||
title: "",
|
title: "",
|
||||||
num: 0,
|
num: 0,
|
||||||
|
color: "",
|
||||||
});
|
});
|
||||||
let refborder6 = ref();
|
let refborder6 = ref();
|
||||||
let marginbox = ref();
|
let marginbox = ref();
|
||||||
|
@ -29,7 +29,7 @@ import { clacendTime } from "@/utils/time"
|
|||||||
|
|
||||||
|
|
||||||
let data = reactive({
|
let data = reactive({
|
||||||
date: "2023年08月12日",
|
date: "2023年06月10日",
|
||||||
src: require("/src/assets/img/tufting.png"),
|
src: require("/src/assets/img/tufting.png"),
|
||||||
realityTime: "",
|
realityTime: "",
|
||||||
status: "物联调试中",
|
status: "物联调试中",
|
||||||
@ -45,7 +45,7 @@ const itemSize = reactive({
|
|||||||
});
|
});
|
||||||
|
|
||||||
time = setInterval(function () {
|
time = setInterval(function () {
|
||||||
data.countdown = '距交付剩余:'+clacendTime(1686368149000, new Date().getTime())
|
data.countdown = '距交付剩余:'+clacendTime(1686326400000, new Date().getTime())
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
<div class="box" :style="{ width: '100%', height: '100%',position:'relative' }">
|
<div class="box" :style="{ width: '100%', height: '100%',position:'relative' }">
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="on">已安装</li>
|
<li class="on">已调试</li>
|
||||||
<li class="off">未安装</li>
|
<li class="off">未调试</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div v-for="(res, index) in data_dj" :style="{ width: '150px', height: '150px' }">
|
<div v-for="(res, index) in data_dj" :style="{ width: '150px', height: '150px' }">
|
||||||
@ -24,8 +24,8 @@
|
|||||||
<div class="box" :style="{ width: '100%', height: '100%',position:'relative' }">
|
<div class="box" :style="{ width: '100%', height: '100%',position:'relative' }">
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="on">已安装</li>
|
<li class="on">已调试</li>
|
||||||
<li class="off">未安装</li>
|
<li class="off">未调试</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div v-for="(res, index) in data_cgq" :style="{ width: '150px', height: '150px' }">
|
<div v-for="(res, index) in data_cgq" :style="{ width: '150px', height: '150px' }">
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
<div class="box" :style="{ width: '100%', height: '100%',position:'relative' }">
|
<div class="box" :style="{ width: '100%', height: '100%',position:'relative' }">
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="on">已安装</li>
|
<li class="on">已调试</li>
|
||||||
<li class="off">未安装</li>
|
<li class="off">未调试</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div :style="{ width: '150px', height: '150px' }">
|
<div :style="{ width: '150px', height: '150px' }">
|
||||||
@ -30,8 +30,8 @@
|
|||||||
<div class="box" :style="{ width: '100%', height: '100%',position:'relative' }">
|
<div class="box" :style="{ width: '100%', height: '100%',position:'relative' }">
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="on">已安装</li>
|
<li class="on">已调试</li>
|
||||||
<li class="off">未安装</li>
|
<li class="off">未调试</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div v-for="item in data_btn" :style="{ width: '150px', height: '150px' }">
|
<div v-for="item in data_btn" :style="{ width: '150px', height: '150px' }">
|
||||||
|
Loading…
Reference in New Issue
Block a user