再登大屏显示修改
This commit is contained in:
parent
eec6a1914b
commit
5cccdf2e29
@ -1,8 +1,8 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "iconfont"; /* Project id 3879194 */
|
font-family: "iconfont"; /* Project id 3879194 */
|
||||||
src: url('//at.alicdn.com/t/c/font_3879194_295z5us9seh.woff2?t=1679810021855') format('woff2'),
|
src: url('//at.alicdn.com/t/c/font_3879194_0vtcz1yxgvk.woff2?t=1683879014134') format('woff2'),
|
||||||
url('//at.alicdn.com/t/c/font_3879194_295z5us9seh.woff?t=1679810021855') format('woff'),
|
url('//at.alicdn.com/t/c/font_3879194_0vtcz1yxgvk.woff?t=1683879014134') format('woff'),
|
||||||
url('//at.alicdn.com/t/c/font_3879194_295z5us9seh.ttf?t=1679810021855') format('truetype');
|
url('//at.alicdn.com/t/c/font_3879194_0vtcz1yxgvk.ttf?t=1683879014134') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconfont {
|
.iconfont {
|
||||||
@ -13,6 +13,10 @@
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-zhongyingwen:before {
|
||||||
|
content: "\e607";
|
||||||
|
}
|
||||||
|
|
||||||
.icon-baojingxinxi:before {
|
.icon-baojingxinxi:before {
|
||||||
content: "\e636";
|
content: "\e636";
|
||||||
}
|
}
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
<header2
|
<header2
|
||||||
ref="headerref"
|
ref="headerref"
|
||||||
:width="'100%'"
|
:width="'100%'"
|
||||||
:height="'100px'"
|
:height="'150px'"
|
||||||
:title="'再登-环境物联管理系统'"
|
:title="'再登-环境物联管理系统'"
|
||||||
:titleTip="[]"
|
:titleTip="titleTip"
|
||||||
:typeFun="['time']"
|
:typeFun="['time']"
|
||||||
:alarmType="[]"
|
:alarmType="[]"
|
||||||
></header2>
|
></header2>
|
||||||
@ -67,8 +67,22 @@ import { getSensorByDept } from "@/http/PaintShopView/index";
|
|||||||
import bottom from "./bottom.vue";
|
import bottom from "./bottom.vue";
|
||||||
import right from "./right.vue";
|
import right from "./right.vue";
|
||||||
import top from "./top.vue";
|
import top from "./top.vue";
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from "vue-i18n";
|
||||||
let {t} = useI18n();
|
let { t } = useI18n();
|
||||||
|
let titleTip = [
|
||||||
|
{
|
||||||
|
color: "#E43961",
|
||||||
|
name: t("messages.abnormal"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
color: "#20AEC5",
|
||||||
|
name: t("messages.NoAbnormal"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
color: "#A7A6BD",
|
||||||
|
name: t("messages.disconnection"),
|
||||||
|
},
|
||||||
|
];
|
||||||
const store = Offsite();
|
const store = Offsite();
|
||||||
let Acontent = ref();
|
let Acontent = ref();
|
||||||
let time = ref(null);
|
let time = ref(null);
|
||||||
@ -89,7 +103,9 @@ async function getSensorByDeptfun() {
|
|||||||
|
|
||||||
if (result.code == 200) {
|
if (result.code == 200) {
|
||||||
topref.value.setcontentData(result.data);
|
topref.value.setcontentData(result.data);
|
||||||
bottomref.value.setcontentData({power: {"5月": 445, "4月":1102 , "3月": 1861, "2月": 1754, "1月": 1344}});
|
bottomref.value.setcontentData({
|
||||||
|
power: { "5月": 445, "4月": 1102, "3月": 1861, "2月": 1754, "1月": 1344 },
|
||||||
|
});
|
||||||
// bottomref.value.setcontentData(result.data);
|
// bottomref.value.setcontentData(result.data);
|
||||||
rightref.value.setcontentData(result.data);
|
rightref.value.setcontentData(result.data);
|
||||||
}
|
}
|
||||||
@ -100,11 +116,17 @@ function getWebsocket(val) {
|
|||||||
let data = JSON.parse(val);
|
let data = JSON.parse(val);
|
||||||
if (data.type == "electronicView") {
|
if (data.type == "electronicView") {
|
||||||
// store.changenoise(data.msg);
|
// store.changenoise(data.msg);
|
||||||
|
|
||||||
topref.value.setcontentData(data.msg);
|
topref.value.setcontentData(data.msg);
|
||||||
bottomref.value.setcontentData(data.msg);
|
bottomref.value.setcontentData(data.msg);
|
||||||
rightref.value.setcontentData(data.msg);
|
rightref.value.setcontentData(data.msg);
|
||||||
}
|
}
|
||||||
|
if (data.type == "dust") {
|
||||||
|
if (data.msg.devId == "ae578cd0-efd1-11ed-b2ee-2d727e0cafab") {
|
||||||
|
rightref.value.setcontentData({
|
||||||
|
dust: { pm25: data.msg.pm25, pm10: data.msg.pm10 },
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
}
|
}
|
||||||
function errWebsocket(val) {
|
function errWebsocket(val) {
|
||||||
@ -166,7 +188,7 @@ onUnmounted(() => {
|
|||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
--header: 100px;
|
--header: 150px;
|
||||||
height: calc(1080px - var(--header));
|
height: calc(1080px - var(--header));
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -198,8 +198,10 @@ let {t} = useI18n();
|
|||||||
|
|
||||||
// Productionref.value.changeData(ProductionOption.option)
|
// Productionref.value.changeData(ProductionOption.option)
|
||||||
// pmref.value.setData({two:10,ten:10})
|
// pmref.value.setData({two:10,ten:10})
|
||||||
pm25ref.value.setData(10)
|
console.log(val);
|
||||||
pm10ref.value.setData(10)
|
|
||||||
|
pm25ref.value.setData(val.dust.pm25)
|
||||||
|
pm10ref.value.setData(val.dust.pm10)
|
||||||
// pmref.value.setData({two:val.dust.pm25,ten:val.dust.pm10})
|
// pmref.value.setData({two:val.dust.pm25,ten:val.dust.pm10})
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
@ -260,8 +260,10 @@ const powerBox = (width: any, height: any) => {
|
|||||||
// }
|
// }
|
||||||
function setcontentData(val){
|
function setcontentData(val){
|
||||||
// verticalNum3.value.setData(val.FIRE,'icon-ranqi',5,"")
|
// verticalNum3.value.setData(val.FIRE,'icon-ranqi',5,"")
|
||||||
verticalNum4.value.setData(val.noise,'icon-shengyin',120,"dB")
|
// verticalNum4.value.setData(val.noise,'icon-shengyin',120,"dB")
|
||||||
verticalNum5.value.setData(val.Smoke,'icon-yanwubaojingqi',200,"")
|
// verticalNum5.value.setData(val.Smoke,'icon-yanwubaojingqi',200,"ppm")
|
||||||
|
verticalNum4.value.setData(52,'icon-shengyin',120,"dB")
|
||||||
|
verticalNum5.value.setData(100,'icon-yanwubaojingqi',200,"ppm")
|
||||||
// verticalNum6.value.setData(val.TVOC_CH2O.CH2O,'icon-app_icons--',5,"mg/m3")
|
// verticalNum6.value.setData(val.TVOC_CH2O.CH2O,'icon-app_icons--',5,"mg/m3")
|
||||||
// verticalNum7.value.setData(val.TVOC_CH2O.TVOC,'icon-TVOC-Outlined',5,"PPM")
|
// verticalNum7.value.setData(val.TVOC_CH2O.TVOC,'icon-TVOC-Outlined',5,"PPM")
|
||||||
// console.log(pmref.value);
|
// console.log(pmref.value);
|
||||||
|
@ -11,14 +11,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="$style['container']" ref="appRef">
|
<div :class="$style['container']" ref="appRef">
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<el-dropdown effect="dark" @command="changelang">
|
<el-dropdown effect="dark" @command="changelang" >
|
||||||
<span class="el-dropdown-link">
|
<span class="el-dropdown-link">
|
||||||
{{ lang }}
|
<!-- <img src="../assets/svg/gateway.svg" alt="" class="langimg" height="20px" width="20px"> -->
|
||||||
|
<i class="iconfont icon-zhongyingwen langimg"></i>
|
||||||
</span>
|
</span>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item command="简体中文">简体中文</el-dropdown-item>
|
<el-dropdown-item :class="'简体中文' == lang?'select':'' " command="简体中文">简体中文</el-dropdown-item>
|
||||||
<el-dropdown-item command="English/USD">English/USD</el-dropdown-item>
|
<el-dropdown-item :class="'English/USD' == lang?'select':'' " command="English/USD">English/USD</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
@ -52,6 +53,7 @@ import { ref, onMounted, onUnmounted } from "vue";
|
|||||||
import list from "@/components/assembly/indexList.vue";
|
import list from "@/components/assembly/indexList.vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { getStoredLanguage, saveStoredLanguage } from "@/utils/languageStorage";
|
import { getStoredLanguage, saveStoredLanguage } from "@/utils/languageStorage";
|
||||||
|
let langicon=require("@/assets/svg/language.svg")
|
||||||
window.document.title = "大屏物联管理系统";
|
window.document.title = "大屏物联管理系统";
|
||||||
let { t } = useI18n();
|
let { t } = useI18n();
|
||||||
let routerList = [
|
let routerList = [
|
||||||
@ -274,6 +276,7 @@ let routerList = [
|
|||||||
];
|
];
|
||||||
let lang=ref(getStoredLanguage()||'简体中文')
|
let lang=ref(getStoredLanguage()||'简体中文')
|
||||||
function changelang(val){
|
function changelang(val){
|
||||||
|
|
||||||
saveStoredLanguage(val)
|
saveStoredLanguage(val)
|
||||||
location.reload()
|
location.reload()
|
||||||
}
|
}
|
||||||
@ -288,6 +291,13 @@ onUnmounted(() => {});
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@import '../assets/css/iconfont.css';
|
||||||
|
.langimg{
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
font-size: 50px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
.itemlist {
|
.itemlist {
|
||||||
height: 1030px;
|
height: 1030px;
|
||||||
width: 1920px;
|
width: 1920px;
|
||||||
@ -313,6 +323,7 @@ onUnmounted(() => {});
|
|||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dropdown-menu {
|
.el-dropdown-menu {
|
||||||
background-color: #303133 !important;
|
background-color: #303133 !important;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -324,6 +335,10 @@ onUnmounted(() => {});
|
|||||||
background-color: #303133 !important;
|
background-color: #303133 !important;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
:deep(.select) {
|
||||||
|
background-color: #e4f5f5 !important;
|
||||||
|
color: #409EFF !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
Loading…
Reference in New Issue
Block a user