dev_zt
wangqiujuan0808 2023-10-30 19:24:32 +08:00
parent d93f58f080
commit 2a095a9b3c
3 changed files with 20 additions and 9 deletions

View File

@ -1,11 +1,11 @@
<template> <template>
<div class="header"> <div class="header">
<div class="left" @click="back" style="cursor: pointer"> <div class="div30 left" @click="back" style="cursor: pointer">
<i v-if="hasBack" class="el-icon-back" ></i> <i v-if="hasBack" class="el-icon-back" ></i>
<span style="font-size: 20px">{{ modelName }}</span> <span style="font-size: 20px">{{ name }}</span>
</div> </div>
<div style="font-size: 24px">{{name}}</div> <div class="div30" style="font-size: 24px;text-align: center;">{{modelName}}</div>
<div class="right"> <div class="right div30">
<el-popover <el-popover
placement="bottom" placement="bottom"
:width="320" :width="320"
@ -63,6 +63,7 @@ export default {
} }
const back = () => { const back = () => {
router.push('/home') router.push('/home')
store.commit("setModelName", '');
} }
router.afterEach((to) => { router.afterEach((to) => {
console.log('to', to) console.log('to', to)
@ -80,7 +81,7 @@ export default {
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.header { .header {
height: 50px; height: 50px;
border-bottom: 1px solid #e9e9e9; border-bottom: 1px solid #e9e9e9;
@ -88,6 +89,9 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 0 20px; padding: 0 20px;
.div30 {
width: 33%;
}
} }
.el-icon-back { .el-icon-back {
border: 1px solid #e9e9e9; border: 1px solid #e9e9e9;

View File

@ -145,6 +145,13 @@ export default {
title: { title: {
text: '未来一周天气图' text: '未来一周天气图'
}, },
grid: {
left: "3%", //
right: '3%',
top: "20%",
width: "90%", //
height: "65%", //
},
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis'
}, },

View File

@ -26,10 +26,10 @@ export default {
}); });
onMounted(async () => { onMounted(async () => {
getChartsZfl("echartDiv1", '蒸腾量'); getChartsZfl("echartDiv1", '蒸腾量');
getChartsZfl("echartDiv2", 'COD') getChartsZfl("echartDiv2", 'COD');
getChartsZfl("echartDiv3", '氨氮'); getChartsZfl("echartDiv3", '氨氮');
getChartsZfl("echartDiv4", 'SS') getChartsZfl("echartDiv4", 'SS');
getChartsZfl("echartDiv5", '屋面温度') getChartsZfl("echartDiv5", '屋面温度');
}); });
const getChartsZfl = (id, text) => { const getChartsZfl = (id, text) => {
var dom = document.getElementById(id); var dom = document.getElementById(id);
@ -267,7 +267,7 @@ export default {
width: 100%; width: 100%;
height: 20%; height: 20%;
margin: 0 auto; margin: 0 auto;
// border: 1px solid red; border: 1px solid red;
} }
} }
</style> </style>