@ued_fpi/data-visual 1.2.20 → 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
@@ -3,6 +3,8 @@
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
4
 
5
5
  const vue = require('vue');
6
+ const elementPlusExpand = require('@ued_fpi/element-plus-expand');
7
+ const request = require('../../service/request.js');
6
8
 
7
9
  const _hoisted_1 = { class: "enterprise-protection-code" };
8
10
  const _hoisted_2 = { class: "dv-ipes-env-code-list" };
@@ -38,28 +40,72 @@ const _hoisted_7 = /* @__PURE__ */ vue.createElementVNode("rect", {
38
40
  const _hoisted_8 = ["fill"];
39
41
  const _hoisted_9 = { class: "dv-ipes-value" };
40
42
  const _hoisted_10 = { class: "dv-ipes-rate-num" };
43
+ const _hoisted_11 = { class: "dv-ipes-env-list" };
44
+ const _hoisted_12 = /* @__PURE__ */ vue.createElementVNode("div", { class: "dv-ipes-env-list-header dv-ipes-flex-bw-c" }, [
45
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "dv-ipes-th" }, " 重点问题企业 "),
46
+ /* @__PURE__ */ vue.createElementVNode("div", { class: "dv-ipes-th" }, " 问题数 ")
47
+ ], -1);
48
+ const _hoisted_13 = { class: "dv-ipes-tr dv-ipes-body-name" };
49
+ const _hoisted_14 = ["title", "onClick"];
50
+ const _hoisted_15 = { class: "dv-ipes-tr dv-ipes-value" };
51
+ const _hoisted_16 = {
52
+ key: 1,
53
+ class: "dv-ipes-no-data"
54
+ };
41
55
  const __default__ = {
42
56
  name: "DvIpesEnterpriseProtectionCode",
43
57
  title: "环保码统计"
44
58
  };
45
59
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
46
60
  ...__default__,
47
- props: {
48
- codeInfo: { default: () => ({
49
- codeData: []
50
- }) }
51
- },
52
61
  emits: ["clickCompany"],
53
62
  setup(__props, { emit: $emit }) {
63
+ const isRolling = vue.ref(false);
64
+ const actionType = vue.ref("none");
65
+ const codeData = vue.ref([
66
+ { ruleColorName: "红码", inColor: "#F84439", num: 0, rate: "0" },
67
+ { ruleColorName: "黄码", inColor: "#FDBD00", num: 0, rate: "0" },
68
+ { ruleColorName: "绿码", inColor: "#15F3A3", num: 0, rate: "0" }
69
+ ]);
70
+ const codeList = vue.ref([]);
71
+ function onClickCompany(item) {
72
+ $emit("clickCompany", item);
73
+ }
74
+ async function getData() {
75
+ try {
76
+ const { data } = await request.default({
77
+ method: "get",
78
+ url: "/ipes-company-epcode-server/web/api/v1/thirdcode/getInfo"
79
+ });
80
+ let total = 0;
81
+ data.colors.forEach((item) => {
82
+ total += item.num;
83
+ });
84
+ codeData.value = codeData.value.map((item) => {
85
+ const obj = data.colors.find((e) => e.ruleColorName === item.ruleColorName);
86
+ const rate = total === 0 ? 0 : `${+(obj.num / total * 100).toFixed(1)}%`;
87
+ return Object.assign(item, obj, {
88
+ rate
89
+ });
90
+ });
91
+ codeList.value = data?.companys || [];
92
+ isRolling.value = codeList.value.length > 3;
93
+ actionType.value = codeList.value.length > 3 ? "hover" : "none";
94
+ } catch (error) {
95
+ console.log(error);
96
+ }
97
+ }
98
+ vue.onMounted(() => {
99
+ getData();
100
+ });
54
101
  return (_ctx, _cache) => {
55
102
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
56
103
  vue.createElementVNode("div", _hoisted_2, [
57
104
  vue.createElementVNode("div", _hoisted_3, [
58
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.codeInfo.codeData, (item, index) => {
105
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(codeData.value, (item, index) => {
59
106
  return vue.openBlock(), vue.createElementBlock("div", {
60
107
  key: index,
61
- class: "dv-ipes-code-wrap",
62
- style: vue.normalizeStyle({ backgroundColor: item.bgColor })
108
+ class: "dv-ipes-code-wrap"
63
109
  }, [
64
110
  (vue.openBlock(), vue.createElementBlock("svg", _hoisted_4, [
65
111
  _hoisted_5,
@@ -81,9 +127,40 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
81
127
  vue.createTextVNode("家 ")
82
128
  ]),
83
129
  vue.createElementVNode("div", _hoisted_10, vue.toDisplayString(item.rate), 1)
84
- ], 4);
130
+ ]);
85
131
  }), 128))
86
132
  ])
133
+ ]),
134
+ vue.createElementVNode("div", _hoisted_11, [
135
+ _hoisted_12,
136
+ codeList.value && codeList.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlusExpand.FpiElRolling), {
137
+ key: 0,
138
+ modelValue: isRolling.value,
139
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRolling.value = $event),
140
+ action: actionType.value,
141
+ class: "dv-ipes-env-list-con",
142
+ direction: "y",
143
+ time: 100
144
+ }, {
145
+ default: vue.withCtx(() => [
146
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(codeList.value, (item, index) => {
147
+ return vue.openBlock(), vue.createElementBlock("div", {
148
+ key: index,
149
+ class: "dv-ipes-flex-bw-c dv-ipes-body-item"
150
+ }, [
151
+ vue.createElementVNode("div", _hoisted_13, [
152
+ vue.createElementVNode("a", {
153
+ href: "javascript:void(0);",
154
+ title: item.companyName,
155
+ onClick: ($event) => onClickCompany(item)
156
+ }, vue.toDisplayString(item.companyName), 9, _hoisted_14)
157
+ ]),
158
+ vue.createElementVNode("div", _hoisted_15, vue.toDisplayString(item.num), 1)
159
+ ]);
160
+ }), 128))
161
+ ]),
162
+ _: 1
163
+ }, 8, ["modelValue", "action"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, " 暂无数据 "))
87
164
  ])
88
165
  ]);
89
166
  };
@@ -30,61 +30,40 @@ const __default__ = {
30
30
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
31
31
  ...__default__,
32
32
  props: {
33
- categoryCode: { default: "com_public_pic" },
33
+ categoryCode: { default: "sec_control" },
34
34
  beginTime: { default: +dayjs().startOf("M") },
35
35
  endTime: { default: +dayjs() }
36
36
  },
37
37
  setup(__props) {
38
38
  const props = __props;
39
39
  const { isDark } = utils.useThemeHook();
40
- const commitmentData = vue.ref();
40
+ const eventData = vue.ref();
41
41
  const getImg = (key) => {
42
42
  return new URL((/* #__PURE__ */ Object.assign({"./images/intelligent-light.png": intelligentLight.default,"./images/intelligent.png": intelligent.default,"./images/monitor-light.png": monitorLight.default,"./images/monitor.png": monitor.default,"./images/other-light.png": otherLight.default,"./images/other.png": other.default,"./images/report-light.png": reportLight.default,"./images/report.png": report.default}))[`./images/${key}.png`], self.location).href;
43
43
  };
44
- async function getCommitmentData() {
44
+ const iconArr = ["monitor", "intelligent", "report", "other"];
45
+ async function getData() {
45
46
  try {
46
- const res = await request.default({
47
+ const { data } = await request.default({
47
48
  method: "get",
48
49
  url: "/ipes-data-aggregation-server/api/v1/common/task-charge",
49
50
  params: props
50
51
  });
51
- commitmentData.value = [
52
- {
53
- key: "monitor",
54
- title: "监测报警",
55
- value: "152",
56
- percent: "82.5"
57
- },
58
- {
59
- key: "intelligent",
60
- title: "智能预警",
61
- value: "21",
62
- percent: "98.5"
63
- },
64
- {
65
- key: "report",
66
- title: "上报接警",
67
- value: "16",
68
- percent: "100"
69
- },
70
- {
71
- key: "other",
72
- title: "其他类型",
73
- value: "10",
74
- percent: "50"
75
- }
76
- ];
77
- console.log(commitmentData);
52
+ eventData.value = data.map((e, index) => {
53
+ return Object.assign(e, {
54
+ key: index > 3 ? iconArr[3] : iconArr[index]
55
+ });
56
+ });
78
57
  } catch (error) {
79
58
  console.log(error);
80
59
  }
81
60
  }
82
61
  vue.onMounted(() => {
83
- getCommitmentData();
62
+ getData();
84
63
  });
85
64
  return (_ctx, _cache) => {
86
65
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
87
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(commitmentData.value, (item) => {
66
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(eventData.value, (item) => {
88
67
  return vue.openBlock(), vue.createElementBlock("div", {
89
68
  key: item.key,
90
69
  class: vue.normalizeClass(["security-box", item.key])
@@ -93,11 +72,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
93
72
  src: getImg(item.key + (vue.unref(isDark) ? "" : "-light"))
94
73
  }, null, 8, _hoisted_2),
95
74
  vue.createElementVNode("div", _hoisted_3, [
96
- vue.createElementVNode("div", _hoisted_4, vue.toDisplayString(item.title), 1),
75
+ vue.createElementVNode("div", _hoisted_4, vue.toDisplayString(item.taskTypeName), 1),
97
76
  vue.createElementVNode("div", _hoisted_5, [
98
- vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(item.value), 1),
77
+ vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(item.curMonthIncreaseNum), 1),
99
78
  _hoisted_7,
100
- vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(item.percent) + "% ", 1)
79
+ vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(item.disposeRate), 1)
101
80
  ])
102
81
  ])
103
82
  ], 2);
@@ -6,16 +6,15 @@ const vue = require('vue');
6
6
  const request = require('../../service/request.js');
7
7
 
8
8
  const _hoisted_1 = { class: "dv-ipes-ground-water-monitor" };
9
- const _hoisted_2 = { class: "risk_body" };
10
- const _hoisted_3 = { class: "pie-card" };
11
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("div", { class: "top" }, null, -1);
12
- const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom" }, null, -1);
13
- const _hoisted_6 = { class: "label" };
14
- const _hoisted_7 = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, " 地下水监控 ", -1);
15
- const _hoisted_8 = { class: "total mgt8" };
16
- const _hoisted_9 = { class: "legend" };
17
- const _hoisted_10 = { class: "typename" };
18
- const _hoisted_11 = { class: "value" };
9
+ const _hoisted_2 = { class: "pie-card" };
10
+ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("div", { class: "top" }, null, -1);
11
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bottom" }, null, -1);
12
+ const _hoisted_5 = { class: "label" };
13
+ const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, " 地下水监控 ", -1);
14
+ const _hoisted_7 = { class: "total mgt8" };
15
+ const _hoisted_8 = { class: "legend" };
16
+ const _hoisted_9 = { class: "typename" };
17
+ const _hoisted_10 = { class: "value" };
19
18
  const __default__ = {
20
19
  name: "DvIpesGroundwaterMonitor",
21
20
  title: "地下水监控"
@@ -24,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
24
23
  ...__default__,
25
24
  emits: ["openPopup"],
26
25
  setup(__props, { emit }) {
27
- const colors = ["#1976D2", "#85C941", "#D9CC4C", "var(--dv-color-success)"];
26
+ const colors = vue.ref([]);
28
27
  const waterTotal = vue.ref(0);
29
28
  const legendData = vue.ref([]);
30
29
  const groundwaterChart = vue.ref();
@@ -83,9 +82,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
83
82
  });
84
83
  const { total, gwLevels } = result.data;
85
84
  const seriesData = [];
85
+ const colorList = [];
86
86
  gwLevels.forEach((item) => {
87
87
  seriesData.push([item.name, item.count]);
88
+ colorList.push(item.color);
88
89
  });
90
+ colors.value = colorList;
89
91
  legendData.value = gwLevels;
90
92
  waterTotal.value = total;
91
93
  drawChart(seriesData);
@@ -100,34 +102,32 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
100
102
  return (_ctx, _cache) => {
101
103
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
102
104
  vue.createElementVNode("div", _hoisted_2, [
103
- vue.createElementVNode("div", _hoisted_3, [
104
- vue.createElementVNode("div", {
105
- ref_key: "groundwaterChart",
106
- ref: groundwaterChart,
107
- class: "pie"
108
- }, null, 512),
109
- _hoisted_4,
110
- _hoisted_5,
111
- vue.createElementVNode("div", _hoisted_6, [
112
- _hoisted_7,
113
- vue.createElementVNode("div", _hoisted_8, vue.toDisplayString(waterTotal.value), 1)
114
- ])
115
- ]),
116
- vue.createElementVNode("div", _hoisted_9, [
117
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(legendData.value, (item, index) => {
118
- return vue.openBlock(), vue.createElementBlock("div", {
119
- key: index,
120
- class: "legend-item"
121
- }, [
122
- vue.createElementVNode("div", {
123
- class: "circle",
124
- style: vue.normalizeStyle({ background: colors[index] })
125
- }, null, 4),
126
- vue.createElementVNode("div", _hoisted_10, vue.toDisplayString(item.name), 1),
127
- vue.createElementVNode("div", _hoisted_11, vue.toDisplayString(item.count || 0), 1)
128
- ]);
129
- }), 128))
105
+ vue.createElementVNode("div", {
106
+ ref_key: "groundwaterChart",
107
+ ref: groundwaterChart,
108
+ class: "pie"
109
+ }, null, 512),
110
+ _hoisted_3,
111
+ _hoisted_4,
112
+ vue.createElementVNode("div", _hoisted_5, [
113
+ _hoisted_6,
114
+ vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(waterTotal.value), 1)
130
115
  ])
116
+ ]),
117
+ vue.createElementVNode("div", _hoisted_8, [
118
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(legendData.value, (item, index) => {
119
+ return vue.openBlock(), vue.createElementBlock("div", {
120
+ key: index,
121
+ class: "legend-item"
122
+ }, [
123
+ vue.createElementVNode("div", {
124
+ class: "circle",
125
+ style: vue.normalizeStyle({ background: item.color || colors.value[index] })
126
+ }, null, 4),
127
+ vue.createElementVNode("div", _hoisted_9, vue.toDisplayString(item.name), 1),
128
+ vue.createElementVNode("div", _hoisted_10, vue.toDisplayString(item.count || 0), 1)
129
+ ]);
130
+ }), 128))
131
131
  ])
132
132
  ]);
133
133
  };
@@ -40,10 +40,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
40
40
  const props = __props;
41
41
  const { isDark } = utils.useThemeHook();
42
42
  const basicInfos = vue.ref([
43
- { title: "危废产生", key: "wasteGenerated" },
44
- { title: "自行处置", key: "selfUse" },
45
- { title: "委外处置", key: "transfer" },
46
- { title: "库存量", key: "stockWeight" }
43
+ { name: "危废产生", key: "wasteGenerated" },
44
+ { name: "自行处置", key: "selfUse" },
45
+ { name: "委外处置", key: "transfer" },
46
+ { name: "库存量", key: "stockWeight" }
47
47
  ]);
48
48
  const infoData = vue.ref({
49
49
  wasteGenerated: 0,
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const __vite_glob_0_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAoCAYAAABXRRJPAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAorSURBVFiF7ZhrjJzXWcd/z3lv887M7s5677b34pjUjROlTtw0QJq2UYXapKSqS2IJKkUNaoSIEJUQQuq38AkBH5CIUqJQqy2CQpOqN0SiNh9CStUWKGlKYgfHduysHXt3Z3d27vNezoUPs+u4zRjf1vCBPp9m3ve85///Pec573lm4Bfx/yCcc4Fzbuh66/jXY1LnXAVQgAUmnXMe4AF1ETFbrbdlEM65AKgACdARkXzj+rCI1DdAis65AtAVkc5WaV8TxIaxzXLJRKR6sbEbK9ACWs45zzk3tnGrIyLJtfiQq3nIOVcCCoChn9Xs0b9z+0Lhty2cCwsc+vMDbALNisjiIG3nHMDmXBpoXU25XRHERq2XgHUg35xj95tLn5l4JX5851pZR7kXOkid41vFiCcPPcSbwOnNOY6AhMeRMz7y4xgPYPEU3tgQ/nyRYS9GHjrOKsfIefjyVuhKIRbWeuSFGOPALFarvQkm2DN26lN1Z5+Ml33GT5W6U8fLXnktigCU4ogo/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H6zhCT7Z/5V35zfd3v9K7N2+r15ee0D+9aIQw181TxQ8pVYekN8diPzd/C5EP4riAGLjmYBknyi7q+15Z1ZUpG0/q60IzkzD0nYI12uETY/R5ZjCeng+6wsTmMIE2foY+ljOkDZgND+0hs93Ur7O/dL9efnKF10lKts/0lBee9D7/YuuxNjX3J3a2k/8UqC+cEOZ1Wd+Td7ZSf5jc5yi+jSefQRx70Ise5Rq3W5iKa4HxZOrKG0hA7qhwW/34YohLMzTzrcTHRFsMyPShobRfEXDU/W75OVBubv3WRcdSbirrtkfw5eWDv5sd33JPeGnFIhpDIQB+F77w0j+KOLuR0wwG6n8ZkIzX4ulWvWitxqwewYz/i6yahn14x6R6Wf9JzrnqZ7mK7VfluZF9RUFbUmuaE9cLB78tpuzBSIlrAwEemFlmpDPIO4RxM6hHPeUo/ymkdHGfyoZb2RgLB2d83Vr+PzxvfKjQTr3PuuicsAUGSNt4fXn7pN00LirgjgP87wbAUbowTMfH/DP3mOPKe79nXvBPYrY+26bnTmNU1prHrfClw/PSm3QvJeb9S2BuDAefN6N0GNERxcR/uHJhX03LNz48pQ8P/D5b7s5Yrga4xfGNUGcN/O8G9GW6JL7h41y0UwRQztn+XLK5VKxJRAXxt5vuPedzewj4776q+O/IS9tXp95Jr+7i/rVIWd/dOZg8OJWam45BPTf53nBfCLy5VbjSD1RUWrsYtBTX6o/LPXroXldo/JFV/m/9vCL+N+K/wbdvc18Rl4KcQAAAABJRU5ErkJggg==";
6
+
7
+ exports.default = __vite_glob_0_0;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const __vite_glob_0_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAqCAYAAADxughHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAujSURBVGiB7ZhrjF3XVYC/tc/7PubOw3dmPI5nPEkcx3EcNTWBRlGMo5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k3/x7hcu0wt89D+0Ix59oYd5YITywiAeGS4FMQ0WAR/I3gTpwhiAQwcPhUVJRp0ISBApHnhON4ho4NFaFejJg7YRp/eL5/w2rrFLexab6k7e18laqtfp3d+KDYkyJM7P6jDfnSeym4e2r/rO8Yln9aCpcPOS+Osfltnl1HLxqSAoClJ6iJajUbyZWm9GRdHd8IpuZSiAYmV1AHjgaT2KB7A6lP2fx7aVrvmwds1Pa8voSK43Spw/q+Pir4t948/wJSlXW/2axRApDV84uue+FYdz3UpqLF+s8OsNPas/R/RypC4BuFQeeE43SBmloPXUx+TsZQO+e7hu1BofLQy1n+1DJ1bTcdnqX0n0iuxZxa93dfZ7JYfI6dUVZv91F+1l3ZcaFIA792GvX2RQm0RxQestq/8uZc1AANBa7v0B/a9t4eNAay5mD0OUABumqKQe9xZmeZebqz8718/UytR4r7LWIIpuwajYDj9v6fJuK1cDUjKRmfqmwpAno5zv0j2Aiy4+A9ZCrg2ITw2LOhmuKYyIop0V+FhkFASEdFj30w0idN9xHAKqVPHoYGOj0WSUJCSE9BHRbS9+SlML3tKzsYBFPwYtoLHcG3WvYi0h4FqAXJRumgmXd6xrCvC/Tv4bQzGvTcdr62sAAAAASUVORK5CYII=";
6
+
7
+ exports.default = __vite_glob_0_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 DvIpesMajorRiskManagement = 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.DvIpesMajorRiskManagement = DvIpesMajorRiskManagement;
@@ -0,0 +1,89 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const bgLight = require('./images/bg-light.png.js');
6
+ const bg = require('./images/bg.png.js');
7
+ const vue = require('vue');
8
+ const request = require('../../service/request.js');
9
+ const utils = require('../../../utils.js');
10
+
11
+ const _hoisted_1 = { class: "dv-ipes-major-risk" };
12
+ const _hoisted_2 = { class: "risk-box" };
13
+ const _hoisted_3 = ["src"];
14
+ const _hoisted_4 = { class: "info" };
15
+ const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("div", { class: "label" }, " 未销警数量 ", -1);
16
+ const _hoisted_6 = { class: "value" };
17
+ const _hoisted_7 = { class: "number" };
18
+ const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("span", { class: "unit" }, "个", -1);
19
+ const _hoisted_9 = { class: "risk-box" };
20
+ const _hoisted_10 = ["src"];
21
+ const _hoisted_11 = { class: "info" };
22
+ const _hoisted_12 = /* @__PURE__ */ vue.createElementVNode("div", { class: "label" }, " 年度预警数量 ", -1);
23
+ const _hoisted_13 = { class: "value" };
24
+ const _hoisted_14 = { class: "number" };
25
+ const _hoisted_15 = /* @__PURE__ */ vue.createElementVNode("span", { class: "unit" }, "个", -1);
26
+ const __default__ = {
27
+ name: "DvIpesMajorRiskManagement",
28
+ title: "重大风险管控"
29
+ };
30
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
31
+ ...__default__,
32
+ setup(__props) {
33
+ const { isDark } = utils.useThemeHook();
34
+ const info = vue.ref({
35
+ notRecovery: 0,
36
+ yearCount: 0
37
+ });
38
+ const getImg = (isDark2) => {
39
+ return new URL((/* #__PURE__ */ Object.assign({"./images/bg-light.png": bgLight.default,"./images/bg.png": bg.default}))[`./images/bg${isDark2 ? "" : "-light"}.png`], self.location).href;
40
+ };
41
+ async function getInfoData() {
42
+ try {
43
+ const res = await request.default({
44
+ method: "get",
45
+ url: "/ipes-srip-server/api/v3/gis/panel/hazard-control"
46
+ });
47
+ info.value = res?.data || {};
48
+ } catch (error) {
49
+ console.log(error);
50
+ }
51
+ }
52
+ function getShowData(value) {
53
+ return value == null ? "0" : value;
54
+ }
55
+ vue.onMounted(() => {
56
+ getInfoData();
57
+ });
58
+ return (_ctx, _cache) => {
59
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
60
+ vue.createElementVNode("div", _hoisted_2, [
61
+ vue.createElementVNode("img", {
62
+ src: getImg(vue.unref(isDark))
63
+ }, null, 8, _hoisted_3),
64
+ vue.createElementVNode("div", _hoisted_4, [
65
+ _hoisted_5,
66
+ vue.createElementVNode("div", _hoisted_6, [
67
+ vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(getShowData(info.value.notRecovery)), 1),
68
+ _hoisted_8
69
+ ])
70
+ ])
71
+ ]),
72
+ vue.createElementVNode("div", _hoisted_9, [
73
+ vue.createElementVNode("img", {
74
+ src: getImg(vue.unref(isDark))
75
+ }, null, 8, _hoisted_10),
76
+ vue.createElementVNode("div", _hoisted_11, [
77
+ _hoisted_12,
78
+ vue.createElementVNode("div", _hoisted_13, [
79
+ vue.createElementVNode("span", _hoisted_14, vue.toDisplayString(getShowData(info.value.yearCount)), 1),
80
+ _hoisted_15
81
+ ])
82
+ ])
83
+ ])
84
+ ]);
85
+ };
86
+ }
87
+ });
88
+
89
+ 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;
@@ -5,6 +5,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
5
5
  const bgLight = require('./images/bg-light.png.js');
6
6
  const bg = require('./images/bg.png.js');
7
7
  const vue = require('vue');
8
+ const request = require('../../service/request.js');
8
9
  const utils = require('../../../utils.js');
9
10
 
10
11
  const _hoisted_1 = { class: "dv-ipes-online-monitor" };
@@ -30,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
30
31
  setup(__props) {
31
32
  const { isDark } = utils.useThemeHook();
32
33
  const info = vue.ref({
33
- count: 0,
34
+ total: 0,
34
35
  percent: 0
35
36
  });
36
37
  const getImg = (isDark2) => {
@@ -38,11 +39,26 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38
39
  };
39
40
  async function getInfoData() {
40
41
  try {
41
- info.value = {
42
- count: 1145,
43
- percent: 65.2
44
- };
45
- console.log(info);
42
+ const res = await request.default({
43
+ method: "get",
44
+ url: "/ipes-monitor-server/api/v2/datastatistics/all-run-status-statistics?monitorTypes=hazards"
45
+ });
46
+ const totalCollection = ["normal", "abnormal", "exceed", "offline"];
47
+ const onlineCollection = ["normal", "abnormal", "exceed"];
48
+ let total = 0;
49
+ let online = 0;
50
+ res?.data?.forEach((e) => {
51
+ if (totalCollection.includes(e.runStatusCode))
52
+ total += e.count;
53
+ if (onlineCollection.includes(e.runStatusCode))
54
+ online += e.count;
55
+ });
56
+ if (total !== void 0 && online !== void 0) {
57
+ info.value = {
58
+ total,
59
+ percent: total === 0 ? 0 : +(online / total * 100).toFixed(2)
60
+ };
61
+ }
46
62
  } catch (error) {
47
63
  console.log(error);
48
64
  }
@@ -60,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
60
76
  vue.createElementVNode("div", _hoisted_5, [
61
77
  _hoisted_6,
62
78
  vue.createElementVNode("div", _hoisted_7, [
63
- vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(info.value.count), 1),
79
+ vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(info.value.total), 1),
64
80
  _hoisted_9
65
81
  ])
66
82
  ]),
@@ -8,7 +8,7 @@ const utils = require('../../../utils.js');
8
8
  const performance = require('./images/performance.png.js');
9
9
  const performanceLight = require('./images/performance-light.png.js');
10
10
 
11
- const _hoisted_1 = { class: "dv-ipes-basic-info" };
11
+ const _hoisted_1 = { class: "dv-ipes-performance-warranty-responsibilities" };
12
12
  const _hoisted_2 = { class: "base-info" };
13
13
  const _hoisted_3 = { class: "flex flex-c flex-between" };
14
14
  const _hoisted_4 = { class: "left flex" };
@@ -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-personnel-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.inParkPeopleNum)), 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.outParkPeopleNum)), 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,
@@ -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 DvIpesSensingEquipment = 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.DvIpesSensingEquipment = DvIpesSensingEquipment;