现场调试完的

main
gitcc 2023-12-24 15:01:52 +08:00
parent 46944238b9
commit c07bde4a35
6 changed files with 23 additions and 11 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -9,11 +9,11 @@
</div> </div>
</div> </div>
<div class="right-div"> <div class="right-div">
<div v-for="(item, index) of dataList" :key="index" :class="'div' + index"> <div v-for="(item, index) of dataList" :key="index" :class="'div' + index" class="div-box">
<div>{{ item.title }}</div> <div>{{ item.title }}</div>
<div v-for="(it, i) of item.data" :key="i"> <div v-for="(it, i) of item.data" :key="i">
<!-- <Process :itemData="it"></Process> --> <!-- <Process :itemData="it"></Process> -->
<span>{{ it.label }}</span> <!-- <span>{{ it.label }}</span> -->
<span class="font26" :style="{ 'color': it.color }">{{ it.value }}</span> <span class="font26" :style="{ 'color': it.color }">{{ it.value }}</span>
</div> </div>
</div> </div>
@ -215,6 +215,18 @@ export default {
.right-div { .right-div {
width: 22%; width: 22%;
height: 100%; height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
.div-box {
height: 12%;
// border: 1px solid #b9ddeb;
border-radius: 5px;
display: flex;
flex-direction: column;
justify-content: space-around;
padding: 0 15px;
}
} }
.date { .date {

View File

@ -48,14 +48,14 @@
<div> <div>
<p>原水水质</p> <p>原水水质</p>
<p>余氯<span class="font26">{{ baseData && baseData.vd2600.toFixed(2) }}</span> mg/L</p> <p>余氯<span class="font26">{{ baseData && baseData.vd2600.toFixed(2) }}</span> mg/L</p>
<p>浊度<span class="font26">{{ baseData && baseData.vd2610.toFixed(2) }}</span> mg/L</p> <p>浊度<span class="font26">{{ baseData && baseData.vd2610.toFixed(2) }}</span> NTU</p>
<p>氨氮<span class="font26">{{ baseData && baseData.vd2620.toFixed(2) }}</span> mg/L</p> <p>氨氮<span class="font26">{{ baseData && baseData.vd2620.toFixed(2) }}</span> mg/L</p>
<p>COD<span class="font26">{{ baseData && baseData.vd2630.toFixed(2) }}</span> mg/L</p> <p>COD<span class="font26">{{ baseData && baseData.vd2630.toFixed(2) }}</span> mg/L</p>
</div> </div>
<div> <div>
<p>净水水质</p> <p>净水水质</p>
<p>余氯<span class="font26">{{ baseData && baseData.vd2500.toFixed(2) }}</span> mg/L</p> <p>余氯<span class="font26">{{ baseData && baseData.vd2500.toFixed(2) }}</span> mg/L</p>
<p>浊度<span class="font26">{{ baseData && baseData.vd2510.toFixed(2) }}</span> mg/L</p> <p>浊度<span class="font26">{{ baseData && baseData.vd2510.toFixed(2) }}</span> NTU</p>
<p>氨氮<span class="font26">{{ baseData && baseData.vd2520.toFixed(2) }}</span> mg/L</p> <p>氨氮<span class="font26">{{ baseData && baseData.vd2520.toFixed(2) }}</span> mg/L</p>
<p>COD<span class="font26">{{ baseData && baseData.vd2530.toFixed(2) }}</span> mg/L</p> <p>COD<span class="font26">{{ baseData && baseData.vd2530.toFixed(2) }}</span> mg/L</p>
</div> </div>

View File

@ -3,8 +3,8 @@
<span>{{ itemData.label }}</span> <span>{{ itemData.label }}</span>
<!-- <div :id="'process' + itemData.id" class="process-echart"></div> --> <!-- <div :id="'process' + itemData.id" class="process-echart"></div> -->
<div class="process-echart"> <div class="process-echart">
<el-progress :text-inside="true" :stroke-width="20" :percentage="itemData.value" :color="itemData.color" <el-progress :text-inside="true" :stroke-width="20" :percentage="itemData.value*50" :color="itemData.color"
show-text format="format"/> show-text :format="format"/>
</div> </div>
</div> </div>
</template> </template>
@ -27,7 +27,7 @@ export default {
// //
const format = (percentage) => { const format = (percentage) => {
return percentage; return percentage/50;
} }
// watch(() => props.itemData, val => { // watch(() => props.itemData, val => {
// if (val) { // if (val) {

View File

@ -16,7 +16,7 @@
<div v-for="(it, i) of item.data" :key="i"> <div v-for="(it, i) of item.data" :key="i">
<!-- <Process :itemData="it"></Process> --> <!-- <Process :itemData="it"></Process> -->
<span>{{ it.label }}</span> <span>{{ it.label }}</span>
<span class="font26" :style="{'color': it.color}">{{ item.value}}</span> <span class="font26" :style="{'color': it.color}">{{ it.value}}</span>
</div> </div>
</div> </div>
</div> </div>

View File

@ -25,10 +25,10 @@ export default ({ mode }) => defineConfig({
proxy: { proxy: {
'/api': { '/api': {
// target: 'http://whh.shikicc.com:52189', // target: 'http://whh.shikicc.com:52189',
target: '192.168.2.6:6688', target: 'http://192.168.2.6:6688',
changeOrigin: true, changeOrigin: true,
// rewrite: path => path.replace(/^\/api/, '') rewrite: path => path.replace(/^\/api/, '')
rewrite: path => path.replace(/^\//, '') // rewrite: path => path.replace(/^\//, '')
} }
} }
} }