diff --git a/public/staticData/static.json b/public/staticData/static.json
index c872c94..3ced647 100644
--- a/public/staticData/static.json
+++ b/public/staticData/static.json
@@ -27,7 +27,7 @@
{
"rank": "TOP1",
"name": "株机公司",
- "value": 932
+ "value": 101
},
{
"rank": "TOP2",
@@ -330,7 +330,7 @@
{
"title": "调漆作业室",
"label": "智控场景",
- "value": null,
+ "value": 0,
"color": "#FFD700",
"image": "scene-control.png"
}
diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/TopAlarmsHaz/config.ts b/src/packages/components/Charts/HazardousChemicalsSpace/TopAlarmsHaz/config.ts
index def22ce..cbaddb5 100644
--- a/src/packages/components/Charts/HazardousChemicalsSpace/TopAlarmsHaz/config.ts
+++ b/src/packages/components/Charts/HazardousChemicalsSpace/TopAlarmsHaz/config.ts
@@ -2,6 +2,7 @@ import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { TopAlarmsConfig } from './index'
import dataJson from './data.json'
+import { cloneDeep } from 'lodash'
export const option = {
sceneCode: 'T04',
componentIndexKey: "a",
@@ -51,6 +52,6 @@ export const option = {
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = TopAlarmsConfig.key
public chartConfig = TopAlarmsConfig
- public option = option
+ public option = cloneDeep(option)
}
diff --git a/src/packages/components/Charts/HazardousChemicalsSpace/TopAlarmsHaz/index.vue b/src/packages/components/Charts/HazardousChemicalsSpace/TopAlarmsHaz/index.vue
index 4c93f3e..553ebe1 100644
--- a/src/packages/components/Charts/HazardousChemicalsSpace/TopAlarmsHaz/index.vue
+++ b/src/packages/components/Charts/HazardousChemicalsSpace/TopAlarmsHaz/index.vue
@@ -30,15 +30,15 @@
{{ index + 1 }}
- {{ item.enterpriseName }}
+ {{ item.name }}
- {{ item.alarmCount }}
+ {{ item.value }}
@@ -112,14 +112,14 @@ const fetchCorpsData = async (option: string) => {
const response: any =
// await axiosInstance.get(`/awjt/screen/corpsFive/${option}/${props.chartConfig.option.sceneCode}`, { baseURL: '' })
- // if (response.state === true) {
- // displayData.value = response.value || []
- // } else {
- // console.error('API调用失败:', response)
- // displayData.value = []
- // }
- // 使用静态数据
- await getStaticData(key, props.chartConfig.option.componentIndexKey, props.chartConfig.option.sceneCode);
+ // if (response.state === true) {
+ // displayData.value = response.value || []
+ // } else {
+ // console.error('API调用失败:', response)
+ // displayData.value = []
+ // }
+ // 使用静态数据
+ await getStaticData(key, props.chartConfig.option.componentIndexKey, props.chartConfig.option.sceneCode);
displayData.value = response['source']
props.chartConfig.option.titleText = response['titleText']
} catch (error) {
diff --git a/src/packages/components/Charts/MyComponents/ParkingScene/config.ts b/src/packages/components/Charts/MyComponents/ParkingScene/config.ts
index 5431c17..e6a2093 100644
--- a/src/packages/components/Charts/MyComponents/ParkingScene/config.ts
+++ b/src/packages/components/Charts/MyComponents/ParkingScene/config.ts
@@ -2,6 +2,7 @@ import { PublicConfigClass } from '@/packages/public'
import { CreateComponentType } from '@/packages/index.d'
import { ParkingSceneConfig } from './index'
import dataJson from './data.json'
+import { cloneDeep } from 'lodash'
export const option = {
sceneCode: "",
@@ -25,5 +26,5 @@ export const option = {
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = ParkingSceneConfig.key
public chartConfig = ParkingSceneConfig
- public option = option
+ public option = cloneDeep(option)
}
diff --git a/src/packages/components/Charts/MyComponents/ParkingScene/index.vue b/src/packages/components/Charts/MyComponents/ParkingScene/index.vue
index 7aa9fb1..eb3d160 100644
--- a/src/packages/components/Charts/MyComponents/ParkingScene/index.vue
+++ b/src/packages/components/Charts/MyComponents/ParkingScene/index.vue
@@ -225,52 +225,84 @@
-