@ued_fpi/data-visual 1.2.28 → 1.2.29
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 +9 -16
- package/dist/es/ipes/src/GasControl/index.vue.mjs +1 -1
- package/dist/es/ipes/src/GroundwaterMonitor/index.vue.mjs +14 -7
- 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/RiskClassification/index.vue.mjs +3 -5
- 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 +8 -7
- 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 +8 -15
- package/dist/lib/ipes/src/GasControl/index.vue.js +1 -1
- package/dist/lib/ipes/src/GroundwaterMonitor/index.vue.js +13 -6
- 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/RiskClassification/index.vue.js +3 -5
- 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 +7 -6
- 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
|
@@ -28,8 +28,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
setup(__props) {
|
|
29
29
|
const { isDark } = useThemeHook();
|
|
30
30
|
const colors = ["var(--dv-color-danger)", "var(--dv-color-success)", "var(--dv-color-warning)", "var(--dv-color-index)"];
|
|
31
|
-
const LinearGradientColor = [["#FF4A4A", "#FF7474"], ["#
|
|
32
|
-
const LinearGradientColor_light = [["#FF4A4A", "#FF7474"], ["#
|
|
31
|
+
const LinearGradientColor = [["#FF4A4A", "#FF7474"], ["#15F3A3", "#11D68F"], ["#FDBD00", "#F4A93B"], ["#59AEDE", "#338EC1"]];
|
|
32
|
+
const LinearGradientColor_light = [["#FF4A4A", "#FF7474"], ["#15F3A3", "#11D68F"], ["#FDBD00", "#F4A93B"], ["#1677FF", "#85B8FF"]];
|
|
33
33
|
const eventType = ref([
|
|
34
34
|
{ name: "安全", count: 0 },
|
|
35
35
|
{ name: "封闭化", count: 0 },
|
|
@@ -62,6 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
method: "get"
|
|
63
63
|
});
|
|
64
64
|
const { businessStat, levelStat } = res.data;
|
|
65
|
+
console.log(res.data);
|
|
65
66
|
yearTotal.value = levelStat?.total || 0;
|
|
66
67
|
levelData.value = levelStat?.gwLevels || [];
|
|
67
68
|
eventType.value = businessStat?.gwLevels || [];
|
|
@@ -84,7 +85,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
85
|
const highcharts = window.Highcharts;
|
|
85
86
|
function loadFunction() {
|
|
86
87
|
const each = highcharts.each;
|
|
87
|
-
console.log(this);
|
|
88
88
|
const points = this.series[0].points;
|
|
89
89
|
each(points, (p) => {
|
|
90
90
|
p.graphic.attr({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElEmpty } from 'element-plus/es';
|
|
2
2
|
import 'element-plus/es/components/base/style/css';
|
|
3
3
|
import 'element-plus/es/components/empty/style/css';
|
|
4
|
-
import { defineComponent, ref, computed, onMounted, openBlock, createElementBlock, createBlock, unref, withCtx, Fragment, renderList,
|
|
4
|
+
import { defineComponent, ref, computed, onMounted, openBlock, createElementBlock, createBlock, unref, withCtx, Fragment, renderList, createElementVNode, toDisplayString, normalizeStyle } from 'vue';
|
|
5
5
|
import { FpiElRolling } from '@ued_fpi/element-plus-expand';
|
|
6
6
|
import requestControl from '../../service/request.mjs';
|
|
7
7
|
import { useThemeHook } from '../../../utils.mjs';
|
|
@@ -29,15 +29,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
...__default__,
|
|
30
30
|
setup(__props) {
|
|
31
31
|
const { isDark } = useThemeHook();
|
|
32
|
-
const doneRate = ref(
|
|
32
|
+
const doneRate = ref(0);
|
|
33
33
|
const componentBox = ref(null);
|
|
34
34
|
const copies = computed(() => {
|
|
35
35
|
const offsetWidth = componentBox.value?.offsetWidth || 0;
|
|
36
36
|
return offsetWidth > 0 ? (offsetWidth - 24 - 2) / 3 : 0;
|
|
37
37
|
});
|
|
38
38
|
const commitmentData = ref([]);
|
|
39
|
-
const isRolling = ref(false);
|
|
40
|
-
const actionType = ref("none");
|
|
41
39
|
const getImg = (type, isDark2) => {
|
|
42
40
|
};
|
|
43
41
|
async function getCommitmentData() {
|
|
@@ -47,10 +45,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
45
|
url: "/ipes-emergency-manager-server/api/v2/duty/today-duty"
|
|
48
46
|
});
|
|
49
47
|
const rate = data?.logRate || 0;
|
|
50
|
-
doneRate.value =
|
|
48
|
+
doneRate.value = rate.toString().replace("%", "");
|
|
51
49
|
commitmentData.value = data.dutyPersons || [];
|
|
52
|
-
isRolling.value = commitmentData.value.length > 3;
|
|
53
|
-
actionType.value = commitmentData.value.length > 3 ? "hover" : "none";
|
|
54
50
|
} catch (error) {
|
|
55
51
|
console.log(error);
|
|
56
52
|
}
|
|
@@ -62,20 +58,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
58
|
const _component_el_empty = ElEmpty;
|
|
63
59
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
64
60
|
_hoisted_2,
|
|
65
|
-
commitmentData.value.length
|
|
61
|
+
commitmentData.value.length ? (openBlock(), createBlock(unref(FpiElRolling), {
|
|
66
62
|
key: 0,
|
|
67
|
-
modelValue: isRolling.value,
|
|
68
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRolling.value = $event),
|
|
69
|
-
action: actionType.value,
|
|
70
63
|
class: "list",
|
|
71
64
|
direction: "y",
|
|
72
65
|
time: 15
|
|
73
66
|
}, {
|
|
74
67
|
default: withCtx(() => [
|
|
75
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(commitmentData.value, (item) => {
|
|
68
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(commitmentData.value, (item, index) => {
|
|
76
69
|
return openBlock(), createElementBlock("div", {
|
|
77
|
-
key:
|
|
78
|
-
class:
|
|
70
|
+
key: index,
|
|
71
|
+
class: "security-box"
|
|
79
72
|
}, [
|
|
80
73
|
createElementVNode("div", _hoisted_3, [
|
|
81
74
|
createElementVNode("img", {
|
|
@@ -89,11 +82,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
82
|
])
|
|
90
83
|
])
|
|
91
84
|
])
|
|
92
|
-
]
|
|
85
|
+
]);
|
|
93
86
|
}), 128))
|
|
94
87
|
]),
|
|
95
88
|
_: 1
|
|
96
|
-
}
|
|
89
|
+
})) : (openBlock(), createBlock(_component_el_empty, {
|
|
97
90
|
key: 1,
|
|
98
91
|
class: "empty",
|
|
99
92
|
"image-size": 180,
|
|
@@ -59,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
]);
|
|
60
60
|
const labels = ["有毒有害气体", "易燃易爆监测", "VOCs厂界监测"];
|
|
61
61
|
const list = labels.map((label, index) => {
|
|
62
|
-
const nums = [res[index]
|
|
62
|
+
const nums = [res[index]?.normal, res[index]?.abnormal, res[index]?.offline];
|
|
63
63
|
return {
|
|
64
64
|
label,
|
|
65
65
|
nums
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeStyle } from 'vue';
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, openBlock, createElementBlock, createElementVNode, createCommentVNode, toDisplayString, Fragment, renderList, normalizeStyle } from 'vue';
|
|
2
2
|
import requestControl from '../../service/request.mjs';
|
|
3
3
|
|
|
4
4
|
const _hoisted_1 = { class: "dv-ipes-ground-water-monitor" };
|
|
@@ -6,7 +6,7 @@ const _hoisted_2 = { class: "pie-card" };
|
|
|
6
6
|
const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", { class: "top" }, null, -1);
|
|
7
7
|
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "bottom" }, null, -1);
|
|
8
8
|
const _hoisted_5 = { class: "label" };
|
|
9
|
-
const _hoisted_6 =
|
|
9
|
+
const _hoisted_6 = { class: "title" };
|
|
10
10
|
const _hoisted_7 = { class: "total mgt8" };
|
|
11
11
|
const _hoisted_8 = { class: "legend" };
|
|
12
12
|
const _hoisted_9 = { class: "typename" };
|
|
@@ -22,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
const colors = ref([]);
|
|
23
23
|
const waterTotal = ref(0);
|
|
24
24
|
const legendData = ref([]);
|
|
25
|
+
const waterName = ref("地下水监控");
|
|
25
26
|
const groundwaterChart = ref();
|
|
26
27
|
function drawChart(data) {
|
|
27
28
|
const Highcharts = window.Highcharts;
|
|
@@ -40,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
title: {
|
|
41
42
|
text: null
|
|
42
43
|
},
|
|
43
|
-
colors,
|
|
44
|
+
colors: colors.value,
|
|
44
45
|
tooltip: {
|
|
45
46
|
enabled: false
|
|
46
47
|
},
|
|
@@ -76,9 +77,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
77
|
method: "get",
|
|
77
78
|
url: "/ipes-data-aggregation-server/api/v2/gis/env/gw-level-stat"
|
|
78
79
|
});
|
|
79
|
-
const {
|
|
80
|
+
const { name, total } = result.data;
|
|
81
|
+
let { gwLevels } = result.data;
|
|
80
82
|
const seriesData = [];
|
|
81
83
|
const colorList = [];
|
|
84
|
+
gwLevels = gwLevels.filter((item) => {
|
|
85
|
+
return item.count !== 0;
|
|
86
|
+
});
|
|
82
87
|
gwLevels.forEach((item) => {
|
|
83
88
|
seriesData.push([item.name, item.count]);
|
|
84
89
|
colorList.push(item.color);
|
|
@@ -86,6 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
91
|
colors.value = colorList;
|
|
87
92
|
legendData.value = gwLevels;
|
|
88
93
|
waterTotal.value = total;
|
|
94
|
+
waterName.value = name;
|
|
89
95
|
drawChart(seriesData);
|
|
90
96
|
} catch (error) {
|
|
91
97
|
console.log(error);
|
|
@@ -98,15 +104,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
104
|
return (_ctx, _cache) => {
|
|
99
105
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
100
106
|
createElementVNode("div", _hoisted_2, [
|
|
101
|
-
|
|
107
|
+
waterTotal.value ? (openBlock(), createElementBlock("div", {
|
|
108
|
+
key: 0,
|
|
102
109
|
ref_key: "groundwaterChart",
|
|
103
110
|
ref: groundwaterChart,
|
|
104
111
|
class: "pie"
|
|
105
|
-
}, null, 512),
|
|
112
|
+
}, null, 512)) : createCommentVNode("", true),
|
|
106
113
|
_hoisted_3,
|
|
107
114
|
_hoisted_4,
|
|
108
115
|
createElementVNode("div", _hoisted_5, [
|
|
109
|
-
_hoisted_6,
|
|
116
|
+
createElementVNode("div", _hoisted_6, toDisplayString(waterName.value), 1),
|
|
110
117
|
createElementVNode("div", _hoisted_7, toDisplayString(waterTotal.value), 1)
|
|
111
118
|
])
|
|
112
119
|
]),
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ElTooltip } from 'element-plus/es';
|
|
2
|
+
import 'element-plus/es/components/base/style/css';
|
|
3
|
+
import 'element-plus/es/components/tooltip/style/css';
|
|
1
4
|
import __vite_glob_0_0 from './images/bg-light.png.mjs';
|
|
2
5
|
import __vite_glob_0_1 from './images/bg.png.mjs';
|
|
3
6
|
import __vite_glob_0_2 from './images/selfUse-light.png.mjs';
|
|
@@ -8,7 +11,7 @@ import __vite_glob_0_6 from './images/transfer-light.png.mjs';
|
|
|
8
11
|
import __vite_glob_0_7 from './images/transfer.png.mjs';
|
|
9
12
|
import __vite_glob_0_8 from './images/wasteGenerated-light.png.mjs';
|
|
10
13
|
import __vite_glob_0_9 from './images/wasteGenerated.png.mjs';
|
|
11
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, unref, toDisplayString } from 'vue';
|
|
14
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, unref, toDisplayString, createVNode, withCtx } from 'vue';
|
|
12
15
|
import dayjs from 'dayjs';
|
|
13
16
|
import requestControl from '../../service/request.mjs';
|
|
14
17
|
import { useThemeHook } from '../../../utils.mjs';
|
|
@@ -18,9 +21,9 @@ const _hoisted_2 = { class: "box" };
|
|
|
18
21
|
const _hoisted_3 = ["src"];
|
|
19
22
|
const _hoisted_4 = { class: "info" };
|
|
20
23
|
const _hoisted_5 = { class: "name" };
|
|
21
|
-
const _hoisted_6 = { class: "right" };
|
|
24
|
+
const _hoisted_6 = { class: "right flex" };
|
|
22
25
|
const _hoisted_7 = { class: "value" };
|
|
23
|
-
const _hoisted_8 = /* @__PURE__ */ createElementVNode("
|
|
26
|
+
const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", { class: "unit" }, " 吨 ", -1);
|
|
24
27
|
const __default__ = {
|
|
25
28
|
name: "DvIpesHazardousWasteManagement",
|
|
26
29
|
title: "危废管理"
|
|
@@ -69,6 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
72
|
getData();
|
|
70
73
|
});
|
|
71
74
|
return (_ctx, _cache) => {
|
|
75
|
+
const _component_el_tooltip = ElTooltip;
|
|
72
76
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
73
77
|
(openBlock(true), createElementBlock(Fragment, null, renderList(basicInfos.value, (item) => {
|
|
74
78
|
return openBlock(), createElementBlock("div", {
|
|
@@ -82,7 +86,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
86
|
createElementVNode("div", _hoisted_4, [
|
|
83
87
|
createElementVNode("div", _hoisted_5, toDisplayString(item.name), 1),
|
|
84
88
|
createElementVNode("div", _hoisted_6, [
|
|
85
|
-
|
|
89
|
+
createVNode(_component_el_tooltip, {
|
|
90
|
+
disabled: getShowData(infoData.value[item.key]) && getShowData(infoData.value[item.key]).length < 8,
|
|
91
|
+
class: "item",
|
|
92
|
+
effect: "dark",
|
|
93
|
+
content: getShowData(infoData.value[item.key]),
|
|
94
|
+
placement: "top-start"
|
|
95
|
+
}, {
|
|
96
|
+
default: withCtx(() => [
|
|
97
|
+
createElementVNode("div", _hoisted_7, toDisplayString(getShowData(infoData.value[item.key])), 1)
|
|
98
|
+
]),
|
|
99
|
+
_: 2
|
|
100
|
+
}, 1032, ["disabled", "content"]),
|
|
86
101
|
_hoisted_8
|
|
87
102
|
])
|
|
88
103
|
])
|
|
@@ -58,7 +58,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
xAxis: {
|
|
59
59
|
type: "category",
|
|
60
60
|
axisLabel: {
|
|
61
|
-
color: xlabelColor.value
|
|
61
|
+
color: xlabelColor.value,
|
|
62
|
+
fontFamily: "var(--dv-font-family-number)",
|
|
63
|
+
fontSize: "var(--dv-text-number2)"
|
|
62
64
|
},
|
|
63
65
|
axisTick: {
|
|
64
66
|
show: false
|
|
@@ -73,7 +75,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
75
|
yAxis: {
|
|
74
76
|
type: "value",
|
|
75
77
|
axisLabel: {
|
|
76
|
-
color: ylabelColor.value
|
|
78
|
+
color: ylabelColor.value,
|
|
79
|
+
fontFamily: "var(--dv-font-family-number)",
|
|
80
|
+
fontSize: "var(--dv-text-number2)"
|
|
77
81
|
},
|
|
78
82
|
splitLine: {
|
|
79
83
|
lineStyle: {
|
|
@@ -39,11 +39,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
});
|
|
40
40
|
return (_ctx, _cache) => {
|
|
41
41
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
42
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(data.value, (name,
|
|
42
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(data.value, (name, index) => {
|
|
43
43
|
return openBlock(), createElementBlock("div", {
|
|
44
|
-
key:
|
|
44
|
+
key: index,
|
|
45
45
|
class: "dv-ipes-percentage-item",
|
|
46
|
-
style: normalizeStyle({ backgroundColor: colors[
|
|
46
|
+
style: normalizeStyle({ backgroundColor: colors[index], width: `${name}%` })
|
|
47
47
|
}, null, 4);
|
|
48
48
|
}), 128))
|
|
49
49
|
]);
|
|
@@ -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, normalizeClass } 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: "水环境质量达标"
|
|
@@ -66,11 +65,13 @@ 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: normalizeClass(["value", item.key])
|
|
70
|
+
}, toDisplayString(basicInfoData.value[item.key]), 3),
|
|
71
|
+
_hoisted_4,
|
|
71
72
|
createElementVNode("img", {
|
|
72
73
|
src: getImg(basicInfoData.value[item.standardKey])
|
|
73
|
-
}, null, 8,
|
|
74
|
+
}, null, 8, _hoisted_5)
|
|
74
75
|
])
|
|
75
76
|
]);
|
|
76
77
|
}), 128))
|