@ued_fpi/data-visual 1.2.28 → 1.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/ipes/src/AnnualEventStatistics/index.vue.mjs +3 -3
- package/dist/es/ipes/src/BasicSecurityManagement/index.vue.mjs +1 -1
- package/dist/es/ipes/src/EmengercyPlan/index.vue.mjs +1 -1
- package/dist/es/ipes/src/EmergencyWatch/index.vue.mjs +13 -26
- package/dist/es/ipes/src/EventTracking/index.vue.mjs +2 -0
- package/dist/es/ipes/src/GasControl/index.vue.mjs +1 -1
- package/dist/es/ipes/src/GroundwaterMonitor/index.vue.mjs +46 -31
- package/dist/es/ipes/src/HazardousWasteManagement/index.vue.mjs +19 -4
- package/dist/es/ipes/src/HomeworkVolumeTrend/index.vue.mjs +6 -2
- package/dist/es/ipes/src/Level3AirDefense/components/PercentageItem.vue.mjs +3 -3
- package/dist/es/ipes/src/PerformanceWarrantyResponsibilities/images/performance-light.png.mjs +1 -1
- package/dist/es/ipes/src/PerformanceWarrantyResponsibilities/images/performance.png.mjs +1 -1
- package/dist/es/ipes/src/PerformanceWarrantyResponsibilities/index.vue.mjs +33 -39
- package/dist/es/ipes/src/RiskClassification/index.vue.mjs +3 -5
- package/dist/es/ipes/src/VehicleTrend/index.vue.mjs +1 -1
- package/dist/es/ipes/src/WasteGas/index.vue.mjs +3 -11
- package/dist/es/ipes/src/WasteWater/index.vue.mjs +3 -11
- package/dist/es/ipes/src/WastewaterTargetRate/index.vue.mjs +22 -4
- package/dist/es/ipes/src/WaterQualityStandard/index.vue.mjs +13 -11
- package/dist/es/style.css +1 -1
- package/dist/es/wgms/src/ChangeAlongRiver/index.vue.mjs +6 -3
- package/dist/es/wgms/src/DistributionOfWaterQualityLevels/index.vue.mjs +3 -3
- package/dist/es/wgms/src/DrinkingWaterComplianceRate/index.vue.mjs +5 -6
- package/dist/es/wgms/src/RegionalQualityAnalysis/index.vue.mjs +24 -13
- package/dist/es/wgms/src/UpstreamImpact/index.vue.mjs +7 -4
- package/dist/es/wgms/src/WaterQualityRainfall/index.vue.mjs +10 -8
- package/dist/es/wgms/src/WaterQualitySituation/index.vue.mjs +29 -22
- package/dist/es/wgms/src/WaterQualityStatesAnalysis/index.vue.mjs +11 -6
- package/dist/es/wgms/src/common/popup-table.vue.mjs +1 -1
- package/dist/es/wgms/utils/echarts/echartsOptions.mjs +2 -2
- package/dist/es/wgms/utils/tools.mjs +7 -1
- package/dist/lib/ipes/src/AnnualEventStatistics/index.vue.js +3 -3
- package/dist/lib/ipes/src/BasicSecurityManagement/index.vue.js +1 -1
- package/dist/lib/ipes/src/EmengercyPlan/index.vue.js +1 -1
- package/dist/lib/ipes/src/EmergencyWatch/index.vue.js +12 -25
- package/dist/lib/ipes/src/EventTracking/index.vue.js +2 -0
- package/dist/lib/ipes/src/GasControl/index.vue.js +1 -1
- package/dist/lib/ipes/src/GroundwaterMonitor/index.vue.js +45 -30
- package/dist/lib/ipes/src/HazardousWasteManagement/index.vue.js +18 -3
- package/dist/lib/ipes/src/HomeworkVolumeTrend/index.vue.js +6 -2
- package/dist/lib/ipes/src/Level3AirDefense/components/PercentageItem.vue.js +3 -3
- package/dist/lib/ipes/src/PerformanceWarrantyResponsibilities/images/performance-light.png.js +1 -1
- package/dist/lib/ipes/src/PerformanceWarrantyResponsibilities/images/performance.png.js +1 -1
- package/dist/lib/ipes/src/PerformanceWarrantyResponsibilities/index.vue.js +33 -39
- package/dist/lib/ipes/src/RiskClassification/index.vue.js +3 -5
- package/dist/lib/ipes/src/VehicleTrend/index.vue.js +1 -1
- package/dist/lib/ipes/src/WasteGas/index.vue.js +2 -10
- package/dist/lib/ipes/src/WasteWater/index.vue.js +2 -10
- package/dist/lib/ipes/src/WastewaterTargetRate/index.vue.js +21 -3
- package/dist/lib/ipes/src/WaterQualityStandard/index.vue.js +12 -10
- package/dist/lib/style.css +1 -1
- package/dist/lib/wgms/src/ChangeAlongRiver/index.vue.js +6 -3
- package/dist/lib/wgms/src/DistributionOfWaterQualityLevels/index.vue.js +3 -3
- package/dist/lib/wgms/src/DrinkingWaterComplianceRate/index.vue.js +5 -6
- package/dist/lib/wgms/src/RegionalQualityAnalysis/index.vue.js +23 -12
- package/dist/lib/wgms/src/UpstreamImpact/index.vue.js +7 -4
- package/dist/lib/wgms/src/WaterQualityRainfall/index.vue.js +9 -7
- package/dist/lib/wgms/src/WaterQualitySituation/index.vue.js +29 -22
- package/dist/lib/wgms/src/WaterQualityStatesAnalysis/index.vue.js +11 -6
- package/dist/lib/wgms/src/common/popup-table.vue.js +1 -1
- package/dist/lib/wgms/utils/echarts/echartsOptions.js +2 -2
- package/dist/lib/wgms/utils/tools.js +7 -0
- package/dist/style/style-ipes.css +1 -1
- package/package.json +2 -2
- package/dist/es/ipes/src/EmergencyWatch/images/empty.png.mjs +0 -3
- package/dist/lib/ipes/src/EmergencyWatch/images/empty.png.js +0 -7
|
@@ -5,25 +5,23 @@ import drakImg from './images/performance.png.mjs';
|
|
|
5
5
|
import lightImg from './images/performance-light.png.mjs';
|
|
6
6
|
|
|
7
7
|
const _hoisted_1 = { class: "dv-ipes-performance-warranty-responsibilities" };
|
|
8
|
-
const _hoisted_2 = { class: "
|
|
9
|
-
const _hoisted_3 =
|
|
10
|
-
const _hoisted_4 = { class: "left
|
|
11
|
-
const _hoisted_5 =
|
|
12
|
-
const _hoisted_6 = { class: "
|
|
13
|
-
const _hoisted_7 =
|
|
14
|
-
const _hoisted_8 = { class: "
|
|
15
|
-
const _hoisted_9 = { class: "
|
|
16
|
-
const _hoisted_10 = /* @__PURE__ */ createElementVNode("
|
|
17
|
-
const _hoisted_11 = { class: "right flex" };
|
|
18
|
-
const _hoisted_12 = /* @__PURE__ */ createElementVNode("div", {
|
|
8
|
+
const _hoisted_2 = { class: "baseBox" };
|
|
9
|
+
const _hoisted_3 = ["src"];
|
|
10
|
+
const _hoisted_4 = { class: "left-responsibilities-box" };
|
|
11
|
+
const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "title" }, " 今日新增履职 ", -1);
|
|
12
|
+
const _hoisted_6 = { class: "num mgt8" };
|
|
13
|
+
const _hoisted_7 = { class: "count mgr6" };
|
|
14
|
+
const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", { class: "unit" }, "次", -1);
|
|
15
|
+
const _hoisted_9 = { class: "pieBox" };
|
|
16
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode("div", {
|
|
19
17
|
id: "majorPieChart",
|
|
20
18
|
class: "pie"
|
|
21
19
|
}, null, -1);
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
20
|
+
const _hoisted_11 = { class: "right-responsibilities-box" };
|
|
21
|
+
const _hoisted_12 = /* @__PURE__ */ createElementVNode("div", { class: "title" }, " 年度履职率 ", -1);
|
|
22
|
+
const _hoisted_13 = { class: "num mgt8" };
|
|
23
|
+
const _hoisted_14 = { class: "count rate mgr6" };
|
|
24
|
+
const _hoisted_15 = /* @__PURE__ */ createElementVNode("span", { class: "unit" }, "%", -1);
|
|
27
25
|
const __default__ = {
|
|
28
26
|
name: "DvIpesPerformanceWarrantyResponsibilities",
|
|
29
27
|
title: "包保责任履职"
|
|
@@ -116,29 +114,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
114
|
return (_ctx, _cache) => {
|
|
117
115
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
118
116
|
createElementVNode("div", _hoisted_2, [
|
|
119
|
-
createElementVNode("
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
createElementVNode("span", _hoisted_16, toDisplayString(basicInfoData.value.performanceRate), 1),
|
|
139
|
-
_hoisted_17
|
|
140
|
-
])
|
|
141
|
-
])
|
|
117
|
+
createElementVNode("img", {
|
|
118
|
+
class: "icon mgr4",
|
|
119
|
+
src: unref(isDark) ? unref(drakImg) : unref(lightImg)
|
|
120
|
+
}, null, 8, _hoisted_3),
|
|
121
|
+
createElementVNode("div", _hoisted_4, [
|
|
122
|
+
_hoisted_5,
|
|
123
|
+
createElementVNode("div", _hoisted_6, [
|
|
124
|
+
createElementVNode("span", _hoisted_7, toDisplayString(basicInfoData.value.dayGuaranteeCount), 1),
|
|
125
|
+
_hoisted_8
|
|
126
|
+
])
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
createElementVNode("div", _hoisted_9, [
|
|
130
|
+
_hoisted_10,
|
|
131
|
+
createElementVNode("div", _hoisted_11, [
|
|
132
|
+
_hoisted_12,
|
|
133
|
+
createElementVNode("div", _hoisted_13, [
|
|
134
|
+
createElementVNode("span", _hoisted_14, toDisplayString(basicInfoData.value.performanceRate), 1),
|
|
135
|
+
_hoisted_15
|
|
142
136
|
])
|
|
143
137
|
])
|
|
144
138
|
])
|
|
@@ -5,8 +5,8 @@ import '../../utils/highchartsPiePlugins.mjs';
|
|
|
5
5
|
|
|
6
6
|
const _hoisted_1 = { class: "dv-ipes-risk-classification" };
|
|
7
7
|
const _hoisted_2 = { class: "chart-box" };
|
|
8
|
-
const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", {
|
|
9
|
-
/* @__PURE__ */ createElementVNode("div",
|
|
8
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "topChartBox" }, [
|
|
9
|
+
/* @__PURE__ */ createElementVNode("div", { style: { "padding-left": "8px" } }, " 企业风险分级 "),
|
|
10
10
|
/* @__PURE__ */ createElementVNode("div", {
|
|
11
11
|
id: "pieChart",
|
|
12
12
|
class: "pie-chart"
|
|
@@ -51,7 +51,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
});
|
|
52
52
|
levelData.value = data;
|
|
53
53
|
const seriesData = handleSeriesData(data);
|
|
54
|
-
console.log(seriesData);
|
|
55
54
|
drawChart(seriesData);
|
|
56
55
|
} catch (error) {
|
|
57
56
|
console.log(error);
|
|
@@ -85,7 +84,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
84
|
const highcharts = window.Highcharts;
|
|
86
85
|
function loadFunction() {
|
|
87
86
|
const each = highcharts.each;
|
|
88
|
-
console.log(this);
|
|
89
87
|
const points = this.series[0].points;
|
|
90
88
|
each(points, (p) => {
|
|
91
89
|
p.graphic.attr({
|
|
@@ -135,7 +133,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
133
|
allowPointSelect: true,
|
|
136
134
|
cursor: "pointer",
|
|
137
135
|
innerSize: "50%",
|
|
138
|
-
size:
|
|
136
|
+
size: 90,
|
|
139
137
|
depth: 25,
|
|
140
138
|
dataLabels: {
|
|
141
139
|
enabled: false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, unref,
|
|
1
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, normalizeClass, normalizeStyle } from 'vue';
|
|
2
2
|
import { FpiElRolling } from '@ued_fpi/element-plus-expand';
|
|
3
3
|
import requestControl from '../../service/request.mjs';
|
|
4
4
|
|
|
@@ -22,8 +22,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
...__default__,
|
|
23
23
|
setup(__props) {
|
|
24
24
|
const factorList = ref([]);
|
|
25
|
-
const isRolling = ref(false);
|
|
26
|
-
const actionType = ref("none");
|
|
27
25
|
async function getData() {
|
|
28
26
|
try {
|
|
29
27
|
const { data } = await requestControl({
|
|
@@ -31,11 +29,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
29
|
url: "/ipes-data-aggregation-server/api/v1/env-protection/discharge"
|
|
32
30
|
});
|
|
33
31
|
const water = data.find((e) => e.name === "年度废气排放量");
|
|
34
|
-
if (water && water.factorList)
|
|
32
|
+
if (water && water.factorList)
|
|
35
33
|
factorList.value = water.factorList;
|
|
36
|
-
isRolling.value = factorList.value.length > 2;
|
|
37
|
-
actionType.value = factorList.value.length > 2 ? "hover" : "none";
|
|
38
|
-
}
|
|
39
34
|
} catch (error) {
|
|
40
35
|
console.log(error);
|
|
41
36
|
}
|
|
@@ -47,9 +42,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
42
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
48
43
|
_hoisted_2,
|
|
49
44
|
createVNode(unref(FpiElRolling), {
|
|
50
|
-
modelValue: unref(isRolling),
|
|
51
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(isRolling) ? isRolling.value = $event : null),
|
|
52
|
-
action: unref(actionType),
|
|
53
45
|
class: "box",
|
|
54
46
|
direction: "y",
|
|
55
47
|
time: 15
|
|
@@ -78,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
70
|
}), 128))
|
|
79
71
|
]),
|
|
80
72
|
_: 1
|
|
81
|
-
}
|
|
73
|
+
})
|
|
82
74
|
]);
|
|
83
75
|
};
|
|
84
76
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, unref,
|
|
1
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, normalizeClass, normalizeStyle } from 'vue';
|
|
2
2
|
import { FpiElRolling } from '@ued_fpi/element-plus-expand';
|
|
3
3
|
import requestControl from '../../service/request.mjs';
|
|
4
4
|
|
|
@@ -22,8 +22,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
...__default__,
|
|
23
23
|
setup(__props) {
|
|
24
24
|
const factorList = ref([]);
|
|
25
|
-
const isRolling = ref(false);
|
|
26
|
-
const actionType = ref("none");
|
|
27
25
|
async function getData() {
|
|
28
26
|
try {
|
|
29
27
|
const { data } = await requestControl({
|
|
@@ -31,11 +29,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
29
|
url: "/ipes-data-aggregation-server/api/v1/env-protection/discharge"
|
|
32
30
|
});
|
|
33
31
|
const water = data.find((e) => e.name === "年度废水排放量");
|
|
34
|
-
if (water && water.factorList)
|
|
32
|
+
if (water && water.factorList)
|
|
35
33
|
factorList.value = water.factorList;
|
|
36
|
-
isRolling.value = factorList.value.length > 2;
|
|
37
|
-
actionType.value = factorList.value.length > 2 ? "hover" : "none";
|
|
38
|
-
}
|
|
39
34
|
} catch (error) {
|
|
40
35
|
console.log(error);
|
|
41
36
|
}
|
|
@@ -47,9 +42,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
42
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
48
43
|
_hoisted_2,
|
|
49
44
|
createVNode(unref(FpiElRolling), {
|
|
50
|
-
modelValue: unref(isRolling),
|
|
51
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(isRolling) ? isRolling.value = $event : null),
|
|
52
|
-
action: unref(actionType),
|
|
53
45
|
class: "box",
|
|
54
46
|
direction: "y",
|
|
55
47
|
time: 15
|
|
@@ -78,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
70
|
}), 128))
|
|
79
71
|
]),
|
|
80
72
|
_: 1
|
|
81
|
-
}
|
|
73
|
+
})
|
|
82
74
|
]);
|
|
83
75
|
};
|
|
84
76
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import __vite_glob_0_0 from './images/bg-light.png.mjs';
|
|
2
2
|
import __vite_glob_0_1 from './images/bg.png.mjs';
|
|
3
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref } from 'vue';
|
|
3
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, normalizeStyle } from 'vue';
|
|
4
4
|
import requestControl from '../../service/request.mjs';
|
|
5
5
|
import { useThemeHook } from '../../../utils.mjs';
|
|
6
6
|
|
|
@@ -20,7 +20,6 @@ const _hoisted_10 = { class: "right-waste-water-box" };
|
|
|
20
20
|
const _hoisted_11 = ["src"];
|
|
21
21
|
const _hoisted_12 = { class: "info" };
|
|
22
22
|
const _hoisted_13 = /* @__PURE__ */ createElementVNode("div", { class: "label" }, " 污水厂总排口 ", -1);
|
|
23
|
-
const _hoisted_14 = { class: "value" };
|
|
24
23
|
const __default__ = {
|
|
25
24
|
name: "DvIpesWastewaterTargetRate",
|
|
26
25
|
title: "废水达标率"
|
|
@@ -54,7 +53,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
53
|
{ name: "未达标率", y: 100 - +(data.onlineRatio || 0) }
|
|
55
54
|
];
|
|
56
55
|
const seriesData = legendData;
|
|
57
|
-
console.log(seriesData);
|
|
58
56
|
const highcharts = window.Highcharts;
|
|
59
57
|
highcharts.chart("wasteWaterChart", {
|
|
60
58
|
chart: {
|
|
@@ -99,6 +97,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
97
|
]
|
|
100
98
|
});
|
|
101
99
|
}
|
|
100
|
+
function getSiteStateColor(runStatus) {
|
|
101
|
+
const statusColors = {
|
|
102
|
+
stop_running: "#FF792E",
|
|
103
|
+
// 停运
|
|
104
|
+
stop_using: "rgb(233, 169, 0)",
|
|
105
|
+
// 停用
|
|
106
|
+
offline: "rgb(116, 116, 116)",
|
|
107
|
+
// 离线
|
|
108
|
+
exceed: "rgb(228, 56, 52)",
|
|
109
|
+
// 超标
|
|
110
|
+
abnormal: "rgb(143, 32, 253)",
|
|
111
|
+
// 异常
|
|
112
|
+
normal: "rgb(58, 183, 93)"
|
|
113
|
+
// 正常
|
|
114
|
+
};
|
|
115
|
+
return statusColors[runStatus] || "#0084ff";
|
|
116
|
+
}
|
|
102
117
|
onMounted(() => {
|
|
103
118
|
getInfoData();
|
|
104
119
|
});
|
|
@@ -122,7 +137,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
137
|
}, null, 8, _hoisted_11),
|
|
123
138
|
createElementVNode("div", _hoisted_12, [
|
|
124
139
|
_hoisted_13,
|
|
125
|
-
createElementVNode("div",
|
|
140
|
+
createElementVNode("div", {
|
|
141
|
+
class: "value",
|
|
142
|
+
style: normalizeStyle({ color: getSiteStateColor(info.value.runStatus) })
|
|
143
|
+
}, toDisplayString(info.value.runStatusName), 5)
|
|
126
144
|
])
|
|
127
145
|
])
|
|
128
146
|
]);
|
|
@@ -4,16 +4,15 @@ import __vite_glob_0_2 from './images/standard-light.png.mjs';
|
|
|
4
4
|
import __vite_glob_0_3 from './images/standard.png.mjs';
|
|
5
5
|
import __vite_glob_0_4 from './images/unstandard-light.png.mjs';
|
|
6
6
|
import __vite_glob_0_5 from './images/unstandard.png.mjs';
|
|
7
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString } from 'vue';
|
|
7
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, normalizeStyle } from 'vue';
|
|
8
8
|
import { useThemeHook } from '../../../utils.mjs';
|
|
9
9
|
import requestControl from '../../service/request.mjs';
|
|
10
10
|
|
|
11
11
|
const _hoisted_1 = { class: "dv-ipes-water-quality-standard" };
|
|
12
12
|
const _hoisted_2 = { class: "title" };
|
|
13
13
|
const _hoisted_3 = { class: "info-box-count" };
|
|
14
|
-
const _hoisted_4 = { class: "
|
|
15
|
-
const _hoisted_5 =
|
|
16
|
-
const _hoisted_6 = ["src"];
|
|
14
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "unit" }, "类", -1);
|
|
15
|
+
const _hoisted_5 = ["src"];
|
|
17
16
|
const __default__ = {
|
|
18
17
|
name: "WaterQualityStandard",
|
|
19
18
|
title: "水环境质量达标"
|
|
@@ -35,8 +34,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
34
|
isRealOutReach: true
|
|
36
35
|
});
|
|
37
36
|
const basicInfos = ref([
|
|
38
|
-
{ title: "inSiteName", key: "realInLevel", standardKey: "isRealInReach" },
|
|
39
|
-
{ title: "outSiteName", key: "realOutLevel", standardKey: "isRealOutReach" }
|
|
37
|
+
{ title: "inSiteName", key: "realInLevel", standardKey: "isRealInReach", color: "realInColor" },
|
|
38
|
+
{ title: "outSiteName", key: "realOutLevel", standardKey: "isRealOutReach", color: "realOutColor" }
|
|
40
39
|
]);
|
|
41
40
|
async function getData() {
|
|
42
41
|
try {
|
|
@@ -48,8 +47,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
47
|
// 如果为false则不提去年度水质情况,默认为true(为兼容历史)(boolean)
|
|
49
48
|
}
|
|
50
49
|
});
|
|
51
|
-
const { inSiteName, realInLevel, isRealInReach, outSiteName, realOutLevel, isRealOutReach } = data;
|
|
52
|
-
basicInfoData.value = { inSiteName, realInLevel, isRealInReach, outSiteName, realOutLevel, isRealOutReach };
|
|
50
|
+
const { inSiteName, realInLevel, isRealInReach, outSiteName, realOutLevel, isRealOutReach, realOutColor, realInColor } = data;
|
|
51
|
+
basicInfoData.value = { inSiteName, realInLevel, isRealInReach, outSiteName, realOutLevel, isRealOutReach, realOutColor, realInColor };
|
|
53
52
|
} catch (error) {
|
|
54
53
|
console.log(error);
|
|
55
54
|
}
|
|
@@ -66,11 +65,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
65
|
}, [
|
|
67
66
|
createElementVNode("span", _hoisted_2, toDisplayString(basicInfoData.value[item.title]), 1),
|
|
68
67
|
createElementVNode("div", _hoisted_3, [
|
|
69
|
-
createElementVNode("span",
|
|
70
|
-
|
|
68
|
+
createElementVNode("span", {
|
|
69
|
+
class: "value",
|
|
70
|
+
style: normalizeStyle({ color: basicInfoData.value[item.color] })
|
|
71
|
+
}, toDisplayString(basicInfoData.value[item.key]), 5),
|
|
72
|
+
_hoisted_4,
|
|
71
73
|
createElementVNode("img", {
|
|
72
74
|
src: getImg(basicInfoData.value[item.standardKey])
|
|
73
|
-
}, null, 8,
|
|
75
|
+
}, null, 8, _hoisted_5)
|
|
74
76
|
])
|
|
75
77
|
]);
|
|
76
78
|
}), 128))
|