flx:郑州水利去除气体内容

This commit is contained in:
Rain_ 2025-09-04 10:32:57 +08:00
parent 6bd0c62d08
commit 8f133b9def
4 changed files with 26 additions and 16 deletions

View File

@ -19,7 +19,7 @@ NODE_ENV = 'development'
# 演示平台
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
# 百色七参数线上地址
VITE_API_URL = 'http://101.43.164.214:11111'
# VITE_API_URL = 'http://101.43.164.214:11111'
# 七参数标准版(测试平台)
# VITE_API_URL = 'http://jxj.zhgdyun.com:15551'
# 七参数标准版(测试平台)
@ -49,7 +49,7 @@ VITE_API_URL = 'http://101.43.164.214:11111'
# VITE_API_URL = 'http://jxj.zhgdyun.com:18000'
# 大连金笔
# VITE_API_URL = 'http://101.43.164.214:11126'
# VITE_API_URL = 'http://121.37.106.37:9809'
VITE_API_URL = 'http://121.37.106.37:9809'
# 上传
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -13,7 +13,7 @@ NODE_ENV = "production"
# VITE_API_URL = "http://183.249.224.118:9003"
# 百色 新项目通用地址
VITE_API_URL = 'http://101.43.164.214:11111'
# VITE_API_URL = 'http://101.43.164.214:11111'
# 七参数标准版(演示平台)
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
@ -53,7 +53,7 @@ VITE_API_URL = 'http://101.43.164.214:11111'
# 新能源智慧基建管理平台
# VITE_API_URL = 'http://121.37.106.37:9820'
# 121测试环境
# VITE_API_URL = 'http://121.37.106.37:9809'
VITE_API_URL = 'http://121.37.106.37:9809'
# 打包
VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url='

View File

@ -21,7 +21,7 @@ import Card from "@/components/card.vue";
import { GlobalStore } from "@/stores";
const store = GlobalStore();
import { countPoisonousGasAlarmType } from "@/api/modules/toxicGasMonitor";
import { COMPANY } from "@/config/config";
// const airType = ref(1);
// let gasName = ref(1 as any);
let selectDayType = ref(1 as any);
@ -116,7 +116,7 @@ let dataList = ref([
},
{
value: 0,
show: true,
show: COMPANY === 'zzsl' ? false : true,
name: "一氧化碳",
itemStyle: {
normal: {
@ -126,7 +126,7 @@ let dataList = ref([
},
{
value: 0,
show: true,
show: COMPANY === 'zzsl' ? false : true,
name: "二氧化碳",
itemStyle: {
normal: {
@ -146,7 +146,7 @@ let dataList = ref([
},
{
value: 0,
show: true,
show: COMPANY === 'zzsl' ? false : true,
name: "二氧化硫",
itemStyle: {
normal: {
@ -192,6 +192,10 @@ const getToxicGasList = async () => {
const res: any = await countPoisonousGasAlarmType({ projectSn: store.sn, type: selectDayType.value });
console.log("气体含量报警统计", res);
dataList.value = res.result.data.map((item: any) => {
if(COMPANY === 'zzsl') {
const includesList = ['一氧化碳', '二氧化碳', '二氧化硫']
if(includesList.includes(item.name)) return undefined;
}
return {
value: Number(item.count),
show: true,
@ -202,7 +206,8 @@ const getToxicGasList = async () => {
}
}
};
});
}).filter((item: any) => item !== undefined);
// let gaxList = res.result;
// list.value = gaxList.concat(res.result);
drawEchart();

View File

@ -12,29 +12,28 @@
</div>
</div>
<div class="bottom">
<div class="bottomLeft">
<div class="bottomLeft" :class="{'zzslCenter': COMPANY == 'zzsl'}">
<BottomLeft></BottomLeft>
</div>
<div class="bottomCenter">
<div class="bottomCenter" :class="{'zzslCenter zzslCenter1': COMPANY == 'zzsl'}">
<BottomCenter></BottomCenter>
</div>
<div class="bottomRight">
<div class="bottomRight" v-if="COMPANY !== 'zzsl'">
<BottomRight></BottomRight>
</div>
</div>
</div>
</template>
<script>
<script setup>
import TopLeft from "@/views/sevenLargeScreen/safetyManagement/toxicGasMonitor/topLeft.vue";
import TopCenter from "@/views/sevenLargeScreen/safetyManagement/toxicGasMonitor/topCenter.vue";
import TopRight from "@/views/sevenLargeScreen/safetyManagement/toxicGasMonitor/topRight.vue";
import BottomLeft from "@/views/sevenLargeScreen/safetyManagement/toxicGasMonitor/bottomLeft.vue";
import BottomCenter from "@/views/sevenLargeScreen/safetyManagement/toxicGasMonitor/bottomCenter.vue";
import BottomRight from "@/views/sevenLargeScreen/safetyManagement/toxicGasMonitor/bottomRight.vue";
export default {
components: { TopLeft, TopCenter, TopRight, BottomLeft, BottomRight, BottomCenter }
};
import { COMPANY } from "@/config/config";
</script>
<style lang="scss" scoped>
@ -72,6 +71,12 @@ export default {
.bottomRight {
width: 33%;
}
.zzslCenter {
width: 49.5%;
}
.zzslCenter1 {
margin: 0% 0% 0% 1%;
}
}
}
</style>