This commit is contained in:
g7hoo 2023-09-09 13:20:49 +08:00
parent b3bae7b635
commit 65055dd49c
9 changed files with 75 additions and 9 deletions

BIN
src/assets/icon-gas.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -7,7 +7,13 @@
<template> <template>
<div class="rect-container"> <div class="rect-container">
<slot /> <section class="title" v-if="title">
<span class="icon" v-if="icon" :class="icon"></span>
<span class="title__value">{{ title }}</span>
</section>
<section class="content">
<slot />
</section>
</div> </div>
</template> </template>
@ -15,7 +21,7 @@
export default { export default {
name: "RectContainer", name: "RectContainer",
components: {}, components: {},
props: {}, props: ["icon", "title"],
data() { data() {
return {}; return {};
}, },
@ -25,10 +31,70 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
span {
display: inline-block;
}
.rect-container { .rect-container {
// background: url(../../../assets/rect-bg.png) no-repeat 100% / contain; // rgba(45, 230, 196, 0.8); // background: url(../../../assets/rect-bg.png) no-repeat 100% / contain; // rgba(45, 230, 196, 0.8);
padding: 24px; padding: 24px;
// width: 624px; // width: 624px;
// height: 304px; // height: 304px;
display: flex;
flex-direction: column;
}
section.title {
display: flex;
align-items: center;
margin-bottom: 12px;
}
.title__value {
font-size: 24px;
letter-spacing: 1px;
line-height: 1;
color: #7ffff5;
}
section.content {
height: 1px;
flex: 1;
overflow: visible;
}
.icon {
width: 28px;
height: 28px;
margin-right: 8px;
}
.icon-left-middle {
background: url(../../../assets/icon-left-middle.png) no-repeat 100% / contain;
}
.icon-left-bottom {
background: url(../../../assets/icon-left-bottom.png) no-repeat 100% / contain;
}
.icon-gas {
background: url(../../../assets/icon-gas.png) no-repeat 100% / contain;
}
.icon-kiln-top {
background: url(../../../assets/icon-kiln-top.png) no-repeat 100% / contain;
}
.icon-kiln-bottom {
background: url(../../../assets/icon-kiln-bottom.png) no-repeat 100% / contain;
}
.icon-right-bottom {
background: url(../../../assets/icon-right-bottom.png) no-repeat 100% /
contain;
}
.icon-right-top {
background: url(../../../assets/icon-right-top.png) no-repeat 100% / contain;
} }
</style> </style>

View File

@ -10,26 +10,26 @@
<RectContainer class="leftTop"> <RectContainer class="leftTop">
<WaterTemp /> <WaterTemp />
</RectContainer> </RectContainer>
<RectContainer class="leftMiddle"> <RectContainer class="leftMiddle" title="窑炉进口水温历史" icon="icon-left-middle">
<GradientChart /> <GradientChart />
</RectContainer> </RectContainer>
<!-- <RectContainer class="leftBottom"> <!-- <RectContainer class="leftBottom">
<ChartContainer /> <ChartContainer />
</RectContainer> --> </RectContainer> -->
<RectContainer class="bottom-1 bg-bottom"> <RectContainer class="bottom-1 bg-bottom" title="油流量" icon="icon-left-bottom">
<ChartContainer /> <ChartContainer />
</RectContainer> </RectContainer>
<RectContainer class="bottom-2 bg-bottom"> <RectContainer class="bottom-2 bg-bottom" title="天然气流量" icon="icon-gas">
<ChartContainer /> <ChartContainer />
</RectContainer> </RectContainer>
<RectContainer class="bottom-3 bg-bottom"> <RectContainer class="bottom-3 bg-bottom" title="窑顶温度" icon="icon-kiln-top">
<ChartContainer /> <ChartContainer />
</RectContainer> </RectContainer>
<RectContainer class="bottom-4 bg-bottom"> <RectContainer class="bottom-4 bg-bottom" title="窑底温度" icon="icon-kiln-bottom">
<ChartContainer /> <ChartContainer />
</RectContainer> </RectContainer>
<RectContainer class="bottom-5 bg-bottom"> <RectContainer class="bottom-5 bg-bottom" title="锡槽温度" icon="icon-right-bottom">
<ChartContainer /> <ChartContainer />
</RectContainer> </RectContainer>
<!-- <RectContainer class="bottom-6"> <!-- <RectContainer class="bottom-6">
@ -42,7 +42,7 @@
<ChartContainer /> <ChartContainer />
</RectContainer> --> </RectContainer> -->
<RectContainer class="rightTop"> <RectContainer class="rightTop" title="风机运行情况" icon="icon-right-top">
<TablesContainer /> <TablesContainer />
</RectContainer> </RectContainer>
<!-- <RectContainer class="rightMiddle"> <!-- <RectContainer class="rightMiddle">