fix:根据客户需求修改ai预警页面

This commit is contained in:
Vce 2024-04-18 18:40:01 +08:00
parent 3233e1a683
commit ea48d19626
4 changed files with 26 additions and 18 deletions

View File

@ -21,9 +21,9 @@ NODE_ENV = 'development'
# 七参数标准版(测试平台)
# VITE_API_URL = 'http://182.90.224.237:15551'
# agjt
# VITE_API_URL = 'http://47.93.215.234:9809'
VITE_API_URL = 'http://47.93.215.234: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:19812'
# 上传
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -21,9 +21,9 @@ NODE_ENV = "production"
# 七参数标准版(测试平台)
# VITE_API_URL = 'http://182.90.224.237:15551'
# agjt
# VITE_API_URL = 'http://47.93.215.234:9809'
VITE_API_URL = 'http://47.93.215.234:9809'
# 苏立信
VITE_API_URL = 'http://101.43.164.214:11111'
# VITE_API_URL = 'http://101.43.164.214:11111'
# 打包
VITE_ULD_API_URL = 'http://jxj.zhgdyun.com:8012/onlinePreview?url='

View File

@ -25,8 +25,8 @@ export const BASE_IMAGE_URL = import.meta.env.VITE_BASE_IMAGE_URL;
// 项目环境标识配置 部署时需更改对应的项目
// export const COMPANY: string = ""; //标准版
// export const COMPANY: string = "as"; //鞍山项目
// export const COMPANY: string = "agjt"; //鞍钢集团
export const COMPANY: string = "slx"; //苏立信项目
export const COMPANY: string = "agjt"; //鞍钢集团
// export const COMPANY: string = "slx"; //苏立信项目
// export const COMPANY: string = "hfqc"; //合肥启程项目
// export const COMPANY: string = "jsyc"; // 江苏盐城项目
// export const COMPANY: string = "syhy"; //沈阳合盈盘锦项目 (需要去src\routers\modules\staticRouter.ts更换首页)

View File

@ -3,27 +3,34 @@
<div class="ai-bottom-right">
<div class="list-content">
<div class="tab-list">
<div>序号</div>
<div>抓拍照片</div>
<div>设备名称</div>
<div>告警类型</div>
<div>告警时间</div>
<div>操作</div>
<div style="width:10%">序号</div>
<div style="width:20%">抓拍照片</div>
<div style="width:20%">设备名称</div>
<div style="width:20%" v-if="COMPANY === 'agjt'">不安全行为类型</div>
<div style="width:20%" v-else>告警类型</div>
<div style="width:20%">告警时间</div>
<div style="width:10%">操作</div>
</div>
<el-scrollbar class="list-box">
<div v-for="(item, index) in warnAlarmList" class="list-style" :key="item.id">
<div>{{ index + 1 }}</div>
<div class="list-img">
<div style="width: 10%">{{ index + 1 }}</div>
<div class="list-img" style="width:20%">
<div class="img-style">
<!-- <img src="@/assets/images/noData.png" /> -->
<img :src="BASEURL + '/image/' + item.imageUrl" />
</div>
</div>
<!-- <div>{{ item.dev }}</div> -->
<div>{{ item.hardwareName }}</div>
<div>{{ item.alarmType ? getWarnName(item.alarmType) : "" }}</div>
<div>{{ item.createTime }}</div>
<div style="color: #65d7f9; cursor: pointer" @click="openDetailDialog(item)">查看详情</div>
<div style="width: 20%">{{ item.hardwareName }}</div>
<div style="width: 20%" v-if="COMPANY === 'agjt'">
<span v-if="item.alarmType === 1">未穿安全工作服</span>
<span v-if="item.alarmType === 2">未戴安全帽</span>
<span v-if="item.alarmType === 3">烟火报警</span>
<span v-if="item.alarmType === 4">未穿戴安全带</span>
</div>
<div style="width: 20%" v-else>{{ item.alarmType ? getWarnName(item.alarmType) : "" }}</div>
<div style="width: 20%"> {{ item.createTime }}</div>
<div style="color: #65d7f9; cursor: pointer;width:10%" @click="openDetailDialog(item)">查看详情</div>
</div>
<div class="not-data" v-if="warnAlarmList.length == 0">
<img src="@/assets/images/noData.png" />
@ -68,6 +75,7 @@ import Card from "@/components/card.vue";
import { ref, onMounted, computed , onBeforeUnmount} from "vue";
import { getAlarmList, getAlarmTypeOption } from "@/api/modules/aIEarlyWarn";
import { GlobalStore } from "@/stores";
import { COMPANY } from "@/config/config";
import mitts from "@/utils/bus"; //
// import { aiAlarmTypeEnum } from "@/enums/project/aiAlarmTypeEnum";