fix: BUG修改

This commit is contained in:
kun 2024-02-20 11:14:31 +08:00
parent 44e2370e6d
commit b07c19325e
2 changed files with 30 additions and 8 deletions

View File

@ -2,7 +2,7 @@
NODE_ENV = 'development'
# 本地环境接口地址(/api/index.ts文件中使用)
VITE_API_URL = 'http://192.168.34.221:9111'
# VITE_API_URL = 'http://192.168.34.221:9111'
# VITE_API_URL = 'http://192.168.34.221:28888'
# VITE_API_URL = 'http://121.196.214.246/api'
# VITE_API_URL = 'http://jxj.zhgdyun.com:100'
@ -12,7 +12,7 @@ VITE_API_URL = 'http://192.168.34.221:9111'
# 演示平台
# VITE_API_URL = 'http://jxj.zhgdyun.com:9809'
# 百色七参数线上地址
# VITE_API_URL = 'http://101.43.164.214:11113'
VITE_API_URL = 'http://101.43.164.214:11113'
# 上传
VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url='

View File

@ -1,7 +1,7 @@
<template>
<Card title="今日报警统计">
<div class="top-bg">
<div class="num">{{ totalAlarm }}</div>
<!-- <div class="num">{{ totalAlarm }}</div> -->
<div class="styleImg"></div>
<div id="echartsTest" style="width: 100%; height: 100%"></div>
</div>
@ -332,15 +332,36 @@ let option = ref({
color: color,
center: ["25%", "50%"],
// title: {
// text: "",
// top: "130",
// textAlign: "center",
// left: "24%",
// textStyle: {
// color: "#fff",
// fontSize: 14,
// fontWeight: "400",
// align: "center"
// }
// },
title: {
text: "报警总数",
top: "130",
text: totalAlarm.value,
subtext: "报警总数",
x: "24.5%",
y: "center",
textAlign: "center",
left: "24%",
textStyle: {
color: "#fff",
fontSize: 24,
fontWeight: "normal",
align: "center",
fontFamily: "sadigitalNumber"
},
subtextStyle: {
color: "#fff",
fontSize: 14,
fontWeight: "400"
fontWeight: "400",
align: "center"
}
},
tooltip: {
@ -439,12 +460,13 @@ function getCirlPoint(x0, y0, r, angle) {
//
const getList = async () => {
const res = await getAlarmCountTotalApi({
projectSn: store.sn,
sn: store.sn,
selectType: 1
});
// console.log("", res);
if (res.result) {
totalAlarm.value = res.result.totalAlarm;
option.value.title.text = res.result.totalAlarm;
for (let i = 0; i < totalData.value.length; i++) {
if (totalData.value[i].name == "噪声报警") {
totalData.value[i].value = res.result.noiseNum;