@ued_fpi/data-visual 1.2.21 → 1.2.22

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.
Files changed (85) hide show
  1. package/dist/es/index.mjs +4 -0
  2. package/dist/es/ipes/src/AirQualityManage/index.vue.mjs +1 -1
  3. package/dist/es/ipes/src/AlarmManage/index.vue.mjs +1 -1
  4. package/dist/es/ipes/src/AnnualEventStatistics/index.vue.mjs +6 -8
  5. package/dist/es/ipes/src/BasicSecurityInfo/index.vue.mjs +1 -1
  6. package/dist/es/ipes/src/ClassifiedRegulation/components/BarItem.vue.mjs +20 -0
  7. package/dist/es/ipes/src/ClassifiedRegulation/components/BarItem.vue2.mjs +15 -0
  8. package/dist/es/ipes/src/ClassifiedRegulation/components/BarItem.vue3.mjs +3 -0
  9. package/dist/es/ipes/src/ClassifiedRegulation/index.mjs +7 -0
  10. package/dist/es/ipes/src/ClassifiedRegulation/index.vue.mjs +84 -0
  11. package/dist/es/ipes/src/ClassifiedRegulation/index.vue2.mjs +3 -0
  12. package/dist/es/ipes/src/ClassifiedRegulation/index.vue3.mjs +6 -0
  13. package/dist/es/ipes/src/EnterpriseProtectionCode/index.vue.mjs +87 -10
  14. package/dist/es/ipes/src/EventMonth/index.vue.mjs +15 -36
  15. package/dist/es/ipes/src/GroundwaterMonitor/index.vue.mjs +38 -38
  16. package/dist/es/ipes/src/HazardousWasteManagement/index.vue.mjs +4 -4
  17. package/dist/es/ipes/src/MajorRiskManagement/images/bg-light.png.mjs +3 -0
  18. package/dist/es/ipes/src/MajorRiskManagement/images/bg.png.mjs +3 -0
  19. package/dist/es/ipes/src/MajorRiskManagement/index.mjs +7 -0
  20. package/dist/es/ipes/src/MajorRiskManagement/index.vue.mjs +85 -0
  21. package/dist/es/ipes/src/MajorRiskManagement/index.vue2.mjs +3 -0
  22. package/dist/es/ipes/src/MajorRiskManagement/index.vue3.mjs +6 -0
  23. package/dist/es/ipes/src/OnlineMonitor/index.vue.mjs +23 -7
  24. package/dist/es/ipes/src/PerformanceWarrantyResponsibilities/index.vue.mjs +1 -1
  25. package/dist/es/ipes/src/PersonnelPassage/index.vue.mjs +10 -6
  26. package/dist/es/ipes/src/SensingEquipment/index.mjs +7 -0
  27. package/dist/es/ipes/src/SensingEquipment/index.vue.mjs +107 -0
  28. package/dist/es/ipes/src/SensingEquipment/index.vue2.mjs +3 -0
  29. package/dist/es/ipes/src/SensingEquipment/index.vue3.mjs +6 -0
  30. package/dist/es/ipes/src/StartStopMajorMaintenance/index.vue.mjs +1 -1
  31. package/dist/es/ipes/src/VehiclePassage/index.vue.mjs +10 -6
  32. package/dist/es/ipes/src/VehicleTrend/index.vue.mjs +40 -20
  33. package/dist/es/ipes/src/VideoEquipment/index.mjs +7 -0
  34. package/dist/es/ipes/src/VideoEquipment/index.vue.mjs +82 -0
  35. package/dist/es/ipes/src/VideoEquipment/index.vue2.mjs +3 -0
  36. package/dist/es/ipes/src/VideoEquipment/index.vue3.mjs +6 -0
  37. package/dist/es/ipes/src/VocsControl/index.vue.mjs +8 -6
  38. package/dist/es/ipes/src/WaterQualityStandard/index.vue.mjs +7 -12
  39. package/dist/es/ipes/src/common/RealTimeAir.vue.mjs +19 -23
  40. package/dist/es/ipes/src/index.mjs +4 -0
  41. package/dist/es/style.css +1 -1
  42. package/dist/lib/index.js +120 -112
  43. package/dist/lib/ipes/index.js +4 -4
  44. package/dist/lib/ipes/src/AirQualityManage/index.vue.js +1 -1
  45. package/dist/lib/ipes/src/AlarmManage/index.vue.js +1 -1
  46. package/dist/lib/ipes/src/AnnualEventStatistics/index.vue.js +6 -8
  47. package/dist/lib/ipes/src/BasicSecurityInfo/index.vue.js +1 -1
  48. package/dist/lib/ipes/src/ClassifiedRegulation/components/BarItem.vue.js +24 -0
  49. package/dist/lib/ipes/src/ClassifiedRegulation/components/BarItem.vue2.js +19 -0
  50. package/dist/lib/ipes/src/ClassifiedRegulation/components/BarItem.vue3.js +7 -0
  51. package/dist/lib/ipes/src/ClassifiedRegulation/index.js +12 -0
  52. package/dist/lib/ipes/src/ClassifiedRegulation/index.vue.js +88 -0
  53. package/dist/lib/ipes/src/ClassifiedRegulation/index.vue2.js +7 -0
  54. package/dist/lib/ipes/src/ClassifiedRegulation/index.vue3.js +10 -0
  55. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.vue.js +86 -9
  56. package/dist/lib/ipes/src/EventMonth/index.vue.js +15 -36
  57. package/dist/lib/ipes/src/GroundwaterMonitor/index.vue.js +38 -38
  58. package/dist/lib/ipes/src/HazardousWasteManagement/index.vue.js +4 -4
  59. package/dist/lib/ipes/src/MajorRiskManagement/images/bg-light.png.js +7 -0
  60. package/dist/lib/ipes/src/MajorRiskManagement/images/bg.png.js +7 -0
  61. package/dist/lib/ipes/src/MajorRiskManagement/index.js +12 -0
  62. package/dist/lib/ipes/src/MajorRiskManagement/index.vue.js +89 -0
  63. package/dist/lib/ipes/src/MajorRiskManagement/index.vue2.js +7 -0
  64. package/dist/lib/ipes/src/MajorRiskManagement/index.vue3.js +10 -0
  65. package/dist/lib/ipes/src/OnlineMonitor/index.vue.js +23 -7
  66. package/dist/lib/ipes/src/PerformanceWarrantyResponsibilities/index.vue.js +1 -1
  67. package/dist/lib/ipes/src/PersonnelPassage/index.vue.js +9 -5
  68. package/dist/lib/ipes/src/SensingEquipment/index.js +12 -0
  69. package/dist/lib/ipes/src/SensingEquipment/index.vue.js +111 -0
  70. package/dist/lib/ipes/src/SensingEquipment/index.vue2.js +7 -0
  71. package/dist/lib/ipes/src/SensingEquipment/index.vue3.js +10 -0
  72. package/dist/lib/ipes/src/StartStopMajorMaintenance/index.vue.js +1 -1
  73. package/dist/lib/ipes/src/VehiclePassage/index.vue.js +9 -5
  74. package/dist/lib/ipes/src/VehicleTrend/index.vue.js +40 -20
  75. package/dist/lib/ipes/src/VideoEquipment/index.js +12 -0
  76. package/dist/lib/ipes/src/VideoEquipment/index.vue.js +86 -0
  77. package/dist/lib/ipes/src/VideoEquipment/index.vue2.js +7 -0
  78. package/dist/lib/ipes/src/VideoEquipment/index.vue3.js +10 -0
  79. package/dist/lib/ipes/src/VocsControl/index.vue.js +8 -6
  80. package/dist/lib/ipes/src/WaterQualityStandard/index.vue.js +7 -12
  81. package/dist/lib/ipes/src/common/RealTimeAir.vue.js +19 -23
  82. package/dist/lib/ipes/src/index.js +8 -0
  83. package/dist/lib/style.css +1 -1
  84. package/dist/style/style-ipes.css +1 -1
  85. package/package.json +2 -2
@@ -0,0 +1,111 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const vue = require('vue');
6
+ const request = require('../../service/request.js');
7
+ const utils = require('../../../utils.js');
8
+
9
+ const _hoisted_1 = { class: "dv-ipes-sensing-equipment" };
10
+ const _hoisted_2 = { class: "equipment-header" };
11
+ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("div", { class: "equipment-title" }, " 传感设备 ", -1);
12
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("span", { class: "equipment-count" }, "总数", -1);
13
+ const _hoisted_5 = { class: "equipment-value" };
14
+ const _hoisted_6 = { class: "equipment-content" };
15
+ const _hoisted_7 = { class: "flex flex-s" };
16
+ const _hoisted_8 = { class: "value" };
17
+ const __default__ = {
18
+ name: "DvIpesSensingEquipment",
19
+ title: "传感设备"
20
+ };
21
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
22
+ ...__default__,
23
+ props: {
24
+ monitorTypes: { default: "" }
25
+ },
26
+ setup(__props) {
27
+ const props = __props;
28
+ utils.useThemeHook();
29
+ const total = vue.ref(0);
30
+ const countData = vue.ref({
31
+ normal: 0,
32
+ // 正常
33
+ abnormal: 0,
34
+ // 异常
35
+ offline: 0,
36
+ // 离线
37
+ stop_using: 0,
38
+ // 停用
39
+ exceed: 0
40
+ // 超标
41
+ });
42
+ const Infos = vue.ref([
43
+ { title: "正常", key: "normal", color: "var(--dv-color-success)" },
44
+ { title: "异常", key: "abnormal", color: "var(--abnormal)" },
45
+ { title: "离线", key: "offline", color: "var(--offline)" },
46
+ { title: "停用", key: "stop_using", color: "var(--dv-color-warning)" },
47
+ { title: "超标", key: "exceed", color: "var(--dv-color-danger)" }
48
+ ]);
49
+ async function getData() {
50
+ try {
51
+ const res = await request.default({
52
+ method: "get",
53
+ url: "/ipes-monitor-server/api/v2/datastatistics/all-run-status-statistics",
54
+ params: props
55
+ });
56
+ const obj = {};
57
+ res?.data.forEach((e) => {
58
+ const key = e.runStatusCode;
59
+ obj[key] = e.count;
60
+ });
61
+ const { normal = 0, abnormal = 0, offline = 0, stop_using = 0, exceed = 0 } = obj;
62
+ total.value = normal + abnormal + offline + stop_using + exceed;
63
+ countData.value = {
64
+ normal,
65
+ abnormal,
66
+ offline,
67
+ stop_using,
68
+ exceed
69
+ };
70
+ } catch (error) {
71
+ console.log(error);
72
+ }
73
+ }
74
+ function getShowData(value) {
75
+ return value == null ? "0" : value;
76
+ }
77
+ vue.onMounted(() => {
78
+ getData();
79
+ });
80
+ return (_ctx, _cache) => {
81
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
82
+ vue.createElementVNode("div", _hoisted_2, [
83
+ _hoisted_3,
84
+ vue.createElementVNode("div", null, [
85
+ _hoisted_4,
86
+ vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(getShowData(total.value)), 1)
87
+ ])
88
+ ]),
89
+ vue.createElementVNode("div", _hoisted_6, [
90
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Infos.value, (item) => {
91
+ return vue.openBlock(), vue.createElementBlock("div", {
92
+ key: item.key,
93
+ class: "item"
94
+ }, [
95
+ vue.createElementVNode("div", _hoisted_7, [
96
+ vue.createElementVNode("div", {
97
+ class: "dot",
98
+ style: vue.normalizeStyle({ backgroundColor: item.color })
99
+ }, null, 4),
100
+ vue.createElementVNode("div", null, vue.toDisplayString(item.title), 1)
101
+ ]),
102
+ vue.createElementVNode("div", _hoisted_8, vue.toDisplayString(getShowData(countData.value[item.key])), 1)
103
+ ]);
104
+ }), 128))
105
+ ])
106
+ ]);
107
+ };
108
+ }
109
+ });
110
+
111
+ exports.default = _sfc_main;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ /* unplugin-vue-components disabled */const index_vue_vue_type_style_index_0_lang = '';
6
+
7
+ exports.default = index_vue_vue_type_style_index_0_lang;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const index_vue_vue_type_script_setup_true_lang = require('./index.vue.js');
6
+ require('./index.vue2.js');
7
+
8
+
9
+
10
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;
@@ -4,7 +4,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
4
4
 
5
5
  const vue = require('vue');
6
6
 
7
- const _hoisted_1 = { class: "dv-ipes-basic-info" };
7
+ const _hoisted_1 = { class: "dv-ipes-start-stop-major-maintenance" };
8
8
  const _hoisted_2 = { class: "title" };
9
9
  const _hoisted_3 = { class: "info-box-count" };
10
10
  const _hoisted_4 = { class: "value" };
@@ -17,7 +17,10 @@ const request = require('../../service/request.js');
17
17
  const utils = require('../../../utils.js');
18
18
 
19
19
  const _hoisted_1 = { class: "dv-ipes-vehicle-passage" };
20
- const _hoisted_2 = { class: "list" };
20
+ const _hoisted_2 = {
21
+ key: 0,
22
+ class: "list"
23
+ };
21
24
  const _hoisted_3 = { class: "box enter" };
22
25
  const _hoisted_4 = { class: "value" };
23
26
  const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("div", { class: "name" }, " 今日入园 ", -1);
@@ -25,7 +28,7 @@ const _hoisted_6 = { class: "box leave" };
25
28
  const _hoisted_7 = { class: "value" };
26
29
  const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("div", { class: "name" }, " 今日出园 ", -1);
27
30
  const _hoisted_9 = {
28
- key: 0,
31
+ key: 1,
29
32
  class: "man-analysis"
30
33
  };
31
34
  const _hoisted_10 = { class: "personnel" };
@@ -36,7 +39,7 @@ const _hoisted_14 = { class: "data-box" };
36
39
  const _hoisted_15 = { class: "title" };
37
40
  const _hoisted_16 = { class: "value" };
38
41
  const _hoisted_17 = {
39
- key: 1,
42
+ key: 2,
40
43
  class: "bottom-panel"
41
44
  };
42
45
  const _hoisted_18 = { class: "locator" };
@@ -56,6 +59,7 @@ const __default__ = {
56
59
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
57
60
  ...__default__,
58
61
  props: {
62
+ showParkStatistics: { type: Boolean, default: true },
59
63
  showParkInData: { type: Boolean, default: true },
60
64
  showAbnormalData: { type: Boolean, default: true }
61
65
  },
@@ -110,7 +114,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
110
114
  });
111
115
  return (_ctx, _cache) => {
112
116
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
113
- vue.createElementVNode("div", _hoisted_2, [
117
+ props.showParkStatistics ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
114
118
  vue.createElementVNode("div", _hoisted_3, [
115
119
  vue.createElementVNode("div", _hoisted_4, vue.toDisplayString(getShowData(countData.value.carTodayIn)), 1),
116
120
  _hoisted_5
@@ -119,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
119
123
  vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(getShowData(countData.value.carTodayOut)), 1),
120
124
  _hoisted_8
121
125
  ])
122
- ]),
126
+ ])) : vue.createCommentVNode("", true),
123
127
  props.showParkInData ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
124
128
  vue.createElementVNode("div", _hoisted_10, [
125
129
  _hoisted_11,
@@ -5,6 +5,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
5
5
  const vue = require('vue');
6
6
  const dayjs = require('dayjs');
7
7
  const core = require('@vueuse/core');
8
+ const request = require('../../service/request.js');
8
9
  const Echarts_vue_vue_type_script_setup_true_lang = require('../common/Echarts.vue.js');
9
10
  require('../common/Echarts.vue2.js');
10
11
 
@@ -16,14 +17,20 @@ const __default__ = {
16
17
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
18
  ...__default__,
18
19
  props: {
19
- getHomeworkVolumeTrendApi: {
20
+ // 时间类型,day-日,返回每小时的统计数据,month-月,返回每天的统计数据,year-年,返回每月的统计数据
21
+ flowTimeType: {
20
22
  type: String,
21
- default: "/ipes-srip-server/api/v3/special-operation-statistics/operation-total"
23
+ default: "month"
24
+ },
25
+ // 停车场id,指定停车场统计
26
+ parkId: {
27
+ type: String,
28
+ default: ""
22
29
  },
23
30
  // 开始时间
24
31
  beginTime: {
25
32
  type: Number,
26
- default: dayjs().startOf("year").valueOf()
33
+ default: dayjs().subtract(30, "d").valueOf()
27
34
  },
28
35
  // 结束时间
29
36
  endTime: {
@@ -37,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
37
44
  }
38
45
  },
39
46
  setup(__props) {
47
+ const props = __props;
40
48
  vue.ref({
41
49
  value: 0,
42
50
  main: ""
@@ -125,31 +133,43 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
125
133
  ]
126
134
  }
127
135
  });
128
- vue.ref(0);
129
- async function getCommitmentData() {
136
+ async function getData() {
130
137
  try {
131
- const res = {
132
- data: new Array(30).fill("").map((item, index) => {
133
- return {
134
- time: dayjs().subtract(30 - index, "d").format("MM-DD"),
135
- enter: Math.floor(Math.random() * 40) + 1,
136
- leave: Math.floor(Math.random() * 40) + 1
137
- };
138
- })
139
- };
140
- setOptions(res.data);
138
+ const { flowTimeType, parkId, beginTime, endTime } = props;
139
+ const res = await request.default({
140
+ method: "get",
141
+ url: "/ipes-pcip-server/api/v2/gis/flow-car/trend",
142
+ params: {
143
+ flowTimeType,
144
+ parkId,
145
+ beginTime,
146
+ endTime
147
+ }
148
+ });
149
+ const data = res?.data?.map((item) => {
150
+ return {
151
+ time: dayjs(item.time).format("MM-DD"),
152
+ inNum: item.inNum,
153
+ outNum: item.outNum
154
+ };
155
+ });
156
+ setOptions(data);
141
157
  } catch (error) {
142
158
  console.log(error);
143
159
  }
144
160
  }
145
161
  function setOptions(data) {
146
- console.log(data);
147
- chartOption.options.xAxis.data = data.map((ele, index) => ele.time);
148
- chartOption.options.series[0].data = data.map((ele, index) => ele.enter);
149
- chartOption.options.series[1].data = data.map((ele, index) => ele.leave);
162
+ const inMaxData = data.map((ele) => ele.inNum);
163
+ const outMaxData = data.map((ele) => ele.outNum);
164
+ const maxValue = Math.max(...inMaxData, ...outMaxData);
165
+ const maxLenth = isNaN(maxValue) ? 0 : maxValue.toString().length;
166
+ chartOption.options.xAxis.data = data.map((ele) => ele.time);
167
+ chartOption.options.series[0].data = inMaxData;
168
+ chartOption.options.series[1].data = outMaxData;
169
+ chartOption.options.grid.left = maxLenth < 4 ? "40px" : `${maxLenth * 12}px`;
150
170
  }
151
171
  vue.onMounted(() => {
152
- getCommitmentData();
172
+ getData();
153
173
  });
154
174
  return (_ctx, _cache) => {
155
175
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const utils = require('../../../utils.js');
6
+ const index_vue_vue_type_script_setup_true_lang = require('./index.vue.js');
7
+ require('./index.vue2.js');
8
+
9
+ const DvIpesVideoEquipment = utils.install(index_vue_vue_type_script_setup_true_lang.default);
10
+
11
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;
12
+ exports.DvIpesVideoEquipment = DvIpesVideoEquipment;
@@ -0,0 +1,86 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const vue = require('vue');
6
+ const request = require('../../service/request.js');
7
+
8
+ const _hoisted_1 = { class: "dv-ipes-video-equipment" };
9
+ const _hoisted_2 = { class: "video-header" };
10
+ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("div", { class: "video-title" }, " 视频设备 ", -1);
11
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("span", { class: "video-label" }, "总数", -1);
12
+ const _hoisted_5 = { class: "video-value" };
13
+ const _hoisted_6 = { class: "video-box" };
14
+ const _hoisted_7 = { class: "item" };
15
+ const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("div", { class: "label flex flex-s" }, [
16
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "dot online" }),
17
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "name" }, " 在线 ")
18
+ ], -1);
19
+ const _hoisted_9 = { class: "number" };
20
+ const _hoisted_10 = { class: "item" };
21
+ const _hoisted_11 = /* @__PURE__ */ vue.createElementVNode("div", { class: "label flex flex-s" }, [
22
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "dot offline" }),
23
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "name" }, " 离线 ")
24
+ ], -1);
25
+ const _hoisted_12 = { class: "number" };
26
+ const __default__ = {
27
+ name: "DvIpesVideoEquipment",
28
+ title: "视频设备"
29
+ };
30
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
31
+ ...__default__,
32
+ props: {
33
+ siteCodeList: { default: () => [] },
34
+ isAccessPermission: { type: Boolean, default: false }
35
+ },
36
+ setup(__props) {
37
+ const props = __props;
38
+ const info = vue.ref({
39
+ onlineNum: 0,
40
+ offlineNum: 0,
41
+ totalNum: 0
42
+ });
43
+ async function getInfoData() {
44
+ try {
45
+ const res = await request.default({
46
+ method: "post",
47
+ url: "/bmp-video-control-server/api/v1/statistics/getOnlineResult",
48
+ data: props
49
+ });
50
+ info.value = res?.data || {};
51
+ console.log(info);
52
+ } catch (error) {
53
+ console.log(error);
54
+ }
55
+ }
56
+ function getShowData(value) {
57
+ return value == null ? "0" : value;
58
+ }
59
+ vue.onMounted(() => {
60
+ getInfoData();
61
+ });
62
+ return (_ctx, _cache) => {
63
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
64
+ vue.createElementVNode("div", _hoisted_2, [
65
+ _hoisted_3,
66
+ vue.createElementVNode("div", null, [
67
+ _hoisted_4,
68
+ vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(getShowData(info.value.totalNum)), 1)
69
+ ])
70
+ ]),
71
+ vue.createElementVNode("div", _hoisted_6, [
72
+ vue.createElementVNode("div", _hoisted_7, [
73
+ _hoisted_8,
74
+ vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(getShowData(info.value.onlineNum)), 1)
75
+ ]),
76
+ vue.createElementVNode("div", _hoisted_10, [
77
+ _hoisted_11,
78
+ vue.createElementVNode("span", _hoisted_12, vue.toDisplayString(getShowData(info.value.offlineNum)), 1)
79
+ ])
80
+ ])
81
+ ]);
82
+ };
83
+ }
84
+ });
85
+
86
+ exports.default = _sfc_main;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ /* unplugin-vue-components disabled */const index_vue_vue_type_style_index_0_lang = '';
6
+
7
+ exports.default = index_vue_vue_type_style_index_0_lang;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const index_vue_vue_type_script_setup_true_lang = require('./index.vue.js');
6
+ require('./index.vue2.js');
7
+
8
+
9
+
10
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;
@@ -10,7 +10,7 @@ const _hoisted_2 = { class: "left-box" };
10
10
  const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("div", { class: "name" }, " 实时TVOC浓度 ", -1);
11
11
  const _hoisted_4 = { class: "left-wrap" };
12
12
  const _hoisted_5 = { class: "value" };
13
- const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("span", { class: "unit" }, "ug/m³", -1);
13
+ const _hoisted_6 = { class: "unit" };
14
14
  const _hoisted_7 = { class: "right-box" };
15
15
  const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("div", { class: "name" }, " 主要污染物 ", -1);
16
16
  const _hoisted_9 = { class: "value" };
@@ -23,10 +23,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
23
  setup(__props) {
24
24
  const vocs = vue.ref({
25
25
  value: 0,
26
- mainPolluter: ""
26
+ mainPolluter: "",
27
+ unit: ""
27
28
  });
28
29
  vue.ref(0);
29
- async function getCommitmentData() {
30
+ async function getData() {
30
31
  try {
31
32
  const { data } = await request.default({
32
33
  method: "get",
@@ -34,7 +35,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
34
35
  });
35
36
  vocs.value = {
36
37
  value: data.value || 0,
37
- mainPolluter: data?.mainPolluter || ""
38
+ mainPolluter: data?.mainPolluter || "",
39
+ unit: data?.unit || ""
38
40
  };
39
41
  console.log(vocs);
40
42
  } catch (error) {
@@ -42,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
42
44
  }
43
45
  }
44
46
  vue.onMounted(() => {
45
- getCommitmentData();
47
+ getData();
46
48
  });
47
49
  return (_ctx, _cache) => {
48
50
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
@@ -50,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
50
52
  _hoisted_3,
51
53
  vue.createElementVNode("div", _hoisted_4, [
52
54
  vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(vocs.value.value), 1),
53
- _hoisted_6
55
+ vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(vocs.value.unit), 1)
54
56
  ])
55
57
  ]),
56
58
  vue.createElementVNode("div", _hoisted_7, [
@@ -9,6 +9,7 @@ const standard = require('./images/standard.png.js');
9
9
  const unstandardLight = require('./images/unstandard-light.png.js');
10
10
  const unstandard = require('./images/unstandard.png.js');
11
11
  const vue = require('vue');
12
+ const utils = require('../../../utils.js');
12
13
  const request = require('../../service/request.js');
13
14
 
14
15
  const _hoisted_1 = { class: "dv-ipes-water-quality-standard" };
@@ -24,15 +25,16 @@ const __default__ = {
24
25
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
25
26
  ...__default__,
26
27
  setup(__props) {
27
- const getImg = (isStandard, isDark) => {
28
+ const { isDark } = utils.useThemeHook();
29
+ const getImg = (isStandard) => {
28
30
  const imgName = `${isStandard ? "" : "un"}standard${isDark ? "" : "-light"}`;
29
31
  return new URL((/* #__PURE__ */ Object.assign({"./images/bg-light.png": bgLight.default,"./images/bg.png": bg.default,"./images/standard-light.png": standardLight.default,"./images/standard.png": standard.default,"./images/unstandard-light.png": unstandardLight.default,"./images/unstandard.png": unstandard.default}))[`./images/${imgName}.png`], self.location).href;
30
32
  };
31
33
  const basicInfoData = vue.ref({
32
- inSiteName: "园区入水口",
34
+ inSiteName: "",
33
35
  realInLevel: "",
34
36
  isRealInReach: true,
35
- outSiteName: "园区出水口1",
37
+ outSiteName: "",
36
38
  realOutLevel: "",
37
39
  isRealOutReach: true
38
40
  });
@@ -51,14 +53,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
51
53
  }
52
54
  });
53
55
  const { inSiteName, realInLevel, isRealInReach, outSiteName, realOutLevel, isRealOutReach } = data;
54
- basicInfoData.value = {
55
- inSiteName,
56
- realInLevel,
57
- isRealInReach,
58
- outSiteName,
59
- realOutLevel,
60
- isRealOutReach
61
- };
56
+ basicInfoData.value = { inSiteName, realInLevel, isRealInReach, outSiteName, realOutLevel, isRealOutReach };
62
57
  } catch (error) {
63
58
  console.log(error);
64
59
  }
@@ -78,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
78
73
  vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(basicInfoData.value[item.key]), 1),
79
74
  _hoisted_5,
80
75
  vue.createElementVNode("img", {
81
- src: getImg(basicInfoData.value[item.standardKey], _ctx.isDark)
76
+ src: getImg(basicInfoData.value[item.standardKey])
82
77
  }, null, 8, _hoisted_6)
83
78
  ])
84
79
  ]);
@@ -10,18 +10,15 @@ const LottieAnimation_vue_vue_type_script_setup_true_lang = require('./LottieAni
10
10
  const cloud = require('./lottie/cloud.json.js');
11
11
 
12
12
  const _hoisted_1 = { class: "dv-ipes-real-time-air" };
13
- const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "real-title-box" }, [
14
- /* @__PURE__ */ vue.createElementVNode("span", { class: "real-title" }, "实时空气质量")
15
- ], -1);
16
- const _hoisted_3 = { class: "number-wrap" };
17
- const _hoisted_4 = { class: "pollute-flex" };
18
- const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("span", { class: "factor-name" }, "AQI", -1);
19
- const _hoisted_6 = { class: "pollution-wrap" };
20
- const _hoisted_7 = { class: "real-time" };
21
- const _hoisted_8 = { class: "first-pollute-flex" };
22
- const _hoisted_9 = /* @__PURE__ */ vue.createElementVNode("span", { class: "first-pollute" }, "首要污染物", -1);
23
- const _hoisted_10 = { class: "other-factore" };
24
- const _hoisted_11 = { class: "text" };
13
+ const _hoisted_2 = { class: "number-wrap" };
14
+ const _hoisted_3 = { class: "pollute-flex" };
15
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("span", { class: "factor-name" }, "AQI", -1);
16
+ const _hoisted_5 = { class: "pollution-wrap" };
17
+ const _hoisted_6 = { class: "real-time" };
18
+ const _hoisted_7 = { class: "first-pollute-flex" };
19
+ const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("span", { class: "first-pollute" }, "首要污染物", -1);
20
+ const _hoisted_9 = { class: "other-factore" };
21
+ const _hoisted_10 = { class: "text" };
25
22
  const __default__ = {
26
23
  name: "DvIpesRealTimeAir",
27
24
  title: "实时空气质量"
@@ -34,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
34
31
  type: String
35
32
  },
36
33
  height: {
37
- default: 96,
34
+ default: 72,
38
35
  type: Number
39
36
  },
40
37
  lottieAnimationUrl: {
@@ -55,28 +52,27 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
55
52
  return (_ctx, _cache) => {
56
53
  const _component_el_tooltip = es.ElTooltip;
57
54
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
58
- _hoisted_2,
59
55
  vue.createElementVNode("div", {
60
56
  class: vue.normalizeClass(["pollute-div", { "value-length": String(__props.airQualityObj.aqiValue).length >= 3 }])
61
57
  }, [
62
- vue.createElementVNode("div", _hoisted_3, [
58
+ vue.createElementVNode("div", _hoisted_2, [
63
59
  vue.createElementVNode("span", {
64
60
  class: "real-number",
65
61
  style: vue.normalizeStyle({ color: `${__props.airQualityObj.aqiColor}` })
66
62
  }, vue.toDisplayString(__props.airQualityObj.aqiValue), 5),
67
- vue.createElementVNode("div", _hoisted_4, [
68
- _hoisted_5,
63
+ vue.createElementVNode("div", _hoisted_3, [
64
+ _hoisted_4,
69
65
  vue.createElementVNode("span", {
70
66
  class: "factor-status",
71
67
  style: vue.normalizeStyle({ color: `${__props.airQualityObj.aqiColor}` })
72
68
  }, vue.toDisplayString(__props.airQualityObj.aqiLevel || "--"), 5)
73
69
  ])
74
70
  ]),
75
- vue.createElementVNode("div", _hoisted_6, [
76
- vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(__props.airQualityObj.time), 1),
77
- vue.createElementVNode("div", _hoisted_8, [
78
- _hoisted_9,
79
- vue.createElementVNode("div", _hoisted_10, [
71
+ vue.createElementVNode("div", _hoisted_5, [
72
+ vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(__props.airQualityObj.time), 1),
73
+ vue.createElementVNode("div", _hoisted_7, [
74
+ _hoisted_8,
75
+ vue.createElementVNode("div", _hoisted_9, [
80
76
  vue.createVNode(_component_el_tooltip, {
81
77
  class: "item",
82
78
  effect: "dark",
@@ -85,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
85
81
  placement: "top"
86
82
  }, {
87
83
  default: vue.withCtx(() => [
88
- vue.createElementVNode("div", _hoisted_11, vue.toDisplayString(__props.airQualityObj.mainPolluter), 1)
84
+ vue.createElementVNode("div", _hoisted_10, vue.toDisplayString(__props.airQualityObj.mainPolluter), 1)
89
85
  ]),
90
86
  _: 1
91
87
  }, 8, ["content", "disabled"])
@@ -58,6 +58,10 @@ const index$Q = require('./WaterQualityStandard/index.js');
58
58
  const index$R = require('./RainValveCondition/index.js');
59
59
  const index$S = require('./GroundwaterMonitor/index.js');
60
60
  const index$T = require('./OnlineMonitor/index.js');
61
+ const index$U = require('./SensingEquipment/index.js');
62
+ const index$V = require('./MajorRiskManagement/index.js');
63
+ const index$W = require('./VideoEquipment/index.js');
64
+ const index$X = require('./ClassifiedRegulation/index.js');
61
65
 
62
66
 
63
67
 
@@ -117,3 +121,7 @@ exports.DvIpesWaterQualityStandard = index$Q.DvIpesWaterQualityStandard;
117
121
  exports.DvIpesRainValveCondition = index$R.DvIpesRainValveCondition;
118
122
  exports.DvIpesGroundwaterMonitor = index$S.DvIpesGroundwaterMonitor;
119
123
  exports.DvIpesOnlineMonitor = index$T.DvIpesOnlineMonitor;
124
+ exports.DvIpesSensingEquipment = index$U.DvIpesSensingEquipment;
125
+ exports.DvIpesMajorRiskManagement = index$V.DvIpesMajorRiskManagement;
126
+ exports.DvIpesVideoEquipment = index$W.DvIpesVideoEquipment;
127
+ exports.DvIpesClassifiedRegulation = index$X.DvIpesClassifiedRegulation;