|
@@ -69,7 +69,7 @@ const createEchart = ({ xAxisData, seriesData, chart, title }) => {
|
|
|
text: title,
|
|
|
left: '0',
|
|
|
textStyle: {
|
|
|
- fontSize: '1.2rem',
|
|
|
+ fontSize: '12px',
|
|
|
color: '#415B73'
|
|
|
},
|
|
|
},
|
|
@@ -79,14 +79,14 @@ const createEchart = ({ xAxisData, seriesData, chart, title }) => {
|
|
|
itemWidth: 8,
|
|
|
y: 'top',
|
|
|
x: 'right',
|
|
|
- textStyle: {fontSize: '1.2rem', color: '#415B73'}
|
|
|
+ textStyle: {fontSize: '12px', color: '#415B73'}
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
data: xAxisData,
|
|
|
axisLabel: {
|
|
|
show: true,
|
|
|
- fontSize: '1.2rem',
|
|
|
+ fontSize: '12px',
|
|
|
color: "#0A284E",
|
|
|
|
|
|
},
|
|
@@ -108,7 +108,7 @@ const createEchart = ({ xAxisData, seriesData, chart, title }) => {
|
|
|
type: "value",
|
|
|
axisLabel: {
|
|
|
show: true,
|
|
|
- fontSize: '1.2rem',
|
|
|
+ fontSize: '12px',
|
|
|
color: "#7395B3"
|
|
|
},
|
|
|
axisLine: {
|
|
@@ -141,20 +141,20 @@ watchEffect(() => {
|
|
|
} = props.screenData;
|
|
|
|
|
|
inWater.value = [
|
|
|
- { label: 'COD', standardValue: formatDecimals(jsCod), currentValue: formatDecimals(jscodSjz) },
|
|
|
- { label: 'NH3-N', standardValue: formatDecimals(jsNh3), currentValue: formatDecimals(jsadSjz) },
|
|
|
- { label: 'TN', standardValue: formatDecimals(jsTn), currentValue: formatDecimals(jszdSjz) },
|
|
|
- { label: 'TP', standardValue: formatDecimals(jsTp), currentValue: formatDecimals(jszlSjz) },
|
|
|
- { label: 'SS', standardValue: formatDecimals(jsSs), currentValue: formatDecimals(jsssSjz) },
|
|
|
- { label: 'PH值', standardValue: '6-9', currentValue: formatDecimals(jsPh) }
|
|
|
+ { label: 'COD', standardValue: formatDecimals(jscodSjz), currentValue: formatDecimals(jsCod), isExceed: jsCod > jscodSjz },
|
|
|
+ { label: 'NH3-N', standardValue: formatDecimals(jsadSjz), currentValue: formatDecimals(jsNh3), isExceed: jsNh3 > jsadSjz },
|
|
|
+ { label: 'TN', standardValue: formatDecimals(jszdSjz), currentValue: formatDecimals(jsTn), isExceed: jsTn > jszdSjz },
|
|
|
+ { label: 'TP', standardValue: formatDecimals(jszlSjz), currentValue: formatDecimals(jsTp), isExceed: jsTp > jszlSjz },
|
|
|
+ { label: 'SS', standardValue: formatDecimals(jsssSjz), currentValue: formatDecimals(jsSs), isExceed: jsSs > jsssSjz },
|
|
|
+ { label: 'PH值', standardValue: '6-9', currentValue: formatDecimals(jsPh), isExceed: jsPh > 6 && jsPh < 9 }
|
|
|
],
|
|
|
outWater.value = [
|
|
|
- { label: 'COD', standardValue: formatDecimals(csCod), currentValue: formatDecimals(cscodBzz) },
|
|
|
- { label: 'NH3-N', standardValue: formatDecimals(csNh3), currentValue: formatDecimals(csadBzz) },
|
|
|
- { label: 'TN', standardValue: formatDecimals(csTn), currentValue: formatDecimals(cszzBzz) },
|
|
|
- { label: 'TP', standardValue: formatDecimals(csTp), currentValue: formatDecimals(cszlBzz) },
|
|
|
- { label: 'SS', standardValue: formatDecimals(csSs), currentValue: formatDecimals(csssBzz) },
|
|
|
- { label: 'PH值', standardValue: '6-9', currentValue: formatDecimals(csPh) }
|
|
|
+ { label: 'COD', standardValue: formatDecimals(cscodBzz), currentValue: formatDecimals(csCod), isExceed: csCod > cscodBzz },
|
|
|
+ { label: 'NH3-N', standardValue: formatDecimals(csadBzz), currentValue: formatDecimals(csNh3), isExceed: csNh3 > csadBzz },
|
|
|
+ { label: 'TN', standardValue: formatDecimals(cszzBzz), currentValue: formatDecimals(csTn), isExceed: csTn > cszzBzz},
|
|
|
+ { label: 'TP', standardValue: formatDecimals(cszlBzz), currentValue: formatDecimals(csTp), isExceed: csTp > cszlBzz },
|
|
|
+ { label: 'SS', standardValue: formatDecimals(csssBzz), currentValue: formatDecimals(csSs), isExceed: csSs > csssBzz },
|
|
|
+ { label: 'PH值', standardValue: '6-9', currentValue: formatDecimals(csPh), isExceed: csPh < 6 || csPh > 9 }
|
|
|
]
|
|
|
})
|
|
|
|
|
@@ -207,10 +207,10 @@ onUnmounted(() => {
|
|
|
<template>
|
|
|
<LayoutCard title="水质数据">
|
|
|
<div class="main-container">
|
|
|
- <div class="count-card mb-[1rem]">
|
|
|
+ <div class="count-card mb-[10px]">
|
|
|
<div class="count-num_inner">
|
|
|
<p class="title">今日<br>进水</p>
|
|
|
- <ul class="num-group flex space-x-[0.4rem]">
|
|
|
+ <ul class="num-group flex space-x-[4px]">
|
|
|
<template v-for="item, index in inWater" :key="item.label">
|
|
|
<n-tooltip placement="top" trigger="hover">
|
|
|
<template #trigger>
|
|
@@ -219,7 +219,7 @@ onUnmounted(() => {
|
|
|
<span class="num">{{ item.currentValue }} <i v-if="index != inWater.length - 1">mg/L</i></span>
|
|
|
</li>
|
|
|
</template>
|
|
|
- <ul class="text-bold text-[#fff] text-[1.2rem] leading-[1.8rem]">
|
|
|
+ <ul class="text-bold text-[#fff] text-[12px] leading-[18px]">
|
|
|
<li>当前值:{{ item.currentValue }} <i v-if="index != inWater.length - 1">mg/L</i></li>
|
|
|
<li>标准值:{{ item.standardValue }} <i v-if="index != inWater.length - 1">mg/L</i></li>
|
|
|
</ul>
|
|
@@ -231,7 +231,7 @@ onUnmounted(() => {
|
|
|
<div class="count-card">
|
|
|
<div class="count-num_inner">
|
|
|
<p class="title">今日<br>出水</p>
|
|
|
- <ul class="num-group flex space-x-[0.4rem]">
|
|
|
+ <ul class="num-group flex space-x-[4px]">
|
|
|
<template v-for="item, index in outWater" :key="item.label">
|
|
|
<n-tooltip placement="top" trigger="hover">
|
|
|
<template #trigger>
|
|
@@ -240,8 +240,8 @@ onUnmounted(() => {
|
|
|
<span class="num">{{ item.currentValue }} <i v-if="index != inWater.length - 1">mg/L</i></span>
|
|
|
</li>
|
|
|
</template>
|
|
|
- <ul class="text-bold text-[#fff] text-[1.2rem] leading-[1.8rem]">
|
|
|
- <li>当前值:{{ item.currentValue }} <i v-if="index != inWater.length - 1">mg/L</i></li>
|
|
|
+ <ul class="text-bold text-[#fff] text-[12px] leading-[18px]">
|
|
|
+ <li :style="{color: item.isExceed ? 'red' : '#fff'}">当前值:{{ item.currentValue }} <i v-if="index != inWater.length - 1">mg/L</i></li>
|
|
|
<li>标准值:{{ item.standardValue }} <i v-if="index != inWater.length - 1">mg/L</i></li>
|
|
|
</ul>
|
|
|
</n-tooltip>
|
|
@@ -263,7 +263,7 @@ onUnmounted(() => {
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div> -->
|
|
|
- <div class="echart-inner mb-[1.4rem]" ref="echartJsRef"></div>
|
|
|
+ <div class="echart-inner mb-[14px]" ref="echartJsRef"></div>
|
|
|
<div class="echart-inner" ref="echartCsRef"></div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -276,7 +276,7 @@ onUnmounted(() => {
|
|
|
|
|
|
.count-card {
|
|
|
width: 100%;
|
|
|
- height: 6.2rem;
|
|
|
+ height: 62px;
|
|
|
padding: 4px;
|
|
|
background: url('@/assets/images/workbench/bg-square-line.png') center center no-repeat;
|
|
|
background-size: 100% 100%;
|
|
@@ -284,7 +284,7 @@ onUnmounted(() => {
|
|
|
.count-num_inner {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- padding: 0.6rem 0.6rem;
|
|
|
+ padding: 6px 6px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
@@ -294,25 +294,25 @@ onUnmounted(() => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- width: 4.8rem;
|
|
|
+ width: 48px;
|
|
|
height: 100%;
|
|
|
color: #3C97F7;
|
|
|
text-align: center;
|
|
|
font-family: "DingTalk JinBuTi";
|
|
|
- font-size: 1.2rem;
|
|
|
+ font-size: 12px;
|
|
|
letter-spacing: 0.12px;
|
|
|
- line-height: 1.6rem;
|
|
|
+ line-height: 16px;
|
|
|
border-radius: 2px;
|
|
|
background: linear-gradient(180deg, #99D7FF 0%, rgba(255, 255, 255, 0.00) 100%);
|
|
|
}
|
|
|
|
|
|
.num-group {
|
|
|
display: grid;
|
|
|
- grid-template-columns: repeat(6, minmax(5.8rem, 1fr));
|
|
|
- gap: 1rem;
|
|
|
+ grid-template-columns: repeat(6, minmax(58px, 1fr));
|
|
|
+ gap: 10px;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- padding-left: 0.9rem;
|
|
|
+ padding-left: 9px;
|
|
|
cursor: pointer;
|
|
|
|
|
|
.item {
|
|
@@ -321,16 +321,17 @@ onUnmounted(() => {
|
|
|
|
|
|
.label {
|
|
|
color: #0A284E;
|
|
|
- font-size: 1.2rem;
|
|
|
+ font-size: 12px;
|
|
|
font-weight: bold;
|
|
|
- line-height: 1.6rem;
|
|
|
+ line-height: 16px;
|
|
|
}
|
|
|
|
|
|
.num {
|
|
|
+ height: 12px;
|
|
|
color: #415B73;
|
|
|
text-align: center;
|
|
|
- font-size: 1.0rem;
|
|
|
- line-height: 1.4rem;
|
|
|
+ font-size: 10px;
|
|
|
+ line-height: 14px;
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
@@ -344,7 +345,7 @@ onUnmounted(() => {
|
|
|
|
|
|
.echart-card {
|
|
|
color: #415B73;
|
|
|
- font-size: 1.2rem;
|
|
|
+ font-size: 12px;
|
|
|
font-weight: bold;
|
|
|
padding-top: 1.4rem;
|
|
|
|
|
@@ -352,7 +353,7 @@ onUnmounted(() => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- padding: 1.4rem 0 1.2rem 0;
|
|
|
+ padding: 14px 0 12px 0;
|
|
|
|
|
|
.tabs {
|
|
|
display: flex;
|
|
@@ -361,7 +362,7 @@ onUnmounted(() => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- font-size: 1.2rem;
|
|
|
+ font-size: 12px;
|
|
|
|
|
|
.square-icon {
|
|
|
display: inline-block;
|
|
@@ -372,8 +373,8 @@ onUnmounted(() => {
|
|
|
|
|
|
i {
|
|
|
display: block;
|
|
|
- width: 0.8rem;
|
|
|
- height: 0.8rem;
|
|
|
+ width: 8px;
|
|
|
+ height: 8px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -381,7 +382,7 @@ onUnmounted(() => {
|
|
|
}
|
|
|
|
|
|
.echart-inner {
|
|
|
- height: 14rem;
|
|
|
+ height: 160px;
|
|
|
}
|
|
|
}
|
|
|
}
|