修改大屏首页图片 机械分厂车间环境柱状图显示
Before Width: | Height: | Size: 250 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 30 KiB |
BIN
src/assets/indexImg/realtimeSecurityJixie.png
Normal file
After Width: | Height: | Size: 53 KiB |
@ -55,7 +55,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, reactive, ref, watch } from "vue";
|
import { onMounted, reactive, ref, watch,onUnmounted } from "vue";
|
||||||
import { calcWH } from "@/components/ts/selfAdaption";
|
import { calcWH } from "@/components/ts/selfAdaption";
|
||||||
import installtable from "./chart/installtable.vue";
|
import installtable from "./chart/installtable.vue";
|
||||||
import devList from "./chart/deviceslist.vue";
|
import devList from "./chart/deviceslist.vue";
|
||||||
@ -65,6 +65,7 @@ import { useInPlantProductsStore } from "@/store/module/InPlantProducts";
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
let {t} = useI18n();
|
let {t} = useI18n();
|
||||||
const store = useInPlantProductsStore();
|
const store = useInPlantProductsStore();
|
||||||
|
let timer = null;
|
||||||
let props = defineProps<{
|
let props = defineProps<{
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
@ -136,8 +137,18 @@ async function getDeviceInPlantfun() {
|
|||||||
res["index"] = index + 1;
|
res["index"] = index + 1;
|
||||||
return res
|
return res
|
||||||
});
|
});
|
||||||
|
//显示优化 防止刚进页面时候数据过多
|
||||||
|
if (newdata.length > 20) {
|
||||||
|
let newdatatemp = newdata.slice(0, 20);
|
||||||
|
store.setDevList(newdatatemp);
|
||||||
|
timer = setTimeout(() => {
|
||||||
store.setDevList(newdata);
|
store.setDevList(newdata);
|
||||||
|
}, 1000);
|
||||||
|
} else {
|
||||||
|
store.setDevList(newdata);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,6 +191,9 @@ onMounted(() => {
|
|||||||
getprogressOfCorpsfun();
|
getprogressOfCorpsfun();
|
||||||
// setdata();
|
// setdata();
|
||||||
});
|
});
|
||||||
|
onUnmounted(() => {
|
||||||
|
clearTimeout(timer);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scope>
|
<style scope>
|
||||||
|
@ -12,16 +12,8 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div style="display: flex;justify-content: space-evenly; align-items: center; margin-bottom: 10px;">
|
<div style="display: flex;justify-content: space-evenly; align-items: center; margin-bottom: 10px;">
|
||||||
<chart
|
<chart :title="powerOption.title" :option="powerOption.option" ref="powerref"></chart>
|
||||||
:title="powerOption.title"
|
<chart :title="powerOption.title" :option="powerOption.option" ref="Productionref"></chart>
|
||||||
:option="powerOption.option"
|
|
||||||
ref="powerref"
|
|
||||||
></chart>
|
|
||||||
<chart
|
|
||||||
:title="powerOption.title"
|
|
||||||
:option="powerOption.option"
|
|
||||||
ref="Productionref"
|
|
||||||
></chart>
|
|
||||||
<!-- <div>
|
<!-- <div>
|
||||||
<border3 ref="borderref">
|
<border3 ref="borderref">
|
||||||
<template v-slot>
|
<template v-slot>
|
||||||
@ -213,7 +205,7 @@ function setcontentData(val){
|
|||||||
return color[params.dataIndex];
|
return color[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
barWidth:'50%',
|
barWidth: '30%',
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
@ -256,7 +248,7 @@ function setcontentData(val){
|
|||||||
return color[params.dataIndex];
|
return color[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
barWidth:'30%',
|
barWidth: '25%',
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
|
@ -12,16 +12,8 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div style="display: flex;justify-content: space-evenly; align-items: center; margin-bottom: 10px;">
|
<div style="display: flex;justify-content: space-evenly; align-items: center; margin-bottom: 10px;">
|
||||||
<chart
|
<chart :title="powerOption.title" :option="powerOption.option" ref="powerref"></chart>
|
||||||
:title="powerOption.title"
|
<chart :title="ProductionOption.title" :option="ProductionOption.option" ref="Productionref"></chart>
|
||||||
:option="powerOption.option"
|
|
||||||
ref="powerref"
|
|
||||||
></chart>
|
|
||||||
<chart
|
|
||||||
:title="ProductionOption.title"
|
|
||||||
:option="ProductionOption.option"
|
|
||||||
ref="Productionref"
|
|
||||||
></chart>
|
|
||||||
<!-- <div>
|
<!-- <div>
|
||||||
<border3 ref="borderref">
|
<border3 ref="borderref">
|
||||||
<template v-slot>
|
<template v-slot>
|
||||||
@ -214,7 +206,7 @@ function setcontentData(val){
|
|||||||
return color[params.dataIndex];
|
return color[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
barWidth:'50%',
|
barWidth: '30%',
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
@ -257,7 +249,7 @@ function setcontentData(val){
|
|||||||
return color[params.dataIndex];
|
return color[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
barWidth:'30%',
|
barWidth: '25%',
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
|
@ -12,16 +12,8 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div style="display: flex;justify-content: space-evenly; align-items: center; margin-bottom: 10px;">
|
<div style="display: flex;justify-content: space-evenly; align-items: center; margin-bottom: 10px;">
|
||||||
<chart
|
<chart :title="powerOption.title" :option="powerOption.option" ref="powerref"></chart>
|
||||||
:title="powerOption.title"
|
<chart :title="powerOption.title" :option="powerOption.option" ref="Productionref"></chart>
|
||||||
:option="powerOption.option"
|
|
||||||
ref="powerref"
|
|
||||||
></chart>
|
|
||||||
<chart
|
|
||||||
:title="powerOption.title"
|
|
||||||
:option="powerOption.option"
|
|
||||||
ref="Productionref"
|
|
||||||
></chart>
|
|
||||||
<!-- <div>
|
<!-- <div>
|
||||||
<border3 ref="borderref">
|
<border3 ref="borderref">
|
||||||
<template v-slot>
|
<template v-slot>
|
||||||
@ -258,7 +250,7 @@ function setcontentData(val){
|
|||||||
return color[params.dataIndex];
|
return color[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
barWidth:'20%',
|
barWidth: '25%',
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
|
@ -12,16 +12,8 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div style="display: flex;justify-content: space-evenly; align-items: center; margin-bottom: 10px;">
|
<div style="display: flex;justify-content: space-evenly; align-items: center; margin-bottom: 10px;">
|
||||||
<chart
|
<chart :title="powerOption.title" :option="powerOption.option" ref="powerref"></chart>
|
||||||
:title="powerOption.title"
|
<chart :title="powerOption.title" :option="powerOption.option" ref="Productionref"></chart>
|
||||||
:option="powerOption.option"
|
|
||||||
ref="powerref"
|
|
||||||
></chart>
|
|
||||||
<chart
|
|
||||||
:title="powerOption.title"
|
|
||||||
:option="powerOption.option"
|
|
||||||
ref="Productionref"
|
|
||||||
></chart>
|
|
||||||
<!-- <div>
|
<!-- <div>
|
||||||
<border3 ref="borderref">
|
<border3 ref="borderref">
|
||||||
<template v-slot>
|
<template v-slot>
|
||||||
@ -258,7 +250,7 @@ function setcontentData(val){
|
|||||||
return color[params.dataIndex];
|
return color[params.dataIndex];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
barWidth:'20%',
|
barWidth: '25%',
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
|
@ -202,7 +202,7 @@ let routerList = [
|
|||||||
isLink: false,
|
isLink: false,
|
||||||
path: "/realtimeSecurityJixie",
|
path: "/realtimeSecurityJixie",
|
||||||
title: t("messages.realtimeSecurityJixie"),
|
title: t("messages.realtimeSecurityJixie"),
|
||||||
url: require("../assets/indexImg/realtimeSecurity.png"),
|
url: require("../assets/indexImg/realtimeSecurityJixie.png"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 22,
|
id: 22,
|
||||||
|