@ued_fpi/data-visual 1.2.27 → 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/index.mjs +1 -2
- 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/DisasterWarning/index.vue.mjs +9 -3
- 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/EnterpriseProtectionCode/index.vue.mjs +1 -1
- package/dist/es/ipes/src/EventTracking/components/ListItem.vue.mjs +40 -0
- package/dist/es/ipes/src/{GeneralManagement → EventTracking}/components/Tabs.vue.mjs +11 -6
- package/dist/es/ipes/src/EventTracking/images/item-missionSuperviseStatus.png.mjs +3 -0
- package/dist/es/ipes/src/EventTracking/index.vue.mjs +168 -0
- 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 +25 -9
- 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/TodayWork/index.vue.mjs +6 -3
- 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/ipes/src/common/NoData.vue.mjs +20 -0
- package/dist/es/ipes/src/common/NoData.vue2.mjs +3 -0
- package/dist/es/ipes/src/common/NoData.vue3.mjs +6 -0
- package/dist/es/ipes/src/common/images/noData.svg.mjs +3 -0
- package/dist/es/ipes/src/index.mjs +1 -2
- 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 +12 -10
- 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/index.js +216 -218
- package/dist/lib/ipes/index.js +4 -4
- 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/DisasterWarning/index.vue.js +8 -2
- 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/EnterpriseProtectionCode/index.vue.js +1 -1
- package/dist/lib/ipes/src/EventTracking/components/ListItem.vue.js +44 -0
- package/dist/lib/ipes/src/{GeneralManagement → EventTracking}/components/Tabs.vue.js +10 -5
- package/dist/lib/ipes/src/EventTracking/images/item-missionSuperviseStatus.png.js +7 -0
- package/dist/lib/ipes/src/EventTracking/index.vue.js +172 -0
- 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 +24 -8
- 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/TodayWork/index.vue.js +5 -2
- 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/ipes/src/common/NoData.vue.js +24 -0
- package/dist/lib/ipes/src/common/NoData.vue2.js +7 -0
- package/dist/lib/ipes/src/common/NoData.vue3.js +10 -0
- package/dist/lib/ipes/src/common/images/noData.svg.js +7 -0
- package/dist/lib/ipes/src/index.js +107 -109
- 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 +11 -9
- 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/GeneralManagement/components/ListItem.vue.mjs +0 -35
- package/dist/es/ipes/src/GeneralManagement/index.vue.mjs +0 -60
- package/dist/es/ipes/src/KeyProblemEnterprises/index.mjs +0 -7
- package/dist/es/ipes/src/KeyProblemEnterprises/index.vue.mjs +0 -63
- package/dist/es/ipes/src/KeyProblemEnterprises/index.vue2.mjs +0 -3
- package/dist/es/ipes/src/KeyProblemEnterprises/index.vue3.mjs +0 -6
- package/dist/lib/ipes/src/GeneralManagement/components/ListItem.vue.js +0 -39
- package/dist/lib/ipes/src/GeneralManagement/index.vue.js +0 -64
- package/dist/lib/ipes/src/KeyProblemEnterprises/index.js +0 -12
- package/dist/lib/ipes/src/KeyProblemEnterprises/index.vue.js +0 -67
- package/dist/lib/ipes/src/KeyProblemEnterprises/index.vue2.js +0 -7
- package/dist/lib/ipes/src/KeyProblemEnterprises/index.vue3.js +0 -10
- /package/dist/es/ipes/src/{GeneralManagement → EventTracking}/components/ListItem.vue2.mjs +0 -0
- /package/dist/es/ipes/src/{GeneralManagement → EventTracking}/components/ListItem.vue3.mjs +0 -0
- /package/dist/es/ipes/src/{GeneralManagement → EventTracking}/components/Tabs.vue2.mjs +0 -0
- /package/dist/es/ipes/src/{GeneralManagement → EventTracking}/components/Tabs.vue3.mjs +0 -0
- /package/dist/es/ipes/src/{GeneralManagement → EventTracking}/index.mjs +0 -0
- /package/dist/es/ipes/src/{GeneralManagement → EventTracking}/index.vue2.mjs +0 -0
- /package/dist/es/ipes/src/{GeneralManagement → EventTracking}/index.vue3.mjs +0 -0
- /package/dist/lib/ipes/src/{GeneralManagement → EventTracking}/components/ListItem.vue2.js +0 -0
- /package/dist/lib/ipes/src/{GeneralManagement → EventTracking}/components/ListItem.vue3.js +0 -0
- /package/dist/lib/ipes/src/{GeneralManagement → EventTracking}/components/Tabs.vue2.js +0 -0
- /package/dist/lib/ipes/src/{GeneralManagement → EventTracking}/components/Tabs.vue3.js +0 -0
- /package/dist/lib/ipes/src/{GeneralManagement → EventTracking}/index.js +0 -0
- /package/dist/lib/ipes/src/{GeneralManagement → EventTracking}/index.vue2.js +0 -0
- /package/dist/lib/ipes/src/{GeneralManagement → EventTracking}/index.vue3.js +0 -0
package/dist/es/index.mjs
CHANGED
|
@@ -44,12 +44,11 @@ export { DvIpesAirQuality } from './ipes/src/AirQuality/index.mjs';
|
|
|
44
44
|
export { DvIpesAirQualityStandard } from './ipes/src/AirQualityStandard/index.mjs';
|
|
45
45
|
export { DvIpesAirPollutionDischarge } from './ipes/src/AirPollutionDischarge/index.mjs';
|
|
46
46
|
export { DvIpesEmergencyDuty } from './ipes/src/EmergencyDuty/index.mjs';
|
|
47
|
-
export { DvIpesGeneralManagement } from './ipes/src/
|
|
47
|
+
export { DvIpesGeneralManagement } from './ipes/src/EventTracking/index.mjs';
|
|
48
48
|
export { DvIpesOdorControl } from './ipes/src/OdorControl/index.mjs';
|
|
49
49
|
export { DvIpesSealingManage } from './ipes/src/SealingManage/index.mjs';
|
|
50
50
|
export { DvIpesVocStatistics } from './ipes/src/VocStatistics/index.mjs';
|
|
51
51
|
export { DvIpesEnterpriseProtectionCode } from './ipes/src/EnterpriseProtectionCode/index.mjs';
|
|
52
|
-
export { DvIpesKeyProblemEnterprises } from './ipes/src/KeyProblemEnterprises/index.mjs';
|
|
53
52
|
export { DvIpesAccessVehicleManage } from './ipes/src/AccessVehicleManage/index.mjs';
|
|
54
53
|
export { DvIpesTaskDispose } from './ipes/src/TaskDispose/index.mjs';
|
|
55
54
|
export { DvIpesEnvironmentalRiskManagement } from './ipes/src/EnvironmentalRiskManagement/index.mjs';
|
|
@@ -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({
|
|
@@ -51,10 +51,12 @@ import __vite_glob_0_49 from './images/unknown.png.mjs';
|
|
|
51
51
|
import __vite_glob_0_50 from './images/wild_fire1.png.mjs';
|
|
52
52
|
import __vite_glob_0_51 from './images/wild_fire2.png.mjs';
|
|
53
53
|
import __vite_glob_0_52 from './images/wild_fire3.png.mjs';
|
|
54
|
-
import { defineComponent, ref, watch, onMounted, openBlock, createElementBlock,
|
|
54
|
+
import { defineComponent, ref, watch, onMounted, openBlock, createElementBlock, unref, createBlock, withCtx, Fragment, renderList, createElementVNode, toDisplayString } from 'vue';
|
|
55
55
|
import { FpiElRolling } from '@ued_fpi/element-plus-expand';
|
|
56
56
|
import dayjs from 'dayjs';
|
|
57
57
|
import requestControl from '../../service/request.mjs';
|
|
58
|
+
import _sfc_main$1 from '../common/NoData.vue.mjs';
|
|
59
|
+
import '../common/NoData.vue2.mjs';
|
|
58
60
|
|
|
59
61
|
const _hoisted_1 = { class: "dv-ipes-disaster-warning" };
|
|
60
62
|
const _hoisted_2 = ["src"];
|
|
@@ -113,7 +115,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
115
|
});
|
|
114
116
|
return (_ctx, _cache) => {
|
|
115
117
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
116
|
-
|
|
118
|
+
unref(disasterList).length ? (openBlock(), createBlock(unref(FpiElRolling), {
|
|
119
|
+
key: 0,
|
|
117
120
|
class: "box",
|
|
118
121
|
direction: "y",
|
|
119
122
|
time: 10
|
|
@@ -135,7 +138,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
138
|
}), 128))
|
|
136
139
|
]),
|
|
137
140
|
_: 1
|
|
138
|
-
})
|
|
141
|
+
})) : (openBlock(), createBlock(_sfc_main$1, {
|
|
142
|
+
key: 1,
|
|
143
|
+
class: "box"
|
|
144
|
+
}))
|
|
139
145
|
]);
|
|
140
146
|
};
|
|
141
147
|
}
|
|
@@ -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,
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, onMounted, openBlock, createElementBlock, createE
|
|
|
2
2
|
import { FpiElRolling } from '@ued_fpi/element-plus-expand';
|
|
3
3
|
import requestControl from '../../service/request.mjs';
|
|
4
4
|
|
|
5
|
-
const _hoisted_1 = { class: "enterprise-protection-code" };
|
|
5
|
+
const _hoisted_1 = { class: "dv-ipes-enterprise-protection-code" };
|
|
6
6
|
const _hoisted_2 = { class: "dv-ipes-env-code-list" };
|
|
7
7
|
const _hoisted_3 = { class: "flex" };
|
|
8
8
|
const _hoisted_4 = {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, toDisplayString, unref, createCommentVNode } from 'vue';
|
|
2
|
+
import img from '../images/item-missionSuperviseStatus.png.mjs';
|
|
3
|
+
|
|
4
|
+
const _hoisted_1 = { class: "dv-ipes-item-wrap" };
|
|
5
|
+
const _hoisted_2 = { class: "dv-ipes-top-action" };
|
|
6
|
+
const _hoisted_3 = { class: "dv-ipes-time" };
|
|
7
|
+
const _hoisted_4 = { class: "dv-ipes-bottom-action" };
|
|
8
|
+
const _hoisted_5 = ["src"];
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "ListItem",
|
|
11
|
+
props: {
|
|
12
|
+
// 数据
|
|
13
|
+
data: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
23
|
+
createElementVNode("div", _hoisted_2, [
|
|
24
|
+
createElementVNode("div", {
|
|
25
|
+
class: normalizeClass(["dv-ipes-tag", `dv-ipes-level${__props.data.missionLevelCode}`])
|
|
26
|
+
}, toDisplayString(__props.data.missionLevelName), 3),
|
|
27
|
+
createElementVNode("div", _hoisted_3, toDisplayString(__props.data.startTimeStr), 1)
|
|
28
|
+
]),
|
|
29
|
+
createElementVNode("div", _hoisted_4, toDisplayString(__props.data.description), 1),
|
|
30
|
+
__props.data.missionSuperviseStatus !== 0 ? (openBlock(), createElementBlock("img", {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "item-missionSuperviseStatus",
|
|
33
|
+
src: unref(img)
|
|
34
|
+
}, null, 8, _hoisted_5)) : createCommentVNode("", true)
|
|
35
|
+
]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export { _sfc_main as default };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString } from 'vue';
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = { class: "dv-ipes-tabs-wrap" };
|
|
4
4
|
const _hoisted_2 = ["onClick"];
|
|
5
|
+
const _hoisted_3 = { class: "label" };
|
|
6
|
+
const _hoisted_4 = { class: "value" };
|
|
5
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
8
|
__name: "Tabs",
|
|
7
9
|
props: {
|
|
@@ -25,12 +27,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
27
|
}
|
|
26
28
|
return (_ctx, _cache) => {
|
|
27
29
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
28
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (item
|
|
30
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (item) => {
|
|
29
31
|
return openBlock(), createElementBlock("div", {
|
|
30
|
-
key:
|
|
31
|
-
class: normalizeClass(["dv-ipes-tabs-item", { "dv-ipes-activeTab": __props.modelValue === item.
|
|
32
|
-
onClick: ($event) => changeTab(item.
|
|
33
|
-
},
|
|
32
|
+
key: item.missionLevelCode,
|
|
33
|
+
class: normalizeClass(["dv-ipes-tabs-item", { "dv-ipes-activeTab": __props.modelValue === item.missionLevelCode }]),
|
|
34
|
+
onClick: ($event) => changeTab(item.missionLevelCode)
|
|
35
|
+
}, [
|
|
36
|
+
createElementVNode("span", _hoisted_3, toDisplayString(item.missionLevelName), 1),
|
|
37
|
+
createElementVNode("span", _hoisted_4, toDisplayString(item.count), 1)
|
|
38
|
+
], 10, _hoisted_2);
|
|
34
39
|
}), 128))
|
|
35
40
|
]);
|
|
36
41
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA2lSURBVGiBtZprcFXXdcd/a5+jt7AwCGRjYQsElsqzgA0YMFxBLDs22AZKGz8mjdOOJzP1TJs+ki99TDt12o6bafMldifT5EvSNMVO/cSPASJM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93ypkzVwFs9uwKVPtHW0NDsE2MDAIqK0vlwoVcZLHp06soKFg3UR2jkup7cvbsxGpQQ2jCN/UCnjzwAHL+/Dmrqur2InFtR8QCs1OIRF515tBQHIh0EkUfDzhXWejcXB/Xjgic+5DPSZ/7vxJZsmnTbsC55ZFZfzgw8LZcvHgRwCorJxEEKR9vigSqp+TChVxJ0GbMKEV1FpnMRenuntDt5m/EARg5ywSwysobCcMleH+Zrq5myZ43vkT6P1L33DSP+nBXAAAAAElFTkSuQmCC";
|
|
2
|
+
|
|
3
|
+
export { img as default };
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { ElInfiniteScroll } from 'element-plus/es';
|
|
2
|
+
import 'element-plus/es/components/base/style/css';
|
|
3
|
+
import 'element-plus/es/components/infinite-scroll/style/css';
|
|
4
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createVNode, withDirectives, Fragment, renderList, createBlock, createCommentVNode } from 'vue';
|
|
5
|
+
import requestControl from '../../service/request.mjs';
|
|
6
|
+
import _sfc_main$3 from '../common/NoData.vue.mjs';
|
|
7
|
+
import '../common/NoData.vue2.mjs';
|
|
8
|
+
import _sfc_main$1 from './components/Tabs.vue.mjs';
|
|
9
|
+
import './components/Tabs.vue2.mjs';
|
|
10
|
+
import _sfc_main$2 from './components/ListItem.vue.mjs';
|
|
11
|
+
import './components/ListItem.vue2.mjs';
|
|
12
|
+
|
|
13
|
+
const _hoisted_1 = { class: "dv-ipes-event-tracking" };
|
|
14
|
+
const _hoisted_2 = { class: "totalCount" };
|
|
15
|
+
const _hoisted_3 = { class: "num" };
|
|
16
|
+
const _hoisted_4 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "infinite-list-wrapper"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_5 = ["infinite-scroll-disabled"];
|
|
21
|
+
const _hoisted_6 = { key: 0 };
|
|
22
|
+
const _hoisted_7 = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "last-data"
|
|
25
|
+
};
|
|
26
|
+
const __default__ = {
|
|
27
|
+
name: "DvIpesEventTracking",
|
|
28
|
+
title: "事件跟踪"
|
|
29
|
+
};
|
|
30
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
31
|
+
...__default__,
|
|
32
|
+
emits: ["clickItem"],
|
|
33
|
+
setup(__props, { emit }) {
|
|
34
|
+
const activeTab = ref("");
|
|
35
|
+
const tabList = ref([]);
|
|
36
|
+
const cardData = ref([]);
|
|
37
|
+
const totalCount = ref(0);
|
|
38
|
+
const getCountByStatusForPark = async () => {
|
|
39
|
+
try {
|
|
40
|
+
const result = await requestControl({
|
|
41
|
+
method: "POST",
|
|
42
|
+
url: "/bmp-mission-center-server/api/v1/parkStatistics/countByStatusForPark",
|
|
43
|
+
data: {
|
|
44
|
+
// startTime: dayjs().startOf('day').valueOf(),
|
|
45
|
+
// endTime: dayjs().endOf('day').valueOf()
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
const data = result.data;
|
|
49
|
+
totalCount.value = data.doingCount + data.undoneCount;
|
|
50
|
+
} catch (error) {
|
|
51
|
+
console.log(error);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const getTaskLevelStatistics = async () => {
|
|
55
|
+
try {
|
|
56
|
+
const result = await requestControl({
|
|
57
|
+
method: "POST",
|
|
58
|
+
url: "/bmp-mission-center-server/api/v1/parkStatistics/countByMissionLevel",
|
|
59
|
+
data: {
|
|
60
|
+
// startTime: dayjs().startOf('day').valueOf(),
|
|
61
|
+
// endTime: dayjs().endOf('day').valueOf()
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
const data = result.data || [];
|
|
65
|
+
tabList.value = data;
|
|
66
|
+
activeTab.value = data[0].missionLevelCode;
|
|
67
|
+
getEventList();
|
|
68
|
+
} catch (error) {
|
|
69
|
+
console.log(error);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const limit = 10;
|
|
73
|
+
let page = 1;
|
|
74
|
+
const count = ref(0);
|
|
75
|
+
const listTotalCount = ref(0);
|
|
76
|
+
const getEventList = async () => {
|
|
77
|
+
try {
|
|
78
|
+
const result = await requestControl({
|
|
79
|
+
method: "POST",
|
|
80
|
+
url: "/bmp-mission-center-server/api/v1/missionRecord/pc/queryMissionRecordInfoPage",
|
|
81
|
+
data: {
|
|
82
|
+
missionLevelCodeList: [activeTab.value],
|
|
83
|
+
limit,
|
|
84
|
+
page
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
loading.value = false;
|
|
88
|
+
const data = result.data || [];
|
|
89
|
+
const d = data.map((item) => {
|
|
90
|
+
return {
|
|
91
|
+
id: item.id,
|
|
92
|
+
missionLevelCode: item.missionLevelCode,
|
|
93
|
+
missionLevelName: item.missionLevelName,
|
|
94
|
+
startTimeStr: item.startTimeStr,
|
|
95
|
+
missionSuperviseStatus: item.missionSuperviseStatus,
|
|
96
|
+
description: item.description
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
cardData.value.push(...d);
|
|
100
|
+
count.value = result.count;
|
|
101
|
+
listTotalCount.value = result.totalCount;
|
|
102
|
+
} catch (error) {
|
|
103
|
+
console.log(error);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
getCountByStatusForPark();
|
|
107
|
+
getTaskLevelStatistics();
|
|
108
|
+
const changeTab = (value) => {
|
|
109
|
+
activeTab.value = value;
|
|
110
|
+
page = 1;
|
|
111
|
+
count.value = 0;
|
|
112
|
+
listTotalCount.value = 0;
|
|
113
|
+
cardData.value = [];
|
|
114
|
+
getEventList();
|
|
115
|
+
};
|
|
116
|
+
const loading = ref(false);
|
|
117
|
+
const noMore = computed(() => (page - 1) * limit + count.value >= listTotalCount.value);
|
|
118
|
+
const disabled = computed(() => loading.value || noMore.value);
|
|
119
|
+
const load = () => {
|
|
120
|
+
loading.value = true;
|
|
121
|
+
page++;
|
|
122
|
+
getEventList();
|
|
123
|
+
};
|
|
124
|
+
const onClick = (item) => {
|
|
125
|
+
emit("clickItem", item);
|
|
126
|
+
};
|
|
127
|
+
return (_ctx, _cache) => {
|
|
128
|
+
const _directive_infinite_scroll = ElInfiniteScroll;
|
|
129
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
130
|
+
createElementVNode("div", _hoisted_2, [
|
|
131
|
+
createTextVNode(" 未办结事件 "),
|
|
132
|
+
createElementVNode("span", _hoisted_3, toDisplayString(totalCount.value), 1)
|
|
133
|
+
]),
|
|
134
|
+
createVNode(_sfc_main$1, {
|
|
135
|
+
class: "dv-ipes-tab",
|
|
136
|
+
data: tabList.value,
|
|
137
|
+
"model-value": activeTab.value,
|
|
138
|
+
onChange: changeTab
|
|
139
|
+
}, null, 8, ["data", "model-value"]),
|
|
140
|
+
cardData.value.length ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
141
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
142
|
+
class: "card-list",
|
|
143
|
+
"infinite-scroll-distance": "30",
|
|
144
|
+
"infinite-scroll-disabled": disabled.value
|
|
145
|
+
}, [
|
|
146
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(cardData.value, (item) => {
|
|
147
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
|
148
|
+
key: item.missionLevelCode,
|
|
149
|
+
class: "dv-ipes-list",
|
|
150
|
+
data: item,
|
|
151
|
+
onClick: ($event) => onClick(item)
|
|
152
|
+
}, null, 8, ["data", "onClick"]);
|
|
153
|
+
}), 128)),
|
|
154
|
+
loading.value ? (openBlock(), createElementBlock("p", _hoisted_6, " Loading... ")) : createCommentVNode("", true),
|
|
155
|
+
noMore.value ? (openBlock(), createElementBlock("p", _hoisted_7, " 到底啦~ ")) : createCommentVNode("", true)
|
|
156
|
+
], 8, _hoisted_5)), [
|
|
157
|
+
[_directive_infinite_scroll, load]
|
|
158
|
+
])
|
|
159
|
+
])) : (openBlock(), createBlock(_sfc_main$3, {
|
|
160
|
+
key: 1,
|
|
161
|
+
class: "infinite-list-wrapper"
|
|
162
|
+
}))
|
|
163
|
+
]);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
export { _sfc_main as default };
|
|
@@ -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
|
])
|