嘉禾二期设备管理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

163 lines
3.0 KiB

2 years ago
<template>
<div>
<div class="box">
<div>
{{ time }}
2 years ago
</div>
<div>
{{ $moment().format('yyyy/MM/DD') }}
</div>
<div>
{{ $moment().format('dddd') }}
</div>
<div>
2 years ago
{{ temp }} {{ text }}
2 years ago
</div>
<div @click="$router.replace({ path: `/wel/index` })" style="cursor: pointer;">
2 years ago
<img src="../../../../public/img/energySources/r.png" style="width: 0.2rem;height: 0.2rem;" srcset="">
返回首页
</div>
2 years ago
</div>
<div class="htitle">
2 years ago
<div class="htitle-t">
{{ deptName }}实业公司能耗监测系统
2 years ago
</div>
<div class="htitle-b">
{{deptName }}实业公司能耗监测系统
2 years ago
</div>
2 years ago
</div>
</div>
</template>
<script>
import { getWeather } from "@/api/energySourcesProvince/energySourcesProvince"
2 years ago
import { mapGetters } from "vuex";
2 years ago
export default {
props: {
deptName: {
type: String,
default: "",
},
},
2 years ago
data() {
return {
2 years ago
time: '',
timeFun: null,
2 years ago
temp: '',
text: '',
2 years ago
};
},
2 years ago
computed: {
2 years ago
...mapGetters(["userInfo", "permission"]),
},
2 years ago
created() {
getWeather().then(res => {
this.temp = res.data.now.temp
this.text = res.data.now.text
})
2 years ago
this.timeFun = setInterval(() => {
this.time = this.$moment().format('HH:mm:ss')
2 years ago
}, 1000)
},
methods: {
},
2 years ago
beforeDestroyed() {
2 years ago
clearInterval(this.timeFun)
2 years ago
},
};
</script>
<style lang="scss" scoped>
.box {
2 years ago
width: calc(100% - 0.48rem);
2 years ago
height: 0.54rem;
display: flex;
color: #85AADD;
box-sizing: border-box;
position: absolute;
top: 0.16rem;
left: 0.24rem;
div {
vertical-align: sub;
}
div:nth-child(1) {
font-size: 0.3rem;
font-family: Microsoft YaHei;
font-weight: bold;
}
div:nth-child(2) {
font-size: 0.2rem;
line-height: 0.48rem;
margin-left: 0.2rem;
}
div:nth-child(3) {
font-size: 0.2rem;
line-height: 0.48rem;
margin-left: 0.14rem;
}
div:nth-child(4) {
font-size: 0.2rem;
line-height: 0.48rem;
margin-left: 0.36rem;
}
2 years ago
2 years ago
div:nth-child(5) {
font-size: 0.2rem;
line-height: 0.48rem;
position: absolute;
top: 0;
right: 10px;
}
2 years ago
}
.htitle {
position: absolute;
top: 0.18rem;
left: 7.2rem;
width: 4.82rem;
height: 0.46rem;
2 years ago
.htitle-t {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
text-align: center;
font-size: 0.3rem;
font-family: Microsoft YaHei;
font-weight: bold;
color: #FFFFFF;
background: linear-gradient(-12deg, #C9E7FF 0%, #ECFCFF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
z-index: 2;
}
.htitle-b {
position: absolute;
text-align: center;
font-size: 0.3rem;
font-family: Microsoft YaHei;
font-weight: bold;
color: rgba(0, 0, 0, 0);
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
text-shadow: 4px 5px 2px rgba(0, 0, 0, 0.3);
}
2 years ago
}
</style>