更改字段

main
wangqiujuan0808 2023-12-13 12:45:01 +08:00
parent 226b7fa261
commit a66b1eb9ad
6 changed files with 70 additions and 94 deletions

View File

@ -76,7 +76,7 @@ export default {
color: "#6fdbce", color: "#6fdbce",
label: "Q1", label: "Q1",
value: "20", value: "20",
key: 'vd2700' key: 'VD2700'
}, },
], ],
}, },
@ -88,7 +88,7 @@ export default {
color: "#00baff", color: "#00baff",
label: "Q2", label: "Q2",
value: "80", value: "80",
key: 'vd2716' key: 'VD2716'
}, },
], ],
}, },
@ -100,7 +100,7 @@ export default {
color: "#308286", color: "#308286",
label: "Q3", label: "Q3",
value: "80", value: "80",
key: 'vd2800' key: 'VD2800'
}, },
], ],
}, },
@ -112,7 +112,7 @@ export default {
color: "#00baff", color: "#00baff",
label: "Q4", label: "Q4",
value: "80", value: "80",
key: 'vd2816' key: 'VD2816'
}, },
], ],
}, },
@ -124,7 +124,7 @@ export default {
color: "#00baff", color: "#00baff",
label: "Q5", label: "Q5",
value: "80", value: "80",
key: 'vd2850' key: 'VD2850'
}, },
], ],
}, },
@ -136,7 +136,7 @@ export default {
color: "#00baff", color: "#00baff",
label: "Q6", label: "Q6",
value: "80", value: "80",
key: 'vd2866' key: 'VD2866'
}, },
], ],
}, },
@ -148,7 +148,7 @@ export default {
color: "#00baff", color: "#00baff",
label: "Q7", label: "Q7",
value: "10", value: "10",
key: 'vd2750' key: 'VD2750'
}, },
], ],
}, },
@ -160,7 +160,7 @@ export default {
color: "#00baff", color: "#00baff",
label: "Q8", label: "Q8",
value: "40", value: "40",
key: 'vd2766' key: 'VD2766'
}, },
], ],
} }

View File

@ -9,55 +9,55 @@
<div class="one-card-content"> <div class="one-card-content">
<div> <div>
<p>节水量</p> <p>节水量</p>
<font><span class="font26">{{ baseData && baseData.vd2716.toFixed(2) }}</span></font> <font><span class="font26">{{ baseData && baseData.VD2716.toFixed(2) }}</span></font>
</div> </div>
<div> <div>
<p>节碳量</p> <p>节碳量</p>
<font><span class="font26">{{ baseData && (baseData.vd2716 * 0.168).toFixed(2) }}</span>kg</font> <font><span class="font26">{{ baseData && (baseData.VD2716 * 0.168).toFixed(2) }}</span>kg</font>
</div> </div>
<div> <div>
<p>原水箱液位<span class="font26">{{ baseData && baseData.vd500.toFixed(2) }}</span>m</p> <p>原水箱液位<span class="font26">{{ baseData && baseData.VD500.toFixed(2) }}</span>m</p>
<p>历史最高<span class="font26">{{ baseData && baseData.vd500Max.toFixed(2) }}</span>m</p> <p>历史最高<span class="font26">{{ baseData && baseData.VD500Max.toFixed(2) }}</span>m</p>
<p>历史最低<span class="font26">{{ baseData && baseData.vd500Min.toFixed(2) }}</span>m</p> <p>历史最低<span class="font26">{{ baseData && baseData.VD500Min.toFixed(2) }}</span>m</p>
</div> </div>
<div> <div>
<p>净水箱液位<span class="font26">{{ baseData && baseData.vd504.toFixed(2) }}</span>m</p> <p>净水箱液位<span class="font26">{{ baseData && baseData.VD504.toFixed(2) }}</span>m</p>
<p>历史最高<span class="font26">{{ baseData && baseData.vd504Max.toFixed(2) }}</span>m</p> <p>历史最高<span class="font26">{{ baseData && baseData.VD504Max.toFixed(2) }}</span>m</p>
<p>历史最低<span class="font26">{{ baseData && baseData.vd504Min.toFixed(2) }}</span>m</p> <p>历史最低<span class="font26">{{ baseData && baseData.VD504Min.toFixed(2) }}</span>m</p>
</div> </div>
<div> <div>
<p>UF产水</p> <p>UF产水</p>
<p>瞬时流量<span class="font26">{{ baseData && baseData.vd2700.toFixed(2) }}</span> /H</p> <p>瞬时流量<span class="font26">{{ baseData && baseData.VD2700.toFixed(2) }}</span> /H</p>
<p>累计流量<span class="font26">{{ baseData && baseData.vd2716.toFixed(2) }}</span></p> <p>累计流量<span class="font26">{{ baseData && baseData.VD2716.toFixed(2) }}</span></p>
</div> </div>
<div> <div>
<p>自来水前端</p> <p>自来水前端</p>
<p>瞬时流量<span class="font26">{{ baseData && baseData.vd2800.toFixed(2) }}</span> /H</p> <p>瞬时流量<span class="font26">{{ baseData && baseData.VD2800.toFixed(2) }}</span> /H</p>
<p>累计流量<span class="font26">{{ baseData && baseData.vd2816.toFixed(2) }}</span></p> <p>累计流量<span class="font26">{{ baseData && baseData.VD2816.toFixed(2) }}</span></p>
</div> </div>
<div> <div>
<p>供水</p> <p>供水</p>
<p>瞬时流量<span class="font26">{{ baseData && baseData.vd2850.toFixed(2) }}</span> /H</p> <p>瞬时流量<span class="font26">{{ baseData && baseData.VD2850.toFixed(2) }}</span> /H</p>
<p>累计流量<span class="font26">{{ baseData && baseData.vd2866.toFixed(2) }}</span></p> <p>累计流量<span class="font26">{{ baseData && baseData.VD2866.toFixed(2) }}</span></p>
</div> </div>
<div> <div>
<p>自来水后端</p> <p>自来水后端</p>
<p>瞬时流量<span class="font26">{{ baseData && baseData.vd2750.toFixed(2) }}</span> /H</p> <p>瞬时流量<span class="font26">{{ baseData && baseData.VD2750.toFixed(2) }}</span> /H</p>
<p>累计流量<span class="font26">{{ baseData && baseData.vd2766.toFixed(2) }}</span></p> <p>累计流量<span class="font26">{{ baseData && baseData.VD2766.toFixed(2) }}</span></p>
</div> </div>
<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> mg/L</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> mg/L</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>
</div> </div>

View File

@ -46,30 +46,6 @@ export default {
setup() { setup() {
const store = useStore(); const store = useStore();
const state = reactive({ const state = reactive({
// baseData: {
// vd500: 2,
// vd500Max: 12,
// vd500Min: 0.8,
// vd504: 3,
// vd504Max: 11,
// vd504Min: 0.4,
// vd2700: 13.4,
// vd2716: 12.99,
// vd2800: 12.3,
// vd2816: 4.56,
// vd2850: 12.3,
// vd2866: 34.5,
// vd2750: 15.4,
// vd2766: 7.89,
// vd2600: 12,
// vd2610: 3.23,
// vd2620: 23.4,
// vd2630: 12.3,
// vd2500: 12,
// vd2510: 3.23,
// vd2520: 23.4,
// vd2530: 12.3
// },
listData: [ listData: [
{ {
id: "echart0", id: "echart0",
@ -95,7 +71,7 @@ export default {
color: "#6fdbce", color: "#6fdbce",
label: "Q1", label: "Q1",
value: "20", value: "20",
key: 'vd500' key: 'VD500'
}, },
], ],
}, },
@ -107,7 +83,7 @@ export default {
color: "#00baff", color: "#00baff",
label: "Max", label: "Max",
value: "80", value: "80",
key: 'vd500Max' key: 'VD500Max'
}, },
], ],
}, },
@ -119,7 +95,7 @@ export default {
color: "#308286", color: "#308286",
label: "Min", label: "Min",
value: "80", value: "80",
key: 'vd500Min' key: 'VD500Min'
}, },
], ],
} }
@ -133,7 +109,7 @@ export default {
color: "#6fdbce", color: "#6fdbce",
label: "Q2", label: "Q2",
value: "20", value: "20",
key: 'vd504' key: 'VD504'
}, },
], ],
}, },
@ -145,7 +121,7 @@ export default {
color: "#00baff", color: "#00baff",
label: "Max", label: "Max",
value: "80", value: "80",
key: 'vd504Max' key: 'VD504Max'
}, },
], ],
}, },
@ -157,7 +133,7 @@ export default {
color: "#308286", color: "#308286",
label: "Min", label: "Min",
value: "9", value: "9",
key: 'vd504Min' key: 'VD504Min'
}, },
] ]
} }

View File

@ -81,8 +81,8 @@ export default {
color: "#6fdbce", color: "#6fdbce",
label: "余氯: ", label: "余氯: ",
value: "20", value: "20",
key: 'vd2600', key: 'VD2600',
key1: 'vd2500' key1: 'VD2500'
}, },
], ],
}, },
@ -94,8 +94,8 @@ export default {
color: "#b7e707", color: "#b7e707",
label: "浊度:", label: "浊度:",
value: "80", value: "80",
key: 'vd2610', key: 'VD2610',
key1: 'vd2510' key1: 'VD2510'
} }
], ],
}, },
@ -107,8 +107,8 @@ export default {
color: "#f58383", color: "#f58383",
label: "氨氮: ", label: "氨氮: ",
value: "80", value: "80",
key: 'vd2620', key: 'VD2620',
key1: 'vd2520' key1: 'VD2520'
}, },
], ],
}, },
@ -120,8 +120,8 @@ export default {
color: "#00ffff", color: "#00ffff",
label: "COD: ", label: "COD: ",
value: "80", value: "80",
key: 'vd2630', key: 'VD2630',
key1: 'vd2530' key1: 'VD2530'
} }
], ],
} }

View File

@ -12,28 +12,28 @@ const store = createStore({
selectTab: 'old', selectTab: 'old',
modelName: '', modelName: '',
pclData: { pclData: {
vd500: 2, VD500: 2,
vd500Max: 12, VD500Max: 12,
vd500Min: 0.8, VD500Min: 0.8,
vd504: 3, VD504: 3,
vd504Max: 11, VD504Max: 11,
vd504Min: 0.4, VD504Min: 0.4,
vd2700: 13.4, VD2700: 13.4,
vd2716: 12.99, VD2716: 12.99,
vd2800: 12.3, VD2800: 12.3,
vd2816: 4.56, VD2816: 4.56,
vd2850: 12.3, VD2850: 12.3,
vd2866: 34.5, VD2866: 34.5,
vd2750: 15.4, VD2750: 15.4,
vd2766: 7.89, VD2766: 7.89,
vd2600: 12, VD2600: 12,
vd2610: 3.23, VD2610: 3.23,
vd2620: 23.4, VD2620: 23.4,
vd2630: 12.3, VD2630: 12.3,
vd2500: 12, VD2500: 12,
vd2510: 3.23, VD2510: 3.23,
vd2520: 23.4, VD2520: 23.4,
vd2530: 12.3 VD2530: 12.3
} }
}, },
mutations: { mutations: {

View File

@ -109,8 +109,8 @@ export default {
watch(() => store.state.pclData, val => { watch(() => store.state.pclData, val => {
if (val) { if (val) {
console.log('主页', val); console.log('主页', val);
state.menus[0].parms[0].value = val.vd2716.toFixed(2); state.menus[0].parms[0].value = val.VD2716.toFixed(2);
state.menus[0].parms[1].value = (val.vd2716 * 0.168).toFixed(2); state.menus[0].parms[1].value = (val.VD2716 * 0.168).toFixed(2);
} }
}, { deep: true, immediate: true }); }, { deep: true, immediate: true });
onMounted(() => { onMounted(() => {